1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
176 \default_output_format pdf2
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \use_package amsmath 2
200 \use_package amssymb 2
201 \use_package cancel 0
203 \use_package mathdots 1
204 \use_package mathtools 0
205 \use_package mhchem 1
206 \use_package stackrel 0
207 \use_package stmaryrd 0
208 \use_package undertilde 0
210 \cite_engine_type default
214 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_language english
230 \paperpagestyle default
231 \tracking_changes false
232 \output_changes false
235 \html_be_strict false
242 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
246 by the \SpecialChar LyX
251 \begin_layout Plain Layout
253 If you have comments or error corrections, please send them to the \SpecialChar LyX
256 \begin_inset CommandInset href
258 name "lyx-docs@lists.lyx.org"
259 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
270 \begin_inset Note Note
273 \begin_layout Plain Layout
280 \begin_inset Newline newline
284 \begin_inset Newline newline
292 \begin_layout Standard
293 \begin_inset CommandInset toc
294 LatexCommand tableofcontents
301 \begin_layout Standard
302 \begin_inset Note Note
305 \begin_layout Plain Layout
306 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
317 diagbox, lettrine, marginnote, picinpar
324 If they are not installed you can export the document anyway but the sections
325 where the packages are required won't appear in the output.
328 \begin_layout Plain Layout
329 The latest PDF-version of this document can be found here:
330 \begin_inset Newline newline
335 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
343 \begin_layout Chapter
345 \begin_inset Index idx
348 \begin_layout Plain Layout
355 \begin_inset Index idx
358 \begin_layout Plain Layout
363 \begin_layout Plain Layout
374 \begin_layout Plain Layout
389 \begin_layout Section
391 \begin_inset Index idx
394 \begin_layout Plain Layout
395 Figures ! Graphics Dialog
401 \begin_inset CommandInset label
403 name "sec:Graphics-Dialog"
410 \begin_layout Standard
411 To insert an image into your document, place the cursor at the text position
412 you want and click on the toolbar icon
415 arg "dialog-show-new-inset graphics"
420 Insert\SpecialChar menuseparator
424 Then a dialog will appear to choose the file to load.
425 The image will appear in the output exactly at the position where it is
429 \begin_layout Standard
430 The graphics dialog can be called at any time by clicking on an image.
431 This dialog has three tabs:
434 \begin_layout Description
439 Here you can choose an image file and adjust its appearance in the output.
440 The available units for the image size are explained in appendix
445 \begin_inset CommandInset ref
447 reference "cha:Units-available-in"
452 \begin_inset Newline newline
456 \begin_inset Index idx
459 \begin_layout Plain Layout
465 You can rotate images counter-clockwise by setting a rotation angle and
467 The image will also be rotated inside \SpecialChar LyX
469 \begin_inset Newline newline
473 \begin_inset Index idx
476 \begin_layout Plain Layout
482 Images can be scaled by using a percentage value or by setting the width
483 and height explicitly.
484 If you set only the width or only the height, the other size will be determined
486 If you set both, then the image will be transformed to the given size,
487 possibly distorting it.
488 To prevent the image from distortion, use the option
490 Maintain aspect ratio
493 The image will then be scaled so that its width and height don't exceed
494 the specified dimensions.
495 \begin_inset Newline newline
498 Images can be opened in a program of your choice by right-clicking on it
499 and choosing the entry
508 The program can be set for every image format in the file format settings
513 \begin_layout Description
518 Alternatively to the usage of scaling units it is possible to set image
519 coordinates to adjust the height and width of the image in the output.
520 The coordinates can also be calculated automatically by pressing the button
550 will only print the image region within the given coordinates.
551 Normally you don't need to worry about image coordinates and can ignore
555 \begin_layout Description
572 In this tab you can modify the appearance of the image within \SpecialChar LyX
573 and \SpecialChar LaTeX
575 can specify additional \SpecialChar LaTeX
577 \begin_inset Newline newline
588 makes the image appear in the output only as a frame with the size of the
590 \begin_inset Newline newline
601 you can define or join an image settings group.
602 \begin_inset Index idx
605 \begin_layout Plain Layout
606 Figures ! Settings grouping
611 Images within such a group share their settings, so adjusting one image
612 of the group automatically also adjusts all other images of the group in
614 So you can for example change the size for a bunch of images without the
615 need to manually change each of them.
616 Joining an existing group can also be done using the context menu of the
617 image by checking the name of the desired group.
620 \begin_layout Standard
621 \begin_inset VSpace bigskip
627 \begin_layout Standard
628 This is an example image in EPS format
632 \begin_layout Plain Layout
633 Image formats are explained in section
638 \begin_inset CommandInset ref
640 reference "sec:Image-Formats"
649 within a separate, horizontally centered paragraph:
650 \begin_inset Separator latexpar
656 \begin_layout Standard
658 \begin_inset Graphics
659 filename clipart/mobius.eps
669 \begin_layout Standard
670 This is the same image like the one above but in draft mode:
671 \begin_inset Separator latexpar
677 \begin_layout Standard
679 \begin_inset Graphics
680 filename clipart/mobius.eps
691 \begin_layout Standard
692 \begin_inset Newpage newpage
698 \begin_layout Section
700 \begin_inset CommandInset label
702 name "sec:Figure-Floats"
707 \begin_inset Index idx
710 \begin_layout Plain Layout
717 \begin_inset Index idx
720 \begin_layout Plain Layout
729 \begin_layout Standard
730 For general explanations about floats, have a look at section
735 \begin_inset CommandInset ref
737 reference "sec:FloatIntroduction"
744 \begin_layout Standard
748 arg "float-insert figure"
753 Insert\SpecialChar menuseparator
754 Float\SpecialChar menuseparator
757 inserts a float with a caption that has the label
758 \begin_inset Quotes eld
766 \begin_inset Quotes erd
769 (# is the actual number).
770 You can insert the image above the caption, like in Figure
775 \begin_inset CommandInset ref
777 reference "fig:kill-plat"
781 or below the caption, like in Figure
786 \begin_inset CommandInset ref
788 reference "fig:escher"
793 More about caption placement is described in section
798 \begin_inset CommandInset ref
800 reference "sec:Caption-Placement"
807 \begin_layout Standard
808 \begin_inset Float figure
813 \begin_layout Plain Layout
815 \begin_inset Graphics
816 filename clipart/platypus.eps
826 \begin_layout Plain Layout
827 \begin_inset Caption Standard
829 \begin_layout Plain Layout
830 \begin_inset CommandInset label
836 A severely distorted platypus in a float.
849 \begin_layout Standard
850 \begin_inset Float figure
855 \begin_layout Plain Layout
856 \begin_inset Caption Standard
858 \begin_layout Plain Layout
859 \begin_inset CommandInset label
874 \begin_layout Plain Layout
876 \begin_inset Graphics
877 filename clipart/escher-lsd.eps
892 \begin_layout Standard
893 \begin_inset Index idx
896 \begin_layout Plain Layout
897 References ! to Figures
907 \begin_inset CommandInset ref
909 reference "fig:kill-plat"
914 \begin_inset CommandInset ref
916 reference "fig:escher"
920 are examples of referenced figures.
921 Figures can be referenced in the text by referencing their label.
922 To do this insert a label in the caption using the menu
924 Insert\SpecialChar menuseparator
927 or the toolbar button
934 You can now refer to the label using the menu
936 Insert\SpecialChar menuseparator
943 or the toolbar button
946 arg "dialog-show-new-inset ref"
950 It is important to use references to floats, rather than using vague references
952 \begin_inset Quotes eld
956 \begin_inset Quotes erd
959 , because \SpecialChar LaTeX
960 will reposition the floats in the final document and it might
962 \begin_inset Quotes eld
966 \begin_inset Quotes erd
970 \begin_inset Newline newline
973 Referencing is explained in detail in section
978 \begin_inset CommandInset ref
980 reference "sec:Referencing-Floats"
987 \begin_layout Standard
988 Normally only one image is inserted to a figure float, but sometimes you
989 might want to use two images with separate subcaptions.
990 This can be done by inserting image floats into existing image floats.
991 Note that only the main caption of the float is added to the List of Figures.
997 \begin_inset CommandInset ref
999 reference "fig:Two-distorted-images"
1003 is an example of a figure float with two images set side by side.
1004 You can also set the images one below the other.
1006 \begin_inset space ~
1010 \begin_inset CommandInset ref
1012 reference "fig:Undefinable-structure"
1017 \begin_inset CommandInset ref
1019 reference "fig:A-Platypus"
1026 \begin_layout Standard
1027 \begin_inset Float figure
1032 \begin_layout Plain Layout
1033 \begin_inset space \hfill{}
1037 \begin_inset Float figure
1042 \begin_layout Plain Layout
1043 \begin_inset Caption Standard
1045 \begin_layout Plain Layout
1046 \begin_inset CommandInset label
1048 name "fig:Undefinable-structure"
1052 Undefinable structure.
1060 \begin_layout Plain Layout
1061 \begin_inset Graphics
1062 filename clipart/escher-lsd.eps
1075 \begin_inset space \hfill{}
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset Caption Standard
1087 \begin_layout Plain Layout
1088 \begin_inset CommandInset label
1090 name "fig:A-Platypus"
1102 \begin_layout Plain Layout
1103 \begin_inset Graphics
1104 filename clipart/platypus.eps
1117 \begin_inset space \hfill{}
1123 \begin_layout Plain Layout
1124 \begin_inset Caption Standard
1126 \begin_layout Plain Layout
1127 \begin_inset CommandInset label
1129 name "fig:Two-distorted-images"
1133 Two distorted images.
1134 Both images are in the image settings group named
1135 \begin_inset Quotes eld
1139 \begin_inset Quotes erd
1155 \begin_layout Standard
1156 \begin_inset Newpage newpage
1162 \begin_layout Section
1164 \begin_inset CommandInset label
1166 name "sec:Image-Formats"
1171 \begin_inset Index idx
1174 \begin_layout Plain Layout
1181 \begin_inset Index idx
1184 \begin_layout Plain Layout
1185 Figures ! Image Formats
1193 \begin_layout Standard
1194 You can insert images in any known file format.
1195 But as explained in appendix
1196 \begin_inset space ~
1200 \begin_inset CommandInset ref
1202 reference "cha:Output-File-Formats"
1206 , each output document format allows only a few image formats.
1208 uses therefore the program
1212 in the background to convert the images to the right format.
1213 To increase your work flow by avoiding these conversions in the background,
1214 you could choose to use only the image formats that can directly be embedded
1215 in the output file format.
1216 The output file formats are explained in appendix
1217 \begin_inset space ~
1221 \begin_inset CommandInset ref
1223 reference "cha:Output-File-Formats"
1230 \begin_layout Standard
1231 Similar to fonts there are two types of image formats:
1234 \begin_layout Description
1236 \begin_inset space ~
1239 images consist of pixel values, often in a compressed form.
1240 They are therefore not fully scalable and look pixelated in large zooms.
1241 Well-known bitmap image formats are
1242 \begin_inset Quotes eld
1245 Graphics Interchange Format
1246 \begin_inset Quotes erd
1249 (GIF, file extension
1250 \begin_inset Quotes eld
1258 \begin_inset Quotes erd
1262 \begin_inset Index idx
1265 \begin_layout Plain Layout
1270 \begin_layout Plain Layout
1281 \begin_layout Plain Layout
1294 \begin_inset Quotes eld
1297 Portable Network Graphics
1298 \begin_inset Quotes erd
1301 (PNG, file extension
1302 \begin_inset Quotes eld
1310 \begin_inset Quotes erd
1314 \begin_inset Index idx
1317 \begin_layout Plain Layout
1322 \begin_layout Plain Layout
1333 \begin_layout Plain Layout
1346 \begin_inset Quotes eld
1349 Joint Photographic Experts Group
1350 \begin_inset Quotes erd
1353 (JPG, file extension
1354 \begin_inset Quotes eld
1362 \begin_inset Quotes erd
1366 \begin_inset Quotes eld
1374 \begin_inset Quotes erd
1378 \begin_inset Index idx
1381 \begin_layout Plain Layout
1386 \begin_layout Plain Layout
1397 \begin_layout Plain Layout
1412 \begin_layout Description
1414 \begin_inset space ~
1417 images consist of vectors and can therefore be scaled to any size without
1419 The scaling ability is necessary if you want to create presentations, because
1420 presentations are always scaled by the video projector.
1421 Scaling is also useful for online documents to let the user zoom into diagrams.
1422 \begin_inset Newline newline
1425 Well-known scalable image formats are
1426 \begin_inset Quotes eld
1429 Scalable Vector Graphics
1430 \begin_inset Quotes erd
1433 (SVG, file extension
1434 \begin_inset Quotes eld
1442 \begin_inset Quotes erd
1446 \begin_inset Index idx
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1478 \begin_inset Quotes eld
1481 Encapsulated PostScript
1482 \begin_inset Quotes erd
1485 (EPS, file extension
1486 \begin_inset Quotes eld
1494 \begin_inset Quotes erd
1498 \begin_inset Index idx
1501 \begin_layout Plain Layout
1506 \begin_layout Plain Layout
1517 \begin_layout Plain Layout
1530 \begin_inset Quotes eld
1533 Portable Document Format
1534 \begin_inset Quotes erd
1537 (PDF, file extension
1538 \begin_inset Quotes eld
1546 \begin_inset Quotes erd
1550 \begin_inset Index idx
1553 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1564 \begin_inset Quotes erd
1567 (WMF, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1613 \begin_inset Quotes eld
1617 \begin_inset Quotes erd
1620 , because you can convert any bitmap image to a PDF or EPS-image and the
1621 result will still be a bitmap image.
1622 In such cases only a header with the image properties is added to the original
1627 \begin_layout Plain Layout
1628 In the case of PDF, the original image is additionally compressed.
1634 The PDF-files generated by
1638 are for example bitmap images.
1641 \begin_layout Standard
1642 Normally it is not possible to convert a bitmap image into a scalable one,
1644 Only the image formats PDF and EPS can directly be embedded to PDF and
1645 PostScript output files, respectively.
1646 SVG and WMF-images are recalculated to bitmaps when the output file is
1647 generated because there is currently no adequate WMF/SVG
1648 \begin_inset Formula $\to$
1651 PDF/EPS converter available.
1654 \begin_layout Chapter
1656 \begin_inset Index idx
1659 \begin_layout Plain Layout
1668 \begin_layout Section
1670 \begin_inset Index idx
1673 \begin_layout Plain Layout
1674 Table ! Introduction
1682 \begin_layout Standard
1683 You can insert a table using either the toolbar button
1686 arg "tabular-insert"
1691 Insert\SpecialChar menuseparator
1695 The toolbar button offers you a graphical selection: move the mouse to
1696 set the column/row number of the table that should be created and then
1697 press a mouse button.
1698 When you use the menu to create a table, a dialog will appear, asking you
1699 for the number of rows and columns.
1700 \begin_inset Newline newline
1703 The default table has lines around any cell and the first row appears separated
1704 from the rest of the table.
1705 This separation occurs due to a double line: The cells of the first row
1706 have a line below them and the cells of the second row have a line above
1708 Here is an example table:
1709 \begin_inset Separator latexpar
1715 \begin_layout Standard
1717 \begin_inset Tabular
1718 <lyxtabular version="3" rows="4" columns="4">
1719 <features tabularvalignment="middle">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1723 <column alignment="center" valignment="top">
1725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1728 \begin_layout Plain Layout
1734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1737 \begin_layout Plain Layout
1752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1755 \begin_layout Plain Layout
1761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1764 \begin_layout Plain Layout
1772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1775 \begin_layout Plain Layout
1790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1793 \begin_layout Plain Layout
1799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1802 \begin_layout Plain Layout
1808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1811 \begin_layout Plain Layout
1819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1822 \begin_layout Plain Layout
1837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1840 \begin_layout Plain Layout
1846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1849 \begin_layout Plain Layout
1855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1858 \begin_layout Plain Layout
1866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1869 \begin_layout Plain Layout
1884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1887 \begin_layout Plain Layout
1893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1896 \begin_layout Plain Layout
1902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1905 \begin_layout Plain Layout
1919 \begin_layout Section
1921 \begin_inset Index idx
1924 \begin_layout Plain Layout
1933 \begin_layout Standard
1934 You can alter a table by clicking on it with the right mouse button, which
1935 brings up the context menu.
1936 Under the menu entry
1940 you can adjust the settings of that cell and row/column respectively where
1941 the cursor is currently placed.
1944 More\SpecialChar menuseparator
1947 opens the table dialog where you can adjust more things.
1948 Most of the dialog options also work on selections.
1949 This means if you select more cells, columns or rows, the action is done
1950 for the whole selection.
1951 Note that there is a difference between selecting the
1955 of the cell, and the cell itself.
1956 \begin_inset Newline newline
1959 With the dialog option
1962 \begin_inset space ~
1967 every change you make in the dialog is directly applied.
1968 If you move the cursor to another table cell the dialog will then also
1969 be updated with the parameters of the new cell.
1970 If you change length values in the dialog you must press
1974 to get the change applied.
1975 \begin_inset Newline newline
1978 You can alter tables with the following tabs of the table dialog:
1981 \begin_layout Description
1983 \begin_inset space ~
1986 Settings Here you can set the table width
1987 \begin_inset Index idx
1990 \begin_layout Plain Layout
1996 , and the horizontal alignment and the width of the current column.
2000 \begin_inset space ~
2004 \begin_inset space ~
2009 is described in section
2010 \begin_inset space ~
2014 \begin_inset CommandInset ref
2016 reference "subsec:Special-Cell-Alignment"
2021 When you have set a width you can also adjust the vertical alignment of
2023 A given width will allow the cell to have line breaks and multiple paragraphs
2025 \begin_inset space \thinspace{}
2029 \begin_inset CommandInset ref
2031 reference "subsec:Multiple-Lines-in"
2036 If you set no width, the column is as wide as the content of its widest
2038 \begin_inset Newline newline
2041 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2043 \begin_inset space \thinspace{}
2047 \begin_inset CommandInset ref
2049 reference "subsec:Multicolumns"
2053 or the cells of one column as multirow cell, see sec.
2054 \begin_inset space \thinspace{}
2058 \begin_inset CommandInset ref
2060 reference "subsec:Multirows"
2065 \begin_inset Newline newline
2068 The rotate check boxes rotate the current cell, a selection, or the whole
2069 table counter-clockwise by 90
2070 \begin_inset space \thinspace{}
2074 The rotation is not shown within \SpecialChar LyX
2075 , only in the output.
2076 For more information see sec.
2077 \begin_inset space \thinspace{}
2081 \begin_inset CommandInset ref
2083 reference "sec:Rotated-Table-Cells"
2088 \begin_inset Newline newline
2092 \begin_inset Note Greyedout
2095 \begin_layout Plain Layout
2100 Not all DVI-viewers are able to display rotations.
2106 \begin_inset Newline newline
2109 The table-wide vertical alignment is used for tables within text lines:
2110 \begin_inset Newline newline
2113 A line with tables with different alignments:
2114 \begin_inset Tabular
2115 <lyxtabular version="3" rows="2" columns="2">
2116 <features tabularvalignment="top">
2117 <column alignment="center" valignment="top" width="0pt">
2118 <column alignment="center" valignment="top">
2120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2123 \begin_layout Plain Layout
2129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2132 \begin_layout Plain Layout
2149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2152 \begin_layout Plain Layout
2167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2170 \begin_layout Plain Layout
2182 \begin_inset Tabular
2183 <lyxtabular version="3" rows="2" columns="2">
2184 <features tabularvalignment="middle">
2185 <column alignment="center" valignment="top">
2186 <column alignment="center" valignment="top">
2188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2191 \begin_layout Plain Layout
2197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2200 \begin_layout Plain Layout
2217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2220 \begin_layout Plain Layout
2235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2238 \begin_layout Plain Layout
2250 \begin_inset Tabular
2251 <lyxtabular version="3" rows="2" columns="2">
2252 <features tabularvalignment="bottom">
2253 <column alignment="center" valignment="top" width="0pt">
2254 <column alignment="center" valignment="top">
2256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2259 \begin_layout Plain Layout
2265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2268 \begin_layout Plain Layout
2285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2288 \begin_layout Plain Layout
2303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2306 \begin_layout Plain Layout
2318 \begin_inset Newline newline
2321 It is also possible to enter a \SpecialChar LaTeX
2322 -argument which is needed for special table
2323 formattings, see sec.
2324 \begin_inset space \thinspace{}
2328 \begin_inset CommandInset ref
2330 reference "subsec:Multicolumn-Calculations"
2335 \begin_inset CommandInset ref
2337 reference "sec:Colored-Tables"
2344 \begin_layout Description
2345 Borders In this tab you can add and delete border lines for the current
2347 \begin_inset Newline newline
2350 Using the style option
2354 will convert the table to a formal table as described in sec.
2355 \begin_inset space \thinspace{}
2359 \begin_inset CommandInset ref
2361 reference "sec:Formal-Tables"
2366 \begin_inset Newline newline
2369 You can also add space here to table rows as described in sec.
2370 \begin_inset space \thinspace{}
2374 \begin_inset CommandInset ref
2376 reference "subsec:Row-Spacing"
2383 \begin_layout Description
2385 \begin_inset space ~
2388 table This tab is to make a table a multi-page table that can run over several
2391 \begin_inset space ~
2395 \begin_inset CommandInset ref
2397 reference "sec:Multi-page-Tables"
2402 \begin_inset CommandInset ref
2404 reference "sec:Special-Longtable-Issues"
2408 describe the multi-page table features in detail.
2411 \begin_layout Section
2413 \begin_inset Index idx
2416 \begin_layout Plain Layout
2425 \begin_layout Standard
2426 The table toolbar is an alternative to the table dialog to be able to alter
2428 It should normally appear at the bottom of \SpecialChar LyX
2429 's main window when the cursor
2431 You can alternatively switch it on to appear always, by right-clicking
2436 \begin_layout Standard
2437 The toolbar has the following icons:
2440 \begin_layout Labeling
2441 \labelwidthstring 00.00.0000
2444 arg "tabular-feature append-row"
2447 adds a row below the current cell or selection
2450 \begin_layout Labeling
2451 \labelwidthstring 00.00.0000
2454 arg "tabular-feature append-column"
2457 adds a column right beside the current cell or selection
2460 \begin_layout Labeling
2461 \labelwidthstring 00.00.0000
2464 arg "tabular-feature delete-row"
2467 deletes the current row or selection
2470 \begin_layout Labeling
2471 \labelwidthstring 00.00.0000
2474 arg "tabular-feature delete-column"
2477 deletes the current column or selection
2480 \begin_layout Labeling
2481 \labelwidthstring 00.00.0000
2484 arg "tabular-feature move-row-up"
2490 \begin_layout Labeling
2491 \labelwidthstring 00.00.0000
2494 arg "tabular-feature move-column-left"
2497 moves the column to the left
2500 \begin_layout Labeling
2501 \labelwidthstring 00.00.0000
2504 arg "tabular-feature move-row-down"
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2514 arg "tabular-feature move-column-right"
2517 moves the column to the right
2520 \begin_layout Labeling
2521 \labelwidthstring 00.00.0000
2524 arg "tabular-feature toggle-line-top"
2527 adds a line at the top of the current cell / row or of a selection
2530 \begin_layout Labeling
2531 \labelwidthstring 00.00.0000
2534 arg "tabular-feature toggle-line-bottom"
2537 adds a line at the bottom of the current cell / row or of a selection
2540 \begin_layout Labeling
2541 \labelwidthstring 00.00.0000
2544 arg "tabular-feature toggle-line-left"
2547 adds a line at the left side of the current cell / row or of a selection
2550 \begin_layout Labeling
2551 \labelwidthstring 00.00.0000
2554 arg "tabular-feature toggle-line-right"
2557 adds a line at the right side of the current cell / row or of a selection
2560 \begin_layout Labeling
2561 \labelwidthstring 00.00.0000
2564 arg "tabular-feature set-all-lines"
2567 adds lines around the current or selected cells - if the current cell no
2568 multicolumn cell this also affects the current row and column
2571 \begin_layout Labeling
2572 \labelwidthstring 00.00.0000
2575 arg "tabular-feature unset-all-lines"
2578 deletes all lines of the current or selected cells - if the current cell
2579 no multicolumn cell this also affects the current row and column
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "tabular-feature m-align-left"
2589 left-aligns the content of the current cell / column
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "tabular-feature m-align-center"
2599 centers the content of the current cell / column horizontally
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "tabular-feature m-align-right"
2609 right-aligns the content of the current cell / column
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "tabular-feature align-decimal"
2619 aligns the content of the current column at a character
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "tabular-feature m-valign-top"
2629 aligns the content of the current cell vertically to the top
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "tabular-feature m-valign-middle"
2639 centers the content of the current cell vertically
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "tabular-feature m-valign-bottom"
2649 aligns the content of the current cell vertically to the bottom
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "tabular-feature set-rotate-cell"
2659 rotates the current cell or selection counter-clockwise by 90°
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2666 arg "tabular-feature set-rotate-tabular"
2669 rotates the whole table counter-clockwise by 90°
2672 \begin_layout Labeling
2673 \labelwidthstring 00.00.0000
2676 arg "tabular-feature multicolumn"
2679 sets the current cell or selection as a multicolumn
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2686 arg "tabular-feature multirow"
2689 sets the current cell or selection as a multirow
2692 \begin_layout Standard
2693 \begin_inset Note Greyedout
2696 \begin_layout Plain Layout
2701 For the output the vertical alignment of the first cell in a row is used
2702 for all following cells in the row.
2710 \begin_layout Section
2712 \begin_inset Index idx
2715 \begin_layout Plain Layout
2724 \begin_layout Standard
2725 In addition to the table dialog and toolbar, the menu
2727 Edit\SpecialChar menuseparator
2730 allows you to add and delete border lines for the current row/column and
2731 to set the current selection as multicolumn.
2732 The menu is only available when the cursor is inside a table.
2735 \begin_layout Section
2737 \begin_inset CommandInset label
2739 name "sec:Table-Floats"
2744 \begin_inset Index idx
2747 \begin_layout Plain Layout
2754 \begin_inset Index idx
2757 \begin_layout Plain Layout
2766 \begin_layout Standard
2767 For general explanations about floats, have a look at section
2768 \begin_inset space ~
2772 \begin_inset CommandInset ref
2774 reference "sec:FloatIntroduction"
2781 \begin_layout Standard
2782 \begin_inset Float table
2788 \begin_layout Plain Layout
2789 \begin_inset Caption Standard
2791 \begin_layout Plain Layout
2792 \begin_inset CommandInset label
2794 name "tab:a table float"
2806 \begin_layout Plain Layout
2808 \begin_inset Tabular
2809 <lyxtabular version="3" rows="3" columns="3">
2810 <features tabularvalignment="middle">
2811 <column alignment="center" valignment="top" width="0pt">
2812 <column alignment="center" valignment="top" width="0pt">
2813 <column alignment="center" valignment="top" width="0pt">
2815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2818 \begin_layout Plain Layout
2833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2836 \begin_layout Plain Layout
2851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2854 \begin_layout Plain Layout
2871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2874 \begin_layout Plain Layout
2889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2892 \begin_layout Plain Layout
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2910 \begin_layout Plain Layout
2927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2930 \begin_layout Plain Layout
2940 \begin_inset Formula $\int x^{2}dx$
2948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2951 \begin_layout Plain Layout
2961 \begin_inset Formula $\left[\begin{array}{cc}
2972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2975 \begin_layout Plain Layout
2985 \begin_inset Formula $1+1=2$
3006 \begin_layout Standard
3007 Table floats can be inserted using the menu
3009 Insert\SpecialChar menuseparator
3010 Float\SpecialChar menuseparator
3013 or the toolbar button
3016 arg "float-insert table"
3022 \begin_layout Standard
3023 The float appears as a collapsible box with a caption that has the label
3025 \begin_inset Quotes eld
3029 \begin_inset space ~
3033 \begin_inset Quotes erd
3036 (# is the actual table number).
3037 You can insert tables in the float above or below the caption.
3040 \begin_layout Standard
3042 \begin_inset space ~
3046 \begin_inset CommandInset ref
3048 reference "tab:a table float"
3052 is an example table within a table float.
3055 \begin_layout Standard
3056 Having the caption above the table is the common rule that is unfortunately
3057 not supported in \SpecialChar LaTeX
3058 's standard classes.
3059 This means that, if you are using the document classes
3075 , there will be no space between the caption and the table.
3076 To insert the needed space, add the following option to the load command
3077 of the \SpecialChar LaTeX
3083 \begin_inset Index idx
3086 \begin_layout Plain Layout
3093 in your document preamble:
3097 \begin_layout Plain Layout
3098 For more information have a look at section
3099 \begin_inset space ~
3103 \begin_inset CommandInset ref
3105 reference "sec:Caption-Placement"
3117 \begin_layout Standard
3123 \begin_layout Standard
3128 , which is described in section
3129 \begin_inset space ~
3133 \begin_inset CommandInset ref
3135 reference "sec:Caption-Formatting"
3139 , is used to adjust the caption format.
3142 \begin_layout Standard
3143 \begin_inset Index idx
3146 \begin_layout Plain Layout
3147 References ! to Tables
3152 Tables can be cross-referenced in the text by referencing their label.
3153 To do this insert a label in the caption using the menu
3155 Insert\SpecialChar menuseparator
3158 or the toolbar button
3165 You can now refer to the label using the menu
3167 Insert\SpecialChar menuseparator
3169 \begin_inset space ~
3174 or the toolbar button
3177 arg "dialog-show-new-inset ref"
3181 \begin_inset Newline newline
3184 Referencing is explained in detail in section
3185 \begin_inset space ~
3189 \begin_inset CommandInset ref
3191 reference "sec:Referencing-Floats"
3198 \begin_layout Section
3204 \begin_inset CommandInset label
3206 name "sec:Multi-page-Tables"
3211 \begin_inset Index idx
3214 \begin_layout Plain Layout
3221 \begin_inset Index idx
3224 \begin_layout Plain Layout
3225 Table ! Multi-page Table
3233 \begin_layout Standard
3234 If the table is too long to fit on one page, you can use the option
3237 \begin_inset space ~
3245 \begin_inset space ~
3250 of the table dialog to split the table automatically over more pages.
3251 Doing this enables the following options:
3254 \begin_layout Description
3255 Header: The current row is defined to be a header row that appears on all
3256 pages of the multi-page table; except for the first page, if
3259 \begin_inset space ~
3265 This is therefore called the main header.
3268 \begin_layout Description
3270 \begin_inset space ~
3273 header: The current row is defined to be a header row that appears on the
3274 first page of the multi-page table.
3277 \begin_layout Description
3278 Footer: The current row is defined to be a footer row that appears on all
3279 pages of the multi-page table; except for the last page, if
3282 \begin_inset space ~
3290 \begin_layout Description
3292 \begin_inset space ~
3295 footer: The current row is defined to be a footer row that appears on the
3296 last page of the multi-page table.
3299 \begin_layout Description
3300 Caption: The current row contains the table caption.
3301 The row is reset as single column and a caption is inserted.
3302 More about multi-page table captions is explained in sec.
3303 \begin_inset space \thinspace{}
3307 \begin_inset CommandInset ref
3309 reference "subsec:Multi-page-Table-Captions"
3316 \begin_layout Standard
3317 You can also specify a row where the table is split.
3318 See the following multi-page table to see how it works:
3319 \begin_inset Separator latexpar
3325 \begin_layout Standard
3327 \begin_inset Tabular
3328 <lyxtabular version="3" rows="69" columns="3">
3329 <features islongtable="true" longtabularalignment="center">
3330 <column alignment="left" valignment="top" width="0cm">
3331 <column alignment="left" valignment="top" width="0pt">
3332 <column alignment="center" valignment="top" width="0pt">
3333 <row endfirsthead="true">
3334 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3337 \begin_layout Plain Layout
3340 Example Phone List (ignore the names)
3345 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3348 \begin_layout Plain Layout
3354 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3357 \begin_layout Plain Layout
3364 <row endfirsthead="true">
3365 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3368 \begin_layout Plain Layout
3376 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3379 \begin_layout Plain Layout
3385 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3388 \begin_layout Plain Layout
3397 <row endhead="true">
3398 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Plain Layout
3409 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3412 \begin_layout Plain Layout
3418 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3421 \begin_layout Plain Layout
3428 <row endhead="true">
3429 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3432 \begin_layout Plain Layout
3440 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3443 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Plain Layout
3461 <row endfoot="true">
3462 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3465 \begin_layout Plain Layout
3466 continued on next page
3471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3474 \begin_layout Plain Layout
3480 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3494 \begin_layout Plain Layout
3502 <cell alignment="center" valignment="top" usebox="none">
3505 \begin_layout Plain Layout
3511 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3525 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" usebox="none">
3536 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3556 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" usebox="none">
3567 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3587 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" usebox="none">
3598 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3618 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" usebox="none">
3629 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3649 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" usebox="none">
3660 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3680 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" usebox="none">
3691 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3711 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" usebox="none">
3722 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3742 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" usebox="none">
3753 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3773 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" usebox="none">
3784 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3804 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" usebox="none">
3815 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3835 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" usebox="none">
3846 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3866 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" usebox="none">
3877 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3897 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" usebox="none">
3908 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3928 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" usebox="none">
3939 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3959 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" usebox="none">
3970 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3990 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" usebox="none">
4001 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4021 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" usebox="none">
4032 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4052 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" usebox="none">
4063 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4083 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" usebox="none">
4094 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4114 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" usebox="none">
4125 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4145 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" usebox="none">
4156 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4165 \begin_layout Plain Layout
4173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4176 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" usebox="none">
4187 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4196 \begin_layout Plain Layout
4204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4207 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" usebox="none">
4218 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4227 \begin_layout Plain Layout
4235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" usebox="none">
4249 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4258 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" usebox="none">
4280 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" usebox="none">
4311 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4320 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" usebox="none">
4342 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" usebox="none">
4373 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4382 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" usebox="none">
4404 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4413 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4435 \begin_layout Plain Layout
4441 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4444 \begin_layout Plain Layout
4452 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Plain Layout
4461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4464 \begin_layout Plain Layout
4470 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4484 \begin_layout Plain Layout
4492 <cell alignment="center" valignment="top" usebox="none">
4495 \begin_layout Plain Layout
4501 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4515 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" usebox="none">
4526 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4546 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" usebox="none">
4557 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4577 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" usebox="none">
4588 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4608 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" usebox="none">
4619 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4639 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" usebox="none">
4650 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4670 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" usebox="none">
4681 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4701 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" usebox="none">
4712 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4732 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" usebox="none">
4743 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4763 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" usebox="none">
4774 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4794 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" usebox="none">
4805 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4825 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" usebox="none">
4836 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4856 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" usebox="none">
4867 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4887 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" usebox="none">
4898 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4918 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" usebox="none">
4929 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4949 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" usebox="none">
4960 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4980 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" usebox="none">
4991 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5011 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" usebox="none">
5022 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5042 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" usebox="none">
5053 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5073 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" usebox="none">
5084 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5104 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" usebox="none">
5115 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5135 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" usebox="none">
5146 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5155 \begin_layout Plain Layout
5163 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5166 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" usebox="none">
5177 \begin_layout Plain Layout
5183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5186 \begin_layout Plain Layout
5194 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5197 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" usebox="none">
5208 \begin_layout Plain Layout
5214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5217 \begin_layout Plain Layout
5225 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5228 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" usebox="none">
5239 \begin_layout Plain Layout
5245 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5248 \begin_layout Plain Layout
5256 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5259 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" usebox="none">
5270 \begin_layout Plain Layout
5276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5279 \begin_layout Plain Layout
5287 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5290 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" usebox="none">
5301 \begin_layout Plain Layout
5307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5310 \begin_layout Plain Layout
5318 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5321 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" usebox="none">
5332 \begin_layout Plain Layout
5338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5341 \begin_layout Plain Layout
5349 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5352 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" usebox="none">
5363 \begin_layout Plain Layout
5369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5372 \begin_layout Plain Layout
5380 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5383 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5403 \begin_layout Plain Layout
5411 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5414 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5425 \begin_layout Plain Layout
5431 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5434 \begin_layout Plain Layout
5441 <row endlastfoot="true">
5442 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5445 \begin_layout Plain Layout
5451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5454 \begin_layout Plain Layout
5460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5463 \begin_layout Plain Layout
5478 \begin_layout Plain Layout
5482 addtocounter{table}{-1}
5488 \begin_inset Note Note
5491 \begin_layout Plain Layout
5492 See the first greyed-out note in section
5493 \begin_inset space ~
5497 \begin_inset CommandInset ref
5499 reference "subsec:Multi-page-Table-Captions"
5503 for an explanation of this command.
5511 \begin_layout Subsection
5512 Footnotes in Multi-page tables
5513 \begin_inset CommandInset label
5515 name "subsec:Footnotes-in-Multi-page"
5520 \begin_inset Index idx
5523 \begin_layout Plain Layout
5524 Table ! Multi-page Table ! Footnotes
5532 \begin_layout Standard
5533 Footnotes can be inserted to every Multi-page table cell.
5534 They appear at the bottom of the page where the table cell with the footnote
5537 \begin_inset space ~
5541 \begin_inset CommandInset ref
5543 reference "tab:DiffCaptions"
5547 has for example a footnote.
5550 \begin_layout Subsection
5551 Multi-page Table Alignment
5552 \begin_inset Index idx
5555 \begin_layout Plain Layout
5556 Table ! Multi-page Table ! Alignment
5564 \begin_layout Standard
5565 The horizontal alignment of multi-page tables can be set in the table settings
5567 For left- and right-alignment the table will be directly at the page border.
5568 To add space between the table and the border one has to set the alignment
5569 to center and change the value of the \SpecialChar LaTeX
5582 by inserting this line as \SpecialChar TeX
5583 Code before the multi-page table:
5586 \begin_layout Standard
5596 \begin_layout Standard
5597 The value can have any of the units listed in Table
5598 \begin_inset space ~
5602 \begin_inset CommandInset ref
5604 reference "tab:Units"
5615 controls the horizontal distance from the left page border to the multi-page
5622 the distance from the right side.
5623 The default value for both lengths is
5629 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5633 \begin_layout Standard
5634 The following multi-page table was centered and
5650 \begin_layout Plain Layout
5666 \begin_layout Standard
5667 \begin_inset Tabular
5668 <lyxtabular version="3" rows="5" columns="5">
5669 <features islongtable="true" longtabularalignment="center">
5670 <column alignment="center" valignment="top">
5671 <column alignment="center" valignment="top" width="0pt">
5672 <column alignment="center" valignment="top">
5673 <column alignment="center" valignment="top">
5674 <column alignment="center" valignment="top">
5676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5679 \begin_layout Plain Layout
5685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_layout Plain Layout
5694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5697 \begin_layout Plain Layout
5703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5706 \begin_layout Plain Layout
5712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5715 \begin_layout Plain Layout
5723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_layout Plain Layout
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5735 \begin_layout Plain Layout
5741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5744 \begin_layout Plain Layout
5750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5753 \begin_layout Plain Layout
5759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5762 \begin_layout Plain Layout
5770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5773 \begin_layout Plain Layout
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5782 \begin_layout Plain Layout
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5791 \begin_layout Plain Layout
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5800 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5809 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5820 \begin_layout Plain Layout
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5829 \begin_layout Plain Layout
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5838 \begin_layout Plain Layout
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5847 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5856 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5867 \begin_layout Plain Layout
5873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5876 \begin_layout Plain Layout
5882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5885 \begin_layout Plain Layout
5891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5894 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5903 \begin_layout Plain Layout
5918 \begin_layout Plain Layout
5935 \begin_layout Plain Layout
5939 addtocounter{table}{-1}
5945 \begin_inset Note Note
5948 \begin_layout Plain Layout
5949 See the first greyed-out note in section
5950 \begin_inset space ~
5954 \begin_inset CommandInset ref
5956 reference "subsec:Multi-page-Table-Captions"
5960 for an explanation of this command.
5968 \begin_layout Subsection
5969 Multi-page Table Captions
5970 \begin_inset Index idx
5973 \begin_layout Plain Layout
5974 Table ! Multi-page Table ! Captions
5980 \begin_inset CommandInset label
5982 name "subsec:Multi-page-Table-Captions"
5989 \begin_layout Standard
5990 A multi-page table cannot be put into a table float because floats can only
5992 But the caption environment of floats can also be used for multi-page tables
5993 when you use the multi-page table option
5997 as described in sec.
5998 \begin_inset space \thinspace{}
6002 \begin_inset CommandInset ref
6004 reference "sec:Multi-page-Tables"
6009 Only one table row should contain a caption, either a header or a footer
6013 \begin_layout Standard
6014 Here is a short multi-page table to see how it works:
6017 \begin_layout Standard
6018 \begin_inset Tabular
6019 <lyxtabular version="3" rows="6" columns="5">
6020 <features islongtable="true" longtabularalignment="center">
6021 <column alignment="center" valignment="top">
6022 <column alignment="center" valignment="top">
6023 <column alignment="center" valignment="top">
6024 <column alignment="center" valignment="top">
6025 <column alignment="center" valignment="top">
6026 <row endfirsthead="true" caption="true">
6027 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6030 \begin_layout Plain Layout
6031 \begin_inset Caption Standard
6033 \begin_layout Plain Layout
6034 Multi-page table with caption
6035 \begin_inset Argument 1
6038 \begin_layout Plain Layout
6054 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6057 \begin_layout Plain Layout
6063 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6066 \begin_layout Plain Layout
6072 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6075 \begin_layout Plain Layout
6081 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6084 \begin_layout Plain Layout
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Plain Layout
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Plain Layout
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Plain Layout
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6122 \begin_layout Plain Layout
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6131 \begin_layout Plain Layout
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Plain Layout
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Plain Layout
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Plain Layout
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6169 \begin_layout Plain Layout
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6178 \begin_layout Plain Layout
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Plain Layout
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Plain Layout
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Plain Layout
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6216 \begin_layout Plain Layout
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6225 \begin_layout Plain Layout
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Plain Layout
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6245 \begin_layout Plain Layout
6251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6254 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6263 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6272 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6292 \begin_layout Plain Layout
6298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6301 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6319 \begin_layout Plain Layout
6333 \begin_layout Standard
6334 \begin_inset VSpace medskip
6338 \begin_inset Note Greyedout
6341 \begin_layout Plain Layout
6345 \begin_inset space ~
6350 The table number is increased for every multi-page table, even if you did
6351 not set a caption for it.
6352 For this reason you could have the case that e.
6353 \begin_inset space \thinspace{}
6357 \begin_inset space \space{}
6361 \begin_inset space ~
6365 \begin_inset space ~
6368 2.1 in the list of tables if there are two multi-page tables without captions.
6369 To avoid this you can add the following command in \SpecialChar TeX
6370 Code after every multi-page
6371 table without a caption:
6374 \begin_layout Plain Layout
6379 addtocounter{table}{-1}
6382 \begin_layout Plain Layout
6383 This is not needed when none of your multi-page tables has a caption and
6384 you add the following code to the document preamble:
6387 \begin_layout Plain Layout
6397 \begin_inset Newline newline
6408 addtocounter{table}{-1}}
6416 \begin_layout Standard
6417 \begin_inset Note Greyedout
6420 \begin_layout Plain Layout
6424 \begin_inset space ~
6434 \begin_inset Index idx
6437 \begin_layout Plain Layout
6439 -packages ! hyperref
6452 dialog to link cross-references, the link to a multi-page table caption
6453 will always point to the beginning of the document.
6461 \begin_layout Subsubsection
6462 References to multi-page tables
6463 \begin_inset Index idx
6466 \begin_layout Plain Layout
6467 Table ! Multi-page Table ! References
6475 \begin_layout Standard
6476 \begin_inset Tabular
6477 <lyxtabular version="3" rows="6" columns="5">
6478 <features islongtable="true" longtabularalignment="center">
6479 <column alignment="center" valignment="top">
6480 <column alignment="center" valignment="top">
6481 <column alignment="center" valignment="top">
6482 <column alignment="center" valignment="top">
6483 <column alignment="center" valignment="top">
6484 <row endfirsthead="true" caption="true">
6485 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6488 \begin_layout Plain Layout
6489 \begin_inset Caption Standard
6491 \begin_layout Plain Layout
6492 Referenced multi-page table
6493 \begin_inset CommandInset label
6495 name "tab:Referenced-multi-page-table"
6509 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6512 \begin_layout Plain Layout
6518 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6521 \begin_layout Plain Layout
6527 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6530 \begin_layout Plain Layout
6536 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6539 \begin_layout Plain Layout
6547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6550 \begin_layout Plain Layout
6556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6559 \begin_layout Plain Layout
6565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6568 \begin_layout Plain Layout
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6577 \begin_layout Plain Layout
6583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6586 \begin_layout Plain Layout
6594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6615 \begin_layout Plain Layout
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6624 \begin_layout Plain Layout
6630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6633 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6662 \begin_layout Plain Layout
6668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6671 \begin_layout Plain Layout
6677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6680 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6709 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6718 \begin_layout Plain Layout
6724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6727 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6756 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6765 \begin_layout Plain Layout
6771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6774 \begin_layout Plain Layout
6788 \begin_layout Standard
6789 To reference a multi-page table, insert a label into the caption.
6792 \begin_layout Standard
6793 This is a reference to Table
6794 \begin_inset space ~
6798 \begin_inset CommandInset ref
6800 reference "tab:Referenced-multi-page-table"
6807 \begin_layout Standard
6808 The caption layout can be set together with all other captions of your document
6809 using the \SpecialChar LaTeX
6815 \begin_inset Index idx
6818 \begin_layout Plain Layout
6826 \begin_inset space ~
6830 \begin_inset CommandInset ref
6832 reference "sec:Caption-Formatting"
6839 \begin_layout Subsubsection
6841 \begin_inset Index idx
6844 \begin_layout Plain Layout
6845 Table ! Multi-page Table ! Caption Width
6853 \begin_layout Standard
6854 The maximal width of caption lines is defined by the length
6861 Its default value is 4
6862 \begin_inset space \thinspace{}
6866 To change it add the following command to your document preamble or as
6868 Code into your document before the multi-page table that should be affected
6871 \begin_layout Standard
6881 \begin_layout Standard
6886 can have one of the units listed in appendix
6887 \begin_inset space ~
6891 \begin_inset CommandInset ref
6893 reference "cha:Units-available-in"
6900 \begin_layout Standard
6901 The following tables show the difference:
6904 \begin_layout Standard
6905 \begin_inset Tabular
6906 <lyxtabular version="3" rows="6" columns="5">
6907 <features islongtable="true" longtabularalignment="center">
6908 <column alignment="center" valignment="top">
6909 <column alignment="center" valignment="top">
6910 <column alignment="center" valignment="top">
6911 <column alignment="center" valignment="top">
6912 <column alignment="center" valignment="top">
6913 <row endfirsthead="true" caption="true">
6914 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6917 \begin_layout Plain Layout
6918 \begin_inset Caption Standard
6920 \begin_layout Plain Layout
6921 Long full title with default width long full title with default width long
6922 full title with default width
6923 \begin_inset Argument 1
6926 \begin_layout Plain Layout
6927 caption with default width
6942 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6945 \begin_layout Plain Layout
6951 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6963 \begin_layout Plain Layout
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6972 \begin_layout Plain Layout
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7019 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7066 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7113 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7160 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7207 \begin_layout Plain Layout
7221 \begin_layout Standard
7225 \begin_layout Plain Layout
7237 \begin_inset Tabular
7238 <lyxtabular version="3" rows="6" columns="5">
7239 <features islongtable="true" longtabularalignment="center">
7240 <column alignment="center" valignment="top">
7241 <column alignment="center" valignment="top">
7242 <column alignment="center" valignment="top">
7243 <column alignment="center" valignment="top">
7244 <column alignment="center" valignment="top">
7245 <row endfirsthead="true" caption="true">
7246 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7249 \begin_layout Plain Layout
7250 \begin_inset Caption Standard
7252 \begin_layout Plain Layout
7253 Long full title with width set to 5
7254 \begin_inset space \thinspace{}
7257 cm long full title with width set to 5
7258 \begin_inset space \thinspace{}
7261 cm long full title with width set to 5
7262 \begin_inset space \thinspace{}
7266 \begin_inset Argument 1
7269 \begin_layout Plain Layout
7271 \begin_inset space \thinspace{}
7275 \begin_inset space \thinspace{}
7279 \begin_inset space \thinspace{}
7297 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7300 \begin_layout Plain Layout
7306 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7318 \begin_layout Plain Layout
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7327 \begin_layout Plain Layout
7335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7338 \begin_layout Plain Layout
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7374 \begin_layout Plain Layout
7382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7385 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7421 \begin_layout Plain Layout
7429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7432 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7468 \begin_layout Plain Layout
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7479 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7515 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7526 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7535 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7562 \begin_layout Plain Layout
7576 \begin_layout Standard
7580 \begin_layout Plain Layout
7594 \begin_layout Standard
7595 \begin_inset Note Greyedout
7598 \begin_layout Plain Layout
7603 When the \SpecialChar LaTeX
7609 \begin_inset Index idx
7612 \begin_layout Plain Layout
7619 is used, as in this document, the full page width is used for the caption
7620 when you use the default value of 4
7621 \begin_inset space \thinspace{}
7631 To get in this case exactly a 4
7632 \begin_inset space \thinspace{}
7635 in wide caption, you can either use a value slightly different from 4.0
7636 \begin_inset space \thinspace{}
7640 \begin_inset space \thinspace{}
7644 \begin_inset space \space{}
7648 \begin_inset space \thinspace{}
7651 in, or the \SpecialChar LaTeX
7656 captionsetup{width=value}
7658 that is provided by the
7670 \begin_layout Subsubsection
7671 Different Captions for Table Pages
7672 \begin_inset Index idx
7675 \begin_layout Plain Layout
7676 Table ! Multi-page Table ! Different Captions for Pages
7684 \begin_layout Standard
7685 When the table captions for the following pages should differ from the one
7686 of the first table page, mark a empty row as header which contains a caption.
7687 Then right-click on the caption and select in the context menu
7690 \begin_inset space ~
7697 \begin_inset space ~
7701 \begin_inset CommandInset ref
7703 reference "tab:DiffCaptions"
7707 is an example of a multi-page table with different heading where the second
7708 caption does not include the table number.
7709 \begin_inset Separator latexpar
7715 \begin_layout Standard
7717 \begin_inset Tabular
7718 <lyxtabular version="3" rows="59" columns="3">
7719 <features islongtable="true" longtabularalignment="center">
7720 <column alignment="left" valignment="top" width="0cm">
7721 <column alignment="left" valignment="top" width="0pt">
7722 <column alignment="center" valignment="top" width="0pt">
7723 <row endfirsthead="true" caption="true">
7724 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7727 \begin_layout Plain Layout
7728 \begin_inset Caption Standard
7730 \begin_layout Plain Layout
7732 \begin_inset CommandInset label
7734 name "tab:DiffCaptions"
7739 \begin_inset Argument 1
7742 \begin_layout Plain Layout
7758 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7777 <row endfirsthead="true">
7778 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7781 \begin_layout Plain Layout
7784 Example Phone List (ignore the names)
7789 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7808 <row endfirsthead="true">
7809 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7841 <row endhead="true" caption="true">
7842 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7845 \begin_layout Plain Layout
7846 \begin_inset Caption Unnumbered
7848 \begin_layout Plain Layout
7849 Continued Example Phone List
7859 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7862 \begin_layout Plain Layout
7868 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7871 \begin_layout Plain Layout
7878 <row endhead="true">
7879 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7882 \begin_layout Plain Layout
7890 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7893 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7902 \begin_layout Plain Layout
7909 <row endhead="true">
7910 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7913 \begin_layout Plain Layout
7921 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7924 \begin_layout Plain Layout
7930 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7933 \begin_layout Plain Layout
7942 <row endfoot="true">
7943 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7946 \begin_layout Plain Layout
7947 continued on next page
7952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7955 \begin_layout Plain Layout
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7964 \begin_layout Plain Layout
7972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7975 \begin_layout Plain Layout
7983 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7986 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8006 \begin_layout Plain Layout
8014 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8017 \begin_layout Plain Layout
8023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8037 \begin_layout Plain Layout
8045 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8048 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8068 \begin_layout Plain Layout
8076 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8079 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8099 \begin_layout Plain Layout
8107 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8418 \begin_layout Plain Layout
8429 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8432 \begin_layout Plain Layout
8438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8452 \begin_layout Plain Layout
8460 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8463 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8483 \begin_layout Plain Layout
8491 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8522 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8525 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8545 \begin_layout Plain Layout
8553 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8556 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8576 \begin_layout Plain Layout
8584 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8587 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8607 \begin_layout Plain Layout
8615 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8618 \begin_layout Plain Layout
8624 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8638 \begin_layout Plain Layout
8646 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8948 \begin_layout Plain Layout
8954 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8966 \begin_layout Plain Layout
8974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8977 \begin_layout Plain Layout
8985 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8988 \begin_layout Plain Layout
8994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9008 \begin_layout Plain Layout
9016 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9019 \begin_layout Plain Layout
9025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9047 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9050 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9078 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9081 \begin_layout Plain Layout
9087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9101 \begin_layout Plain Layout
9109 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9112 \begin_layout Plain Layout
9118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9132 \begin_layout Plain Layout
9140 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9143 \begin_layout Plain Layout
9149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9163 \begin_layout Plain Layout
9171 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9174 \begin_layout Plain Layout
9180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9194 \begin_layout Plain Layout
9202 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9205 \begin_layout Plain Layout
9211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9225 \begin_layout Plain Layout
9233 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9236 \begin_layout Plain Layout
9242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9256 \begin_layout Plain Layout
9264 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9267 \begin_layout Plain Layout
9273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9287 \begin_layout Plain Layout
9295 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9318 \begin_layout Plain Layout
9326 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9329 \begin_layout Plain Layout
9335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9349 \begin_layout Plain Layout
9357 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9360 \begin_layout Plain Layout
9366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9380 \begin_layout Plain Layout
9388 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9391 \begin_layout Plain Layout
9397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9411 \begin_layout Plain Layout
9419 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9422 \begin_layout Plain Layout
9428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9442 \begin_layout Plain Layout
9450 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9453 \begin_layout Plain Layout
9459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9473 \begin_layout Plain Layout
9481 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9484 \begin_layout Plain Layout
9490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9504 \begin_layout Plain Layout
9512 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9515 \begin_layout Plain Layout
9521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9535 \begin_layout Plain Layout
9543 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9546 \begin_layout Plain Layout
9552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9563 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9566 \begin_layout Plain Layout
9574 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9577 \begin_layout Plain Layout
9583 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9600 \begin_layout Section
9601 Special Multi-page Table Issues
9602 \begin_inset CommandInset label
9604 name "sec:Special-Longtable-Issues"
9611 \begin_layout Subsection
9612 Multi-page Table Calculation
9613 \begin_inset Index idx
9616 \begin_layout Plain Layout
9617 Table ! Multi-page Table ! Calculation
9625 \begin_layout Standard
9627 calculates the height of table pages and their page breaks using so called
9629 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9631 The default value was historically set to only 20
9632 \begin_inset space ~
9636 If you are using multi-page tables with many pages this may slow down the
9637 creation of your document.
9638 You can safely increase the chunk size to values of 100
9639 \begin_inset space \thinspace{}
9643 \begin_inset space \thinspace{}
9646 1000 by adding this command line to your document preamble:
9649 \begin_layout Standard
9654 setcounter{LTchunksize}{100}
9657 \begin_layout Subsection
9658 Floats and Multi-page Tables
9659 \begin_inset Index idx
9662 \begin_layout Plain Layout
9663 Table ! Multi-page Table ! Floats
9671 \begin_layout Standard
9672 There might be problems when a float appears on the same page where a multi-page
9674 To avoid such a situation, insert a
9675 \begin_inset Quotes eld
9679 \begin_inset Quotes erd
9684 Insert\SpecialChar menuseparator
9685 Formatting\SpecialChar menuseparator
9687 \begin_inset space ~
9692 ) before your multi-page table.
9695 \begin_layout Subsection
9697 \begin_inset Index idx
9700 \begin_layout Plain Layout
9701 Table ! Multi-page Table ! Forced Page Breaks
9709 \begin_layout Standard
9710 By default tables are only broken between rows.
9711 If you have a cell with multiples lines and want to have a page break within
9712 the cell, insert the new line command
9713 \begin_inset Quotes eld
9725 \begin_inset Quotes erd
9729 Code at the point of the cell where it can be broken.
9738 command you have to insert in \SpecialChar TeX
9740 \begin_inset Quotes eld
9748 \begin_inset Quotes erd
9751 characters as the number of the following table columns.
9756 is the character to separate table cells.
9757 Write in \SpecialChar TeX
9762 the content of the corresponding following cell and delete the content
9764 \begin_inset Newline newline
9775 command, insert as many
9779 characters as the number of table columns before the current column.
9781 \begin_inset space ~
9785 \begin_inset CommandInset ref
9787 reference "tab:ForcedPagebreak"
9791 the cell that should be broken is in the second column followed by another
9793 Therefore the following command was inserted in the cell as \SpecialChar TeX
9796 \begin_inset Quotes eld
9804 \begin_inset Quotes erd
9810 \begin_layout Standard
9820 \begin_inset Newline newline
9826 \begin_layout Standard
9828 \begin_inset Quotes eld
9832 \begin_inset Quotes erd
9835 in the third column of the row was deleted.
9842 is only needed when a page break should definitely occur at this position,
9843 otherwise it would be a conditional break.
9844 If your footer row of the multi-page table has for a certain reason no
9845 upper line but you would have a horizontal line where the cell is broken,
9846 use this command instead:
9849 \begin_layout Standard
9857 \begin_inset Newline newline
9865 \begin_layout Standard
9866 When the cell to be broken is in the last column, the command
9869 \begin_layout Standard
9879 \begin_layout Standard
9880 must be inserted as \SpecialChar TeX
9881 Code at the beginning of the cell.
9882 This ensures that the part of the cell that will be displayed on the new
9883 page appears with the full width.
9884 \begin_inset Separator latexpar
9890 \begin_layout Standard
9892 \begin_inset Tabular
9893 <lyxtabular version="3" rows="38" columns="3">
9894 <features islongtable="true" longtabularalignment="center">
9895 <column alignment="left" valignment="top" width="0cm">
9896 <column alignment="left" valignment="top" width="3cm">
9897 <column alignment="center" valignment="top" width="0pt">
9898 <row endfirsthead="true" caption="true">
9899 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9902 \begin_layout Plain Layout
9903 \begin_inset Caption Standard
9905 \begin_layout Plain Layout
9906 Table with forced page break in table cell
9907 \begin_inset CommandInset label
9909 name "tab:ForcedPagebreak"
9914 \begin_inset Argument 1
9917 \begin_layout Plain Layout
9918 Table with forced page break in table cell
9933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9952 <row endfirsthead="true">
9953 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9956 \begin_layout Plain Layout
9959 Example Phone List (ignore the names)
9964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9983 <row endfirsthead="true">
9984 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9987 \begin_layout Plain Layout
9995 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9998 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10016 <row endhead="true" caption="true">
10017 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10020 \begin_layout Plain Layout
10021 \begin_inset Caption Unnumbered
10023 \begin_layout Plain Layout
10024 Continued Example Phone List
10034 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10043 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10053 <row endhead="true">
10054 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10057 \begin_layout Plain Layout
10065 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10068 \begin_layout Plain Layout
10074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10084 <row endhead="true">
10085 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10088 \begin_layout Plain Layout
10096 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10099 \begin_layout Plain Layout
10105 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10108 \begin_layout Plain Layout
10117 <row endfoot="true">
10118 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10121 \begin_layout Plain Layout
10122 continued on next page
10127 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10130 \begin_layout Plain Layout
10136 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10147 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10150 \begin_layout Plain Layout
10158 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10161 \begin_layout Plain Layout
10167 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10181 \begin_layout Plain Layout
10189 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10192 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10212 \begin_layout Plain Layout
10220 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10223 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10243 \begin_layout Plain Layout
10251 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10254 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10274 \begin_layout Plain Layout
10282 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10285 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10305 \begin_layout Plain Layout
10313 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10316 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10336 \begin_layout Plain Layout
10344 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10347 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10367 \begin_layout Plain Layout
10375 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10378 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10398 \begin_layout Plain Layout
10406 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10409 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10429 \begin_layout Plain Layout
10437 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10440 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10457 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10460 \begin_layout Plain Layout
10468 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10471 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10488 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10491 \begin_layout Plain Layout
10499 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10502 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10522 \begin_layout Plain Layout
10530 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10533 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10553 \begin_layout Plain Layout
10561 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10564 \begin_layout Plain Layout
10570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10595 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10626 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10657 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10688 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10719 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10750 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10781 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10812 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10832 \begin_layout Plain Layout
10840 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10843 \begin_layout Plain Layout
10845 Fürst von Montecompatri, 11.
10846 Fürst von Sulmona und Vivaro, 10.
10847 Fürst von Rossano, 5.
10848 Herzog von Canemorte, 11.
10849 Herzog von Palombara, 5.
10850 Herzog von Castelchiodato,
10854 \begin_layout Plain Layout
10865 \begin_layout Plain Layout
10873 Herzog von Poggionativo, 11.
10874 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10875 Graf von Valinfreda, 11.
10876 Baron von Cropalati, 11.
10877 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10882 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10885 \begin_layout Plain Layout
10893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10896 \begin_layout Plain Layout
10904 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10907 \begin_layout Plain Layout
10913 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10916 \begin_layout Plain Layout
10924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10927 \begin_layout Plain Layout
10935 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10938 \begin_layout Plain Layout
10944 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10958 \begin_layout Plain Layout
10966 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10969 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10978 \begin_layout Plain Layout
10986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10989 \begin_layout Plain Layout
10997 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11000 \begin_layout Plain Layout
11006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11009 \begin_layout Plain Layout
11017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11020 \begin_layout Plain Layout
11028 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11031 \begin_layout Plain Layout
11037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11040 \begin_layout Plain Layout
11048 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11051 \begin_layout Plain Layout
11059 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11062 \begin_layout Plain Layout
11068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11071 \begin_layout Plain Layout
11079 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11082 \begin_layout Plain Layout
11090 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11093 \begin_layout Plain Layout
11099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11102 \begin_layout Plain Layout
11110 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11113 \begin_layout Plain Layout
11121 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11124 \begin_layout Plain Layout
11130 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11133 \begin_layout Plain Layout
11147 \begin_layout Section
11148 Multiple Lines, Columns and Rows
11151 \begin_layout Subsection
11152 Multiple Lines in Table Cells
11153 \begin_inset CommandInset label
11155 name "subsec:Multiple-Lines-in"
11160 \begin_inset Index idx
11163 \begin_layout Plain Layout
11164 Multiple Lines in Table Cells
11170 \begin_inset Index idx
11173 \begin_layout Plain Layout
11182 \begin_layout Standard
11184 \begin_inset Float table
11190 \begin_layout Plain Layout
11191 \begin_inset Caption Standard
11193 \begin_layout Plain Layout
11194 \begin_inset CommandInset label
11196 name "tab:Table-with-multiple"
11200 Table with multiple lines in cells
11208 \begin_layout Plain Layout
11210 \begin_inset Tabular
11211 <lyxtabular version="3" rows="3" columns="3">
11212 <features tabularvalignment="middle">
11213 <column alignment="center" valignment="middle" width="2.5cm">
11214 <column alignment="center" valignment="middle">
11215 <column alignment="center" valignment="middle">
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11220 \begin_layout Plain Layout
11222 \begin_inset Newline linebreak
11230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11233 \begin_layout Plain Layout
11239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11242 \begin_layout Plain Layout
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11253 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11262 \begin_layout Plain Layout
11268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11271 \begin_layout Plain Layout
11279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11282 \begin_layout Plain Layout
11288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11291 \begin_layout Plain Layout
11297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11300 \begin_layout Plain Layout
11319 \begin_layout Standard
11320 Setting a fixed width for a column enables you to enter text as a paragraph
11321 with multiple lines and hyphenation.
11324 \begin_layout Standard
11326 \begin_inset space ~
11330 \begin_inset CommandInset ref
11332 reference "tab:Table-with-multiple"
11336 , create a 3×3 table, mark the first cell and right-click on it.
11337 In the appearing table dialog we set a cell width of 2.5
11338 \begin_inset space \thinspace{}
11341 cm and choose centered for the vertical and horizontal alignment.
11342 The vertical alignment is used for all cells of the row.
11343 As our text is smaller than 2.5
11344 \begin_inset space \thinspace{}
11347 cm, only one line will appear.
11348 To get two lines, a justified line break (shortcut
11351 arg "newline-insert linebreak"
11355 If the text is wider than the set cell width, it will automatically be
11356 broken to several lines.
11359 \begin_layout Standard
11360 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11361 by \SpecialChar LaTeX
11362 if it is the first entry.
11363 Therefore you need to insert something to prevent the word not being the
11365 So add a horizontal space of 0
11366 \begin_inset space \thinspace{}
11369 pt before the word.
11370 As the space is zero, it doesn't change the output.
11372 \begin_inset space ~
11376 \begin_inset CommandInset ref
11378 reference "tab:Table-with-and"
11385 \begin_layout Standard
11386 \begin_inset Float table
11392 \begin_layout Plain Layout
11393 \begin_inset Caption Standard
11395 \begin_layout Plain Layout
11396 \begin_inset CommandInset label
11398 name "tab:Table-with-and"
11402 Table with and without hyphenation
11410 \begin_layout Plain Layout
11411 \begin_inset space \hfill{}
11415 \begin_inset Tabular
11416 <lyxtabular version="3" rows="3" columns="3">
11417 <features tabularvalignment="middle">
11418 <column alignment="center" valignment="middle" width="2.5cm">
11419 <column alignment="center" valignment="middle">
11420 <column alignment="center" valignment="middle">
11422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11426 verylongtablecellword
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11443 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11472 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11483 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11501 \begin_layout Plain Layout
11513 \begin_inset space \hfill{}
11517 \begin_inset Tabular
11518 <lyxtabular version="3" rows="3" columns="3">
11519 <features tabularvalignment="middle">
11520 <column alignment="center" valignment="middle" width="2.5cm">
11521 <column alignment="center" valignment="middle">
11522 <column alignment="center" valignment="middle">
11524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11527 \begin_layout Plain Layout
11528 \begin_inset space \hspace{}
11532 verylongtablecellword
11537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11540 \begin_layout Plain Layout
11546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11549 \begin_layout Plain Layout
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11560 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11578 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11607 \begin_layout Plain Layout
11619 \begin_inset space \hfill{}
11630 \begin_layout Subsection
11632 \begin_inset CommandInset label
11634 name "subsec:Multicolumns"
11639 \begin_inset Index idx
11642 \begin_layout Plain Layout
11649 \begin_inset Index idx
11652 \begin_layout Plain Layout
11653 Table ! Multicolumns
11661 \begin_layout Subsubsection
11665 \begin_layout Standard
11666 To merge cells over multiple columns, select as many cells within a row
11667 as you want to merge and use either the table-toolbar button
11670 arg "tabular-feature multicolumn"
11675 Edit\SpecialChar menuseparator
11676 Table\SpecialChar menuseparator
11679 , or right click on the marked cells and choose
11683 in the context menu.
11686 \begin_layout Standard
11687 Multicolumns have their own cell settings.
11688 That means changing cell borders, cell alignment, and the width only affects
11690 Here is an example table with a multicolumn cell in the first row and one
11691 in the last row without the upper border:
11692 \begin_inset Separator latexpar
11698 \begin_layout Standard
11700 \begin_inset Tabular
11701 <lyxtabular version="3" rows="3" columns="4">
11702 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11703 <column alignment="center" valignment="top" width="0pt">
11704 <column alignment="center" valignment="middle">
11705 <column alignment="center" valignment="top" width="0in">
11706 <column alignment="center" valignment="top" width="0pt">
11708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11711 \begin_layout Plain Layout
11717 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11720 \begin_layout Plain Layout
11726 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11729 \begin_layout Plain Layout
11735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11738 \begin_layout Plain Layout
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11749 \begin_layout Plain Layout
11764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11767 \begin_layout Plain Layout
11773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11776 \begin_layout Plain Layout
11782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11785 \begin_layout Plain Layout
11793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11796 \begin_layout Plain Layout
11802 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11805 \begin_layout Plain Layout
11811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11814 \begin_layout Plain Layout
11820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11823 \begin_layout Plain Layout
11837 \begin_layout Subsubsection
11838 Multicolumn Calculations
11839 \begin_inset CommandInset label
11841 name "subsec:Multicolumn-Calculations"
11846 \begin_inset Index idx
11849 \begin_layout Plain Layout
11850 Multicolumns ! Calculations
11858 \begin_layout Standard
11860 supports multicolumns directly, but we have to take account of the cell
11861 width of the columns spanned by the multicolumn cell.
11864 \begin_layout Standard
11865 \begin_inset Float table
11871 \begin_layout Plain Layout
11872 \begin_inset Caption Standard
11874 \begin_layout Plain Layout
11875 \begin_inset CommandInset label
11877 name "tab:Table-with-centered"
11881 Table with centered multicolumn text above two columns that have exactly
11882 half the width of the multicolumn cell
11883 \begin_inset Argument 1
11886 \begin_layout Plain Layout
11887 Perfect multicolumn table
11900 \begin_layout Plain Layout
11902 \begin_inset Tabular
11903 <lyxtabular version="3" rows="3" columns="3">
11904 <features tabularvalignment="middle">
11905 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11906 <column alignment="center" valignment="middle">
11907 <column alignment="center" valignment="top">
11909 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11912 \begin_layout Plain Layout
11913 multiple lines multicolumn
11918 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11921 \begin_layout Plain Layout
11927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11930 \begin_layout Plain Layout
11938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11941 \begin_layout Plain Layout
11947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11950 \begin_layout Plain Layout
11956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11959 \begin_layout Plain Layout
11967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11970 \begin_layout Plain Layout
11976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11979 \begin_layout Plain Layout
11985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11988 \begin_layout Plain Layout
12007 \begin_layout Standard
12008 To create for example Table
12009 \begin_inset space ~
12013 \begin_inset CommandInset ref
12015 reference "tab:Table-with-centered"
12019 , mark the first two cells in the first row of a 3×3 table and right-click
12021 Now choose for this cell
12030 \begin_inset space \thinspace{}
12033 cm in the table dialog.
12034 The merged columns should have exactly half the width of the multicolumn
12035 cell, so that you would set a width of 1.25
12036 \begin_inset space \thinspace{}
12039 cm for the first column.
12040 The second column has then automatically a width of 1.25
12041 \begin_inset space \thinspace{}
12044 cm (multicolumn width - width of first column).
12045 This was done for Table
12046 \begin_inset space ~
12050 \begin_inset CommandInset ref
12052 reference "tab:Table-without-half"
12059 \begin_layout Standard
12060 \begin_inset Float table
12065 \begin_layout Plain Layout
12066 \begin_inset Caption Standard
12068 \begin_layout Plain Layout
12069 \begin_inset CommandInset label
12071 name "tab:Table-without-half"
12075 Table where the spanned table columns are not exactly half the width of
12076 the multicolumn cell
12077 \begin_inset Argument 1
12080 \begin_layout Plain Layout
12081 Imperfect multicolumn table
12094 \begin_layout Plain Layout
12096 \begin_inset Tabular
12097 <lyxtabular version="3" rows="3" columns="3">
12098 <features tabularvalignment="middle">
12099 <column alignment="center" valignment="top" width="1.25cm">
12100 <column alignment="center" valignment="top">
12101 <column alignment="center" valignment="top">
12103 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12106 \begin_layout Plain Layout
12107 multiple lines multicolumn
12112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12115 \begin_layout Plain Layout
12121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12124 \begin_layout Plain Layout
12132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12135 \begin_layout Plain Layout
12141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12144 \begin_layout Plain Layout
12150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12153 \begin_layout Plain Layout
12161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12164 \begin_layout Plain Layout
12170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12173 \begin_layout Plain Layout
12179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12182 \begin_layout Plain Layout
12201 \begin_layout Standard
12202 You can see that the first column is not half the width of the multicolumn
12203 cell, it is a bit bigger.
12204 The reason is that the specified width of a cell
12205 \begin_inset Formula $W_{g}$
12208 is not its total width
12209 \begin_inset Formula $W_{\mathrm{tot}}$
12212 because a cell is always a bit larger than specified.
12214 \begin_inset space ~
12218 \begin_inset CommandInset ref
12220 reference "cha:Explanation-of-Equation"
12224 explains this in detail.
12227 \begin_layout Standard
12229 \begin_inset Formula $W_{g\,n}$
12232 which the user needs to set when
12236 columns are spanned can be calculated, so that each column has a total
12238 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12242 \begin_inset Formula
12244 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12252 \begin_layout Standard
12253 In our case we have
12254 \begin_inset Formula $n=2$
12258 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12261 cm and the default values for the lengths, so that equation
12262 \begin_inset CommandInset ref
12269 \begin_inset Formula
12271 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12279 \begin_layout Standard
12280 To enable calculations in \SpecialChar LaTeX
12281 , the \SpecialChar LaTeX
12286 must be loaded with the document preamble line
12287 \begin_inset Index idx
12290 \begin_layout Plain Layout
12300 \begin_layout Standard
12308 \begin_layout Standard
12310 does not allow you to calculate lengths in the
12314 field of the table dialog.
12315 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12318 Here is an overview about the arguments:
12321 \begin_layout Itemize
12326 creates cell with a fixed width, its text is vertically top-aligned
12329 \begin_layout Itemize
12334 creates cell with a fixed width, its text is vertically centered
12337 \begin_layout Itemize
12342 creates cell with a fixed width, its text is vertically bottom-aligned
12345 \begin_layout Standard
12346 By entering a \SpecialChar LaTeX
12347 -argument, all cell settings set in the table dialog are overwritt
12351 \begin_layout Standard
12352 \begin_inset Note Greyedout
12355 \begin_layout Plain Layout
12360 Due to a bug, \SpecialChar LyX
12361 shows the overwritten settings anyway.
12369 \begin_layout Standard
12370 As the text should be horizontally centered, the command
12377 You can now enter the following \SpecialChar LaTeX
12378 -argument for the first spanned column:
12381 \begin_layout Standard
12386 centering}m{1.25cm-6.2pt}
12389 \begin_layout Standard
12394 means, that the commands inside the braces are applied before the cell
12398 \begin_layout Standard
12399 Although we have chosen centered alignment for the text of the multicolumn
12400 cell, it is still left aligned.
12401 This is because \SpecialChar LyX
12402 only applies the alignment to single columns.
12403 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12407 \begin_layout Standard
12415 \begin_layout Subsection
12417 \begin_inset CommandInset label
12419 name "subsec:Multirows"
12424 \begin_inset Index idx
12427 \begin_layout Plain Layout
12434 \begin_inset Index idx
12437 \begin_layout Plain Layout
12446 \begin_layout Standard
12447 To merge cells over multiple rows, select as many cells within a column
12448 as you want to merge and use either the table-toolbar button
12451 arg "tabular-feature multirow"
12456 Edit\SpecialChar menuseparator
12457 Table\SpecialChar menuseparator
12460 , or right click on the marked cells and choose
12464 in the context menu.
12467 \begin_layout Standard
12468 Here is an example table with a multirow in the first column:
12469 \begin_inset Separator latexpar
12475 \begin_layout Standard
12477 \begin_inset Tabular
12478 <lyxtabular version="3" rows="3" columns="3">
12479 <features tabularvalignment="middle">
12480 <column alignment="center" valignment="top" width="0pt">
12481 <column alignment="center" valignment="top">
12482 <column alignment="center" valignment="top">
12484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12487 \begin_layout Plain Layout
12493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12496 \begin_layout Plain Layout
12502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12505 \begin_layout Plain Layout
12513 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12516 \begin_layout Plain Layout
12522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12525 \begin_layout Plain Layout
12531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12534 \begin_layout Plain Layout
12542 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12545 \begin_layout Plain Layout
12551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12554 \begin_layout Plain Layout
12560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12563 \begin_layout Plain Layout
12577 \begin_layout Standard
12578 The width of multirow cells is set by setting the width and alignment for
12584 shifts the content of the multirow up/down if the offset is positive/negative.
12587 \begin_layout Standard
12588 If the column of a multirow cell has no explicit width, the multirow cell
12589 inherits the alignment of the column.
12590 Otherwise it is by default left-aligned.
12591 To override the default, renew the command
12600 \begin_layout Standard
12612 \begin_layout Standard
12613 in the document preamble.
12614 Then all entries of multirow cells in the document are centered.
12615 If centering is only needed for several tables, you can renew the command
12616 in a \SpecialChar TeX
12617 Code box just before the table instead of the preamble.
12618 If the text should be right-aligned, replace
12631 To return to left-alignment
12640 \begin_layout Standard
12641 This is an example table with a right-aligned multirow cell that has a vertical
12643 \begin_inset space \thinspace{}
12647 \begin_inset space \thinspace{}
12651 \begin_inset Separator latexpar
12657 \begin_layout Standard
12663 \begin_layout Plain Layout
12677 \begin_inset Tabular
12678 <lyxtabular version="3" rows="4" columns="3">
12679 <features tabularvalignment="middle">
12680 <column alignment="center" valignment="top" width="3cm">
12681 <column alignment="center" valignment="top">
12682 <column alignment="center" valignment="top">
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12705 \begin_layout Plain Layout
12713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12734 \begin_layout Plain Layout
12742 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12763 \begin_layout Plain Layout
12771 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12774 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12783 \begin_layout Plain Layout
12789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12792 \begin_layout Plain Layout
12807 \begin_layout Plain Layout
12823 \begin_layout Standard
12824 To start a new line in a multirow you can use a forced line break (shortcut
12828 arg "newline-insert newline"
12831 ) but this will not respect the cell lines as demonstrated in this table:
12832 \begin_inset Separator latexpar
12838 \begin_layout Standard
12841 \begin_inset Tabular
12842 <lyxtabular version="3" rows="3" columns="2">
12843 <features tabularvalignment="middle">
12844 <column alignment="left" valignment="middle" width="2cm">
12845 <column alignment="center" valignment="top">
12847 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12850 \begin_layout Plain Layout
12852 \begin_inset Newline newline
12856 \begin_inset Newline newline
12864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12867 \begin_layout Plain Layout
12875 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12878 \begin_layout Plain Layout
12884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12887 \begin_layout Plain Layout
12895 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12898 \begin_layout Plain Layout
12904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12907 \begin_layout Plain Layout
12921 \begin_layout Standard
12922 Therefore be careful with forced line breaks.
12925 \begin_layout Subsection
12926 Cells with diagonal line(s)
12929 \begin_layout Standard
12930 To tell the reader what is meant by column and row headings in a table,
12931 it is helpful to split the first cell of the table by one or two diagonal
12933 This can be achieved by loading the \SpecialChar LaTeX
12939 \begin_inset Index idx
12942 \begin_layout Plain Layout
12944 -packages ! picinpar
12949 in the document preamble.
12950 The package provides the command
12956 that is inserted as \SpecialChar TeX
12957 Code and that can take 2 or 3
12958 \begin_inset space ~
12964 \begin_layout Standard
12969 diagbox[options]{lower left}{upper right}
12972 \begin_layout Standard
12977 diagbox[options]{lower left}{upper left}{upper right}
12980 \begin_layout Standard
12981 The first scheme divides the cell by a single diagonal line and the arguments
12982 are placed below and above this line.
12983 The second scheme divides the cell by 2
12984 \begin_inset space ~
12990 \begin_layout Standard
12994 \begin_layout Plain Layout
13004 \begin_inset Note Note
13007 \begin_layout Plain Layout
13008 The following section will only be displayed when the \SpecialChar LaTeX
13021 \begin_layout Standard
13022 Here is an example table where
13028 is used in the 2-argument scheme in the first cell:
13029 \begin_inset VSpace medskip
13035 \begin_layout Standard
13037 \begin_inset Tabular
13038 <lyxtabular version="3" rows="4" columns="4">
13039 <features tabularvalignment="middle">
13040 <column alignment="center" valignment="top">
13041 <column alignment="center" valignment="top">
13042 <column alignment="center" valignment="top">
13043 <column alignment="center" valignment="top">
13045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13048 \begin_layout Plain Layout
13052 \begin_layout Plain Layout
13065 \begin_layout Plain Layout
13076 \begin_layout Plain Layout
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Plain Layout
13097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13100 \begin_layout Plain Layout
13106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Plain Layout
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Plain Layout
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13196 \begin_layout Plain Layout
13202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13205 \begin_layout Plain Layout
13211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13214 \begin_layout Plain Layout
13220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13223 \begin_layout Plain Layout
13235 \begin_inset VSpace medskip
13241 \begin_layout Standard
13242 The 3-argument scheme is for example useful for cross-tables of sports leagues
13244 \begin_inset Separator latexpar
13250 \begin_layout Standard
13253 \begin_inset Tabular
13254 <lyxtabular version="3" rows="4" columns="4">
13255 <features tabularvalignment="middle">
13256 <column alignment="center" valignment="top" width="0pt">
13257 <column alignment="center" valignment="top">
13258 <column alignment="center" valignment="top">
13259 <column alignment="center" valignment="top">
13261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13264 \begin_layout Plain Layout
13268 \begin_layout Plain Layout
13281 \begin_layout Plain Layout
13292 \begin_layout Plain Layout
13303 \begin_layout Plain Layout
13315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13318 \begin_layout Plain Layout
13324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13327 \begin_layout Plain Layout
13333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13336 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13347 \begin_layout Plain Layout
13353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13356 \begin_layout Plain Layout
13362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13365 \begin_layout Plain Layout
13371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13374 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13385 \begin_layout Plain Layout
13391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13394 \begin_layout Plain Layout
13400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13403 \begin_layout Plain Layout
13409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13412 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13423 \begin_layout Plain Layout
13429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13432 \begin_layout Plain Layout
13438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13441 \begin_layout Plain Layout
13447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13450 \begin_layout Plain Layout
13464 \begin_layout Standard
13465 For larger cross-tables one might use split cells in 2 or every corner of
13466 the table like in this example:
13467 \begin_inset Separator latexpar
13473 \begin_layout Standard
13476 \begin_inset Tabular
13477 <lyxtabular version="3" rows="5" columns="5">
13478 <features tabularvalignment="middle">
13479 <column alignment="center" valignment="top" width="0pt">
13480 <column alignment="center" valignment="top">
13481 <column alignment="center" valignment="top">
13482 <column alignment="center" valignment="top">
13483 <column alignment="center" valignment="top">
13485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13488 \begin_layout Plain Layout
13492 \begin_layout Plain Layout
13505 \begin_layout Plain Layout
13516 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13542 \begin_layout Plain Layout
13548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13551 \begin_layout Plain Layout
13557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13569 \begin_layout Plain Layout
13573 \begin_layout Plain Layout
13586 \begin_layout Plain Layout
13597 \begin_layout Plain Layout
13608 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13625 \begin_layout Plain Layout
13631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13634 \begin_layout Plain Layout
13640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13643 \begin_layout Plain Layout
13649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13652 \begin_layout Plain Layout
13658 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13661 \begin_layout Plain Layout
13669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13672 \begin_layout Plain Layout
13678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13681 \begin_layout Plain Layout
13687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13690 \begin_layout Plain Layout
13696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13699 \begin_layout Plain Layout
13705 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13708 \begin_layout Plain Layout
13716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13719 \begin_layout Plain Layout
13725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13728 \begin_layout Plain Layout
13734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13737 \begin_layout Plain Layout
13743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13746 \begin_layout Plain Layout
13752 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13755 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13766 \begin_layout Plain Layout
13770 \begin_layout Plain Layout
13783 \begin_layout Plain Layout
13794 \begin_layout Plain Layout
13805 \begin_layout Plain Layout
13817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13820 \begin_layout Plain Layout
13826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13829 \begin_layout Plain Layout
13835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13838 \begin_layout Plain Layout
13844 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13847 \begin_layout Plain Layout
13851 \begin_layout Plain Layout
13864 \begin_layout Plain Layout
13875 \begin_layout Plain Layout
13886 \begin_layout Plain Layout
13906 \begin_layout Standard
13907 To rotate the diagonal lines, the command option
13932 and represent a point of a compass.
13937 is for example the south-west corner.
13938 Thus in the lower left cell of the above table the command
13941 \begin_layout Standard
13946 diagbox[dir=SW]{Team home}{Result}{Team away}
13949 \begin_layout Standard
13951 If no direction is given, it will be NW.
13954 \begin_layout Standard
13955 The necessary width of split cells is automatically calculated.
13956 Thus if you set a fixed column width smaller than the calculated one, the
13957 cell's content will protrude the cell borders:
13958 \begin_inset Separator latexpar
13964 \begin_layout Standard
13967 \begin_inset Tabular
13968 <lyxtabular version="3" rows="2" columns="2">
13969 <features tabularvalignment="middle">
13970 <column alignment="center" valignment="top" width="3cm">
13971 <column alignment="center" valignment="top">
13973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13976 \begin_layout Plain Layout
13980 \begin_layout Plain Layout
13993 \begin_layout Plain Layout
14004 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14019 \begin_layout Plain Layout
14027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14030 \begin_layout Plain Layout
14036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14039 \begin_layout Plain Layout
14053 \begin_layout Standard
14054 If you need a certain width for columns with a split cell, use the command
14059 (replace '3cm' by the width you need).
14060 In the following table the width of the first column is set to 4
14061 \begin_inset space \thinspace{}
14072 \begin_inset space \thinspace{}
14076 \begin_inset space \thinspace{}
14081 tabcolsep is necessary because the overall width is the width for the text
14082 (in this case the 4
14083 \begin_inset space \thinspace{}
14086 cm) plus two times the separation of the text and the cell border.
14087 The calculation of the width cannot be done in the command option of
14093 so one needs to create a new length which can be used later.
14094 This is done with the \SpecialChar TeX
14098 \begin_layout Standard
14106 \begin_inset Newline newline
14118 \begin_layout Standard
14122 \begin_layout Plain Layout
14131 \begin_layout Plain Layout
14147 \begin_layout Standard
14148 To enable calculations in \SpecialChar LaTeX
14149 one needs to load the package
14154 \begin_inset Index idx
14157 \begin_layout Plain Layout
14164 in the document preamble.
14167 \begin_layout Standard
14168 In this table you can now use the command
14171 \begin_layout Standard
14181 \begin_layout Standard
14183 \begin_inset Separator latexpar
14189 \begin_layout Standard
14192 \begin_inset Tabular
14193 <lyxtabular version="3" rows="2" columns="2">
14194 <features tabularvalignment="middle">
14195 <column alignment="center" valignment="top" width="4cm">
14196 <column alignment="center" valignment="top">
14198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14201 \begin_layout Plain Layout
14205 \begin_layout Plain Layout
14220 \begin_layout Plain Layout
14231 \begin_layout Plain Layout
14243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14246 \begin_layout Plain Layout
14254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14257 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14266 \begin_layout Plain Layout
14280 \begin_layout Standard
14281 Note that the split cell needs to be the widest one in the column.
14282 Otherwise the length of the diagonal line cannot be calculated correctly
14283 like in this table:
14284 \begin_inset Separator latexpar
14290 \begin_layout Standard
14293 \begin_inset Tabular
14294 <lyxtabular version="3" rows="2" columns="2">
14295 <features tabularvalignment="middle">
14296 <column alignment="center" valignment="top" width="0pt">
14297 <column alignment="center" valignment="top">
14299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14306 \begin_layout Plain Layout
14319 \begin_layout Plain Layout
14330 \begin_layout Plain Layout
14342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14345 \begin_layout Plain Layout
14353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14356 \begin_layout Plain Layout
14362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14365 \begin_layout Plain Layout
14379 \begin_layout Standard
14380 In this case use the
14391 It is then not necessary to add 2
14393 tabcolsep because the cell width is now the width of the column.
14394 In this table a width of 3
14395 \begin_inset space \thinspace{}
14399 \begin_inset Separator latexpar
14405 \begin_layout Standard
14408 \begin_inset Tabular
14409 <lyxtabular version="3" rows="2" columns="2">
14410 <features tabularvalignment="middle">
14411 <column alignment="center" valignment="top" width="0pt">
14412 <column alignment="center" valignment="top">
14414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14417 \begin_layout Plain Layout
14421 \begin_layout Plain Layout
14425 diagbox[width=3cm]{
14434 \begin_layout Plain Layout
14445 \begin_layout Plain Layout
14457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14460 \begin_layout Plain Layout
14468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14471 \begin_layout Plain Layout
14477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14480 \begin_layout Plain Layout
14494 \begin_layout Standard
14495 For multiple text lines in split cells one needs some extra height to fit
14496 the text to the cell.
14497 This can be achieved with the
14507 (replace '3cm' by the height you need).
14508 In the following table the command
14511 \begin_layout Standard
14516 diagbox[width=3cm,height=1.4cm]{A
14527 \begin_layout Standard
14528 is used in the first cell.
14537 creates hereby the line break.
14541 \begin_layout Plain Layout
14542 Breaking lines with
14546 is only possible when the column has a fixed width.
14552 \begin_inset Separator latexpar
14558 \begin_layout Standard
14561 \begin_inset Tabular
14562 <lyxtabular version="3" rows="2" columns="2">
14563 <features tabularvalignment="middle">
14564 <column alignment="center" valignment="top">
14565 <column alignment="center" valignment="top">
14567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14570 \begin_layout Plain Layout
14574 \begin_layout Plain Layout
14578 diagbox[width=3cm,height=1.4cm]{
14587 \begin_layout Plain Layout
14602 \begin_layout Plain Layout
14613 \begin_layout Plain Layout
14628 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14643 \begin_layout Plain Layout
14651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14654 \begin_layout Plain Layout
14660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14663 \begin_layout Plain Layout
14677 \begin_layout Standard
14681 \begin_layout Plain Layout
14691 \begin_inset Note Note
14694 \begin_layout Plain Layout
14695 The following will be displayed when the \SpecialChar LaTeX
14708 \begin_layout Standard
14709 You need to install the \SpecialChar LaTeX
14714 to see the following part of this section in the output.
14717 \begin_layout Standard
14721 \begin_layout Plain Layout
14733 \begin_layout Standard
14734 For more info about the \SpecialChar LaTeX
14739 , see its documentation,
14740 \begin_inset CommandInset citation
14749 \begin_layout Section
14751 \begin_inset CommandInset label
14753 name "sec:Formal-Tables"
14758 \begin_inset Index idx
14761 \begin_layout Plain Layout
14770 \begin_layout Standard
14771 Tables are often typeset in books similar to Table
14772 \begin_inset space ~
14776 \begin_inset CommandInset ref
14778 reference "tab:Example-booktabs-table"
14783 This kind of tables is called
14784 \begin_inset Quotes eld
14792 \begin_inset Quotes erd
14796 To make a table a formal table use the option
14804 tab of the table dialog.
14807 \begin_layout Standard
14808 \begin_inset Float table
14814 \begin_layout Plain Layout
14815 \begin_inset Caption Standard
14817 \begin_layout Plain Layout
14818 \begin_inset CommandInset label
14820 name "tab:Example-booktabs-table"
14824 Example booktabs-table
14832 \begin_layout Plain Layout
14834 \begin_inset Tabular
14835 <lyxtabular version="3" rows="8" columns="4">
14836 <features booktabs="true" tabularvalignment="middle">
14837 <column alignment="center" valignment="top">
14838 <column alignment="center" valignment="top">
14839 <column alignment="center" valignment="top">
14840 <column alignment="center" valignment="top">
14842 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14845 \begin_layout Plain Layout
14851 <cell alignment="center" valignment="top" topline="true" usebox="none">
14854 \begin_layout Plain Layout
14856 \begin_inset space \thinspace{}
14864 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14867 \begin_layout Plain Layout
14869 \begin_inset space \thinspace{}
14877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14880 \begin_layout Plain Layout
14888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14891 \begin_layout Plain Layout
14895 \begin_layout Plain Layout
14908 \begin_layout Plain Layout
14917 Detector thickness in µm
14922 <cell alignment="center" valignment="top" usebox="none">
14925 \begin_layout Plain Layout
14931 <cell alignment="center" valignment="top" usebox="none">
14934 \begin_layout Plain Layout
14940 <cell alignment="center" valignment="top" usebox="none">
14943 \begin_layout Plain Layout
14951 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14954 \begin_layout Plain Layout
14960 <cell alignment="center" valignment="top" topline="true" usebox="none">
14963 \begin_layout Plain Layout
14969 <cell alignment="center" valignment="top" topline="true" usebox="none">
14972 \begin_layout Plain Layout
14978 <cell alignment="center" valignment="top" topline="true" usebox="none">
14981 \begin_layout Plain Layout
14988 <row topspace="default">
14989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14992 \begin_layout Plain Layout
14993 Spatial resolution in µm
14998 <cell alignment="center" valignment="top" usebox="none">
15001 \begin_layout Plain Layout
15007 <cell alignment="center" valignment="top" usebox="none">
15010 \begin_layout Plain Layout
15016 <cell alignment="center" valignment="top" usebox="none">
15019 \begin_layout Plain Layout
15026 <row topspace="default">
15027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15030 \begin_layout Plain Layout
15032 \begin_inset Formula $f_{\mathrm{max}}$
15040 <cell alignment="center" valignment="top" usebox="none">
15043 \begin_layout Plain Layout
15049 <cell alignment="center" valignment="top" usebox="none">
15052 \begin_layout Plain Layout
15058 <cell alignment="center" valignment="top" usebox="none">
15061 \begin_layout Plain Layout
15068 <row topspace="default">
15069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15072 \begin_layout Plain Layout
15076 \begin_layout Plain Layout
15080 cmidrule[2pt](l{10pt}){1-1}
15085 LSF-spatial resolution
15090 <cell alignment="center" valignment="top" usebox="none">
15093 \begin_layout Plain Layout
15099 <cell alignment="center" valignment="top" usebox="none">
15102 \begin_layout Plain Layout
15108 <cell alignment="center" valignment="top" usebox="none">
15111 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15122 \begin_layout Plain Layout
15128 <cell alignment="center" valignment="top" usebox="none">
15131 \begin_layout Plain Layout
15137 <cell alignment="center" valignment="top" usebox="none">
15140 \begin_layout Plain Layout
15146 <cell alignment="center" valignment="top" usebox="none">
15149 \begin_layout Plain Layout
15157 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15160 \begin_layout Plain Layout
15166 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15169 \begin_layout Plain Layout
15175 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15178 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15187 \begin_layout Plain Layout
15206 \begin_layout Standard
15207 Spaces to table rows can be added using the
15211 tab of the table dialog as described in section
15212 \begin_inset space ~
15216 \begin_inset CommandInset ref
15218 reference "subsec:Row-Spacing"
15225 \begin_layout Standard
15226 Unlike normal tables, formal tables have no vertical table lines.
15227 The horizontal table lines can be set as for normal tables but they appear
15228 with different widths in the output:
15229 \begin_inset Newline newline
15232 The first and the last table line have a default width of 0.08
15233 \begin_inset space \thinspace{}
15236 em while the other lines have a default width of 0.05
15237 \begin_inset space \thinspace{}
15243 \begin_layout Standard
15244 The default widths can be changed with the following preamble lines
15247 \begin_layout Standard
15257 \begin_inset Newline newline
15269 \begin_layout Standard
15270 This example is for the first line, the so called
15275 If you want to change the width for the last line, replace
15284 To change the width for the other lines replace
15293 You can use all units listed in appendix
15294 \begin_inset space ~
15298 \begin_inset CommandInset ref
15300 reference "cha:Units-available-in"
15307 \begin_layout Standard
15308 Lines that do not span all table columns can be created by setting a table
15309 line for multicolumn cells.
15311 will then internally use the command
15317 to create this line.
15321 \begin_layout Standard
15326 cmidrule[height](trim){startcol-endcol}
15329 \begin_layout Standard
15336 are currently not supported by \SpecialChar LyX
15337 so you have to use \SpecialChar TeX
15346 s can manually be created by inserting the command as \SpecialChar TeX
15348 cell entry of the first cell of a row.
15349 The line is then drawn in the output above the current row.
15352 \begin_layout Standard
15353 The default for the optional
15358 \begin_inset space \thinspace{}
15366 is the number of the column where the line starts and
15370 the column number where the line ends.
15375 always needs to be specified, also when the line should span only one column.
15376 The optional parameter
15393 Using for example the parameter
15397 means that the line is trimmed from its left end by 2
15398 \begin_inset space \thinspace{}
15402 If you don't specify the
15406 the line is trimmed by the default of 0.5
15407 \begin_inset space \thinspace{}
15413 \begin_layout Standard
15414 \begin_inset VSpace bigskip
15418 \begin_inset space ~
15422 \begin_inset CommandInset ref
15424 reference "tab:Example-booktabs-table"
15428 was created using the commands
15431 \begin_layout Standard
15441 \begin_layout Standard
15442 at the beginning of the second row and
15445 \begin_layout Standard
15450 cmidrule[2pt](l{10pt}){1-1}
15453 \begin_layout Standard
15457 \begin_layout Standard
15458 \begin_inset VSpace bigskip
15464 \begin_layout Standard
15465 You might want to have overlapping
15472 \begin_inset space ~
15476 \begin_inset CommandInset ref
15478 reference "tab:Special-booktabs-table"
15483 This can be achieved with the \SpecialChar TeX
15487 \begin_layout Standard
15495 \begin_layout Standard
15496 The command that was used for the second row of Table
15497 \begin_inset space ~
15501 \begin_inset CommandInset ref
15503 reference "tab:Special-booktabs-table"
15510 \begin_layout Standard
15524 \begin_layout Standard
15525 The command for the sixth row is
15528 \begin_layout Standard
15540 \begin_layout Standard
15541 \begin_inset VSpace bigskip
15547 \begin_layout Standard
15548 If you are in any way not satisfied with the border line spacing, you can
15549 use the following command to produce lines that span over all table columns
15554 \begin_layout Standard
15559 specialrule{width}{space above}{space below}
15562 \begin_layout Standard
15563 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15570 \begin_inset CommandInset citation
15577 \begin_inset Index idx
15580 \begin_layout Plain Layout
15582 -packages ! booktabs
15590 \begin_layout Standard
15591 \begin_inset Float table
15597 \begin_layout Plain Layout
15598 \begin_inset Caption Standard
15600 \begin_layout Plain Layout
15601 \begin_inset CommandInset label
15603 name "tab:Special-booktabs-table"
15607 Special booktabs-table
15615 \begin_layout Plain Layout
15617 \begin_inset Tabular
15618 <lyxtabular version="3" rows="8" columns="4">
15619 <features booktabs="true" tabularvalignment="middle">
15620 <column alignment="center" valignment="top">
15621 <column alignment="center" valignment="top">
15622 <column alignment="center" valignment="top">
15623 <column alignment="center" valignment="top">
15625 <cell alignment="center" valignment="top" topline="true" usebox="none">
15628 \begin_layout Plain Layout
15634 <cell alignment="center" valignment="top" topline="true" usebox="none">
15637 \begin_layout Plain Layout
15639 \begin_inset space \thinspace{}
15647 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15650 \begin_layout Plain Layout
15652 \begin_inset space \thinspace{}
15660 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15663 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" usebox="none">
15674 \begin_layout Plain Layout
15678 \begin_layout Plain Layout
15691 \begin_layout Plain Layout
15704 \begin_layout Plain Layout
15717 \begin_layout Plain Layout
15726 Detector thickness in µm
15731 <cell alignment="center" valignment="top" usebox="none">
15734 \begin_layout Plain Layout
15740 <cell alignment="center" valignment="top" usebox="none">
15743 \begin_layout Plain Layout
15749 <cell alignment="center" valignment="top" usebox="none">
15752 \begin_layout Plain Layout
15760 <cell alignment="center" valignment="top" topline="true" usebox="none">
15763 \begin_layout Plain Layout
15769 <cell alignment="center" valignment="top" topline="true" usebox="none">
15772 \begin_layout Plain Layout
15778 <cell alignment="center" valignment="top" topline="true" usebox="none">
15781 \begin_layout Plain Layout
15787 <cell alignment="center" valignment="top" topline="true" usebox="none">
15790 \begin_layout Plain Layout
15797 <row topspace="default">
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15802 Spatial resolution in µm
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15816 <cell alignment="center" valignment="top" usebox="none">
15819 \begin_layout Plain Layout
15825 <cell alignment="center" valignment="top" usebox="none">
15828 \begin_layout Plain Layout
15835 <row topspace="default">
15836 <cell alignment="center" valignment="top" usebox="none">
15839 \begin_layout Plain Layout
15841 \begin_inset Formula $f_{\mathrm{max}}$
15849 <cell alignment="center" valignment="top" usebox="none">
15852 \begin_layout Plain Layout
15858 <cell alignment="center" valignment="top" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" usebox="none">
15870 \begin_layout Plain Layout
15878 <cell alignment="center" valignment="top" topline="true" usebox="none">
15881 \begin_layout Plain Layout
15885 \begin_layout Plain Layout
15898 \begin_layout Plain Layout
15907 LSF-spatial resolution
15912 <cell alignment="center" valignment="top" topline="true" usebox="none">
15915 \begin_layout Plain Layout
15921 <cell alignment="center" valignment="top" topline="true" usebox="none">
15924 \begin_layout Plain Layout
15930 <cell alignment="center" valignment="top" topline="true" usebox="none">
15933 \begin_layout Plain Layout
15941 <cell alignment="center" valignment="top" usebox="none">
15944 \begin_layout Plain Layout
15950 <cell alignment="center" valignment="top" usebox="none">
15953 \begin_layout Plain Layout
15959 <cell alignment="center" valignment="top" usebox="none">
15962 \begin_layout Plain Layout
15968 <cell alignment="center" valignment="top" usebox="none">
15971 \begin_layout Plain Layout
15979 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15982 \begin_layout Plain Layout
15988 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15991 \begin_layout Plain Layout
15997 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16000 \begin_layout Plain Layout
16006 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16009 \begin_layout Plain Layout
16028 \begin_layout Section
16029 Vertical Table Alignment
16030 \begin_inset Index idx
16033 \begin_layout Plain Layout
16042 \begin_layout Standard
16043 To align tables vertically in a text line, the table must be inside a box.
16044 The box can then be vertically aligned as described in section
16045 \begin_inset space ~
16049 \begin_inset CommandInset ref
16051 reference "sec:Box-Dialog"
16058 \begin_layout Standard
16059 In the following example the tables are inside a minipage
16063 \begin_layout Plain Layout
16064 Minipages are described in section
16065 \begin_inset space ~
16069 \begin_inset CommandInset ref
16071 reference "sec:Minipages"
16080 box that has a width of 15
16081 \begin_inset space \thinspace{}
16087 \begin_layout Itemize
16089 \begin_inset Box Frameless
16099 height_special "totalheight"
16104 backgroundcolor "none"
16107 \begin_layout Plain Layout
16108 \begin_inset Tabular
16109 <lyxtabular version="3" rows="3" columns="3">
16110 <features tabularvalignment="middle">
16111 <column alignment="center" valignment="top">
16112 <column alignment="center" valignment="top">
16113 <column alignment="center" valignment="top">
16115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16118 \begin_layout Plain Layout
16124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16127 \begin_layout Plain Layout
16133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16136 \begin_layout Plain Layout
16144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16147 \begin_layout Plain Layout
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16156 \begin_layout Plain Layout
16162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16165 \begin_layout Plain Layout
16173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16176 \begin_layout Plain Layout
16182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16185 \begin_layout Plain Layout
16191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16194 \begin_layout Plain Layout
16214 \begin_layout Plain Layout
16226 \begin_inset Box Frameless
16236 height_special "totalheight"
16241 backgroundcolor "none"
16244 \begin_layout Plain Layout
16245 \begin_inset Tabular
16246 <lyxtabular version="3" rows="3" columns="3">
16247 <features tabularvalignment="middle">
16248 <column alignment="center" valignment="top">
16249 <column alignment="center" valignment="top">
16250 <column alignment="center" valignment="top">
16252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16255 \begin_layout Plain Layout
16261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16264 \begin_layout Plain Layout
16270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16273 \begin_layout Plain Layout
16281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16284 \begin_layout Plain Layout
16290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16293 \begin_layout Plain Layout
16299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16302 \begin_layout Plain Layout
16310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16313 \begin_layout Plain Layout
16319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16322 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16331 \begin_layout Plain Layout
16351 \begin_layout Plain Layout
16361 \begin_layout Itemize
16363 \begin_inset Box Frameless
16373 height_special "totalheight"
16378 backgroundcolor "none"
16381 \begin_layout Plain Layout
16382 \begin_inset Tabular
16383 <lyxtabular version="3" rows="3" columns="3">
16384 <features tabularvalignment="middle">
16385 <column alignment="center" valignment="top">
16386 <column alignment="center" valignment="top">
16387 <column alignment="center" valignment="top">
16389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16392 \begin_layout Plain Layout
16398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16401 \begin_layout Plain Layout
16407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16410 \begin_layout Plain Layout
16418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16421 \begin_layout Plain Layout
16427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16430 \begin_layout Plain Layout
16436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16450 \begin_layout Plain Layout
16456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16459 \begin_layout Plain Layout
16465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16468 \begin_layout Plain Layout
16487 \begin_layout Itemize
16489 \begin_inset Box Frameless
16499 height_special "totalheight"
16504 backgroundcolor "none"
16507 \begin_layout Plain Layout
16508 \begin_inset Tabular
16509 <lyxtabular version="3" rows="3" columns="3">
16510 <features tabularvalignment="middle">
16511 <column alignment="center" valignment="top">
16512 <column alignment="center" valignment="top">
16513 <column alignment="center" valignment="top">
16515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16518 \begin_layout Plain Layout
16524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16527 \begin_layout Plain Layout
16533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16536 \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" usebox="none">
16556 \begin_layout Plain Layout
16562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16565 \begin_layout Plain Layout
16573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16576 \begin_layout Plain Layout
16582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16585 \begin_layout Plain Layout
16591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16594 \begin_layout Plain Layout
16614 \begin_layout Plain Layout
16626 \begin_inset Box Frameless
16636 height_special "totalheight"
16641 backgroundcolor "none"
16644 \begin_layout Plain Layout
16645 \begin_inset Tabular
16646 <lyxtabular version="3" rows="3" columns="3">
16647 <features tabularvalignment="middle">
16648 <column alignment="center" valignment="top">
16649 <column alignment="center" valignment="top">
16650 <column alignment="center" valignment="top">
16652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16655 \begin_layout Plain Layout
16661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16664 \begin_layout Plain Layout
16670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16673 \begin_layout Plain Layout
16681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16684 \begin_layout Plain Layout
16690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16693 \begin_layout Plain Layout
16699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16702 \begin_layout Plain Layout
16710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16713 \begin_layout Plain Layout
16719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16722 \begin_layout Plain Layout
16728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16731 \begin_layout Plain Layout
16751 \begin_layout Plain Layout
16761 \begin_layout Standard
16762 As you will see, the content of the first and last table row is not correctly
16764 To get this alignment, the minipage box must be set into a raisebox.
16768 \begin_layout Plain Layout
16769 Raiseboxes are described in section
16770 \begin_inset space ~
16774 \begin_inset CommandInset ref
16776 reference "subsec:Vertical-Alignment"
16785 In the example above the second table in the first item is aligned using
16786 the \SpecialChar TeX
16790 \begin_layout Standard
16800 \begin_layout Standard
16802 After the box the closing brace
16806 is inserted as \SpecialChar TeX
16808 For the second table in the last item the command
16811 \begin_layout Standard
16821 \begin_layout Standard
16825 \begin_layout Standard
16826 \begin_inset Note Greyedout
16829 \begin_layout Plain Layout
16834 The alignment of the table row content to the surrounding text line is
16836 The required value for the
16842 command for this alignment depends on the document font, the font size,
16843 and the table line thickness.
16851 \begin_layout Section
16853 \begin_inset CommandInset label
16855 name "sec:Colored-Tables"
16860 \begin_inset Index idx
16863 \begin_layout Plain Layout
16872 \begin_layout Subsection
16874 \begin_inset Index idx
16877 \begin_layout Plain Layout
16878 Table Color ! for Cells
16884 \begin_inset Index idx
16887 \begin_layout Plain Layout
16888 Color ! for Table Cells
16896 \begin_layout Standard
16897 \begin_inset Float table
16903 \begin_layout Plain Layout
16904 \begin_inset Caption Standard
16906 \begin_layout Plain Layout
16907 \begin_inset CommandInset label
16909 name "tab:Table-colored-without"
16913 Table colored without using the package
16918 \begin_inset Argument 1
16921 \begin_layout Plain Layout
16922 Table without colortbl
16935 \begin_layout Plain Layout
16937 \begin_inset Tabular
16938 <lyxtabular version="3" rows="3" columns="3">
16939 <features tabularvalignment="middle">
16940 <column alignment="center" valignment="top">
16941 <column alignment="center" valignment="top">
16942 <column alignment="center" valignment="top">
16944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16947 \begin_layout Plain Layout
16955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16958 \begin_layout Plain Layout
16966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16969 \begin_layout Plain Layout
16979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16982 \begin_layout Plain Layout
16990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16993 \begin_layout Plain Layout
17001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17004 \begin_layout Plain Layout
17014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17017 \begin_layout Plain Layout
17025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17028 \begin_layout Plain Layout
17036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17039 \begin_layout Plain Layout
17060 \begin_layout Standard
17061 If you only need colored text, mark the cells and choose a color in the
17065 \begin_inset space ~
17070 dialog (toolbar button
17073 arg "dialog-show character"
17077 This was used to create Table
17078 \begin_inset space ~
17082 \begin_inset CommandInset ref
17084 reference "tab:Table-colored-without"
17089 In any other case you have to use the \SpecialChar LaTeX
17095 \begin_inset Index idx
17098 \begin_layout Plain Layout
17100 -packages ! colortbl
17108 \begin_layout Standard
17112 \begin_layout Plain Layout
17122 \begin_inset Note Note
17125 \begin_layout Plain Layout
17126 The following section part will only be displayed when the \SpecialChar LaTeX
17139 \begin_layout Standard
17140 To create colored tables,
17144 must be loaded in the preamble with the line
17147 \begin_layout Standard
17152 usepackage{colortbl}
17155 \begin_layout Standard
17156 The color of a column is adjusted with the command
17159 \begin_layout Standard
17164 columncolor{name of color}
17167 \begin_layout Standard
17173 More about the command
17177 is contained in section
17178 \begin_inset space ~
17182 \begin_inset CommandInset ref
17184 reference "subsec:Multicolumn-Calculations"
17191 \begin_layout Standard
17192 The following color names are predefined:
17195 \begin_layout Standard
17229 \begin_layout Standard
17230 \begin_inset VSpace medskip
17236 \begin_layout Standard
17237 If you add the option
17240 \begin_layout Standard
17246 \begin_layout Standard
17247 to the document class options in the document settings, you can additionally
17249 \begin_inset space ~
17253 These colors are listed in appendix
17254 \begin_inset space ~
17258 \begin_inset CommandInset ref
17260 reference "chap:List-of-dvips-colornames"
17265 One of these colors,
17269 , is used as example in Table
17270 \begin_inset space ~
17274 \begin_inset CommandInset ref
17276 reference "tab:Table-colored-using"
17283 \begin_layout Standard
17284 \begin_inset VSpace medskip
17290 \begin_layout Standard
17291 You can also define your own color with the command
17294 \begin_layout Standard
17299 definecolor{color name}{color model}{color values}
17302 \begin_layout Standard
17303 The color model can be
17306 \begin_layout Labeling
17307 \labelwidthstring 00.00.0000
17308 cmyk: cyan, magenta, yellow, black
17311 \begin_layout Labeling
17312 \labelwidthstring 00.00.0000
17313 rgb: red, green blue
17316 \begin_layout Labeling
17317 \labelwidthstring 00.00.0000
17321 \begin_layout Standard
17322 and the color values are comma separated numbers between 0 and 1 describing
17323 the factor for the corresponding color of the color model.
17326 \begin_layout Standard
17328 \begin_inset space \thinspace{}
17332 \begin_inset space \space{}
17339 " in the preamble with
17342 \begin_layout Standard
17347 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17350 \begin_layout Standard
17358 \begin_layout Standard
17363 definecolor{lightgray}{gray}{0.8}
17366 \begin_layout Standard
17367 \begin_inset VSpace medskip
17373 \begin_layout Standard
17374 Lines are colored with the command
17377 \begin_layout Standard
17382 rowcolor{name of color}
17385 \begin_layout Standard
17386 and cells are colored with the command
17389 \begin_layout Standard
17394 cellcolor{name of color}
17397 \begin_layout Standard
17398 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17402 \begin_layout Standard
17403 To color characters in the table, mark the cells and use the
17406 \begin_inset space ~
17412 If a cell contains \SpecialChar TeX
17413 Code mark only the characters, otherwise the colored
17415 Code will cause \SpecialChar LaTeX
17419 \begin_layout Standard
17420 \begin_inset Note Greyedout
17423 \begin_layout Plain Layout
17428 Not all DVI-viewers are able to display self-defined colors.
17436 \begin_layout Standard
17437 \begin_inset VSpace bigskip
17443 \begin_layout Standard
17445 \begin_inset space ~
17449 \begin_inset CommandInset ref
17451 reference "tab:Table-colored-using"
17455 do the following: The color of the first column should be
17463 \begin_layout Standard
17468 columncolor{darkgreen}
17473 \begin_layout Standard
17474 as \SpecialChar LaTeX
17475 -argument for this column.
17476 The first row should be light blue, therefore the \SpecialChar TeX
17480 \begin_layout Standard
17488 \begin_layout Standard
17489 is inserted to the first cell of this row.
17490 Note that this overwrites the column color for the first cell.
17491 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17496 \begin_layout Standard
17504 \begin_layout Standard
17505 The characters could now be colored using the menu
17507 Edit\SpecialChar menuseparator
17509 \begin_inset space ~
17517 \begin_layout Standard
17518 \begin_inset Float table
17524 \begin_layout Plain Layout
17525 \begin_inset Caption Standard
17527 \begin_layout Plain Layout
17528 \begin_inset CommandInset label
17530 name "tab:Table-colored-using"
17534 Table colored using the package
17539 \begin_inset Argument 1
17542 \begin_layout Plain Layout
17543 Table with colortbl
17556 \begin_layout Plain Layout
17558 \begin_inset Tabular
17559 <lyxtabular version="3" rows="3" columns="3">
17560 <features tabularvalignment="middle">
17561 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17562 <column alignment="center" valignment="top">
17563 <column alignment="center" valignment="top">
17565 <cell alignment="center" valignment="top" usebox="none">
17568 \begin_layout Plain Layout
17572 \begin_layout Plain Layout
17588 <cell alignment="center" valignment="top" usebox="none">
17591 \begin_layout Plain Layout
17599 <cell alignment="center" valignment="top" usebox="none">
17602 \begin_layout Plain Layout
17612 <cell alignment="center" valignment="top" usebox="none">
17615 \begin_layout Plain Layout
17623 <cell alignment="center" valignment="top" usebox="none">
17626 \begin_layout Plain Layout
17634 <cell alignment="center" valignment="top" usebox="none">
17637 \begin_layout Plain Layout
17647 <cell alignment="center" valignment="top" usebox="none">
17650 \begin_layout Plain Layout
17658 <cell alignment="center" valignment="top" usebox="none">
17661 \begin_layout Plain Layout
17669 <cell alignment="center" valignment="top" usebox="none">
17672 \begin_layout Plain Layout
17676 \begin_layout Plain Layout
17705 \begin_layout Standard
17709 \begin_layout Plain Layout
17719 \begin_inset Note Note
17722 \begin_layout Plain Layout
17723 The following will be displayed when the \SpecialChar LaTeX
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
17801 \begin_layout Plain Layout
17815 in the document preamble with the command
17818 \begin_layout Standard
17823 usepackage[table]{xcolor}
17826 \begin_layout Standard
17831 automatically loads also the package
17836 \begin_inset Index idx
17839 \begin_layout Plain Layout
17841 -packages ! colortbl
17850 must be installed in your \SpecialChar LaTeX
17851 -distribution, otherwise you get \SpecialChar LaTeX
17855 \begin_layout Standard
17859 \begin_layout Plain Layout
17869 \begin_inset Note Note
17872 \begin_layout Plain Layout
17873 The following section part will only be displayed when the \SpecialChar LaTeX
17886 \begin_layout Standard
17887 The table rows are colored with the command
17890 \begin_layout Standard
17895 rowcolors[commands]{row number}{odd row color}{even row color}
17898 \begin_layout Standard
17899 that is either inserted in the document preamble or as \SpecialChar TeX
17901 first table to be colored.
17903 \begin_inset space ~
17906 number is the number of the first row which should be colored according
17907 to the odd row color.
17908 commands can be additional commands that are executed before every table
17910 So for example the command
17913 \begin_layout Standard
17918 rowcolors{1}{white}{lightgray}
17921 \begin_layout Standard
17922 leads to the coloring scheme of Table
17923 \begin_inset space ~
17927 \begin_inset CommandInset ref
17929 reference "tab:Table-rowcolors"
17937 \begin_layout Standard
17944 hline]{1}{lightgray}{cyan}
17947 \begin_layout Standard
17948 leads to the coloring scheme of Table
17949 \begin_inset space ~
17953 \begin_inset CommandInset ref
17955 reference "tab:Table-rowcolors-2"
17961 \begin_inset space ~
17965 \begin_inset space ~
17969 \begin_inset space ~
17973 \begin_inset space ~
17976 color are left empty, no color will be used so that the command
17979 \begin_layout Standard
17987 \begin_layout Standard
17988 deletes all colors.
17995 affects all tables following that command.
17998 \begin_layout Standard
18002 \begin_layout Plain Layout
18006 rowcolors{1}{white}{lightgray}
18014 \begin_layout Standard
18015 \begin_inset Float table
18021 \begin_layout Plain Layout
18022 \begin_inset Caption Standard
18024 \begin_layout Plain Layout
18025 \begin_inset CommandInset label
18027 name "tab:Table-rowcolors"
18031 Table where every second row is colored light gray.
18039 \begin_layout Plain Layout
18041 \begin_inset Tabular
18042 <lyxtabular version="3" rows="4" columns="3">
18043 <features tabularvalignment="middle">
18044 <column alignment="center" valignment="top">
18045 <column alignment="center" valignment="top" width="0pt">
18046 <column alignment="center" valignment="top" width="0pt">
18048 <cell alignment="center" valignment="top" usebox="none">
18051 \begin_layout Plain Layout
18057 <cell alignment="center" valignment="top" usebox="none">
18060 \begin_layout Plain Layout
18066 <cell alignment="center" valignment="top" usebox="none">
18069 \begin_layout Plain Layout
18077 <cell alignment="center" valignment="top" usebox="none">
18080 \begin_layout Plain Layout
18086 <cell alignment="center" valignment="top" usebox="none">
18089 \begin_layout Plain Layout
18095 <cell alignment="center" valignment="top" usebox="none">
18098 \begin_layout Plain Layout
18106 <cell alignment="center" valignment="top" usebox="none">
18109 \begin_layout Plain Layout
18115 <cell alignment="center" valignment="top" usebox="none">
18118 \begin_layout Plain Layout
18124 <cell alignment="center" valignment="top" usebox="none">
18127 \begin_layout Plain Layout
18135 <cell alignment="center" valignment="top" usebox="none">
18138 \begin_layout Plain Layout
18144 <cell alignment="center" valignment="top" usebox="none">
18147 \begin_layout Plain Layout
18153 <cell alignment="center" valignment="top" usebox="none">
18156 \begin_layout Plain Layout
18175 \begin_layout Standard
18179 \begin_layout Plain Layout
18185 hline]{1}{lightgray}{cyan}
18193 \begin_layout Standard
18194 \begin_inset Float table
18200 \begin_layout Plain Layout
18201 \begin_inset Caption Standard
18203 \begin_layout Plain Layout
18204 \begin_inset CommandInset label
18206 name "tab:Table-rowcolors-2"
18210 Table where every second row is colored cyan and at which there is a line
18219 \begin_layout Plain Layout
18221 \begin_inset Tabular
18222 <lyxtabular version="3" rows="4" columns="3">
18223 <features tabularvalignment="middle">
18224 <column alignment="center" valignment="top">
18225 <column alignment="center" valignment="top">
18226 <column alignment="center" valignment="top" width="0pt">
18228 <cell alignment="center" valignment="top" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" usebox="none">
18240 \begin_layout Plain Layout
18246 <cell alignment="center" valignment="top" usebox="none">
18249 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" usebox="none">
18269 \begin_layout Plain Layout
18275 <cell alignment="center" valignment="top" usebox="none">
18278 \begin_layout Plain Layout
18286 <cell alignment="center" valignment="top" usebox="none">
18289 \begin_layout Plain Layout
18295 <cell alignment="center" valignment="top" usebox="none">
18298 \begin_layout Plain Layout
18304 <cell alignment="center" valignment="top" usebox="none">
18307 \begin_layout Plain Layout
18315 <cell alignment="center" valignment="top" usebox="none">
18318 \begin_layout Plain Layout
18324 <cell alignment="center" valignment="top" usebox="none">
18327 \begin_layout Plain Layout
18333 <cell alignment="center" valignment="top" usebox="none">
18336 \begin_layout Plain Layout
18355 \begin_layout Standard
18359 \begin_layout Plain Layout
18369 \begin_inset Note Note
18372 \begin_layout Plain Layout
18373 turns off the row coloring
18381 \begin_layout Standard
18385 \begin_layout Plain Layout
18395 \begin_inset Note Note
18398 \begin_layout Plain Layout
18399 The following will be displayed when the \SpecialChar LaTeX
18412 \begin_layout Standard
18413 You need to install the package
18417 to see the content of this section in the output.
18420 \begin_layout Standard
18424 \begin_layout Plain Layout
18436 \begin_layout Subsection
18438 \begin_inset Index idx
18441 \begin_layout Plain Layout
18442 Table Color ! for Lines
18448 \begin_inset Index idx
18451 \begin_layout Plain Layout
18452 Color ! for Table Lines
18460 \begin_layout Standard
18461 As described in section
18462 \begin_inset space ~
18466 \begin_inset CommandInset ref
18468 reference "subsec:Line-Thickness"
18472 , the line thickness for all lines in a table can be adjusted with the length
18481 \begin_inset space \thinspace{}
18484 pt for all tables of this section.
18488 \begin_layout Plain Layout
18494 arrayrulewidth}{1.5pt}
18502 \begin_layout Standard
18503 To color vertical lines for example with green, create the following column
18504 format in the document preamble, according to the description in section
18505 \begin_inset space ~
18509 \begin_inset CommandInset ref
18511 reference "subsec:Customized-Format"
18518 \begin_layout Standard
18523 newcolumntype{W}{!{
18530 \begin_layout Standard
18532 \begin_inset space ~
18536 \begin_inset CommandInset ref
18538 reference "tab:Table-with-vertical-colored"
18542 the \SpecialChar LaTeX
18547 was used for the last column and
18551 for the other columns.
18554 \begin_layout Standard
18555 If you want to have several colors, define more column formats.
18558 \begin_layout Standard
18559 \begin_inset Float table
18565 \begin_layout Plain Layout
18566 \begin_inset Caption Standard
18568 \begin_layout Plain Layout
18569 \begin_inset CommandInset label
18571 name "tab:Table-with-vertical-colored"
18575 Table with colored vertical lines
18583 \begin_layout Plain Layout
18585 \begin_inset Tabular
18586 <lyxtabular version="3" rows="3" columns="3">
18587 <features tabularvalignment="middle">
18588 <column alignment="center" valignment="top" special="Wc">
18589 <column alignment="center" valignment="top" special="Wc">
18590 <column alignment="center" valignment="top" special="WcW">
18592 <cell alignment="center" valignment="top" topline="true" usebox="none">
18595 \begin_layout Plain Layout
18601 <cell alignment="center" valignment="top" topline="true" usebox="none">
18604 \begin_layout Plain Layout
18610 <cell alignment="center" valignment="top" topline="true" usebox="none">
18613 \begin_layout Plain Layout
18621 <cell alignment="center" valignment="top" topline="true" usebox="none">
18624 \begin_layout Plain Layout
18630 <cell alignment="center" valignment="top" topline="true" usebox="none">
18633 \begin_layout Plain Layout
18639 <cell alignment="center" valignment="top" topline="true" usebox="none">
18642 \begin_layout Plain Layout
18650 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18653 \begin_layout Plain Layout
18659 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18662 \begin_layout Plain Layout
18668 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18671 \begin_layout Plain Layout
18690 \begin_layout Standard
18691 \begin_inset VSpace bigskip
18694 To color horizontal lines for example with red, as in Table
18695 \begin_inset space ~
18699 \begin_inset CommandInset ref
18701 reference "tab:Table-with-horizontal-colored"
18705 , insert these commands in \SpecialChar TeX
18706 Code before the table or table float:
18709 \begin_layout Standard
18719 \begin_inset Newline newline
18727 \begin_inset Newline newline
18731 \begin_inset Phantom HPhantom
18734 \begin_layout Plain Layout
18737 \begin_inset space ~
18747 arrayrulecolor{red}
18751 arrayrulecolor{black}}
18754 \begin_layout Standard
18758 \begin_layout Plain Layout
18769 \begin_layout Plain Layout
18778 \begin_layout Plain Layout
18782 arrayrulecolor{red}
18786 arrayrulecolor{black}}
18792 \begin_inset Float table
18798 \begin_layout Plain Layout
18799 \begin_inset Caption Standard
18801 \begin_layout Plain Layout
18802 \begin_inset CommandInset label
18804 name "tab:Table-with-horizontal-colored"
18808 Table with colored horizontal lines
18816 \begin_layout Plain Layout
18818 \begin_inset Tabular
18819 <lyxtabular version="3" rows="3" columns="3">
18820 <features tabularvalignment="middle">
18821 <column alignment="center" valignment="top">
18822 <column alignment="center" valignment="top">
18823 <column alignment="center" valignment="top">
18825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18828 \begin_layout Plain Layout
18834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18837 \begin_layout Plain Layout
18843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18846 \begin_layout Plain Layout
18854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18857 \begin_layout Plain Layout
18863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18866 \begin_layout Plain Layout
18872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18875 \begin_layout Plain Layout
18883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18886 \begin_layout Plain Layout
18892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18895 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18904 \begin_layout Plain Layout
18923 \begin_layout Standard
18924 To return to the default line color black, insert this command in \SpecialChar TeX
18926 after the table or table float:
18929 \begin_layout Standard
18941 \begin_layout Standard
18943 \begin_inset space ~
18947 \begin_inset CommandInset ref
18949 reference "tab:Table-with-colored"
18953 is an example with colored vertical and horizontal lines.
18956 \begin_layout Standard
18957 \begin_inset Float table
18963 \begin_layout Plain Layout
18964 \begin_inset Caption Standard
18966 \begin_layout Plain Layout
18967 \begin_inset CommandInset label
18969 name "tab:Table-with-colored"
18973 Table with colored lines
18981 \begin_layout Plain Layout
18983 \begin_inset Tabular
18984 <lyxtabular version="3" rows="3" columns="3">
18985 <features tabularvalignment="middle">
18986 <column alignment="center" valignment="top" special="Wc">
18987 <column alignment="center" valignment="top" special="Wc">
18988 <column alignment="center" valignment="top" special="WcW">
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
19008 <cell alignment="center" valignment="top" topline="true" usebox="none">
19011 \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
19037 <cell alignment="center" valignment="top" topline="true" usebox="none">
19040 \begin_layout Plain Layout
19047 <row topspace="default">
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
19066 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19069 \begin_layout Plain Layout
19088 \begin_layout Standard
19092 \begin_layout Plain Layout
19108 \begin_layout Standard
19112 \begin_layout Plain Layout
19118 arrayrulewidth}{0.4pt}
19126 \begin_layout Section
19127 Rotated Table Cells
19128 \begin_inset CommandInset label
19130 name "sec:Rotated-Table-Cells"
19135 \begin_inset Index idx
19138 \begin_layout Plain Layout
19139 Table ! Rotated Cells
19145 \begin_inset Index idx
19148 \begin_layout Plain Layout
19157 \begin_layout Standard
19158 \begin_inset Note Greyedout
19161 \begin_layout Plain Layout
19166 Not all DVI-viewers are able to display rotations.
19174 \begin_layout Standard
19176 \begin_inset space ~
19180 \begin_inset CommandInset ref
19182 reference "tab:Table-with-rotated-multi"
19186 is an example where 3
19187 \begin_inset space ~
19190 cells were rotated by 45
19191 \begin_inset space \thinspace{}
19197 \begin_layout Standard
19198 \begin_inset Float table
19204 \begin_layout Plain Layout
19205 \begin_inset Caption Standard
19207 \begin_layout Plain Layout
19208 \begin_inset CommandInset label
19210 name "tab:Table-with-rotated"
19214 Table with rotated cells in the first row.
19222 \begin_layout Plain Layout
19225 \begin_inset Tabular
19226 <lyxtabular version="3" rows="2" columns="3">
19227 <features tabularvalignment="middle">
19228 <column alignment="center" valignment="top" width="0pt">
19229 <column alignment="center" valignment="top" width="0pt">
19230 <column alignment="center" valignment="top" width="0pt">
19232 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19235 \begin_layout Plain Layout
19241 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19244 \begin_layout Plain Layout
19250 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19253 \begin_layout Plain Layout
19261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19264 \begin_layout Plain Layout
19270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19273 \begin_layout Plain Layout
19279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19282 \begin_layout Plain Layout
19301 \begin_layout Standard
19302 \begin_inset Note Greyedout
19305 \begin_layout Plain Layout
19310 Line breaks (shortcut
19313 arg "newline-insert newline"
19316 ) are not allowed in rotated cells.
19324 \begin_layout Standard
19325 If you want to rotate table cells containing line breaks, you have to put
19326 the cell content into a minipage or a parbox.
19330 \begin_layout Plain Layout
19331 For more about these boxes see sec.
19332 \begin_inset space \thinspace{}
19336 \begin_inset CommandInset ref
19338 reference "sec:Minipages"
19343 \begin_inset CommandInset ref
19345 reference "sec:Parboxes"
19354 If you rotate this cell by 90
19355 \begin_inset space \thinspace{}
19358 ° the width of the box is the height of the cell.
19360 \begin_inset space ~
19364 \begin_inset CommandInset ref
19366 reference "tab:Table-with-rotated-multi"
19370 is an example for a rotated multiline cell where the box width was set
19372 \begin_inset space \thinspace{}
19378 \begin_layout Standard
19379 \begin_inset Float table
19384 \begin_layout Plain Layout
19385 \begin_inset Caption Standard
19387 \begin_layout Plain Layout
19388 \begin_inset CommandInset label
19390 name "tab:Table-with-rotated-multi"
19394 Table with rotated multiline cell.
19402 \begin_layout Plain Layout
19405 \begin_inset Tabular
19406 <lyxtabular version="3" rows="2" columns="3">
19407 <features tabularvalignment="middle">
19408 <column alignment="center" valignment="top">
19409 <column alignment="center" valignment="top" width="0pt">
19410 <column alignment="center" valignment="top">
19412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19415 \begin_layout Plain Layout
19421 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19424 \begin_layout Plain Layout
19425 \begin_inset Box Frameless
19435 height_special "totalheight"
19440 backgroundcolor "none"
19443 \begin_layout Plain Layout
19445 \begin_inset Newline newline
19458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19461 \begin_layout Plain Layout
19469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19472 \begin_layout Plain Layout
19478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19481 \begin_layout Plain Layout
19487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19490 \begin_layout Plain Layout
19509 \begin_layout Section
19510 Table Width Calculation
19511 \begin_inset CommandInset label
19513 name "sec:Table-Width-Calculation"
19520 \begin_layout Standard
19521 For wide tables it is sometimes difficult to assure that the table does
19522 not protrude over the page margin.
19523 Setting a fixed width for every column of the table is the solution, but
19524 what amount of space is needed for each column?
19527 \begin_layout Standard
19529 \begin_inset Formula $W_{\mathrm{table}}$
19532 can be calculated: Every column has the width of the specified column width
19534 \begin_inset Formula $W_{\mathrm{column}}$
19537 (that the content of the column can consume) plus two times the separation
19538 between the column content and the column border (\SpecialChar LaTeX
19546 \begin_inset space \thinspace{}
19549 pt) plus the width of a border line (\SpecialChar LaTeX
19557 \begin_inset space \thinspace{}
19561 \begin_inset Formula $n$
19565 \begin_inset space ~
19568 columns have the same width, the table width is
19569 \begin_inset Formula
19571 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19579 \begin_layout Standard
19580 The available width for a table is the space between the page margins or
19581 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19589 If all table columns should have the same width and
19590 \begin_inset Formula $W_{\mathrm{table}}$
19594 \begin_inset space \thinspace{}
19600 \begin_inset Formula $W_{\mathrm{column}}$
19603 can easily be calculated.
19606 \begin_layout Standard
19607 To be able to perform calculations you need to load the \SpecialChar LaTeX
19613 \begin_inset Index idx
19616 \begin_layout Plain Layout
19623 in the document preamble.
19624 To set the width in the table dialog you have to use the field
19630 The command scheme for this field is the same that is explained in section
19631 \begin_inset space ~
19635 \begin_inset CommandInset ref
19637 reference "subsec:Multicolumn-Calculations"
19643 \begin_inset space \thinspace{}
19646 columns with an uniform width and centered text, enter there for each column
19650 \begin_layout Standard
19657 columnwidth-62.4pt)/5}
19660 \begin_layout Standard
19662 \begin_inset space \thinspace{}
19665 columns where 2 should have 0.75
19666 \begin_inset space ~
19669 times the width than the 3 others, the calculation is
19670 \begin_inset Formula
19672 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19673 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19674 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19675 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19683 \begin_layout Standard
19684 In the table therefore the command
19687 \begin_layout Standard
19694 columnwidth-62.4pt)/
19699 \begin_layout Standard
19700 is used for the wider columns and
19703 \begin_layout Standard
19710 columnwidth-62.4pt)/
19717 \begin_layout Standard
19718 for the smaller ones:
19721 \begin_layout Standard
19722 \begin_inset Tabular
19723 <lyxtabular version="3" rows="2" columns="5">
19724 <features tabularvalignment="middle">
19725 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19726 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19727 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19728 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19729 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19734 \begin_layout Plain Layout
19740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19743 \begin_layout Plain Layout
19749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19752 \begin_layout Plain Layout
19758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19761 \begin_layout Plain Layout
19767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19770 \begin_layout Plain Layout
19778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19781 \begin_layout Plain Layout
19782 111111 1111111 111111 111111111 11111 11111 1111
19787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19790 \begin_layout Plain Layout
19796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19799 \begin_layout Plain Layout
19800 2222 22222 222222 222222222 2222222 22 22222
19805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19808 \begin_layout Plain Layout
19814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19817 \begin_layout Plain Layout
19818 333333 333333 333333 33333 3333333 333
19831 \begin_layout Section
19832 Table Customization
19833 \begin_inset Index idx
19836 \begin_layout Plain Layout
19837 Table Customization
19843 \begin_inset Index idx
19846 \begin_layout Plain Layout
19847 Table ! Customization
19855 \begin_layout Subsection
19857 \begin_inset CommandInset label
19859 name "subsec:Row-Spacing"
19864 \begin_inset Index idx
19867 \begin_layout Plain Layout
19868 Table Customization ! Row Spacing
19876 \begin_layout Standard
19877 You can add vertical space to table rows in the
19881 tab of the table dialog.
19882 You find there three possibilities:
19885 \begin_layout Description
19887 \begin_inset space ~
19891 \begin_inset space ~
19894 row will add space above the characters of the table row.
19895 If the table is a formal table
19899 \begin_layout Plain Layout
19900 Formal tables are explained in section
19901 \begin_inset space ~
19905 \begin_inset CommandInset ref
19907 reference "sec:Formal-Tables"
19917 will insert as default 0.5
19918 \begin_inset space \thinspace{}
19922 For normal tables the inserted space will unfortunately destroy the vertical
19923 table lines as in the following table:
19924 \begin_inset VSpace medskip
19928 \begin_inset Newline newline
19932 \begin_inset space \hspace*{}
19937 \begin_inset space \hfill{}
19941 \begin_inset Tabular
19942 <lyxtabular version="3" rows="3" columns="1">
19943 <features tabularvalignment="middle">
19944 <column alignment="center" valignment="top">
19946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19949 \begin_layout Plain Layout
19956 <row topspace="3mm">
19957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19960 \begin_layout Plain Layout
19962 \begin_inset space \thinspace{}
19965 mm space top of row
19972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19975 \begin_layout Plain Layout
19987 \begin_inset space \hfill{}
19991 \begin_inset space \hspace*{}
19996 \begin_inset VSpace medskip
20000 \begin_inset Newline newline
20003 So inserting space in the top of row for normal tables is only useful when
20004 you don't have vertical lines.
20007 \begin_layout Description
20009 \begin_inset space ~
20013 \begin_inset space ~
20016 row will add space below the characters of the table row.
20017 If the table is a formal table \SpecialChar LyX
20018 will insert as default 0.5
20019 \begin_inset space \thinspace{}
20022 em space, for normal tables the default size is 2
20023 \begin_inset space \thinspace{}
20029 \begin_layout Description
20031 \begin_inset space ~
20034 rows adds space between the current and the following row.
20035 If the table is a formal table \SpecialChar LyX
20036 will insert as default 0.5
20037 \begin_inset space \thinspace{}
20041 For normal tables the inserted space will unfortunately destroy the vertical
20042 table lines as in the following table:
20043 \begin_inset VSpace medskip
20047 \begin_inset Newline newline
20051 \begin_inset space \hspace*{}
20056 \begin_inset space \hfill{}
20060 \begin_inset Tabular
20061 <lyxtabular version="3" rows="3" columns="1">
20062 <features tabularvalignment="middle">
20063 <column alignment="center" valignment="top">
20065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20068 \begin_layout Plain Layout
20075 <row interlinespace="3mm">
20076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20079 \begin_layout Plain Layout
20080 \begin_inset Formula $\downarrow$
20084 \begin_inset space \thinspace{}
20087 mm space between row
20088 \begin_inset Formula $\downarrow$
20098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20101 \begin_layout Plain Layout
20102 \begin_inset Formula $\uparrow$
20106 \begin_inset space \thinspace{}
20109 mm space between row
20110 \begin_inset Formula $\uparrow$
20124 \begin_inset space \hfill{}
20128 \begin_inset space \hspace*{}
20133 \begin_inset VSpace medskip
20137 \begin_inset Newline newline
20140 So inserting space between rows for normal tables is only useful when you
20141 don't have vertical lines.
20144 \begin_layout Standard
20145 \begin_inset VSpace bigskip
20148 When you want to add extra height to all cells of all tables, you can do
20149 this with the following preamble lines:
20152 \begin_layout Standard
20157 @ifundefined{extrarowheight}
20158 \begin_inset Newline newline
20162 \begin_inset Phantom HPhantom
20165 \begin_layout Plain Layout
20168 \begin_inset space ~
20178 usepackage{array}}{}
20179 \begin_inset Newline newline
20186 extrarowheight}{height}
20189 \begin_inset Note Note
20192 \begin_layout Plain Layout
20197 will be loaded automatically by \SpecialChar LyX
20198 when you use self defined table formats.
20199 To avoid that it being loaded twice the command
20205 is used in the above command.
20213 \begin_layout Standard
20218 can have one of the units listed in appendix
20219 \begin_inset space ~
20223 \begin_inset CommandInset ref
20225 reference "cha:Units-available-in"
20230 But this has the disadvantage that the cell texts are no longer exactly
20231 vertically centered.
20234 \begin_layout Standard
20235 If you are using font sizes larger than the normal size, the table borders
20236 are often too close to the letters.
20237 This can be corrected by inserting the command
20243 in \SpecialChar TeX
20244 Code at the beginning of a table row.
20246 \begin_inset space ~
20250 \begin_inset CommandInset ref
20252 reference "tab:Vertical-alignment-of"
20256 illustrates the effect.
20259 \begin_layout Standard
20261 \begin_inset Float table
20267 \begin_layout Plain Layout
20268 \begin_inset Caption Standard
20270 \begin_layout Plain Layout
20271 \begin_inset CommandInset label
20273 name "tab:Vertical-alignment-of"
20277 Vertical alignment of text with large font sizes.
20285 \begin_layout Plain Layout
20286 \begin_inset space \hfill{}
20290 \begin_inset Float table
20295 \begin_layout Plain Layout
20296 \begin_inset Caption Standard
20298 \begin_layout Plain Layout
20307 \begin_layout Plain Layout
20310 \begin_inset Tabular
20311 <lyxtabular version="3" rows="6" columns="1">
20312 <features tabularvalignment="middle">
20313 <column alignment="left" valignment="top">
20315 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20318 \begin_layout Plain Layout
20326 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20329 \begin_layout Plain Layout
20339 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20342 \begin_layout Plain Layout
20352 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20355 \begin_layout Plain Layout
20365 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20368 \begin_layout Plain Layout
20378 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20381 \begin_layout Plain Layout
20400 \begin_inset space \hfill{}
20404 \begin_inset Float table
20409 \begin_layout Plain Layout
20410 \begin_inset Caption Standard
20412 \begin_layout Plain Layout
20413 Table using the command
20427 \begin_layout Plain Layout
20430 \begin_inset Tabular
20431 <lyxtabular version="3" rows="6" columns="1">
20432 <features tabularvalignment="middle">
20433 <column alignment="left" valignment="top">
20435 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20438 \begin_layout Plain Layout
20446 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20449 \begin_layout Plain Layout
20455 \begin_layout Plain Layout
20471 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20474 \begin_layout Plain Layout
20480 \begin_layout Plain Layout
20496 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20499 \begin_layout Plain Layout
20505 \begin_layout Plain Layout
20521 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20524 \begin_layout Plain Layout
20530 \begin_layout Plain Layout
20546 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20549 \begin_layout Plain Layout
20555 \begin_layout Plain Layout
20582 \begin_inset space \hfill{}
20593 \begin_layout Subsection
20594 Special Cell Alignment
20595 \begin_inset CommandInset label
20597 name "subsec:Special-Cell-Alignment"
20602 \begin_inset Index idx
20605 \begin_layout Plain Layout
20606 Table Customization ! Special Cell Alignment
20614 \begin_layout Standard
20615 Sometimes it looks better when the cell entries of a column are aligned
20616 with a special character, e.
20617 \begin_inset space \thinspace{}
20621 \begin_inset space \space{}
20624 with the decimal separator as in Table
20625 \begin_inset space ~
20629 \begin_inset CommandInset ref
20631 reference "tab:Table-cells-align"
20636 This alignment is achieved by setting the cursor into the column and then
20637 either pressing the toolbar button
20640 arg "tabular-feature align-decimal"
20643 or setting the alignment in the table settings to
20646 \begin_inset space ~
20650 \begin_inset space ~
20656 The alignment character can be a character of your choice and is specified
20657 in the table settings.
20660 \begin_layout Standard
20661 \begin_inset Float table
20667 \begin_layout Plain Layout
20668 \begin_inset Caption Standard
20670 \begin_layout Plain Layout
20671 \begin_inset CommandInset label
20673 name "tab:Table-cells-align"
20677 Table cells of a column aligned with the decimal separator.
20685 \begin_layout Plain Layout
20687 \begin_inset Tabular
20688 <lyxtabular version="3" rows="4" columns="1">
20689 <features booktabs="true" tabularvalignment="middle">
20690 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20692 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20695 \begin_layout Plain Layout
20703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20706 \begin_layout Plain Layout
20714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20717 \begin_layout Plain Layout
20725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20728 \begin_layout Plain Layout
20747 \begin_layout Standard
20748 \begin_inset Float table
20754 \begin_layout Plain Layout
20755 \begin_inset Caption Standard
20757 \begin_layout Plain Layout
20758 \begin_inset CommandInset label
20760 name "tab:Table-align-operator"
20764 Table cells of a column aligned with the operators.
20772 \begin_layout Plain Layout
20774 \begin_inset Tabular
20775 <lyxtabular version="3" rows="4" columns="2">
20776 <features booktabs="true" tabularvalignment="middle">
20777 <column alignment="right" valignment="top" width="0pt">
20778 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20780 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20783 \begin_layout Plain Layout
20789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20792 \begin_layout Plain Layout
20800 <cell alignment="center" valignment="top" usebox="none">
20803 \begin_layout Plain Layout
20804 \begin_inset Formula $12\,+$
20812 <cell alignment="center" valignment="top" usebox="none">
20815 \begin_layout Plain Layout
20816 \begin_inset Formula $\,6$
20826 <cell alignment="center" valignment="top" usebox="none">
20829 \begin_layout Plain Layout
20830 \begin_inset Formula $0\,-$
20838 <cell alignment="center" valignment="top" usebox="none">
20841 \begin_layout Plain Layout
20842 \begin_inset Formula $\,68$
20852 <cell alignment="center" valignment="top" usebox="none">
20855 \begin_layout Plain Layout
20856 \begin_inset Formula $-123\,/$
20864 <cell alignment="center" valignment="top" usebox="none">
20867 \begin_layout Plain Layout
20868 \begin_inset Formula $\,0$
20889 \begin_layout Standard
20890 For alignments at characters in formulas this method does not work because
20891 the field to specify the alignment character does not allow formulas.
20892 In this case one need to use the method from Table
20893 \begin_inset space ~
20897 \begin_inset CommandInset ref
20899 reference "tab:Table-align-operator"
20904 This table was created with a 4×2 table.
20905 The heading is a centered multicolumn.
20906 The first column is right-aligned and contains the first part including
20908 The second column is left aligned and contains the rest.
20909 A small space was added at the beginning of each cell of the second column
20910 to get the space that is usually around operators.
20911 To omit the space that is normally between two table columns, the following
20913 -argument was used for the second column:
20916 \begin_layout Standard
20922 \begin_layout Standard
20924 \begin_inset space ~
20928 \begin_inset CommandInset ref
20930 reference "tab:Several-table-cell"
20934 shows some example alignments.
20935 For the alignment with the relation sign, a small space was added like
20936 for the second column of Table
20937 \begin_inset space ~
20941 \begin_inset CommandInset ref
20943 reference "tab:Table-align-operator"
20950 \begin_layout Standard
20951 \begin_inset Float table
20957 \begin_layout Plain Layout
20958 \begin_inset Caption Standard
20960 \begin_layout Plain Layout
20961 \begin_inset CommandInset label
20963 name "tab:Several-table-cell"
20967 Several table cell alignments.
20975 \begin_layout Plain Layout
20977 \begin_inset Tabular
20978 <lyxtabular version="3" rows="4" columns="6">
20979 <features tabularvalignment="middle">
20980 <column alignment="right" valignment="top">
20981 <column alignment="left" valignment="top" special="@{}l">
20982 <column alignment="right" valignment="top">
20983 <column alignment="left" valignment="top" special="@{}l">
20984 <column alignment="right" valignment="top">
20985 <column alignment="left" valignment="top" special="@{}l">
20987 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20990 \begin_layout Plain Layout
20996 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20999 \begin_layout Plain Layout
21005 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21008 \begin_layout Plain Layout
21014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21017 \begin_layout Plain Layout
21023 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21026 \begin_layout Plain Layout
21032 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21035 \begin_layout Plain Layout
21043 <cell alignment="center" valignment="top" usebox="none">
21046 \begin_layout Plain Layout
21052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21055 \begin_layout Plain Layout
21057 \begin_inset space \thinspace{}
21065 <cell alignment="center" valignment="top" usebox="none">
21068 \begin_layout Plain Layout
21069 \begin_inset Formula $10\cdot$
21077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21080 \begin_layout Plain Layout
21081 \begin_inset Formula $10^{\mbox{-}17}$
21089 <cell alignment="center" valignment="top" usebox="none">
21092 \begin_layout Plain Layout
21093 \begin_inset Formula $\Gamma(t)\propto$
21101 <cell alignment="center" valignment="top" usebox="none">
21104 \begin_layout Plain Layout
21105 \begin_inset Formula $\:\Upsilon(t)$
21115 <cell alignment="center" valignment="top" usebox="none">
21118 \begin_layout Plain Layout
21124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21127 \begin_layout Plain Layout
21129 \begin_inset space \thinspace{}
21137 <cell alignment="center" valignment="top" usebox="none">
21140 \begin_layout Plain Layout
21141 \begin_inset Formula $5.78\cdot$
21149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21152 \begin_layout Plain Layout
21153 \begin_inset Formula $10^{7}$
21161 <cell alignment="center" valignment="top" usebox="none">
21164 \begin_layout Plain Layout
21165 \begin_inset Formula $A\ne$
21173 <cell alignment="center" valignment="top" usebox="none">
21176 \begin_layout Plain Layout
21177 \begin_inset Formula $\:B_{\mathrm{red}}$
21187 <cell alignment="center" valignment="top" usebox="none">
21190 \begin_layout Plain Layout
21196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21199 \begin_layout Plain Layout
21201 \begin_inset space \thinspace{}
21209 <cell alignment="center" valignment="top" usebox="none">
21212 \begin_layout Plain Layout
21214 \begin_inset Formula $33.5\cdot$
21222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21225 \begin_layout Plain Layout
21226 \begin_inset Formula $10^{4}$
21234 <cell alignment="center" valignment="top" usebox="none">
21237 \begin_layout Plain Layout
21238 \begin_inset Formula $\sin(\alpha)\ge$
21246 <cell alignment="center" valignment="top" usebox="none">
21249 \begin_layout Plain Layout
21250 \begin_inset Formula $\:\sin(\beta)$
21271 \begin_layout Subsection
21272 Customized Cell/Column Format
21273 \begin_inset CommandInset label
21275 name "subsec:Customized-Format"
21280 \begin_inset Index idx
21283 \begin_layout Plain Layout
21284 Table Customization ! Cell/Column Format
21292 \begin_layout Standard
21293 Calculating the required width for normal columns as described in section
21294 \begin_inset space ~
21298 \begin_inset CommandInset ref
21300 reference "sec:Table-Width-Calculation"
21304 or for spanned columns as described in section
21305 \begin_inset space ~
21309 \begin_inset CommandInset ref
21311 reference "subsec:Multicolumn-Calculations"
21315 is very annoying if you have several tables where a calculation is necessary.
21316 To make life easier, you can define a cell/column format in the preamble,
21317 that can be used in all tables of the document.
21318 The format is defined with the command
21321 \begin_layout Standard
21326 newcolumntype{name of format}[number of arguments]{commands}
21329 \begin_layout Standard
21330 The format name may only consist of one letter.
21355 are predefined and cannot be used.
21356 But all letters are allowed as capitals.
21359 \begin_layout Standard
21360 \begin_inset VSpace medskip
21366 \begin_layout Standard
21367 For vertically and horizontally centered multicolumn cells with a fixed
21368 width you can define the cell format
21371 \begin_layout Standard
21376 newcolumntype{M}[1]{>{
21383 \begin_layout Standard
21390 avoids the problem of hyphenating the first word, as described in section
21391 \begin_inset space ~
21395 \begin_inset CommandInset ref
21397 reference "subsec:Multiple-Lines-in"
21402 Now you can simply enter
21405 \begin_layout Standard
21411 \begin_layout Standard
21417 in the table dialog to create a multicolumn.
21420 \begin_layout Standard
21421 \begin_inset VSpace bigskip
21427 \begin_layout Standard
21428 For cells spanned by a multicolumn cell, you can define the format
21431 \begin_layout Standard
21436 newcolumntype{S}[2]{>{
21441 \begin_inset Newline newline
21445 \begin_inset Phantom HPhantom
21448 \begin_layout Plain Layout
21462 arrayrulewidth)*(1-#2))/#2}}
21465 \begin_layout Standard
21466 This format uses equation
21467 \begin_inset CommandInset ref
21473 to calculate the required width so that each spanned cell has the same
21477 \begin_layout Standard
21481 \begin_layout Standard
21484 S{width of multicolumn cell}{number of spanned columns}
21487 \begin_layout Standard
21488 as \SpecialChar LaTeX
21489 -argument of the column.
21492 \begin_layout Standard
21493 \begin_inset VSpace bigskip
21499 \begin_layout Standard
21500 For colored columns, you can define
21503 \begin_layout Standard
21508 newcolumntype{K}[1]{>{
21515 \begin_layout Standard
21517 \begin_inset Quotes eld
21521 \begin_inset Quotes erd
21524 at the end creates a column with a flexible width whose text is horizontally
21529 \begin_layout Standard
21535 \begin_layout Standard
21536 as \SpecialChar LaTeX
21540 \begin_layout Standard
21541 \begin_inset VSpace bigskip
21547 \begin_layout Standard
21549 \begin_inset space ~
21553 \begin_inset CommandInset ref
21555 reference "tab:Table-using-user-defined"
21559 use the \SpecialChar LaTeX
21563 \begin_layout Standard
21569 \begin_layout Standard
21570 for the first column and the multicolumn,
21573 \begin_layout Standard
21579 \begin_layout Standard
21580 for the last column, and
21583 \begin_layout Standard
21589 \begin_layout Standard
21590 for the cells in the second column.
21593 \begin_layout Standard
21594 \begin_inset Float table
21600 \begin_layout Plain Layout
21601 \begin_inset Caption Standard
21603 \begin_layout Plain Layout
21604 \begin_inset CommandInset label
21606 name "tab:Table-using-user-defined"
21610 Table using user-defined table formats
21618 \begin_layout Plain Layout
21620 \begin_inset Tabular
21621 <lyxtabular version="3" rows="3" columns="4">
21622 <features tabularvalignment="middle">
21623 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21624 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21625 <column alignment="center" valignment="middle">
21626 <column alignment="center" valignment="middle" special="K{red}">
21628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21631 \begin_layout Plain Layout
21632 verylongtablecellword
21637 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21640 \begin_layout Plain Layout
21641 multiple lines multicolumn
21646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21649 \begin_layout Plain Layout
21655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21658 \begin_layout Plain Layout
21666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21669 \begin_layout Plain Layout
21675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21678 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21687 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21696 \begin_layout Plain Layout
21704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21707 \begin_layout Plain Layout
21713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21716 \begin_layout Plain Layout
21722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21725 \begin_layout Plain Layout
21731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21734 \begin_layout Plain Layout
21753 \begin_layout Subsection
21755 \begin_inset CommandInset label
21757 name "subsec:Line-Thickness"
21762 \begin_inset Index idx
21765 \begin_layout Plain Layout
21766 Table Customization ! Line Thickness
21774 \begin_layout Standard
21775 The line thickness for all lines in a table can be adjusted with the length
21783 To set for example a line thickness of 1.5
21784 \begin_inset space \thinspace{}
21788 \begin_inset space ~
21792 \begin_inset CommandInset ref
21794 reference "tab:Table-with-1.5"
21798 , insert the command
21801 \begin_layout Standard
21808 arrayrulewidth}{1.5pt}
21811 \begin_layout Standard
21812 in \SpecialChar TeX
21813 Code before the table or table float.
21814 The changed thickness is valid for all subsequent tables.
21815 To use the default value again, set
21822 \begin_inset space \thinspace{}
21825 pt in \SpecialChar TeX
21826 Code after the table or table float.
21829 \begin_layout Standard
21833 \begin_layout Plain Layout
21839 arrayrulewidth}{1.5pt}
21845 \begin_inset Float table
21850 \begin_layout Plain Layout
21851 \begin_inset Caption Standard
21853 \begin_layout Plain Layout
21854 \begin_inset CommandInset label
21856 name "tab:Table-with-1.5"
21861 \begin_inset space \thinspace{}
21872 \begin_layout Plain Layout
21874 \begin_inset Tabular
21875 <lyxtabular version="3" rows="3" columns="3">
21876 <features tabularvalignment="middle">
21877 <column alignment="center" valignment="top">
21878 <column alignment="center" valignment="top">
21879 <column alignment="center" valignment="top">
21881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21884 \begin_layout Plain Layout
21890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21893 \begin_layout Plain Layout
21899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21902 \begin_layout Plain Layout
21910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21913 \begin_layout Plain Layout
21919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21922 \begin_layout Plain Layout
21928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21931 \begin_layout Plain Layout
21939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21942 \begin_layout Plain Layout
21948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21951 \begin_layout Plain Layout
21957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21960 \begin_layout Plain Layout
21980 \begin_layout Plain Layout
21986 arrayrulewidth}{0.4pt}
21994 \begin_layout Standard
21995 \begin_inset VSpace bigskip
21998 To set the line thickness to 1.5
21999 \begin_inset space \thinspace{}
22002 pt only for horizontal lines, as in Table
22003 \begin_inset space ~
22007 \begin_inset CommandInset ref
22009 reference "tab:Table-with-horizontal"
22013 , insert these commands in \SpecialChar TeX
22014 Code before the table or table float:
22017 \begin_layout Standard
22027 \begin_inset Newline newline
22035 \begin_inset Newline newline
22044 arrayrulewidth 1.5pt}
22045 \begin_inset Newline newline
22056 arrayrulewidth 0.4pt}}
22059 \begin_layout Standard
22060 To return to the default line thickness, insert this command in \SpecialChar TeX
22062 the table or table float:
22065 \begin_layout Standard
22077 \begin_layout Standard
22081 \begin_layout Plain Layout
22092 \begin_layout Plain Layout
22101 \begin_layout Plain Layout
22109 arrayrulewidth 1.5pt}
22112 \begin_layout Plain Layout
22122 arrayrulewidth 0.4pt}}
22128 \begin_inset Float table
22133 \begin_layout Plain Layout
22134 \begin_inset Caption Standard
22136 \begin_layout Plain Layout
22137 \begin_inset CommandInset label
22139 name "tab:Table-with-horizontal"
22144 \begin_inset space \thinspace{}
22147 pt thick horizontal lines
22155 \begin_layout Plain Layout
22157 \begin_inset Tabular
22158 <lyxtabular version="3" rows="3" columns="3">
22159 <features tabularvalignment="middle">
22160 <column alignment="center" valignment="top">
22161 <column alignment="center" valignment="top">
22162 <column alignment="center" valignment="top">
22164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22167 \begin_layout Plain Layout
22173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22176 \begin_layout Plain Layout
22182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22185 \begin_layout Plain Layout
22193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22196 \begin_layout Plain Layout
22202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22205 \begin_layout Plain Layout
22211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22214 \begin_layout Plain Layout
22222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22225 \begin_layout Plain Layout
22231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22234 \begin_layout Plain Layout
22240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22243 \begin_layout Plain Layout
22263 \begin_layout Plain Layout
22279 \begin_layout Standard
22280 \begin_inset VSpace bigskip
22283 To set the line thickness to 1.5
22284 \begin_inset space \thinspace{}
22287 pt only for vertical lines, create the following column format in the document
22288 preamble, according to the description in section
22289 \begin_inset space ~
22293 \begin_inset CommandInset ref
22295 reference "subsec:Customized-Format"
22302 \begin_layout Standard
22307 newcolumntype{V}{!{
22309 vrule width 1.5pt}}
22312 \begin_layout Standard
22314 \begin_inset space ~
22318 \begin_inset CommandInset ref
22320 reference "tab:Table-with-vertical"
22324 the \SpecialChar LaTeX
22328 \begin_layout Standard
22334 \begin_layout Standard
22335 was used for the last column and
22338 \begin_layout Standard
22344 \begin_layout Standard
22345 for the other columns.
22348 \begin_layout Standard
22349 \begin_inset Float table
22354 \begin_layout Plain Layout
22355 \begin_inset Caption Standard
22357 \begin_layout Plain Layout
22358 \begin_inset CommandInset label
22360 name "tab:Table-with-vertical"
22365 \begin_inset space \thinspace{}
22368 pt thick vertical lines
22376 \begin_layout Plain Layout
22378 \begin_inset Tabular
22379 <lyxtabular version="3" rows="3" columns="3">
22380 <features tabularvalignment="middle">
22381 <column alignment="center" valignment="top" special="Vc">
22382 <column alignment="center" valignment="top" special="Vc">
22383 <column alignment="center" valignment="top" special="VcV">
22385 <cell alignment="center" valignment="top" topline="true" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" topline="true" usebox="none">
22397 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" topline="true" usebox="none">
22406 \begin_layout Plain Layout
22414 <cell alignment="center" valignment="top" topline="true" usebox="none">
22417 \begin_layout Plain Layout
22423 <cell alignment="center" valignment="top" topline="true" usebox="none">
22426 \begin_layout Plain Layout
22432 <cell alignment="center" valignment="top" topline="true" usebox="none">
22435 \begin_layout Plain Layout
22443 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22446 \begin_layout Plain Layout
22452 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22455 \begin_layout Plain Layout
22461 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22464 \begin_layout Plain Layout
22483 \begin_layout Subsection
22485 \begin_inset Index idx
22488 \begin_layout Plain Layout
22489 Table Customization ! Dashed Lines
22497 \begin_layout Standard
22501 \begin_layout Plain Layout
22511 \begin_inset Note Note
22514 \begin_layout Plain Layout
22515 The following section will only be displayed when the \SpecialChar LaTeX
22528 \begin_layout Standard
22529 \begin_inset Float table
22535 \begin_layout Plain Layout
22536 \begin_inset Caption Standard
22538 \begin_layout Plain Layout
22539 \begin_inset CommandInset label
22541 name "tab:Table-with-dashed"
22545 Table with dashed lines
22553 \begin_layout Plain Layout
22555 \begin_inset Tabular
22556 <lyxtabular version="3" rows="5" columns="5">
22557 <features tabularvalignment="middle">
22558 <column alignment="center" valignment="top">
22559 <column alignment="center" valignment="top">
22560 <column alignment="center" valignment="top" special=":c">
22561 <column alignment="center" valignment="top">
22562 <column alignment="center" valignment="top">
22564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22567 \begin_layout Plain Layout
22573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22576 \begin_layout Plain Layout
22582 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22585 \begin_layout Plain Layout
22591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22594 \begin_layout Plain Layout
22600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22603 \begin_layout Plain Layout
22611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22614 \begin_layout Plain Layout
22620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22623 \begin_layout Plain Layout
22629 <cell alignment="center" valignment="top" topline="true" usebox="none">
22632 \begin_layout Plain Layout
22638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22641 \begin_layout Plain Layout
22647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22650 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22661 \begin_layout Plain Layout
22665 \begin_layout Plain Layout
22679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22682 \begin_layout Plain Layout
22688 <cell alignment="center" valignment="top" usebox="none">
22691 \begin_layout Plain Layout
22697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22700 \begin_layout Plain Layout
22706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22709 \begin_layout Plain Layout
22717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22720 \begin_layout Plain Layout
22724 \begin_layout Plain Layout
22738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22741 \begin_layout Plain Layout
22747 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22750 \begin_layout Plain Layout
22756 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22759 \begin_layout Plain Layout
22765 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22768 \begin_layout Plain Layout
22776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22779 \begin_layout Plain Layout
22785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22788 \begin_layout Plain Layout
22794 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22797 \begin_layout Plain Layout
22803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22806 \begin_layout Plain Layout
22812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22815 \begin_layout Plain Layout
22834 \begin_layout Standard
22836 does not natively support dashed lines, so you have to use \SpecialChar TeX
22838 As a prerequisite the \SpecialChar LaTeX
22844 \begin_inset Index idx
22847 \begin_layout Plain Layout
22849 -packages ! arydshln
22854 must be loaded in the document preamble with the command
22857 \begin_layout Standard
22862 usepackage{arydshln}
22865 \begin_layout Standard
22866 To make a vertical line dashed, enter the colon
22867 \begin_inset Quotes eld
22871 \begin_inset Quotes erd
22874 together with the character for the horizontal alignment as \SpecialChar LaTeX
22876 the table cell dialog.
22879 \begin_layout Standard
22880 For a horizontal dashed line add the command
22883 \begin_layout Standard
22891 \begin_layout Standard
22892 in \SpecialChar TeX
22893 Code as first element of the first cell in the table row.
22896 \begin_layout Standard
22897 For dashed multicolumn lines use the command
22900 \begin_layout Standard
22905 cdashline{line number
22910 \begin_layout Standard
22911 in \SpecialChar TeX
22912 Code as the first element of the first cell in the table row.
22913 If you have for example a multicolumn spanning columns 2 to 4 and you want
22914 to have a dashed line above, add the command
22917 \begin_layout Standard
22925 \begin_layout Standard
22926 as the first element of the first cell in the row of the multicolumn.
22929 \begin_layout Standard
22930 \begin_inset VSpace bigskip
22936 \begin_layout Standard
22938 \begin_inset space ~
22942 \begin_inset CommandInset ref
22944 reference "tab:Table-with-dashed"
22949 \begin_inset Quotes eld
22957 \begin_inset Quotes erd
22960 as \SpecialChar LaTeX
22961 argument of the third column.
22962 The \SpecialChar TeX
22969 was inserted in the first cell of the third row and the \SpecialChar TeX
22971 \begin_inset Newline newline
22980 was inserted in the first cell of the fourth row.
22983 \begin_layout Standard
22984 \begin_inset VSpace bigskip
22990 \begin_layout Standard
22991 Tables with dashed lines can also be colored as shown by Table
22992 \begin_inset space ~
22996 \begin_inset CommandInset ref
22998 reference "tab:Colored-table-with"
23005 \begin_layout Standard
23009 \begin_layout Plain Layout
23015 arrayrulewidth}{1pt}
23021 \begin_inset Note Note
23024 \begin_layout Plain Layout
23025 thicker lines for better visualization of the line color
23033 \begin_layout Standard
23037 \begin_layout Plain Layout
23041 dashgapcolor{green}
23047 \begin_inset Note Note
23050 \begin_layout Plain Layout
23051 color gaps between dashes green
23059 \begin_layout Standard
23063 \begin_layout Plain Layout
23074 \begin_layout Plain Layout
23083 \begin_layout Plain Layout
23087 arrayrulecolor{red}
23091 arrayrulecolor{black}}
23097 \begin_inset Note Note
23100 \begin_layout Plain Layout
23101 color horizontal, dashed lines red
23109 \begin_layout Standard
23113 \begin_layout Plain Layout
23124 \begin_layout Plain Layout
23133 \begin_layout Plain Layout
23137 arrayrulecolor{yellow}
23141 arrayrulecolor{black}}
23147 \begin_inset Note Note
23150 \begin_layout Plain Layout
23151 color partial horizontal, dashed lines yellow
23159 \begin_layout Standard
23160 \begin_inset Float table
23166 \begin_layout Plain Layout
23167 \begin_inset Caption Standard
23169 \begin_layout Plain Layout
23170 \begin_inset CommandInset label
23172 name "tab:Colored-table-with"
23176 Colored table with dashed lines
23184 \begin_layout Plain Layout
23186 \begin_inset Tabular
23187 <lyxtabular version="3" rows="5" columns="5">
23188 <features tabularvalignment="middle">
23189 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23190 <column alignment="center" valignment="top" width="0pt">
23191 <column alignment="center" valignment="top" width="0pt" special=":c">
23192 <column alignment="center" valignment="top">
23193 <column alignment="center" valignment="top">
23195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23198 \begin_layout Plain Layout
23204 <cell alignment="center" valignment="top" topline="true" usebox="none">
23207 \begin_layout Plain Layout
23213 <cell alignment="center" valignment="top" topline="true" usebox="none">
23216 \begin_layout Plain Layout
23222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23225 \begin_layout Plain Layout
23231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23234 \begin_layout Plain Layout
23242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23245 \begin_layout Plain Layout
23251 <cell alignment="center" valignment="top" topline="true" usebox="none">
23254 \begin_layout Plain Layout
23260 <cell alignment="center" valignment="top" topline="true" usebox="none">
23263 \begin_layout Plain Layout
23269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23272 \begin_layout Plain Layout
23278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23281 \begin_layout Plain Layout
23289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23292 \begin_layout Plain Layout
23296 \begin_layout Plain Layout
23309 \begin_layout Plain Layout
23323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23326 \begin_layout Plain Layout
23332 <cell alignment="center" valignment="top" usebox="none">
23335 \begin_layout Plain Layout
23341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23344 \begin_layout Plain Layout
23350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23353 \begin_layout Plain Layout
23361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23364 \begin_layout Plain Layout
23368 \begin_layout Plain Layout
23382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23385 \begin_layout Plain Layout
23391 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23394 \begin_layout Plain Layout
23400 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23403 \begin_layout Plain Layout
23409 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23412 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23423 \begin_layout Plain Layout
23429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23432 \begin_layout Plain Layout
23438 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23441 \begin_layout Plain Layout
23447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23450 \begin_layout Plain Layout
23456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23459 \begin_layout Plain Layout
23463 \begin_layout Plain Layout
23490 \begin_layout Standard
23494 \begin_layout Plain Layout
23508 \begin_inset Note Note
23511 \begin_layout Plain Layout
23520 \begin_layout Standard
23524 \begin_layout Plain Layout
23538 \begin_inset Note Note
23541 \begin_layout Plain Layout
23550 \begin_layout Standard
23554 \begin_layout Plain Layout
23564 \begin_inset Note Note
23567 \begin_layout Plain Layout
23576 \begin_layout Standard
23580 \begin_layout Plain Layout
23586 arrayrulewidth}{0.4pt}
23592 \begin_inset Note Note
23595 \begin_layout Plain Layout
23604 \begin_layout Standard
23605 The coloring of lines, columns and lines works as decribed in section
23606 \begin_inset space ~
23610 \begin_inset CommandInset ref
23612 reference "sec:Colored-Tables"
23617 Coloring horizontal lines works analogically as described there as well,
23618 one only needs to replace in the commands
23642 ; so one uses the command
23645 \begin_layout Standard
23655 \begin_inset Newline newline
23663 \begin_inset Newline newline
23667 \begin_inset Phantom HPhantom
23670 \begin_layout Plain Layout
23671 \begin_inset space ~
23681 arrayrulecolor{red}
23685 arrayrulecolor{black}}
23688 \begin_layout Standard
23698 \begin_layout Standard
23708 \begin_inset Newline newline
23716 \begin_inset Newline newline
23720 \begin_inset Phantom HPhantom
23723 \begin_layout Plain Layout
23724 \begin_inset space ~
23734 arrayrulecolor{red}
23738 arrayrulecolor{black}}
23741 \begin_layout Standard
23742 To get back the black line color, one needs to insert the following commands
23743 as \SpecialChar TeX
23744 Code behind the table:
23747 \begin_layout Standard
23755 \begin_layout Standard
23767 \begin_layout Standard
23775 \begin_layout Standard
23787 \begin_layout Standard
23788 To color the gaps between the dashes the command
23791 \begin_layout Standard
23796 dashgapcolor{color}
23799 \begin_layout Standard
23800 can be used in front of a table as \SpecialChar TeX
23802 color is hereby the name of a defined color.
23806 \begin_layout Standard
23814 \begin_layout Standard
23815 unsets the changes made by
23824 \begin_layout Standard
23825 \begin_inset Note Greyedout
23828 \begin_layout Plain Layout
23834 : If there are multiple commands in a cell, the command of
23838 needs to be the first one in the cell.
23844 \begin_inset space ~
23848 \begin_inset CommandInset ref
23850 reference "tab:Colored-table-with"
23874 \begin_layout Standard
23875 \begin_inset Note Greyedout
23878 \begin_layout Plain Layout
23884 The \SpecialChar LaTeX
23889 must be loaded in the document preamble before the \SpecialChar LaTeX
23895 \begin_inset Index idx
23898 \begin_layout Plain Layout
23900 -packages ! colortbl
23913 \begin_layout Standard
23917 \begin_layout Plain Layout
23927 \begin_inset Note Note
23930 \begin_layout Plain Layout
23931 The following will be displayed when the \SpecialChar LaTeX
23944 \begin_layout Standard
23945 You need to install the package
23949 to see the content of this section in the output.
23952 \begin_layout Standard
23956 \begin_layout Plain Layout
23968 \begin_layout Standard
23969 For more information about dashed lines see the documentation of
23974 \begin_inset CommandInset citation
23983 \begin_layout Chapter
23985 \begin_inset CommandInset label
23992 \begin_inset Index idx
23995 \begin_layout Plain Layout
24004 \begin_layout Section
24006 \begin_inset CommandInset label
24008 name "sec:FloatIntroduction"
24013 \begin_inset Index idx
24016 \begin_layout Plain Layout
24017 Floats ! Introduction
24025 \begin_layout Standard
24026 A float is a block of text associated with some sort of label, which doesn't
24027 have a fixed location.
24029 \begin_inset Quotes eld
24033 \begin_inset Quotes erd
24036 forward or backward a page or two, to wherever it fits best.
24044 \begin_inset space ~
24049 are also floats because they can float to the next page when there are
24050 too many notes on the page.
24053 \begin_layout Standard
24054 Floats allow a high quality layout.
24055 Images and tables can be spread evenly among the pages to avoid white space
24056 and pages without text.
24057 As the floating often destroys the context between the text and the image/table
24058 , every float can be referenced in the text.
24059 Floats are therefore numbered.
24060 Referencing is described in section
24061 \begin_inset space ~
24065 \begin_inset CommandInset ref
24067 reference "sec:Referencing-Floats"
24074 \begin_layout Standard
24075 To insert a float, use the menu
24077 Insert\SpecialChar menuseparator
24083 arg "float-insert figure"
24089 arg "float-insert table"
24097 inset, a box with a label.
24098 The label will automatically be translated to the document language in
24100 After the label you can insert the caption text.
24101 The image or table is inserted above or below the caption in a separate
24102 paragraph within the float.
24103 More about the caption placement is contained in section
24104 \begin_inset space ~
24108 \begin_inset CommandInset ref
24110 reference "sec:Caption-Placement"
24115 To keep your \SpecialChar LyX
24116 document readable, you can open and close the float box by
24117 left-clicking on the box label.
24118 A closed float box looks like this:
24119 \begin_inset Graphics
24120 filename clipart/float.png
24122 scaleBeforeRotation
24126 – a gray button with a red label.
24129 \begin_layout Standard
24130 It is recommended that you insert floats as separate standard paragraphs
24131 to avoid possible \SpecialChar LaTeX
24132 -errors that can occur when the surrounding text is specially
24136 \begin_layout Standard
24137 Existing figures or tables can be put into a float by highlighting them
24138 and then pressing the corresponding toolbar button for a new float.
24141 \begin_layout Section
24145 \begin_layout Standard
24146 Besides figure and table floats that are described in sections
24147 \begin_inset space ~
24151 \begin_inset CommandInset ref
24153 reference "sec:Figure-Floats"
24158 \begin_inset CommandInset ref
24160 reference "sec:Table-Floats"
24164 respectively, \SpecialChar LyX
24165 offers the float types
24174 The latter are explained in sec.
24175 \begin_inset space \thinspace{}
24179 \begin_inset CommandInset ref
24181 reference "sec:Wrap-Floats"
24188 \begin_layout Subsection
24190 \begin_inset Index idx
24193 \begin_layout Plain Layout
24194 Floats ! Algorithms
24202 \begin_layout Standard
24203 \begin_inset Float algorithm
24209 \begin_layout Plain Layout
24210 \begin_inset Caption Standard
24212 \begin_layout Plain Layout
24213 \begin_inset CommandInset label
24215 name "alg:Example-Algorithm-float"
24219 Example Algorithm float
24227 \begin_layout LyX-Code
24229 \begin_inset Newline newline
24232 Sum:= Sum + A(I); /*comment*/
24233 \begin_inset Newline newline
24237 \begin_inset VSpace -4mm
24248 \begin_layout Standard
24249 This float type is inserted with the menu
24251 Insert\SpecialChar menuseparator
24252 Float\SpecialChar menuseparator
24256 It is used for program codes and descriptions of algorithms and can be
24257 seen as an alternative to program code listings that are explained in chapter
24258 \begin_inset space ~
24262 \begin_inset CommandInset ref
24264 reference "cha:Program-Code-Listings"
24269 A possible environment for algorithms is the
24274 , described in \SpecialChar LyX
24281 \begin_inset space ~
24285 \begin_inset CommandInset ref
24287 reference "alg:Example-Algorithm-float"
24291 is an example of an algorithm float where -4
24292 \begin_inset space \thinspace{}
24295 mm vertical space was added at the end of the float to have the bottom rule
24296 exactly below the last text line.
24299 \begin_layout Standard
24300 The float label is not automatically translated into the document language.
24301 If your document is not in English, you have to do this manually by adding
24302 the following line to the document preamble
24307 \begin_layout Standard
24312 floatname{algorithm}{your
24313 \begin_inset space ~
24319 \begin_layout Standard
24323 \begin_inset space ~
24329 \begin_inset Quotes eld
24337 \begin_inset Quotes erd
24343 \begin_layout Standard
24344 To insert the list of algorithms you can use the menu
24346 Insert\SpecialChar menuseparator
24348 \begin_inset space \thinspace{}
24352 \begin_inset space \thinspace{}
24355 TOC\SpecialChar menuseparator
24358 when your document has the same language as \SpecialChar LyX
24360 In other cases use this command in \SpecialChar TeX
24364 \begin_layout Standard
24369 listof{algorithm}{your
24370 \begin_inset space ~
24376 \begin_layout Standard
24380 \begin_inset space ~
24386 \begin_inset Quotes eld
24394 \begin_inset Quotes erd
24400 \begin_layout Standard
24401 Algorithm floats are not by default numbered in the scheme
24402 \begin_inset Quotes eld
24406 \begin_inset Quotes erd
24409 as is the case for table and figure floats in many document-classes.
24410 To number algorithm floats in the same scheme, add this command to your
24414 \begin_layout Standard
24419 numberwithin{algorithm}{chapter}
24422 \begin_layout Standard
24423 To be able to use the command
24432 \begin_inset space ~
24437 in the document settings the option
24440 \begin_inset space ~
24444 \begin_inset space ~
24448 \begin_inset space ~
24456 \begin_layout Section
24458 \begin_inset Index idx
24461 \begin_layout Plain Layout
24470 \begin_layout Standard
24471 Floats are usually numbered either independently from the sections the floats
24472 are in, or in the scheme
24473 \begin_inset Quotes eld
24477 \begin_inset Quotes erd
24481 \begin_inset Quotes eld
24485 \begin_inset Quotes erd
24489 This depends on the document class used.
24492 \begin_layout Standard
24493 To change section-independent numbering, you can use this command in the
24497 \begin_layout Standard
24509 \begin_layout Standard
24516 is the command that prints the table number.
24517 For figure floats, the command would be
24530 in the command above prints the table number as a small roman number.
24533 \begin_layout Standard
24534 To change the numbering scheme for example to
24535 \begin_inset Quotes eld
24539 \begin_inset Quotes erd
24542 , use this command in the preamble:
24545 \begin_layout Standard
24550 numberwithin{table}{subsection}
24553 \begin_layout Standard
24554 To be able to use the command
24563 \begin_inset space ~
24568 in the document settings the option
24571 \begin_inset space ~
24575 \begin_inset space ~
24579 \begin_inset space ~
24587 \begin_layout Standard
24588 Please also have a look at section
24589 \begin_inset space ~
24593 \begin_inset CommandInset ref
24595 reference "subsec:Footnote-Numbering"
24599 for the details and important notes about the numbering commands.
24602 \begin_layout Section
24604 \begin_inset CommandInset label
24606 name "sec:Referencing-Floats"
24611 \begin_inset Index idx
24614 \begin_layout Plain Layout
24615 Floats ! References
24621 \begin_inset Index idx
24624 \begin_layout Plain Layout
24625 References ! to Floats
24633 \begin_layout Standard
24634 To reference a float, insert a label into its caption using the menu
24636 Insert\SpecialChar menuseparator
24639 or the toolbar button
24646 A grey label box like this one:
24647 \begin_inset Graphics
24648 filename clipart/label.png
24649 scaleBeforeRotation
24653 will be inserted and the label window pops up asking for the label text.
24655 offers as text the first words of the caption with a prefix.
24656 The prefix depends on the float type, e.
24657 \begin_inset space \thinspace{}
24661 \begin_inset space \space{}
24664 for figure floats the prefix will be "
24671 \begin_layout Standard
24672 The label is used as anchor and name for the reference.
24673 You can refer to the label using the menu
24675 Insert\SpecialChar menuseparator
24678 or the toolbar button
24681 arg "dialog-show-new-inset ref"
24685 The cross-reference window appears showing all labels of the document.
24686 If you have multiple \SpecialChar LyX
24687 documents opened, choose the one you are working
24688 on from the drop-list at the top of the dialog.
24689 You can now sort the labels alphabetically and then choose one.
24690 A grey cross-reference box like this one:
24691 \begin_inset Graphics
24692 filename clipart/reference.png
24693 scaleBeforeRotation
24698 At the position of the cross-reference box the float number will appear
24702 \begin_layout Standard
24703 It is recommended that you use a protected space between the cross-reference
24704 name and its number to avoid line breaks between them.
24705 If a cross-reference refers to a non-existing label, you will see two question
24706 marks in the output instead of the reference.
24709 \begin_layout Standard
24710 You can change labels at any time by clicking on the label box.
24711 References to the changed label will automatically update their links to
24712 the new label text.
24715 \begin_layout Standard
24719 \begin_inset space ~
24723 \begin_inset space ~
24728 in the cross-reference window sets the cursor before the referred label.
24729 The button text changes then to Go
24730 \begin_inset space ~
24733 Back and you can use it to set the cursor back to the cross-reference.
24736 \begin_layout Subsection
24737 Cross-Reference Formats
24738 \begin_inset CommandInset label
24740 name "subsec:Cross-Reference-Formats"
24745 \begin_inset Index idx
24748 \begin_layout Plain Layout
24749 References ! Formats
24757 \begin_layout Standard
24758 There are six varieties of cross-references:
24761 \begin_layout Description
24762 <reference>: prints the float number, this is the default:
24763 \begin_inset CommandInset ref
24765 reference "fig:Two-distorted-images"
24772 \begin_layout Description
24773 (<reference>): prints the float number within two parentheses, this is the
24774 style normally used to reference formulas, especially when the reference
24776 \begin_inset Quotes eld
24780 \begin_inset Quotes erd
24784 \begin_inset CommandInset ref
24793 \begin_layout Description
24794 <page>: prints the page number: Page
24795 \begin_inset space ~
24799 \begin_inset CommandInset ref
24800 LatexCommand pageref
24801 reference "fig:Two-distorted-images"
24808 \begin_layout Description
24810 \begin_inset space ~
24814 \begin_inset space ~
24817 <page>: prints the text "on page" and the page number:
24818 \begin_inset CommandInset ref
24819 LatexCommand vpageref
24820 reference "fig:Two-distorted-images"
24827 \begin_layout Description
24829 \begin_inset space ~
24833 \begin_inset space ~
24837 \begin_inset space ~
24840 <page>: prints the float number, the text "on page", and the page number:
24842 \begin_inset CommandInset ref
24844 reference "fig:Two-distorted-images"
24851 \begin_layout Description
24853 \begin_inset space ~
24856 reference: prints a self-defined cross-reference format.
24857 \begin_inset Newline newline
24861 \begin_inset Note Greyedout
24864 \begin_layout Plain Layout
24869 This feature is only available when you have the \SpecialChar LaTeX
24879 \begin_inset Index idx
24882 \begin_layout Plain Layout
24884 -packages ! prettyref
24890 \begin_inset Index idx
24893 \begin_layout Plain Layout
24895 -packages ! refstyle
24906 \begin_inset Newline newline
24909 You can select which \SpecialChar LaTeX
24910 -package should be used for this feature by setting
24913 Use refstyle (not prettyref) for cross-references
24917 Document\SpecialChar menuseparator
24918 Settings\SpecialChar menuseparator
24922 The format is specified by adding the command
24934 (refstyle) to the preamble of the document.
24935 For example redefining all references to figures (which have the label
24937 \begin_inset Quotes eld
24945 \begin_inset Quotes erd
24948 ) can be done with this command
24949 \begin_inset Newline newline
24956 newref{fig}{refcmd={Image on page
24961 \begin_inset Newline newline
24964 For more information about the format, have a look at the package documentations
24966 \begin_inset CommandInset citation
24968 key "prettyref,refstyle"
24975 \begin_layout Description
24977 \begin_inset space ~
24980 reference: prints the caption of the reference:
24981 \begin_inset CommandInset ref
24982 LatexCommand nameref
24983 reference "fig:Two-distorted-images"
24990 \begin_layout Standard
24995 will not print the page number if the label is on the previous, the same,
24998 \begin_inset space \thinspace{}
25002 \begin_inset space \space{}
25006 \begin_inset Quotes eld
25014 \begin_inset Quotes erd
25020 <reference> on page <page>
25022 will not print anything about the page if the label is on the same page.
25025 \begin_layout Standard
25026 The number and current page of the part of the document referred to in the
25027 output is automatically calculated by \SpecialChar LaTeX
25029 The varieties are adjusted in the field
25033 of the cross-reference window that appears when you click on the cross-referenc
25037 \begin_layout Standard
25038 \begin_inset Note Greyedout
25041 \begin_layout Plain Layout
25046 It is recommended to use the \SpecialChar LaTeX
25052 \begin_inset Index idx
25055 \begin_layout Plain Layout
25057 -packages ! refstyle
25067 \begin_inset Index idx
25070 \begin_layout Plain Layout
25072 -packages ! prettyref
25077 does not know all of \SpecialChar LyX
25078 's possible label shortcuts
25082 \begin_layout Plain Layout
25083 \begin_inset Quotes eld
25087 \begin_inset Quotes erd
25090 is for example \SpecialChar LyX
25091 's shortcut for labels in figure captions.
25096 and is not internationalized.
25104 \begin_layout Subsection
25105 Automatic Reference Naming
25106 \begin_inset Index idx
25109 \begin_layout Plain Layout
25110 References ! Automatic Reference Naming
25118 \begin_layout Standard
25119 The \SpecialChar LaTeX
25125 \begin_inset Index idx
25128 \begin_layout Plain Layout
25130 -packages ! hyperref
25135 , that is enabled in the
25143 dialog, provides a very useful feature that cross-references automatically
25144 include the name of the referenced floats (or text parts like
25149 So you will save having to write e.
25150 \begin_inset space \thinspace{}
25154 \begin_inset space \space{}
25158 \begin_inset Quotes eld
25162 \begin_inset Quotes erd
25165 before every reference to a figure.
25166 To use this feature, enable
25170 and insert this line to the \SpecialChar LaTeX
25174 \begin_layout Standard
25190 \begin_layout Standard
25191 When you prefer other reference names than the default ones, for example
25192 you want instead of
25193 \begin_inset Quotes eld
25197 \begin_inset Quotes erd
25201 \begin_inset Quotes eld
25205 \begin_inset space \thinspace{}
25209 \begin_inset Quotes eld
25212 , you can redefine the name by inserting this in the preamble:
25215 \begin_layout Standard
25226 sectionautorefname}
25227 \begin_inset Newline newline
25231 \begin_inset Phantom HPhantom
25234 \begin_layout Plain Layout
25237 \begin_inset space ~
25250 \begin_layout Standard
25251 When you are using another document language than English, replace
25252 \begin_inset Newline newline
25267 , where *** is the name of the language used.
25270 \begin_layout Standard
25271 To get automatic names, but not for certain reference types, for example
25272 not for equations, use this preamble code:
25275 \begin_layout Standard
25286 equationautorefname}[1]{}}
25289 \begin_layout Standard
25290 More about this topic can be found in
25295 \begin_inset CommandInset citation
25304 \begin_layout Standard
25305 \begin_inset Note Greyedout
25308 \begin_layout Plain Layout
25313 Automatic reference naming cannot be used when you use cross-references
25317 \begin_inset space ~
25322 style, as described in section
25323 \begin_inset space ~
25327 \begin_inset CommandInset ref
25329 reference "subsec:Cross-Reference-Formats"
25341 \begin_layout Standard
25346 manual is an example where automatic reference naming is used.
25349 \begin_layout Subsection
25351 \begin_inset CommandInset label
25353 name "subsec:Reference-Position"
25358 \begin_inset Index idx
25361 \begin_layout Plain Layout
25362 References ! Reference Position
25370 \begin_layout Standard
25376 \begin_inset Index idx
25379 \begin_layout Plain Layout
25381 -packages ! hyperref
25394 dialog to link cross-references in the output, you will see that clicking
25395 on an image float reference jumps to the image label.
25396 The caption will be the first text part on the screen, so that you cannot
25397 see the image without scrolling.
25398 This is because the reference link anchor is placed at the position of
25400 With the use of the package
25405 \begin_inset Index idx
25408 \begin_layout Plain Layout
25415 , which is part of the \SpecialChar LaTeX
25421 \begin_inset Index idx
25424 \begin_layout Plain Layout
25426 -packages ! oberdiek
25431 , the link anchor is placed at the beginning of a float.
25432 To use this feature for figure floats, load
25436 in the document preamble with the line
25439 \begin_layout Standard
25444 usepackage[figure]{hypcap}
25447 \begin_layout Standard
25452 for all float types but this is not recommended for stability reasons.
25453 For more information, have a look at
25458 \begin_inset CommandInset citation
25467 \begin_layout Standard
25468 \begin_inset Note Greyedout
25471 \begin_layout Plain Layout
25480 has no effect on references to subfigures.
25488 \begin_layout Section
25490 \begin_inset CommandInset label
25492 name "sec:Float-Placement"
25497 \begin_inset Index idx
25500 \begin_layout Plain Layout
25509 \begin_layout Standard
25510 Right-clicking on a float-box and clicking on
25514 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25516 positioning the float.
25517 \begin_inset Newline newline
25523 \begin_inset space ~
25528 is only useful for two-column documents: If you select it, the float will
25529 span both columns on the page instead of being confined to just one.
25530 \begin_inset Newline newline
25536 \begin_inset space ~
25541 is used to rotate floats, see section
25542 \begin_inset CommandInset ref
25544 reference "sec:Rotated-Floats"
25551 \begin_layout Standard
25552 You can use one or more of the following options in the float dialog to
25553 set the placement for a particular float when you uncheck the option
25556 \begin_inset space ~
25560 \begin_inset space ~
25568 \begin_layout Description
25570 \begin_inset space ~
25574 \begin_inset space ~
25577 possible try to place the float on the position where it has been inserted
25580 \begin_layout Description
25582 \begin_inset space ~
25586 \begin_inset space ~
25589 page try to place the float at the top of the current page
25592 \begin_layout Description
25594 \begin_inset space ~
25598 \begin_inset space ~
25601 page try to place the float at the bottom of the current page
25604 \begin_layout Description
25606 \begin_inset space ~
25610 \begin_inset space ~
25613 floats try to place the float on its own page
25616 \begin_layout Standard
25617 The order of the above option is
25621 used by \SpecialChar LaTeX
25623 That means, if you use the default placement, \SpecialChar LaTeX
25627 \begin_inset space ~
25631 \begin_inset space ~
25639 \begin_inset space ~
25643 \begin_inset space ~
25648 , and then the others.
25649 If you do not use the default, \SpecialChar LaTeX
25650 will try only the checked options but in
25653 \begin_inset space ~
25656 placements is possible the procedure is internally repeated trying to put
25657 the float on the following page.
25660 \begin_layout Standard
25661 By default, each option has its own rules:
25664 \begin_layout Labeling
25665 \labelwidthstring 00.00.0000
25669 \begin_inset space ~
25673 \begin_inset space ~
25678 only floats occupying less than 70
25679 \begin_inset space \thinspace{}
25682 % of the page can be placed at the top of a page (
25691 \begin_layout Labeling
25692 \labelwidthstring 00.00.0000
25696 \begin_inset space ~
25700 \begin_inset space ~
25705 : only floats occupying less than 30
25706 \begin_inset space \thinspace{}
25709 % of the page can be placed at the bottom of a page.
25719 \begin_layout Labeling
25720 \labelwidthstring 00.00.0000
25724 \begin_inset space ~
25728 \begin_inset space ~
25733 : only if more than 50
25734 \begin_inset space \thinspace{}
25737 % of the page is occupied by floats, several floats can be set together
25748 \begin_layout Standard
25749 If you don't like these rules, you can ignore them by using the additional
25753 \begin_inset space ~
25758 \begin_inset space ~
25764 \begin_inset Newline newline
25767 You can also redefine the rules with \SpecialChar LaTeX
25768 -commands that are given in parentheses
25769 after the rules description above.
25770 To increase for example the often too small default of the bottom-rule
25772 \begin_inset space \thinspace{}
25775 % of the page, add this line to your document preamble:
25778 \begin_layout Standard
25785 bottomfraction}{0.5}
25788 \begin_layout Standard
25789 Sometimes you might need, under all circumstances, a float to be placed
25790 exactly at the position where it is inserted.
25791 For this case you can use the option
25794 \begin_inset space ~
25800 Use this option very rarely and only if the document is almost ready to
25801 be printed, because the float is then no longer able to
25802 \begin_inset Quotes eld
25806 \begin_inset Quotes erd
25809 when you change your document and this will often destroy the page layout.
25812 \begin_layout Standard
25813 There are no placement options for text wrap floats, because they are always
25814 surrounded by the text of a certain paragraph.
25815 \begin_inset VSpace bigskip
25821 \begin_layout Standard
25822 Sometimes you have the problem that a float is placed at the top of a page
25823 while its corresponding section starts at the middle of the page, so that
25824 the reader could think the float is part of the previous section.
25825 To avoid this the \SpecialChar LaTeX
25833 It suppresses a given float placement for the page where it is inserted
25834 and can therefore be used to avoid floats being set before a section starts.
25835 To get this, add these commands to your document preamble:
25838 \begin_layout Standard
25848 \begin_inset Newline newline
25862 \begin_layout Standard
25863 You can define the same for all section headings, like chapters and subsections.
25864 This definition is not recommended to be used for small text parts like
25865 subsubsections because \SpecialChar LaTeX
25866 may then have problems finding a suitable placement.
25869 \begin_layout Standard
25870 \begin_inset VSpace bigskip
25873 In some cases it is required to have all figures/tables at the end of the
25875 For this purpose the \SpecialChar LaTeX
25881 \begin_inset Index idx
25884 \begin_layout Plain Layout
25886 -packages ! endfloat
25892 It puts all figure and table floats at the end of the document into their
25894 At the original float position a text hint like
25895 \begin_inset Quotes eld
25901 \begin_inset space ~
25907 \begin_inset Quotes erd
25911 The endfloat-package is loaded in the preamble with the line
25914 \begin_layout Standard
25919 usepackage[options]{endfloat}
25922 \begin_layout Standard
25923 There are various package options to format the created figure/table sections.
25924 For more information we refer you to the
25929 \begin_inset CommandInset citation
25936 \begin_inset Newline newline
25940 \begin_inset Note Greyedout
25943 \begin_layout Plain Layout
25948 doesn't provide an automatic translation for the text hint, you have to
25949 do this manually, see section
25950 \begin_inset space ~
25954 \begin_inset CommandInset citation
25966 \begin_inset Newline newline
25970 \begin_inset Note Greyedout
25973 \begin_layout Plain Layout
25978 There is currently a bug in
25982 when the caption contains a German
25983 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25991 Use in this case the command
25992 \begin_inset Quotes eld
26002 \begin_inset Quotes erd
26005 in \SpecialChar TeX
26007 \begin_inset Quotes eld
26011 \begin_inset Quotes erd
26022 \begin_layout Standard
26023 \begin_inset VSpace bigskip
26026 For more details about float placements, have a look at \SpecialChar LaTeX
26028 \begin_inset CommandInset citation
26030 key "latexcompanion,latexguide,latexbook"
26037 \begin_layout Section
26039 \begin_inset CommandInset label
26041 name "sec:Rotated-Floats"
26046 \begin_inset Index idx
26049 \begin_layout Plain Layout
26058 \begin_layout Standard
26059 Especially for wide tables you might have floats rotated.
26060 To rotate a whole float including the caption, right-click on the float-box
26064 \begin_inset space ~
26072 \begin_layout Standard
26073 Rotated floats are always placed on a page of their own (or column of their
26074 own; in case you have a multi-column document).
26075 You can let them span several columns using the float settings option
26078 \begin_inset space ~
26084 Floats are rotated so that you can read them from the outside margin.
26085 To force a certain rotation direction for all pages, you can add either
26094 to the document class options.
26097 \begin_layout Standard
26098 Referencing rotated floats is the same as for normal floats, the caption
26099 format is also the same: Table
26100 \begin_inset space ~
26104 \begin_inset CommandInset ref
26106 reference "tab:Rotated-table"
26110 is an example of a rotated table float.
26113 \begin_layout Standard
26114 \begin_inset Note Greyedout
26117 \begin_layout Plain Layout
26122 Not all DVI-viewers are able to display rotated floats.
26130 \begin_layout Standard
26131 \begin_inset Float table
26136 \begin_layout Plain Layout
26137 \begin_inset Caption Standard
26139 \begin_layout Plain Layout
26140 \begin_inset CommandInset label
26142 name "tab:Rotated-table"
26154 \begin_layout Plain Layout
26156 \begin_inset Tabular
26157 <lyxtabular version="3" rows="1" columns="5">
26158 <features tabularvalignment="middle">
26159 <column alignment="center" valignment="top">
26160 <column alignment="center" valignment="top">
26161 <column alignment="center" valignment="top">
26162 <column alignment="center" valignment="top">
26163 <column alignment="center" valignment="top">
26165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26168 \begin_layout Plain Layout
26174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26177 \begin_layout Plain Layout
26183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26186 \begin_layout Plain Layout
26192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26195 \begin_layout Plain Layout
26201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26204 \begin_layout Plain Layout
26223 \begin_layout Section
26225 \begin_inset Index idx
26228 \begin_layout Plain Layout
26237 \begin_layout Standard
26238 Subfloats are for example used when a figure consists of several images.
26239 They are created by inserting a float into an existing float.
26240 The placement of the subfloats can be controlled in the same way as for
26241 paragraphs as shown in table
26242 \begin_inset space ~
26246 \begin_inset CommandInset ref
26248 reference "tab:Two-subtables-side"
26253 \begin_inset CommandInset ref
26255 reference "tab:Two-subtables-upon"
26262 \begin_layout Standard
26263 Referencing subfloats works as for normal floats: Table
26264 \begin_inset space ~
26268 \begin_inset CommandInset ref
26270 reference "tab:This-is-subtable-a"
26275 \begin_inset CommandInset ref
26277 reference "tab:This-is-subtable-b"
26281 are subtables of table
26282 \begin_inset space ~
26286 \begin_inset CommandInset ref
26288 reference "tab:Two-subtables-side"
26295 \begin_layout Standard
26296 \begin_inset Float table
26301 \begin_layout Plain Layout
26302 \begin_inset Caption Standard
26304 \begin_layout Plain Layout
26305 \begin_inset CommandInset label
26307 name "tab:Two-subtables-side"
26311 Two subtables placed side by side.
26319 \begin_layout Plain Layout
26321 \begin_inset space \hfill{}
26325 \begin_inset Float table
26330 \begin_layout Plain Layout
26331 \begin_inset Caption Standard
26333 \begin_layout Plain Layout
26334 \begin_inset CommandInset label
26336 name "tab:This-is-subtable-a"
26340 This is subtable a.
26348 \begin_layout Plain Layout
26350 \begin_inset Tabular
26351 <lyxtabular version="3" rows="1" columns="5">
26352 <features tabularvalignment="middle">
26353 <column alignment="center" valignment="top">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26357 <column alignment="center" valignment="top">
26359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26362 \begin_layout Plain Layout
26368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26371 \begin_layout Plain Layout
26377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26380 \begin_layout Plain Layout
26386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26389 \begin_layout Plain Layout
26395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26398 \begin_layout Plain Layout
26415 \begin_inset space \hfill{}
26419 \begin_inset Float table
26424 \begin_layout Plain Layout
26425 \begin_inset Caption Standard
26427 \begin_layout Plain Layout
26428 \begin_inset CommandInset label
26430 name "tab:This-is-subtable-b"
26434 This is subtable b.
26442 \begin_layout Plain Layout
26444 \begin_inset Tabular
26445 <lyxtabular version="3" rows="1" columns="5">
26446 <features tabularvalignment="middle">
26447 <column alignment="center" valignment="top">
26448 <column alignment="center" valignment="top">
26449 <column alignment="center" valignment="top">
26450 <column alignment="center" valignment="top">
26451 <column alignment="center" valignment="top">
26453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26456 \begin_layout Plain Layout
26462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26465 \begin_layout Plain Layout
26471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26474 \begin_layout Plain Layout
26480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26483 \begin_layout Plain Layout
26489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26492 \begin_layout Plain Layout
26509 \begin_inset space \hfill{}
26520 \begin_layout Standard
26521 \begin_inset Float table
26526 \begin_layout Plain Layout
26527 \begin_inset Caption Standard
26529 \begin_layout Plain Layout
26530 \begin_inset CommandInset label
26532 name "tab:Two-subtables-upon"
26536 Two subtables placed one above the other.
26537 (a) table with 4 cells, (b) table with 5 cells.
26545 \begin_layout Plain Layout
26547 \begin_inset Float table
26552 \begin_layout Plain Layout
26553 \begin_inset Caption Standard
26555 \begin_layout Plain Layout
26564 \begin_layout Plain Layout
26566 \begin_inset Tabular
26567 <lyxtabular version="3" rows="1" columns="4">
26568 <features tabularvalignment="middle">
26569 <column alignment="center" valignment="top">
26570 <column alignment="center" valignment="top">
26571 <column alignment="center" valignment="top">
26572 <column alignment="center" valignment="top">
26574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26577 \begin_layout Plain Layout
26583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26586 \begin_layout Plain Layout
26592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26595 \begin_layout Plain Layout
26601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26604 \begin_layout Plain Layout
26623 \begin_layout Plain Layout
26625 \begin_inset Float table
26630 \begin_layout Plain Layout
26631 \begin_inset Caption Standard
26633 \begin_layout Plain Layout
26642 \begin_layout Plain Layout
26644 \begin_inset Tabular
26645 <lyxtabular version="3" rows="1" columns="5">
26646 <features tabularvalignment="middle">
26647 <column alignment="center" valignment="top">
26648 <column alignment="center" valignment="top">
26649 <column alignment="center" valignment="top">
26650 <column alignment="center" valignment="top">
26651 <column alignment="center" valignment="top">
26653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26656 \begin_layout Plain Layout
26662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26665 \begin_layout Plain Layout
26671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26674 \begin_layout Plain Layout
26680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26683 \begin_layout Plain Layout
26689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26692 \begin_layout Plain Layout
26716 \begin_layout Section
26717 Floats Side by Side
26718 \begin_inset Index idx
26721 \begin_layout Plain Layout
26722 Floats ! Side by side
26730 \begin_layout Standard
26731 To place floats side by side, as in Figures
26732 \begin_inset space ~
26736 \begin_inset CommandInset ref
26738 reference "fig:Float-left"
26743 \begin_inset CommandInset ref
26745 reference "fig:Float-right"
26754 In it two minipage boxes are inserted.
26758 \begin_layout Plain Layout
26759 Minipages are explained in section
26760 \begin_inset space ~
26764 \begin_inset CommandInset ref
26766 reference "sec:Minipages"
26775 The width is set to 45
26776 \begin_inset space \thinspace{}
26780 \begin_inset space \thinspace{}
26783 column% and the box alignment to
26788 The minipage boxes contain the image and the caption in the same way as
26789 they are in a float.
26790 The only difference is that the image unit
26793 \begin_inset space ~
26797 \begin_inset space ~
26802 is now calculated according to the width of the minipage boxes.
26805 \begin_layout Standard
26806 \begin_inset Float figure
26811 \begin_layout Plain Layout
26812 \begin_inset Box Frameless
26822 height_special "totalheight"
26827 backgroundcolor "none"
26830 \begin_layout Plain Layout
26832 \begin_inset Graphics
26833 filename clipart/mobius.eps
26836 scaleBeforeRotation
26843 \begin_layout Plain Layout
26844 \begin_inset Caption Standard
26846 \begin_layout Plain Layout
26847 \begin_inset CommandInset label
26849 name "fig:Float-left"
26853 Float on the left side.
26864 \begin_inset space \hfill{}
26868 \begin_inset Box Frameless
26878 height_special "totalheight"
26883 backgroundcolor "none"
26886 \begin_layout Plain Layout
26888 \begin_inset Graphics
26889 filename clipart/platypus.eps
26892 scaleBeforeRotation
26899 \begin_layout Plain Layout
26900 \begin_inset Caption Standard
26902 \begin_layout Plain Layout
26903 \begin_inset CommandInset label
26905 name "fig:Float-right"
26909 Float on the right side.
26927 \begin_layout Standard
26928 An alternative and simpler solution is to use the module
26930 Variable-width Minipages
26933 \begin_inset space \thinspace{}
26937 \begin_inset CommandInset ref
26939 reference "sec:Minipages"
26944 Variable-width minipages adapt automatically to the width of the figures
26946 They do not require an explicit width to be given, and they improve the
26947 horizontal alignment of the figures.
26948 The LyX example file
26950 varwidth-floats-side-by-side
26952 gives examples of how to do this.
26955 \begin_layout Section
26957 \begin_inset Index idx
26960 \begin_layout Plain Layout
26961 Caption ! Formatting
26967 \begin_inset Index idx
26970 \begin_layout Plain Layout
26971 Floats ! Caption Formatting
26977 \begin_inset CommandInset label
26979 name "sec:Caption-Formatting"
26986 \begin_layout Standard
26991 environment is the default paragraph environment for
26996 On the \SpecialChar LyX
26997 screen captions appear as a label, e.
26998 \begin_inset space \thinspace{}
27002 \begin_inset space \space{}
27006 \begin_inset Quotes eld
27014 \begin_inset Quotes erd
27017 followed by the caption text.
27019 \begin_inset Quotes eld
27023 \begin_inset Quotes erd
27026 is the actual reference number.
27027 By default the label and the number are in the same font as the caption
27028 text and a colon follows the number to divide the label from the text.
27029 This caption format is suitable for many but not all documents.
27033 \begin_layout Standard
27034 To change the default caption format, load the \SpecialChar LaTeX
27040 \begin_inset Index idx
27043 \begin_layout Plain Layout
27045 -packages ! caption
27050 in the document preamble with this line:
27053 \begin_layout Standard
27058 usepackage[format definition]{caption}
27061 \begin_layout Standard
27062 To have for example the label and the number in sans-serif, bold font and
27063 the table captions always above the table as in this document, use the
27067 \begin_layout Standard
27072 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27075 \begin_layout Standard
27076 You can also define different caption formats for the different float types.
27077 In this case load the
27081 package without format specific options and define the different formats
27082 with the help of the command
27085 \begin_layout Standard
27090 captionsetup[float type]{format definition}
27093 \begin_layout Standard
27094 in the document preamble.
27095 For example the caption formats of Figure
27096 \begin_inset space ~
27100 \begin_inset CommandInset ref
27102 reference "fig:This-is-an-fig"
27107 \begin_inset space ~
27111 \begin_inset CommandInset ref
27113 reference "tab:This-is-an-tab"
27117 can be created using these commands in the document preamble:
27120 \begin_layout Standard
27125 usepackage[tableposition=top]{caption}
27128 \begin_inset Newline newline
27135 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27136 \begin_inset Newline newline
27140 \begin_inset Phantom HPhantom
27143 \begin_layout Plain Layout
27148 captionsetup[figure]{
27154 \begin_inset Newline newline
27159 captionsetup[table]{labelfont={bf,sf}}
27162 \begin_layout Standard
27163 \begin_inset Note Greyedout
27166 \begin_layout Plain Layout
27175 has no effect when a
27180 \begin_inset Index idx
27183 \begin_layout Plain Layout
27185 -packages ! KOMA-Script
27190 document class is used.
27191 In this case the document class option
27193 captions=tableheading
27203 \begin_layout Standard
27204 For more information about the package
27208 we refer to its documentation
27209 \begin_inset CommandInset citation
27218 \begin_layout Standard
27219 To change the label name from e.
27220 \begin_inset space \thinspace{}
27224 \begin_inset space \space{}
27228 \begin_inset Quotes eld
27232 \begin_inset Quotes erd
27236 \begin_inset Quotes eld
27240 \begin_inset Quotes erd
27243 use this preamble command:
27246 \begin_layout Standard
27253 fnum@figure}{Image~
27258 \begin_layout Standard
27265 inserts the figure number and
27268 \begin_inset Quotes eld
27274 \begin_inset Quotes erd
27277 creates a protected space.
27280 \begin_layout Standard
27281 \begin_inset VSpace bigskip
27289 \begin_inset Index idx
27292 \begin_layout Plain Layout
27294 -packages ! KOMA-Script
27301 article (KOMA-Script)
27309 letter (KOMA-Script)
27313 report (KOMA-Script)
27316 \begin_inset space \thinspace{}
27319 ), you can alternatively to the
27327 's built-in command
27334 For example, to have the caption label in bold, add this command to your
27338 \begin_layout Standard
27343 setkomafont{captionlabel}{
27348 \begin_layout Standard
27349 For more information about
27360 \begin_inset CommandInset citation
27369 \begin_layout Standard
27373 \begin_layout Plain Layout
27377 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27384 \begin_inset Note Note
27387 \begin_layout Plain Layout
27388 The caption format is changed only for this example.
27396 \begin_layout Standard
27397 \begin_inset Float figure
27403 \begin_layout Plain Layout
27405 \begin_inset Graphics
27406 filename clipart/mobius.eps
27409 scaleBeforeRotation
27416 \begin_layout Plain Layout
27417 \begin_inset Caption Standard
27419 \begin_layout Plain Layout
27420 \begin_inset CommandInset label
27422 name "fig:This-is-an-fig"
27426 This is an example figure caption that is longer than one line to show the
27427 different caption format.
27428 Here a self-defined caption format is used.
27441 \begin_layout Standard
27445 \begin_layout Plain Layout
27449 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27458 \begin_layout Standard
27459 \begin_inset Float table
27465 \begin_layout Plain Layout
27466 \begin_inset Caption Standard
27468 \begin_layout Plain Layout
27469 \begin_inset CommandInset label
27471 name "tab:This-is-an-tab"
27475 This is an example table caption that is longer than one line to show the
27476 different caption format.
27477 Here the standard caption format for tables in this document is used.
27485 \begin_layout Plain Layout
27487 \begin_inset Tabular
27488 <lyxtabular version="3" rows="1" columns="5">
27489 <features tabularvalignment="middle">
27490 <column alignment="center" valignment="top">
27491 <column alignment="center" valignment="top">
27492 <column alignment="center" valignment="top">
27493 <column alignment="center" valignment="top">
27494 <column alignment="center" valignment="top">
27496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27499 \begin_layout Plain Layout
27505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27508 \begin_layout Plain Layout
27514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27517 \begin_layout Plain Layout
27523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27526 \begin_layout Plain Layout
27532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27535 \begin_layout Plain Layout
27554 \begin_layout Section
27556 \begin_inset Index idx
27559 \begin_layout Plain Layout
27560 Caption ! Placement
27566 \begin_inset Index idx
27569 \begin_layout Plain Layout
27570 Floats ! Caption Placement
27576 \begin_inset CommandInset label
27578 name "sec:Caption-Placement"
27585 \begin_layout Standard
27586 The common caption placement rule is:
27589 \begin_layout Description
27590 Figure: Caption is set below the figure
27593 \begin_layout Description
27594 Table: Caption is set above the table
27597 \begin_layout Standard
27598 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27601 That means if you are using the document classes
27617 there will be no space between the caption and the table.
27618 To insert the necessary space, load the \SpecialChar LaTeX
27624 \begin_inset Index idx
27627 \begin_layout Plain Layout
27629 -packages ! caption
27634 in your document preamble with the option
27638 \begin_layout Plain Layout
27640 \begin_inset space ~
27644 \begin_inset CommandInset ref
27646 reference "sec:Caption-Formatting"
27650 for more information of the package
27662 \begin_layout Standard
27668 \begin_layout Standard
27674 \begin_inset Index idx
27677 \begin_layout Plain Layout
27679 -packages ! KOMA-Script
27686 article (KOMA-Script)
27694 letter (KOMA-Script)
27698 report (KOMA-Script)
27701 \begin_inset space \thinspace{}
27704 ), you can alternatively to the
27708 package set the document class option
27712 \begin_layout Plain Layout
27713 That option is used in this document.
27721 \begin_layout Standard
27724 captions=tableheading
27727 \begin_layout Standard
27728 In documents with a KOMA-Script document class you can also right-click
27729 on a caption and mark in the context menu if this should be a caption above
27730 or below the table/figure.
27731 This way you can override the document-wide caption placement for certain
27734 \begin_inset space ~
27738 \begin_inset CommandInset ref
27740 reference "tab:A-caption-marked"
27744 is an example where the caption is marked a being below the table while
27746 For comparison the caption in Table
27747 \begin_inset space ~
27751 \begin_inset CommandInset ref
27753 reference "tab:A-standard-table"
27760 \begin_layout Standard
27761 \begin_inset Float table
27766 \begin_layout Plain Layout
27767 \begin_inset Caption Below
27769 \begin_layout Plain Layout
27770 \begin_inset CommandInset label
27772 name "tab:A-caption-marked"
27776 A caption marked as being below the table.
27784 \begin_layout Plain Layout
27786 \begin_inset Tabular
27787 <lyxtabular version="3" rows="3" columns="3">
27788 <features tabularvalignment="middle">
27789 <column alignment="center" valignment="top" width="0pt">
27790 <column alignment="center" valignment="top" width="0pt">
27791 <column alignment="center" valignment="top" width="0pt">
27793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27796 \begin_layout Plain Layout
27802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27805 \begin_layout Plain Layout
27811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27814 \begin_layout Plain Layout
27822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27825 \begin_layout Plain Layout
27831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27834 \begin_layout Plain Layout
27840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27843 \begin_layout Plain Layout
27851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27854 \begin_layout Plain Layout
27855 \begin_inset Formula $\int x^{2}dx$
27863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27866 \begin_layout Plain Layout
27867 \begin_inset Formula $\left[\begin{array}{cc}
27870 \end{array}\right]$
27878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27881 \begin_layout Plain Layout
27882 \begin_inset Formula $1+1=2$
27903 \begin_layout Standard
27904 \begin_inset Float table
27909 \begin_layout Plain Layout
27910 \begin_inset Caption Standard
27912 \begin_layout Plain Layout
27913 \begin_inset CommandInset label
27915 name "tab:A-standard-table"
27919 A standard table caption.
27927 \begin_layout Plain Layout
27929 \begin_inset Tabular
27930 <lyxtabular version="3" rows="3" columns="3">
27931 <features tabularvalignment="middle">
27932 <column alignment="center" valignment="top" width="0pt">
27933 <column alignment="center" valignment="top" width="0pt">
27934 <column alignment="center" valignment="top" width="0pt">
27936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27939 \begin_layout Plain Layout
27945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27948 \begin_layout Plain Layout
27954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27957 \begin_layout Plain Layout
27965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27968 \begin_layout Plain Layout
27974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27977 \begin_layout Plain Layout
27983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27986 \begin_layout Plain Layout
27994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27997 \begin_layout Plain Layout
27998 \begin_inset Formula $\int x^{2}dx$
28006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28009 \begin_layout Plain Layout
28010 \begin_inset Formula $\left[\begin{array}{cc}
28013 \end{array}\right]$
28021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28024 \begin_layout Plain Layout
28025 \begin_inset Formula $1+1=2$
28046 \begin_layout Standard
28047 \begin_inset VSpace bigskip
28050 It is also possible to set the caption beside a figure or table.
28051 To get this the \SpecialChar LaTeX
28057 \begin_inset Index idx
28060 \begin_layout Plain Layout
28062 -packages ! sidecap
28067 has to be loaded in the document preamble with the line
28070 \begin_layout Standard
28075 usepackage[option]{sidecap}
28078 \begin_layout Standard
28079 If you set no option, the caption is placed on the side of the outer page
28080 margin – to the right on odd pages, to the left on even pages.
28081 You can change the placement to inner margin with the option
28086 To force the placement always to the right or left, use the option
28097 \begin_layout Standard
28101 \begin_layout Plain Layout
28111 \begin_inset Note Note
28114 \begin_layout Plain Layout
28115 The following section will only be displayed when the \SpecialChar LaTeX
28128 \begin_layout Standard
28129 To place in \SpecialChar LyX
28130 the caption of a float on the side, it is necessary to add
28131 these commands to the document preamble:
28134 \begin_layout Standard
28136 \begin_inset CommandInset line
28147 \begin_layout Standard
28154 TabBesBeg}[1][1.0]{%
28155 \begin_inset Newline newline
28159 \begin_inset Phantom HPhantom
28162 \begin_layout Plain Layout
28163 \begin_inset space ~
28178 \begin_inset Newline newline
28182 \begin_inset Phantom HPhantom
28185 \begin_layout Plain Layout
28188 \begin_inset space ~
28203 \begin_inset Newline newline
28207 \begin_inset Phantom HPhantom
28210 \begin_layout Plain Layout
28213 \begin_inset space ~
28223 renewenvironment{table}[1]{
28225 begin{SCtable}[#1]##1}{
28230 \begin_layout Standard
28238 \begin_inset Newline newline
28242 \begin_inset Phantom HPhantom
28245 \begin_layout Plain Layout
28246 \begin_inset space ~
28261 \begin_inset Newline newline
28265 \begin_inset Phantom HPhantom
28268 \begin_layout Plain Layout
28269 \begin_inset space ~
28286 \begin_layout Standard
28293 FigBesBeg}[1][1.0]{%
28294 \begin_inset Newline newline
28298 \begin_inset Phantom HPhantom
28301 \begin_layout Plain Layout
28302 \begin_inset space ~
28317 \begin_inset Newline newline
28321 \begin_inset Phantom HPhantom
28324 \begin_layout Plain Layout
28325 \begin_inset space ~
28340 \begin_inset Newline newline
28344 \begin_inset Phantom HPhantom
28347 \begin_layout Plain Layout
28348 \begin_inset space ~
28358 renewenvironment{figure}[1]{
28360 begin{SCfigure}[#1]##1}{
28365 \begin_layout Standard
28373 \begin_inset Newline newline
28377 \begin_inset Phantom HPhantom
28380 \begin_layout Plain Layout
28381 \begin_inset space ~
28396 \begin_inset Newline newline
28400 \begin_inset Phantom HPhantom
28403 \begin_layout Plain Layout
28404 \begin_inset space ~
28421 \begin_layout Standard
28423 \begin_inset CommandInset line
28434 \begin_layout Standard
28435 The commands allow you to redefine the floats so that the caption is set
28437 For figure floats use the command
28440 \begin_layout Standard
28448 \begin_layout Standard
28449 in \SpecialChar TeX
28450 Code before the float.
28451 And insert the command
28454 \begin_layout Standard
28462 \begin_layout Standard
28463 in \SpecialChar TeX
28464 Code at the point where you want to get back to the original float definitio
28468 \begin_layout Standard
28469 For table floats use the corresponding commands
28472 \begin_layout Standard
28486 \begin_layout Standard
28488 \begin_inset space ~
28492 \begin_inset CommandInset ref
28494 reference "fig:cap-beside-fig"
28499 \begin_inset space ~
28503 \begin_inset CommandInset ref
28505 reference "tab:cap-beside-tab"
28509 are examples where the caption is set beside.
28512 \begin_layout Standard
28513 You can see in the examples that the caption text appears at the top of
28514 the floats for table floats and at the bottom for figure floats.
28515 To change this, you can use the command
28518 \begin_layout Standard
28523 sidecaptionvpos{float type}{placement}
28526 \begin_layout Standard
28527 in the document preamble or in \SpecialChar TeX
28528 Code before the float.
28529 The float type is either
28537 , the placement can be
28538 \begin_inset Quotes eld
28546 \begin_inset Quotes erd
28550 \begin_inset Quotes eld
28558 \begin_inset Quotes erd
28562 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28574 To have for example the caption of figure floats vertically centered, use
28578 \begin_layout Standard
28583 sidecaptionvpos{figure}{c}
28586 \begin_layout Standard
28587 This was used for Figure
28588 \begin_inset space ~
28592 \begin_inset CommandInset ref
28594 reference "fig:cap-beside-fig-2"
28601 \begin_layout Standard
28602 \begin_inset VSpace medskip
28608 \begin_layout Standard
28609 The default caption width is the width of the image/table.
28610 For thin image/tables, like in Table
28611 \begin_inset space ~
28615 \begin_inset CommandInset ref
28617 reference "tab:cap-beside-tab"
28621 , this leads to captions that are too thin.
28622 You can increase the width by specifying a factor that will be multiplied
28623 with the image/table width to get the caption width.
28624 The caption width will automatically be recalculated in case it would protrude
28625 over the page or column margin due to the specified width.
28630 can either be given as optional argument for
28639 \begin_layout Standard
28647 \begin_layout Standard
28648 or in the definition of
28658 with another value.
28659 If you do the latter, your factor will be the default if
28665 is used without an argument.
28667 \begin_inset space ~
28671 \begin_inset CommandInset ref
28673 reference "tab:cap-beside-tab-wider"
28677 the factor 5 was used.
28680 \begin_layout Standard
28681 \begin_inset Note Greyedout
28684 \begin_layout Plain Layout
28689 For floats with captions set beside, you cannot use the float placement
28693 \begin_inset space ~
28698 because it is not supported by
28710 \begin_layout Standard
28711 \begin_inset VSpace medskip
28714 For more information about the package
28718 we refer to its documentation
28719 \begin_inset CommandInset citation
28728 \begin_layout Standard
28729 \begin_inset Note Greyedout
28732 \begin_layout Plain Layout
28737 The \SpecialChar LaTeX
28743 \begin_inset Index idx
28746 \begin_layout Plain Layout
28753 , described in section
28754 \begin_inset space ~
28758 \begin_inset CommandInset ref
28760 reference "subsec:Reference-Position"
28764 , has no effect on floats with the caption set beside.
28772 \begin_layout Standard
28776 \begin_layout Plain Layout
28788 \begin_layout Standard
28789 \begin_inset Float figure
28794 \begin_layout Plain Layout
28795 \begin_inset Graphics
28796 filename clipart/escher-lsd.eps
28798 scaleBeforeRotation
28805 \begin_layout Plain Layout
28806 \begin_inset Caption Standard
28808 \begin_layout Plain Layout
28809 \begin_inset CommandInset label
28811 name "fig:cap-beside-fig"
28815 This is a caption beside a figure.
28828 \begin_layout Standard
28832 \begin_layout Plain Layout
28844 \begin_layout Standard
28848 \begin_layout Plain Layout
28860 \begin_layout Standard
28861 \begin_inset Float table
28866 \begin_layout Plain Layout
28867 \begin_inset Caption Standard
28869 \begin_layout Plain Layout
28870 \begin_inset CommandInset label
28872 name "tab:cap-beside-tab"
28876 This is a caption beside a table.
28884 \begin_layout Plain Layout
28885 \begin_inset Tabular
28886 <lyxtabular version="3" rows="4" columns="5">
28887 <features tabularvalignment="middle">
28888 <column alignment="center" valignment="top">
28889 <column alignment="center" valignment="top">
28890 <column alignment="center" valignment="top">
28891 <column alignment="center" valignment="top">
28892 <column alignment="center" valignment="top">
28894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28897 \begin_layout Plain Layout
28903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28933 \begin_layout Plain Layout
28941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28944 \begin_layout Plain Layout
28950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28953 \begin_layout Plain Layout
28959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28962 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28971 \begin_layout Plain Layout
28977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Plain Layout
28988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28991 \begin_layout Plain Layout
28997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29000 \begin_layout Plain Layout
29006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29009 \begin_layout Plain Layout
29015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29018 \begin_layout Plain Layout
29024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29027 \begin_layout Plain Layout
29035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29038 \begin_layout Plain Layout
29044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29047 \begin_layout Plain Layout
29053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29056 \begin_layout Plain Layout
29062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29065 \begin_layout Plain Layout
29071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29074 \begin_layout Plain Layout
29093 \begin_layout Standard
29097 \begin_layout Plain Layout
29109 \begin_layout Standard
29113 \begin_layout Plain Layout
29126 \begin_layout Plain Layout
29130 sidecaptionvpos{figure}{c}
29136 \begin_inset Float figure
29141 \begin_layout Plain Layout
29142 \begin_inset Graphics
29143 filename clipart/escher-lsd.eps
29145 scaleBeforeRotation
29152 \begin_layout Plain Layout
29153 \begin_inset Caption Standard
29155 \begin_layout Plain Layout
29156 \begin_inset CommandInset label
29158 name "fig:cap-beside-fig-2"
29162 This is a vertically centered caption beside a figure.
29175 \begin_layout Standard
29179 \begin_layout Plain Layout
29191 \begin_layout Standard
29195 \begin_layout Plain Layout
29207 \begin_layout Standard
29208 \begin_inset Float table
29213 \begin_layout Plain Layout
29214 \begin_inset Caption Standard
29216 \begin_layout Plain Layout
29217 \begin_inset CommandInset label
29219 name "tab:cap-beside-tab-wider"
29223 This caption is wider than the one in Table
29224 \begin_inset space ~
29228 \begin_inset CommandInset ref
29230 reference "tab:cap-beside-tab"
29242 \begin_layout Plain Layout
29243 \begin_inset Tabular
29244 <lyxtabular version="3" rows="4" columns="5">
29245 <features tabularvalignment="middle">
29246 <column alignment="center" valignment="top">
29247 <column alignment="center" valignment="top">
29248 <column alignment="center" valignment="top">
29249 <column alignment="center" valignment="top">
29250 <column alignment="center" valignment="top">
29252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29255 \begin_layout Plain Layout
29261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29264 \begin_layout Plain Layout
29270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29273 \begin_layout Plain Layout
29279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29282 \begin_layout Plain Layout
29288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29291 \begin_layout Plain Layout
29299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29302 \begin_layout Plain Layout
29308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29311 \begin_layout Plain Layout
29317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29320 \begin_layout Plain Layout
29326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29329 \begin_layout Plain Layout
29335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29338 \begin_layout Plain Layout
29346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29349 \begin_layout Plain Layout
29355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29358 \begin_layout Plain Layout
29364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29367 \begin_layout Plain Layout
29373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29376 \begin_layout Plain Layout
29382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29385 \begin_layout Plain Layout
29393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29396 \begin_layout Plain Layout
29402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29405 \begin_layout Plain Layout
29411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29414 \begin_layout Plain Layout
29420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29423 \begin_layout Plain Layout
29429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29432 \begin_layout Plain Layout
29451 \begin_layout Standard
29455 \begin_layout Plain Layout
29467 \begin_layout Standard
29471 \begin_layout Plain Layout
29481 \begin_inset Note Note
29484 \begin_layout Plain Layout
29485 The following will be displayed when the \SpecialChar LaTeX
29498 \begin_layout Standard
29499 You need to install the \SpecialChar LaTeX
29504 to see the following part of this section in the output.
29507 \begin_layout Standard
29511 \begin_layout Plain Layout
29523 \begin_layout Section
29525 \begin_inset Index idx
29528 \begin_layout Plain Layout
29529 Floats ! Float Lists
29537 \begin_layout Standard
29538 Similar to the table of contents where the sections of the document are
29539 listed, there are listings for all float types, like the figures of the
29541 You can insert them via the
29543 Insert\SpecialChar menuseparator
29545 \begin_inset space ~
29549 \begin_inset space ~
29557 \begin_layout Standard
29558 The list entries are the float captions or its short title, the float number,
29559 and the page number where they appear in the document.
29562 \begin_layout Standard
29563 You can find the list of figures and tables at the end of this document.
29566 \begin_layout Chapter
29570 \begin_layout Section
29573 \begin_inset Index idx
29576 \begin_layout Plain Layout
29577 Notes ! \SpecialChar LyX
29586 \begin_layout Standard
29587 Notes are inserted with the toolbar button
29595 Insert\SpecialChar menuseparator
29599 There are three types of notes:
29602 \begin_layout Description
29605 \begin_inset space ~
29608 Note This note type is for internal notes that won't appear in the output.
29609 Its note-box looks like this:
29610 \begin_inset Newline newline
29614 \begin_inset Newline newline
29618 \begin_inset Graphics
29619 filename clipart/LyXNoteImage.png
29621 scaleBeforeRotation
29626 \begin_inset Note Note
29629 \begin_layout Plain Layout
29630 This is text in a note box that doesn't appear in the output.
29638 \begin_layout Description
29639 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29641 when you export the document to \SpecialChar LaTeX
29644 File\SpecialChar menuseparator
29645 Export\SpecialChar menuseparator
29647 \begin_inset space ~
29650 (pdflatex) / (plain)
29653 Its note-box looks like this:
29654 \begin_inset Newline newline
29658 \begin_inset Newline newline
29662 \begin_inset Graphics
29663 filename clipart/CommentNoteImage.png
29665 scaleBeforeRotation
29670 \begin_inset Note Comment
29673 \begin_layout Plain Layout
29674 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29683 \begin_layout Description
29685 \begin_inset space ~
29688 Out This note will appear in the output as grey text.
29689 Its note-box looks like this:
29690 \begin_inset Newline newline
29694 \begin_inset Newline newline
29698 \begin_inset Graphics
29699 filename clipart/GreyedOutNoteImage.png
29701 scaleBeforeRotation
29706 \begin_inset Newline newline
29713 \begin_layout Plain Layout
29717 renewenvironment{lyxgreyedout}
29720 \begin_layout Plain Layout
29724 textcolor[gray]{0.8}
29734 \begin_inset Note Greyedout
29737 \begin_layout Plain Layout
29738 This is text of a comment that appears grey in the output.
29747 \begin_layout Plain Layout
29751 renewenvironment{lyxgreyedout}
29754 \begin_layout Plain Layout
29768 \begin_inset Note Note
29771 \begin_layout Plain Layout
29772 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29774 because greyed out notes are redefined in the preamble of this document,
29775 as described below, to have blue text.
29781 \begin_inset Newline newline
29785 \begin_inset Newline newline
29788 As you can see in the example, the first line of greyed out notes is a bit
29789 indented and greyed out notes can have footnotes.
29792 \begin_layout Standard
29793 \begin_inset VSpace bigskip
29796 When you use the toolbar button
29806 \begin_inset space ~
29812 You can switch between the three note types by right-clicking on the note-box.
29817 If you want to turn existing text into a note, mark it and click on the
29831 To change a note to text, press the backspace key when the cursor is in
29832 the first position of a note, or press the delete key when the cursor is
29833 in the very last position of the note, respectively.
29836 \begin_layout Standard
29837 \begin_inset VSpace bigskip
29840 You can change the text color of the greyed out notes in the menu
29842 Document\SpecialChar menuseparator
29843 Settings\SpecialChar menuseparator
29849 \begin_layout Section
29851 \begin_inset CommandInset label
29853 name "sec:Footnotes"
29858 \begin_inset Index idx
29861 \begin_layout Plain Layout
29868 \begin_inset Index idx
29871 \begin_layout Plain Layout
29880 \begin_layout Standard
29881 Footnotes can be inserted using the toolbar button
29884 arg "footnote-insert"
29889 Insert\SpecialChar menuseparator
29893 You will then see the following footnote-box:
29894 \begin_inset Graphics
29895 filename clipart/footnote.png
29897 scaleBeforeRotation
29905 where you can enter the footnote text.
29906 If you want to turn existing text into a footnote, mark it and click on
29932 key when the cursor is in the first position of a
29944 key when the cursor is in the very last position of the
29955 \begin_layout Standard
29956 Here is an example footnote:
29964 \begin_layout Plain Layout
29965 \begin_inset CommandInset label
29967 name "foot:This-is-an"
29971 This is an example footnote.
29984 \begin_layout Plain Layout
29988 newcounter{MyRepeatFoot}
29991 \begin_layout Plain Layout
29995 setcounter{MyRepeatFoot}{
30005 \begin_layout Standard
30006 The footnote will appear in the output as a superscript number at the text
30007 position where the footnote box is placed.
30008 The footnote text is placed at the bottom of the current page.
30009 The footnote number is calculated by \SpecialChar LaTeX
30010 ; the numbers are consecutive.
30011 Whether the footnote number is reset for every chapter depends on your
30015 \begin_layout Standard
30016 Footnotes can be referenced like floats: Insert a label into the footnote
30017 and cross-reference this label in the text as described in section
30018 \begin_inset space ~
30022 \begin_inset CommandInset ref
30024 reference "sec:Referencing-Floats"
30029 \begin_inset Newline newline
30032 This is a cross-reference of Footnote
30033 \begin_inset space ~
30037 \begin_inset CommandInset ref
30039 reference "foot:This-is-an"
30046 \begin_layout Standard
30047 \begin_inset VSpace defskip
30050 Footnotes in title environments are usually not numbered with symbols and
30051 they cannot contain several paragraphs.
30052 See for example the footnote in the titling of this document.
30055 \begin_layout Standard
30056 \begin_inset VSpace defskip
30059 Footnotes in tables are not printed by \SpecialChar LaTeX
30060 due to technical reasons.
30061 However there exists another method to print them: Instead of the footnote
30068 is inserted as \SpecialChar TeX
30070 The text of the footnote is entered as an argument of the \SpecialChar TeX
30079 \begin_inset Newline newline
30082 This was done for the following table with the command
30085 \begin_layout Standard
30092 Printed table footnote.
30097 \begin_layout Standard
30098 \begin_inset Tabular
30099 <lyxtabular version="3" rows="2" columns="1">
30100 <features tabularvalignment="middle">
30101 <column alignment="center" valignment="top">
30103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30106 \begin_layout Plain Layout
30107 This an example text.
30111 \begin_layout Plain Layout
30112 This footnote will not be printed!
30124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30127 \begin_layout Plain Layout
30128 This an example text.
30132 \begin_layout Plain Layout
30155 \begin_layout Plain Layout
30164 Printed table footnote.
30168 \begin_layout Plain Layout
30178 \begin_layout Standard
30179 Footnotes in multi-page tables are described in section
30180 \begin_inset space ~
30184 \begin_inset CommandInset ref
30186 reference "subsec:Footnotes-in-Multi-page"
30193 \begin_layout Standard
30194 Footnotes in minipage boxes are printed, but inside the box and with a different
30195 numbering because a minipage box is like a page inside a page.
30196 (For more about minipages, see section
30197 \begin_inset space ~
30201 \begin_inset CommandInset ref
30203 reference "sec:Minipages"
30207 .) To get a footnote in the minipage that is output at the bottom of the
30208 page like normal footnotes, also use the method of
30223 \begin_layout Standard
30224 \begin_inset Box Frameless
30234 height_special "totalheight"
30239 backgroundcolor "none"
30242 \begin_layout Plain Layout
30243 This an example text in a minipage.
30247 \begin_layout Plain Layout
30248 Footnote in the minipage.
30256 \begin_layout Plain Layout
30257 This an example text in a minipage.
30261 \begin_layout Plain Layout
30278 \begin_layout Standard
30282 \begin_layout Plain Layout
30291 Footnote outside the minipage.
30295 \begin_layout Plain Layout
30305 \begin_layout Standard
30306 \begin_inset VSpace defskip
30312 \begin_layout Standard
30313 To refer to the same footnote several times without printing the footnote
30314 text every time, use the command
30318 footnotemark[number]
30320 in \SpecialChar TeX
30322 \begin_inset Newline newline
30325 As you do not know the number of the repeating footnote while you are writing
30326 the text, you have to store its number.
30327 For the following footnote mark example, these commands were inserted in
30329 code after Footnote
30330 \begin_inset space ~
30334 \begin_inset CommandInset ref
30336 reference "foot:This-is-an"
30340 to store the footnote number:
30343 \begin_layout Standard
30348 newcounter{MyRepeatFoot}
30349 \begin_inset Newline newline
30354 setcounter{MyRepeatFoot}{
30359 \begin_layout Standard
30360 The footnote mark was then created with this command:
30363 \begin_layout Standard
30373 \begin_layout Standard
30374 Here is a repeated footnote:
30382 \begin_layout Plain Layout
30396 \begin_layout Standard
30397 If you want to repeat the previous footnote, you can omit the storage of
30398 the footnote number and just use this command instead:
30401 \begin_layout Standard
30411 \begin_layout Standard
30412 Here is another repeated footnote:
30420 \begin_layout Plain Layout
30434 \begin_layout Subsection
30436 \begin_inset CommandInset label
30438 name "subsec:Footnote-Numbering"
30443 \begin_inset Index idx
30446 \begin_layout Plain Layout
30447 Footnotes ! Numbering
30455 \begin_layout Standard
30456 To reset the footnote number back to 1 after each section
30458 , add this command to your document preamble:
30461 \begin_layout Standard
30466 @addtoreset{footnote}{section}
30469 \begin_layout Standard
30470 \begin_inset VSpace bigskip
30473 The following preamble command changes the footnote numbering style to small
30477 \begin_layout Standard
30489 \begin_layout Standard
30493 \begin_layout Plain Layout
30506 This is a footnote with roman numbering:
30510 \begin_layout Plain Layout
30511 This is an example footnote with roman numbering.
30519 \begin_layout Standard
30520 To change the numbering style to capital roman numerals replace in the command
30535 \begin_inset Quotes eld
30539 \begin_inset Quotes erd
30542 footnotes with capital or small Latin letters use
30556 \begin_inset Quotes eld
30560 \begin_inset Quotes erd
30563 footnotes with symbols use
30572 \begin_layout Standard
30573 \begin_inset Note Greyedout
30576 \begin_layout Plain Layout
30581 You can only number 26 footnotes with Latin letters, because this numbering
30582 is limited to single letters.
30588 \begin_inset Newline newline
30592 \begin_inset Note Greyedout
30595 \begin_layout Plain Layout
30600 You can only number 9 footnotes with symbols.
30608 \begin_layout Standard
30609 To return to the default numbering style after you have changed to another
30622 in the command above.
30626 \begin_layout Plain Layout
30642 \begin_layout Standard
30643 \begin_inset VSpace bigskip
30649 \begin_layout Standard
30650 If you want to have footnotes numbered in the scheme
30651 \begin_inset Quotes eld
30655 \begin_inset Quotes erd
30658 , add the following command to your document preamble:
30661 \begin_layout Standard
30666 numberwithin{footnote}{chapter}
30669 \begin_layout Standard
30670 To be able to use the command
30679 \begin_inset space ~
30684 in the document settings the option
30687 \begin_inset space ~
30691 \begin_inset space ~
30695 \begin_inset space ~
30703 \begin_layout Standard
30707 \begin_layout Plain Layout
30711 numberwithin{footnote}{chapter}
30716 This is another example footnote:
30722 \begin_layout Plain Layout
30723 This is a footnote numbered in the scheme
30724 \begin_inset Quotes eld
30728 \begin_inset Quotes erd
30742 \begin_layout Plain Layout
30758 \begin_layout Standard
30759 \begin_inset Note Greyedout
30762 \begin_layout Plain Layout
30773 always prints out the footnote number as arabic number; previous redefinitions
30774 to get non-arabic numbers are overwritten.
30782 \begin_layout Standard
30783 So to get for example the scheme
30784 \begin_inset Quotes eld
30790 \begin_inset Quotes erd
30793 , use this command instead of
30802 \begin_layout Standard
30816 \begin_layout Subsection
30818 \begin_inset Index idx
30821 \begin_layout Plain Layout
30822 Footnotes ! Placement
30830 \begin_layout Standard
30831 If you have several footnotes in one page, they appear without vertical
30832 space between them at the bottom of the page.
30833 To make them more readable you can e.
30834 \begin_inset space \thinspace{}
30838 \begin_inset space \space{}
30842 \begin_inset space \thinspace{}
30845 mm space with the following preamble command:
30848 \begin_layout Standard
30858 \begin_inset Newline newline
30872 \begin_layout Standard
30873 \begin_inset VSpace bigskip
30876 In a two-column document the footnotes appear at the bottom of every column,
30878 \begin_inset space ~
30882 \begin_inset CommandInset ref
30884 reference "fig:Standard-footnote-placement"
30889 If the footnotes should only appear at the bottom of the right column,
30891 \begin_inset space ~
30895 \begin_inset CommandInset ref
30897 reference "fig:Footnote-placement-in"
30901 , use the \SpecialChar LaTeX
30907 \begin_inset Index idx
30910 \begin_layout Plain Layout
30912 -packages ! ftnright
30917 with this command in the document preamble:
30920 \begin_layout Standard
30925 usepackage{ftnright}
30928 \begin_layout Standard
30929 \begin_inset Float figure
30935 \begin_layout Plain Layout
30938 \begin_inset Box Boxed
30948 height_special "totalheight"
30953 backgroundcolor "none"
30956 \begin_layout Plain Layout
30957 \begin_inset Graphics
30958 filename clipart/without_fntright.pdf
30960 scaleBeforeRotation
30972 \begin_layout Plain Layout
30973 \begin_inset Caption Standard
30975 \begin_layout Plain Layout
30976 \begin_inset CommandInset label
30978 name "fig:Standard-footnote-placement"
30982 Standard footnote placement in two-column documents.
30995 \begin_layout Standard
30996 \begin_inset Float figure
31002 \begin_layout Plain Layout
31005 \begin_inset Box Boxed
31015 height_special "totalheight"
31020 backgroundcolor "none"
31023 \begin_layout Plain Layout
31024 \begin_inset Graphics
31025 filename clipart/with_fntright.pdf
31027 scaleBeforeRotation
31039 \begin_layout Plain Layout
31040 \begin_inset Caption Standard
31042 \begin_layout Plain Layout
31043 \begin_inset CommandInset label
31045 name "fig:Footnote-placement-in"
31049 Footnote placement in two-column documents when the \SpecialChar LaTeX
31067 \begin_layout Standard
31068 \begin_inset VSpace bigskip
31071 In some scientific literature it is usual to collect the footnotes and print
31072 them in a separate paragraph at the end of a section, as in Figure
31073 \begin_inset space ~
31077 \begin_inset CommandInset ref
31079 reference "fig:Endnotes"
31084 They are then called
31085 \begin_inset Quotes eld
31089 \begin_inset Quotes erd
31093 \begin_inset Index idx
31096 \begin_layout Plain Layout
31102 To use endnotes instead of footnotes in your document, load in the menu
31105 Document\SpecialChar menuseparator
31106 Settings\SpecialChar menuseparator
31112 \begin_inset space ~
31116 \begin_inset space ~
31122 To insert the collected footnotes, insert the command
31125 \begin_layout Standard
31133 \begin_layout Standard
31134 in \SpecialChar TeX
31135 Code at the end of a section or chapter.
31138 \begin_layout Standard
31139 \begin_inset Float figure
31144 \begin_layout Plain Layout
31147 \begin_inset Box Boxed
31157 height_special "totalheight"
31162 backgroundcolor "none"
31165 \begin_layout Plain Layout
31166 \begin_inset Graphics
31167 filename clipart/endnotes.pdf
31169 scaleBeforeRotation
31181 \begin_layout Plain Layout
31182 \begin_inset Caption Standard
31184 \begin_layout Plain Layout
31185 \begin_inset CommandInset label
31187 name "fig:Endnotes"
31191 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31205 \begin_layout Standard
31206 \begin_inset VSpace medskip
31209 The paragraph heading for the endnotes isn't automatically translated into
31210 the document language, this must be done manually.
31211 The following preamble command translates the default English
31212 \begin_inset Quotes eld
31216 \begin_inset Quotes erd
31220 \begin_inset Quotes eld
31224 \begin_inset Quotes erd
31230 \begin_layout Standard
31237 notesname}{Anmerkungen}
31240 \begin_layout Standard
31241 \begin_inset VSpace medskip
31244 The numbering of endnotes can be changed like the footnote numbering as
31245 described in section
31246 \begin_inset space ~
31250 \begin_inset CommandInset ref
31252 reference "subsec:Footnote-Numbering"
31256 ; just replace the command
31269 To reset the endnote number use the command
31275 as described in section
31276 \begin_inset space ~
31280 \begin_inset CommandInset ref
31282 reference "subsec:Footnote-Numbering"
31286 and replace the command parameter
31297 \begin_layout Standard
31298 For endnotes there is the command
31302 endnotemark[number]
31304 similar to the command
31310 , that is described in section
31311 \begin_inset space ~
31315 \begin_inset CommandInset ref
31317 reference "sec:Footnotes"
31324 \begin_layout Standard
31325 \begin_inset VSpace bigskip
31328 Footnotes can also be placed in the page margin and the footnote text alignment
31329 can be changed, see the \SpecialChar LaTeX
31335 \begin_inset Index idx
31338 \begin_layout Plain Layout
31340 -packages ! footmisc
31346 \begin_inset CommandInset citation
31352 for more information about this.
31355 \begin_layout Standard
31356 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31358 \begin_inset CommandInset citation
31360 key "latexcompanion,latexguide,latexbook"
31370 \begin_inset Index idx
31373 \begin_layout Plain Layout
31375 -packages ! KOMA-Script
31380 document class, you can adjust all footnote settings using class-specific
31382 \begin_inset CommandInset citation
31391 \begin_layout Section
31393 \begin_inset Index idx
31396 \begin_layout Plain Layout
31397 Notes ! Margin Notes
31405 \begin_layout Standard
31406 Margin notes look and behave in \SpecialChar LyX
31408 They are inserted via the menu
31410 Insert\SpecialChar menuseparator
31412 \begin_inset space ~
31417 or the toolbar button
31420 arg "marginalnote-insert"
31434 \begin_inset Quotes eld
31438 \begin_inset Quotes erd
31441 appears where you can enter the text of the margin note.
31444 \begin_layout Standard
31445 At the side is an example margin note.
31450 \begin_inset Marginal
31453 \begin_layout Plain Layout
31454 This is a margin note.
31462 \begin_layout Standard
31463 Margin notes appear at the right side in single-sided documents.
31464 In double-sided documents they appear in the outer margin – left on even
31465 pages, right on odd pages.
31466 The text of margin notes is aligned opposite to the outer margin – right-aligne
31467 d when the note appears in the left margin.
31468 The first line of the margin note is placed at the position of the text
31469 line where it is inserted in the document.
31472 \begin_layout Standard
31473 \begin_inset VSpace bigskip
31476 To place the margin note in the inner margin, add the command
31479 \begin_layout Standard
31487 \begin_layout Standard
31488 in \SpecialChar TeX
31489 Code before a margin note.
31490 The new placement is valid for all subsequent margin notes.
31495 \begin_layout Plain Layout
31505 \begin_inset Marginal
31508 \begin_layout Plain Layout
31509 This is a margin note in the inner margin.
31517 \begin_inset Newline newline
31523 \begin_inset Note Greyedout
31526 \begin_layout Plain Layout
31531 There is often not enough space in the inner margin so that the notes are
31532 not correctly displayed in the output.
31540 \begin_layout Standard
31541 To return to the default placement insert the command
31544 \begin_layout Standard
31552 \begin_layout Standard
31553 in \SpecialChar TeX
31558 \begin_layout Plain Layout
31568 \begin_inset Note Greyedout
31571 \begin_layout Plain Layout
31576 The command is ignored when it is within a paragraph where also the command
31591 \begin_layout Standard
31592 \begin_inset VSpace bigskip
31599 \begin_inset Marginal
31602 \begin_layout Plain Layout
31603 AVeryLongMarginParWord that isn't hyphenated.
31611 Similar to the case described in section
31612 \begin_inset space ~
31616 \begin_inset CommandInset ref
31618 reference "subsec:Multiple-Lines-in"
31622 , long words cannot be hyphenated when they are the first word in a margin
31624 To avoid this, insert 0
31625 \begin_inset space \thinspace{}
31628 pt horizontal space before the word
31633 \begin_inset Marginal
31636 \begin_layout Plain Layout
31637 \begin_inset space \hspace*{}
31641 AVeryLongMarginParWord that is hyphenated.
31649 \begin_layout Standard
31650 \begin_inset VSpace bigskip
31656 \begin_layout Standard
31657 \begin_inset Note Greyedout
31660 \begin_layout Plain Layout
31665 Margin notes can normally not be used inside tables, floats, and footnotes.
31673 \begin_layout Standard
31674 \begin_inset VSpace bigskip
31680 \begin_layout Standard
31684 \begin_layout Plain Layout
31694 \begin_inset Note Note
31697 \begin_layout Plain Layout
31698 The following section will only be displayed when the \SpecialChar LaTeX
31711 \begin_layout Standard
31712 This restriction can be evaded by using the \SpecialChar LaTeX
31718 \begin_inset Index idx
31721 \begin_layout Plain Layout
31723 -packages ! marginnote
31729 By adding these two lines to your document preamble, the command used by
31731 for margin notes is redefined to use the command provided by the
31738 \begin_layout Standard
31743 usepackage{marginnote}
31744 \begin_inset Newline newline
31756 \begin_layout Standard
31757 This is also used in this document because
31761 has another useful feature: You can set a vertical offset for the note.
31762 This is often needed when too many margin notes are too close together
31763 or for a better page layout.
31764 The offset is set in \SpecialChar LyX
31765 as \SpecialChar TeX
31766 Code directly after the margin note in the scheme
31769 \begin_layout Standard
31775 \begin_layout Standard
31776 where the offset is a length with one of the units listed in Table
31777 \begin_inset space ~
31781 \begin_inset CommandInset ref
31783 reference "tab:Units"
31788 A negative value shifts the note up, a positive value shifts it down.
31792 For example the margin note beside this text line is shifted up 1.5
31793 \begin_inset space \thinspace{}
31796 cm with the \SpecialChar TeX
31798 \begin_inset Quotes eld
31808 \begin_inset Quotes erd
31812 \begin_inset Marginal
31815 \begin_layout Plain Layout
31816 This margin note is shifted up 1.5
31817 \begin_inset space \thinspace{}
31820 cm from its original position.
31832 \begin_layout Plain Layout
31842 \begin_layout Standard
31843 \begin_inset VSpace medskip
31850 you can also change the alignment of the text in the margin note.
31851 For example the commands
31854 \begin_layout Standard
31861 raggedleftmarginnote}{
31864 \begin_inset Newline newline
31871 raggedrightmarginnote}{
31876 \begin_layout Standard
31877 set the alignment to centered.
31882 raggedleftmarginnote
31884 denotes margin notes that appear at the left side.
31891 \begin_layout Plain Layout
31897 raggedleftmarginnote}{
31902 \begin_layout Plain Layout
31908 raggedrightmarginnote}{
31916 \begin_inset Marginal
31919 \begin_layout Plain Layout
31920 The text of this margin note is centered.
31931 \begin_layout Standard
31938 raggedleftmarginnote}{
31941 \begin_inset Newline newline
31948 raggedrightmarginnote}{
31957 \begin_layout Plain Layout
31963 raggedleftmarginnote}{
31968 \begin_layout Plain Layout
31974 raggedrightmarginnote}{
31984 \begin_layout Standard
31985 \begin_inset VSpace medskip
31988 For the other features of
31992 refer to its documentation
31993 \begin_inset CommandInset citation
32002 \begin_layout Standard
32003 \begin_inset VSpace bigskip
32006 You can adjust the layout of margin notes by changing its definition.
32007 To create for example a header for all margin notes with the underlined,
32008 sans-serif, and bold header text
32009 \begin_inset Quotes eld
32021 \begin_inset Quotes erd
32024 , add this to your document preamble:
32027 \begin_layout Standard
32037 \begin_inset Newline newline
32047 \begin_inset Newline newline
32051 \begin_inset Phantom HPhantom
32054 \begin_layout Plain Layout
32057 \begin_inset space ~
32073 underbar{Attention!}}}%
32074 \begin_inset Newline newline
32078 \begin_inset Phantom HPhantom
32081 \begin_layout Plain Layout
32084 \begin_inset space ~
32101 \begin_layout Standard
32108 \begin_layout Plain Layout
32119 \begin_layout Plain Layout
32130 \begin_layout Plain Layout
32138 underbar{Attention!}}}%
32141 \begin_layout Plain Layout
32155 \begin_inset Marginal
32158 \begin_layout Plain Layout
32159 This is a margin note with a defined heading.
32171 \begin_layout Plain Layout
32185 \begin_layout Plain Layout
32202 \begin_inset Note Note
32205 \begin_layout Plain Layout
32206 The margin note format is changed only for this example.
32214 \begin_layout Standard
32218 \begin_layout Plain Layout
32228 \begin_inset Note Note
32231 \begin_layout Plain Layout
32232 The following will be displayed when the \SpecialChar LaTeX
32245 \begin_layout Standard
32246 You need to install the \SpecialChar LaTeX
32251 to see the following part of this section in the output.
32254 \begin_layout Standard
32258 \begin_layout Plain Layout
32270 \begin_layout Chapter
32274 \begin_layout Section
32276 \begin_inset Index idx
32279 \begin_layout Plain Layout
32280 Boxes ! Introduction
32288 \begin_layout Standard
32289 Boxes are used to format a block of text.
32290 Boxes can be used to write documents with multiple languages, see section
32291 \begin_inset space ~
32295 \begin_inset CommandInset ref
32297 reference "sec:Minipages"
32301 , to frame texts, see section
32302 \begin_inset space ~
32306 \begin_inset CommandInset ref
32308 reference "sec:Decoration"
32312 , to prevent words from being hyphenated, see section
32313 \begin_inset space ~
32317 \begin_inset CommandInset ref
32319 reference "sec:Prevent-Hyphenation"
32323 , to align text, see section
32324 \begin_inset space ~
32328 \begin_inset CommandInset ref
32330 reference "subsec:Vertical-Alignment"
32334 , or to set the background color of texts, see section
32335 \begin_inset space ~
32339 \begin_inset CommandInset ref
32341 reference "sec:Colored-Boxes"
32348 \begin_layout Standard
32349 Boxes can be inserted with the menu
32351 Insert\SpecialChar menuseparator
32354 or the toolbar button
32357 arg "box-insert Frameless"
32361 A grey box with the label
32366 \begin_inset Graphics
32367 filename clipart/BoxInsetDefault.png
32369 scaleBeforeRotation
32374 The box type can be specified by right-clicking on the box and selecting
32380 The box dialog offers the
32383 \begin_inset space ~
32405 is the default for new boxes and is explained in section
32406 \begin_inset space ~
32410 \begin_inset CommandInset ref
32412 reference "sec:Minipages"
32420 is described in section
32421 \begin_inset space ~
32425 \begin_inset CommandInset ref
32427 reference "sec:Parboxes"
32436 \begin_inset CommandInset ref
32438 reference "sec:Prevent-Hyphenation"
32445 \begin_layout Standard
32446 Boxes are not numbered and can therefore not be referenced like floats or
32450 \begin_layout Standard
32451 \begin_inset Note Greyedout
32454 \begin_layout Plain Layout
32459 Boxes must not be the item in an
32475 \begin_layout Standard
32476 \begin_inset Note Greyedout
32479 \begin_layout Plain Layout
32484 For an unknown reason you can only set the
32487 \begin_inset space ~
32496 when you use a framed box.
32500 \begin_inset space ~
32505 type and without frames are explained in section
32506 \begin_inset space ~
32510 \begin_inset CommandInset ref
32512 reference "sec:Prevent-Hyphenation"
32524 \begin_layout Section
32526 \begin_inset CommandInset label
32528 name "sec:Box-Dialog"
32533 \begin_inset Index idx
32536 \begin_layout Plain Layout
32545 \begin_layout Subsection
32547 \begin_inset Index idx
32550 \begin_layout Plain Layout
32559 \begin_layout Standard
32560 In the box dialog you can adjust the box geometry in the fields
32569 The available units for the geometry are explained in Table
32570 \begin_inset space ~
32574 \begin_inset CommandInset ref
32576 reference "tab:Units"
32585 offers the following additional sizes:
32588 \begin_layout Description
32589 Depth This is the plain text
32590 \begin_inset Quotes eld
32594 \begin_inset Quotes erd
32598 It ignores the total depth when there are multiple text lines in the box:
32599 \begin_inset Newline newline
32603 \begin_inset Newline newline
32607 \begin_inset Newline newline
32611 \begin_inset Box Boxed
32621 height_special "depth"
32626 backgroundcolor "none"
32629 \begin_layout Plain Layout
32631 Box height set to 1
32632 \begin_inset space \thinspace{}
32641 \begin_inset Newline newline
32645 \begin_inset Newline newline
32651 \begin_layout Description
32652 Height This is the height of the text that is inside the box.
32654 \begin_inset space \thinspace{}
32658 \begin_inset space \space{}
32661 2 for this size will set the box height to 2
32662 \begin_inset space ~
32665 times the text height:
32666 \begin_inset Box Boxed
32676 height_special "height"
32681 backgroundcolor "none"
32684 \begin_layout Plain Layout
32686 Box height set to 2
32687 \begin_inset space \thinspace{}
32698 \begin_layout Description
32700 \begin_inset space ~
32703 Height This is the Height
32704 \begin_inset space \thinspace{}
32708 \begin_inset space \thinspace{}
32712 \begin_inset Box Boxed
32722 height_special "totalheight"
32727 backgroundcolor "none"
32730 \begin_layout Plain Layout
32732 Box height set to 1
32733 \begin_inset space \thinspace{}
32737 \begin_inset space ~
32748 \begin_layout Description
32749 Width This sets the width of the box as height:
32750 \begin_inset Box Boxed
32760 height_special "width"
32765 backgroundcolor "none"
32768 \begin_layout Plain Layout
32770 Box height set to 1
32771 \begin_inset space \thinspace{}
32782 \begin_layout Subsection
32784 \begin_inset Index idx
32787 \begin_layout Plain Layout
32796 \begin_layout Standard
32797 When you have chosen an
32800 \begin_inset space ~
32805 , the vertical box alignment can be:
32808 \begin_layout Description
32809 Top This is an example text line.
32811 \begin_inset Box Boxed
32821 height_special "totalheight"
32826 backgroundcolor "none"
32829 \begin_layout Plain Layout
32831 This box is top-aligned.
32836 This is an example text line.
32839 \begin_layout Description
32840 Middle This is an example text line.
32842 \begin_inset Box Boxed
32852 height_special "totalheight"
32857 backgroundcolor "none"
32860 \begin_layout Plain Layout
32862 This box is middle-aligned.
32867 This is an example text line.
32870 \begin_layout Description
32871 Bottom This is an example text line.
32873 \begin_inset Box Boxed
32883 height_special "totalheight"
32888 backgroundcolor "none"
32891 \begin_layout Plain Layout
32893 This box is bottom-aligned.
32898 This is an example text line.
32901 \begin_layout Standard
32902 \begin_inset Note Greyedout
32905 \begin_layout Plain Layout
32910 The vertical box alignment can be lost in the output when you have two
32911 boxes in a line and one has e.
32912 \begin_inset space \thinspace{}
32916 \begin_inset space \space{}
32919 a shadow and the other one not.
32927 \begin_layout Standard
32928 The horizontal box alignment can be set via \SpecialChar LyX
32929 's paragraph dialog when you
32930 set the box into its own paragraph.
32933 \begin_layout Standard
32934 \begin_inset VSpace bigskip
32937 When you have chosen an
32940 \begin_inset space ~
32945 , the box content can be aligned vertically to:
32948 \begin_layout Description
32949 top This is an example text line.
32951 \begin_inset Box Boxed
32961 height_special "totalheight"
32966 backgroundcolor "none"
32969 \begin_layout Plain Layout
32971 This box text is top-aligned.
32976 This is an example text line.
32979 \begin_layout Description
32980 middle This is an example text line.
32982 \begin_inset Box Boxed
32992 height_special "totalheight"
32997 backgroundcolor "none"
33000 \begin_layout Plain Layout
33002 This box text is middle-aligned.
33007 This is an example text line.
33010 \begin_layout Description
33011 bottom This is an example text line.
33013 \begin_inset Box Boxed
33023 height_special "totalheight"
33028 backgroundcolor "none"
33031 \begin_layout Plain Layout
33033 This box text is bottom-aligned.
33038 This is an example text line.
33041 \begin_layout Description
33042 stretch This is an example text line.
33044 \begin_inset Box Boxed
33054 height_special "totalheight"
33059 backgroundcolor "none"
33062 \begin_layout Plain Layout
33067 \begin_layout Plain Layout
33072 \begin_layout Plain Layout
33079 This is an example text line.
33082 \begin_layout Standard
33083 To stretch the box content, it must consist of more than one paragraph.
33084 In the example above every text line is in an own paragraph.
33087 \begin_layout Standard
33088 \begin_inset VSpace bigskip
33091 To align the box content horizontally you can use \SpecialChar LyX
33092 's paragraph dialog when
33096 \begin_inset space ~
33104 \begin_layout Standard
33106 \begin_inset Box Boxed
33116 height_special "totalheight"
33121 backgroundcolor "none"
33124 \begin_layout Plain Layout
33129 \begin_layout Plain Layout
33134 \begin_layout Plain Layout
33144 \begin_layout Standard
33145 If you have not set an
33148 \begin_inset space ~
33153 , you can align the box content horizontally in the box dialog.
33154 \begin_inset Separator latexpar
33160 \begin_layout Standard
33162 \begin_inset Box Boxed
33172 height_special "totalheight"
33177 backgroundcolor "none"
33180 \begin_layout Plain Layout
33181 This box text is horizontally stretched.
33189 \begin_layout Subsection
33191 \begin_inset CommandInset label
33193 name "sec:Decoration"
33198 \begin_inset Index idx
33201 \begin_layout Plain Layout
33210 \begin_layout Standard
33211 The type of the box can be specified in the box dialog in the drop-down
33217 The following types are possible:
33220 \begin_layout Description
33222 \begin_inset space ~
33225 frame Nothing is drawn.
33228 \begin_layout Description
33230 \begin_inset space ~
33234 \begin_inset space ~
33237 frame This draws a rectangular frame around the box.
33238 The frame line thickness can be specified.
33240 \begin_inset Box Boxed
33250 height_special "totalheight"
33255 backgroundcolor "none"
33258 \begin_layout Plain Layout
33268 \begin_layout Description
33270 \begin_inset space ~
33274 \begin_inset space ~
33277 thin This draws an oval frame around the box.
33278 The frame line thickness has the size 0.4
33279 \begin_inset space \thinspace{}
33284 \begin_inset Box ovalbox
33294 height_special "totalheight"
33299 backgroundcolor "none"
33302 \begin_layout Plain Layout
33312 \begin_layout Description
33314 \begin_inset space ~
33318 \begin_inset space ~
33321 thick This draws an oval frame around the box.
33322 The frame line thickness has the size 0.8
33323 \begin_inset space \thinspace{}
33328 \begin_inset Box Ovalbox
33338 height_special "totalheight"
33343 backgroundcolor "none"
33346 \begin_layout Plain Layout
33356 \begin_layout Description
33358 \begin_inset space ~
33361 shadow This draws a rectangular frame with a shadow around the box.
33362 The frame line thickness and the shadow can be specified.
33364 \begin_inset Box Shadowbox
33374 height_special "totalheight"
33379 backgroundcolor "none"
33382 \begin_layout Plain Layout
33392 \begin_layout Description
33394 \begin_inset space ~
33397 background This draws a box with a red background.
33398 Unlike colored boxes
33402 \begin_layout Plain Layout
33404 \begin_inset space \thinspace{}
33408 \begin_inset CommandInset ref
33410 reference "sec:Colored-Boxes"
33419 , it always uses the whole column width and the box is set as its own paragraph.
33421 \begin_inset Box Shaded
33431 height_special "totalheight"
33436 backgroundcolor "none"
33439 \begin_layout Plain Layout
33440 Shaded background box
33448 \begin_layout Description
33450 \begin_inset space ~
33454 \begin_inset space ~
33457 frame This draws a double-line rectangular frame around the box.
33458 The line thickness of the inner frame is 0.75
33459 \begin_inset space \thinspace{}
33463 \begin_inset space ~
33466 thickness, the thickness of the outer frame is 1.5
33467 \begin_inset space \thinspace{}
33471 \begin_inset space ~
33475 The distance between the lines is 1.5
33476 \begin_inset space \thinspace{}
33480 \begin_inset space ~
33484 \begin_inset space \thinspace{}
33488 \begin_inset space \thinspace{}
33492 \begin_inset space \thinspace{}
33497 \begin_inset Box Doublebox
33507 height_special "totalheight"
33512 backgroundcolor "none"
33515 \begin_layout Plain Layout
33517 Double rectangular box
33525 \begin_layout Standard
33526 \begin_inset VSpace bigskip
33530 's box label will reflect the different frame types.
33531 To be able to use all types, the \SpecialChar LaTeX
33537 \begin_inset Index idx
33540 \begin_layout Plain Layout
33542 -packages ! fancybox
33550 \begin_layout Standard
33551 \begin_inset VSpace bigskip
33554 When you use the decoration
33556 simple rectangular frame
33558 and no inner box, you can allow page breaks within a box.
33559 Note that then, unlike other framed boxes, the frame always uses the whole
33560 column width and the box is set as its own paragraph:
33561 \begin_inset Box Framed
33571 height_special "totalheight"
33576 backgroundcolor "none"
33579 \begin_layout Plain Layout
33580 Allow page break box
33588 \begin_layout Section
33590 \begin_inset Index idx
33593 \begin_layout Plain Layout
33594 Boxes ! Customization
33602 \begin_layout Standard
33603 The diameter of the round corners of the oval boxes can be set with the
33614 \begin_layout Standard
33622 \begin_layout Standard
33623 sets the diameter to 1
33624 \begin_inset space \thinspace{}
33631 \begin_layout Standard
33639 \begin_layout Standard
33640 sets the diameter to
33643 \begin_inset space \thinspace{}
33647 \begin_inset space \thinspace{}
33650 minimum(width and height of box)
33662 \begin_layout Standard
33666 \begin_layout Plain Layout
33676 \begin_inset Box Ovalbox
33686 height_special "totalheight"
33691 backgroundcolor "none"
33694 \begin_layout Plain Layout
33703 \begin_inset space \thinspace{}
33707 \begin_inset space \thinspace{}
33711 \begin_inset space \thinspace{}
33723 \begin_layout Plain Layout
33735 \begin_layout Standard
33736 \begin_inset VSpace bigskip
33742 \begin_layout Standard
33743 The default background color red of
33747 boxes can either be changed locally with the command
33751 definecolor{shadecolor}
33753 or globally with the menu
33755 Tools\SpecialChar menuseparator
33756 Preferences\SpecialChar menuseparator
33757 Colors\SpecialChar menuseparator
33759 \begin_inset space ~
33771 command is explained in section
33772 \begin_inset space ~
33776 \begin_inset CommandInset ref
33778 reference "sec:Colored-Tables"
33786 \begin_layout Plain Layout
33793 requires the \SpecialChar LaTeX
33798 in the preamble, see section
33799 \begin_inset space ~
33803 \begin_inset CommandInset ref
33805 reference "sec:Colored-Boxes"
33814 For example the appearance of the following shaded background box is set
33815 with the \SpecialChar TeX
33819 \begin_layout Standard
33824 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33827 \begin_layout Standard
33831 \begin_layout Plain Layout
33835 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33841 \begin_inset Box Shaded
33851 height_special "totalheight"
33856 backgroundcolor "none"
33859 \begin_layout Plain Layout
33862 This is yellow text in a
33872 box with dark green background.
33881 \begin_layout Plain Layout
33885 definecolor{shadecolor}{rgb}{1,0,0}
33893 \begin_layout Standard
33894 \begin_inset VSpace bigskip
33897 Manually changed sizes and colors are valid for all boxes following the
33898 commands that change them.
33901 \begin_layout Section
33903 \begin_inset CommandInset label
33905 name "sec:Minipages"
33910 \begin_inset Index idx
33913 \begin_layout Plain Layout
33922 \begin_layout Standard
33923 Minipages are treated by \SpecialChar LaTeX
33924 as pages within pages and can therefore for example
33925 have their own footnotes.
33928 \begin_layout Standard
33929 Minipages are useful when you write documents with different languages.
33932 \begin_layout Standard
33933 Below are two example minipages side by side.
33934 Their width is set to 45
33935 \begin_inset space \thinspace{}
33938 col% and they are separated by a horizontal fill, that was inserted via
33941 Insert\SpecialChar menuseparator
33943 \begin_inset space ~
33946 Formatting\SpecialChar menuseparator
33948 \begin_inset space ~
33954 \begin_inset Newpage newpage
33960 \begin_layout Standard
33961 \begin_inset Box Frameless
33971 height_special "totalheight"
33976 backgroundcolor "none"
33979 \begin_layout Plain Layout
33982 Dies ist ein deutscher Text.
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text
33998 \begin_layout Plain Layout
34001 Dies ist eine deutsche Fußnote.
34007 Dies ist ein deutscher Text.
34008 Dies ist ein deutscher Text.
34014 \begin_inset space \hfill{}
34018 \begin_inset Box Frameless
34028 height_special "totalheight"
34033 backgroundcolor "none"
34036 \begin_layout Plain Layout
34037 This is an English Text.
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34056 \begin_layout Plain Layout
34057 This is an English footnote.
34062 This is an English Text.
34070 \begin_layout Standard
34071 \begin_inset VSpace bigskip
34074 The document-wide paragraph settings are ignored within minipages.
34075 That means that there will be no space between paragraphs in minipages
34076 although you set it to e.
34077 \begin_inset space \thinspace{}
34081 \begin_inset space \space{}
34088 in the document settings.
34091 \begin_layout Standard
34092 Minipages can also be used to set a background color for text parts, see
34094 \begin_inset space ~
34098 \begin_inset CommandInset ref
34100 reference "sec:Colored-Boxes"
34107 \begin_layout Standard
34108 \begin_inset Note Greyedout
34111 \begin_layout Plain Layout
34116 You cannot have floats or margin notes inside minipages but minipages can
34117 be used inside tables, floats, and other boxes.
34125 \begin_layout Standard
34126 \begin_inset VSpace bigskip
34132 \begin_layout Standard
34134 has also basic support for minipages whose size is automatically determined
34135 by the width of their contents, via the module
34137 Variable-width Minipages
34140 The \SpecialChar LyX
34143 varwidth-floats-side-by-side
34145 gives examples of variable-width minipages used for placing two floats
34149 \begin_layout Section
34151 \begin_inset CommandInset label
34153 name "sec:Parboxes"
34158 \begin_inset Index idx
34161 \begin_layout Plain Layout
34170 \begin_layout Standard
34171 Parboxes are very similar to minipages with the difference that they cannot
34173 \begin_inset Separator latexpar
34179 \begin_layout Standard
34181 \begin_inset Box Frameless
34191 height_special "totalheight"
34196 backgroundcolor "none"
34199 \begin_layout Plain Layout
34200 This a text within a parbox.
34201 This a text within a parbox.
34204 \begin_layout Plain Layout
34205 This footnote won't appear:
34209 \begin_layout Plain Layout
34210 This footnote is inside a parbox and will therefore not appear.
34223 \begin_layout Section
34224 Boxes for Words and Characters
34225 \begin_inset Index idx
34228 \begin_layout Plain Layout
34229 Boxes ! for Characters
34237 \begin_layout Subsection
34238 Prevent Hyphenation
34239 \begin_inset CommandInset label
34241 name "sec:Prevent-Hyphenation"
34246 \begin_inset Index idx
34249 \begin_layout Plain Layout
34250 Boxes ! to Prevent Hyphenation
34258 \begin_layout Standard
34259 You can use the box type
34263 to prevent words or text from being hyphenated.
34264 \begin_inset Newline newline
34267 Here is an example text:
34270 \begin_layout Standard
34271 This line is an example to show how you can prevent the hyphenation of
34272 \begin_inset Quotes eld
34276 \begin_inset Quotes erd
34282 \begin_layout Standard
34283 To prevent the hyphenation of the word
34284 \begin_inset Quotes eld
34288 \begin_inset Quotes erd
34291 , put the word into a box, set the
34294 \begin_inset space ~
34303 and use no explicit width.
34306 \begin_layout Standard
34307 This is the result:
34310 \begin_layout Standard
34311 This line is an example to show how you can prevent the hyphenation of
34312 \begin_inset Box Frameless
34322 height_special "totalheight"
34327 backgroundcolor "none"
34330 \begin_layout Plain Layout
34331 \begin_inset Quotes eld
34335 \begin_inset Quotes erd
34346 \begin_layout Standard
34347 You can alternatively set the command
34348 \begin_inset Quotes eld
34358 \begin_inset Quotes grd
34361 as \SpecialChar TeX
34362 Code directly before the word:
34365 \begin_layout Standard
34366 This line is an example to show how you can prevent the hyphenation of
34367 \begin_inset Quotes eld
34374 \begin_layout Plain Layout
34384 \begin_inset Quotes erd
34390 \begin_layout Standard
34391 Of course the word now protrudes over the side margin.
34392 To avoid this, add via the menu
34394 Insert\SpecialChar menuseparator
34395 Formatting\SpecialChar menuseparator
34397 \begin_inset space ~
34401 \begin_inset space ~
34409 arg "newline-insert newline"
34412 ) a line break before the word:
34415 \begin_layout Standard
34416 This line is an example to show how you can prevent the hyphenation of
34417 \begin_inset Newline newline
34421 \begin_inset Box Frameless
34431 height_special "totalheight"
34436 backgroundcolor "none"
34439 \begin_layout Plain Layout
34440 \begin_inset Quotes eld
34444 \begin_inset Quotes erd
34455 \begin_layout Subsection
34457 \begin_inset CommandInset label
34459 name "subsec:Vertical-Alignment"
34464 \begin_inset Index idx
34467 \begin_layout Plain Layout
34468 Boxes ! for Vertical Alignment
34474 \begin_inset Index idx
34477 \begin_layout Plain Layout
34486 \begin_layout Standard
34487 With the help of the command
34493 you can align words, characters or other boxes vertically relative to the
34501 is used with the following scheme:
34504 \begin_layout Standard
34509 raisebox{lift}[height][depth]{box content}
34512 \begin_layout Standard
34513 The lift can be a positive value to raise the box or a negative value to
34517 \begin_layout Standard
34518 To align for example the word
34519 \begin_inset Quotes eld
34523 \begin_inset Quotes erd
34526 so that the bottom of the
34527 \begin_inset Quotes eld
34531 \begin_inset Quotes erd
34535 \begin_inset Quotes eld
34539 \begin_inset Quotes erd
34542 is at the baseline, insert the command
34545 \begin_layout Standard
34555 \begin_layout Standard
34556 in \SpecialChar TeX
34557 Code before the word.
34558 After the word insert a closing brace
34559 \begin_inset Quotes eld
34567 \begin_inset Quotes erd
34570 in \SpecialChar TeX
34572 \begin_inset Newline newline
34575 This is the result:
34578 \begin_layout Standard
34579 This is a text line with the word
34583 \begin_layout Plain Layout
34595 \begin_inset Quotes eld
34599 \begin_inset Quotes erd
34606 \begin_layout Plain Layout
34616 \begin_layout Standard
34617 \begin_inset VSpace bigskip
34620 When you raise or lower characters in a line, the line distance will be
34624 \begin_layout Standard
34625 This is a text line with the word
34629 \begin_layout Plain Layout
34641 \begin_inset Quotes eld
34645 \begin_inset Quotes erd
34652 \begin_layout Plain Layout
34660 \begin_inset Newline newline
34663 This is a text line with the word
34667 \begin_layout Plain Layout
34677 \begin_inset Quotes eld
34681 \begin_inset Quotes erd
34688 \begin_layout Plain Layout
34698 \begin_layout Standard
34699 If you want to prevent this for a certain reason, set the box height to
34704 \begin_layout Standard
34714 \begin_layout Standard
34715 This is a text line with the word
34719 \begin_layout Plain Layout
34731 \begin_inset Quotes eld
34735 \begin_inset Quotes erd
34742 \begin_layout Plain Layout
34750 \begin_inset Newline newline
34754 \begin_inset Newline newline
34757 This is a text line with the word
34761 \begin_layout Plain Layout
34765 raisebox{0.5cm}[0pt]{
34771 \begin_inset Quotes eld
34775 \begin_inset Quotes erd
34782 \begin_layout Plain Layout
34792 \begin_layout Section
34794 \begin_inset CommandInset label
34796 name "sec:Colored-Boxes"
34801 \begin_inset Index idx
34804 \begin_layout Plain Layout
34813 \begin_layout Standard
34814 To color the background of a box just select the color you like in the box
34816 This is for example a box with orange background:
34817 \begin_inset Box Frameless
34827 height_special "totalheight"
34832 backgroundcolor "orange"
34835 \begin_layout Plain Layout
34836 Box with orange background
34844 \begin_layout Standard
34845 If you use the decoration
34848 \begin_inset space ~
34852 \begin_inset space ~
34857 you can set a frame color.
34858 In this case you must also specify a background color (LyX sets white as
34860 Here is an example:
34861 \begin_inset Box Boxed
34871 height_special "totalheight"
34876 backgroundcolor "yellow"
34879 \begin_layout Plain Layout
34880 Box with teal frame color and yellow background color
34888 \begin_layout Standard
34889 \begin_inset VSpace bigskip
34892 Of course you can also have colored text inside a colored box:
34893 \begin_inset Newline newline
34897 \begin_inset Box Boxed
34907 height_special "totalheight"
34912 backgroundcolor "magenta"
34915 \begin_layout Plain Layout
34918 This is colored text within a colored, framed box
34926 \begin_layout Standard
34927 \begin_inset VSpace bigskip
34933 \begin_layout Standard
34934 If you need another color than the predefined ones, you can define your
34935 own color as described in section
34936 \begin_inset space ~
34940 \begin_inset CommandInset ref
34942 reference "sec:Colored-Tables"
34947 To use your own color you must typeset the box by using TeX code:
34950 \begin_layout Standard
34951 Colored boxes without frame are created with the command
34958 It has the following scheme:
34961 \begin_layout Standard
34966 colorbox{color}{box content}
34969 \begin_layout Standard
34970 The box content can also be a box and colored boxes can also be within other
34973 \begin_inset space \thinspace{}
34977 \begin_inset space \space{}
34980 a darkgreen background for a word, insert the command
34983 \begin_layout Standard
34988 colorbox{darkgreen}{
34991 \begin_layout Standard
34992 before the word in \SpecialChar TeX
34994 After the word insert a closing brace
34995 \begin_inset Quotes eld
35003 \begin_inset Quotes erd
35006 in \SpecialChar TeX
35008 \begin_inset Newline newline
35011 This is the result:
35014 \begin_layout Standard
35015 This is a line where the word
35019 \begin_layout Plain Layout
35023 colorbox{darkgreen}{
35029 \begin_inset Quotes eld
35033 \begin_inset Quotes erd
35040 \begin_layout Plain Layout
35047 has a darkgreen background.
35050 \begin_layout Standard
35051 Framed, colored boxes are created with the command
35058 It has the following scheme:
35061 \begin_layout Standard
35066 fcolorbox{frame color}{box color}{box content}
35069 \begin_layout Section
35070 Rotated and Scaled Boxes
35073 \begin_layout Standard
35074 To use the boxes described in this section, the module
35078 must be loaded in the document settings.
35081 \begin_layout Standard
35082 \begin_inset Note Greyedout
35085 \begin_layout Plain Layout
35090 Not all DVI viewers are able to display rotated or scaled material.
35098 \begin_layout Standard
35099 \begin_inset Note Greyedout
35102 \begin_layout Plain Layout
35107 Floats are not allowed inside a rotated or scaled box.
35115 \begin_layout Subsection
35117 \begin_inset Index idx
35120 \begin_layout Plain Layout
35127 \begin_inset Index idx
35130 \begin_layout Plain Layout
35139 \begin_layout Standard
35140 To rotate material, you can put it into a
35145 Such a box is inserted via the menu
35147 Insert\SpecialChar menuseparator
35148 Custom Insets\SpecialChar menuseparator
35154 \begin_layout Standard
35155 The rotation origin can be specified via the inset
35161 Insert\SpecialChar menuseparator
35169 The following positions are possible:
35189 (top), along with meaningful combinations of the four base positions.
35194 means that the rotation origin is at the top left corner of the box.
35195 When no rotation origin is specified, the position
35200 The rotation angle is a number that can be negative that specifies the
35202 The rotation direction is counterclockwise.
35205 \begin_layout Standard
35206 In the following example
35210 was inserted to the
35218 was inserted to the
35225 \begin_layout Standard
35227 \begin_inset Flex Rotatebox
35230 \begin_layout Plain Layout
35231 \begin_inset Argument 1
35234 \begin_layout Plain Layout
35241 \begin_inset Argument 2
35244 \begin_layout Plain Layout
35258 \begin_layout Standard
35259 The box content can also be another box or an inline formula:
35262 \begin_layout Standard
35264 \begin_inset Flex Rotatebox
35267 \begin_layout Plain Layout
35268 \begin_inset Argument 1
35271 \begin_layout Plain Layout
35278 \begin_inset Argument 2
35281 \begin_layout Plain Layout
35288 \begin_inset Box Doublebox
35298 height_special "totalheight"
35303 backgroundcolor "none"
35306 \begin_layout Plain Layout
35318 \begin_inset Flex Rotatebox
35321 \begin_layout Plain Layout
35322 \begin_inset Argument 1
35325 \begin_layout Plain Layout
35332 \begin_inset Argument 2
35335 \begin_layout Plain Layout
35342 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35353 \begin_layout Standard
35354 or an image or table:
35357 \begin_layout Standard
35359 \begin_inset Flex Rotatebox
35362 \begin_layout Plain Layout
35363 \begin_inset Argument 1
35366 \begin_layout Plain Layout
35373 \begin_inset Argument 2
35376 \begin_layout Plain Layout
35383 \begin_inset Graphics
35384 filename clipart/platypus.eps
35395 with a rotated image
35396 \begin_inset Flex Rotatebox
35399 \begin_layout Plain Layout
35400 \begin_inset Argument 2
35403 \begin_layout Plain Layout
35410 \begin_inset Tabular
35411 <lyxtabular version="3" rows="2" columns="2">
35412 <features tabularvalignment="middle">
35413 <column alignment="center" valignment="top">
35414 <column alignment="center" valignment="top">
35416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35419 \begin_layout Plain Layout
35425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35428 \begin_layout Plain Layout
35436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35439 \begin_layout Plain Layout
35445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35448 \begin_layout Plain Layout
35465 \begin_inset Index idx
35468 \begin_layout Plain Layout
35475 \begin_inset Index idx
35478 \begin_layout Plain Layout
35479 Table Customization ! Rotating
35487 \begin_layout Standard
35488 \begin_inset Note Greyedout
35491 \begin_layout Plain Layout
35500 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35502 errors when viewing/exporting the document.
35510 \begin_layout Subsection
35512 \begin_inset Index idx
35515 \begin_layout Plain Layout
35522 \begin_inset Index idx
35525 \begin_layout Plain Layout
35534 \begin_layout Standard
35535 To scale material put it into a
35540 Such a box is inserted via the menu
35542 Insert\SpecialChar menuseparator
35543 Custom Insets\SpecialChar menuseparator
35549 \begin_layout Standard
35554 inset has the mandatory inset
35558 and the optional inset
35562 (inserted via the menu
35564 Insert\SpecialChar menuseparator
35568 Input there the horizontal and vertical scale factor, respectively.
35573 inset is used, the horizontal factor will also be used as the vertical
35577 \begin_layout Standard
35578 To get for example the double text size, compared to the document text size,
35589 \begin_inset Flex Scalebox
35592 \begin_layout Plain Layout
35593 \begin_inset Argument 1
35596 \begin_layout Plain Layout
35610 \begin_layout Standard
35628 \begin_inset Flex Scalebox
35631 \begin_layout Plain Layout
35632 \begin_inset Argument 1
35635 \begin_layout Plain Layout
35642 \begin_inset Argument 2
35645 \begin_layout Plain Layout
35659 \begin_layout Standard
35660 If the scaling factor is negative, the box content will be mirrored.
35677 can be used to create mirror writing:
35678 \begin_inset Flex Scalebox
35681 \begin_layout Plain Layout
35682 \begin_inset Argument 1
35685 \begin_layout Plain Layout
35692 \begin_inset Argument 2
35695 \begin_layout Plain Layout
35709 \begin_layout Standard
35727 \begin_inset Flex Scalebox
35730 \begin_layout Plain Layout
35731 \begin_inset Argument 1
35734 \begin_layout Plain Layout
35741 \begin_inset Argument 2
35744 \begin_layout Plain Layout
35758 \begin_layout Standard
35765 Insert\SpecialChar menuseparator
35766 Custom Insets\SpecialChar menuseparator
35792 \begin_layout Standard
35793 \begin_inset Note Greyedout
35796 \begin_layout Plain Layout
35805 inset is empty or contains other characters than numbers you will get LaTeX
35806 errors when viewing/exporting the document.
35814 \begin_layout Standard
35815 \begin_inset VSpace bigskip
35824 Insert\SpecialChar menuseparator
35825 Custom Insets\SpecialChar menuseparator
35828 ) is used to scale the content to a defined width and height.
35833 inset has the mandatory inset
35837 and the optional inset
35841 (inserted via the menu
35843 Insert\SpecialChar menuseparator
35847 Input there the width and height, respectively, as value with a unit.
35849 \begin_inset CommandInset ref
35851 reference "tab:Units"
35855 lists the possible units.
35856 If there is an exclamation mark
35860 in of of the two insets, the size is set so that the aspect ratio of the
35861 box content is kept.
35866 inset is used an exclamation mark will internally be used for the height.
35869 \begin_layout Standard
35887 \begin_inset Flex Resizebox
35890 \begin_layout Plain Layout
35891 \begin_inset Argument 1
35894 \begin_layout Plain Layout
35901 \begin_inset Argument 2
35904 \begin_layout Plain Layout
35916 \begin_inset Newline newline
35940 \begin_inset Flex Resizebox
35943 \begin_layout Plain Layout
35944 \begin_inset Argument 1
35947 \begin_layout Plain Layout
35954 \begin_inset Argument 2
35957 \begin_layout Plain Layout
35971 \begin_layout Standard
35972 \begin_inset Note Greyedout
35975 \begin_layout Plain Layout
35984 inset is empty or contains an invalid unit you will get LaTeX errors when
35985 viewing/exporting the document.
35993 \begin_layout Standard
35994 \begin_inset VSpace bigskip
36000 \begin_layout Standard
36001 The boxes can be combined in any order.
36010 which is in turn inside a
36017 \begin_layout Standard
36020 \begin_inset Flex Rotatebox
36023 \begin_layout Plain Layout
36024 \begin_inset Argument 1
36027 \begin_layout Plain Layout
36034 \begin_inset Argument 2
36037 \begin_layout Plain Layout
36044 \begin_inset Flex Resizebox
36047 \begin_layout Plain Layout
36048 \begin_inset Argument 1
36051 \begin_layout Plain Layout
36058 \begin_inset Flex Reflectbox
36061 \begin_layout Plain Layout
36080 \begin_layout Standard
36082 Images, tables, and inline formulas are allowed as box content:
36085 \begin_layout Standard
36088 \begin_inset Flex Resizebox
36091 \begin_layout Plain Layout
36092 \begin_inset Argument 1
36095 \begin_layout Plain Layout
36102 \begin_inset Flex Reflectbox
36105 \begin_layout Plain Layout
36106 \begin_inset Graphics
36107 filename clipart/platypus.eps
36124 \begin_inset Flex Resizebox
36127 \begin_layout Plain Layout
36128 \begin_inset Argument 1
36131 \begin_layout Plain Layout
36138 \begin_inset Flex Reflectbox
36141 \begin_layout Plain Layout
36142 \begin_inset Tabular
36143 <lyxtabular version="3" rows="2" columns="2">
36144 <features tabularvalignment="middle">
36145 <column alignment="center" valignment="top">
36146 <column alignment="center" valignment="top">
36148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36151 \begin_layout Plain Layout
36157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36160 \begin_layout Plain Layout
36168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36171 \begin_layout Plain Layout
36177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36180 \begin_layout Plain Layout
36202 \begin_inset Flex Resizebox
36205 \begin_layout Plain Layout
36206 \begin_inset Argument 1
36209 \begin_layout Plain Layout
36216 \begin_inset Flex Reflectbox
36219 \begin_layout Plain Layout
36220 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36234 \begin_inset Index idx
36237 \begin_layout Plain Layout
36244 \begin_inset Index idx
36247 \begin_layout Plain Layout
36248 Table Customization ! Scaling
36256 \begin_layout Standard
36257 When the global formula style
36261 is used in the document
36265 \begin_layout Plain Layout
36267 \begin_inset Quotes eld
36271 \begin_inset Quotes erd
36274 is added to the document class options.
36279 , display style formulas can also be scaled.
36282 \begin_layout Chapter
36283 Objects Surrounded by Text
36284 \begin_inset Index idx
36287 \begin_layout Plain Layout
36296 \begin_layout Section
36298 \begin_inset CommandInset label
36300 name "sec:Wrap-Floats"
36305 \begin_inset Index idx
36308 \begin_layout Plain Layout
36309 Floats ! Wrap Floats
36315 \begin_inset Index idx
36318 \begin_layout Plain Layout
36319 Surrounded by text ! Wrap Floats
36327 \begin_layout Standard
36328 \begin_inset Wrap figure
36335 \begin_layout Plain Layout
36336 \begin_inset Graphics
36337 filename clipart/mobius.eps
36339 scaleBeforeRotation
36340 rotateOrigin center
36347 \begin_layout Plain Layout
36348 \begin_inset Caption Standard
36350 \begin_layout Plain Layout
36351 \begin_inset CommandInset label
36353 name "fig:This-is-a"
36357 This is a figure wrap float.
36367 This float type is used if you want to wrap text around a figure or table
36368 so that it only occupies some fraction of the column width.
36369 It can be inserted using the menu
36371 Insert\SpecialChar menuseparator
36372 Floats\SpecialChar menuseparator
36374 \begin_inset space ~
36378 \begin_inset space ~
36386 \begin_inset space ~
36390 \begin_inset space ~
36395 if the \SpecialChar LaTeX
36401 \begin_inset Index idx
36404 \begin_layout Plain Layout
36406 -packages ! wrapfig
36415 \begin_layout Plain Layout
36416 Installing a \SpecialChar LaTeX
36417 -package is explained it in the
36421 \begin_inset space ~
36431 The settings of the float can be modified by right-clicking on the float
36433 The mandatory settings are the float
36446 that specifies how much the float is set into the paragraph
36447 \begin_inset space \thinspace{}
36451 \begin_inset space \thinspace{}
36454 page margin, and the
36457 \begin_inset space ~
36462 that specifies how many text lines the float will approximately need.
36463 The line span is often hard to approximate; so it is better only to use
36464 it when you encounter float placement problems.
36465 You can furthermore decide if \SpecialChar LaTeX
36466 is allowed to let the float float within
36467 the paragraph or to surrounding paragraphs.
36469 \begin_inset space ~
36473 \begin_inset CommandInset ref
36475 reference "fig:This-is-a"
36479 is an example text wrap float with a width of 40
36480 \begin_inset space \thinspace{}
36484 \begin_inset space \thinspace{}
36487 cm overhang, set to the left.
36490 \begin_layout Standard
36491 \begin_inset Note Greyedout
36494 \begin_layout Plain Layout
36500 \begin_inset space ~
36503 wrap float floats are fragile! E.
36504 \begin_inset space \thinspace{}
36508 \begin_inset space \space{}
36511 having a figure too close to the bottom of the page can mess things up in
36512 such a way that the float does not appear in the output or that it is placed
36513 over some other text.
36521 \begin_layout Standard
36522 In general, the following applies for wrap floats:
36525 \begin_layout Itemize
36526 They should not be placed in paragraphs that run over a page break.
36527 That means that wrap floats are better inserted in their exact place when
36528 the document is almost finished and you are able to estimate where page
36529 breaks will appear.
36532 \begin_layout Itemize
36533 They should either be placed in their own paragraph before the paragraph
36534 where they should wrap into or within a paragraph.
36537 \begin_layout Itemize
36538 In consecutive paragraphs they may cause troubles, so ensure that there
36539 is a text paragraph between them as separator.
36542 \begin_layout Itemize
36543 They are not allowed in section headings or tables.
36546 \begin_layout Itemize
36547 Their numbering and referencing works as described in chap.
36548 \begin_inset space \thinspace{}
36552 \begin_inset CommandInset ref
36554 reference "chap:Floats"
36561 \begin_layout Section
36562 Surrounded Fixed Objects
36563 \begin_inset Index idx
36566 \begin_layout Plain Layout
36567 Surrounded by text ! Fixed objects
36575 \begin_layout Standard
36576 The wrap floats described in sec.
36577 \begin_inset space \thinspace{}
36581 \begin_inset CommandInset ref
36583 reference "sec:Wrap-Floats"
36587 have these positions in the paragraph:
36588 \begin_inset Separator latexpar
36594 \begin_layout Standard
36597 \begin_inset Tabular
36598 <lyxtabular version="3" rows="2" columns="2">
36599 <features tabularvalignment="middle">
36600 <column alignment="center" valignment="top">
36601 <column alignment="center" valignment="top">
36603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36606 \begin_layout Plain Layout
36609 arg "dialog-show-new-inset graphics"
36617 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36620 \begin_layout Plain Layout
36628 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36631 \begin_layout Plain Layout
36637 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36640 \begin_layout Plain Layout
36652 \begin_inset Tabular
36653 <lyxtabular version="3" rows="2" columns="2">
36654 <features tabularvalignment="middle">
36655 <column alignment="center" valignment="top">
36656 <column alignment="center" valignment="top">
36658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36661 \begin_layout Plain Layout
36667 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36670 \begin_layout Plain Layout
36673 arg "dialog-show-new-inset graphics"
36683 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36686 \begin_layout Plain Layout
36692 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36695 \begin_layout Plain Layout
36709 \begin_layout Standard
36710 To get an object exactly at the position where it is inserted, for example
36711 to get one of these positions:
36712 \begin_inset VSpace defskip
36718 \begin_layout Standard
36721 \begin_inset Tabular
36722 <lyxtabular version="3" rows="2" columns="2">
36723 <features tabularvalignment="middle">
36724 <column alignment="center" valignment="top">
36725 <column alignment="center" valignment="top">
36727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36730 \begin_layout Plain Layout
36736 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36739 \begin_layout Plain Layout
36747 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36750 \begin_layout Plain Layout
36753 arg "dialog-show-new-inset graphics"
36761 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36764 \begin_layout Plain Layout
36776 \begin_inset Tabular
36777 <lyxtabular version="3" rows="2" columns="2">
36778 <features tabularvalignment="middle">
36779 <column alignment="center" valignment="top">
36780 <column alignment="center" valignment="top">
36782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36785 \begin_layout Plain Layout
36791 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36794 \begin_layout Plain Layout
36802 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36805 \begin_layout Plain Layout
36811 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36814 \begin_layout Plain Layout
36817 arg "dialog-show-new-inset graphics"
36831 \begin_inset Tabular
36832 <lyxtabular version="3" rows="2" columns="3">
36833 <features tabularvalignment="middle">
36834 <column alignment="center" valignment="top">
36835 <column alignment="center" valignment="top">
36836 <column alignment="center" valignment="top">
36838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36841 \begin_layout Plain Layout
36847 <cell alignment="center" valignment="top" topline="true" usebox="none">
36850 \begin_layout Plain Layout
36853 arg "dialog-show-new-inset graphics"
36861 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36864 \begin_layout Plain Layout
36872 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36875 \begin_layout Plain Layout
36881 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36884 \begin_layout Plain Layout
36890 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36893 \begin_layout Plain Layout
36905 \begin_inset Tabular
36906 <lyxtabular version="3" rows="2" columns="3">
36907 <features tabularvalignment="middle">
36908 <column alignment="center" valignment="top">
36909 <column alignment="center" valignment="top">
36910 <column alignment="center" valignment="top">
36912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36915 \begin_layout Plain Layout
36921 <cell alignment="center" valignment="top" topline="true" usebox="none">
36924 \begin_layout Plain Layout
36930 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36933 \begin_layout Plain Layout
36941 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36944 \begin_layout Plain Layout
36950 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36953 \begin_layout Plain Layout
36956 arg "dialog-show-new-inset graphics"
36964 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36967 \begin_layout Plain Layout
36981 \begin_layout Standard
36984 \begin_inset Tabular
36985 <lyxtabular version="3" rows="3" columns="2">
36986 <features tabularvalignment="middle">
36987 <column alignment="center" valignment="top">
36988 <column alignment="center" valignment="top">
36990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36993 \begin_layout Plain Layout
36999 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37002 \begin_layout Plain Layout
37010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37013 \begin_layout Plain Layout
37016 arg "dialog-show-new-inset graphics"
37024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37027 \begin_layout Plain Layout
37035 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37038 \begin_layout Plain Layout
37044 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37047 \begin_layout Plain Layout
37059 \begin_inset Tabular
37060 <lyxtabular version="3" rows="3" columns="3">
37061 <features tabularvalignment="middle">
37062 <column alignment="center" valignment="top">
37063 <column alignment="center" valignment="top">
37064 <column alignment="center" valignment="top">
37066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37069 \begin_layout Plain Layout
37075 <cell alignment="center" valignment="top" topline="true" usebox="none">
37078 \begin_layout Plain Layout
37084 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37087 \begin_layout Plain Layout
37095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37098 \begin_layout Plain Layout
37104 <cell alignment="center" valignment="top" usebox="none">
37107 \begin_layout Plain Layout
37110 arg "dialog-show-new-inset graphics"
37118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37121 \begin_layout Plain Layout
37129 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37132 \begin_layout Plain Layout
37138 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37141 \begin_layout Plain Layout
37147 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37150 \begin_layout Plain Layout
37162 \begin_inset Tabular
37163 <lyxtabular version="3" rows="3" columns="2">
37164 <features tabularvalignment="middle">
37165 <column alignment="center" valignment="top">
37166 <column alignment="center" valignment="top">
37168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37171 \begin_layout Plain Layout
37177 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37180 \begin_layout Plain Layout
37188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37191 \begin_layout Plain Layout
37197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37200 \begin_layout Plain Layout
37203 arg "dialog-show-new-inset graphics"
37213 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37216 \begin_layout Plain Layout
37222 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37225 \begin_layout Plain Layout
37239 \begin_layout Standard
37241 you can use the \SpecialChar LaTeX
37247 \begin_inset Index idx
37250 \begin_layout Plain Layout
37252 -packages ! picinpar
37258 Here is an example:
37261 \begin_layout Standard
37265 \begin_layout Plain Layout
37275 \begin_inset Note Note
37278 \begin_layout Plain Layout
37279 The following section will only be displayed when the \SpecialChar LaTeX
37292 \begin_layout Standard
37296 \begin_layout Plain Layout
37300 begin{window}[2,c,{
37306 \begin_inset Graphics
37307 filename clipart/mobius.eps
37310 scaleBeforeRotation
37311 rotateOrigin center
37319 \begin_layout Plain Layout
37324 \begin_layout Plain Layout
37333 It was in the spring of the year 1894 that all London was interested, and
37334 the fashionable world dismayed, by the murder of the Honourable Ronald
37335 Adair under most unusual and inexplicable circumstances.
37336 The public has already learned those particulars of the crime which
37342 \begin_layout Plain Layout
37353 came out in the police investigation, but a good deal was suppressed upon
37354 that occasion, since the case for the prosecution was so overwhelmingly
37355 strong that it was not necessary to bring forward all the facts.
37356 Only now, at the end of nearly ten years, am I allowed to supply those
37357 missing links which make up the whole of that remarkable chain.
37363 \begin_layout Plain Layout
37375 \begin_layout Standard
37379 \begin_layout Plain Layout
37388 Footnote of the paragraph with the fixed object.
37392 \begin_layout Plain Layout
37402 \begin_layout Standard
37403 Surrounded fixed objects are used to let text float around them, at which
37404 the object's position in the paragraph can be determined by the number
37406 In contrary to floats is it not possible to have a numbered caption.
37409 \begin_layout Standard
37410 A fixed object is inserted by adding the command
37413 \begin_layout Standard
37418 begin{window}[2,c,{
37421 \begin_layout Standard
37422 as \SpecialChar TeX
37423 Code at the beginning of the paragraph.
37424 The first parameter in the bracket, here '2', defines the number of lines
37425 above the object, the second, here 'c', the position of the object.
37426 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37427 Behind the command you insert the object.
37428 In this example an image with a width of 40
37429 \begin_inset space \thinspace{}
37432 % of the text column width was inserted.
37433 The object can also be a table, a box or an equation.
37434 Behind the object the command
37437 \begin_layout Standard
37440 },description text]
37441 \begin_inset Newline newline
37447 \begin_layout Standard
37450 \begin_inset Quotes eld
37458 \begin_inset Quotes erd
37461 is in the second line.
37462 The description text is optional.
37463 The text surrounding the object must be in the same paragraph as the object,
37464 so it must begin directly after the
37469 At the end of the paragraph insert the command:
37472 \begin_layout Standard
37480 \begin_layout Standard
37481 Within a paragraph with a fixed object, you cannot insert footnotes in the
37483 You have to use instead the command
37489 inside the paragraph and outside the command
37495 as described in sec.
37496 \begin_inset space \thinspace{}
37500 \begin_inset CommandInset ref
37502 reference "sec:Footnotes"
37509 \begin_layout Standard
37513 \begin_layout Plain Layout
37523 \begin_inset Note Note
37526 \begin_layout Plain Layout
37527 The following will be displayed when the \SpecialChar LaTeX
37540 \begin_layout Standard
37541 You need to install the \SpecialChar LaTeX
37546 to see the following part of this section in the output.
37549 \begin_layout Standard
37553 \begin_layout Plain Layout
37565 \begin_layout Section
37567 \begin_inset Index idx
37570 \begin_layout Plain Layout
37577 \begin_inset Index idx
37580 \begin_layout Plain Layout
37581 Surrounded by text ! Initials
37589 \begin_layout Standard
37590 To use initials, you must have the \SpecialChar LaTeX
37596 \begin_inset Index idx
37599 \begin_layout Plain Layout
37601 -packages ! lettrine
37606 installed and use the module
37610 in your document (menu
37612 Document\SpecialChar menuseparator
37613 Settings\SpecialChar menuseparator
37617 To insert an initial, use the style
37622 This style has a mandatory and two optional arguments.
37623 The arguments are inserted via the
37628 The mandatory argument
37632 contains the letter(s) that is the initial, the argument
37635 \begin_inset space ~
37639 \begin_inset space ~
37644 contains the rest of the word or text of the initial letter(s).
37649 contains parameters to modify the initial.
37650 For more information about the possible parameters see the documentation
37656 \begin_inset CommandInset citation
37663 The style itself contains the text that is surrounding the initial.
37664 The usual style is hereby that the word whose first letter is the initial,
37672 \begin_layout Standard
37673 Here are some examples:
37676 \begin_layout Standard
37680 \begin_layout Plain Layout
37690 \begin_inset Note Note
37693 \begin_layout Plain Layout
37694 The following section will only be displayed when the \SpecialChar LaTeX
37707 \begin_layout Enumerate
37708 No optional argument, the initial is the letter 'I' in the math font
37709 \begin_inset Formula $\mathfrak{Fraktur}$
37713 \begin_inset Separator latexpar
37720 \begin_layout Initial
37721 \begin_inset Argument 2
37724 \begin_layout Plain Layout
37725 \begin_inset Formula $\mathfrak{I}$
37734 \begin_inset Argument 3
37737 \begin_layout Plain Layout
37743 was in the spring of the year 1894 that all London was interested, and
37744 the fashionable world dismayed, by the murder of the Honourable Ronald
37745 Adair under most unusual and inexplicable circumstances.
37746 The public has already learned those particulars of the crime which came
37747 out in the police investigation, but a good deal was suppressed upon that
37748 occasion, since the case for the prosecution was so overwhelmingly strong
37749 that it was not necessary to bring forward all the facts.
37750 \begin_inset Newpage newpage
37757 \begin_layout Enumerate
37758 Only one line is surrounding the initial, which is formed by two letters
37759 in standard font and no text is printed in small caps:
37760 \begin_inset Separator latexpar
37767 \begin_layout Initial
37768 \begin_inset Argument 1
37771 \begin_layout Plain Layout
37778 \begin_inset Argument 2
37781 \begin_layout Plain Layout
37787 was in the spring of the year 1894 that all London was interested, and
37788 the fashionable world dismayed, by the murder of the Honourable Ronald
37789 Adair under most unusual and inexplicable circumstances.
37790 The public has already learned those particulars of the crime which came
37791 out in the police investigation, but a good deal was suppressed upon that
37792 occasion, since the case for the prosecution was so overwhelmingly strong
37793 that it was not necessary to bring forward all the facts.
37797 \begin_layout Enumerate
37798 Magenta, hanging initial over 3
37799 \begin_inset space ~
37802 lines in the math font
37803 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37807 \begin_inset Quotes eld
37810 t was in the spring
37811 \begin_inset Quotes erd
37818 ; to color the initial, you must insert this command before the initial:
37819 \begin_inset Newline newline
37833 \begin_inset Newline newline
37841 \begin_inset Quotes eld
37845 \begin_inset Quotes erd
37849 \begin_inset Quotes eld
37853 \begin_inset Quotes erd
37857 \begin_inset Quotes eld
37861 \begin_inset Quotes erd
37865 \begin_inset Quotes eld
37869 \begin_inset Quotes erd
37873 \begin_inset Quotes eld
37877 \begin_inset Quotes erd
37881 \begin_inset Quotes eld
37885 \begin_inset Quotes erd
37889 \begin_inset Quotes eld
37893 \begin_inset Quotes erd
37897 \begin_inset Quotes eld
37901 \begin_inset Quotes erd
37904 , and add this command to the document preamble:
37905 \begin_inset Newline newline
37912 @ifundefined{textcolor}
37913 \begin_inset Newline newline
37917 \begin_inset space ~
37922 usepackage{color}}{}
37925 \begin_inset Separator latexpar
37932 \begin_layout Standard
37936 \begin_layout Plain Layout
37950 \begin_inset Note Note
37953 \begin_layout Plain Layout
37954 makes the initial magenta
37962 \begin_layout Initial
37963 \begin_inset Argument 1
37966 \begin_layout Plain Layout
37967 lines=3, lhang=0.33, loversize=0.25
37973 \begin_inset Argument 2
37976 \begin_layout Plain Layout
37977 \begin_inset Formula $\mathcal{I}$
37986 \begin_inset Argument 3
37989 \begin_layout Plain Layout
37990 t was in the spring
37995 of the year 1894 that all London was interested, and the fashionable world
37996 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37997 and inexplicable circumstances.
37998 The public has already learned those particulars of the crime which came
37999 out in the police investigation, but a good deal was suppressed upon that
38000 occasion, since the case for the prosecution was so overwhelmingly strong
38001 that it was not necessary to bring forward all the facts.
38005 \begin_layout Standard
38009 \begin_layout Plain Layout
38019 \begin_inset Note Note
38022 \begin_layout Plain Layout
38023 The following will be displayed when the \SpecialChar LaTeX
38036 \begin_layout Standard
38037 You need to install the \SpecialChar LaTeX
38042 to see the following part of this section in the output.
38045 \begin_layout Standard
38049 \begin_layout Plain Layout
38061 \begin_layout Chapter
38062 External Document Parts
38063 \begin_inset Index idx
38066 \begin_layout Plain Layout
38067 External Document Parts
38075 \begin_layout Standard
38078 Insert\SpecialChar menuseparator
38081 you can insert external material into your document.
38085 \begin_layout Description
38087 \begin_inset space ~
38090 Document Another \SpecialChar LyX
38091 document; its content is directly inserted to your document.
38094 \begin_layout Description
38096 \begin_inset space ~
38099 Text A text document; each line is inserted in your document as a separate
38103 \begin_layout Description
38105 \begin_inset space ~
38109 \begin_inset space ~
38113 \begin_inset space ~
38116 Lines A text document; text lines are inserted in your document continuously
38117 but an empty text line creates a new paragraph.
38120 \begin_layout Description
38122 \begin_inset space ~
38125 Material Files in various formats.
38128 \begin_layout Description
38130 \begin_inset space ~
38133 Document \SpecialChar LyX
38134 or \SpecialChar LaTeX
38138 \begin_layout Section
38140 \begin_inset Index idx
38143 \begin_layout Plain Layout
38144 External Document Parts ! External Material
38152 \begin_layout Standard
38153 The external material feature allows you to insert files into your document
38154 without converting them to a format that can be read by the document output
38157 takes care of the necessary conversions.
38158 This is similar to images that can be inserted in various image formats
38159 in \SpecialChar LyX
38161 When you have enabled Instant Preview in \SpecialChar LyX
38162 's preferences under
38165 \begin_inset space ~
38169 \begin_inset space ~
38172 feel\SpecialChar menuseparator
38175 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38179 \begin_layout Standard
38180 External material can be inserted via the
38184 dialog that is accessible with the menu
38186 Insert\SpecialChar menuseparator
38187 File\SpecialChar menuseparator
38189 \begin_inset space ~
38195 Currently the following file types (
38202 \begin_layout Description
38204 \begin_inset space ~
38207 diagram This template supports chess position diagrams made with the program
38211 \begin_inset CommandInset href
38214 target "http://en.wikipedia.org/wiki/XBoard"
38223 \begin_layout Description
38225 \begin_inset space ~
38228 diagram This template supports diagrams created with the program
38231 \begin_inset CommandInset href
38234 target "http://en.wikipedia.org/wiki/Dia_(software)"
38243 \begin_layout Description
38244 Spreadsheet With this template you can insert spreadsheets
38245 \begin_inset space \thinspace{}
38249 \begin_inset space \thinspace{}
38252 tables in the format of
38255 \begin_inset CommandInset href
38258 target "http://en.wikipedia.org/wiki/Gnumeric"
38265 \begin_inset CommandInset href
38267 name "OpenDocument"
38268 target "http://en.wikipedia.org/wiki/OpenDocument"
38273 \begin_inset CommandInset href
38275 name "Microsoft Office XML"
38276 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38281 \begin_inset CommandInset href
38283 name "Office Open XML"
38284 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38289 For this feature \SpecialChar LyX
38290 must have found the program
38294 during its configuration.
38295 This program is part of Gnumeric, so that you must have Gnumeric installed,
38296 also if you don't have tables in the Gnumeric format.
38297 For examples and possible limitations have a look at \SpecialChar LyX
38305 \begin_layout Description
38307 \begin_inset space ~
38311 \begin_inset space ~
38314 music This template is used for music notation typeset with the program
38315 \begin_inset Newline linebreak
38321 \begin_inset CommandInset href
38324 target "http://en.wikipedia.org/wiki/LilyPond"
38331 For \SpecialChar LyX
38332 's extended support for LilyPond have a look at \SpecialChar LyX
38340 \begin_layout Description
38342 \begin_inset space ~
38345 pages With this template you can insert PDF documents to your document.
38346 To specify the range of pages that should be included, use the option
38356 LaTeX and LyX options
38359 The argument of this option is a comma separated list, containing page
38360 numbers (insert as option
38364 ), ranges of page numbers (
38368 ) or any combination.
38369 To insert empty pages use {}.
38371 \begin_inset space \thinspace{}
38375 \begin_inset space ~
38380 pages={3,{},8-11,15}
38382 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38383 Page ranges are specified in the syntax
38392 This selects all pages from
38405 defaults to the first page; omitting
38409 defaults to the last page of the document.
38410 The last page can also be selected with the keyword
38415 (This is only permitted in a page range.) So
38419 will insert all pages of the document and
38423 will insert all pages in reverse order.
38424 If the pages option is not specified, only the first page of the PDF is
38426 \begin_inset Newline newline
38433 inserts the pages with their original size, if this option is not given,
38434 the pages will be resized to fith the width of the page of your document.
38439 you can specify the width and height of the input pages and their rotation.
38440 If another width than 100
38441 \begin_inset space \thinspace{}
38444 Scale% is used, the option
38448 will be overwritten.
38449 For more info and possible options, have a look into the documentation
38450 of the \SpecialChar LaTeX
38456 \begin_inset CommandInset citation
38463 \begin_inset Index idx
38466 \begin_layout Plain Layout
38468 -packages ! pdfpages
38474 \begin_inset Newline newline
38477 To use this template in a
38481 presentation you need to first insert an
38485 environment and in a subsequent paragraph a \SpecialChar TeX
38486 Code box containing the command
38491 setbeamertemplate{background canvas}{}
38494 Then you can insert as many paragraphs containing the PDFPages template
38496 Behind the included PDF pages you can resume the Beamer presentation by
38497 beginning a new frame or by starting a new section.
38498 To avoid stray blank pages prior to the PDF pages, make sure to use the
38503 alignment for the paragraph containing the template.
38504 \begin_inset Newline newline
38507 Here is an included PDF which is rotated by -5°:
38508 \begin_inset External
38510 filename clipart/Abstract.pdf
38511 extra LaTeX "noautoscale, pages=-"
38513 rotateOrigin bottomleft
38520 \begin_layout Description
38522 \begin_inset space ~
38525 image This can be used for bitmap images.
38526 The image can be treated in the
38530 dialog like the images that are usually included via the
38534 dialog as described in section
38535 \begin_inset space ~
38539 \begin_inset CommandInset ref
38541 reference "sec:Graphics-Dialog"
38546 Here is an inserted raster image:
38547 \begin_inset External
38548 template RasterImage
38549 filename clipart/ToolbarEnvBox.png
38556 \begin_layout Description
38558 \begin_inset space ~
38561 graphics This can be used for vector graphics.
38562 The image can be treated in the
38566 dialog like the images that are usually included via the
38570 dialog as described in section
38571 \begin_inset space ~
38575 \begin_inset CommandInset ref
38577 reference "sec:Graphics-Dialog"
38582 Here is an inserted vector graphics:
38583 \begin_inset External
38584 template VectorGraphics
38585 filename clipart/SVG-Drawing.svg
38593 \begin_layout Description
38595 \begin_inset space ~
38598 figure This template supports images created with the program
38601 \begin_inset CommandInset href
38604 target "http://en.wikipedia.org/wiki/Xfig"
38613 \begin_layout Description
38615 \begin_inset space ~
38618 figure This experimental template supports images created with the program
38620 \begin_inset CommandInset href
38623 target "https://fi.wikipedia.org/wiki/Inkscape"
38628 It works very similarly to Xfig support, except that Inkscape is a more
38629 modern image editor than Xfig, which uses Scalable Vector Graphics (SVG)
38630 as its native format.
38634 \begin_layout Standard
38635 LyX will process the image file in much the same way as it does an Xfig
38636 image, extracting the text into a separate TeX file for the text strings,
38637 and a PDF file for the rest.
38640 \begin_layout Description
38641 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
38642 with multi-page PDFs, the TeX file will sometimes reference more pages
38643 than the PDF file contains.
38644 This is the version that ships with Ubuntu 16.04.
38645 Its use with LyX can therefore not be recommended, until the bug is fixed
38649 \begin_layout Plain Layout
38650 A workaround for those who have already SVG figures in their document is,
38651 to manually do the LaTeX+PDF output from Inkscape, edit the
38655 file to remove the erroneous references, and
38661 it directly into LyX, i.e., not use the external-template mechanism:
38664 \begin_layout Plain Layout
38665 \begin_inset Graphics
38666 filename workaround.png
38674 \begin_layout Plain Layout
38675 Here, the child document input inset (
38677 Insert\SpecialChar menuseparator
38678 File\SpecialChar menuseparator
38681 ) was used, which allows you do directly edit the
38685 file in a text editor.
38686 The LaTeX output is based on this edited snippet as re-generation from
38687 the SVG file has been commented out.
38696 \begin_layout Standard
38697 The reason why we would use this complicated process at all, like in the
38698 case of Xfig, is that it makes the text strings inside the figure of the
38699 same font type and attributes as the surrounding text, which looks so much
38701 With Inkscape, even the
38705 of the font is taken from the surrounding LaTeX document – in Xfig, you
38706 have to set it by hand to be the same.
38707 Of course you can always embed LaTeX modifiers like
38720 into your figure text strings.
38725 \begin_layout Standard
38726 \begin_inset Float table
38732 \begin_layout Plain Layout
38733 \begin_inset Caption Standard
38735 \begin_layout Plain Layout
38736 \begin_inset CommandInset label
38738 name "tab:Comparison-of-the"
38742 Comparison of the date input methods.
38750 \begin_layout Plain Layout
38752 \begin_inset Tabular
38753 <lyxtabular version="3" rows="4" columns="3">
38754 <features tabularvalignment="middle">
38755 <column alignment="center" valignment="top">
38756 <column alignment="center" valignment="top">
38757 <column alignment="center" valignment="top">
38759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38762 \begin_layout Plain Layout
38768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38771 \begin_layout Plain Layout
38774 Insert\SpecialChar menuseparator
38780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38783 \begin_layout Plain Layout
38795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38798 \begin_layout Plain Layout
38805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38808 \begin_layout Plain Layout
38814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38817 \begin_layout Plain Layout
38818 as \SpecialChar TeX
38826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38829 \begin_layout Plain Layout
38836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38839 \begin_layout Plain Layout
38845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38848 \begin_layout Plain Layout
38856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38859 \begin_layout Plain Layout
38865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38868 \begin_layout Plain Layout
38874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38877 \begin_layout Plain Layout
38896 \begin_layout Standard
38897 When you use the option
38909 dialog, only the path to the inserted file is shown in the output.
38910 \begin_inset Newline newline
38913 External material is displayed in \SpecialChar LyX
38914 either as a box like this:
38915 \begin_inset Graphics
38916 filename clipart/ExternalMaterial.png
38918 scaleBeforeRotation
38922 or as image, depending on the option
38928 LaTeX and LyX options
38933 \begin_layout Standard
38940 manual explains how you can define your own templates.
38943 \begin_layout Section
38945 \begin_inset CommandInset label
38947 name "sec:Child-Documents"
38952 \begin_inset Index idx
38955 \begin_layout Plain Layout
38956 External Document Parts ! Child Documents
38962 \begin_inset Index idx
38965 \begin_layout Plain Layout
38974 \begin_layout Standard
38975 Child documents are used if you have a long document consisting of several
38976 larger parts or sections.
38977 For maintenance it is often useful and sometimes even required to split
38978 the document into several files that can be revised separately.
38979 The different documents are then the so called
38980 \begin_inset Quotes eld
38984 \begin_inset Quotes erd
38987 , and a master document connects them to print the full document or parts
38989 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38991 the bibliography, and labels for cross-references.
38994 \begin_layout Standard
38995 To be able to work on child documents without the need to open their master,
38996 specify in the child document the master in the menu
38998 Document\SpecialChar menuseparator
38999 Settings\SpecialChar menuseparator
39001 \begin_inset space ~
39007 This master document will then be used in the background by \SpecialChar LyX
39009 the child document.
39012 \begin_layout Standard
39013 Included documents are displayed in \SpecialChar LyX
39014 as a box like this:
39015 \begin_inset Graphics
39016 filename clipart/ChildDocument.png
39017 scaleBeforeRotation
39021 To include child documents in a master document use the menu
39023 Insert\SpecialChar menuseparator
39024 File\SpecialChar menuseparator
39026 \begin_inset space ~
39032 A dialog pops up where you can choose between four include methods:
39035 \begin_layout Description
39036 Include You can include \SpecialChar LyX
39037 and \SpecialChar LaTeX
39047 dialog, the included document will be opened in \SpecialChar LyX
39048 in a new file tab so that
39050 \begin_inset Newline newline
39056 \begin_layout Standard
39057 Here is a child document inserted using
39062 \begin_inset CommandInset include
39063 LatexCommand include
39064 filename "DummyDocument1.lyx"
39071 \begin_layout Standard
39072 The section numbering includes the sections of the included files in the
39073 order they are inserted in the master document.
39074 The included example document has for example a subsection that is numbered
39075 as a subsection of this section.
39076 Labels of included documents can be referenced: Subsection
39077 \begin_inset space ~
39081 \begin_inset CommandInset ref
39083 reference "subsec:External-Subsection-1"
39090 \begin_layout Standard
39091 The preamble of the child document is ignored; only the preamble of the
39092 master document is used.
39093 Branches in child documents will be ignored by the master document when
39094 the master document does not have a branch with the same name.
39095 Included documents are inserted starting on a new page and ending with
39099 \begin_layout Standard
39100 \begin_inset Note Greyedout
39103 \begin_layout Plain Layout
39108 If you have included a \SpecialChar LyX
39109 or \SpecialChar LaTeX
39110 file, you are warned when you export/view the
39111 document in case the child document uses another document class than the
39112 master document as this will lead to unexpected outputs.
39120 \begin_layout Description
39121 Input This method is very similar to the Include method.
39122 The differences are:
39123 \begin_inset Separator latexpar
39130 \begin_layout Itemize
39131 Input files don't start with a new page and don't end with a page break.
39134 \begin_layout Itemize
39135 Input files can be previewed in \SpecialChar LyX
39139 \begin_inset space ~
39144 is enabled in \SpecialChar LyX
39145 's preferences under
39148 \begin_inset space ~
39152 \begin_inset space ~
39155 feel\SpecialChar menuseparator
39161 \begin_layout Itemize
39162 You cannot exclude Input files via the menu
39164 Document\SpecialChar menuseparator
39165 Settings\SpecialChar menuseparator
39172 \begin_layout Standard
39173 Here is a child document inserted using
39178 \begin_inset CommandInset include
39180 filename "DummyDocument2.lyx"
39187 \begin_layout Description
39188 Verbatim With this method any text file can be included.
39189 The file is shown in the output with its source code; no command used in
39190 the text is invoked.
39191 You can use the option
39193 Mark spaces in output
39195 that displays the character
39196 \begin_inset Quotes eld
39203 \begin_layout Plain Layout
39213 \begin_inset Quotes erd
39216 for every space character in the source code.
39217 The difference from the method via the menu
39219 Insert\SpecialChar menuseparator
39220 File\SpecialChar menuseparator
39222 \begin_inset space ~
39227 is that the document content is not shown in \SpecialChar LyX
39231 \begin_layout Standard
39232 Here is a child document inserted as Verbatim:
39233 \begin_inset CommandInset include
39234 LatexCommand verbatiminput
39235 filename "DummyTextDocument.txt"
39240 \begin_inset VSpace bigskip
39243 Here is a child document inserted as Verbatim using the
39245 Mark spaces in output
39248 \begin_inset CommandInset include
39249 LatexCommand verbatiminput*
39250 filename "DummyTextDocument.txt"
39257 \begin_layout Standard
39258 \begin_inset VSpace bigskip
39264 \begin_layout Standard
39265 \begin_inset Note Greyedout
39268 \begin_layout Plain Layout
39273 As you can see in the examples above, the text of the documents included
39278 is not broken at the end of the document lines.
39286 \begin_layout Description
39287 Listings This type is described in chapter
39288 \begin_inset space ~
39292 \begin_inset CommandInset ref
39294 reference "cha:Program-Code-Listings"
39301 \begin_layout Standard
39302 \begin_inset Note Greyedout
39305 \begin_layout Plain Layout
39310 Including the same document twice in a document using different methods
39311 could cause \SpecialChar LaTeX
39320 \begin_layout Standard
39321 If you want to view/export only selected children of your master document,
39322 either because you want to save compiling time or because you want to distribut
39323 e single chapters of the book you are just writing, you can exclude children
39325 This is done via the menu
39327 Document\SpecialChar menuseparator
39328 Settings\SpecialChar menuseparator
39332 You can exclude\SpecialChar breakableslash
39333 include children by double-clicking on the
39337 column of the respective child document in the list (note that this only
39338 works for documents embedded via
39339 \begin_inset Quotes eld
39343 \begin_inset Quotes erd
39347 \begin_inset Quotes eld
39351 \begin_inset Quotes erd
39357 Maintain counters and references
39359 is enabled, \SpecialChar LyX
39360 will assure that all page numbers, references etc.
39361 \begin_inset space ~
39364 are correct as if the whole document was processed.
39365 This is useful if you want the selected sub-documents to look exactly as
39366 in the context of the whole document.
39367 However, \SpecialChar LyX
39368 needs to process the whole document in the background for this
39370 So if you want to save compile time and if counters and references do not
39371 need to be correct, disable this checkbox.
39374 \begin_layout Standard
39375 Alternatively, you can put each included file into a branch.
39379 \begin_layout Plain Layout
39380 Branches are described in section
39384 of the \SpecialChar LyX
39394 By enabling\SpecialChar breakableslash
39395 disabling branches you can decide which included files will
39396 appear in the output.
39397 This has the advantage that it also works with Input'ed sub-documents.
39398 However, counters and references will not be maintained with this approach.
39401 \begin_layout Chapter
39402 Program Code Listings
39403 \begin_inset CommandInset label
39405 name "cha:Program-Code-Listings"
39410 \begin_inset Index idx
39413 \begin_layout Plain Layout
39420 \begin_inset Index idx
39423 \begin_layout Plain Layout
39430 \begin_inset Index idx
39433 \begin_layout Plain Layout
39442 \begin_layout Standard
39443 To include and typeset program code you can use the
39447 inset that can be inserted via the menu
39449 Insert\SpecialChar menuseparator
39453 The \SpecialChar LaTeX
39459 \begin_inset Index idx
39462 \begin_layout Plain Layout
39464 -packages ! listings
39469 provides a powerful and flexible way to insert program source code into
39473 \begin_layout Standard
39474 Right-clicking on a listings inset opens the context menu containing where
39475 you can set the listings format.
39478 \begin_layout Standard
39479 By default, a listing starts a new paragraph in the output.
39480 The placement option
39483 \begin_inset space ~
39488 prints the listing inline like this:
39489 \begin_inset listings
39490 lstparams "language={C++}"
39494 \begin_layout Plain Layout
39502 \begin_inset Newline newline
39509 creates a listings float where you can specify the placement options
39510 \begin_inset Quotes eld
39518 \begin_inset Quotes erd
39522 \begin_inset Quotes eld
39530 \begin_inset Quotes erd
39534 \begin_inset Quotes eld
39542 \begin_inset Quotes erd
39546 \begin_inset Quotes eld
39554 \begin_inset Quotes erd
39557 corresponding to the float placement options described in section
39558 \begin_inset space ~
39562 \begin_inset CommandInset ref
39564 reference "sec:Float-Placement"
39569 The placement options can be mixed and are inserted without any separation,
39571 \begin_inset space \thinspace{}
39575 \begin_inset space \space{}
39579 \begin_inset Quotes eld
39587 \begin_inset Quotes erd
39592 \begin_inset Quotes eld
39596 \begin_inset Quotes erd
39599 has sometimes no effect, but you don't need to use the
39603 option in this case as also non-float listings can have captions and be
39607 \begin_layout Standard
39608 You can add captions to listings with the menu
39610 Insert\SpecialChar menuseparator
39614 Listings can be referenced like floats: Listing
39615 \begin_inset space ~
39619 \begin_inset CommandInset ref
39621 reference "lst:Example-Listing"
39626 A list of listings which contains all listings with captions can be created
39629 Insert\SpecialChar menuseparator
39631 \begin_inset space ~
39635 \begin_inset space ~
39638 TOC\SpecialChar menuseparator
39642 The list entries are the listing caption and the listing number.
39645 \begin_layout Standard
39646 \begin_inset listings
39647 lstparams "language=Python"
39651 \begin_layout Plain Layout
39653 \begin_inset Caption Standard
39655 \begin_layout Plain Layout
39656 \begin_inset CommandInset label
39658 name "lst:Example-Listing"
39662 Example Listing float
39667 # Example listing float
39670 \begin_layout Plain Layout
39675 \begin_layout Plain Layout
39677 'this is a python function'
39680 \begin_layout Plain Layout
39690 \begin_layout Standard
39691 When you have set a programming language in the listings dialog, the keywords
39692 of this language will be recognized and specially typeset in the output.
39693 In the example listings the Python keyword
39694 \begin_inset Quotes eld
39698 \begin_inset Quotes erd
39701 is recognized and printed bold in the output.
39704 \begin_layout Standard
39705 \begin_inset Note Greyedout
39708 \begin_layout Plain Layout
39713 If you don't get bold keywords when using typewriter fonts, your
39717 font probably doesn't provide a bold shape.
39718 In this case select a different one in the menu
39720 Document\SpecialChar menuseparator
39721 Settings\SpecialChar menuseparator
39733 provide bold shapes.)
39741 \begin_layout Standard
39745 \begin_inset space ~
39750 of the listings dialog you can specify the line numbering style.
39751 You can insert a number to specify which lines are numbered in the field
39758 \begin_inset space \thinspace{}
39762 \begin_inset space \space{}
39766 \begin_inset Quotes eld
39770 \begin_inset Quotes erd
39773 , only every 3rd line will be numbered.
39776 \begin_layout Standard
39777 You can furthermore specify a range of lines; only these will then appear
39781 Extended character table
39783 should be used when you use national characters like the German umlauts
39785 \begin_inset Newline newline
39788 Here is an example listing with left line numbering, step
39789 \begin_inset Quotes eld
39793 \begin_inset Quotes erd
39797 \begin_inset Quotes eld
39801 \begin_inset Quotes erd
39805 \begin_inset Quotes eld
39808 Extended character table
39809 \begin_inset Quotes erd
39813 \begin_inset Quotes eld
39817 \begin_inset space ~
39821 \begin_inset space ~
39825 \begin_inset Quotes erd
39829 \begin_inset space \thinspace{}
39833 \begin_inset space \thinspace{}
39839 \begin_layout Standard
39840 \begin_inset listings
39841 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39845 \begin_layout Plain Layout
39850 \begin_layout Plain Layout
39852 'this is a python function'
39855 \begin_layout Plain Layout
39860 \begin_layout Plain Layout
39865 \begin_layout Plain Layout
39867 'This is a German word: Tschüß'
39870 \begin_layout Plain Layout
39875 \begin_layout Plain Layout
39880 \begin_layout Plain Layout
39882 'this is a python function'
39885 \begin_layout Plain Layout
39895 \begin_layout Standard
39896 When you have tabulators in your listing, you can specify the number of
39897 characters that are spanned by a tabulator in the field
39900 \begin_inset space ~
39908 \begin_layout Standard
39909 \begin_inset Note Greyedout
39912 \begin_layout Plain Layout
39917 Due to a bug in the
39921 package the line numbering is shifted by a line by every previous listing.
39922 That's the reason why the lines 2 and 5 are numbered in the above listing
39923 and not the lines 3 and 6.
39931 \begin_layout Standard
39932 \begin_inset VSpace bigskip
39938 \begin_layout Standard
39939 It is also possible to print lines from a file as listing.
39940 To do this, use the menu
39942 Insert\SpecialChar menuseparator
39943 File\SpecialChar menuseparator
39946 and choose the type
39954 \begin_layout Plain Layout
39955 The other child document types are described in section
39956 \begin_inset space ~
39960 \begin_inset CommandInset ref
39962 reference "sec:Child-Documents"
39971 In the child document dialog you can specify the listing parameters in
39973 To show a list of all available parameters, type in a question mark
39974 \begin_inset Quotes eld
39978 \begin_inset Quotes erd
39984 \begin_layout Standard
39985 To reference child document listings, write a label text into the corresponding
39986 field of the child document dialog.
39987 The label can then be referenced using the menu
39989 Insert\SpecialChar menuseparator
39995 \begin_layout Standard
39997 \begin_inset space ~
40001 \begin_inset CommandInset ref
40003 reference "lst:file-listing"
40007 is an example for a listing of a file; there the lines 10
40008 \begin_inset space \thinspace{}
40012 \begin_inset space \thinspace{}
40015 15 of this \SpecialChar LyX
40019 \begin_layout Standard
40020 \begin_inset CommandInset include
40021 LatexCommand lstinputlisting
40022 filename "EmbeddedObjects.lyx"
40023 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40030 \begin_layout Standard
40031 \begin_inset VSpace bigskip
40037 \begin_layout Standard
40038 Inserting a formula into a listing can be done the following way:
40041 \begin_layout Enumerate
40042 Open the listings dialog and add
40043 \begin_inset Newline newline
40051 \begin_inset Newline newline
40054 to the field of the
40061 \begin_layout Enumerate
40062 Create a formula outside the listing
40065 \begin_layout Enumerate
40066 Copy the content of the formula (not the formula inset) to the clipboard
40076 \begin_layout Enumerate
40077 In the listing write
40078 \begin_inset Quotes eld
40086 \begin_inset Quotes erd
40089 and copy from the clipboard between the dollar-signs (shortcut
40098 \begin_layout Standard
40099 \begin_inset listings
40100 lstparams "language=Python,mathescape=true"
40104 \begin_layout Plain Layout
40106 \begin_inset Caption Standard
40108 \begin_layout Plain Layout
40109 Example Listing float containing a formula
40114 # Example listing float
40117 \begin_layout Plain Layout
40122 \begin_layout Plain Layout
40135 \begin_layout Plain Layout
40145 \begin_layout Standard
40146 \begin_inset VSpace bigskip
40152 \begin_layout Standard
40153 Global listings settings can be set in the
40155 Document\SpecialChar menuseparator
40156 Settings\SpecialChar menuseparator
40160 To get there a list of available options, type in a question mark
40161 \begin_inset Quotes eld
40165 \begin_inset Quotes erd
40171 \begin_layout Standard
40172 For more information about the
40176 package, we refer to its documentation
40177 \begin_inset CommandInset citation
40186 \begin_layout Standard
40187 \begin_inset Newpage newpage
40193 \begin_layout Chapter
40195 Units available in \SpecialChar LyX
40197 \begin_inset Index idx
40200 \begin_layout Plain Layout
40207 \begin_inset CommandInset label
40209 name "cha:Units-available-in"
40216 \begin_layout Standard
40217 To understand the units described in this documentation, Table
40218 \begin_inset space ~
40222 \begin_inset CommandInset ref
40224 reference "tab:Units"
40228 explains all units available in \SpecialChar LyX
40232 \begin_layout Standard
40233 \begin_inset Float table
40239 \begin_layout Plain Layout
40240 \begin_inset Caption Standard
40242 \begin_layout Plain Layout
40243 \begin_inset CommandInset label
40257 \begin_layout Plain Layout
40258 \begin_inset VSpace medskip
40264 \begin_layout Plain Layout
40266 \begin_inset Tabular
40267 <lyxtabular version="3" rows="20" columns="3">
40268 <features tabularvalignment="middle">
40269 <column alignment="center" valignment="top">
40270 <column alignment="center" valignment="top">
40271 <column alignment="center" valignment="top">
40273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40276 \begin_layout Plain Layout
40282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40285 \begin_layout Plain Layout
40291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40294 \begin_layout Plain Layout
40303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40306 \begin_layout Plain Layout
40312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40315 \begin_layout Plain Layout
40321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40324 \begin_layout Plain Layout
40332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40335 \begin_layout Plain Layout
40341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40344 \begin_layout Plain Layout
40350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40353 \begin_layout Plain Layout
40361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40364 \begin_layout Plain Layout
40370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40373 \begin_layout Plain Layout
40379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40382 \begin_layout Plain Layout
40390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40393 \begin_layout Plain Layout
40399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40402 \begin_layout Plain Layout
40404 \begin_inset space \thinspace{}
40408 \begin_inset space \thinspace{}
40416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40419 \begin_layout Plain Layout
40427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40430 \begin_layout Plain Layout
40436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40439 \begin_layout Plain Layout
40441 \begin_inset space \thinspace{}
40445 \begin_inset space \thinspace{}
40453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40456 \begin_layout Plain Layout
40464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40467 \begin_layout Plain Layout
40473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40476 \begin_layout Plain Layout
40477 scaled point (65536
40478 \begin_inset space \thinspace{}
40482 \begin_inset space \thinspace{}
40490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40493 \begin_layout Plain Layout
40501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40504 \begin_layout Plain Layout
40510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40513 \begin_layout Plain Layout
40515 \begin_inset space \thinspace{}
40519 \begin_inset space \thinspace{}
40527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40530 \begin_layout Plain Layout
40538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40541 \begin_layout Plain Layout
40547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40550 \begin_layout Plain Layout
40552 \begin_inset space \thinspace{}
40556 \begin_inset Formula $\approx$
40560 \begin_inset space \thinspace{}
40568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40571 \begin_layout Plain Layout
40579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40582 \begin_layout Plain Layout
40588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40591 \begin_layout Plain Layout
40593 \begin_inset space \thinspace{}
40597 \begin_inset space \thinspace{}
40605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40608 \begin_layout Plain Layout
40616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40619 \begin_layout Plain Layout
40625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40628 \begin_layout Plain Layout
40629 % of original image width
40634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40637 \begin_layout Plain Layout
40645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40648 \begin_layout Plain Layout
40654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40657 \begin_layout Plain Layout
40663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40666 \begin_layout Plain Layout
40676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40679 \begin_layout Plain Layout
40685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40688 \begin_layout Plain Layout
40694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40697 \begin_layout Plain Layout
40707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40710 \begin_layout Plain Layout
40716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40719 \begin_layout Plain Layout
40725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40728 \begin_layout Plain Layout
40738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40741 \begin_layout Plain Layout
40747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40750 \begin_layout Plain Layout
40756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40759 \begin_layout Plain Layout
40769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40772 \begin_layout Plain Layout
40778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40781 \begin_layout Plain Layout
40787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40790 \begin_layout Plain Layout
40800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40803 \begin_layout Plain Layout
40809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40812 \begin_layout Plain Layout
40818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40821 \begin_layout Plain Layout
40831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40834 \begin_layout Plain Layout
40840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40843 \begin_layout Plain Layout
40853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40856 \begin_layout Plain Layout
40864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40867 \begin_layout Plain Layout
40873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40876 \begin_layout Plain Layout
40886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40889 \begin_layout Plain Layout
40897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40900 \begin_layout Plain Layout
40906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40909 \begin_layout Plain Layout
40911 \begin_inset space \thinspace{}
40915 \begin_inset space \thinspace{}
40923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40926 \begin_layout Plain Layout
40945 \begin_layout Chapter
40946 Output File Formats with Graphics
40947 \begin_inset CommandInset label
40949 name "cha:Output-File-Formats"
40956 \begin_layout Section
40958 \begin_inset Index idx
40961 \begin_layout Plain Layout
40968 \begin_inset Index idx
40971 \begin_layout Plain Layout
40976 \begin_layout Plain Layout
40987 \begin_layout Plain Layout
41002 \begin_layout Standard
41003 This file type has the extension
41004 \begin_inset Quotes eld
41012 \begin_inset Quotes erd
41017 \begin_inset Quotes eld
41021 \begin_inset Quotes erd
41024 (DVI), because it is completely portable; you can move them from one machine
41025 to another without needing to do any sort of conversion.
41026 At the time when this file-format was developed, this was no matter of
41028 DVIs are used for quick previews and as pre-stage for other output formats,
41032 \begin_layout Standard
41033 \begin_inset Note Greyedout
41036 \begin_layout Plain Layout
41041 DVI-files do not contain images; they will only be a linked.
41046 So don't forget this, if you move your
41050 file to another computer.
41051 This property can also slow down your computer when you view the DVI, because
41052 the DVI-viewer has to convert the image in the background to make it visible
41053 when you scroll in the DVI.
41054 So it is recommended that you use PDF for files with many images.
41057 \begin_layout Standard
41058 You can export your document to DVI by using the menu
41060 File\SpecialChar menuseparator
41061 Export\SpecialChar menuseparator
41065 You can view your document as DVI via the
41072 \begin_layout Section
41074 \begin_inset Index idx
41077 \begin_layout Plain Layout
41078 File Formats ! PostScript
41084 \begin_inset Index idx
41087 \begin_layout Plain Layout
41092 \begin_layout Plain Layout
41103 \begin_layout Plain Layout
41118 \begin_layout Standard
41119 This file type has the extension
41120 \begin_inset Quotes eld
41128 \begin_inset Quotes erd
41132 PostScript was developed by the company
41136 as a printer language.
41137 The file therefore contains commands that the printer uses to print the
41139 PostScript can be seen as a
41140 \begin_inset Quotes eld
41143 programming language
41144 \begin_inset Quotes erd
41147 ; you can calculate with it and draw diagrams and images.
41151 \begin_layout Plain Layout
41152 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41159 \begin_inset CommandInset citation
41170 Due to this ability, the files are often bigger than PDFs.
41173 \begin_layout Standard
41174 PostScript can only contain images in the format
41175 \begin_inset Quotes eld
41178 Encapsulated PostScript
41179 \begin_inset Quotes erd
41182 (EPS, file extension
41183 \begin_inset Quotes eld
41191 \begin_inset Quotes erd
41195 As \SpecialChar LyX
41196 allows you to use any known image format in your document, it has to
41197 convert images in the background to EPS.
41199 \begin_inset space ~
41203 \begin_inset space ~
41206 images in your document, \SpecialChar LyX
41208 \begin_inset space ~
41211 conversions whenever you view or export your document.
41212 This will slow down your work flow with \SpecialChar LyX
41214 So if you plan to use PostScript, you can insert your images directly as
41215 EPS to avoid this problem.
41218 \begin_layout Standard
41219 You can export your document to PostScript using the menu
41221 File\SpecialChar menuseparator
41222 Export\SpecialChar menuseparator
41226 You can view your document as PostScript via the
41233 \begin_layout Section
41235 \begin_inset Index idx
41238 \begin_layout Plain Layout
41245 \begin_inset Index idx
41248 \begin_layout Plain Layout
41257 \begin_layout Standard
41258 This file type has the extension
41259 \begin_inset Quotes eld
41267 \begin_inset Quotes erd
41272 \begin_inset Quotes eld
41275 Portable Document Format
41276 \begin_inset Quotes erd
41279 (PDF) was developed by
41283 as a derivative of PostScript.
41284 It is more compressed and it uses fewer commands than PostScript.
41286 \begin_inset Quotes eld
41290 \begin_inset Quotes erd
41293 implies, it can be processed at any computer system and the printed output
41294 looks exactly the same.
41297 \begin_layout Standard
41298 PDF can contain images in its own PDF format, in the format
41299 \begin_inset Quotes eld
41302 Joint Photographic Experts Group
41303 \begin_inset Quotes erd
41306 (JPG, file extension
41307 \begin_inset Quotes eld
41315 \begin_inset Quotes erd
41319 \begin_inset Quotes eld
41327 \begin_inset Quotes erd
41330 ), and in the format
41331 \begin_inset Quotes eld
41334 Portable Network Graphics
41335 \begin_inset Quotes erd
41338 (PNG, file extension
41339 \begin_inset Quotes eld
41347 \begin_inset Quotes erd
41351 Nevertheless you can use any other image format, because \SpecialChar LyX
41353 in the background to one of these formats.
41354 But as described in the section about PostScript, the image conversion
41355 will slow down your work flow.
41356 So it is recommended that you use images in one of the three mentioned
41360 \begin_layout Standard
41361 You can export your document to PDF via the menu
41363 File\SpecialChar menuseparator
41366 in three different ways:
41369 \begin_layout Description
41371 \begin_inset space ~
41374 (ps2pdf) This uses the program
41378 that creates a PDF from a PostScript-version of your file.
41379 The PostScript-version is produced by the program
41383 which uses a DVI-version as intermediate step.
41384 So this export variant consists of three conversions.
41387 \begin_layout Description
41389 \begin_inset space ~
41392 (dvipdfm) This uses the program
41396 that converts your file in the background to DVI and in a second step to
41400 \begin_layout Description
41402 \begin_inset space ~
41405 (pdflatex) This uses the program
41409 that converts your file directly to PDF.
41412 \begin_layout Standard
41413 It is recommended that you use
41416 \begin_inset space ~
41425 supports all features of actual PDF-versions, is quick and works stable.
41430 is not under development and therefore a bit outdated.
41433 \begin_layout Standard
41434 You can view your document as PDF via the
41438 menu or by using a toolbar button.
41441 \begin_layout Chapter
41442 List of dvips color names
41443 \begin_inset CommandInset label
41445 name "chap:List-of-dvips-colornames"
41452 \begin_layout Standard
41453 \begin_inset Tabular
41454 <lyxtabular version="3" rows="17" columns="4">
41455 <features tabularvalignment="middle">
41456 <column alignment="left" valignment="top" width="0pt">
41457 <column alignment="left" valignment="top" width="0pt">
41458 <column alignment="left" valignment="top" width="0pt">
41459 <column alignment="left" valignment="top" width="0pt">
41461 <cell alignment="left" valignment="top" usebox="none">
41464 \begin_layout Plain Layout
41468 \begin_layout Plain Layout
41481 \begin_layout Plain Layout
41492 \begin_layout Plain Layout
41504 <cell alignment="left" valignment="top" usebox="none">
41507 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41524 \begin_layout Plain Layout
41535 \begin_layout Plain Layout
41547 <cell alignment="left" valignment="top" usebox="none">
41550 \begin_layout Plain Layout
41554 \begin_layout Plain Layout
41567 \begin_layout Plain Layout
41578 \begin_layout Plain Layout
41590 <cell alignment="left" valignment="top" usebox="none">
41593 \begin_layout Plain Layout
41597 \begin_layout Plain Layout
41610 \begin_layout Plain Layout
41621 \begin_layout Plain Layout
41635 <cell alignment="center" valignment="top" usebox="none">
41638 \begin_layout Plain Layout
41642 \begin_layout Plain Layout
41655 \begin_layout Plain Layout
41663 \begin_inset Phantom Phantom
41666 \begin_layout Plain Layout
41676 \begin_layout Plain Layout
41688 <cell alignment="center" valignment="top" usebox="none">
41691 \begin_layout Plain Layout
41695 \begin_layout Plain Layout
41708 \begin_layout Plain Layout
41716 \begin_inset Phantom Phantom
41719 \begin_layout Plain Layout
41729 \begin_layout Plain Layout
41741 <cell alignment="center" valignment="top" usebox="none">
41744 \begin_layout Plain Layout
41748 \begin_layout Plain Layout
41761 \begin_layout Plain Layout
41769 \begin_inset Phantom Phantom
41772 \begin_layout Plain Layout
41782 \begin_layout Plain Layout
41794 <cell alignment="center" valignment="top" usebox="none">
41797 \begin_layout Plain Layout
41801 \begin_layout Plain Layout
41814 \begin_layout Plain Layout
41822 \begin_inset Phantom Phantom
41825 \begin_layout Plain Layout
41835 \begin_layout Plain Layout
41849 <cell alignment="left" valignment="top" usebox="none">
41852 \begin_layout Plain Layout
41856 \begin_layout Plain Layout
41869 \begin_layout Plain Layout
41877 \begin_inset Phantom Phantom
41880 \begin_layout Plain Layout
41890 \begin_layout Plain Layout
41902 <cell alignment="left" valignment="top" usebox="none">
41905 \begin_layout Plain Layout
41909 \begin_layout Plain Layout
41922 \begin_layout Plain Layout
41930 \begin_inset Phantom Phantom
41933 \begin_layout Plain Layout
41943 \begin_layout Plain Layout
41955 <cell alignment="left" valignment="top" usebox="none">
41958 \begin_layout Plain Layout
41962 \begin_layout Plain Layout
41975 \begin_layout Plain Layout
41983 \begin_inset Phantom Phantom
41986 \begin_layout Plain Layout
41996 \begin_layout Plain Layout
42008 <cell alignment="left" valignment="top" usebox="none">
42011 \begin_layout Plain Layout
42015 \begin_layout Plain Layout
42028 \begin_layout Plain Layout
42036 \begin_inset Phantom Phantom
42039 \begin_layout Plain Layout
42049 \begin_layout Plain Layout
42063 <cell alignment="left" valignment="top" usebox="none">
42066 \begin_layout Plain Layout
42070 \begin_layout Plain Layout
42083 \begin_layout Plain Layout
42091 \begin_inset Phantom Phantom
42094 \begin_layout Plain Layout
42104 \begin_layout Plain Layout
42116 <cell alignment="left" valignment="top" usebox="none">
42119 \begin_layout Plain Layout
42123 \begin_layout Plain Layout
42136 \begin_layout Plain Layout
42144 \begin_inset Phantom Phantom
42147 \begin_layout Plain Layout
42157 \begin_layout Plain Layout
42169 <cell alignment="left" valignment="top" usebox="none">
42172 \begin_layout Plain Layout
42176 \begin_layout Plain Layout
42189 \begin_layout Plain Layout
42197 \begin_inset Phantom Phantom
42200 \begin_layout Plain Layout
42210 \begin_layout Plain Layout
42222 <cell alignment="left" valignment="top" usebox="none">
42225 \begin_layout Plain Layout
42229 \begin_layout Plain Layout
42242 \begin_layout Plain Layout
42250 \begin_inset Phantom Phantom
42253 \begin_layout Plain Layout
42263 \begin_layout Plain Layout
42277 <cell alignment="left" valignment="top" usebox="none">
42280 \begin_layout Plain Layout
42284 \begin_layout Plain Layout
42297 \begin_layout Plain Layout
42305 \begin_inset Phantom Phantom
42308 \begin_layout Plain Layout
42318 \begin_layout Plain Layout
42330 <cell alignment="left" valignment="top" usebox="none">
42333 \begin_layout Plain Layout
42337 \begin_layout Plain Layout
42350 \begin_layout Plain Layout
42358 \begin_inset Phantom Phantom
42361 \begin_layout Plain Layout
42371 \begin_layout Plain Layout
42383 <cell alignment="left" valignment="top" usebox="none">
42386 \begin_layout Plain Layout
42390 \begin_layout Plain Layout
42403 \begin_layout Plain Layout
42411 \begin_inset Phantom Phantom
42414 \begin_layout Plain Layout
42424 \begin_layout Plain Layout
42436 <cell alignment="left" valignment="top" usebox="none">
42439 \begin_layout Plain Layout
42443 \begin_layout Plain Layout
42456 \begin_layout Plain Layout
42464 \begin_inset Phantom Phantom
42467 \begin_layout Plain Layout
42477 \begin_layout Plain Layout
42491 <cell alignment="left" valignment="top" usebox="none">
42494 \begin_layout Plain Layout
42498 \begin_layout Plain Layout
42511 \begin_layout Plain Layout
42519 \begin_inset Phantom Phantom
42522 \begin_layout Plain Layout
42532 \begin_layout Plain Layout
42544 <cell alignment="left" valignment="top" usebox="none">
42547 \begin_layout Plain Layout
42551 \begin_layout Plain Layout
42564 \begin_layout Plain Layout
42572 \begin_inset Phantom Phantom
42575 \begin_layout Plain Layout
42585 \begin_layout Plain Layout
42597 <cell alignment="left" valignment="top" usebox="none">
42600 \begin_layout Plain Layout
42604 \begin_layout Plain Layout
42617 \begin_layout Plain Layout
42625 \begin_inset Phantom Phantom
42628 \begin_layout Plain Layout
42638 \begin_layout Plain Layout
42650 <cell alignment="left" valignment="top" usebox="none">
42653 \begin_layout Plain Layout
42657 \begin_layout Plain Layout
42670 \begin_layout Plain Layout
42678 \begin_inset Phantom Phantom
42681 \begin_layout Plain Layout
42691 \begin_layout Plain Layout
42705 <cell alignment="center" valignment="top" usebox="none">
42708 \begin_layout Plain Layout
42712 \begin_layout Plain Layout
42725 \begin_layout Plain Layout
42733 \begin_inset Phantom Phantom
42736 \begin_layout Plain Layout
42746 \begin_layout Plain Layout
42758 <cell alignment="center" valignment="top" usebox="none">
42761 \begin_layout Plain Layout
42765 \begin_layout Plain Layout
42778 \begin_layout Plain Layout
42786 \begin_inset Phantom Phantom
42789 \begin_layout Plain Layout
42799 \begin_layout Plain Layout
42811 <cell alignment="center" valignment="top" usebox="none">
42814 \begin_layout Plain Layout
42818 \begin_layout Plain Layout
42831 \begin_layout Plain Layout
42839 \begin_inset Phantom Phantom
42842 \begin_layout Plain Layout
42852 \begin_layout Plain Layout
42864 <cell alignment="center" valignment="top" usebox="none">
42867 \begin_layout Plain Layout
42871 \begin_layout Plain Layout
42884 \begin_layout Plain Layout
42892 \begin_inset Phantom Phantom
42895 \begin_layout Plain Layout
42905 \begin_layout Plain Layout
42919 <cell alignment="left" valignment="top" usebox="none">
42922 \begin_layout Plain Layout
42926 \begin_layout Plain Layout
42939 \begin_layout Plain Layout
42947 \begin_inset Phantom Phantom
42950 \begin_layout Plain Layout
42960 \begin_layout Plain Layout
42972 <cell alignment="left" valignment="top" usebox="none">
42975 \begin_layout Plain Layout
42979 \begin_layout Plain Layout
42992 \begin_layout Plain Layout
43000 \begin_inset Phantom Phantom
43003 \begin_layout Plain Layout
43013 \begin_layout Plain Layout
43025 <cell alignment="left" valignment="top" usebox="none">
43028 \begin_layout Plain Layout
43032 \begin_layout Plain Layout
43045 \begin_layout Plain Layout
43053 \begin_inset Phantom Phantom
43056 \begin_layout Plain Layout
43066 \begin_layout Plain Layout
43078 <cell alignment="left" valignment="top" usebox="none">
43081 \begin_layout Plain Layout
43085 \begin_layout Plain Layout
43098 \begin_layout Plain Layout
43106 \begin_inset Phantom Phantom
43109 \begin_layout Plain Layout
43119 \begin_layout Plain Layout
43133 <cell alignment="left" valignment="top" usebox="none">
43136 \begin_layout Plain Layout
43140 \begin_layout Plain Layout
43153 \begin_layout Plain Layout
43161 \begin_inset Phantom Phantom
43164 \begin_layout Plain Layout
43174 \begin_layout Plain Layout
43186 <cell alignment="left" valignment="top" usebox="none">
43189 \begin_layout Plain Layout
43193 \begin_layout Plain Layout
43206 \begin_layout Plain Layout
43214 \begin_inset Phantom Phantom
43217 \begin_layout Plain Layout
43227 \begin_layout Plain Layout
43239 <cell alignment="left" valignment="top" usebox="none">
43242 \begin_layout Plain Layout
43246 \begin_layout Plain Layout
43259 \begin_layout Plain Layout
43267 \begin_inset Phantom Phantom
43270 \begin_layout Plain Layout
43280 \begin_layout Plain Layout
43292 <cell alignment="left" valignment="top" usebox="none">
43295 \begin_layout Plain Layout
43299 \begin_layout Plain Layout
43312 \begin_layout Plain Layout
43320 \begin_inset Phantom Phantom
43323 \begin_layout Plain Layout
43333 \begin_layout Plain Layout
43347 <cell alignment="left" valignment="top" usebox="none">
43350 \begin_layout Plain Layout
43354 \begin_layout Plain Layout
43367 \begin_layout Plain Layout
43375 \begin_inset Phantom Phantom
43378 \begin_layout Plain Layout
43388 \begin_layout Plain Layout
43400 <cell alignment="left" valignment="top" usebox="none">
43403 \begin_layout Plain Layout
43407 \begin_layout Plain Layout
43420 \begin_layout Plain Layout
43428 \begin_inset Phantom Phantom
43431 \begin_layout Plain Layout
43441 \begin_layout Plain Layout
43453 <cell alignment="left" valignment="top" usebox="none">
43456 \begin_layout Plain Layout
43460 \begin_layout Plain Layout
43473 \begin_layout Plain Layout
43481 \begin_inset Phantom Phantom
43484 \begin_layout Plain Layout
43494 \begin_layout Plain Layout
43506 <cell alignment="left" valignment="top" usebox="none">
43509 \begin_layout Plain Layout
43513 \begin_layout Plain Layout
43526 \begin_layout Plain Layout
43534 \begin_inset Phantom Phantom
43537 \begin_layout Plain Layout
43547 \begin_layout Plain Layout
43561 <cell alignment="left" valignment="top" usebox="none">
43564 \begin_layout Plain Layout
43568 \begin_layout Plain Layout
43581 \begin_layout Plain Layout
43589 \begin_inset Phantom Phantom
43592 \begin_layout Plain Layout
43602 \begin_layout Plain Layout
43614 <cell alignment="left" valignment="top" usebox="none">
43617 \begin_layout Plain Layout
43621 \begin_layout Plain Layout
43634 \begin_layout Plain Layout
43642 \begin_inset Phantom Phantom
43645 \begin_layout Plain Layout
43655 \begin_layout Plain Layout
43667 <cell alignment="left" valignment="top" usebox="none">
43670 \begin_layout Plain Layout
43674 \begin_layout Plain Layout
43687 \begin_layout Plain Layout
43695 \begin_inset Phantom Phantom
43698 \begin_layout Plain Layout
43708 \begin_layout Plain Layout
43720 <cell alignment="left" valignment="top" usebox="none">
43723 \begin_layout Plain Layout
43727 \begin_layout Plain Layout
43740 \begin_layout Plain Layout
43748 \begin_inset Phantom Phantom
43751 \begin_layout Plain Layout
43761 \begin_layout Plain Layout
43775 <cell alignment="left" valignment="top" usebox="none">
43778 \begin_layout Plain Layout
43782 \begin_layout Plain Layout
43795 \begin_layout Plain Layout
43803 \begin_inset Phantom Phantom
43806 \begin_layout Plain Layout
43816 \begin_layout Plain Layout
43828 <cell alignment="left" valignment="top" usebox="none">
43831 \begin_layout Plain Layout
43835 \begin_layout Plain Layout
43848 \begin_layout Plain Layout
43856 \begin_inset Phantom Phantom
43859 \begin_layout Plain Layout
43869 \begin_layout Plain Layout
43881 <cell alignment="left" valignment="top" usebox="none">
43884 \begin_layout Plain Layout
43888 \begin_layout Plain Layout
43901 \begin_layout Plain Layout
43909 \begin_inset Phantom Phantom
43912 \begin_layout Plain Layout
43922 \begin_layout Plain Layout
43934 <cell alignment="left" valignment="top" usebox="none">
43937 \begin_layout Plain Layout
43941 \begin_layout Plain Layout
43954 \begin_layout Plain Layout
43962 \begin_inset Phantom Phantom
43965 \begin_layout Plain Layout
43975 \begin_layout Plain Layout
43989 <cell alignment="left" valignment="top" usebox="none">
43992 \begin_layout Plain Layout
43996 \begin_layout Plain Layout
44009 \begin_layout Plain Layout
44017 \begin_inset Phantom Phantom
44020 \begin_layout Plain Layout
44030 \begin_layout Plain Layout
44042 <cell alignment="left" valignment="top" usebox="none">
44045 \begin_layout Plain Layout
44049 \begin_layout Plain Layout
44062 \begin_layout Plain Layout
44070 \begin_inset Phantom Phantom
44073 \begin_layout Plain Layout
44083 \begin_layout Plain Layout
44095 <cell alignment="left" valignment="top" usebox="none">
44098 \begin_layout Plain Layout
44102 \begin_layout Plain Layout
44115 \begin_layout Plain Layout
44123 \begin_inset Phantom Phantom
44126 \begin_layout Plain Layout
44136 \begin_layout Plain Layout
44148 <cell alignment="left" valignment="top" usebox="none">
44151 \begin_layout Plain Layout
44155 \begin_layout Plain Layout
44168 \begin_layout Plain Layout
44176 \begin_inset Phantom Phantom
44179 \begin_layout Plain Layout
44189 \begin_layout Plain Layout
44203 <cell alignment="left" valignment="top" usebox="none">
44206 \begin_layout Plain Layout
44210 \begin_layout Plain Layout
44223 \begin_layout Plain Layout
44231 \begin_inset Phantom Phantom
44234 \begin_layout Plain Layout
44244 \begin_layout Plain Layout
44256 <cell alignment="left" valignment="top" usebox="none">
44259 \begin_layout Plain Layout
44263 \begin_layout Plain Layout
44276 \begin_layout Plain Layout
44284 \begin_inset Phantom Phantom
44287 \begin_layout Plain Layout
44297 \begin_layout Plain Layout
44309 <cell alignment="left" valignment="top" usebox="none">
44312 \begin_layout Plain Layout
44316 \begin_layout Plain Layout
44329 \begin_layout Plain Layout
44337 \begin_inset Phantom Phantom
44340 \begin_layout Plain Layout
44350 \begin_layout Plain Layout
44362 <cell alignment="left" valignment="top" usebox="none">
44365 \begin_layout Plain Layout
44369 \begin_layout Plain Layout
44382 \begin_layout Plain Layout
44390 \begin_inset Phantom Phantom
44393 \begin_layout Plain Layout
44403 \begin_layout Plain Layout
44417 <cell alignment="left" valignment="top" usebox="none">
44420 \begin_layout Plain Layout
44424 \begin_layout Plain Layout
44437 \begin_layout Plain Layout
44445 \begin_inset Phantom Phantom
44448 \begin_layout Plain Layout
44458 \begin_layout Plain Layout
44470 <cell alignment="left" valignment="top" usebox="none">
44473 \begin_layout Plain Layout
44477 \begin_layout Plain Layout
44490 \begin_layout Plain Layout
44498 \begin_inset Phantom Phantom
44501 \begin_layout Plain Layout
44511 \begin_layout Plain Layout
44523 <cell alignment="left" valignment="top" usebox="none">
44526 \begin_layout Plain Layout
44530 \begin_layout Plain Layout
44543 \begin_layout Plain Layout
44551 \begin_inset Phantom Phantom
44554 \begin_layout Plain Layout
44564 \begin_layout Plain Layout
44576 <cell alignment="left" valignment="top" usebox="none">
44579 \begin_layout Plain Layout
44583 \begin_layout Plain Layout
44596 \begin_layout Plain Layout
44604 \begin_inset Phantom Phantom
44607 \begin_layout Plain Layout
44617 \begin_layout Plain Layout
44631 <cell alignment="left" valignment="top" usebox="none">
44634 \begin_layout Plain Layout
44638 \begin_layout Plain Layout
44651 \begin_layout Plain Layout
44659 \begin_inset Phantom Phantom
44662 \begin_layout Plain Layout
44672 \begin_layout Plain Layout
44684 <cell alignment="left" valignment="top" usebox="none">
44687 \begin_layout Plain Layout
44691 \begin_layout Plain Layout
44704 \begin_layout Plain Layout
44712 \begin_inset Phantom Phantom
44715 \begin_layout Plain Layout
44725 \begin_layout Plain Layout
44737 <cell alignment="left" valignment="top" usebox="none">
44740 \begin_layout Plain Layout
44744 \begin_layout Plain Layout
44757 \begin_layout Plain Layout
44765 \begin_inset Phantom Phantom
44768 \begin_layout Plain Layout
44778 \begin_layout Plain Layout
44790 <cell alignment="left" valignment="top" usebox="none">
44793 \begin_layout Plain Layout
44797 \begin_layout Plain Layout
44810 \begin_layout Plain Layout
44818 \begin_inset Phantom Phantom
44821 \begin_layout Plain Layout
44831 \begin_layout Plain Layout
44845 <cell alignment="left" valignment="top" usebox="none">
44848 \begin_layout Plain Layout
44852 \begin_layout Plain Layout
44865 \begin_layout Plain Layout
44873 \begin_inset Phantom Phantom
44876 \begin_layout Plain Layout
44886 \begin_layout Plain Layout
44898 <cell alignment="left" valignment="top" usebox="none">
44901 \begin_layout Plain Layout
44907 <cell alignment="left" valignment="top" usebox="none">
44910 \begin_layout Plain Layout
44916 <cell alignment="left" valignment="top" usebox="none">
44919 \begin_layout Plain Layout
44933 \begin_layout Chapter
44934 Explanation of Equation
44935 \begin_inset space ~
44939 \begin_inset CommandInset ref
44946 \begin_inset CommandInset label
44948 name "cha:Explanation-of-Equation"
44955 \begin_layout Standard
44956 We can calculate the total width of
44961 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44965 \begin_inset Formula
44967 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44973 \begin_inset Formula $W_{g\,n}$
44976 is the given width of all cells,
44982 is the \SpecialChar LaTeX
44983 -length between the cell text and the cell border (its default value
44985 \begin_inset space \thinspace{}
44995 is the thickness of the cell border line, the default is 0.4
44996 \begin_inset space \thinspace{}
45002 \begin_layout Standard
45004 \begin_inset space ~
45008 \begin_inset CommandInset ref
45010 reference "eq:Wtot_n"
45014 , the total width of a multicolumn
45015 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45019 \begin_inset Formula
45021 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45029 \begin_layout Standard
45030 By setting equation
45031 \begin_inset space ~
45035 \begin_inset CommandInset ref
45037 reference "eq:Wtot_n"
45042 \begin_inset CommandInset ref
45044 reference "eq:Wtot_mult"
45048 equal we can calculate the needed given width
45049 \begin_inset Formula $W_{g\,n}$
45056 columns are spanned, so that each column has a total width of
45057 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45061 \begin_inset Formula
45063 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45071 \begin_layout Bibliography
45072 \begin_inset CommandInset bibitem
45073 LatexCommand bibitem
45074 key "latexcompanion"
45078 Frank Mittelbach and Michel Goossens:
45080 The \SpecialChar LaTeX
45081 Companion Second Edition.
45084 Addison-Wesley, 2004
45087 \begin_layout Bibliography
45088 \begin_inset CommandInset bibitem
45089 LatexCommand bibitem
45094 Helmut Kopka and Patrick W.
45097 A Guide to \SpecialChar LaTeX
45101 Addison-Wesley, 2003
45104 \begin_layout Bibliography
45105 \begin_inset CommandInset bibitem
45106 LatexCommand bibitem
45114 : A Document Preparation System.
45117 Addison-Wesley, second edition, 1994
45120 \begin_layout Bibliography
45121 \begin_inset CommandInset bibitem
45122 LatexCommand bibitem
45127 Documentation of the \SpecialChar LaTeX
45131 \begin_inset CommandInset href
45134 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45141 \begin_inset Index idx
45144 \begin_layout Plain Layout
45146 -packages ! arydshln
45154 \begin_layout Bibliography
45155 \begin_inset CommandInset bibitem
45156 LatexCommand bibitem
45161 Documentation of the \SpecialChar LaTeX
45165 \begin_inset CommandInset href
45168 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45175 \begin_inset Index idx
45178 \begin_layout Plain Layout
45180 -packages ! booktabs
45188 \begin_layout Bibliography
45189 \begin_inset CommandInset bibitem
45190 LatexCommand bibitem
45195 Documentation of the \SpecialChar LaTeX
45199 \begin_inset CommandInset href
45202 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45209 \begin_inset Index idx
45212 \begin_layout Plain Layout
45214 -packages ! caption
45222 \begin_layout Bibliography
45223 \begin_inset CommandInset bibitem
45224 LatexCommand bibitem
45229 Documentation of the \SpecialChar LaTeX
45233 \begin_inset CommandInset href
45236 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45243 \begin_inset Index idx
45246 \begin_layout Plain Layout
45248 -packages ! diagbox
45256 \begin_layout Bibliography
45257 \begin_inset CommandInset bibitem
45258 LatexCommand bibitem
45263 Documentation of the \SpecialChar LaTeX
45267 \begin_inset CommandInset href
45270 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45277 \begin_inset Index idx
45280 \begin_layout Plain Layout
45282 -packages ! endfloat
45290 \begin_layout Bibliography
45291 \begin_inset CommandInset bibitem
45292 LatexCommand bibitem
45297 Documentation of the \SpecialChar LaTeX
45301 \begin_inset CommandInset href
45304 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45311 \begin_inset Index idx
45314 \begin_layout Plain Layout
45316 -packages ! footmisc
45324 \begin_layout Bibliography
45325 \begin_inset CommandInset bibitem
45326 LatexCommand bibitem
45331 Documentation of the \SpecialChar LaTeX
45335 \begin_inset CommandInset href
45338 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45345 \begin_inset Index idx
45348 \begin_layout Plain Layout
45350 -packages ! hyperref
45358 \begin_layout Bibliography
45359 \begin_inset CommandInset bibitem
45360 LatexCommand bibitem
45365 Documentation of the \SpecialChar LaTeX
45369 \begin_inset CommandInset href
45372 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45379 \begin_inset Index idx
45382 \begin_layout Plain Layout
45384 -packages ! hyperref
45392 \begin_layout Bibliography
45393 \begin_inset CommandInset bibitem
45394 LatexCommand bibitem
45399 Documentation of the \SpecialChar LaTeX
45403 \begin_inset CommandInset href
45406 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45413 \begin_inset Index idx
45416 \begin_layout Plain Layout
45418 -packages ! KOMA-Script
45426 \begin_layout Bibliography
45427 \begin_inset CommandInset bibitem
45428 LatexCommand bibitem
45433 Documentation of the \SpecialChar LaTeX
45437 \begin_inset CommandInset href
45440 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45447 \begin_inset CommandInset href
45450 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45455 \begin_inset Index idx
45458 \begin_layout Plain Layout
45460 -packages ! lettrine
45468 \begin_layout Bibliography
45469 \begin_inset CommandInset bibitem
45470 LatexCommand bibitem
45475 Documentation of the \SpecialChar LaTeX
45479 \begin_inset CommandInset href
45482 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45489 \begin_inset Index idx
45492 \begin_layout Plain Layout
45494 -packages ! listings
45502 \begin_layout Bibliography
45503 \begin_inset CommandInset bibitem
45504 LatexCommand bibitem
45509 Documentation of the \SpecialChar LaTeX
45513 \begin_inset CommandInset href
45516 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45523 \begin_inset Index idx
45526 \begin_layout Plain Layout
45528 -packages ! marginnote
45536 \begin_layout Bibliography
45537 \begin_inset CommandInset bibitem
45538 LatexCommand bibitem
45543 Documentation of the \SpecialChar LaTeX
45547 \begin_inset CommandInset href
45550 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45557 \begin_inset Index idx
45560 \begin_layout Plain Layout
45562 -packages ! pdfpages
45570 \begin_layout Bibliography
45571 \begin_inset CommandInset bibitem
45572 LatexCommand bibitem
45577 Documentation of the \SpecialChar LaTeX
45581 \begin_inset CommandInset href
45584 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45591 \begin_inset Index idx
45594 \begin_layout Plain Layout
45596 -packages ! prettyref
45604 \begin_layout Bibliography
45605 \begin_inset CommandInset bibitem
45606 LatexCommand bibitem
45611 Web page of the \SpecialChar LaTeX
45615 \begin_inset CommandInset href
45618 target "http://tug.org/PSTricks/"
45625 \begin_inset Index idx
45628 \begin_layout Plain Layout
45630 -packages ! PSTricks
45638 \begin_layout Bibliography
45639 \begin_inset CommandInset bibitem
45640 LatexCommand bibitem
45645 Documentation of the \SpecialChar LaTeX
45649 \begin_inset CommandInset href
45652 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45659 \begin_inset Index idx
45662 \begin_layout Plain Layout
45664 -packages ! refstyle
45672 \begin_layout Bibliography
45673 \begin_inset CommandInset bibitem
45674 LatexCommand bibitem
45679 Documentation of the \SpecialChar LaTeX
45683 \begin_inset CommandInset href
45686 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45693 \begin_inset Index idx
45696 \begin_layout Plain Layout
45698 -packages ! sidecap
45706 \begin_layout Bibliography
45707 \begin_inset CommandInset bibitem
45708 LatexCommand bibitem
45714 \begin_inset CommandInset href
45717 target "http://wiki.lyx.org/LyX/NewInLyX20"
45721 about new features in
45729 \begin_layout Standard
45730 \begin_inset CommandInset index_print
45731 LatexCommand printindex