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,usenames,dvipsnames
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 If you add the options
15419 \begin_layout Standard
15422 usenames,dvipsnames
15425 \begin_layout Standard
15426 to the document class options in the document settings, you can additionally
15428 \begin_inset space ~
15432 These colors are listed in appendix
15433 \begin_inset space ~
15437 \begin_inset CommandInset ref
15439 reference "chap:List-of-dvips-colornames"
15444 One of these colors,
15448 , is used as example in Table
15449 \begin_inset space ~
15453 \begin_inset CommandInset ref
15455 reference "tab:Table-colored-using"
15462 \begin_layout Standard
15463 \begin_inset VSpace medskip
15469 \begin_layout Standard
15470 You can also define your own color with the command
15473 \begin_layout Standard
15478 definecolor{color name}{color model}{color values}
15481 \begin_layout Standard
15482 The color model can be
15485 \begin_layout Labeling
15486 \labelwidthstring 00.00.0000
15487 cmyk: cyan, magenta, yellow, black
15490 \begin_layout Labeling
15491 \labelwidthstring 00.00.0000
15492 rgb: red, green blue
15495 \begin_layout Labeling
15496 \labelwidthstring 00.00.0000
15500 \begin_layout Standard
15501 and the color values are comma separated numbers between 0 and 1 describing
15502 the factor for the corresponding color of the color model.
15505 \begin_layout Standard
15507 \begin_inset space \thinspace{}
15511 \begin_inset space \space{}
15518 " in the preamble with
15521 \begin_layout Standard
15526 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15529 \begin_layout Standard
15537 \begin_layout Standard
15542 definecolor{lightgray}{gray}{0.8}
15545 \begin_layout Standard
15546 \begin_inset VSpace medskip
15552 \begin_layout Standard
15553 Lines are colored with the command
15556 \begin_layout Standard
15561 rowcolor{name of color}
15564 \begin_layout Standard
15565 and cells are colored with the command
15568 \begin_layout Standard
15573 cellcolor{name of color}
15576 \begin_layout Standard
15577 Both commands are inserted at the beginning of a cell as TeX-Code.
15580 \begin_layout Standard
15581 To color characters in the table, mark the cells and use the LyX menu
15583 Edit\SpecialChar \menuseparator
15585 \begin_inset space ~
15591 If a cell contains TeX-Code mark only the characters, otherwise the colored
15592 TeX-Code will cause LaTeX-errors.
15595 \begin_layout Standard
15596 \begin_inset Note Greyedout
15599 \begin_layout Plain Layout
15604 Not all DVI-viewers are able to display self-defined colors.
15612 \begin_layout Standard
15613 \begin_inset VSpace bigskip
15619 \begin_layout Standard
15621 \begin_inset space ~
15625 \begin_inset CommandInset ref
15627 reference "tab:Table-colored-using"
15631 do the following: The color of the first column should be
15639 \begin_layout Standard
15644 columncolor{darkgreen}
15649 \begin_layout Standard
15650 as LaTeX-argument for this column.
15651 The first row should be light blue, therefore the TeX-Code command
15654 \begin_layout Standard
15662 \begin_layout Standard
15663 is inserted to the first cell of this row.
15664 Note that this overwrites the column color for the first cell.
15665 The last cell of the last row is colored maroon by inserting the TeX-Code
15669 \begin_layout Standard
15677 \begin_layout Standard
15678 The characters could now be colored using the menu
15680 Edit\SpecialChar \menuseparator
15682 \begin_inset space ~
15690 \begin_layout Standard
15691 \begin_inset Float table
15697 \begin_layout Plain Layout
15698 \begin_inset Caption
15700 \begin_layout Plain Layout
15701 \begin_inset CommandInset label
15703 name "tab:Table-colored-using"
15707 Table colored using the package
15712 \begin_inset Argument
15715 \begin_layout Plain Layout
15716 Table with colortbl
15729 \begin_layout Plain Layout
15731 \begin_inset Tabular
15732 <lyxtabular version="3" rows="3" columns="3">
15733 <features tabularvalignment="middle">
15734 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15735 <column alignment="center" valignment="top" width="0">
15736 <column alignment="center" valignment="top" width="0">
15738 <cell alignment="center" valignment="top" usebox="none">
15741 \begin_layout Plain Layout
15745 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" usebox="none">
15764 \begin_layout Plain Layout
15772 <cell alignment="center" valignment="top" usebox="none">
15775 \begin_layout Plain Layout
15785 <cell alignment="center" valignment="top" usebox="none">
15788 \begin_layout Plain Layout
15796 <cell alignment="center" valignment="top" usebox="none">
15799 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15820 <cell alignment="center" valignment="top" usebox="none">
15823 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" usebox="none">
15834 \begin_layout Plain Layout
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15849 \begin_layout Plain Layout
15878 \begin_layout Standard
15882 \begin_layout Plain Layout
15892 \begin_inset Note Note
15895 \begin_layout Plain Layout
15896 The following will be displayed when the LaTeX-package
15908 \begin_layout Standard
15909 You need to install the package
15913 to see the content of this section in the output.
15916 \begin_layout Standard
15920 \begin_layout Plain Layout
15932 \begin_layout Subsection
15934 \begin_inset Index idx
15937 \begin_layout Plain Layout
15938 Table Color ! for Lines
15944 \begin_inset Index idx
15947 \begin_layout Plain Layout
15948 Color ! for Table Lines
15956 \begin_layout Standard
15957 As described in section
15958 \begin_inset space ~
15962 \begin_inset CommandInset ref
15964 reference "sub:Line-Thickness"
15968 , the line thickness for all lines in a table can be adjusted with the length
15977 \begin_inset space \thinspace{}
15980 pt for all tables of this section.
15984 \begin_layout Plain Layout
15990 arrayrulewidth}{1.5pt}
15998 \begin_layout Standard
15999 To color vertical lines for example with green, create the following column
16000 format in the document preamble, according to the description in section
16001 \begin_inset space ~
16005 \begin_inset CommandInset ref
16007 reference "sub:Customized-Format"
16014 \begin_layout Standard
16019 newcolumntype{W}{!{
16026 \begin_layout Standard
16028 \begin_inset space ~
16032 \begin_inset CommandInset ref
16034 reference "tab:Table-with-vertical-colored"
16042 was used for the last column and
16046 for the other columns.
16049 \begin_layout Standard
16050 If you want to have several colors, define more column formats.
16053 \begin_layout Standard
16054 \begin_inset Float table
16060 \begin_layout Plain Layout
16061 \begin_inset Caption
16063 \begin_layout Plain Layout
16064 \begin_inset CommandInset label
16066 name "tab:Table-with-vertical-colored"
16070 Table with colored vertical lines
16078 \begin_layout Plain Layout
16080 \begin_inset Tabular
16081 <lyxtabular version="3" rows="3" columns="3">
16082 <features tabularvalignment="middle">
16083 <column alignment="center" valignment="top" width="0" special="Wc">
16084 <column alignment="center" valignment="top" width="0" special="Wc">
16085 <column alignment="center" valignment="top" width="0" special="WcW">
16087 <cell alignment="center" valignment="top" topline="true" usebox="none">
16090 \begin_layout Plain Layout
16096 <cell alignment="center" valignment="top" topline="true" usebox="none">
16099 \begin_layout Plain Layout
16105 <cell alignment="center" valignment="top" topline="true" usebox="none">
16108 \begin_layout Plain Layout
16116 <cell alignment="center" valignment="top" topline="true" usebox="none">
16119 \begin_layout Plain Layout
16125 <cell alignment="center" valignment="top" topline="true" usebox="none">
16128 \begin_layout Plain Layout
16134 <cell alignment="center" valignment="top" topline="true" usebox="none">
16137 \begin_layout Plain Layout
16145 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16148 \begin_layout Plain Layout
16154 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16157 \begin_layout Plain Layout
16163 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16166 \begin_layout Plain Layout
16185 \begin_layout Standard
16186 \begin_inset VSpace bigskip
16189 To color horizontal lines for example with red, as in Table
16190 \begin_inset space ~
16194 \begin_inset CommandInset ref
16196 reference "tab:Table-with-horizontal-colored"
16200 , insert these commands in TeX-Code before the table or table float:
16203 \begin_layout Standard
16213 \begin_inset Newline newline
16221 \begin_inset Newline newline
16225 \begin_inset Phantom HPhantom
16228 \begin_layout Plain Layout
16231 \begin_inset space ~
16241 arrayrulecolor{red}
16245 arrayrulecolor{black}}
16248 \begin_layout Standard
16252 \begin_layout Plain Layout
16263 \begin_layout Plain Layout
16272 \begin_layout Plain Layout
16276 arrayrulecolor{red}
16280 arrayrulecolor{black}}
16286 \begin_inset Float table
16292 \begin_layout Plain Layout
16293 \begin_inset Caption
16295 \begin_layout Plain Layout
16296 \begin_inset CommandInset label
16298 name "tab:Table-with-horizontal-colored"
16302 Table with colored horizontal lines
16310 \begin_layout Plain Layout
16312 \begin_inset Tabular
16313 <lyxtabular version="3" rows="3" columns="3">
16314 <features tabularvalignment="middle">
16315 <column alignment="center" valignment="top" width="0">
16316 <column alignment="center" valignment="top" width="0">
16317 <column alignment="center" valignment="top" width="0">
16319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16322 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16340 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16417 \begin_layout Standard
16418 To return to the default line color black, insert this command in TeX-Code
16419 after the table or table float:
16422 \begin_layout Standard
16434 \begin_layout Standard
16436 \begin_inset space ~
16440 \begin_inset CommandInset ref
16442 reference "tab:Table-with-colored"
16446 is an example with colored vertical and horizontal lines.
16449 \begin_layout Standard
16450 \begin_inset Float table
16456 \begin_layout Plain Layout
16457 \begin_inset Caption
16459 \begin_layout Plain Layout
16460 \begin_inset CommandInset label
16462 name "tab:Table-with-colored"
16466 Table with colored lines
16474 \begin_layout Plain Layout
16476 \begin_inset Tabular
16477 <lyxtabular version="3" rows="3" columns="3">
16478 <features tabularvalignment="middle">
16479 <column alignment="center" valignment="top" width="0" special="Wc">
16480 <column alignment="center" valignment="top" width="0" special="Wc">
16481 <column alignment="center" valignment="top" width="0" special="WcW">
16483 <cell alignment="center" valignment="top" topline="true" usebox="none">
16486 \begin_layout Plain Layout
16492 <cell alignment="center" valignment="top" topline="true" usebox="none">
16495 \begin_layout Plain Layout
16501 <cell alignment="center" valignment="top" topline="true" usebox="none">
16504 \begin_layout Plain Layout
16512 <cell alignment="center" valignment="top" topline="true" usebox="none">
16515 \begin_layout Plain Layout
16521 <cell alignment="center" valignment="top" topline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" usebox="none">
16533 \begin_layout Plain Layout
16540 <row topspace="default">
16541 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16562 \begin_layout Plain Layout
16581 \begin_layout Standard
16585 \begin_layout Plain Layout
16601 \begin_layout Standard
16605 \begin_layout Plain Layout
16611 arrayrulewidth}{0.4pt}
16619 \begin_layout Section
16620 Table Width Calculation
16621 \begin_inset CommandInset label
16623 name "sec:Table-Width-Calculation"
16630 \begin_layout Standard
16631 For wide tables it is sometimes difficult to assure that the table does
16632 not protrude over the page margin.
16633 Setting a fixed width for every column of the table is the solution, but
16634 what amount of space is needed for each column?
16637 \begin_layout Standard
16639 \begin_inset Formula $W_{\mathrm{table}}$
16642 can be calculated: Every column has the width of the specified column width
16644 \begin_inset Formula $W_{\mathrm{column}}$
16647 (that the content of the column can consume) plus two times the separation
16648 between the column content and the column border (LaTeX length
16655 \begin_inset space \thinspace{}
16658 pt) plus the width of a border line (LaTeX length
16665 \begin_inset space \thinspace{}
16669 \begin_inset Formula $n$
16673 \begin_inset space ~
16676 columns have the same width, the table width is
16677 \begin_inset Formula
16679 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
16687 \begin_layout Standard
16688 The available width for a table is the space between the page margins or
16689 the width of a text column (for a two-column document) (LaTeX length
16696 If all table columns should have the same width and
16697 \begin_inset Formula $W_{\mathrm{table}}$
16701 \begin_inset space \thinspace{}
16707 \begin_inset Formula $W_{\mathrm{column}}$
16710 can easily be calculated.
16713 \begin_layout Standard
16714 To be able to perform calculations you need to load the LaTeX-package
16719 \begin_inset Index idx
16722 \begin_layout Plain Layout
16723 LaTeX-packages ! calc
16728 in the document preamble.
16729 To set the width in the table dialog you have to use the field
16734 The command scheme for this field is the same that is explained in section
16735 \begin_inset space ~
16739 \begin_inset CommandInset ref
16741 reference "sub:Multicolumn-Calculations"
16747 \begin_inset space \thinspace{}
16750 columns with an uniform width and centered text, enter there for each column
16754 \begin_layout Standard
16761 columnwidth-62.4pt)/5}
16764 \begin_layout Standard
16766 \begin_inset space \thinspace{}
16769 columns where 2 should have 0.75
16770 \begin_inset space ~
16773 times the width than the 3 others, the calculation is
16774 \begin_inset Formula
16776 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
16777 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
16778 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
16779 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
16787 \begin_layout Standard
16788 In the table therefore the command
16791 \begin_layout Standard
16798 columnwidth-62.4pt)/
16803 \begin_layout Standard
16804 is used for the wider columns and
16807 \begin_layout Standard
16814 columnwidth-62.4pt)/
16821 \begin_layout Standard
16822 for the smaller ones:
16825 \begin_layout Standard
16826 \begin_inset Tabular
16827 <lyxtabular version="3" rows="2" columns="5">
16828 <features tabularvalignment="middle">
16829 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
16830 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
16831 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
16832 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
16833 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
16835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16838 \begin_layout Plain Layout
16844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16847 \begin_layout Plain Layout
16853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16856 \begin_layout Plain Layout
16862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16865 \begin_layout Plain Layout
16871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Plain Layout
16882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16885 \begin_layout Plain Layout
16886 111111 1111111 111111 111111111 11111 11111 1111
16891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16894 \begin_layout Plain Layout
16900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16903 \begin_layout Plain Layout
16904 2222 22222 222222 222222222 2222222 22 22222
16909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16912 \begin_layout Plain Layout
16918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16921 \begin_layout Plain Layout
16922 333333 333333 333333 33333 3333333 333
16935 \begin_layout Section
16936 Table Customization
16937 \begin_inset Index idx
16940 \begin_layout Plain Layout
16941 Table Customization
16947 \begin_inset Index idx
16950 \begin_layout Plain Layout
16951 Table ! Customization
16959 \begin_layout Subsection
16961 \begin_inset CommandInset label
16963 name "sub:Row-Spacing"
16968 \begin_inset Index idx
16971 \begin_layout Plain Layout
16972 Table Customization ! Row Spacing
16980 \begin_layout Standard
16981 You can add vertical space to table rows in the
16985 tab of the table dialog.
16986 You find there three possibilities:
16989 \begin_layout Description
16991 \begin_inset space ~
16995 \begin_inset space ~
16998 row will add space above the characters of the table row.
16999 If the table is a formal table
17003 \begin_layout Plain Layout
17004 Formal tables are explained in section
17005 \begin_inset space ~
17009 \begin_inset CommandInset ref
17011 reference "sec:Formal-Tables"
17020 LyX will insert as default 0.5
17021 \begin_inset space \thinspace{}
17025 For normal tables the inserted space will unfortunately destroy the vertical
17026 table lines as in the following table:
17027 \begin_inset VSpace medskip
17031 \begin_inset Newline newline
17035 \begin_inset space \hspace*{}
17040 \begin_inset space \hfill{}
17044 \begin_inset Tabular
17045 <lyxtabular version="3" rows="3" columns="1">
17046 <features tabularvalignment="middle">
17047 <column alignment="center" valignment="top" width="0">
17049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17052 \begin_layout Plain Layout
17059 <row topspace="3mm">
17060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17063 \begin_layout Plain Layout
17065 \begin_inset space \thinspace{}
17068 mm space top of row
17075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17078 \begin_layout Plain Layout
17090 \begin_inset space \hfill{}
17094 \begin_inset space \hspace*{}
17099 \begin_inset VSpace medskip
17103 \begin_inset Newline newline
17106 So inserting space in the top of row for normal tables is only useful when
17107 you don't have vertical lines.
17110 \begin_layout Description
17112 \begin_inset space ~
17116 \begin_inset space ~
17119 row will add space below the characters of the table row.
17120 If the table is a formal table LyX will insert as default 0.5
17121 \begin_inset space \thinspace{}
17124 em space, for normal tables the default size is 2
17125 \begin_inset space \thinspace{}
17131 \begin_layout Description
17133 \begin_inset space ~
17136 rows adds space between the current and the following row.
17137 If the table is a formal table LyX will insert as default 0.5
17138 \begin_inset space \thinspace{}
17142 For normal tables the inserted space will unfortunately destroy the vertical
17143 table lines as in the following table:
17144 \begin_inset VSpace medskip
17148 \begin_inset Newline newline
17152 \begin_inset space \hspace*{}
17157 \begin_inset space \hfill{}
17161 \begin_inset Tabular
17162 <lyxtabular version="3" rows="3" columns="1">
17163 <features tabularvalignment="middle">
17164 <column alignment="center" valignment="top" width="0">
17166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17169 \begin_layout Plain Layout
17176 <row interlinespace="3mm">
17177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17180 \begin_layout Plain Layout
17181 \begin_inset Formula $\downarrow$
17185 \begin_inset space \thinspace{}
17188 mm space between row
17189 \begin_inset Formula $\downarrow$
17199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17202 \begin_layout Plain Layout
17203 \begin_inset Formula $\uparrow$
17207 \begin_inset space \thinspace{}
17210 mm space between row
17211 \begin_inset Formula $\uparrow$
17225 \begin_inset space \hfill{}
17229 \begin_inset space \hspace*{}
17234 \begin_inset VSpace medskip
17238 \begin_inset Newline newline
17241 So inserting space between rows for normal tables is only useful when you
17242 don't have vertical lines.
17245 \begin_layout Standard
17246 \begin_inset VSpace bigskip
17249 When you want to add extra height to all cells of all tables, you can do
17250 this with the following preamble lines:
17253 \begin_layout Standard
17258 @ifundefined{extrarowheight}
17259 \begin_inset Newline newline
17263 \begin_inset Phantom HPhantom
17266 \begin_layout Plain Layout
17269 \begin_inset space ~
17279 usepackage{array}}{}
17280 \begin_inset Newline newline
17287 extrarowheight}{height}
17290 \begin_layout Standard
17291 But this has the disadvantage that the cell texts are no longer exactly
17292 vertically centered.
17297 will be loaded automatically by LyX when you use self defined table formats.
17298 To avoid that it being loaded twice the command
17304 is used in the above command.)
17307 \begin_layout Standard
17308 If you are using font sizes larger than the normal size, the table borders
17309 are often too close to the letters.
17310 This can be corrected by inserting the command
17316 in TeX code at the beginning of a table row.
17318 \begin_inset space ~
17322 \begin_inset CommandInset ref
17324 reference "tab:Vertical-alignment-of"
17328 illustrates the effect.
17331 \begin_layout Standard
17333 \begin_inset Float table
17339 \begin_layout Plain Layout
17340 \begin_inset Caption
17342 \begin_layout Plain Layout
17343 \begin_inset CommandInset label
17345 name "tab:Vertical-alignment-of"
17349 Vertical alignment of text with large font sizes.
17357 \begin_layout Plain Layout
17358 \begin_inset space \hfill{}
17362 \begin_inset Float table
17367 \begin_layout Plain Layout
17368 \begin_inset Caption
17370 \begin_layout Plain Layout
17379 \begin_layout Plain Layout
17382 \begin_inset Tabular
17383 <lyxtabular version="3" rows="6" columns="1">
17384 <features tabularvalignment="middle">
17385 <column alignment="left" valignment="top" width="0">
17387 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17390 \begin_layout Plain Layout
17398 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17401 \begin_layout Plain Layout
17411 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17414 \begin_layout Plain Layout
17424 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17427 \begin_layout Plain Layout
17437 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17440 \begin_layout Plain Layout
17450 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17453 \begin_layout Plain Layout
17472 \begin_inset space \hfill{}
17476 \begin_inset Float table
17481 \begin_layout Plain Layout
17482 \begin_inset Caption
17484 \begin_layout Plain Layout
17485 Table using the command
17499 \begin_layout Plain Layout
17502 \begin_inset Tabular
17503 <lyxtabular version="3" rows="6" columns="1">
17504 <features tabularvalignment="middle">
17505 <column alignment="left" valignment="top" width="0">
17507 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17510 \begin_layout Plain Layout
17518 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17521 \begin_layout Plain Layout
17527 \begin_layout Plain Layout
17543 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17546 \begin_layout Plain Layout
17552 \begin_layout Plain Layout
17568 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17571 \begin_layout Plain Layout
17577 \begin_layout Plain Layout
17593 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17596 \begin_layout Plain Layout
17602 \begin_layout Plain Layout
17618 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17621 \begin_layout Plain Layout
17627 \begin_layout Plain Layout
17654 \begin_inset space \hfill{}
17665 \begin_layout Subsection
17666 Special Cell Alignment
17667 \begin_inset CommandInset label
17669 name "sub:Special-Cell-Alignment"
17674 \begin_inset Index idx
17677 \begin_layout Plain Layout
17678 Table Customization ! Special Cell Alignment
17686 \begin_layout Standard
17687 Sometimes it looks better when the cell entries of a column are aligned
17688 with a special character, e.
17689 \begin_inset space \thinspace{}
17693 \begin_inset space \space{}
17696 with the decimal separator as in Table
17697 \begin_inset space ~
17701 \begin_inset CommandInset ref
17703 reference "tab:Table-cells-align"
17708 This alignment is achieved by setting the cursor into the column and then
17709 either pressing the toolbar button
17710 \begin_inset Graphics
17711 filename ../images/tabular-feature_align-decimal.png
17713 scaleBeforeRotation
17717 or setting the alignment in the table settings to
17720 \begin_inset space ~
17724 \begin_inset space ~
17730 The alignment character can be a character of your choice and is specified
17731 in the table settings.
17734 \begin_layout Standard
17735 \begin_inset Float table
17741 \begin_layout Plain Layout
17742 \begin_inset Caption
17744 \begin_layout Plain Layout
17745 \begin_inset CommandInset label
17747 name "tab:Table-cells-align"
17751 Table cells of a column aligned with the decimal separator.
17759 \begin_layout Plain Layout
17761 \begin_inset Tabular
17762 <lyxtabular version="3" rows="4" columns="1">
17763 <features booktabs="true" tabularvalignment="middle">
17764 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17769 \begin_layout Plain Layout
17777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17780 \begin_layout Plain Layout
17788 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17791 \begin_layout Plain Layout
17799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17802 \begin_layout Plain Layout
17821 \begin_layout Standard
17822 \begin_inset Float table
17828 \begin_layout Plain Layout
17829 \begin_inset Caption
17831 \begin_layout Plain Layout
17832 \begin_inset CommandInset label
17834 name "tab:Table-align-operator"
17838 Table cells of a column aligned with the operators.
17846 \begin_layout Plain Layout
17848 \begin_inset Tabular
17849 <lyxtabular version="3" rows="4" columns="2">
17850 <features booktabs="true" tabularvalignment="middle">
17851 <column alignment="right" valignment="top" width="0pt">
17852 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17854 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17857 \begin_layout Plain Layout
17863 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17866 \begin_layout Plain Layout
17874 <cell alignment="center" valignment="top" usebox="none">
17877 \begin_layout Plain Layout
17878 \begin_inset Formula $12\,+$
17886 <cell alignment="center" valignment="top" usebox="none">
17889 \begin_layout Plain Layout
17890 \begin_inset Formula $\,6$
17900 <cell alignment="center" valignment="top" usebox="none">
17903 \begin_layout Plain Layout
17904 \begin_inset Formula $0\,-$
17912 <cell alignment="center" valignment="top" usebox="none">
17915 \begin_layout Plain Layout
17916 \begin_inset Formula $\,68$
17926 <cell alignment="center" valignment="top" usebox="none">
17929 \begin_layout Plain Layout
17930 \begin_inset Formula $-123\,/$
17938 <cell alignment="center" valignment="top" usebox="none">
17941 \begin_layout Plain Layout
17942 \begin_inset Formula $\,0$
17963 \begin_layout Standard
17964 For alignments at characters in formulas this method does not work because
17965 the field to specify the alignment character does not allow formulas.
17966 In this case one need to use the method from Table
17967 \begin_inset space ~
17971 \begin_inset CommandInset ref
17973 reference "tab:Table-align-operator"
17978 This table was created with a 4×2 table.
17979 The heading is a centered multicolumn.
17980 The first column is right-aligned and contains the first part including
17982 The second column is left aligned and contains the rest.
17983 A small space was added at the beginning of each cell of the second column
17984 to get the space that is usually around operators.
17985 To omit the space that is normally between two table columns, the following
17986 LaTeX-argument was used for the second column:
17989 \begin_layout Standard
17995 \begin_layout Standard
17997 \begin_inset space ~
18001 \begin_inset CommandInset ref
18003 reference "tab:Several-table-cell"
18007 shows some example alignments.
18008 For the alignment with the relation sign, a small space was added like
18009 for the second column of Table
18010 \begin_inset space ~
18014 \begin_inset CommandInset ref
18016 reference "tab:Table-align-operator"
18023 \begin_layout Standard
18024 \begin_inset Float table
18030 \begin_layout Plain Layout
18031 \begin_inset Caption
18033 \begin_layout Plain Layout
18034 \begin_inset CommandInset label
18036 name "tab:Several-table-cell"
18040 Several table cell alignments.
18048 \begin_layout Plain Layout
18050 \begin_inset Tabular
18051 <lyxtabular version="3" rows="4" columns="6">
18052 <features tabularvalignment="middle">
18053 <column alignment="right" valignment="top" width="0">
18054 <column alignment="left" valignment="top" width="0" special="@{}l">
18055 <column alignment="right" valignment="top" width="0">
18056 <column alignment="left" valignment="top" width="0" special="@{}l">
18057 <column alignment="right" valignment="top" width="0">
18058 <column alignment="left" valignment="top" width="0" special="@{}l">
18060 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
18063 \begin_layout Plain Layout
18069 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18072 \begin_layout Plain Layout
18078 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
18081 \begin_layout Plain Layout
18087 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18090 \begin_layout Plain Layout
18096 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
18099 \begin_layout Plain Layout
18105 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18108 \begin_layout Plain Layout
18116 <cell alignment="center" valignment="top" usebox="none">
18119 \begin_layout Plain Layout
18125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18128 \begin_layout Plain Layout
18130 \begin_inset space \thinspace{}
18138 <cell alignment="center" valignment="top" usebox="none">
18141 \begin_layout Plain Layout
18142 \begin_inset Formula $10\cdot$
18150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18153 \begin_layout Plain Layout
18154 \begin_inset Formula $10^{\mbox{-}17}$
18162 <cell alignment="center" valignment="top" usebox="none">
18165 \begin_layout Plain Layout
18166 \begin_inset Formula $\Gamma(t)\propto$
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18178 \begin_inset Formula $\:\Upsilon(t)$
18188 <cell alignment="center" valignment="top" usebox="none">
18191 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18200 \begin_layout Plain Layout
18202 \begin_inset space \thinspace{}
18210 <cell alignment="center" valignment="top" usebox="none">
18213 \begin_layout Plain Layout
18214 \begin_inset Formula $5.78\cdot$
18222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18225 \begin_layout Plain Layout
18226 \begin_inset Formula $10^{7}$
18234 <cell alignment="center" valignment="top" usebox="none">
18237 \begin_layout Plain Layout
18238 \begin_inset Formula $A\ne$
18246 <cell alignment="center" valignment="top" usebox="none">
18249 \begin_layout Plain Layout
18250 \begin_inset Formula $\: B_{\mathrm{red}}$
18260 <cell alignment="center" valignment="top" usebox="none">
18263 \begin_layout Plain Layout
18269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18272 \begin_layout Plain Layout
18274 \begin_inset space \thinspace{}
18282 <cell alignment="center" valignment="top" usebox="none">
18285 \begin_layout Plain Layout
18287 \begin_inset Formula $33.5\cdot$
18295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
18298 \begin_layout Plain Layout
18299 \begin_inset Formula $10^{4}$
18307 <cell alignment="center" valignment="top" usebox="none">
18310 \begin_layout Plain Layout
18311 \begin_inset Formula $\sin(\alpha)\ge$
18319 <cell alignment="center" valignment="top" usebox="none">
18322 \begin_layout Plain Layout
18323 \begin_inset Formula $\:\sin(\beta)$
18344 \begin_layout Subsection
18345 Customized Cell/Column Format
18346 \begin_inset CommandInset label
18348 name "sub:Customized-Format"
18353 \begin_inset Index idx
18356 \begin_layout Plain Layout
18357 Table Customization ! Cell/Column Format
18365 \begin_layout Standard
18366 Calculating the required width for normal columns as described in section
18367 \begin_inset space ~
18371 \begin_inset CommandInset ref
18373 reference "sec:Table-Width-Calculation"
18377 or for spanned columns as described in section
18378 \begin_inset space ~
18382 \begin_inset CommandInset ref
18384 reference "sub:Multicolumn-Calculations"
18388 is very annoying if you have several tables where a calculation is necessary.
18389 To make life easier, you can define a cell/column format in the preamble,
18390 that can be used in all tables of the document.
18391 The format is defined with the command
18394 \begin_layout Standard
18399 newcolumntype{name of format}[number of arguments]{commands}
18402 \begin_layout Standard
18403 The format name may only consist of one letter.
18428 are predefined and cannot be used.
18429 But all letters are allowed as capitals.
18432 \begin_layout Standard
18433 \begin_inset VSpace medskip
18439 \begin_layout Standard
18440 For vertically and horizontally centered multicolumn cells with a fixed
18441 width you can define the cell format
18444 \begin_layout Standard
18449 newcolumntype{M}[1]{>{
18456 \begin_layout Standard
18463 avoids the problem of hyphenating the first word, as described in section
18464 \begin_inset space ~
18468 \begin_inset CommandInset ref
18470 reference "sub:Multiple-Lines-in"
18475 Now you can simply enter
18478 \begin_layout Standard
18484 \begin_layout Standard
18489 in the table dialog to create a multicolumn.
18492 \begin_layout Standard
18493 \begin_inset VSpace bigskip
18499 \begin_layout Standard
18500 For cells spanned by a multicolumn cell, you can define the format
18503 \begin_layout Standard
18508 newcolumntype{S}[2]{>{
18513 \begin_inset Newline newline
18517 \begin_inset Phantom HPhantom
18520 \begin_layout Plain Layout
18534 arrayrulewidth)*(1-#2))/#2}}
18537 \begin_layout Standard
18538 This format uses equation
18539 \begin_inset CommandInset ref
18545 to calculate the required width so that each spanned cell has the same
18549 \begin_layout Standard
18553 \begin_layout Standard
18556 S{width of multicolumn cell}{number of spanned columns}
18559 \begin_layout Standard
18560 as LaTeX-argument of the column.
18563 \begin_layout Standard
18564 \begin_inset VSpace bigskip
18570 \begin_layout Standard
18571 For colored columns, you can define
18574 \begin_layout Standard
18579 newcolumntype{K}[1]{>{
18586 \begin_layout Standard
18588 \begin_inset Quotes eld
18592 \begin_inset Quotes erd
18595 at the end creates a column with a flexible width whose text is horizontally
18600 \begin_layout Standard
18606 \begin_layout Standard
18610 \begin_layout Standard
18611 \begin_inset VSpace bigskip
18617 \begin_layout Standard
18619 \begin_inset space ~
18623 \begin_inset CommandInset ref
18625 reference "tab:Table-using-user-defined"
18629 use the LaTeX-arguments
18632 \begin_layout Standard
18638 \begin_layout Standard
18639 for the first column and the multicolumn,
18642 \begin_layout Standard
18648 \begin_layout Standard
18649 for the last column, and
18652 \begin_layout Standard
18658 \begin_layout Standard
18659 for the cells in the second column.
18662 \begin_layout Standard
18663 \begin_inset Float table
18669 \begin_layout Plain Layout
18670 \begin_inset Caption
18672 \begin_layout Plain Layout
18673 \begin_inset CommandInset label
18675 name "tab:Table-using-user-defined"
18679 Table using user-defined table formats
18687 \begin_layout Plain Layout
18689 \begin_inset Tabular
18690 <lyxtabular version="3" rows="3" columns="4">
18691 <features tabularvalignment="middle">
18692 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18693 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18694 <column alignment="center" valignment="middle" width="0">
18695 <column alignment="center" valignment="middle" width="0" special="K{red}">
18697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18700 \begin_layout Plain Layout
18701 verylongtablecellword
18706 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18709 \begin_layout Plain Layout
18710 multiple lines multicolumn
18715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18718 \begin_layout Plain Layout
18724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18727 \begin_layout Plain Layout
18735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18738 \begin_layout Plain Layout
18744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18747 \begin_layout Plain Layout
18753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18756 \begin_layout Plain Layout
18762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18765 \begin_layout Plain Layout
18773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18776 \begin_layout Plain Layout
18782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18785 \begin_layout Plain Layout
18791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18794 \begin_layout Plain Layout
18800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18803 \begin_layout Plain Layout
18822 \begin_layout Subsection
18824 \begin_inset CommandInset label
18826 name "sub:Line-Thickness"
18831 \begin_inset Index idx
18834 \begin_layout Plain Layout
18835 Table Customization ! Line Thickness
18843 \begin_layout Standard
18844 The line thickness for all lines in a table can be adjusted with the length
18852 To set for example a line thickness of 1.5
18853 \begin_inset space \thinspace{}
18857 \begin_inset space ~
18861 \begin_inset CommandInset ref
18863 reference "tab:Table-with-1.5"
18867 , insert the command
18870 \begin_layout Standard
18877 arrayrulewidth}{1.5pt}
18880 \begin_layout Standard
18881 in TeX-Code before the table or table float.
18882 The changed thickness is valid for all subsequent tables.
18883 To use the default value again, set
18890 \begin_inset space \thinspace{}
18893 pt in TeX-Code after the table or table float.
18896 \begin_layout Standard
18900 \begin_layout Plain Layout
18906 arrayrulewidth}{1.5pt}
18912 \begin_inset Float table
18917 \begin_layout Plain Layout
18918 \begin_inset Caption
18920 \begin_layout Plain Layout
18921 \begin_inset CommandInset label
18923 name "tab:Table-with-1.5"
18928 \begin_inset space \thinspace{}
18939 \begin_layout Plain Layout
18941 \begin_inset Tabular
18942 <lyxtabular version="3" rows="3" columns="3">
18943 <features tabularvalignment="middle">
18944 <column alignment="center" valignment="top" width="0">
18945 <column alignment="center" valignment="top" width="0">
18946 <column alignment="center" valignment="top" width="0">
18948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18969 \begin_layout Plain Layout
18977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18980 \begin_layout Plain Layout
18986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18989 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18998 \begin_layout Plain Layout
19006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19009 \begin_layout Plain Layout
19015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19018 \begin_layout Plain Layout
19024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19027 \begin_layout Plain Layout
19047 \begin_layout Plain Layout
19053 arrayrulewidth}{0.4pt}
19061 \begin_layout Standard
19062 \begin_inset VSpace bigskip
19065 To set the line thickness to 1.5
19066 \begin_inset space \thinspace{}
19069 pt only for horizontal lines, as in Table
19070 \begin_inset space ~
19074 \begin_inset CommandInset ref
19076 reference "tab:Table-with-horizontal"
19080 , insert these commands in TeX-Code before the table or table float:
19083 \begin_layout Standard
19093 \begin_inset Newline newline
19101 \begin_inset Newline newline
19110 arrayrulewidth 1.5pt}
19111 \begin_inset Newline newline
19122 arrayrulewidth 0.4pt}}
19125 \begin_layout Standard
19126 To return to the default line thickness, insert this command in TeX-Code
19127 after the table or table float:
19130 \begin_layout Standard
19142 \begin_layout Standard
19146 \begin_layout Plain Layout
19157 \begin_layout Plain Layout
19166 \begin_layout Plain Layout
19174 arrayrulewidth 1.5pt}
19177 \begin_layout Plain Layout
19187 arrayrulewidth 0.4pt}}
19193 \begin_inset Float table
19198 \begin_layout Plain Layout
19199 \begin_inset Caption
19201 \begin_layout Plain Layout
19202 \begin_inset CommandInset label
19204 name "tab:Table-with-horizontal"
19209 \begin_inset space \thinspace{}
19212 pt thick horizontal lines
19220 \begin_layout Plain Layout
19222 \begin_inset Tabular
19223 <lyxtabular version="3" rows="3" columns="3">
19224 <features tabularvalignment="middle">
19225 <column alignment="center" valignment="top" width="0">
19226 <column alignment="center" valignment="top" width="0">
19227 <column alignment="center" valignment="top" width="0">
19229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19232 \begin_layout Plain Layout
19238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19241 \begin_layout Plain Layout
19247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19250 \begin_layout Plain Layout
19258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19261 \begin_layout Plain Layout
19267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19270 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19279 \begin_layout Plain Layout
19287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19290 \begin_layout Plain Layout
19296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19299 \begin_layout Plain Layout
19305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19308 \begin_layout Plain Layout
19328 \begin_layout Plain Layout
19344 \begin_layout Standard
19345 \begin_inset VSpace bigskip
19348 To set the line thickness to 1.5
19349 \begin_inset space \thinspace{}
19352 pt only for vertical lines, create the following column format in the document
19353 preamble, according to the description in section
19354 \begin_inset space ~
19358 \begin_inset CommandInset ref
19360 reference "sub:Customized-Format"
19367 \begin_layout Standard
19372 newcolumntype{V}{!{
19374 vrule width 1.5pt}}
19377 \begin_layout Standard
19379 \begin_inset space ~
19383 \begin_inset CommandInset ref
19385 reference "tab:Table-with-vertical"
19392 \begin_layout Standard
19398 \begin_layout Standard
19399 was used for the last column and
19402 \begin_layout Standard
19408 \begin_layout Standard
19409 for the other columns.
19412 \begin_layout Standard
19413 \begin_inset Float table
19418 \begin_layout Plain Layout
19419 \begin_inset Caption
19421 \begin_layout Plain Layout
19422 \begin_inset CommandInset label
19424 name "tab:Table-with-vertical"
19429 \begin_inset space \thinspace{}
19432 pt thick vertical lines
19440 \begin_layout Plain Layout
19442 \begin_inset Tabular
19443 <lyxtabular version="3" rows="3" columns="3">
19444 <features tabularvalignment="middle">
19445 <column alignment="center" valignment="top" width="0" special="Vc">
19446 <column alignment="center" valignment="top" width="0" special="Vc">
19447 <column alignment="center" valignment="top" width="0" special="VcV">
19449 <cell alignment="center" valignment="top" topline="true" usebox="none">
19452 \begin_layout Plain Layout
19458 <cell alignment="center" valignment="top" topline="true" usebox="none">
19461 \begin_layout Plain Layout
19467 <cell alignment="center" valignment="top" topline="true" usebox="none">
19470 \begin_layout Plain Layout
19478 <cell alignment="center" valignment="top" topline="true" usebox="none">
19481 \begin_layout Plain Layout
19487 <cell alignment="center" valignment="top" topline="true" usebox="none">
19490 \begin_layout Plain Layout
19496 <cell alignment="center" valignment="top" topline="true" usebox="none">
19499 \begin_layout Plain Layout
19507 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19510 \begin_layout Plain Layout
19516 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19519 \begin_layout Plain Layout
19525 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19528 \begin_layout Plain Layout
19547 \begin_layout Subsection
19549 \begin_inset Index idx
19552 \begin_layout Plain Layout
19553 Table Customization ! Dashed Lines
19561 \begin_layout Standard
19565 \begin_layout Plain Layout
19575 \begin_inset Note Note
19578 \begin_layout Plain Layout
19579 The following section will only be displayed when the LaTeX-package
19591 \begin_layout Standard
19592 \begin_inset Float table
19598 \begin_layout Plain Layout
19599 \begin_inset Caption
19601 \begin_layout Plain Layout
19602 \begin_inset CommandInset label
19604 name "tab:Table-with-dashed"
19608 Table with dashed lines
19616 \begin_layout Plain Layout
19618 \begin_inset Tabular
19619 <lyxtabular version="3" rows="5" columns="5">
19620 <features tabularvalignment="middle">
19621 <column alignment="center" valignment="top" width="0">
19622 <column alignment="center" valignment="top" width="0">
19623 <column alignment="center" valignment="top" width="0" special=":c">
19624 <column alignment="center" valignment="top" width="0">
19625 <column alignment="center" valignment="top" width="0">
19627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19630 \begin_layout Plain Layout
19636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19639 \begin_layout Plain Layout
19645 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19648 \begin_layout Plain Layout
19654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19657 \begin_layout Plain Layout
19663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19666 \begin_layout Plain Layout
19674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19677 \begin_layout Plain Layout
19683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19686 \begin_layout Plain Layout
19692 <cell alignment="center" valignment="top" topline="true" usebox="none">
19695 \begin_layout Plain Layout
19701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19704 \begin_layout Plain Layout
19710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19713 \begin_layout Plain Layout
19721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19724 \begin_layout Plain Layout
19728 \begin_layout Plain Layout
19742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19745 \begin_layout Plain Layout
19751 <cell alignment="center" valignment="top" usebox="none">
19754 \begin_layout Plain Layout
19760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19763 \begin_layout Plain Layout
19769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19772 \begin_layout Plain Layout
19780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19783 \begin_layout Plain Layout
19787 \begin_layout Plain Layout
19801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19804 \begin_layout Plain Layout
19810 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19813 \begin_layout Plain Layout
19819 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19822 \begin_layout Plain Layout
19828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19831 \begin_layout Plain Layout
19839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19842 \begin_layout Plain Layout
19848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19851 \begin_layout Plain Layout
19857 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19860 \begin_layout Plain Layout
19866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19869 \begin_layout Plain Layout
19875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19878 \begin_layout Plain Layout
19897 \begin_layout Standard
19898 LyX does not natively support dashed lines, so you have to use TeX-Code.
19899 As a prerequisite the LaTeX-package
19904 \begin_inset Index idx
19907 \begin_layout Plain Layout
19908 LaTeX-packages ! arydshln
19913 must be loaded in the document preamble with the command
19916 \begin_layout Standard
19921 usepackage{arydshln}
19924 \begin_layout Standard
19925 To make a vertical line dashed, enter the colon
19926 \begin_inset Quotes eld
19930 \begin_inset Quotes erd
19933 together with the character for the horizontal alignment as LaTeX-argument
19934 in the table cell dialog.
19937 \begin_layout Standard
19938 For a horizontal dashed line add the command
19941 \begin_layout Standard
19949 \begin_layout Standard
19950 in TeX-Code as first element of the first cell in the table row.
19953 \begin_layout Standard
19954 For dashed multicolumn lines use the command
19957 \begin_layout Standard
19962 cdashline{line number
19967 \begin_layout Standard
19968 in TeX-Code as the first element of the first cell in the table row.
19969 If you have for example a multicolumn spanning columns 2 to 4 and you want
19970 to have a dashed line above, add the command
19973 \begin_layout Standard
19981 \begin_layout Standard
19982 as the first element of the first cell in the row of the multicolumn.
19985 \begin_layout Standard
19986 \begin_inset VSpace bigskip
19992 \begin_layout Standard
19994 \begin_inset space ~
19998 \begin_inset CommandInset ref
20000 reference "tab:Table-with-dashed"
20005 \begin_inset Quotes eld
20013 \begin_inset Quotes erd
20016 as LaTeX-argument of the third column.
20017 The TeX-Code command
20023 was inserted in the first cell of the third row and the TeX-Code command
20024 \begin_inset Newline newline
20033 was inserted in the first cell of the fourth row.
20036 \begin_layout Standard
20037 \begin_inset Note Greyedout
20040 \begin_layout Plain Layout
20049 is apparently not compatible with the LaTeX-package
20054 \begin_inset Index idx
20057 \begin_layout Plain Layout
20058 LaTeX-packages ! colortbl
20063 that is used for colored tables in section
20064 \begin_inset space ~
20068 \begin_inset CommandInset ref
20070 reference "sec:Colored-Tables"
20075 That means colored tables cannot have dashed lines.
20083 \begin_layout Standard
20087 \begin_layout Plain Layout
20097 \begin_inset Note Note
20100 \begin_layout Plain Layout
20101 The following will be displayed when the LaTeX-package
20113 \begin_layout Standard
20114 You need to install the package
20118 to see the content of this section in the output.
20121 \begin_layout Standard
20125 \begin_layout Plain Layout
20137 \begin_layout Chapter
20139 \begin_inset CommandInset label
20146 \begin_inset Index idx
20149 \begin_layout Plain Layout
20158 \begin_layout Section
20160 \begin_inset CommandInset label
20162 name "sec:FloatIntroduction"
20167 \begin_inset Index idx
20170 \begin_layout Plain Layout
20171 Floats ! Introduction
20179 \begin_layout Standard
20180 A float is a block of text associated with some sort of label, which doesn't
20181 have a fixed location.
20183 \begin_inset Quotes eld
20187 \begin_inset Quotes erd
20190 forward or backward a page or two, to wherever it fits best.
20198 \begin_inset space ~
20203 are also floats, because they can float to the next page when there are
20204 too many notes on the page.
20207 \begin_layout Standard
20208 Floats allow a high quality layout.
20209 Images and tables can be spread evenly to the pages to avoid white space
20210 and pages without text.
20211 As the floating often destroys the context between the text and the image/table
20212 , every float can be referenced in the text.
20213 Floats are therefore numbered.
20214 Referencing is described in section
20215 \begin_inset space ~
20219 \begin_inset CommandInset ref
20221 reference "sec:Referencing-Floats"
20228 \begin_layout Standard
20229 To insert a float, use the menu
20231 Insert\SpecialChar \menuseparator
20239 inset, a box with a label.
20240 The label will automatically be translated to the document language in
20242 After the label you can insert the caption text.
20243 The image or table is inserted above or below the caption in a separate
20244 paragraph within the float.
20245 More about the caption placement is contained in section
20246 \begin_inset space ~
20250 \begin_inset CommandInset ref
20252 reference "sec:Caption-Placement"
20257 To keep your LyX-document readable, you can open and close the float box
20258 by left-clicking on the box label.
20259 A closed float box looks like this:
20260 \begin_inset Graphics
20261 filename clipart/floatQt4.png
20263 scaleBeforeRotation
20267 – a gray button with a red label.
20270 \begin_layout Standard
20271 It is recommended that you insert floats as a separate standard paragraph
20272 to avoid possible LaTeX-errors that can occur when the surrounding text
20273 is specially formatted.
20276 \begin_layout Standard
20277 Existing figures or tables can be put into a float by highlighting them
20278 and then pressing the corresponding toolbar button for a new float.
20281 \begin_layout Section
20285 \begin_layout Standard
20286 Besides figure and table floats that are described in sections
20287 \begin_inset space ~
20291 \begin_inset CommandInset ref
20293 reference "sec:Figure-Floats"
20298 \begin_inset CommandInset ref
20300 reference "sec:Table-Floats"
20304 respectively, LyX offers the float types
20313 The latter are explained in sec.
20314 \begin_inset space \thinspace{}
20318 \begin_inset CommandInset ref
20320 reference "sec:Wrap-Floats"
20327 \begin_layout Subsection
20329 \begin_inset Index idx
20332 \begin_layout Plain Layout
20333 Floats ! Algorithms
20341 \begin_layout Standard
20342 \begin_inset Float algorithm
20348 \begin_layout Plain Layout
20349 \begin_inset Caption
20351 \begin_layout Plain Layout
20352 \begin_inset CommandInset label
20354 name "alg:Example-Algorithm-float"
20358 Example Algorithm float
20366 \begin_layout LyX-Code
20368 \begin_inset Newline newline
20371 Sum:= Sum + A(I); /*comment*/
20372 \begin_inset Newline newline
20376 \begin_inset VSpace -4mm
20387 \begin_layout Standard
20388 This float type is inserted with the menu
20390 Insert\SpecialChar \menuseparator
20391 Floats\SpecialChar \menuseparator
20395 It is used for program codes and descriptions of algorithms and can be
20396 seen as an alternative to program code listings that are explained in chapter
20397 \begin_inset space ~
20401 \begin_inset CommandInset ref
20403 reference "cha:Program-Code-Listings"
20408 A possible environment for algorithms is the
20412 , described in LyX's
20418 \begin_inset space ~
20422 \begin_inset CommandInset ref
20424 reference "alg:Example-Algorithm-float"
20428 is an example of an algorithm float where -4
20429 \begin_inset space \thinspace{}
20432 mm vertical space was added at the end of the float to have the bottom rule
20433 exactly below the last text line.
20436 \begin_layout Standard
20437 The float label is not automatically translated into the document language.
20438 If your document is not in English, you have to do this manually by adding
20439 the following line to the document preamble
20444 \begin_layout Standard
20449 floatname{algorithm}{your
20450 \begin_inset space ~
20456 \begin_layout Standard
20460 \begin_inset space ~
20466 \begin_inset Quotes eld
20474 \begin_inset Quotes erd
20480 \begin_layout Standard
20481 To insert the list of algorithms you can use the menu
20483 Insert\SpecialChar \menuseparator
20485 \begin_inset space \thinspace{}
20489 \begin_inset space \thinspace{}
20492 TOC\SpecialChar \menuseparator
20495 when your document has the same language as LyX's menu names.
20496 In other cases use this command in TeX-Code instead:
20499 \begin_layout Standard
20504 listof{algorithm}{your
20505 \begin_inset space ~
20511 \begin_layout Standard
20515 \begin_inset space ~
20521 \begin_inset Quotes eld
20529 \begin_inset Quotes erd
20535 \begin_layout Standard
20536 Algorithm floats are not by default numbered in the scheme
20537 \begin_inset Quotes eld
20541 \begin_inset Quotes erd
20544 as is the case for table and figure floats in many document-classes.
20545 To number algorithm floats in the same scheme, add this command to your
20549 \begin_layout Standard
20554 numberwithin{algorithm}{chapter}
20557 \begin_layout Standard
20558 To be able to use the command
20567 \begin_inset space ~
20572 in the document settings the option
20575 \begin_inset space ~
20579 \begin_inset space ~
20583 \begin_inset space ~
20591 \begin_layout Section
20593 \begin_inset Index idx
20596 \begin_layout Plain Layout
20605 \begin_layout Standard
20606 Floats are usually numbered either independently from the sections the floats
20607 are in, or in the scheme
20608 \begin_inset Quotes eld
20612 \begin_inset Quotes erd
20616 \begin_inset Quotes eld
20620 \begin_inset Quotes erd
20624 This depends on the document class used.
20627 \begin_layout Standard
20628 To change section-independent numbering, you can use this command in the
20632 \begin_layout Standard
20644 \begin_layout Standard
20651 is the command that prints the table number, for figure floats, the command
20665 in the command above prints the table number as small roman number.
20668 \begin_layout Standard
20669 To change the numbering scheme for example to
20670 \begin_inset Quotes eld
20674 \begin_inset Quotes erd
20677 , use this command in the preamble:
20680 \begin_layout Standard
20685 numberwithin{table}{subsection}
20688 \begin_layout Standard
20689 To be able to use the command
20698 \begin_inset space ~
20703 in the document settings the option
20706 \begin_inset space ~
20710 \begin_inset space ~
20714 \begin_inset space ~
20722 \begin_layout Standard
20723 Please also have a look at section
20724 \begin_inset space ~
20728 \begin_inset CommandInset ref
20730 reference "sub:Footnote-Numbering"
20734 for the details and important notes about the numbering commands.
20737 \begin_layout Section
20739 \begin_inset CommandInset label
20741 name "sec:Referencing-Floats"
20746 \begin_inset Index idx
20749 \begin_layout Plain Layout
20750 Floats ! References
20756 \begin_inset Index idx
20759 \begin_layout Plain Layout
20760 References ! to Floats
20768 \begin_layout Standard
20769 To reference a float, insert a label into its caption using the menu
20771 Insert\SpecialChar \menuseparator
20774 or the toolbar button
20785 A grey label box like this one:
20786 \begin_inset Graphics
20787 filename clipart/labelQt4.png
20789 scaleBeforeRotation
20793 will be inserted and the label window pops up asking for the label text.
20794 LyX offers as text the first words of the caption with a prefix.
20795 The prefix depends on the float type, e.
20796 \begin_inset space \thinspace{}
20800 \begin_inset space \space{}
20803 for figure floats the prefix will be "
20810 \begin_layout Standard
20811 The label is used as anchor and name for the reference.
20812 You can refer to the label using the menu
20814 Insert\SpecialChar \menuseparator
20817 or the toolbar button
20822 arg "dialog-show-new-inset ref"
20828 A grey cross-reference box like this one:
20829 \begin_inset Graphics
20830 filename clipart/referenceQt4.png
20832 scaleBeforeRotation
20836 will be inserted and the cross-reference window appear showing all labels
20838 If you have multiple LyX-documents opened, choose the one you are working
20839 on from the drop-list at the top of the dialog.
20840 You can now sort the labels alphabetically and then choose one.
20841 At the position of the cross-reference box the float number will appear
20845 \begin_layout Standard
20846 It is recommended that you use a protected space between the cross-reference
20847 name and its number to avoid line breaks between them.
20848 If a cross-reference refers to a non-existing label, you will see two question
20849 marks in the output instead of the reference.
20852 \begin_layout Standard
20853 You can change labels at any time by clicking on the label box.
20854 References to the changed label will automatically change its link to the
20855 new label text, so that you don't need to take care about this.
20858 \begin_layout Standard
20862 \begin_inset space ~
20866 \begin_inset space ~
20871 in the cross-reference window sets the cursor before the referred label.
20872 The button text changes then to Go
20873 \begin_inset space ~
20876 Back and you can use it to set the cursor back to the cross-reference.
20877 Right-clicking on a cross-reference box also sets the cursor before the
20878 referenced label but without the possibility of going back.
20881 \begin_layout Subsection
20882 Cross-Reference Formats
20883 \begin_inset CommandInset label
20885 name "sub:Cross-Reference-Formats"
20890 \begin_inset Index idx
20893 \begin_layout Plain Layout
20894 References ! Formats
20902 \begin_layout Standard
20903 There are six varieties of cross-references:
20906 \begin_layout Description
20907 <reference>: prints the float number, this is the default:
20908 \begin_inset CommandInset ref
20910 reference "fig:Two-distorted-images"
20917 \begin_layout Description
20918 (<reference>): prints the float number within two parentheses, this is the
20919 style normally used to reference formulas, especially when the reference
20921 \begin_inset Quotes eld
20925 \begin_inset Quotes erd
20929 \begin_inset CommandInset ref
20938 \begin_layout Description
20939 <page>: prints the page number: Page
20940 \begin_inset space ~
20944 \begin_inset CommandInset ref
20945 LatexCommand pageref
20946 reference "fig:Two-distorted-images"
20953 \begin_layout Description
20955 \begin_inset space ~
20959 \begin_inset space ~
20962 <page>: prints the text "on page" and the page number:
20963 \begin_inset CommandInset ref
20964 LatexCommand vpageref
20965 reference "fig:Two-distorted-images"
20972 \begin_layout Description
20974 \begin_inset space ~
20978 \begin_inset space ~
20982 \begin_inset space ~
20985 <page>: prints the float number, the text "on page", and the page number:
20987 \begin_inset CommandInset ref
20989 reference "fig:Two-distorted-images"
20996 \begin_layout Description
20998 \begin_inset space ~
21001 reference: prints a self-defined cross-reference format.
21002 \begin_inset Newline newline
21006 \begin_inset Note Greyedout
21009 \begin_layout Plain Layout
21014 This feature is only available when you have the LaTeX-package
21023 \begin_inset Index idx
21026 \begin_layout Plain Layout
21027 LaTeX-packages ! prettyref
21033 \begin_inset Index idx
21036 \begin_layout Plain Layout
21037 LaTeX-packages ! refstyle
21048 \begin_inset Newline newline
21051 You can select which LaTeX-package should be used for this feature by setting
21054 Use refstyle (not prettyref) for cross-references
21058 Document\SpecialChar \menuseparator
21059 Settings\SpecialChar \menuseparator
21063 The format is specified by adding the command
21075 (refstyle) to the preamble of the document.
21076 For example redefining all references to figures (which have the label
21078 \begin_inset Quotes eld
21086 \begin_inset Quotes erd
21089 ) can be done with this command
21090 \begin_inset Newline newline
21097 newref{fig}{refcmd={Image on page
21102 \begin_inset Newline newline
21105 For more information about the format, have a look at the package documentations
21107 \begin_inset CommandInset citation
21109 key "prettyref,refstyle"
21116 \begin_layout Description
21118 \begin_inset space ~
21121 reference: prints the caption of the reference:
21122 \begin_inset CommandInset ref
21123 LatexCommand nameref
21124 reference "fig:Two-distorted-images"
21131 \begin_layout Standard
21136 will not print the page number if the label is on the previous, the same,
21139 \begin_inset space \thinspace{}
21143 \begin_inset space \space{}
21147 \begin_inset Quotes eld
21155 \begin_inset Quotes erd
21161 <reference> on page <page>
21163 will not print anything about the page if the label is on the same page.
21166 \begin_layout Standard
21167 The number and current page of the part of the document referred to in the
21168 output is automatically calculated by LaTeX.
21169 The varieties are adjusted in the field
21173 of the cross-reference window that appears when you click on the cross-referenc
21177 \begin_layout Standard
21178 \begin_inset Note Greyedout
21181 \begin_layout Plain Layout
21186 It is recommended to use the LaTeX-package
21191 \begin_inset Index idx
21194 \begin_layout Plain Layout
21195 LaTeX-packages ! refstyle
21205 \begin_inset Index idx
21208 \begin_layout Plain Layout
21209 LaTeX-packages ! prettyref
21214 does not know all of LyX's possible label shortcuts
21218 \begin_layout Plain Layout
21219 \begin_inset Quotes eld
21223 \begin_inset Quotes erd
21226 is for example LyX's shortcut for labels in figure captions.
21231 and is not internationalized.
21239 \begin_layout Standard
21240 \begin_inset Note Greyedout
21243 \begin_layout Plain Layout
21248 Due to a bug in the LaTeX-package
21252 version 1.4w, some cross-reference formats will cause LaTeX errors for document
21253 languages that make the period character active (like French).
21254 For a workaround, see
21255 \begin_inset Newline newline
21259 \begin_inset CommandInset href
21261 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
21273 \begin_layout Subsection
21274 Automatic Reference Naming
21275 \begin_inset Index idx
21278 \begin_layout Plain Layout
21279 References ! Automatic Reference Naming
21287 \begin_layout Standard
21293 \begin_inset Index idx
21296 \begin_layout Plain Layout
21297 LaTeX-packages ! hyperref
21302 , that is enabled in the
21310 dialog, provides a very useful feature that cross-references automatically
21311 include the name of the referenced floats (or text parts like
21316 So you will save having to write e.
21317 \begin_inset space \thinspace{}
21321 \begin_inset space \space{}
21325 \begin_inset Quotes eld
21329 \begin_inset Quotes erd
21332 before every reference to a figure.
21333 To use this feature, enable
21337 and insert this line to the LaTeX preamble:
21340 \begin_layout Standard
21356 \begin_layout Standard
21357 When you prefer other reference names than the default ones, for example
21358 you want instead of
21359 \begin_inset Quotes eld
21363 \begin_inset Quotes erd
21367 \begin_inset Quotes eld
21371 \begin_inset space \thinspace{}
21375 \begin_inset Quotes eld
21378 , you can redefine the name by inserting this in the preamble:
21381 \begin_layout Standard
21392 sectionautorefname}
21393 \begin_inset Newline newline
21397 \begin_inset Phantom HPhantom
21400 \begin_layout Plain Layout
21403 \begin_inset space ~
21416 \begin_layout Standard
21417 When you are using another document language than English, replace
21418 \begin_inset Newline newline
21433 , where *** is the name of the language used.
21436 \begin_layout Standard
21437 To get automatic names, but not for certain reference types, for example
21438 not for equations, use this preamble code:
21441 \begin_layout Standard
21449 \begin_inset Newline newline
21459 \begin_inset Newline newline
21470 equationautorefname}
21471 \begin_inset Newline newline
21475 \begin_inset Phantom HPhantom
21478 \begin_layout Plain Layout
21481 \begin_inset space ~
21496 \begin_layout Standard
21497 More about this topic can be found in
21502 \begin_inset CommandInset citation
21511 \begin_layout Standard
21512 \begin_inset Note Greyedout
21515 \begin_layout Plain Layout
21520 Automatic reference naming cannot be used when you use cross-references
21524 \begin_inset space ~
21529 style, as described in section
21530 \begin_inset space ~
21534 \begin_inset CommandInset ref
21536 reference "sub:Cross-Reference-Formats"
21548 \begin_layout Standard
21553 manual is an example where automatic reference naming is used.
21556 \begin_layout Subsection
21558 \begin_inset CommandInset label
21560 name "sub:Reference-Position"
21565 \begin_inset Index idx
21568 \begin_layout Plain Layout
21569 References ! Reference Position
21577 \begin_layout Standard
21583 \begin_inset Index idx
21586 \begin_layout Plain Layout
21587 LaTeX-packages ! hyperref
21600 dialog to link cross-references in the output, you will see that clicking
21601 on an image float reference jumps to the image label.
21602 The caption will be the first text part on the screen, so that you cannot
21603 see the image without scrolling.
21604 This is because the reference link anchor is placed at the position of
21606 With the use of the package
21611 \begin_inset Index idx
21614 \begin_layout Plain Layout
21615 LaTeX-packages ! hypcap
21620 , which is part of the LaTeX-package
21625 \begin_inset Index idx
21628 \begin_layout Plain Layout
21629 LaTeX-packages ! oberdiek
21634 , the link anchor is placed at the beginning of a float.
21635 To use this feature for figure floats, load
21639 in the document preamble with the line
21642 \begin_layout Standard
21647 usepackage[figure]{hypcap}
21650 \begin_layout Standard
21655 for all float types but this is not recommended for stability reasons.
21656 For more information, have a look at
21661 \begin_inset CommandInset citation
21670 \begin_layout Standard
21671 \begin_inset Note Greyedout
21674 \begin_layout Plain Layout
21683 has no effect on references to subfigures.
21691 \begin_layout Section
21693 \begin_inset CommandInset label
21695 name "sec:Float-Placement"
21700 \begin_inset Index idx
21703 \begin_layout Plain Layout
21712 \begin_layout Standard
21713 Right-clicking on a float-box opens a dialog where you can alter the placement
21714 options that LaTeX uses for positioning the float.
21715 \begin_inset Newline newline
21721 \begin_inset space ~
21726 is only useful for two-column documents: If you select it, the float will
21727 span both columns on the page instead of being confined to just one.
21728 \begin_inset Newline newline
21734 \begin_inset space ~
21739 is used to rotate floats, see section
21740 \begin_inset CommandInset ref
21742 reference "sec:Rotated-Floats"
21749 \begin_layout Standard
21750 You can use one ore more of the following options in the float dialog to
21751 set the placement for a particular float when you uncheck the option
21754 \begin_inset space ~
21758 \begin_inset space ~
21766 \begin_layout Description
21768 \begin_inset space ~
21772 \begin_inset space ~
21775 possible try to place the float on the position where it has been inserted
21778 \begin_layout Description
21780 \begin_inset space ~
21784 \begin_inset space ~
21787 page try to place the float at the top of the current page
21790 \begin_layout Description
21792 \begin_inset space ~
21796 \begin_inset space ~
21799 page try to place the float at the bottom of the current page
21802 \begin_layout Description
21804 \begin_inset space ~
21808 \begin_inset space ~
21811 floats try to place the float on its own page
21814 \begin_layout Standard
21815 The order of the above option is
21820 That means, if you use the default placement, LaTeX will first try out
21824 \begin_inset space ~
21828 \begin_inset space ~
21836 \begin_inset space ~
21840 \begin_inset space ~
21845 , and then the others.
21846 If you do not use the default, LaTeX will try only the checked options
21847 but in the same order.
21849 \begin_inset space ~
21852 placements are possible the procedure is internally repeated but it is tried
21853 to put the float on the following page.
21856 \begin_layout Standard
21857 By default, each option has its own rules:
21860 \begin_layout Labeling
21861 \labelwidthstring 00.00.0000
21865 \begin_inset space ~
21869 \begin_inset space ~
21874 only floats occupying less than 70
21875 \begin_inset space \thinspace{}
21878 % of the page can be placed at the top of a page (
21887 \begin_layout Labeling
21888 \labelwidthstring 00.00.0000
21892 \begin_inset space ~
21896 \begin_inset space ~
21901 : only floats occupying less than 30
21902 \begin_inset space \thinspace{}
21905 % of the page can be placed at the bottom of a page.
21915 \begin_layout Labeling
21916 \labelwidthstring 00.00.0000
21920 \begin_inset space ~
21924 \begin_inset space ~
21929 : only if more than 50
21930 \begin_inset space \thinspace{}
21933 % of the page are occupied by floats, several floats can be set together
21944 \begin_layout Standard
21945 If you don't like these rules, you can ignore them by using the additional
21949 \begin_inset space ~
21953 \begin_inset space ~
21959 \begin_inset Newline newline
21962 You can also redefine the rules with LaTeX-commands that are given in parenthese
21963 s after the rules description above.
21964 To increase for example the often too small default of the bottom-rule
21966 \begin_inset space \thinspace{}
21969 % of the page, add this line to your document preamble:
21972 \begin_layout Standard
21979 bottomfraction}{0.5}
21982 \begin_layout Standard
21983 Sometimes you might need, under all circumstances, a float to be placed
21984 exactly at the position where it is inserted.
21985 For this case you can use the option
21988 \begin_inset space ~
21994 Use this option very rarely and only if the document is almost ready to
21995 be printed, because the float is then no longer able to
21996 \begin_inset Quotes eld
22000 \begin_inset Quotes erd
22003 when you change your document and this will often destroy the page layout.
22006 \begin_layout Standard
22007 There are no placement options for text wrap floats, because they are always
22008 surrounded by the text of a certain paragraph.
22009 \begin_inset VSpace bigskip
22015 \begin_layout Standard
22016 Sometimes you have the problem that a float is placed at the top of a page
22017 while its corresponding section starts at the middle of the page, so that
22018 the reader could think the float is part of the previous section.
22019 To avoid this the LaTeX-command
22026 It suppresses a given float placement for the page where it is inserted
22027 and can therefore be used to avoid floats being set before a section starts.
22028 To get this, add these commands to your document preamble:
22031 \begin_layout Standard
22041 \begin_inset Newline newline
22055 \begin_layout Standard
22056 You can define the same for all section headings, like chapters and subsections.
22057 This definition is not recommended to be used for small text parts like
22058 subsubsections because LaTeX may then have problems finding a suitable
22062 \begin_layout Standard
22063 \begin_inset VSpace bigskip
22066 In some cases it is required to have all figures/tables at the end of the
22068 For this purpose the LaTeX-package
22073 \begin_inset Index idx
22076 \begin_layout Plain Layout
22077 LaTeX-packages ! endfloat
22083 It puts all figure and table floats at the end of the document into their
22085 At the original float position a text hint like
22086 \begin_inset Quotes eld
22092 \begin_inset space ~
22098 \begin_inset Quotes erd
22102 The endfloat-package is loaded in the preamble with the line
22105 \begin_layout Standard
22110 usepackage[options]{endfloat}
22113 \begin_layout Standard
22114 There are various package options to format the created figure/table sections.
22115 For more information we refer to the
22120 \begin_inset CommandInset citation
22127 \begin_inset Newline newline
22131 \begin_inset Note Greyedout
22134 \begin_layout Plain Layout
22139 doesn't provide an automatic translation for the text hint, you have to
22140 do this manually, see section
22141 \begin_inset space ~
22145 \begin_inset CommandInset citation
22157 \begin_inset Newline newline
22161 \begin_inset Note Greyedout
22164 \begin_layout Plain Layout
22169 There is currently a bug in
22173 when the caption contains a German
22174 \begin_inset Quotes eld
22178 \begin_inset Quotes erd
22182 Use in this case the command
22183 \begin_inset Quotes eld
22193 \begin_inset Quotes erd
22196 in TeX-Code instead of
22197 \begin_inset Quotes eld
22201 \begin_inset Quotes erd
22212 \begin_layout Standard
22213 \begin_inset VSpace bigskip
22216 For more details about float placements, have a look at LaTeX books,
22217 \begin_inset CommandInset citation
22219 key "latexcompanion,latexguide,latexbook"
22226 \begin_layout Section
22228 \begin_inset CommandInset label
22230 name "sec:Rotated-Floats"
22235 \begin_inset Index idx
22238 \begin_layout Plain Layout
22247 \begin_layout Standard
22248 Especially for wide tables you might have floats rotated.
22249 To rotate a whole float including the caption, right-click on the float-box
22253 \begin_inset space ~
22261 \begin_layout Standard
22262 Rotated floats are always placed on a page of their own (or column of their
22263 own; in case you have a multi-column document).
22264 You can let them span several columns using the float settings option
22267 \begin_inset space ~
22273 Floats are rotated so that you can read them from the outside margin.
22274 To force a certain rotation direction for all pages, you can add either
22283 to the document class options.
22286 \begin_layout Standard
22287 Referencing rotated floats is the same as for normal floats, the caption
22288 format is also the same: Table
22289 \begin_inset space ~
22293 \begin_inset CommandInset ref
22295 reference "tab:Rotated-table"
22299 is an example of a rotated table float.
22302 \begin_layout Standard
22303 \begin_inset Note Greyedout
22306 \begin_layout Plain Layout
22311 Not all DVI-viewers are able to display rotated floats.
22319 \begin_layout Standard
22320 \begin_inset Float table
22325 \begin_layout Plain Layout
22326 \begin_inset Caption
22328 \begin_layout Plain Layout
22329 \begin_inset CommandInset label
22331 name "tab:Rotated-table"
22343 \begin_layout Plain Layout
22345 \begin_inset Tabular
22346 <lyxtabular version="3" rows="1" columns="5">
22347 <features tabularvalignment="middle">
22348 <column alignment="center" valignment="top" width="0">
22349 <column alignment="center" valignment="top" width="0">
22350 <column alignment="center" valignment="top" width="0">
22351 <column alignment="center" valignment="top" width="0">
22352 <column alignment="center" valignment="top" width="0">
22354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22357 \begin_layout Plain Layout
22363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22366 \begin_layout Plain Layout
22372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22375 \begin_layout Plain Layout
22381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22384 \begin_layout Plain Layout
22390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22393 \begin_layout Plain Layout
22412 \begin_layout Section
22414 \begin_inset Index idx
22417 \begin_layout Plain Layout
22426 \begin_layout Standard
22427 Subfloats are for example used when a figure consists of several images.
22428 They are created by inserting a float into an existing float.
22429 The placement of the subfloats can be controlled in the same way as for
22430 paragraphs as shown in table
22431 \begin_inset space ~
22435 \begin_inset CommandInset ref
22437 reference "tab:Two-subtables-side"
22442 \begin_inset CommandInset ref
22444 reference "tab:Two-subtables-upon"
22451 \begin_layout Standard
22452 Referencing subfloats works as for normal floats: Table
22453 \begin_inset space ~
22457 \begin_inset CommandInset ref
22459 reference "tab:This-is-subtable-a"
22464 \begin_inset CommandInset ref
22466 reference "tab:This-is-subtable-b"
22470 are subtables of table
22471 \begin_inset space ~
22475 \begin_inset CommandInset ref
22477 reference "tab:Two-subtables-side"
22484 \begin_layout Standard
22485 \begin_inset Float table
22490 \begin_layout Plain Layout
22491 \begin_inset Caption
22493 \begin_layout Plain Layout
22494 \begin_inset CommandInset label
22496 name "tab:Two-subtables-side"
22500 Two subtables placed side by side.
22508 \begin_layout Plain Layout
22510 \begin_inset space \hfill{}
22514 \begin_inset Float table
22519 \begin_layout Plain Layout
22520 \begin_inset Caption
22522 \begin_layout Plain Layout
22523 \begin_inset CommandInset label
22525 name "tab:This-is-subtable-a"
22529 This is subtable a.
22537 \begin_layout Plain Layout
22539 \begin_inset Tabular
22540 <lyxtabular version="3" rows="1" columns="5">
22541 <features tabularvalignment="middle">
22542 <column alignment="center" valignment="top" width="0">
22543 <column alignment="center" valignment="top" width="0">
22544 <column alignment="center" valignment="top" width="0">
22545 <column alignment="center" valignment="top" width="0">
22546 <column alignment="center" valignment="top" width="0">
22548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22551 \begin_layout Plain Layout
22557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22560 \begin_layout Plain Layout
22566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22569 \begin_layout Plain Layout
22575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22578 \begin_layout Plain Layout
22584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22587 \begin_layout Plain Layout
22604 \begin_inset space \hfill{}
22608 \begin_inset Float table
22613 \begin_layout Plain Layout
22614 \begin_inset Caption
22616 \begin_layout Plain Layout
22617 \begin_inset CommandInset label
22619 name "tab:This-is-subtable-b"
22623 This is subtable b.
22631 \begin_layout Plain Layout
22633 \begin_inset Tabular
22634 <lyxtabular version="3" rows="1" columns="5">
22635 <features tabularvalignment="middle">
22636 <column alignment="center" valignment="top" width="0">
22637 <column alignment="center" valignment="top" width="0">
22638 <column alignment="center" valignment="top" width="0">
22639 <column alignment="center" valignment="top" width="0">
22640 <column alignment="center" valignment="top" width="0">
22642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22645 \begin_layout Plain Layout
22651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22654 \begin_layout Plain Layout
22660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22663 \begin_layout Plain Layout
22669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22672 \begin_layout Plain Layout
22678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22681 \begin_layout Plain Layout
22698 \begin_inset space \hfill{}
22709 \begin_layout Standard
22710 \begin_inset Float table
22715 \begin_layout Plain Layout
22716 \begin_inset Caption
22718 \begin_layout Plain Layout
22719 \begin_inset CommandInset label
22721 name "tab:Two-subtables-upon"
22725 Two subtables placed one above the other.
22726 (a) table with 4 cells, (b) table with 5 cells.
22734 \begin_layout Plain Layout
22736 \begin_inset Float table
22741 \begin_layout Plain Layout
22742 \begin_inset Caption
22744 \begin_layout Plain Layout
22753 \begin_layout Plain Layout
22755 \begin_inset Tabular
22756 <lyxtabular version="3" rows="1" columns="4">
22757 <features tabularvalignment="middle">
22758 <column alignment="center" valignment="top" width="0">
22759 <column alignment="center" valignment="top" width="0">
22760 <column alignment="center" valignment="top" width="0">
22761 <column alignment="center" valignment="top" width="0">
22763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22766 \begin_layout Plain Layout
22772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22775 \begin_layout Plain Layout
22781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22784 \begin_layout Plain Layout
22790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22793 \begin_layout Plain Layout
22812 \begin_layout Plain Layout
22814 \begin_inset Float table
22819 \begin_layout Plain Layout
22820 \begin_inset Caption
22822 \begin_layout Plain Layout
22831 \begin_layout Plain Layout
22833 \begin_inset Tabular
22834 <lyxtabular version="3" rows="1" columns="5">
22835 <features tabularvalignment="middle">
22836 <column alignment="center" valignment="top" width="0">
22837 <column alignment="center" valignment="top" width="0">
22838 <column alignment="center" valignment="top" width="0">
22839 <column alignment="center" valignment="top" width="0">
22840 <column alignment="center" valignment="top" width="0">
22842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22845 \begin_layout Plain Layout
22851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22854 \begin_layout Plain Layout
22860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22863 \begin_layout Plain Layout
22869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22872 \begin_layout Plain Layout
22878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22881 \begin_layout Plain Layout
22905 \begin_layout Section
22906 Floats Side by Side
22907 \begin_inset Index idx
22910 \begin_layout Plain Layout
22911 Floats ! Side by side
22919 \begin_layout Standard
22920 To place floats side by side, as in Figures
22921 \begin_inset space ~
22925 \begin_inset CommandInset ref
22927 reference "fig:Float-left"
22932 \begin_inset CommandInset ref
22934 reference "fig:Float-right"
22943 In it two minipage boxes are inserted.
22947 \begin_layout Plain Layout
22948 Minipages are explained in section
22949 \begin_inset space ~
22953 \begin_inset CommandInset ref
22955 reference "sec:Minipages"
22964 The width is set to 45
22965 \begin_inset space \thinspace{}
22969 \begin_inset space \thinspace{}
22972 column% and the box alignment to
22977 The minipage boxes contain the image and the caption in the same way as
22978 they are in a float.
22979 The only difference is that the image unit
22982 \begin_inset space ~
22986 \begin_inset space ~
22991 is now calculated according to the width of the minipage boxes.
22994 \begin_layout Standard
22995 \begin_inset Float figure
23000 \begin_layout Plain Layout
23001 \begin_inset Box Frameless
23011 height_special "totalheight"
23014 \begin_layout Plain Layout
23016 \begin_inset Graphics
23017 filename clipart/mobius.eps
23020 scaleBeforeRotation
23027 \begin_layout Plain Layout
23028 \begin_inset Caption
23030 \begin_layout Plain Layout
23031 \begin_inset CommandInset label
23033 name "fig:Float-left"
23037 Float on the left side.
23048 \begin_inset space \hfill{}
23052 \begin_inset Box Frameless
23062 height_special "totalheight"
23065 \begin_layout Plain Layout
23067 \begin_inset Graphics
23068 filename clipart/platypus.eps
23071 scaleBeforeRotation
23078 \begin_layout Plain Layout
23079 \begin_inset Caption
23081 \begin_layout Plain Layout
23082 \begin_inset CommandInset label
23084 name "fig:Float-right"
23088 Float on the right side.
23101 \begin_layout Plain Layout
23110 \begin_layout Section
23112 \begin_inset Index idx
23115 \begin_layout Plain Layout
23116 Caption ! Formatting
23122 \begin_inset Index idx
23125 \begin_layout Plain Layout
23126 Floats ! Caption Formatting
23132 \begin_inset CommandInset label
23134 name "sec:Caption-Formatting"
23141 \begin_layout Standard
23146 environment is the default paragraph environment for
23151 On the LyX screen captions appear as label, e.
23152 \begin_inset space \thinspace{}
23156 \begin_inset space \space{}
23160 \begin_inset Quotes eld
23168 \begin_inset Quotes erd
23171 followed by the caption text.
23173 \begin_inset Quotes eld
23177 \begin_inset Quotes erd
23180 is the actual reference number.
23181 By default the label and the number are in the same font as the caption
23182 text and a colon follows the number to divide the label from the text.
23183 This caption format is not suitable for all document formats.
23187 \begin_layout Standard
23188 To change the default caption format, load the LaTeX-package
23193 \begin_inset Index idx
23196 \begin_layout Plain Layout
23197 LaTeX-packages ! caption
23202 in the document preamble with this line:
23205 \begin_layout Standard
23210 usepackage[format definition]{caption}
23213 \begin_layout Standard
23214 To have for example the label and the number in sans-serif bold font and
23215 the table captions always above the table as in this document, use the
23219 \begin_layout Standard
23224 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
23227 \begin_layout Standard
23228 You can also define different caption formats for the different float types.
23229 In this case load the
23233 package without format specific options and define the different formats
23234 with the help of the command
23237 \begin_layout Standard
23242 captionsetup[float type]{format definition}
23245 \begin_layout Standard
23246 in the document preamble.
23247 For example the caption formats of Figure
23248 \begin_inset space ~
23252 \begin_inset CommandInset ref
23254 reference "fig:This-is-an-fig"
23259 \begin_inset space ~
23263 \begin_inset CommandInset ref
23265 reference "tab:This-is-an-tab"
23269 can be created using these commands in the document preamble:
23272 \begin_layout Standard
23277 usepackage[tableposition=top]{caption}
23280 \begin_inset Newline newline
23287 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
23288 \begin_inset Newline newline
23292 \begin_inset Phantom HPhantom
23295 \begin_layout Plain Layout
23300 captionsetup[figure]{
23306 \begin_inset Newline newline
23311 captionsetup[table]{labelfont={bf,sf}}
23314 \begin_layout Standard
23315 \begin_inset Note Greyedout
23318 \begin_layout Plain Layout
23327 has no effect when a
23332 \begin_inset Index idx
23335 \begin_layout Plain Layout
23336 LaTeX-packages ! KOMA-Script
23341 document class is used.
23342 In this case the document class option
23344 captions=tableheading
23354 \begin_layout Standard
23355 For more information about the package
23359 we refer to its documentation
23360 \begin_inset CommandInset citation
23369 \begin_layout Standard
23370 To change the label name from e.
23371 \begin_inset space \thinspace{}
23375 \begin_inset space \space{}
23379 \begin_inset Quotes eld
23383 \begin_inset Quotes erd
23387 \begin_inset Quotes eld
23391 \begin_inset Quotes erd
23394 use this preamble command:
23397 \begin_layout Standard
23404 fnum@figure}{Image~
23409 \begin_layout Standard
23416 inserts the figure number and
23419 \begin_inset Quotes eld
23425 \begin_inset Quotes erd
23428 creates a protected space.
23431 \begin_layout Standard
23432 \begin_inset VSpace bigskip
23440 \begin_inset Index idx
23443 \begin_layout Plain Layout
23444 LaTeX-packages ! KOMA-Script
23451 article (KOMA-Script)
23459 letter (KOMA-Script)
23463 report (KOMA-Script)
23466 \begin_inset space \thinspace{}
23469 ), you can alternatively to the
23477 's built-in command
23484 For example, to have the caption label in bold, add this command to your
23488 \begin_layout Standard
23493 setkomafont{captionlabel}{
23498 \begin_layout Standard
23499 For more information about
23510 \begin_inset CommandInset citation
23519 \begin_layout Standard
23523 \begin_layout Plain Layout
23527 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23534 \begin_inset Note Note
23537 \begin_layout Plain Layout
23538 The caption format is changed only for this example.
23546 \begin_layout Standard
23547 \begin_inset Float figure
23553 \begin_layout Plain Layout
23555 \begin_inset Graphics
23556 filename clipart/mobius.eps
23559 scaleBeforeRotation
23566 \begin_layout Plain Layout
23567 \begin_inset Caption
23569 \begin_layout Plain Layout
23570 \begin_inset CommandInset label
23572 name "fig:This-is-an-fig"
23576 This is an example figure caption that is longer than one line to show the
23577 different caption format.
23578 Here a self-defined caption format is used.
23591 \begin_layout Standard
23595 \begin_layout Plain Layout
23599 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23608 \begin_layout Standard
23609 \begin_inset Float table
23615 \begin_layout Plain Layout
23616 \begin_inset Caption
23618 \begin_layout Plain Layout
23619 \begin_inset CommandInset label
23621 name "tab:This-is-an-tab"
23625 This is an example table caption that is longer than one line to show the
23626 different caption format.
23627 Here the standard caption format for tables in this document is used.
23635 \begin_layout Plain Layout
23637 \begin_inset Tabular
23638 <lyxtabular version="3" rows="1" columns="5">
23639 <features tabularvalignment="middle">
23640 <column alignment="center" valignment="top" width="0">
23641 <column alignment="center" valignment="top" width="0">
23642 <column alignment="center" valignment="top" width="0">
23643 <column alignment="center" valignment="top" width="0">
23644 <column alignment="center" valignment="top" width="0">
23646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23649 \begin_layout Plain Layout
23655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23658 \begin_layout Plain Layout
23664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23667 \begin_layout Plain Layout
23673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23676 \begin_layout Plain Layout
23682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23685 \begin_layout Plain Layout
23704 \begin_layout Section
23706 \begin_inset Index idx
23709 \begin_layout Plain Layout
23710 Caption ! Placement
23716 \begin_inset Index idx
23719 \begin_layout Plain Layout
23720 Floats ! Caption Placement
23726 \begin_inset CommandInset label
23728 name "sec:Caption-Placement"
23735 \begin_layout Standard
23736 The common caption placement rule is:
23739 \begin_layout Description
23740 Figure: Caption is set below the figure
23743 \begin_layout Description
23744 Table: Caption is set above the table
23747 \begin_layout Standard
23748 Having the caption above the table is unfortunately not supported in LaTeX's
23750 That means if you are using the document classes
23766 there will be no space between the caption and the table.
23767 To insert the necessary space, add the following option to the load command
23768 of the LaTeX-package
23772 in your document preamble
23776 \begin_layout Plain Layout
23778 \begin_inset space ~
23782 \begin_inset CommandInset ref
23784 reference "sec:Caption-Formatting"
23788 for more information of the package
23800 \begin_layout Standard
23806 \begin_layout Standard
23812 \begin_inset Index idx
23815 \begin_layout Plain Layout
23816 LaTeX-packages ! KOMA-Script
23823 article (KOMA-Script)
23831 letter (KOMA-Script)
23835 report (KOMA-Script)
23838 \begin_inset space \thinspace{}
23841 ), you can alternatively to the
23845 package set the document class option
23847 captions=tableheading
23852 \begin_layout Standard
23853 \begin_inset VSpace bigskip
23856 It is also possible to set the caption beside a figure or table.
23857 To get this the LaTeX-package
23862 \begin_inset Index idx
23865 \begin_layout Plain Layout
23866 LaTeX-packages ! sidecap
23871 has to be loaded in the document preamble with the line
23874 \begin_layout Standard
23879 usepackage[option]{sidecap}
23882 \begin_layout Standard
23883 If you set no option, the caption is placed on the side of the outer page
23884 margin – to the right on odd pages, to the left on even pages.
23885 You can change the placement to inner margin with the option
23890 To force the placement always to the right or left, use the option
23901 \begin_layout Standard
23905 \begin_layout Plain Layout
23915 \begin_inset Note Note
23918 \begin_layout Plain Layout
23919 The following section will only be displayed when the LaTeX-package
23931 \begin_layout Standard
23932 To place in LyX the caption of a float on the side, it is necessary to add
23933 these commands to the document preamble:
23936 \begin_layout Standard
23937 \begin_inset Newpage pagebreak
23943 \begin_layout Standard
23945 \begin_inset CommandInset line
23956 \begin_layout Standard
23963 TabBesBeg}[1][1.0]{%
23964 \begin_inset Newline newline
23968 \begin_inset Phantom HPhantom
23971 \begin_layout Plain Layout
23972 \begin_inset space ~
23987 \begin_inset Newline newline
23991 \begin_inset Phantom HPhantom
23994 \begin_layout Plain Layout
23997 \begin_inset space ~
24012 \begin_inset Newline newline
24016 \begin_inset Phantom HPhantom
24019 \begin_layout Plain Layout
24022 \begin_inset space ~
24032 renewenvironment{table}[1]{
24034 begin{SCtable}[#1]##1}{
24039 \begin_layout Standard
24047 \begin_inset Newline newline
24051 \begin_inset Phantom HPhantom
24054 \begin_layout Plain Layout
24055 \begin_inset space ~
24070 \begin_inset Newline newline
24074 \begin_inset Phantom HPhantom
24077 \begin_layout Plain Layout
24078 \begin_inset space ~
24095 \begin_layout Standard
24102 FigBesBeg}[1][1.0]{%
24103 \begin_inset Newline newline
24107 \begin_inset Phantom HPhantom
24110 \begin_layout Plain Layout
24111 \begin_inset space ~
24126 \begin_inset Newline newline
24130 \begin_inset Phantom HPhantom
24133 \begin_layout Plain Layout
24134 \begin_inset space ~
24149 \begin_inset Newline newline
24153 \begin_inset Phantom HPhantom
24156 \begin_layout Plain Layout
24157 \begin_inset space ~
24167 renewenvironment{figure}[1]{
24169 begin{SCfigure}[#1]##1}{
24174 \begin_layout Standard
24182 \begin_inset Newline newline
24186 \begin_inset Phantom HPhantom
24189 \begin_layout Plain Layout
24190 \begin_inset space ~
24205 \begin_inset Newline newline
24209 \begin_inset Phantom HPhantom
24212 \begin_layout Plain Layout
24213 \begin_inset space ~
24230 \begin_layout Standard
24232 \begin_inset CommandInset line
24243 \begin_layout Standard
24244 The commands allow you to redefine the floats so that the caption is set
24246 For figure floats use the command
24249 \begin_layout Standard
24257 \begin_layout Standard
24258 in TeX-Code before the float.
24259 And insert the command
24262 \begin_layout Standard
24270 \begin_layout Standard
24271 in TeX-Code at the point where you want to get back to the original float
24275 \begin_layout Standard
24276 For table floats use the corresponding commands
24279 \begin_layout Standard
24293 \begin_layout Standard
24295 \begin_inset space ~
24299 \begin_inset CommandInset ref
24301 reference "fig:cap-beside-fig"
24306 \begin_inset space ~
24310 \begin_inset CommandInset ref
24312 reference "tab:cap-beside-tab"
24316 are examples where the caption is set beside.
24319 \begin_layout Standard
24320 You can see in the examples that the caption text appears at the top of
24321 the floats for table floats and at the bottom for figure floats.
24322 To change this, you can use the command
24325 \begin_layout Standard
24330 sidecaptionvpos{float type}{placement}
24333 \begin_layout Standard
24334 in the document preamble or in TeX-Code before the float.
24335 The float type is either
24343 , the placement can be
24344 \begin_inset Quotes eld
24352 \begin_inset Quotes erd
24356 \begin_inset Quotes eld
24364 \begin_inset Quotes erd
24368 \begin_inset Quotes eld
24376 \begin_inset Quotes erd
24380 To have for example the caption of figure floats vertically centered, use
24384 \begin_layout Standard
24389 sidecaptionvpos{figure}{c}
24392 \begin_layout Standard
24393 This was used for Figure
24394 \begin_inset space ~
24398 \begin_inset CommandInset ref
24400 reference "fig:cap-beside-fig-2"
24407 \begin_layout Standard
24408 \begin_inset VSpace medskip
24414 \begin_layout Standard
24415 The default caption width is the width of the image/table.
24416 For thin image/tables, like in Table
24417 \begin_inset space ~
24421 \begin_inset CommandInset ref
24423 reference "tab:cap-beside-tab"
24427 , this leads to captions that are too thin.
24428 You can increase the width by specifying a factor that will be multiplied
24429 with the image/table width to get the caption width.
24430 The caption width will automatically be recalculated in case it would protrude
24431 over the page or column margin due to the specified width.
24436 can either be given as optional argument for
24445 \begin_layout Standard
24453 \begin_layout Standard
24454 or in the definition of
24464 with another value.
24465 If you do the latter, your factor will be the default if
24471 is used without an argument.
24473 \begin_inset space ~
24477 \begin_inset CommandInset ref
24479 reference "tab:cap-beside-tab-wider"
24483 the factor 5 was used.
24486 \begin_layout Standard
24487 \begin_inset Note Greyedout
24490 \begin_layout Plain Layout
24495 For floats with captions set beside, you cannot use the float placement
24499 \begin_inset space ~
24504 because it is not supported by
24516 \begin_layout Standard
24517 \begin_inset VSpace medskip
24520 For more information about the package
24524 we refer to its documentation
24525 \begin_inset CommandInset citation
24534 \begin_layout Standard
24535 \begin_inset Note Greyedout
24538 \begin_layout Plain Layout
24548 \begin_inset Index idx
24551 \begin_layout Plain Layout
24552 LaTeX-packages ! hypcap
24557 , described in section
24558 \begin_inset space ~
24562 \begin_inset CommandInset ref
24564 reference "sub:Reference-Position"
24568 , has no effect on floats with the caption set beside.
24576 \begin_layout Standard
24580 \begin_layout Plain Layout
24592 \begin_layout Standard
24593 \begin_inset Float figure
24598 \begin_layout Plain Layout
24599 \begin_inset Graphics
24600 filename clipart/escher-lsd.eps
24602 scaleBeforeRotation
24609 \begin_layout Plain Layout
24610 \begin_inset Caption
24612 \begin_layout Plain Layout
24613 \begin_inset CommandInset label
24615 name "fig:cap-beside-fig"
24619 This is a caption beside a figure.
24632 \begin_layout Standard
24636 \begin_layout Plain Layout
24648 \begin_layout Standard
24652 \begin_layout Plain Layout
24664 \begin_layout Standard
24665 \begin_inset Float table
24670 \begin_layout Plain Layout
24671 \begin_inset Caption
24673 \begin_layout Plain Layout
24674 \begin_inset CommandInset label
24676 name "tab:cap-beside-tab"
24680 This is a caption beside a table.
24688 \begin_layout Plain Layout
24689 \begin_inset Tabular
24690 <lyxtabular version="3" rows="4" columns="5">
24691 <features tabularvalignment="middle">
24692 <column alignment="center" valignment="top" width="0">
24693 <column alignment="center" valignment="top" width="0">
24694 <column alignment="center" valignment="top" width="0">
24695 <column alignment="center" valignment="top" width="0">
24696 <column alignment="center" valignment="top" width="0">
24698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24701 \begin_layout Plain Layout
24707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24710 \begin_layout Plain Layout
24716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24719 \begin_layout Plain Layout
24725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24728 \begin_layout Plain Layout
24734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24737 \begin_layout Plain Layout
24745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24748 \begin_layout Plain Layout
24754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24757 \begin_layout Plain Layout
24763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24766 \begin_layout Plain Layout
24772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24775 \begin_layout Plain Layout
24781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24784 \begin_layout Plain Layout
24792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24795 \begin_layout Plain Layout
24801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24804 \begin_layout Plain Layout
24810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24813 \begin_layout Plain Layout
24819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24822 \begin_layout Plain Layout
24828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24831 \begin_layout Plain Layout
24839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24842 \begin_layout Plain Layout
24848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24851 \begin_layout Plain Layout
24857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24860 \begin_layout Plain Layout
24866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24869 \begin_layout Plain Layout
24875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24878 \begin_layout Plain Layout
24897 \begin_layout Standard
24901 \begin_layout Plain Layout
24913 \begin_layout Standard
24917 \begin_layout Plain Layout
24921 sidecaptionvpos{figure}{c}
24927 \begin_inset Float figure
24932 \begin_layout Plain Layout
24933 \begin_inset Graphics
24934 filename clipart/escher-lsd.eps
24936 scaleBeforeRotation
24943 \begin_layout Plain Layout
24944 \begin_inset Caption
24946 \begin_layout Plain Layout
24947 \begin_inset CommandInset label
24949 name "fig:cap-beside-fig-2"
24953 This is a vertically centered caption beside a figure.
24966 \begin_layout Standard
24970 \begin_layout Plain Layout
24982 \begin_layout Standard
24986 \begin_layout Plain Layout
24998 \begin_layout Standard
24999 \begin_inset Float table
25004 \begin_layout Plain Layout
25005 \begin_inset Caption
25007 \begin_layout Plain Layout
25008 \begin_inset CommandInset label
25010 name "tab:cap-beside-tab-wider"
25014 This is a caption is wider than the one in Table
25015 \begin_inset space ~
25019 \begin_inset CommandInset ref
25021 reference "tab:cap-beside-tab"
25033 \begin_layout Plain Layout
25034 \begin_inset Tabular
25035 <lyxtabular version="3" rows="4" columns="5">
25036 <features tabularvalignment="middle">
25037 <column alignment="center" valignment="top" width="0">
25038 <column alignment="center" valignment="top" width="0">
25039 <column alignment="center" valignment="top" width="0">
25040 <column alignment="center" valignment="top" width="0">
25041 <column alignment="center" valignment="top" width="0">
25043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25046 \begin_layout Plain Layout
25052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25055 \begin_layout Plain Layout
25061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25064 \begin_layout Plain Layout
25070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25073 \begin_layout Plain Layout
25079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25082 \begin_layout Plain Layout
25090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25093 \begin_layout Plain Layout
25099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25102 \begin_layout Plain Layout
25108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25111 \begin_layout Plain Layout
25117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25120 \begin_layout Plain Layout
25126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25129 \begin_layout Plain Layout
25137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25140 \begin_layout Plain Layout
25146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25149 \begin_layout Plain Layout
25155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25158 \begin_layout Plain Layout
25164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25167 \begin_layout Plain Layout
25173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25176 \begin_layout Plain Layout
25184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25187 \begin_layout Plain Layout
25193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25196 \begin_layout Plain Layout
25202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25205 \begin_layout Plain Layout
25211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25214 \begin_layout Plain Layout
25220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25223 \begin_layout Plain Layout
25242 \begin_layout Standard
25246 \begin_layout Plain Layout
25258 \begin_layout Standard
25262 \begin_layout Plain Layout
25272 \begin_inset Note Note
25275 \begin_layout Plain Layout
25276 The following will be displayed when the LaTeX-package
25288 \begin_layout Standard
25289 You need to install the LaTeX-package
25293 to see the following part of this section in the output.
25296 \begin_layout Standard
25300 \begin_layout Plain Layout
25312 \begin_layout Section
25314 \begin_inset Index idx
25317 \begin_layout Plain Layout
25318 Floats ! Float Lists
25326 \begin_layout Standard
25327 Similar to the table of contents where the sections of the document are
25328 listed, there are listings for all float types, like the figures of the
25330 You can insert them via the
25332 Insert\SpecialChar \menuseparator
25334 \begin_inset space ~
25338 \begin_inset space ~
25346 \begin_layout Standard
25347 The list entries are the float captions or its short title, the float number,
25348 and the page number where they appear in the document.
25351 \begin_layout Standard
25352 You can find the list of figures and tables at the end of this document.
25355 \begin_layout Chapter
25359 \begin_layout Section
25361 \begin_inset Index idx
25364 \begin_layout Plain Layout
25373 \begin_layout Standard
25374 Notes are inserted with the toolbar button
25386 Insert\SpecialChar \menuseparator
25390 There are three types of notes:
25393 \begin_layout Description
25395 \begin_inset space ~
25398 Note This note type is for internal notes that won't appear in the output.
25399 Its note-box looks like this:
25400 \begin_inset Newline newline
25404 \begin_inset Newline newline
25408 \begin_inset Graphics
25409 filename clipart/LyXNoteImageQt4.png
25412 scaleBeforeRotation
25417 \begin_inset Note Note
25420 \begin_layout Plain Layout
25421 This is text in a note box that doesn't appear in the output.
25429 \begin_layout Description
25430 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
25431 ent, when you export the document to LaTeX via the menu
25433 File\SpecialChar \menuseparator
25434 Export\SpecialChar \menuseparator
25435 LaTeX (pdflatex) / (plain)
25438 Its note-box looks like this:
25439 \begin_inset Newline newline
25443 \begin_inset Newline newline
25447 \begin_inset Graphics
25448 filename clipart/CommentNoteImageQt4.png
25451 scaleBeforeRotation
25456 \begin_inset Note Comment
25459 \begin_layout Plain Layout
25460 This is text in a note box that only appears as comment in LaTeX-files.
25468 \begin_layout Description
25470 \begin_inset space ~
25473 Out This note will appear in the output as grey text.
25474 Its note-box looks like this:
25475 \begin_inset Newline newline
25479 \begin_inset Newline newline
25483 \begin_inset Graphics
25484 filename clipart/GreyedOutNoteImageQt4.png
25487 scaleBeforeRotation
25492 \begin_inset Newline newline
25499 \begin_layout Plain Layout
25503 renewenvironment{lyxgreyedout}
25506 \begin_layout Plain Layout
25510 textcolor[gray]{0.8}
25520 \begin_inset Note Greyedout
25523 \begin_layout Plain Layout
25528 \begin_layout Plain Layout
25529 This is an example footnote within a greyed out note.
25534 of a comment that appears in the output as grey text.
25543 \begin_layout Plain Layout
25547 renewenvironment{lyxgreyedout}
25550 \begin_layout Plain Layout
25564 \begin_inset Note Note
25567 \begin_layout Plain Layout
25568 The greyed out note is here redefined to show it with the original LyX definitio
25569 n because greyed out notes are redefined in the preamble of this document,
25570 as described below, to have blue text.
25576 \begin_inset Newline newline
25580 \begin_inset Newline newline
25583 As you can see in the example, the first line of greyed out notes is a bit
25584 indented and greyed out notes can have footnotes.
25587 \begin_layout Standard
25588 \begin_inset VSpace bigskip
25591 When you use the toolbar button
25604 \begin_inset space ~
25610 You can switch between the five note types by right-clicking on the note-box.
25615 If you want to turn existing text into a note, mark it and click on the
25629 To change a note to text, press the backspace key when the cursor is in
25630 the first position of a note, or press the delete key when the cursor is
25631 in the very last position of the note, respectively.
25634 \begin_layout Standard
25635 \begin_inset VSpace bigskip
25638 You can change the text color of the greyed out notes in the menu
25640 Document\SpecialChar \menuseparator
25641 Settings\SpecialChar \menuseparator
25647 \begin_layout Section
25649 \begin_inset CommandInset label
25651 name "sec:Footnotes"
25656 \begin_inset Index idx
25659 \begin_layout Plain Layout
25666 \begin_inset Index idx
25669 \begin_layout Plain Layout
25678 \begin_layout Standard
25679 Footnotes can be inserted using the toolbar button
25684 arg "footnote-insert"
25691 Insert\SpecialChar \menuseparator
25703 then the following footnote-box:
25704 \begin_inset Graphics
25705 filename clipart/footnoteQt4.png
25707 scaleBeforeRotation
25715 where you can enter the footnote text.
25716 If you want to turn existing text into a footnote, mark it and click on
25742 key when the cursor is in the first position of a
25754 key when the cursor is in the very last position of the
25765 \begin_layout Standard
25766 Here is an example footnote:
25774 \begin_layout Plain Layout
25775 \begin_inset CommandInset label
25777 name "foot:This-is-an"
25781 This is an example footnote.
25794 \begin_layout Plain Layout
25798 newcounter{MyRepeatFoot}
25801 \begin_layout Plain Layout
25805 setcounter{MyRepeatFoot}{
25815 \begin_layout Standard
25816 The footnote will appear in the output as a superscript number at the text
25817 position where the footnote box is placed.
25818 The footnote text is placed at the bottom of the current page.
25819 The footnote number is calculated by LaTeX; the numbers are consecutive.
25820 It depends on your document-class, whether the footnote number is reset
25824 \begin_layout Standard
25825 Footnotes can be referenced like floats: Insert a label into the footnote
25826 and cross-reference this label in the text as described in section
25827 \begin_inset space ~
25831 \begin_inset CommandInset ref
25833 reference "sec:Referencing-Floats"
25838 \begin_inset Newline newline
25841 This is a cross-reference of Footnote
25842 \begin_inset space ~
25846 \begin_inset CommandInset ref
25848 reference "foot:This-is-an"
25855 \begin_layout Standard
25856 \begin_inset VSpace defskip
25859 Footnotes in tables are not printed by LaTeX due to technical reasons.
25860 However there exists another method to print them: Instead of the footnote
25867 is inserted as TeX-code.
25868 The text of the footnote is entered as an argument of the TeX-code command
25876 \begin_inset Newline newline
25879 This was done for the following table with the command
25882 \begin_layout Standard
25889 Printed table footnote.
25894 \begin_layout Standard
25895 \begin_inset Tabular
25896 <lyxtabular version="3" rows="2" columns="1">
25897 <features tabularvalignment="middle">
25898 <column alignment="center" valignment="top" width="0">
25900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25903 \begin_layout Plain Layout
25904 This an example text.
25908 \begin_layout Plain Layout
25909 This footnote will not be printed!
25921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25924 \begin_layout Plain Layout
25925 This an example text.
25929 \begin_layout Plain Layout
25952 \begin_layout Plain Layout
25961 Printed table footnote.
25965 \begin_layout Plain Layout
25975 \begin_layout Standard
25976 Footnotes in longtables are described in section
25977 \begin_inset space ~
25981 \begin_inset CommandInset ref
25983 reference "sub:Footnotes-in-Longtables"
25990 \begin_layout Standard
25991 Footnotes in minipage boxes are printed, but inside the box and with a different
25992 numbering because a minipage box is like a page inside a page.
25993 (For more about minipages, see section
25994 \begin_inset space ~
25998 \begin_inset CommandInset ref
26000 reference "sec:Minipages"
26004 .) To get a footnote in the minipage that is output at the bottom of the
26005 page like normal footnotes, also use the method of
26020 \begin_layout Standard
26021 \begin_inset Box Frameless
26031 height_special "totalheight"
26034 \begin_layout Plain Layout
26035 This an example text in a minipage.
26039 \begin_layout Plain Layout
26040 Footnote in the minipage.
26048 \begin_layout Plain Layout
26049 This an example text in a minipage.
26053 \begin_layout Plain Layout
26070 \begin_layout Standard
26074 \begin_layout Plain Layout
26083 Footnote outside the minipage.
26087 \begin_layout Plain Layout
26097 \begin_layout Standard
26098 \begin_inset VSpace defskip
26104 \begin_layout Standard
26105 To refer to the same footnote several times without printing the footnote
26106 text every time, use the command
26110 footnotemark[number]
26113 \begin_inset Newline newline
26116 As you do not know the number of the repeating footnote while you are writing
26117 the text, you have to store its number.
26118 For the following footnote mark example, these commands were inserted in
26119 TeX-code after Footnote
26120 \begin_inset space ~
26124 \begin_inset CommandInset ref
26126 reference "foot:This-is-an"
26130 to store the footnote number:
26133 \begin_layout Standard
26138 newcounter{MyRepeatFoot}
26139 \begin_inset Newline newline
26144 setcounter{MyRepeatFoot}{
26149 \begin_layout Standard
26150 The footnote mark was then created with this command:
26153 \begin_layout Standard
26163 \begin_layout Standard
26164 Here is a repeated footnote:
26172 \begin_layout Plain Layout
26186 \begin_layout Standard
26187 If you want to repeat the previous footnote, you can omit the storage of
26188 the footnote number and just use this command instead:
26191 \begin_layout Standard
26201 \begin_layout Standard
26202 Here is another repeated footnote:
26210 \begin_layout Plain Layout
26224 \begin_layout Subsection
26226 \begin_inset CommandInset label
26228 name "sub:Footnote-Numbering"
26233 \begin_inset Index idx
26236 \begin_layout Plain Layout
26237 Footnotes ! Numbering
26245 \begin_layout Standard
26246 To reset the footnote number back to 1 after each section
26248 , add this command to your document preamble:
26251 \begin_layout Standard
26256 @addtoreset{footnote}{section}
26259 \begin_layout Standard
26260 \begin_inset VSpace bigskip
26263 The following preamble command changes the footnote numbering style to small
26267 \begin_layout Standard
26279 \begin_layout Standard
26283 \begin_layout Plain Layout
26296 This is a footnote with roman numbering:
26300 \begin_layout Plain Layout
26301 This is an example footnote with roman numbering.
26309 \begin_layout Standard
26310 To change the numbering style to capital roman numerals replace in the command
26325 \begin_inset Quotes eld
26329 \begin_inset Quotes erd
26332 footnotes with capital or small Latin letters use
26346 \begin_inset Quotes eld
26350 \begin_inset Quotes erd
26353 footnotes with symbols use
26362 \begin_layout Standard
26363 \begin_inset Note Greyedout
26366 \begin_layout Plain Layout
26371 You can only number 26 footnotes with Latin letters, because this numbering
26372 is limited to single letters.
26378 \begin_inset Newline newline
26382 \begin_inset Note Greyedout
26385 \begin_layout Plain Layout
26390 You can only number 9 footnotes with symbols.
26398 \begin_layout Standard
26399 To return to the default numbering style after you have changed to another
26412 in the command above.
26416 \begin_layout Plain Layout
26432 \begin_layout Standard
26433 \begin_inset VSpace bigskip
26439 \begin_layout Standard
26440 If you want to have footnotes numbered in the scheme
26441 \begin_inset Quotes eld
26445 \begin_inset Quotes erd
26448 , add the following command to your document preamble:
26451 \begin_layout Standard
26456 numberwithin{footnote}{chapter}
26459 \begin_layout Standard
26460 To be able to use the command
26469 \begin_inset space ~
26474 in the document settings the option
26477 \begin_inset space ~
26481 \begin_inset space ~
26485 \begin_inset space ~
26493 \begin_layout Standard
26497 \begin_layout Plain Layout
26501 numberwithin{footnote}{chapter}
26506 This is another example footnote:
26512 \begin_layout Plain Layout
26513 This is a footnote numbered in the scheme
26514 \begin_inset Quotes eld
26518 \begin_inset Quotes erd
26532 \begin_layout Plain Layout
26548 \begin_layout Standard
26549 \begin_inset Note Greyedout
26552 \begin_layout Plain Layout
26563 always prints out the footnote number as arabic number; previous redefinitions
26564 to get non-arabic numbers are overwritten.
26572 \begin_layout Standard
26573 So to get for example the scheme
26574 \begin_inset Quotes eld
26580 \begin_inset Quotes erd
26583 , use this command instead of
26592 \begin_layout Standard
26606 \begin_layout Subsection
26608 \begin_inset Index idx
26611 \begin_layout Plain Layout
26612 Footnotes ! Placement
26620 \begin_layout Standard
26621 If you have several footnotes in one page, they appear without vertical
26622 space between them at the bottom of the page.
26623 To make them more readable you can e.
26624 \begin_inset space \thinspace{}
26628 \begin_inset space \space{}
26632 \begin_inset space \thinspace{}
26635 mm space with the following preamble command:
26638 \begin_layout Standard
26648 \begin_inset Newline newline
26662 \begin_layout Standard
26663 \begin_inset VSpace bigskip
26666 In a two-column document the footnotes appear at the bottom of every column,
26668 \begin_inset space ~
26672 \begin_inset CommandInset ref
26674 reference "fig:Standard-footnote-placement"
26679 If the footnotes should only appear at the bottom of the right column,
26681 \begin_inset space ~
26685 \begin_inset CommandInset ref
26687 reference "fig:Footnote-placement-in"
26691 , use the LaTeX-package
26696 \begin_inset Index idx
26699 \begin_layout Plain Layout
26700 LaTeX-packages ! ftnright
26705 with this command in the document preamble:
26708 \begin_layout Standard
26713 usepackage{ftnright}
26716 \begin_layout Standard
26717 \begin_inset Float figure
26723 \begin_layout Plain Layout
26727 \begin_layout Plain Layout
26737 \begin_inset Graphics
26738 filename clipart/without_fntright.pdf
26740 scaleBeforeRotation
26748 \begin_layout Plain Layout
26758 \begin_layout Plain Layout
26759 \begin_inset Caption
26761 \begin_layout Plain Layout
26762 \begin_inset CommandInset label
26764 name "fig:Standard-footnote-placement"
26768 Standard footnote placement in two-column documents.
26781 \begin_layout Standard
26782 \begin_inset Float figure
26788 \begin_layout Plain Layout
26792 \begin_layout Plain Layout
26802 \begin_inset Graphics
26803 filename clipart/with_fntright.pdf
26805 scaleBeforeRotation
26813 \begin_layout Plain Layout
26823 \begin_layout Plain Layout
26824 \begin_inset Caption
26826 \begin_layout Plain Layout
26827 \begin_inset CommandInset label
26829 name "fig:Footnote-placement-in"
26833 Footnote placement in two-column documents when the LaTeX-package
26850 \begin_layout Standard
26851 \begin_inset VSpace bigskip
26854 In some scientific literature it is usual to collect the footnotes and print
26855 them in a separate paragraph at the end of a section, as in Figure
26856 \begin_inset space ~
26860 \begin_inset CommandInset ref
26862 reference "fig:Endnotes"
26867 They are then called
26868 \begin_inset Quotes eld
26872 \begin_inset Quotes erd
26876 \begin_inset Index idx
26879 \begin_layout Plain Layout
26885 To use endnotes instead of footnotes in your document, load in the menu
26888 Document\SpecialChar \menuseparator
26889 Settings\SpecialChar \menuseparator
26895 \begin_inset space ~
26899 \begin_inset space ~
26905 To insert the collected footnotes, insert the command
26908 \begin_layout Standard
26916 \begin_layout Standard
26917 in TeX-Code at the end of a section or chapter.
26920 \begin_layout Standard
26921 \begin_inset Float figure
26926 \begin_layout Plain Layout
26931 \begin_layout Plain Layout
26941 \begin_inset Graphics
26942 filename clipart/endnotes.pdf
26943 scaleBeforeRotation
26951 \begin_layout Plain Layout
26961 \begin_layout Plain Layout
26962 \begin_inset Caption
26964 \begin_layout Plain Layout
26965 \begin_inset CommandInset label
26967 name "fig:Endnotes"
26971 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26985 \begin_layout Standard
26986 \begin_inset VSpace medskip
26989 The paragraph heading for the endnotes isn't automatically translated into
26990 the document language, this must be done manually.
26991 The following preamble command translates the default English
26992 \begin_inset Quotes eld
26996 \begin_inset Quotes erd
27000 \begin_inset Quotes eld
27004 \begin_inset Quotes erd
27010 \begin_layout Standard
27017 notesname}{Anmerkungen}
27020 \begin_layout Standard
27021 \begin_inset VSpace medskip
27024 The numbering of endnotes can be changed like the footnote numbering as
27025 described in section
27026 \begin_inset space ~
27030 \begin_inset CommandInset ref
27032 reference "sub:Footnote-Numbering"
27036 ; just replace the command
27049 To reset the endnote number use the command
27055 as described in section
27056 \begin_inset space ~
27060 \begin_inset CommandInset ref
27062 reference "sub:Footnote-Numbering"
27066 and replace the command parameter
27077 \begin_layout Standard
27078 For endnotes there is the command
27082 endnotemark[number]
27084 similar to the command
27090 , that is described in section
27091 \begin_inset space ~
27095 \begin_inset CommandInset ref
27097 reference "sec:Footnotes"
27104 \begin_layout Standard
27105 \begin_inset VSpace bigskip
27108 Footnotes can also be placed in the page margin and the footnote text alignment
27109 can be changed, see the LaTeX-package
27114 \begin_inset Index idx
27117 \begin_layout Plain Layout
27118 LaTeX-packages ! footmisc
27124 \begin_inset CommandInset citation
27130 for more information about this.
27133 \begin_layout Standard
27134 For various further footnote formatting issues have a look at LaTeX-books,
27136 \begin_inset CommandInset citation
27138 key "latexcompanion,latexguide,latexbook"
27148 \begin_inset Index idx
27151 \begin_layout Plain Layout
27152 LaTeX-packages ! KOMA-Script
27157 document class, you can adjust all footnote settings using class-specific
27159 \begin_inset CommandInset citation
27168 \begin_layout Section
27170 \begin_inset Index idx
27173 \begin_layout Plain Layout
27174 Notes ! Margin Notes
27182 \begin_layout Standard
27183 Margin notes look and behave in LyX like footnotes.
27184 They are inserted via the menu
27186 Insert\SpecialChar \menuseparator
27188 \begin_inset space ~
27193 or the toolbar button
27198 arg "marginalnote-insert"
27214 \begin_inset Quotes eld
27218 \begin_inset Quotes erd
27221 appears where you can enter the text of the margin note.
27224 \begin_layout Standard
27225 At the side is an example margin note.
27230 \begin_inset Marginal
27233 \begin_layout Plain Layout
27234 This is a margin note.
27242 \begin_layout Standard
27243 Margin notes appear at the right side in single-sided documents.
27244 In double-sided documents they appear in the outer margin – left on even
27245 pages, right on odd pages.
27246 The text of margin notes is aligned opposite to the outer margin – right-aligne
27247 d when the note appears in the left margin.
27248 The first line of the margin note is placed at the position of the text
27249 line where it is inserted in the document.
27252 \begin_layout Standard
27253 \begin_inset VSpace bigskip
27256 To place the margin note in the inner margin, add the command
27259 \begin_layout Standard
27267 \begin_layout Standard
27268 in TeX-Code before a margin note.
27269 The new placement is valid for all subsequent margin notes.
27274 \begin_layout Plain Layout
27284 \begin_inset Marginal
27287 \begin_layout Plain Layout
27288 This is a margin note in the inner margin.
27296 \begin_inset Newline newline
27302 \begin_inset Note Greyedout
27305 \begin_layout Plain Layout
27310 There is often not enough space in the inner margin so that the notes are
27311 not correctly displayed in the output.
27319 \begin_layout Standard
27320 To return to the default placement insert the command
27323 \begin_layout Standard
27331 \begin_layout Standard
27336 \begin_layout Plain Layout
27346 \begin_inset Note Greyedout
27349 \begin_layout Plain Layout
27354 The command is ignored when it is within a paragraph where also the command
27369 \begin_layout Standard
27370 \begin_inset VSpace bigskip
27377 \begin_inset Marginal
27380 \begin_layout Plain Layout
27381 AVeryLongMarginParWord that isn't hyphenated.
27389 Similar to the case described in section
27390 \begin_inset space ~
27394 \begin_inset CommandInset ref
27396 reference "sub:Multiple-Lines-in"
27400 , long words cannot be hyphenated when they are the first word in a margin
27402 To avoid this, insert 0
27403 \begin_inset space \thinspace{}
27406 pt horizontal space before the word
27411 \begin_inset Marginal
27414 \begin_layout Plain Layout
27415 \begin_inset space \hspace*{}
27419 AVeryLongMarginParWord that is hyphenated.
27427 \begin_layout Standard
27428 \begin_inset VSpace bigskip
27434 \begin_layout Standard
27435 \begin_inset Note Greyedout
27438 \begin_layout Plain Layout
27443 Margin notes can normally not be used inside tables, floats, and footnotes.
27451 \begin_layout Standard
27452 \begin_inset VSpace bigskip
27458 \begin_layout Standard
27462 \begin_layout Plain Layout
27472 \begin_inset Note Note
27475 \begin_layout Plain Layout
27476 The following section will only be displayed when the LaTeX-package
27488 \begin_layout Standard
27489 This restriction can be evaded by using the LaTeX-package
27494 \begin_inset Index idx
27497 \begin_layout Plain Layout
27498 LaTeX-packages ! marginnote
27504 By adding these two lines to your document preamble, the command used by
27505 LyX for margin notes is redefined to use the command provided by the
27512 \begin_layout Standard
27517 usepackage{marginnote}
27518 \begin_inset Newline newline
27530 \begin_layout Standard
27531 This is also used in this document because
27535 has another useful feature: You can set a vertical offset for the note.
27536 This is often needed when too many margin notes are too close together
27537 or for a better page layout.
27538 The offset is set in LyX as TeX-Code directly after the margin note in
27542 \begin_layout Standard
27548 \begin_layout Standard
27549 where the offset is a length with one of the units listed in Table
27550 \begin_inset space ~
27554 \begin_inset CommandInset ref
27556 reference "tab:Units"
27561 A negative value shifts the note up, a positive value shifts it down.
27565 For example the margin note beside this text line is shifted up 1.5
27566 \begin_inset space \thinspace{}
27569 cm with the TeX-Code-command
27570 \begin_inset Quotes eld
27580 \begin_inset Quotes erd
27584 \begin_inset Marginal
27587 \begin_layout Plain Layout
27588 This margin note is shifted up 1.5
27589 \begin_inset space \thinspace{}
27592 cm from its original position.
27604 \begin_layout Plain Layout
27614 \begin_layout Standard
27615 \begin_inset VSpace medskip
27622 you can also change the alignment of the text in the margin note.
27623 For example the commands
27626 \begin_layout Standard
27633 raggedleftmarginnote}{
27636 \begin_inset Newline newline
27643 raggedrightmarginnote}{
27648 \begin_layout Standard
27649 set the alignment to centered.
27654 raggedleftmarginnote
27656 denotes margin notes that appear at the left side.
27663 \begin_layout Plain Layout
27669 raggedleftmarginnote}{
27674 \begin_layout Plain Layout
27680 raggedrightmarginnote}{
27688 \begin_inset Marginal
27691 \begin_layout Plain Layout
27692 The text of this margin note is centered.
27703 \begin_layout Standard
27710 raggedleftmarginnote}{
27713 \begin_inset Newline newline
27720 raggedrightmarginnote}{
27729 \begin_layout Plain Layout
27735 raggedleftmarginnote}{
27740 \begin_layout Plain Layout
27746 raggedrightmarginnote}{
27756 \begin_layout Standard
27757 \begin_inset VSpace medskip
27760 For the other features of
27764 refer to its documentation
27765 \begin_inset CommandInset citation
27774 \begin_layout Standard
27775 \begin_inset VSpace bigskip
27778 You can adjust the layout of margin notes by changing its definition.
27779 To create for example a header for all margin notes with the underlined,
27780 sans-serif, and bold header text
27781 \begin_inset Quotes eld
27793 \begin_inset Quotes erd
27796 , add this to your document preamble:
27799 \begin_layout Standard
27809 \begin_inset Newline newline
27819 \begin_inset Newline newline
27823 \begin_inset Phantom HPhantom
27826 \begin_layout Plain Layout
27829 \begin_inset space ~
27845 underbar{Attention!}}}%
27846 \begin_inset Newline newline
27850 \begin_inset Phantom HPhantom
27853 \begin_layout Plain Layout
27856 \begin_inset space ~
27873 \begin_layout Standard
27880 \begin_layout Plain Layout
27891 \begin_layout Plain Layout
27902 \begin_layout Plain Layout
27910 underbar{Attention!}}}%
27913 \begin_layout Plain Layout
27927 \begin_inset Marginal
27930 \begin_layout Plain Layout
27931 This is a margin note with a defined heading.
27943 \begin_layout Plain Layout
27957 \begin_layout Plain Layout
27974 \begin_inset Note Note
27977 \begin_layout Plain Layout
27978 The margin note format is changed only for this example.
27986 \begin_layout Standard
27990 \begin_layout Plain Layout
28000 \begin_inset Note Note
28003 \begin_layout Plain Layout
28004 The following will be displayed when the LaTeX-package
28016 \begin_layout Standard
28017 You need to install the LaTeX-package
28021 to see the following part of this section in the output.
28024 \begin_layout Standard
28028 \begin_layout Plain Layout
28040 \begin_layout Chapter
28044 \begin_layout Section
28046 \begin_inset Index idx
28049 \begin_layout Plain Layout
28050 Boxes ! Introduction
28058 \begin_layout Standard
28059 Boxes are used to format a block of text.
28060 Boxes can be used to write documents with multiple languages, see section
28061 \begin_inset space ~
28065 \begin_inset CommandInset ref
28067 reference "sec:Minipages"
28071 , to frame texts, see section
28072 \begin_inset space ~
28076 \begin_inset CommandInset ref
28078 reference "sec:Decoration"
28082 , to prevent words from being hyphenated, see section
28083 \begin_inset space ~
28087 \begin_inset CommandInset ref
28089 reference "sec:Prevent-Hyphenation"
28093 , to align text, see section
28094 \begin_inset space ~
28098 \begin_inset CommandInset ref
28100 reference "sub:Vertical-Alignment"
28104 , or to set the background color of texts, see section
28105 \begin_inset space ~
28109 \begin_inset CommandInset ref
28111 reference "sec:Colored-Boxes"
28118 \begin_layout Standard
28119 Boxes can be inserted with the menu
28121 Insert\SpecialChar \menuseparator
28124 or the toolbar button
28129 arg "box-insert Frameless"
28135 A grey box with the label
28140 \begin_inset Graphics
28141 filename clipart/BoxInsetDefaultQt4.png
28143 scaleBeforeRotation
28148 The box type can be specified by right-clicking on the box and selecting
28154 The box dialog offers the
28157 \begin_inset space ~
28179 is the default for new boxes and is explained in section
28180 \begin_inset space ~
28184 \begin_inset CommandInset ref
28186 reference "sec:Minipages"
28194 is described in section
28195 \begin_inset space ~
28199 \begin_inset CommandInset ref
28201 reference "sec:Parboxes"
28210 \begin_inset CommandInset ref
28212 reference "sec:Prevent-Hyphenation"
28219 \begin_layout Standard
28220 Boxes are not numbered and can therefore not be referenced like floats or
28224 \begin_layout Standard
28225 \begin_inset Note Greyedout
28228 \begin_layout Plain Layout
28233 Boxes must not be the item in an
28249 \begin_layout Standard
28250 \begin_inset Note Greyedout
28253 \begin_layout Plain Layout
28258 For an unknown reason you can only set the
28261 \begin_inset space ~
28270 when you use a framed box.
28274 \begin_inset space ~
28279 type and without frames are explained in section
28280 \begin_inset space ~
28284 \begin_inset CommandInset ref
28286 reference "sec:Prevent-Hyphenation"
28298 \begin_layout Section
28300 \begin_inset CommandInset label
28302 name "sec:Box-Dialog"
28307 \begin_inset Index idx
28310 \begin_layout Plain Layout
28319 \begin_layout Subsection
28321 \begin_inset Index idx
28324 \begin_layout Plain Layout
28333 \begin_layout Standard
28334 In the box dialog you can adjust the box geometry in the fields
28343 The available units for the geometry are explained in Table
28344 \begin_inset space ~
28348 \begin_inset CommandInset ref
28350 reference "tab:Units"
28359 offers the following additional sizes:
28362 \begin_layout Description
28363 Depth This is the plain text
28364 \begin_inset Quotes eld
28368 \begin_inset Quotes erd
28372 It ignores the total depth when there are multiple text lines in the box:
28373 \begin_inset Newline newline
28377 \begin_inset Newline newline
28381 \begin_inset Newline newline
28385 \begin_inset Box Boxed
28395 height_special "depth"
28398 \begin_layout Plain Layout
28400 Box height set to 1
28401 \begin_inset space \thinspace{}
28410 \begin_inset Newline newline
28414 \begin_inset Newline newline
28420 \begin_layout Description
28421 Height This is the height of the text that is inside the box.
28423 \begin_inset space \thinspace{}
28427 \begin_inset space \space{}
28430 2 for this size will set the box height to 2
28431 \begin_inset space ~
28434 times the text height:
28435 \begin_inset Box Boxed
28445 height_special "height"
28448 \begin_layout Plain Layout
28450 Box height set to 2
28451 \begin_inset space \thinspace{}
28462 \begin_layout Description
28464 \begin_inset space ~
28467 Height This is the Height
28468 \begin_inset space \thinspace{}
28472 \begin_inset space \thinspace{}
28476 \begin_inset Box Boxed
28486 height_special "totalheight"
28489 \begin_layout Plain Layout
28491 Box height set to 1
28492 \begin_inset space \thinspace{}
28496 \begin_inset space ~
28507 \begin_layout Description
28508 Width This sets the width of the box as height:
28509 \begin_inset Box Boxed
28519 height_special "width"
28522 \begin_layout Plain Layout
28524 Box height set to 1
28525 \begin_inset space \thinspace{}
28536 \begin_layout Subsection
28538 \begin_inset Index idx
28541 \begin_layout Plain Layout
28550 \begin_layout Standard
28551 When you have chosen an
28554 \begin_inset space ~
28559 , the vertical box alignment can be:
28562 \begin_layout Description
28563 Top This is an example text line.
28565 \begin_inset Box Boxed
28575 height_special "totalheight"
28578 \begin_layout Plain Layout
28580 This box is top-aligned.
28585 This is an example text line.
28588 \begin_layout Description
28589 Middle This is an example text line.
28591 \begin_inset Box Boxed
28601 height_special "totalheight"
28604 \begin_layout Plain Layout
28606 This box is middle-aligned.
28611 This is an example text line.
28614 \begin_layout Description
28615 Bottom This is an example text line.
28617 \begin_inset Box Boxed
28627 height_special "totalheight"
28630 \begin_layout Plain Layout
28632 This box is bottom-aligned.
28637 This is an example text line.
28640 \begin_layout Standard
28641 \begin_inset Note Greyedout
28644 \begin_layout Plain Layout
28649 The vertical box alignment can be lost in the output when you have two
28650 boxes in a line and one has e.
28651 \begin_inset space \thinspace{}
28655 \begin_inset space \space{}
28658 a shadow and the other one not.
28666 \begin_layout Standard
28667 The horizontal box alignment can be set via LyX's paragraph dialog when
28668 you set the box into its own paragraph.
28671 \begin_layout Standard
28672 \begin_inset VSpace bigskip
28675 When you have chosen an
28678 \begin_inset space ~
28683 , the box content can be aligned vertically to:
28686 \begin_layout Description
28687 top This is an example text line.
28689 \begin_inset Box Boxed
28699 height_special "totalheight"
28702 \begin_layout Plain Layout
28704 This box text is top-aligned.
28709 This is an example text line.
28712 \begin_layout Description
28713 middle This is an example text line.
28715 \begin_inset Box Boxed
28725 height_special "totalheight"
28728 \begin_layout Plain Layout
28730 This box text is middle-aligned.
28735 This is an example text line.
28738 \begin_layout Description
28739 bottom This is an example text line.
28741 \begin_inset Box Boxed
28751 height_special "totalheight"
28754 \begin_layout Plain Layout
28756 This box text is bottom-aligned.
28761 This is an example text line.
28764 \begin_layout Description
28765 stretch This is an example text line.
28767 \begin_inset Box Boxed
28777 height_special "totalheight"
28780 \begin_layout Plain Layout
28785 \begin_layout Plain Layout
28790 \begin_layout Plain Layout
28797 This is an example text line.
28800 \begin_layout Standard
28801 To stretch the box content, it must consist of more than one paragraph.
28802 In the example above every text line is in an own paragraph.
28805 \begin_layout Standard
28806 \begin_inset VSpace bigskip
28809 To align the box content horizontally you can use LyX's paragraph dialog
28810 when you have chosen an
28813 \begin_inset space ~
28821 \begin_layout Standard
28823 \begin_inset Box Boxed
28833 height_special "totalheight"
28836 \begin_layout Plain Layout
28841 \begin_layout Plain Layout
28846 \begin_layout Plain Layout
28856 \begin_layout Standard
28857 If you have not set an
28860 \begin_inset space ~
28865 , you can align the box content horizontally in the box dialog.
28868 \begin_layout Standard
28870 \begin_inset Box Boxed
28880 height_special "totalheight"
28883 \begin_layout Plain Layout
28884 This box text is horizontally stretched.
28892 \begin_layout Subsection
28894 \begin_inset CommandInset label
28896 name "sec:Decoration"
28901 \begin_inset Index idx
28904 \begin_layout Plain Layout
28913 \begin_layout Standard
28914 The type of the box can be specified in the box dialog in the drop-down
28920 The following types are possible:
28923 \begin_layout Description
28925 \begin_inset space ~
28928 frame Nothing is drawn.
28931 \begin_layout Description
28933 \begin_inset space ~
28937 \begin_inset space ~
28940 frame This draws a rectangular frame around the box.
28941 The frame line thickness has the size of
28949 \begin_inset Box Boxed
28959 height_special "totalheight"
28962 \begin_layout Plain Layout
28972 \begin_layout Description
28974 \begin_inset space ~
28978 \begin_inset space ~
28981 thin This draws an oval frame around the box.
28982 The frame line thickness has the size 0.4
28983 \begin_inset space \thinspace{}
28988 \begin_inset Box ovalbox
28998 height_special "totalheight"
29001 \begin_layout Plain Layout
29011 \begin_layout Description
29013 \begin_inset space ~
29017 \begin_inset space ~
29020 thick This draws an oval frame around the box.
29021 The frame line thickness has the size 0.8
29022 \begin_inset space \thinspace{}
29027 \begin_inset Box Ovalbox
29037 height_special "totalheight"
29040 \begin_layout Plain Layout
29050 \begin_layout Description
29052 \begin_inset space ~
29055 shadow This draws a rectangular frame with a shadow around the box.
29056 The frame line thickness has the size of
29062 , the shadow has a width of 4
29063 \begin_inset space \thinspace{}
29068 \begin_inset Box Shadowbox
29078 height_special "totalheight"
29081 \begin_layout Plain Layout
29091 \begin_layout Description
29093 \begin_inset space ~
29096 background This draws a box with a red background.
29097 Unlike colored boxes
29101 \begin_layout Plain Layout
29103 \begin_inset space \thinspace{}
29107 \begin_inset CommandInset ref
29109 reference "sec:Colored-Boxes"
29118 , it always uses the whole column width and the box is set as its own paragraph.
29120 \begin_inset Box Shaded
29130 height_special "totalheight"
29133 \begin_layout Plain Layout
29134 Shaded background box
29142 \begin_layout Description
29144 \begin_inset space ~
29148 \begin_inset space ~
29151 frame This draws a double-line rectangular frame around the box.
29152 The line thickness of the inner frame is 0.75
29153 \begin_inset space \thinspace{}
29162 , the thickness of the outer frame is 1.5
29163 \begin_inset space \thinspace{}
29173 The distance between the lines is 1.5
29174 \begin_inset space \thinspace{}
29184 \begin_inset space \thinspace{}
29188 \begin_inset space \thinspace{}
29192 \begin_inset space \thinspace{}
29197 \begin_inset Box Doublebox
29207 height_special "totalheight"
29210 \begin_layout Plain Layout
29212 Double rectangular box
29220 \begin_layout Standard
29221 \begin_inset VSpace bigskip
29224 LyX's box label will reflect the different frame types.
29225 To be able to use all types, the LaTeX-package
29230 \begin_inset Index idx
29233 \begin_layout Plain Layout
29234 LaTeX-packages ! fancybox
29242 \begin_layout Standard
29243 \begin_inset VSpace bigskip
29246 When you use the decoration
29248 simple rectangular frame
29250 and no inner box, you can allow page breaks within a box.
29251 Note that then, unlike other framed boxes, the frame always uses the whole
29252 column width, the box is set as its own paragraph, and
29264 have no effect on this box type.
29265 The frame line thickness has the size of
29273 \begin_inset Box Framed
29283 height_special "totalheight"
29286 \begin_layout Plain Layout
29287 Allow page break box
29295 \begin_layout Section
29297 \begin_inset Index idx
29300 \begin_layout Plain Layout
29301 Boxes ! Customization
29309 \begin_layout Standard
29310 The default value for the size
29317 \begin_inset space \thinspace{}
29321 It can be changed with the following command in TeX-code to e.
29322 \begin_inset space \thinspace{}
29326 \begin_inset space \space{}
29330 \begin_inset space \thinspace{}
29336 \begin_layout Standard
29346 \begin_layout Standard
29350 \begin_layout Plain Layout
29362 \begin_inset Box Boxed
29372 height_special "totalheight"
29375 \begin_layout Plain Layout
29377 Rectangular box with
29384 \begin_inset space \thinspace{}
29388 \begin_inset space \thinspace{}
29392 \begin_inset space \thinspace{}
29404 \begin_layout Plain Layout
29418 \begin_layout Standard
29419 \begin_inset VSpace bigskip
29422 The space between the frame and the box content is for all frame styles
29424 \begin_inset space \thinspace{}
29428 You can change it by setting the length
29435 For example the command
29438 \begin_layout Standard
29448 \begin_layout Standard
29449 sets the value to 10
29450 \begin_inset space \thinspace{}
29453 pt, as with the following box:
29456 \begin_layout Standard
29460 \begin_layout Plain Layout
29472 \begin_inset Box Boxed
29482 height_special "totalheight"
29485 \begin_layout Plain Layout
29487 Rectangular box with
29494 \begin_inset space \thinspace{}
29498 \begin_inset space \thinspace{}
29502 \begin_inset space \thinspace{}
29514 \begin_layout Plain Layout
29528 \begin_layout Standard
29529 \begin_inset VSpace bigskip
29532 The diameter of the round corners of the oval boxes can be set with the
29543 \begin_layout Standard
29551 \begin_layout Standard
29552 sets the diameter to 1
29553 \begin_inset space \thinspace{}
29560 \begin_layout Standard
29568 \begin_layout Standard
29569 sets the diameter to
29572 \begin_inset space \thinspace{}
29576 \begin_inset space \thinspace{}
29579 minimum(width and height of box)
29591 \begin_layout Standard
29595 \begin_layout Plain Layout
29605 \begin_inset Box Ovalbox
29615 height_special "totalheight"
29618 \begin_layout Plain Layout
29627 \begin_inset space \thinspace{}
29631 \begin_inset space \thinspace{}
29635 \begin_inset space \thinspace{}
29647 \begin_layout Plain Layout
29659 \begin_layout Standard
29660 \begin_inset VSpace bigskip
29663 The size of the shadow can be adjusted by changing the length
29671 \begin_inset space \thinspace{}
29674 pt for the following box by this command:
29677 \begin_layout Standard
29687 \begin_layout Standard
29691 \begin_layout Plain Layout
29703 \begin_inset Box Shadowbox
29713 height_special "totalheight"
29716 \begin_layout Plain Layout
29725 \begin_inset space \thinspace{}
29729 \begin_inset space \thinspace{}
29733 \begin_inset space \thinspace{}
29745 \begin_layout Plain Layout
29759 \begin_layout Standard
29760 \begin_inset VSpace bigskip
29766 \begin_layout Standard
29767 The default value for the size
29774 \begin_inset space \thinspace{}
29778 The default space between the note content and the frame is 9
29779 \begin_inset space \thinspace{}
29782 pt and can be changed with the value of
29789 For example the frame appearance of the following
29793 is set with the TeX-Code commands
29796 \begin_layout Standard
29804 \begin_inset Newline newline
29814 \begin_layout Standard
29818 \begin_layout Plain Layout
29827 \begin_layout Plain Layout
29839 \begin_inset Box Framed
29849 height_special "totalheight"
29852 \begin_layout Plain Layout
29866 \begin_layout Plain Layout
29875 \begin_layout Plain Layout
29889 \begin_layout Standard
29890 \begin_inset VSpace bigskip
29896 \begin_layout Standard
29901 boxes the default space between the box content and the box border is 3
29902 \begin_inset space \thinspace{}
29905 pt and can be changed with the value of
29912 The default background color red can either be changed locally with the
29917 definecolor{shadecolor}
29919 or globally with the menu
29921 Tools\SpecialChar \menuseparator
29922 Preferences\SpecialChar \menuseparator
29923 Colors\SpecialChar \menuseparator
29925 \begin_inset space ~
29937 command is explained in section
29938 \begin_inset space ~
29942 \begin_inset CommandInset ref
29944 reference "sec:Colored-Tables"
29952 \begin_layout Plain Layout
29959 requires the LaTeX-package
29963 in the preamble, see section
29964 \begin_inset space ~
29968 \begin_inset CommandInset ref
29970 reference "sec:Colored-Boxes"
29979 For example the appearance of the following shaded background box is set
29980 with the TeX-Code commands
29983 \begin_layout Standard
29993 \begin_inset Newline newline
30000 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
30003 \begin_layout Standard
30007 \begin_layout Plain Layout
30016 \begin_layout Plain Layout
30020 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
30026 \begin_inset Box Shaded
30036 height_special "totalheight"
30039 \begin_layout Plain Layout
30042 This is yellow text in a
30052 box with dark green background.
30061 \begin_layout Plain Layout
30070 \begin_layout Plain Layout
30074 definecolor{shadecolor}{rgb}{1,0,0}
30082 \begin_layout Standard
30083 \begin_inset VSpace bigskip
30086 Changed lengths and widths are valid for all boxes following the commands
30090 \begin_layout Section
30092 \begin_inset CommandInset label
30094 name "sec:Minipages"
30099 \begin_inset Index idx
30102 \begin_layout Plain Layout
30111 \begin_layout Standard
30112 Minipages are treated by LaTeX as pages within pages and can therefore for
30113 example have their own footnotes.
30116 \begin_layout Standard
30117 Minipages are useful when you write documents with different languages.
30120 \begin_layout Standard
30121 Below are two example minipages side by side.
30122 Their width is set to 45
30123 \begin_inset space \thinspace{}
30126 col% and they are separated by a horizontal fill, that was inserted via
30129 Insert\SpecialChar \menuseparator
30131 \begin_inset space ~
30134 Formatting\SpecialChar \menuseparator
30136 \begin_inset space ~
30142 \begin_inset Newpage newpage
30148 \begin_layout Standard
30149 \begin_inset Box Frameless
30159 height_special "totalheight"
30162 \begin_layout Plain Layout
30165 Dies ist ein deutscher Text.
30166 Dies ist ein deutscher Text.
30167 Dies ist ein deutscher Text.
30168 Dies ist ein deutscher Text.
30169 Dies ist ein deutscher Text.
30170 Dies ist ein deutscher Text.
30171 Dies ist ein deutscher Text.
30172 Dies ist ein deutscher Text.
30173 Dies ist ein deutscher Text.
30174 Dies ist ein deutscher Text.
30175 Dies ist ein deutscher Text.
30176 Dies ist ein deutscher Text.
30177 Dies ist ein deutscher Text
30181 \begin_layout Plain Layout
30184 Dies ist eine deutsche Fußnote.
30190 Dies ist ein deutscher Text.
30191 Dies ist ein deutscher Text.
30197 \begin_inset space \hfill{}
30201 \begin_inset Box Frameless
30211 height_special "totalheight"
30214 \begin_layout Plain Layout
30215 This is an English Text.
30216 This is an English Text.
30217 This is an English Text.
30218 This is an English Text.
30219 This is an English Text.
30220 This is an English Text.
30221 This is an English Text.
30222 This is an English Text.
30223 This is an English Text.
30224 This is an English Text.
30225 This is an English Text.
30226 This is an English Text.
30227 This is an English Text.
30228 This is an English Text.
30229 This is an English Text.
30230 This is an English Text.
30234 \begin_layout Plain Layout
30235 This is an English footnote.
30240 This is an English Text.
30249 \begin_layout Standard
30250 \begin_inset VSpace bigskip
30253 The document-wide paragraph settings are ignored within minipages.
30254 That means that there will be no space between paragraphs in minipages
30255 although you set it to e.
30256 \begin_inset space \thinspace{}
30260 \begin_inset space \space{}
30267 in the document settings.
30270 \begin_layout Standard
30271 Minipages can also be used to set a background color for text parts, see
30273 \begin_inset space ~
30277 \begin_inset CommandInset ref
30279 reference "sub:Color-for-Paragraphs"
30286 \begin_layout Standard
30287 \begin_inset Note Greyedout
30290 \begin_layout Plain Layout
30295 You cannot have floats or margin notes inside minipages but minipages can
30296 be used inside tables, floats, and other boxes.
30304 \begin_layout Section
30306 \begin_inset CommandInset label
30308 name "sec:Parboxes"
30313 \begin_inset Index idx
30316 \begin_layout Plain Layout
30325 \begin_layout Standard
30326 Parboxes are very similar to minipages with the difference that they cannot
30330 \begin_layout Standard
30332 \begin_inset Box Frameless
30342 height_special "totalheight"
30345 \begin_layout Plain Layout
30346 This a text within a parbox.
30347 This a text within a parbox.
30350 \begin_layout Plain Layout
30351 This footnote won't appear:
30355 \begin_layout Plain Layout
30356 This footnote is inside a parbox and will therefore not appear.
30369 \begin_layout Section
30370 Boxes for Words and Characters
30371 \begin_inset Index idx
30374 \begin_layout Plain Layout
30375 Boxes ! for Characters
30383 \begin_layout Subsection
30384 Prevent Hyphenation
30385 \begin_inset CommandInset label
30387 name "sec:Prevent-Hyphenation"
30392 \begin_inset Index idx
30395 \begin_layout Plain Layout
30396 Boxes ! to Prevent Hyphenation
30404 \begin_layout Standard
30405 You can use the box type
30409 to prevent words or text from being hyphenated.
30410 \begin_inset Newline newline
30413 Here is an example text:
30416 \begin_layout Standard
30417 This line is an example to show how you can prevent the hyphenation of
30418 \begin_inset Quotes eld
30422 \begin_inset Quotes erd
30428 \begin_layout Standard
30429 To prevent the hyphenation of the word
30430 \begin_inset Quotes eld
30434 \begin_inset Quotes erd
30437 , put the word into a box, set the
30440 \begin_inset space ~
30450 \begin_inset space \thinspace{}
30456 \begin_layout Standard
30457 This is the result:
30460 \begin_layout Standard
30461 This line is an example to show how you can prevent the hyphenation of
30462 \begin_inset Box Frameless
30472 height_special "totalheight"
30475 \begin_layout Plain Layout
30476 \begin_inset Quotes eld
30480 \begin_inset Quotes erd
30491 \begin_layout Standard
30492 You can alternatively set the command
30493 \begin_inset Quotes eld
30503 \begin_inset Quotes grd
30506 as TeX-Code directly before the word:
30509 \begin_layout Standard
30510 This line is an example to show how you can prevent the hyphenation of
30511 \begin_inset Quotes eld
30518 \begin_layout Plain Layout
30528 \begin_inset Quotes erd
30534 \begin_layout Standard
30535 Of course the word now protrudes over the side margin.
30536 To avoid this, add via the menu
30538 Insert\SpecialChar \menuseparator
30539 Formatting\SpecialChar \menuseparator
30541 \begin_inset space ~
30545 \begin_inset space ~
30553 arg "newline-insert newline"
30556 ) a line break before the word:
30559 \begin_layout Standard
30560 This line is an example to show how you can prevent the hyphenation of
30561 \begin_inset Newline newline
30565 \begin_inset Box Frameless
30575 height_special "totalheight"
30578 \begin_layout Plain Layout
30579 \begin_inset Quotes eld
30583 \begin_inset Quotes erd
30594 \begin_layout Subsection
30596 \begin_inset CommandInset label
30598 name "sub:Vertical-Alignment"
30603 \begin_inset Index idx
30606 \begin_layout Plain Layout
30607 Boxes ! for Vertical Alignment
30613 \begin_inset Index idx
30616 \begin_layout Plain Layout
30625 \begin_layout Standard
30626 With the help of the command
30632 you can align words, characters or other boxes vertically relative to the
30640 is used with the following scheme:
30643 \begin_layout Standard
30648 raisebox{lift}[height][depth]{box content}
30651 \begin_layout Standard
30652 The lift can be a positive value to raise the box or a negative value to
30656 \begin_layout Standard
30657 To align for example the word
30658 \begin_inset Quotes eld
30662 \begin_inset Quotes erd
30665 so that the bottom of the
30666 \begin_inset Quotes eld
30670 \begin_inset Quotes erd
30674 \begin_inset Quotes eld
30678 \begin_inset Quotes erd
30681 is at the baseline, insert the command
30684 \begin_layout Standard
30694 \begin_layout Standard
30695 in TeX-Code before the word.
30696 After the word insert a closing brace
30697 \begin_inset Quotes eld
30705 \begin_inset Quotes erd
30709 \begin_inset Newline newline
30712 This is the result:
30715 \begin_layout Standard
30716 This is a text line with the word
30720 \begin_layout Plain Layout
30732 \begin_inset Quotes eld
30736 \begin_inset Quotes erd
30743 \begin_layout Plain Layout
30753 \begin_layout Standard
30754 \begin_inset VSpace bigskip
30757 When you raise or lower characters in a line, the line distance will be
30761 \begin_layout Standard
30762 This is a text line with the word
30766 \begin_layout Plain Layout
30778 \begin_inset Quotes eld
30782 \begin_inset Quotes erd
30789 \begin_layout Plain Layout
30797 \begin_inset Newline newline
30800 This is a text line with the word
30804 \begin_layout Plain Layout
30814 \begin_inset Quotes eld
30818 \begin_inset Quotes erd
30825 \begin_layout Plain Layout
30835 \begin_layout Standard
30836 If you want to prevent this for a certain reason, set the box height to
30841 \begin_layout Standard
30851 \begin_layout Standard
30852 This is a text line with the word
30856 \begin_layout Plain Layout
30868 \begin_inset Quotes eld
30872 \begin_inset Quotes erd
30879 \begin_layout Plain Layout
30887 \begin_inset Newline newline
30890 This is a text line with the word
30894 \begin_layout Plain Layout
30898 raisebox{0.5cm}[0pt]{
30904 \begin_inset Quotes eld
30908 \begin_inset Quotes erd
30915 \begin_layout Plain Layout
30925 \begin_layout Section
30927 \begin_inset CommandInset label
30929 name "sec:Colored-Boxes"
30934 \begin_inset Index idx
30937 \begin_layout Plain Layout
30946 \begin_layout Subsection
30948 \begin_inset Index idx
30951 \begin_layout Plain Layout
30960 \begin_layout Standard
30961 To color the background of text the text must be put into a so called
30962 \begin_inset Quotes eld
30966 \begin_inset Quotes erd
30970 This requires that the LaTeX-package
30975 \begin_inset Index idx
30978 \begin_layout Plain Layout
30979 LaTeX-packages ! color
30984 is loaded in the document preamble with the command
30987 \begin_layout Standard
30992 @ifundefined{textcolor}
30993 \begin_inset Newline newline
30997 \begin_inset Phantom HPhantom
31000 \begin_layout Plain Layout
31003 \begin_inset space ~
31013 usepackage{color}}{}
31016 \begin_layout Standard
31021 will be loaded automatically by LyX when you color text.
31025 \begin_layout Plain Layout
31026 To avoid it being loaded twice the command
31040 \begin_layout Standard
31041 \begin_inset VSpace medskip
31044 Colorboxes are created with the command
31051 This will be used with the following scheme:
31054 \begin_layout Standard
31059 colorbox{color}{box content}
31062 \begin_layout Standard
31063 The box content can also be a box and colorboxes can also be within other
31067 \begin_layout Standard
31068 The following colors are predefined:
31069 \begin_inset Newline newline
31108 \begin_inset Newline newline
31111 You can also define your own color as described in section
31112 \begin_inset space ~
31116 \begin_inset CommandInset ref
31118 reference "sec:Colored-Tables"
31125 \begin_layout Standard
31127 \begin_inset space \thinspace{}
31131 \begin_inset space \space{}
31134 a red background for a word, insert the command
31137 \begin_layout Standard
31145 \begin_layout Standard
31146 before the word in TeX-Code.
31147 After the word insert a closing brace
31148 \begin_inset Quotes eld
31156 \begin_inset Quotes erd
31160 \begin_inset Newline newline
31163 This is the result:
31166 \begin_layout Standard
31167 This is a line where the word
31171 \begin_layout Plain Layout
31181 \begin_inset Quotes eld
31185 \begin_inset Quotes erd
31192 \begin_layout Plain Layout
31199 has a red background.
31202 \begin_layout Standard
31203 \begin_inset VSpace bigskip
31206 If you would like the box frame in a different color, you can use the command
31213 with the following scheme:
31216 \begin_layout Standard
31221 fcolorbox{frame color}{box color}{box content}
31224 \begin_layout Standard
31238 The frame thickness and the space between the frame and the box content
31239 can be adjusted with the lengths
31251 , respectively, as described in section
31252 \begin_inset space ~
31256 \begin_inset CommandInset ref
31258 reference "sec:Decoration"
31265 \begin_layout Standard
31266 For the following example the command
31269 \begin_layout Standard
31274 fcolorbox{cyan}{magenta}{
31277 \begin_layout Standard
31281 \begin_layout Standard
31282 Here is an example where the frame line thickness was set to 1
31283 \begin_inset space \thinspace{}
31287 \begin_inset Newline newline
31294 \begin_layout Plain Layout
31309 \begin_layout Plain Layout
31313 fcolorbox{cyan}{magenta}{
31318 This is text within a colored, framed box.
31322 \begin_layout Plain Layout
31332 \begin_layout Standard
31333 \begin_inset VSpace bigskip
31336 Of course you can also have colored text inside a colorbox:
31337 \begin_inset Newline newline
31344 \begin_layout Plain Layout
31348 fcolorbox{cyan}{magenta}{
31355 This is colored text within a colored, framed box.
31361 \begin_layout Plain Layout
31372 \begin_layout Plain Layout
31386 \begin_layout Standard
31387 \begin_inset VSpace medskip
31393 \begin_layout Standard
31394 \begin_inset Note Greyedout
31397 \begin_layout Plain Layout
31402 Text in colorboxes cannot have line breaks.
31403 To color multiple text lines or paragraphs, use a box inside a colorbox
31404 as described in the following.
31412 \begin_layout Subsection
31413 Color for Paragraphs
31414 \begin_inset CommandInset label
31416 name "sub:Color-for-Paragraphs"
31421 \begin_inset Index idx
31424 \begin_layout Plain Layout
31425 Color ! for Paragraphs
31433 \begin_layout Standard
31434 To set the background color for more than one text line, put the text into
31436 Before the minipage insert the
31445 \begin_layout Standard
31453 \begin_layout Standard
31455 After the minipage insert a closing brace
31456 \begin_inset Quotes eld
31464 \begin_inset Quotes erd
31470 \begin_layout Standard
31474 \begin_layout Plain Layout
31478 colorbox{lightgrey}{
31484 \begin_inset Box Frameless
31494 height_special "totalheight"
31497 \begin_layout Plain Layout
31498 This is text with background color.
31499 This is text with background color.
31502 \begin_layout Plain Layout
31503 \begin_inset VSpace defskip
31506 The text can have footnotes
31510 \begin_layout Plain Layout
31511 Another example footnote
31516 and can include tables and figures.
31519 \begin_layout Plain Layout
31521 \begin_inset Tabular
31522 <lyxtabular version="3" rows="3" columns="3">
31523 <features tabularvalignment="middle">
31524 <column alignment="center" valignment="top" width="0">
31525 <column alignment="center" valignment="top" width="0">
31526 <column alignment="center" valignment="top" width="0">
31528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31531 \begin_layout Plain Layout
31537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31540 \begin_layout Plain Layout
31546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31549 \begin_layout Plain Layout
31557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31560 \begin_layout Plain Layout
31566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31569 \begin_layout Plain Layout
31571 \begin_inset Quotes erd
31579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31582 \begin_layout Plain Layout
31590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31593 \begin_layout Plain Layout
31599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31602 \begin_layout Plain Layout
31608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31611 \begin_layout Plain Layout
31631 \begin_layout Plain Layout
31641 \begin_layout Section
31642 Rotated and Scaled Boxes
31645 \begin_layout Standard
31646 To use the commands described in this section, the LaTeX-package
31651 \begin_inset Index idx
31654 \begin_layout Plain Layout
31655 LaTeX-packages ! graphicx
31660 needs to be loaded in the document preamble with the command
31663 \begin_layout Standard
31668 @ifundefined{rotatebox}
31669 \begin_inset Newline newline
31673 \begin_inset Phantom HPhantom
31676 \begin_layout Plain Layout
31679 \begin_inset space ~
31689 usepackage{graphicx}}{}
31692 \begin_layout Standard
31693 \begin_inset Note Greyedout
31696 \begin_layout Plain Layout
31701 Some DVI-viewers can't display rotated or scaled material.
31709 \begin_layout Standard
31710 \begin_inset Note Greyedout
31713 \begin_layout Plain Layout
31718 Floats mustn't be inside a rotated or scaled box.
31726 \begin_layout Subsection
31728 \begin_inset Index idx
31731 \begin_layout Plain Layout
31738 \begin_inset Index idx
31741 \begin_layout Plain Layout
31748 \begin_inset Index idx
31751 \begin_layout Plain Layout
31758 \begin_inset Index idx
31761 \begin_layout Plain Layout
31762 Table Customization ! Rotating
31770 \begin_layout Standard
31771 To rotate material, you can put it into a rotated box.
31772 Such a box is created using the command
31778 in TeX-Code with the following scheme:
31781 \begin_layout Standard
31786 rotatebox[rotation origin]{rotation angle}{box content}
31789 \begin_layout Standard
31790 The rotation origin is specified in the form
31795 The following positions are possible:
31815 (top), along with meaningful combinations of the four base positions.
31820 means that the rotation origin is at the top left corner of the box.
31821 When no rotation origin is specified, the position
31826 The rotation angle is a number that can be negative that specifies the
31828 The rotation direction is counterclockwise.
31831 \begin_layout Standard
31832 In the following example the command
31836 rotatebox[origin=c]{60}{
31838 was inserted as TeX-Code before the text
31839 \begin_inset Quotes eld
31843 \begin_inset Quotes erd
31846 ; after the text the box was closed by a closing brace
31853 \begin_layout Standard
31858 \begin_layout Plain Layout
31862 rotatebox[origin=c]{60}{
31871 \begin_layout Plain Layout
31881 \begin_layout Standard
31882 The box content can also be another box or an inline formula:
31885 \begin_layout Standard
31890 \begin_layout Plain Layout
31894 rotatebox[origin=r]{-60}{
31900 \begin_inset Box Doublebox
31910 height_special "totalheight"
31913 \begin_layout Plain Layout
31923 \begin_layout Plain Layout
31934 \begin_layout Plain Layout
31938 rotatebox[origin=lb]{60}{
31944 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31951 \begin_layout Plain Layout
31961 \begin_layout Standard
31962 or an image or table:
31965 \begin_layout Standard
31970 \begin_layout Plain Layout
31974 rotatebox[origin=lb]{90}{
31980 \begin_inset Graphics
31981 filename clipart/platypus.eps
31991 \begin_layout Plain Layout
31998 with a rotated image
32002 \begin_layout Plain Layout
32006 rotatebox[origin=l]{-90}{
32012 \begin_inset Tabular
32013 <lyxtabular version="3" rows="2" columns="2">
32014 <features tabularvalignment="middle">
32015 <column alignment="center" valignment="top" width="0">
32016 <column alignment="center" valignment="top" width="0">
32018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32021 \begin_layout Plain Layout
32027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32030 \begin_layout Plain Layout
32038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32041 \begin_layout Plain Layout
32047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32050 \begin_layout Plain Layout
32065 \begin_layout Plain Layout
32075 \begin_layout Subsection
32077 \begin_inset Index idx
32080 \begin_layout Plain Layout
32087 \begin_inset Index idx
32090 \begin_layout Plain Layout
32097 \begin_inset Index idx
32100 \begin_layout Plain Layout
32107 \begin_inset Index idx
32110 \begin_layout Plain Layout
32111 Table Customization ! Scaling
32119 \begin_layout Standard
32120 To scale material the commands
32132 can be used as TeX-Code.
32135 \begin_layout Standard
32142 is used with the following scheme:
32145 \begin_layout Standard
32150 scalebox{horizontal}[vertical]{box content}
32153 \begin_layout Standard
32154 Horizontal and vertical are the corresponding scaling factors.
32155 If no vertical scaling factor is given, the horizontal factor will also
32156 be used as the vertical one.
32159 \begin_layout Standard
32166 creates for example a double size
32170 \begin_layout Plain Layout
32183 \begin_layout Plain Layout
32190 , compared with the document text size.
32193 \begin_layout Standard
32198 scalebox{2}[1]{Hello}
32200 on the other hand distorts the
32204 \begin_layout Plain Layout
32217 \begin_layout Plain Layout
32227 \begin_layout Standard
32228 If the scaling factor is negative, the box content will be mirrored.
32229 Therefore the command
32233 scalebox{-1}[1]{Hello}
32235 can be used to create mirror writing:
32239 \begin_layout Plain Layout
32252 \begin_layout Plain Layout
32262 \begin_layout Standard
32267 scalebox{1}[-1]{Hello}
32273 \begin_layout Plain Layout
32286 \begin_layout Plain Layout
32296 \begin_layout Standard
32301 scalebox{-1}[1]{box content}
32303 there exists the command
32304 \begin_inset Newline newline
32311 reflectbox{box content}
32316 \begin_layout Standard
32317 \begin_inset VSpace bigskip
32326 is used to scale the box to a defined width and height.
32327 The command scheme is:
32330 \begin_layout Standard
32335 resizebox{width}{height}{box content}
32338 \begin_layout Standard
32339 If one of the two command arguments given is an exclamation mark
32343 , the size is set so that the aspect ratio of the box content is kept.
32346 \begin_layout Standard
32351 resizebox{2cm}{1cm}{Hello}
32357 \begin_layout Plain Layout
32361 resizebox{2cm}{1cm}{
32370 \begin_layout Plain Layout
32378 \begin_inset Newline newline
32385 resizebox{2cm}{!}{Hello}
32391 \begin_layout Plain Layout
32404 \begin_layout Plain Layout
32414 \begin_layout Standard
32415 \begin_inset VSpace bigskip
32419 \begin_inset Note Greyedout
32422 \begin_layout Plain Layout
32439 are set to zero, no LaTeX-errors occur when exporting the document but
32440 the exported files can not or only partly be displayed.
32448 \begin_layout Standard
32449 \begin_inset VSpace bigskip
32455 \begin_layout Standard
32456 The boxes can be combined in any order.
32458 \begin_inset space \thinspace{}
32462 \begin_inset space \space{}
32466 \begin_inset Newline newline
32473 rotatebox[origin=c]{-45}{
32477 reflectbox{Hello}}}
32478 \begin_inset Newline newline
32486 \begin_layout Standard
32491 \begin_layout Plain Layout
32495 rotatebox[origin=c]{-45}{
32508 \begin_layout Plain Layout
32518 \begin_layout Standard
32520 Images, tables, and inline formulas are allowed as box content:
32523 \begin_layout Standard
32528 \begin_layout Plain Layout
32532 rotatebox[origin=c]{-30}{
32542 \begin_inset Graphics
32543 filename clipart/platypus.eps
32553 \begin_layout Plain Layout
32564 \begin_layout Plain Layout
32568 rotatebox[origin=c]{-45}{
32578 \begin_inset Tabular
32579 <lyxtabular version="3" rows="2" columns="2">
32580 <features tabularvalignment="middle">
32581 <column alignment="center" valignment="top" width="0">
32582 <column alignment="center" valignment="top" width="0">
32584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32587 \begin_layout Plain Layout
32593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32596 \begin_layout Plain Layout
32604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32607 \begin_layout Plain Layout
32613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32616 \begin_layout Plain Layout
32631 \begin_layout Plain Layout
32642 \begin_layout Plain Layout
32646 rotatebox[origin=c]{-45}{
32656 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32663 \begin_layout Plain Layout
32673 \begin_layout Standard
32674 When the global formula style
32678 is used in the document
32682 \begin_layout Plain Layout
32684 \begin_inset Quotes eld
32688 \begin_inset Quotes erd
32691 is added to the document class options.
32696 , display style formulas can also be scaled.
32699 \begin_layout Chapter
32700 Objects Surrounded by Text
32701 \begin_inset Index idx
32704 \begin_layout Plain Layout
32713 \begin_layout Section
32715 \begin_inset CommandInset label
32717 name "sec:Wrap-Floats"
32722 \begin_inset Index idx
32725 \begin_layout Plain Layout
32726 Floats ! Wrap Floats
32732 \begin_inset Index idx
32735 \begin_layout Plain Layout
32736 Surrounded by text ! Wrap Floats
32744 \begin_layout Standard
32745 \begin_inset Wrap figure
32752 \begin_layout Plain Layout
32753 \begin_inset Graphics
32754 filename clipart/mobius.eps
32756 scaleBeforeRotation
32757 rotateOrigin center
32764 \begin_layout Plain Layout
32765 \begin_inset Caption
32767 \begin_layout Plain Layout
32768 \begin_inset CommandInset label
32770 name "fig:This-is-a"
32774 This is a figure wrap float.
32784 This float type is used if you want to wrap text around a figure or table
32785 so that it only occupies some fraction of the column width.
32786 It can be inserted using the menu
32788 Insert\SpecialChar \menuseparator
32789 Floats\SpecialChar \menuseparator
32791 \begin_inset space ~
32795 \begin_inset space ~
32803 \begin_inset space ~
32807 \begin_inset space ~
32812 if the LaTeX-package
32817 \begin_inset Index idx
32820 \begin_layout Plain Layout
32821 LaTeX-packages ! wrapfig
32825 \begin_layout Plain Layout
32843 \begin_layout Plain Layout
32844 Installing a LaTeX-package is explained it in the
32847 \begin_inset space ~
32857 The settings of the float can be modified by right-clicking on the float
32859 The mandatory settings are the float
32872 that specifies how much the float is set into the paragraph
32873 \begin_inset space \thinspace{}
32877 \begin_inset space \thinspace{}
32880 page margin, and the
32883 \begin_inset space ~
32888 that specifies how many text lines the float will approximately need.
32889 The line span is often hard to approximate; so it is better only to use
32890 it when you encounter float placement problems.
32891 You can furthermore decide if LaTeX is allowed to let the float float within
32892 the paragraph or to surrounding paragraphs.
32894 \begin_inset space ~
32898 \begin_inset CommandInset ref
32900 reference "fig:This-is-a"
32904 is an example text wrap float with a width of 40
32905 \begin_inset space \thinspace{}
32909 \begin_inset space \thinspace{}
32912 cm overhang, set to the left.
32915 \begin_layout Standard
32916 \begin_inset Note Greyedout
32919 \begin_layout Plain Layout
32925 \begin_inset space ~
32928 wrap float floats are fragile! E.
32929 \begin_inset space \thinspace{}
32933 \begin_inset space \space{}
32936 having a figure too close to the bottom of the page can mess things up in
32937 such a way that the float does not appear in the output or that it is placed
32938 over some other text.
32946 \begin_layout Standard
32947 In general, the following applies for wrap floats:
32950 \begin_layout Itemize
32951 They should not be placed in paragraphs that run over a page break.
32952 That means that wrap floats are better inserted in their exact place when
32953 the document is almost finished and you are able to estimate where page
32954 breaks will appear.
32957 \begin_layout Itemize
32958 They should either be placed in their own paragraph before the paragraph
32959 where they should wrap into or within a paragraph.
32962 \begin_layout Itemize
32963 In consecutive paragraphs they may cause troubles, so ensure that there
32964 is a text paragraph between them as separator.
32967 \begin_layout Itemize
32968 They are not allowed in section headings or tables.
32971 \begin_layout Itemize
32972 Their numbering and referencing works as described in chap.
32973 \begin_inset space \thinspace{}
32977 \begin_inset CommandInset ref
32979 reference "chap:Floats"
32986 \begin_layout Section
32987 Surrounded Fixed Objects
32988 \begin_inset Index idx
32991 \begin_layout Plain Layout
32992 Surrounded by text ! Fixed objects
33000 \begin_layout Standard
33001 The wrap floats described in sec.
33002 \begin_inset space \thinspace{}
33006 \begin_inset CommandInset ref
33008 reference "sec:Wrap-Floats"
33012 have these positions in the paragraph:
33015 \begin_layout Standard
33018 \begin_inset Tabular
33019 <lyxtabular version="3" rows="2" columns="2">
33020 <features tabularvalignment="middle">
33021 <column alignment="center" valignment="top" width="0">
33022 <column alignment="center" valignment="top" width="0">
33024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33027 \begin_layout Plain Layout
33028 \begin_inset Graphics
33029 filename ../images/dialog-show-new-inset_graphics.png
33031 scaleBeforeRotation
33040 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33043 \begin_layout Plain Layout
33051 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33054 \begin_layout Plain Layout
33060 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33063 \begin_layout Plain Layout
33075 \begin_inset Tabular
33076 <lyxtabular version="3" rows="2" columns="2">
33077 <features tabularvalignment="middle">
33078 <column alignment="center" valignment="top" width="0">
33079 <column alignment="center" valignment="top" width="0">
33081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33084 \begin_layout Plain Layout
33090 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33093 \begin_layout Plain Layout
33094 \begin_inset Graphics
33095 filename ../images/dialog-show-new-inset_graphics.png
33097 scaleBeforeRotation
33108 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33111 \begin_layout Plain Layout
33117 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33120 \begin_layout Plain Layout
33134 \begin_layout Standard
33135 To get an object exactly at the position where it is inserted, for example
33136 to get one of these positions:
33137 \begin_inset VSpace defskip
33143 \begin_layout Standard
33146 \begin_inset Tabular
33147 <lyxtabular version="3" rows="2" columns="2">
33148 <features tabularvalignment="middle">
33149 <column alignment="center" valignment="top" width="0">
33150 <column alignment="center" valignment="top" width="0">
33152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33155 \begin_layout Plain Layout
33161 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33164 \begin_layout Plain Layout
33172 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33175 \begin_layout Plain Layout
33176 \begin_inset Graphics
33177 filename ../images/dialog-show-new-inset_graphics.png
33179 scaleBeforeRotation
33188 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33191 \begin_layout Plain Layout
33203 \begin_inset Tabular
33204 <lyxtabular version="3" rows="2" columns="2">
33205 <features tabularvalignment="middle">
33206 <column alignment="center" valignment="top" width="0">
33207 <column alignment="center" valignment="top" width="0">
33209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33212 \begin_layout Plain Layout
33218 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33221 \begin_layout Plain Layout
33229 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33232 \begin_layout Plain Layout
33238 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33241 \begin_layout Plain Layout
33242 \begin_inset Graphics
33243 filename ../images/dialog-show-new-inset_graphics.png
33245 scaleBeforeRotation
33260 \begin_inset Tabular
33261 <lyxtabular version="3" rows="2" columns="3">
33262 <features tabularvalignment="middle">
33263 <column alignment="center" valignment="top" width="0">
33264 <column alignment="center" valignment="top" width="0">
33265 <column alignment="center" valignment="top" width="0">
33267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33270 \begin_layout Plain Layout
33276 <cell alignment="center" valignment="top" topline="true" usebox="none">
33279 \begin_layout Plain Layout
33280 \begin_inset Graphics
33281 filename ../images/dialog-show-new-inset_graphics.png
33283 scaleBeforeRotation
33292 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33295 \begin_layout Plain Layout
33303 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33306 \begin_layout Plain Layout
33312 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33315 \begin_layout Plain Layout
33321 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33324 \begin_layout Plain Layout
33336 \begin_inset Tabular
33337 <lyxtabular version="3" rows="2" columns="3">
33338 <features tabularvalignment="middle">
33339 <column alignment="center" valignment="top" width="0">
33340 <column alignment="center" valignment="top" width="0">
33341 <column alignment="center" valignment="top" width="0">
33343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33346 \begin_layout Plain Layout
33352 <cell alignment="center" valignment="top" topline="true" usebox="none">
33355 \begin_layout Plain Layout
33361 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33364 \begin_layout Plain Layout
33372 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33375 \begin_layout Plain Layout
33381 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33384 \begin_layout Plain Layout
33385 \begin_inset Graphics
33386 filename ../images/dialog-show-new-inset_graphics.png
33388 scaleBeforeRotation
33397 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33400 \begin_layout Plain Layout
33414 \begin_layout Standard
33417 \begin_inset Tabular
33418 <lyxtabular version="3" rows="3" columns="2">
33419 <features tabularvalignment="middle">
33420 <column alignment="center" valignment="top" width="0">
33421 <column alignment="center" valignment="top" width="0">
33423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33426 \begin_layout Plain Layout
33432 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33435 \begin_layout Plain Layout
33443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33446 \begin_layout Plain Layout
33447 \begin_inset Graphics
33448 filename ../images/dialog-show-new-inset_graphics.png
33450 scaleBeforeRotation
33459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33462 \begin_layout Plain Layout
33470 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33473 \begin_layout Plain Layout
33479 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33482 \begin_layout Plain Layout
33494 \begin_inset Tabular
33495 <lyxtabular version="3" rows="3" columns="3">
33496 <features tabularvalignment="middle">
33497 <column alignment="center" valignment="top" width="0">
33498 <column alignment="center" valignment="top" width="0">
33499 <column alignment="center" valignment="top" width="0">
33501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33504 \begin_layout Plain Layout
33510 <cell alignment="center" valignment="top" topline="true" usebox="none">
33513 \begin_layout Plain Layout
33519 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33522 \begin_layout Plain Layout
33530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33533 \begin_layout Plain Layout
33539 <cell alignment="center" valignment="top" usebox="none">
33542 \begin_layout Plain Layout
33543 \begin_inset Graphics
33544 filename ../images/dialog-show-new-inset_graphics.png
33546 scaleBeforeRotation
33555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33558 \begin_layout Plain Layout
33566 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33569 \begin_layout Plain Layout
33575 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33578 \begin_layout Plain Layout
33584 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33587 \begin_layout Plain Layout
33599 \begin_inset Tabular
33600 <lyxtabular version="3" rows="3" columns="2">
33601 <features tabularvalignment="middle">
33602 <column alignment="center" valignment="top" width="0">
33603 <column alignment="center" valignment="top" width="0">
33605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33608 \begin_layout Plain Layout
33614 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33617 \begin_layout Plain Layout
33625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33628 \begin_layout Plain Layout
33634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33637 \begin_layout Plain Layout
33638 \begin_inset Graphics
33639 filename ../images/dialog-show-new-inset_graphics.png
33641 scaleBeforeRotation
33652 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33655 \begin_layout Plain Layout
33661 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33664 \begin_layout Plain Layout
33678 \begin_layout Standard
33680 you can use the LaTeX-package
33685 \begin_inset Index idx
33688 \begin_layout Plain Layout
33689 LaTeX-packages ! picinpar
33695 Here is an example:
33698 \begin_layout Standard
33702 \begin_layout Plain Layout
33712 \begin_inset Note Note
33715 \begin_layout Plain Layout
33716 The following section will only be displayed when the LaTeX-package
33728 \begin_layout Standard
33732 \begin_layout Plain Layout
33736 begin{window}[2,c,{
33742 \begin_inset Graphics
33743 filename clipart/mobius.eps
33746 scaleBeforeRotation
33747 rotateOrigin center
33755 \begin_layout Plain Layout
33760 \begin_layout Plain Layout
33769 It was in the spring of the year 1894 that all London was interested, and
33770 the fashionable world dismayed, by the murder of the Honourable Ronald
33771 Adair under most unusual and inexplicable circumstances.
33772 The public has already learned those particulars of the crime which
33778 \begin_layout Plain Layout
33789 came out in the police investigation, but a good deal was suppressed upon
33790 that occasion, since the case for the prosecution was so overwhelmingly
33791 strong that it was not necessary to bring forward all the facts.
33792 Only now, at the end of nearly ten years, am I allowed to supply those
33793 missing links which make up the whole of that remarkable chain.
33799 \begin_layout Plain Layout
33811 \begin_layout Standard
33815 \begin_layout Plain Layout
33824 Footnote of the paragraph with the fixed object.
33828 \begin_layout Plain Layout
33838 \begin_layout Standard
33839 Surrounded fixed objects are used to let text float around them, at which
33840 the object's position in the paragraph can be determined by the number
33842 In contrary to floats is it not possible to have a numbered caption.
33845 \begin_layout Standard
33846 A fixed object is inserted by adding the command
33849 \begin_layout Standard
33854 begin{window}[2,c,{
33857 \begin_layout Standard
33858 as TeX Code at the beginning of the paragraph.
33859 The first parameter in the bracket, here '2', defines the number of lines
33860 above the object, the second, here 'c', the position of the object.
33861 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33862 Behind the command you insert the object.
33863 In this example an image with a width of 40
33864 \begin_inset space \thinspace{}
33867 % of the text column width was inserted.
33868 The object can also be a table, a box or an equation.
33869 Behind the object the command
33872 \begin_layout Standard
33875 },description text]
33876 \begin_inset Newline newline
33882 \begin_layout Standard
33885 \begin_inset Quotes eld
33893 \begin_inset Quotes erd
33896 is in the second line.
33897 The description text is optional.
33898 The text surrounding the object must be in the same paragraph as the object,
33899 so it must begin directly after the
33904 At the end of the paragraph insert the command:
33907 \begin_layout Standard
33915 \begin_layout Standard
33916 Within a paragraph with a fixed object, you cannot insert footnotes in the
33918 You have to use instead the command
33924 inside the paragraph and outside the command
33930 as described in sec.
33931 \begin_inset space \thinspace{}
33935 \begin_inset CommandInset ref
33937 reference "sec:Footnotes"
33944 \begin_layout Standard
33948 \begin_layout Plain Layout
33958 \begin_inset Note Note
33961 \begin_layout Plain Layout
33962 The following will be displayed when the LaTeX-package
33974 \begin_layout Standard
33975 You need to install the LaTeX-package
33979 to see the following part of this section in the output.
33982 \begin_layout Standard
33986 \begin_layout Plain Layout
33998 \begin_layout Section
34000 \begin_inset Index idx
34003 \begin_layout Plain Layout
34010 \begin_inset Index idx
34013 \begin_layout Plain Layout
34014 Surrounded by text ! Initials
34022 \begin_layout Standard
34023 To use initials, you must have the LaTeX-package
34028 \begin_inset Index idx
34031 \begin_layout Plain Layout
34032 LaTeX-packages ! lettrine
34037 installed and use the module
34041 in your document (menu
34043 Document\SpecialChar \menuseparator
34044 Settings\SpecialChar \menuseparator
34048 To insert an initial, use the style
34053 This style has a mandatory and an optional argument.
34054 The mandatory argument is inserted via the menu
34056 Insert\SpecialChar \menuseparator
34058 \begin_inset space ~
34063 and contains the letter that is the initial.
34064 To use also the optional argument, insert another argument in front of
34065 the mandatory argument.
34066 This one contains parameters to modify the initial.
34067 For more information about the possible parameters see the documentation
34073 \begin_inset CommandInset citation
34080 The style itself contains the text that is surrounding the initial.
34081 The usual style is hereby that the word whose first letter is the initial,
34087 To tell LaTeX where this word is finished, add a closing brace '
34091 ' as TeX Code behind it.
34092 At the end of the style there must be an opening brace '
34099 \begin_layout Standard
34100 Here are some examples:
34103 \begin_layout Standard
34107 \begin_layout Plain Layout
34117 \begin_inset Note Note
34120 \begin_layout Plain Layout
34121 The following section will only be displayed when the LaTeX-package
34133 \begin_layout Enumerate
34134 No optional argument, the initial is the letter 'I' in the math font
34135 \begin_inset Formula $\mathfrak{Fraktur}$
34142 \begin_layout Initial
34143 \begin_inset Argument
34146 \begin_layout Plain Layout
34147 \begin_inset Formula $\mathfrak{I}$
34159 \begin_layout Plain Layout
34166 was in the spring of the year 1894 that all London was interested, and
34167 the fashionable world dismayed, by the murder of the Honourable Ronald
34168 Adair under most unusual and inexplicable circumstances.
34169 The public has already learned those particulars of the crime which came
34170 out in the police investigation, but a good deal was suppressed upon that
34171 occasion, since the case for the prosecution was so overwhelmingly strong
34172 that it was not necessary to bring forward all the facts.
34176 \begin_layout Plain Layout
34184 \begin_inset Newpage newpage
34191 \begin_layout Enumerate
34192 Only one line is surrounding the initial, which is formed by two letters
34193 in standard font and no text is printed in small caps:
34197 \begin_layout Initial
34198 \begin_inset Argument
34201 \begin_layout Plain Layout
34208 \begin_inset Argument
34211 \begin_layout Plain Layout
34221 \begin_layout Plain Layout
34228 was in the spring of the year 1894 that all London was interested, and
34229 the fashionable world dismayed, by the murder of the Honourable Ronald
34230 Adair under most unusual and inexplicable circumstances.
34231 The public has already learned those particulars of the crime which came
34232 out in the police investigation, but a good deal was suppressed upon that
34233 occasion, since the case for the prosecution was so overwhelmingly strong
34234 that it was not necessary to bring forward all the facts.
34238 \begin_layout Plain Layout
34249 \begin_layout Enumerate
34250 Magenta, hanging initial over 3
34251 \begin_inset space ~
34254 lines in the math font
34255 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
34259 \begin_inset Quotes eld
34262 t was in the spring
34263 \begin_inset Quotes erd
34270 ; to color the initial, you must insert this command before the initial:
34271 \begin_inset Newline newline
34285 \begin_inset Newline newline
34293 \begin_inset Quotes eld
34297 \begin_inset Quotes erd
34301 \begin_inset Quotes eld
34305 \begin_inset Quotes erd
34309 \begin_inset Quotes eld
34313 \begin_inset Quotes erd
34317 \begin_inset Quotes eld
34321 \begin_inset Quotes erd
34325 \begin_inset Quotes eld
34329 \begin_inset Quotes erd
34333 \begin_inset Quotes eld
34337 \begin_inset Quotes erd
34341 \begin_inset Quotes eld
34345 \begin_inset Quotes erd
34349 \begin_inset Quotes eld
34353 \begin_inset Quotes erd
34356 , and add this command to the document preamble:
34357 \begin_inset Newline newline
34364 @ifundefined{textcolor}
34365 \begin_inset Newline newline
34369 \begin_inset space ~
34374 usepackage{color}}{}
34378 \begin_layout Standard
34382 \begin_layout Plain Layout
34396 \begin_inset Note Note
34399 \begin_layout Plain Layout
34400 makes the initial magenta
34408 \begin_layout Initial
34409 \begin_inset Argument
34412 \begin_layout Plain Layout
34413 lines=3, lhang=0.33, loversize=0.25
34419 \begin_inset Argument
34422 \begin_layout Plain Layout
34423 \begin_inset Formula $\mathcal{I}$
34431 t was in the spring
34435 \begin_layout Plain Layout
34442 of the year 1894 that all London was interested, and the fashionable world
34443 dismayed, by the murder of the Honourable Ronald Adair under most unusual
34444 and inexplicable circumstances.
34445 The public has already learned those particulars of the crime which came
34446 out in the police investigation, but a good deal was suppressed upon that
34447 occasion, since the case for the prosecution was so overwhelmingly strong
34448 that it was not necessary to bring forward all the facts.
34452 \begin_layout Plain Layout
34463 \begin_layout Standard
34467 \begin_layout Plain Layout
34477 \begin_inset Note Note
34480 \begin_layout Plain Layout
34481 The following will be displayed when the LaTeX-package
34493 \begin_layout Standard
34494 You need to install the LaTeX-package
34498 to see the following part of this section in the output.
34501 \begin_layout Standard
34505 \begin_layout Plain Layout
34517 \begin_layout Chapter
34518 External Document Parts
34519 \begin_inset Index idx
34522 \begin_layout Plain Layout
34523 External Document Parts
34531 \begin_layout Standard
34534 Insert\SpecialChar \menuseparator
34537 you can insert external material to your document.
34541 \begin_layout Description
34543 \begin_inset space ~
34546 Document Another LyX document; its content is directly inserted to your
34550 \begin_layout Description
34552 \begin_inset space ~
34555 Text A text document; each line is inserted in your document as a separate
34559 \begin_layout Description
34561 \begin_inset space ~
34565 \begin_inset space ~
34569 \begin_inset space ~
34572 Lines A text document; text lines are inserted in your document continuously
34573 but an empty text line creates a new paragraph.
34576 \begin_layout Description
34578 \begin_inset space ~
34581 Material Files in various formats.
34584 \begin_layout Description
34586 \begin_inset space ~
34589 Document LyX or LaTeX-documents.
34592 \begin_layout Section
34594 \begin_inset Index idx
34597 \begin_layout Plain Layout
34598 External Document Parts ! External Material
34606 \begin_layout Standard
34607 The external material feature allows you to insert files in to your document
34608 without converting them to a format that can be read by the document output
34610 LyX takes care of the necessary conversions.
34611 This is similar to images that can be inserted in various image formats
34613 When you have enabled Instant Preview in LyX's preferences under
34616 \begin_inset space ~
34620 \begin_inset space ~
34623 feel\SpecialChar \menuseparator
34626 , the external material types Dia and Xfig are directly shown in LyX.
34629 \begin_layout Standard
34630 External material can be inserted via the
34634 dialog that is accessible with the menu
34636 Insert\SpecialChar \menuseparator
34637 File\SpecialChar \menuseparator
34639 \begin_inset space ~
34645 Currently the following file types (
34652 \begin_layout Description
34653 ChessDiagram This template supports chess position diagrams made with the
34657 \begin_inset CommandInset href
34660 target "http://en.wikipedia.org/wiki/XBoard"
34669 \begin_layout Description
34670 Date This inserts the date in the form
34675 This is a date inserted as external material:
34676 \begin_inset External
34683 \begin_inset space ~
34687 \begin_inset Note Note
34690 \begin_layout Plain Layout
34691 Remove the protected space when bug 4398 is fixed!
34697 \begin_inset Newline newline
34700 The date is not shown within LyX, only in the output.
34701 There are two other methods of inserting a date: Via menu
34703 Insert\SpecialChar \menuseparator
34706 and with the LaTeX command
34713 The different methods are compared in Table
34714 \begin_inset space ~
34718 \begin_inset CommandInset ref
34720 reference "tab:Comparison-of-the"
34727 \begin_layout Description
34728 Dia This template supports diagrams created with the program
34731 \begin_inset CommandInset href
34734 target "http://en.wikipedia.org/wiki/Dia_(software)"
34743 \begin_layout Description
34744 GnumericSpreadsheet With this template you can insert spreadsheets
34745 \begin_inset space \thinspace{}
34749 \begin_inset space \thinspace{}
34752 tables in the format of
34755 \begin_inset CommandInset href
34758 target "http://en.wikipedia.org/wiki/Gnumeric"
34765 \begin_inset CommandInset href
34767 name "OpenDocument"
34768 target "http://en.wikipedia.org/wiki/OpenDocument"
34773 \begin_inset CommandInset href
34775 name "Microsoft Office XML"
34776 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
34781 \begin_inset CommandInset href
34783 name "Office Open XML"
34784 target "http://en.wikipedia.org/wiki/Office_Open_XML"
34789 For this feature LyX must have found the program
34793 during its configuration.
34794 This program is part of Gnumeric, so that you must have Gnumeric installed,
34795 also if you don't have tables in the Gnumeric format.
34796 For examples and possible limitations have a look at LyX's example file
34804 \begin_layout Description
34805 LilyPond This template is used for music notation typeset with the program
34806 \begin_inset Newline linebreak
34812 \begin_inset CommandInset href
34815 target "http://en.wikipedia.org/wiki/LilyPond"
34822 For LyX's extended support for LilyPond have a look at LyX's example file
34830 \begin_layout Description
34831 PDFPages With this template you can insert PDF documents to your document.
34832 To specify the range of pages that should be included, use the option
34842 LaTeX and LyX options
34845 The argument of this option is a comma separated list, containing page
34846 numbers (insert as option
34850 ), ranges of page numbers (
34854 ) or any combination.
34855 To insert empty pages use {}.
34857 \begin_inset space \thinspace{}
34861 \begin_inset space ~
34866 pages={3,{},8-11,15}
34868 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
34869 Page ranges are specified in the syntax
34878 This selects all pages from
34891 defaults to the first page; omitting
34895 defaults to the last page of the document.
34896 The last page can also be selected with the keyword
34901 (This is only permitted in a page range.) So
34905 will insert all pages of the document and
34909 will insert all pages in reverse order.
34910 If the pages option is not specified, only the first page of the PDF is
34912 \begin_inset Newline newline
34919 inserts the pages with their original size, if this option is not given,
34920 the pages will be resized to fith the width of the page of your document.
34925 you can specify the width and height of the input pages and their rotation.
34926 If another width than 100
34927 \begin_inset space \thinspace{}
34930 Scale% is used, the option
34934 will be overwritten.
34935 For more info and possible options, have a look into the documentation
34936 of the LaTeX-package
34941 \begin_inset CommandInset citation
34948 \begin_inset Index idx
34951 \begin_layout Plain Layout
34952 LaTeX-packages ! pdfpages
34958 \begin_inset Newline newline
34961 To use this template in a
34965 presentation you need to first insert an
34969 environment and in a subsequent paragraph a TeX Code box containing the
34974 setbeamertemplate{background canvas}{}
34977 Then you can insert as many paragraphs containing the PDFPages template
34979 Behind the included PDF pages you can resume the Beamer presentation by
34980 beginning a new frame or by starting a new section.
34981 To avoid stray blank pages prior to the PDF pages, make sure to use the
34986 alignment for the paragraph containing the template.
34987 \begin_inset Newline newline
34990 Here is an included PDF which is rotated by -5°:
34991 \begin_inset External
34993 filename clipart/Abstract.pdf
34994 extra LaTeX "noautoscale, pages=-"
34996 rotateOrigin bottomleft
35003 \begin_layout Description
35004 RasterImage This can be used for bitmap images.
35005 The image can be treated in the
35009 dialog like the images that are usually included via the
35013 dialog as described in section
35014 \begin_inset space ~
35018 \begin_inset CommandInset ref
35020 reference "sec:Graphics-Dialog"
35025 The difference to the normal image input is that only raster images are
35026 allowed; that means that PDF and EPS-images are not supported.
35027 Here is an inserted raster image:
35028 \begin_inset External
35029 template RasterImage
35030 filename clipart/ToolbarEnvBox.png
35037 \begin_layout Description
35038 XFig This template supports images created with the program
35041 \begin_inset CommandInset href
35044 target "http://en.wikipedia.org/wiki/Xfig"
35053 \begin_layout Standard
35054 \begin_inset Float table
35060 \begin_layout Plain Layout
35061 \begin_inset Caption
35063 \begin_layout Plain Layout
35064 \begin_inset CommandInset label
35066 name "tab:Comparison-of-the"
35070 Comparison of the date input methods.
35078 \begin_layout Plain Layout
35080 \begin_inset Tabular
35081 <lyxtabular version="3" rows="4" columns="4">
35082 <features tabularvalignment="middle">
35083 <column alignment="center" valignment="top" width="0">
35084 <column alignment="center" valignment="top" width="0">
35085 <column alignment="center" valignment="top" width="0">
35086 <column alignment="center" valignment="top" width="0">
35088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35091 \begin_layout Plain Layout
35097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35100 \begin_layout Plain Layout
35103 External Material\SpecialChar \menuseparator
35109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35112 \begin_layout Plain Layout
35115 Insert\SpecialChar \menuseparator
35121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35124 \begin_layout Plain Layout
35136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35139 \begin_layout Plain Layout
35145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35148 \begin_layout Plain Layout
35154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35157 \begin_layout Plain Layout
35163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35166 \begin_layout Plain Layout
35167 as TeX-Code inset box
35174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35177 \begin_layout Plain Layout
35183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35186 \begin_layout Plain Layout
35192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35195 \begin_layout Plain Layout
35201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35204 \begin_layout Plain Layout
35212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35215 \begin_layout Plain Layout
35221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35224 \begin_layout Plain Layout
35230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35233 \begin_layout Plain Layout
35239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35242 \begin_layout Plain Layout
35261 \begin_layout Standard
35262 When you use the option
35274 dialog, only the path to the inserted file is shown in the output.
35275 \begin_inset Newline newline
35278 External material is displayed in LyX either as a box like this:
35279 \begin_inset Graphics
35280 filename clipart/ExternalMaterialQt4.png
35282 scaleBeforeRotation
35286 or as image, depending on the option
35292 LaTeX and LyX options
35297 \begin_layout Standard
35304 manual explains how you can define your own templates.
35307 \begin_layout Section
35309 \begin_inset CommandInset label
35311 name "sec:Child-Documents"
35316 \begin_inset Index idx
35319 \begin_layout Plain Layout
35320 External Document Parts ! Child Documents
35326 \begin_inset Index idx
35329 \begin_layout Plain Layout
35338 \begin_layout Standard
35339 Child documents are used if you have a long document consisting of several
35340 larger parts or sections.
35341 For maintenance it is often useful and sometimes even required to split
35342 the document into several files that can be revised separately.
35343 The different documents are then the so called
35344 \begin_inset Quotes eld
35348 \begin_inset Quotes erd
35351 , and a master document connects them to print the full document or parts
35353 A child document inherits elements of its master, for example the LaTeX
35354 preamble, the bibliography, and labels for cross-references.
35357 \begin_layout Standard
35358 To be able to work on child documents without the need to open their master,
35359 specify in the child document the master in the menu
35361 Document\SpecialChar \menuseparator
35362 Settings\SpecialChar \menuseparator
35364 \begin_inset space ~
35370 This master document will then be used in the background by LyX when you
35371 edit the child document.
35374 \begin_layout Standard
35375 Included documents are displayed in LyX as a box like this:
35376 \begin_inset Graphics
35377 filename clipart/ChildDocumentQt4.png
35379 scaleBeforeRotation
35383 To include child documents in a master document use the menu
35385 Insert\SpecialChar \menuseparator
35386 File\SpecialChar \menuseparator
35388 \begin_inset space ~
35394 A dialog pops up where you can choose between four include methods:
35397 \begin_layout Description
35398 Include You can include LyX- and LaTeX-documents.
35407 dialog, the included documents will be opened in LyX in a new file tab
35408 so that you can modify them.
35409 \begin_inset Newline newline
35415 \begin_layout Standard
35416 Here is a child document inserted using
35421 \begin_inset CommandInset include
35422 LatexCommand include
35423 filename "DummyDocument1.lyx"
35430 \begin_layout Standard
35431 The section numbering includes the sections of the included files in the
35432 order they are inserted in the master document.
35433 The included example document has for example a subsection that is numbered
35434 as a subsection of this section.
35435 Labels of included documents can be referenced: Subsection
35436 \begin_inset space ~
35440 \begin_inset CommandInset ref
35442 reference "sub:External-Subsection-1"
35449 \begin_layout Standard
35450 The preamble of the child document is ignored; only the preamble of the
35451 master document is used.
35452 Branches in child documents will be ignored by the master document when
35453 the master document does not have a branch with the same name.
35454 Included documents are inserted starting on a new page and ending with
35458 \begin_layout Standard
35459 \begin_inset Note Greyedout
35462 \begin_layout Plain Layout
35467 If you have included a LyX- or LaTeX-file, you are warned when you export/view
35468 the document in case the child document uses another document class than
35469 the master document as this will lead to unexpected outputs.
35477 \begin_layout Description
35478 Input This method is very similar to the Include method.
35479 The differences are:
35483 \begin_layout Itemize
35484 Input files don't start with a new page and don't end with a page break.
35487 \begin_layout Itemize
35488 Input files can be previewed in LyX when
35491 \begin_inset space ~
35496 is enabled in LyX's preferences under
35499 \begin_inset space ~
35503 \begin_inset space ~
35506 feel\SpecialChar \menuseparator
35512 \begin_layout Itemize
35513 You cannot exclude Input files via the menu
35515 Document\SpecialChar \menuseparator
35516 Settings\SpecialChar \menuseparator
35523 \begin_layout Standard
35524 Here is a child document inserted using
35529 \begin_inset CommandInset include
35531 filename "DummyDocument2.lyx"
35538 \begin_layout Description
35539 Verbatim With this method any text file can be included.
35540 The file is shown in the output with its source code; no command used in
35541 the text is invoked.
35542 You can use the option
35544 Mark spaces in output
35546 that displays the character
35547 \begin_inset Quotes eld
35554 \begin_layout Plain Layout
35564 \begin_inset Quotes erd
35567 for every space character in the source code.
35568 The difference from the method via the menu
35570 Insert\SpecialChar \menuseparator
35571 File\SpecialChar \menuseparator
35573 \begin_inset space ~
35578 is that the document content is not shown in LyX.
35581 \begin_layout Standard
35582 Here is a child document inserted as Verbatim:
35583 \begin_inset CommandInset include
35584 LatexCommand verbatiminput
35585 filename "DummyTextDocument.txt"
35590 \begin_inset VSpace bigskip
35593 Here is a child document inserted as Verbatim using the
35595 Mark spaces in output
35598 \begin_inset CommandInset include
35599 LatexCommand verbatiminput*
35600 filename "DummyTextDocument.txt"
35607 \begin_layout Standard
35608 \begin_inset VSpace bigskip
35614 \begin_layout Standard
35615 \begin_inset Note Greyedout
35618 \begin_layout Plain Layout
35623 As you can see in the examples above, the text of the documents included
35628 is not broken at the end of the document lines.
35636 \begin_layout Description
35637 Listings This type is described in chapter
35638 \begin_inset space ~
35642 \begin_inset CommandInset ref
35644 reference "cha:Program-Code-Listings"
35651 \begin_layout Standard
35652 \begin_inset Note Greyedout
35655 \begin_layout Plain Layout
35660 Including the same document twice in a document using different methods
35661 could cause LaTeX-problems.
35669 \begin_layout Standard
35670 If you want to view/export only selected children of your master document,
35671 either because you want to save compiling time or because you want to distribut
35672 e single chapters of the book you are just writing, you can exclude children
35674 This is done via the menu
35676 Document\SpecialChar \menuseparator
35677 Settings\SpecialChar \menuseparator
35681 You can exclude\SpecialChar \slash{}
35682 include children by double-clicking on the
35686 column of the respective child document in the list (note that this only
35687 works for documents embedded via
35688 \begin_inset Quotes eld
35692 \begin_inset Quotes erd
35696 \begin_inset Quotes eld
35700 \begin_inset Quotes erd
35706 Maintain counters and references
35708 is enabled, LyX will assure that all page numbers, references etc.
35709 \begin_inset space ~
35712 are correct as if the whole document was processed.
35713 This is useful if you want the selected sub-documents to look exactly as
35714 in the context of the whole document.
35715 However, LyX needs to process the whole document in the background for
35717 So if you want to save compile time and if counters and references do not
35718 need to be correct, disable this checkbox.
35721 \begin_layout Standard
35722 Alternatively, you can put each included file into a branch.
35726 \begin_layout Plain Layout
35727 Branches are described in section
35740 By enabling\SpecialChar \slash{}
35741 disabling branches you can decide which included files will
35742 appear in the output.
35743 This has the advantage that it also works with Input'ed sub-documents.
35744 However, counters and references will not be maintained with this approach.
35747 \begin_layout Chapter
35748 Program Code Listings
35749 \begin_inset CommandInset label
35751 name "cha:Program-Code-Listings"
35756 \begin_inset Index idx
35759 \begin_layout Plain Layout
35766 \begin_inset Index idx
35769 \begin_layout Plain Layout
35776 \begin_inset Index idx
35779 \begin_layout Plain Layout
35788 \begin_layout Standard
35789 To include and typeset program code you can use the
35793 inset that can be inserted via the menu
35795 Insert\SpecialChar \menuseparator
35804 \begin_inset Index idx
35807 \begin_layout Plain Layout
35808 LaTeX-packages ! listings
35813 provides a powerful and flexible way to insert program source code into
35817 \begin_layout Standard
35818 Right-clicking on a listings inset opens the context menu containing where
35819 you can set the listings format.
35822 \begin_layout Standard
35823 By default, a listing starts a new paragraph in the output.
35824 The placement option
35827 \begin_inset space ~
35832 prints the listing inline like this:
35833 \begin_inset listings
35834 lstparams "language={C++}"
35838 \begin_layout Plain Layout
35846 \begin_inset Newline newline
35853 creates a listings float where you can specify the placement options
35854 \begin_inset Quotes eld
35862 \begin_inset Quotes erd
35866 \begin_inset Quotes eld
35874 \begin_inset Quotes erd
35878 \begin_inset Quotes eld
35886 \begin_inset Quotes erd
35890 \begin_inset Quotes eld
35898 \begin_inset Quotes erd
35901 corresponding to the float placement options described in section
35902 \begin_inset space ~
35906 \begin_inset CommandInset ref
35908 reference "sec:Float-Placement"
35913 The placement options can be mixed and are inserted without any separation,
35915 \begin_inset space \thinspace{}
35919 \begin_inset space \space{}
35923 \begin_inset Quotes eld
35931 \begin_inset Quotes erd
35936 \begin_inset Quotes eld
35940 \begin_inset Quotes erd
35943 has sometimes no effect, but you don't need to use the
35947 option in this case as also non-float listings can have captions and be
35951 \begin_layout Standard
35952 You can add captions to listings with the menu
35954 Insert\SpecialChar \menuseparator
35958 Listings can be referenced like floats: Listing
35959 \begin_inset space ~
35963 \begin_inset CommandInset ref
35965 reference "lst:Example-Listing"
35972 \begin_layout Standard
35973 \begin_inset listings
35974 lstparams "language=Python"
35978 \begin_layout Plain Layout
35980 \begin_inset Caption
35982 \begin_layout Plain Layout
35983 \begin_inset CommandInset label
35985 name "lst:Example-Listing"
35989 Example Listing float
35994 # Example listing float
35997 \begin_layout Plain Layout
36002 \begin_layout Plain Layout
36004 'this is a python function'
36007 \begin_layout Plain Layout
36017 \begin_layout Standard
36018 When you have set a programming language in the listings dialog, the keywords
36019 of this language will be recognized and specially typeset in the output.
36020 In the example listings the Python keyword
36021 \begin_inset Quotes eld
36025 \begin_inset Quotes erd
36028 is recognized and printed bold in the output.
36031 \begin_layout Standard
36032 \begin_inset Note Greyedout
36035 \begin_layout Plain Layout
36040 If you don't get bold keywords when using typewriter fonts, your
36044 font probably doesn't provide a bold shape.
36045 In this case select a different one in the menu
36047 Document\SpecialChar \menuseparator
36048 Settings\SpecialChar \menuseparator
36060 provide bold shapes.)
36068 \begin_layout Standard
36072 \begin_inset space ~
36077 of the listings dialog you can specify the line numbering style.
36078 You can insert a number to specify which lines are numbered in the field
36085 \begin_inset space \thinspace{}
36089 \begin_inset space \space{}
36093 \begin_inset Quotes eld
36097 \begin_inset Quotes erd
36100 , only every 3rd line will be numbered.
36103 \begin_layout Standard
36104 You can furthermore specify a range of lines; only these will then appear
36108 Extended character table
36110 should be used when you use national characters like the German umlauts
36112 \begin_inset Newline newline
36115 Here is an example listing with left line numbering, step
36116 \begin_inset Quotes eld
36120 \begin_inset Quotes erd
36124 \begin_inset Quotes eld
36128 \begin_inset Quotes erd
36132 \begin_inset Quotes eld
36135 Extended character table
36136 \begin_inset Quotes erd
36140 \begin_inset Quotes eld
36144 \begin_inset space ~
36148 \begin_inset space ~
36152 \begin_inset Quotes erd
36156 \begin_inset space \thinspace{}
36160 \begin_inset space \thinspace{}
36166 \begin_layout Standard
36167 \begin_inset listings
36168 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
36172 \begin_layout Plain Layout
36177 \begin_layout Plain Layout
36179 'this is a python function'
36182 \begin_layout Plain Layout
36187 \begin_layout Plain Layout
36192 \begin_layout Plain Layout
36194 'This is a German word: Tschüß'
36197 \begin_layout Plain Layout
36202 \begin_layout Plain Layout
36207 \begin_layout Plain Layout
36209 'this is a python function'
36212 \begin_layout Plain Layout
36222 \begin_layout Standard
36223 When you have tabulators in your listing, you can specify the number of
36224 characters that are spanned by a tabulator in the field
36227 \begin_inset space ~
36235 \begin_layout Standard
36236 \begin_inset Note Greyedout
36239 \begin_layout Plain Layout
36244 Due to a bug in the
36248 package the line numbering is shifted by a line by every previous listing.
36249 That's the reason why the lines 2 and 5 are numbered in the above listing
36250 and not the lines 3 and 6.
36258 \begin_layout Standard
36259 \begin_inset VSpace bigskip
36265 \begin_layout Standard
36266 It is also possible to print lines from a file as listing.
36267 To do this, use the menu
36269 Insert\SpecialChar \menuseparator
36270 File\SpecialChar \menuseparator
36273 and choose the type
36281 \begin_layout Plain Layout
36282 The other child document types are described in section
36283 \begin_inset space ~
36287 \begin_inset CommandInset ref
36289 reference "sec:Child-Documents"
36298 In the child document dialog you can specify the listing parameters in
36300 To show a list of all available parameters, type in a question mark
36301 \begin_inset Quotes eld
36305 \begin_inset Quotes erd
36311 \begin_layout Standard
36312 To reference child document listings, write a label text into the corresponding
36313 field of the child document dialog.
36314 The label can then be referenced using the menu
36316 Insert\SpecialChar \menuseparator
36322 \begin_layout Standard
36324 \begin_inset space ~
36328 \begin_inset CommandInset ref
36330 reference "lst:file-listing"
36334 is an example for a listing of a file; there the lines 10
36335 \begin_inset space \thinspace{}
36339 \begin_inset space \thinspace{}
36342 15 of this LyX file are listed.
36345 \begin_layout Standard
36346 \begin_inset CommandInset include
36347 LatexCommand lstinputlisting
36348 filename "EmbeddedObjects.lyx"
36349 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
36356 \begin_layout Standard
36357 \begin_inset VSpace bigskip
36363 \begin_layout Standard
36364 Inserting a formula into a listing can be done the following way:
36367 \begin_layout Enumerate
36368 Open the listings dialog and add
36369 \begin_inset Newline newline
36377 \begin_inset Newline newline
36380 to the field of the
36387 \begin_layout Enumerate
36388 Create a formula outside the listing
36391 \begin_layout Enumerate
36392 Copy the content of the formula (not the formula inset) to the clipboard
36402 \begin_layout Enumerate
36403 In the listing write
36404 \begin_inset Quotes eld
36412 \begin_inset Quotes erd
36415 and copy from the clipboard between the dollar-signs (shortcut
36424 \begin_layout Standard
36425 \begin_inset listings
36426 lstparams "language=Python,mathescape=true"
36430 \begin_layout Plain Layout
36432 \begin_inset Caption
36434 \begin_layout Plain Layout
36435 Example Listing float containing a formula
36440 # Example listing float
36443 \begin_layout Plain Layout
36448 \begin_layout Plain Layout
36461 \begin_layout Plain Layout
36471 \begin_layout Standard
36472 \begin_inset VSpace bigskip
36478 \begin_layout Standard
36479 Global listings settings can be set in the
36481 Document\SpecialChar \menuseparator
36482 Settings\SpecialChar \menuseparator
36486 To get there a list of available options, type in a question mark
36487 \begin_inset Quotes eld
36491 \begin_inset Quotes erd
36497 \begin_layout Standard
36498 For more information about the
36502 package, we refer to its documentation
36503 \begin_inset CommandInset citation
36512 \begin_layout Standard
36513 \begin_inset Newpage newpage
36519 \begin_layout Chapter
36521 Units available in LyX
36522 \begin_inset Index idx
36525 \begin_layout Plain Layout
36532 \begin_inset CommandInset label
36534 name "cha:Units-available-in"
36541 \begin_layout Standard
36542 To understand the units described in this documentation, Table
36543 \begin_inset space ~
36547 \begin_inset CommandInset ref
36549 reference "tab:Units"
36553 explains all units available in LyX.
36556 \begin_layout Standard
36557 \begin_inset Float table
36563 \begin_layout Plain Layout
36564 \begin_inset Caption
36566 \begin_layout Plain Layout
36567 \begin_inset CommandInset label
36581 \begin_layout Plain Layout
36582 \begin_inset VSpace medskip
36588 \begin_layout Plain Layout
36590 \begin_inset Tabular
36591 <lyxtabular version="3" rows="20" columns="2">
36592 <features tabularvalignment="middle">
36593 <column alignment="center" valignment="top" width="0">
36594 <column alignment="center" valignment="top" width="0">
36596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36599 \begin_layout Plain Layout
36605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36608 \begin_layout Plain Layout
36616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36619 \begin_layout Plain Layout
36625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36628 \begin_layout Plain Layout
36636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36639 \begin_layout Plain Layout
36645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36648 \begin_layout Plain Layout
36656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36659 \begin_layout Plain Layout
36665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36668 \begin_layout Plain Layout
36676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36679 \begin_layout Plain Layout
36685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36688 \begin_layout Plain Layout
36690 \begin_inset space \thinspace{}
36694 \begin_inset space \thinspace{}
36704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36707 \begin_layout Plain Layout
36713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36716 \begin_layout Plain Layout
36718 \begin_inset space \thinspace{}
36722 \begin_inset space \thinspace{}
36732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36735 \begin_layout Plain Layout
36741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36744 \begin_layout Plain Layout
36745 scaled point (65536
36746 \begin_inset space \thinspace{}
36750 \begin_inset space \thinspace{}
36760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36763 \begin_layout Plain Layout
36769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36772 \begin_layout Plain Layout
36774 \begin_inset space \thinspace{}
36778 \begin_inset space \thinspace{}
36788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36791 \begin_layout Plain Layout
36797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36800 \begin_layout Plain Layout
36802 \begin_inset space \thinspace{}
36806 \begin_inset Formula $\approx$
36810 \begin_inset space \thinspace{}
36820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36823 \begin_layout Plain Layout
36829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36832 \begin_layout Plain Layout
36834 \begin_inset space \thinspace{}
36838 \begin_inset space \thinspace{}
36848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36851 \begin_layout Plain Layout
36857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36860 \begin_layout Plain Layout
36861 % of original image width
36868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36871 \begin_layout Plain Layout
36877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36880 \begin_layout Plain Layout
36888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36891 \begin_layout Plain Layout
36897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36900 \begin_layout Plain Layout
36908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36911 \begin_layout Plain Layout
36917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36920 \begin_layout Plain Layout
36928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36931 \begin_layout Plain Layout
36937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36940 \begin_layout Plain Layout
36948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36951 \begin_layout Plain Layout
36957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36960 \begin_layout Plain Layout
36968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36971 \begin_layout Plain Layout
36977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36980 \begin_layout Plain Layout
36988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36991 \begin_layout Plain Layout
36997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37000 \begin_layout Plain Layout
37012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37015 \begin_layout Plain Layout
37021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37024 \begin_layout Plain Layout
37036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37039 \begin_layout Plain Layout
37045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37048 \begin_layout Plain Layout
37050 \begin_inset space \thinspace{}
37054 \begin_inset space \thinspace{}
37075 \begin_layout Chapter
37076 Output File Formats with Graphics
37077 \begin_inset CommandInset label
37079 name "cha:Output-File-Formats"
37086 \begin_layout Section
37088 \begin_inset Index idx
37091 \begin_layout Plain Layout
37098 \begin_inset Index idx
37101 \begin_layout Plain Layout
37106 \begin_layout Plain Layout
37117 \begin_layout Plain Layout
37132 \begin_layout Standard
37133 This file type has the extension
37134 \begin_inset Quotes eld
37142 \begin_inset Quotes erd
37147 \begin_inset Quotes eld
37151 \begin_inset Quotes erd
37154 (DVI), because it is completely portable; you can move them from one machine
37155 to another without needing to do any sort of conversion.
37156 At the time when this file-format was developed, this was no matter of
37158 DVIs are used for quick previews and as pre-stage for other output formats,
37162 \begin_layout Standard
37163 \begin_inset Note Greyedout
37166 \begin_layout Plain Layout
37171 DVI-files do not contain images; they will only be a linked.
37176 So don't forget this, if you move your
37180 file to another computer.
37181 This property can also slow down your computer when you view the DVI, because
37182 the DVI-viewer has to convert the image in the background to make it visible
37183 when you scroll in the DVI.
37184 So it is recommended that you use PDF for files with many images.
37187 \begin_layout Standard
37188 You can export your document to DVI by using the menu
37190 File\SpecialChar \menuseparator
37191 Export\SpecialChar \menuseparator
37195 You can view your document as DVI via the
37202 \begin_layout Section
37204 \begin_inset CommandInset label
37206 name "sec:PostScript"
37211 \begin_inset Index idx
37214 \begin_layout Plain Layout
37215 File Formats ! PostScript
37221 \begin_inset Index idx
37224 \begin_layout Plain Layout
37229 \begin_layout Plain Layout
37240 \begin_layout Plain Layout
37255 \begin_layout Standard
37256 This file type has the extension
37257 \begin_inset Quotes eld
37265 \begin_inset Quotes erd
37269 PostScript was developed by the company
37273 as a printer language.
37274 The file therefore contains commands that the printer uses to print the
37276 PostScript can be seen as a
37277 \begin_inset Quotes eld
37280 programming language
37281 \begin_inset Quotes erd
37284 ; you can calculate with it and draw diagrams and images
37288 \begin_layout Plain Layout
37289 If you are interested to learn more about this, have a look at the LaTeX-package
37295 \begin_inset CommandInset citation
37307 Due to this ability, the files are often bigger than PDFs.
37310 \begin_layout Standard
37311 PostScript can only contain images in the format
37312 \begin_inset Quotes eld
37315 Encapsulated PostScript
37316 \begin_inset Quotes erd
37319 (EPS, file extension
37320 \begin_inset Quotes eld
37328 \begin_inset Quotes erd
37332 As LyX allows you to use any known image format in your document, it has
37333 to convert images in the background to EPS.
37335 \begin_inset space ~
37339 \begin_inset space ~
37342 images in your document, LyX has to do 50
37343 \begin_inset space ~
37346 conversions whenever you view or export your document.
37347 This will slow down your work flow with LyX drastically.
37348 So if you plan to use PostScript, you can insert your images directly as
37349 EPS to avoid this problem.
37352 \begin_layout Standard
37353 You can export your document to PostScript using the menu
37355 File\SpecialChar \menuseparator
37356 Export\SpecialChar \menuseparator
37360 You can view your document as PostScript via the
37364 menu or by using the toolbar button
37365 \begin_inset Graphics
37366 filename ../images/buffer-view_ps.png
37368 scaleBeforeRotation
37375 \begin_layout Section
37377 \begin_inset Index idx
37380 \begin_layout Plain Layout
37387 \begin_inset Index idx
37390 \begin_layout Plain Layout
37399 \begin_layout Standard
37400 This file type has the extension
37401 \begin_inset Quotes eld
37409 \begin_inset Quotes erd
37414 \begin_inset Quotes eld
37417 Portable Document Format
37418 \begin_inset Quotes erd
37421 (PDF) was developed by
37425 as a derivative of PostScript.
37426 It is more compressed and it uses fewer commands than PostScript.
37428 \begin_inset Quotes eld
37432 \begin_inset Quotes erd
37435 implies, it can be processed at any computer system and the printed output
37436 looks exactly the same.
37439 \begin_layout Standard
37440 PDF can contain images in its own PDF format, in the format
37441 \begin_inset Quotes eld
37444 Joint Photographic Experts Group
37445 \begin_inset Quotes erd
37448 (JPG, file extension
37449 \begin_inset Quotes eld
37457 \begin_inset Quotes erd
37461 \begin_inset Quotes eld
37469 \begin_inset Quotes erd
37472 ), and in the format
37473 \begin_inset Quotes eld
37476 Portable Network Graphics
37477 \begin_inset Quotes erd
37480 (PNG, file extension
37481 \begin_inset Quotes eld
37489 \begin_inset Quotes erd
37493 Nevertheless you can use any other image format, because LyX converts them
37494 in the background to one of these formats.
37495 But as described in the section about PostScript, the image conversion
37496 will slow down your work flow.
37497 So it is recommended that you use images in one of the three mentioned
37501 \begin_layout Standard
37502 You can export your document to PDF via the menu
37504 File\SpecialChar \menuseparator
37507 in three different ways:
37510 \begin_layout Description
37512 \begin_inset space ~
37515 (ps2pdf) This uses the program
37519 that creates a PDF from a PostScript-version of your file.
37520 The PostScript-version is produced by the program
37524 which uses a DVI-version as intermediate step.
37525 So this export variant consists of three conversions.
37528 \begin_layout Description
37530 \begin_inset space ~
37533 (dvipdfm) This uses the program
37537 that converts your file in the background to DVI and in a second step to
37541 \begin_layout Description
37543 \begin_inset space ~
37546 (pdflatex) This uses the program
37550 that converts your file directly to PDF.
37553 \begin_layout Standard
37554 It is recommended that you use
37557 \begin_inset space ~
37566 supports all features of actual PDF-versions, is quick and works stable.
37571 is not under development and therefore a bit outdated.
37574 \begin_layout Standard
37575 You can view your document as PDF via the
37579 menu or by using the toolbar button
37580 \begin_inset Graphics
37581 filename ../images/buffer-view_pdf2.png
37583 scaleBeforeRotation
37594 \begin_inset space ~
37602 \begin_layout Chapter
37603 List of dvips color names
37604 \begin_inset CommandInset label
37606 name "chap:List-of-dvips-colornames"
37613 \begin_layout Standard
37614 \begin_inset Tabular
37615 <lyxtabular version="3" rows="17" columns="4">
37616 <features tabularvalignment="middle">
37617 <column alignment="left" valignment="top" width="0pt">
37618 <column alignment="left" valignment="top" width="0pt">
37619 <column alignment="left" valignment="top" width="0pt">
37620 <column alignment="left" valignment="top" width="0pt">
37622 <cell alignment="left" valignment="top" usebox="none">
37625 \begin_layout Plain Layout
37629 \begin_layout Plain Layout
37642 \begin_layout Plain Layout
37653 \begin_layout Plain Layout
37665 <cell alignment="left" valignment="top" usebox="none">
37668 \begin_layout Plain Layout
37672 \begin_layout Plain Layout
37685 \begin_layout Plain Layout
37696 \begin_layout Plain Layout
37708 <cell alignment="left" valignment="top" usebox="none">
37711 \begin_layout Plain Layout
37715 \begin_layout Plain Layout
37728 \begin_layout Plain Layout
37739 \begin_layout Plain Layout
37751 <cell alignment="left" valignment="top" usebox="none">
37754 \begin_layout Plain Layout
37758 \begin_layout Plain Layout
37771 \begin_layout Plain Layout
37782 \begin_layout Plain Layout
37796 <cell alignment="center" valignment="top" usebox="none">
37799 \begin_layout Plain Layout
37803 \begin_layout Plain Layout
37816 \begin_layout Plain Layout
37824 \begin_inset Phantom Phantom
37827 \begin_layout Plain Layout
37837 \begin_layout Plain Layout
37849 <cell alignment="center" valignment="top" usebox="none">
37852 \begin_layout Plain Layout
37856 \begin_layout Plain Layout
37869 \begin_layout Plain Layout
37877 \begin_inset Phantom Phantom
37880 \begin_layout Plain Layout
37890 \begin_layout Plain Layout
37902 <cell alignment="center" valignment="top" usebox="none">
37905 \begin_layout Plain Layout
37909 \begin_layout Plain Layout
37922 \begin_layout Plain Layout
37930 \begin_inset Phantom Phantom
37933 \begin_layout Plain Layout
37943 \begin_layout Plain Layout
37955 <cell alignment="center" valignment="top" usebox="none">
37958 \begin_layout Plain Layout
37962 \begin_layout Plain Layout
37975 \begin_layout Plain Layout
37983 \begin_inset Phantom Phantom
37986 \begin_layout Plain Layout
37996 \begin_layout Plain Layout
38010 <cell alignment="left" valignment="top" usebox="none">
38013 \begin_layout Plain Layout
38017 \begin_layout Plain Layout
38030 \begin_layout Plain Layout
38038 \begin_inset Phantom Phantom
38041 \begin_layout Plain Layout
38051 \begin_layout Plain Layout
38063 <cell alignment="left" valignment="top" usebox="none">
38066 \begin_layout Plain Layout
38070 \begin_layout Plain Layout
38083 \begin_layout Plain Layout
38091 \begin_inset Phantom Phantom
38094 \begin_layout Plain Layout
38104 \begin_layout Plain Layout
38116 <cell alignment="left" valignment="top" usebox="none">
38119 \begin_layout Plain Layout
38123 \begin_layout Plain Layout
38136 \begin_layout Plain Layout
38144 \begin_inset Phantom Phantom
38147 \begin_layout Plain Layout
38157 \begin_layout Plain Layout
38169 <cell alignment="left" valignment="top" usebox="none">
38172 \begin_layout Plain Layout
38176 \begin_layout Plain Layout
38189 \begin_layout Plain Layout
38197 \begin_inset Phantom Phantom
38200 \begin_layout Plain Layout
38210 \begin_layout Plain Layout
38224 <cell alignment="left" valignment="top" usebox="none">
38227 \begin_layout Plain Layout
38231 \begin_layout Plain Layout
38244 \begin_layout Plain Layout
38252 \begin_inset Phantom Phantom
38255 \begin_layout Plain Layout
38265 \begin_layout Plain Layout
38277 <cell alignment="left" valignment="top" usebox="none">
38280 \begin_layout Plain Layout
38284 \begin_layout Plain Layout
38297 \begin_layout Plain Layout
38305 \begin_inset Phantom Phantom
38308 \begin_layout Plain Layout
38318 \begin_layout Plain Layout
38330 <cell alignment="left" valignment="top" usebox="none">
38333 \begin_layout Plain Layout
38337 \begin_layout Plain Layout
38350 \begin_layout Plain Layout
38358 \begin_inset Phantom Phantom
38361 \begin_layout Plain Layout
38371 \begin_layout Plain Layout
38383 <cell alignment="left" valignment="top" usebox="none">
38386 \begin_layout Plain Layout
38390 \begin_layout Plain Layout
38403 \begin_layout Plain Layout
38411 \begin_inset Phantom Phantom
38414 \begin_layout Plain Layout
38424 \begin_layout Plain Layout
38438 <cell alignment="left" valignment="top" usebox="none">
38441 \begin_layout Plain Layout
38445 \begin_layout Plain Layout
38458 \begin_layout Plain Layout
38466 \begin_inset Phantom Phantom
38469 \begin_layout Plain Layout
38479 \begin_layout Plain Layout
38491 <cell alignment="left" valignment="top" usebox="none">
38494 \begin_layout Plain Layout
38498 \begin_layout Plain Layout
38511 \begin_layout Plain Layout
38519 \begin_inset Phantom Phantom
38522 \begin_layout Plain Layout
38532 \begin_layout Plain Layout
38544 <cell alignment="left" valignment="top" usebox="none">
38547 \begin_layout Plain Layout
38551 \begin_layout Plain Layout
38564 \begin_layout Plain Layout
38572 \begin_inset Phantom Phantom
38575 \begin_layout Plain Layout
38585 \begin_layout Plain Layout
38597 <cell alignment="left" valignment="top" usebox="none">
38600 \begin_layout Plain Layout
38604 \begin_layout Plain Layout
38617 \begin_layout Plain Layout
38625 \begin_inset Phantom Phantom
38628 \begin_layout Plain Layout
38638 \begin_layout Plain Layout
38652 <cell alignment="left" valignment="top" usebox="none">
38655 \begin_layout Plain Layout
38659 \begin_layout Plain Layout
38672 \begin_layout Plain Layout
38680 \begin_inset Phantom Phantom
38683 \begin_layout Plain Layout
38693 \begin_layout Plain Layout
38705 <cell alignment="left" valignment="top" usebox="none">
38708 \begin_layout Plain Layout
38712 \begin_layout Plain Layout
38725 \begin_layout Plain Layout
38733 \begin_inset Phantom Phantom
38736 \begin_layout Plain Layout
38746 \begin_layout Plain Layout
38758 <cell alignment="left" valignment="top" usebox="none">
38761 \begin_layout Plain Layout
38765 \begin_layout Plain Layout
38778 \begin_layout Plain Layout
38786 \begin_inset Phantom Phantom
38789 \begin_layout Plain Layout
38799 \begin_layout Plain Layout
38811 <cell alignment="left" valignment="top" usebox="none">
38814 \begin_layout Plain Layout
38818 \begin_layout Plain Layout
38831 \begin_layout Plain Layout
38839 \begin_inset Phantom Phantom
38842 \begin_layout Plain Layout
38852 \begin_layout Plain Layout
38866 <cell alignment="center" valignment="top" usebox="none">
38869 \begin_layout Plain Layout
38873 \begin_layout Plain Layout
38886 \begin_layout Plain Layout
38894 \begin_inset Phantom Phantom
38897 \begin_layout Plain Layout
38907 \begin_layout Plain Layout
38919 <cell alignment="center" valignment="top" usebox="none">
38922 \begin_layout Plain Layout
38926 \begin_layout Plain Layout
38939 \begin_layout Plain Layout
38947 \begin_inset Phantom Phantom
38950 \begin_layout Plain Layout
38960 \begin_layout Plain Layout
38972 <cell alignment="center" valignment="top" usebox="none">
38975 \begin_layout Plain Layout
38979 \begin_layout Plain Layout
38992 \begin_layout Plain Layout
39000 \begin_inset Phantom Phantom
39003 \begin_layout Plain Layout
39013 \begin_layout Plain Layout
39025 <cell alignment="center" valignment="top" usebox="none">
39028 \begin_layout Plain Layout
39032 \begin_layout Plain Layout
39045 \begin_layout Plain Layout
39053 \begin_inset Phantom Phantom
39056 \begin_layout Plain Layout
39066 \begin_layout Plain Layout
39080 <cell alignment="left" valignment="top" usebox="none">
39083 \begin_layout Plain Layout
39087 \begin_layout Plain Layout
39100 \begin_layout Plain Layout
39108 \begin_inset Phantom Phantom
39111 \begin_layout Plain Layout
39121 \begin_layout Plain Layout
39133 <cell alignment="left" valignment="top" usebox="none">
39136 \begin_layout Plain Layout
39140 \begin_layout Plain Layout
39153 \begin_layout Plain Layout
39161 \begin_inset Phantom Phantom
39164 \begin_layout Plain Layout
39174 \begin_layout Plain Layout
39186 <cell alignment="left" valignment="top" usebox="none">
39189 \begin_layout Plain Layout
39193 \begin_layout Plain Layout
39206 \begin_layout Plain Layout
39214 \begin_inset Phantom Phantom
39217 \begin_layout Plain Layout
39227 \begin_layout Plain Layout
39239 <cell alignment="left" valignment="top" usebox="none">
39242 \begin_layout Plain Layout
39246 \begin_layout Plain Layout
39259 \begin_layout Plain Layout
39267 \begin_inset Phantom Phantom
39270 \begin_layout Plain Layout
39280 \begin_layout Plain Layout
39294 <cell alignment="left" valignment="top" usebox="none">
39297 \begin_layout Plain Layout
39301 \begin_layout Plain Layout
39314 \begin_layout Plain Layout
39322 \begin_inset Phantom Phantom
39325 \begin_layout Plain Layout
39335 \begin_layout Plain Layout
39347 <cell alignment="left" valignment="top" usebox="none">
39350 \begin_layout Plain Layout
39354 \begin_layout Plain Layout
39367 \begin_layout Plain Layout
39375 \begin_inset Phantom Phantom
39378 \begin_layout Plain Layout
39388 \begin_layout Plain Layout
39400 <cell alignment="left" valignment="top" usebox="none">
39403 \begin_layout Plain Layout
39407 \begin_layout Plain Layout
39420 \begin_layout Plain Layout
39428 \begin_inset Phantom Phantom
39431 \begin_layout Plain Layout
39441 \begin_layout Plain Layout
39453 <cell alignment="left" valignment="top" usebox="none">
39456 \begin_layout Plain Layout
39460 \begin_layout Plain Layout
39473 \begin_layout Plain Layout
39481 \begin_inset Phantom Phantom
39484 \begin_layout Plain Layout
39494 \begin_layout Plain Layout
39508 <cell alignment="left" valignment="top" usebox="none">
39511 \begin_layout Plain Layout
39515 \begin_layout Plain Layout
39528 \begin_layout Plain Layout
39536 \begin_inset Phantom Phantom
39539 \begin_layout Plain Layout
39549 \begin_layout Plain Layout
39561 <cell alignment="left" valignment="top" usebox="none">
39564 \begin_layout Plain Layout
39568 \begin_layout Plain Layout
39581 \begin_layout Plain Layout
39589 \begin_inset Phantom Phantom
39592 \begin_layout Plain Layout
39602 \begin_layout Plain Layout
39614 <cell alignment="left" valignment="top" usebox="none">
39617 \begin_layout Plain Layout
39621 \begin_layout Plain Layout
39634 \begin_layout Plain Layout
39642 \begin_inset Phantom Phantom
39645 \begin_layout Plain Layout
39655 \begin_layout Plain Layout
39667 <cell alignment="left" valignment="top" usebox="none">
39670 \begin_layout Plain Layout
39674 \begin_layout Plain Layout
39687 \begin_layout Plain Layout
39695 \begin_inset Phantom Phantom
39698 \begin_layout Plain Layout
39708 \begin_layout Plain Layout
39722 <cell alignment="left" valignment="top" usebox="none">
39725 \begin_layout Plain Layout
39729 \begin_layout Plain Layout
39742 \begin_layout Plain Layout
39750 \begin_inset Phantom Phantom
39753 \begin_layout Plain Layout
39763 \begin_layout Plain Layout
39775 <cell alignment="left" valignment="top" usebox="none">
39778 \begin_layout Plain Layout
39782 \begin_layout Plain Layout
39795 \begin_layout Plain Layout
39803 \begin_inset Phantom Phantom
39806 \begin_layout Plain Layout
39816 \begin_layout Plain Layout
39828 <cell alignment="left" valignment="top" usebox="none">
39831 \begin_layout Plain Layout
39835 \begin_layout Plain Layout
39848 \begin_layout Plain Layout
39856 \begin_inset Phantom Phantom
39859 \begin_layout Plain Layout
39869 \begin_layout Plain Layout
39881 <cell alignment="left" valignment="top" usebox="none">
39884 \begin_layout Plain Layout
39888 \begin_layout Plain Layout
39901 \begin_layout Plain Layout
39909 \begin_inset Phantom Phantom
39912 \begin_layout Plain Layout
39922 \begin_layout Plain Layout
39936 <cell alignment="left" valignment="top" usebox="none">
39939 \begin_layout Plain Layout
39943 \begin_layout Plain Layout
39956 \begin_layout Plain Layout
39964 \begin_inset Phantom Phantom
39967 \begin_layout Plain Layout
39977 \begin_layout Plain Layout
39989 <cell alignment="left" valignment="top" usebox="none">
39992 \begin_layout Plain Layout
39996 \begin_layout Plain Layout
40009 \begin_layout Plain Layout
40017 \begin_inset Phantom Phantom
40020 \begin_layout Plain Layout
40030 \begin_layout Plain Layout
40042 <cell alignment="left" valignment="top" usebox="none">
40045 \begin_layout Plain Layout
40049 \begin_layout Plain Layout
40062 \begin_layout Plain Layout
40070 \begin_inset Phantom Phantom
40073 \begin_layout Plain Layout
40083 \begin_layout Plain Layout
40095 <cell alignment="left" valignment="top" usebox="none">
40098 \begin_layout Plain Layout
40102 \begin_layout Plain Layout
40115 \begin_layout Plain Layout
40123 \begin_inset Phantom Phantom
40126 \begin_layout Plain Layout
40136 \begin_layout Plain Layout
40150 <cell alignment="left" valignment="top" usebox="none">
40153 \begin_layout Plain Layout
40157 \begin_layout Plain Layout
40170 \begin_layout Plain Layout
40178 \begin_inset Phantom Phantom
40181 \begin_layout Plain Layout
40191 \begin_layout Plain Layout
40203 <cell alignment="left" valignment="top" usebox="none">
40206 \begin_layout Plain Layout
40210 \begin_layout Plain Layout
40223 \begin_layout Plain Layout
40231 \begin_inset Phantom Phantom
40234 \begin_layout Plain Layout
40244 \begin_layout Plain Layout
40256 <cell alignment="left" valignment="top" usebox="none">
40259 \begin_layout Plain Layout
40263 \begin_layout Plain Layout
40276 \begin_layout Plain Layout
40284 \begin_inset Phantom Phantom
40287 \begin_layout Plain Layout
40297 \begin_layout Plain Layout
40309 <cell alignment="left" valignment="top" usebox="none">
40312 \begin_layout Plain Layout
40316 \begin_layout Plain Layout
40329 \begin_layout Plain Layout
40337 \begin_inset Phantom Phantom
40340 \begin_layout Plain Layout
40350 \begin_layout Plain Layout
40364 <cell alignment="left" valignment="top" usebox="none">
40367 \begin_layout Plain Layout
40371 \begin_layout Plain Layout
40384 \begin_layout Plain Layout
40392 \begin_inset Phantom Phantom
40395 \begin_layout Plain Layout
40405 \begin_layout Plain Layout
40417 <cell alignment="left" valignment="top" usebox="none">
40420 \begin_layout Plain Layout
40424 \begin_layout Plain Layout
40437 \begin_layout Plain Layout
40445 \begin_inset Phantom Phantom
40448 \begin_layout Plain Layout
40458 \begin_layout Plain Layout
40470 <cell alignment="left" valignment="top" usebox="none">
40473 \begin_layout Plain Layout
40477 \begin_layout Plain Layout
40490 \begin_layout Plain Layout
40498 \begin_inset Phantom Phantom
40501 \begin_layout Plain Layout
40511 \begin_layout Plain Layout
40523 <cell alignment="left" valignment="top" usebox="none">
40526 \begin_layout Plain Layout
40530 \begin_layout Plain Layout
40543 \begin_layout Plain Layout
40551 \begin_inset Phantom Phantom
40554 \begin_layout Plain Layout
40564 \begin_layout Plain Layout
40578 <cell alignment="left" valignment="top" usebox="none">
40581 \begin_layout Plain Layout
40585 \begin_layout Plain Layout
40598 \begin_layout Plain Layout
40606 \begin_inset Phantom Phantom
40609 \begin_layout Plain Layout
40619 \begin_layout Plain Layout
40631 <cell alignment="left" valignment="top" usebox="none">
40634 \begin_layout Plain Layout
40638 \begin_layout Plain Layout
40651 \begin_layout Plain Layout
40659 \begin_inset Phantom Phantom
40662 \begin_layout Plain Layout
40672 \begin_layout Plain Layout
40684 <cell alignment="left" valignment="top" usebox="none">
40687 \begin_layout Plain Layout
40691 \begin_layout Plain Layout
40704 \begin_layout Plain Layout
40712 \begin_inset Phantom Phantom
40715 \begin_layout Plain Layout
40725 \begin_layout Plain Layout
40737 <cell alignment="left" valignment="top" usebox="none">
40740 \begin_layout Plain Layout
40744 \begin_layout Plain Layout
40757 \begin_layout Plain Layout
40765 \begin_inset Phantom Phantom
40768 \begin_layout Plain Layout
40778 \begin_layout Plain Layout
40792 <cell alignment="left" valignment="top" usebox="none">
40795 \begin_layout Plain Layout
40799 \begin_layout Plain Layout
40812 \begin_layout Plain Layout
40820 \begin_inset Phantom Phantom
40823 \begin_layout Plain Layout
40833 \begin_layout Plain Layout
40845 <cell alignment="left" valignment="top" usebox="none">
40848 \begin_layout Plain Layout
40852 \begin_layout Plain Layout
40865 \begin_layout Plain Layout
40873 \begin_inset Phantom Phantom
40876 \begin_layout Plain Layout
40886 \begin_layout Plain Layout
40898 <cell alignment="left" valignment="top" usebox="none">
40901 \begin_layout Plain Layout
40905 \begin_layout Plain Layout
40918 \begin_layout Plain Layout
40926 \begin_inset Phantom Phantom
40929 \begin_layout Plain Layout
40939 \begin_layout Plain Layout
40951 <cell alignment="left" valignment="top" usebox="none">
40954 \begin_layout Plain Layout
40958 \begin_layout Plain Layout
40971 \begin_layout Plain Layout
40979 \begin_inset Phantom Phantom
40982 \begin_layout Plain Layout
40992 \begin_layout Plain Layout
41006 <cell alignment="left" valignment="top" usebox="none">
41009 \begin_layout Plain Layout
41013 \begin_layout Plain Layout
41026 \begin_layout Plain Layout
41034 \begin_inset Phantom Phantom
41037 \begin_layout Plain Layout
41047 \begin_layout Plain Layout
41059 <cell alignment="left" valignment="top" usebox="none">
41062 \begin_layout Plain Layout
41068 <cell alignment="left" valignment="top" usebox="none">
41071 \begin_layout Plain Layout
41077 <cell alignment="left" valignment="top" usebox="none">
41080 \begin_layout Plain Layout
41094 \begin_layout Chapter
41095 Explanation of Equation
41096 \begin_inset space ~
41100 \begin_inset CommandInset ref
41107 \begin_inset CommandInset label
41109 name "cha:Explanation-of-Equation"
41116 \begin_layout Standard
41117 We can calculate the total width of
41122 \begin_inset Formula $W_{\mathrm{tot\, n}}$
41126 \begin_inset Formula
41128 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
41134 \begin_inset Formula $W_{g\, n}$
41137 is the given width of all cells,
41143 is the LaTeX-length between the cell text and the cell border (its default
41145 \begin_inset space \thinspace{}
41155 is the thickness of the cell border line, the default is 0.4
41156 \begin_inset space \thinspace{}
41162 \begin_layout Standard
41164 \begin_inset space ~
41168 \begin_inset CommandInset ref
41170 reference "eq:Wtot_n"
41174 , the total width of a multicolumn
41175 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
41179 \begin_inset Formula
41181 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
41189 \begin_layout Standard
41190 By setting equation
41191 \begin_inset space ~
41195 \begin_inset CommandInset ref
41197 reference "eq:Wtot_n"
41202 \begin_inset CommandInset ref
41204 reference "eq:Wtot_mult"
41208 equal we can calculate the needed given width
41209 \begin_inset Formula $W_{g\, n}$
41216 columns are spanned, so that each column has a total width of
41217 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
41221 \begin_inset Formula
41223 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
41231 \begin_layout Bibliography
41232 \labelwidthstring Bibliography
41233 \begin_inset CommandInset bibitem
41234 LatexCommand bibitem
41235 key "latexcompanion"
41239 Frank Mittelbach and Michel Goossens:
41241 The LaTeX Companion Second Edition.
41244 Addison-Wesley, 2004
41247 \begin_layout Bibliography
41248 \labelwidthstring Bibliography
41249 \begin_inset CommandInset bibitem
41250 LatexCommand bibitem
41255 Helmut Kopka and Patrick W.
41258 A Guide to LaTeX Fourth Edition.
41261 Addison-Wesley, 2003
41264 \begin_layout Bibliography
41265 \labelwidthstring Bibliography
41266 \begin_inset CommandInset bibitem
41267 LatexCommand bibitem
41274 LaTeX: A Document Preparation System.
41277 Addison-Wesley, second edition, 1994
41280 \begin_layout Bibliography
41281 \labelwidthstring Bibliography
41282 \begin_inset CommandInset bibitem
41283 LatexCommand bibitem
41288 Documentation of the LaTeX-package
41291 \begin_inset CommandInset href
41294 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
41301 \begin_inset Index idx
41304 \begin_layout Plain Layout
41305 LaTeX-packages ! booktabs
41313 \begin_layout Bibliography
41314 \labelwidthstring Bibliography
41315 \begin_inset CommandInset bibitem
41316 LatexCommand bibitem
41321 Documentation of the LaTeX-package
41324 \begin_inset CommandInset href
41327 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
41334 \begin_inset Index idx
41337 \begin_layout Plain Layout
41338 LaTeX-packages ! caption
41346 \begin_layout Bibliography
41347 \labelwidthstring Bibliography
41348 \begin_inset CommandInset bibitem
41349 LatexCommand bibitem
41354 Documentation of the LaTeX-package
41357 \begin_inset CommandInset href
41360 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
41367 \begin_inset Index idx
41370 \begin_layout Plain Layout
41371 LaTeX-packages ! endfloat
41379 \begin_layout Bibliography
41380 \labelwidthstring Bibliography
41381 \begin_inset CommandInset bibitem
41382 LatexCommand bibitem
41387 Documentation of the LaTeX-package
41390 \begin_inset CommandInset href
41393 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
41400 \begin_inset Index idx
41403 \begin_layout Plain Layout
41404 LaTeX-packages ! footmisc
41412 \begin_layout Bibliography
41413 \labelwidthstring Bibliography
41414 \begin_inset CommandInset bibitem
41415 LatexCommand bibitem
41420 Documentation of the LaTeX-package
41423 \begin_inset CommandInset href
41426 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
41433 \begin_inset Index idx
41436 \begin_layout Plain Layout
41437 LaTeX-packages ! hyperref
41445 \begin_layout Bibliography
41446 \labelwidthstring Bibliography
41447 \begin_inset CommandInset bibitem
41448 LatexCommand bibitem
41453 Documentation of the LaTeX-package
41456 \begin_inset CommandInset href
41459 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
41466 \begin_inset Index idx
41469 \begin_layout Plain Layout
41470 LaTeX-packages ! hyperref
41478 \begin_layout Bibliography
41479 \labelwidthstring Bibliography
41480 \begin_inset CommandInset bibitem
41481 LatexCommand bibitem
41486 Documentation of the LaTeX-package
41489 \begin_inset CommandInset href
41492 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
41499 \begin_inset Index idx
41502 \begin_layout Plain Layout
41503 LaTeX-packages ! KOMA-Script
41511 \begin_layout Bibliography
41512 \labelwidthstring Bibliography
41513 \begin_inset CommandInset bibitem
41514 LatexCommand bibitem
41519 Documentation of the LaTeX-package
41522 \begin_inset CommandInset href
41525 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
41532 \begin_inset Index idx
41535 \begin_layout Plain Layout
41536 LaTeX-packages ! listings
41544 \begin_layout Bibliography
41545 \labelwidthstring Bibliography
41546 \begin_inset CommandInset bibitem
41547 LatexCommand bibitem
41552 Documentation of the LaTeX-package
41555 \begin_inset CommandInset href
41558 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
41565 \begin_inset Index idx
41568 \begin_layout Plain Layout
41569 LaTeX-packages ! marginnote
41577 \begin_layout Bibliography
41578 \labelwidthstring Bibliography
41579 \begin_inset CommandInset bibitem
41580 LatexCommand bibitem
41585 Documentation of the LaTeX-package
41588 \begin_inset CommandInset href
41591 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
41598 \begin_inset CommandInset href
41601 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
41606 \begin_inset Index idx
41609 \begin_layout Plain Layout
41610 LaTeX-packages ! lettrine
41618 \begin_layout Bibliography
41619 \labelwidthstring Bibliography
41620 \begin_inset CommandInset bibitem
41621 LatexCommand bibitem
41626 Web page of the LaTeX-package
41629 \begin_inset CommandInset href
41632 target "http://tug.org/PSTricks/"
41639 \begin_inset Index idx
41642 \begin_layout Plain Layout
41643 LaTeX-packages ! PSTricks
41651 \begin_layout Bibliography
41652 \labelwidthstring Bibliography
41653 \begin_inset CommandInset bibitem
41654 LatexCommand bibitem
41659 Documentation of the LaTeX-package
41662 \begin_inset CommandInset href
41665 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
41672 \begin_inset Index idx
41675 \begin_layout Plain Layout
41676 LaTeX-packages ! sidecap
41684 \begin_layout Bibliography
41685 \labelwidthstring Bibliography
41686 \begin_inset CommandInset bibitem
41687 LatexCommand bibitem
41692 Documentation of the LaTeX-package
41695 \begin_inset CommandInset href
41698 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
41705 \begin_inset Index idx
41708 \begin_layout Plain Layout
41709 LaTeX-packages ! pdfpages
41717 \begin_layout Bibliography
41718 \labelwidthstring Bibliography
41719 \begin_inset CommandInset bibitem
41720 LatexCommand bibitem
41725 Documentation of the LaTeX-package
41728 \begin_inset CommandInset href
41731 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
41738 \begin_inset Index idx
41741 \begin_layout Plain Layout
41742 LaTeX-packages ! prettyref
41750 \begin_layout Bibliography
41751 \labelwidthstring Bibliography
41752 \begin_inset CommandInset bibitem
41753 LatexCommand bibitem
41758 Documentation of the LaTeX-package
41761 \begin_inset CommandInset href
41764 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
41771 \begin_inset Index idx
41774 \begin_layout Plain Layout
41775 LaTeX-packages ! refstyle
41783 \begin_layout Bibliography
41784 \labelwidthstring Bibliography
41785 \begin_inset CommandInset bibitem
41786 LatexCommand bibitem
41792 \begin_inset CommandInset href
41795 target "http://wiki.lyx.org/LyX/NewInLyX20"
41799 about new features in
41806 \begin_layout Standard
41807 \begin_inset CommandInset index_print
41808 LatexCommand printindex