1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for colored table rows
85 \usepackage[table]{xcolor}
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
162 \IfFileExists{diagbox.sty}
163 {\usepackage{diagbox}
164 \setboolean{diagbox}{true}}
165 {\setboolean{diagbox}{false}}
167 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
168 \use_default_options false
172 \maintain_unincluded_children false
174 \language_package default
179 \font_typewriter default
180 \font_default_family default
181 \use_non_tex_fonts false
188 \default_output_format default
190 \bibtex_command default
191 \index_command default
195 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
196 \pdf_author "LyX Team, Uwe Stöhr"
197 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
198 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
200 \pdf_bookmarksnumbered true
201 \pdf_bookmarksopen true
202 \pdf_bookmarksopenlevel 1
203 \pdf_breaklinks false
207 \pdf_pdfusetitle false
208 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
218 \paperorientation portrait
221 \notefontcolor #0000ff
228 \paragraph_separation skip
230 \quotes_language english
233 \paperpagestyle default
237 \tracking_changes true
238 \output_changes false
241 \html_be_strict false
242 \author -195340706 "Georg Baum"
248 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
257 \begin_layout Plain Layout
259 If you have comments or error corrections, please send them to the LyX Documenta
261 \begin_inset CommandInset href
263 name "lyx-docs@lists.lyx.org"
264 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
275 \begin_inset Note Note
278 \begin_layout Plain Layout
285 \begin_inset Newline newline
289 \begin_inset Newline newline
297 \begin_layout Standard
298 \begin_inset CommandInset toc
299 LatexCommand tableofcontents
306 \begin_layout Standard
307 \begin_inset Note Note
310 \begin_layout Plain Layout
311 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
322 diagbox, lettrine, marginnote, picinpar
329 If they are not installed you can export the document anyway but the sections
330 where the packages are required won't appear in the output.
333 \begin_layout Plain Layout
334 The latest PDF-version of this document can be found here:
335 \begin_inset Newline newline
340 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
348 \begin_layout Chapter
350 \begin_inset Index idx
353 \begin_layout Plain Layout
360 \begin_inset Index idx
363 \begin_layout Plain Layout
368 \begin_layout Plain Layout
379 \begin_layout Plain Layout
394 \begin_layout Section
396 \begin_inset Index idx
399 \begin_layout Plain Layout
400 Figures ! Graphics Dialog
406 \begin_inset CommandInset label
408 name "sec:Graphics-Dialog"
415 \begin_layout Standard
416 To insert an image into your document, place the cursor at the text position
417 you want and click on the toolbar icon
422 arg "dialog-show-new-inset graphics"
429 Insert\SpecialChar \menuseparator
433 Then a dialog will appear to choose the file to load.
434 The image will appear in the output exactly at the position where it is
438 \begin_layout Standard
439 The graphics dialog can be called at any time by clicking on an image.
440 This dialog has three tabs:
443 \begin_layout Description
448 Here you can choose an image file and adjust its appearance in the output.
449 The available units for the image size are explained in appendix
454 \begin_inset CommandInset ref
456 reference "cha:Units-available-in"
461 \begin_inset Newline newline
465 \begin_inset Index idx
468 \begin_layout Plain Layout
474 You can rotate images counter-clockwise by setting a rotation angle and
476 The image will also be rotated inside LyX.
477 \begin_inset Newline newline
481 \begin_inset Index idx
484 \begin_layout Plain Layout
490 Images can be scaled by using a percentage value or by setting the width
491 and height explicitly.
492 If you set only the width or only the height, the other size will be determined
494 If you set both, then the image will be transformed to the given size,
495 possibly distorting it.
496 To prevent the image from distortion, use the option
498 Maintain aspect ratio
501 The image will then be scaled so that its width and height don't exceed
502 the specified dimensions.
503 \begin_inset Newline newline
506 Images can be opened in a program of your choice by right-clicking on it
507 and choosing the entry
516 The program can be set for every image format in the file format settings
517 in LyX's preferences.
520 \begin_layout Description
525 Alternatively to the usage of scaling units it is possible to set image
526 coordinates to adjust the height and width of the image in the output.
527 The coordinates can also be calculated automatically by pressing the button
557 will only print the image region within the given coordinates.
558 Normally you don't need to worry about image coordinates and can ignore
562 \begin_layout Description
579 In this tab you can modify the appearance of the image within LyX and LaTeX
580 experts can specify additional LaTeX options.
581 \begin_inset Newline newline
592 makes the image appear in the output only as a frame with the size of the
594 \begin_inset Newline newline
613 option only affects zipped EPS-graphics, e.
614 \begin_inset space \thinspace{}
618 \begin_inset space \space{}
626 When the option is used the images will not be unzipped on export, since
627 LaTeX can handle them as they are.
628 \begin_inset Newline newline
631 Zipped EPS-graphics are useful to save disk space when you choose PostScript
632 as output format, see appendix
637 \begin_inset CommandInset ref
639 reference "sec:PostScript"
644 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
646 \begin_inset Newline newline
654 \begin_inset Newline newline
659 zgrep %%Bounding x.eps.gz > x.eps.bb
662 \begin_inset Newline newline
665 The second command creates the bounding box file
666 \begin_inset Quotes eld
670 \begin_inset Quotes erd
673 that is needed by LaTeX for zipped graphics.
674 \begin_inset Newline newline
685 you can define or join an image settings group.
686 \begin_inset Index idx
689 \begin_layout Plain Layout
690 Figures ! Settings grouping
695 Images within such a group share their settings, so adjusting one image
696 of the group automatically also adjusts all other images of the group in
698 So you can for example change the size for a bunch of images without the
699 need to manually change each of them.
700 Joining an existing group can also be done using the context menu of the
701 image by checking the name of the desired group.
704 \begin_layout Standard
705 \begin_inset VSpace bigskip
711 \begin_layout Standard
712 This is an example image in EPS format
716 \begin_layout Plain Layout
717 Image formats are explained in section
722 \begin_inset CommandInset ref
724 reference "sec:Image-Formats"
733 within a separate, horizontally centered paragraph:
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/mobius.eps
749 \begin_layout Standard
750 This is the same image like the one above but in draft mode:
753 \begin_layout Standard
755 \begin_inset Graphics
756 filename clipart/mobius.eps
767 \begin_layout Standard
768 \begin_inset Newpage newpage
774 \begin_layout Section
776 \begin_inset CommandInset label
778 name "sec:Figure-Floats"
783 \begin_inset Index idx
786 \begin_layout Plain Layout
793 \begin_inset Index idx
796 \begin_layout Plain Layout
805 \begin_layout Standard
806 For general explanations about floats, have a look at section
811 \begin_inset CommandInset ref
813 reference "sec:FloatIntroduction"
820 \begin_layout Standard
826 arg "float-insert figure"
833 Insert\SpecialChar \menuseparator
834 Float\SpecialChar \menuseparator
837 inserts a float with a caption that has the label
838 \begin_inset Quotes eld
846 \begin_inset Quotes erd
849 (# is the actual number).
850 You can insert the image above the caption, like in Figure
855 \begin_inset CommandInset ref
857 reference "fig:kill-plat"
861 or below the caption, like in Figure
866 \begin_inset CommandInset ref
868 reference "fig:escher"
873 More about caption placement is described in section
878 \begin_inset CommandInset ref
880 reference "sec:Caption-Placement"
887 \begin_layout Standard
888 \begin_inset Float figure
893 \begin_layout Plain Layout
895 \begin_inset Graphics
896 filename clipart/platypus.eps
906 \begin_layout Plain Layout
909 \begin_layout Plain Layout
910 \begin_inset CommandInset label
916 A severely distorted platypus in a float.
929 \begin_layout Standard
930 \begin_inset Float figure
935 \begin_layout Plain Layout
938 \begin_layout Plain Layout
939 \begin_inset CommandInset label
954 \begin_layout Plain Layout
956 \begin_inset Graphics
957 filename clipart/escher-lsd.eps
972 \begin_layout Standard
973 \begin_inset Index idx
976 \begin_layout Plain Layout
977 References ! to Figures
987 \begin_inset CommandInset ref
989 reference "fig:kill-plat"
994 \begin_inset CommandInset ref
996 reference "fig:escher"
1000 are examples of referenced figures.
1001 Figures can be referenced in the text by referencing their label.
1002 To do this insert a label in the caption using the menu
1004 Insert\SpecialChar \menuseparator
1007 or the toolbar button
1018 You can now refer to the label using the menu
1020 Insert\SpecialChar \menuseparator
1022 \begin_inset space ~
1027 or the toolbar button
1032 arg "dialog-show-new-inset ref"
1038 It is important to use references to floats, rather than using vague references
1040 \begin_inset Quotes eld
1044 \begin_inset Quotes erd
1047 , because LaTeX will reposition the floats in the final document and it
1049 \begin_inset Quotes eld
1053 \begin_inset Quotes erd
1057 \begin_inset Newline newline
1060 Referencing is explained in detail in section
1061 \begin_inset space ~
1065 \begin_inset CommandInset ref
1067 reference "sec:Referencing-Floats"
1074 \begin_layout Standard
1075 Normally only one image is inserted to a figure float, but sometimes you
1076 might want to use two images with separate subcaptions.
1077 This can be done by inserting image floats into existing image floats.
1078 Note that only the main caption of the float is added to the List of Figures.
1080 \begin_inset space ~
1084 \begin_inset CommandInset ref
1086 reference "fig:Two-distorted-images"
1090 is an example of a figure float with two images set side by side.
1091 You can also set the images one below the other.
1093 \begin_inset space ~
1097 \begin_inset CommandInset ref
1099 reference "fig:Undefinable-structure"
1104 \begin_inset CommandInset ref
1106 reference "fig:A-Platypus"
1113 \begin_layout Standard
1114 \begin_inset Float figure
1119 \begin_layout Plain Layout
1120 \begin_inset space \hfill{}
1124 \begin_inset Float figure
1129 \begin_layout Plain Layout
1130 \begin_inset Caption
1132 \begin_layout Plain Layout
1133 \begin_inset CommandInset label
1135 name "fig:Undefinable-structure"
1139 Undefinable structure.
1147 \begin_layout Plain Layout
1148 \begin_inset Graphics
1149 filename clipart/escher-lsd.eps
1162 \begin_inset space \hfill{}
1166 \begin_inset Float figure
1171 \begin_layout Plain Layout
1172 \begin_inset Caption
1174 \begin_layout Plain Layout
1175 \begin_inset CommandInset label
1177 name "fig:A-Platypus"
1189 \begin_layout Plain Layout
1190 \begin_inset Graphics
1191 filename clipart/platypus.eps
1204 \begin_inset space \hfill{}
1210 \begin_layout Plain Layout
1211 \begin_inset Caption
1213 \begin_layout Plain Layout
1214 \begin_inset CommandInset label
1216 name "fig:Two-distorted-images"
1221 \begin_inset CommandInset label
1223 name "fig2:Two-distorted-images-2"
1227 Two distorted images.
1228 Both images are in the image settings group named
1229 \begin_inset Quotes eld
1233 \begin_inset Quotes erd
1249 \begin_layout Standard
1250 \begin_inset Newpage newpage
1256 \begin_layout Section
1258 \begin_inset CommandInset label
1260 name "sec:Image-Formats"
1265 \begin_inset Index idx
1268 \begin_layout Plain Layout
1275 \begin_inset Index idx
1278 \begin_layout Plain Layout
1279 Figures ! Image Formats
1287 \begin_layout Standard
1288 You can insert images in any known file format.
1289 But as explained in appendix
1290 \begin_inset space ~
1294 \begin_inset CommandInset ref
1296 reference "cha:Output-File-Formats"
1300 , each output document format allows only a few image formats.
1301 LyX uses therefore the program
1305 in the background to convert the images to the right format.
1306 To increase your work flow by avoiding these conversions in the background,
1307 you could choose to use only the image formats that can directly be embedded
1308 in the output file format.
1309 The output file formats are explained in appendix
1310 \begin_inset space ~
1314 \begin_inset CommandInset ref
1316 reference "cha:Output-File-Formats"
1323 \begin_layout Standard
1324 Similar to fonts there are two types of image formats:
1327 \begin_layout Description
1329 \begin_inset space ~
1332 images consist of pixel values, often in a compressed form.
1333 They are therefore not fully scalable and look pixelated in large zooms.
1334 Well-known bitmap image formats are
1335 \begin_inset Quotes eld
1338 Graphics Interchange Format
1339 \begin_inset Quotes erd
1342 (GIF, file extension
1343 \begin_inset Quotes eld
1351 \begin_inset Quotes erd
1355 \begin_inset Index idx
1358 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1374 \begin_layout Plain Layout
1387 \begin_inset Quotes eld
1390 Portable Network Graphics
1391 \begin_inset Quotes erd
1394 (PNG, file extension
1395 \begin_inset Quotes eld
1403 \begin_inset Quotes erd
1407 \begin_inset Index idx
1410 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1426 \begin_layout Plain Layout
1439 \begin_inset Quotes eld
1442 Joint Photographic Experts Group
1443 \begin_inset Quotes erd
1446 (JPG, file extension
1447 \begin_inset Quotes eld
1455 \begin_inset Quotes erd
1459 \begin_inset Quotes eld
1467 \begin_inset Quotes erd
1471 \begin_inset Index idx
1474 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1490 \begin_layout Plain Layout
1505 \begin_layout Description
1507 \begin_inset space ~
1510 images consist of vectors and can therefore be scaled to any size without
1512 The scaling ability is necessary if you want to create presentations, because
1513 presentations are always scaled by the video projector.
1514 Scaling is also useful for online documents to let the user zoom into diagrams.
1515 \begin_inset Newline newline
1518 Well-known scalable image formats are
1519 \begin_inset Quotes eld
1522 Scalable Vector Graphics
1523 \begin_inset Quotes erd
1526 (SVG, file extension
1527 \begin_inset Quotes eld
1535 \begin_inset Quotes erd
1539 \begin_inset Index idx
1542 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1558 \begin_layout Plain Layout
1571 \begin_inset Quotes eld
1574 Encapsulated PostScript
1575 \begin_inset Quotes erd
1578 (EPS, file extension
1579 \begin_inset Quotes eld
1587 \begin_inset Quotes erd
1591 \begin_inset Index idx
1594 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1610 \begin_layout Plain Layout
1623 \begin_inset Quotes eld
1626 Portable Document Format
1627 \begin_inset Quotes erd
1630 (PDF, file extension
1631 \begin_inset Quotes eld
1639 \begin_inset Quotes erd
1643 \begin_inset Index idx
1646 \begin_layout Plain Layout
1653 \begin_inset Quotes eld
1657 \begin_inset Quotes erd
1660 (WMF, file extension
1661 \begin_inset Quotes eld
1669 \begin_inset Quotes erd
1673 \begin_inset Index idx
1676 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1692 \begin_layout Plain Layout
1706 \begin_inset Quotes eld
1710 \begin_inset Quotes erd
1713 , because you can convert any bitmap image to a PDF or EPS-image and the
1714 result will still be a bitmap image.
1715 In such cases only a header with the image properties is added to the original
1720 \begin_layout Plain Layout
1721 In the case of PDF, the original image is additionally compressed.
1727 The PDF-files generated by
1731 are for example bitmap images.
1734 \begin_layout Standard
1735 Normally it is not possible to convert a bitmap image into a scalable one,
1737 Only the image formats PDF and EPS can directly be embedded to PDF and
1738 PostScript output files, respectively.
1739 SVG and WMF-images are recalculated to bitmaps when the output file is
1740 generated because there is currently no adequate WMF/SVG
1741 \begin_inset Formula $\to$
1744 PDF/EPS converter available.
1747 \begin_layout Chapter
1749 \begin_inset Index idx
1752 \begin_layout Plain Layout
1761 \begin_layout Section
1763 \begin_inset Index idx
1766 \begin_layout Plain Layout
1767 Table ! Introduction
1775 \begin_layout Standard
1776 You can insert a table using either the toolbar button
1779 arg "tabular-insert"
1784 Insert\SpecialChar \menuseparator
1788 The toolbar button offers you a graphical selection: move the mouse to
1789 set the column/row number of the table that should be created and then
1790 press a mouse button.
1791 When you use the menu to create a table, a dialog will appear, asking you
1792 for the number of rows and columns.
1793 \begin_inset Newline newline
1796 The default table has lines around any cell and the first row appears separated
1797 from the rest of the table.
1798 This separation occurs due to a double line: The cells of the first row
1799 have a line below them and the cells of the second row have a line above
1801 Here is an example table:
1804 \begin_layout Standard
1806 \begin_inset Tabular
1807 <lyxtabular version="3" rows="4" columns="4">
1808 <features tabularvalignment="middle">
1809 <column alignment="center" valignment="top" width="0">
1810 <column alignment="center" valignment="top" width="0">
1811 <column alignment="center" valignment="top" width="0">
1812 <column alignment="center" valignment="top" width="0">
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1817 \begin_layout Plain Layout
1823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1826 \begin_layout Plain Layout
1841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1844 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1853 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1864 \begin_layout Plain Layout
1879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1882 \begin_layout Plain Layout
1888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1891 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1900 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1911 \begin_layout Plain Layout
1926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1929 \begin_layout Plain Layout
1935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1938 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1947 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1958 \begin_layout Plain Layout
1973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1976 \begin_layout Plain Layout
1982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1985 \begin_layout Plain Layout
1991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1994 \begin_layout Plain Layout
2008 \begin_layout Section
2010 \begin_inset Index idx
2013 \begin_layout Plain Layout
2022 \begin_layout Standard
2023 You can alter a table by clicking on it with the right mouse button, which
2024 brings up the table dialog.
2025 Here you can adjust the settings of that cell and row/column respectively
2026 where the cursor is currently placed.
2027 Most of the dialog options also work on selections.
2028 This means if you select more cells, columns or rows, the action is done
2029 for the whole selection.
2030 Note that there is a difference between selecting the
2034 of the cell, and the cell itself.
2035 \begin_inset Newline newline
2038 With the dialog option
2041 \begin_inset space ~
2046 every change you make in the dialog is directly applied.
2047 If you move the cursor to another table cell the dialog will then also
2048 be updated with the parameters of the new cell.
2049 If you change length values in the dialog you must press return to get
2051 \begin_inset Newline newline
2054 You can alter tables with the following tabs of the table dialog:
2057 \begin_layout Description
2061 \begin_inset space ~
2066 Here you can set the table width
2067 \begin_inset Index idx
2070 \begin_layout Plain Layout
2076 , and the horizontal alignment and the width of the current column.
2080 \begin_inset space ~
2084 \begin_inset space ~
2089 is described in section
2090 \begin_inset space ~
2094 \begin_inset CommandInset ref
2096 reference "sub:Special-Cell-Alignment"
2101 When you have set a width you can also adjust the vertical alignment of
2103 A given width will allow the cell to have line breaks and multiple paragraphs
2104 of text, see section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sub:Multiple-Lines-in"
2116 If you set no width, the column is as wide as the content of its widest
2118 \begin_inset Newline newline
2121 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Multicolumns"
2133 or the cells of one column as multirow cell, see section
2134 \begin_inset space ~
2138 \begin_inset CommandInset ref
2140 reference "sub:Multirows"
2145 \begin_inset Newline newline
2148 The rotate check boxes rotate the current cell, a selection, or the whole
2149 table counter-clockwise by 90°.
2150 The rotation is not shown within LyX, only in the output.
2151 \begin_inset Newline newline
2155 \begin_inset Note Greyedout
2158 \begin_layout Plain Layout
2163 Not all DVI-viewers are able to display rotations.
2169 \begin_inset Newline newline
2172 The table-wide vertical alignment is used for tables within text lines:
2173 \begin_inset Newline newline
2176 A line with tables with different alignments:
2177 \begin_inset Tabular
2178 <lyxtabular version="3" rows="2" columns="2">
2179 <features tabularvalignment="top">
2180 <column alignment="center" valignment="top" width="0pt">
2181 <column alignment="center" valignment="top" width="0">
2183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2186 \begin_layout Plain Layout
2192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2195 \begin_layout Plain Layout
2212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2215 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2233 \begin_layout Plain Layout
2245 \begin_inset Tabular
2246 <lyxtabular version="3" rows="2" columns="2">
2247 <features tabularvalignment="middle">
2248 <column alignment="center" valignment="top" width="0">
2249 <column alignment="center" valignment="top" width="0">
2251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2254 \begin_layout Plain Layout
2260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2263 \begin_layout Plain Layout
2280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2283 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2301 \begin_layout Plain Layout
2313 \begin_inset Tabular
2314 <lyxtabular version="3" rows="2" columns="2">
2315 <features tabularvalignment="bottom">
2316 <column alignment="center" valignment="top" width="0pt">
2317 <column alignment="center" valignment="top" width="0">
2319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2322 \begin_layout Plain Layout
2328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2331 \begin_layout Plain Layout
2348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2351 \begin_layout Plain Layout
2366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2369 \begin_layout Plain Layout
2381 \begin_inset Newline newline
2384 It is also possible to enter a LaTeX-argument which is needed for special
2385 table formattings, see section
2386 \begin_inset space ~
2390 \begin_inset CommandInset ref
2392 reference "sub:Multicolumn-Calculations"
2397 \begin_inset CommandInset ref
2399 reference "sec:Colored-Tables"
2406 \begin_layout Description
2411 In this tab you can add and delete border lines for the current row/column.
2412 \begin_inset Newline newline
2415 Using the style option
2419 will convert the table to a formal table as described in section
2420 \begin_inset space ~
2424 \begin_inset CommandInset ref
2426 reference "sec:Formal-Tables"
2431 \begin_inset Newline newline
2434 You can also add space here to table rows as described in section
2435 \begin_inset space ~
2439 \begin_inset CommandInset ref
2441 reference "sub:Row-Spacing"
2448 \begin_layout Description
2453 This tab is to make a table a so called
2454 \begin_inset Quotes eld
2462 \begin_inset Quotes erd
2465 that can run over several pages.
2467 \begin_inset space ~
2471 \begin_inset CommandInset ref
2473 reference "sec:Longtables"
2478 \begin_inset CommandInset ref
2480 reference "sec:Special-Longtable-Issues"
2484 describe the longtable features in detail.
2487 \begin_layout Section
2489 \begin_inset Index idx
2492 \begin_layout Plain Layout
2501 \begin_layout Standard
2502 The table toolbar is an alternative to the table dialog to be able to alter
2504 It should normally appear at the bottom of LyX's main window when the cursor
2506 You can alternatively switch it on to appear always, by right-clicking
2507 in LyX's main menu bar.
2510 \begin_layout Standard
2511 The toolbar has the following icons:
2514 \begin_layout Labeling
2515 \labelwidthstring 00.00.0000
2520 arg "inset-modify tabular append-row"
2525 adds a row below the current cell or selection
2528 \begin_layout Labeling
2529 \labelwidthstring 00.00.0000
2534 arg "inset-modify tabular append-column"
2539 adds a column right beside the current cell or selection
2542 \begin_layout Labeling
2543 \labelwidthstring 00.00.0000
2548 arg "inset-modify tabular delete-row"
2553 deletes the current row or selection
2556 \begin_layout Labeling
2557 \labelwidthstring 00.00.0000
2562 arg "inset-modify tabular delete-column"
2567 deletes the current column or selection
2570 \begin_layout Labeling
2571 \labelwidthstring 00.00.0000
2576 arg "inset-modify tabular toggle-line-top"
2581 adds a line at the top of the current cell / row or of a selection
2584 \begin_layout Labeling
2585 \labelwidthstring 00.00.0000
2590 arg "inset-modify tabular toggle-line-bottom"
2595 adds a line at the bottom of the current cell / row or of a selection
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2604 arg "inset-modify tabular toggle-line-left"
2609 adds a line at the left side of the current cell / row or of a selection
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2618 arg "inset-modify tabular toggle-line-right"
2623 adds a line at the right side of the current cell / row or of a selection
2626 \begin_layout Labeling
2627 \labelwidthstring 00.00.0000
2632 arg "inset-modify tabular set-all-lines"
2637 adds lines around the current or selected cells - if the current cell no
2638 multicolumn cell this also affects the current row and column
2641 \begin_layout Labeling
2642 \labelwidthstring 00.00.0000
2647 arg "inset-modify tabular unset-all-lines"
2652 deletes all lines of the current or selected cells - if the current cell
2653 no multicolumn cell this also affects the current row and column
2656 \begin_layout Labeling
2657 \labelwidthstring 00.00.0000
2662 arg "inset-modify tabular m-align-left"
2667 left-aligns the content of the current cell / column
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2676 arg "inset-modify tabular m-align-center"
2681 centers the content of the current cell / column horizontally
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2690 arg "inset-modify tabular m-align-right"
2695 right-aligns the content of the current cell / column
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2704 arg "inset-modify tabular align-decimal"
2709 aligns the content of the current column at a character
2712 \begin_layout Labeling
2713 \labelwidthstring 00.00.0000
2718 arg "inset-modify tabular m-valign-top"
2723 aligns the content of the current cell vertically to the top
2726 \begin_layout Labeling
2727 \labelwidthstring 00.00.0000
2732 arg "inset-modify tabular m-valign-middle"
2737 centers the content of the current cell vertically
2740 \begin_layout Labeling
2741 \labelwidthstring 00.00.0000
2746 arg "inset-modify tabular m-valign-bottom"
2751 aligns the content of the current cell vertically to the bottom
2754 \begin_layout Labeling
2755 \labelwidthstring 00.00.0000
2760 arg "inset-modify tabular set-rotate-cell"
2765 rotates the current cell or selection counter-clockwise by 90°
2768 \begin_layout Labeling
2769 \labelwidthstring 00.00.0000
2774 arg "inset-modify tabular set-rotate-tabular"
2779 rotates the whole table counter-clockwise by 90°
2782 \begin_layout Labeling
2783 \labelwidthstring 00.00.0000
2788 arg "inset-modify tabular multicolumn"
2793 sets the current cell or selection as a multicolumn
2796 \begin_layout Labeling
2797 \labelwidthstring 00.00.0000
2802 arg "inset-modify tabular multirow"
2807 sets the current cell or selection as a multirow
2810 \begin_layout Standard
2811 \begin_inset Note Greyedout
2814 \begin_layout Plain Layout
2819 For the output the vertical alignment of the first cell in a row is used
2820 for all following cells in the row.
2828 \begin_layout Section
2830 \begin_inset Index idx
2833 \begin_layout Plain Layout
2842 \begin_layout Standard
2843 In addition to the table dialog and toolbar, the menu
2845 Edit\SpecialChar \menuseparator
2848 allows you to add and delete border lines for the current row/column and
2849 to set the current selection as multicolumn.
2850 The menu is only available when the cursor is inside a table.
2853 \begin_layout Section
2855 \begin_inset CommandInset label
2857 name "sec:Table-Floats"
2862 \begin_inset Index idx
2865 \begin_layout Plain Layout
2872 \begin_inset Index idx
2875 \begin_layout Plain Layout
2884 \begin_layout Standard
2885 For general explanations about floats, have a look at section
2886 \begin_inset space ~
2890 \begin_inset CommandInset ref
2892 reference "sec:FloatIntroduction"
2899 \begin_layout Standard
2900 \begin_inset Float table
2906 \begin_layout Plain Layout
2907 \begin_inset Caption
2909 \begin_layout Plain Layout
2910 \begin_inset CommandInset label
2912 name "tab:a table float"
2924 \begin_layout Plain Layout
2926 \begin_inset Tabular
2927 <lyxtabular version="3" rows="3" columns="3">
2928 <features tabularvalignment="middle">
2929 <column alignment="center" valignment="top" width="0pt">
2930 <column alignment="center" valignment="top" width="0pt">
2931 <column alignment="center" valignment="top" width="0pt">
2933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2936 \begin_layout Plain Layout
2951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2954 \begin_layout Plain Layout
2969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2972 \begin_layout Plain Layout
2989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2992 \begin_layout Plain Layout
3007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3010 \begin_layout Plain Layout
3025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3028 \begin_layout Plain Layout
3045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3048 \begin_layout Plain Layout
3058 \begin_inset Formula $\int x^{2}dx$
3066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3069 \begin_layout Plain Layout
3079 \begin_inset Formula $\left[\begin{array}{cc}
3090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3093 \begin_layout Plain Layout
3103 \begin_inset Formula $1+1=2$
3124 \begin_layout Standard
3125 Table floats can be inserted using the menu
3127 Insert\SpecialChar \menuseparator
3128 Float\SpecialChar \menuseparator
3131 or the toolbar button
3136 arg "float-insert table"
3144 \begin_layout Standard
3145 The float appears as a collapsible box with a caption that has the label
3147 \begin_inset Quotes eld
3151 \begin_inset space ~
3155 \begin_inset Quotes erd
3158 (# is the actual table number).
3159 You can insert tables in the float above or below the caption.
3162 \begin_layout Standard
3164 \begin_inset space ~
3168 \begin_inset CommandInset ref
3170 reference "tab:a table float"
3174 is an example table within a table float.
3177 \begin_layout Standard
3178 Having the caption above the table is the common rule that is unfortunately
3179 not supported in LaTeX's standard classes.
3180 This means that, if you are using the document classes
3196 , there will be no space between the caption and the table.
3197 To insert the needed space, add the following option to the load command
3198 of the LaTeX-package
3203 \begin_inset Index idx
3206 \begin_layout Plain Layout
3207 LaTeX-packages ! caption
3212 in your document preamble
3216 \begin_layout Plain Layout
3217 For more information have a look at section
3218 \begin_inset space ~
3222 \begin_inset CommandInset ref
3224 reference "sec:Caption-Placement"
3236 \begin_layout Standard
3242 \begin_layout Standard
3247 , which is described in section
3248 \begin_inset space ~
3252 \begin_inset CommandInset ref
3254 reference "sec:Caption-Formatting"
3258 , is used to adjust the caption format.
3261 \begin_layout Standard
3262 \begin_inset Index idx
3265 \begin_layout Plain Layout
3266 References ! to Tables
3271 Tables can be cross-referenced in the text by referencing their label.
3272 To do this insert a label in the caption using the menu
3274 Insert\SpecialChar \menuseparator
3277 or the toolbar button
3288 You can now refer to the label using the menu
3290 Insert\SpecialChar \menuseparator
3292 \begin_inset space ~
3297 or the toolbar button
3302 arg "dialog-show-new-inset ref"
3308 \begin_inset Newline newline
3311 Referencing is explained in detail in section
3312 \begin_inset space ~
3316 \begin_inset CommandInset ref
3318 reference "sec:Referencing-Floats"
3325 \begin_layout Section
3327 \begin_inset CommandInset label
3329 name "sec:Longtables"
3334 \begin_inset Index idx
3337 \begin_layout Plain Layout
3344 \begin_inset Index idx
3347 \begin_layout Plain Layout
3356 \begin_layout Standard
3357 If the table is too long to fit on one page, you can use the option
3360 \begin_inset space ~
3364 \begin_inset space ~
3373 of the table dialog to split the table automatically over more pages.
3374 Doing this enables the following options:
3377 \begin_layout Description
3378 Header: The current row is defined to be a header row that appears on all
3379 pages of the longtable; except for the first page, if
3382 \begin_inset space ~
3388 This is therefore called the main header.
3391 \begin_layout Description
3393 \begin_inset space ~
3396 header: The current row is defined to be a header row that appears on the
3397 first page of the longtable.
3400 \begin_layout Description
3401 Footer: The current row is defined to be a footer row that appears on all
3402 pages of the longtable; except for the last page, if
3405 \begin_inset space ~
3413 \begin_layout Description
3415 \begin_inset space ~
3418 footer: The current row is defined to be a footer row that appears on the
3419 last page of the longtable.
3422 \begin_layout Description
3423 Caption: The current row contains the table caption.
3424 The row is reset as single column and a caption is inserted.
3425 More about longtable captions is explained in sec.
3426 \begin_inset space \thinspace{}
3430 \begin_inset CommandInset ref
3432 reference "sub:Longtable-Captions"
3439 \begin_layout Standard
3440 You can also specify a row where the table is split.
3441 See the following longtable to see how it works:
3444 \begin_layout Standard
3446 \begin_inset Tabular
3447 <lyxtabular version="3" rows="69" columns="3">
3448 <features islongtable="true" longtabularalignment="center">
3449 <column alignment="left" valignment="top" width="0cm">
3450 <column alignment="left" valignment="top" width="0pt">
3451 <column alignment="center" valignment="top" width="0pt">
3452 <row endfirsthead="true">
3453 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3456 \begin_layout Plain Layout
3459 Example Phone List (ignore the names)
3464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3467 \begin_layout Plain Layout
3473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3476 \begin_layout Plain Layout
3483 <row endfirsthead="true">
3484 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3487 \begin_layout Plain Layout
3495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3498 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3507 \begin_layout Plain Layout
3516 <row endhead="true">
3517 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3520 \begin_layout Plain Layout
3528 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3531 \begin_layout Plain Layout
3537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3540 \begin_layout Plain Layout
3547 <row endhead="true">
3548 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3551 \begin_layout Plain Layout
3559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3562 \begin_layout Plain Layout
3568 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3571 \begin_layout Plain Layout
3580 <row endfoot="true">
3581 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3584 \begin_layout Plain Layout
3585 continued on next page
3590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3593 \begin_layout Plain Layout
3599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3602 \begin_layout Plain Layout
3610 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3613 \begin_layout Plain Layout
3621 <cell alignment="center" valignment="top" usebox="none">
3624 \begin_layout Plain Layout
3630 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3633 \begin_layout Plain Layout
3641 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3644 \begin_layout Plain Layout
3652 <cell alignment="center" valignment="top" usebox="none">
3655 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3664 \begin_layout Plain Layout
3672 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3675 \begin_layout Plain Layout
3683 <cell alignment="center" valignment="top" usebox="none">
3686 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3695 \begin_layout Plain Layout
3703 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3706 \begin_layout Plain Layout
3714 <cell alignment="center" valignment="top" usebox="none">
3717 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3726 \begin_layout Plain Layout
3734 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3737 \begin_layout Plain Layout
3745 <cell alignment="center" valignment="top" usebox="none">
3748 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3757 \begin_layout Plain Layout
3765 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3768 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" usebox="none">
3779 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3788 \begin_layout Plain Layout
3796 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3799 \begin_layout Plain Layout
3807 <cell alignment="center" valignment="top" usebox="none">
3810 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3819 \begin_layout Plain Layout
3827 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3830 \begin_layout Plain Layout
3838 <cell alignment="center" valignment="top" usebox="none">
3841 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3850 \begin_layout Plain Layout
3858 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3861 \begin_layout Plain Layout
3869 <cell alignment="center" valignment="top" usebox="none">
3872 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3881 \begin_layout Plain Layout
3889 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3892 \begin_layout Plain Layout
3900 <cell alignment="center" valignment="top" usebox="none">
3903 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3912 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3923 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" usebox="none">
3934 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3943 \begin_layout Plain Layout
3951 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3954 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" usebox="none">
3965 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3974 \begin_layout Plain Layout
3982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3985 \begin_layout Plain Layout
3993 <cell alignment="center" valignment="top" usebox="none">
3996 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4005 \begin_layout Plain Layout
4013 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4016 \begin_layout Plain Layout
4024 <cell alignment="center" valignment="top" usebox="none">
4027 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4036 \begin_layout Plain Layout
4044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4047 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" usebox="none">
4058 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4067 \begin_layout Plain Layout
4075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4078 \begin_layout Plain Layout
4086 <cell alignment="center" valignment="top" usebox="none">
4089 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4098 \begin_layout Plain Layout
4106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4109 \begin_layout Plain Layout
4117 <cell alignment="center" valignment="top" usebox="none">
4120 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4129 \begin_layout Plain Layout
4137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4140 \begin_layout Plain Layout
4148 <cell alignment="center" valignment="top" usebox="none">
4151 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4160 \begin_layout Plain Layout
4168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4171 \begin_layout Plain Layout
4179 <cell alignment="center" valignment="top" usebox="none">
4182 \begin_layout Plain Layout
4188 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4191 \begin_layout Plain Layout
4199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4202 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" usebox="none">
4213 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4222 \begin_layout Plain Layout
4230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4233 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" usebox="none">
4244 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4264 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" usebox="none">
4275 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4295 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" usebox="none">
4306 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4326 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" usebox="none">
4337 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4357 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" usebox="none">
4368 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4388 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" usebox="none">
4399 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4419 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" usebox="none">
4430 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4450 \begin_layout Plain Layout
4458 <cell alignment="center" valignment="top" usebox="none">
4461 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4481 \begin_layout Plain Layout
4489 <cell alignment="center" valignment="top" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4574 \begin_layout Plain Layout
4580 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4583 \begin_layout Plain Layout
4589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4592 \begin_layout Plain Layout
4600 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4603 \begin_layout Plain Layout
4611 <cell alignment="center" valignment="top" usebox="none">
4614 \begin_layout Plain Layout
4620 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4623 \begin_layout Plain Layout
4631 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4634 \begin_layout Plain Layout
4642 <cell alignment="center" valignment="top" usebox="none">
4645 \begin_layout Plain Layout
4651 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4654 \begin_layout Plain Layout
4662 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4665 \begin_layout Plain Layout
4673 <cell alignment="center" valignment="top" usebox="none">
4676 \begin_layout Plain Layout
4682 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4685 \begin_layout Plain Layout
4693 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4696 \begin_layout Plain Layout
4704 <cell alignment="center" valignment="top" usebox="none">
4707 \begin_layout Plain Layout
4713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4716 \begin_layout Plain Layout
4724 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4727 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" usebox="none">
4738 \begin_layout Plain Layout
4744 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4747 \begin_layout Plain Layout
4755 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4758 \begin_layout Plain Layout
4766 <cell alignment="center" valignment="top" usebox="none">
4769 \begin_layout Plain Layout
4775 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4778 \begin_layout Plain Layout
4786 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4789 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" usebox="none">
4800 \begin_layout Plain Layout
4806 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4809 \begin_layout Plain Layout
4817 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4820 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" usebox="none">
4831 \begin_layout Plain Layout
4837 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4840 \begin_layout Plain Layout
4848 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4851 \begin_layout Plain Layout
4859 <cell alignment="center" valignment="top" usebox="none">
4862 \begin_layout Plain Layout
4868 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4871 \begin_layout Plain Layout
4879 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4882 \begin_layout Plain Layout
4890 <cell alignment="center" valignment="top" usebox="none">
4893 \begin_layout Plain Layout
4899 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4902 \begin_layout Plain Layout
4910 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4913 \begin_layout Plain Layout
4921 <cell alignment="center" valignment="top" usebox="none">
4924 \begin_layout Plain Layout
4930 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4933 \begin_layout Plain Layout
4941 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4944 \begin_layout Plain Layout
4952 <cell alignment="center" valignment="top" usebox="none">
4955 \begin_layout Plain Layout
4961 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4964 \begin_layout Plain Layout
4972 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4975 \begin_layout Plain Layout
4983 <cell alignment="center" valignment="top" usebox="none">
4986 \begin_layout Plain Layout
4992 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4995 \begin_layout Plain Layout
5003 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5006 \begin_layout Plain Layout
5014 <cell alignment="center" valignment="top" usebox="none">
5017 \begin_layout Plain Layout
5023 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5026 \begin_layout Plain Layout
5034 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5037 \begin_layout Plain Layout
5045 <cell alignment="center" valignment="top" usebox="none">
5048 \begin_layout Plain Layout
5054 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5057 \begin_layout Plain Layout
5065 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5068 \begin_layout Plain Layout
5076 <cell alignment="center" valignment="top" usebox="none">
5079 \begin_layout Plain Layout
5085 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5088 \begin_layout Plain Layout
5096 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5099 \begin_layout Plain Layout
5107 <cell alignment="center" valignment="top" usebox="none">
5110 \begin_layout Plain Layout
5116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5119 \begin_layout Plain Layout
5127 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5130 \begin_layout Plain Layout
5138 <cell alignment="center" valignment="top" usebox="none">
5141 \begin_layout Plain Layout
5147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5150 \begin_layout Plain Layout
5158 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5161 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" usebox="none">
5172 \begin_layout Plain Layout
5178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5181 \begin_layout Plain Layout
5189 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5192 \begin_layout Plain Layout
5200 <cell alignment="center" valignment="top" usebox="none">
5203 \begin_layout Plain Layout
5209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5212 \begin_layout Plain Layout
5220 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5223 \begin_layout Plain Layout
5231 <cell alignment="center" valignment="top" usebox="none">
5234 \begin_layout Plain Layout
5240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5243 \begin_layout Plain Layout
5251 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5254 \begin_layout Plain Layout
5262 <cell alignment="center" valignment="top" usebox="none">
5265 \begin_layout Plain Layout
5271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5274 \begin_layout Plain Layout
5282 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5285 \begin_layout Plain Layout
5293 <cell alignment="center" valignment="top" usebox="none">
5296 \begin_layout Plain Layout
5302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5305 \begin_layout Plain Layout
5313 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5316 \begin_layout Plain Layout
5324 <cell alignment="center" valignment="top" usebox="none">
5327 \begin_layout Plain Layout
5333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5336 \begin_layout Plain Layout
5344 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5347 \begin_layout Plain Layout
5355 <cell alignment="center" valignment="top" usebox="none">
5358 \begin_layout Plain Layout
5364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5367 \begin_layout Plain Layout
5375 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5378 \begin_layout Plain Layout
5386 <cell alignment="center" valignment="top" usebox="none">
5389 \begin_layout Plain Layout
5395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5398 \begin_layout Plain Layout
5406 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5409 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" usebox="none">
5420 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5429 \begin_layout Plain Layout
5437 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5440 \begin_layout Plain Layout
5448 <cell alignment="center" valignment="top" usebox="none">
5451 \begin_layout Plain Layout
5457 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5460 \begin_layout Plain Layout
5468 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5471 \begin_layout Plain Layout
5479 <cell alignment="center" valignment="top" usebox="none">
5482 \begin_layout Plain Layout
5488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Plain Layout
5499 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5510 <cell alignment="center" valignment="top" usebox="none">
5513 \begin_layout Plain Layout
5519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5522 \begin_layout Plain Layout
5530 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5533 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5553 \begin_layout Plain Layout
5560 <row endlastfoot="true">
5561 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5564 \begin_layout Plain Layout
5570 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5573 \begin_layout Plain Layout
5579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5582 \begin_layout Plain Layout
5597 \begin_layout Plain Layout
5601 addtocounter{table}{-1}
5607 \begin_inset Note Note
5610 \begin_layout Plain Layout
5611 See the first greyed-out note in section
5612 \begin_inset space ~
5616 \begin_inset CommandInset ref
5618 reference "sub:Longtable-Captions"
5622 for an explanation of this command.
5630 \begin_layout Subsection
5631 Footnotes in Longtables
5632 \begin_inset CommandInset label
5634 name "sub:Footnotes-in-Longtables"
5639 \begin_inset Index idx
5642 \begin_layout Plain Layout
5643 Longtables ! Footnotes
5651 \begin_layout Standard
5652 Footnotes can be inserted to every longtable cell.
5653 They appear at the bottom of the page where the table cell with the footnote
5656 \begin_inset space ~
5660 \begin_inset CommandInset ref
5662 reference "tab:DiffCaptions"
5666 has for example a footnote.
5669 \begin_layout Subsection
5671 \begin_inset Index idx
5674 \begin_layout Plain Layout
5675 Longtables ! Alignment
5683 \begin_layout Standard
5684 The horizontal alignment of longtables can be set in the table settings
5686 For left- and right-alignment the table will be directly at the page border.
5687 To add space between the table and the border one has to set the alignment
5688 to center and change the value of the LaTeX-lengths
5700 by inserting this line as TeX-Code before the longtable:
5703 \begin_layout Standard
5713 \begin_layout Standard
5714 The value can have any of the units listed in Table
5715 \begin_inset space ~
5719 \begin_inset CommandInset ref
5721 reference "tab:Units"
5732 controls the horizontal distance from the left page border to the longtable,
5739 the distance from the right side.
5740 The default value for both lengths is
5746 , which is in this case the same as an horizontal fill in LyX.
5749 \begin_layout Standard
5750 The following longtable was centered and
5766 \begin_layout Plain Layout
5782 \begin_layout Standard
5783 \begin_inset Tabular
5784 <lyxtabular version="3" rows="5" columns="5">
5785 <features islongtable="true" longtabularalignment="center">
5786 <column alignment="center" valignment="top" width="0">
5787 <column alignment="center" valignment="top" width="0pt">
5788 <column alignment="center" valignment="top" width="0">
5789 <column alignment="center" valignment="top" width="0">
5790 <column alignment="center" valignment="top" width="0">
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5831 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5878 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5889 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5925 \begin_layout Plain Layout
5933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5936 \begin_layout Plain Layout
5942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5945 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5972 \begin_layout Plain Layout
5980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5983 \begin_layout Plain Layout
5989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5992 \begin_layout Plain Layout
5998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6001 \begin_layout Plain Layout
6007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6010 \begin_layout Plain Layout
6016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6019 \begin_layout Plain Layout
6034 \begin_layout Plain Layout
6051 \begin_layout Plain Layout
6055 addtocounter{table}{-1}
6061 \begin_inset Note Note
6064 \begin_layout Plain Layout
6065 See the first greyed-out note in section
6066 \begin_inset space ~
6070 \begin_inset CommandInset ref
6072 reference "sub:Longtable-Captions"
6076 for an explanation of this command.
6084 \begin_layout Subsection
6086 \begin_inset Index idx
6089 \begin_layout Plain Layout
6090 Longtables ! Captions
6096 \begin_inset CommandInset label
6098 name "sub:Longtable-Captions"
6105 \begin_layout Standard
6106 A longtable cannot be put into a table float because floats can only be
6108 But the caption environment of floats can also be used for longtables when
6109 you use the longtable option
6113 as described in sec.
6114 \begin_inset space \thinspace{}
6118 \begin_inset CommandInset ref
6120 reference "sec:Longtables"
6126 \change_inserted -195340706 1324242393
6127 A caption must be put into one of
6130 \begin_inset space ~
6146 \begin_inset space ~
6152 Each kind of footer and header may only contain one
6153 \change_deleted -195340706 1324242398
6154 Only one table row can contain the
6159 \begin_layout Standard
6160 Here is a short longtable to see how it works:
6163 \begin_layout Standard
6164 \begin_inset Tabular
6165 <lyxtabular version="3" rows="6" columns="5">
6166 <features islongtable="true" longtabularalignment="center">
6167 <column alignment="center" valignment="top" width="0">
6168 <column alignment="center" valignment="top" width="0">
6169 <column alignment="center" valignment="top" width="0">
6170 <column alignment="center" valignment="top" width="0">
6171 <column alignment="center" valignment="top" width="0">
6172 <row caption="true">
6173 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6176 \begin_layout Plain Layout
6177 \begin_inset Caption
6179 \begin_layout Plain Layout
6180 Longtable with caption
6181 \begin_inset Argument
6184 \begin_layout Plain Layout
6200 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6203 \begin_layout Plain Layout
6209 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6212 \begin_layout Plain Layout
6218 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6221 \begin_layout Plain Layout
6227 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6230 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6277 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6297 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6306 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6315 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6324 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6344 \begin_layout Plain Layout
6350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6353 \begin_layout Plain Layout
6359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6362 \begin_layout Plain Layout
6368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6371 \begin_layout Plain Layout
6379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Plain Layout
6388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6391 \begin_layout Plain Layout
6397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6400 \begin_layout Plain Layout
6406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6409 \begin_layout Plain Layout
6415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6418 \begin_layout Plain Layout
6426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6429 \begin_layout Plain Layout
6435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6438 \begin_layout Plain Layout
6444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6447 \begin_layout Plain Layout
6453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6456 \begin_layout Plain Layout
6462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6465 \begin_layout Plain Layout
6479 \begin_layout Standard
6480 \begin_inset VSpace medskip
6484 \begin_inset Note Greyedout
6487 \begin_layout Plain Layout
6491 \begin_inset space ~
6496 The table number is increased for every longtable, even if you did not
6497 set a caption for it.
6498 For this reason you could have the case that e.
6499 \begin_inset space \thinspace{}
6503 \begin_inset space \space{}
6507 \begin_inset space ~
6511 \begin_inset space ~
6514 2.1 in the list of tables if there are two longtables without captions.
6515 To avoid this you can add the following command in TeX-Code after every
6516 longtable without a caption:
6519 \begin_layout Plain Layout
6524 addtocounter{table}{-1}
6527 \begin_layout Plain Layout
6528 This is not needed when none of your longtables has a caption and you add
6529 the following code to the document preamble:
6532 \begin_layout Plain Layout
6542 \begin_inset Newline newline
6553 addtocounter{table}{-1}}
6561 \begin_layout Standard
6562 \begin_inset Note Greyedout
6565 \begin_layout Plain Layout
6569 \begin_inset space ~
6579 \begin_inset Index idx
6582 \begin_layout Plain Layout
6583 LaTeX-packages ! hyperref
6596 dialog to link cross-references, the link to a longtable caption will always
6597 point to the beginning of the document.
6605 \begin_layout Subsubsection
6606 References to Longtables
6607 \begin_inset Index idx
6610 \begin_layout Plain Layout
6611 Longtables ! References
6619 \begin_layout Standard
6620 \begin_inset Tabular
6621 <lyxtabular version="3" rows="6" columns="5">
6622 <features islongtable="true" longtabularalignment="center">
6623 <column alignment="center" valignment="top" width="0">
6624 <column alignment="center" valignment="top" width="0">
6625 <column alignment="center" valignment="top" width="0">
6626 <column alignment="center" valignment="top" width="0">
6627 <column alignment="center" valignment="top" width="0">
6628 <row caption="true">
6629 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6632 \begin_layout Plain Layout
6633 \begin_inset Caption
6635 \begin_layout Plain Layout
6636 Referenced longtable
6637 \begin_inset CommandInset label
6639 name "tab:RefExample"
6653 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6656 \begin_layout Plain Layout
6662 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6683 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6694 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6703 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6730 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6750 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6777 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6788 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6797 \begin_layout Plain Layout
6803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6806 \begin_layout Plain Layout
6812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6815 \begin_layout Plain Layout
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6824 \begin_layout Plain Layout
6832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6835 \begin_layout Plain Layout
6841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6844 \begin_layout Plain Layout
6850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6853 \begin_layout Plain Layout
6859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6862 \begin_layout Plain Layout
6868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6871 \begin_layout Plain Layout
6879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6882 \begin_layout Plain Layout
6888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6891 \begin_layout Plain Layout
6897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6900 \begin_layout Plain Layout
6906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6909 \begin_layout Plain Layout
6915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6918 \begin_layout Plain Layout
6932 \begin_layout Standard
6933 To reference a longtable, insert a label into the caption.
6936 \begin_layout Standard
6937 This is a reference to Table
6938 \begin_inset space ~
6942 \begin_inset CommandInset ref
6944 reference "tab:RefExample"
6951 \begin_layout Standard
6952 The caption layout can be set together with all other captions of your document
6953 using the LaTeX-package
6958 \begin_inset Index idx
6961 \begin_layout Plain Layout
6962 LaTeX-packages ! caption
6968 \begin_inset space ~
6972 \begin_inset CommandInset ref
6974 reference "sec:Caption-Formatting"
6981 \begin_layout Subsubsection
6983 \begin_inset Index idx
6986 \begin_layout Plain Layout
6987 Longtables ! Caption Width
6995 \begin_layout Standard
6996 The maximal width of caption lines is defined by the length
7003 Its default value is 4
7004 \begin_inset space \thinspace{}
7008 To change it add the following command to your document preamble or as
7009 TeX-Code into your document before the longtable that should be affected
7012 \begin_layout Standard
7022 \begin_layout Standard
7023 where the width could have one of the units listed in appendix
7024 \begin_inset space ~
7028 \begin_inset CommandInset ref
7030 reference "cha:Units-available-in"
7037 \begin_layout Standard
7038 The following tables show the difference:
7041 \begin_layout Standard
7042 \begin_inset Tabular
7043 <lyxtabular version="3" rows="6" columns="5">
7044 <features islongtable="true" longtabularalignment="center">
7045 <column alignment="center" valignment="top" width="0">
7046 <column alignment="center" valignment="top" width="0">
7047 <column alignment="center" valignment="top" width="0">
7048 <column alignment="center" valignment="top" width="0">
7049 <column alignment="center" valignment="top" width="0">
7050 <row caption="true">
7051 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7054 \begin_layout Plain Layout
7055 \begin_inset Caption
7057 \begin_layout Plain Layout
7058 long full title with default width long full title with default width long
7059 full title with default width
7060 \begin_inset Argument
7063 \begin_layout Plain Layout
7064 caption with default width
7079 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7082 \begin_layout Plain Layout
7088 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7109 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7156 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7176 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7203 \begin_layout Plain Layout
7211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7214 \begin_layout Plain Layout
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7223 \begin_layout Plain Layout
7229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7232 \begin_layout Plain Layout
7238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7241 \begin_layout Plain Layout
7247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7250 \begin_layout Plain Layout
7258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7261 \begin_layout Plain Layout
7267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7270 \begin_layout Plain Layout
7276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7279 \begin_layout Plain Layout
7285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7288 \begin_layout Plain Layout
7294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7297 \begin_layout Plain Layout
7305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7308 \begin_layout Plain Layout
7314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7317 \begin_layout Plain Layout
7323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7326 \begin_layout Plain Layout
7332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7335 \begin_layout Plain Layout
7341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7344 \begin_layout Plain Layout
7358 \begin_layout Standard
7362 \begin_layout Plain Layout
7374 \begin_inset Tabular
7375 <lyxtabular version="3" rows="6" columns="5">
7376 <features islongtable="true" longtabularalignment="center">
7377 <column alignment="center" valignment="top" width="0">
7378 <column alignment="center" valignment="top" width="0">
7379 <column alignment="center" valignment="top" width="0">
7380 <column alignment="center" valignment="top" width="0">
7381 <column alignment="center" valignment="top" width="0">
7382 <row caption="true">
7383 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7386 \begin_layout Plain Layout
7387 \begin_inset Caption
7389 \begin_layout Plain Layout
7390 long full title with width set to 5
7391 \begin_inset space \thinspace{}
7394 cm long full title with width set to 5
7395 \begin_inset space \thinspace{}
7398 cm long full title with width set to 5
7399 \begin_inset space \thinspace{}
7403 \begin_inset Argument
7406 \begin_layout Plain Layout
7408 \begin_inset space \thinspace{}
7412 \begin_inset space \thinspace{}
7416 \begin_inset space \thinspace{}
7434 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7437 \begin_layout Plain Layout
7443 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7446 \begin_layout Plain Layout
7452 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7455 \begin_layout Plain Layout
7461 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7464 \begin_layout Plain Layout
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7475 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7484 \begin_layout Plain Layout
7490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Plain Layout
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7511 \begin_layout Plain Layout
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7522 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7531 \begin_layout Plain Layout
7537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7540 \begin_layout Plain Layout
7546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7549 \begin_layout Plain Layout
7555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7558 \begin_layout Plain Layout
7566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7569 \begin_layout Plain Layout
7575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7578 \begin_layout Plain Layout
7584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7587 \begin_layout Plain Layout
7593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7596 \begin_layout Plain Layout
7602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7605 \begin_layout Plain Layout
7613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7616 \begin_layout Plain Layout
7622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7625 \begin_layout Plain Layout
7631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7634 \begin_layout Plain Layout
7640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7643 \begin_layout Plain Layout
7649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7652 \begin_layout Plain Layout
7660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7663 \begin_layout Plain Layout
7669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7672 \begin_layout Plain Layout
7678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7681 \begin_layout Plain Layout
7687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7690 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7699 \begin_layout Plain Layout
7713 \begin_layout Standard
7717 \begin_layout Plain Layout
7731 \begin_layout Standard
7732 \begin_inset Note Greyedout
7735 \begin_layout Plain Layout
7740 When the LaTeX-package
7745 \begin_inset Index idx
7748 \begin_layout Plain Layout
7749 LaTeX-packages ! caption
7754 is used, as in this document, the full page width is used for the caption
7755 when you use the default value of 4
7756 \begin_inset space \thinspace{}
7766 To get in this case exactly a 4
7767 \begin_inset space \thinspace{}
7770 in wide caption, you can either use a value slightly different from 4.0
7771 \begin_inset space \thinspace{}
7775 \begin_inset space \thinspace{}
7779 \begin_inset space \space{}
7783 \begin_inset space \thinspace{}
7786 in, or the LaTeX-command
7790 captionsetup{width=value}
7792 that is provided by the
7804 \begin_layout Subsubsection
7805 Different Captions for Table Pages
7806 \begin_inset Index idx
7809 \begin_layout Plain Layout
7810 Longtables ! Different Captions for Pages
7818 \begin_layout Standard
7819 When the table captions for the following pages should differ from the one
7820 of the first table page, insert a caption with the TeX-Code command
7823 \begin_layout Standard
7828 caption*{caption text}
7835 \begin_layout Standard
7836 in a dummy caption row that is marked as a header.
7838 \begin_inset space ~
7842 \begin_inset CommandInset ref
7844 reference "tab:DiffCaptions"
7848 is an example of a longtable with different heading where the second caption
7849 doesn't include the table number.
7852 \begin_layout Standard
7854 \begin_inset Tabular
7855 <lyxtabular version="3" rows="59" columns="3">
7856 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7857 <column alignment="left" valignment="top" width="0cm">
7858 <column alignment="left" valignment="top" width="0pt">
7859 <column alignment="center" valignment="top" width="0pt">
7860 <row caption="true">
7861 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7864 \begin_layout Plain Layout
7865 \begin_inset Caption
7867 \begin_layout Plain Layout
7869 \begin_inset CommandInset label
7871 name "tab:DiffCaptions"
7876 \begin_inset Argument
7879 \begin_layout Plain Layout
7895 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7898 \begin_layout Plain Layout
7904 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7907 \begin_layout Plain Layout
7914 <row endfirsthead="true">
7915 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7918 \begin_layout Plain Layout
7921 Example Phone List (ignore the names)
7926 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7929 \begin_layout Plain Layout
7935 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7938 \begin_layout Plain Layout
7945 <row endfirsthead="true">
7946 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7949 \begin_layout Plain Layout
7957 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7960 \begin_layout Plain Layout
7966 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7969 \begin_layout Plain Layout
7978 <row endhead="true">
7979 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7982 \begin_layout Plain Layout
7986 \begin_layout Plain Layout
7990 caption*{Continued Example Phone List}
8004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8007 \begin_layout Plain Layout
8013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Plain Layout
8023 <row endhead="true">
8024 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8027 \begin_layout Plain Layout
8035 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8038 \begin_layout Plain Layout
8044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Plain Layout
8054 <row endhead="true">
8055 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8058 \begin_layout Plain Layout
8066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8069 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Plain Layout
8087 <row endfoot="true">
8088 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8091 \begin_layout Plain Layout
8092 continued on next page
8097 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8100 \begin_layout Plain Layout
8106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8120 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8131 \begin_layout Plain Layout
8137 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8151 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8162 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8182 \begin_layout Plain Layout
8190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8193 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8202 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8213 \begin_layout Plain Layout
8221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8224 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8233 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8244 \begin_layout Plain Layout
8252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8255 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8264 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8275 \begin_layout Plain Layout
8283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8286 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8295 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8306 \begin_layout Plain Layout
8314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8317 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8326 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8337 \begin_layout Plain Layout
8345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8348 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8357 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8368 \begin_layout Plain Layout
8376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8379 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8388 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8399 \begin_layout Plain Layout
8407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8410 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8419 \begin_layout Plain Layout
8427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8430 \begin_layout Plain Layout
8438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8563 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8577 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8597 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8608 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8628 \begin_layout Plain Layout
8636 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8639 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8648 \begin_layout Plain Layout
8656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8659 \begin_layout Plain Layout
8667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9093 \begin_layout Plain Layout
9099 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9102 \begin_layout Plain Layout
9108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9122 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9133 \begin_layout Plain Layout
9139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9153 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9164 \begin_layout Plain Layout
9170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9184 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9195 \begin_layout Plain Layout
9201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9215 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9226 \begin_layout Plain Layout
9232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9246 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9257 \begin_layout Plain Layout
9263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9266 \begin_layout Plain Layout
9274 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9277 \begin_layout Plain Layout
9285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9288 \begin_layout Plain Layout
9294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9297 \begin_layout Plain Layout
9305 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9308 \begin_layout Plain Layout
9316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9319 \begin_layout Plain Layout
9325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9328 \begin_layout Plain Layout
9336 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9339 \begin_layout Plain Layout
9347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9350 \begin_layout Plain Layout
9356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9359 \begin_layout Plain Layout
9367 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9370 \begin_layout Plain Layout
9378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9381 \begin_layout Plain Layout
9387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9390 \begin_layout Plain Layout
9398 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9401 \begin_layout Plain Layout
9409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9412 \begin_layout Plain Layout
9418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9421 \begin_layout Plain Layout
9429 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9432 \begin_layout Plain Layout
9440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9443 \begin_layout Plain Layout
9449 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9452 \begin_layout Plain Layout
9460 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9463 \begin_layout Plain Layout
9471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9474 \begin_layout Plain Layout
9480 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9483 \begin_layout Plain Layout
9491 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9494 \begin_layout Plain Layout
9502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9505 \begin_layout Plain Layout
9511 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9514 \begin_layout Plain Layout
9522 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9525 \begin_layout Plain Layout
9533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9536 \begin_layout Plain Layout
9542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9545 \begin_layout Plain Layout
9553 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9556 \begin_layout Plain Layout
9564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9567 \begin_layout Plain Layout
9573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9576 \begin_layout Plain Layout
9584 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9587 \begin_layout Plain Layout
9595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9598 \begin_layout Plain Layout
9604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9607 \begin_layout Plain Layout
9615 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9618 \begin_layout Plain Layout
9626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9629 \begin_layout Plain Layout
9635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9638 \begin_layout Plain Layout
9646 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9649 \begin_layout Plain Layout
9657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9660 \begin_layout Plain Layout
9666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9669 \begin_layout Plain Layout
9677 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9680 \begin_layout Plain Layout
9688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9691 \begin_layout Plain Layout
9697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9700 \begin_layout Plain Layout
9708 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9711 \begin_layout Plain Layout
9719 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9722 \begin_layout Plain Layout
9728 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9731 \begin_layout Plain Layout
9745 \begin_layout Section
9746 Special Longtable Issues
9747 \begin_inset CommandInset label
9749 name "sec:Special-Longtable-Issues"
9756 \begin_layout Subsection
9757 Longtable Calculation
9758 \begin_inset Index idx
9761 \begin_layout Plain Layout
9762 Longtables ! Calculation
9770 \begin_layout Standard
9771 LaTeX calculates the height of table pages and their page breaks using so
9773 Chunks are parts of tables that held at the same time in LaTeX's memory.
9774 The default value was historically set to only 20 table rows.
9775 If you are using longtables with many pages this may slow down the creation
9777 You can safely increase the chunk size to values of 100-1000 by adding
9778 this command line to your document preamble:
9781 \begin_layout Standard
9786 setcounter{LTchunksize}{100}
9789 \begin_layout Subsection
9790 Floats and Longtables
9791 \begin_inset Index idx
9794 \begin_layout Plain Layout
9803 \begin_layout Standard
9804 There might be problems when a float appears on the same page where a longtable
9806 To avoid such a situation, insert a
9807 \begin_inset Quotes eld
9811 \begin_inset Quotes erd
9816 Insert\SpecialChar \menuseparator
9817 Formatting\SpecialChar \menuseparator
9819 \begin_inset space ~
9824 ) before your longtable.
9827 \begin_layout Subsection
9829 \begin_inset Index idx
9832 \begin_layout Plain Layout
9833 Longtables ! Forced Page Breaks
9841 \begin_layout Standard
9842 By default tables are only broken between rows.
9843 If you have a cell with multiples lines and want to have a page break within
9844 the cell, insert the new line command
9845 \begin_inset Quotes eld
9857 \begin_inset Quotes erd
9860 as TeX-Code at the point of the cell where it can be broken.
9869 command you have to insert in TeX-Code as many
9870 \begin_inset Quotes eld
9878 \begin_inset Quotes erd
9881 characters as the number of the following table columns.
9886 is the character to separate table cells.
9887 Write in TeX-Code after each
9891 the content of the corresponding following cell and delete the content
9893 \begin_inset Newline newline
9904 command, insert as many
9908 characters as the number of table columns before the current column.
9910 \begin_inset space ~
9914 \begin_inset CommandInset ref
9916 reference "tab:ForcedPagebreak"
9920 the cell that should be broken is in the second column followed by another
9922 Therefore the following command was inserted in the cell as TeX-Code after
9924 \begin_inset Quotes eld
9932 \begin_inset Quotes erd
9938 \begin_layout Standard
9948 \begin_inset Newline newline
9954 \begin_layout Standard
9956 \begin_inset Quotes eld
9960 \begin_inset Quotes erd
9963 in the third column of the row was deleted.
9970 is only needed when a page break should definitely occur at this position,
9971 otherwise it would be a conditional break.
9972 If your footer row of the longtable has for a certain reason no upper line
9973 but you would have a horizontal line where the cell is broken, use this
9977 \begin_layout Standard
9985 \begin_inset Newline newline
9993 \begin_layout Standard
9994 When the cell to be broken is in the last column, the command
9997 \begin_layout Standard
10007 \begin_layout Standard
10008 must be inserted as TeX-Code at the beginning of the cell.
10009 This ensures that the part of the cell that will be displayed on the new
10010 page appears with the full width.
10013 \begin_layout Standard
10015 \begin_inset Tabular
10016 <lyxtabular version="3" rows="38" columns="3">
10017 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
10018 <column alignment="left" valignment="top" width="0cm">
10019 <column alignment="left" valignment="top" width="3cm">
10020 <column alignment="center" valignment="top" width="0pt">
10021 <row caption="true">
10022 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10025 \begin_layout Plain Layout
10026 \begin_inset Caption
10028 \begin_layout Plain Layout
10029 Table with forced page break in table cell
10030 \begin_inset CommandInset label
10032 name "tab:ForcedPagebreak"
10037 \begin_inset Argument
10040 \begin_layout Plain Layout
10041 Table with forced page break in table cell
10056 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10065 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10068 \begin_layout Plain Layout
10075 <row endfirsthead="true">
10076 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10079 \begin_layout Plain Layout
10082 Example Phone List (ignore the names)
10087 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10096 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10099 \begin_layout Plain Layout
10106 <row endfirsthead="true">
10107 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10110 \begin_layout Plain Layout
10118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10121 \begin_layout Plain Layout
10127 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10130 \begin_layout Plain Layout
10139 <row endhead="true">
10140 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10143 \begin_layout Plain Layout
10147 \begin_layout Plain Layout
10151 caption*{Continued Example Phone List}
10165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10168 \begin_layout Plain Layout
10174 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10177 \begin_layout Plain Layout
10184 <row endhead="true">
10185 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10188 \begin_layout Plain Layout
10196 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10199 \begin_layout Plain Layout
10205 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10208 \begin_layout Plain Layout
10215 <row endhead="true">
10216 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10219 \begin_layout Plain Layout
10227 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10230 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10239 \begin_layout Plain Layout
10248 <row endfoot="true">
10249 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10252 \begin_layout Plain Layout
10253 continued on next page
10258 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10261 \begin_layout Plain Layout
10267 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10270 \begin_layout Plain Layout
10278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10281 \begin_layout Plain Layout
10289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10292 \begin_layout Plain Layout
10298 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10301 \begin_layout Plain Layout
10309 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10312 \begin_layout Plain Layout
10320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10323 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10332 \begin_layout Plain Layout
10340 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10343 \begin_layout Plain Layout
10351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10354 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10363 \begin_layout Plain Layout
10371 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10374 \begin_layout Plain Layout
10382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10385 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10394 \begin_layout Plain Layout
10402 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10405 \begin_layout Plain Layout
10413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10416 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10425 \begin_layout Plain Layout
10433 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10436 \begin_layout Plain Layout
10444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10447 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10456 \begin_layout Plain Layout
10464 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10467 \begin_layout Plain Layout
10475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10478 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10487 \begin_layout Plain Layout
10495 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10498 \begin_layout Plain Layout
10506 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10509 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10518 \begin_layout Plain Layout
10526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10529 \begin_layout Plain Layout
10537 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10540 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10549 \begin_layout Plain Layout
10557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10560 \begin_layout Plain Layout
10568 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10571 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10580 \begin_layout Plain Layout
10588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10591 \begin_layout Plain Layout
10599 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10602 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10611 \begin_layout Plain Layout
10619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10622 \begin_layout Plain Layout
10630 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10633 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10642 \begin_layout Plain Layout
10650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10653 \begin_layout Plain Layout
10661 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10664 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10684 \begin_layout Plain Layout
10692 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10695 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10715 \begin_layout Plain Layout
10723 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10726 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10746 \begin_layout Plain Layout
10754 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10757 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10777 \begin_layout Plain Layout
10785 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10788 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10797 \begin_layout Plain Layout
10805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10808 \begin_layout Plain Layout
10816 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10819 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10828 \begin_layout Plain Layout
10836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10839 \begin_layout Plain Layout
10847 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10850 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10859 \begin_layout Plain Layout
10867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10870 \begin_layout Plain Layout
10878 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10881 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10901 \begin_layout Plain Layout
10909 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10912 \begin_layout Plain Layout
10918 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10921 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10940 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10943 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10952 \begin_layout Plain Layout
10960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10963 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10974 \begin_layout Plain Layout
10976 Fürst von Montecompatri, 11.
10977 Fürst von Sulmona und Vivaro, 10.
10978 Fürst von Rossano, 5.
10979 Herzog von Canemorte, 11.
10980 Herzog von Palombara, 5.
10981 Herzog von Castelchiodato,
10985 \begin_layout Plain Layout
10996 \begin_layout Plain Layout
11004 Herzog von Poggionativo, 11.
11005 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
11006 Graf von Valinfreda, 11.
11007 Baron von Cropalati, 11.
11008 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
11013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11027 \begin_layout Plain Layout
11035 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11038 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11047 \begin_layout Plain Layout
11055 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11058 \begin_layout Plain Layout
11066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11069 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11078 \begin_layout Plain Layout
11086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11089 \begin_layout Plain Layout
11097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11100 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11109 \begin_layout Plain Layout
11117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11120 \begin_layout Plain Layout
11128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11131 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11140 \begin_layout Plain Layout
11148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11151 \begin_layout Plain Layout
11159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11162 \begin_layout Plain Layout
11168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11171 \begin_layout Plain Layout
11179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11182 \begin_layout Plain Layout
11190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11193 \begin_layout Plain Layout
11199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11202 \begin_layout Plain Layout
11210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11213 \begin_layout Plain Layout
11221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11224 \begin_layout Plain Layout
11230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11233 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11244 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11255 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11264 \begin_layout Plain Layout
11278 \begin_layout Section
11279 Multiple Lines, Columns and Rows
11282 \begin_layout Subsection
11283 Multiple Lines in Table Cells
11284 \begin_inset CommandInset label
11286 name "sub:Multiple-Lines-in"
11291 \begin_inset Index idx
11294 \begin_layout Plain Layout
11295 Multiple Lines in Table Cells
11301 \begin_inset Index idx
11304 \begin_layout Plain Layout
11313 \begin_layout Standard
11315 \begin_inset Float table
11321 \begin_layout Plain Layout
11322 \begin_inset Caption
11324 \begin_layout Plain Layout
11325 \begin_inset CommandInset label
11327 name "tab:Table-with-multiple"
11331 Table with multiple lines in cells
11339 \begin_layout Plain Layout
11341 \begin_inset Tabular
11342 <lyxtabular version="3" rows="3" columns="3">
11343 <features tabularvalignment="middle">
11344 <column alignment="center" valignment="middle" width="2.5cm">
11345 <column alignment="center" valignment="middle" width="0">
11346 <column alignment="center" valignment="middle" width="0">
11348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11351 \begin_layout Plain Layout
11353 \begin_inset Newline linebreak
11361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11364 \begin_layout Plain Layout
11370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11373 \begin_layout Plain Layout
11381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11384 \begin_layout Plain Layout
11390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11393 \begin_layout Plain Layout
11399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11402 \begin_layout Plain Layout
11410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11413 \begin_layout Plain Layout
11419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11422 \begin_layout Plain Layout
11428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11431 \begin_layout Plain Layout
11450 \begin_layout Standard
11451 Setting a fixed width for a column enables you to enter text as a paragraph
11452 with multiple lines and hyphenation.
11455 \begin_layout Standard
11457 \begin_inset space ~
11461 \begin_inset CommandInset ref
11463 reference "tab:Table-with-multiple"
11467 , create a 3×3 table, mark the first cell and right-click on it.
11468 In the appearing table dialog we set a cell width of 2.5
11469 \begin_inset space \thinspace{}
11472 cm and choose centered for the vertical and horizontal alignment.
11473 The vertical alignment is used for all cells of the row.
11474 As our text is smaller than 2.5
11475 \begin_inset space \thinspace{}
11478 cm, only one line will appear.
11479 To get two lines, a justified line break (shortcut
11482 arg "newline-insert linebreak"
11486 If the text is wider than the set cell width, it will automatically be
11487 broken to several lines.
11490 \begin_layout Standard
11491 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11492 by LaTeX if it is the first entry.
11493 Therefore you need to insert something to prevent the word not being the
11495 So add a horizontal space of 0
11496 \begin_inset space \thinspace{}
11499 pt before the word.
11500 As the space is zero, it doesn't change the output.
11502 \begin_inset space ~
11506 \begin_inset CommandInset ref
11508 reference "tab:Table-with-and"
11515 \begin_layout Standard
11516 \begin_inset Float table
11522 \begin_layout Plain Layout
11523 \begin_inset Caption
11525 \begin_layout Plain Layout
11526 \begin_inset CommandInset label
11528 name "tab:Table-with-and"
11532 Table with and without hyphenation
11540 \begin_layout Plain Layout
11541 \begin_inset space \hfill{}
11545 \begin_inset Tabular
11546 <lyxtabular version="3" rows="3" columns="3">
11547 <features tabularvalignment="middle">
11548 <column alignment="center" valignment="middle" width="2.5cm">
11549 <column alignment="center" valignment="middle" width="0">
11550 <column alignment="center" valignment="middle" width="0">
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11555 \begin_layout Plain Layout
11556 verylongtablecellword
11561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11564 \begin_layout Plain Layout
11570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11573 \begin_layout Plain Layout
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11584 \begin_layout Plain Layout
11590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11593 \begin_layout Plain Layout
11599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11602 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11613 \begin_layout Plain Layout
11619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11622 \begin_layout Plain Layout
11628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11631 \begin_layout Plain Layout
11643 \begin_inset space \hfill{}
11647 \begin_inset Tabular
11648 <lyxtabular version="3" rows="3" columns="3">
11649 <features tabularvalignment="middle">
11650 <column alignment="center" valignment="middle" width="2.5cm">
11651 <column alignment="center" valignment="middle" width="0">
11652 <column alignment="center" valignment="middle" width="0">
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11658 \begin_inset space \hspace{}
11662 verylongtablecellword
11667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11670 \begin_layout Plain Layout
11676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11679 \begin_layout Plain Layout
11687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11690 \begin_layout Plain Layout
11696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11699 \begin_layout Plain Layout
11705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11708 \begin_layout Plain Layout
11716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11719 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11737 \begin_layout Plain Layout
11749 \begin_inset space \hfill{}
11760 \begin_layout Subsection
11762 \begin_inset CommandInset label
11764 name "sub:Multicolumns"
11769 \begin_inset Index idx
11772 \begin_layout Plain Layout
11779 \begin_inset Index idx
11782 \begin_layout Plain Layout
11783 Table ! Multicolumns
11791 \begin_layout Subsubsection
11795 \begin_layout Standard
11796 To merge cells over multiple columns, select as many cells within a row
11797 as you want to merge and use either the table-toolbar button
11802 arg "inset-modify tabular multicolumn"
11809 Edit\SpecialChar \menuseparator
11810 Table\SpecialChar \menuseparator
11813 , or right click on the marked cells and choose
11817 in the context menu.
11820 \begin_layout Standard
11821 Multicolumns have there own cell settings.
11822 That means changing cell borders, cell alignment, and the width only affects
11824 Here is an example table with a multicolumn cell in the first row and one
11825 in the last row without the upper border:
11828 \begin_layout Standard
11830 \begin_inset Tabular
11831 <lyxtabular version="3" rows="3" columns="4">
11832 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11833 <column alignment="center" valignment="top" width="0pt">
11834 <column alignment="center" valignment="middle" width="0">
11835 <column alignment="center" valignment="top" width="0in">
11836 <column alignment="center" valignment="top" width="0pt">
11838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11841 \begin_layout Plain Layout
11847 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11850 \begin_layout Plain Layout
11856 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11859 \begin_layout Plain Layout
11865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11868 \begin_layout Plain Layout
11876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11879 \begin_layout Plain Layout
11894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11897 \begin_layout Plain Layout
11903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11906 \begin_layout Plain Layout
11912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11915 \begin_layout Plain Layout
11923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11926 \begin_layout Plain Layout
11932 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11935 \begin_layout Plain Layout
11941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11944 \begin_layout Plain Layout
11950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11953 \begin_layout Plain Layout
11967 \begin_layout Subsubsection
11968 Multicolumn Calculations
11969 \begin_inset CommandInset label
11971 name "sub:Multicolumn-Calculations"
11976 \begin_inset Index idx
11979 \begin_layout Plain Layout
11980 Multicolumns ! Calculations
11988 \begin_layout Standard
11989 LyX supports multicolumns directly, but we have to take account of the cell
11990 width of the columns spanned by the multicolumn cell.
11993 \begin_layout Standard
11994 \begin_inset Float table
12000 \begin_layout Plain Layout
12001 \begin_inset Caption
12003 \begin_layout Plain Layout
12004 \begin_inset CommandInset label
12006 name "tab:Table-with-centered"
12010 Table with centered multicolumn text above two columns that have exactly
12011 half the width of the multicolumn cell
12012 \begin_inset Argument
12015 \begin_layout Plain Layout
12016 Perfect multicolumn table
12029 \begin_layout Plain Layout
12031 \begin_inset Tabular
12032 <lyxtabular version="3" rows="3" columns="3">
12033 <features tabularvalignment="middle">
12034 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
12035 <column alignment="center" valignment="middle" width="0">
12036 <column alignment="center" valignment="top" width="0">
12038 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
12041 \begin_layout Plain Layout
12042 multiple lines multicolumn
12047 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12050 \begin_layout Plain Layout
12056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12059 \begin_layout Plain Layout
12067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12070 \begin_layout Plain Layout
12076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12079 \begin_layout Plain Layout
12085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12088 \begin_layout Plain Layout
12096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12099 \begin_layout Plain Layout
12105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12108 \begin_layout Plain Layout
12114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12117 \begin_layout Plain Layout
12136 \begin_layout Standard
12137 To create for example Table
12138 \begin_inset space ~
12142 \begin_inset CommandInset ref
12144 reference "tab:Table-with-centered"
12148 , mark the first two cells in the first row of a 3×3 table and right-click
12150 Now choose for this cell
12159 \begin_inset space \thinspace{}
12162 cm in the table dialog.
12163 The merged columns should have exactly half the width of the multicolumn
12164 cell, so that you would set a width of 1.25
12165 \begin_inset space \thinspace{}
12168 cm for the first column.
12169 The second column has then automatically a width of 1.25
12170 \begin_inset space \thinspace{}
12173 cm (multicolumn width - width of first column).
12174 This was done for Table
12175 \begin_inset space ~
12179 \begin_inset CommandInset ref
12181 reference "tab:Table-without-half"
12188 \begin_layout Standard
12189 \begin_inset Float table
12194 \begin_layout Plain Layout
12195 \begin_inset Caption
12197 \begin_layout Plain Layout
12198 \begin_inset CommandInset label
12200 name "tab:Table-without-half"
12204 Table where the spanned table columns are not exactly half the width of
12205 the multicolumn cell
12206 \begin_inset Argument
12209 \begin_layout Plain Layout
12210 Imperfect multicolumn table
12223 \begin_layout Plain Layout
12225 \begin_inset Tabular
12226 <lyxtabular version="3" rows="3" columns="3">
12227 <features tabularvalignment="middle">
12228 <column alignment="center" valignment="top" width="1.25cm">
12229 <column alignment="center" valignment="top" width="0">
12230 <column alignment="center" valignment="top" width="0">
12232 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12235 \begin_layout Plain Layout
12236 multiple lines multicolumn
12241 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12244 \begin_layout Plain Layout
12250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12253 \begin_layout Plain Layout
12261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12264 \begin_layout Plain Layout
12270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12273 \begin_layout Plain Layout
12279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12282 \begin_layout Plain Layout
12290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12293 \begin_layout Plain Layout
12299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12302 \begin_layout Plain Layout
12308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12311 \begin_layout Plain Layout
12330 \begin_layout Standard
12331 You can see that the first column is not half the width of the multicolumn
12332 cell, it is a bit bigger.
12333 The reason is that the specified width of a cell
12334 \begin_inset Formula $W_{g}$
12337 is not its total width
12338 \begin_inset Formula $W_{\mathrm{tot}}$
12341 because a cell is always a bit larger than specified.
12343 \begin_inset space ~
12347 \begin_inset CommandInset ref
12349 reference "cha:Explanation-of-Equation"
12353 explains this in detail.
12356 \begin_layout Standard
12358 \begin_inset Formula $W_{g\, n}$
12361 which the user needs to set when
12365 columns are spanned can be calculated, so that each column has a total
12367 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12371 \begin_inset Formula
12373 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12381 \begin_layout Standard
12382 In our case we have
12383 \begin_inset Formula $n=2$
12387 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12390 cm and the default values for the lengths, so that equation
12391 \begin_inset CommandInset ref
12398 \begin_inset Formula
12400 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12408 \begin_layout Standard
12409 To enable calculations in LaTeX, the LaTeX-package
12413 must be loaded with the document preamble line
12414 \begin_inset Index idx
12417 \begin_layout Plain Layout
12418 LaTeX-packages ! calc
12426 \begin_layout Standard
12434 \begin_layout Standard
12435 LyX does not allow you to calculate lengths in the
12439 field of the table dialog.
12440 Therefore you have to format the column by inserting a LaTeX-argument in
12442 Here is an overview about the arguments:
12445 \begin_layout Itemize
12450 creates cell with a fixed width, its text is vertically top-aligned
12453 \begin_layout Itemize
12458 creates cell with a fixed width, its text is vertically centered
12461 \begin_layout Itemize
12466 creates cell with a fixed width, its text is vertically bottom-aligned
12469 \begin_layout Standard
12470 By entering a LaTeX-argument, all cell settings set in the table dialog
12474 \begin_layout Standard
12475 \begin_inset Note Greyedout
12478 \begin_layout Plain Layout
12483 Due to a bug, LyX shows the overwritten settings anyway.
12491 \begin_layout Standard
12492 As the text should be horizontally centered, the command
12499 You can now enter the following LaTeX-argument for the first spanned column:
12502 \begin_layout Standard
12507 centering}m{1.25cm-6.2pt}
12510 \begin_layout Standard
12515 means, that the commands inside the braces are applied before the cell
12519 \begin_layout Standard
12520 Although we have chosen centered alignment for the text of the multicolumn
12521 cell, it is still left aligned.
12522 This is because LyX only applies the alignment to single columns.
12523 So for the multicolumn cell we have to use the LaTeX-argument
12526 \begin_layout Standard
12534 \begin_layout Subsection
12536 \begin_inset CommandInset label
12538 name "sub:Multirows"
12543 \begin_inset Index idx
12546 \begin_layout Plain Layout
12553 \begin_inset Index idx
12556 \begin_layout Plain Layout
12565 \begin_layout Standard
12566 To merge cells over multiple rows, select as many cells within a column
12567 as you want to merge and use either the table-toolbar button
12572 arg "inset-modify tabular multirow"
12579 Edit\SpecialChar \menuseparator
12580 Table\SpecialChar \menuseparator
12583 , or right click on the marked cells and choose
12587 in the context menu.
12590 \begin_layout Standard
12591 Here is an example table with a multirow in the first column:
12594 \begin_layout Standard
12596 \begin_inset Tabular
12597 <lyxtabular version="3" rows="3" columns="3">
12598 <features tabularvalignment="middle">
12599 <column alignment="center" valignment="top" width="0pt">
12600 <column alignment="center" valignment="top" width="0">
12601 <column alignment="center" valignment="top" width="0">
12603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12606 \begin_layout Plain Layout
12612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12615 \begin_layout Plain Layout
12621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12624 \begin_layout Plain Layout
12632 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12635 \begin_layout Plain Layout
12641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12644 \begin_layout Plain Layout
12650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12653 \begin_layout Plain Layout
12661 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12664 \begin_layout Plain Layout
12670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12673 \begin_layout Plain Layout
12679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12682 \begin_layout Plain Layout
12696 \begin_layout Standard
12697 The width of multirow cells is set by setting the width and alignment for
12703 shifts the content of the multirow up/down if the offset is positive/negative.
12706 \begin_layout Standard
12707 If the column of a multirow cell has no explicit width, the multirow cell
12708 inherits the alignment of the column.
12709 Otherwise it is by default left-aligned.
12710 To override the default, renew the command
12719 \begin_layout Standard
12731 \begin_layout Standard
12732 in the document preamble.
12733 Then all entries of multirow cells in the document are centered.
12734 If centering is only needed for several tables, you can renew the command
12735 in a TeX-Code box just before the table instead of the preamble.
12736 If the text should be right-aligned, replace
12749 To return to left-alignment
12758 \begin_layout Standard
12759 This is an example table with a right-aligned multirow cell that has a vertical
12761 \begin_inset space \thinspace{}
12765 \begin_inset space \thinspace{}
12771 \begin_layout Standard
12777 \begin_layout Plain Layout
12791 \begin_inset Tabular
12792 <lyxtabular version="3" rows="4" columns="3">
12793 <features tabularvalignment="middle">
12794 <column alignment="center" valignment="top" width="3cm">
12795 <column alignment="center" valignment="top" width="0">
12796 <column alignment="center" valignment="top" width="0">
12798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12801 \begin_layout Plain Layout
12807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12810 \begin_layout Plain Layout
12816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12819 \begin_layout Plain Layout
12827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12830 \begin_layout Plain Layout
12836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12839 \begin_layout Plain Layout
12845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12848 \begin_layout Plain Layout
12856 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12859 \begin_layout Plain Layout
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12868 \begin_layout Plain Layout
12874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12877 \begin_layout Plain Layout
12885 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12888 \begin_layout Plain Layout
12894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12897 \begin_layout Plain Layout
12903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12906 \begin_layout Plain Layout
12921 \begin_layout Plain Layout
12937 \begin_layout Standard
12938 To start a new line in a multirow you can use a forced line break (shortcut
12942 arg "newline-insert newline"
12945 ) but this will not respect the cell lines as demonstrated in this table:
12948 \begin_layout Standard
12951 \begin_inset Tabular
12952 <lyxtabular version="3" rows="3" columns="2">
12953 <features tabularvalignment="middle">
12954 <column alignment="left" valignment="middle" width="2cm">
12955 <column alignment="center" valignment="top" width="0">
12957 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12960 \begin_layout Plain Layout
12962 \begin_inset Newline newline
12966 \begin_inset Newline newline
12974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12977 \begin_layout Plain Layout
12985 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12988 \begin_layout Plain Layout
12994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12997 \begin_layout Plain Layout
13005 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13008 \begin_layout Plain Layout
13014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13017 \begin_layout Plain Layout
13031 \begin_layout Standard
13032 Therefore be careful with forced line breaks.
13035 \begin_layout Subsection
13036 Cells with diagonal line(s)
13039 \begin_layout Standard
13040 To tell the reader what is meant by column and row headings in a table,
13041 it is helpful to split the first cell of the table by one or two diagonal
13043 This can be achieved by loading the LaTeX-package
13048 \begin_inset Index idx
13051 \begin_layout Plain Layout
13052 LaTeX-packages ! picinpar
13057 in the document preamble.
13058 The package provides the command
13064 that is inserted as TeX-Code and that can take 2 or 3
13065 \begin_inset space ~
13071 \begin_layout Standard
13076 diagbox[options]{lower left}{upper right}
13079 \begin_layout Standard
13084 diagbox[options]{lower left}{upper left}{upper right}
13087 \begin_layout Standard
13088 The first scheme divides the cell by a single diagonal line and the arguments
13089 are placed below and above this line.
13090 The second scheme divides the cell by 2
13091 \begin_inset space ~
13097 \begin_layout Standard
13101 \begin_layout Plain Layout
13111 \begin_inset Note Note
13114 \begin_layout Plain Layout
13115 The following section will only be displayed when the LaTeX-package
13127 \begin_layout Standard
13128 Here is an example table where
13134 is used in the 2-argument scheme in the first cell:
13135 \begin_inset VSpace medskip
13141 \begin_layout Standard
13143 \begin_inset Tabular
13144 <lyxtabular version="3" rows="4" columns="4">
13145 <features tabularvalignment="middle">
13146 <column alignment="center" valignment="top" width="0">
13147 <column alignment="center" valignment="top" width="0">
13148 <column alignment="center" valignment="top" width="0">
13149 <column alignment="center" valignment="top" width="0">
13151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13154 \begin_layout Plain Layout
13158 \begin_layout Plain Layout
13171 \begin_layout Plain Layout
13182 \begin_layout Plain Layout
13194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13197 \begin_layout Plain Layout
13203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13206 \begin_layout Plain Layout
13212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13215 \begin_layout Plain Layout
13223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13226 \begin_layout Plain Layout
13232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13235 \begin_layout Plain Layout
13241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13244 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13253 \begin_layout Plain Layout
13261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13264 \begin_layout Plain Layout
13270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13273 \begin_layout Plain Layout
13279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13282 \begin_layout Plain Layout
13288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13291 \begin_layout Plain Layout
13299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13302 \begin_layout Plain Layout
13308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13311 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13320 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13329 \begin_layout Plain Layout
13341 \begin_inset VSpace medskip
13347 \begin_layout Standard
13348 The 3-argument scheme is for example useful for cross-tables of sports leagues
13352 \begin_layout Standard
13355 \begin_inset Tabular
13356 <lyxtabular version="3" rows="4" columns="4">
13357 <features tabularvalignment="middle">
13358 <column alignment="center" valignment="top" width="0pt">
13359 <column alignment="center" valignment="top" width="0">
13360 <column alignment="center" valignment="top" width="0">
13361 <column alignment="center" valignment="top" width="0">
13363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13370 \begin_layout Plain Layout
13383 \begin_layout Plain Layout
13394 \begin_layout Plain Layout
13405 \begin_layout Plain Layout
13417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13420 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13438 \begin_layout Plain Layout
13446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13449 \begin_layout Plain Layout
13455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13467 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13476 \begin_layout Plain Layout
13484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13487 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13525 \begin_layout Plain Layout
13531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13534 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13543 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13552 \begin_layout Plain Layout
13566 \begin_layout Standard
13567 For larger cross-tables one might use split cells in 2 or every corner of
13568 the table like in this example:
13571 \begin_layout Standard
13574 \begin_inset Tabular
13575 <lyxtabular version="3" rows="5" columns="5">
13576 <features tabularvalignment="middle">
13577 <column alignment="center" valignment="top" width="0pt">
13578 <column alignment="center" valignment="top" width="0">
13579 <column alignment="center" valignment="top" width="0">
13580 <column alignment="center" valignment="top" width="0">
13581 <column alignment="center" valignment="top" width="0">
13583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13586 \begin_layout Plain Layout
13590 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \begin_layout Plain Layout
13625 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13671 \begin_layout Plain Layout
13684 \begin_layout Plain Layout
13695 \begin_layout Plain Layout
13706 \begin_layout Plain Layout
13720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13723 \begin_layout Plain Layout
13729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13732 \begin_layout Plain Layout
13738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13741 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13759 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13770 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13788 \begin_layout Plain Layout
13794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13797 \begin_layout Plain Layout
13803 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13806 \begin_layout Plain Layout
13814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13817 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13864 \begin_layout Plain Layout
13868 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13903 \begin_layout Plain Layout
13915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13918 \begin_layout Plain Layout
13924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13927 \begin_layout Plain Layout
13933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13936 \begin_layout Plain Layout
13942 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13945 \begin_layout Plain Layout
13949 \begin_layout Plain Layout
13962 \begin_layout Plain Layout
13973 \begin_layout Plain Layout
13984 \begin_layout Plain Layout
14004 \begin_layout Standard
14005 To rotate the diagonal lines, the command option
14030 and represent a point of a compass.
14035 is for example the south-west corner.
14036 Thus in the lower left cell of the above table the command
14039 \begin_layout Standard
14044 diagbox[dir=SW]{Team home}{Result}{Team away}
14047 \begin_layout Standard
14049 If no direction is given, it will be NW.
14052 \begin_layout Standard
14053 The necessary width of split cells is automatically calculated.
14054 Thus if you set a fixed column width smaller than the calculated one, the
14055 cell's content will protrude the cell borders:
14058 \begin_layout Standard
14061 \begin_inset Tabular
14062 <lyxtabular version="3" rows="2" columns="2">
14063 <features tabularvalignment="middle">
14064 <column alignment="center" valignment="top" width="3cm">
14065 <column alignment="center" valignment="top" width="0">
14067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14070 \begin_layout Plain Layout
14074 \begin_layout Plain Layout
14087 \begin_layout Plain Layout
14098 \begin_layout Plain Layout
14110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14113 \begin_layout Plain Layout
14121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14124 \begin_layout Plain Layout
14130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14133 \begin_layout Plain Layout
14147 \begin_layout Standard
14148 If you need a certain width for columns with a split cell, use the command
14153 (replace '3cm' by the width you need).
14154 In the following table the width of the first column is set to 4
14155 \begin_inset space \thinspace{}
14166 \begin_inset space \thinspace{}
14170 \begin_inset space \thinspace{}
14175 tabcolsep is necessary because the overall width is the width for the text
14176 (in this case the 4
14177 \begin_inset space \thinspace{}
14180 cm) plus two times the separation of the text and the cell border.
14181 The calculation of the width cannot be done in the command option of
14187 so one needs to create a new length which can be used later.
14188 This is done with the TeX-Code commands
14191 \begin_layout Standard
14199 \begin_inset Newline newline
14211 \begin_layout Standard
14215 \begin_layout Plain Layout
14224 \begin_layout Plain Layout
14240 \begin_layout Standard
14241 To enable calculations in LaTeX one needs to load the package
14246 \begin_inset Index idx
14249 \begin_layout Plain Layout
14250 LaTeX-packages ! calc
14255 in the document preamble.
14258 \begin_layout Standard
14259 In this table you can now use the command
14262 \begin_layout Standard
14272 \begin_layout Standard
14276 \begin_layout Standard
14279 \begin_inset Tabular
14280 <lyxtabular version="3" rows="2" columns="2">
14281 <features tabularvalignment="middle">
14282 <column alignment="center" valignment="top" width="4cm">
14283 <column alignment="center" valignment="top" width="0">
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14288 \begin_layout Plain Layout
14292 \begin_layout Plain Layout
14307 \begin_layout Plain Layout
14318 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14333 \begin_layout Plain Layout
14341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14344 \begin_layout Plain Layout
14350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14353 \begin_layout Plain Layout
14367 \begin_layout Standard
14368 Note that the split cell needs to be the widest one in the column.
14369 Otherwise the length of the diagonal line cannot be calculated correctly
14370 like in this table:
14373 \begin_layout Standard
14376 \begin_inset Tabular
14377 <lyxtabular version="3" rows="2" columns="2">
14378 <features tabularvalignment="middle">
14379 <column alignment="center" valignment="top" width="0pt">
14380 <column alignment="center" valignment="top" width="0">
14382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14385 \begin_layout Plain Layout
14389 \begin_layout Plain Layout
14402 \begin_layout Plain Layout
14413 \begin_layout Plain Layout
14425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14428 \begin_layout Plain Layout
14436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14439 \begin_layout Plain Layout
14445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14448 \begin_layout Plain Layout
14462 \begin_layout Standard
14463 In this case use the
14474 It is then not necessary to add 2
14476 tabcolsep because the cell width is now the width of the column.
14477 In this table a width of 3
14478 \begin_inset space \thinspace{}
14484 \begin_layout Standard
14487 \begin_inset Tabular
14488 <lyxtabular version="3" rows="2" columns="2">
14489 <features tabularvalignment="middle">
14490 <column alignment="center" valignment="top" width="0pt">
14491 <column alignment="center" valignment="top" width="0">
14493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14496 \begin_layout Plain Layout
14500 \begin_layout Plain Layout
14504 diagbox[width=3cm]{
14513 \begin_layout Plain Layout
14524 \begin_layout Plain Layout
14536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14539 \begin_layout Plain Layout
14547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14550 \begin_layout Plain Layout
14556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14559 \begin_layout Plain Layout
14573 \begin_layout Standard
14574 For multiple text lines in split cells one needs some extra height to fit
14575 the text to the cell.
14576 This can be achieved with the
14586 (replace '3cm' by the height you need).
14587 In the following table the command
14590 \begin_layout Standard
14595 diagbox[width=3cm,height=1.4cm]{A
14606 \begin_layout Standard
14607 is used in the first cell.
14616 creates hereby the line break.
14620 \begin_layout Plain Layout
14621 Breaking lines with
14625 is only possible when the column has a fixed width.
14633 \begin_layout Standard
14636 \begin_inset Tabular
14637 <lyxtabular version="3" rows="2" columns="2">
14638 <features tabularvalignment="middle">
14639 <column alignment="center" valignment="top" width="0">
14640 <column alignment="center" valignment="top" width="0">
14642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14645 \begin_layout Plain Layout
14649 \begin_layout Plain Layout
14653 diagbox[width=3cm,height=1.4cm]{
14662 \begin_layout Plain Layout
14677 \begin_layout Plain Layout
14688 \begin_layout Plain Layout
14703 \begin_layout Plain Layout
14715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14718 \begin_layout Plain Layout
14726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14729 \begin_layout Plain Layout
14735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14738 \begin_layout Plain Layout
14752 \begin_layout Standard
14756 \begin_layout Plain Layout
14766 \begin_inset Note Note
14769 \begin_layout Plain Layout
14770 The following will be displayed when the LaTeX-package
14782 \begin_layout Standard
14783 You need to install the LaTeX-package
14787 to see the following part of this section in the output.
14790 \begin_layout Standard
14794 \begin_layout Plain Layout
14806 \begin_layout Standard
14807 For more info about the LaTeX-package
14811 , see its documentation,
14812 \begin_inset CommandInset citation
14821 \begin_layout Section
14823 \begin_inset CommandInset label
14825 name "sec:Formal-Tables"
14830 \begin_inset Index idx
14833 \begin_layout Plain Layout
14842 \begin_layout Standard
14843 Tables are often typeset in books similar to Table
14844 \begin_inset space ~
14848 \begin_inset CommandInset ref
14850 reference "tab:Example-booktabs-table"
14855 This kind of tables is called
14856 \begin_inset Quotes eld
14864 \begin_inset Quotes erd
14868 To make a table a formal table use the option
14876 tab of the table dialog.
14879 \begin_layout Standard
14880 \begin_inset Float table
14886 \begin_layout Plain Layout
14887 \begin_inset Caption
14889 \begin_layout Plain Layout
14890 \begin_inset CommandInset label
14892 name "tab:Example-booktabs-table"
14896 Example booktabs-table
14904 \begin_layout Plain Layout
14906 \begin_inset Tabular
14907 <lyxtabular version="3" rows="8" columns="4">
14908 <features booktabs="true" tabularvalignment="middle">
14909 <column alignment="center" valignment="top" width="0">
14910 <column alignment="center" valignment="top" width="0">
14911 <column alignment="center" valignment="top" width="0">
14912 <column alignment="center" valignment="top" width="0">
14914 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14917 \begin_layout Plain Layout
14923 <cell alignment="center" valignment="top" topline="true" usebox="none">
14926 \begin_layout Plain Layout
14928 \begin_inset space \thinspace{}
14936 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14939 \begin_layout Plain Layout
14941 \begin_inset space \thinspace{}
14949 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14952 \begin_layout Plain Layout
14960 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14963 \begin_layout Plain Layout
14967 \begin_layout Plain Layout
14980 \begin_layout Plain Layout
14989 Detector thickness in µm
14994 <cell alignment="center" valignment="top" usebox="none">
14997 \begin_layout Plain Layout
15003 <cell alignment="center" valignment="top" usebox="none">
15006 \begin_layout Plain Layout
15012 <cell alignment="center" valignment="top" usebox="none">
15015 \begin_layout Plain Layout
15023 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
15026 \begin_layout Plain Layout
15032 <cell alignment="center" valignment="top" topline="true" usebox="none">
15035 \begin_layout Plain Layout
15041 <cell alignment="center" valignment="top" topline="true" usebox="none">
15044 \begin_layout Plain Layout
15050 <cell alignment="center" valignment="top" topline="true" usebox="none">
15053 \begin_layout Plain Layout
15060 <row topspace="default">
15061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15064 \begin_layout Plain Layout
15065 Spatial resolution in µm
15070 <cell alignment="center" valignment="top" usebox="none">
15073 \begin_layout Plain Layout
15079 <cell alignment="center" valignment="top" usebox="none">
15082 \begin_layout Plain Layout
15088 <cell alignment="center" valignment="top" usebox="none">
15091 \begin_layout Plain Layout
15098 <row topspace="default">
15099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15102 \begin_layout Plain Layout
15104 \begin_inset Formula $f_{\mathrm{max}}$
15112 <cell alignment="center" valignment="top" usebox="none">
15115 \begin_layout Plain Layout
15121 <cell alignment="center" valignment="top" usebox="none">
15124 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15140 <row topspace="default">
15141 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15144 \begin_layout Plain Layout
15148 \begin_layout Plain Layout
15152 cmidrule(l{10pt}){1-1}
15157 LSF-spatial resolution
15162 <cell alignment="center" valignment="top" usebox="none">
15165 \begin_layout Plain Layout
15171 <cell alignment="center" valignment="top" usebox="none">
15174 \begin_layout Plain Layout
15180 <cell alignment="center" valignment="top" usebox="none">
15183 \begin_layout Plain Layout
15191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15194 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" usebox="none">
15203 \begin_layout Plain Layout
15209 <cell alignment="center" valignment="top" usebox="none">
15212 \begin_layout Plain Layout
15218 <cell alignment="center" valignment="top" usebox="none">
15221 \begin_layout Plain Layout
15229 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15232 \begin_layout Plain Layout
15238 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15241 \begin_layout Plain Layout
15247 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15250 \begin_layout Plain Layout
15256 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15259 \begin_layout Plain Layout
15278 \begin_layout Standard
15279 Spaces to table rows can be added using the
15283 tab of the table dialog as described in section
15284 \begin_inset space ~
15288 \begin_inset CommandInset ref
15290 reference "sub:Row-Spacing"
15297 \begin_layout Standard
15298 Unlike normal tables, formal tables have no vertical table lines.
15299 The horizontal table lines can be set as for normal tables but they appear
15300 with different widths in the output:
15301 \begin_inset Newline newline
15304 The first and the last table line have a default width of 0.08
15305 \begin_inset space \thinspace{}
15308 em while the other lines have a default width of 0.05
15309 \begin_inset space \thinspace{}
15315 \begin_layout Standard
15316 The default widths can be changed with the following preamble lines
15319 \begin_layout Standard
15329 \begin_inset Newline newline
15341 \begin_layout Standard
15342 This example is for the first line, the so called
15347 If you want to change the width for the last line, replace
15356 To change the width for the other lines replace
15365 You can use all units listed in appendix
15366 \begin_inset space ~
15370 \begin_inset CommandInset ref
15372 reference "cha:Units-available-in"
15379 \begin_layout Standard
15380 Lines that do not span all table columns can be created by setting a table
15381 line for multicolumn cells.
15382 LyX will then internally use the command
15388 to create this line.
15392 \begin_layout Standard
15397 cmidrule[width](trim){startcol-endcol}
15400 \begin_layout Standard
15407 are currently not supported by LyX so you have to use TeX-Code to be able
15415 s can manually be created by inserting the command as TeX-Code as the first
15416 cell entry of the first cell of a row.
15417 The line is then drawn in the output above the current row.
15420 \begin_layout Standard
15421 The default for the width is 0.03
15422 \begin_inset space \thinspace{}
15426 Startcol is the number of the column where the line starts and endcol the
15427 column number where the line ends.
15428 The endcol always needs to be specified, also when the line should span
15430 The optional parameter trim could be either
15438 where the trimwidth is also optional.
15439 Using for example the parameter
15443 means that the line is trimmed from its left end by 2
15444 \begin_inset space \thinspace{}
15448 If you don't specify the trimwidth the lines are trimmed by the default
15450 \begin_inset space \thinspace{}
15456 \begin_layout Standard
15457 \begin_inset VSpace bigskip
15461 \begin_inset space ~
15465 \begin_inset CommandInset ref
15467 reference "tab:Example-booktabs-table"
15471 was created using the commands
15474 \begin_layout Standard
15484 \begin_layout Standard
15485 at the beginning of the second row and
15488 \begin_layout Standard
15493 cmidrule(l{10pt}){1-1}
15496 \begin_layout Standard
15500 \begin_layout Standard
15501 \begin_inset VSpace bigskip
15507 \begin_layout Standard
15508 You might want to have overlapping
15515 \begin_inset space ~
15519 \begin_inset CommandInset ref
15521 reference "tab:Special-booktabs-table"
15526 This can be achieved with the TeX-Code command
15529 \begin_layout Standard
15537 \begin_layout Standard
15538 The command that was used for the second row of Table
15539 \begin_inset space ~
15543 \begin_inset CommandInset ref
15545 reference "tab:Special-booktabs-table"
15552 \begin_layout Standard
15566 \begin_layout Standard
15567 The command for the sixth row is
15570 \begin_layout Standard
15582 \begin_layout Standard
15583 \begin_inset VSpace bigskip
15589 \begin_layout Standard
15590 If you are in any way not satisfied with the border line spacing, you can
15591 use the following command to produce lines that span over all table columns
15596 \begin_layout Standard
15601 specialrule{width}{space above}{space below}
15604 \begin_layout Standard
15605 For more information about these features, refer to the manual of the LaTeX-pack
15611 \begin_inset CommandInset citation
15618 \begin_inset Index idx
15621 \begin_layout Plain Layout
15622 LaTeX-packages ! booktabs
15630 \begin_layout Standard
15631 \begin_inset Float table
15637 \begin_layout Plain Layout
15638 \begin_inset Caption
15640 \begin_layout Plain Layout
15641 \begin_inset CommandInset label
15643 name "tab:Special-booktabs-table"
15647 Special booktabs-table
15655 \begin_layout Plain Layout
15657 \begin_inset Tabular
15658 <lyxtabular version="3" rows="8" columns="4">
15659 <features booktabs="true" tabularvalignment="middle">
15660 <column alignment="center" valignment="top" width="0">
15661 <column alignment="center" valignment="top" width="0">
15662 <column alignment="center" valignment="top" width="0">
15663 <column alignment="center" valignment="top" width="0">
15665 <cell alignment="center" valignment="top" topline="true" usebox="none">
15668 \begin_layout Plain Layout
15674 <cell alignment="center" valignment="top" topline="true" usebox="none">
15677 \begin_layout Plain Layout
15679 \begin_inset space \thinspace{}
15687 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15690 \begin_layout Plain Layout
15692 \begin_inset space \thinspace{}
15700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15703 \begin_layout Plain Layout
15711 <cell alignment="center" valignment="top" usebox="none">
15714 \begin_layout Plain Layout
15718 \begin_layout Plain Layout
15731 \begin_layout Plain Layout
15744 \begin_layout Plain Layout
15757 \begin_layout Plain Layout
15766 Detector thickness in µm
15771 <cell alignment="center" valignment="top" usebox="none">
15774 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" usebox="none">
15792 \begin_layout Plain Layout
15800 <cell alignment="center" valignment="top" topline="true" usebox="none">
15803 \begin_layout Plain Layout
15809 <cell alignment="center" valignment="top" topline="true" usebox="none">
15812 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" usebox="none">
15821 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15837 <row topspace="default">
15838 <cell alignment="center" valignment="top" usebox="none">
15841 \begin_layout Plain Layout
15842 Spatial resolution in µm
15847 <cell alignment="center" valignment="top" usebox="none">
15850 \begin_layout Plain Layout
15856 <cell alignment="center" valignment="top" usebox="none">
15859 \begin_layout Plain Layout
15865 <cell alignment="center" valignment="top" usebox="none">
15868 \begin_layout Plain Layout
15875 <row topspace="default">
15876 <cell alignment="center" valignment="top" usebox="none">
15879 \begin_layout Plain Layout
15881 \begin_inset Formula $f_{\mathrm{max}}$
15889 <cell alignment="center" valignment="top" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" usebox="none">
15901 \begin_layout Plain Layout
15907 <cell alignment="center" valignment="top" usebox="none">
15910 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" topline="true" usebox="none">
15921 \begin_layout Plain Layout
15925 \begin_layout Plain Layout
15938 \begin_layout Plain Layout
15947 LSF-spatial resolution
15952 <cell alignment="center" valignment="top" topline="true" usebox="none">
15955 \begin_layout Plain Layout
15961 <cell alignment="center" valignment="top" topline="true" usebox="none">
15964 \begin_layout Plain Layout
15970 <cell alignment="center" valignment="top" topline="true" usebox="none">
15973 \begin_layout Plain Layout
15981 <cell alignment="center" valignment="top" usebox="none">
15984 \begin_layout Plain Layout
15990 <cell alignment="center" valignment="top" usebox="none">
15993 \begin_layout Plain Layout
15999 <cell alignment="center" valignment="top" usebox="none">
16002 \begin_layout Plain Layout
16008 <cell alignment="center" valignment="top" usebox="none">
16011 \begin_layout Plain Layout
16019 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16022 \begin_layout Plain Layout
16028 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16031 \begin_layout Plain Layout
16037 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16040 \begin_layout Plain Layout
16046 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16049 \begin_layout Plain Layout
16068 \begin_layout Section
16069 Vertical Table Alignment
16070 \begin_inset Index idx
16073 \begin_layout Plain Layout
16082 \begin_layout Standard
16083 To align tables vertically in a text line, the table must be inside a box.
16084 The box can then be vertically aligned as described in section
16085 \begin_inset space ~
16089 \begin_inset CommandInset ref
16091 reference "sec:Box-Dialog"
16098 \begin_layout Standard
16099 In the following example the tables are inside a minipage
16103 \begin_layout Plain Layout
16104 Minipages are described in section
16105 \begin_inset space ~
16109 \begin_inset CommandInset ref
16111 reference "sec:Minipages"
16120 box that has a width of 15
16121 \begin_inset space \thinspace{}
16127 \begin_layout Itemize
16129 \begin_inset Box Frameless
16139 height_special "totalheight"
16142 \begin_layout Plain Layout
16143 \begin_inset Tabular
16144 <lyxtabular version="3" rows="3" columns="3">
16145 <features tabularvalignment="middle">
16146 <column alignment="center" valignment="top" width="0">
16147 <column alignment="center" valignment="top" width="0">
16148 <column alignment="center" valignment="top" width="0">
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16153 \begin_layout Plain Layout
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Plain Layout
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Plain Layout
16179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16182 \begin_layout Plain Layout
16188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Plain Layout
16208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16211 \begin_layout Plain Layout
16217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16220 \begin_layout Plain Layout
16226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16229 \begin_layout Plain Layout
16249 \begin_layout Plain Layout
16261 \begin_inset Box Frameless
16271 height_special "totalheight"
16274 \begin_layout Plain Layout
16275 \begin_inset Tabular
16276 <lyxtabular version="3" rows="3" columns="3">
16277 <features tabularvalignment="middle">
16278 <column alignment="center" valignment="top" width="0">
16279 <column alignment="center" valignment="top" width="0">
16280 <column alignment="center" valignment="top" width="0">
16282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16285 \begin_layout Plain Layout
16291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16294 \begin_layout Plain Layout
16300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16303 \begin_layout Plain Layout
16311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16314 \begin_layout Plain Layout
16320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16323 \begin_layout Plain Layout
16329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16332 \begin_layout Plain Layout
16340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16343 \begin_layout Plain Layout
16349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16352 \begin_layout Plain Layout
16358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16361 \begin_layout Plain Layout
16381 \begin_layout Plain Layout
16391 \begin_layout Itemize
16393 \begin_inset Box Frameless
16403 height_special "totalheight"
16406 \begin_layout Plain Layout
16407 \begin_inset Tabular
16408 <lyxtabular version="3" rows="3" columns="3">
16409 <features tabularvalignment="middle">
16410 <column alignment="center" valignment="top" width="0">
16411 <column alignment="center" valignment="top" width="0">
16412 <column alignment="center" valignment="top" width="0">
16414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16417 \begin_layout Plain Layout
16423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16426 \begin_layout Plain Layout
16432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16435 \begin_layout Plain Layout
16443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16446 \begin_layout Plain Layout
16452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16455 \begin_layout Plain Layout
16461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16464 \begin_layout Plain Layout
16472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16475 \begin_layout Plain Layout
16481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16484 \begin_layout Plain Layout
16490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16493 \begin_layout Plain Layout
16512 \begin_layout Itemize
16514 \begin_inset Box Frameless
16524 height_special "totalheight"
16527 \begin_layout Plain Layout
16528 \begin_inset Tabular
16529 <lyxtabular version="3" rows="3" columns="3">
16530 <features tabularvalignment="middle">
16531 <column alignment="center" valignment="top" width="0">
16532 <column alignment="center" valignment="top" width="0">
16533 <column alignment="center" valignment="top" width="0">
16535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16538 \begin_layout Plain Layout
16544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16547 \begin_layout Plain Layout
16553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16556 \begin_layout Plain Layout
16564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16567 \begin_layout Plain Layout
16573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16576 \begin_layout Plain Layout
16582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16585 \begin_layout Plain Layout
16593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16605 \begin_layout Plain Layout
16611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16634 \begin_layout Plain Layout
16646 \begin_inset Box Frameless
16656 height_special "totalheight"
16659 \begin_layout Plain Layout
16660 \begin_inset Tabular
16661 <lyxtabular version="3" rows="3" columns="3">
16662 <features tabularvalignment="middle">
16663 <column alignment="center" valignment="top" width="0">
16664 <column alignment="center" valignment="top" width="0">
16665 <column alignment="center" valignment="top" width="0">
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Plain Layout
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16679 \begin_layout Plain Layout
16685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16688 \begin_layout Plain Layout
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Plain Layout
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16708 \begin_layout Plain Layout
16714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16717 \begin_layout Plain Layout
16725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16728 \begin_layout Plain Layout
16734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16737 \begin_layout Plain Layout
16743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16746 \begin_layout Plain Layout
16766 \begin_layout Plain Layout
16776 \begin_layout Standard
16777 As you will see, the content of the first and last table row is not correctly
16779 To get this alignment, the minipage box must be set into a raisebox
16783 \begin_layout Plain Layout
16784 Raiseboxes are described in section
16785 \begin_inset space ~
16789 \begin_inset CommandInset ref
16791 reference "sub:Vertical-Alignment"
16801 In the example above the second table in the first item is aligned using
16802 the TeX-Code-command
16805 \begin_layout Standard
16815 \begin_layout Standard
16817 After the box the closing brace
16821 is inserted as TeX-Code.
16822 For the second table in the last item the command
16825 \begin_layout Standard
16835 \begin_layout Standard
16839 \begin_layout Standard
16840 \begin_inset Note Greyedout
16843 \begin_layout Plain Layout
16848 The alignment of the table row content to the surrounding text line is
16850 The required value for the
16856 command for this alignment depends on the document font, the font size,
16857 and the table line thickness.
16865 \begin_layout Section
16867 \begin_inset CommandInset label
16869 name "sec:Colored-Tables"
16874 \begin_inset Index idx
16877 \begin_layout Plain Layout
16886 \begin_layout Subsection
16888 \begin_inset Index idx
16891 \begin_layout Plain Layout
16892 Table Color ! for Cells
16898 \begin_inset Index idx
16901 \begin_layout Plain Layout
16902 Color ! for Table Cells
16910 \begin_layout Standard
16911 \begin_inset Float table
16917 \begin_layout Plain Layout
16918 \begin_inset Caption
16920 \begin_layout Plain Layout
16921 \begin_inset CommandInset label
16923 name "tab:Table-colored-without"
16927 Table colored without using the package
16932 \begin_inset Argument
16935 \begin_layout Plain Layout
16936 Table without colortbl
16949 \begin_layout Plain Layout
16951 \begin_inset Tabular
16952 <lyxtabular version="3" rows="3" columns="3">
16953 <features tabularvalignment="middle">
16954 <column alignment="center" valignment="top" width="0">
16955 <column alignment="center" valignment="top" width="0">
16956 <column alignment="center" valignment="top" width="0">
16958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16961 \begin_layout Plain Layout
16969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16972 \begin_layout Plain Layout
16980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16983 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16996 \begin_layout Plain Layout
17004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17007 \begin_layout Plain Layout
17015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17018 \begin_layout Plain Layout
17028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17031 \begin_layout Plain Layout
17039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17042 \begin_layout Plain Layout
17050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17053 \begin_layout Plain Layout
17074 \begin_layout Standard
17075 If you only need colored text, mark the cells and choose a color in the
17078 Edit\SpecialChar \menuseparator
17080 \begin_inset space ~
17086 This was used to create Table
17087 \begin_inset space ~
17091 \begin_inset CommandInset ref
17093 reference "tab:Table-colored-without"
17098 In any other case you have to use the LaTeX-package
17103 \begin_inset Index idx
17106 \begin_layout Plain Layout
17107 LaTeX-packages ! colortbl
17115 \begin_layout Standard
17119 \begin_layout Plain Layout
17129 \begin_inset Note Note
17132 \begin_layout Plain Layout
17133 The following section part will only be displayed when the LaTeX-package
17146 \begin_layout Standard
17147 To create colored tables,
17151 must be loaded in the preamble with the line
17154 \begin_layout Standard
17159 usepackage{colortbl}
17162 \begin_layout Standard
17163 The color of a column is adjusted with the command
17166 \begin_layout Standard
17171 columncolor{name of color}
17174 \begin_layout Standard
17180 More about the command
17184 is contained in section
17185 \begin_inset space ~
17189 \begin_inset CommandInset ref
17191 reference "sub:Multicolumn-Calculations"
17198 \begin_layout Standard
17199 The following color names are predefined:
17202 \begin_layout Standard
17236 \begin_layout Standard
17237 \begin_inset VSpace medskip
17243 \begin_layout Standard
17244 If you add the options
17247 \begin_layout Standard
17250 usenames,dvipsnames
17253 \begin_layout Standard
17254 to the document class options in the document settings, you can additionally
17256 \begin_inset space ~
17260 These colors are listed in appendix
17261 \begin_inset space ~
17265 \begin_inset CommandInset ref
17267 reference "chap:List-of-dvips-colornames"
17272 One of these colors,
17276 , is used as example in Table
17277 \begin_inset space ~
17281 \begin_inset CommandInset ref
17283 reference "tab:Table-colored-using"
17290 \begin_layout Standard
17291 \begin_inset VSpace medskip
17297 \begin_layout Standard
17298 You can also define your own color with the command
17301 \begin_layout Standard
17306 definecolor{color name}{color model}{color values}
17309 \begin_layout Standard
17310 The color model can be
17313 \begin_layout Labeling
17314 \labelwidthstring 00.00.0000
17315 cmyk: cyan, magenta, yellow, black
17318 \begin_layout Labeling
17319 \labelwidthstring 00.00.0000
17320 rgb: red, green blue
17323 \begin_layout Labeling
17324 \labelwidthstring 00.00.0000
17328 \begin_layout Standard
17329 and the color values are comma separated numbers between 0 and 1 describing
17330 the factor for the corresponding color of the color model.
17333 \begin_layout Standard
17335 \begin_inset space \thinspace{}
17339 \begin_inset space \space{}
17346 " in the preamble with
17349 \begin_layout Standard
17354 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17357 \begin_layout Standard
17365 \begin_layout Standard
17370 definecolor{lightgray}{gray}{0.8}
17373 \begin_layout Standard
17374 \begin_inset VSpace medskip
17380 \begin_layout Standard
17381 Lines are colored with the command
17384 \begin_layout Standard
17389 rowcolor{name of color}
17392 \begin_layout Standard
17393 and cells are colored with the command
17396 \begin_layout Standard
17401 cellcolor{name of color}
17404 \begin_layout Standard
17405 Both commands are inserted at the beginning of a cell as TeX-Code.
17408 \begin_layout Standard
17409 To color characters in the table, mark the cells and use the LyX menu
17411 Edit\SpecialChar \menuseparator
17413 \begin_inset space ~
17419 If a cell contains TeX-Code mark only the characters, otherwise the colored
17420 TeX-Code will cause LaTeX-errors.
17423 \begin_layout Standard
17424 \begin_inset Note Greyedout
17427 \begin_layout Plain Layout
17432 Not all DVI-viewers are able to display self-defined colors.
17440 \begin_layout Standard
17441 \begin_inset VSpace bigskip
17447 \begin_layout Standard
17449 \begin_inset space ~
17453 \begin_inset CommandInset ref
17455 reference "tab:Table-colored-using"
17459 do the following: The color of the first column should be
17467 \begin_layout Standard
17472 columncolor{darkgreen}
17477 \begin_layout Standard
17478 as LaTeX-argument for this column.
17479 The first row should be light blue, therefore the TeX-Code command
17482 \begin_layout Standard
17490 \begin_layout Standard
17491 is inserted to the first cell of this row.
17492 Note that this overwrites the column color for the first cell.
17493 The last cell of the last row is colored maroon by inserting the TeX-Code
17497 \begin_layout Standard
17505 \begin_layout Standard
17506 The characters could now be colored using the menu
17508 Edit\SpecialChar \menuseparator
17510 \begin_inset space ~
17518 \begin_layout Standard
17519 \begin_inset Float table
17525 \begin_layout Plain Layout
17526 \begin_inset Caption
17528 \begin_layout Plain Layout
17529 \begin_inset CommandInset label
17531 name "tab:Table-colored-using"
17535 Table colored using the package
17540 \begin_inset Argument
17543 \begin_layout Plain Layout
17544 Table with colortbl
17557 \begin_layout Plain Layout
17559 \begin_inset Tabular
17560 <lyxtabular version="3" rows="3" columns="3">
17561 <features tabularvalignment="middle">
17562 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17563 <column alignment="center" valignment="top" width="0">
17564 <column alignment="center" valignment="top" width="0">
17566 <cell alignment="center" valignment="top" usebox="none">
17569 \begin_layout Plain Layout
17573 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" usebox="none">
17592 \begin_layout Plain Layout
17600 <cell alignment="center" valignment="top" usebox="none">
17603 \begin_layout Plain Layout
17613 <cell alignment="center" valignment="top" usebox="none">
17616 \begin_layout Plain Layout
17624 <cell alignment="center" valignment="top" usebox="none">
17627 \begin_layout Plain Layout
17635 <cell alignment="center" valignment="top" usebox="none">
17638 \begin_layout Plain Layout
17648 <cell alignment="center" valignment="top" usebox="none">
17651 \begin_layout Plain Layout
17659 <cell alignment="center" valignment="top" usebox="none">
17662 \begin_layout Plain Layout
17670 <cell alignment="center" valignment="top" usebox="none">
17673 \begin_layout Plain Layout
17677 \begin_layout Plain Layout
17706 \begin_layout Standard
17710 \begin_layout Plain Layout
17720 \begin_inset Note Note
17723 \begin_layout Plain Layout
17724 The following will be displayed when the LaTeX-package
17736 \begin_layout Standard
17737 You need to install the package
17741 to see the content of this section in the output.
17744 \begin_layout Standard
17748 \begin_layout Plain Layout
17760 \begin_layout Subsection
17762 \begin_inset Index idx
17765 \begin_layout Plain Layout
17766 Table Color ! for Rows
17772 \begin_inset Index idx
17775 \begin_layout Plain Layout
17776 Color ! for Table Rows
17784 \begin_layout Standard
17785 In case every second table row needs to be colored there is an alternative
17786 to the method described in the previous section: One loads the package
17792 \begin_inset Index idx
17795 \begin_layout Plain Layout
17796 LaTeX-packages ! xcolor
17800 \begin_layout Plain Layout
17814 in the document preamble with the command
17817 \begin_layout Standard
17822 usepackage[table]{xcolor}
17825 \begin_layout Standard
17830 automatically loads also the package
17835 \begin_inset Index idx
17838 \begin_layout Plain Layout
17839 LaTeX-packages ! colortbl
17848 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17851 \begin_layout Standard
17855 \begin_layout Plain Layout
17865 \begin_inset Note Note
17868 \begin_layout Plain Layout
17869 The following section part will only be displayed when the LaTeX-package
17882 \begin_layout Standard
17883 The table rows are colored with the command
17886 \begin_layout Standard
17891 rowcolors[commands]{row number}{odd row color}{even row color}
17894 \begin_layout Standard
17895 that is either inserted in the document preamble or as TeX-Code before the
17896 first table to be colored.
17898 \begin_inset space ~
17901 number is the number of the first row which should be colored according
17902 to the odd row color.
17903 commands can be additional commands that are executed before every table
17905 So for example the command
17908 \begin_layout Standard
17913 rowcolors{1}{white}{lightgray}
17916 \begin_layout Standard
17917 leads to the coloring scheme of Table
17918 \begin_inset space ~
17922 \begin_inset CommandInset ref
17924 reference "tab:Table-rowcolors"
17932 \begin_layout Standard
17939 hline]{1}{lightgray}{cyan}
17942 \begin_layout Standard
17943 leads to the coloring scheme of Table
17944 \begin_inset space ~
17948 \begin_inset CommandInset ref
17950 reference "tab:Table-rowcolors-2"
17956 \begin_inset space ~
17960 \begin_inset space ~
17964 \begin_inset space ~
17968 \begin_inset space ~
17971 color are left empty, no color will be used so that the command
17974 \begin_layout Standard
17982 \begin_layout Standard
17983 deletes all colors.
17990 affects all tables following that command.
17993 \begin_layout Standard
17997 \begin_layout Plain Layout
18001 rowcolors{1}{white}{lightgray}
18009 \begin_layout Standard
18010 \begin_inset Float table
18016 \begin_layout Plain Layout
18017 \begin_inset Caption
18019 \begin_layout Plain Layout
18020 \begin_inset CommandInset label
18022 name "tab:Table-rowcolors"
18026 Table where every second row is colored light gray.
18034 \begin_layout Plain Layout
18036 \begin_inset Tabular
18037 <lyxtabular version="3" rows="4" columns="3">
18038 <features tabularvalignment="middle">
18039 <column alignment="center" valignment="top" width="0">
18040 <column alignment="center" valignment="top" width="0pt">
18041 <column alignment="center" valignment="top" width="0pt">
18043 <cell alignment="center" valignment="top" usebox="none">
18046 \begin_layout Plain Layout
18052 <cell alignment="center" valignment="top" usebox="none">
18055 \begin_layout Plain Layout
18061 <cell alignment="center" valignment="top" usebox="none">
18064 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" usebox="none">
18075 \begin_layout Plain Layout
18081 <cell alignment="center" valignment="top" usebox="none">
18084 \begin_layout Plain Layout
18090 <cell alignment="center" valignment="top" usebox="none">
18093 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18110 <cell alignment="center" valignment="top" usebox="none">
18113 \begin_layout Plain Layout
18119 <cell alignment="center" valignment="top" usebox="none">
18122 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" usebox="none">
18142 \begin_layout Plain Layout
18148 <cell alignment="center" valignment="top" usebox="none">
18151 \begin_layout Plain Layout
18170 \begin_layout Standard
18174 \begin_layout Plain Layout
18180 hline]{1}{lightgray}{cyan}
18188 \begin_layout Standard
18189 \begin_inset Float table
18195 \begin_layout Plain Layout
18196 \begin_inset Caption
18198 \begin_layout Plain Layout
18199 \begin_inset CommandInset label
18201 name "tab:Table-rowcolors-2"
18205 Table where every second row is colored cyan and at which there is a line
18214 \begin_layout Plain Layout
18216 \begin_inset Tabular
18217 <lyxtabular version="3" rows="4" columns="3">
18218 <features tabularvalignment="middle">
18219 <column alignment="center" valignment="top" width="0">
18220 <column alignment="center" valignment="top" width="0">
18221 <column alignment="center" valignment="top" width="0pt">
18223 <cell alignment="center" valignment="top" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" usebox="none">
18235 \begin_layout Plain Layout
18241 <cell alignment="center" valignment="top" usebox="none">
18244 \begin_layout Plain Layout
18252 <cell alignment="center" valignment="top" usebox="none">
18255 \begin_layout Plain Layout
18261 <cell alignment="center" valignment="top" usebox="none">
18264 \begin_layout Plain Layout
18270 <cell alignment="center" valignment="top" usebox="none">
18273 \begin_layout Plain Layout
18281 <cell alignment="center" valignment="top" usebox="none">
18284 \begin_layout Plain Layout
18290 <cell alignment="center" valignment="top" usebox="none">
18293 \begin_layout Plain Layout
18299 <cell alignment="center" valignment="top" usebox="none">
18302 \begin_layout Plain Layout
18310 <cell alignment="center" valignment="top" usebox="none">
18313 \begin_layout Plain Layout
18319 <cell alignment="center" valignment="top" usebox="none">
18322 \begin_layout Plain Layout
18328 <cell alignment="center" valignment="top" usebox="none">
18331 \begin_layout Plain Layout
18350 \begin_layout Standard
18354 \begin_layout Plain Layout
18364 \begin_inset Note Note
18367 \begin_layout Plain Layout
18368 turns off the row coloring
18376 \begin_layout Standard
18380 \begin_layout Plain Layout
18390 \begin_inset Note Note
18393 \begin_layout Plain Layout
18394 The following will be displayed when the LaTeX-package
18406 \begin_layout Standard
18407 You need to install the package
18411 to see the content of this section in the output.
18414 \begin_layout Standard
18418 \begin_layout Plain Layout
18430 \begin_layout Subsection
18432 \begin_inset Index idx
18435 \begin_layout Plain Layout
18436 Table Color ! for Lines
18442 \begin_inset Index idx
18445 \begin_layout Plain Layout
18446 Color ! for Table Lines
18454 \begin_layout Standard
18455 As described in section
18456 \begin_inset space ~
18460 \begin_inset CommandInset ref
18462 reference "sub:Line-Thickness"
18466 , the line thickness for all lines in a table can be adjusted with the length
18475 \begin_inset space \thinspace{}
18478 pt for all tables of this section.
18482 \begin_layout Plain Layout
18488 arrayrulewidth}{1.5pt}
18496 \begin_layout Standard
18497 To color vertical lines for example with green, create the following column
18498 format in the document preamble, according to the description in section
18499 \begin_inset space ~
18503 \begin_inset CommandInset ref
18505 reference "sub:Customized-Format"
18512 \begin_layout Standard
18517 newcolumntype{W}{!{
18524 \begin_layout Standard
18526 \begin_inset space ~
18530 \begin_inset CommandInset ref
18532 reference "tab:Table-with-vertical-colored"
18540 was used for the last column and
18544 for the other columns.
18547 \begin_layout Standard
18548 If you want to have several colors, define more column formats.
18551 \begin_layout Standard
18552 \begin_inset Float table
18558 \begin_layout Plain Layout
18559 \begin_inset Caption
18561 \begin_layout Plain Layout
18562 \begin_inset CommandInset label
18564 name "tab:Table-with-vertical-colored"
18568 Table with colored vertical lines
18576 \begin_layout Plain Layout
18578 \begin_inset Tabular
18579 <lyxtabular version="3" rows="3" columns="3">
18580 <features tabularvalignment="middle">
18581 <column alignment="center" valignment="top" width="0" special="Wc">
18582 <column alignment="center" valignment="top" width="0" special="Wc">
18583 <column alignment="center" valignment="top" width="0" special="WcW">
18585 <cell alignment="center" valignment="top" topline="true" usebox="none">
18588 \begin_layout Plain Layout
18594 <cell alignment="center" valignment="top" topline="true" usebox="none">
18597 \begin_layout Plain Layout
18603 <cell alignment="center" valignment="top" topline="true" usebox="none">
18606 \begin_layout Plain Layout
18614 <cell alignment="center" valignment="top" topline="true" usebox="none">
18617 \begin_layout Plain Layout
18623 <cell alignment="center" valignment="top" topline="true" usebox="none">
18626 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" topline="true" usebox="none">
18635 \begin_layout Plain Layout
18643 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18646 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18664 \begin_layout Plain Layout
18683 \begin_layout Standard
18684 \begin_inset VSpace bigskip
18687 To color horizontal lines for example with red, as in Table
18688 \begin_inset space ~
18692 \begin_inset CommandInset ref
18694 reference "tab:Table-with-horizontal-colored"
18698 , insert these commands in TeX-Code before the table or table float:
18701 \begin_layout Standard
18711 \begin_inset Newline newline
18719 \begin_inset Newline newline
18723 \begin_inset Phantom HPhantom
18726 \begin_layout Plain Layout
18729 \begin_inset space ~
18739 arrayrulecolor{red}
18743 arrayrulecolor{black}}
18746 \begin_layout Standard
18750 \begin_layout Plain Layout
18761 \begin_layout Plain Layout
18770 \begin_layout Plain Layout
18774 arrayrulecolor{red}
18778 arrayrulecolor{black}}
18784 \begin_inset Float table
18790 \begin_layout Plain Layout
18791 \begin_inset Caption
18793 \begin_layout Plain Layout
18794 \begin_inset CommandInset label
18796 name "tab:Table-with-horizontal-colored"
18800 Table with colored horizontal lines
18808 \begin_layout Plain Layout
18810 \begin_inset Tabular
18811 <lyxtabular version="3" rows="3" columns="3">
18812 <features tabularvalignment="middle">
18813 <column alignment="center" valignment="top" width="0">
18814 <column alignment="center" valignment="top" width="0">
18815 <column alignment="center" valignment="top" width="0">
18817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18820 \begin_layout Plain Layout
18826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18829 \begin_layout Plain Layout
18835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18838 \begin_layout Plain Layout
18846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18849 \begin_layout Plain Layout
18855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18858 \begin_layout Plain Layout
18864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18867 \begin_layout Plain Layout
18875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18878 \begin_layout Plain Layout
18884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18887 \begin_layout Plain Layout
18893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18896 \begin_layout Plain Layout
18915 \begin_layout Standard
18916 To return to the default line color black, insert this command in TeX-Code
18917 after the table or table float:
18920 \begin_layout Standard
18932 \begin_layout Standard
18934 \begin_inset space ~
18938 \begin_inset CommandInset ref
18940 reference "tab:Table-with-colored"
18944 is an example with colored vertical and horizontal lines.
18947 \begin_layout Standard
18948 \begin_inset Float table
18954 \begin_layout Plain Layout
18955 \begin_inset Caption
18957 \begin_layout Plain Layout
18958 \begin_inset CommandInset label
18960 name "tab:Table-with-colored"
18964 Table with colored lines
18972 \begin_layout Plain Layout
18974 \begin_inset Tabular
18975 <lyxtabular version="3" rows="3" columns="3">
18976 <features tabularvalignment="middle">
18977 <column alignment="center" valignment="top" width="0" special="Wc">
18978 <column alignment="center" valignment="top" width="0" special="Wc">
18979 <column alignment="center" valignment="top" width="0" special="WcW">
18981 <cell alignment="center" valignment="top" topline="true" usebox="none">
18984 \begin_layout Plain Layout
18990 <cell alignment="center" valignment="top" topline="true" usebox="none">
18993 \begin_layout Plain Layout
18999 <cell alignment="center" valignment="top" topline="true" usebox="none">
19002 \begin_layout Plain Layout
19010 <cell alignment="center" valignment="top" topline="true" usebox="none">
19013 \begin_layout Plain Layout
19019 <cell alignment="center" valignment="top" topline="true" usebox="none">
19022 \begin_layout Plain Layout
19028 <cell alignment="center" valignment="top" topline="true" usebox="none">
19031 \begin_layout Plain Layout
19038 <row topspace="default">
19039 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19042 \begin_layout Plain Layout
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19051 \begin_layout Plain Layout
19057 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19060 \begin_layout Plain Layout
19079 \begin_layout Standard
19083 \begin_layout Plain Layout
19099 \begin_layout Standard
19103 \begin_layout Plain Layout
19109 arrayrulewidth}{0.4pt}
19117 \begin_layout Section
19118 Table Width Calculation
19119 \begin_inset CommandInset label
19121 name "sec:Table-Width-Calculation"
19128 \begin_layout Standard
19129 For wide tables it is sometimes difficult to assure that the table does
19130 not protrude over the page margin.
19131 Setting a fixed width for every column of the table is the solution, but
19132 what amount of space is needed for each column?
19135 \begin_layout Standard
19137 \begin_inset Formula $W_{\mathrm{table}}$
19140 can be calculated: Every column has the width of the specified column width
19142 \begin_inset Formula $W_{\mathrm{column}}$
19145 (that the content of the column can consume) plus two times the separation
19146 between the column content and the column border (LaTeX length
19153 \begin_inset space \thinspace{}
19156 pt) plus the width of a border line (LaTeX length
19163 \begin_inset space \thinspace{}
19167 \begin_inset Formula $n$
19171 \begin_inset space ~
19174 columns have the same width, the table width is
19175 \begin_inset Formula
19177 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19185 \begin_layout Standard
19186 The available width for a table is the space between the page margins or
19187 the width of a text column (for a two-column document) (LaTeX length
19194 If all table columns should have the same width and
19195 \begin_inset Formula $W_{\mathrm{table}}$
19199 \begin_inset space \thinspace{}
19205 \begin_inset Formula $W_{\mathrm{column}}$
19208 can easily be calculated.
19211 \begin_layout Standard
19212 To be able to perform calculations you need to load the LaTeX-package
19217 \begin_inset Index idx
19220 \begin_layout Plain Layout
19221 LaTeX-packages ! calc
19226 in the document preamble.
19227 To set the width in the table dialog you have to use the field
19232 The command scheme for this field is the same that is explained in section
19233 \begin_inset space ~
19237 \begin_inset CommandInset ref
19239 reference "sub:Multicolumn-Calculations"
19245 \begin_inset space \thinspace{}
19248 columns with an uniform width and centered text, enter there for each column
19252 \begin_layout Standard
19259 columnwidth-62.4pt)/5}
19262 \begin_layout Standard
19264 \begin_inset space \thinspace{}
19267 columns where 2 should have 0.75
19268 \begin_inset space ~
19271 times the width than the 3 others, the calculation is
19272 \begin_inset Formula
19274 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19275 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19276 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19277 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19285 \begin_layout Standard
19286 In the table therefore the command
19289 \begin_layout Standard
19296 columnwidth-62.4pt)/
19301 \begin_layout Standard
19302 is used for the wider columns and
19305 \begin_layout Standard
19312 columnwidth-62.4pt)/
19319 \begin_layout Standard
19320 for the smaller ones:
19323 \begin_layout Standard
19324 \begin_inset Tabular
19325 <lyxtabular version="3" rows="2" columns="5">
19326 <features tabularvalignment="middle">
19327 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19328 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19329 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19330 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19331 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19336 \begin_layout Plain Layout
19342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19345 \begin_layout Plain Layout
19351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19354 \begin_layout Plain Layout
19360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19363 \begin_layout Plain Layout
19369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19372 \begin_layout Plain Layout
19380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19383 \begin_layout Plain Layout
19384 111111 1111111 111111 111111111 11111 11111 1111
19389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19392 \begin_layout Plain Layout
19398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19401 \begin_layout Plain Layout
19402 2222 22222 222222 222222222 2222222 22 22222
19407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19410 \begin_layout Plain Layout
19416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19419 \begin_layout Plain Layout
19420 333333 333333 333333 33333 3333333 333
19433 \begin_layout Section
19434 Table Customization
19435 \begin_inset Index idx
19438 \begin_layout Plain Layout
19439 Table Customization
19445 \begin_inset Index idx
19448 \begin_layout Plain Layout
19449 Table ! Customization
19457 \begin_layout Subsection
19459 \begin_inset CommandInset label
19461 name "sub:Row-Spacing"
19466 \begin_inset Index idx
19469 \begin_layout Plain Layout
19470 Table Customization ! Row Spacing
19478 \begin_layout Standard
19479 You can add vertical space to table rows in the
19483 tab of the table dialog.
19484 You find there three possibilities:
19487 \begin_layout Description
19489 \begin_inset space ~
19493 \begin_inset space ~
19496 row will add space above the characters of the table row.
19497 If the table is a formal table
19501 \begin_layout Plain Layout
19502 Formal tables are explained in section
19503 \begin_inset space ~
19507 \begin_inset CommandInset ref
19509 reference "sec:Formal-Tables"
19518 LyX will insert as default 0.5
19519 \begin_inset space \thinspace{}
19523 For normal tables the inserted space will unfortunately destroy the vertical
19524 table lines as in the following table:
19525 \begin_inset VSpace medskip
19529 \begin_inset Newline newline
19533 \begin_inset space \hspace*{}
19538 \begin_inset space \hfill{}
19542 \begin_inset Tabular
19543 <lyxtabular version="3" rows="3" columns="1">
19544 <features tabularvalignment="middle">
19545 <column alignment="center" valignment="top" width="0">
19547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19550 \begin_layout Plain Layout
19557 <row topspace="3mm">
19558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19561 \begin_layout Plain Layout
19563 \begin_inset space \thinspace{}
19566 mm space top of row
19573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19576 \begin_layout Plain Layout
19588 \begin_inset space \hfill{}
19592 \begin_inset space \hspace*{}
19597 \begin_inset VSpace medskip
19601 \begin_inset Newline newline
19604 So inserting space in the top of row for normal tables is only useful when
19605 you don't have vertical lines.
19608 \begin_layout Description
19610 \begin_inset space ~
19614 \begin_inset space ~
19617 row will add space below the characters of the table row.
19618 If the table is a formal table LyX will insert as default 0.5
19619 \begin_inset space \thinspace{}
19622 em space, for normal tables the default size is 2
19623 \begin_inset space \thinspace{}
19629 \begin_layout Description
19631 \begin_inset space ~
19634 rows adds space between the current and the following row.
19635 If the table is a formal table LyX will insert as default 0.5
19636 \begin_inset space \thinspace{}
19640 For normal tables the inserted space will unfortunately destroy the vertical
19641 table lines as in the following table:
19642 \begin_inset VSpace medskip
19646 \begin_inset Newline newline
19650 \begin_inset space \hspace*{}
19655 \begin_inset space \hfill{}
19659 \begin_inset Tabular
19660 <lyxtabular version="3" rows="3" columns="1">
19661 <features tabularvalignment="middle">
19662 <column alignment="center" valignment="top" width="0">
19664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19667 \begin_layout Plain Layout
19674 <row interlinespace="3mm">
19675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19678 \begin_layout Plain Layout
19679 \begin_inset Formula $\downarrow$
19683 \begin_inset space \thinspace{}
19686 mm space between row
19687 \begin_inset Formula $\downarrow$
19697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19700 \begin_layout Plain Layout
19701 \begin_inset Formula $\uparrow$
19705 \begin_inset space \thinspace{}
19708 mm space between row
19709 \begin_inset Formula $\uparrow$
19723 \begin_inset space \hfill{}
19727 \begin_inset space \hspace*{}
19732 \begin_inset VSpace medskip
19736 \begin_inset Newline newline
19739 So inserting space between rows for normal tables is only useful when you
19740 don't have vertical lines.
19743 \begin_layout Standard
19744 \begin_inset VSpace bigskip
19747 When you want to add extra height to all cells of all tables, you can do
19748 this with the following preamble lines:
19751 \begin_layout Standard
19756 @ifundefined{extrarowheight}
19757 \begin_inset Newline newline
19761 \begin_inset Phantom HPhantom
19764 \begin_layout Plain Layout
19767 \begin_inset space ~
19777 usepackage{array}}{}
19778 \begin_inset Newline newline
19785 extrarowheight}{height}
19788 \begin_layout Standard
19789 But this has the disadvantage that the cell texts are no longer exactly
19790 vertically centered.
19795 will be loaded automatically by LyX when you use self defined table formats.
19796 To avoid that it being loaded twice the command
19802 is used in the above command.)
19805 \begin_layout Standard
19806 If you are using font sizes larger than the normal size, the table borders
19807 are often too close to the letters.
19808 This can be corrected by inserting the command
19814 in TeX-Code at the beginning of a table row.
19816 \begin_inset space ~
19820 \begin_inset CommandInset ref
19822 reference "tab:Vertical-alignment-of"
19826 illustrates the effect.
19829 \begin_layout Standard
19831 \begin_inset Float table
19837 \begin_layout Plain Layout
19838 \begin_inset Caption
19840 \begin_layout Plain Layout
19841 \begin_inset CommandInset label
19843 name "tab:Vertical-alignment-of"
19847 Vertical alignment of text with large font sizes.
19855 \begin_layout Plain Layout
19856 \begin_inset space \hfill{}
19860 \begin_inset Float table
19865 \begin_layout Plain Layout
19866 \begin_inset Caption
19868 \begin_layout Plain Layout
19877 \begin_layout Plain Layout
19880 \begin_inset Tabular
19881 <lyxtabular version="3" rows="6" columns="1">
19882 <features tabularvalignment="middle">
19883 <column alignment="left" valignment="top" width="0">
19885 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19888 \begin_layout Plain Layout
19896 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19899 \begin_layout Plain Layout
19909 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19912 \begin_layout Plain Layout
19922 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19925 \begin_layout Plain Layout
19935 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19938 \begin_layout Plain Layout
19948 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19951 \begin_layout Plain Layout
19970 \begin_inset space \hfill{}
19974 \begin_inset Float table
19979 \begin_layout Plain Layout
19980 \begin_inset Caption
19982 \begin_layout Plain Layout
19983 Table using the command
19997 \begin_layout Plain Layout
20000 \begin_inset Tabular
20001 <lyxtabular version="3" rows="6" columns="1">
20002 <features tabularvalignment="middle">
20003 <column alignment="left" valignment="top" width="0">
20005 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20008 \begin_layout Plain Layout
20016 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20019 \begin_layout Plain Layout
20025 \begin_layout Plain Layout
20041 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20044 \begin_layout Plain Layout
20050 \begin_layout Plain Layout
20066 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20069 \begin_layout Plain Layout
20075 \begin_layout Plain Layout
20091 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20094 \begin_layout Plain Layout
20100 \begin_layout Plain Layout
20116 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20119 \begin_layout Plain Layout
20125 \begin_layout Plain Layout
20152 \begin_inset space \hfill{}
20163 \begin_layout Subsection
20164 Special Cell Alignment
20165 \begin_inset CommandInset label
20167 name "sub:Special-Cell-Alignment"
20172 \begin_inset Index idx
20175 \begin_layout Plain Layout
20176 Table Customization ! Special Cell Alignment
20184 \begin_layout Standard
20185 Sometimes it looks better when the cell entries of a column are aligned
20186 with a special character, e.
20187 \begin_inset space \thinspace{}
20191 \begin_inset space \space{}
20194 with the decimal separator as in Table
20195 \begin_inset space ~
20199 \begin_inset CommandInset ref
20201 reference "tab:Table-cells-align"
20206 This alignment is achieved by setting the cursor into the column and then
20207 either pressing the toolbar button
20208 \begin_inset Graphics
20209 filename ../images/tabular-feature_align-decimal.png
20211 scaleBeforeRotation
20215 or setting the alignment in the table settings to
20218 \begin_inset space ~
20222 \begin_inset space ~
20228 The alignment character can be a character of your choice and is specified
20229 in the table settings.
20232 \begin_layout Standard
20233 \begin_inset Float table
20239 \begin_layout Plain Layout
20240 \begin_inset Caption
20242 \begin_layout Plain Layout
20243 \begin_inset CommandInset label
20245 name "tab:Table-cells-align"
20249 Table cells of a column aligned with the decimal separator.
20257 \begin_layout Plain Layout
20259 \begin_inset Tabular
20260 <lyxtabular version="3" rows="4" columns="1">
20261 <features booktabs="true" tabularvalignment="middle">
20262 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20267 \begin_layout Plain Layout
20275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20278 \begin_layout Plain Layout
20286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20289 \begin_layout Plain Layout
20297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20300 \begin_layout Plain Layout
20319 \begin_layout Standard
20320 \begin_inset Float table
20326 \begin_layout Plain Layout
20327 \begin_inset Caption
20329 \begin_layout Plain Layout
20330 \begin_inset CommandInset label
20332 name "tab:Table-align-operator"
20336 Table cells of a column aligned with the operators.
20344 \begin_layout Plain Layout
20346 \begin_inset Tabular
20347 <lyxtabular version="3" rows="4" columns="2">
20348 <features booktabs="true" tabularvalignment="middle">
20349 <column alignment="right" valignment="top" width="0pt">
20350 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20352 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20355 \begin_layout Plain Layout
20361 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20364 \begin_layout Plain Layout
20372 <cell alignment="center" valignment="top" usebox="none">
20375 \begin_layout Plain Layout
20376 \begin_inset Formula $12\,+$
20384 <cell alignment="center" valignment="top" usebox="none">
20387 \begin_layout Plain Layout
20388 \begin_inset Formula $\,6$
20398 <cell alignment="center" valignment="top" usebox="none">
20401 \begin_layout Plain Layout
20402 \begin_inset Formula $0\,-$
20410 <cell alignment="center" valignment="top" usebox="none">
20413 \begin_layout Plain Layout
20414 \begin_inset Formula $\,68$
20424 <cell alignment="center" valignment="top" usebox="none">
20427 \begin_layout Plain Layout
20428 \begin_inset Formula $-123\,/$
20436 <cell alignment="center" valignment="top" usebox="none">
20439 \begin_layout Plain Layout
20440 \begin_inset Formula $\,0$
20461 \begin_layout Standard
20462 For alignments at characters in formulas this method does not work because
20463 the field to specify the alignment character does not allow formulas.
20464 In this case one need to use the method from Table
20465 \begin_inset space ~
20469 \begin_inset CommandInset ref
20471 reference "tab:Table-align-operator"
20476 This table was created with a 4×2 table.
20477 The heading is a centered multicolumn.
20478 The first column is right-aligned and contains the first part including
20480 The second column is left aligned and contains the rest.
20481 A small space was added at the beginning of each cell of the second column
20482 to get the space that is usually around operators.
20483 To omit the space that is normally between two table columns, the following
20484 LaTeX-argument was used for the second column:
20487 \begin_layout Standard
20493 \begin_layout Standard
20495 \begin_inset space ~
20499 \begin_inset CommandInset ref
20501 reference "tab:Several-table-cell"
20505 shows some example alignments.
20506 For the alignment with the relation sign, a small space was added like
20507 for the second column of Table
20508 \begin_inset space ~
20512 \begin_inset CommandInset ref
20514 reference "tab:Table-align-operator"
20521 \begin_layout Standard
20522 \begin_inset Float table
20528 \begin_layout Plain Layout
20529 \begin_inset Caption
20531 \begin_layout Plain Layout
20532 \begin_inset CommandInset label
20534 name "tab:Several-table-cell"
20538 Several table cell alignments.
20546 \begin_layout Plain Layout
20548 \begin_inset Tabular
20549 <lyxtabular version="3" rows="4" columns="6">
20550 <features tabularvalignment="middle">
20551 <column alignment="right" valignment="top" width="0">
20552 <column alignment="left" valignment="top" width="0" special="@{}l">
20553 <column alignment="right" valignment="top" width="0">
20554 <column alignment="left" valignment="top" width="0" special="@{}l">
20555 <column alignment="right" valignment="top" width="0">
20556 <column alignment="left" valignment="top" width="0" special="@{}l">
20558 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20561 \begin_layout Plain Layout
20567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20570 \begin_layout Plain Layout
20576 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20579 \begin_layout Plain Layout
20585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20588 \begin_layout Plain Layout
20594 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20597 \begin_layout Plain Layout
20603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20606 \begin_layout Plain Layout
20614 <cell alignment="center" valignment="top" usebox="none">
20617 \begin_layout Plain Layout
20623 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20626 \begin_layout Plain Layout
20628 \begin_inset space \thinspace{}
20636 <cell alignment="center" valignment="top" usebox="none">
20639 \begin_layout Plain Layout
20640 \begin_inset Formula $10\cdot$
20648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20651 \begin_layout Plain Layout
20652 \begin_inset Formula $10^{\mbox{-}17}$
20660 <cell alignment="center" valignment="top" usebox="none">
20663 \begin_layout Plain Layout
20664 \begin_inset Formula $\Gamma(t)\propto$
20672 <cell alignment="center" valignment="top" usebox="none">
20675 \begin_layout Plain Layout
20676 \begin_inset Formula $\:\Upsilon(t)$
20686 <cell alignment="center" valignment="top" usebox="none">
20689 \begin_layout Plain Layout
20695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20698 \begin_layout Plain Layout
20700 \begin_inset space \thinspace{}
20708 <cell alignment="center" valignment="top" usebox="none">
20711 \begin_layout Plain Layout
20712 \begin_inset Formula $5.78\cdot$
20720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20723 \begin_layout Plain Layout
20724 \begin_inset Formula $10^{7}$
20732 <cell alignment="center" valignment="top" usebox="none">
20735 \begin_layout Plain Layout
20736 \begin_inset Formula $A\ne$
20744 <cell alignment="center" valignment="top" usebox="none">
20747 \begin_layout Plain Layout
20748 \begin_inset Formula $\: B_{\mathrm{red}}$
20758 <cell alignment="center" valignment="top" usebox="none">
20761 \begin_layout Plain Layout
20767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20770 \begin_layout Plain Layout
20772 \begin_inset space \thinspace{}
20780 <cell alignment="center" valignment="top" usebox="none">
20783 \begin_layout Plain Layout
20785 \begin_inset Formula $33.5\cdot$
20793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20796 \begin_layout Plain Layout
20797 \begin_inset Formula $10^{4}$
20805 <cell alignment="center" valignment="top" usebox="none">
20808 \begin_layout Plain Layout
20809 \begin_inset Formula $\sin(\alpha)\ge$
20817 <cell alignment="center" valignment="top" usebox="none">
20820 \begin_layout Plain Layout
20821 \begin_inset Formula $\:\sin(\beta)$
20842 \begin_layout Subsection
20843 Customized Cell/Column Format
20844 \begin_inset CommandInset label
20846 name "sub:Customized-Format"
20851 \begin_inset Index idx
20854 \begin_layout Plain Layout
20855 Table Customization ! Cell/Column Format
20863 \begin_layout Standard
20864 Calculating the required width for normal columns as described in section
20865 \begin_inset space ~
20869 \begin_inset CommandInset ref
20871 reference "sec:Table-Width-Calculation"
20875 or for spanned columns as described in section
20876 \begin_inset space ~
20880 \begin_inset CommandInset ref
20882 reference "sub:Multicolumn-Calculations"
20886 is very annoying if you have several tables where a calculation is necessary.
20887 To make life easier, you can define a cell/column format in the preamble,
20888 that can be used in all tables of the document.
20889 The format is defined with the command
20892 \begin_layout Standard
20897 newcolumntype{name of format}[number of arguments]{commands}
20900 \begin_layout Standard
20901 The format name may only consist of one letter.
20926 are predefined and cannot be used.
20927 But all letters are allowed as capitals.
20930 \begin_layout Standard
20931 \begin_inset VSpace medskip
20937 \begin_layout Standard
20938 For vertically and horizontally centered multicolumn cells with a fixed
20939 width you can define the cell format
20942 \begin_layout Standard
20947 newcolumntype{M}[1]{>{
20954 \begin_layout Standard
20961 avoids the problem of hyphenating the first word, as described in section
20962 \begin_inset space ~
20966 \begin_inset CommandInset ref
20968 reference "sub:Multiple-Lines-in"
20973 Now you can simply enter
20976 \begin_layout Standard
20982 \begin_layout Standard
20987 in the table dialog to create a multicolumn.
20990 \begin_layout Standard
20991 \begin_inset VSpace bigskip
20997 \begin_layout Standard
20998 For cells spanned by a multicolumn cell, you can define the format
21001 \begin_layout Standard
21006 newcolumntype{S}[2]{>{
21011 \begin_inset Newline newline
21015 \begin_inset Phantom HPhantom
21018 \begin_layout Plain Layout
21032 arrayrulewidth)*(1-#2))/#2}}
21035 \begin_layout Standard
21036 This format uses equation
21037 \begin_inset CommandInset ref
21043 to calculate the required width so that each spanned cell has the same
21047 \begin_layout Standard
21051 \begin_layout Standard
21054 S{width of multicolumn cell}{number of spanned columns}
21057 \begin_layout Standard
21058 as LaTeX-argument of the column.
21061 \begin_layout Standard
21062 \begin_inset VSpace bigskip
21068 \begin_layout Standard
21069 For colored columns, you can define
21072 \begin_layout Standard
21077 newcolumntype{K}[1]{>{
21084 \begin_layout Standard
21086 \begin_inset Quotes eld
21090 \begin_inset Quotes erd
21093 at the end creates a column with a flexible width whose text is horizontally
21098 \begin_layout Standard
21104 \begin_layout Standard
21108 \begin_layout Standard
21109 \begin_inset VSpace bigskip
21115 \begin_layout Standard
21117 \begin_inset space ~
21121 \begin_inset CommandInset ref
21123 reference "tab:Table-using-user-defined"
21127 use the LaTeX-arguments
21130 \begin_layout Standard
21136 \begin_layout Standard
21137 for the first column and the multicolumn,
21140 \begin_layout Standard
21146 \begin_layout Standard
21147 for the last column, and
21150 \begin_layout Standard
21156 \begin_layout Standard
21157 for the cells in the second column.
21160 \begin_layout Standard
21161 \begin_inset Float table
21167 \begin_layout Plain Layout
21168 \begin_inset Caption
21170 \begin_layout Plain Layout
21171 \begin_inset CommandInset label
21173 name "tab:Table-using-user-defined"
21177 Table using user-defined table formats
21185 \begin_layout Plain Layout
21187 \begin_inset Tabular
21188 <lyxtabular version="3" rows="3" columns="4">
21189 <features tabularvalignment="middle">
21190 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21191 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
21192 <column alignment="center" valignment="middle" width="0">
21193 <column alignment="center" valignment="middle" width="0" special="K{red}">
21195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21198 \begin_layout Plain Layout
21199 verylongtablecellword
21204 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21207 \begin_layout Plain Layout
21208 multiple lines multicolumn
21213 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21216 \begin_layout Plain Layout
21222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21225 \begin_layout Plain Layout
21233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21236 \begin_layout Plain Layout
21242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21245 \begin_layout Plain Layout
21251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21254 \begin_layout Plain Layout
21260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21263 \begin_layout Plain Layout
21271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21274 \begin_layout Plain Layout
21280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21283 \begin_layout Plain Layout
21289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21292 \begin_layout Plain Layout
21298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21301 \begin_layout Plain Layout
21320 \begin_layout Subsection
21322 \begin_inset CommandInset label
21324 name "sub:Line-Thickness"
21329 \begin_inset Index idx
21332 \begin_layout Plain Layout
21333 Table Customization ! Line Thickness
21341 \begin_layout Standard
21342 The line thickness for all lines in a table can be adjusted with the length
21350 To set for example a line thickness of 1.5
21351 \begin_inset space \thinspace{}
21355 \begin_inset space ~
21359 \begin_inset CommandInset ref
21361 reference "tab:Table-with-1.5"
21365 , insert the command
21368 \begin_layout Standard
21375 arrayrulewidth}{1.5pt}
21378 \begin_layout Standard
21379 in TeX-Code before the table or table float.
21380 The changed thickness is valid for all subsequent tables.
21381 To use the default value again, set
21388 \begin_inset space \thinspace{}
21391 pt in TeX-Code after the table or table float.
21394 \begin_layout Standard
21398 \begin_layout Plain Layout
21404 arrayrulewidth}{1.5pt}
21410 \begin_inset Float table
21415 \begin_layout Plain Layout
21416 \begin_inset Caption
21418 \begin_layout Plain Layout
21419 \begin_inset CommandInset label
21421 name "tab:Table-with-1.5"
21426 \begin_inset space \thinspace{}
21437 \begin_layout Plain Layout
21439 \begin_inset Tabular
21440 <lyxtabular version="3" rows="3" columns="3">
21441 <features tabularvalignment="middle">
21442 <column alignment="center" valignment="top" width="0">
21443 <column alignment="center" valignment="top" width="0">
21444 <column alignment="center" valignment="top" width="0">
21446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21449 \begin_layout Plain Layout
21455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21458 \begin_layout Plain Layout
21464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21467 \begin_layout Plain Layout
21475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21478 \begin_layout Plain Layout
21484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21487 \begin_layout Plain Layout
21493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21496 \begin_layout Plain Layout
21504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21507 \begin_layout Plain Layout
21513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21516 \begin_layout Plain Layout
21522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21525 \begin_layout Plain Layout
21545 \begin_layout Plain Layout
21551 arrayrulewidth}{0.4pt}
21559 \begin_layout Standard
21560 \begin_inset VSpace bigskip
21563 To set the line thickness to 1.5
21564 \begin_inset space \thinspace{}
21567 pt only for horizontal lines, as in Table
21568 \begin_inset space ~
21572 \begin_inset CommandInset ref
21574 reference "tab:Table-with-horizontal"
21578 , insert these commands in TeX-Code before the table or table float:
21581 \begin_layout Standard
21591 \begin_inset Newline newline
21599 \begin_inset Newline newline
21608 arrayrulewidth 1.5pt}
21609 \begin_inset Newline newline
21620 arrayrulewidth 0.4pt}}
21623 \begin_layout Standard
21624 To return to the default line thickness, insert this command in TeX-Code
21625 after the table or table float:
21628 \begin_layout Standard
21640 \begin_layout Standard
21644 \begin_layout Plain Layout
21655 \begin_layout Plain Layout
21664 \begin_layout Plain Layout
21672 arrayrulewidth 1.5pt}
21675 \begin_layout Plain Layout
21685 arrayrulewidth 0.4pt}}
21691 \begin_inset Float table
21696 \begin_layout Plain Layout
21697 \begin_inset Caption
21699 \begin_layout Plain Layout
21700 \begin_inset CommandInset label
21702 name "tab:Table-with-horizontal"
21707 \begin_inset space \thinspace{}
21710 pt thick horizontal lines
21718 \begin_layout Plain Layout
21720 \begin_inset Tabular
21721 <lyxtabular version="3" rows="3" columns="3">
21722 <features tabularvalignment="middle">
21723 <column alignment="center" valignment="top" width="0">
21724 <column alignment="center" valignment="top" width="0">
21725 <column alignment="center" valignment="top" width="0">
21727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21730 \begin_layout Plain Layout
21736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21739 \begin_layout Plain Layout
21745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21748 \begin_layout Plain Layout
21756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21759 \begin_layout Plain Layout
21765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21768 \begin_layout Plain Layout
21774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21777 \begin_layout Plain Layout
21785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21788 \begin_layout Plain Layout
21794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21797 \begin_layout Plain Layout
21803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21806 \begin_layout Plain Layout
21826 \begin_layout Plain Layout
21842 \begin_layout Standard
21843 \begin_inset VSpace bigskip
21846 To set the line thickness to 1.5
21847 \begin_inset space \thinspace{}
21850 pt only for vertical lines, create the following column format in the document
21851 preamble, according to the description in section
21852 \begin_inset space ~
21856 \begin_inset CommandInset ref
21858 reference "sub:Customized-Format"
21865 \begin_layout Standard
21870 newcolumntype{V}{!{
21872 vrule width 1.5pt}}
21875 \begin_layout Standard
21877 \begin_inset space ~
21881 \begin_inset CommandInset ref
21883 reference "tab:Table-with-vertical"
21890 \begin_layout Standard
21896 \begin_layout Standard
21897 was used for the last column and
21900 \begin_layout Standard
21906 \begin_layout Standard
21907 for the other columns.
21910 \begin_layout Standard
21911 \begin_inset Float table
21916 \begin_layout Plain Layout
21917 \begin_inset Caption
21919 \begin_layout Plain Layout
21920 \begin_inset CommandInset label
21922 name "tab:Table-with-vertical"
21927 \begin_inset space \thinspace{}
21930 pt thick vertical lines
21938 \begin_layout Plain Layout
21940 \begin_inset Tabular
21941 <lyxtabular version="3" rows="3" columns="3">
21942 <features tabularvalignment="middle">
21943 <column alignment="center" valignment="top" width="0" special="Vc">
21944 <column alignment="center" valignment="top" width="0" special="Vc">
21945 <column alignment="center" valignment="top" width="0" special="VcV">
21947 <cell alignment="center" valignment="top" topline="true" usebox="none">
21950 \begin_layout Plain Layout
21956 <cell alignment="center" valignment="top" topline="true" usebox="none">
21959 \begin_layout Plain Layout
21965 <cell alignment="center" valignment="top" topline="true" usebox="none">
21968 \begin_layout Plain Layout
21976 <cell alignment="center" valignment="top" topline="true" usebox="none">
21979 \begin_layout Plain Layout
21985 <cell alignment="center" valignment="top" topline="true" usebox="none">
21988 \begin_layout Plain Layout
21994 <cell alignment="center" valignment="top" topline="true" usebox="none">
21997 \begin_layout Plain Layout
22005 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22008 \begin_layout Plain Layout
22014 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22017 \begin_layout Plain Layout
22023 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22026 \begin_layout Plain Layout
22045 \begin_layout Subsection
22047 \begin_inset Index idx
22050 \begin_layout Plain Layout
22051 Table Customization ! Dashed Lines
22059 \begin_layout Standard
22063 \begin_layout Plain Layout
22073 \begin_inset Note Note
22076 \begin_layout Plain Layout
22077 The following section will only be displayed when the LaTeX-package
22089 \begin_layout Standard
22090 \begin_inset Float table
22096 \begin_layout Plain Layout
22097 \begin_inset Caption
22099 \begin_layout Plain Layout
22100 \begin_inset CommandInset label
22102 name "tab:Table-with-dashed"
22106 Table with dashed lines
22114 \begin_layout Plain Layout
22116 \begin_inset Tabular
22117 <lyxtabular version="3" rows="5" columns="5">
22118 <features tabularvalignment="middle">
22119 <column alignment="center" valignment="top" width="0">
22120 <column alignment="center" valignment="top" width="0">
22121 <column alignment="center" valignment="top" width="0" special=":c">
22122 <column alignment="center" valignment="top" width="0">
22123 <column alignment="center" valignment="top" width="0">
22125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22128 \begin_layout Plain Layout
22134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22137 \begin_layout Plain Layout
22143 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22146 \begin_layout Plain Layout
22152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22155 \begin_layout Plain Layout
22161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22164 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22202 \begin_layout Plain Layout
22208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22211 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22222 \begin_layout Plain Layout
22226 \begin_layout Plain Layout
22240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22243 \begin_layout Plain Layout
22249 <cell alignment="center" valignment="top" usebox="none">
22252 \begin_layout Plain Layout
22258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22261 \begin_layout Plain Layout
22267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22270 \begin_layout Plain Layout
22278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22281 \begin_layout Plain Layout
22285 \begin_layout Plain Layout
22299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22302 \begin_layout Plain Layout
22308 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22311 \begin_layout Plain Layout
22317 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22320 \begin_layout Plain Layout
22326 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22329 \begin_layout Plain Layout
22337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22340 \begin_layout Plain Layout
22346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22349 \begin_layout Plain Layout
22355 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22358 \begin_layout Plain Layout
22364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22367 \begin_layout Plain Layout
22373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22376 \begin_layout Plain Layout
22395 \begin_layout Standard
22396 LyX does not natively support dashed lines, so you have to use TeX-Code.
22397 As a prerequisite the LaTeX-package
22402 \begin_inset Index idx
22405 \begin_layout Plain Layout
22406 LaTeX-packages ! arydshln
22411 must be loaded in the document preamble with the command
22414 \begin_layout Standard
22419 usepackage{arydshln}
22422 \begin_layout Standard
22423 To make a vertical line dashed, enter the colon
22424 \begin_inset Quotes eld
22428 \begin_inset Quotes erd
22431 together with the character for the horizontal alignment as LaTeX-argument
22432 in the table cell dialog.
22435 \begin_layout Standard
22436 For a horizontal dashed line add the command
22439 \begin_layout Standard
22447 \begin_layout Standard
22448 in TeX-Code as first element of the first cell in the table row.
22451 \begin_layout Standard
22452 For dashed multicolumn lines use the command
22455 \begin_layout Standard
22460 cdashline{line number
22465 \begin_layout Standard
22466 in TeX-Code as the first element of the first cell in the table row.
22467 If you have for example a multicolumn spanning columns 2 to 4 and you want
22468 to have a dashed line above, add the command
22471 \begin_layout Standard
22479 \begin_layout Standard
22480 as the first element of the first cell in the row of the multicolumn.
22483 \begin_layout Standard
22484 \begin_inset VSpace bigskip
22490 \begin_layout Standard
22492 \begin_inset space ~
22496 \begin_inset CommandInset ref
22498 reference "tab:Table-with-dashed"
22503 \begin_inset Quotes eld
22511 \begin_inset Quotes erd
22514 as LaTeX-argument of the third column.
22515 The TeX-Code command
22521 was inserted in the first cell of the third row and the TeX-Code command
22522 \begin_inset Newline newline
22531 was inserted in the first cell of the fourth row.
22534 \begin_layout Standard
22535 \begin_inset VSpace bigskip
22541 \begin_layout Standard
22542 Tables with dashed lines can also be colored as shown by Table
22543 \begin_inset space ~
22547 \begin_inset CommandInset ref
22549 reference "tab:Colored-table-with"
22556 \begin_layout Standard
22560 \begin_layout Plain Layout
22566 arrayrulewidth}{1pt}
22572 \begin_inset Note Note
22575 \begin_layout Plain Layout
22576 thicker lines for better visualization of the line color
22584 \begin_layout Standard
22588 \begin_layout Plain Layout
22592 dashgapcolor{green}
22598 \begin_inset Note Note
22601 \begin_layout Plain Layout
22602 color gaps between dashes green
22610 \begin_layout Standard
22614 \begin_layout Plain Layout
22625 \begin_layout Plain Layout
22634 \begin_layout Plain Layout
22638 arrayrulecolor{red}
22642 arrayrulecolor{black}}
22648 \begin_inset Note Note
22651 \begin_layout Plain Layout
22652 color horizontal, dashed lines red
22660 \begin_layout Standard
22664 \begin_layout Plain Layout
22675 \begin_layout Plain Layout
22684 \begin_layout Plain Layout
22688 arrayrulecolor{yellow}
22692 arrayrulecolor{black}}
22698 \begin_inset Note Note
22701 \begin_layout Plain Layout
22702 color partial horizontal, dashed lines yellow
22710 \begin_layout Standard
22711 \begin_inset Float table
22717 \begin_layout Plain Layout
22718 \begin_inset Caption
22720 \begin_layout Plain Layout
22721 \begin_inset CommandInset label
22723 name "tab:Colored-table-with"
22727 Colored table with dashed lines
22735 \begin_layout Plain Layout
22737 \begin_inset Tabular
22738 <lyxtabular version="3" rows="5" columns="5">
22739 <features tabularvalignment="middle">
22740 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
22741 <column alignment="center" valignment="top" width="0pt">
22742 <column alignment="center" valignment="top" width="0pt" special=":c">
22743 <column alignment="center" valignment="top" width="0">
22744 <column alignment="center" valignment="top" width="0">
22746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22749 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" topline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" topline="true" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22785 \begin_layout Plain Layout
22793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22796 \begin_layout Plain Layout
22802 <cell alignment="center" valignment="top" topline="true" usebox="none">
22805 \begin_layout Plain Layout
22811 <cell alignment="center" valignment="top" topline="true" usebox="none">
22814 \begin_layout Plain Layout
22820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22823 \begin_layout Plain Layout
22829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22832 \begin_layout Plain Layout
22840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22843 \begin_layout Plain Layout
22847 \begin_layout Plain Layout
22860 \begin_layout Plain Layout
22874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22877 \begin_layout Plain Layout
22883 <cell alignment="center" valignment="top" usebox="none">
22886 \begin_layout Plain Layout
22892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22895 \begin_layout Plain Layout
22901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22904 \begin_layout Plain Layout
22912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22915 \begin_layout Plain Layout
22919 \begin_layout Plain Layout
22933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22936 \begin_layout Plain Layout
22942 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22945 \begin_layout Plain Layout
22951 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22954 \begin_layout Plain Layout
22960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22963 \begin_layout Plain Layout
22971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22974 \begin_layout Plain Layout
22980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22983 \begin_layout Plain Layout
22989 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22992 \begin_layout Plain Layout
22998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23001 \begin_layout Plain Layout
23007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23010 \begin_layout Plain Layout
23014 \begin_layout Plain Layout
23041 \begin_layout Standard
23045 \begin_layout Plain Layout
23059 \begin_inset Note Note
23062 \begin_layout Plain Layout
23071 \begin_layout Standard
23075 \begin_layout Plain Layout
23089 \begin_inset Note Note
23092 \begin_layout Plain Layout
23101 \begin_layout Standard
23105 \begin_layout Plain Layout
23115 \begin_inset Note Note
23118 \begin_layout Plain Layout
23127 \begin_layout Standard
23131 \begin_layout Plain Layout
23137 arrayrulewidth}{0.4pt}
23143 \begin_inset Note Note
23146 \begin_layout Plain Layout
23155 \begin_layout Standard
23156 The coloring of lines, columns and lines works as decribed in section
23157 \begin_inset space ~
23161 \begin_inset CommandInset ref
23163 reference "sec:Colored-Tables"
23168 Coloring horizontal lines works analogically as described there as well,
23169 one only needs to replace in the commands
23193 ; so one uses the command
23196 \begin_layout Standard
23206 \begin_inset Newline newline
23214 \begin_inset Newline newline
23218 \begin_inset Phantom HPhantom
23221 \begin_layout Plain Layout
23222 \begin_inset space ~
23232 arrayrulecolor{red}
23236 arrayrulecolor{black}}
23239 \begin_layout Standard
23249 \begin_layout Standard
23259 \begin_inset Newline newline
23267 \begin_inset Newline newline
23271 \begin_inset Phantom HPhantom
23274 \begin_layout Plain Layout
23275 \begin_inset space ~
23285 arrayrulecolor{red}
23289 arrayrulecolor{black}}
23292 \begin_layout Standard
23293 To get back the black line color, one needs to insert the following commands
23294 as TeX-Code behind the table:
23297 \begin_layout Standard
23305 \begin_layout Standard
23317 \begin_layout Standard
23325 \begin_layout Standard
23337 \begin_layout Standard
23338 To color the gaps between the dashes the command
23341 \begin_layout Standard
23346 dashgapcolor{color}
23349 \begin_layout Standard
23350 can be used in front of a table as TeX-Code.
23351 color is hereby the name of a defined color.
23355 \begin_layout Standard
23363 \begin_layout Standard
23364 unsets the changes made by
23373 \begin_layout Standard
23374 \begin_inset Note Greyedout
23377 \begin_layout Plain Layout
23383 : If there are multiple commands in a cell, the command of
23387 needs to be the first one in the cell.
23393 \begin_inset space ~
23397 \begin_inset CommandInset ref
23399 reference "tab:Colored-table-with"
23423 \begin_layout Standard
23424 \begin_inset Note Greyedout
23427 \begin_layout Plain Layout
23437 must be loaded in the document preamble before the LaTeX-package
23442 \begin_inset Index idx
23445 \begin_layout Plain Layout
23446 LaTeX-packages ! colortbl
23459 \begin_layout Standard
23463 \begin_layout Plain Layout
23473 \begin_inset Note Note
23476 \begin_layout Plain Layout
23477 The following will be displayed when the LaTeX-package
23489 \begin_layout Standard
23490 You need to install the package
23494 to see the content of this section in the output.
23497 \begin_layout Standard
23501 \begin_layout Plain Layout
23513 \begin_layout Standard
23514 For more information about dashed lines see the documentation of
23519 \begin_inset CommandInset citation
23528 \begin_layout Chapter
23530 \begin_inset CommandInset label
23537 \begin_inset Index idx
23540 \begin_layout Plain Layout
23549 \begin_layout Section
23551 \begin_inset CommandInset label
23553 name "sec:FloatIntroduction"
23558 \begin_inset Index idx
23561 \begin_layout Plain Layout
23562 Floats ! Introduction
23570 \begin_layout Standard
23571 A float is a block of text associated with some sort of label, which doesn't
23572 have a fixed location.
23574 \begin_inset Quotes eld
23578 \begin_inset Quotes erd
23581 forward or backward a page or two, to wherever it fits best.
23589 \begin_inset space ~
23594 are also floats because they can float to the next page when there are
23595 too many notes on the page.
23598 \begin_layout Standard
23599 Floats allow a high quality layout.
23600 Images and tables can be spread evenly among the pages to avoid white space
23601 and pages without text.
23602 As the floating often destroys the context between the text and the image/table
23603 , every float can be referenced in the text.
23604 Floats are therefore numbered.
23605 Referencing is described in section
23606 \begin_inset space ~
23610 \begin_inset CommandInset ref
23612 reference "sec:Referencing-Floats"
23619 \begin_layout Standard
23620 To insert a float, use the menu
23622 Insert\SpecialChar \menuseparator
23630 inset, a box with a label.
23631 The label will automatically be translated to the document language in
23633 After the label you can insert the caption text.
23634 The image or table is inserted above or below the caption in a separate
23635 paragraph within the float.
23636 More about the caption placement is contained in section
23637 \begin_inset space ~
23641 \begin_inset CommandInset ref
23643 reference "sec:Caption-Placement"
23648 To keep your LyX-document readable, you can open and close the float box
23649 by left-clicking on the box label.
23650 A closed float box looks like this:
23651 \begin_inset Graphics
23652 filename clipart/floatQt4.png
23654 scaleBeforeRotation
23658 – a gray button with a red label.
23661 \begin_layout Standard
23662 It is recommended that you insert floats as separate standard paragraphs
23663 to avoid possible LaTeX-errors that can occur when the surrounding text
23664 is specially formatted.
23667 \begin_layout Standard
23668 Existing figures or tables can be put into a float by highlighting them
23669 and then pressing the corresponding toolbar button for a new float.
23672 \begin_layout Section
23676 \begin_layout Standard
23677 Besides figure and table floats that are described in sections
23678 \begin_inset space ~
23682 \begin_inset CommandInset ref
23684 reference "sec:Figure-Floats"
23689 \begin_inset CommandInset ref
23691 reference "sec:Table-Floats"
23695 respectively, LyX offers the float types
23704 The latter are explained in sec.
23705 \begin_inset space \thinspace{}
23709 \begin_inset CommandInset ref
23711 reference "sec:Wrap-Floats"
23718 \begin_layout Subsection
23720 \begin_inset Index idx
23723 \begin_layout Plain Layout
23724 Floats ! Algorithms
23732 \begin_layout Standard
23733 \begin_inset Float algorithm
23739 \begin_layout Plain Layout
23740 \begin_inset Caption
23742 \begin_layout Plain Layout
23743 \begin_inset CommandInset label
23745 name "alg:Example-Algorithm-float"
23749 Example Algorithm float
23757 \begin_layout LyX-Code
23759 \begin_inset Newline newline
23762 Sum:= Sum + A(I); /*comment*/
23763 \begin_inset Newline newline
23767 \begin_inset VSpace -4mm
23778 \begin_layout Standard
23779 This float type is inserted with the menu
23781 Insert\SpecialChar \menuseparator
23782 Float\SpecialChar \menuseparator
23786 It is used for program codes and descriptions of algorithms and can be
23787 seen as an alternative to program code listings that are explained in chapter
23788 \begin_inset space ~
23792 \begin_inset CommandInset ref
23794 reference "cha:Program-Code-Listings"
23799 A possible environment for algorithms is the
23803 , described in LyX's
23809 \begin_inset space ~
23813 \begin_inset CommandInset ref
23815 reference "alg:Example-Algorithm-float"
23819 is an example of an algorithm float where -4
23820 \begin_inset space \thinspace{}
23823 mm vertical space was added at the end of the float to have the bottom rule
23824 exactly below the last text line.
23827 \begin_layout Standard
23828 The float label is not automatically translated into the document language.
23829 If your document is not in English, you have to do this manually by adding
23830 the following line to the document preamble
23835 \begin_layout Standard
23840 floatname{algorithm}{your
23841 \begin_inset space ~
23847 \begin_layout Standard
23851 \begin_inset space ~
23857 \begin_inset Quotes eld
23865 \begin_inset Quotes erd
23871 \begin_layout Standard
23872 To insert the list of algorithms you can use the menu
23874 Insert\SpecialChar \menuseparator
23876 \begin_inset space \thinspace{}
23880 \begin_inset space \thinspace{}
23883 TOC\SpecialChar \menuseparator
23886 when your document has the same language as LyX's menu names.
23887 In other cases use this command in TeX-Code instead:
23890 \begin_layout Standard
23895 listof{algorithm}{your
23896 \begin_inset space ~
23902 \begin_layout Standard
23906 \begin_inset space ~
23912 \begin_inset Quotes eld
23920 \begin_inset Quotes erd
23926 \begin_layout Standard
23927 Algorithm floats are not by default numbered in the scheme
23928 \begin_inset Quotes eld
23932 \begin_inset Quotes erd
23935 as is the case for table and figure floats in many document-classes.
23936 To number algorithm floats in the same scheme, add this command to your
23940 \begin_layout Standard
23945 numberwithin{algorithm}{chapter}
23948 \begin_layout Standard
23949 To be able to use the command
23958 \begin_inset space ~
23963 in the document settings the option
23966 \begin_inset space ~
23970 \begin_inset space ~
23974 \begin_inset space ~
23982 \begin_layout Section
23984 \begin_inset Index idx
23987 \begin_layout Plain Layout
23996 \begin_layout Standard
23997 Floats are usually numbered either independently from the sections the floats
23998 are in, or in the scheme
23999 \begin_inset Quotes eld
24003 \begin_inset Quotes erd
24007 \begin_inset Quotes eld
24011 \begin_inset Quotes erd
24015 This depends on the document class used.
24018 \begin_layout Standard
24019 To change section-independent numbering, you can use this command in the
24023 \begin_layout Standard
24035 \begin_layout Standard
24042 is the command that prints the table number.
24043 For figure floats, the command would be
24056 in the command above prints the table number as a small roman number.
24059 \begin_layout Standard
24060 To change the numbering scheme for example to
24061 \begin_inset Quotes eld
24065 \begin_inset Quotes erd
24068 , use this command in the preamble:
24071 \begin_layout Standard
24076 numberwithin{table}{subsection}
24079 \begin_layout Standard
24080 To be able to use the command
24089 \begin_inset space ~
24094 in the document settings the option
24097 \begin_inset space ~
24101 \begin_inset space ~
24105 \begin_inset space ~
24113 \begin_layout Standard
24114 Please also have a look at section
24115 \begin_inset space ~
24119 \begin_inset CommandInset ref
24121 reference "sub:Footnote-Numbering"
24125 for the details and important notes about the numbering commands.
24128 \begin_layout Section
24130 \begin_inset CommandInset label
24132 name "sec:Referencing-Floats"
24137 \begin_inset Index idx
24140 \begin_layout Plain Layout
24141 Floats ! References
24147 \begin_inset Index idx
24150 \begin_layout Plain Layout
24151 References ! to Floats
24159 \begin_layout Standard
24160 To reference a float, insert a label into its caption using the menu
24162 Insert\SpecialChar \menuseparator
24165 or the toolbar button
24176 A grey label box like this one:
24177 \begin_inset Graphics
24178 filename clipart/labelQt4.png
24180 scaleBeforeRotation
24184 will be inserted and the label window pops up asking for the label text.
24185 LyX offers as text the first words of the caption with a prefix.
24186 The prefix depends on the float type, e.
24187 \begin_inset space \thinspace{}
24191 \begin_inset space \space{}
24194 for figure floats the prefix will be "
24201 \begin_layout Standard
24202 The label is used as anchor and name for the reference.
24203 You can refer to the label using the menu
24205 Insert\SpecialChar \menuseparator
24208 or the toolbar button
24213 arg "dialog-show-new-inset ref"
24219 The cross-reference window appears showing all labels of the document.
24220 If you have multiple LyX-documents opened, choose the one you are working
24221 on from the drop-list at the top of the dialog.
24222 You can now sort the labels alphabetically and then choose one.
24223 A grey cross-reference box like this one:
24224 \begin_inset Graphics
24225 filename clipart/referenceQt4.png
24227 scaleBeforeRotation
24232 At the position of the cross-reference box the float number will appear
24236 \begin_layout Standard
24237 It is recommended that you use a protected space between the cross-reference
24238 name and its number to avoid line breaks between them.
24239 If a cross-reference refers to a non-existing label, you will see two question
24240 marks in the output instead of the reference.
24243 \begin_layout Standard
24244 You can change labels at any time by clicking on the label box.
24245 References to the changed label will automatically update their links to
24246 the new label text.
24249 \begin_layout Standard
24253 \begin_inset space ~
24257 \begin_inset space ~
24262 in the cross-reference window sets the cursor before the referred label.
24263 The button text changes then to Go
24264 \begin_inset space ~
24267 Back and you can use it to set the cursor back to the cross-reference.
24270 \begin_layout Subsection
24271 Cross-Reference Formats
24272 \begin_inset CommandInset label
24274 name "sub:Cross-Reference-Formats"
24279 \begin_inset Index idx
24282 \begin_layout Plain Layout
24283 References ! Formats
24291 \begin_layout Standard
24292 There are six varieties of cross-references:
24295 \begin_layout Description
24296 <reference>: prints the float number, this is the default:
24297 \begin_inset CommandInset ref
24299 reference "fig:Two-distorted-images"
24306 \begin_layout Description
24307 (<reference>): prints the float number within two parentheses, this is the
24308 style normally used to reference formulas, especially when the reference
24310 \begin_inset Quotes eld
24314 \begin_inset Quotes erd
24318 \begin_inset CommandInset ref
24327 \begin_layout Description
24328 <page>: prints the page number: Page
24329 \begin_inset space ~
24333 \begin_inset CommandInset ref
24334 LatexCommand pageref
24335 reference "fig:Two-distorted-images"
24342 \begin_layout Description
24344 \begin_inset space ~
24348 \begin_inset space ~
24351 <page>: prints the text "on page" and the page number:
24352 \begin_inset CommandInset ref
24353 LatexCommand vpageref
24354 reference "fig:Two-distorted-images"
24361 \begin_layout Description
24363 \begin_inset space ~
24367 \begin_inset space ~
24371 \begin_inset space ~
24374 <page>: prints the float number, the text "on page", and the page number:
24376 \begin_inset CommandInset ref
24378 reference "fig:Two-distorted-images"
24385 \begin_layout Description
24387 \begin_inset space ~
24390 reference: prints a self-defined cross-reference format.
24391 \begin_inset Newline newline
24395 \begin_inset Note Greyedout
24398 \begin_layout Plain Layout
24403 This feature is only available when you have the LaTeX-package
24412 \begin_inset Index idx
24415 \begin_layout Plain Layout
24416 LaTeX-packages ! prettyref
24422 \begin_inset Index idx
24425 \begin_layout Plain Layout
24426 LaTeX-packages ! refstyle
24437 \begin_inset Newline newline
24440 You can select which LaTeX-package should be used for this feature by setting
24443 Use refstyle (not prettyref) for cross-references
24447 Document\SpecialChar \menuseparator
24448 Settings\SpecialChar \menuseparator
24452 The format is specified by adding the command
24464 (refstyle) to the preamble of the document.
24465 For example redefining all references to figures (which have the label
24467 \begin_inset Quotes eld
24475 \begin_inset Quotes erd
24478 ) can be done with this command
24479 \begin_inset Newline newline
24486 newref{fig}{refcmd={Image on page
24491 \begin_inset Newline newline
24494 For more information about the format, have a look at the package documentations
24496 \begin_inset CommandInset citation
24498 key "prettyref,refstyle"
24505 \begin_layout Description
24507 \begin_inset space ~
24510 reference: prints the caption of the reference:
24511 \begin_inset CommandInset ref
24512 LatexCommand nameref
24513 reference "fig:Two-distorted-images"
24520 \begin_layout Standard
24525 will not print the page number if the label is on the previous, the same,
24528 \begin_inset space \thinspace{}
24532 \begin_inset space \space{}
24536 \begin_inset Quotes eld
24544 \begin_inset Quotes erd
24550 <reference> on page <page>
24552 will not print anything about the page if the label is on the same page.
24555 \begin_layout Standard
24556 The number and current page of the part of the document referred to in the
24557 output is automatically calculated by LaTeX.
24558 The varieties are adjusted in the field
24562 of the cross-reference window that appears when you click on the cross-referenc
24566 \begin_layout Standard
24567 \begin_inset Note Greyedout
24570 \begin_layout Plain Layout
24575 It is recommended to use the LaTeX-package
24580 \begin_inset Index idx
24583 \begin_layout Plain Layout
24584 LaTeX-packages ! refstyle
24594 \begin_inset Index idx
24597 \begin_layout Plain Layout
24598 LaTeX-packages ! prettyref
24603 does not know all of LyX's possible label shortcuts
24607 \begin_layout Plain Layout
24608 \begin_inset Quotes eld
24612 \begin_inset Quotes erd
24615 is for example LyX's shortcut for labels in figure captions.
24620 and is not internationalized.
24628 \begin_layout Standard
24629 \begin_inset Note Greyedout
24632 \begin_layout Plain Layout
24637 Due to a bug in the LaTeX-package
24641 version 1.4w, some cross-reference formats will cause LaTeX errors for document
24642 languages that make the period character active (like French).
24643 For a workaround, see
24644 \begin_inset Newline newline
24648 \begin_inset CommandInset href
24650 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
24662 \begin_layout Subsection
24663 Automatic Reference Naming
24664 \begin_inset Index idx
24667 \begin_layout Plain Layout
24668 References ! Automatic Reference Naming
24676 \begin_layout Standard
24682 \begin_inset Index idx
24685 \begin_layout Plain Layout
24686 LaTeX-packages ! hyperref
24691 , that is enabled in the
24699 dialog, provides a very useful feature that cross-references automatically
24700 include the name of the referenced floats (or text parts like
24705 So you will save having to write e.
24706 \begin_inset space \thinspace{}
24710 \begin_inset space \space{}
24714 \begin_inset Quotes eld
24718 \begin_inset Quotes erd
24721 before every reference to a figure.
24722 To use this feature, enable
24726 and insert this line to the LaTeX preamble:
24729 \begin_layout Standard
24745 \begin_layout Standard
24746 When you prefer other reference names than the default ones, for example
24747 you want instead of
24748 \begin_inset Quotes eld
24752 \begin_inset Quotes erd
24756 \begin_inset Quotes eld
24760 \begin_inset space \thinspace{}
24764 \begin_inset Quotes eld
24767 , you can redefine the name by inserting this in the preamble:
24770 \begin_layout Standard
24781 sectionautorefname}
24782 \begin_inset Newline newline
24786 \begin_inset Phantom HPhantom
24789 \begin_layout Plain Layout
24792 \begin_inset space ~
24805 \begin_layout Standard
24806 When you are using another document language than English, replace
24807 \begin_inset Newline newline
24822 , where *** is the name of the language used.
24825 \begin_layout Standard
24826 To get automatic names, but not for certain reference types, for example
24827 not for equations, use this preamble code:
24830 \begin_layout Standard
24841 equationautorefname}[1]{}}
24844 \begin_layout Standard
24845 More about this topic can be found in
24850 \begin_inset CommandInset citation
24859 \begin_layout Standard
24860 \begin_inset Note Greyedout
24863 \begin_layout Plain Layout
24868 Automatic reference naming cannot be used when you use cross-references
24872 \begin_inset space ~
24877 style, as described in section
24878 \begin_inset space ~
24882 \begin_inset CommandInset ref
24884 reference "sub:Cross-Reference-Formats"
24896 \begin_layout Standard
24901 manual is an example where automatic reference naming is used.
24904 \begin_layout Subsection
24906 \begin_inset CommandInset label
24908 name "sub:Reference-Position"
24913 \begin_inset Index idx
24916 \begin_layout Plain Layout
24917 References ! Reference Position
24925 \begin_layout Standard
24931 \begin_inset Index idx
24934 \begin_layout Plain Layout
24935 LaTeX-packages ! hyperref
24948 dialog to link cross-references in the output, you will see that clicking
24949 on an image float reference jumps to the image label.
24950 The caption will be the first text part on the screen, so that you cannot
24951 see the image without scrolling.
24952 This is because the reference link anchor is placed at the position of
24954 With the use of the package
24959 \begin_inset Index idx
24962 \begin_layout Plain Layout
24963 LaTeX-packages ! hypcap
24968 , which is part of the LaTeX-package
24973 \begin_inset Index idx
24976 \begin_layout Plain Layout
24977 LaTeX-packages ! oberdiek
24982 , the link anchor is placed at the beginning of a float.
24983 To use this feature for figure floats, load
24987 in the document preamble with the line
24990 \begin_layout Standard
24995 usepackage[figure]{hypcap}
24998 \begin_layout Standard
25003 for all float types but this is not recommended for stability reasons.
25004 For more information, have a look at
25009 \begin_inset CommandInset citation
25018 \begin_layout Standard
25019 \begin_inset Note Greyedout
25022 \begin_layout Plain Layout
25031 has no effect on references to subfigures.
25039 \begin_layout Section
25041 \begin_inset CommandInset label
25043 name "sec:Float-Placement"
25048 \begin_inset Index idx
25051 \begin_layout Plain Layout
25060 \begin_layout Standard
25061 Right-clicking on a float-box and clicking on
25065 opens a dialog where you can alter the placement options that LaTeX uses
25066 for positioning the float.
25067 \begin_inset Newline newline
25073 \begin_inset space ~
25078 is only useful for two-column documents: If you select it, the float will
25079 span both columns on the page instead of being confined to just one.
25080 \begin_inset Newline newline
25086 \begin_inset space ~
25091 is used to rotate floats, see section
25092 \begin_inset CommandInset ref
25094 reference "sec:Rotated-Floats"
25101 \begin_layout Standard
25102 You can use one or more of the following options in the float dialog to
25103 set the placement for a particular float when you uncheck the option
25106 \begin_inset space ~
25110 \begin_inset space ~
25118 \begin_layout Description
25120 \begin_inset space ~
25124 \begin_inset space ~
25127 possible try to place the float on the position where it has been inserted
25130 \begin_layout Description
25132 \begin_inset space ~
25136 \begin_inset space ~
25139 page try to place the float at the top of the current page
25142 \begin_layout Description
25144 \begin_inset space ~
25148 \begin_inset space ~
25151 page try to place the float at the bottom of the current page
25154 \begin_layout Description
25156 \begin_inset space ~
25160 \begin_inset space ~
25163 floats try to place the float on its own page
25166 \begin_layout Standard
25167 The order of the above option is
25172 That means, if you use the default placement, LaTeX will first try out
25176 \begin_inset space ~
25180 \begin_inset space ~
25188 \begin_inset space ~
25192 \begin_inset space ~
25197 , and then the others.
25198 If you do not use the default, LaTeX will try only the checked options
25199 but in the same order.
25201 \begin_inset space ~
25204 placements is possible the procedure is internally repeated trying to put
25205 the float on the following page.
25208 \begin_layout Standard
25209 By default, each option has its own rules:
25212 \begin_layout Labeling
25213 \labelwidthstring 00.00.0000
25217 \begin_inset space ~
25221 \begin_inset space ~
25226 only floats occupying less than 70
25227 \begin_inset space \thinspace{}
25230 % of the page can be placed at the top of a page (
25239 \begin_layout Labeling
25240 \labelwidthstring 00.00.0000
25244 \begin_inset space ~
25248 \begin_inset space ~
25253 : only floats occupying less than 30
25254 \begin_inset space \thinspace{}
25257 % of the page can be placed at the bottom of a page.
25267 \begin_layout Labeling
25268 \labelwidthstring 00.00.0000
25272 \begin_inset space ~
25276 \begin_inset space ~
25281 : only if more than 50
25282 \begin_inset space \thinspace{}
25285 % of the page is occupied by floats, several floats can be set together
25296 \begin_layout Standard
25297 If you don't like these rules, you can ignore them by using the additional
25301 \begin_inset space ~
25305 \begin_inset space ~
25311 \begin_inset Newline newline
25314 You can also redefine the rules with LaTeX-commands that are given in parenthese
25315 s after the rules description above.
25316 To increase for example the often too small default of the bottom-rule
25318 \begin_inset space \thinspace{}
25321 % of the page, add this line to your document preamble:
25324 \begin_layout Standard
25331 bottomfraction}{0.5}
25334 \begin_layout Standard
25335 Sometimes you might need, under all circumstances, a float to be placed
25336 exactly at the position where it is inserted.
25337 For this case you can use the option
25340 \begin_inset space ~
25346 Use this option very rarely and only if the document is almost ready to
25347 be printed, because the float is then no longer able to
25348 \begin_inset Quotes eld
25352 \begin_inset Quotes erd
25355 when you change your document and this will often destroy the page layout.
25358 \begin_layout Standard
25359 There are no placement options for text wrap floats, because they are always
25360 surrounded by the text of a certain paragraph.
25361 \begin_inset VSpace bigskip
25367 \begin_layout Standard
25368 Sometimes you have the problem that a float is placed at the top of a page
25369 while its corresponding section starts at the middle of the page, so that
25370 the reader could think the float is part of the previous section.
25371 To avoid this the LaTeX-command
25378 It suppresses a given float placement for the page where it is inserted
25379 and can therefore be used to avoid floats being set before a section starts.
25380 To get this, add these commands to your document preamble:
25383 \begin_layout Standard
25393 \begin_inset Newline newline
25407 \begin_layout Standard
25408 You can define the same for all section headings, like chapters and subsections.
25409 This definition is not recommended to be used for small text parts like
25410 subsubsections because LaTeX may then have problems finding a suitable
25414 \begin_layout Standard
25415 \begin_inset VSpace bigskip
25418 In some cases it is required to have all figures/tables at the end of the
25420 For this purpose the LaTeX-package
25425 \begin_inset Index idx
25428 \begin_layout Plain Layout
25429 LaTeX-packages ! endfloat
25435 It puts all figure and table floats at the end of the document into their
25437 At the original float position a text hint like
25438 \begin_inset Quotes eld
25444 \begin_inset space ~
25450 \begin_inset Quotes erd
25454 The endfloat-package is loaded in the preamble with the line
25457 \begin_layout Standard
25462 usepackage[options]{endfloat}
25465 \begin_layout Standard
25466 There are various package options to format the created figure/table sections.
25467 For more information we refer you to the
25472 \begin_inset CommandInset citation
25479 \begin_inset Newline newline
25483 \begin_inset Note Greyedout
25486 \begin_layout Plain Layout
25491 doesn't provide an automatic translation for the text hint, you have to
25492 do this manually, see section
25493 \begin_inset space ~
25497 \begin_inset CommandInset citation
25509 \begin_inset Newline newline
25513 \begin_inset Note Greyedout
25516 \begin_layout Plain Layout
25521 There is currently a bug in
25525 when the caption contains a German
25526 \begin_inset Quotes eld
25530 \begin_inset Quotes erd
25534 Use in this case the command
25535 \begin_inset Quotes eld
25545 \begin_inset Quotes erd
25548 in TeX-Code instead of
25549 \begin_inset Quotes eld
25553 \begin_inset Quotes erd
25564 \begin_layout Standard
25565 \begin_inset VSpace bigskip
25568 For more details about float placements, have a look at LaTeX books,
25569 \begin_inset CommandInset citation
25571 key "latexcompanion,latexguide,latexbook"
25578 \begin_layout Section
25580 \begin_inset CommandInset label
25582 name "sec:Rotated-Floats"
25587 \begin_inset Index idx
25590 \begin_layout Plain Layout
25599 \begin_layout Standard
25600 Especially for wide tables you might have floats rotated.
25601 To rotate a whole float including the caption, right-click on the float-box
25605 \begin_inset space ~
25613 \begin_layout Standard
25614 Rotated floats are always placed on a page of their own (or column of their
25615 own; in case you have a multi-column document).
25616 You can let them span several columns using the float settings option
25619 \begin_inset space ~
25625 Floats are rotated so that you can read them from the outside margin.
25626 To force a certain rotation direction for all pages, you can add either
25635 to the document class options.
25638 \begin_layout Standard
25639 Referencing rotated floats is the same as for normal floats, the caption
25640 format is also the same: Table
25641 \begin_inset space ~
25645 \begin_inset CommandInset ref
25647 reference "tab:Rotated-table"
25651 is an example of a rotated table float.
25654 \begin_layout Standard
25655 \begin_inset Note Greyedout
25658 \begin_layout Plain Layout
25663 Not all DVI-viewers are able to display rotated floats.
25671 \begin_layout Standard
25672 \begin_inset Float table
25677 \begin_layout Plain Layout
25678 \begin_inset Caption
25680 \begin_layout Plain Layout
25681 \begin_inset CommandInset label
25683 name "tab:Rotated-table"
25695 \begin_layout Plain Layout
25697 \begin_inset Tabular
25698 <lyxtabular version="3" rows="1" columns="5">
25699 <features tabularvalignment="middle">
25700 <column alignment="center" valignment="top" width="0">
25701 <column alignment="center" valignment="top" width="0">
25702 <column alignment="center" valignment="top" width="0">
25703 <column alignment="center" valignment="top" width="0">
25704 <column alignment="center" valignment="top" width="0">
25706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25709 \begin_layout Plain Layout
25715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25718 \begin_layout Plain Layout
25724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25727 \begin_layout Plain Layout
25733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25736 \begin_layout Plain Layout
25742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25745 \begin_layout Plain Layout
25764 \begin_layout Section
25766 \begin_inset Index idx
25769 \begin_layout Plain Layout
25778 \begin_layout Standard
25779 Subfloats are for example used when a figure consists of several images.
25780 They are created by inserting a float into an existing float.
25781 The placement of the subfloats can be controlled in the same way as for
25782 paragraphs as shown in table
25783 \begin_inset space ~
25787 \begin_inset CommandInset ref
25789 reference "tab:Two-subtables-side"
25794 \begin_inset CommandInset ref
25796 reference "tab:Two-subtables-upon"
25803 \begin_layout Standard
25804 Referencing subfloats works as for normal floats: Table
25805 \begin_inset space ~
25809 \begin_inset CommandInset ref
25811 reference "tab:This-is-subtable-a"
25816 \begin_inset CommandInset ref
25818 reference "tab:This-is-subtable-b"
25822 are subtables of table
25823 \begin_inset space ~
25827 \begin_inset CommandInset ref
25829 reference "tab:Two-subtables-side"
25836 \begin_layout Standard
25837 \begin_inset Float table
25842 \begin_layout Plain Layout
25843 \begin_inset Caption
25845 \begin_layout Plain Layout
25846 \begin_inset CommandInset label
25848 name "tab:Two-subtables-side"
25852 Two subtables placed side by side.
25860 \begin_layout Plain Layout
25862 \begin_inset space \hfill{}
25866 \begin_inset Float table
25871 \begin_layout Plain Layout
25872 \begin_inset Caption
25874 \begin_layout Plain Layout
25875 \begin_inset CommandInset label
25877 name "tab:This-is-subtable-a"
25881 This is subtable a.
25889 \begin_layout Plain Layout
25891 \begin_inset Tabular
25892 <lyxtabular version="3" rows="1" columns="5">
25893 <features tabularvalignment="middle">
25894 <column alignment="center" valignment="top" width="0">
25895 <column alignment="center" valignment="top" width="0">
25896 <column alignment="center" valignment="top" width="0">
25897 <column alignment="center" valignment="top" width="0">
25898 <column alignment="center" valignment="top" width="0">
25900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25903 \begin_layout Plain Layout
25909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25912 \begin_layout Plain Layout
25918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25921 \begin_layout Plain Layout
25927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25930 \begin_layout Plain Layout
25936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25939 \begin_layout Plain Layout
25956 \begin_inset space \hfill{}
25960 \begin_inset Float table
25965 \begin_layout Plain Layout
25966 \begin_inset Caption
25968 \begin_layout Plain Layout
25969 \begin_inset CommandInset label
25971 name "tab:This-is-subtable-b"
25975 This is subtable b.
25983 \begin_layout Plain Layout
25985 \begin_inset Tabular
25986 <lyxtabular version="3" rows="1" columns="5">
25987 <features tabularvalignment="middle">
25988 <column alignment="center" valignment="top" width="0">
25989 <column alignment="center" valignment="top" width="0">
25990 <column alignment="center" valignment="top" width="0">
25991 <column alignment="center" valignment="top" width="0">
25992 <column alignment="center" valignment="top" width="0">
25994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25997 \begin_layout Plain Layout
26003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26006 \begin_layout Plain Layout
26012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26015 \begin_layout Plain Layout
26021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26024 \begin_layout Plain Layout
26030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26033 \begin_layout Plain Layout
26050 \begin_inset space \hfill{}
26061 \begin_layout Standard
26062 \begin_inset Float table
26067 \begin_layout Plain Layout
26068 \begin_inset Caption
26070 \begin_layout Plain Layout
26071 \begin_inset CommandInset label
26073 name "tab:Two-subtables-upon"
26077 Two subtables placed one above the other.
26078 (a) table with 4 cells, (b) table with 5 cells.
26086 \begin_layout Plain Layout
26088 \begin_inset Float table
26093 \begin_layout Plain Layout
26094 \begin_inset Caption
26096 \begin_layout Plain Layout
26105 \begin_layout Plain Layout
26107 \begin_inset Tabular
26108 <lyxtabular version="3" rows="1" columns="4">
26109 <features tabularvalignment="middle">
26110 <column alignment="center" valignment="top" width="0">
26111 <column alignment="center" valignment="top" width="0">
26112 <column alignment="center" valignment="top" width="0">
26113 <column alignment="center" valignment="top" width="0">
26115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26118 \begin_layout Plain Layout
26124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26127 \begin_layout Plain Layout
26133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26136 \begin_layout Plain Layout
26142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26145 \begin_layout Plain Layout
26164 \begin_layout Plain Layout
26166 \begin_inset Float table
26171 \begin_layout Plain Layout
26172 \begin_inset Caption
26174 \begin_layout Plain Layout
26183 \begin_layout Plain Layout
26185 \begin_inset Tabular
26186 <lyxtabular version="3" rows="1" columns="5">
26187 <features tabularvalignment="middle">
26188 <column alignment="center" valignment="top" width="0">
26189 <column alignment="center" valignment="top" width="0">
26190 <column alignment="center" valignment="top" width="0">
26191 <column alignment="center" valignment="top" width="0">
26192 <column alignment="center" valignment="top" width="0">
26194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26197 \begin_layout Plain Layout
26203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26206 \begin_layout Plain Layout
26212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26215 \begin_layout Plain Layout
26221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26224 \begin_layout Plain Layout
26230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26233 \begin_layout Plain Layout
26257 \begin_layout Section
26258 Floats Side by Side
26259 \begin_inset Index idx
26262 \begin_layout Plain Layout
26263 Floats ! Side by side
26271 \begin_layout Standard
26272 To place floats side by side, as in Figures
26273 \begin_inset space ~
26277 \begin_inset CommandInset ref
26279 reference "fig:Float-left"
26284 \begin_inset CommandInset ref
26286 reference "fig:Float-right"
26295 In it two minipage boxes are inserted.
26299 \begin_layout Plain Layout
26300 Minipages are explained in section
26301 \begin_inset space ~
26305 \begin_inset CommandInset ref
26307 reference "sec:Minipages"
26316 The width is set to 45
26317 \begin_inset space \thinspace{}
26321 \begin_inset space \thinspace{}
26324 column% and the box alignment to
26329 The minipage boxes contain the image and the caption in the same way as
26330 they are in a float.
26331 The only difference is that the image unit
26334 \begin_inset space ~
26338 \begin_inset space ~
26343 is now calculated according to the width of the minipage boxes.
26346 \begin_layout Standard
26347 \begin_inset Float figure
26352 \begin_layout Plain Layout
26353 \begin_inset Box Frameless
26363 height_special "totalheight"
26366 \begin_layout Plain Layout
26368 \begin_inset Graphics
26369 filename clipart/mobius.eps
26372 scaleBeforeRotation
26379 \begin_layout Plain Layout
26380 \begin_inset Caption
26382 \begin_layout Plain Layout
26383 \begin_inset CommandInset label
26385 name "fig:Float-left"
26389 Float on the left side.
26400 \begin_inset space \hfill{}
26404 \begin_inset Box Frameless
26414 height_special "totalheight"
26417 \begin_layout Plain Layout
26419 \begin_inset Graphics
26420 filename clipart/platypus.eps
26423 scaleBeforeRotation
26430 \begin_layout Plain Layout
26431 \begin_inset Caption
26433 \begin_layout Plain Layout
26434 \begin_inset CommandInset label
26436 name "fig:Float-right"
26440 Float on the right side.
26453 \begin_layout Plain Layout
26462 \begin_layout Section
26464 \begin_inset Index idx
26467 \begin_layout Plain Layout
26468 Caption ! Formatting
26474 \begin_inset Index idx
26477 \begin_layout Plain Layout
26478 Floats ! Caption Formatting
26484 \begin_inset CommandInset label
26486 name "sec:Caption-Formatting"
26493 \begin_layout Standard
26498 environment is the default paragraph environment for
26503 On the LyX screen captions appear as a label, e.
26504 \begin_inset space \thinspace{}
26508 \begin_inset space \space{}
26512 \begin_inset Quotes eld
26520 \begin_inset Quotes erd
26523 followed by the caption text.
26525 \begin_inset Quotes eld
26529 \begin_inset Quotes erd
26532 is the actual reference number.
26533 By default the label and the number are in the same font as the caption
26534 text and a colon follows the number to divide the label from the text.
26535 This caption format is not suitable for all document formats.
26539 \begin_layout Standard
26540 To change the default caption format, load the LaTeX-package
26545 \begin_inset Index idx
26548 \begin_layout Plain Layout
26549 LaTeX-packages ! caption
26554 in the document preamble with this line:
26557 \begin_layout Standard
26562 usepackage[format definition]{caption}
26565 \begin_layout Standard
26566 To have for example the label and the number in sans-serif bold font and
26567 the table captions always above the table as in this document, use the
26571 \begin_layout Standard
26576 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26579 \begin_layout Standard
26580 You can also define different caption formats for the different float types.
26581 In this case load the
26585 package without format specific options and define the different formats
26586 with the help of the command
26589 \begin_layout Standard
26594 captionsetup[float type]{format definition}
26597 \begin_layout Standard
26598 in the document preamble.
26599 For example the caption formats of Figure
26600 \begin_inset space ~
26604 \begin_inset CommandInset ref
26606 reference "fig:This-is-an-fig"
26611 \begin_inset space ~
26615 \begin_inset CommandInset ref
26617 reference "tab:This-is-an-tab"
26621 can be created using these commands in the document preamble:
26624 \begin_layout Standard
26629 usepackage[tableposition=top]{caption}
26632 \begin_inset Newline newline
26639 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
26640 \begin_inset Newline newline
26644 \begin_inset Phantom HPhantom
26647 \begin_layout Plain Layout
26652 captionsetup[figure]{
26658 \begin_inset Newline newline
26663 captionsetup[table]{labelfont={bf,sf}}
26666 \begin_layout Standard
26667 \begin_inset Note Greyedout
26670 \begin_layout Plain Layout
26679 has no effect when a
26684 \begin_inset Index idx
26687 \begin_layout Plain Layout
26688 LaTeX-packages ! KOMA-Script
26693 document class is used.
26694 In this case the document class option
26696 captions=tableheading
26706 \begin_layout Standard
26707 For more information about the package
26711 we refer to its documentation
26712 \begin_inset CommandInset citation
26721 \begin_layout Standard
26722 To change the label name from e.
26723 \begin_inset space \thinspace{}
26727 \begin_inset space \space{}
26731 \begin_inset Quotes eld
26735 \begin_inset Quotes erd
26739 \begin_inset Quotes eld
26743 \begin_inset Quotes erd
26746 use this preamble command:
26749 \begin_layout Standard
26756 fnum@figure}{Image~
26761 \begin_layout Standard
26768 inserts the figure number and
26771 \begin_inset Quotes eld
26777 \begin_inset Quotes erd
26780 creates a protected space.
26783 \begin_layout Standard
26784 \begin_inset VSpace bigskip
26792 \begin_inset Index idx
26795 \begin_layout Plain Layout
26796 LaTeX-packages ! KOMA-Script
26803 article (KOMA-Script)
26811 letter (KOMA-Script)
26815 report (KOMA-Script)
26818 \begin_inset space \thinspace{}
26821 ), you can alternatively to the
26829 's built-in command
26836 For example, to have the caption label in bold, add this command to your
26840 \begin_layout Standard
26845 setkomafont{captionlabel}{
26850 \begin_layout Standard
26851 For more information about
26862 \begin_inset CommandInset citation
26871 \begin_layout Standard
26875 \begin_layout Plain Layout
26879 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
26886 \begin_inset Note Note
26889 \begin_layout Plain Layout
26890 The caption format is changed only for this example.
26898 \begin_layout Standard
26899 \begin_inset Float figure
26905 \begin_layout Plain Layout
26907 \begin_inset Graphics
26908 filename clipart/mobius.eps
26911 scaleBeforeRotation
26918 \begin_layout Plain Layout
26919 \begin_inset Caption
26921 \begin_layout Plain Layout
26922 \begin_inset CommandInset label
26924 name "fig:This-is-an-fig"
26928 This is an example figure caption that is longer than one line to show the
26929 different caption format.
26930 Here a self-defined caption format is used.
26943 \begin_layout Standard
26947 \begin_layout Plain Layout
26951 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
26960 \begin_layout Standard
26961 \begin_inset Float table
26967 \begin_layout Plain Layout
26968 \begin_inset Caption
26970 \begin_layout Plain Layout
26971 \begin_inset CommandInset label
26973 name "tab:This-is-an-tab"
26977 This is an example table caption that is longer than one line to show the
26978 different caption format.
26979 Here the standard caption format for tables in this document is used.
26987 \begin_layout Plain Layout
26989 \begin_inset Tabular
26990 <lyxtabular version="3" rows="1" columns="5">
26991 <features tabularvalignment="middle">
26992 <column alignment="center" valignment="top" width="0">
26993 <column alignment="center" valignment="top" width="0">
26994 <column alignment="center" valignment="top" width="0">
26995 <column alignment="center" valignment="top" width="0">
26996 <column alignment="center" valignment="top" width="0">
26998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27001 \begin_layout Plain Layout
27007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27010 \begin_layout Plain Layout
27016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27019 \begin_layout Plain Layout
27025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27028 \begin_layout Plain Layout
27034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27037 \begin_layout Plain Layout
27056 \begin_layout Section
27058 \begin_inset Index idx
27061 \begin_layout Plain Layout
27062 Caption ! Placement
27068 \begin_inset Index idx
27071 \begin_layout Plain Layout
27072 Floats ! Caption Placement
27078 \begin_inset CommandInset label
27080 name "sec:Caption-Placement"
27087 \begin_layout Standard
27088 The common caption placement rule is:
27091 \begin_layout Description
27092 Figure: Caption is set below the figure
27095 \begin_layout Description
27096 Table: Caption is set above the table
27099 \begin_layout Standard
27100 Having the caption above the table is unfortunately not supported in LaTeX's
27102 That means if you are using the document classes
27118 there will be no space between the caption and the table.
27119 To insert the necessary space, add the following option to the load command
27120 of the LaTeX-package
27124 in your document preamble
27128 \begin_layout Plain Layout
27130 \begin_inset space ~
27134 \begin_inset CommandInset ref
27136 reference "sec:Caption-Formatting"
27140 for more information of the package
27152 \begin_layout Standard
27158 \begin_layout Standard
27164 \begin_inset Index idx
27167 \begin_layout Plain Layout
27168 LaTeX-packages ! KOMA-Script
27175 article (KOMA-Script)
27183 letter (KOMA-Script)
27187 report (KOMA-Script)
27190 \begin_inset space \thinspace{}
27193 ), you can alternatively to the
27197 package set the document class option
27199 captions=tableheading
27204 \begin_layout Standard
27205 \begin_inset VSpace bigskip
27208 It is also possible to set the caption beside a figure or table.
27209 To get this the LaTeX-package
27214 \begin_inset Index idx
27217 \begin_layout Plain Layout
27218 LaTeX-packages ! sidecap
27223 has to be loaded in the document preamble with the line
27226 \begin_layout Standard
27231 usepackage[option]{sidecap}
27234 \begin_layout Standard
27235 If you set no option, the caption is placed on the side of the outer page
27236 margin – to the right on odd pages, to the left on even pages.
27237 You can change the placement to inner margin with the option
27242 To force the placement always to the right or left, use the option
27253 \begin_layout Standard
27257 \begin_layout Plain Layout
27267 \begin_inset Note Note
27270 \begin_layout Plain Layout
27271 The following section will only be displayed when the LaTeX-package
27283 \begin_layout Standard
27284 To place in LyX the caption of a float on the side, it is necessary to add
27285 these commands to the document preamble:
27288 \begin_layout Standard
27289 \begin_inset Newpage pagebreak
27295 \begin_layout Standard
27297 \begin_inset CommandInset line
27308 \begin_layout Standard
27315 TabBesBeg}[1][1.0]{%
27316 \begin_inset Newline newline
27320 \begin_inset Phantom HPhantom
27323 \begin_layout Plain Layout
27324 \begin_inset space ~
27339 \begin_inset Newline newline
27343 \begin_inset Phantom HPhantom
27346 \begin_layout Plain Layout
27349 \begin_inset space ~
27364 \begin_inset Newline newline
27368 \begin_inset Phantom HPhantom
27371 \begin_layout Plain Layout
27374 \begin_inset space ~
27384 renewenvironment{table}[1]{
27386 begin{SCtable}[#1]##1}{
27391 \begin_layout Standard
27399 \begin_inset Newline newline
27403 \begin_inset Phantom HPhantom
27406 \begin_layout Plain Layout
27407 \begin_inset space ~
27422 \begin_inset Newline newline
27426 \begin_inset Phantom HPhantom
27429 \begin_layout Plain Layout
27430 \begin_inset space ~
27447 \begin_layout Standard
27454 FigBesBeg}[1][1.0]{%
27455 \begin_inset Newline newline
27459 \begin_inset Phantom HPhantom
27462 \begin_layout Plain Layout
27463 \begin_inset space ~
27478 \begin_inset Newline newline
27482 \begin_inset Phantom HPhantom
27485 \begin_layout Plain Layout
27486 \begin_inset space ~
27501 \begin_inset Newline newline
27505 \begin_inset Phantom HPhantom
27508 \begin_layout Plain Layout
27509 \begin_inset space ~
27519 renewenvironment{figure}[1]{
27521 begin{SCfigure}[#1]##1}{
27526 \begin_layout Standard
27534 \begin_inset Newline newline
27538 \begin_inset Phantom HPhantom
27541 \begin_layout Plain Layout
27542 \begin_inset space ~
27557 \begin_inset Newline newline
27561 \begin_inset Phantom HPhantom
27564 \begin_layout Plain Layout
27565 \begin_inset space ~
27582 \begin_layout Standard
27584 \begin_inset CommandInset line
27595 \begin_layout Standard
27596 The commands allow you to redefine the floats so that the caption is set
27598 For figure floats use the command
27601 \begin_layout Standard
27609 \begin_layout Standard
27610 in TeX-Code before the float.
27611 And insert the command
27614 \begin_layout Standard
27622 \begin_layout Standard
27623 in TeX-Code at the point where you want to get back to the original float
27627 \begin_layout Standard
27628 For table floats use the corresponding commands
27631 \begin_layout Standard
27645 \begin_layout Standard
27647 \begin_inset space ~
27651 \begin_inset CommandInset ref
27653 reference "fig:cap-beside-fig"
27658 \begin_inset space ~
27662 \begin_inset CommandInset ref
27664 reference "tab:cap-beside-tab"
27668 are examples where the caption is set beside.
27671 \begin_layout Standard
27672 You can see in the examples that the caption text appears at the top of
27673 the floats for table floats and at the bottom for figure floats.
27674 To change this, you can use the command
27677 \begin_layout Standard
27682 sidecaptionvpos{float type}{placement}
27685 \begin_layout Standard
27686 in the document preamble or in TeX-Code before the float.
27687 The float type is either
27695 , the placement can be
27696 \begin_inset Quotes eld
27704 \begin_inset Quotes erd
27708 \begin_inset Quotes eld
27716 \begin_inset Quotes erd
27720 \begin_inset Quotes eld
27728 \begin_inset Quotes erd
27732 To have for example the caption of figure floats vertically centered, use
27736 \begin_layout Standard
27741 sidecaptionvpos{figure}{c}
27744 \begin_layout Standard
27745 This was used for Figure
27746 \begin_inset space ~
27750 \begin_inset CommandInset ref
27752 reference "fig:cap-beside-fig-2"
27759 \begin_layout Standard
27760 \begin_inset VSpace medskip
27766 \begin_layout Standard
27767 The default caption width is the width of the image/table.
27768 For thin image/tables, like in Table
27769 \begin_inset space ~
27773 \begin_inset CommandInset ref
27775 reference "tab:cap-beside-tab"
27779 , this leads to captions that are too thin.
27780 You can increase the width by specifying a factor that will be multiplied
27781 with the image/table width to get the caption width.
27782 The caption width will automatically be recalculated in case it would protrude
27783 over the page or column margin due to the specified width.
27788 can either be given as optional argument for
27797 \begin_layout Standard
27805 \begin_layout Standard
27806 or in the definition of
27816 with another value.
27817 If you do the latter, your factor will be the default if
27823 is used without an argument.
27825 \begin_inset space ~
27829 \begin_inset CommandInset ref
27831 reference "tab:cap-beside-tab-wider"
27835 the factor 5 was used.
27838 \begin_layout Standard
27839 \begin_inset Note Greyedout
27842 \begin_layout Plain Layout
27847 For floats with captions set beside, you cannot use the float placement
27851 \begin_inset space ~
27856 because it is not supported by
27868 \begin_layout Standard
27869 \begin_inset VSpace medskip
27872 For more information about the package
27876 we refer to its documentation
27877 \begin_inset CommandInset citation
27886 \begin_layout Standard
27887 \begin_inset Note Greyedout
27890 \begin_layout Plain Layout
27900 \begin_inset Index idx
27903 \begin_layout Plain Layout
27904 LaTeX-packages ! hypcap
27909 , described in section
27910 \begin_inset space ~
27914 \begin_inset CommandInset ref
27916 reference "sub:Reference-Position"
27920 , has no effect on floats with the caption set beside.
27928 \begin_layout Standard
27932 \begin_layout Plain Layout
27944 \begin_layout Standard
27945 \begin_inset Float figure
27950 \begin_layout Plain Layout
27951 \begin_inset Graphics
27952 filename clipart/escher-lsd.eps
27954 scaleBeforeRotation
27961 \begin_layout Plain Layout
27962 \begin_inset Caption
27964 \begin_layout Plain Layout
27965 \begin_inset CommandInset label
27967 name "fig:cap-beside-fig"
27971 This is a caption beside a figure.
27984 \begin_layout Standard
27988 \begin_layout Plain Layout
28000 \begin_layout Standard
28004 \begin_layout Plain Layout
28016 \begin_layout Standard
28017 \begin_inset Float table
28022 \begin_layout Plain Layout
28023 \begin_inset Caption
28025 \begin_layout Plain Layout
28026 \begin_inset CommandInset label
28028 name "tab:cap-beside-tab"
28032 This is a caption beside a table.
28040 \begin_layout Plain Layout
28041 \begin_inset Tabular
28042 <lyxtabular version="3" rows="4" columns="5">
28043 <features tabularvalignment="middle">
28044 <column alignment="center" valignment="top" width="0">
28045 <column alignment="center" valignment="top" width="0">
28046 <column alignment="center" valignment="top" width="0">
28047 <column alignment="center" valignment="top" width="0">
28048 <column alignment="center" valignment="top" width="0">
28050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28053 \begin_layout Plain Layout
28059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28062 \begin_layout Plain Layout
28068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28071 \begin_layout Plain Layout
28077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28080 \begin_layout Plain Layout
28086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28089 \begin_layout Plain Layout
28097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28100 \begin_layout Plain Layout
28106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28109 \begin_layout Plain Layout
28115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28118 \begin_layout Plain Layout
28124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28127 \begin_layout Plain Layout
28133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28136 \begin_layout Plain Layout
28144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28147 \begin_layout Plain Layout
28153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28156 \begin_layout Plain Layout
28162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28165 \begin_layout Plain Layout
28171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28174 \begin_layout Plain Layout
28180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28183 \begin_layout Plain Layout
28191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28194 \begin_layout Plain Layout
28200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28203 \begin_layout Plain Layout
28209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28212 \begin_layout Plain Layout
28218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28221 \begin_layout Plain Layout
28227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28230 \begin_layout Plain Layout
28249 \begin_layout Standard
28253 \begin_layout Plain Layout
28265 \begin_layout Standard
28269 \begin_layout Plain Layout
28273 sidecaptionvpos{figure}{c}
28279 \begin_inset Float figure
28284 \begin_layout Plain Layout
28285 \begin_inset Graphics
28286 filename clipart/escher-lsd.eps
28288 scaleBeforeRotation
28295 \begin_layout Plain Layout
28296 \begin_inset Caption
28298 \begin_layout Plain Layout
28299 \begin_inset CommandInset label
28301 name "fig:cap-beside-fig-2"
28305 This is a vertically centered caption beside a figure.
28318 \begin_layout Standard
28322 \begin_layout Plain Layout
28334 \begin_layout Standard
28338 \begin_layout Plain Layout
28350 \begin_layout Standard
28351 \begin_inset Float table
28356 \begin_layout Plain Layout
28357 \begin_inset Caption
28359 \begin_layout Plain Layout
28360 \begin_inset CommandInset label
28362 name "tab:cap-beside-tab-wider"
28366 This is a caption is wider than the one in Table
28367 \begin_inset space ~
28371 \begin_inset CommandInset ref
28373 reference "tab:cap-beside-tab"
28385 \begin_layout Plain Layout
28386 \begin_inset Tabular
28387 <lyxtabular version="3" rows="4" columns="5">
28388 <features tabularvalignment="middle">
28389 <column alignment="center" valignment="top" width="0">
28390 <column alignment="center" valignment="top" width="0">
28391 <column alignment="center" valignment="top" width="0">
28392 <column alignment="center" valignment="top" width="0">
28393 <column alignment="center" valignment="top" width="0">
28395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28398 \begin_layout Plain Layout
28404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28407 \begin_layout Plain Layout
28413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28416 \begin_layout Plain Layout
28422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28425 \begin_layout Plain Layout
28431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28434 \begin_layout Plain Layout
28442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28445 \begin_layout Plain Layout
28451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28454 \begin_layout Plain Layout
28460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28463 \begin_layout Plain Layout
28469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28472 \begin_layout Plain Layout
28478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28481 \begin_layout Plain Layout
28489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28492 \begin_layout Plain Layout
28498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28501 \begin_layout Plain Layout
28507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28510 \begin_layout Plain Layout
28516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28519 \begin_layout Plain Layout
28525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28528 \begin_layout Plain Layout
28536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28539 \begin_layout Plain Layout
28545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28548 \begin_layout Plain Layout
28554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28557 \begin_layout Plain Layout
28563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28566 \begin_layout Plain Layout
28572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28575 \begin_layout Plain Layout
28594 \begin_layout Standard
28598 \begin_layout Plain Layout
28610 \begin_layout Standard
28614 \begin_layout Plain Layout
28624 \begin_inset Note Note
28627 \begin_layout Plain Layout
28628 The following will be displayed when the LaTeX-package
28640 \begin_layout Standard
28641 You need to install the LaTeX-package
28645 to see the following part of this section in the output.
28648 \begin_layout Standard
28652 \begin_layout Plain Layout
28664 \begin_layout Section
28666 \begin_inset Index idx
28669 \begin_layout Plain Layout
28670 Floats ! Float Lists
28678 \begin_layout Standard
28679 Similar to the table of contents where the sections of the document are
28680 listed, there are listings for all float types, like the figures of the
28682 You can insert them via the
28684 Insert\SpecialChar \menuseparator
28686 \begin_inset space ~
28690 \begin_inset space ~
28698 \begin_layout Standard
28699 The list entries are the float captions or its short title, the float number,
28700 and the page number where they appear in the document.
28703 \begin_layout Standard
28704 You can find the list of figures and tables at the end of this document.
28707 \begin_layout Chapter
28711 \begin_layout Section
28713 \begin_inset Index idx
28716 \begin_layout Plain Layout
28725 \begin_layout Standard
28726 Notes are inserted with the toolbar button
28738 Insert\SpecialChar \menuseparator
28742 There are three types of notes:
28745 \begin_layout Description
28747 \begin_inset space ~
28750 Note This note type is for internal notes that won't appear in the output.
28751 Its note-box looks like this:
28752 \begin_inset Newline newline
28756 \begin_inset Newline newline
28760 \begin_inset Graphics
28761 filename clipart/LyXNoteImageQt4.png
28764 scaleBeforeRotation
28769 \begin_inset Note Note
28772 \begin_layout Plain Layout
28773 This is text in a note box that doesn't appear in the output.
28781 \begin_layout Description
28782 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
28783 ent, when you export the document to LaTeX via the menu
28785 File\SpecialChar \menuseparator
28786 Export\SpecialChar \menuseparator
28787 LaTeX (pdflatex) / (plain)
28790 Its note-box looks like this:
28791 \begin_inset Newline newline
28795 \begin_inset Newline newline
28799 \begin_inset Graphics
28800 filename clipart/CommentNoteImageQt4.png
28803 scaleBeforeRotation
28808 \begin_inset Note Comment
28811 \begin_layout Plain Layout
28812 This is text in a note box that only appears as comment in LaTeX-files.
28820 \begin_layout Description
28822 \begin_inset space ~
28825 Out This note will appear in the output as grey text.
28826 Its note-box looks like this:
28827 \begin_inset Newline newline
28831 \begin_inset Newline newline
28835 \begin_inset Graphics
28836 filename clipart/GreyedOutNoteImageQt4.png
28839 scaleBeforeRotation
28844 \begin_inset Newline newline
28851 \begin_layout Plain Layout
28855 renewenvironment{lyxgreyedout}
28858 \begin_layout Plain Layout
28862 textcolor[gray]{0.8}
28872 \begin_inset Note Greyedout
28875 \begin_layout Plain Layout
28880 \begin_layout Plain Layout
28881 This is an example footnote within a greyed out note.
28886 of a comment that appears in the output as grey text.
28895 \begin_layout Plain Layout
28899 renewenvironment{lyxgreyedout}
28902 \begin_layout Plain Layout
28916 \begin_inset Note Note
28919 \begin_layout Plain Layout
28920 The greyed out note is here redefined to show it with the original LyX definitio
28921 n because greyed out notes are redefined in the preamble of this document,
28922 as described below, to have blue text.
28928 \begin_inset Newline newline
28932 \begin_inset Newline newline
28935 As you can see in the example, the first line of greyed out notes is a bit
28936 indented and greyed out notes can have footnotes.
28939 \begin_layout Standard
28940 \begin_inset VSpace bigskip
28943 When you use the toolbar button
28956 \begin_inset space ~
28962 You can switch between the three note types by right-clicking on the note-box.
28967 If you want to turn existing text into a note, mark it and click on the
28981 To change a note to text, press the backspace key when the cursor is in
28982 the first position of a note, or press the delete key when the cursor is
28983 in the very last position of the note, respectively.
28986 \begin_layout Standard
28987 \begin_inset VSpace bigskip
28990 You can change the text color of the greyed out notes in the menu
28992 Document\SpecialChar \menuseparator
28993 Settings\SpecialChar \menuseparator
28999 \begin_layout Section
29001 \begin_inset CommandInset label
29003 name "sec:Footnotes"
29008 \begin_inset Index idx
29011 \begin_layout Plain Layout
29018 \begin_inset Index idx
29021 \begin_layout Plain Layout
29030 \begin_layout Standard
29031 Footnotes can be inserted using the toolbar button
29036 arg "footnote-insert"
29043 Insert\SpecialChar \menuseparator
29047 You will then see the following footnote-box:
29048 \begin_inset Graphics
29049 filename clipart/footnoteQt4.png
29051 scaleBeforeRotation
29059 where you can enter the footnote text.
29060 If you want to turn existing text into a footnote, mark it and click on
29086 key when the cursor is in the first position of a
29098 key when the cursor is in the very last position of the
29109 \begin_layout Standard
29110 Here is an example footnote:
29118 \begin_layout Plain Layout
29119 \begin_inset CommandInset label
29121 name "foot:This-is-an"
29125 This is an example footnote.
29138 \begin_layout Plain Layout
29142 newcounter{MyRepeatFoot}
29145 \begin_layout Plain Layout
29149 setcounter{MyRepeatFoot}{
29159 \begin_layout Standard
29160 The footnote will appear in the output as a superscript number at the text
29161 position where the footnote box is placed.
29162 The footnote text is placed at the bottom of the current page.
29163 The footnote number is calculated by LaTeX; the numbers are consecutive.
29164 Whether the footnote number is reset for every chapter depends on your
29168 \begin_layout Standard
29169 Footnotes can be referenced like floats: Insert a label into the footnote
29170 and cross-reference this label in the text as described in section
29171 \begin_inset space ~
29175 \begin_inset CommandInset ref
29177 reference "sec:Referencing-Floats"
29182 \begin_inset Newline newline
29185 This is a cross-reference of Footnote
29186 \begin_inset space ~
29190 \begin_inset CommandInset ref
29192 reference "foot:This-is-an"
29199 \begin_layout Standard
29200 \begin_inset VSpace defskip
29203 Footnotes in tables are not printed by LaTeX due to technical reasons.
29204 However there exists another method to print them: Instead of the footnote
29211 is inserted as TeX-code.
29212 The text of the footnote is entered as an argument of the TeX-code command
29220 \begin_inset Newline newline
29223 This was done for the following table with the command
29226 \begin_layout Standard
29233 Printed table footnote.
29238 \begin_layout Standard
29239 \begin_inset Tabular
29240 <lyxtabular version="3" rows="2" columns="1">
29241 <features tabularvalignment="middle">
29242 <column alignment="center" valignment="top" width="0">
29244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29247 \begin_layout Plain Layout
29248 This an example text.
29252 \begin_layout Plain Layout
29253 This footnote will not be printed!
29265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29268 \begin_layout Plain Layout
29269 This an example text.
29273 \begin_layout Plain Layout
29296 \begin_layout Plain Layout
29305 Printed table footnote.
29309 \begin_layout Plain Layout
29319 \begin_layout Standard
29320 Footnotes in longtables are described in section
29321 \begin_inset space ~
29325 \begin_inset CommandInset ref
29327 reference "sub:Footnotes-in-Longtables"
29334 \begin_layout Standard
29335 Footnotes in minipage boxes are printed, but inside the box and with a different
29336 numbering because a minipage box is like a page inside a page.
29337 (For more about minipages, see section
29338 \begin_inset space ~
29342 \begin_inset CommandInset ref
29344 reference "sec:Minipages"
29348 .) To get a footnote in the minipage that is output at the bottom of the
29349 page like normal footnotes, also use the method of
29364 \begin_layout Standard
29365 \begin_inset Box Frameless
29375 height_special "totalheight"
29378 \begin_layout Plain Layout
29379 This an example text in a minipage.
29383 \begin_layout Plain Layout
29384 Footnote in the minipage.
29392 \begin_layout Plain Layout
29393 This an example text in a minipage.
29397 \begin_layout Plain Layout
29414 \begin_layout Standard
29418 \begin_layout Plain Layout
29427 Footnote outside the minipage.
29431 \begin_layout Plain Layout
29441 \begin_layout Standard
29442 \begin_inset VSpace defskip
29448 \begin_layout Standard
29449 To refer to the same footnote several times without printing the footnote
29450 text every time, use the command
29454 footnotemark[number]
29457 \begin_inset Newline newline
29460 As you do not know the number of the repeating footnote while you are writing
29461 the text, you have to store its number.
29462 For the following footnote mark example, these commands were inserted in
29463 TeX-code after Footnote
29464 \begin_inset space ~
29468 \begin_inset CommandInset ref
29470 reference "foot:This-is-an"
29474 to store the footnote number:
29477 \begin_layout Standard
29482 newcounter{MyRepeatFoot}
29483 \begin_inset Newline newline
29488 setcounter{MyRepeatFoot}{
29493 \begin_layout Standard
29494 The footnote mark was then created with this command:
29497 \begin_layout Standard
29507 \begin_layout Standard
29508 Here is a repeated footnote:
29516 \begin_layout Plain Layout
29530 \begin_layout Standard
29531 If you want to repeat the previous footnote, you can omit the storage of
29532 the footnote number and just use this command instead:
29535 \begin_layout Standard
29545 \begin_layout Standard
29546 Here is another repeated footnote:
29554 \begin_layout Plain Layout
29568 \begin_layout Subsection
29570 \begin_inset CommandInset label
29572 name "sub:Footnote-Numbering"
29577 \begin_inset Index idx
29580 \begin_layout Plain Layout
29581 Footnotes ! Numbering
29589 \begin_layout Standard
29590 To reset the footnote number back to 1 after each section
29592 , add this command to your document preamble:
29595 \begin_layout Standard
29600 @addtoreset{footnote}{section}
29603 \begin_layout Standard
29604 \begin_inset VSpace bigskip
29607 The following preamble command changes the footnote numbering style to small
29611 \begin_layout Standard
29623 \begin_layout Standard
29627 \begin_layout Plain Layout
29640 This is a footnote with roman numbering:
29644 \begin_layout Plain Layout
29645 This is an example footnote with roman numbering.
29653 \begin_layout Standard
29654 To change the numbering style to capital roman numerals replace in the command
29669 \begin_inset Quotes eld
29673 \begin_inset Quotes erd
29676 footnotes with capital or small Latin letters use
29690 \begin_inset Quotes eld
29694 \begin_inset Quotes erd
29697 footnotes with symbols use
29706 \begin_layout Standard
29707 \begin_inset Note Greyedout
29710 \begin_layout Plain Layout
29715 You can only number 26 footnotes with Latin letters, because this numbering
29716 is limited to single letters.
29722 \begin_inset Newline newline
29726 \begin_inset Note Greyedout
29729 \begin_layout Plain Layout
29734 You can only number 9 footnotes with symbols.
29742 \begin_layout Standard
29743 To return to the default numbering style after you have changed to another
29756 in the command above.
29760 \begin_layout Plain Layout
29776 \begin_layout Standard
29777 \begin_inset VSpace bigskip
29783 \begin_layout Standard
29784 If you want to have footnotes numbered in the scheme
29785 \begin_inset Quotes eld
29789 \begin_inset Quotes erd
29792 , add the following command to your document preamble:
29795 \begin_layout Standard
29800 numberwithin{footnote}{chapter}
29803 \begin_layout Standard
29804 To be able to use the command
29813 \begin_inset space ~
29818 in the document settings the option
29821 \begin_inset space ~
29825 \begin_inset space ~
29829 \begin_inset space ~
29837 \begin_layout Standard
29841 \begin_layout Plain Layout
29845 numberwithin{footnote}{chapter}
29850 This is another example footnote:
29856 \begin_layout Plain Layout
29857 This is a footnote numbered in the scheme
29858 \begin_inset Quotes eld
29862 \begin_inset Quotes erd
29876 \begin_layout Plain Layout
29892 \begin_layout Standard
29893 \begin_inset Note Greyedout
29896 \begin_layout Plain Layout
29907 always prints out the footnote number as arabic number; previous redefinitions
29908 to get non-arabic numbers are overwritten.
29916 \begin_layout Standard
29917 So to get for example the scheme
29918 \begin_inset Quotes eld
29924 \begin_inset Quotes erd
29927 , use this command instead of
29936 \begin_layout Standard
29950 \begin_layout Subsection
29952 \begin_inset Index idx
29955 \begin_layout Plain Layout
29956 Footnotes ! Placement
29964 \begin_layout Standard
29965 If you have several footnotes in one page, they appear without vertical
29966 space between them at the bottom of the page.
29967 To make them more readable you can e.
29968 \begin_inset space \thinspace{}
29972 \begin_inset space \space{}
29976 \begin_inset space \thinspace{}
29979 mm space with the following preamble command:
29982 \begin_layout Standard
29992 \begin_inset Newline newline
30006 \begin_layout Standard
30007 \begin_inset VSpace bigskip
30010 In a two-column document the footnotes appear at the bottom of every column,
30012 \begin_inset space ~
30016 \begin_inset CommandInset ref
30018 reference "fig:Standard-footnote-placement"
30023 If the footnotes should only appear at the bottom of the right column,
30025 \begin_inset space ~
30029 \begin_inset CommandInset ref
30031 reference "fig:Footnote-placement-in"
30035 , use the LaTeX-package
30040 \begin_inset Index idx
30043 \begin_layout Plain Layout
30044 LaTeX-packages ! ftnright
30049 with this command in the document preamble:
30052 \begin_layout Standard
30057 usepackage{ftnright}
30060 \begin_layout Standard
30061 \begin_inset Float figure
30067 \begin_layout Plain Layout
30071 \begin_layout Plain Layout
30081 \begin_inset Graphics
30082 filename clipart/without_fntright.pdf
30084 scaleBeforeRotation
30092 \begin_layout Plain Layout
30102 \begin_layout Plain Layout
30103 \begin_inset Caption
30105 \begin_layout Plain Layout
30106 \begin_inset CommandInset label
30108 name "fig:Standard-footnote-placement"
30112 Standard footnote placement in two-column documents.
30125 \begin_layout Standard
30126 \begin_inset Float figure
30132 \begin_layout Plain Layout
30136 \begin_layout Plain Layout
30146 \begin_inset Graphics
30147 filename clipart/with_fntright.pdf
30149 scaleBeforeRotation
30157 \begin_layout Plain Layout
30167 \begin_layout Plain Layout
30168 \begin_inset Caption
30170 \begin_layout Plain Layout
30171 \begin_inset CommandInset label
30173 name "fig:Footnote-placement-in"
30177 Footnote placement in two-column documents when the LaTeX-package
30194 \begin_layout Standard
30195 \begin_inset VSpace bigskip
30198 In some scientific literature it is usual to collect the footnotes and print
30199 them in a separate paragraph at the end of a section, as in Figure
30200 \begin_inset space ~
30204 \begin_inset CommandInset ref
30206 reference "fig:Endnotes"
30211 They are then called
30212 \begin_inset Quotes eld
30216 \begin_inset Quotes erd
30220 \begin_inset Index idx
30223 \begin_layout Plain Layout
30229 To use endnotes instead of footnotes in your document, load in the menu
30232 Document\SpecialChar \menuseparator
30233 Settings\SpecialChar \menuseparator
30239 \begin_inset space ~
30243 \begin_inset space ~
30249 To insert the collected footnotes, insert the command
30252 \begin_layout Standard
30260 \begin_layout Standard
30261 in TeX-Code at the end of a section or chapter.
30264 \begin_layout Standard
30265 \begin_inset Float figure
30270 \begin_layout Plain Layout
30275 \begin_layout Plain Layout
30285 \begin_inset Graphics
30286 filename clipart/endnotes.pdf
30287 scaleBeforeRotation
30295 \begin_layout Plain Layout
30305 \begin_layout Plain Layout
30306 \begin_inset Caption
30308 \begin_layout Plain Layout
30309 \begin_inset CommandInset label
30311 name "fig:Endnotes"
30315 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30329 \begin_layout Standard
30330 \begin_inset VSpace medskip
30333 The paragraph heading for the endnotes isn't automatically translated into
30334 the document language, this must be done manually.
30335 The following preamble command translates the default English
30336 \begin_inset Quotes eld
30340 \begin_inset Quotes erd
30344 \begin_inset Quotes eld
30348 \begin_inset Quotes erd
30354 \begin_layout Standard
30361 notesname}{Anmerkungen}
30364 \begin_layout Standard
30365 \begin_inset VSpace medskip
30368 The numbering of endnotes can be changed like the footnote numbering as
30369 described in section
30370 \begin_inset space ~
30374 \begin_inset CommandInset ref
30376 reference "sub:Footnote-Numbering"
30380 ; just replace the command
30393 To reset the endnote number use the command
30399 as described in section
30400 \begin_inset space ~
30404 \begin_inset CommandInset ref
30406 reference "sub:Footnote-Numbering"
30410 and replace the command parameter
30421 \begin_layout Standard
30422 For endnotes there is the command
30426 endnotemark[number]
30428 similar to the command
30434 , that is described in section
30435 \begin_inset space ~
30439 \begin_inset CommandInset ref
30441 reference "sec:Footnotes"
30448 \begin_layout Standard
30449 \begin_inset VSpace bigskip
30452 Footnotes can also be placed in the page margin and the footnote text alignment
30453 can be changed, see the LaTeX-package
30458 \begin_inset Index idx
30461 \begin_layout Plain Layout
30462 LaTeX-packages ! footmisc
30468 \begin_inset CommandInset citation
30474 for more information about this.
30477 \begin_layout Standard
30478 For various further footnote formatting issues have a look at LaTeX-books,
30480 \begin_inset CommandInset citation
30482 key "latexcompanion,latexguide,latexbook"
30492 \begin_inset Index idx
30495 \begin_layout Plain Layout
30496 LaTeX-packages ! KOMA-Script
30501 document class, you can adjust all footnote settings using class-specific
30503 \begin_inset CommandInset citation
30512 \begin_layout Section
30514 \begin_inset Index idx
30517 \begin_layout Plain Layout
30518 Notes ! Margin Notes
30526 \begin_layout Standard
30527 Margin notes look and behave in LyX like footnotes.
30528 They are inserted via the menu
30530 Insert\SpecialChar \menuseparator
30532 \begin_inset space ~
30537 or the toolbar button
30542 arg "marginalnote-insert"
30558 \begin_inset Quotes eld
30562 \begin_inset Quotes erd
30565 appears where you can enter the text of the margin note.
30568 \begin_layout Standard
30569 At the side is an example margin note.
30574 \begin_inset Marginal
30577 \begin_layout Plain Layout
30578 This is a margin note.
30586 \begin_layout Standard
30587 Margin notes appear at the right side in single-sided documents.
30588 In double-sided documents they appear in the outer margin – left on even
30589 pages, right on odd pages.
30590 The text of margin notes is aligned opposite to the outer margin – right-aligne
30591 d when the note appears in the left margin.
30592 The first line of the margin note is placed at the position of the text
30593 line where it is inserted in the document.
30596 \begin_layout Standard
30597 \begin_inset VSpace bigskip
30600 To place the margin note in the inner margin, add the command
30603 \begin_layout Standard
30611 \begin_layout Standard
30612 in TeX-Code before a margin note.
30613 The new placement is valid for all subsequent margin notes.
30618 \begin_layout Plain Layout
30628 \begin_inset Marginal
30631 \begin_layout Plain Layout
30632 This is a margin note in the inner margin.
30640 \begin_inset Newline newline
30646 \begin_inset Note Greyedout
30649 \begin_layout Plain Layout
30654 There is often not enough space in the inner margin so that the notes are
30655 not correctly displayed in the output.
30663 \begin_layout Standard
30664 To return to the default placement insert the command
30667 \begin_layout Standard
30675 \begin_layout Standard
30680 \begin_layout Plain Layout
30690 \begin_inset Note Greyedout
30693 \begin_layout Plain Layout
30698 The command is ignored when it is within a paragraph where also the command
30713 \begin_layout Standard
30714 \begin_inset VSpace bigskip
30721 \begin_inset Marginal
30724 \begin_layout Plain Layout
30725 AVeryLongMarginParWord that isn't hyphenated.
30733 Similar to the case described in section
30734 \begin_inset space ~
30738 \begin_inset CommandInset ref
30740 reference "sub:Multiple-Lines-in"
30744 , long words cannot be hyphenated when they are the first word in a margin
30746 To avoid this, insert 0
30747 \begin_inset space \thinspace{}
30750 pt horizontal space before the word
30755 \begin_inset Marginal
30758 \begin_layout Plain Layout
30759 \begin_inset space \hspace*{}
30763 AVeryLongMarginParWord that is hyphenated.
30771 \begin_layout Standard
30772 \begin_inset VSpace bigskip
30778 \begin_layout Standard
30779 \begin_inset Note Greyedout
30782 \begin_layout Plain Layout
30787 Margin notes can normally not be used inside tables, floats, and footnotes.
30795 \begin_layout Standard
30796 \begin_inset VSpace bigskip
30802 \begin_layout Standard
30806 \begin_layout Plain Layout
30816 \begin_inset Note Note
30819 \begin_layout Plain Layout
30820 The following section will only be displayed when the LaTeX-package
30832 \begin_layout Standard
30833 This restriction can be evaded by using the LaTeX-package
30838 \begin_inset Index idx
30841 \begin_layout Plain Layout
30842 LaTeX-packages ! marginnote
30848 By adding these two lines to your document preamble, the command used by
30849 LyX for margin notes is redefined to use the command provided by the
30856 \begin_layout Standard
30861 usepackage{marginnote}
30862 \begin_inset Newline newline
30874 \begin_layout Standard
30875 This is also used in this document because
30879 has another useful feature: You can set a vertical offset for the note.
30880 This is often needed when too many margin notes are too close together
30881 or for a better page layout.
30882 The offset is set in LyX as TeX-Code directly after the margin note in
30886 \begin_layout Standard
30892 \begin_layout Standard
30893 where the offset is a length with one of the units listed in Table
30894 \begin_inset space ~
30898 \begin_inset CommandInset ref
30900 reference "tab:Units"
30905 A negative value shifts the note up, a positive value shifts it down.
30909 For example the margin note beside this text line is shifted up 1.5
30910 \begin_inset space \thinspace{}
30913 cm with the TeX-Code-command
30914 \begin_inset Quotes eld
30924 \begin_inset Quotes erd
30928 \begin_inset Marginal
30931 \begin_layout Plain Layout
30932 This margin note is shifted up 1.5
30933 \begin_inset space \thinspace{}
30936 cm from its original position.
30948 \begin_layout Plain Layout
30958 \begin_layout Standard
30959 \begin_inset VSpace medskip
30966 you can also change the alignment of the text in the margin note.
30967 For example the commands
30970 \begin_layout Standard
30977 raggedleftmarginnote}{
30980 \begin_inset Newline newline
30987 raggedrightmarginnote}{
30992 \begin_layout Standard
30993 set the alignment to centered.
30998 raggedleftmarginnote
31000 denotes margin notes that appear at the left side.
31007 \begin_layout Plain Layout
31013 raggedleftmarginnote}{
31018 \begin_layout Plain Layout
31024 raggedrightmarginnote}{
31032 \begin_inset Marginal
31035 \begin_layout Plain Layout
31036 The text of this margin note is centered.
31047 \begin_layout Standard
31054 raggedleftmarginnote}{
31057 \begin_inset Newline newline
31064 raggedrightmarginnote}{
31073 \begin_layout Plain Layout
31079 raggedleftmarginnote}{
31084 \begin_layout Plain Layout
31090 raggedrightmarginnote}{
31100 \begin_layout Standard
31101 \begin_inset VSpace medskip
31104 For the other features of
31108 refer to its documentation
31109 \begin_inset CommandInset citation
31118 \begin_layout Standard
31119 \begin_inset VSpace bigskip
31122 You can adjust the layout of margin notes by changing its definition.
31123 To create for example a header for all margin notes with the underlined,
31124 sans-serif, and bold header text
31125 \begin_inset Quotes eld
31137 \begin_inset Quotes erd
31140 , add this to your document preamble:
31143 \begin_layout Standard
31153 \begin_inset Newline newline
31163 \begin_inset Newline newline
31167 \begin_inset Phantom HPhantom
31170 \begin_layout Plain Layout
31173 \begin_inset space ~
31189 underbar{Attention!}}}%
31190 \begin_inset Newline newline
31194 \begin_inset Phantom HPhantom
31197 \begin_layout Plain Layout
31200 \begin_inset space ~
31217 \begin_layout Standard
31224 \begin_layout Plain Layout
31235 \begin_layout Plain Layout
31246 \begin_layout Plain Layout
31254 underbar{Attention!}}}%
31257 \begin_layout Plain Layout
31271 \begin_inset Marginal
31274 \begin_layout Plain Layout
31275 This is a margin note with a defined heading.
31287 \begin_layout Plain Layout
31301 \begin_layout Plain Layout
31318 \begin_inset Note Note
31321 \begin_layout Plain Layout
31322 The margin note format is changed only for this example.
31330 \begin_layout Standard
31334 \begin_layout Plain Layout
31344 \begin_inset Note Note
31347 \begin_layout Plain Layout
31348 The following will be displayed when the LaTeX-package
31360 \begin_layout Standard
31361 You need to install the LaTeX-package
31365 to see the following part of this section in the output.
31368 \begin_layout Standard
31372 \begin_layout Plain Layout
31384 \begin_layout Chapter
31388 \begin_layout Section
31390 \begin_inset Index idx
31393 \begin_layout Plain Layout
31394 Boxes ! Introduction
31402 \begin_layout Standard
31403 Boxes are used to format a block of text.
31404 Boxes can be used to write documents with multiple languages, see section
31405 \begin_inset space ~
31409 \begin_inset CommandInset ref
31411 reference "sec:Minipages"
31415 , to frame texts, see section
31416 \begin_inset space ~
31420 \begin_inset CommandInset ref
31422 reference "sec:Decoration"
31426 , to prevent words from being hyphenated, see section
31427 \begin_inset space ~
31431 \begin_inset CommandInset ref
31433 reference "sec:Prevent-Hyphenation"
31437 , to align text, see section
31438 \begin_inset space ~
31442 \begin_inset CommandInset ref
31444 reference "sub:Vertical-Alignment"
31448 , or to set the background color of texts, see section
31449 \begin_inset space ~
31453 \begin_inset CommandInset ref
31455 reference "sec:Colored-Boxes"
31462 \begin_layout Standard
31463 Boxes can be inserted with the menu
31465 Insert\SpecialChar \menuseparator
31468 or the toolbar button
31473 arg "box-insert Frameless"
31479 A grey box with the label
31484 \begin_inset Graphics
31485 filename clipart/BoxInsetDefaultQt4.png
31487 scaleBeforeRotation
31492 The box type can be specified by right-clicking on the box and selecting
31498 The box dialog offers the
31501 \begin_inset space ~
31523 is the default for new boxes and is explained in section
31524 \begin_inset space ~
31528 \begin_inset CommandInset ref
31530 reference "sec:Minipages"
31538 is described in section
31539 \begin_inset space ~
31543 \begin_inset CommandInset ref
31545 reference "sec:Parboxes"
31554 \begin_inset CommandInset ref
31556 reference "sec:Prevent-Hyphenation"
31563 \begin_layout Standard
31564 Boxes are not numbered and can therefore not be referenced like floats or
31568 \begin_layout Standard
31569 \begin_inset Note Greyedout
31572 \begin_layout Plain Layout
31577 Boxes must not be the item in an
31593 \begin_layout Standard
31594 \begin_inset Note Greyedout
31597 \begin_layout Plain Layout
31602 For an unknown reason you can only set the
31605 \begin_inset space ~
31614 when you use a framed box.
31618 \begin_inset space ~
31623 type and without frames are explained in section
31624 \begin_inset space ~
31628 \begin_inset CommandInset ref
31630 reference "sec:Prevent-Hyphenation"
31642 \begin_layout Section
31644 \begin_inset CommandInset label
31646 name "sec:Box-Dialog"
31651 \begin_inset Index idx
31654 \begin_layout Plain Layout
31663 \begin_layout Subsection
31665 \begin_inset Index idx
31668 \begin_layout Plain Layout
31677 \begin_layout Standard
31678 In the box dialog you can adjust the box geometry in the fields
31687 The available units for the geometry are explained in Table
31688 \begin_inset space ~
31692 \begin_inset CommandInset ref
31694 reference "tab:Units"
31703 offers the following additional sizes:
31706 \begin_layout Description
31707 Depth This is the plain text
31708 \begin_inset Quotes eld
31712 \begin_inset Quotes erd
31716 It ignores the total depth when there are multiple text lines in the box:
31717 \begin_inset Newline newline
31721 \begin_inset Newline newline
31725 \begin_inset Newline newline
31729 \begin_inset Box Boxed
31739 height_special "depth"
31742 \begin_layout Plain Layout
31744 Box height set to 1
31745 \begin_inset space \thinspace{}
31754 \begin_inset Newline newline
31758 \begin_inset Newline newline
31764 \begin_layout Description
31765 Height This is the height of the text that is inside the box.
31767 \begin_inset space \thinspace{}
31771 \begin_inset space \space{}
31774 2 for this size will set the box height to 2
31775 \begin_inset space ~
31778 times the text height:
31779 \begin_inset Box Boxed
31789 height_special "height"
31792 \begin_layout Plain Layout
31794 Box height set to 2
31795 \begin_inset space \thinspace{}
31806 \begin_layout Description
31808 \begin_inset space ~
31811 Height This is the Height
31812 \begin_inset space \thinspace{}
31816 \begin_inset space \thinspace{}
31820 \begin_inset Box Boxed
31830 height_special "totalheight"
31833 \begin_layout Plain Layout
31835 Box height set to 1
31836 \begin_inset space \thinspace{}
31840 \begin_inset space ~
31851 \begin_layout Description
31852 Width This sets the width of the box as height:
31853 \begin_inset Box Boxed
31863 height_special "width"
31866 \begin_layout Plain Layout
31868 Box height set to 1
31869 \begin_inset space \thinspace{}
31880 \begin_layout Subsection
31882 \begin_inset Index idx
31885 \begin_layout Plain Layout
31894 \begin_layout Standard
31895 When you have chosen an
31898 \begin_inset space ~
31903 , the vertical box alignment can be:
31906 \begin_layout Description
31907 Top This is an example text line.
31909 \begin_inset Box Boxed
31919 height_special "totalheight"
31922 \begin_layout Plain Layout
31924 This box is top-aligned.
31929 This is an example text line.
31932 \begin_layout Description
31933 Middle This is an example text line.
31935 \begin_inset Box Boxed
31945 height_special "totalheight"
31948 \begin_layout Plain Layout
31950 This box is middle-aligned.
31955 This is an example text line.
31958 \begin_layout Description
31959 Bottom This is an example text line.
31961 \begin_inset Box Boxed
31971 height_special "totalheight"
31974 \begin_layout Plain Layout
31976 This box is bottom-aligned.
31981 This is an example text line.
31984 \begin_layout Standard
31985 \begin_inset Note Greyedout
31988 \begin_layout Plain Layout
31993 The vertical box alignment can be lost in the output when you have two
31994 boxes in a line and one has e.
31995 \begin_inset space \thinspace{}
31999 \begin_inset space \space{}
32002 a shadow and the other one not.
32010 \begin_layout Standard
32011 The horizontal box alignment can be set via LyX's paragraph dialog when
32012 you set the box into its own paragraph.
32015 \begin_layout Standard
32016 \begin_inset VSpace bigskip
32019 When you have chosen an
32022 \begin_inset space ~
32027 , the box content can be aligned vertically to:
32030 \begin_layout Description
32031 top This is an example text line.
32033 \begin_inset Box Boxed
32043 height_special "totalheight"
32046 \begin_layout Plain Layout
32048 This box text is top-aligned.
32053 This is an example text line.
32056 \begin_layout Description
32057 middle This is an example text line.
32059 \begin_inset Box Boxed
32069 height_special "totalheight"
32072 \begin_layout Plain Layout
32074 This box text is middle-aligned.
32079 This is an example text line.
32082 \begin_layout Description
32083 bottom This is an example text line.
32085 \begin_inset Box Boxed
32095 height_special "totalheight"
32098 \begin_layout Plain Layout
32100 This box text is bottom-aligned.
32105 This is an example text line.
32108 \begin_layout Description
32109 stretch This is an example text line.
32111 \begin_inset Box Boxed
32121 height_special "totalheight"
32124 \begin_layout Plain Layout
32129 \begin_layout Plain Layout
32134 \begin_layout Plain Layout
32141 This is an example text line.
32144 \begin_layout Standard
32145 To stretch the box content, it must consist of more than one paragraph.
32146 In the example above every text line is in an own paragraph.
32149 \begin_layout Standard
32150 \begin_inset VSpace bigskip
32153 To align the box content horizontally you can use LyX's paragraph dialog
32154 when you have chosen an
32157 \begin_inset space ~
32165 \begin_layout Standard
32167 \begin_inset Box Boxed
32177 height_special "totalheight"
32180 \begin_layout Plain Layout
32185 \begin_layout Plain Layout
32190 \begin_layout Plain Layout
32200 \begin_layout Standard
32201 If you have not set an
32204 \begin_inset space ~
32209 , you can align the box content horizontally in the box dialog.
32212 \begin_layout Standard
32214 \begin_inset Box Boxed
32224 height_special "totalheight"
32227 \begin_layout Plain Layout
32228 This box text is horizontally stretched.
32236 \begin_layout Subsection
32238 \begin_inset CommandInset label
32240 name "sec:Decoration"
32245 \begin_inset Index idx
32248 \begin_layout Plain Layout
32257 \begin_layout Standard
32258 The type of the box can be specified in the box dialog in the drop-down
32264 The following types are possible:
32267 \begin_layout Description
32269 \begin_inset space ~
32272 frame Nothing is drawn.
32275 \begin_layout Description
32277 \begin_inset space ~
32281 \begin_inset space ~
32284 frame This draws a rectangular frame around the box.
32285 The frame line thickness has the size of
32293 \begin_inset Box Boxed
32303 height_special "totalheight"
32306 \begin_layout Plain Layout
32316 \begin_layout Description
32318 \begin_inset space ~
32322 \begin_inset space ~
32325 thin This draws an oval frame around the box.
32326 The frame line thickness has the size 0.4
32327 \begin_inset space \thinspace{}
32332 \begin_inset Box ovalbox
32342 height_special "totalheight"
32345 \begin_layout Plain Layout
32355 \begin_layout Description
32357 \begin_inset space ~
32361 \begin_inset space ~
32364 thick This draws an oval frame around the box.
32365 The frame line thickness has the size 0.8
32366 \begin_inset space \thinspace{}
32371 \begin_inset Box Ovalbox
32381 height_special "totalheight"
32384 \begin_layout Plain Layout
32394 \begin_layout Description
32396 \begin_inset space ~
32399 shadow This draws a rectangular frame with a shadow around the box.
32400 The frame line thickness has the size of
32406 , the shadow has a width of 4
32407 \begin_inset space \thinspace{}
32412 \begin_inset Box Shadowbox
32422 height_special "totalheight"
32425 \begin_layout Plain Layout
32435 \begin_layout Description
32437 \begin_inset space ~
32440 background This draws a box with a red background.
32441 Unlike colored boxes
32445 \begin_layout Plain Layout
32447 \begin_inset space \thinspace{}
32451 \begin_inset CommandInset ref
32453 reference "sec:Colored-Boxes"
32462 , it always uses the whole column width and the box is set as its own paragraph.
32464 \begin_inset Box Shaded
32474 height_special "totalheight"
32477 \begin_layout Plain Layout
32478 Shaded background box
32486 \begin_layout Description
32488 \begin_inset space ~
32492 \begin_inset space ~
32495 frame This draws a double-line rectangular frame around the box.
32496 The line thickness of the inner frame is 0.75
32497 \begin_inset space \thinspace{}
32506 , the thickness of the outer frame is 1.5
32507 \begin_inset space \thinspace{}
32517 The distance between the lines is 1.5
32518 \begin_inset space \thinspace{}
32528 \begin_inset space \thinspace{}
32532 \begin_inset space \thinspace{}
32536 \begin_inset space \thinspace{}
32541 \begin_inset Box Doublebox
32551 height_special "totalheight"
32554 \begin_layout Plain Layout
32556 Double rectangular box
32564 \begin_layout Standard
32565 \begin_inset VSpace bigskip
32568 LyX's box label will reflect the different frame types.
32569 To be able to use all types, the LaTeX-package
32574 \begin_inset Index idx
32577 \begin_layout Plain Layout
32578 LaTeX-packages ! fancybox
32586 \begin_layout Standard
32587 \begin_inset VSpace bigskip
32590 When you use the decoration
32592 simple rectangular frame
32594 and no inner box, you can allow page breaks within a box.
32595 Note that then, unlike other framed boxes, the frame always uses the whole
32596 column width, the box is set as its own paragraph, and
32608 have no effect on this box type.
32609 The frame line thickness has the size of
32617 \begin_inset Box Framed
32627 height_special "totalheight"
32630 \begin_layout Plain Layout
32631 Allow page break box
32639 \begin_layout Section
32641 \begin_inset Index idx
32644 \begin_layout Plain Layout
32645 Boxes ! Customization
32653 \begin_layout Standard
32654 The default value for the size
32661 \begin_inset space \thinspace{}
32665 It can be changed with the following command in TeX-code to e.
32666 \begin_inset space \thinspace{}
32670 \begin_inset space \space{}
32674 \begin_inset space \thinspace{}
32680 \begin_layout Standard
32690 \begin_layout Standard
32694 \begin_layout Plain Layout
32706 \begin_inset Box Boxed
32716 height_special "totalheight"
32719 \begin_layout Plain Layout
32721 Rectangular box with
32728 \begin_inset space \thinspace{}
32732 \begin_inset space \thinspace{}
32736 \begin_inset space \thinspace{}
32748 \begin_layout Plain Layout
32762 \begin_layout Standard
32763 \begin_inset VSpace bigskip
32766 The space between the frame and the box content is for all frame styles
32768 \begin_inset space \thinspace{}
32772 You can change it by setting the length
32779 For example the command
32782 \begin_layout Standard
32792 \begin_layout Standard
32793 sets the value to 10
32794 \begin_inset space \thinspace{}
32797 pt, as with the following box:
32800 \begin_layout Standard
32804 \begin_layout Plain Layout
32816 \begin_inset Box Boxed
32826 height_special "totalheight"
32829 \begin_layout Plain Layout
32831 Rectangular box with
32838 \begin_inset space \thinspace{}
32842 \begin_inset space \thinspace{}
32846 \begin_inset space \thinspace{}
32858 \begin_layout Plain Layout
32872 \begin_layout Standard
32873 \begin_inset VSpace bigskip
32876 The diameter of the round corners of the oval boxes can be set with the
32887 \begin_layout Standard
32895 \begin_layout Standard
32896 sets the diameter to 1
32897 \begin_inset space \thinspace{}
32904 \begin_layout Standard
32912 \begin_layout Standard
32913 sets the diameter to
32916 \begin_inset space \thinspace{}
32920 \begin_inset space \thinspace{}
32923 minimum(width and height of box)
32935 \begin_layout Standard
32939 \begin_layout Plain Layout
32949 \begin_inset Box Ovalbox
32959 height_special "totalheight"
32962 \begin_layout Plain Layout
32971 \begin_inset space \thinspace{}
32975 \begin_inset space \thinspace{}
32979 \begin_inset space \thinspace{}
32991 \begin_layout Plain Layout
33003 \begin_layout Standard
33004 \begin_inset VSpace bigskip
33007 The size of the shadow can be adjusted by changing the length
33015 \begin_inset space \thinspace{}
33018 pt for the following box by this command:
33021 \begin_layout Standard
33031 \begin_layout Standard
33035 \begin_layout Plain Layout
33047 \begin_inset Box Shadowbox
33057 height_special "totalheight"
33060 \begin_layout Plain Layout
33069 \begin_inset space \thinspace{}
33073 \begin_inset space \thinspace{}
33077 \begin_inset space \thinspace{}
33089 \begin_layout Plain Layout
33103 \begin_layout Standard
33104 \begin_inset VSpace bigskip
33110 \begin_layout Standard
33111 The default value for the size
33118 \begin_inset space \thinspace{}
33122 The default space between the note content and the frame is 9
33123 \begin_inset space \thinspace{}
33126 pt and can be changed with the value of
33133 For example the frame appearance of the following
33137 is set with the TeX-Code commands
33140 \begin_layout Standard
33148 \begin_inset Newline newline
33158 \begin_layout Standard
33162 \begin_layout Plain Layout
33171 \begin_layout Plain Layout
33183 \begin_inset Box Framed
33193 height_special "totalheight"
33196 \begin_layout Plain Layout
33210 \begin_layout Plain Layout
33219 \begin_layout Plain Layout
33233 \begin_layout Standard
33234 \begin_inset VSpace bigskip
33240 \begin_layout Standard
33245 boxes the default space between the box content and the box border is 3
33246 \begin_inset space \thinspace{}
33249 pt and can be changed with the value of
33256 The default background color red can either be changed locally with the
33261 definecolor{shadecolor}
33263 or globally with the menu
33265 Tools\SpecialChar \menuseparator
33266 Preferences\SpecialChar \menuseparator
33267 Colors\SpecialChar \menuseparator
33269 \begin_inset space ~
33281 command is explained in section
33282 \begin_inset space ~
33286 \begin_inset CommandInset ref
33288 reference "sec:Colored-Tables"
33296 \begin_layout Plain Layout
33303 requires the LaTeX-package
33307 in the preamble, see section
33308 \begin_inset space ~
33312 \begin_inset CommandInset ref
33314 reference "sec:Colored-Boxes"
33323 For example the appearance of the following shaded background box is set
33324 with the TeX-Code commands
33327 \begin_layout Standard
33337 \begin_inset Newline newline
33344 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33347 \begin_layout Standard
33351 \begin_layout Plain Layout
33360 \begin_layout Plain Layout
33364 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33370 \begin_inset Box Shaded
33380 height_special "totalheight"
33383 \begin_layout Plain Layout
33386 This is yellow text in a
33396 box with dark green background.
33405 \begin_layout Plain Layout
33414 \begin_layout Plain Layout
33418 definecolor{shadecolor}{rgb}{1,0,0}
33426 \begin_layout Standard
33427 \begin_inset VSpace bigskip
33430 Changed lengths and widths are valid for all boxes following the commands
33434 \begin_layout Section
33436 \begin_inset CommandInset label
33438 name "sec:Minipages"
33443 \begin_inset Index idx
33446 \begin_layout Plain Layout
33455 \begin_layout Standard
33456 Minipages are treated by LaTeX as pages within pages and can therefore for
33457 example have their own footnotes.
33460 \begin_layout Standard
33461 Minipages are useful when you write documents with different languages.
33464 \begin_layout Standard
33465 Below are two example minipages side by side.
33466 Their width is set to 45
33467 \begin_inset space \thinspace{}
33470 col% and they are separated by a horizontal fill, that was inserted via
33473 Insert\SpecialChar \menuseparator
33475 \begin_inset space ~
33478 Formatting\SpecialChar \menuseparator
33480 \begin_inset space ~
33486 \begin_inset Newpage newpage
33492 \begin_layout Standard
33493 \begin_inset Box Frameless
33503 height_special "totalheight"
33506 \begin_layout Plain Layout
33509 Dies ist ein deutscher Text.
33510 Dies ist ein deutscher Text.
33511 Dies ist ein deutscher Text.
33512 Dies ist ein deutscher Text.
33513 Dies ist ein deutscher Text.
33514 Dies ist ein deutscher Text.
33515 Dies ist ein deutscher Text.
33516 Dies ist ein deutscher Text.
33517 Dies ist ein deutscher Text.
33518 Dies ist ein deutscher Text.
33519 Dies ist ein deutscher Text.
33520 Dies ist ein deutscher Text.
33521 Dies ist ein deutscher Text
33525 \begin_layout Plain Layout
33528 Dies ist eine deutsche Fußnote.
33534 Dies ist ein deutscher Text.
33535 Dies ist ein deutscher Text.
33541 \begin_inset space \hfill{}
33545 \begin_inset Box Frameless
33555 height_special "totalheight"
33558 \begin_layout Plain Layout
33559 This is an English Text.
33560 This is an English Text.
33561 This is an English Text.
33562 This is an English Text.
33563 This is an English Text.
33564 This is an English Text.
33565 This is an English Text.
33566 This is an English Text.
33567 This is an English Text.
33568 This is an English Text.
33569 This is an English Text.
33570 This is an English Text.
33571 This is an English Text.
33572 This is an English Text.
33573 This is an English Text.
33574 This is an English Text.
33578 \begin_layout Plain Layout
33579 This is an English footnote.
33584 This is an English Text.
33592 \begin_layout Standard
33593 \begin_inset VSpace bigskip
33596 The document-wide paragraph settings are ignored within minipages.
33597 That means that there will be no space between paragraphs in minipages
33598 although you set it to e.
33599 \begin_inset space \thinspace{}
33603 \begin_inset space \space{}
33610 in the document settings.
33613 \begin_layout Standard
33614 Minipages can also be used to set a background color for text parts, see
33616 \begin_inset space ~
33620 \begin_inset CommandInset ref
33622 reference "sub:Color-for-Paragraphs"
33629 \begin_layout Standard
33630 \begin_inset Note Greyedout
33633 \begin_layout Plain Layout
33638 You cannot have floats or margin notes inside minipages but minipages can
33639 be used inside tables, floats, and other boxes.
33647 \begin_layout Section
33649 \begin_inset CommandInset label
33651 name "sec:Parboxes"
33656 \begin_inset Index idx
33659 \begin_layout Plain Layout
33668 \begin_layout Standard
33669 Parboxes are very similar to minipages with the difference that they cannot
33673 \begin_layout Standard
33675 \begin_inset Box Frameless
33685 height_special "totalheight"
33688 \begin_layout Plain Layout
33689 This a text within a parbox.
33690 This a text within a parbox.
33693 \begin_layout Plain Layout
33694 This footnote won't appear:
33698 \begin_layout Plain Layout
33699 This footnote is inside a parbox and will therefore not appear.
33712 \begin_layout Section
33713 Boxes for Words and Characters
33714 \begin_inset Index idx
33717 \begin_layout Plain Layout
33718 Boxes ! for Characters
33726 \begin_layout Subsection
33727 Prevent Hyphenation
33728 \begin_inset CommandInset label
33730 name "sec:Prevent-Hyphenation"
33735 \begin_inset Index idx
33738 \begin_layout Plain Layout
33739 Boxes ! to Prevent Hyphenation
33747 \begin_layout Standard
33748 You can use the box type
33752 to prevent words or text from being hyphenated.
33753 \begin_inset Newline newline
33756 Here is an example text:
33759 \begin_layout Standard
33760 This line is an example to show how you can prevent the hyphenation of
33761 \begin_inset Quotes eld
33765 \begin_inset Quotes erd
33771 \begin_layout Standard
33772 To prevent the hyphenation of the word
33773 \begin_inset Quotes eld
33777 \begin_inset Quotes erd
33780 , put the word into a box, set the
33783 \begin_inset space ~
33793 \begin_inset space \thinspace{}
33799 \begin_layout Standard
33800 This is the result:
33803 \begin_layout Standard
33804 This line is an example to show how you can prevent the hyphenation of
33805 \begin_inset Box Frameless
33815 height_special "totalheight"
33818 \begin_layout Plain Layout
33819 \begin_inset Quotes eld
33823 \begin_inset Quotes erd
33834 \begin_layout Standard
33835 You can alternatively set the command
33836 \begin_inset Quotes eld
33846 \begin_inset Quotes grd
33849 as TeX-Code directly before the word:
33852 \begin_layout Standard
33853 This line is an example to show how you can prevent the hyphenation of
33854 \begin_inset Quotes eld
33861 \begin_layout Plain Layout
33871 \begin_inset Quotes erd
33877 \begin_layout Standard
33878 Of course the word now protrudes over the side margin.
33879 To avoid this, add via the menu
33881 Insert\SpecialChar \menuseparator
33882 Formatting\SpecialChar \menuseparator
33884 \begin_inset space ~
33888 \begin_inset space ~
33896 arg "newline-insert newline"
33899 ) a line break before the word:
33902 \begin_layout Standard
33903 This line is an example to show how you can prevent the hyphenation of
33904 \begin_inset Newline newline
33908 \begin_inset Box Frameless
33918 height_special "totalheight"
33921 \begin_layout Plain Layout
33922 \begin_inset Quotes eld
33926 \begin_inset Quotes erd
33937 \begin_layout Subsection
33939 \begin_inset CommandInset label
33941 name "sub:Vertical-Alignment"
33946 \begin_inset Index idx
33949 \begin_layout Plain Layout
33950 Boxes ! for Vertical Alignment
33956 \begin_inset Index idx
33959 \begin_layout Plain Layout
33968 \begin_layout Standard
33969 With the help of the command
33975 you can align words, characters or other boxes vertically relative to the
33983 is used with the following scheme:
33986 \begin_layout Standard
33991 raisebox{lift}[height][depth]{box content}
33994 \begin_layout Standard
33995 The lift can be a positive value to raise the box or a negative value to
33999 \begin_layout Standard
34000 To align for example the word
34001 \begin_inset Quotes eld
34005 \begin_inset Quotes erd
34008 so that the bottom of the
34009 \begin_inset Quotes eld
34013 \begin_inset Quotes erd
34017 \begin_inset Quotes eld
34021 \begin_inset Quotes erd
34024 is at the baseline, insert the command
34027 \begin_layout Standard
34037 \begin_layout Standard
34038 in TeX-Code before the word.
34039 After the word insert a closing brace
34040 \begin_inset Quotes eld
34048 \begin_inset Quotes erd
34052 \begin_inset Newline newline
34055 This is the result:
34058 \begin_layout Standard
34059 This is a text line with the word
34063 \begin_layout Plain Layout
34075 \begin_inset Quotes eld
34079 \begin_inset Quotes erd
34086 \begin_layout Plain Layout
34096 \begin_layout Standard
34097 \begin_inset VSpace bigskip
34100 When you raise or lower characters in a line, the line distance will be
34104 \begin_layout Standard
34105 This is a text line with the word
34109 \begin_layout Plain Layout
34121 \begin_inset Quotes eld
34125 \begin_inset Quotes erd
34132 \begin_layout Plain Layout
34140 \begin_inset Newline newline
34143 This is a text line with the word
34147 \begin_layout Plain Layout
34157 \begin_inset Quotes eld
34161 \begin_inset Quotes erd
34168 \begin_layout Plain Layout
34178 \begin_layout Standard
34179 If you want to prevent this for a certain reason, set the box height to
34184 \begin_layout Standard
34194 \begin_layout Standard
34195 This is a text line with the word
34199 \begin_layout Plain Layout
34211 \begin_inset Quotes eld
34215 \begin_inset Quotes erd
34222 \begin_layout Plain Layout
34230 \begin_inset Newline newline
34233 This is a text line with the word
34237 \begin_layout Plain Layout
34241 raisebox{0.5cm}[0pt]{
34247 \begin_inset Quotes eld
34251 \begin_inset Quotes erd
34258 \begin_layout Plain Layout
34268 \begin_layout Section
34270 \begin_inset CommandInset label
34272 name "sec:Colored-Boxes"
34277 \begin_inset Index idx
34280 \begin_layout Plain Layout
34289 \begin_layout Subsection
34291 \begin_inset Index idx
34294 \begin_layout Plain Layout
34303 \begin_layout Standard
34304 To color the background of text the text must be put into a so called
34305 \begin_inset Quotes eld
34309 \begin_inset Quotes erd
34313 This requires that the LaTeX-package
34318 \begin_inset Index idx
34321 \begin_layout Plain Layout
34322 LaTeX-packages ! color
34327 is loaded in the document preamble with the command
34330 \begin_layout Standard
34335 @ifundefined{textcolor}
34336 \begin_inset Newline newline
34340 \begin_inset Phantom HPhantom
34343 \begin_layout Plain Layout
34346 \begin_inset space ~
34356 usepackage{color}}{}
34359 \begin_layout Standard
34364 will be loaded automatically by LyX when you color text.
34368 \begin_layout Plain Layout
34369 To avoid it being loaded twice the command
34383 \begin_layout Standard
34384 \begin_inset VSpace medskip
34387 Colorboxes are created with the command
34394 This will be used with the following scheme:
34397 \begin_layout Standard
34402 colorbox{color}{box content}
34405 \begin_layout Standard
34406 The box content can also be a box and colorboxes can also be within other
34410 \begin_layout Standard
34411 The following colors are predefined:
34412 \begin_inset Newline newline
34451 \begin_inset Newline newline
34454 You can also define your own color as described in section
34455 \begin_inset space ~
34459 \begin_inset CommandInset ref
34461 reference "sec:Colored-Tables"
34468 \begin_layout Standard
34470 \begin_inset space \thinspace{}
34474 \begin_inset space \space{}
34477 a red background for a word, insert the command
34480 \begin_layout Standard
34488 \begin_layout Standard
34489 before the word in TeX-Code.
34490 After the word insert a closing brace
34491 \begin_inset Quotes eld
34499 \begin_inset Quotes erd
34503 \begin_inset Newline newline
34506 This is the result:
34509 \begin_layout Standard
34510 This is a line where the word
34514 \begin_layout Plain Layout
34524 \begin_inset Quotes eld
34528 \begin_inset Quotes erd
34535 \begin_layout Plain Layout
34542 has a red background.
34545 \begin_layout Standard
34546 \begin_inset VSpace bigskip
34549 If you would like the box frame in a different color, you can use the command
34556 with the following scheme:
34559 \begin_layout Standard
34564 fcolorbox{frame color}{box color}{box content}
34567 \begin_layout Standard
34581 The frame thickness and the space between the frame and the box content
34582 can be adjusted with the lengths
34594 , respectively, as described in section
34595 \begin_inset space ~
34599 \begin_inset CommandInset ref
34601 reference "sec:Decoration"
34608 \begin_layout Standard
34609 For the following example the command
34612 \begin_layout Standard
34617 fcolorbox{cyan}{magenta}{
34620 \begin_layout Standard
34624 \begin_layout Standard
34625 Here is an example where the frame line thickness was set to 1
34626 \begin_inset space \thinspace{}
34630 \begin_inset Newline newline
34637 \begin_layout Plain Layout
34652 \begin_layout Plain Layout
34656 fcolorbox{cyan}{magenta}{
34661 This is text within a colored, framed box.
34665 \begin_layout Plain Layout
34675 \begin_layout Standard
34676 \begin_inset VSpace bigskip
34679 Of course you can also have colored text inside a colorbox:
34680 \begin_inset Newline newline
34687 \begin_layout Plain Layout
34691 fcolorbox{cyan}{magenta}{
34698 This is colored text within a colored, framed box.
34704 \begin_layout Plain Layout
34715 \begin_layout Plain Layout
34729 \begin_layout Standard
34730 \begin_inset VSpace medskip
34736 \begin_layout Standard
34737 \begin_inset Note Greyedout
34740 \begin_layout Plain Layout
34745 Text in colorboxes cannot have line breaks.
34746 To color multiple text lines or paragraphs, use a box inside a colorbox
34747 as described in the following.
34755 \begin_layout Subsection
34756 Color for Paragraphs
34757 \begin_inset CommandInset label
34759 name "sub:Color-for-Paragraphs"
34764 \begin_inset Index idx
34767 \begin_layout Plain Layout
34768 Color ! for Paragraphs
34776 \begin_layout Standard
34777 To set the background color for more than one text line, put the text into
34779 Before the minipage insert the
34788 \begin_layout Standard
34796 \begin_layout Standard
34798 After the minipage insert a closing brace
34799 \begin_inset Quotes eld
34807 \begin_inset Quotes erd
34813 \begin_layout Standard
34817 \begin_layout Plain Layout
34821 colorbox{lightgrey}{
34827 \begin_inset Box Frameless
34837 height_special "totalheight"
34840 \begin_layout Plain Layout
34841 This is text with background color.
34842 This is text with background color.
34845 \begin_layout Plain Layout
34846 \begin_inset VSpace defskip
34849 The text can have footnotes
34853 \begin_layout Plain Layout
34854 Another example footnote
34859 and can include tables and figures.
34862 \begin_layout Plain Layout
34864 \begin_inset Tabular
34865 <lyxtabular version="3" rows="3" columns="3">
34866 <features tabularvalignment="middle">
34867 <column alignment="center" valignment="top" width="0">
34868 <column alignment="center" valignment="top" width="0">
34869 <column alignment="center" valignment="top" width="0">
34871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34874 \begin_layout Plain Layout
34880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34883 \begin_layout Plain Layout
34889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34892 \begin_layout Plain Layout
34900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34903 \begin_layout Plain Layout
34909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34912 \begin_layout Plain Layout
34914 \begin_inset Quotes erd
34922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34925 \begin_layout Plain Layout
34933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34936 \begin_layout Plain Layout
34942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34945 \begin_layout Plain Layout
34951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34954 \begin_layout Plain Layout
34974 \begin_layout Plain Layout
34984 \begin_layout Section
34985 Rotated and Scaled Boxes
34988 \begin_layout Standard
34989 To use the commands described in this section, the LaTeX-package
34994 \begin_inset Index idx
34997 \begin_layout Plain Layout
34998 LaTeX-packages ! graphicx
35003 needs to be loaded in the document preamble with the command
35006 \begin_layout Standard
35011 @ifundefined{rotatebox}
35012 \begin_inset Newline newline
35016 \begin_inset Phantom HPhantom
35019 \begin_layout Plain Layout
35022 \begin_inset space ~
35032 usepackage{graphicx}}{}
35035 \begin_layout Standard
35036 \begin_inset Note Greyedout
35039 \begin_layout Plain Layout
35044 Some DVI-viewers can't display rotated or scaled material.
35052 \begin_layout Standard
35053 \begin_inset Note Greyedout
35056 \begin_layout Plain Layout
35061 Floats mustn't be inside a rotated or scaled box.
35069 \begin_layout Subsection
35071 \begin_inset Index idx
35074 \begin_layout Plain Layout
35081 \begin_inset Index idx
35084 \begin_layout Plain Layout
35091 \begin_inset Index idx
35094 \begin_layout Plain Layout
35101 \begin_inset Index idx
35104 \begin_layout Plain Layout
35105 Table Customization ! Rotating
35113 \begin_layout Standard
35114 To rotate material, you can put it into a rotated box.
35115 Such a box is created using the command
35121 in TeX-Code with the following scheme:
35124 \begin_layout Standard
35129 rotatebox[rotation origin]{rotation angle}{box content}
35132 \begin_layout Standard
35133 The rotation origin is specified in the form
35138 The following positions are possible:
35158 (top), along with meaningful combinations of the four base positions.
35163 means that the rotation origin is at the top left corner of the box.
35164 When no rotation origin is specified, the position
35169 The rotation angle is a number that can be negative that specifies the
35171 The rotation direction is counterclockwise.
35174 \begin_layout Standard
35175 In the following example the command
35179 rotatebox[origin=c]{60}{
35181 was inserted as TeX-Code before the text
35182 \begin_inset Quotes eld
35186 \begin_inset Quotes erd
35189 ; after the text the box was closed by a closing brace
35196 \begin_layout Standard
35201 \begin_layout Plain Layout
35205 rotatebox[origin=c]{60}{
35214 \begin_layout Plain Layout
35224 \begin_layout Standard
35225 The box content can also be another box or an inline formula:
35228 \begin_layout Standard
35233 \begin_layout Plain Layout
35237 rotatebox[origin=r]{-60}{
35243 \begin_inset Box Doublebox
35253 height_special "totalheight"
35256 \begin_layout Plain Layout
35266 \begin_layout Plain Layout
35277 \begin_layout Plain Layout
35281 rotatebox[origin=lb]{60}{
35287 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35294 \begin_layout Plain Layout
35304 \begin_layout Standard
35305 or an image or table:
35308 \begin_layout Standard
35313 \begin_layout Plain Layout
35317 rotatebox[origin=lb]{90}{
35323 \begin_inset Graphics
35324 filename clipart/platypus.eps
35334 \begin_layout Plain Layout
35341 with a rotated image
35345 \begin_layout Plain Layout
35349 rotatebox[origin=l]{-90}{
35355 \begin_inset Tabular
35356 <lyxtabular version="3" rows="2" columns="2">
35357 <features tabularvalignment="middle">
35358 <column alignment="center" valignment="top" width="0">
35359 <column alignment="center" valignment="top" width="0">
35361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35364 \begin_layout Plain Layout
35370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35373 \begin_layout Plain Layout
35381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35384 \begin_layout Plain Layout
35390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35393 \begin_layout Plain Layout
35408 \begin_layout Plain Layout
35418 \begin_layout Subsection
35420 \begin_inset Index idx
35423 \begin_layout Plain Layout
35430 \begin_inset Index idx
35433 \begin_layout Plain Layout
35440 \begin_inset Index idx
35443 \begin_layout Plain Layout
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35454 Table Customization ! Scaling
35462 \begin_layout Standard
35463 To scale material the commands
35475 can be used as TeX-Code.
35478 \begin_layout Standard
35485 is used with the following scheme:
35488 \begin_layout Standard
35493 scalebox{horizontal}[vertical]{box content}
35496 \begin_layout Standard
35497 Horizontal and vertical are the corresponding scaling factors.
35498 If no vertical scaling factor is given, the horizontal factor will also
35499 be used as the vertical one.
35502 \begin_layout Standard
35509 creates for example a double size
35513 \begin_layout Plain Layout
35526 \begin_layout Plain Layout
35533 , compared with the document text size.
35536 \begin_layout Standard
35541 scalebox{2}[1]{Hello}
35543 on the other hand distorts the
35547 \begin_layout Plain Layout
35560 \begin_layout Plain Layout
35570 \begin_layout Standard
35571 If the scaling factor is negative, the box content will be mirrored.
35572 Therefore the command
35576 scalebox{-1}[1]{Hello}
35578 can be used to create mirror writing:
35582 \begin_layout Plain Layout
35595 \begin_layout Plain Layout
35605 \begin_layout Standard
35610 scalebox{1}[-1]{Hello}
35616 \begin_layout Plain Layout
35629 \begin_layout Plain Layout
35639 \begin_layout Standard
35644 scalebox{-1}[1]{box content}
35646 there exists the command
35647 \begin_inset Newline newline
35654 reflectbox{box content}
35659 \begin_layout Standard
35660 \begin_inset VSpace bigskip
35669 is used to scale the box to a defined width and height.
35670 The command scheme is:
35673 \begin_layout Standard
35678 resizebox{width}{height}{box content}
35681 \begin_layout Standard
35682 If one of the two command arguments given is an exclamation mark
35686 , the size is set so that the aspect ratio of the box content is kept.
35689 \begin_layout Standard
35694 resizebox{2cm}{1cm}{Hello}
35700 \begin_layout Plain Layout
35704 resizebox{2cm}{1cm}{
35713 \begin_layout Plain Layout
35721 \begin_inset Newline newline
35728 resizebox{2cm}{!}{Hello}
35734 \begin_layout Plain Layout
35747 \begin_layout Plain Layout
35757 \begin_layout Standard
35758 \begin_inset VSpace bigskip
35762 \begin_inset Note Greyedout
35765 \begin_layout Plain Layout
35782 are set to zero, no LaTeX-errors occur when exporting the document but
35783 the exported files can not or only partly be displayed.
35791 \begin_layout Standard
35792 \begin_inset VSpace bigskip
35798 \begin_layout Standard
35799 The boxes can be combined in any order.
35801 \begin_inset space \thinspace{}
35805 \begin_inset space \space{}
35809 \begin_inset Newline newline
35816 rotatebox[origin=c]{-45}{
35820 reflectbox{Hello}}}
35821 \begin_inset Newline newline
35829 \begin_layout Standard
35834 \begin_layout Plain Layout
35838 rotatebox[origin=c]{-45}{
35851 \begin_layout Plain Layout
35861 \begin_layout Standard
35863 Images, tables, and inline formulas are allowed as box content:
35866 \begin_layout Standard
35871 \begin_layout Plain Layout
35875 rotatebox[origin=c]{-30}{
35885 \begin_inset Graphics
35886 filename clipart/platypus.eps
35896 \begin_layout Plain Layout
35907 \begin_layout Plain Layout
35911 rotatebox[origin=c]{-45}{
35921 \begin_inset Tabular
35922 <lyxtabular version="3" rows="2" columns="2">
35923 <features tabularvalignment="middle">
35924 <column alignment="center" valignment="top" width="0">
35925 <column alignment="center" valignment="top" width="0">
35927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35930 \begin_layout Plain Layout
35936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35939 \begin_layout Plain Layout
35947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35950 \begin_layout Plain Layout
35956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35959 \begin_layout Plain Layout
35974 \begin_layout Plain Layout
35985 \begin_layout Plain Layout
35989 rotatebox[origin=c]{-45}{
35999 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36006 \begin_layout Plain Layout
36016 \begin_layout Standard
36017 When the global formula style
36021 is used in the document
36025 \begin_layout Plain Layout
36027 \begin_inset Quotes eld
36031 \begin_inset Quotes erd
36034 is added to the document class options.
36039 , display style formulas can also be scaled.
36042 \begin_layout Chapter
36043 Objects Surrounded by Text
36044 \begin_inset Index idx
36047 \begin_layout Plain Layout
36056 \begin_layout Section
36058 \begin_inset CommandInset label
36060 name "sec:Wrap-Floats"
36065 \begin_inset Index idx
36068 \begin_layout Plain Layout
36069 Floats ! Wrap Floats
36075 \begin_inset Index idx
36078 \begin_layout Plain Layout
36079 Surrounded by text ! Wrap Floats
36087 \begin_layout Standard
36088 \begin_inset Wrap figure
36095 \begin_layout Plain Layout
36096 \begin_inset Graphics
36097 filename clipart/mobius.eps
36099 scaleBeforeRotation
36100 rotateOrigin center
36107 \begin_layout Plain Layout
36108 \begin_inset Caption
36110 \begin_layout Plain Layout
36111 \begin_inset CommandInset label
36113 name "fig:This-is-a"
36117 This is a figure wrap float.
36127 This float type is used if you want to wrap text around a figure or table
36128 so that it only occupies some fraction of the column width.
36129 It can be inserted using the menu
36131 Insert\SpecialChar \menuseparator
36132 Floats\SpecialChar \menuseparator
36134 \begin_inset space ~
36138 \begin_inset space ~
36146 \begin_inset space ~
36150 \begin_inset space ~
36155 if the LaTeX-package
36160 \begin_inset Index idx
36163 \begin_layout Plain Layout
36164 LaTeX-packages ! wrapfig
36173 \begin_layout Plain Layout
36174 Installing a LaTeX-package is explained it in the
36177 \begin_inset space ~
36187 The settings of the float can be modified by right-clicking on the float
36189 The mandatory settings are the float
36202 that specifies how much the float is set into the paragraph
36203 \begin_inset space \thinspace{}
36207 \begin_inset space \thinspace{}
36210 page margin, and the
36213 \begin_inset space ~
36218 that specifies how many text lines the float will approximately need.
36219 The line span is often hard to approximate; so it is better only to use
36220 it when you encounter float placement problems.
36221 You can furthermore decide if LaTeX is allowed to let the float float within
36222 the paragraph or to surrounding paragraphs.
36224 \begin_inset space ~
36228 \begin_inset CommandInset ref
36230 reference "fig:This-is-a"
36234 is an example text wrap float with a width of 40
36235 \begin_inset space \thinspace{}
36239 \begin_inset space \thinspace{}
36242 cm overhang, set to the left.
36245 \begin_layout Standard
36246 \begin_inset Note Greyedout
36249 \begin_layout Plain Layout
36255 \begin_inset space ~
36258 wrap float floats are fragile! E.
36259 \begin_inset space \thinspace{}
36263 \begin_inset space \space{}
36266 having a figure too close to the bottom of the page can mess things up in
36267 such a way that the float does not appear in the output or that it is placed
36268 over some other text.
36276 \begin_layout Standard
36277 In general, the following applies for wrap floats:
36280 \begin_layout Itemize
36281 They should not be placed in paragraphs that run over a page break.
36282 That means that wrap floats are better inserted in their exact place when
36283 the document is almost finished and you are able to estimate where page
36284 breaks will appear.
36287 \begin_layout Itemize
36288 They should either be placed in their own paragraph before the paragraph
36289 where they should wrap into or within a paragraph.
36292 \begin_layout Itemize
36293 In consecutive paragraphs they may cause troubles, so ensure that there
36294 is a text paragraph between them as separator.
36297 \begin_layout Itemize
36298 They are not allowed in section headings or tables.
36301 \begin_layout Itemize
36302 Their numbering and referencing works as described in chap.
36303 \begin_inset space \thinspace{}
36307 \begin_inset CommandInset ref
36309 reference "chap:Floats"
36316 \begin_layout Section
36317 Surrounded Fixed Objects
36318 \begin_inset Index idx
36321 \begin_layout Plain Layout
36322 Surrounded by text ! Fixed objects
36330 \begin_layout Standard
36331 The wrap floats described in sec.
36332 \begin_inset space \thinspace{}
36336 \begin_inset CommandInset ref
36338 reference "sec:Wrap-Floats"
36342 have these positions in the paragraph:
36345 \begin_layout Standard
36348 \begin_inset Tabular
36349 <lyxtabular version="3" rows="2" columns="2">
36350 <features tabularvalignment="middle">
36351 <column alignment="center" valignment="top" width="0">
36352 <column alignment="center" valignment="top" width="0">
36354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36357 \begin_layout Plain Layout
36358 \begin_inset Graphics
36359 filename ../images/dialog-show-new-inset_graphics.png
36361 scaleBeforeRotation
36370 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36373 \begin_layout Plain Layout
36381 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36384 \begin_layout Plain Layout
36390 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36393 \begin_layout Plain Layout
36405 \begin_inset Tabular
36406 <lyxtabular version="3" rows="2" columns="2">
36407 <features tabularvalignment="middle">
36408 <column alignment="center" valignment="top" width="0">
36409 <column alignment="center" valignment="top" width="0">
36411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36414 \begin_layout Plain Layout
36420 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36423 \begin_layout Plain Layout
36424 \begin_inset Graphics
36425 filename ../images/dialog-show-new-inset_graphics.png
36427 scaleBeforeRotation
36438 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36441 \begin_layout Plain Layout
36447 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36450 \begin_layout Plain Layout
36464 \begin_layout Standard
36465 To get an object exactly at the position where it is inserted, for example
36466 to get one of these positions:
36467 \begin_inset VSpace defskip
36473 \begin_layout Standard
36476 \begin_inset Tabular
36477 <lyxtabular version="3" rows="2" columns="2">
36478 <features tabularvalignment="middle">
36479 <column alignment="center" valignment="top" width="0">
36480 <column alignment="center" valignment="top" width="0">
36482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36485 \begin_layout Plain Layout
36491 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36494 \begin_layout Plain Layout
36502 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36505 \begin_layout Plain Layout
36506 \begin_inset Graphics
36507 filename ../images/dialog-show-new-inset_graphics.png
36509 scaleBeforeRotation
36518 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36521 \begin_layout Plain Layout
36533 \begin_inset Tabular
36534 <lyxtabular version="3" rows="2" columns="2">
36535 <features tabularvalignment="middle">
36536 <column alignment="center" valignment="top" width="0">
36537 <column alignment="center" valignment="top" width="0">
36539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36542 \begin_layout Plain Layout
36548 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36551 \begin_layout Plain Layout
36559 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36562 \begin_layout Plain Layout
36568 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36571 \begin_layout Plain Layout
36572 \begin_inset Graphics
36573 filename ../images/dialog-show-new-inset_graphics.png
36575 scaleBeforeRotation
36590 \begin_inset Tabular
36591 <lyxtabular version="3" rows="2" columns="3">
36592 <features tabularvalignment="middle">
36593 <column alignment="center" valignment="top" width="0">
36594 <column alignment="center" valignment="top" width="0">
36595 <column alignment="center" valignment="top" width="0">
36597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36600 \begin_layout Plain Layout
36606 <cell alignment="center" valignment="top" topline="true" usebox="none">
36609 \begin_layout Plain Layout
36610 \begin_inset Graphics
36611 filename ../images/dialog-show-new-inset_graphics.png
36613 scaleBeforeRotation
36622 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36625 \begin_layout Plain Layout
36633 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36636 \begin_layout Plain Layout
36642 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36645 \begin_layout Plain Layout
36651 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36654 \begin_layout Plain Layout
36666 \begin_inset Tabular
36667 <lyxtabular version="3" rows="2" columns="3">
36668 <features tabularvalignment="middle">
36669 <column alignment="center" valignment="top" width="0">
36670 <column alignment="center" valignment="top" width="0">
36671 <column alignment="center" valignment="top" width="0">
36673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36676 \begin_layout Plain Layout
36682 <cell alignment="center" valignment="top" topline="true" usebox="none">
36685 \begin_layout Plain Layout
36691 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36694 \begin_layout Plain Layout
36702 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36705 \begin_layout Plain Layout
36711 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36714 \begin_layout Plain Layout
36715 \begin_inset Graphics
36716 filename ../images/dialog-show-new-inset_graphics.png
36718 scaleBeforeRotation
36727 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36730 \begin_layout Plain Layout
36744 \begin_layout Standard
36747 \begin_inset Tabular
36748 <lyxtabular version="3" rows="3" columns="2">
36749 <features tabularvalignment="middle">
36750 <column alignment="center" valignment="top" width="0">
36751 <column alignment="center" valignment="top" width="0">
36753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36756 \begin_layout Plain Layout
36762 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36765 \begin_layout Plain Layout
36773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36776 \begin_layout Plain Layout
36777 \begin_inset Graphics
36778 filename ../images/dialog-show-new-inset_graphics.png
36780 scaleBeforeRotation
36789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36792 \begin_layout Plain Layout
36800 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36803 \begin_layout Plain Layout
36809 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36812 \begin_layout Plain Layout
36824 \begin_inset Tabular
36825 <lyxtabular version="3" rows="3" columns="3">
36826 <features tabularvalignment="middle">
36827 <column alignment="center" valignment="top" width="0">
36828 <column alignment="center" valignment="top" width="0">
36829 <column alignment="center" valignment="top" width="0">
36831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36834 \begin_layout Plain Layout
36840 <cell alignment="center" valignment="top" topline="true" usebox="none">
36843 \begin_layout Plain Layout
36849 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36852 \begin_layout Plain Layout
36860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36863 \begin_layout Plain Layout
36869 <cell alignment="center" valignment="top" usebox="none">
36872 \begin_layout Plain Layout
36873 \begin_inset Graphics
36874 filename ../images/dialog-show-new-inset_graphics.png
36876 scaleBeforeRotation
36885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36888 \begin_layout Plain Layout
36896 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36899 \begin_layout Plain Layout
36905 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36908 \begin_layout Plain Layout
36914 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36917 \begin_layout Plain Layout
36929 \begin_inset Tabular
36930 <lyxtabular version="3" rows="3" columns="2">
36931 <features tabularvalignment="middle">
36932 <column alignment="center" valignment="top" width="0">
36933 <column alignment="center" valignment="top" width="0">
36935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36938 \begin_layout Plain Layout
36944 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36947 \begin_layout Plain Layout
36955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36958 \begin_layout Plain Layout
36964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36967 \begin_layout Plain Layout
36968 \begin_inset Graphics
36969 filename ../images/dialog-show-new-inset_graphics.png
36971 scaleBeforeRotation
36982 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36985 \begin_layout Plain Layout
36991 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36994 \begin_layout Plain Layout
37008 \begin_layout Standard
37010 you can use the LaTeX-package
37015 \begin_inset Index idx
37018 \begin_layout Plain Layout
37019 LaTeX-packages ! picinpar
37025 Here is an example:
37028 \begin_layout Standard
37032 \begin_layout Plain Layout
37042 \begin_inset Note Note
37045 \begin_layout Plain Layout
37046 The following section will only be displayed when the LaTeX-package
37058 \begin_layout Standard
37062 \begin_layout Plain Layout
37066 begin{window}[2,c,{
37072 \begin_inset Graphics
37073 filename clipart/mobius.eps
37076 scaleBeforeRotation
37077 rotateOrigin center
37085 \begin_layout Plain Layout
37090 \begin_layout Plain Layout
37099 It was in the spring of the year 1894 that all London was interested, and
37100 the fashionable world dismayed, by the murder of the Honourable Ronald
37101 Adair under most unusual and inexplicable circumstances.
37102 The public has already learned those particulars of the crime which
37108 \begin_layout Plain Layout
37119 came out in the police investigation, but a good deal was suppressed upon
37120 that occasion, since the case for the prosecution was so overwhelmingly
37121 strong that it was not necessary to bring forward all the facts.
37122 Only now, at the end of nearly ten years, am I allowed to supply those
37123 missing links which make up the whole of that remarkable chain.
37129 \begin_layout Plain Layout
37141 \begin_layout Standard
37145 \begin_layout Plain Layout
37154 Footnote of the paragraph with the fixed object.
37158 \begin_layout Plain Layout
37168 \begin_layout Standard
37169 Surrounded fixed objects are used to let text float around them, at which
37170 the object's position in the paragraph can be determined by the number
37172 In contrary to floats is it not possible to have a numbered caption.
37175 \begin_layout Standard
37176 A fixed object is inserted by adding the command
37179 \begin_layout Standard
37184 begin{window}[2,c,{
37187 \begin_layout Standard
37188 as TeX-Code at the beginning of the paragraph.
37189 The first parameter in the bracket, here '2', defines the number of lines
37190 above the object, the second, here 'c', the position of the object.
37191 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37192 Behind the command you insert the object.
37193 In this example an image with a width of 40
37194 \begin_inset space \thinspace{}
37197 % of the text column width was inserted.
37198 The object can also be a table, a box or an equation.
37199 Behind the object the command
37202 \begin_layout Standard
37205 },description text]
37206 \begin_inset Newline newline
37212 \begin_layout Standard
37215 \begin_inset Quotes eld
37223 \begin_inset Quotes erd
37226 is in the second line.
37227 The description text is optional.
37228 The text surrounding the object must be in the same paragraph as the object,
37229 so it must begin directly after the
37234 At the end of the paragraph insert the command:
37237 \begin_layout Standard
37245 \begin_layout Standard
37246 Within a paragraph with a fixed object, you cannot insert footnotes in the
37248 You have to use instead the command
37254 inside the paragraph and outside the command
37260 as described in sec.
37261 \begin_inset space \thinspace{}
37265 \begin_inset CommandInset ref
37267 reference "sec:Footnotes"
37274 \begin_layout Standard
37278 \begin_layout Plain Layout
37288 \begin_inset Note Note
37291 \begin_layout Plain Layout
37292 The following will be displayed when the LaTeX-package
37304 \begin_layout Standard
37305 You need to install the LaTeX-package
37309 to see the following part of this section in the output.
37312 \begin_layout Standard
37316 \begin_layout Plain Layout
37328 \begin_layout Section
37330 \begin_inset Index idx
37333 \begin_layout Plain Layout
37340 \begin_inset Index idx
37343 \begin_layout Plain Layout
37344 Surrounded by text ! Initials
37352 \begin_layout Standard
37353 To use initials, you must have the LaTeX-package
37358 \begin_inset Index idx
37361 \begin_layout Plain Layout
37362 LaTeX-packages ! lettrine
37367 installed and use the module
37371 in your document (menu
37373 Document\SpecialChar \menuseparator
37374 Settings\SpecialChar \menuseparator
37378 To insert an initial, use the style
37383 This style has a mandatory and an optional argument.
37384 The mandatory argument is inserted via the menu
37386 Insert\SpecialChar \menuseparator
37388 \begin_inset space ~
37393 and contains the letter that is the initial.
37394 To use also the optional argument, insert another argument in front of
37395 the mandatory argument.
37396 This one contains parameters to modify the initial.
37397 For more information about the possible parameters see the documentation
37403 \begin_inset CommandInset citation
37410 The style itself contains the text that is surrounding the initial.
37411 The usual style is hereby that the word whose first letter is the initial,
37417 To tell LaTeX where this word is finished, add a closing brace '
37421 ' as TeX-Code behind it.
37422 At the end of the style there must be an opening brace '
37429 \begin_layout Standard
37430 Here are some examples:
37433 \begin_layout Standard
37437 \begin_layout Plain Layout
37447 \begin_inset Note Note
37450 \begin_layout Plain Layout
37451 The following section will only be displayed when the LaTeX-package
37463 \begin_layout Enumerate
37464 No optional argument, the initial is the letter 'I' in the math font
37465 \begin_inset Formula $\mathfrak{Fraktur}$
37472 \begin_layout Initial
37473 \begin_inset Argument
37476 \begin_layout Plain Layout
37477 \begin_inset Formula $\mathfrak{I}$
37489 \begin_layout Plain Layout
37496 was in the spring of the year 1894 that all London was interested, and
37497 the fashionable world dismayed, by the murder of the Honourable Ronald
37498 Adair under most unusual and inexplicable circumstances.
37499 The public has already learned those particulars of the crime which came
37500 out in the police investigation, but a good deal was suppressed upon that
37501 occasion, since the case for the prosecution was so overwhelmingly strong
37502 that it was not necessary to bring forward all the facts.
37506 \begin_layout Plain Layout
37514 \begin_inset Newpage newpage
37521 \begin_layout Enumerate
37522 Only one line is surrounding the initial, which is formed by two letters
37523 in standard font and no text is printed in small caps:
37527 \begin_layout Initial
37528 \begin_inset Argument
37531 \begin_layout Plain Layout
37538 \begin_inset Argument
37541 \begin_layout Plain Layout
37551 \begin_layout Plain Layout
37558 was in the spring of the year 1894 that all London was interested, and
37559 the fashionable world dismayed, by the murder of the Honourable Ronald
37560 Adair under most unusual and inexplicable circumstances.
37561 The public has already learned those particulars of the crime which came
37562 out in the police investigation, but a good deal was suppressed upon that
37563 occasion, since the case for the prosecution was so overwhelmingly strong
37564 that it was not necessary to bring forward all the facts.
37568 \begin_layout Plain Layout
37579 \begin_layout Enumerate
37580 Magenta, hanging initial over 3
37581 \begin_inset space ~
37584 lines in the math font
37585 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37589 \begin_inset Quotes eld
37592 t was in the spring
37593 \begin_inset Quotes erd
37600 ; to color the initial, you must insert this command before the initial:
37601 \begin_inset Newline newline
37615 \begin_inset Newline newline
37623 \begin_inset Quotes eld
37627 \begin_inset Quotes erd
37631 \begin_inset Quotes eld
37635 \begin_inset Quotes erd
37639 \begin_inset Quotes eld
37643 \begin_inset Quotes erd
37647 \begin_inset Quotes eld
37651 \begin_inset Quotes erd
37655 \begin_inset Quotes eld
37659 \begin_inset Quotes erd
37663 \begin_inset Quotes eld
37667 \begin_inset Quotes erd
37671 \begin_inset Quotes eld
37675 \begin_inset Quotes erd
37679 \begin_inset Quotes eld
37683 \begin_inset Quotes erd
37686 , and add this command to the document preamble:
37687 \begin_inset Newline newline
37694 @ifundefined{textcolor}
37695 \begin_inset Newline newline
37699 \begin_inset space ~
37704 usepackage{color}}{}
37708 \begin_layout Standard
37712 \begin_layout Plain Layout
37726 \begin_inset Note Note
37729 \begin_layout Plain Layout
37730 makes the initial magenta
37738 \begin_layout Initial
37739 \begin_inset Argument
37742 \begin_layout Plain Layout
37743 lines=3, lhang=0.33, loversize=0.25
37749 \begin_inset Argument
37752 \begin_layout Plain Layout
37753 \begin_inset Formula $\mathcal{I}$
37761 t was in the spring
37765 \begin_layout Plain Layout
37772 of the year 1894 that all London was interested, and the fashionable world
37773 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37774 and inexplicable circumstances.
37775 The public has already learned those particulars of the crime which came
37776 out in the police investigation, but a good deal was suppressed upon that
37777 occasion, since the case for the prosecution was so overwhelmingly strong
37778 that it was not necessary to bring forward all the facts.
37782 \begin_layout Plain Layout
37793 \begin_layout Standard
37797 \begin_layout Plain Layout
37807 \begin_inset Note Note
37810 \begin_layout Plain Layout
37811 The following will be displayed when the LaTeX-package
37823 \begin_layout Standard
37824 You need to install the LaTeX-package
37828 to see the following part of this section in the output.
37831 \begin_layout Standard
37835 \begin_layout Plain Layout
37847 \begin_layout Chapter
37848 External Document Parts
37849 \begin_inset Index idx
37852 \begin_layout Plain Layout
37853 External Document Parts
37861 \begin_layout Standard
37864 Insert\SpecialChar \menuseparator
37867 you can insert external material into your document.
37871 \begin_layout Description
37873 \begin_inset space ~
37876 Document Another LyX document; its content is directly inserted to your
37880 \begin_layout Description
37882 \begin_inset space ~
37885 Text A text document; each line is inserted in your document as a separate
37889 \begin_layout Description
37891 \begin_inset space ~
37895 \begin_inset space ~
37899 \begin_inset space ~
37902 Lines A text document; text lines are inserted in your document continuously
37903 but an empty text line creates a new paragraph.
37906 \begin_layout Description
37908 \begin_inset space ~
37911 Material Files in various formats.
37914 \begin_layout Description
37916 \begin_inset space ~
37919 Document LyX or LaTeX-documents.
37922 \begin_layout Section
37924 \begin_inset Index idx
37927 \begin_layout Plain Layout
37928 External Document Parts ! External Material
37936 \begin_layout Standard
37937 The external material feature allows you to insert files into your document
37938 without converting them to a format that can be read by the document output
37940 LyX takes care of the necessary conversions.
37941 This is similar to images that can be inserted in various image formats
37943 When you have enabled Instant Preview in LyX's preferences under
37946 \begin_inset space ~
37950 \begin_inset space ~
37953 feel\SpecialChar \menuseparator
37956 , the external material types Dia and Xfig are directly shown in LyX.
37959 \begin_layout Standard
37960 External material can be inserted via the
37964 dialog that is accessible with the menu
37966 Insert\SpecialChar \menuseparator
37967 File\SpecialChar \menuseparator
37969 \begin_inset space ~
37975 Currently the following file types (
37982 \begin_layout Description
37983 ChessDiagram This template supports chess position diagrams made with the
37987 \begin_inset CommandInset href
37990 target "http://en.wikipedia.org/wiki/XBoard"
37999 \begin_layout Description
38000 Date This inserts the date in the form
38005 This is a date inserted as external material:
38006 \begin_inset External
38013 \begin_inset space ~
38017 \begin_inset Note Note
38020 \begin_layout Plain Layout
38021 Remove the protected space when bug 4398 is fixed!
38027 \begin_inset Newline newline
38030 The date is not shown within LyX, only in the output.
38031 There are two other methods of inserting a date: Via menu
38033 Insert\SpecialChar \menuseparator
38036 and with the LaTeX command
38043 The different methods are compared in Table
38044 \begin_inset space ~
38048 \begin_inset CommandInset ref
38050 reference "tab:Comparison-of-the"
38057 \begin_layout Description
38058 Dia This template supports diagrams created with the program
38061 \begin_inset CommandInset href
38064 target "http://en.wikipedia.org/wiki/Dia_(software)"
38073 \begin_layout Description
38074 GnumericSpreadsheet With this template you can insert spreadsheets
38075 \begin_inset space \thinspace{}
38079 \begin_inset space \thinspace{}
38082 tables in the format of
38085 \begin_inset CommandInset href
38088 target "http://en.wikipedia.org/wiki/Gnumeric"
38095 \begin_inset CommandInset href
38097 name "OpenDocument"
38098 target "http://en.wikipedia.org/wiki/OpenDocument"
38103 \begin_inset CommandInset href
38105 name "Microsoft Office XML"
38106 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38111 \begin_inset CommandInset href
38113 name "Office Open XML"
38114 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38119 For this feature LyX must have found the program
38123 during its configuration.
38124 This program is part of Gnumeric, so that you must have Gnumeric installed,
38125 also if you don't have tables in the Gnumeric format.
38126 For examples and possible limitations have a look at LyX's example file
38134 \begin_layout Description
38135 LilyPond This template is used for music notation typeset with the program
38136 \begin_inset Newline linebreak
38142 \begin_inset CommandInset href
38145 target "http://en.wikipedia.org/wiki/LilyPond"
38152 For LyX's extended support for LilyPond have a look at LyX's example file
38160 \begin_layout Description
38161 PDFPages With this template you can insert PDF documents to your document.
38162 To specify the range of pages that should be included, use the option
38172 LaTeX and LyX options
38175 The argument of this option is a comma separated list, containing page
38176 numbers (insert as option
38180 ), ranges of page numbers (
38184 ) or any combination.
38185 To insert empty pages use {}.
38187 \begin_inset space \thinspace{}
38191 \begin_inset space ~
38196 pages={3,{},8-11,15}
38198 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38199 Page ranges are specified in the syntax
38208 This selects all pages from
38221 defaults to the first page; omitting
38225 defaults to the last page of the document.
38226 The last page can also be selected with the keyword
38231 (This is only permitted in a page range.) So
38235 will insert all pages of the document and
38239 will insert all pages in reverse order.
38240 If the pages option is not specified, only the first page of the PDF is
38242 \begin_inset Newline newline
38249 inserts the pages with their original size, if this option is not given,
38250 the pages will be resized to fith the width of the page of your document.
38255 you can specify the width and height of the input pages and their rotation.
38256 If another width than 100
38257 \begin_inset space \thinspace{}
38260 Scale% is used, the option
38264 will be overwritten.
38265 For more info and possible options, have a look into the documentation
38266 of the LaTeX-package
38271 \begin_inset CommandInset citation
38278 \begin_inset Index idx
38281 \begin_layout Plain Layout
38282 LaTeX-packages ! pdfpages
38288 \begin_inset Newline newline
38291 To use this template in a
38295 presentation you need to first insert an
38299 environment and in a subsequent paragraph a TeX-Code box containing the
38304 setbeamertemplate{background canvas}{}
38307 Then you can insert as many paragraphs containing the PDFPages template
38309 Behind the included PDF pages you can resume the Beamer presentation by
38310 beginning a new frame or by starting a new section.
38311 To avoid stray blank pages prior to the PDF pages, make sure to use the
38316 alignment for the paragraph containing the template.
38317 \begin_inset Newline newline
38320 Here is an included PDF which is rotated by -5°:
38321 \begin_inset External
38323 filename clipart/Abstract.pdf
38324 extra LaTeX "noautoscale, pages=-"
38326 rotateOrigin bottomleft
38333 \begin_layout Description
38334 RasterImage This can be used for bitmap images.
38335 The image can be treated in the
38339 dialog like the images that are usually included via the
38343 dialog as described in section
38344 \begin_inset space ~
38348 \begin_inset CommandInset ref
38350 reference "sec:Graphics-Dialog"
38355 The difference to the normal image input is that only raster images are
38356 allowed; that means that PDF and EPS-images are not supported.
38357 Here is an inserted raster image:
38358 \begin_inset External
38359 template RasterImage
38360 filename clipart/ToolbarEnvBox.png
38367 \begin_layout Description
38368 XFig This template supports images created with the program
38371 \begin_inset CommandInset href
38374 target "http://en.wikipedia.org/wiki/Xfig"
38383 \begin_layout Standard
38384 \begin_inset Float table
38390 \begin_layout Plain Layout
38391 \begin_inset Caption
38393 \begin_layout Plain Layout
38394 \begin_inset CommandInset label
38396 name "tab:Comparison-of-the"
38400 Comparison of the date input methods.
38408 \begin_layout Plain Layout
38410 \begin_inset Tabular
38411 <lyxtabular version="3" rows="4" columns="4">
38412 <features tabularvalignment="middle">
38413 <column alignment="center" valignment="top" width="0">
38414 <column alignment="center" valignment="top" width="0">
38415 <column alignment="center" valignment="top" width="0">
38416 <column alignment="center" valignment="top" width="0">
38418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38421 \begin_layout Plain Layout
38427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38430 \begin_layout Plain Layout
38433 External Material\SpecialChar \menuseparator
38439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38442 \begin_layout Plain Layout
38445 Insert\SpecialChar \menuseparator
38451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38454 \begin_layout Plain Layout
38466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38469 \begin_layout Plain Layout
38475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38478 \begin_layout Plain Layout
38484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38487 \begin_layout Plain Layout
38493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38496 \begin_layout Plain Layout
38497 as TeX-Code inset box
38504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38507 \begin_layout Plain Layout
38513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38516 \begin_layout Plain Layout
38522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38525 \begin_layout Plain Layout
38531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38534 \begin_layout Plain Layout
38542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38545 \begin_layout Plain Layout
38551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38554 \begin_layout Plain Layout
38560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38563 \begin_layout Plain Layout
38569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38572 \begin_layout Plain Layout
38591 \begin_layout Standard
38592 When you use the option
38604 dialog, only the path to the inserted file is shown in the output.
38605 \begin_inset Newline newline
38608 External material is displayed in LyX either as a box like this:
38609 \begin_inset Graphics
38610 filename clipart/ExternalMaterialQt4.png
38612 scaleBeforeRotation
38616 or as image, depending on the option
38622 LaTeX and LyX options
38627 \begin_layout Standard
38634 manual explains how you can define your own templates.
38637 \begin_layout Section
38639 \begin_inset CommandInset label
38641 name "sec:Child-Documents"
38646 \begin_inset Index idx
38649 \begin_layout Plain Layout
38650 External Document Parts ! Child Documents
38656 \begin_inset Index idx
38659 \begin_layout Plain Layout
38668 \begin_layout Standard
38669 Child documents are used if you have a long document consisting of several
38670 larger parts or sections.
38671 For maintenance it is often useful and sometimes even required to split
38672 the document into several files that can be revised separately.
38673 The different documents are then the so called
38674 \begin_inset Quotes eld
38678 \begin_inset Quotes erd
38681 , and a master document connects them to print the full document or parts
38683 A child document inherits elements from its master, for example the LaTeX
38684 preamble, the bibliography, and labels for cross-references.
38687 \begin_layout Standard
38688 To be able to work on child documents without the need to open their master,
38689 specify in the child document the master in the menu
38691 Document\SpecialChar \menuseparator
38692 Settings\SpecialChar \menuseparator
38694 \begin_inset space ~
38700 This master document will then be used in the background by LyX when you
38701 edit the child document.
38704 \begin_layout Standard
38705 Included documents are displayed in LyX as a box like this:
38706 \begin_inset Graphics
38707 filename clipart/ChildDocumentQt4.png
38709 scaleBeforeRotation
38713 To include child documents in a master document use the menu
38715 Insert\SpecialChar \menuseparator
38716 File\SpecialChar \menuseparator
38718 \begin_inset space ~
38724 A dialog pops up where you can choose between four include methods:
38727 \begin_layout Description
38728 Include You can include LyX- and LaTeX-documents.
38737 dialog, the included document will be opened in LyX in a new file tab so
38738 that you can modify it.
38739 \begin_inset Newline newline
38745 \begin_layout Standard
38746 Here is a child document inserted using
38751 \begin_inset CommandInset include
38752 LatexCommand include
38753 filename "DummyDocument1.lyx"
38760 \begin_layout Standard
38761 The section numbering includes the sections of the included files in the
38762 order they are inserted in the master document.
38763 The included example document has for example a subsection that is numbered
38764 as a subsection of this section.
38765 Labels of included documents can be referenced: Subsection
38766 \begin_inset space ~
38770 \begin_inset CommandInset ref
38772 reference "sub:External-Subsection-1"
38779 \begin_layout Standard
38780 The preamble of the child document is ignored; only the preamble of the
38781 master document is used.
38782 Branches in child documents will be ignored by the master document when
38783 the master document does not have a branch with the same name.
38784 Included documents are inserted starting on a new page and ending with
38788 \begin_layout Standard
38789 \begin_inset Note Greyedout
38792 \begin_layout Plain Layout
38797 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38798 the document in case the child document uses another document class than
38799 the master document as this will lead to unexpected outputs.
38807 \begin_layout Description
38808 Input This method is very similar to the Include method.
38809 The differences are:
38813 \begin_layout Itemize
38814 Input files don't start with a new page and don't end with a page break.
38817 \begin_layout Itemize
38818 Input files can be previewed in LyX when
38821 \begin_inset space ~
38826 is enabled in LyX's preferences under
38829 \begin_inset space ~
38833 \begin_inset space ~
38836 feel\SpecialChar \menuseparator
38842 \begin_layout Itemize
38843 You cannot exclude Input files via the menu
38845 Document\SpecialChar \menuseparator
38846 Settings\SpecialChar \menuseparator
38853 \begin_layout Standard
38854 Here is a child document inserted using
38859 \begin_inset CommandInset include
38861 filename "DummyDocument2.lyx"
38868 \begin_layout Description
38869 Verbatim With this method any text file can be included.
38870 The file is shown in the output with its source code; no command used in
38871 the text is invoked.
38872 You can use the option
38874 Mark spaces in output
38876 that displays the character
38877 \begin_inset Quotes eld
38884 \begin_layout Plain Layout
38894 \begin_inset Quotes erd
38897 for every space character in the source code.
38898 The difference from the method via the menu
38900 Insert\SpecialChar \menuseparator
38901 File\SpecialChar \menuseparator
38903 \begin_inset space ~
38908 is that the document content is not shown in LyX.
38911 \begin_layout Standard
38912 Here is a child document inserted as Verbatim:
38913 \begin_inset CommandInset include
38914 LatexCommand verbatiminput
38915 filename "DummyTextDocument.txt"
38920 \begin_inset VSpace bigskip
38923 Here is a child document inserted as Verbatim using the
38925 Mark spaces in output
38928 \begin_inset CommandInset include
38929 LatexCommand verbatiminput*
38930 filename "DummyTextDocument.txt"
38937 \begin_layout Standard
38938 \begin_inset VSpace bigskip
38944 \begin_layout Standard
38945 \begin_inset Note Greyedout
38948 \begin_layout Plain Layout
38953 As you can see in the examples above, the text of the documents included
38958 is not broken at the end of the document lines.
38966 \begin_layout Description
38967 Listings This type is described in chapter
38968 \begin_inset space ~
38972 \begin_inset CommandInset ref
38974 reference "cha:Program-Code-Listings"
38981 \begin_layout Standard
38982 \begin_inset Note Greyedout
38985 \begin_layout Plain Layout
38990 Including the same document twice in a document using different methods
38991 could cause LaTeX-problems.
38999 \begin_layout Standard
39000 If you want to view/export only selected children of your master document,
39001 either because you want to save compiling time or because you want to distribut
39002 e single chapters of the book you are just writing, you can exclude children
39004 This is done via the menu
39006 Document\SpecialChar \menuseparator
39007 Settings\SpecialChar \menuseparator
39011 You can exclude\SpecialChar \slash{}
39012 include children by double-clicking on the
39016 column of the respective child document in the list (note that this only
39017 works for documents embedded via
39018 \begin_inset Quotes eld
39022 \begin_inset Quotes erd
39026 \begin_inset Quotes eld
39030 \begin_inset Quotes erd
39036 Maintain counters and references
39038 is enabled, LyX will assure that all page numbers, references etc.
39039 \begin_inset space ~
39042 are correct as if the whole document was processed.
39043 This is useful if you want the selected sub-documents to look exactly as
39044 in the context of the whole document.
39045 However, LyX needs to process the whole document in the background for
39047 So if you want to save compile time and if counters and references do not
39048 need to be correct, disable this checkbox.
39051 \begin_layout Standard
39052 Alternatively, you can put each included file into a branch.
39056 \begin_layout Plain Layout
39057 Branches are described in section
39070 By enabling\SpecialChar \slash{}
39071 disabling branches you can decide which included files will
39072 appear in the output.
39073 This has the advantage that it also works with Input'ed sub-documents.
39074 However, counters and references will not be maintained with this approach.
39077 \begin_layout Chapter
39078 Program Code Listings
39079 \begin_inset CommandInset label
39081 name "cha:Program-Code-Listings"
39086 \begin_inset Index idx
39089 \begin_layout Plain Layout
39096 \begin_inset Index idx
39099 \begin_layout Plain Layout
39106 \begin_inset Index idx
39109 \begin_layout Plain Layout
39118 \begin_layout Standard
39119 To include and typeset program code you can use the
39123 inset that can be inserted via the menu
39125 Insert\SpecialChar \menuseparator
39134 \begin_inset Index idx
39137 \begin_layout Plain Layout
39138 LaTeX-packages ! listings
39143 provides a powerful and flexible way to insert program source code into
39147 \begin_layout Standard
39148 Right-clicking on a listings inset opens the context menu containing where
39149 you can set the listings format.
39152 \begin_layout Standard
39153 By default, a listing starts a new paragraph in the output.
39154 The placement option
39157 \begin_inset space ~
39162 prints the listing inline like this:
39163 \begin_inset listings
39164 lstparams "language={C++}"
39168 \begin_layout Plain Layout
39176 \begin_inset Newline newline
39183 creates a listings float where you can specify the placement options
39184 \begin_inset Quotes eld
39192 \begin_inset Quotes erd
39196 \begin_inset Quotes eld
39204 \begin_inset Quotes erd
39208 \begin_inset Quotes eld
39216 \begin_inset Quotes erd
39220 \begin_inset Quotes eld
39228 \begin_inset Quotes erd
39231 corresponding to the float placement options described in section
39232 \begin_inset space ~
39236 \begin_inset CommandInset ref
39238 reference "sec:Float-Placement"
39243 The placement options can be mixed and are inserted without any separation,
39245 \begin_inset space \thinspace{}
39249 \begin_inset space \space{}
39253 \begin_inset Quotes eld
39261 \begin_inset Quotes erd
39266 \begin_inset Quotes eld
39270 \begin_inset Quotes erd
39273 has sometimes no effect, but you don't need to use the
39277 option in this case as also non-float listings can have captions and be
39281 \begin_layout Standard
39282 You can add captions to listings with the menu
39284 Insert\SpecialChar \menuseparator
39288 Listings can be referenced like floats: Listing
39289 \begin_inset space ~
39293 \begin_inset CommandInset ref
39295 reference "lst:Example-Listing"
39302 \begin_layout Standard
39303 \begin_inset listings
39304 lstparams "language=Python"
39308 \begin_layout Plain Layout
39310 \begin_inset Caption
39312 \begin_layout Plain Layout
39313 \begin_inset CommandInset label
39315 name "lst:Example-Listing"
39319 Example Listing float
39324 # Example listing float
39327 \begin_layout Plain Layout
39332 \begin_layout Plain Layout
39334 'this is a python function'
39337 \begin_layout Plain Layout
39347 \begin_layout Standard
39348 When you have set a programming language in the listings dialog, the keywords
39349 of this language will be recognized and specially typeset in the output.
39350 In the example listings the Python keyword
39351 \begin_inset Quotes eld
39355 \begin_inset Quotes erd
39358 is recognized and printed bold in the output.
39361 \begin_layout Standard
39362 \begin_inset Note Greyedout
39365 \begin_layout Plain Layout
39370 If you don't get bold keywords when using typewriter fonts, your
39374 font probably doesn't provide a bold shape.
39375 In this case select a different one in the menu
39377 Document\SpecialChar \menuseparator
39378 Settings\SpecialChar \menuseparator
39390 provide bold shapes.)
39398 \begin_layout Standard
39402 \begin_inset space ~
39407 of the listings dialog you can specify the line numbering style.
39408 You can insert a number to specify which lines are numbered in the field
39415 \begin_inset space \thinspace{}
39419 \begin_inset space \space{}
39423 \begin_inset Quotes eld
39427 \begin_inset Quotes erd
39430 , only every 3rd line will be numbered.
39433 \begin_layout Standard
39434 You can furthermore specify a range of lines; only these will then appear
39438 Extended character table
39440 should be used when you use national characters like the German umlauts
39442 \begin_inset Newline newline
39445 Here is an example listing with left line numbering, step
39446 \begin_inset Quotes eld
39450 \begin_inset Quotes erd
39454 \begin_inset Quotes eld
39458 \begin_inset Quotes erd
39462 \begin_inset Quotes eld
39465 Extended character table
39466 \begin_inset Quotes erd
39470 \begin_inset Quotes eld
39474 \begin_inset space ~
39478 \begin_inset space ~
39482 \begin_inset Quotes erd
39486 \begin_inset space \thinspace{}
39490 \begin_inset space \thinspace{}
39496 \begin_layout Standard
39497 \begin_inset listings
39498 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39502 \begin_layout Plain Layout
39507 \begin_layout Plain Layout
39509 'this is a python function'
39512 \begin_layout Plain Layout
39517 \begin_layout Plain Layout
39522 \begin_layout Plain Layout
39524 'This is a German word: Tschüß'
39527 \begin_layout Plain Layout
39532 \begin_layout Plain Layout
39537 \begin_layout Plain Layout
39539 'this is a python function'
39542 \begin_layout Plain Layout
39552 \begin_layout Standard
39553 When you have tabulators in your listing, you can specify the number of
39554 characters that are spanned by a tabulator in the field
39557 \begin_inset space ~
39565 \begin_layout Standard
39566 \begin_inset Note Greyedout
39569 \begin_layout Plain Layout
39574 Due to a bug in the
39578 package the line numbering is shifted by a line by every previous listing.
39579 That's the reason why the lines 2 and 5 are numbered in the above listing
39580 and not the lines 3 and 6.
39588 \begin_layout Standard
39589 \begin_inset VSpace bigskip
39595 \begin_layout Standard
39596 It is also possible to print lines from a file as listing.
39597 To do this, use the menu
39599 Insert\SpecialChar \menuseparator
39600 File\SpecialChar \menuseparator
39603 and choose the type
39611 \begin_layout Plain Layout
39612 The other child document types are described in section
39613 \begin_inset space ~
39617 \begin_inset CommandInset ref
39619 reference "sec:Child-Documents"
39628 In the child document dialog you can specify the listing parameters in
39630 To show a list of all available parameters, type in a question mark
39631 \begin_inset Quotes eld
39635 \begin_inset Quotes erd
39641 \begin_layout Standard
39642 To reference child document listings, write a label text into the corresponding
39643 field of the child document dialog.
39644 The label can then be referenced using the menu
39646 Insert\SpecialChar \menuseparator
39652 \begin_layout Standard
39654 \begin_inset space ~
39658 \begin_inset CommandInset ref
39660 reference "lst:file-listing"
39664 is an example for a listing of a file; there the lines 10
39665 \begin_inset space \thinspace{}
39669 \begin_inset space \thinspace{}
39672 15 of this LyX file are listed.
39675 \begin_layout Standard
39676 \begin_inset CommandInset include
39677 LatexCommand lstinputlisting
39678 filename "EmbeddedObjects.lyx"
39679 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39686 \begin_layout Standard
39687 \begin_inset VSpace bigskip
39693 \begin_layout Standard
39694 Inserting a formula into a listing can be done the following way:
39697 \begin_layout Enumerate
39698 Open the listings dialog and add
39699 \begin_inset Newline newline
39707 \begin_inset Newline newline
39710 to the field of the
39717 \begin_layout Enumerate
39718 Create a formula outside the listing
39721 \begin_layout Enumerate
39722 Copy the content of the formula (not the formula inset) to the clipboard
39732 \begin_layout Enumerate
39733 In the listing write
39734 \begin_inset Quotes eld
39742 \begin_inset Quotes erd
39745 and copy from the clipboard between the dollar-signs (shortcut
39754 \begin_layout Standard
39755 \begin_inset listings
39756 lstparams "language=Python,mathescape=true"
39760 \begin_layout Plain Layout
39762 \begin_inset Caption
39764 \begin_layout Plain Layout
39765 Example Listing float containing a formula
39770 # Example listing float
39773 \begin_layout Plain Layout
39778 \begin_layout Plain Layout
39791 \begin_layout Plain Layout
39801 \begin_layout Standard
39802 \begin_inset VSpace bigskip
39808 \begin_layout Standard
39809 Global listings settings can be set in the
39811 Document\SpecialChar \menuseparator
39812 Settings\SpecialChar \menuseparator
39816 To get there a list of available options, type in a question mark
39817 \begin_inset Quotes eld
39821 \begin_inset Quotes erd
39827 \begin_layout Standard
39828 For more information about the
39832 package, we refer to its documentation
39833 \begin_inset CommandInset citation
39842 \begin_layout Standard
39843 \begin_inset Newpage newpage
39849 \begin_layout Chapter
39851 Units available in LyX
39852 \begin_inset Index idx
39855 \begin_layout Plain Layout
39862 \begin_inset CommandInset label
39864 name "cha:Units-available-in"
39871 \begin_layout Standard
39872 To understand the units described in this documentation, Table
39873 \begin_inset space ~
39877 \begin_inset CommandInset ref
39879 reference "tab:Units"
39883 explains all units available in LyX.
39886 \begin_layout Standard
39887 \begin_inset Float table
39893 \begin_layout Plain Layout
39894 \begin_inset Caption
39896 \begin_layout Plain Layout
39897 \begin_inset CommandInset label
39911 \begin_layout Plain Layout
39912 \begin_inset VSpace medskip
39918 \begin_layout Plain Layout
39920 \begin_inset Tabular
39921 <lyxtabular version="3" rows="20" columns="2">
39922 <features tabularvalignment="middle">
39923 <column alignment="center" valignment="top" width="0">
39924 <column alignment="center" valignment="top" width="0">
39926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39929 \begin_layout Plain Layout
39935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39938 \begin_layout Plain Layout
39946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39949 \begin_layout Plain Layout
39955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39958 \begin_layout Plain Layout
39966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39969 \begin_layout Plain Layout
39975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39978 \begin_layout Plain Layout
39986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39989 \begin_layout Plain Layout
39995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39998 \begin_layout Plain Layout
40006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40009 \begin_layout Plain Layout
40015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40018 \begin_layout Plain Layout
40020 \begin_inset space \thinspace{}
40024 \begin_inset space \thinspace{}
40034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40037 \begin_layout Plain Layout
40043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40046 \begin_layout Plain Layout
40048 \begin_inset space \thinspace{}
40052 \begin_inset space \thinspace{}
40062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40065 \begin_layout Plain Layout
40071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40074 \begin_layout Plain Layout
40075 scaled point (65536
40076 \begin_inset space \thinspace{}
40080 \begin_inset space \thinspace{}
40090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40093 \begin_layout Plain Layout
40099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40102 \begin_layout Plain Layout
40104 \begin_inset space \thinspace{}
40108 \begin_inset space \thinspace{}
40118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40121 \begin_layout Plain Layout
40127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40130 \begin_layout Plain Layout
40132 \begin_inset space \thinspace{}
40136 \begin_inset Formula $\approx$
40140 \begin_inset space \thinspace{}
40150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40153 \begin_layout Plain Layout
40159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40162 \begin_layout Plain Layout
40164 \begin_inset space \thinspace{}
40168 \begin_inset space \thinspace{}
40178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40181 \begin_layout Plain Layout
40187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40190 \begin_layout Plain Layout
40191 % of original image width
40198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40201 \begin_layout Plain Layout
40207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40210 \begin_layout Plain Layout
40218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40221 \begin_layout Plain Layout
40227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40230 \begin_layout Plain Layout
40238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40241 \begin_layout Plain Layout
40247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40250 \begin_layout Plain Layout
40258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40261 \begin_layout Plain Layout
40267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40270 \begin_layout Plain Layout
40278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40281 \begin_layout Plain Layout
40287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40290 \begin_layout Plain Layout
40298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40301 \begin_layout Plain Layout
40307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40310 \begin_layout Plain Layout
40318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40321 \begin_layout Plain Layout
40327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40330 \begin_layout Plain Layout
40342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40345 \begin_layout Plain Layout
40351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40354 \begin_layout Plain Layout
40366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40369 \begin_layout Plain Layout
40375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40378 \begin_layout Plain Layout
40380 \begin_inset space \thinspace{}
40384 \begin_inset space \thinspace{}
40405 \begin_layout Chapter
40406 Output File Formats with Graphics
40407 \begin_inset CommandInset label
40409 name "cha:Output-File-Formats"
40416 \begin_layout Section
40418 \begin_inset Index idx
40421 \begin_layout Plain Layout
40428 \begin_inset Index idx
40431 \begin_layout Plain Layout
40436 \begin_layout Plain Layout
40447 \begin_layout Plain Layout
40462 \begin_layout Standard
40463 This file type has the extension
40464 \begin_inset Quotes eld
40472 \begin_inset Quotes erd
40477 \begin_inset Quotes eld
40481 \begin_inset Quotes erd
40484 (DVI), because it is completely portable; you can move them from one machine
40485 to another without needing to do any sort of conversion.
40486 At the time when this file-format was developed, this was no matter of
40488 DVIs are used for quick previews and as pre-stage for other output formats,
40492 \begin_layout Standard
40493 \begin_inset Note Greyedout
40496 \begin_layout Plain Layout
40501 DVI-files do not contain images; they will only be a linked.
40506 So don't forget this, if you move your
40510 file to another computer.
40511 This property can also slow down your computer when you view the DVI, because
40512 the DVI-viewer has to convert the image in the background to make it visible
40513 when you scroll in the DVI.
40514 So it is recommended that you use PDF for files with many images.
40517 \begin_layout Standard
40518 You can export your document to DVI by using the menu
40520 File\SpecialChar \menuseparator
40521 Export\SpecialChar \menuseparator
40525 You can view your document as DVI via the
40532 \begin_layout Section
40534 \begin_inset CommandInset label
40536 name "sec:PostScript"
40541 \begin_inset Index idx
40544 \begin_layout Plain Layout
40545 File Formats ! PostScript
40551 \begin_inset Index idx
40554 \begin_layout Plain Layout
40559 \begin_layout Plain Layout
40570 \begin_layout Plain Layout
40585 \begin_layout Standard
40586 This file type has the extension
40587 \begin_inset Quotes eld
40595 \begin_inset Quotes erd
40599 PostScript was developed by the company
40603 as a printer language.
40604 The file therefore contains commands that the printer uses to print the
40606 PostScript can be seen as a
40607 \begin_inset Quotes eld
40610 programming language
40611 \begin_inset Quotes erd
40614 ; you can calculate with it and draw diagrams and images
40618 \begin_layout Plain Layout
40619 If you are interested to learn more about this, have a look at the LaTeX-package
40625 \begin_inset CommandInset citation
40637 Due to this ability, the files are often bigger than PDFs.
40640 \begin_layout Standard
40641 PostScript can only contain images in the format
40642 \begin_inset Quotes eld
40645 Encapsulated PostScript
40646 \begin_inset Quotes erd
40649 (EPS, file extension
40650 \begin_inset Quotes eld
40658 \begin_inset Quotes erd
40662 As LyX allows you to use any known image format in your document, it has
40663 to convert images in the background to EPS.
40665 \begin_inset space ~
40669 \begin_inset space ~
40672 images in your document, LyX has to do 50
40673 \begin_inset space ~
40676 conversions whenever you view or export your document.
40677 This will slow down your work flow with LyX drastically.
40678 So if you plan to use PostScript, you can insert your images directly as
40679 EPS to avoid this problem.
40682 \begin_layout Standard
40683 You can export your document to PostScript using the menu
40685 File\SpecialChar \menuseparator
40686 Export\SpecialChar \menuseparator
40690 You can view your document as PostScript via the
40694 menu or by using the toolbar button
40695 \begin_inset Graphics
40696 filename ../images/buffer-view_ps.png
40698 scaleBeforeRotation
40705 \begin_layout Section
40707 \begin_inset Index idx
40710 \begin_layout Plain Layout
40717 \begin_inset Index idx
40720 \begin_layout Plain Layout
40729 \begin_layout Standard
40730 This file type has the extension
40731 \begin_inset Quotes eld
40739 \begin_inset Quotes erd
40744 \begin_inset Quotes eld
40747 Portable Document Format
40748 \begin_inset Quotes erd
40751 (PDF) was developed by
40755 as a derivative of PostScript.
40756 It is more compressed and it uses fewer commands than PostScript.
40758 \begin_inset Quotes eld
40762 \begin_inset Quotes erd
40765 implies, it can be processed at any computer system and the printed output
40766 looks exactly the same.
40769 \begin_layout Standard
40770 PDF can contain images in its own PDF format, in the format
40771 \begin_inset Quotes eld
40774 Joint Photographic Experts Group
40775 \begin_inset Quotes erd
40778 (JPG, file extension
40779 \begin_inset Quotes eld
40787 \begin_inset Quotes erd
40791 \begin_inset Quotes eld
40799 \begin_inset Quotes erd
40802 ), and in the format
40803 \begin_inset Quotes eld
40806 Portable Network Graphics
40807 \begin_inset Quotes erd
40810 (PNG, file extension
40811 \begin_inset Quotes eld
40819 \begin_inset Quotes erd
40823 Nevertheless you can use any other image format, because LyX converts them
40824 in the background to one of these formats.
40825 But as described in the section about PostScript, the image conversion
40826 will slow down your work flow.
40827 So it is recommended that you use images in one of the three mentioned
40831 \begin_layout Standard
40832 You can export your document to PDF via the menu
40834 File\SpecialChar \menuseparator
40837 in three different ways:
40840 \begin_layout Description
40842 \begin_inset space ~
40845 (ps2pdf) This uses the program
40849 that creates a PDF from a PostScript-version of your file.
40850 The PostScript-version is produced by the program
40854 which uses a DVI-version as intermediate step.
40855 So this export variant consists of three conversions.
40858 \begin_layout Description
40860 \begin_inset space ~
40863 (dvipdfm) This uses the program
40867 that converts your file in the background to DVI and in a second step to
40871 \begin_layout Description
40873 \begin_inset space ~
40876 (pdflatex) This uses the program
40880 that converts your file directly to PDF.
40883 \begin_layout Standard
40884 It is recommended that you use
40887 \begin_inset space ~
40896 supports all features of actual PDF-versions, is quick and works stable.
40901 is not under development and therefore a bit outdated.
40904 \begin_layout Standard
40905 You can view your document as PDF via the
40909 menu or by using the toolbar button
40910 \begin_inset Graphics
40911 filename ../images/buffer-view_pdf2.png
40913 scaleBeforeRotation
40924 \begin_inset space ~
40932 \begin_layout Chapter
40933 List of dvips color names
40934 \begin_inset CommandInset label
40936 name "chap:List-of-dvips-colornames"
40943 \begin_layout Standard
40944 \begin_inset Tabular
40945 <lyxtabular version="3" rows="17" columns="4">
40946 <features tabularvalignment="middle">
40947 <column alignment="left" valignment="top" width="0pt">
40948 <column alignment="left" valignment="top" width="0pt">
40949 <column alignment="left" valignment="top" width="0pt">
40950 <column alignment="left" valignment="top" width="0pt">
40952 <cell alignment="left" valignment="top" usebox="none">
40955 \begin_layout Plain Layout
40959 \begin_layout Plain Layout
40972 \begin_layout Plain Layout
40983 \begin_layout Plain Layout
40995 <cell alignment="left" valignment="top" usebox="none">
40998 \begin_layout Plain Layout
41002 \begin_layout Plain Layout
41015 \begin_layout Plain Layout
41026 \begin_layout Plain Layout
41038 <cell alignment="left" valignment="top" usebox="none">
41041 \begin_layout Plain Layout
41045 \begin_layout Plain Layout
41058 \begin_layout Plain Layout
41069 \begin_layout Plain Layout
41081 <cell alignment="left" valignment="top" usebox="none">
41084 \begin_layout Plain Layout
41088 \begin_layout Plain Layout
41101 \begin_layout Plain Layout
41112 \begin_layout Plain Layout
41126 <cell alignment="center" valignment="top" usebox="none">
41129 \begin_layout Plain Layout
41133 \begin_layout Plain Layout
41146 \begin_layout Plain Layout
41154 \begin_inset Phantom Phantom
41157 \begin_layout Plain Layout
41167 \begin_layout Plain Layout
41179 <cell alignment="center" valignment="top" usebox="none">
41182 \begin_layout Plain Layout
41186 \begin_layout Plain Layout
41199 \begin_layout Plain Layout
41207 \begin_inset Phantom Phantom
41210 \begin_layout Plain Layout
41220 \begin_layout Plain Layout
41232 <cell alignment="center" valignment="top" usebox="none">
41235 \begin_layout Plain Layout
41239 \begin_layout Plain Layout
41252 \begin_layout Plain Layout
41260 \begin_inset Phantom Phantom
41263 \begin_layout Plain Layout
41273 \begin_layout Plain Layout
41285 <cell alignment="center" valignment="top" usebox="none">
41288 \begin_layout Plain Layout
41292 \begin_layout Plain Layout
41305 \begin_layout Plain Layout
41313 \begin_inset Phantom Phantom
41316 \begin_layout Plain Layout
41326 \begin_layout Plain Layout
41340 <cell alignment="left" valignment="top" usebox="none">
41343 \begin_layout Plain Layout
41347 \begin_layout Plain Layout
41360 \begin_layout Plain Layout
41368 \begin_inset Phantom Phantom
41371 \begin_layout Plain Layout
41381 \begin_layout Plain Layout
41393 <cell alignment="left" valignment="top" usebox="none">
41396 \begin_layout Plain Layout
41400 \begin_layout Plain Layout
41413 \begin_layout Plain Layout
41421 \begin_inset Phantom Phantom
41424 \begin_layout Plain Layout
41434 \begin_layout Plain Layout
41446 <cell alignment="left" valignment="top" usebox="none">
41449 \begin_layout Plain Layout
41453 \begin_layout Plain Layout
41466 \begin_layout Plain Layout
41474 \begin_inset Phantom Phantom
41477 \begin_layout Plain Layout
41487 \begin_layout Plain Layout
41499 <cell alignment="left" valignment="top" usebox="none">
41502 \begin_layout Plain Layout
41506 \begin_layout Plain Layout
41519 \begin_layout Plain Layout
41527 \begin_inset Phantom Phantom
41530 \begin_layout Plain Layout
41540 \begin_layout Plain Layout
41554 <cell alignment="left" valignment="top" usebox="none">
41557 \begin_layout Plain Layout
41561 \begin_layout Plain Layout
41574 \begin_layout Plain Layout
41582 \begin_inset Phantom Phantom
41585 \begin_layout Plain Layout
41595 \begin_layout Plain Layout
41607 <cell alignment="left" valignment="top" usebox="none">
41610 \begin_layout Plain Layout
41614 \begin_layout Plain Layout
41627 \begin_layout Plain Layout
41635 \begin_inset Phantom Phantom
41638 \begin_layout Plain Layout
41648 \begin_layout Plain Layout
41660 <cell alignment="left" valignment="top" usebox="none">
41663 \begin_layout Plain Layout
41667 \begin_layout Plain Layout
41680 \begin_layout Plain Layout
41688 \begin_inset Phantom Phantom
41691 \begin_layout Plain Layout
41701 \begin_layout Plain Layout
41713 <cell alignment="left" valignment="top" usebox="none">
41716 \begin_layout Plain Layout
41720 \begin_layout Plain Layout
41733 \begin_layout Plain Layout
41741 \begin_inset Phantom Phantom
41744 \begin_layout Plain Layout
41754 \begin_layout Plain Layout
41768 <cell alignment="left" valignment="top" usebox="none">
41771 \begin_layout Plain Layout
41775 \begin_layout Plain Layout
41788 \begin_layout Plain Layout
41796 \begin_inset Phantom Phantom
41799 \begin_layout Plain Layout
41809 \begin_layout Plain Layout
41821 <cell alignment="left" valignment="top" usebox="none">
41824 \begin_layout Plain Layout
41828 \begin_layout Plain Layout
41841 \begin_layout Plain Layout
41849 \begin_inset Phantom Phantom
41852 \begin_layout Plain Layout
41862 \begin_layout Plain Layout
41874 <cell alignment="left" valignment="top" usebox="none">
41877 \begin_layout Plain Layout
41881 \begin_layout Plain Layout
41894 \begin_layout Plain Layout
41902 \begin_inset Phantom Phantom
41905 \begin_layout Plain Layout
41915 \begin_layout Plain Layout
41927 <cell alignment="left" valignment="top" usebox="none">
41930 \begin_layout Plain Layout
41934 \begin_layout Plain Layout
41947 \begin_layout Plain Layout
41955 \begin_inset Phantom Phantom
41958 \begin_layout Plain Layout
41968 \begin_layout Plain Layout
41982 <cell alignment="left" valignment="top" usebox="none">
41985 \begin_layout Plain Layout
41989 \begin_layout Plain Layout
42002 \begin_layout Plain Layout
42010 \begin_inset Phantom Phantom
42013 \begin_layout Plain Layout
42023 \begin_layout Plain Layout
42035 <cell alignment="left" valignment="top" usebox="none">
42038 \begin_layout Plain Layout
42042 \begin_layout Plain Layout
42055 \begin_layout Plain Layout
42063 \begin_inset Phantom Phantom
42066 \begin_layout Plain Layout
42076 \begin_layout Plain Layout
42088 <cell alignment="left" valignment="top" usebox="none">
42091 \begin_layout Plain Layout
42095 \begin_layout Plain Layout
42108 \begin_layout Plain Layout
42116 \begin_inset Phantom Phantom
42119 \begin_layout Plain Layout
42129 \begin_layout Plain Layout
42141 <cell alignment="left" valignment="top" usebox="none">
42144 \begin_layout Plain Layout
42148 \begin_layout Plain Layout
42161 \begin_layout Plain Layout
42169 \begin_inset Phantom Phantom
42172 \begin_layout Plain Layout
42182 \begin_layout Plain Layout
42196 <cell alignment="center" valignment="top" usebox="none">
42199 \begin_layout Plain Layout
42203 \begin_layout Plain Layout
42216 \begin_layout Plain Layout
42224 \begin_inset Phantom Phantom
42227 \begin_layout Plain Layout
42237 \begin_layout Plain Layout
42249 <cell alignment="center" valignment="top" usebox="none">
42252 \begin_layout Plain Layout
42256 \begin_layout Plain Layout
42269 \begin_layout Plain Layout
42277 \begin_inset Phantom Phantom
42280 \begin_layout Plain Layout
42290 \begin_layout Plain Layout
42302 <cell alignment="center" valignment="top" usebox="none">
42305 \begin_layout Plain Layout
42309 \begin_layout Plain Layout
42322 \begin_layout Plain Layout
42330 \begin_inset Phantom Phantom
42333 \begin_layout Plain Layout
42343 \begin_layout Plain Layout
42355 <cell alignment="center" valignment="top" usebox="none">
42358 \begin_layout Plain Layout
42362 \begin_layout Plain Layout
42375 \begin_layout Plain Layout
42383 \begin_inset Phantom Phantom
42386 \begin_layout Plain Layout
42396 \begin_layout Plain Layout
42410 <cell alignment="left" valignment="top" usebox="none">
42413 \begin_layout Plain Layout
42417 \begin_layout Plain Layout
42430 \begin_layout Plain Layout
42438 \begin_inset Phantom Phantom
42441 \begin_layout Plain Layout
42451 \begin_layout Plain Layout
42463 <cell alignment="left" valignment="top" usebox="none">
42466 \begin_layout Plain Layout
42470 \begin_layout Plain Layout
42483 \begin_layout Plain Layout
42491 \begin_inset Phantom Phantom
42494 \begin_layout Plain Layout
42504 \begin_layout Plain Layout
42516 <cell alignment="left" valignment="top" usebox="none">
42519 \begin_layout Plain Layout
42523 \begin_layout Plain Layout
42536 \begin_layout Plain Layout
42544 \begin_inset Phantom Phantom
42547 \begin_layout Plain Layout
42557 \begin_layout Plain Layout
42569 <cell alignment="left" valignment="top" usebox="none">
42572 \begin_layout Plain Layout
42576 \begin_layout Plain Layout
42589 \begin_layout Plain Layout
42597 \begin_inset Phantom Phantom
42600 \begin_layout Plain Layout
42610 \begin_layout Plain Layout
42624 <cell alignment="left" valignment="top" usebox="none">
42627 \begin_layout Plain Layout
42631 \begin_layout Plain Layout
42644 \begin_layout Plain Layout
42652 \begin_inset Phantom Phantom
42655 \begin_layout Plain Layout
42665 \begin_layout Plain Layout
42677 <cell alignment="left" valignment="top" usebox="none">
42680 \begin_layout Plain Layout
42684 \begin_layout Plain Layout
42697 \begin_layout Plain Layout
42705 \begin_inset Phantom Phantom
42708 \begin_layout Plain Layout
42718 \begin_layout Plain Layout
42730 <cell alignment="left" valignment="top" usebox="none">
42733 \begin_layout Plain Layout
42737 \begin_layout Plain Layout
42750 \begin_layout Plain Layout
42758 \begin_inset Phantom Phantom
42761 \begin_layout Plain Layout
42771 \begin_layout Plain Layout
42783 <cell alignment="left" valignment="top" usebox="none">
42786 \begin_layout Plain Layout
42790 \begin_layout Plain Layout
42803 \begin_layout Plain Layout
42811 \begin_inset Phantom Phantom
42814 \begin_layout Plain Layout
42824 \begin_layout Plain Layout
42838 <cell alignment="left" valignment="top" usebox="none">
42841 \begin_layout Plain Layout
42845 \begin_layout Plain Layout
42858 \begin_layout Plain Layout
42866 \begin_inset Phantom Phantom
42869 \begin_layout Plain Layout
42879 \begin_layout Plain Layout
42891 <cell alignment="left" valignment="top" usebox="none">
42894 \begin_layout Plain Layout
42898 \begin_layout Plain Layout
42911 \begin_layout Plain Layout
42919 \begin_inset Phantom Phantom
42922 \begin_layout Plain Layout
42932 \begin_layout Plain Layout
42944 <cell alignment="left" valignment="top" usebox="none">
42947 \begin_layout Plain Layout
42951 \begin_layout Plain Layout
42964 \begin_layout Plain Layout
42972 \begin_inset Phantom Phantom
42975 \begin_layout Plain Layout
42985 \begin_layout Plain Layout
42997 <cell alignment="left" valignment="top" usebox="none">
43000 \begin_layout Plain Layout
43004 \begin_layout Plain Layout
43017 \begin_layout Plain Layout
43025 \begin_inset Phantom Phantom
43028 \begin_layout Plain Layout
43038 \begin_layout Plain Layout
43052 <cell alignment="left" valignment="top" usebox="none">
43055 \begin_layout Plain Layout
43059 \begin_layout Plain Layout
43072 \begin_layout Plain Layout
43080 \begin_inset Phantom Phantom
43083 \begin_layout Plain Layout
43093 \begin_layout Plain Layout
43105 <cell alignment="left" valignment="top" usebox="none">
43108 \begin_layout Plain Layout
43112 \begin_layout Plain Layout
43125 \begin_layout Plain Layout
43133 \begin_inset Phantom Phantom
43136 \begin_layout Plain Layout
43146 \begin_layout Plain Layout
43158 <cell alignment="left" valignment="top" usebox="none">
43161 \begin_layout Plain Layout
43165 \begin_layout Plain Layout
43178 \begin_layout Plain Layout
43186 \begin_inset Phantom Phantom
43189 \begin_layout Plain Layout
43199 \begin_layout Plain Layout
43211 <cell alignment="left" valignment="top" usebox="none">
43214 \begin_layout Plain Layout
43218 \begin_layout Plain Layout
43231 \begin_layout Plain Layout
43239 \begin_inset Phantom Phantom
43242 \begin_layout Plain Layout
43252 \begin_layout Plain Layout
43266 <cell alignment="left" valignment="top" usebox="none">
43269 \begin_layout Plain Layout
43273 \begin_layout Plain Layout
43286 \begin_layout Plain Layout
43294 \begin_inset Phantom Phantom
43297 \begin_layout Plain Layout
43307 \begin_layout Plain Layout
43319 <cell alignment="left" valignment="top" usebox="none">
43322 \begin_layout Plain Layout
43326 \begin_layout Plain Layout
43339 \begin_layout Plain Layout
43347 \begin_inset Phantom Phantom
43350 \begin_layout Plain Layout
43360 \begin_layout Plain Layout
43372 <cell alignment="left" valignment="top" usebox="none">
43375 \begin_layout Plain Layout
43379 \begin_layout Plain Layout
43392 \begin_layout Plain Layout
43400 \begin_inset Phantom Phantom
43403 \begin_layout Plain Layout
43413 \begin_layout Plain Layout
43425 <cell alignment="left" valignment="top" usebox="none">
43428 \begin_layout Plain Layout
43432 \begin_layout Plain Layout
43445 \begin_layout Plain Layout
43453 \begin_inset Phantom Phantom
43456 \begin_layout Plain Layout
43466 \begin_layout Plain Layout
43480 <cell alignment="left" valignment="top" usebox="none">
43483 \begin_layout Plain Layout
43487 \begin_layout Plain Layout
43500 \begin_layout Plain Layout
43508 \begin_inset Phantom Phantom
43511 \begin_layout Plain Layout
43521 \begin_layout Plain Layout
43533 <cell alignment="left" valignment="top" usebox="none">
43536 \begin_layout Plain Layout
43540 \begin_layout Plain Layout
43553 \begin_layout Plain Layout
43561 \begin_inset Phantom Phantom
43564 \begin_layout Plain Layout
43574 \begin_layout Plain Layout
43586 <cell alignment="left" valignment="top" usebox="none">
43589 \begin_layout Plain Layout
43593 \begin_layout Plain Layout
43606 \begin_layout Plain Layout
43614 \begin_inset Phantom Phantom
43617 \begin_layout Plain Layout
43627 \begin_layout Plain Layout
43639 <cell alignment="left" valignment="top" usebox="none">
43642 \begin_layout Plain Layout
43646 \begin_layout Plain Layout
43659 \begin_layout Plain Layout
43667 \begin_inset Phantom Phantom
43670 \begin_layout Plain Layout
43680 \begin_layout Plain Layout
43694 <cell alignment="left" valignment="top" usebox="none">
43697 \begin_layout Plain Layout
43701 \begin_layout Plain Layout
43714 \begin_layout Plain Layout
43722 \begin_inset Phantom Phantom
43725 \begin_layout Plain Layout
43735 \begin_layout Plain Layout
43747 <cell alignment="left" valignment="top" usebox="none">
43750 \begin_layout Plain Layout
43754 \begin_layout Plain Layout
43767 \begin_layout Plain Layout
43775 \begin_inset Phantom Phantom
43778 \begin_layout Plain Layout
43788 \begin_layout Plain Layout
43800 <cell alignment="left" valignment="top" usebox="none">
43803 \begin_layout Plain Layout
43807 \begin_layout Plain Layout
43820 \begin_layout Plain Layout
43828 \begin_inset Phantom Phantom
43831 \begin_layout Plain Layout
43841 \begin_layout Plain Layout
43853 <cell alignment="left" valignment="top" usebox="none">
43856 \begin_layout Plain Layout
43860 \begin_layout Plain Layout
43873 \begin_layout Plain Layout
43881 \begin_inset Phantom Phantom
43884 \begin_layout Plain Layout
43894 \begin_layout Plain Layout
43908 <cell alignment="left" valignment="top" usebox="none">
43911 \begin_layout Plain Layout
43915 \begin_layout Plain Layout
43928 \begin_layout Plain Layout
43936 \begin_inset Phantom Phantom
43939 \begin_layout Plain Layout
43949 \begin_layout Plain Layout
43961 <cell alignment="left" valignment="top" usebox="none">
43964 \begin_layout Plain Layout
43968 \begin_layout Plain Layout
43981 \begin_layout Plain Layout
43989 \begin_inset Phantom Phantom
43992 \begin_layout Plain Layout
44002 \begin_layout Plain Layout
44014 <cell alignment="left" valignment="top" usebox="none">
44017 \begin_layout Plain Layout
44021 \begin_layout Plain Layout
44034 \begin_layout Plain Layout
44042 \begin_inset Phantom Phantom
44045 \begin_layout Plain Layout
44055 \begin_layout Plain Layout
44067 <cell alignment="left" valignment="top" usebox="none">
44070 \begin_layout Plain Layout
44074 \begin_layout Plain Layout
44087 \begin_layout Plain Layout
44095 \begin_inset Phantom Phantom
44098 \begin_layout Plain Layout
44108 \begin_layout Plain Layout
44122 <cell alignment="left" valignment="top" usebox="none">
44125 \begin_layout Plain Layout
44129 \begin_layout Plain Layout
44142 \begin_layout Plain Layout
44150 \begin_inset Phantom Phantom
44153 \begin_layout Plain Layout
44163 \begin_layout Plain Layout
44175 <cell alignment="left" valignment="top" usebox="none">
44178 \begin_layout Plain Layout
44182 \begin_layout Plain Layout
44195 \begin_layout Plain Layout
44203 \begin_inset Phantom Phantom
44206 \begin_layout Plain Layout
44216 \begin_layout Plain Layout
44228 <cell alignment="left" valignment="top" usebox="none">
44231 \begin_layout Plain Layout
44235 \begin_layout Plain Layout
44248 \begin_layout Plain Layout
44256 \begin_inset Phantom Phantom
44259 \begin_layout Plain Layout
44269 \begin_layout Plain Layout
44281 <cell alignment="left" valignment="top" usebox="none">
44284 \begin_layout Plain Layout
44288 \begin_layout Plain Layout
44301 \begin_layout Plain Layout
44309 \begin_inset Phantom Phantom
44312 \begin_layout Plain Layout
44322 \begin_layout Plain Layout
44336 <cell alignment="left" valignment="top" usebox="none">
44339 \begin_layout Plain Layout
44343 \begin_layout Plain Layout
44356 \begin_layout Plain Layout
44364 \begin_inset Phantom Phantom
44367 \begin_layout Plain Layout
44377 \begin_layout Plain Layout
44389 <cell alignment="left" valignment="top" usebox="none">
44392 \begin_layout Plain Layout
44398 <cell alignment="left" valignment="top" usebox="none">
44401 \begin_layout Plain Layout
44407 <cell alignment="left" valignment="top" usebox="none">
44410 \begin_layout Plain Layout
44424 \begin_layout Chapter
44425 Explanation of Equation
44426 \begin_inset space ~
44430 \begin_inset CommandInset ref
44437 \begin_inset CommandInset label
44439 name "cha:Explanation-of-Equation"
44446 \begin_layout Standard
44447 We can calculate the total width of
44452 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44456 \begin_inset Formula
44458 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44464 \begin_inset Formula $W_{g\, n}$
44467 is the given width of all cells,
44473 is the LaTeX-length between the cell text and the cell border (its default
44475 \begin_inset space \thinspace{}
44485 is the thickness of the cell border line, the default is 0.4
44486 \begin_inset space \thinspace{}
44492 \begin_layout Standard
44494 \begin_inset space ~
44498 \begin_inset CommandInset ref
44500 reference "eq:Wtot_n"
44504 , the total width of a multicolumn
44505 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44509 \begin_inset Formula
44511 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44519 \begin_layout Standard
44520 By setting equation
44521 \begin_inset space ~
44525 \begin_inset CommandInset ref
44527 reference "eq:Wtot_n"
44532 \begin_inset CommandInset ref
44534 reference "eq:Wtot_mult"
44538 equal we can calculate the needed given width
44539 \begin_inset Formula $W_{g\, n}$
44546 columns are spanned, so that each column has a total width of
44547 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44551 \begin_inset Formula
44553 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44561 \begin_layout Bibliography
44562 \labelwidthstring Bibliography
44563 \begin_inset CommandInset bibitem
44564 LatexCommand bibitem
44565 key "latexcompanion"
44569 Frank Mittelbach and Michel Goossens:
44571 The LaTeX Companion Second Edition.
44574 Addison-Wesley, 2004
44577 \begin_layout Bibliography
44578 \labelwidthstring Bibliography
44579 \begin_inset CommandInset bibitem
44580 LatexCommand bibitem
44585 Helmut Kopka and Patrick W.
44588 A Guide to LaTeX Fourth Edition.
44591 Addison-Wesley, 2003
44594 \begin_layout Bibliography
44595 \labelwidthstring Bibliography
44596 \begin_inset CommandInset bibitem
44597 LatexCommand bibitem
44604 LaTeX: A Document Preparation System.
44607 Addison-Wesley, second edition, 1994
44610 \begin_layout Bibliography
44611 \labelwidthstring Bibliography
44612 \begin_inset CommandInset bibitem
44613 LatexCommand bibitem
44618 Documentation of the LaTeX-package
44621 \begin_inset CommandInset href
44624 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44631 \begin_inset Index idx
44634 \begin_layout Plain Layout
44635 LaTeX-packages ! arydshln
44643 \begin_layout Bibliography
44644 \labelwidthstring Bibliography
44645 \begin_inset CommandInset bibitem
44646 LatexCommand bibitem
44651 Documentation of the LaTeX-package
44654 \begin_inset CommandInset href
44657 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44664 \begin_inset Index idx
44667 \begin_layout Plain Layout
44668 LaTeX-packages ! booktabs
44676 \begin_layout Bibliography
44677 \labelwidthstring Bibliography
44678 \begin_inset CommandInset bibitem
44679 LatexCommand bibitem
44684 Documentation of the LaTeX-package
44687 \begin_inset CommandInset href
44690 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44697 \begin_inset Index idx
44700 \begin_layout Plain Layout
44701 LaTeX-packages ! caption
44709 \begin_layout Bibliography
44710 \labelwidthstring Bibliography
44711 \begin_inset CommandInset bibitem
44712 LatexCommand bibitem
44717 Documentation of the LaTeX-package
44720 \begin_inset CommandInset href
44723 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44730 \begin_inset Index idx
44733 \begin_layout Plain Layout
44734 LaTeX-packages ! diagbox
44742 \begin_layout Bibliography
44743 \labelwidthstring Bibliography
44744 \begin_inset CommandInset bibitem
44745 LatexCommand bibitem
44750 Documentation of the LaTeX-package
44753 \begin_inset CommandInset href
44756 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44763 \begin_inset Index idx
44766 \begin_layout Plain Layout
44767 LaTeX-packages ! endfloat
44775 \begin_layout Bibliography
44776 \labelwidthstring Bibliography
44777 \begin_inset CommandInset bibitem
44778 LatexCommand bibitem
44783 Documentation of the LaTeX-package
44786 \begin_inset CommandInset href
44789 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44796 \begin_inset Index idx
44799 \begin_layout Plain Layout
44800 LaTeX-packages ! footmisc
44808 \begin_layout Bibliography
44809 \labelwidthstring Bibliography
44810 \begin_inset CommandInset bibitem
44811 LatexCommand bibitem
44816 Documentation of the LaTeX-package
44819 \begin_inset CommandInset href
44822 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44829 \begin_inset Index idx
44832 \begin_layout Plain Layout
44833 LaTeX-packages ! hyperref
44841 \begin_layout Bibliography
44842 \labelwidthstring Bibliography
44843 \begin_inset CommandInset bibitem
44844 LatexCommand bibitem
44849 Documentation of the LaTeX-package
44852 \begin_inset CommandInset href
44855 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44862 \begin_inset Index idx
44865 \begin_layout Plain Layout
44866 LaTeX-packages ! hyperref
44874 \begin_layout Bibliography
44875 \labelwidthstring Bibliography
44876 \begin_inset CommandInset bibitem
44877 LatexCommand bibitem
44882 Documentation of the LaTeX-package
44885 \begin_inset CommandInset href
44888 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44895 \begin_inset Index idx
44898 \begin_layout Plain Layout
44899 LaTeX-packages ! KOMA-Script
44907 \begin_layout Bibliography
44908 \labelwidthstring Bibliography
44909 \begin_inset CommandInset bibitem
44910 LatexCommand bibitem
44915 Documentation of the LaTeX-package
44918 \begin_inset CommandInset href
44921 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44928 \begin_inset CommandInset href
44931 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44936 \begin_inset Index idx
44939 \begin_layout Plain Layout
44940 LaTeX-packages ! lettrine
44948 \begin_layout Bibliography
44949 \labelwidthstring Bibliography
44950 \begin_inset CommandInset bibitem
44951 LatexCommand bibitem
44956 Documentation of the LaTeX-package
44959 \begin_inset CommandInset href
44962 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44969 \begin_inset Index idx
44972 \begin_layout Plain Layout
44973 LaTeX-packages ! listings
44981 \begin_layout Bibliography
44982 \labelwidthstring Bibliography
44983 \begin_inset CommandInset bibitem
44984 LatexCommand bibitem
44989 Documentation of the LaTeX-package
44992 \begin_inset CommandInset href
44995 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45002 \begin_inset Index idx
45005 \begin_layout Plain Layout
45006 LaTeX-packages ! marginnote
45014 \begin_layout Bibliography
45015 \labelwidthstring Bibliography
45016 \begin_inset CommandInset bibitem
45017 LatexCommand bibitem
45022 Documentation of the LaTeX-package
45025 \begin_inset CommandInset href
45028 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45035 \begin_inset Index idx
45038 \begin_layout Plain Layout
45039 LaTeX-packages ! pdfpages
45047 \begin_layout Bibliography
45048 \labelwidthstring Bibliography
45049 \begin_inset CommandInset bibitem
45050 LatexCommand bibitem
45055 Documentation of the LaTeX-package
45058 \begin_inset CommandInset href
45061 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45068 \begin_inset Index idx
45071 \begin_layout Plain Layout
45072 LaTeX-packages ! prettyref
45080 \begin_layout Bibliography
45081 \labelwidthstring Bibliography
45082 \begin_inset CommandInset bibitem
45083 LatexCommand bibitem
45088 Web page of the LaTeX-package
45091 \begin_inset CommandInset href
45094 target "http://tug.org/PSTricks/"
45101 \begin_inset Index idx
45104 \begin_layout Plain Layout
45105 LaTeX-packages ! PSTricks
45113 \begin_layout Bibliography
45114 \labelwidthstring Bibliography
45115 \begin_inset CommandInset bibitem
45116 LatexCommand bibitem
45121 Documentation of the LaTeX-package
45124 \begin_inset CommandInset href
45127 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45134 \begin_inset Index idx
45137 \begin_layout Plain Layout
45138 LaTeX-packages ! refstyle
45146 \begin_layout Bibliography
45147 \labelwidthstring Bibliography
45148 \begin_inset CommandInset bibitem
45149 LatexCommand bibitem
45154 Documentation of the LaTeX-package
45157 \begin_inset CommandInset href
45160 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45167 \begin_inset Index idx
45170 \begin_layout Plain Layout
45171 LaTeX-packages ! sidecap
45179 \begin_layout Bibliography
45180 \labelwidthstring Bibliography
45181 \begin_inset CommandInset bibitem
45182 LatexCommand bibitem
45188 \begin_inset CommandInset href
45191 target "http://wiki.lyx.org/LyX/NewInLyX20"
45195 about new features in
45202 \begin_layout Standard
45203 \begin_inset CommandInset index_print
45204 LatexCommand printindex