1 #LyX 2.2 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
175 \default_output_format pdf2
177 \bibtex_command default
178 \index_command default
182 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
183 \pdf_author "LyX Team, Uwe Stöhr"
184 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
185 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
187 \pdf_bookmarksnumbered true
188 \pdf_bookmarksopen true
189 \pdf_bookmarksopenlevel 1
190 \pdf_breaklinks false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
198 \use_package amsmath 2
199 \use_package amssymb 2
200 \use_package cancel 0
202 \use_package mathdots 1
203 \use_package mathtools 0
204 \use_package mhchem 1
205 \use_package stackrel 0
206 \use_package stmaryrd 0
207 \use_package undertilde 0
209 \cite_engine_type default
213 \paperorientation portrait
217 \notefontcolor #0000ff
224 \paragraph_separation skip
226 \quotes_language english
229 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
241 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
245 by the \SpecialChar LyX
250 \begin_layout Plain Layout
252 If you have comments or error corrections, please send them to the \SpecialChar LyX
255 \begin_inset CommandInset href
257 name "lyx-docs@lists.lyx.org"
258 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
269 \begin_inset Note Note
272 \begin_layout Plain Layout
279 \begin_inset Newline newline
283 \begin_inset Newline newline
291 \begin_layout Standard
292 \begin_inset CommandInset toc
293 LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Plain Layout
305 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
316 diagbox, lettrine, marginnote, picinpar
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Plain Layout
328 The latest PDF-version of this document can be found here:
329 \begin_inset Newline newline
334 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
342 \begin_layout Chapter
344 \begin_inset Index idx
347 \begin_layout Plain Layout
354 \begin_inset Index idx
357 \begin_layout Plain Layout
362 \begin_layout Plain Layout
373 \begin_layout Plain Layout
388 \begin_layout Section
390 \begin_inset Index idx
393 \begin_layout Plain Layout
394 Figures ! Graphics Dialog
400 \begin_inset CommandInset label
402 name "sec:Graphics-Dialog"
409 \begin_layout Standard
410 To insert an image into your document, place the cursor at the text position
411 you want and click on the toolbar icon
414 arg "dialog-show-new-inset graphics"
419 Insert\SpecialChar menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside \SpecialChar LyX
468 \begin_inset Newline newline
472 \begin_inset Index idx
475 \begin_layout Plain Layout
481 Images can be scaled by using a percentage value or by setting the width
482 and height explicitly.
483 If you set only the width or only the height, the other size will be determined
485 If you set both, then the image will be transformed to the given size,
486 possibly distorting it.
487 To prevent the image from distortion, use the option
489 Maintain aspect ratio
492 The image will then be scaled so that its width and height don't exceed
493 the specified dimensions.
494 \begin_inset Newline newline
497 Images can be opened in a program of your choice by right-clicking on it
498 and choosing the entry
507 The program can be set for every image format in the file format settings
512 \begin_layout Description
517 Alternatively to the usage of scaling units it is possible to set image
518 coordinates to adjust the height and width of the image in the output.
519 The coordinates can also be calculated automatically by pressing the button
549 will only print the image region within the given coordinates.
550 Normally you don't need to worry about image coordinates and can ignore
554 \begin_layout Description
571 In this tab you can modify the appearance of the image within \SpecialChar LyX
572 and \SpecialChar LaTeX
574 can specify additional \SpecialChar LaTeX
576 \begin_inset Newline newline
587 makes the image appear in the output only as a frame with the size of the
589 \begin_inset Newline newline
600 you can define or join an image settings group.
601 \begin_inset Index idx
604 \begin_layout Plain Layout
605 Figures ! Settings grouping
610 Images within such a group share their settings, so adjusting one image
611 of the group automatically also adjusts all other images of the group in
613 So you can for example change the size for a bunch of images without the
614 need to manually change each of them.
615 Joining an existing group can also be done using the context menu of the
616 image by checking the name of the desired group.
619 \begin_layout Standard
620 \begin_inset VSpace bigskip
626 \begin_layout Standard
627 This is an example image in EPS format
631 \begin_layout Plain Layout
632 Image formats are explained in section
637 \begin_inset CommandInset ref
639 reference "sec:Image-Formats"
648 within a separate, horizontally centered paragraph:
649 \begin_inset Separator parbreak
655 \begin_layout Standard
657 \begin_inset Graphics
658 filename clipart/mobius.eps
668 \begin_layout Standard
669 This is the same image like the one above but in draft mode:
670 \begin_inset Separator parbreak
676 \begin_layout Standard
678 \begin_inset Graphics
679 filename clipart/mobius.eps
690 \begin_layout Standard
691 \begin_inset Newpage newpage
697 \begin_layout Section
699 \begin_inset CommandInset label
701 name "sec:Figure-Floats"
706 \begin_inset Index idx
709 \begin_layout Plain Layout
716 \begin_inset Index idx
719 \begin_layout Plain Layout
728 \begin_layout Standard
729 For general explanations about floats, have a look at section
734 \begin_inset CommandInset ref
736 reference "sec:FloatIntroduction"
743 \begin_layout Standard
747 arg "float-insert figure"
752 Insert\SpecialChar menuseparator
753 Float\SpecialChar menuseparator
756 inserts a float with a caption that has the label
757 \begin_inset Quotes eld
765 \begin_inset Quotes erd
768 (# is the actual number).
769 You can insert the image above the caption, like in Figure
774 \begin_inset CommandInset ref
776 reference "fig:kill-plat"
780 or below the caption, like in Figure
785 \begin_inset CommandInset ref
787 reference "fig:escher"
792 More about caption placement is described in section
797 \begin_inset CommandInset ref
799 reference "sec:Caption-Placement"
806 \begin_layout Standard
807 \begin_inset Float figure
812 \begin_layout Plain Layout
814 \begin_inset Graphics
815 filename clipart/platypus.eps
825 \begin_layout Plain Layout
826 \begin_inset Caption Standard
828 \begin_layout Plain Layout
829 \begin_inset CommandInset label
835 A severely distorted platypus in a float.
848 \begin_layout Standard
849 \begin_inset Float figure
854 \begin_layout Plain Layout
855 \begin_inset Caption Standard
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
873 \begin_layout Plain Layout
875 \begin_inset Graphics
876 filename clipart/escher-lsd.eps
891 \begin_layout Standard
892 \begin_inset Index idx
895 \begin_layout Plain Layout
896 References ! to Figures
906 \begin_inset CommandInset ref
908 reference "fig:kill-plat"
913 \begin_inset CommandInset ref
915 reference "fig:escher"
919 are examples of referenced figures.
920 Figures can be referenced in the text by referencing their label.
921 To do this insert a label in the caption using the menu
923 Insert\SpecialChar menuseparator
926 or the toolbar button
933 You can now refer to the label using the menu
935 Insert\SpecialChar menuseparator
942 or the toolbar button
945 arg "dialog-show-new-inset ref"
949 It is important to use references to floats, rather than using vague references
951 \begin_inset Quotes eld
955 \begin_inset Quotes erd
958 , because \SpecialChar LaTeX
959 will reposition the floats in the final document and it might
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
969 \begin_inset Newline newline
972 Referencing is explained in detail in section
977 \begin_inset CommandInset ref
979 reference "sec:Referencing-Floats"
986 \begin_layout Standard
987 Normally only one image is inserted to a figure float, but sometimes you
988 might want to use two images with separate subcaptions.
989 This can be done by inserting image floats into existing image floats.
990 Note that only the main caption of the float is added to the List of Figures.
996 \begin_inset CommandInset ref
998 reference "fig:Two-distorted-images"
1002 is an example of a figure float with two images set side by side.
1003 You can also set the images one below the other.
1005 \begin_inset space ~
1009 \begin_inset CommandInset ref
1011 reference "fig:Undefinable-structure"
1016 \begin_inset CommandInset ref
1018 reference "fig:A-Platypus"
1025 \begin_layout Standard
1026 \begin_inset Float figure
1031 \begin_layout Plain Layout
1032 \begin_inset space \hfill{}
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset Caption Standard
1044 \begin_layout Plain Layout
1045 \begin_inset CommandInset label
1047 name "fig:Undefinable-structure"
1051 Undefinable structure.
1059 \begin_layout Plain Layout
1060 \begin_inset Graphics
1061 filename clipart/escher-lsd.eps
1074 \begin_inset space \hfill{}
1078 \begin_inset Float figure
1083 \begin_layout Plain Layout
1084 \begin_inset Caption Standard
1086 \begin_layout Plain Layout
1087 \begin_inset CommandInset label
1089 name "fig:A-Platypus"
1101 \begin_layout Plain Layout
1102 \begin_inset Graphics
1103 filename clipart/platypus.eps
1116 \begin_inset space \hfill{}
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Two-distorted-images"
1132 Two distorted images.
1133 Both images are in the image settings group named
1134 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1154 \begin_layout Standard
1155 \begin_inset Newpage newpage
1161 \begin_layout Section
1163 \begin_inset CommandInset label
1165 name "sec:Image-Formats"
1170 \begin_inset Index idx
1173 \begin_layout Plain Layout
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1184 Figures ! Image Formats
1192 \begin_layout Standard
1193 You can insert images in any known file format.
1194 But as explained in appendix
1195 \begin_inset space ~
1199 \begin_inset CommandInset ref
1201 reference "cha:Output-File-Formats"
1205 , each output document format allows only a few image formats.
1207 uses therefore the program
1211 in the background to convert the images to the right format.
1212 To increase your work flow by avoiding these conversions in the background,
1213 you could choose to use only the image formats that can directly be embedded
1214 in the output file format.
1215 The output file formats are explained in appendix
1216 \begin_inset space ~
1220 \begin_inset CommandInset ref
1222 reference "cha:Output-File-Formats"
1229 \begin_layout Standard
1230 Similar to fonts there are two types of image formats:
1233 \begin_layout Description
1235 \begin_inset space ~
1238 images consist of pixel values, often in a compressed form.
1239 They are therefore not fully scalable and look pixelated in large zooms.
1240 Well-known bitmap image formats are
1241 \begin_inset Quotes eld
1244 Graphics Interchange Format
1245 \begin_inset Quotes erd
1248 (GIF, file extension
1249 \begin_inset Quotes eld
1257 \begin_inset Quotes erd
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1269 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1293 \begin_inset Quotes eld
1296 Portable Network Graphics
1297 \begin_inset Quotes erd
1300 (PNG, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1313 \begin_inset Index idx
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Joint Photographic Experts Group
1349 \begin_inset Quotes erd
1352 (JPG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Index idx
1380 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1411 \begin_layout Description
1413 \begin_inset space ~
1416 images consist of vectors and can therefore be scaled to any size without
1418 The scaling ability is necessary if you want to create presentations, because
1419 presentations are always scaled by the video projector.
1420 Scaling is also useful for online documents to let the user zoom into diagrams.
1421 \begin_inset Newline newline
1424 Well-known scalable image formats are
1425 \begin_inset Quotes eld
1428 Scalable Vector Graphics
1429 \begin_inset Quotes erd
1432 (SVG, file extension
1433 \begin_inset Quotes eld
1441 \begin_inset Quotes erd
1445 \begin_inset Index idx
1448 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1477 \begin_inset Quotes eld
1480 Encapsulated PostScript
1481 \begin_inset Quotes erd
1484 (EPS, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1497 \begin_inset Index idx
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Portable Document Format
1533 \begin_inset Quotes erd
1536 (PDF, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1549 \begin_inset Index idx
1552 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1566 (WMF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 , because you can convert any bitmap image to a PDF or EPS-image and the
1620 result will still be a bitmap image.
1621 In such cases only a header with the image properties is added to the original
1626 \begin_layout Plain Layout
1627 In the case of PDF, the original image is additionally compressed.
1633 The PDF-files generated by
1637 are for example bitmap images.
1640 \begin_layout Standard
1641 Normally it is not possible to convert a bitmap image into a scalable one,
1643 Only the image formats PDF and EPS can directly be embedded to PDF and
1644 PostScript output files, respectively.
1645 SVG and WMF-images are recalculated to bitmaps when the output file is
1646 generated because there is currently no adequate WMF/SVG
1647 \begin_inset Formula $\to$
1650 PDF/EPS converter available.
1653 \begin_layout Chapter
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1667 \begin_layout Section
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1673 Table ! Introduction
1681 \begin_layout Standard
1682 You can insert a table using either the toolbar button
1685 arg "tabular-insert"
1690 Insert\SpecialChar menuseparator
1694 The toolbar button offers you a graphical selection: move the mouse to
1695 set the column/row number of the table that should be created and then
1696 press a mouse button.
1697 When you use the menu to create a table, a dialog will appear, asking you
1698 for the number of rows and columns.
1699 \begin_inset Newline newline
1702 The default table has lines around any cell and the first row appears separated
1703 from the rest of the table.
1704 This separation occurs due to a double line: The cells of the first row
1705 have a line below them and the cells of the second row have a line above
1707 Here is an example table:
1708 \begin_inset Separator parbreak
1714 \begin_layout Standard
1716 \begin_inset Tabular
1717 <lyxtabular version="3" rows="4" columns="4">
1718 <features tabularvalignment="middle">
1719 <column alignment="center" valignment="top">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1736 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1754 \begin_layout Plain Layout
1760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1763 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1801 \begin_layout Plain Layout
1807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1810 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1848 \begin_layout Plain Layout
1854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1857 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1895 \begin_layout Plain Layout
1901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1904 \begin_layout Plain Layout
1918 \begin_layout Section
1920 \begin_inset Index idx
1923 \begin_layout Plain Layout
1932 \begin_layout Standard
1933 You can alter a table by clicking on it with the right mouse button, which
1934 brings up the context menu.
1935 Under the menu entry
1939 you can adjust the settings of that cell and row/column respectively where
1940 the cursor is currently placed.
1943 More\SpecialChar menuseparator
1946 opens the table dialog where you can adjust more things.
1947 Most of the dialog options also work on selections.
1948 This means if you select more cells, columns or rows, the action is done
1949 for the whole selection.
1950 Note that there is a difference between selecting the
1954 of the cell, and the cell itself.
1955 \begin_inset Newline newline
1958 With the dialog option
1961 \begin_inset space ~
1966 every change you make in the dialog is directly applied.
1967 If you move the cursor to another table cell the dialog will then also
1968 be updated with the parameters of the new cell.
1969 If you change length values in the dialog you must press
1973 to get the change applied.
1974 \begin_inset Newline newline
1977 You can alter tables with the following tabs of the table dialog:
1980 \begin_layout Description
1982 \begin_inset space ~
1985 Settings Here you can set the table width
1986 \begin_inset Index idx
1989 \begin_layout Plain Layout
1995 , and the horizontal alignment and the width of the current column.
1999 \begin_inset space ~
2003 \begin_inset space ~
2008 is described in section
2009 \begin_inset space ~
2013 \begin_inset CommandInset ref
2015 reference "subsec:Special-Cell-Alignment"
2020 When you have set a width you can also adjust the vertical alignment of
2022 A given width will allow the cell to have line breaks and multiple paragraphs
2024 \begin_inset space \thinspace{}
2028 \begin_inset CommandInset ref
2030 reference "subsec:Multiple-Lines-in"
2035 If you set no width, the column is as wide as the content of its widest
2037 \begin_inset Newline newline
2040 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2042 \begin_inset space \thinspace{}
2046 \begin_inset CommandInset ref
2048 reference "subsec:Multicolumns"
2052 or the cells of one column as multirow cell, see sec.
2053 \begin_inset space \thinspace{}
2057 \begin_inset CommandInset ref
2059 reference "subsec:Multirows"
2064 \begin_inset Newline newline
2067 The rotate check boxes rotate the current cell, a selection, or the whole
2068 table counter-clockwise by 90
2069 \begin_inset space \thinspace{}
2073 The rotation is not shown within \SpecialChar LyX
2074 , only in the output.
2075 For more information see sec.
2076 \begin_inset space \thinspace{}
2080 \begin_inset CommandInset ref
2082 reference "sec:Rotated-Table-Cells"
2087 \begin_inset Newline newline
2091 \begin_inset Note Greyedout
2094 \begin_layout Plain Layout
2099 Not all DVI-viewers are able to display rotations.
2105 \begin_inset Newline newline
2108 The table-wide vertical alignment is used for tables within text lines:
2109 \begin_inset Newline newline
2112 A line with tables with different alignments:
2113 \begin_inset Tabular
2114 <lyxtabular version="3" rows="2" columns="2">
2115 <features tabularvalignment="top">
2116 <column alignment="center" valignment="top" width="0pt">
2117 <column alignment="center" valignment="top">
2119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2122 \begin_layout Plain Layout
2128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2131 \begin_layout Plain Layout
2148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2151 \begin_layout Plain Layout
2166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2169 \begin_layout Plain Layout
2181 \begin_inset Tabular
2182 <lyxtabular version="3" rows="2" columns="2">
2183 <features tabularvalignment="middle">
2184 <column alignment="center" valignment="top">
2185 <column alignment="center" valignment="top">
2187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2190 \begin_layout Plain Layout
2196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2199 \begin_layout Plain Layout
2216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2219 \begin_layout Plain Layout
2234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2237 \begin_layout Plain Layout
2249 \begin_inset Tabular
2250 <lyxtabular version="3" rows="2" columns="2">
2251 <features tabularvalignment="bottom">
2252 <column alignment="center" valignment="top" width="0pt">
2253 <column alignment="center" valignment="top">
2255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2258 \begin_layout Plain Layout
2264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2267 \begin_layout Plain Layout
2284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2287 \begin_layout Plain Layout
2302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2305 \begin_layout Plain Layout
2317 \begin_inset Newline newline
2320 It is also possible to enter a \SpecialChar LaTeX
2321 -argument which is needed for special table
2322 formattings, see sec.
2323 \begin_inset space \thinspace{}
2327 \begin_inset CommandInset ref
2329 reference "subsec:Multicolumn-Calculations"
2334 \begin_inset CommandInset ref
2336 reference "sec:Colored-Tables"
2343 \begin_layout Description
2344 Borders In this tab you can add and delete border lines for the current
2346 \begin_inset Newline newline
2349 Using the style option
2353 will convert the table to a formal table as described in sec.
2354 \begin_inset space \thinspace{}
2358 \begin_inset CommandInset ref
2360 reference "sec:Formal-Tables"
2365 \begin_inset Newline newline
2368 You can also add space here to table rows as described in sec.
2369 \begin_inset space \thinspace{}
2373 \begin_inset CommandInset ref
2375 reference "subsec:Row-Spacing"
2382 \begin_layout Description
2384 \begin_inset space ~
2387 table This tab is to make a table a multi-page table that can run over several
2390 \begin_inset space ~
2394 \begin_inset CommandInset ref
2396 reference "sec:Multi-page-Tables"
2401 \begin_inset CommandInset ref
2403 reference "sec:Special-Longtable-Issues"
2407 describe the multi-page table features in detail.
2410 \begin_layout Section
2412 \begin_inset Index idx
2415 \begin_layout Plain Layout
2424 \begin_layout Standard
2425 The table toolbar is an alternative to the table dialog to be able to alter
2427 It should normally appear at the bottom of \SpecialChar LyX
2428 's main window when the cursor
2430 You can alternatively switch it on to appear always, by right-clicking
2435 \begin_layout Standard
2436 The toolbar has the following icons:
2439 \begin_layout Labeling
2440 \labelwidthstring 00.00.0000
2443 arg "tabular-feature append-row"
2446 adds a row below the current cell or selection
2449 \begin_layout Labeling
2450 \labelwidthstring 00.00.0000
2453 arg "tabular-feature append-column"
2456 adds a column right beside the current cell or selection
2459 \begin_layout Labeling
2460 \labelwidthstring 00.00.0000
2463 arg "tabular-feature delete-row"
2466 deletes the current row or selection
2469 \begin_layout Labeling
2470 \labelwidthstring 00.00.0000
2473 arg "tabular-feature delete-column"
2476 deletes the current column or selection
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2483 arg "tabular-feature move-row-up"
2489 \begin_layout Labeling
2490 \labelwidthstring 00.00.0000
2493 arg "tabular-feature move-column-left"
2496 moves the column to the left
2499 \begin_layout Labeling
2500 \labelwidthstring 00.00.0000
2503 arg "tabular-feature move-row-down"
2509 \begin_layout Labeling
2510 \labelwidthstring 00.00.0000
2513 arg "tabular-feature move-column-right"
2516 moves the column to the right
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2523 arg "tabular-feature toggle-line-top"
2526 adds a line at the top of the current cell / row or of a selection
2529 \begin_layout Labeling
2530 \labelwidthstring 00.00.0000
2533 arg "tabular-feature toggle-line-bottom"
2536 adds a line at the bottom of the current cell / row or of a selection
2539 \begin_layout Labeling
2540 \labelwidthstring 00.00.0000
2543 arg "tabular-feature toggle-line-left"
2546 adds a line at the left side of the current cell / row or of a selection
2549 \begin_layout Labeling
2550 \labelwidthstring 00.00.0000
2553 arg "tabular-feature toggle-line-right"
2556 adds a line at the right side of the current cell / row or of a selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2563 arg "tabular-feature set-all-lines"
2566 adds lines around the current or selected cells - if the current cell no
2567 multicolumn cell this also affects the current row and column
2570 \begin_layout Labeling
2571 \labelwidthstring 00.00.0000
2574 arg "tabular-feature unset-all-lines"
2577 deletes all lines of the current or selected cells - if the current cell
2578 no multicolumn cell this also affects the current row and column
2581 \begin_layout Labeling
2582 \labelwidthstring 00.00.0000
2585 arg "tabular-feature m-align-left"
2588 left-aligns the content of the current cell / column
2591 \begin_layout Labeling
2592 \labelwidthstring 00.00.0000
2595 arg "tabular-feature m-align-center"
2598 centers the content of the current cell / column horizontally
2601 \begin_layout Labeling
2602 \labelwidthstring 00.00.0000
2605 arg "tabular-feature m-align-right"
2608 right-aligns the content of the current cell / column
2611 \begin_layout Labeling
2612 \labelwidthstring 00.00.0000
2615 arg "tabular-feature align-decimal"
2618 aligns the content of the current column at a character
2621 \begin_layout Labeling
2622 \labelwidthstring 00.00.0000
2625 arg "tabular-feature m-valign-top"
2628 aligns the content of the current cell vertically to the top
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2635 arg "tabular-feature m-valign-middle"
2638 centers the content of the current cell vertically
2641 \begin_layout Labeling
2642 \labelwidthstring 00.00.0000
2645 arg "tabular-feature m-valign-bottom"
2648 aligns the content of the current cell vertically to the bottom
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2655 arg "tabular-feature set-rotate-cell"
2658 rotates the current cell or selection counter-clockwise by 90°
2661 \begin_layout Labeling
2662 \labelwidthstring 00.00.0000
2665 arg "tabular-feature set-rotate-tabular"
2668 rotates the whole table counter-clockwise by 90°
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2675 arg "tabular-feature multicolumn"
2678 sets the current cell or selection as a multicolumn
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2685 arg "tabular-feature multirow"
2688 sets the current cell or selection as a multirow
2691 \begin_layout Standard
2692 \begin_inset Note Greyedout
2695 \begin_layout Plain Layout
2700 For the output the vertical alignment of the first cell in a row is used
2701 for all following cells in the row.
2709 \begin_layout Section
2711 \begin_inset Index idx
2714 \begin_layout Plain Layout
2723 \begin_layout Standard
2724 In addition to the table dialog and toolbar, the menu
2726 Edit\SpecialChar menuseparator
2729 allows you to add and delete border lines for the current row/column and
2730 to set the current selection as multicolumn.
2731 The menu is only available when the cursor is inside a table.
2734 \begin_layout Section
2736 \begin_inset CommandInset label
2738 name "sec:Table-Floats"
2743 \begin_inset Index idx
2746 \begin_layout Plain Layout
2753 \begin_inset Index idx
2756 \begin_layout Plain Layout
2765 \begin_layout Standard
2766 For general explanations about floats, have a look at section
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "sec:FloatIntroduction"
2780 \begin_layout Standard
2781 \begin_inset Float table
2787 \begin_layout Plain Layout
2788 \begin_inset Caption Standard
2790 \begin_layout Plain Layout
2791 \begin_inset CommandInset label
2793 name "tab:a table float"
2805 \begin_layout Plain Layout
2807 \begin_inset Tabular
2808 <lyxtabular version="3" rows="3" columns="3">
2809 <features tabularvalignment="middle">
2810 <column alignment="center" valignment="top" width="0pt">
2811 <column alignment="center" valignment="top" width="0pt">
2812 <column alignment="center" valignment="top" width="0pt">
2814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2817 \begin_layout Plain Layout
2832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2835 \begin_layout Plain Layout
2850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2853 \begin_layout Plain Layout
2870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2873 \begin_layout Plain Layout
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Plain Layout
2906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2909 \begin_layout Plain Layout
2926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2929 \begin_layout Plain Layout
2939 \begin_inset Formula $\int x^{2}dx$
2947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2950 \begin_layout Plain Layout
2960 \begin_inset Formula $\left[\begin{array}{cc}
2971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2974 \begin_layout Plain Layout
2984 \begin_inset Formula $1+1=2$
3005 \begin_layout Standard
3006 Table floats can be inserted using the menu
3008 Insert\SpecialChar menuseparator
3009 Float\SpecialChar menuseparator
3012 or the toolbar button
3015 arg "float-insert table"
3021 \begin_layout Standard
3022 The float appears as a collapsible box with a caption that has the label
3024 \begin_inset Quotes eld
3028 \begin_inset space ~
3032 \begin_inset Quotes erd
3035 (# is the actual table number).
3036 You can insert tables in the float above or below the caption.
3039 \begin_layout Standard
3041 \begin_inset space ~
3045 \begin_inset CommandInset ref
3047 reference "tab:a table float"
3051 is an example table within a table float.
3054 \begin_layout Standard
3055 Having the caption above the table is the common rule that is unfortunately
3056 not supported in \SpecialChar LaTeX
3057 's standard classes.
3058 This means that, if you are using the document classes
3074 , there will be no space between the caption and the table.
3075 To insert the needed space, add the following option to the load command
3076 of the \SpecialChar LaTeX
3082 \begin_inset Index idx
3085 \begin_layout Plain Layout
3092 in your document preamble:
3096 \begin_layout Plain Layout
3097 For more information have a look at section
3098 \begin_inset space ~
3102 \begin_inset CommandInset ref
3104 reference "sec:Caption-Placement"
3116 \begin_layout Standard
3122 \begin_layout Standard
3127 , which is described in section
3128 \begin_inset space ~
3132 \begin_inset CommandInset ref
3134 reference "sec:Caption-Formatting"
3138 , is used to adjust the caption format.
3141 \begin_layout Standard
3142 \begin_inset Index idx
3145 \begin_layout Plain Layout
3146 References ! to Tables
3151 Tables can be cross-referenced in the text by referencing their label.
3152 To do this insert a label in the caption using the menu
3154 Insert\SpecialChar menuseparator
3157 or the toolbar button
3164 You can now refer to the label using the menu
3166 Insert\SpecialChar menuseparator
3168 \begin_inset space ~
3173 or the toolbar button
3176 arg "dialog-show-new-inset ref"
3180 \begin_inset Newline newline
3183 Referencing is explained in detail in section
3184 \begin_inset space ~
3188 \begin_inset CommandInset ref
3190 reference "sec:Referencing-Floats"
3197 \begin_layout Section
3203 \begin_inset CommandInset label
3205 name "sec:Multi-page-Tables"
3210 \begin_inset Index idx
3213 \begin_layout Plain Layout
3220 \begin_inset Index idx
3223 \begin_layout Plain Layout
3224 Table ! Multi-page Table
3232 \begin_layout Standard
3233 If the table is too long to fit on one page, you can use the option
3236 \begin_inset space ~
3244 \begin_inset space ~
3249 of the table dialog to split the table automatically over more pages.
3250 Doing this enables the following options:
3253 \begin_layout Description
3254 Header: The current row is defined to be a header row that appears on all
3255 pages of the multi-page table; except for the first page, if
3258 \begin_inset space ~
3264 This is therefore called the main header.
3267 \begin_layout Description
3269 \begin_inset space ~
3272 header: The current row is defined to be a header row that appears on the
3273 first page of the multi-page table.
3276 \begin_layout Description
3277 Footer: The current row is defined to be a footer row that appears on all
3278 pages of the multi-page table; except for the last page, if
3281 \begin_inset space ~
3289 \begin_layout Description
3291 \begin_inset space ~
3294 footer: The current row is defined to be a footer row that appears on the
3295 last page of the multi-page table.
3298 \begin_layout Description
3299 Caption: The current row contains the table caption.
3300 The row is reset as single column and a caption is inserted.
3301 More about multi-page table captions is explained in sec.
3302 \begin_inset space \thinspace{}
3306 \begin_inset CommandInset ref
3308 reference "subsec:Multi-page-Table-Captions"
3315 \begin_layout Standard
3316 You can also specify a row where the table is split.
3317 See the following multi-page table to see how it works:
3318 \begin_inset Separator parbreak
3324 \begin_layout Standard
3326 \begin_inset Tabular
3327 <lyxtabular version="3" rows="69" columns="3">
3328 <features islongtable="true" longtabularalignment="center">
3329 <column alignment="left" valignment="top" width="0cm">
3330 <column alignment="left" valignment="top" width="0pt">
3331 <column alignment="center" valignment="top" width="0pt">
3332 <row endfirsthead="true">
3333 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3336 \begin_layout Plain Layout
3339 Example Phone List (ignore the names)
3344 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3347 \begin_layout Plain Layout
3353 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3356 \begin_layout Plain Layout
3363 <row endfirsthead="true">
3364 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3367 \begin_layout Plain Layout
3375 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3378 \begin_layout Plain Layout
3384 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Plain Layout
3396 <row endhead="true">
3397 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3400 \begin_layout Plain Layout
3408 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3411 \begin_layout Plain Layout
3417 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3420 \begin_layout Plain Layout
3427 <row endhead="true">
3428 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3431 \begin_layout Plain Layout
3439 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3442 \begin_layout Plain Layout
3448 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3451 \begin_layout Plain Layout
3460 <row endfoot="true">
3461 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3464 \begin_layout Plain Layout
3465 continued on next page
3470 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3473 \begin_layout Plain Layout
3479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3482 \begin_layout Plain Layout
3490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3493 \begin_layout Plain Layout
3501 <cell alignment="center" valignment="top" usebox="none">
3504 \begin_layout Plain Layout
3510 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3513 \begin_layout Plain Layout
3521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3524 \begin_layout Plain Layout
3532 <cell alignment="center" valignment="top" usebox="none">
3535 \begin_layout Plain Layout
3541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3544 \begin_layout Plain Layout
3552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3555 \begin_layout Plain Layout
3563 <cell alignment="center" valignment="top" usebox="none">
3566 \begin_layout Plain Layout
3572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3575 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3586 \begin_layout Plain Layout
3594 <cell alignment="center" valignment="top" usebox="none">
3597 \begin_layout Plain Layout
3603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3606 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3617 \begin_layout Plain Layout
3625 <cell alignment="center" valignment="top" usebox="none">
3628 \begin_layout Plain Layout
3634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3637 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3648 \begin_layout Plain Layout
3656 <cell alignment="center" valignment="top" usebox="none">
3659 \begin_layout Plain Layout
3665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3668 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3679 \begin_layout Plain Layout
3687 <cell alignment="center" valignment="top" usebox="none">
3690 \begin_layout Plain Layout
3696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3699 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3710 \begin_layout Plain Layout
3718 <cell alignment="center" valignment="top" usebox="none">
3721 \begin_layout Plain Layout
3727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3730 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3741 \begin_layout Plain Layout
3749 <cell alignment="center" valignment="top" usebox="none">
3752 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3761 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3772 \begin_layout Plain Layout
3780 <cell alignment="center" valignment="top" usebox="none">
3783 \begin_layout Plain Layout
3789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3792 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3803 \begin_layout Plain Layout
3811 <cell alignment="center" valignment="top" usebox="none">
3814 \begin_layout Plain Layout
3820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3823 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3834 \begin_layout Plain Layout
3842 <cell alignment="center" valignment="top" usebox="none">
3845 \begin_layout Plain Layout
3851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3854 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3865 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" usebox="none">
3876 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3885 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3896 \begin_layout Plain Layout
3904 <cell alignment="center" valignment="top" usebox="none">
3907 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3927 \begin_layout Plain Layout
3935 <cell alignment="center" valignment="top" usebox="none">
3938 \begin_layout Plain Layout
3944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3947 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3958 \begin_layout Plain Layout
3966 <cell alignment="center" valignment="top" usebox="none">
3969 \begin_layout Plain Layout
3975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3978 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3989 \begin_layout Plain Layout
3997 <cell alignment="center" valignment="top" usebox="none">
4000 \begin_layout Plain Layout
4006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4009 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4020 \begin_layout Plain Layout
4028 <cell alignment="center" valignment="top" usebox="none">
4031 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4040 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4051 \begin_layout Plain Layout
4059 <cell alignment="center" valignment="top" usebox="none">
4062 \begin_layout Plain Layout
4068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4071 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4082 \begin_layout Plain Layout
4090 <cell alignment="center" valignment="top" usebox="none">
4093 \begin_layout Plain Layout
4099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4102 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4113 \begin_layout Plain Layout
4121 <cell alignment="center" valignment="top" usebox="none">
4124 \begin_layout Plain Layout
4130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4133 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4144 \begin_layout Plain Layout
4152 <cell alignment="center" valignment="top" usebox="none">
4155 \begin_layout Plain Layout
4161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4164 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4175 \begin_layout Plain Layout
4183 <cell alignment="center" valignment="top" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4454 \begin_layout Plain Layout
4460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4463 \begin_layout Plain Layout
4469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4483 \begin_layout Plain Layout
4491 <cell alignment="center" valignment="top" usebox="none">
4494 \begin_layout Plain Layout
4500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4503 \begin_layout Plain Layout
4511 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4514 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" usebox="none">
4525 \begin_layout Plain Layout
4531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4534 \begin_layout Plain Layout
4542 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4545 \begin_layout Plain Layout
4553 <cell alignment="center" valignment="top" usebox="none">
4556 \begin_layout Plain Layout
4562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4576 \begin_layout Plain Layout
4584 <cell alignment="center" valignment="top" usebox="none">
4587 \begin_layout Plain Layout
4593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4607 \begin_layout Plain Layout
4615 <cell alignment="center" valignment="top" usebox="none">
4618 \begin_layout Plain Layout
4624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4627 \begin_layout Plain Layout
4635 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4638 \begin_layout Plain Layout
4646 <cell alignment="center" valignment="top" usebox="none">
4649 \begin_layout Plain Layout
4655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4658 \begin_layout Plain Layout
4666 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4669 \begin_layout Plain Layout
4677 <cell alignment="center" valignment="top" usebox="none">
4680 \begin_layout Plain Layout
4686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4689 \begin_layout Plain Layout
4697 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4700 \begin_layout Plain Layout
4708 <cell alignment="center" valignment="top" usebox="none">
4711 \begin_layout Plain Layout
4717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4720 \begin_layout Plain Layout
4728 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4731 \begin_layout Plain Layout
4739 <cell alignment="center" valignment="top" usebox="none">
4742 \begin_layout Plain Layout
4748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4751 \begin_layout Plain Layout
4759 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4762 \begin_layout Plain Layout
4770 <cell alignment="center" valignment="top" usebox="none">
4773 \begin_layout Plain Layout
4779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4782 \begin_layout Plain Layout
4790 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4793 \begin_layout Plain Layout
4801 <cell alignment="center" valignment="top" usebox="none">
4804 \begin_layout Plain Layout
4810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4813 \begin_layout Plain Layout
4821 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4824 \begin_layout Plain Layout
4832 <cell alignment="center" valignment="top" usebox="none">
4835 \begin_layout Plain Layout
4841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4844 \begin_layout Plain Layout
4852 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4855 \begin_layout Plain Layout
4863 <cell alignment="center" valignment="top" usebox="none">
4866 \begin_layout Plain Layout
4872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4875 \begin_layout Plain Layout
4883 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4886 \begin_layout Plain Layout
4894 <cell alignment="center" valignment="top" usebox="none">
4897 \begin_layout Plain Layout
4903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4906 \begin_layout Plain Layout
4914 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4917 \begin_layout Plain Layout
4925 <cell alignment="center" valignment="top" usebox="none">
4928 \begin_layout Plain Layout
4934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4937 \begin_layout Plain Layout
4945 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4948 \begin_layout Plain Layout
4956 <cell alignment="center" valignment="top" usebox="none">
4959 \begin_layout Plain Layout
4965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4968 \begin_layout Plain Layout
4976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4979 \begin_layout Plain Layout
4987 <cell alignment="center" valignment="top" usebox="none">
4990 \begin_layout Plain Layout
4996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4999 \begin_layout Plain Layout
5007 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5010 \begin_layout Plain Layout
5018 <cell alignment="center" valignment="top" usebox="none">
5021 \begin_layout Plain Layout
5027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5030 \begin_layout Plain Layout
5038 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5041 \begin_layout Plain Layout
5049 <cell alignment="center" valignment="top" usebox="none">
5052 \begin_layout Plain Layout
5058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5061 \begin_layout Plain Layout
5069 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5072 \begin_layout Plain Layout
5080 <cell alignment="center" valignment="top" usebox="none">
5083 \begin_layout Plain Layout
5089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5092 \begin_layout Plain Layout
5100 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5103 \begin_layout Plain Layout
5111 <cell alignment="center" valignment="top" usebox="none">
5114 \begin_layout Plain Layout
5120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5123 \begin_layout Plain Layout
5131 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5134 \begin_layout Plain Layout
5142 <cell alignment="center" valignment="top" usebox="none">
5145 \begin_layout Plain Layout
5151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5154 \begin_layout Plain Layout
5162 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5165 \begin_layout Plain Layout
5173 <cell alignment="center" valignment="top" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5193 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5196 \begin_layout Plain Layout
5204 <cell alignment="center" valignment="top" usebox="none">
5207 \begin_layout Plain Layout
5213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5216 \begin_layout Plain Layout
5224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5227 \begin_layout Plain Layout
5235 <cell alignment="center" valignment="top" usebox="none">
5238 \begin_layout Plain Layout
5244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5247 \begin_layout Plain Layout
5255 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5258 \begin_layout Plain Layout
5266 <cell alignment="center" valignment="top" usebox="none">
5269 \begin_layout Plain Layout
5275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5278 \begin_layout Plain Layout
5286 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5289 \begin_layout Plain Layout
5297 <cell alignment="center" valignment="top" usebox="none">
5300 \begin_layout Plain Layout
5306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5309 \begin_layout Plain Layout
5317 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5320 \begin_layout Plain Layout
5328 <cell alignment="center" valignment="top" usebox="none">
5331 \begin_layout Plain Layout
5337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5340 \begin_layout Plain Layout
5348 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5351 \begin_layout Plain Layout
5359 <cell alignment="center" valignment="top" usebox="none">
5362 \begin_layout Plain Layout
5368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5371 \begin_layout Plain Layout
5379 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5382 \begin_layout Plain Layout
5390 <cell alignment="center" valignment="top" usebox="none">
5393 \begin_layout Plain Layout
5399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5402 \begin_layout Plain Layout
5410 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5413 \begin_layout Plain Layout
5421 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5424 \begin_layout Plain Layout
5430 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5433 \begin_layout Plain Layout
5440 <row endlastfoot="true">
5441 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5444 \begin_layout Plain Layout
5450 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5453 \begin_layout Plain Layout
5459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5462 \begin_layout Plain Layout
5477 \begin_layout Plain Layout
5481 addtocounter{table}{-1}
5487 \begin_inset Note Note
5490 \begin_layout Plain Layout
5491 See the first greyed-out note in section
5492 \begin_inset space ~
5496 \begin_inset CommandInset ref
5498 reference "subsec:Multi-page-Table-Captions"
5502 for an explanation of this command.
5510 \begin_layout Subsection
5511 Footnotes in Multi-page tables
5512 \begin_inset CommandInset label
5514 name "subsec:Footnotes-in-Multi-page"
5519 \begin_inset Index idx
5522 \begin_layout Plain Layout
5523 Table ! Multi-page Table ! Footnotes
5531 \begin_layout Standard
5532 Footnotes can be inserted to every Multi-page table cell.
5533 They appear at the bottom of the page where the table cell with the footnote
5536 \begin_inset space ~
5540 \begin_inset CommandInset ref
5542 reference "tab:DiffCaptions"
5546 has for example a footnote.
5549 \begin_layout Subsection
5550 Multi-page Table Alignment
5551 \begin_inset Index idx
5554 \begin_layout Plain Layout
5555 Table ! Multi-page Table ! Alignment
5563 \begin_layout Standard
5564 The horizontal alignment of multi-page tables can be set in the table settings
5566 For left- and right-alignment the table will be directly at the page border.
5567 To add space between the table and the border one has to set the alignment
5568 to center and change the value of the \SpecialChar LaTeX
5581 by inserting this line as \SpecialChar TeX
5582 Code before the multi-page table:
5585 \begin_layout Standard
5595 \begin_layout Standard
5596 The value can have any of the units listed in Table
5597 \begin_inset space ~
5601 \begin_inset CommandInset ref
5603 reference "tab:Units"
5614 controls the horizontal distance from the left page border to the multi-page
5621 the distance from the right side.
5622 The default value for both lengths is
5628 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5632 \begin_layout Standard
5633 The following multi-page table was centered and
5649 \begin_layout Plain Layout
5665 \begin_layout Standard
5666 \begin_inset Tabular
5667 <lyxtabular version="3" rows="5" columns="5">
5668 <features islongtable="true" longtabularalignment="center">
5669 <column alignment="center" valignment="top">
5670 <column alignment="center" valignment="top" width="0pt">
5671 <column alignment="center" valignment="top">
5672 <column alignment="center" valignment="top">
5673 <column alignment="center" valignment="top">
5675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5678 \begin_layout Plain Layout
5684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5687 \begin_layout Plain Layout
5693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5696 \begin_layout Plain Layout
5702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5705 \begin_layout Plain Layout
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5714 \begin_layout Plain Layout
5722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5725 \begin_layout Plain Layout
5731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5734 \begin_layout Plain Layout
5740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5743 \begin_layout Plain Layout
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5752 \begin_layout Plain Layout
5758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5761 \begin_layout Plain Layout
5769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5790 \begin_layout Plain Layout
5796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5799 \begin_layout Plain Layout
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5808 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5846 \begin_layout Plain Layout
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5855 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5893 \begin_layout Plain Layout
5899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5902 \begin_layout Plain Layout
5917 \begin_layout Plain Layout
5934 \begin_layout Plain Layout
5938 addtocounter{table}{-1}
5944 \begin_inset Note Note
5947 \begin_layout Plain Layout
5948 See the first greyed-out note in section
5949 \begin_inset space ~
5953 \begin_inset CommandInset ref
5955 reference "subsec:Multi-page-Table-Captions"
5959 for an explanation of this command.
5967 \begin_layout Subsection
5968 Multi-page Table Captions
5969 \begin_inset Index idx
5972 \begin_layout Plain Layout
5973 Table ! Multi-page Table ! Captions
5979 \begin_inset CommandInset label
5981 name "subsec:Multi-page-Table-Captions"
5988 \begin_layout Standard
5989 A multi-page table cannot be put into a table float because floats can only
5991 But the caption environment of floats can also be used for multi-page tables
5992 when you use the multi-page table option
5996 as described in sec.
5997 \begin_inset space \thinspace{}
6001 \begin_inset CommandInset ref
6003 reference "sec:Multi-page-Tables"
6008 Only one table row should contain a caption, either a header or a footer
6012 \begin_layout Standard
6013 Here is a short multi-page table to see how it works:
6016 \begin_layout Standard
6017 \begin_inset Tabular
6018 <lyxtabular version="3" rows="6" columns="5">
6019 <features islongtable="true" longtabularalignment="center">
6020 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6026 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6029 \begin_layout Plain Layout
6030 \begin_inset Caption Standard
6032 \begin_layout Plain Layout
6033 Multi-page table with caption
6034 \begin_inset Argument 1
6037 \begin_layout Plain Layout
6053 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6056 \begin_layout Plain Layout
6062 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6065 \begin_layout Plain Layout
6071 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6074 \begin_layout Plain Layout
6080 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6083 \begin_layout Plain Layout
6091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6094 \begin_layout Plain Layout
6100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6103 \begin_layout Plain Layout
6109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6112 \begin_layout Plain Layout
6118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6121 \begin_layout Plain Layout
6127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6130 \begin_layout Plain Layout
6138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6141 \begin_layout Plain Layout
6147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6150 \begin_layout Plain Layout
6156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6159 \begin_layout Plain Layout
6165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6168 \begin_layout Plain Layout
6174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6177 \begin_layout Plain Layout
6185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6188 \begin_layout Plain Layout
6194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6197 \begin_layout Plain Layout
6203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6206 \begin_layout Plain Layout
6212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6215 \begin_layout Plain Layout
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6224 \begin_layout Plain Layout
6232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6235 \begin_layout Plain Layout
6241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6244 \begin_layout Plain Layout
6250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6253 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6271 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6282 \begin_layout Plain Layout
6288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6291 \begin_layout Plain Layout
6297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6300 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6318 \begin_layout Plain Layout
6332 \begin_layout Standard
6333 \begin_inset VSpace medskip
6337 \begin_inset Note Greyedout
6340 \begin_layout Plain Layout
6344 \begin_inset space ~
6349 The table number is increased for every multi-page table, even if you did
6350 not set a caption for it.
6351 For this reason you could have the case that e.
6352 \begin_inset space \thinspace{}
6356 \begin_inset space \space{}
6360 \begin_inset space ~
6364 \begin_inset space ~
6367 2.1 in the list of tables if there are two multi-page tables without captions.
6368 To avoid this you can add the following command in \SpecialChar TeX
6369 Code after every multi-page
6370 table without a caption:
6373 \begin_layout Plain Layout
6378 addtocounter{table}{-1}
6381 \begin_layout Plain Layout
6382 This is not needed when none of your multi-page tables has a caption and
6383 you add the following code to the document preamble:
6386 \begin_layout Plain Layout
6396 \begin_inset Newline newline
6407 addtocounter{table}{-1}}
6415 \begin_layout Standard
6416 \begin_inset Note Greyedout
6419 \begin_layout Plain Layout
6423 \begin_inset space ~
6433 \begin_inset Index idx
6436 \begin_layout Plain Layout
6438 -packages ! hyperref
6451 dialog to link cross-references, the link to a multi-page table caption
6452 will always point to the beginning of the document.
6460 \begin_layout Subsubsection
6461 References to multi-page tables
6462 \begin_inset Index idx
6465 \begin_layout Plain Layout
6466 Table ! Multi-page Table ! References
6474 \begin_layout Standard
6475 \begin_inset Tabular
6476 <lyxtabular version="3" rows="6" columns="5">
6477 <features islongtable="true" longtabularalignment="center">
6478 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6484 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6487 \begin_layout Plain Layout
6488 \begin_inset Caption Standard
6490 \begin_layout Plain Layout
6491 Referenced multi-page table
6492 \begin_inset CommandInset label
6494 name "tab:Referenced-multi-page-table"
6508 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6511 \begin_layout Plain Layout
6517 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6520 \begin_layout Plain Layout
6526 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6529 \begin_layout Plain Layout
6535 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6538 \begin_layout Plain Layout
6546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6549 \begin_layout Plain Layout
6555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6558 \begin_layout Plain Layout
6564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6567 \begin_layout Plain Layout
6573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6576 \begin_layout Plain Layout
6582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6585 \begin_layout Plain Layout
6593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6596 \begin_layout Plain Layout
6602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6605 \begin_layout Plain Layout
6611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6614 \begin_layout Plain Layout
6620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6623 \begin_layout Plain Layout
6629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6632 \begin_layout Plain Layout
6640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6643 \begin_layout Plain Layout
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Plain Layout
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Plain Layout
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Plain Layout
6676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6679 \begin_layout Plain Layout
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6690 \begin_layout Plain Layout
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6708 \begin_layout Plain Layout
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6717 \begin_layout Plain Layout
6723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6726 \begin_layout Plain Layout
6734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6737 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6755 \begin_layout Plain Layout
6761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6764 \begin_layout Plain Layout
6770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6773 \begin_layout Plain Layout
6787 \begin_layout Standard
6788 To reference a multi-page table, insert a label into the caption.
6791 \begin_layout Standard
6792 This is a reference to Table
6793 \begin_inset space ~
6797 \begin_inset CommandInset ref
6799 reference "tab:Referenced-multi-page-table"
6806 \begin_layout Standard
6807 The caption layout can be set together with all other captions of your document
6808 using the \SpecialChar LaTeX
6814 \begin_inset Index idx
6817 \begin_layout Plain Layout
6825 \begin_inset space ~
6829 \begin_inset CommandInset ref
6831 reference "sec:Caption-Formatting"
6838 \begin_layout Subsubsection
6840 \begin_inset Index idx
6843 \begin_layout Plain Layout
6844 Table ! Multi-page Table ! Caption Width
6852 \begin_layout Standard
6853 The maximal width of caption lines is defined by the length
6860 Its default value is 4
6861 \begin_inset space \thinspace{}
6865 To change it add the following command to your document preamble or as
6867 Code into your document before the multi-page table that should be affected
6870 \begin_layout Standard
6880 \begin_layout Standard
6885 can have one of the units listed in appendix
6886 \begin_inset space ~
6890 \begin_inset CommandInset ref
6892 reference "cha:Units-available-in"
6899 \begin_layout Standard
6900 The following tables show the difference:
6903 \begin_layout Standard
6904 \begin_inset Tabular
6905 <lyxtabular version="3" rows="6" columns="5">
6906 <features islongtable="true" longtabularalignment="center">
6907 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6913 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6916 \begin_layout Plain Layout
6917 \begin_inset Caption Standard
6919 \begin_layout Plain Layout
6920 Long full title with default width long full title with default width long
6921 full title with default width
6922 \begin_inset Argument 1
6925 \begin_layout Plain Layout
6926 caption with default width
6941 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6944 \begin_layout Plain Layout
6950 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6953 \begin_layout Plain Layout
6959 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6962 \begin_layout Plain Layout
6968 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6971 \begin_layout Plain Layout
6979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7000 \begin_layout Plain Layout
7006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7009 \begin_layout Plain Layout
7015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7018 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7056 \begin_layout Plain Layout
7062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7065 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7103 \begin_layout Plain Layout
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7112 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7150 \begin_layout Plain Layout
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7159 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7197 \begin_layout Plain Layout
7203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7206 \begin_layout Plain Layout
7220 \begin_layout Standard
7224 \begin_layout Plain Layout
7236 \begin_inset Tabular
7237 <lyxtabular version="3" rows="6" columns="5">
7238 <features islongtable="true" longtabularalignment="center">
7239 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
7245 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7248 \begin_layout Plain Layout
7249 \begin_inset Caption Standard
7251 \begin_layout Plain Layout
7252 Long full title with width set to 5
7253 \begin_inset space \thinspace{}
7256 cm long full title with width set to 5
7257 \begin_inset space \thinspace{}
7260 cm long full title with width set to 5
7261 \begin_inset space \thinspace{}
7265 \begin_inset Argument 1
7268 \begin_layout Plain Layout
7270 \begin_inset space \thinspace{}
7274 \begin_inset space \thinspace{}
7278 \begin_inset space \thinspace{}
7296 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7299 \begin_layout Plain Layout
7305 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7308 \begin_layout Plain Layout
7314 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7317 \begin_layout Plain Layout
7323 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7326 \begin_layout Plain Layout
7334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7337 \begin_layout Plain Layout
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Plain Layout
7352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7355 \begin_layout Plain Layout
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7364 \begin_layout Plain Layout
7370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7373 \begin_layout Plain Layout
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7384 \begin_layout Plain Layout
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7393 \begin_layout Plain Layout
7399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7402 \begin_layout Plain Layout
7408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7411 \begin_layout Plain Layout
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7420 \begin_layout Plain Layout
7428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7431 \begin_layout Plain Layout
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Plain Layout
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Plain Layout
7455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7458 \begin_layout Plain Layout
7464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7467 \begin_layout Plain Layout
7475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7478 \begin_layout Plain Layout
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7487 \begin_layout Plain Layout
7493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7505 \begin_layout Plain Layout
7511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7514 \begin_layout Plain Layout
7522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7525 \begin_layout Plain Layout
7531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7534 \begin_layout Plain Layout
7540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7543 \begin_layout Plain Layout
7549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7552 \begin_layout Plain Layout
7558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7561 \begin_layout Plain Layout
7575 \begin_layout Standard
7579 \begin_layout Plain Layout
7593 \begin_layout Standard
7594 \begin_inset Note Greyedout
7597 \begin_layout Plain Layout
7602 When the \SpecialChar LaTeX
7608 \begin_inset Index idx
7611 \begin_layout Plain Layout
7618 is used, as in this document, the full page width is used for the caption
7619 when you use the default value of 4
7620 \begin_inset space \thinspace{}
7630 To get in this case exactly a 4
7631 \begin_inset space \thinspace{}
7634 in wide caption, you can either use a value slightly different from 4.0
7635 \begin_inset space \thinspace{}
7639 \begin_inset space \thinspace{}
7643 \begin_inset space \space{}
7647 \begin_inset space \thinspace{}
7650 in, or the \SpecialChar LaTeX
7655 captionsetup{width=value}
7657 that is provided by the
7669 \begin_layout Subsubsection
7670 Different Captions for Table Pages
7671 \begin_inset Index idx
7674 \begin_layout Plain Layout
7675 Table ! Multi-page Table ! Different Captions for Pages
7683 \begin_layout Standard
7684 When the table captions for the following pages should differ from the one
7685 of the first table page, mark a empty row as header which contains a caption.
7686 Then right-click on the caption and select in the context menu
7689 \begin_inset space ~
7696 \begin_inset space ~
7700 \begin_inset CommandInset ref
7702 reference "tab:DiffCaptions"
7706 is an example of a multi-page table with different heading where the second
7707 caption does not include the table number.
7708 \begin_inset Separator parbreak
7714 \begin_layout Standard
7716 \begin_inset Tabular
7717 <lyxtabular version="3" rows="59" columns="3">
7718 <features islongtable="true" longtabularalignment="center">
7719 <column alignment="left" valignment="top" width="0cm">
7720 <column alignment="left" valignment="top" width="0pt">
7721 <column alignment="center" valignment="top" width="0pt">
7722 <row endfirsthead="true" caption="true">
7723 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7726 \begin_layout Plain Layout
7727 \begin_inset Caption Standard
7729 \begin_layout Plain Layout
7731 \begin_inset CommandInset label
7733 name "tab:DiffCaptions"
7738 \begin_inset Argument 1
7741 \begin_layout Plain Layout
7757 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7760 \begin_layout Plain Layout
7766 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7769 \begin_layout Plain Layout
7776 <row endfirsthead="true">
7777 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7780 \begin_layout Plain Layout
7783 Example Phone List (ignore the names)
7788 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7791 \begin_layout Plain Layout
7797 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7800 \begin_layout Plain Layout
7807 <row endfirsthead="true">
7808 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7811 \begin_layout Plain Layout
7819 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7822 \begin_layout Plain Layout
7828 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7831 \begin_layout Plain Layout
7840 <row endhead="true" caption="true">
7841 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7844 \begin_layout Plain Layout
7845 \begin_inset Caption Unnumbered
7847 \begin_layout Plain Layout
7848 Continued Example Phone List
7858 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7861 \begin_layout Plain Layout
7867 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7870 \begin_layout Plain Layout
7877 <row endhead="true">
7878 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7881 \begin_layout Plain Layout
7889 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7892 \begin_layout Plain Layout
7898 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7901 \begin_layout Plain Layout
7908 <row endhead="true">
7909 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7912 \begin_layout Plain Layout
7920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7923 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7932 \begin_layout Plain Layout
7941 <row endfoot="true">
7942 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7945 \begin_layout Plain Layout
7946 continued on next page
7951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7954 \begin_layout Plain Layout
7960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7963 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7974 \begin_layout Plain Layout
7982 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7985 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8005 \begin_layout Plain Layout
8013 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8016 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8044 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8047 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8078 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8087 \begin_layout Plain Layout
8095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8109 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8118 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8140 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8171 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8202 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8233 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8264 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8295 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8326 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8357 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8388 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8417 \begin_layout Plain Layout
8428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8431 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8440 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8451 \begin_layout Plain Layout
8459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8462 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8482 \begin_layout Plain Layout
8490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8493 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8524 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8555 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8586 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8617 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8648 \begin_layout Plain Layout
8654 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8716 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8747 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8778 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8809 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8840 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8871 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8902 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8933 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8953 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8956 \begin_layout Plain Layout
8962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8965 \begin_layout Plain Layout
8973 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8976 \begin_layout Plain Layout
8984 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8987 \begin_layout Plain Layout
8993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9015 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9018 \begin_layout Plain Layout
9024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9046 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9049 \begin_layout Plain Layout
9055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9080 \begin_layout Plain Layout
9086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9111 \begin_layout Plain Layout
9117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9142 \begin_layout Plain Layout
9148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9173 \begin_layout Plain Layout
9179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9204 \begin_layout Plain Layout
9210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9235 \begin_layout Plain Layout
9241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9266 \begin_layout Plain Layout
9272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9297 \begin_layout Plain Layout
9303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9306 \begin_layout Plain Layout
9314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9328 \begin_layout Plain Layout
9334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9337 \begin_layout Plain Layout
9345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9359 \begin_layout Plain Layout
9365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9368 \begin_layout Plain Layout
9376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9390 \begin_layout Plain Layout
9396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9399 \begin_layout Plain Layout
9407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9421 \begin_layout Plain Layout
9427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9430 \begin_layout Plain Layout
9438 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9452 \begin_layout Plain Layout
9458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9461 \begin_layout Plain Layout
9469 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9483 \begin_layout Plain Layout
9489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9492 \begin_layout Plain Layout
9500 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9514 \begin_layout Plain Layout
9520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9523 \begin_layout Plain Layout
9531 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9545 \begin_layout Plain Layout
9551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9554 \begin_layout Plain Layout
9562 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9565 \begin_layout Plain Layout
9573 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9576 \begin_layout Plain Layout
9582 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9585 \begin_layout Plain Layout
9599 \begin_layout Section
9600 Special Multi-page Table Issues
9601 \begin_inset CommandInset label
9603 name "sec:Special-Longtable-Issues"
9610 \begin_layout Subsection
9611 Multi-page Table Calculation
9612 \begin_inset Index idx
9615 \begin_layout Plain Layout
9616 Table ! Multi-page Table ! Calculation
9624 \begin_layout Standard
9626 calculates the height of table pages and their page breaks using so called
9628 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9630 The default value was historically set to only 20
9631 \begin_inset space ~
9635 If you are using multi-page tables with many pages this may slow down the
9636 creation of your document.
9637 You can safely increase the chunk size to values of 100
9638 \begin_inset space \thinspace{}
9642 \begin_inset space \thinspace{}
9645 1000 by adding this command line to your document preamble:
9648 \begin_layout Standard
9653 setcounter{LTchunksize}{100}
9656 \begin_layout Subsection
9657 Floats and Multi-page Tables
9658 \begin_inset Index idx
9661 \begin_layout Plain Layout
9662 Table ! Multi-page Table ! Floats
9670 \begin_layout Standard
9671 There might be problems when a float appears on the same page where a multi-page
9673 To avoid such a situation, insert a
9674 \begin_inset Quotes eld
9678 \begin_inset Quotes erd
9683 Insert\SpecialChar menuseparator
9684 Formatting\SpecialChar menuseparator
9686 \begin_inset space ~
9691 ) before your multi-page table.
9694 \begin_layout Subsection
9696 \begin_inset Index idx
9699 \begin_layout Plain Layout
9700 Table ! Multi-page Table ! Forced Page Breaks
9708 \begin_layout Standard
9709 By default tables are only broken between rows.
9710 If you have a cell with multiples lines and want to have a page break within
9711 the cell, insert the new line command
9712 \begin_inset Quotes eld
9724 \begin_inset Quotes erd
9728 Code at the point of the cell where it can be broken.
9737 command you have to insert in \SpecialChar TeX
9739 \begin_inset Quotes eld
9747 \begin_inset Quotes erd
9750 characters as the number of the following table columns.
9755 is the character to separate table cells.
9756 Write in \SpecialChar TeX
9761 the content of the corresponding following cell and delete the content
9763 \begin_inset Newline newline
9774 command, insert as many
9778 characters as the number of table columns before the current column.
9780 \begin_inset space ~
9784 \begin_inset CommandInset ref
9786 reference "tab:ForcedPagebreak"
9790 the cell that should be broken is in the second column followed by another
9792 Therefore the following command was inserted in the cell as \SpecialChar TeX
9795 \begin_inset Quotes eld
9803 \begin_inset Quotes erd
9809 \begin_layout Standard
9819 \begin_inset Newline newline
9825 \begin_layout Standard
9827 \begin_inset Quotes eld
9831 \begin_inset Quotes erd
9834 in the third column of the row was deleted.
9841 is only needed when a page break should definitely occur at this position,
9842 otherwise it would be a conditional break.
9843 If your footer row of the multi-page table has for a certain reason no
9844 upper line but you would have a horizontal line where the cell is broken,
9845 use this command instead:
9848 \begin_layout Standard
9856 \begin_inset Newline newline
9864 \begin_layout Standard
9865 When the cell to be broken is in the last column, the command
9868 \begin_layout Standard
9878 \begin_layout Standard
9879 must be inserted as \SpecialChar TeX
9880 Code at the beginning of the cell.
9881 This ensures that the part of the cell that will be displayed on the new
9882 page appears with the full width.
9883 \begin_inset Separator parbreak
9889 \begin_layout Standard
9891 \begin_inset Tabular
9892 <lyxtabular version="3" rows="38" columns="3">
9893 <features islongtable="true" longtabularalignment="center">
9894 <column alignment="left" valignment="top" width="0cm">
9895 <column alignment="left" valignment="top" width="3cm">
9896 <column alignment="center" valignment="top" width="0pt">
9897 <row endfirsthead="true" caption="true">
9898 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9901 \begin_layout Plain Layout
9902 \begin_inset Caption Standard
9904 \begin_layout Plain Layout
9905 Table with forced page break in table cell
9906 \begin_inset CommandInset label
9908 name "tab:ForcedPagebreak"
9913 \begin_inset Argument 1
9916 \begin_layout Plain Layout
9917 Table with forced page break in table cell
9932 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9951 <row endfirsthead="true">
9952 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9955 \begin_layout Plain Layout
9958 Example Phone List (ignore the names)
9963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9982 <row endfirsthead="true">
9983 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9986 \begin_layout Plain Layout
9994 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9997 \begin_layout Plain Layout
10003 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10006 \begin_layout Plain Layout
10015 <row endhead="true" caption="true">
10016 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10019 \begin_layout Plain Layout
10020 \begin_inset Caption Unnumbered
10022 \begin_layout Plain Layout
10023 Continued Example Phone List
10033 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10036 \begin_layout Plain Layout
10042 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10045 \begin_layout Plain Layout
10052 <row endhead="true">
10053 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10067 \begin_layout Plain Layout
10073 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10076 \begin_layout Plain Layout
10083 <row endhead="true">
10084 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10087 \begin_layout Plain Layout
10095 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10098 \begin_layout Plain Layout
10104 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10107 \begin_layout Plain Layout
10116 <row endfoot="true">
10117 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10120 \begin_layout Plain Layout
10121 continued on next page
10126 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10129 \begin_layout Plain Layout
10135 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10138 \begin_layout Plain Layout
10146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10160 \begin_layout Plain Layout
10166 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10169 \begin_layout Plain Layout
10177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10191 \begin_layout Plain Layout
10197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10200 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10222 \begin_layout Plain Layout
10228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10231 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10253 \begin_layout Plain Layout
10259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10262 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10284 \begin_layout Plain Layout
10290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10293 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10315 \begin_layout Plain Layout
10321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10324 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10346 \begin_layout Plain Layout
10352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10355 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10377 \begin_layout Plain Layout
10383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10386 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10408 \begin_layout Plain Layout
10414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10417 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10439 \begin_layout Plain Layout
10445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10448 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10470 \begin_layout Plain Layout
10476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10479 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10501 \begin_layout Plain Layout
10507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10510 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10532 \begin_layout Plain Layout
10538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10541 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10563 \begin_layout Plain Layout
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10831 \begin_layout Plain Layout
10839 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10842 \begin_layout Plain Layout
10844 Fürst von Montecompatri, 11.
10845 Fürst von Sulmona und Vivaro, 10.
10846 Fürst von Rossano, 5.
10847 Herzog von Canemorte, 11.
10848 Herzog von Palombara, 5.
10849 Herzog von Castelchiodato,
10853 \begin_layout Plain Layout
10864 \begin_layout Plain Layout
10872 Herzog von Poggionativo, 11.
10873 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10874 Graf von Valinfreda, 11.
10875 Baron von Cropalati, 11.
10876 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10884 \begin_layout Plain Layout
10892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10906 \begin_layout Plain Layout
10912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10915 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10937 \begin_layout Plain Layout
10943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10946 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10968 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10977 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11008 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11030 \begin_layout Plain Layout
11036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11039 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11061 \begin_layout Plain Layout
11067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11070 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11092 \begin_layout Plain Layout
11098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11101 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11112 \begin_layout Plain Layout
11120 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11123 \begin_layout Plain Layout
11129 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11132 \begin_layout Plain Layout
11146 \begin_layout Section
11147 Multiple Lines, Columns and Rows
11150 \begin_layout Subsection
11151 Multiple Lines in Table Cells
11152 \begin_inset CommandInset label
11154 name "subsec:Multiple-Lines-in"
11159 \begin_inset Index idx
11162 \begin_layout Plain Layout
11163 Multiple Lines in Table Cells
11169 \begin_inset Index idx
11172 \begin_layout Plain Layout
11181 \begin_layout Standard
11183 \begin_inset Float table
11189 \begin_layout Plain Layout
11190 \begin_inset Caption Standard
11192 \begin_layout Plain Layout
11193 \begin_inset CommandInset label
11195 name "tab:Table-with-multiple"
11199 Table with multiple lines in cells
11207 \begin_layout Plain Layout
11209 \begin_inset Tabular
11210 <lyxtabular version="3" rows="3" columns="3">
11211 <features tabularvalignment="middle">
11212 <column alignment="center" valignment="middle" width="2.5cm">
11213 <column alignment="center" valignment="middle">
11214 <column alignment="center" valignment="middle">
11216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11219 \begin_layout Plain Layout
11221 \begin_inset Newline linebreak
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11241 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11252 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11261 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11270 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11281 \begin_layout Plain Layout
11287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11290 \begin_layout Plain Layout
11296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11299 \begin_layout Plain Layout
11318 \begin_layout Standard
11319 Setting a fixed width for a column enables you to enter text as a paragraph
11320 with multiple lines and hyphenation.
11323 \begin_layout Standard
11325 \begin_inset space ~
11329 \begin_inset CommandInset ref
11331 reference "tab:Table-with-multiple"
11335 , create a 3×3 table, mark the first cell and right-click on it.
11336 In the appearing table dialog we set a cell width of 2.5
11337 \begin_inset space \thinspace{}
11340 cm and choose centered for the vertical and horizontal alignment.
11341 The vertical alignment is used for all cells of the row.
11342 As our text is smaller than 2.5
11343 \begin_inset space \thinspace{}
11346 cm, only one line will appear.
11347 To get two lines, a justified line break (shortcut
11350 arg "newline-insert linebreak"
11354 If the text is wider than the set cell width, it will automatically be
11355 broken to several lines.
11358 \begin_layout Standard
11359 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11360 by \SpecialChar LaTeX
11361 if it is the first entry.
11362 Therefore you need to insert something to prevent the word not being the
11364 So add a horizontal space of 0
11365 \begin_inset space \thinspace{}
11368 pt before the word.
11369 As the space is zero, it doesn't change the output.
11371 \begin_inset space ~
11375 \begin_inset CommandInset ref
11377 reference "tab:Table-with-and"
11384 \begin_layout Standard
11385 \begin_inset Float table
11391 \begin_layout Plain Layout
11392 \begin_inset Caption Standard
11394 \begin_layout Plain Layout
11395 \begin_inset CommandInset label
11397 name "tab:Table-with-and"
11401 Table with and without hyphenation
11409 \begin_layout Plain Layout
11410 \begin_inset space \hfill{}
11414 \begin_inset Tabular
11415 <lyxtabular version="3" rows="3" columns="3">
11416 <features tabularvalignment="middle">
11417 <column alignment="center" valignment="middle" width="2.5cm">
11418 <column alignment="center" valignment="middle">
11419 <column alignment="center" valignment="middle">
11421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11424 \begin_layout Plain Layout
11425 verylongtablecellword
11430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11433 \begin_layout Plain Layout
11439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11442 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11453 \begin_layout Plain Layout
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11471 \begin_layout Plain Layout
11479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11482 \begin_layout Plain Layout
11488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11500 \begin_layout Plain Layout
11512 \begin_inset space \hfill{}
11516 \begin_inset Tabular
11517 <lyxtabular version="3" rows="3" columns="3">
11518 <features tabularvalignment="middle">
11519 <column alignment="center" valignment="middle" width="2.5cm">
11520 <column alignment="center" valignment="middle">
11521 <column alignment="center" valignment="middle">
11523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11526 \begin_layout Plain Layout
11527 \begin_inset space \hspace{}
11531 verylongtablecellword
11536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11539 \begin_layout Plain Layout
11545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11548 \begin_layout Plain Layout
11556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11559 \begin_layout Plain Layout
11565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11568 \begin_layout Plain Layout
11574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11577 \begin_layout Plain Layout
11585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11588 \begin_layout Plain Layout
11594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11597 \begin_layout Plain Layout
11603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11606 \begin_layout Plain Layout
11618 \begin_inset space \hfill{}
11629 \begin_layout Subsection
11631 \begin_inset CommandInset label
11633 name "subsec:Multicolumns"
11638 \begin_inset Index idx
11641 \begin_layout Plain Layout
11648 \begin_inset Index idx
11651 \begin_layout Plain Layout
11652 Table ! Multicolumns
11660 \begin_layout Subsubsection
11664 \begin_layout Standard
11665 To merge cells over multiple columns, select as many cells within a row
11666 as you want to merge and use either the table-toolbar button
11669 arg "tabular-feature multicolumn"
11674 Edit\SpecialChar menuseparator
11675 Table\SpecialChar menuseparator
11678 , or right click on the marked cells and choose
11682 in the context menu.
11685 \begin_layout Standard
11686 Multicolumns have there own cell settings.
11687 That means changing cell borders, cell alignment, and the width only affects
11689 Here is an example table with a multicolumn cell in the first row and one
11690 in the last row without the upper border:
11691 \begin_inset Separator parbreak
11697 \begin_layout Standard
11699 \begin_inset Tabular
11700 <lyxtabular version="3" rows="3" columns="4">
11701 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11702 <column alignment="center" valignment="top" width="0pt">
11703 <column alignment="center" valignment="middle">
11704 <column alignment="center" valignment="top" width="0in">
11705 <column alignment="center" valignment="top" width="0pt">
11707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11710 \begin_layout Plain Layout
11716 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11719 \begin_layout Plain Layout
11725 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11737 \begin_layout Plain Layout
11745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11748 \begin_layout Plain Layout
11763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11766 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11775 \begin_layout Plain Layout
11781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11784 \begin_layout Plain Layout
11792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11795 \begin_layout Plain Layout
11801 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11804 \begin_layout Plain Layout
11810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11813 \begin_layout Plain Layout
11819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11822 \begin_layout Plain Layout
11836 \begin_layout Subsubsection
11837 Multicolumn Calculations
11838 \begin_inset CommandInset label
11840 name "subsec:Multicolumn-Calculations"
11845 \begin_inset Index idx
11848 \begin_layout Plain Layout
11849 Multicolumns ! Calculations
11857 \begin_layout Standard
11859 supports multicolumns directly, but we have to take account of the cell
11860 width of the columns spanned by the multicolumn cell.
11863 \begin_layout Standard
11864 \begin_inset Float table
11870 \begin_layout Plain Layout
11871 \begin_inset Caption Standard
11873 \begin_layout Plain Layout
11874 \begin_inset CommandInset label
11876 name "tab:Table-with-centered"
11880 Table with centered multicolumn text above two columns that have exactly
11881 half the width of the multicolumn cell
11882 \begin_inset Argument 1
11885 \begin_layout Plain Layout
11886 Perfect multicolumn table
11899 \begin_layout Plain Layout
11901 \begin_inset Tabular
11902 <lyxtabular version="3" rows="3" columns="3">
11903 <features tabularvalignment="middle">
11904 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11905 <column alignment="center" valignment="middle">
11906 <column alignment="center" valignment="top">
11908 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11911 \begin_layout Plain Layout
11912 multiple lines multicolumn
11917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11920 \begin_layout Plain Layout
11926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11929 \begin_layout Plain Layout
11937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11940 \begin_layout Plain Layout
11946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11949 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11958 \begin_layout Plain Layout
11966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11969 \begin_layout Plain Layout
11975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11978 \begin_layout Plain Layout
11984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11987 \begin_layout Plain Layout
12006 \begin_layout Standard
12007 To create for example Table
12008 \begin_inset space ~
12012 \begin_inset CommandInset ref
12014 reference "tab:Table-with-centered"
12018 , mark the first two cells in the first row of a 3×3 table and right-click
12020 Now choose for this cell
12029 \begin_inset space \thinspace{}
12032 cm in the table dialog.
12033 The merged columns should have exactly half the width of the multicolumn
12034 cell, so that you would set a width of 1.25
12035 \begin_inset space \thinspace{}
12038 cm for the first column.
12039 The second column has then automatically a width of 1.25
12040 \begin_inset space \thinspace{}
12043 cm (multicolumn width - width of first column).
12044 This was done for Table
12045 \begin_inset space ~
12049 \begin_inset CommandInset ref
12051 reference "tab:Table-without-half"
12058 \begin_layout Standard
12059 \begin_inset Float table
12064 \begin_layout Plain Layout
12065 \begin_inset Caption Standard
12067 \begin_layout Plain Layout
12068 \begin_inset CommandInset label
12070 name "tab:Table-without-half"
12074 Table where the spanned table columns are not exactly half the width of
12075 the multicolumn cell
12076 \begin_inset Argument 1
12079 \begin_layout Plain Layout
12080 Imperfect multicolumn table
12093 \begin_layout Plain Layout
12095 \begin_inset Tabular
12096 <lyxtabular version="3" rows="3" columns="3">
12097 <features tabularvalignment="middle">
12098 <column alignment="center" valignment="top" width="1.25cm">
12099 <column alignment="center" valignment="top">
12100 <column alignment="center" valignment="top">
12102 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12105 \begin_layout Plain Layout
12106 multiple lines multicolumn
12111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12114 \begin_layout Plain Layout
12120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12123 \begin_layout Plain Layout
12131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12134 \begin_layout Plain Layout
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12152 \begin_layout Plain Layout
12160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12163 \begin_layout Plain Layout
12169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12172 \begin_layout Plain Layout
12178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12181 \begin_layout Plain Layout
12200 \begin_layout Standard
12201 You can see that the first column is not half the width of the multicolumn
12202 cell, it is a bit bigger.
12203 The reason is that the specified width of a cell
12204 \begin_inset Formula $W_{g}$
12207 is not its total width
12208 \begin_inset Formula $W_{\mathrm{tot}}$
12211 because a cell is always a bit larger than specified.
12213 \begin_inset space ~
12217 \begin_inset CommandInset ref
12219 reference "cha:Explanation-of-Equation"
12223 explains this in detail.
12226 \begin_layout Standard
12228 \begin_inset Formula $W_{g\,n}$
12231 which the user needs to set when
12235 columns are spanned can be calculated, so that each column has a total
12237 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12241 \begin_inset Formula
12243 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12251 \begin_layout Standard
12252 In our case we have
12253 \begin_inset Formula $n=2$
12257 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12260 cm and the default values for the lengths, so that equation
12261 \begin_inset CommandInset ref
12268 \begin_inset Formula
12270 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12278 \begin_layout Standard
12279 To enable calculations in \SpecialChar LaTeX
12280 , the \SpecialChar LaTeX
12285 must be loaded with the document preamble line
12286 \begin_inset Index idx
12289 \begin_layout Plain Layout
12299 \begin_layout Standard
12307 \begin_layout Standard
12309 does not allow you to calculate lengths in the
12313 field of the table dialog.
12314 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12317 Here is an overview about the arguments:
12320 \begin_layout Itemize
12325 creates cell with a fixed width, its text is vertically top-aligned
12328 \begin_layout Itemize
12333 creates cell with a fixed width, its text is vertically centered
12336 \begin_layout Itemize
12341 creates cell with a fixed width, its text is vertically bottom-aligned
12344 \begin_layout Standard
12345 By entering a \SpecialChar LaTeX
12346 -argument, all cell settings set in the table dialog are overwritt
12350 \begin_layout Standard
12351 \begin_inset Note Greyedout
12354 \begin_layout Plain Layout
12359 Due to a bug, \SpecialChar LyX
12360 shows the overwritten settings anyway.
12368 \begin_layout Standard
12369 As the text should be horizontally centered, the command
12376 You can now enter the following \SpecialChar LaTeX
12377 -argument for the first spanned column:
12380 \begin_layout Standard
12385 centering}m{1.25cm-6.2pt}
12388 \begin_layout Standard
12393 means, that the commands inside the braces are applied before the cell
12397 \begin_layout Standard
12398 Although we have chosen centered alignment for the text of the multicolumn
12399 cell, it is still left aligned.
12400 This is because \SpecialChar LyX
12401 only applies the alignment to single columns.
12402 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12406 \begin_layout Standard
12414 \begin_layout Subsection
12416 \begin_inset CommandInset label
12418 name "subsec:Multirows"
12423 \begin_inset Index idx
12426 \begin_layout Plain Layout
12433 \begin_inset Index idx
12436 \begin_layout Plain Layout
12445 \begin_layout Standard
12446 To merge cells over multiple rows, select as many cells within a column
12447 as you want to merge and use either the table-toolbar button
12450 arg "tabular-feature multirow"
12455 Edit\SpecialChar menuseparator
12456 Table\SpecialChar menuseparator
12459 , or right click on the marked cells and choose
12463 in the context menu.
12466 \begin_layout Standard
12467 Here is an example table with a multirow in the first column:
12468 \begin_inset Separator parbreak
12474 \begin_layout Standard
12476 \begin_inset Tabular
12477 <lyxtabular version="3" rows="3" columns="3">
12478 <features tabularvalignment="middle">
12479 <column alignment="center" valignment="top" width="0pt">
12480 <column alignment="center" valignment="top">
12481 <column alignment="center" valignment="top">
12483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12486 \begin_layout Plain Layout
12492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12495 \begin_layout Plain Layout
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12504 \begin_layout Plain Layout
12512 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12524 \begin_layout Plain Layout
12530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12533 \begin_layout Plain Layout
12541 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12544 \begin_layout Plain Layout
12550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12553 \begin_layout Plain Layout
12559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12562 \begin_layout Plain Layout
12576 \begin_layout Standard
12577 The width of multirow cells is set by setting the width and alignment for
12583 shifts the content of the multirow up/down if the offset is positive/negative.
12586 \begin_layout Standard
12587 If the column of a multirow cell has no explicit width, the multirow cell
12588 inherits the alignment of the column.
12589 Otherwise it is by default left-aligned.
12590 To override the default, renew the command
12599 \begin_layout Standard
12611 \begin_layout Standard
12612 in the document preamble.
12613 Then all entries of multirow cells in the document are centered.
12614 If centering is only needed for several tables, you can renew the command
12615 in a \SpecialChar TeX
12616 Code box just before the table instead of the preamble.
12617 If the text should be right-aligned, replace
12630 To return to left-alignment
12639 \begin_layout Standard
12640 This is an example table with a right-aligned multirow cell that has a vertical
12642 \begin_inset space \thinspace{}
12646 \begin_inset space \thinspace{}
12650 \begin_inset Separator parbreak
12656 \begin_layout Standard
12662 \begin_layout Plain Layout
12676 \begin_inset Tabular
12677 <lyxtabular version="3" rows="4" columns="3">
12678 <features tabularvalignment="middle">
12679 <column alignment="center" valignment="top" width="3cm">
12680 <column alignment="center" valignment="top">
12681 <column alignment="center" valignment="top">
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12695 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12724 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12741 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12753 \begin_layout Plain Layout
12759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12762 \begin_layout Plain Layout
12770 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12773 \begin_layout Plain Layout
12779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12782 \begin_layout Plain Layout
12788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12791 \begin_layout Plain Layout
12806 \begin_layout Plain Layout
12822 \begin_layout Standard
12823 To start a new line in a multirow you can use a forced line break (shortcut
12827 arg "newline-insert newline"
12830 ) but this will not respect the cell lines as demonstrated in this table:
12831 \begin_inset Separator parbreak
12837 \begin_layout Standard
12840 \begin_inset Tabular
12841 <lyxtabular version="3" rows="3" columns="2">
12842 <features tabularvalignment="middle">
12843 <column alignment="left" valignment="middle" width="2cm">
12844 <column alignment="center" valignment="top">
12846 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12849 \begin_layout Plain Layout
12851 \begin_inset Newline newline
12855 \begin_inset Newline newline
12863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12866 \begin_layout Plain Layout
12874 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12877 \begin_layout Plain Layout
12883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12886 \begin_layout Plain Layout
12894 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12897 \begin_layout Plain Layout
12903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12906 \begin_layout Plain Layout
12920 \begin_layout Standard
12921 Therefore be careful with forced line breaks.
12924 \begin_layout Subsection
12925 Cells with diagonal line(s)
12928 \begin_layout Standard
12929 To tell the reader what is meant by column and row headings in a table,
12930 it is helpful to split the first cell of the table by one or two diagonal
12932 This can be achieved by loading the \SpecialChar LaTeX
12938 \begin_inset Index idx
12941 \begin_layout Plain Layout
12943 -packages ! picinpar
12948 in the document preamble.
12949 The package provides the command
12955 that is inserted as \SpecialChar TeX
12956 Code and that can take 2 or 3
12957 \begin_inset space ~
12963 \begin_layout Standard
12968 diagbox[options]{lower left}{upper right}
12971 \begin_layout Standard
12976 diagbox[options]{lower left}{upper left}{upper right}
12979 \begin_layout Standard
12980 The first scheme divides the cell by a single diagonal line and the arguments
12981 are placed below and above this line.
12982 The second scheme divides the cell by 2
12983 \begin_inset space ~
12989 \begin_layout Standard
12993 \begin_layout Plain Layout
13003 \begin_inset Note Note
13006 \begin_layout Plain Layout
13007 The following section will only be displayed when the \SpecialChar LaTeX
13020 \begin_layout Standard
13021 Here is an example table where
13027 is used in the 2-argument scheme in the first cell:
13028 \begin_inset VSpace medskip
13034 \begin_layout Standard
13036 \begin_inset Tabular
13037 <lyxtabular version="3" rows="4" columns="4">
13038 <features tabularvalignment="middle">
13039 <column alignment="center" valignment="top">
13040 <column alignment="center" valignment="top">
13041 <column alignment="center" valignment="top">
13042 <column alignment="center" valignment="top">
13044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13047 \begin_layout Plain Layout
13051 \begin_layout Plain Layout
13064 \begin_layout Plain Layout
13075 \begin_layout Plain Layout
13087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13090 \begin_layout Plain Layout
13096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13099 \begin_layout Plain Layout
13105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13108 \begin_layout Plain Layout
13116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13119 \begin_layout Plain Layout
13125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13128 \begin_layout Plain Layout
13134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13137 \begin_layout Plain Layout
13143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13146 \begin_layout Plain Layout
13154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13157 \begin_layout Plain Layout
13163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13166 \begin_layout Plain Layout
13172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13175 \begin_layout Plain Layout
13181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13184 \begin_layout Plain Layout
13192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13195 \begin_layout Plain Layout
13201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13204 \begin_layout Plain Layout
13210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13213 \begin_layout Plain Layout
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13222 \begin_layout Plain Layout
13234 \begin_inset VSpace medskip
13240 \begin_layout Standard
13241 The 3-argument scheme is for example useful for cross-tables of sports leagues
13243 \begin_inset Separator parbreak
13249 \begin_layout Standard
13252 \begin_inset Tabular
13253 <lyxtabular version="3" rows="4" columns="4">
13254 <features tabularvalignment="middle">
13255 <column alignment="center" valignment="top" width="0pt">
13256 <column alignment="center" valignment="top">
13257 <column alignment="center" valignment="top">
13258 <column alignment="center" valignment="top">
13260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13263 \begin_layout Plain Layout
13267 \begin_layout Plain Layout
13280 \begin_layout Plain Layout
13291 \begin_layout Plain Layout
13302 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13317 \begin_layout Plain Layout
13323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13326 \begin_layout Plain Layout
13332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13335 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13355 \begin_layout Plain Layout
13361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13364 \begin_layout Plain Layout
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13373 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13393 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13402 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13411 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13422 \begin_layout Plain Layout
13428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13431 \begin_layout Plain Layout
13437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13440 \begin_layout Plain Layout
13446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13449 \begin_layout Plain Layout
13463 \begin_layout Standard
13464 For larger cross-tables one might use split cells in 2 or every corner of
13465 the table like in this example:
13466 \begin_inset Separator parbreak
13472 \begin_layout Standard
13475 \begin_inset Tabular
13476 <lyxtabular version="3" rows="5" columns="5">
13477 <features tabularvalignment="middle">
13478 <column alignment="center" valignment="top" width="0pt">
13479 <column alignment="center" valignment="top">
13480 <column alignment="center" valignment="top">
13481 <column alignment="center" valignment="top">
13482 <column alignment="center" valignment="top">
13484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13487 \begin_layout Plain Layout
13491 \begin_layout Plain Layout
13504 \begin_layout Plain Layout
13515 \begin_layout Plain Layout
13526 \begin_layout Plain Layout
13538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13541 \begin_layout Plain Layout
13547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13550 \begin_layout Plain Layout
13556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13559 \begin_layout Plain Layout
13565 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13568 \begin_layout Plain Layout
13572 \begin_layout Plain Layout
13585 \begin_layout Plain Layout
13596 \begin_layout Plain Layout
13607 \begin_layout Plain Layout
13621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13624 \begin_layout Plain Layout
13630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13633 \begin_layout Plain Layout
13639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13642 \begin_layout Plain Layout
13648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13651 \begin_layout Plain Layout
13657 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13660 \begin_layout Plain Layout
13668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13671 \begin_layout Plain Layout
13677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13680 \begin_layout Plain Layout
13686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13689 \begin_layout Plain Layout
13695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13698 \begin_layout Plain Layout
13704 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13707 \begin_layout Plain Layout
13715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13718 \begin_layout Plain Layout
13724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13727 \begin_layout Plain Layout
13733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13736 \begin_layout Plain Layout
13742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13745 \begin_layout Plain Layout
13751 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13754 \begin_layout Plain Layout
13762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13765 \begin_layout Plain Layout
13769 \begin_layout Plain Layout
13782 \begin_layout Plain Layout
13793 \begin_layout Plain Layout
13804 \begin_layout Plain Layout
13816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13819 \begin_layout Plain Layout
13825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13828 \begin_layout Plain Layout
13834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13837 \begin_layout Plain Layout
13843 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13846 \begin_layout Plain Layout
13850 \begin_layout Plain Layout
13863 \begin_layout Plain Layout
13874 \begin_layout Plain Layout
13885 \begin_layout Plain Layout
13905 \begin_layout Standard
13906 To rotate the diagonal lines, the command option
13931 and represent a point of a compass.
13936 is for example the south-west corner.
13937 Thus in the lower left cell of the above table the command
13940 \begin_layout Standard
13945 diagbox[dir=SW]{Team home}{Result}{Team away}
13948 \begin_layout Standard
13950 If no direction is given, it will be NW.
13953 \begin_layout Standard
13954 The necessary width of split cells is automatically calculated.
13955 Thus if you set a fixed column width smaller than the calculated one, the
13956 cell's content will protrude the cell borders:
13957 \begin_inset Separator parbreak
13963 \begin_layout Standard
13966 \begin_inset Tabular
13967 <lyxtabular version="3" rows="2" columns="2">
13968 <features tabularvalignment="middle">
13969 <column alignment="center" valignment="top" width="3cm">
13970 <column alignment="center" valignment="top">
13972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13975 \begin_layout Plain Layout
13979 \begin_layout Plain Layout
13992 \begin_layout Plain Layout
14003 \begin_layout Plain Layout
14015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14018 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14029 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14038 \begin_layout Plain Layout
14052 \begin_layout Standard
14053 If you need a certain width for columns with a split cell, use the command
14058 (replace '3cm' by the width you need).
14059 In the following table the width of the first column is set to 4
14060 \begin_inset space \thinspace{}
14071 \begin_inset space \thinspace{}
14075 \begin_inset space \thinspace{}
14080 tabcolsep is necessary because the overall width is the width for the text
14081 (in this case the 4
14082 \begin_inset space \thinspace{}
14085 cm) plus two times the separation of the text and the cell border.
14086 The calculation of the width cannot be done in the command option of
14092 so one needs to create a new length which can be used later.
14093 This is done with the \SpecialChar TeX
14097 \begin_layout Standard
14105 \begin_inset Newline newline
14117 \begin_layout Standard
14121 \begin_layout Plain Layout
14130 \begin_layout Plain Layout
14146 \begin_layout Standard
14147 To enable calculations in \SpecialChar LaTeX
14148 one needs to load the package
14153 \begin_inset Index idx
14156 \begin_layout Plain Layout
14163 in the document preamble.
14166 \begin_layout Standard
14167 In this table you can now use the command
14170 \begin_layout Standard
14180 \begin_layout Standard
14182 \begin_inset Separator parbreak
14188 \begin_layout Standard
14191 \begin_inset Tabular
14192 <lyxtabular version="3" rows="2" columns="2">
14193 <features tabularvalignment="middle">
14194 <column alignment="center" valignment="top" width="4cm">
14195 <column alignment="center" valignment="top">
14197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14204 \begin_layout Plain Layout
14219 \begin_layout Plain Layout
14230 \begin_layout Plain Layout
14242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14245 \begin_layout Plain Layout
14253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14256 \begin_layout Plain Layout
14262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14265 \begin_layout Plain Layout
14279 \begin_layout Standard
14280 Note that the split cell needs to be the widest one in the column.
14281 Otherwise the length of the diagonal line cannot be calculated correctly
14282 like in this table:
14283 \begin_inset Separator parbreak
14289 \begin_layout Standard
14292 \begin_inset Tabular
14293 <lyxtabular version="3" rows="2" columns="2">
14294 <features tabularvalignment="middle">
14295 <column alignment="center" valignment="top" width="0pt">
14296 <column alignment="center" valignment="top">
14298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14301 \begin_layout Plain Layout
14305 \begin_layout Plain Layout
14318 \begin_layout Plain Layout
14329 \begin_layout Plain Layout
14341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14344 \begin_layout Plain Layout
14352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14355 \begin_layout Plain Layout
14361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14364 \begin_layout Plain Layout
14378 \begin_layout Standard
14379 In this case use the
14390 It is then not necessary to add 2
14392 tabcolsep because the cell width is now the width of the column.
14393 In this table a width of 3
14394 \begin_inset space \thinspace{}
14398 \begin_inset Separator parbreak
14404 \begin_layout Standard
14407 \begin_inset Tabular
14408 <lyxtabular version="3" rows="2" columns="2">
14409 <features tabularvalignment="middle">
14410 <column alignment="center" valignment="top" width="0pt">
14411 <column alignment="center" valignment="top">
14413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14416 \begin_layout Plain Layout
14420 \begin_layout Plain Layout
14424 diagbox[width=3cm]{
14433 \begin_layout Plain Layout
14444 \begin_layout Plain Layout
14456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14459 \begin_layout Plain Layout
14467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14470 \begin_layout Plain Layout
14476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14479 \begin_layout Plain Layout
14493 \begin_layout Standard
14494 For multiple text lines in split cells one needs some extra height to fit
14495 the text to the cell.
14496 This can be achieved with the
14506 (replace '3cm' by the height you need).
14507 In the following table the command
14510 \begin_layout Standard
14515 diagbox[width=3cm,height=1.4cm]{A
14526 \begin_layout Standard
14527 is used in the first cell.
14536 creates hereby the line break.
14540 \begin_layout Plain Layout
14541 Breaking lines with
14545 is only possible when the column has a fixed width.
14551 \begin_inset Separator parbreak
14557 \begin_layout Standard
14560 \begin_inset Tabular
14561 <lyxtabular version="3" rows="2" columns="2">
14562 <features tabularvalignment="middle">
14563 <column alignment="center" valignment="top">
14564 <column alignment="center" valignment="top">
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14569 \begin_layout Plain Layout
14573 \begin_layout Plain Layout
14577 diagbox[width=3cm,height=1.4cm]{
14586 \begin_layout Plain Layout
14601 \begin_layout Plain Layout
14612 \begin_layout Plain Layout
14627 \begin_layout Plain Layout
14639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14642 \begin_layout Plain Layout
14650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14653 \begin_layout Plain Layout
14659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14662 \begin_layout Plain Layout
14676 \begin_layout Standard
14680 \begin_layout Plain Layout
14690 \begin_inset Note Note
14693 \begin_layout Plain Layout
14694 The following will be displayed when the \SpecialChar LaTeX
14707 \begin_layout Standard
14708 You need to install the \SpecialChar LaTeX
14713 to see the following part of this section in the output.
14716 \begin_layout Standard
14720 \begin_layout Plain Layout
14732 \begin_layout Standard
14733 For more info about the \SpecialChar LaTeX
14738 , see its documentation,
14739 \begin_inset CommandInset citation
14748 \begin_layout Section
14750 \begin_inset CommandInset label
14752 name "sec:Formal-Tables"
14757 \begin_inset Index idx
14760 \begin_layout Plain Layout
14769 \begin_layout Standard
14770 Tables are often typeset in books similar to Table
14771 \begin_inset space ~
14775 \begin_inset CommandInset ref
14777 reference "tab:Example-booktabs-table"
14782 This kind of tables is called
14783 \begin_inset Quotes eld
14791 \begin_inset Quotes erd
14795 To make a table a formal table use the option
14803 tab of the table dialog.
14806 \begin_layout Standard
14807 \begin_inset Float table
14813 \begin_layout Plain Layout
14814 \begin_inset Caption Standard
14816 \begin_layout Plain Layout
14817 \begin_inset CommandInset label
14819 name "tab:Example-booktabs-table"
14823 Example booktabs-table
14831 \begin_layout Plain Layout
14833 \begin_inset Tabular
14834 <lyxtabular version="3" rows="8" columns="4">
14835 <features booktabs="true" tabularvalignment="middle">
14836 <column alignment="center" valignment="top">
14837 <column alignment="center" valignment="top">
14838 <column alignment="center" valignment="top">
14839 <column alignment="center" valignment="top">
14841 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14844 \begin_layout Plain Layout
14850 <cell alignment="center" valignment="top" topline="true" usebox="none">
14853 \begin_layout Plain Layout
14855 \begin_inset space \thinspace{}
14863 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14866 \begin_layout Plain Layout
14868 \begin_inset space \thinspace{}
14876 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14879 \begin_layout Plain Layout
14887 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14890 \begin_layout Plain Layout
14894 \begin_layout Plain Layout
14907 \begin_layout Plain Layout
14916 Detector thickness in µm
14921 <cell alignment="center" valignment="top" usebox="none">
14924 \begin_layout Plain Layout
14930 <cell alignment="center" valignment="top" usebox="none">
14933 \begin_layout Plain Layout
14939 <cell alignment="center" valignment="top" usebox="none">
14942 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14953 \begin_layout Plain Layout
14959 <cell alignment="center" valignment="top" topline="true" usebox="none">
14962 \begin_layout Plain Layout
14968 <cell alignment="center" valignment="top" topline="true" usebox="none">
14971 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" topline="true" usebox="none">
14980 \begin_layout Plain Layout
14987 <row topspace="default">
14988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14991 \begin_layout Plain Layout
14992 Spatial resolution in µm
14997 <cell alignment="center" valignment="top" usebox="none">
15000 \begin_layout Plain Layout
15006 <cell alignment="center" valignment="top" usebox="none">
15009 \begin_layout Plain Layout
15015 <cell alignment="center" valignment="top" usebox="none">
15018 \begin_layout Plain Layout
15025 <row topspace="default">
15026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15029 \begin_layout Plain Layout
15031 \begin_inset Formula $f_{\mathrm{max}}$
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15048 <cell alignment="center" valignment="top" usebox="none">
15051 \begin_layout Plain Layout
15057 <cell alignment="center" valignment="top" usebox="none">
15060 \begin_layout Plain Layout
15067 <row topspace="default">
15068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15071 \begin_layout Plain Layout
15075 \begin_layout Plain Layout
15079 cmidrule[2pt](l{10pt}){1-1}
15084 LSF-spatial resolution
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15098 <cell alignment="center" valignment="top" usebox="none">
15101 \begin_layout Plain Layout
15107 <cell alignment="center" valignment="top" usebox="none">
15110 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15136 <cell alignment="center" valignment="top" usebox="none">
15139 \begin_layout Plain Layout
15145 <cell alignment="center" valignment="top" usebox="none">
15148 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15159 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15168 \begin_layout Plain Layout
15174 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15177 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15186 \begin_layout Plain Layout
15205 \begin_layout Standard
15206 Spaces to table rows can be added using the
15210 tab of the table dialog as described in section
15211 \begin_inset space ~
15215 \begin_inset CommandInset ref
15217 reference "subsec:Row-Spacing"
15224 \begin_layout Standard
15225 Unlike normal tables, formal tables have no vertical table lines.
15226 The horizontal table lines can be set as for normal tables but they appear
15227 with different widths in the output:
15228 \begin_inset Newline newline
15231 The first and the last table line have a default width of 0.08
15232 \begin_inset space \thinspace{}
15235 em while the other lines have a default width of 0.05
15236 \begin_inset space \thinspace{}
15242 \begin_layout Standard
15243 The default widths can be changed with the following preamble lines
15246 \begin_layout Standard
15256 \begin_inset Newline newline
15268 \begin_layout Standard
15269 This example is for the first line, the so called
15274 If you want to change the width for the last line, replace
15283 To change the width for the other lines replace
15292 You can use all units listed in appendix
15293 \begin_inset space ~
15297 \begin_inset CommandInset ref
15299 reference "cha:Units-available-in"
15306 \begin_layout Standard
15307 Lines that do not span all table columns can be created by setting a table
15308 line for multicolumn cells.
15310 will then internally use the command
15316 to create this line.
15320 \begin_layout Standard
15325 cmidrule[height](trim){startcol-endcol}
15328 \begin_layout Standard
15335 are currently not supported by \SpecialChar LyX
15336 so you have to use \SpecialChar TeX
15345 s can manually be created by inserting the command as \SpecialChar TeX
15347 cell entry of the first cell of a row.
15348 The line is then drawn in the output above the current row.
15351 \begin_layout Standard
15352 The default for the optional
15357 \begin_inset space \thinspace{}
15365 is the number of the column where the line starts and
15369 the column number where the line ends.
15374 always needs to be specified, also when the line should span only one column.
15375 The optional parameter
15392 Using for example the parameter
15396 means that the line is trimmed from its left end by 2
15397 \begin_inset space \thinspace{}
15401 If you don't specify the
15405 the line is trimmed by the default of 0.5
15406 \begin_inset space \thinspace{}
15412 \begin_layout Standard
15413 \begin_inset VSpace bigskip
15417 \begin_inset space ~
15421 \begin_inset CommandInset ref
15423 reference "tab:Example-booktabs-table"
15427 was created using the commands
15430 \begin_layout Standard
15440 \begin_layout Standard
15441 at the beginning of the second row and
15444 \begin_layout Standard
15449 cmidrule[2pt](l{10pt}){1-1}
15452 \begin_layout Standard
15456 \begin_layout Standard
15457 \begin_inset VSpace bigskip
15463 \begin_layout Standard
15464 You might want to have overlapping
15471 \begin_inset space ~
15475 \begin_inset CommandInset ref
15477 reference "tab:Special-booktabs-table"
15482 This can be achieved with the \SpecialChar TeX
15486 \begin_layout Standard
15494 \begin_layout Standard
15495 The command that was used for the second row of Table
15496 \begin_inset space ~
15500 \begin_inset CommandInset ref
15502 reference "tab:Special-booktabs-table"
15509 \begin_layout Standard
15523 \begin_layout Standard
15524 The command for the sixth row is
15527 \begin_layout Standard
15539 \begin_layout Standard
15540 \begin_inset VSpace bigskip
15546 \begin_layout Standard
15547 If you are in any way not satisfied with the border line spacing, you can
15548 use the following command to produce lines that span over all table columns
15553 \begin_layout Standard
15558 specialrule{width}{space above}{space below}
15561 \begin_layout Standard
15562 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15569 \begin_inset CommandInset citation
15576 \begin_inset Index idx
15579 \begin_layout Plain Layout
15581 -packages ! booktabs
15589 \begin_layout Standard
15590 \begin_inset Float table
15596 \begin_layout Plain Layout
15597 \begin_inset Caption Standard
15599 \begin_layout Plain Layout
15600 \begin_inset CommandInset label
15602 name "tab:Special-booktabs-table"
15606 Special booktabs-table
15614 \begin_layout Plain Layout
15616 \begin_inset Tabular
15617 <lyxtabular version="3" rows="8" columns="4">
15618 <features booktabs="true" tabularvalignment="middle">
15619 <column alignment="center" valignment="top">
15620 <column alignment="center" valignment="top">
15621 <column alignment="center" valignment="top">
15622 <column alignment="center" valignment="top">
15624 <cell alignment="center" valignment="top" topline="true" usebox="none">
15627 \begin_layout Plain Layout
15633 <cell alignment="center" valignment="top" topline="true" usebox="none">
15636 \begin_layout Plain Layout
15638 \begin_inset space \thinspace{}
15646 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15649 \begin_layout Plain Layout
15651 \begin_inset space \thinspace{}
15659 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15662 \begin_layout Plain Layout
15670 <cell alignment="center" valignment="top" usebox="none">
15673 \begin_layout Plain Layout
15677 \begin_layout Plain Layout
15690 \begin_layout Plain Layout
15703 \begin_layout Plain Layout
15716 \begin_layout Plain Layout
15725 Detector thickness in µm
15730 <cell alignment="center" valignment="top" usebox="none">
15733 \begin_layout Plain Layout
15739 <cell alignment="center" valignment="top" usebox="none">
15742 \begin_layout Plain Layout
15748 <cell alignment="center" valignment="top" usebox="none">
15751 \begin_layout Plain Layout
15759 <cell alignment="center" valignment="top" topline="true" usebox="none">
15762 \begin_layout Plain Layout
15768 <cell alignment="center" valignment="top" topline="true" usebox="none">
15771 \begin_layout Plain Layout
15777 <cell alignment="center" valignment="top" topline="true" usebox="none">
15780 \begin_layout Plain Layout
15786 <cell alignment="center" valignment="top" topline="true" usebox="none">
15789 \begin_layout Plain Layout
15796 <row topspace="default">
15797 <cell alignment="center" valignment="top" usebox="none">
15800 \begin_layout Plain Layout
15801 Spatial resolution in µm
15806 <cell alignment="center" valignment="top" usebox="none">
15809 \begin_layout Plain Layout
15815 <cell alignment="center" valignment="top" usebox="none">
15818 \begin_layout Plain Layout
15824 <cell alignment="center" valignment="top" usebox="none">
15827 \begin_layout Plain Layout
15834 <row topspace="default">
15835 <cell alignment="center" valignment="top" usebox="none">
15838 \begin_layout Plain Layout
15840 \begin_inset Formula $f_{\mathrm{max}}$
15848 <cell alignment="center" valignment="top" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" usebox="none">
15860 \begin_layout Plain Layout
15866 <cell alignment="center" valignment="top" usebox="none">
15869 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" topline="true" usebox="none">
15880 \begin_layout Plain Layout
15884 \begin_layout Plain Layout
15897 \begin_layout Plain Layout
15906 LSF-spatial resolution
15911 <cell alignment="center" valignment="top" topline="true" usebox="none">
15914 \begin_layout Plain Layout
15920 <cell alignment="center" valignment="top" topline="true" usebox="none">
15923 \begin_layout Plain Layout
15929 <cell alignment="center" valignment="top" topline="true" usebox="none">
15932 \begin_layout Plain Layout
15940 <cell alignment="center" valignment="top" usebox="none">
15943 \begin_layout Plain Layout
15949 <cell alignment="center" valignment="top" usebox="none">
15952 \begin_layout Plain Layout
15958 <cell alignment="center" valignment="top" usebox="none">
15961 \begin_layout Plain Layout
15967 <cell alignment="center" valignment="top" usebox="none">
15970 \begin_layout Plain Layout
15978 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15981 \begin_layout Plain Layout
15987 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15990 \begin_layout Plain Layout
15996 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15999 \begin_layout Plain Layout
16005 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16008 \begin_layout Plain Layout
16027 \begin_layout Section
16028 Vertical Table Alignment
16029 \begin_inset Index idx
16032 \begin_layout Plain Layout
16041 \begin_layout Standard
16042 To align tables vertically in a text line, the table must be inside a box.
16043 The box can then be vertically aligned as described in section
16044 \begin_inset space ~
16048 \begin_inset CommandInset ref
16050 reference "sec:Box-Dialog"
16057 \begin_layout Standard
16058 In the following example the tables are inside a minipage
16062 \begin_layout Plain Layout
16063 Minipages are described in section
16064 \begin_inset space ~
16068 \begin_inset CommandInset ref
16070 reference "sec:Minipages"
16079 box that has a width of 15
16080 \begin_inset space \thinspace{}
16086 \begin_layout Itemize
16088 \begin_inset Box Frameless
16098 height_special "totalheight"
16103 backgroundcolor "none"
16106 \begin_layout Plain Layout
16107 \begin_inset Tabular
16108 <lyxtabular version="3" rows="3" columns="3">
16109 <features tabularvalignment="middle">
16110 <column alignment="center" valignment="top">
16111 <column alignment="center" valignment="top">
16112 <column alignment="center" valignment="top">
16114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16117 \begin_layout Plain Layout
16123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16126 \begin_layout Plain Layout
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Plain Layout
16143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16146 \begin_layout Plain Layout
16152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16155 \begin_layout Plain Layout
16161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16164 \begin_layout Plain Layout
16172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16175 \begin_layout Plain Layout
16181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16184 \begin_layout Plain Layout
16190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16193 \begin_layout Plain Layout
16213 \begin_layout Plain Layout
16225 \begin_inset Box Frameless
16235 height_special "totalheight"
16240 backgroundcolor "none"
16243 \begin_layout Plain Layout
16244 \begin_inset Tabular
16245 <lyxtabular version="3" rows="3" columns="3">
16246 <features tabularvalignment="middle">
16247 <column alignment="center" valignment="top">
16248 <column alignment="center" valignment="top">
16249 <column alignment="center" valignment="top">
16251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16254 \begin_layout Plain Layout
16260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16263 \begin_layout Plain Layout
16269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16272 \begin_layout Plain Layout
16280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16283 \begin_layout Plain Layout
16289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16292 \begin_layout Plain Layout
16298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16301 \begin_layout Plain Layout
16309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16312 \begin_layout Plain Layout
16318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16321 \begin_layout Plain Layout
16327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16330 \begin_layout Plain Layout
16350 \begin_layout Plain Layout
16360 \begin_layout Itemize
16362 \begin_inset Box Frameless
16372 height_special "totalheight"
16377 backgroundcolor "none"
16380 \begin_layout Plain Layout
16381 \begin_inset Tabular
16382 <lyxtabular version="3" rows="3" columns="3">
16383 <features tabularvalignment="middle">
16384 <column alignment="center" valignment="top">
16385 <column alignment="center" valignment="top">
16386 <column alignment="center" valignment="top">
16388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16391 \begin_layout Plain Layout
16397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16400 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16409 \begin_layout Plain Layout
16417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16420 \begin_layout Plain Layout
16426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16429 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16438 \begin_layout Plain Layout
16446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16449 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16458 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16467 \begin_layout Plain Layout
16486 \begin_layout Itemize
16488 \begin_inset Box Frameless
16498 height_special "totalheight"
16503 backgroundcolor "none"
16506 \begin_layout Plain Layout
16507 \begin_inset Tabular
16508 <lyxtabular version="3" rows="3" columns="3">
16509 <features tabularvalignment="middle">
16510 <column alignment="center" valignment="top">
16511 <column alignment="center" valignment="top">
16512 <column alignment="center" valignment="top">
16514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16517 \begin_layout Plain Layout
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Plain Layout
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16546 \begin_layout Plain Layout
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Plain Layout
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16564 \begin_layout Plain Layout
16572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16575 \begin_layout Plain Layout
16581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16593 \begin_layout Plain Layout
16613 \begin_layout Plain Layout
16625 \begin_inset Box Frameless
16635 height_special "totalheight"
16640 backgroundcolor "none"
16643 \begin_layout Plain Layout
16644 \begin_inset Tabular
16645 <lyxtabular version="3" rows="3" columns="3">
16646 <features tabularvalignment="middle">
16647 <column alignment="center" valignment="top">
16648 <column alignment="center" valignment="top">
16649 <column alignment="center" valignment="top">
16651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16654 \begin_layout Plain Layout
16660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16663 \begin_layout Plain Layout
16669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16672 \begin_layout Plain Layout
16680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16683 \begin_layout Plain Layout
16689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16692 \begin_layout Plain Layout
16698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16701 \begin_layout Plain Layout
16709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16712 \begin_layout Plain Layout
16718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16721 \begin_layout Plain Layout
16727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16730 \begin_layout Plain Layout
16750 \begin_layout Plain Layout
16760 \begin_layout Standard
16761 As you will see, the content of the first and last table row is not correctly
16763 To get this alignment, the minipage box must be set into a raisebox.
16767 \begin_layout Plain Layout
16768 Raiseboxes are described in section
16769 \begin_inset space ~
16773 \begin_inset CommandInset ref
16775 reference "subsec:Vertical-Alignment"
16784 In the example above the second table in the first item is aligned using
16785 the \SpecialChar TeX
16789 \begin_layout Standard
16799 \begin_layout Standard
16801 After the box the closing brace
16805 is inserted as \SpecialChar TeX
16807 For the second table in the last item the command
16810 \begin_layout Standard
16820 \begin_layout Standard
16824 \begin_layout Standard
16825 \begin_inset Note Greyedout
16828 \begin_layout Plain Layout
16833 The alignment of the table row content to the surrounding text line is
16835 The required value for the
16841 command for this alignment depends on the document font, the font size,
16842 and the table line thickness.
16850 \begin_layout Section
16852 \begin_inset CommandInset label
16854 name "sec:Colored-Tables"
16859 \begin_inset Index idx
16862 \begin_layout Plain Layout
16871 \begin_layout Subsection
16873 \begin_inset Index idx
16876 \begin_layout Plain Layout
16877 Table Color ! for Cells
16883 \begin_inset Index idx
16886 \begin_layout Plain Layout
16887 Color ! for Table Cells
16895 \begin_layout Standard
16896 \begin_inset Float table
16902 \begin_layout Plain Layout
16903 \begin_inset Caption Standard
16905 \begin_layout Plain Layout
16906 \begin_inset CommandInset label
16908 name "tab:Table-colored-without"
16912 Table colored without using the package
16917 \begin_inset Argument 1
16920 \begin_layout Plain Layout
16921 Table without colortbl
16934 \begin_layout Plain Layout
16936 \begin_inset Tabular
16937 <lyxtabular version="3" rows="3" columns="3">
16938 <features tabularvalignment="middle">
16939 <column alignment="center" valignment="top">
16940 <column alignment="center" valignment="top">
16941 <column alignment="center" valignment="top">
16943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16946 \begin_layout Plain Layout
16954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16957 \begin_layout Plain Layout
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16968 \begin_layout Plain Layout
16978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16981 \begin_layout Plain Layout
16989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16992 \begin_layout Plain Layout
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17003 \begin_layout Plain Layout
17013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17016 \begin_layout Plain Layout
17024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17027 \begin_layout Plain Layout
17035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17038 \begin_layout Plain Layout
17059 \begin_layout Standard
17060 If you only need colored text, mark the cells and choose a color in the
17064 \begin_inset space ~
17069 dialog (toolbar button
17072 arg "dialog-show character"
17076 This was used to create Table
17077 \begin_inset space ~
17081 \begin_inset CommandInset ref
17083 reference "tab:Table-colored-without"
17088 In any other case you have to use the \SpecialChar LaTeX
17094 \begin_inset Index idx
17097 \begin_layout Plain Layout
17099 -packages ! colortbl
17107 \begin_layout Standard
17111 \begin_layout Plain Layout
17121 \begin_inset Note Note
17124 \begin_layout Plain Layout
17125 The following section part will only be displayed when the \SpecialChar LaTeX
17138 \begin_layout Standard
17139 To create colored tables,
17143 must be loaded in the preamble with the line
17146 \begin_layout Standard
17151 usepackage{colortbl}
17154 \begin_layout Standard
17155 The color of a column is adjusted with the command
17158 \begin_layout Standard
17163 columncolor{name of color}
17166 \begin_layout Standard
17172 More about the command
17176 is contained in section
17177 \begin_inset space ~
17181 \begin_inset CommandInset ref
17183 reference "subsec:Multicolumn-Calculations"
17190 \begin_layout Standard
17191 The following color names are predefined:
17194 \begin_layout Standard
17228 \begin_layout Standard
17229 \begin_inset VSpace medskip
17235 \begin_layout Standard
17236 If you add the option
17239 \begin_layout Standard
17245 \begin_layout Standard
17246 to the document class options in the document settings, you can additionally
17248 \begin_inset space ~
17252 These colors are listed in appendix
17253 \begin_inset space ~
17257 \begin_inset CommandInset ref
17259 reference "chap:List-of-dvips-colornames"
17264 One of these colors,
17268 , is used as example in Table
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "tab:Table-colored-using"
17282 \begin_layout Standard
17283 \begin_inset VSpace medskip
17289 \begin_layout Standard
17290 You can also define your own color with the command
17293 \begin_layout Standard
17298 definecolor{color name}{color model}{color values}
17301 \begin_layout Standard
17302 The color model can be
17305 \begin_layout Labeling
17306 \labelwidthstring 00.00.0000
17307 cmyk: cyan, magenta, yellow, black
17310 \begin_layout Labeling
17311 \labelwidthstring 00.00.0000
17312 rgb: red, green blue
17315 \begin_layout Labeling
17316 \labelwidthstring 00.00.0000
17320 \begin_layout Standard
17321 and the color values are comma separated numbers between 0 and 1 describing
17322 the factor for the corresponding color of the color model.
17325 \begin_layout Standard
17327 \begin_inset space \thinspace{}
17331 \begin_inset space \space{}
17338 " in the preamble with
17341 \begin_layout Standard
17346 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17349 \begin_layout Standard
17357 \begin_layout Standard
17362 definecolor{lightgray}{gray}{0.8}
17365 \begin_layout Standard
17366 \begin_inset VSpace medskip
17372 \begin_layout Standard
17373 Lines are colored with the command
17376 \begin_layout Standard
17381 rowcolor{name of color}
17384 \begin_layout Standard
17385 and cells are colored with the command
17388 \begin_layout Standard
17393 cellcolor{name of color}
17396 \begin_layout Standard
17397 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17401 \begin_layout Standard
17402 To color characters in the table, mark the cells and use the
17405 \begin_inset space ~
17411 If a cell contains \SpecialChar TeX
17412 Code mark only the characters, otherwise the colored
17414 Code will cause \SpecialChar LaTeX
17418 \begin_layout Standard
17419 \begin_inset Note Greyedout
17422 \begin_layout Plain Layout
17427 Not all DVI-viewers are able to display self-defined colors.
17435 \begin_layout Standard
17436 \begin_inset VSpace bigskip
17442 \begin_layout Standard
17444 \begin_inset space ~
17448 \begin_inset CommandInset ref
17450 reference "tab:Table-colored-using"
17454 do the following: The color of the first column should be
17462 \begin_layout Standard
17467 columncolor{darkgreen}
17472 \begin_layout Standard
17473 as \SpecialChar LaTeX
17474 -argument for this column.
17475 The first row should be light blue, therefore the \SpecialChar TeX
17479 \begin_layout Standard
17487 \begin_layout Standard
17488 is inserted to the first cell of this row.
17489 Note that this overwrites the column color for the first cell.
17490 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17495 \begin_layout Standard
17503 \begin_layout Standard
17504 The characters could now be colored using the menu
17506 Edit\SpecialChar menuseparator
17508 \begin_inset space ~
17516 \begin_layout Standard
17517 \begin_inset Float table
17523 \begin_layout Plain Layout
17524 \begin_inset Caption Standard
17526 \begin_layout Plain Layout
17527 \begin_inset CommandInset label
17529 name "tab:Table-colored-using"
17533 Table colored using the package
17538 \begin_inset Argument 1
17541 \begin_layout Plain Layout
17542 Table with colortbl
17555 \begin_layout Plain Layout
17557 \begin_inset Tabular
17558 <lyxtabular version="3" rows="3" columns="3">
17559 <features tabularvalignment="middle">
17560 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17561 <column alignment="center" valignment="top">
17562 <column alignment="center" valignment="top">
17564 <cell alignment="center" valignment="top" usebox="none">
17567 \begin_layout Plain Layout
17571 \begin_layout Plain Layout
17587 <cell alignment="center" valignment="top" usebox="none">
17590 \begin_layout Plain Layout
17598 <cell alignment="center" valignment="top" usebox="none">
17601 \begin_layout Plain Layout
17611 <cell alignment="center" valignment="top" usebox="none">
17614 \begin_layout Plain Layout
17622 <cell alignment="center" valignment="top" usebox="none">
17625 \begin_layout Plain Layout
17633 <cell alignment="center" valignment="top" usebox="none">
17636 \begin_layout Plain Layout
17646 <cell alignment="center" valignment="top" usebox="none">
17649 \begin_layout Plain Layout
17657 <cell alignment="center" valignment="top" usebox="none">
17660 \begin_layout Plain Layout
17668 <cell alignment="center" valignment="top" usebox="none">
17671 \begin_layout Plain Layout
17675 \begin_layout Plain Layout
17704 \begin_layout Standard
17708 \begin_layout Plain Layout
17718 \begin_inset Note Note
17721 \begin_layout Plain Layout
17722 The following will be displayed when the \SpecialChar LaTeX
17735 \begin_layout Standard
17736 You need to install the package
17740 to see the content of this section in the output.
17743 \begin_layout Standard
17747 \begin_layout Plain Layout
17759 \begin_layout Subsection
17761 \begin_inset Index idx
17764 \begin_layout Plain Layout
17765 Table Color ! for Rows
17771 \begin_inset Index idx
17774 \begin_layout Plain Layout
17775 Color ! for Table Rows
17783 \begin_layout Standard
17784 In case every second table row needs to be colored there is an alternative
17785 to the method described in the previous section: One loads the package
17791 \begin_inset Index idx
17794 \begin_layout Plain Layout
17800 \begin_layout Plain Layout
17814 in the document preamble with the command
17817 \begin_layout Standard
17822 usepackage[table]{xcolor}
17825 \begin_layout Standard
17830 automatically loads also the package
17835 \begin_inset Index idx
17838 \begin_layout Plain Layout
17840 -packages ! colortbl
17849 must be installed in your \SpecialChar LaTeX
17850 -distribution, otherwise you get \SpecialChar LaTeX
17854 \begin_layout Standard
17858 \begin_layout Plain Layout
17868 \begin_inset Note Note
17871 \begin_layout Plain Layout
17872 The following section part will only be displayed when the \SpecialChar LaTeX
17885 \begin_layout Standard
17886 The table rows are colored with the command
17889 \begin_layout Standard
17894 rowcolors[commands]{row number}{odd row color}{even row color}
17897 \begin_layout Standard
17898 that is either inserted in the document preamble or as \SpecialChar TeX
17900 first table to be colored.
17902 \begin_inset space ~
17905 number is the number of the first row which should be colored according
17906 to the odd row color.
17907 commands can be additional commands that are executed before every table
17909 So for example the command
17912 \begin_layout Standard
17917 rowcolors{1}{white}{lightgray}
17920 \begin_layout Standard
17921 leads to the coloring scheme of Table
17922 \begin_inset space ~
17926 \begin_inset CommandInset ref
17928 reference "tab:Table-rowcolors"
17936 \begin_layout Standard
17943 hline]{1}{lightgray}{cyan}
17946 \begin_layout Standard
17947 leads to the coloring scheme of Table
17948 \begin_inset space ~
17952 \begin_inset CommandInset ref
17954 reference "tab:Table-rowcolors-2"
17960 \begin_inset space ~
17964 \begin_inset space ~
17968 \begin_inset space ~
17972 \begin_inset space ~
17975 color are left empty, no color will be used so that the command
17978 \begin_layout Standard
17986 \begin_layout Standard
17987 deletes all colors.
17994 affects all tables following that command.
17997 \begin_layout Standard
18001 \begin_layout Plain Layout
18005 rowcolors{1}{white}{lightgray}
18013 \begin_layout Standard
18014 \begin_inset Float table
18020 \begin_layout Plain Layout
18021 \begin_inset Caption Standard
18023 \begin_layout Plain Layout
18024 \begin_inset CommandInset label
18026 name "tab:Table-rowcolors"
18030 Table where every second row is colored light gray.
18038 \begin_layout Plain Layout
18040 \begin_inset Tabular
18041 <lyxtabular version="3" rows="4" columns="3">
18042 <features tabularvalignment="middle">
18043 <column alignment="center" valignment="top">
18044 <column alignment="center" valignment="top" width="0pt">
18045 <column alignment="center" valignment="top" width="0pt">
18047 <cell alignment="center" valignment="top" usebox="none">
18050 \begin_layout Plain Layout
18056 <cell alignment="center" valignment="top" usebox="none">
18059 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" usebox="none">
18068 \begin_layout Plain Layout
18076 <cell alignment="center" valignment="top" usebox="none">
18079 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" usebox="none">
18097 \begin_layout Plain Layout
18105 <cell alignment="center" valignment="top" usebox="none">
18108 \begin_layout Plain Layout
18114 <cell alignment="center" valignment="top" usebox="none">
18117 \begin_layout Plain Layout
18123 <cell alignment="center" valignment="top" usebox="none">
18126 \begin_layout Plain Layout
18134 <cell alignment="center" valignment="top" usebox="none">
18137 \begin_layout Plain Layout
18143 <cell alignment="center" valignment="top" usebox="none">
18146 \begin_layout Plain Layout
18152 <cell alignment="center" valignment="top" usebox="none">
18155 \begin_layout Plain Layout
18174 \begin_layout Standard
18178 \begin_layout Plain Layout
18184 hline]{1}{lightgray}{cyan}
18192 \begin_layout Standard
18193 \begin_inset Float table
18199 \begin_layout Plain Layout
18200 \begin_inset Caption Standard
18202 \begin_layout Plain Layout
18203 \begin_inset CommandInset label
18205 name "tab:Table-rowcolors-2"
18209 Table where every second row is colored cyan and at which there is a line
18218 \begin_layout Plain Layout
18220 \begin_inset Tabular
18221 <lyxtabular version="3" rows="4" columns="3">
18222 <features tabularvalignment="middle">
18223 <column alignment="center" valignment="top">
18224 <column alignment="center" valignment="top">
18225 <column alignment="center" valignment="top" width="0pt">
18227 <cell alignment="center" valignment="top" usebox="none">
18230 \begin_layout Plain Layout
18236 <cell alignment="center" valignment="top" usebox="none">
18239 \begin_layout Plain Layout
18245 <cell alignment="center" valignment="top" usebox="none">
18248 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" usebox="none">
18259 \begin_layout Plain Layout
18265 <cell alignment="center" valignment="top" usebox="none">
18268 \begin_layout Plain Layout
18274 <cell alignment="center" valignment="top" usebox="none">
18277 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" usebox="none">
18297 \begin_layout Plain Layout
18303 <cell alignment="center" valignment="top" usebox="none">
18306 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" usebox="none">
18317 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" usebox="none">
18326 \begin_layout Plain Layout
18332 <cell alignment="center" valignment="top" usebox="none">
18335 \begin_layout Plain Layout
18354 \begin_layout Standard
18358 \begin_layout Plain Layout
18368 \begin_inset Note Note
18371 \begin_layout Plain Layout
18372 turns off the row coloring
18380 \begin_layout Standard
18384 \begin_layout Plain Layout
18394 \begin_inset Note Note
18397 \begin_layout Plain Layout
18398 The following will be displayed when the \SpecialChar LaTeX
18411 \begin_layout Standard
18412 You need to install the package
18416 to see the content of this section in the output.
18419 \begin_layout Standard
18423 \begin_layout Plain Layout
18435 \begin_layout Subsection
18437 \begin_inset Index idx
18440 \begin_layout Plain Layout
18441 Table Color ! for Lines
18447 \begin_inset Index idx
18450 \begin_layout Plain Layout
18451 Color ! for Table Lines
18459 \begin_layout Standard
18460 As described in section
18461 \begin_inset space ~
18465 \begin_inset CommandInset ref
18467 reference "subsec:Line-Thickness"
18471 , the line thickness for all lines in a table can be adjusted with the length
18480 \begin_inset space \thinspace{}
18483 pt for all tables of this section.
18487 \begin_layout Plain Layout
18493 arrayrulewidth}{1.5pt}
18501 \begin_layout Standard
18502 To color vertical lines for example with green, create the following column
18503 format in the document preamble, according to the description in section
18504 \begin_inset space ~
18508 \begin_inset CommandInset ref
18510 reference "subsec:Customized-Format"
18517 \begin_layout Standard
18522 newcolumntype{W}{!{
18529 \begin_layout Standard
18531 \begin_inset space ~
18535 \begin_inset CommandInset ref
18537 reference "tab:Table-with-vertical-colored"
18541 the \SpecialChar LaTeX
18546 was used for the last column and
18550 for the other columns.
18553 \begin_layout Standard
18554 If you want to have several colors, define more column formats.
18557 \begin_layout Standard
18558 \begin_inset Float table
18564 \begin_layout Plain Layout
18565 \begin_inset Caption Standard
18567 \begin_layout Plain Layout
18568 \begin_inset CommandInset label
18570 name "tab:Table-with-vertical-colored"
18574 Table with colored vertical lines
18582 \begin_layout Plain Layout
18584 \begin_inset Tabular
18585 <lyxtabular version="3" rows="3" columns="3">
18586 <features tabularvalignment="middle">
18587 <column alignment="center" valignment="top" special="Wc">
18588 <column alignment="center" valignment="top" special="Wc">
18589 <column alignment="center" valignment="top" special="WcW">
18591 <cell alignment="center" valignment="top" topline="true" usebox="none">
18594 \begin_layout Plain Layout
18600 <cell alignment="center" valignment="top" topline="true" usebox="none">
18603 \begin_layout Plain Layout
18609 <cell alignment="center" valignment="top" topline="true" usebox="none">
18612 \begin_layout Plain Layout
18620 <cell alignment="center" valignment="top" topline="true" usebox="none">
18623 \begin_layout Plain Layout
18629 <cell alignment="center" valignment="top" topline="true" usebox="none">
18632 \begin_layout Plain Layout
18638 <cell alignment="center" valignment="top" topline="true" usebox="none">
18641 \begin_layout Plain Layout
18649 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18652 \begin_layout Plain Layout
18658 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18661 \begin_layout Plain Layout
18667 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18670 \begin_layout Plain Layout
18689 \begin_layout Standard
18690 \begin_inset VSpace bigskip
18693 To color horizontal lines for example with red, as in Table
18694 \begin_inset space ~
18698 \begin_inset CommandInset ref
18700 reference "tab:Table-with-horizontal-colored"
18704 , insert these commands in \SpecialChar TeX
18705 Code before the table or table float:
18708 \begin_layout Standard
18718 \begin_inset Newline newline
18726 \begin_inset Newline newline
18730 \begin_inset Phantom HPhantom
18733 \begin_layout Plain Layout
18736 \begin_inset space ~
18746 arrayrulecolor{red}
18750 arrayrulecolor{black}}
18753 \begin_layout Standard
18757 \begin_layout Plain Layout
18768 \begin_layout Plain Layout
18777 \begin_layout Plain Layout
18781 arrayrulecolor{red}
18785 arrayrulecolor{black}}
18791 \begin_inset Float table
18797 \begin_layout Plain Layout
18798 \begin_inset Caption Standard
18800 \begin_layout Plain Layout
18801 \begin_inset CommandInset label
18803 name "tab:Table-with-horizontal-colored"
18807 Table with colored horizontal lines
18815 \begin_layout Plain Layout
18817 \begin_inset Tabular
18818 <lyxtabular version="3" rows="3" columns="3">
18819 <features tabularvalignment="middle">
18820 <column alignment="center" valignment="top">
18821 <column alignment="center" valignment="top">
18822 <column alignment="center" valignment="top">
18824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18827 \begin_layout Plain Layout
18833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18845 \begin_layout Plain Layout
18853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18856 \begin_layout Plain Layout
18862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18865 \begin_layout Plain Layout
18871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18874 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18894 \begin_layout Plain Layout
18900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18903 \begin_layout Plain Layout
18922 \begin_layout Standard
18923 To return to the default line color black, insert this command in \SpecialChar TeX
18925 after the table or table float:
18928 \begin_layout Standard
18940 \begin_layout Standard
18942 \begin_inset space ~
18946 \begin_inset CommandInset ref
18948 reference "tab:Table-with-colored"
18952 is an example with colored vertical and horizontal lines.
18955 \begin_layout Standard
18956 \begin_inset Float table
18962 \begin_layout Plain Layout
18963 \begin_inset Caption Standard
18965 \begin_layout Plain Layout
18966 \begin_inset CommandInset label
18968 name "tab:Table-with-colored"
18972 Table with colored lines
18980 \begin_layout Plain Layout
18982 \begin_inset Tabular
18983 <lyxtabular version="3" rows="3" columns="3">
18984 <features tabularvalignment="middle">
18985 <column alignment="center" valignment="top" special="Wc">
18986 <column alignment="center" valignment="top" special="Wc">
18987 <column alignment="center" valignment="top" special="WcW">
18989 <cell alignment="center" valignment="top" topline="true" usebox="none">
18992 \begin_layout Plain Layout
18998 <cell alignment="center" valignment="top" topline="true" usebox="none">
19001 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" usebox="none">
19010 \begin_layout Plain Layout
19018 <cell alignment="center" valignment="top" topline="true" usebox="none">
19021 \begin_layout Plain Layout
19027 <cell alignment="center" valignment="top" topline="true" usebox="none">
19030 \begin_layout Plain Layout
19036 <cell alignment="center" valignment="top" topline="true" usebox="none">
19039 \begin_layout Plain Layout
19046 <row topspace="default">
19047 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19050 \begin_layout Plain Layout
19056 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19059 \begin_layout Plain Layout
19065 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19068 \begin_layout Plain Layout
19087 \begin_layout Standard
19091 \begin_layout Plain Layout
19107 \begin_layout Standard
19111 \begin_layout Plain Layout
19117 arrayrulewidth}{0.4pt}
19125 \begin_layout Section
19126 Rotated Table Cells
19127 \begin_inset CommandInset label
19129 name "sec:Rotated-Table-Cells"
19134 \begin_inset Index idx
19137 \begin_layout Plain Layout
19138 Table ! Rotated Cells
19144 \begin_inset Index idx
19147 \begin_layout Plain Layout
19156 \begin_layout Standard
19157 \begin_inset Note Greyedout
19160 \begin_layout Plain Layout
19165 Not all DVI-viewers are able to display rotations.
19173 \begin_layout Standard
19175 \begin_inset space ~
19179 \begin_inset CommandInset ref
19181 reference "tab:Table-with-rotated-multi"
19185 is an example where 3
19186 \begin_inset space ~
19189 cells were rotated by 45
19190 \begin_inset space \thinspace{}
19196 \begin_layout Standard
19197 \begin_inset Float table
19203 \begin_layout Plain Layout
19204 \begin_inset Caption Standard
19206 \begin_layout Plain Layout
19207 \begin_inset CommandInset label
19209 name "tab:Table-with-rotated"
19213 Table with rotated cells in the first row.
19221 \begin_layout Plain Layout
19224 \begin_inset Tabular
19225 <lyxtabular version="3" rows="2" columns="3">
19226 <features tabularvalignment="middle">
19227 <column alignment="center" valignment="top" width="0pt">
19228 <column alignment="center" valignment="top" width="0pt">
19229 <column alignment="center" valignment="top" width="0pt">
19231 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19234 \begin_layout Plain Layout
19240 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19243 \begin_layout Plain Layout
19249 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19252 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19263 \begin_layout Plain Layout
19269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19272 \begin_layout Plain Layout
19278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19281 \begin_layout Plain Layout
19300 \begin_layout Standard
19301 \begin_inset Note Greyedout
19304 \begin_layout Plain Layout
19309 Line breaks (shortcut
19312 arg "newline-insert newline"
19315 ) are not allowed in rotated cells.
19323 \begin_layout Standard
19324 If you want to rotate table cells containing line breaks, you have to put
19325 the cell content into a minipage or a parbox.
19329 \begin_layout Plain Layout
19330 For more about these boxes see sec.
19331 \begin_inset space \thinspace{}
19335 \begin_inset CommandInset ref
19337 reference "sec:Minipages"
19342 \begin_inset CommandInset ref
19344 reference "sec:Parboxes"
19353 If you rotate this cell by 90
19354 \begin_inset space \thinspace{}
19357 ° the width of the box is the height of the cell.
19359 \begin_inset space ~
19363 \begin_inset CommandInset ref
19365 reference "tab:Table-with-rotated-multi"
19369 is an example for a rotated multiline cell where the box width was set
19371 \begin_inset space \thinspace{}
19377 \begin_layout Standard
19378 \begin_inset Float table
19383 \begin_layout Plain Layout
19384 \begin_inset Caption Standard
19386 \begin_layout Plain Layout
19387 \begin_inset CommandInset label
19389 name "tab:Table-with-rotated-multi"
19393 Table with rotated multiline cell.
19401 \begin_layout Plain Layout
19404 \begin_inset Tabular
19405 <lyxtabular version="3" rows="2" columns="3">
19406 <features tabularvalignment="middle">
19407 <column alignment="center" valignment="top">
19408 <column alignment="center" valignment="top" width="0pt">
19409 <column alignment="center" valignment="top">
19411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19414 \begin_layout Plain Layout
19420 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19423 \begin_layout Plain Layout
19424 \begin_inset Box Frameless
19434 height_special "totalheight"
19439 backgroundcolor "none"
19442 \begin_layout Plain Layout
19444 \begin_inset Newline newline
19457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19460 \begin_layout Plain Layout
19468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19471 \begin_layout Plain Layout
19477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19480 \begin_layout Plain Layout
19486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19489 \begin_layout Plain Layout
19508 \begin_layout Section
19509 Table Width Calculation
19510 \begin_inset CommandInset label
19512 name "sec:Table-Width-Calculation"
19519 \begin_layout Standard
19520 For wide tables it is sometimes difficult to assure that the table does
19521 not protrude over the page margin.
19522 Setting a fixed width for every column of the table is the solution, but
19523 what amount of space is needed for each column?
19526 \begin_layout Standard
19528 \begin_inset Formula $W_{\mathrm{table}}$
19531 can be calculated: Every column has the width of the specified column width
19533 \begin_inset Formula $W_{\mathrm{column}}$
19536 (that the content of the column can consume) plus two times the separation
19537 between the column content and the column border (\SpecialChar LaTeX
19545 \begin_inset space \thinspace{}
19548 pt) plus the width of a border line (\SpecialChar LaTeX
19556 \begin_inset space \thinspace{}
19560 \begin_inset Formula $n$
19564 \begin_inset space ~
19567 columns have the same width, the table width is
19568 \begin_inset Formula
19570 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19578 \begin_layout Standard
19579 The available width for a table is the space between the page margins or
19580 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19588 If all table columns should have the same width and
19589 \begin_inset Formula $W_{\mathrm{table}}$
19593 \begin_inset space \thinspace{}
19599 \begin_inset Formula $W_{\mathrm{column}}$
19602 can easily be calculated.
19605 \begin_layout Standard
19606 To be able to perform calculations you need to load the \SpecialChar LaTeX
19612 \begin_inset Index idx
19615 \begin_layout Plain Layout
19622 in the document preamble.
19623 To set the width in the table dialog you have to use the field
19629 The command scheme for this field is the same that is explained in section
19630 \begin_inset space ~
19634 \begin_inset CommandInset ref
19636 reference "subsec:Multicolumn-Calculations"
19642 \begin_inset space \thinspace{}
19645 columns with an uniform width and centered text, enter there for each column
19649 \begin_layout Standard
19656 columnwidth-62.4pt)/5}
19659 \begin_layout Standard
19661 \begin_inset space \thinspace{}
19664 columns where 2 should have 0.75
19665 \begin_inset space ~
19668 times the width than the 3 others, the calculation is
19669 \begin_inset Formula
19671 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19672 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19673 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19674 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19682 \begin_layout Standard
19683 In the table therefore the command
19686 \begin_layout Standard
19693 columnwidth-62.4pt)/
19698 \begin_layout Standard
19699 is used for the wider columns and
19702 \begin_layout Standard
19709 columnwidth-62.4pt)/
19716 \begin_layout Standard
19717 for the smaller ones:
19720 \begin_layout Standard
19721 \begin_inset Tabular
19722 <lyxtabular version="3" rows="2" columns="5">
19723 <features tabularvalignment="middle">
19724 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19725 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19726 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19727 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19728 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19733 \begin_layout Plain Layout
19739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19742 \begin_layout Plain Layout
19748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19751 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19760 \begin_layout Plain Layout
19766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19769 \begin_layout Plain Layout
19777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19780 \begin_layout Plain Layout
19781 111111 1111111 111111 111111111 11111 11111 1111
19786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19789 \begin_layout Plain Layout
19795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19798 \begin_layout Plain Layout
19799 2222 22222 222222 222222222 2222222 22 22222
19804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19807 \begin_layout Plain Layout
19813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19816 \begin_layout Plain Layout
19817 333333 333333 333333 33333 3333333 333
19830 \begin_layout Section
19831 Table Customization
19832 \begin_inset Index idx
19835 \begin_layout Plain Layout
19836 Table Customization
19842 \begin_inset Index idx
19845 \begin_layout Plain Layout
19846 Table ! Customization
19854 \begin_layout Subsection
19856 \begin_inset CommandInset label
19858 name "subsec:Row-Spacing"
19863 \begin_inset Index idx
19866 \begin_layout Plain Layout
19867 Table Customization ! Row Spacing
19875 \begin_layout Standard
19876 You can add vertical space to table rows in the
19880 tab of the table dialog.
19881 You find there three possibilities:
19884 \begin_layout Description
19886 \begin_inset space ~
19890 \begin_inset space ~
19893 row will add space above the characters of the table row.
19894 If the table is a formal table
19898 \begin_layout Plain Layout
19899 Formal tables are explained in section
19900 \begin_inset space ~
19904 \begin_inset CommandInset ref
19906 reference "sec:Formal-Tables"
19916 will insert as default 0.5
19917 \begin_inset space \thinspace{}
19921 For normal tables the inserted space will unfortunately destroy the vertical
19922 table lines as in the following table:
19923 \begin_inset VSpace medskip
19927 \begin_inset Newline newline
19931 \begin_inset space \hspace*{}
19936 \begin_inset space \hfill{}
19940 \begin_inset Tabular
19941 <lyxtabular version="3" rows="3" columns="1">
19942 <features tabularvalignment="middle">
19943 <column alignment="center" valignment="top">
19945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19948 \begin_layout Plain Layout
19955 <row topspace="3mm">
19956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19959 \begin_layout Plain Layout
19961 \begin_inset space \thinspace{}
19964 mm space top of row
19971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19974 \begin_layout Plain Layout
19986 \begin_inset space \hfill{}
19990 \begin_inset space \hspace*{}
19995 \begin_inset VSpace medskip
19999 \begin_inset Newline newline
20002 So inserting space in the top of row for normal tables is only useful when
20003 you don't have vertical lines.
20006 \begin_layout Description
20008 \begin_inset space ~
20012 \begin_inset space ~
20015 row will add space below the characters of the table row.
20016 If the table is a formal table \SpecialChar LyX
20017 will insert as default 0.5
20018 \begin_inset space \thinspace{}
20021 em space, for normal tables the default size is 2
20022 \begin_inset space \thinspace{}
20028 \begin_layout Description
20030 \begin_inset space ~
20033 rows adds space between the current and the following row.
20034 If the table is a formal table \SpecialChar LyX
20035 will insert as default 0.5
20036 \begin_inset space \thinspace{}
20040 For normal tables the inserted space will unfortunately destroy the vertical
20041 table lines as in the following table:
20042 \begin_inset VSpace medskip
20046 \begin_inset Newline newline
20050 \begin_inset space \hspace*{}
20055 \begin_inset space \hfill{}
20059 \begin_inset Tabular
20060 <lyxtabular version="3" rows="3" columns="1">
20061 <features tabularvalignment="middle">
20062 <column alignment="center" valignment="top">
20064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20067 \begin_layout Plain Layout
20074 <row interlinespace="3mm">
20075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20078 \begin_layout Plain Layout
20079 \begin_inset Formula $\downarrow$
20083 \begin_inset space \thinspace{}
20086 mm space between row
20087 \begin_inset Formula $\downarrow$
20097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20100 \begin_layout Plain Layout
20101 \begin_inset Formula $\uparrow$
20105 \begin_inset space \thinspace{}
20108 mm space between row
20109 \begin_inset Formula $\uparrow$
20123 \begin_inset space \hfill{}
20127 \begin_inset space \hspace*{}
20132 \begin_inset VSpace medskip
20136 \begin_inset Newline newline
20139 So inserting space between rows for normal tables is only useful when you
20140 don't have vertical lines.
20143 \begin_layout Standard
20144 \begin_inset VSpace bigskip
20147 When you want to add extra height to all cells of all tables, you can do
20148 this with the following preamble lines:
20151 \begin_layout Standard
20156 @ifundefined{extrarowheight}
20157 \begin_inset Newline newline
20161 \begin_inset Phantom HPhantom
20164 \begin_layout Plain Layout
20167 \begin_inset space ~
20177 usepackage{array}}{}
20178 \begin_inset Newline newline
20185 extrarowheight}{height}
20188 \begin_inset Note Note
20191 \begin_layout Plain Layout
20196 will be loaded automatically by \SpecialChar LyX
20197 when you use self defined table formats.
20198 To avoid that it being loaded twice the command
20204 is used in the above command.
20212 \begin_layout Standard
20217 can have one of the units listed in appendix
20218 \begin_inset space ~
20222 \begin_inset CommandInset ref
20224 reference "cha:Units-available-in"
20229 But this has the disadvantage that the cell texts are no longer exactly
20230 vertically centered.
20233 \begin_layout Standard
20234 If you are using font sizes larger than the normal size, the table borders
20235 are often too close to the letters.
20236 This can be corrected by inserting the command
20242 in \SpecialChar TeX
20243 Code at the beginning of a table row.
20245 \begin_inset space ~
20249 \begin_inset CommandInset ref
20251 reference "tab:Vertical-alignment-of"
20255 illustrates the effect.
20258 \begin_layout Standard
20260 \begin_inset Float table
20266 \begin_layout Plain Layout
20267 \begin_inset Caption Standard
20269 \begin_layout Plain Layout
20270 \begin_inset CommandInset label
20272 name "tab:Vertical-alignment-of"
20276 Vertical alignment of text with large font sizes.
20284 \begin_layout Plain Layout
20285 \begin_inset space \hfill{}
20289 \begin_inset Float table
20294 \begin_layout Plain Layout
20295 \begin_inset Caption Standard
20297 \begin_layout Plain Layout
20306 \begin_layout Plain Layout
20309 \begin_inset Tabular
20310 <lyxtabular version="3" rows="6" columns="1">
20311 <features tabularvalignment="middle">
20312 <column alignment="left" valignment="top">
20314 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20317 \begin_layout Plain Layout
20325 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20328 \begin_layout Plain Layout
20338 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20341 \begin_layout Plain Layout
20351 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20354 \begin_layout Plain Layout
20364 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20367 \begin_layout Plain Layout
20377 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20380 \begin_layout Plain Layout
20399 \begin_inset space \hfill{}
20403 \begin_inset Float table
20408 \begin_layout Plain Layout
20409 \begin_inset Caption Standard
20411 \begin_layout Plain Layout
20412 Table using the command
20426 \begin_layout Plain Layout
20429 \begin_inset Tabular
20430 <lyxtabular version="3" rows="6" columns="1">
20431 <features tabularvalignment="middle">
20432 <column alignment="left" valignment="top">
20434 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20437 \begin_layout Plain Layout
20445 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20448 \begin_layout Plain Layout
20454 \begin_layout Plain Layout
20470 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20473 \begin_layout Plain Layout
20479 \begin_layout Plain Layout
20495 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20498 \begin_layout Plain Layout
20504 \begin_layout Plain Layout
20520 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20523 \begin_layout Plain Layout
20529 \begin_layout Plain Layout
20545 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20548 \begin_layout Plain Layout
20554 \begin_layout Plain Layout
20581 \begin_inset space \hfill{}
20592 \begin_layout Subsection
20593 Special Cell Alignment
20594 \begin_inset CommandInset label
20596 name "subsec:Special-Cell-Alignment"
20601 \begin_inset Index idx
20604 \begin_layout Plain Layout
20605 Table Customization ! Special Cell Alignment
20613 \begin_layout Standard
20614 Sometimes it looks better when the cell entries of a column are aligned
20615 with a special character, e.
20616 \begin_inset space \thinspace{}
20620 \begin_inset space \space{}
20623 with the decimal separator as in Table
20624 \begin_inset space ~
20628 \begin_inset CommandInset ref
20630 reference "tab:Table-cells-align"
20635 This alignment is achieved by setting the cursor into the column and then
20636 either pressing the toolbar button
20639 arg "tabular-feature align-decimal"
20642 or setting the alignment in the table settings to
20645 \begin_inset space ~
20649 \begin_inset space ~
20655 The alignment character can be a character of your choice and is specified
20656 in the table settings.
20659 \begin_layout Standard
20660 \begin_inset Float table
20666 \begin_layout Plain Layout
20667 \begin_inset Caption Standard
20669 \begin_layout Plain Layout
20670 \begin_inset CommandInset label
20672 name "tab:Table-cells-align"
20676 Table cells of a column aligned with the decimal separator.
20684 \begin_layout Plain Layout
20686 \begin_inset Tabular
20687 <lyxtabular version="3" rows="4" columns="1">
20688 <features booktabs="true" tabularvalignment="middle">
20689 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20694 \begin_layout Plain Layout
20702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20705 \begin_layout Plain Layout
20713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20716 \begin_layout Plain Layout
20724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20727 \begin_layout Plain Layout
20746 \begin_layout Standard
20747 \begin_inset Float table
20753 \begin_layout Plain Layout
20754 \begin_inset Caption Standard
20756 \begin_layout Plain Layout
20757 \begin_inset CommandInset label
20759 name "tab:Table-align-operator"
20763 Table cells of a column aligned with the operators.
20771 \begin_layout Plain Layout
20773 \begin_inset Tabular
20774 <lyxtabular version="3" rows="4" columns="2">
20775 <features booktabs="true" tabularvalignment="middle">
20776 <column alignment="right" valignment="top" width="0pt">
20777 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20779 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20782 \begin_layout Plain Layout
20788 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20791 \begin_layout Plain Layout
20799 <cell alignment="center" valignment="top" usebox="none">
20802 \begin_layout Plain Layout
20803 \begin_inset Formula $12\,+$
20811 <cell alignment="center" valignment="top" usebox="none">
20814 \begin_layout Plain Layout
20815 \begin_inset Formula $\,6$
20825 <cell alignment="center" valignment="top" usebox="none">
20828 \begin_layout Plain Layout
20829 \begin_inset Formula $0\,-$
20837 <cell alignment="center" valignment="top" usebox="none">
20840 \begin_layout Plain Layout
20841 \begin_inset Formula $\,68$
20851 <cell alignment="center" valignment="top" usebox="none">
20854 \begin_layout Plain Layout
20855 \begin_inset Formula $-123\,/$
20863 <cell alignment="center" valignment="top" usebox="none">
20866 \begin_layout Plain Layout
20867 \begin_inset Formula $\,0$
20888 \begin_layout Standard
20889 For alignments at characters in formulas this method does not work because
20890 the field to specify the alignment character does not allow formulas.
20891 In this case one need to use the method from Table
20892 \begin_inset space ~
20896 \begin_inset CommandInset ref
20898 reference "tab:Table-align-operator"
20903 This table was created with a 4×2 table.
20904 The heading is a centered multicolumn.
20905 The first column is right-aligned and contains the first part including
20907 The second column is left aligned and contains the rest.
20908 A small space was added at the beginning of each cell of the second column
20909 to get the space that is usually around operators.
20910 To omit the space that is normally between two table columns, the following
20912 -argument was used for the second column:
20915 \begin_layout Standard
20921 \begin_layout Standard
20923 \begin_inset space ~
20927 \begin_inset CommandInset ref
20929 reference "tab:Several-table-cell"
20933 shows some example alignments.
20934 For the alignment with the relation sign, a small space was added like
20935 for the second column of Table
20936 \begin_inset space ~
20940 \begin_inset CommandInset ref
20942 reference "tab:Table-align-operator"
20949 \begin_layout Standard
20950 \begin_inset Float table
20956 \begin_layout Plain Layout
20957 \begin_inset Caption Standard
20959 \begin_layout Plain Layout
20960 \begin_inset CommandInset label
20962 name "tab:Several-table-cell"
20966 Several table cell alignments.
20974 \begin_layout Plain Layout
20976 \begin_inset Tabular
20977 <lyxtabular version="3" rows="4" columns="6">
20978 <features tabularvalignment="middle">
20979 <column alignment="right" valignment="top">
20980 <column alignment="left" valignment="top" special="@{}l">
20981 <column alignment="right" valignment="top">
20982 <column alignment="left" valignment="top" special="@{}l">
20983 <column alignment="right" valignment="top">
20984 <column alignment="left" valignment="top" special="@{}l">
20986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20989 \begin_layout Plain Layout
20995 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20998 \begin_layout Plain Layout
21004 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21007 \begin_layout Plain Layout
21013 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21016 \begin_layout Plain Layout
21022 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21025 \begin_layout Plain Layout
21031 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21034 \begin_layout Plain Layout
21042 <cell alignment="center" valignment="top" usebox="none">
21045 \begin_layout Plain Layout
21051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21054 \begin_layout Plain Layout
21056 \begin_inset space \thinspace{}
21064 <cell alignment="center" valignment="top" usebox="none">
21067 \begin_layout Plain Layout
21068 \begin_inset Formula $10\cdot$
21076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21079 \begin_layout Plain Layout
21080 \begin_inset Formula $10^{\mbox{-}17}$
21088 <cell alignment="center" valignment="top" usebox="none">
21091 \begin_layout Plain Layout
21092 \begin_inset Formula $\Gamma(t)\propto$
21100 <cell alignment="center" valignment="top" usebox="none">
21103 \begin_layout Plain Layout
21104 \begin_inset Formula $\:\Upsilon(t)$
21114 <cell alignment="center" valignment="top" usebox="none">
21117 \begin_layout Plain Layout
21123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21126 \begin_layout Plain Layout
21128 \begin_inset space \thinspace{}
21136 <cell alignment="center" valignment="top" usebox="none">
21139 \begin_layout Plain Layout
21140 \begin_inset Formula $5.78\cdot$
21148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21151 \begin_layout Plain Layout
21152 \begin_inset Formula $10^{7}$
21160 <cell alignment="center" valignment="top" usebox="none">
21163 \begin_layout Plain Layout
21164 \begin_inset Formula $A\ne$
21172 <cell alignment="center" valignment="top" usebox="none">
21175 \begin_layout Plain Layout
21176 \begin_inset Formula $\:B_{\mathrm{red}}$
21186 <cell alignment="center" valignment="top" usebox="none">
21189 \begin_layout Plain Layout
21195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21198 \begin_layout Plain Layout
21200 \begin_inset space \thinspace{}
21208 <cell alignment="center" valignment="top" usebox="none">
21211 \begin_layout Plain Layout
21213 \begin_inset Formula $33.5\cdot$
21221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21224 \begin_layout Plain Layout
21225 \begin_inset Formula $10^{4}$
21233 <cell alignment="center" valignment="top" usebox="none">
21236 \begin_layout Plain Layout
21237 \begin_inset Formula $\sin(\alpha)\ge$
21245 <cell alignment="center" valignment="top" usebox="none">
21248 \begin_layout Plain Layout
21249 \begin_inset Formula $\:\sin(\beta)$
21270 \begin_layout Subsection
21271 Customized Cell/Column Format
21272 \begin_inset CommandInset label
21274 name "subsec:Customized-Format"
21279 \begin_inset Index idx
21282 \begin_layout Plain Layout
21283 Table Customization ! Cell/Column Format
21291 \begin_layout Standard
21292 Calculating the required width for normal columns as described in section
21293 \begin_inset space ~
21297 \begin_inset CommandInset ref
21299 reference "sec:Table-Width-Calculation"
21303 or for spanned columns as described in section
21304 \begin_inset space ~
21308 \begin_inset CommandInset ref
21310 reference "subsec:Multicolumn-Calculations"
21314 is very annoying if you have several tables where a calculation is necessary.
21315 To make life easier, you can define a cell/column format in the preamble,
21316 that can be used in all tables of the document.
21317 The format is defined with the command
21320 \begin_layout Standard
21325 newcolumntype{name of format}[number of arguments]{commands}
21328 \begin_layout Standard
21329 The format name may only consist of one letter.
21354 are predefined and cannot be used.
21355 But all letters are allowed as capitals.
21358 \begin_layout Standard
21359 \begin_inset VSpace medskip
21365 \begin_layout Standard
21366 For vertically and horizontally centered multicolumn cells with a fixed
21367 width you can define the cell format
21370 \begin_layout Standard
21375 newcolumntype{M}[1]{>{
21382 \begin_layout Standard
21389 avoids the problem of hyphenating the first word, as described in section
21390 \begin_inset space ~
21394 \begin_inset CommandInset ref
21396 reference "subsec:Multiple-Lines-in"
21401 Now you can simply enter
21404 \begin_layout Standard
21410 \begin_layout Standard
21416 in the table dialog to create a multicolumn.
21419 \begin_layout Standard
21420 \begin_inset VSpace bigskip
21426 \begin_layout Standard
21427 For cells spanned by a multicolumn cell, you can define the format
21430 \begin_layout Standard
21435 newcolumntype{S}[2]{>{
21440 \begin_inset Newline newline
21444 \begin_inset Phantom HPhantom
21447 \begin_layout Plain Layout
21461 arrayrulewidth)*(1-#2))/#2}}
21464 \begin_layout Standard
21465 This format uses equation
21466 \begin_inset CommandInset ref
21472 to calculate the required width so that each spanned cell has the same
21476 \begin_layout Standard
21480 \begin_layout Standard
21483 S{width of multicolumn cell}{number of spanned columns}
21486 \begin_layout Standard
21487 as \SpecialChar LaTeX
21488 -argument of the column.
21491 \begin_layout Standard
21492 \begin_inset VSpace bigskip
21498 \begin_layout Standard
21499 For colored columns, you can define
21502 \begin_layout Standard
21507 newcolumntype{K}[1]{>{
21514 \begin_layout Standard
21516 \begin_inset Quotes eld
21520 \begin_inset Quotes erd
21523 at the end creates a column with a flexible width whose text is horizontally
21528 \begin_layout Standard
21534 \begin_layout Standard
21535 as \SpecialChar LaTeX
21539 \begin_layout Standard
21540 \begin_inset VSpace bigskip
21546 \begin_layout Standard
21548 \begin_inset space ~
21552 \begin_inset CommandInset ref
21554 reference "tab:Table-using-user-defined"
21558 use the \SpecialChar LaTeX
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the first column and the multicolumn,
21572 \begin_layout Standard
21578 \begin_layout Standard
21579 for the last column, and
21582 \begin_layout Standard
21588 \begin_layout Standard
21589 for the cells in the second column.
21592 \begin_layout Standard
21593 \begin_inset Float table
21599 \begin_layout Plain Layout
21600 \begin_inset Caption Standard
21602 \begin_layout Plain Layout
21603 \begin_inset CommandInset label
21605 name "tab:Table-using-user-defined"
21609 Table using user-defined table formats
21617 \begin_layout Plain Layout
21619 \begin_inset Tabular
21620 <lyxtabular version="3" rows="3" columns="4">
21621 <features tabularvalignment="middle">
21622 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21623 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21624 <column alignment="center" valignment="middle">
21625 <column alignment="center" valignment="middle" special="K{red}">
21627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21630 \begin_layout Plain Layout
21631 verylongtablecellword
21636 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21639 \begin_layout Plain Layout
21640 multiple lines multicolumn
21645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21648 \begin_layout Plain Layout
21654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21657 \begin_layout Plain Layout
21665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21668 \begin_layout Plain Layout
21674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21677 \begin_layout Plain Layout
21683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21686 \begin_layout Plain Layout
21692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21695 \begin_layout Plain Layout
21703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21706 \begin_layout Plain Layout
21712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21715 \begin_layout Plain Layout
21721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21724 \begin_layout Plain Layout
21730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21733 \begin_layout Plain Layout
21752 \begin_layout Subsection
21754 \begin_inset CommandInset label
21756 name "subsec:Line-Thickness"
21761 \begin_inset Index idx
21764 \begin_layout Plain Layout
21765 Table Customization ! Line Thickness
21773 \begin_layout Standard
21774 The line thickness for all lines in a table can be adjusted with the length
21782 To set for example a line thickness of 1.5
21783 \begin_inset space \thinspace{}
21787 \begin_inset space ~
21791 \begin_inset CommandInset ref
21793 reference "tab:Table-with-1.5"
21797 , insert the command
21800 \begin_layout Standard
21807 arrayrulewidth}{1.5pt}
21810 \begin_layout Standard
21811 in \SpecialChar TeX
21812 Code before the table or table float.
21813 The changed thickness is valid for all subsequent tables.
21814 To use the default value again, set
21821 \begin_inset space \thinspace{}
21824 pt in \SpecialChar TeX
21825 Code after the table or table float.
21828 \begin_layout Standard
21832 \begin_layout Plain Layout
21838 arrayrulewidth}{1.5pt}
21844 \begin_inset Float table
21849 \begin_layout Plain Layout
21850 \begin_inset Caption Standard
21852 \begin_layout Plain Layout
21853 \begin_inset CommandInset label
21855 name "tab:Table-with-1.5"
21860 \begin_inset space \thinspace{}
21871 \begin_layout Plain Layout
21873 \begin_inset Tabular
21874 <lyxtabular version="3" rows="3" columns="3">
21875 <features tabularvalignment="middle">
21876 <column alignment="center" valignment="top">
21877 <column alignment="center" valignment="top">
21878 <column alignment="center" valignment="top">
21880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21883 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21901 \begin_layout Plain Layout
21909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21912 \begin_layout Plain Layout
21918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21921 \begin_layout Plain Layout
21927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21930 \begin_layout Plain Layout
21938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21941 \begin_layout Plain Layout
21947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21950 \begin_layout Plain Layout
21956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21959 \begin_layout Plain Layout
21979 \begin_layout Plain Layout
21985 arrayrulewidth}{0.4pt}
21993 \begin_layout Standard
21994 \begin_inset VSpace bigskip
21997 To set the line thickness to 1.5
21998 \begin_inset space \thinspace{}
22001 pt only for horizontal lines, as in Table
22002 \begin_inset space ~
22006 \begin_inset CommandInset ref
22008 reference "tab:Table-with-horizontal"
22012 , insert these commands in \SpecialChar TeX
22013 Code before the table or table float:
22016 \begin_layout Standard
22026 \begin_inset Newline newline
22034 \begin_inset Newline newline
22043 arrayrulewidth 1.5pt}
22044 \begin_inset Newline newline
22055 arrayrulewidth 0.4pt}}
22058 \begin_layout Standard
22059 To return to the default line thickness, insert this command in \SpecialChar TeX
22061 the table or table float:
22064 \begin_layout Standard
22076 \begin_layout Standard
22080 \begin_layout Plain Layout
22091 \begin_layout Plain Layout
22100 \begin_layout Plain Layout
22108 arrayrulewidth 1.5pt}
22111 \begin_layout Plain Layout
22121 arrayrulewidth 0.4pt}}
22127 \begin_inset Float table
22132 \begin_layout Plain Layout
22133 \begin_inset Caption Standard
22135 \begin_layout Plain Layout
22136 \begin_inset CommandInset label
22138 name "tab:Table-with-horizontal"
22143 \begin_inset space \thinspace{}
22146 pt thick horizontal lines
22154 \begin_layout Plain Layout
22156 \begin_inset Tabular
22157 <lyxtabular version="3" rows="3" columns="3">
22158 <features tabularvalignment="middle">
22159 <column alignment="center" valignment="top">
22160 <column alignment="center" valignment="top">
22161 <column alignment="center" valignment="top">
22163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22166 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22184 \begin_layout Plain Layout
22192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22195 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22213 \begin_layout Plain Layout
22221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22224 \begin_layout Plain Layout
22230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22233 \begin_layout Plain Layout
22239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22242 \begin_layout Plain Layout
22262 \begin_layout Plain Layout
22278 \begin_layout Standard
22279 \begin_inset VSpace bigskip
22282 To set the line thickness to 1.5
22283 \begin_inset space \thinspace{}
22286 pt only for vertical lines, create the following column format in the document
22287 preamble, according to the description in section
22288 \begin_inset space ~
22292 \begin_inset CommandInset ref
22294 reference "subsec:Customized-Format"
22301 \begin_layout Standard
22306 newcolumntype{V}{!{
22308 vrule width 1.5pt}}
22311 \begin_layout Standard
22313 \begin_inset space ~
22317 \begin_inset CommandInset ref
22319 reference "tab:Table-with-vertical"
22323 the \SpecialChar LaTeX
22327 \begin_layout Standard
22333 \begin_layout Standard
22334 was used for the last column and
22337 \begin_layout Standard
22343 \begin_layout Standard
22344 for the other columns.
22347 \begin_layout Standard
22348 \begin_inset Float table
22353 \begin_layout Plain Layout
22354 \begin_inset Caption Standard
22356 \begin_layout Plain Layout
22357 \begin_inset CommandInset label
22359 name "tab:Table-with-vertical"
22364 \begin_inset space \thinspace{}
22367 pt thick vertical lines
22375 \begin_layout Plain Layout
22377 \begin_inset Tabular
22378 <lyxtabular version="3" rows="3" columns="3">
22379 <features tabularvalignment="middle">
22380 <column alignment="center" valignment="top" special="Vc">
22381 <column alignment="center" valignment="top" special="Vc">
22382 <column alignment="center" valignment="top" special="VcV">
22384 <cell alignment="center" valignment="top" topline="true" usebox="none">
22387 \begin_layout Plain Layout
22393 <cell alignment="center" valignment="top" topline="true" usebox="none">
22396 \begin_layout Plain Layout
22402 <cell alignment="center" valignment="top" topline="true" usebox="none">
22405 \begin_layout Plain Layout
22413 <cell alignment="center" valignment="top" topline="true" usebox="none">
22416 \begin_layout Plain Layout
22422 <cell alignment="center" valignment="top" topline="true" usebox="none">
22425 \begin_layout Plain Layout
22431 <cell alignment="center" valignment="top" topline="true" usebox="none">
22434 \begin_layout Plain Layout
22442 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22445 \begin_layout Plain Layout
22451 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22454 \begin_layout Plain Layout
22460 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22463 \begin_layout Plain Layout
22482 \begin_layout Subsection
22484 \begin_inset Index idx
22487 \begin_layout Plain Layout
22488 Table Customization ! Dashed Lines
22496 \begin_layout Standard
22500 \begin_layout Plain Layout
22510 \begin_inset Note Note
22513 \begin_layout Plain Layout
22514 The following section will only be displayed when the \SpecialChar LaTeX
22527 \begin_layout Standard
22528 \begin_inset Float table
22534 \begin_layout Plain Layout
22535 \begin_inset Caption Standard
22537 \begin_layout Plain Layout
22538 \begin_inset CommandInset label
22540 name "tab:Table-with-dashed"
22544 Table with dashed lines
22552 \begin_layout Plain Layout
22554 \begin_inset Tabular
22555 <lyxtabular version="3" rows="5" columns="5">
22556 <features tabularvalignment="middle">
22557 <column alignment="center" valignment="top">
22558 <column alignment="center" valignment="top">
22559 <column alignment="center" valignment="top" special=":c">
22560 <column alignment="center" valignment="top">
22561 <column alignment="center" valignment="top">
22563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22566 \begin_layout Plain Layout
22572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22575 \begin_layout Plain Layout
22581 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22584 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22602 \begin_layout Plain Layout
22610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22613 \begin_layout Plain Layout
22619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22622 \begin_layout Plain Layout
22628 <cell alignment="center" valignment="top" topline="true" usebox="none">
22631 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22640 \begin_layout Plain Layout
22646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22649 \begin_layout Plain Layout
22657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22660 \begin_layout Plain Layout
22664 \begin_layout Plain Layout
22678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22681 \begin_layout Plain Layout
22687 <cell alignment="center" valignment="top" usebox="none">
22690 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22708 \begin_layout Plain Layout
22716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22719 \begin_layout Plain Layout
22723 \begin_layout Plain Layout
22737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22740 \begin_layout Plain Layout
22746 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22749 \begin_layout Plain Layout
22755 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22767 \begin_layout Plain Layout
22775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22778 \begin_layout Plain Layout
22784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22787 \begin_layout Plain Layout
22793 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22796 \begin_layout Plain Layout
22802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22805 \begin_layout Plain Layout
22811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22814 \begin_layout Plain Layout
22833 \begin_layout Standard
22835 does not natively support dashed lines, so you have to use \SpecialChar TeX
22837 As a prerequisite the \SpecialChar LaTeX
22843 \begin_inset Index idx
22846 \begin_layout Plain Layout
22848 -packages ! arydshln
22853 must be loaded in the document preamble with the command
22856 \begin_layout Standard
22861 usepackage{arydshln}
22864 \begin_layout Standard
22865 To make a vertical line dashed, enter the colon
22866 \begin_inset Quotes eld
22870 \begin_inset Quotes erd
22873 together with the character for the horizontal alignment as \SpecialChar LaTeX
22875 the table cell dialog.
22878 \begin_layout Standard
22879 For a horizontal dashed line add the command
22882 \begin_layout Standard
22890 \begin_layout Standard
22891 in \SpecialChar TeX
22892 Code as first element of the first cell in the table row.
22895 \begin_layout Standard
22896 For dashed multicolumn lines use the command
22899 \begin_layout Standard
22904 cdashline{line number
22909 \begin_layout Standard
22910 in \SpecialChar TeX
22911 Code as the first element of the first cell in the table row.
22912 If you have for example a multicolumn spanning columns 2 to 4 and you want
22913 to have a dashed line above, add the command
22916 \begin_layout Standard
22924 \begin_layout Standard
22925 as the first element of the first cell in the row of the multicolumn.
22928 \begin_layout Standard
22929 \begin_inset VSpace bigskip
22935 \begin_layout Standard
22937 \begin_inset space ~
22941 \begin_inset CommandInset ref
22943 reference "tab:Table-with-dashed"
22948 \begin_inset Quotes eld
22956 \begin_inset Quotes erd
22959 as \SpecialChar LaTeX
22960 argument of the third column.
22961 The \SpecialChar TeX
22968 was inserted in the first cell of the third row and the \SpecialChar TeX
22970 \begin_inset Newline newline
22979 was inserted in the first cell of the fourth row.
22982 \begin_layout Standard
22983 \begin_inset VSpace bigskip
22989 \begin_layout Standard
22990 Tables with dashed lines can also be colored as shown by Table
22991 \begin_inset space ~
22995 \begin_inset CommandInset ref
22997 reference "tab:Colored-table-with"
23004 \begin_layout Standard
23008 \begin_layout Plain Layout
23014 arrayrulewidth}{1pt}
23020 \begin_inset Note Note
23023 \begin_layout Plain Layout
23024 thicker lines for better visualization of the line color
23032 \begin_layout Standard
23036 \begin_layout Plain Layout
23040 dashgapcolor{green}
23046 \begin_inset Note Note
23049 \begin_layout Plain Layout
23050 color gaps between dashes green
23058 \begin_layout Standard
23062 \begin_layout Plain Layout
23073 \begin_layout Plain Layout
23082 \begin_layout Plain Layout
23086 arrayrulecolor{red}
23090 arrayrulecolor{black}}
23096 \begin_inset Note Note
23099 \begin_layout Plain Layout
23100 color horizontal, dashed lines red
23108 \begin_layout Standard
23112 \begin_layout Plain Layout
23123 \begin_layout Plain Layout
23132 \begin_layout Plain Layout
23136 arrayrulecolor{yellow}
23140 arrayrulecolor{black}}
23146 \begin_inset Note Note
23149 \begin_layout Plain Layout
23150 color partial horizontal, dashed lines yellow
23158 \begin_layout Standard
23159 \begin_inset Float table
23165 \begin_layout Plain Layout
23166 \begin_inset Caption Standard
23168 \begin_layout Plain Layout
23169 \begin_inset CommandInset label
23171 name "tab:Colored-table-with"
23175 Colored table with dashed lines
23183 \begin_layout Plain Layout
23185 \begin_inset Tabular
23186 <lyxtabular version="3" rows="5" columns="5">
23187 <features tabularvalignment="middle">
23188 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23189 <column alignment="center" valignment="top" width="0pt">
23190 <column alignment="center" valignment="top" width="0pt" special=":c">
23191 <column alignment="center" valignment="top">
23192 <column alignment="center" valignment="top">
23194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23197 \begin_layout Plain Layout
23203 <cell alignment="center" valignment="top" topline="true" usebox="none">
23206 \begin_layout Plain Layout
23212 <cell alignment="center" valignment="top" topline="true" usebox="none">
23215 \begin_layout Plain Layout
23221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23224 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23233 \begin_layout Plain Layout
23241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23244 \begin_layout Plain Layout
23250 <cell alignment="center" valignment="top" topline="true" usebox="none">
23253 \begin_layout Plain Layout
23259 <cell alignment="center" valignment="top" topline="true" usebox="none">
23262 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23280 \begin_layout Plain Layout
23288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23291 \begin_layout Plain Layout
23295 \begin_layout Plain Layout
23308 \begin_layout Plain Layout
23322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23325 \begin_layout Plain Layout
23331 <cell alignment="center" valignment="top" usebox="none">
23334 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23349 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23352 \begin_layout Plain Layout
23360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23363 \begin_layout Plain Layout
23367 \begin_layout Plain Layout
23381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23384 \begin_layout Plain Layout
23390 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23393 \begin_layout Plain Layout
23399 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23402 \begin_layout Plain Layout
23408 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23411 \begin_layout Plain Layout
23419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23422 \begin_layout Plain Layout
23428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23431 \begin_layout Plain Layout
23437 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23440 \begin_layout Plain Layout
23446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23449 \begin_layout Plain Layout
23455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23458 \begin_layout Plain Layout
23462 \begin_layout Plain Layout
23489 \begin_layout Standard
23493 \begin_layout Plain Layout
23507 \begin_inset Note Note
23510 \begin_layout Plain Layout
23519 \begin_layout Standard
23523 \begin_layout Plain Layout
23537 \begin_inset Note Note
23540 \begin_layout Plain Layout
23549 \begin_layout Standard
23553 \begin_layout Plain Layout
23563 \begin_inset Note Note
23566 \begin_layout Plain Layout
23575 \begin_layout Standard
23579 \begin_layout Plain Layout
23585 arrayrulewidth}{0.4pt}
23591 \begin_inset Note Note
23594 \begin_layout Plain Layout
23603 \begin_layout Standard
23604 The coloring of lines, columns and lines works as decribed in section
23605 \begin_inset space ~
23609 \begin_inset CommandInset ref
23611 reference "sec:Colored-Tables"
23616 Coloring horizontal lines works analogically as described there as well,
23617 one only needs to replace in the commands
23641 ; so one uses the command
23644 \begin_layout Standard
23654 \begin_inset Newline newline
23662 \begin_inset Newline newline
23666 \begin_inset Phantom HPhantom
23669 \begin_layout Plain Layout
23670 \begin_inset space ~
23680 arrayrulecolor{red}
23684 arrayrulecolor{black}}
23687 \begin_layout Standard
23697 \begin_layout Standard
23707 \begin_inset Newline newline
23715 \begin_inset Newline newline
23719 \begin_inset Phantom HPhantom
23722 \begin_layout Plain Layout
23723 \begin_inset space ~
23733 arrayrulecolor{red}
23737 arrayrulecolor{black}}
23740 \begin_layout Standard
23741 To get back the black line color, one needs to insert the following commands
23742 as \SpecialChar TeX
23743 Code behind the table:
23746 \begin_layout Standard
23754 \begin_layout Standard
23766 \begin_layout Standard
23774 \begin_layout Standard
23786 \begin_layout Standard
23787 To color the gaps between the dashes the command
23790 \begin_layout Standard
23795 dashgapcolor{color}
23798 \begin_layout Standard
23799 can be used in front of a table as \SpecialChar TeX
23801 color is hereby the name of a defined color.
23805 \begin_layout Standard
23813 \begin_layout Standard
23814 unsets the changes made by
23823 \begin_layout Standard
23824 \begin_inset Note Greyedout
23827 \begin_layout Plain Layout
23833 : If there are multiple commands in a cell, the command of
23837 needs to be the first one in the cell.
23843 \begin_inset space ~
23847 \begin_inset CommandInset ref
23849 reference "tab:Colored-table-with"
23873 \begin_layout Standard
23874 \begin_inset Note Greyedout
23877 \begin_layout Plain Layout
23883 The \SpecialChar LaTeX
23888 must be loaded in the document preamble before the \SpecialChar LaTeX
23894 \begin_inset Index idx
23897 \begin_layout Plain Layout
23899 -packages ! colortbl
23912 \begin_layout Standard
23916 \begin_layout Plain Layout
23926 \begin_inset Note Note
23929 \begin_layout Plain Layout
23930 The following will be displayed when the \SpecialChar LaTeX
23943 \begin_layout Standard
23944 You need to install the package
23948 to see the content of this section in the output.
23951 \begin_layout Standard
23955 \begin_layout Plain Layout
23967 \begin_layout Standard
23968 For more information about dashed lines see the documentation of
23973 \begin_inset CommandInset citation
23982 \begin_layout Chapter
23984 \begin_inset CommandInset label
23991 \begin_inset Index idx
23994 \begin_layout Plain Layout
24003 \begin_layout Section
24005 \begin_inset CommandInset label
24007 name "sec:FloatIntroduction"
24012 \begin_inset Index idx
24015 \begin_layout Plain Layout
24016 Floats ! Introduction
24024 \begin_layout Standard
24025 A float is a block of text associated with some sort of label, which doesn't
24026 have a fixed location.
24028 \begin_inset Quotes eld
24032 \begin_inset Quotes erd
24035 forward or backward a page or two, to wherever it fits best.
24043 \begin_inset space ~
24048 are also floats because they can float to the next page when there are
24049 too many notes on the page.
24052 \begin_layout Standard
24053 Floats allow a high quality layout.
24054 Images and tables can be spread evenly among the pages to avoid white space
24055 and pages without text.
24056 As the floating often destroys the context between the text and the image/table
24057 , every float can be referenced in the text.
24058 Floats are therefore numbered.
24059 Referencing is described in section
24060 \begin_inset space ~
24064 \begin_inset CommandInset ref
24066 reference "sec:Referencing-Floats"
24073 \begin_layout Standard
24074 To insert a float, use the menu
24076 Insert\SpecialChar menuseparator
24082 arg "float-insert figure"
24088 arg "float-insert table"
24096 inset, a box with a label.
24097 The label will automatically be translated to the document language in
24099 After the label you can insert the caption text.
24100 The image or table is inserted above or below the caption in a separate
24101 paragraph within the float.
24102 More about the caption placement is contained in section
24103 \begin_inset space ~
24107 \begin_inset CommandInset ref
24109 reference "sec:Caption-Placement"
24114 To keep your \SpecialChar LyX
24115 document readable, you can open and close the float box by
24116 left-clicking on the box label.
24117 A closed float box looks like this:
24118 \begin_inset Graphics
24119 filename clipart/float.png
24121 scaleBeforeRotation
24125 – a gray button with a red label.
24128 \begin_layout Standard
24129 It is recommended that you insert floats as separate standard paragraphs
24130 to avoid possible \SpecialChar LaTeX
24131 -errors that can occur when the surrounding text is specially
24135 \begin_layout Standard
24136 Existing figures or tables can be put into a float by highlighting them
24137 and then pressing the corresponding toolbar button for a new float.
24140 \begin_layout Section
24144 \begin_layout Standard
24145 Besides figure and table floats that are described in sections
24146 \begin_inset space ~
24150 \begin_inset CommandInset ref
24152 reference "sec:Figure-Floats"
24157 \begin_inset CommandInset ref
24159 reference "sec:Table-Floats"
24163 respectively, \SpecialChar LyX
24164 offers the float types
24173 The latter are explained in sec.
24174 \begin_inset space \thinspace{}
24178 \begin_inset CommandInset ref
24180 reference "sec:Wrap-Floats"
24187 \begin_layout Subsection
24189 \begin_inset Index idx
24192 \begin_layout Plain Layout
24193 Floats ! Algorithms
24201 \begin_layout Standard
24202 \begin_inset Float algorithm
24208 \begin_layout Plain Layout
24209 \begin_inset Caption Standard
24211 \begin_layout Plain Layout
24212 \begin_inset CommandInset label
24214 name "alg:Example-Algorithm-float"
24218 Example Algorithm float
24226 \begin_layout LyX-Code
24228 \begin_inset Newline newline
24231 Sum:= Sum + A(I); /*comment*/
24232 \begin_inset Newline newline
24236 \begin_inset VSpace -4mm
24247 \begin_layout Standard
24248 This float type is inserted with the menu
24250 Insert\SpecialChar menuseparator
24251 Float\SpecialChar menuseparator
24255 It is used for program codes and descriptions of algorithms and can be
24256 seen as an alternative to program code listings that are explained in chapter
24257 \begin_inset space ~
24261 \begin_inset CommandInset ref
24263 reference "cha:Program-Code-Listings"
24268 A possible environment for algorithms is the
24273 , described in \SpecialChar LyX
24280 \begin_inset space ~
24284 \begin_inset CommandInset ref
24286 reference "alg:Example-Algorithm-float"
24290 is an example of an algorithm float where -4
24291 \begin_inset space \thinspace{}
24294 mm vertical space was added at the end of the float to have the bottom rule
24295 exactly below the last text line.
24298 \begin_layout Standard
24299 The float label is not automatically translated into the document language.
24300 If your document is not in English, you have to do this manually by adding
24301 the following line to the document preamble
24306 \begin_layout Standard
24311 floatname{algorithm}{your
24312 \begin_inset space ~
24318 \begin_layout Standard
24322 \begin_inset space ~
24328 \begin_inset Quotes eld
24336 \begin_inset Quotes erd
24342 \begin_layout Standard
24343 To insert the list of algorithms you can use the menu
24345 Insert\SpecialChar menuseparator
24347 \begin_inset space \thinspace{}
24351 \begin_inset space \thinspace{}
24354 TOC\SpecialChar menuseparator
24357 when your document has the same language as \SpecialChar LyX
24359 In other cases use this command in \SpecialChar TeX
24363 \begin_layout Standard
24368 listof{algorithm}{your
24369 \begin_inset space ~
24375 \begin_layout Standard
24379 \begin_inset space ~
24385 \begin_inset Quotes eld
24393 \begin_inset Quotes erd
24399 \begin_layout Standard
24400 Algorithm floats are not by default numbered in the scheme
24401 \begin_inset Quotes eld
24405 \begin_inset Quotes erd
24408 as is the case for table and figure floats in many document-classes.
24409 To number algorithm floats in the same scheme, add this command to your
24413 \begin_layout Standard
24418 numberwithin{algorithm}{chapter}
24421 \begin_layout Standard
24422 To be able to use the command
24431 \begin_inset space ~
24436 in the document settings the option
24439 \begin_inset space ~
24443 \begin_inset space ~
24447 \begin_inset space ~
24455 \begin_layout Section
24457 \begin_inset Index idx
24460 \begin_layout Plain Layout
24469 \begin_layout Standard
24470 Floats are usually numbered either independently from the sections the floats
24471 are in, or in the scheme
24472 \begin_inset Quotes eld
24476 \begin_inset Quotes erd
24480 \begin_inset Quotes eld
24484 \begin_inset Quotes erd
24488 This depends on the document class used.
24491 \begin_layout Standard
24492 To change section-independent numbering, you can use this command in the
24496 \begin_layout Standard
24508 \begin_layout Standard
24515 is the command that prints the table number.
24516 For figure floats, the command would be
24529 in the command above prints the table number as a small roman number.
24532 \begin_layout Standard
24533 To change the numbering scheme for example to
24534 \begin_inset Quotes eld
24538 \begin_inset Quotes erd
24541 , use this command in the preamble:
24544 \begin_layout Standard
24549 numberwithin{table}{subsection}
24552 \begin_layout Standard
24553 To be able to use the command
24562 \begin_inset space ~
24567 in the document settings the option
24570 \begin_inset space ~
24574 \begin_inset space ~
24578 \begin_inset space ~
24586 \begin_layout Standard
24587 Please also have a look at section
24588 \begin_inset space ~
24592 \begin_inset CommandInset ref
24594 reference "subsec:Footnote-Numbering"
24598 for the details and important notes about the numbering commands.
24601 \begin_layout Section
24603 \begin_inset CommandInset label
24605 name "sec:Referencing-Floats"
24610 \begin_inset Index idx
24613 \begin_layout Plain Layout
24614 Floats ! References
24620 \begin_inset Index idx
24623 \begin_layout Plain Layout
24624 References ! to Floats
24632 \begin_layout Standard
24633 To reference a float, insert a label into its caption using the menu
24635 Insert\SpecialChar menuseparator
24638 or the toolbar button
24645 A grey label box like this one:
24646 \begin_inset Graphics
24647 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
24694 scaleBeforeRotation
24699 At the position of the cross-reference box the float number will appear
24703 \begin_layout Standard
24704 It is recommended that you use a protected space between the cross-reference
24705 name and its number to avoid line breaks between them.
24706 If a cross-reference refers to a non-existing label, you will see two question
24707 marks in the output instead of the reference.
24710 \begin_layout Standard
24711 You can change labels at any time by clicking on the label box.
24712 References to the changed label will automatically update their links to
24713 the new label text.
24716 \begin_layout Standard
24720 \begin_inset space ~
24724 \begin_inset space ~
24729 in the cross-reference window sets the cursor before the referred label.
24730 The button text changes then to Go
24731 \begin_inset space ~
24734 Back and you can use it to set the cursor back to the cross-reference.
24737 \begin_layout Subsection
24738 Cross-Reference Formats
24739 \begin_inset CommandInset label
24741 name "subsec:Cross-Reference-Formats"
24746 \begin_inset Index idx
24749 \begin_layout Plain Layout
24750 References ! Formats
24758 \begin_layout Standard
24759 There are six varieties of cross-references:
24762 \begin_layout Description
24763 <reference>: prints the float number, this is the default:
24764 \begin_inset CommandInset ref
24766 reference "fig:Two-distorted-images"
24773 \begin_layout Description
24774 (<reference>): prints the float number within two parentheses, this is the
24775 style normally used to reference formulas, especially when the reference
24777 \begin_inset Quotes eld
24781 \begin_inset Quotes erd
24785 \begin_inset CommandInset ref
24794 \begin_layout Description
24795 <page>: prints the page number: Page
24796 \begin_inset space ~
24800 \begin_inset CommandInset ref
24801 LatexCommand pageref
24802 reference "fig:Two-distorted-images"
24809 \begin_layout Description
24811 \begin_inset space ~
24815 \begin_inset space ~
24818 <page>: prints the text "on page" and the page number:
24819 \begin_inset CommandInset ref
24820 LatexCommand vpageref
24821 reference "fig:Two-distorted-images"
24828 \begin_layout Description
24830 \begin_inset space ~
24834 \begin_inset space ~
24838 \begin_inset space ~
24841 <page>: prints the float number, the text "on page", and the page number:
24843 \begin_inset CommandInset ref
24845 reference "fig:Two-distorted-images"
24852 \begin_layout Description
24854 \begin_inset space ~
24857 reference: prints a self-defined cross-reference format.
24858 \begin_inset Newline newline
24862 \begin_inset Note Greyedout
24865 \begin_layout Plain Layout
24870 This feature is only available when you have the \SpecialChar LaTeX
24880 \begin_inset Index idx
24883 \begin_layout Plain Layout
24885 -packages ! prettyref
24891 \begin_inset Index idx
24894 \begin_layout Plain Layout
24896 -packages ! refstyle
24907 \begin_inset Newline newline
24910 You can select which \SpecialChar LaTeX
24911 -package should be used for this feature by setting
24914 Use refstyle (not prettyref) for cross-references
24918 Document\SpecialChar menuseparator
24919 Settings\SpecialChar menuseparator
24923 The format is specified by adding the command
24935 (refstyle) to the preamble of the document.
24936 For example redefining all references to figures (which have the label
24938 \begin_inset Quotes eld
24946 \begin_inset Quotes erd
24949 ) can be done with this command
24950 \begin_inset Newline newline
24957 newref{fig}{refcmd={Image on page
24962 \begin_inset Newline newline
24965 For more information about the format, have a look at the package documentations
24967 \begin_inset CommandInset citation
24969 key "prettyref,refstyle"
24976 \begin_layout Description
24978 \begin_inset space ~
24981 reference: prints the caption of the reference:
24982 \begin_inset CommandInset ref
24983 LatexCommand nameref
24984 reference "fig:Two-distorted-images"
24991 \begin_layout Standard
24996 will not print the page number if the label is on the previous, the same,
24999 \begin_inset space \thinspace{}
25003 \begin_inset space \space{}
25007 \begin_inset Quotes eld
25015 \begin_inset Quotes erd
25021 <reference> on page <page>
25023 will not print anything about the page if the label is on the same page.
25026 \begin_layout Standard
25027 The number and current page of the part of the document referred to in the
25028 output is automatically calculated by \SpecialChar LaTeX
25030 The varieties are adjusted in the field
25034 of the cross-reference window that appears when you click on the cross-referenc
25038 \begin_layout Standard
25039 \begin_inset Note Greyedout
25042 \begin_layout Plain Layout
25047 It is recommended to use the \SpecialChar LaTeX
25053 \begin_inset Index idx
25056 \begin_layout Plain Layout
25058 -packages ! refstyle
25068 \begin_inset Index idx
25071 \begin_layout Plain Layout
25073 -packages ! prettyref
25078 does not know all of \SpecialChar LyX
25079 's possible label shortcuts
25083 \begin_layout Plain Layout
25084 \begin_inset Quotes eld
25088 \begin_inset Quotes erd
25091 is for example \SpecialChar LyX
25092 's shortcut for labels in figure captions.
25097 and is not internationalized.
25105 \begin_layout Subsection
25106 Automatic Reference Naming
25107 \begin_inset Index idx
25110 \begin_layout Plain Layout
25111 References ! Automatic Reference Naming
25119 \begin_layout Standard
25120 The \SpecialChar LaTeX
25126 \begin_inset Index idx
25129 \begin_layout Plain Layout
25131 -packages ! hyperref
25136 , that is enabled in the
25144 dialog, provides a very useful feature that cross-references automatically
25145 include the name of the referenced floats (or text parts like
25150 So you will save having to write e.
25151 \begin_inset space \thinspace{}
25155 \begin_inset space \space{}
25159 \begin_inset Quotes eld
25163 \begin_inset Quotes erd
25166 before every reference to a figure.
25167 To use this feature, enable
25171 and insert this line to the \SpecialChar LaTeX
25175 \begin_layout Standard
25191 \begin_layout Standard
25192 When you prefer other reference names than the default ones, for example
25193 you want instead of
25194 \begin_inset Quotes eld
25198 \begin_inset Quotes erd
25202 \begin_inset Quotes eld
25206 \begin_inset space \thinspace{}
25210 \begin_inset Quotes eld
25213 , you can redefine the name by inserting this in the preamble:
25216 \begin_layout Standard
25227 sectionautorefname}
25228 \begin_inset Newline newline
25232 \begin_inset Phantom HPhantom
25235 \begin_layout Plain Layout
25238 \begin_inset space ~
25251 \begin_layout Standard
25252 When you are using another document language than English, replace
25253 \begin_inset Newline newline
25268 , where *** is the name of the language used.
25271 \begin_layout Standard
25272 To get automatic names, but not for certain reference types, for example
25273 not for equations, use this preamble code:
25276 \begin_layout Standard
25287 equationautorefname}[1]{}}
25290 \begin_layout Standard
25291 More about this topic can be found in
25296 \begin_inset CommandInset citation
25305 \begin_layout Standard
25306 \begin_inset Note Greyedout
25309 \begin_layout Plain Layout
25314 Automatic reference naming cannot be used when you use cross-references
25318 \begin_inset space ~
25323 style, as described in section
25324 \begin_inset space ~
25328 \begin_inset CommandInset ref
25330 reference "subsec:Cross-Reference-Formats"
25342 \begin_layout Standard
25347 manual is an example where automatic reference naming is used.
25350 \begin_layout Subsection
25352 \begin_inset CommandInset label
25354 name "subsec:Reference-Position"
25359 \begin_inset Index idx
25362 \begin_layout Plain Layout
25363 References ! Reference Position
25371 \begin_layout Standard
25377 \begin_inset Index idx
25380 \begin_layout Plain Layout
25382 -packages ! hyperref
25395 dialog to link cross-references in the output, you will see that clicking
25396 on an image float reference jumps to the image label.
25397 The caption will be the first text part on the screen, so that you cannot
25398 see the image without scrolling.
25399 This is because the reference link anchor is placed at the position of
25401 With the use of the package
25406 \begin_inset Index idx
25409 \begin_layout Plain Layout
25416 , which is part of the \SpecialChar LaTeX
25422 \begin_inset Index idx
25425 \begin_layout Plain Layout
25427 -packages ! oberdiek
25432 , the link anchor is placed at the beginning of a float.
25433 To use this feature for figure floats, load
25437 in the document preamble with the line
25440 \begin_layout Standard
25445 usepackage[figure]{hypcap}
25448 \begin_layout Standard
25453 for all float types but this is not recommended for stability reasons.
25454 For more information, have a look at
25459 \begin_inset CommandInset citation
25468 \begin_layout Standard
25469 \begin_inset Note Greyedout
25472 \begin_layout Plain Layout
25481 has no effect on references to subfigures.
25489 \begin_layout Section
25491 \begin_inset CommandInset label
25493 name "sec:Float-Placement"
25498 \begin_inset Index idx
25501 \begin_layout Plain Layout
25510 \begin_layout Standard
25511 Right-clicking on a float-box and clicking on
25515 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25517 positioning the float.
25518 \begin_inset Newline newline
25524 \begin_inset space ~
25529 is only useful for two-column documents: If you select it, the float will
25530 span both columns on the page instead of being confined to just one.
25531 \begin_inset Newline newline
25537 \begin_inset space ~
25542 is used to rotate floats, see section
25543 \begin_inset CommandInset ref
25545 reference "sec:Rotated-Floats"
25552 \begin_layout Standard
25553 You can use one or more of the following options in the float dialog to
25554 set the placement for a particular float when you uncheck the option
25557 \begin_inset space ~
25561 \begin_inset space ~
25569 \begin_layout Description
25571 \begin_inset space ~
25575 \begin_inset space ~
25578 possible try to place the float on the position where it has been inserted
25581 \begin_layout Description
25583 \begin_inset space ~
25587 \begin_inset space ~
25590 page try to place the float at the top of the current page
25593 \begin_layout Description
25595 \begin_inset space ~
25599 \begin_inset space ~
25602 page try to place the float at the bottom of the current page
25605 \begin_layout Description
25607 \begin_inset space ~
25611 \begin_inset space ~
25614 floats try to place the float on its own page
25617 \begin_layout Standard
25618 The order of the above option is
25622 used by \SpecialChar LaTeX
25624 That means, if you use the default placement, \SpecialChar LaTeX
25628 \begin_inset space ~
25632 \begin_inset space ~
25640 \begin_inset space ~
25644 \begin_inset space ~
25649 , and then the others.
25650 If you do not use the default, \SpecialChar LaTeX
25651 will try only the checked options but in
25654 \begin_inset space ~
25657 placements is possible the procedure is internally repeated trying to put
25658 the float on the following page.
25661 \begin_layout Standard
25662 By default, each option has its own rules:
25665 \begin_layout Labeling
25666 \labelwidthstring 00.00.0000
25670 \begin_inset space ~
25674 \begin_inset space ~
25679 only floats occupying less than 70
25680 \begin_inset space \thinspace{}
25683 % of the page can be placed at the top of a page (
25692 \begin_layout Labeling
25693 \labelwidthstring 00.00.0000
25697 \begin_inset space ~
25701 \begin_inset space ~
25706 : only floats occupying less than 30
25707 \begin_inset space \thinspace{}
25710 % of the page can be placed at the bottom of a page.
25720 \begin_layout Labeling
25721 \labelwidthstring 00.00.0000
25725 \begin_inset space ~
25729 \begin_inset space ~
25734 : only if more than 50
25735 \begin_inset space \thinspace{}
25738 % of the page is occupied by floats, several floats can be set together
25749 \begin_layout Standard
25750 If you don't like these rules, you can ignore them by using the additional
25754 \begin_inset space ~
25759 \begin_inset space ~
25765 \begin_inset Newline newline
25768 You can also redefine the rules with \SpecialChar LaTeX
25769 -commands that are given in parentheses
25770 after the rules description above.
25771 To increase for example the often too small default of the bottom-rule
25773 \begin_inset space \thinspace{}
25776 % of the page, add this line to your document preamble:
25779 \begin_layout Standard
25786 bottomfraction}{0.5}
25789 \begin_layout Standard
25790 Sometimes you might need, under all circumstances, a float to be placed
25791 exactly at the position where it is inserted.
25792 For this case you can use the option
25795 \begin_inset space ~
25801 Use this option very rarely and only if the document is almost ready to
25802 be printed, because the float is then no longer able to
25803 \begin_inset Quotes eld
25807 \begin_inset Quotes erd
25810 when you change your document and this will often destroy the page layout.
25813 \begin_layout Standard
25814 There are no placement options for text wrap floats, because they are always
25815 surrounded by the text of a certain paragraph.
25816 \begin_inset VSpace bigskip
25822 \begin_layout Standard
25823 Sometimes you have the problem that a float is placed at the top of a page
25824 while its corresponding section starts at the middle of the page, so that
25825 the reader could think the float is part of the previous section.
25826 To avoid this the \SpecialChar LaTeX
25834 It suppresses a given float placement for the page where it is inserted
25835 and can therefore be used to avoid floats being set before a section starts.
25836 To get this, add these commands to your document preamble:
25839 \begin_layout Standard
25849 \begin_inset Newline newline
25863 \begin_layout Standard
25864 You can define the same for all section headings, like chapters and subsections.
25865 This definition is not recommended to be used for small text parts like
25866 subsubsections because \SpecialChar LaTeX
25867 may then have problems finding a suitable placement.
25870 \begin_layout Standard
25871 \begin_inset VSpace bigskip
25874 In some cases it is required to have all figures/tables at the end of the
25876 For this purpose the \SpecialChar LaTeX
25882 \begin_inset Index idx
25885 \begin_layout Plain Layout
25887 -packages ! endfloat
25893 It puts all figure and table floats at the end of the document into their
25895 At the original float position a text hint like
25896 \begin_inset Quotes eld
25902 \begin_inset space ~
25908 \begin_inset Quotes erd
25912 The endfloat-package is loaded in the preamble with the line
25915 \begin_layout Standard
25920 usepackage[options]{endfloat}
25923 \begin_layout Standard
25924 There are various package options to format the created figure/table sections.
25925 For more information we refer you to the
25930 \begin_inset CommandInset citation
25937 \begin_inset Newline newline
25941 \begin_inset Note Greyedout
25944 \begin_layout Plain Layout
25949 doesn't provide an automatic translation for the text hint, you have to
25950 do this manually, see section
25951 \begin_inset space ~
25955 \begin_inset CommandInset citation
25967 \begin_inset Newline newline
25971 \begin_inset Note Greyedout
25974 \begin_layout Plain Layout
25979 There is currently a bug in
25983 when the caption contains a German
25984 \begin_inset Quotes eld
25988 \begin_inset Quotes erd
25992 Use in this case the command
25993 \begin_inset Quotes eld
26003 \begin_inset Quotes erd
26006 in \SpecialChar TeX
26008 \begin_inset Quotes eld
26012 \begin_inset Quotes erd
26023 \begin_layout Standard
26024 \begin_inset VSpace bigskip
26027 For more details about float placements, have a look at \SpecialChar LaTeX
26029 \begin_inset CommandInset citation
26031 key "latexcompanion,latexguide,latexbook"
26038 \begin_layout Section
26040 \begin_inset CommandInset label
26042 name "sec:Rotated-Floats"
26047 \begin_inset Index idx
26050 \begin_layout Plain Layout
26059 \begin_layout Standard
26060 Especially for wide tables you might have floats rotated.
26061 To rotate a whole float including the caption, right-click on the float-box
26065 \begin_inset space ~
26073 \begin_layout Standard
26074 Rotated floats are always placed on a page of their own (or column of their
26075 own; in case you have a multi-column document).
26076 You can let them span several columns using the float settings option
26079 \begin_inset space ~
26085 Floats are rotated so that you can read them from the outside margin.
26086 To force a certain rotation direction for all pages, you can add either
26095 to the document class options.
26098 \begin_layout Standard
26099 Referencing rotated floats is the same as for normal floats, the caption
26100 format is also the same: Table
26101 \begin_inset space ~
26105 \begin_inset CommandInset ref
26107 reference "tab:Rotated-table"
26111 is an example of a rotated table float.
26114 \begin_layout Standard
26115 \begin_inset Note Greyedout
26118 \begin_layout Plain Layout
26123 Not all DVI-viewers are able to display rotated floats.
26131 \begin_layout Standard
26132 \begin_inset Float table
26137 \begin_layout Plain Layout
26138 \begin_inset Caption Standard
26140 \begin_layout Plain Layout
26141 \begin_inset CommandInset label
26143 name "tab:Rotated-table"
26155 \begin_layout Plain Layout
26157 \begin_inset Tabular
26158 <lyxtabular version="3" rows="1" columns="5">
26159 <features tabularvalignment="middle">
26160 <column alignment="center" valignment="top">
26161 <column alignment="center" valignment="top">
26162 <column alignment="center" valignment="top">
26163 <column alignment="center" valignment="top">
26164 <column alignment="center" valignment="top">
26166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26169 \begin_layout Plain Layout
26175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26178 \begin_layout Plain Layout
26184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26187 \begin_layout Plain Layout
26193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26196 \begin_layout Plain Layout
26202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26205 \begin_layout Plain Layout
26224 \begin_layout Section
26226 \begin_inset Index idx
26229 \begin_layout Plain Layout
26238 \begin_layout Standard
26239 Subfloats are for example used when a figure consists of several images.
26240 They are created by inserting a float into an existing float.
26241 The placement of the subfloats can be controlled in the same way as for
26242 paragraphs as shown in table
26243 \begin_inset space ~
26247 \begin_inset CommandInset ref
26249 reference "tab:Two-subtables-side"
26254 \begin_inset CommandInset ref
26256 reference "tab:Two-subtables-upon"
26263 \begin_layout Standard
26264 Referencing subfloats works as for normal floats: Table
26265 \begin_inset space ~
26269 \begin_inset CommandInset ref
26271 reference "tab:This-is-subtable-a"
26276 \begin_inset CommandInset ref
26278 reference "tab:This-is-subtable-b"
26282 are subtables of table
26283 \begin_inset space ~
26287 \begin_inset CommandInset ref
26289 reference "tab:Two-subtables-side"
26296 \begin_layout Standard
26297 \begin_inset Float table
26302 \begin_layout Plain Layout
26303 \begin_inset Caption Standard
26305 \begin_layout Plain Layout
26306 \begin_inset CommandInset label
26308 name "tab:Two-subtables-side"
26312 Two subtables placed side by side.
26320 \begin_layout Plain Layout
26322 \begin_inset space \hfill{}
26326 \begin_inset Float table
26331 \begin_layout Plain Layout
26332 \begin_inset Caption Standard
26334 \begin_layout Plain Layout
26335 \begin_inset CommandInset label
26337 name "tab:This-is-subtable-a"
26341 This is subtable a.
26349 \begin_layout Plain Layout
26351 \begin_inset Tabular
26352 <lyxtabular version="3" rows="1" columns="5">
26353 <features tabularvalignment="middle">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26357 <column alignment="center" valignment="top">
26358 <column alignment="center" valignment="top">
26360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26363 \begin_layout Plain Layout
26369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26372 \begin_layout Plain Layout
26378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26381 \begin_layout Plain Layout
26387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26390 \begin_layout Plain Layout
26396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26399 \begin_layout Plain Layout
26416 \begin_inset space \hfill{}
26420 \begin_inset Float table
26425 \begin_layout Plain Layout
26426 \begin_inset Caption Standard
26428 \begin_layout Plain Layout
26429 \begin_inset CommandInset label
26431 name "tab:This-is-subtable-b"
26435 This is subtable b.
26443 \begin_layout Plain Layout
26445 \begin_inset Tabular
26446 <lyxtabular version="3" rows="1" columns="5">
26447 <features tabularvalignment="middle">
26448 <column alignment="center" valignment="top">
26449 <column alignment="center" valignment="top">
26450 <column alignment="center" valignment="top">
26451 <column alignment="center" valignment="top">
26452 <column alignment="center" valignment="top">
26454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26457 \begin_layout Plain Layout
26463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26466 \begin_layout Plain Layout
26472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26475 \begin_layout Plain Layout
26481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26484 \begin_layout Plain Layout
26490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26493 \begin_layout Plain Layout
26510 \begin_inset space \hfill{}
26521 \begin_layout Standard
26522 \begin_inset Float table
26527 \begin_layout Plain Layout
26528 \begin_inset Caption Standard
26530 \begin_layout Plain Layout
26531 \begin_inset CommandInset label
26533 name "tab:Two-subtables-upon"
26537 Two subtables placed one above the other.
26538 (a) table with 4 cells, (b) table with 5 cells.
26546 \begin_layout Plain Layout
26548 \begin_inset Float table
26553 \begin_layout Plain Layout
26554 \begin_inset Caption Standard
26556 \begin_layout Plain Layout
26565 \begin_layout Plain Layout
26567 \begin_inset Tabular
26568 <lyxtabular version="3" rows="1" columns="4">
26569 <features tabularvalignment="middle">
26570 <column alignment="center" valignment="top">
26571 <column alignment="center" valignment="top">
26572 <column alignment="center" valignment="top">
26573 <column alignment="center" valignment="top">
26575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26578 \begin_layout Plain Layout
26584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26587 \begin_layout Plain Layout
26593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26596 \begin_layout Plain Layout
26602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26605 \begin_layout Plain Layout
26624 \begin_layout Plain Layout
26626 \begin_inset Float table
26631 \begin_layout Plain Layout
26632 \begin_inset Caption Standard
26634 \begin_layout Plain Layout
26643 \begin_layout Plain Layout
26645 \begin_inset Tabular
26646 <lyxtabular version="3" rows="1" columns="5">
26647 <features tabularvalignment="middle">
26648 <column alignment="center" valignment="top">
26649 <column alignment="center" valignment="top">
26650 <column alignment="center" valignment="top">
26651 <column alignment="center" valignment="top">
26652 <column alignment="center" valignment="top">
26654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26657 \begin_layout Plain Layout
26663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26666 \begin_layout Plain Layout
26672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26675 \begin_layout Plain Layout
26681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26684 \begin_layout Plain Layout
26690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26693 \begin_layout Plain Layout
26717 \begin_layout Section
26718 Floats Side by Side
26719 \begin_inset Index idx
26722 \begin_layout Plain Layout
26723 Floats ! Side by side
26731 \begin_layout Standard
26732 To place floats side by side, as in Figures
26733 \begin_inset space ~
26737 \begin_inset CommandInset ref
26739 reference "fig:Float-left"
26744 \begin_inset CommandInset ref
26746 reference "fig:Float-right"
26755 In it two minipage boxes are inserted.
26759 \begin_layout Plain Layout
26760 Minipages are explained in section
26761 \begin_inset space ~
26765 \begin_inset CommandInset ref
26767 reference "sec:Minipages"
26776 The width is set to 45
26777 \begin_inset space \thinspace{}
26781 \begin_inset space \thinspace{}
26784 column% and the box alignment to
26789 The minipage boxes contain the image and the caption in the same way as
26790 they are in a float.
26791 The only difference is that the image unit
26794 \begin_inset space ~
26798 \begin_inset space ~
26803 is now calculated according to the width of the minipage boxes.
26806 \begin_layout Standard
26807 \begin_inset Float figure
26812 \begin_layout Plain Layout
26813 \begin_inset Box Frameless
26823 height_special "totalheight"
26828 backgroundcolor "none"
26831 \begin_layout Plain Layout
26833 \begin_inset Graphics
26834 filename clipart/mobius.eps
26837 scaleBeforeRotation
26844 \begin_layout Plain Layout
26845 \begin_inset Caption Standard
26847 \begin_layout Plain Layout
26848 \begin_inset CommandInset label
26850 name "fig:Float-left"
26854 Float on the left side.
26865 \begin_inset space \hfill{}
26869 \begin_inset Box Frameless
26879 height_special "totalheight"
26884 backgroundcolor "none"
26887 \begin_layout Plain Layout
26889 \begin_inset Graphics
26890 filename clipart/platypus.eps
26893 scaleBeforeRotation
26900 \begin_layout Plain Layout
26901 \begin_inset Caption Standard
26903 \begin_layout Plain Layout
26904 \begin_inset CommandInset label
26906 name "fig:Float-right"
26910 Float on the right side.
26928 \begin_layout Standard
26929 An alternative and simpler solution is to use the module
26931 Variable-width Minipages
26934 \begin_inset space \thinspace{}
26938 \begin_inset CommandInset ref
26940 reference "sec:Minipages"
26945 Variable-width minipages adapt automatically to the width of the figures
26947 They do not require an explicit width to be given, and they improve the
26948 horizontal alignment of the figures.
26949 The LyX example file
26951 varwidth-floats-side-by-side
26953 gives examples of how to do this.
26956 \begin_layout Section
26958 \begin_inset Index idx
26961 \begin_layout Plain Layout
26962 Caption ! Formatting
26968 \begin_inset Index idx
26971 \begin_layout Plain Layout
26972 Floats ! Caption Formatting
26978 \begin_inset CommandInset label
26980 name "sec:Caption-Formatting"
26987 \begin_layout Standard
26992 environment is the default paragraph environment for
26997 On the \SpecialChar LyX
26998 screen captions appear as a label, e.
26999 \begin_inset space \thinspace{}
27003 \begin_inset space \space{}
27007 \begin_inset Quotes eld
27015 \begin_inset Quotes erd
27018 followed by the caption text.
27020 \begin_inset Quotes eld
27024 \begin_inset Quotes erd
27027 is the actual reference number.
27028 By default the label and the number are in the same font as the caption
27029 text and a colon follows the number to divide the label from the text.
27030 This caption format is suitable for many but not all documents.
27034 \begin_layout Standard
27035 To change the default caption format, load the \SpecialChar LaTeX
27041 \begin_inset Index idx
27044 \begin_layout Plain Layout
27046 -packages ! caption
27051 in the document preamble with this line:
27054 \begin_layout Standard
27059 usepackage[format definition]{caption}
27062 \begin_layout Standard
27063 To have for example the label and the number in sans-serif, bold font and
27064 the table captions always above the table as in this document, use the
27068 \begin_layout Standard
27073 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27076 \begin_layout Standard
27077 You can also define different caption formats for the different float types.
27078 In this case load the
27082 package without format specific options and define the different formats
27083 with the help of the command
27086 \begin_layout Standard
27091 captionsetup[float type]{format definition}
27094 \begin_layout Standard
27095 in the document preamble.
27096 For example the caption formats of Figure
27097 \begin_inset space ~
27101 \begin_inset CommandInset ref
27103 reference "fig:This-is-an-fig"
27108 \begin_inset space ~
27112 \begin_inset CommandInset ref
27114 reference "tab:This-is-an-tab"
27118 can be created using these commands in the document preamble:
27121 \begin_layout Standard
27126 usepackage[tableposition=top]{caption}
27129 \begin_inset Newline newline
27136 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27137 \begin_inset Newline newline
27141 \begin_inset Phantom HPhantom
27144 \begin_layout Plain Layout
27149 captionsetup[figure]{
27155 \begin_inset Newline newline
27160 captionsetup[table]{labelfont={bf,sf}}
27163 \begin_layout Standard
27164 \begin_inset Note Greyedout
27167 \begin_layout Plain Layout
27176 has no effect when a
27181 \begin_inset Index idx
27184 \begin_layout Plain Layout
27186 -packages ! KOMA-Script
27191 document class is used.
27192 In this case the document class option
27194 captions=tableheading
27204 \begin_layout Standard
27205 For more information about the package
27209 we refer to its documentation
27210 \begin_inset CommandInset citation
27219 \begin_layout Standard
27220 To change the label name from e.
27221 \begin_inset space \thinspace{}
27225 \begin_inset space \space{}
27229 \begin_inset Quotes eld
27233 \begin_inset Quotes erd
27237 \begin_inset Quotes eld
27241 \begin_inset Quotes erd
27244 use this preamble command:
27247 \begin_layout Standard
27254 fnum@figure}{Image~
27259 \begin_layout Standard
27266 inserts the figure number and
27269 \begin_inset Quotes eld
27275 \begin_inset Quotes erd
27278 creates a protected space.
27281 \begin_layout Standard
27282 \begin_inset VSpace bigskip
27290 \begin_inset Index idx
27293 \begin_layout Plain Layout
27295 -packages ! KOMA-Script
27302 article (KOMA-Script)
27310 letter (KOMA-Script)
27314 report (KOMA-Script)
27317 \begin_inset space \thinspace{}
27320 ), you can alternatively to the
27328 's built-in command
27335 For example, to have the caption label in bold, add this command to your
27339 \begin_layout Standard
27344 setkomafont{captionlabel}{
27349 \begin_layout Standard
27350 For more information about
27361 \begin_inset CommandInset citation
27370 \begin_layout Standard
27374 \begin_layout Plain Layout
27378 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27385 \begin_inset Note Note
27388 \begin_layout Plain Layout
27389 The caption format is changed only for this example.
27397 \begin_layout Standard
27398 \begin_inset Float figure
27404 \begin_layout Plain Layout
27406 \begin_inset Graphics
27407 filename clipart/mobius.eps
27410 scaleBeforeRotation
27417 \begin_layout Plain Layout
27418 \begin_inset Caption Standard
27420 \begin_layout Plain Layout
27421 \begin_inset CommandInset label
27423 name "fig:This-is-an-fig"
27427 This is an example figure caption that is longer than one line to show the
27428 different caption format.
27429 Here a self-defined caption format is used.
27442 \begin_layout Standard
27446 \begin_layout Plain Layout
27450 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27459 \begin_layout Standard
27460 \begin_inset Float table
27466 \begin_layout Plain Layout
27467 \begin_inset Caption Standard
27469 \begin_layout Plain Layout
27470 \begin_inset CommandInset label
27472 name "tab:This-is-an-tab"
27476 This is an example table caption that is longer than one line to show the
27477 different caption format.
27478 Here the standard caption format for tables in this document is used.
27486 \begin_layout Plain Layout
27488 \begin_inset Tabular
27489 <lyxtabular version="3" rows="1" columns="5">
27490 <features tabularvalignment="middle">
27491 <column alignment="center" valignment="top">
27492 <column alignment="center" valignment="top">
27493 <column alignment="center" valignment="top">
27494 <column alignment="center" valignment="top">
27495 <column alignment="center" valignment="top">
27497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27500 \begin_layout Plain Layout
27506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27509 \begin_layout Plain Layout
27515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27518 \begin_layout Plain Layout
27524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27527 \begin_layout Plain Layout
27533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27536 \begin_layout Plain Layout
27555 \begin_layout Section
27557 \begin_inset Index idx
27560 \begin_layout Plain Layout
27561 Caption ! Placement
27567 \begin_inset Index idx
27570 \begin_layout Plain Layout
27571 Floats ! Caption Placement
27577 \begin_inset CommandInset label
27579 name "sec:Caption-Placement"
27586 \begin_layout Standard
27587 The common caption placement rule is:
27590 \begin_layout Description
27591 Figure: Caption is set below the figure
27594 \begin_layout Description
27595 Table: Caption is set above the table
27598 \begin_layout Standard
27599 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27602 That means if you are using the document classes
27618 there will be no space between the caption and the table.
27619 To insert the necessary space, load the \SpecialChar LaTeX
27625 \begin_inset Index idx
27628 \begin_layout Plain Layout
27630 -packages ! caption
27635 in your document preamble with the option
27639 \begin_layout Plain Layout
27641 \begin_inset space ~
27645 \begin_inset CommandInset ref
27647 reference "sec:Caption-Formatting"
27651 for more information of the package
27663 \begin_layout Standard
27669 \begin_layout Standard
27675 \begin_inset Index idx
27678 \begin_layout Plain Layout
27680 -packages ! KOMA-Script
27687 article (KOMA-Script)
27695 letter (KOMA-Script)
27699 report (KOMA-Script)
27702 \begin_inset space \thinspace{}
27705 ), you can alternatively to the
27709 package set the document class option
27713 \begin_layout Plain Layout
27714 That option is used in this document.
27722 \begin_layout Standard
27725 captions=tableheading
27728 \begin_layout Standard
27729 In documents with a KOMA-Script document class you can also right-click
27730 on a caption and mark in the context menu if this should be a caption above
27731 or below the table/figure.
27732 This way you can override the document-wide caption placement for certain
27735 \begin_inset space ~
27739 \begin_inset CommandInset ref
27741 reference "tab:A-caption-marked"
27745 is an example where the caption is marked a being below the table while
27747 For comparison the caption in Table
27748 \begin_inset space ~
27752 \begin_inset CommandInset ref
27754 reference "tab:A-standard-table"
27761 \begin_layout Standard
27762 \begin_inset Float table
27767 \begin_layout Plain Layout
27768 \begin_inset Caption Below
27770 \begin_layout Plain Layout
27771 \begin_inset CommandInset label
27773 name "tab:A-caption-marked"
27777 A caption marked as being below the table.
27785 \begin_layout Plain Layout
27787 \begin_inset Tabular
27788 <lyxtabular version="3" rows="3" columns="3">
27789 <features tabularvalignment="middle">
27790 <column alignment="center" valignment="top" width="0pt">
27791 <column alignment="center" valignment="top" width="0pt">
27792 <column alignment="center" valignment="top" width="0pt">
27794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27797 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27815 \begin_layout Plain Layout
27823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27826 \begin_layout Plain Layout
27832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27844 \begin_layout Plain Layout
27852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27855 \begin_layout Plain Layout
27856 \begin_inset Formula $\int x^{2}dx$
27864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27867 \begin_layout Plain Layout
27868 \begin_inset Formula $\left[\begin{array}{cc}
27871 \end{array}\right]$
27879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27882 \begin_layout Plain Layout
27883 \begin_inset Formula $1+1=2$
27904 \begin_layout Standard
27905 \begin_inset Float table
27910 \begin_layout Plain Layout
27911 \begin_inset Caption Standard
27913 \begin_layout Plain Layout
27914 \begin_inset CommandInset label
27916 name "tab:A-standard-table"
27920 A standard table caption.
27928 \begin_layout Plain Layout
27930 \begin_inset Tabular
27931 <lyxtabular version="3" rows="3" columns="3">
27932 <features tabularvalignment="middle">
27933 <column alignment="center" valignment="top" width="0pt">
27934 <column alignment="center" valignment="top" width="0pt">
27935 <column alignment="center" valignment="top" width="0pt">
27937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27940 \begin_layout Plain Layout
27946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27949 \begin_layout Plain Layout
27955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27958 \begin_layout Plain Layout
27966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27969 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27987 \begin_layout Plain Layout
27995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27998 \begin_layout Plain Layout
27999 \begin_inset Formula $\int x^{2}dx$
28007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28010 \begin_layout Plain Layout
28011 \begin_inset Formula $\left[\begin{array}{cc}
28014 \end{array}\right]$
28022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28025 \begin_layout Plain Layout
28026 \begin_inset Formula $1+1=2$
28047 \begin_layout Standard
28048 \begin_inset VSpace bigskip
28051 It is also possible to set the caption beside a figure or table.
28052 To get this the \SpecialChar LaTeX
28058 \begin_inset Index idx
28061 \begin_layout Plain Layout
28063 -packages ! sidecap
28068 has to be loaded in the document preamble with the line
28071 \begin_layout Standard
28076 usepackage[option]{sidecap}
28079 \begin_layout Standard
28080 If you set no option, the caption is placed on the side of the outer page
28081 margin – to the right on odd pages, to the left on even pages.
28082 You can change the placement to inner margin with the option
28087 To force the placement always to the right or left, use the option
28098 \begin_layout Standard
28102 \begin_layout Plain Layout
28112 \begin_inset Note Note
28115 \begin_layout Plain Layout
28116 The following section will only be displayed when the \SpecialChar LaTeX
28129 \begin_layout Standard
28130 To place in \SpecialChar LyX
28131 the caption of a float on the side, it is necessary to add
28132 these commands to the document preamble:
28135 \begin_layout Standard
28137 \begin_inset CommandInset line
28148 \begin_layout Standard
28155 TabBesBeg}[1][1.0]{%
28156 \begin_inset Newline newline
28160 \begin_inset Phantom HPhantom
28163 \begin_layout Plain Layout
28164 \begin_inset space ~
28179 \begin_inset Newline newline
28183 \begin_inset Phantom HPhantom
28186 \begin_layout Plain Layout
28189 \begin_inset space ~
28204 \begin_inset Newline newline
28208 \begin_inset Phantom HPhantom
28211 \begin_layout Plain Layout
28214 \begin_inset space ~
28224 renewenvironment{table}[1]{
28226 begin{SCtable}[#1]##1}{
28231 \begin_layout Standard
28239 \begin_inset Newline newline
28243 \begin_inset Phantom HPhantom
28246 \begin_layout Plain Layout
28247 \begin_inset space ~
28262 \begin_inset Newline newline
28266 \begin_inset Phantom HPhantom
28269 \begin_layout Plain Layout
28270 \begin_inset space ~
28287 \begin_layout Standard
28294 FigBesBeg}[1][1.0]{%
28295 \begin_inset Newline newline
28299 \begin_inset Phantom HPhantom
28302 \begin_layout Plain Layout
28303 \begin_inset space ~
28318 \begin_inset Newline newline
28322 \begin_inset Phantom HPhantom
28325 \begin_layout Plain Layout
28326 \begin_inset space ~
28341 \begin_inset Newline newline
28345 \begin_inset Phantom HPhantom
28348 \begin_layout Plain Layout
28349 \begin_inset space ~
28359 renewenvironment{figure}[1]{
28361 begin{SCfigure}[#1]##1}{
28366 \begin_layout Standard
28374 \begin_inset Newline newline
28378 \begin_inset Phantom HPhantom
28381 \begin_layout Plain Layout
28382 \begin_inset space ~
28397 \begin_inset Newline newline
28401 \begin_inset Phantom HPhantom
28404 \begin_layout Plain Layout
28405 \begin_inset space ~
28422 \begin_layout Standard
28424 \begin_inset CommandInset line
28435 \begin_layout Standard
28436 The commands allow you to redefine the floats so that the caption is set
28438 For figure floats use the command
28441 \begin_layout Standard
28449 \begin_layout Standard
28450 in \SpecialChar TeX
28451 Code before the float.
28452 And insert the command
28455 \begin_layout Standard
28463 \begin_layout Standard
28464 in \SpecialChar TeX
28465 Code at the point where you want to get back to the original float definitio
28469 \begin_layout Standard
28470 For table floats use the corresponding commands
28473 \begin_layout Standard
28487 \begin_layout Standard
28489 \begin_inset space ~
28493 \begin_inset CommandInset ref
28495 reference "fig:cap-beside-fig"
28500 \begin_inset space ~
28504 \begin_inset CommandInset ref
28506 reference "tab:cap-beside-tab"
28510 are examples where the caption is set beside.
28513 \begin_layout Standard
28514 You can see in the examples that the caption text appears at the top of
28515 the floats for table floats and at the bottom for figure floats.
28516 To change this, you can use the command
28519 \begin_layout Standard
28524 sidecaptionvpos{float type}{placement}
28527 \begin_layout Standard
28528 in the document preamble or in \SpecialChar TeX
28529 Code before the float.
28530 The float type is either
28538 , the placement can be
28539 \begin_inset Quotes eld
28547 \begin_inset Quotes erd
28551 \begin_inset Quotes eld
28559 \begin_inset Quotes erd
28563 \begin_inset Quotes eld
28571 \begin_inset Quotes erd
28575 To have for example the caption of figure floats vertically centered, use
28579 \begin_layout Standard
28584 sidecaptionvpos{figure}{c}
28587 \begin_layout Standard
28588 This was used for Figure
28589 \begin_inset space ~
28593 \begin_inset CommandInset ref
28595 reference "fig:cap-beside-fig-2"
28602 \begin_layout Standard
28603 \begin_inset VSpace medskip
28609 \begin_layout Standard
28610 The default caption width is the width of the image/table.
28611 For thin image/tables, like in Table
28612 \begin_inset space ~
28616 \begin_inset CommandInset ref
28618 reference "tab:cap-beside-tab"
28622 , this leads to captions that are too thin.
28623 You can increase the width by specifying a factor that will be multiplied
28624 with the image/table width to get the caption width.
28625 The caption width will automatically be recalculated in case it would protrude
28626 over the page or column margin due to the specified width.
28631 can either be given as optional argument for
28640 \begin_layout Standard
28648 \begin_layout Standard
28649 or in the definition of
28659 with another value.
28660 If you do the latter, your factor will be the default if
28666 is used without an argument.
28668 \begin_inset space ~
28672 \begin_inset CommandInset ref
28674 reference "tab:cap-beside-tab-wider"
28678 the factor 5 was used.
28681 \begin_layout Standard
28682 \begin_inset Note Greyedout
28685 \begin_layout Plain Layout
28690 For floats with captions set beside, you cannot use the float placement
28694 \begin_inset space ~
28699 because it is not supported by
28711 \begin_layout Standard
28712 \begin_inset VSpace medskip
28715 For more information about the package
28719 we refer to its documentation
28720 \begin_inset CommandInset citation
28729 \begin_layout Standard
28730 \begin_inset Note Greyedout
28733 \begin_layout Plain Layout
28738 The \SpecialChar LaTeX
28744 \begin_inset Index idx
28747 \begin_layout Plain Layout
28754 , described in section
28755 \begin_inset space ~
28759 \begin_inset CommandInset ref
28761 reference "subsec:Reference-Position"
28765 , has no effect on floats with the caption set beside.
28773 \begin_layout Standard
28777 \begin_layout Plain Layout
28789 \begin_layout Standard
28790 \begin_inset Float figure
28795 \begin_layout Plain Layout
28796 \begin_inset Graphics
28797 filename clipart/escher-lsd.eps
28799 scaleBeforeRotation
28806 \begin_layout Plain Layout
28807 \begin_inset Caption Standard
28809 \begin_layout Plain Layout
28810 \begin_inset CommandInset label
28812 name "fig:cap-beside-fig"
28816 This is a caption beside a figure.
28829 \begin_layout Standard
28833 \begin_layout Plain Layout
28845 \begin_layout Standard
28849 \begin_layout Plain Layout
28861 \begin_layout Standard
28862 \begin_inset Float table
28867 \begin_layout Plain Layout
28868 \begin_inset Caption Standard
28870 \begin_layout Plain Layout
28871 \begin_inset CommandInset label
28873 name "tab:cap-beside-tab"
28877 This is a caption beside a table.
28885 \begin_layout Plain Layout
28886 \begin_inset Tabular
28887 <lyxtabular version="3" rows="4" columns="5">
28888 <features tabularvalignment="middle">
28889 <column alignment="center" valignment="top">
28890 <column alignment="center" valignment="top">
28891 <column alignment="center" valignment="top">
28892 <column alignment="center" valignment="top">
28893 <column alignment="center" valignment="top">
28895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28898 \begin_layout Plain Layout
28904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28907 \begin_layout Plain Layout
28913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28916 \begin_layout Plain Layout
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Plain Layout
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28934 \begin_layout Plain Layout
28942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28945 \begin_layout Plain Layout
28951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28954 \begin_layout Plain Layout
28960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28963 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28981 \begin_layout Plain Layout
28989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28992 \begin_layout Plain Layout
28998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29001 \begin_layout Plain Layout
29007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29010 \begin_layout Plain Layout
29016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29019 \begin_layout Plain Layout
29025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29028 \begin_layout Plain Layout
29036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29039 \begin_layout Plain Layout
29045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29048 \begin_layout Plain Layout
29054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29057 \begin_layout Plain Layout
29063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29066 \begin_layout Plain Layout
29072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29075 \begin_layout Plain Layout
29094 \begin_layout Standard
29098 \begin_layout Plain Layout
29110 \begin_layout Standard
29114 \begin_layout Plain Layout
29127 \begin_layout Plain Layout
29131 sidecaptionvpos{figure}{c}
29137 \begin_inset Float figure
29142 \begin_layout Plain Layout
29143 \begin_inset Graphics
29144 filename clipart/escher-lsd.eps
29146 scaleBeforeRotation
29153 \begin_layout Plain Layout
29154 \begin_inset Caption Standard
29156 \begin_layout Plain Layout
29157 \begin_inset CommandInset label
29159 name "fig:cap-beside-fig-2"
29163 This is a vertically centered caption beside a figure.
29176 \begin_layout Standard
29180 \begin_layout Plain Layout
29192 \begin_layout Standard
29196 \begin_layout Plain Layout
29208 \begin_layout Standard
29209 \begin_inset Float table
29214 \begin_layout Plain Layout
29215 \begin_inset Caption Standard
29217 \begin_layout Plain Layout
29218 \begin_inset CommandInset label
29220 name "tab:cap-beside-tab-wider"
29224 This caption is wider than the one in Table
29225 \begin_inset space ~
29229 \begin_inset CommandInset ref
29231 reference "tab:cap-beside-tab"
29243 \begin_layout Plain Layout
29244 \begin_inset Tabular
29245 <lyxtabular version="3" rows="4" columns="5">
29246 <features tabularvalignment="middle">
29247 <column alignment="center" valignment="top">
29248 <column alignment="center" valignment="top">
29249 <column alignment="center" valignment="top">
29250 <column alignment="center" valignment="top">
29251 <column alignment="center" valignment="top">
29253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29256 \begin_layout Plain Layout
29262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29265 \begin_layout Plain Layout
29271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29274 \begin_layout Plain Layout
29280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29283 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29292 \begin_layout Plain Layout
29300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29303 \begin_layout Plain Layout
29309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29312 \begin_layout Plain Layout
29318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29321 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29339 \begin_layout Plain Layout
29347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29350 \begin_layout Plain Layout
29356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29359 \begin_layout Plain Layout
29365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29368 \begin_layout Plain Layout
29374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29377 \begin_layout Plain Layout
29383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29386 \begin_layout Plain Layout
29394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29397 \begin_layout Plain Layout
29403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29406 \begin_layout Plain Layout
29412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29415 \begin_layout Plain Layout
29421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29424 \begin_layout Plain Layout
29430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29433 \begin_layout Plain Layout
29452 \begin_layout Standard
29456 \begin_layout Plain Layout
29468 \begin_layout Standard
29472 \begin_layout Plain Layout
29482 \begin_inset Note Note
29485 \begin_layout Plain Layout
29486 The following will be displayed when the \SpecialChar LaTeX
29499 \begin_layout Standard
29500 You need to install the \SpecialChar LaTeX
29505 to see the following part of this section in the output.
29508 \begin_layout Standard
29512 \begin_layout Plain Layout
29524 \begin_layout Section
29526 \begin_inset Index idx
29529 \begin_layout Plain Layout
29530 Floats ! Float Lists
29538 \begin_layout Standard
29539 Similar to the table of contents where the sections of the document are
29540 listed, there are listings for all float types, like the figures of the
29542 You can insert them via the
29544 Insert\SpecialChar menuseparator
29546 \begin_inset space ~
29550 \begin_inset space ~
29558 \begin_layout Standard
29559 The list entries are the float captions or its short title, the float number,
29560 and the page number where they appear in the document.
29563 \begin_layout Standard
29564 You can find the list of figures and tables at the end of this document.
29567 \begin_layout Chapter
29571 \begin_layout Section
29574 \begin_inset Index idx
29577 \begin_layout Plain Layout
29578 Notes ! \SpecialChar LyX
29587 \begin_layout Standard
29588 Notes are inserted with the toolbar button
29596 Insert\SpecialChar menuseparator
29600 There are three types of notes:
29603 \begin_layout Description
29606 \begin_inset space ~
29609 Note This note type is for internal notes that won't appear in the output.
29610 Its note-box looks like this:
29611 \begin_inset Newline newline
29615 \begin_inset Newline newline
29619 \begin_inset Graphics
29620 filename clipart/LyXNoteImage.png
29622 scaleBeforeRotation
29627 \begin_inset Note Note
29630 \begin_layout Plain Layout
29631 This is text in a note box that doesn't appear in the output.
29639 \begin_layout Description
29640 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29642 when you export the document to \SpecialChar LaTeX
29645 File\SpecialChar menuseparator
29646 Export\SpecialChar menuseparator
29648 \begin_inset space ~
29651 (pdflatex) / (plain)
29654 Its note-box looks like this:
29655 \begin_inset Newline newline
29659 \begin_inset Newline newline
29663 \begin_inset Graphics
29664 filename clipart/CommentNoteImage.png
29666 scaleBeforeRotation
29671 \begin_inset Note Comment
29674 \begin_layout Plain Layout
29675 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29684 \begin_layout Description
29686 \begin_inset space ~
29689 Out This note will appear in the output as grey text.
29690 Its note-box looks like this:
29691 \begin_inset Newline newline
29695 \begin_inset Newline newline
29699 \begin_inset Graphics
29700 filename clipart/GreyedOutNoteImage.png
29702 scaleBeforeRotation
29707 \begin_inset Newline newline
29714 \begin_layout Plain Layout
29718 renewenvironment{lyxgreyedout}
29721 \begin_layout Plain Layout
29725 textcolor[gray]{0.8}
29735 \begin_inset Note Greyedout
29738 \begin_layout Plain Layout
29739 This is text of a comment that appears grey in the output.
29748 \begin_layout Plain Layout
29752 renewenvironment{lyxgreyedout}
29755 \begin_layout Plain Layout
29769 \begin_inset Note Note
29772 \begin_layout Plain Layout
29773 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29775 because greyed out notes are redefined in the preamble of this document,
29776 as described below, to have blue text.
29782 \begin_inset Newline newline
29786 \begin_inset Newline newline
29789 As you can see in the example, the first line of greyed out notes is a bit
29790 indented and greyed out notes can have footnotes.
29793 \begin_layout Standard
29794 \begin_inset VSpace bigskip
29797 When you use the toolbar button
29807 \begin_inset space ~
29813 You can switch between the three note types by right-clicking on the note-box.
29818 If you want to turn existing text into a note, mark it and click on the
29832 To change a note to text, press the backspace key when the cursor is in
29833 the first position of a note, or press the delete key when the cursor is
29834 in the very last position of the note, respectively.
29837 \begin_layout Standard
29838 \begin_inset VSpace bigskip
29841 You can change the text color of the greyed out notes in the menu
29843 Document\SpecialChar menuseparator
29844 Settings\SpecialChar menuseparator
29850 \begin_layout Section
29852 \begin_inset CommandInset label
29854 name "sec:Footnotes"
29859 \begin_inset Index idx
29862 \begin_layout Plain Layout
29869 \begin_inset Index idx
29872 \begin_layout Plain Layout
29881 \begin_layout Standard
29882 Footnotes can be inserted using the toolbar button
29885 arg "footnote-insert"
29890 Insert\SpecialChar menuseparator
29894 You will then see the following footnote-box:
29895 \begin_inset Graphics
29896 filename clipart/footnote.png
29898 scaleBeforeRotation
29906 where you can enter the footnote text.
29907 If you want to turn existing text into a footnote, mark it and click on
29933 key when the cursor is in the first position of a
29945 key when the cursor is in the very last position of the
29956 \begin_layout Standard
29957 Here is an example footnote:
29965 \begin_layout Plain Layout
29966 \begin_inset CommandInset label
29968 name "foot:This-is-an"
29972 This is an example footnote.
29985 \begin_layout Plain Layout
29989 newcounter{MyRepeatFoot}
29992 \begin_layout Plain Layout
29996 setcounter{MyRepeatFoot}{
30006 \begin_layout Standard
30007 The footnote will appear in the output as a superscript number at the text
30008 position where the footnote box is placed.
30009 The footnote text is placed at the bottom of the current page.
30010 The footnote number is calculated by \SpecialChar LaTeX
30011 ; the numbers are consecutive.
30012 Whether the footnote number is reset for every chapter depends on your
30016 \begin_layout Standard
30017 Footnotes can be referenced like floats: Insert a label into the footnote
30018 and cross-reference this label in the text as described in section
30019 \begin_inset space ~
30023 \begin_inset CommandInset ref
30025 reference "sec:Referencing-Floats"
30030 \begin_inset Newline newline
30033 This is a cross-reference of Footnote
30034 \begin_inset space ~
30038 \begin_inset CommandInset ref
30040 reference "foot:This-is-an"
30047 \begin_layout Standard
30048 \begin_inset VSpace defskip
30051 Footnotes in title environments are usually not numbered with symbols and
30052 they cannot contain several paragraphs.
30053 See for example the footnote in the titling of this document.
30056 \begin_layout Standard
30057 \begin_inset VSpace defskip
30060 Footnotes in tables are not printed by \SpecialChar LaTeX
30061 due to technical reasons.
30062 However there exists another method to print them: Instead of the footnote
30069 is inserted as \SpecialChar TeX
30071 The text of the footnote is entered as an argument of the \SpecialChar TeX
30080 \begin_inset Newline newline
30083 This was done for the following table with the command
30086 \begin_layout Standard
30093 Printed table footnote.
30098 \begin_layout Standard
30099 \begin_inset Tabular
30100 <lyxtabular version="3" rows="2" columns="1">
30101 <features tabularvalignment="middle">
30102 <column alignment="center" valignment="top">
30104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30107 \begin_layout Plain Layout
30108 This an example text.
30112 \begin_layout Plain Layout
30113 This footnote will not be printed!
30125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30128 \begin_layout Plain Layout
30129 This an example text.
30133 \begin_layout Plain Layout
30156 \begin_layout Plain Layout
30165 Printed table footnote.
30169 \begin_layout Plain Layout
30179 \begin_layout Standard
30180 Footnotes in multi-page tables are described in section
30181 \begin_inset space ~
30185 \begin_inset CommandInset ref
30187 reference "subsec:Footnotes-in-Multi-page"
30194 \begin_layout Standard
30195 Footnotes in minipage boxes are printed, but inside the box and with a different
30196 numbering because a minipage box is like a page inside a page.
30197 (For more about minipages, see section
30198 \begin_inset space ~
30202 \begin_inset CommandInset ref
30204 reference "sec:Minipages"
30208 .) To get a footnote in the minipage that is output at the bottom of the
30209 page like normal footnotes, also use the method of
30224 \begin_layout Standard
30225 \begin_inset Box Frameless
30235 height_special "totalheight"
30240 backgroundcolor "none"
30243 \begin_layout Plain Layout
30244 This an example text in a minipage.
30248 \begin_layout Plain Layout
30249 Footnote in the minipage.
30257 \begin_layout Plain Layout
30258 This an example text in a minipage.
30262 \begin_layout Plain Layout
30279 \begin_layout Standard
30283 \begin_layout Plain Layout
30292 Footnote outside the minipage.
30296 \begin_layout Plain Layout
30306 \begin_layout Standard
30307 \begin_inset VSpace defskip
30313 \begin_layout Standard
30314 To refer to the same footnote several times without printing the footnote
30315 text every time, use the command
30319 footnotemark[number]
30321 in \SpecialChar TeX
30323 \begin_inset Newline newline
30326 As you do not know the number of the repeating footnote while you are writing
30327 the text, you have to store its number.
30328 For the following footnote mark example, these commands were inserted in
30330 code after Footnote
30331 \begin_inset space ~
30335 \begin_inset CommandInset ref
30337 reference "foot:This-is-an"
30341 to store the footnote number:
30344 \begin_layout Standard
30349 newcounter{MyRepeatFoot}
30350 \begin_inset Newline newline
30355 setcounter{MyRepeatFoot}{
30360 \begin_layout Standard
30361 The footnote mark was then created with this command:
30364 \begin_layout Standard
30374 \begin_layout Standard
30375 Here is a repeated footnote:
30383 \begin_layout Plain Layout
30397 \begin_layout Standard
30398 If you want to repeat the previous footnote, you can omit the storage of
30399 the footnote number and just use this command instead:
30402 \begin_layout Standard
30412 \begin_layout Standard
30413 Here is another repeated footnote:
30421 \begin_layout Plain Layout
30435 \begin_layout Subsection
30437 \begin_inset CommandInset label
30439 name "subsec:Footnote-Numbering"
30444 \begin_inset Index idx
30447 \begin_layout Plain Layout
30448 Footnotes ! Numbering
30456 \begin_layout Standard
30457 To reset the footnote number back to 1 after each section
30459 , add this command to your document preamble:
30462 \begin_layout Standard
30467 @addtoreset{footnote}{section}
30470 \begin_layout Standard
30471 \begin_inset VSpace bigskip
30474 The following preamble command changes the footnote numbering style to small
30478 \begin_layout Standard
30490 \begin_layout Standard
30494 \begin_layout Plain Layout
30507 This is a footnote with roman numbering:
30511 \begin_layout Plain Layout
30512 This is an example footnote with roman numbering.
30520 \begin_layout Standard
30521 To change the numbering style to capital roman numerals replace in the command
30536 \begin_inset Quotes eld
30540 \begin_inset Quotes erd
30543 footnotes with capital or small Latin letters use
30557 \begin_inset Quotes eld
30561 \begin_inset Quotes erd
30564 footnotes with symbols use
30573 \begin_layout Standard
30574 \begin_inset Note Greyedout
30577 \begin_layout Plain Layout
30582 You can only number 26 footnotes with Latin letters, because this numbering
30583 is limited to single letters.
30589 \begin_inset Newline newline
30593 \begin_inset Note Greyedout
30596 \begin_layout Plain Layout
30601 You can only number 9 footnotes with symbols.
30609 \begin_layout Standard
30610 To return to the default numbering style after you have changed to another
30623 in the command above.
30627 \begin_layout Plain Layout
30643 \begin_layout Standard
30644 \begin_inset VSpace bigskip
30650 \begin_layout Standard
30651 If you want to have footnotes numbered in the scheme
30652 \begin_inset Quotes eld
30656 \begin_inset Quotes erd
30659 , add the following command to your document preamble:
30662 \begin_layout Standard
30667 numberwithin{footnote}{chapter}
30670 \begin_layout Standard
30671 To be able to use the command
30680 \begin_inset space ~
30685 in the document settings the option
30688 \begin_inset space ~
30692 \begin_inset space ~
30696 \begin_inset space ~
30704 \begin_layout Standard
30708 \begin_layout Plain Layout
30712 numberwithin{footnote}{chapter}
30717 This is another example footnote:
30723 \begin_layout Plain Layout
30724 This is a footnote numbered in the scheme
30725 \begin_inset Quotes eld
30729 \begin_inset Quotes erd
30743 \begin_layout Plain Layout
30759 \begin_layout Standard
30760 \begin_inset Note Greyedout
30763 \begin_layout Plain Layout
30774 always prints out the footnote number as arabic number; previous redefinitions
30775 to get non-arabic numbers are overwritten.
30783 \begin_layout Standard
30784 So to get for example the scheme
30785 \begin_inset Quotes eld
30791 \begin_inset Quotes erd
30794 , use this command instead of
30803 \begin_layout Standard
30817 \begin_layout Subsection
30819 \begin_inset Index idx
30822 \begin_layout Plain Layout
30823 Footnotes ! Placement
30831 \begin_layout Standard
30832 If you have several footnotes in one page, they appear without vertical
30833 space between them at the bottom of the page.
30834 To make them more readable you can e.
30835 \begin_inset space \thinspace{}
30839 \begin_inset space \space{}
30843 \begin_inset space \thinspace{}
30846 mm space with the following preamble command:
30849 \begin_layout Standard
30859 \begin_inset Newline newline
30873 \begin_layout Standard
30874 \begin_inset VSpace bigskip
30877 In a two-column document the footnotes appear at the bottom of every column,
30879 \begin_inset space ~
30883 \begin_inset CommandInset ref
30885 reference "fig:Standard-footnote-placement"
30890 If the footnotes should only appear at the bottom of the right column,
30892 \begin_inset space ~
30896 \begin_inset CommandInset ref
30898 reference "fig:Footnote-placement-in"
30902 , use the \SpecialChar LaTeX
30908 \begin_inset Index idx
30911 \begin_layout Plain Layout
30913 -packages ! ftnright
30918 with this command in the document preamble:
30921 \begin_layout Standard
30926 usepackage{ftnright}
30929 \begin_layout Standard
30930 \begin_inset Float figure
30936 \begin_layout Plain Layout
30940 \begin_layout Plain Layout
30950 \begin_inset Graphics
30951 filename clipart/without_fntright.pdf
30953 scaleBeforeRotation
30961 \begin_layout Plain Layout
30971 \begin_layout Plain Layout
30972 \begin_inset Caption Standard
30974 \begin_layout Plain Layout
30975 \begin_inset CommandInset label
30977 name "fig:Standard-footnote-placement"
30981 Standard footnote placement in two-column documents.
30994 \begin_layout Standard
30995 \begin_inset Float figure
31001 \begin_layout Plain Layout
31005 \begin_layout Plain Layout
31015 \begin_inset Graphics
31016 filename clipart/with_fntright.pdf
31018 scaleBeforeRotation
31026 \begin_layout Plain Layout
31036 \begin_layout Plain Layout
31037 \begin_inset Caption Standard
31039 \begin_layout Plain Layout
31040 \begin_inset CommandInset label
31042 name "fig:Footnote-placement-in"
31046 Footnote placement in two-column documents when the \SpecialChar LaTeX
31064 \begin_layout Standard
31065 \begin_inset VSpace bigskip
31068 In some scientific literature it is usual to collect the footnotes and print
31069 them in a separate paragraph at the end of a section, as in Figure
31070 \begin_inset space ~
31074 \begin_inset CommandInset ref
31076 reference "fig:Endnotes"
31081 They are then called
31082 \begin_inset Quotes eld
31086 \begin_inset Quotes erd
31090 \begin_inset Index idx
31093 \begin_layout Plain Layout
31099 To use endnotes instead of footnotes in your document, load in the menu
31102 Document\SpecialChar menuseparator
31103 Settings\SpecialChar menuseparator
31109 \begin_inset space ~
31113 \begin_inset space ~
31119 To insert the collected footnotes, insert the command
31122 \begin_layout Standard
31130 \begin_layout Standard
31131 in \SpecialChar TeX
31132 Code at the end of a section or chapter.
31135 \begin_layout Standard
31136 \begin_inset Float figure
31141 \begin_layout Plain Layout
31146 \begin_layout Plain Layout
31156 \begin_inset Graphics
31157 filename clipart/endnotes.pdf
31158 scaleBeforeRotation
31166 \begin_layout Plain Layout
31176 \begin_layout Plain Layout
31177 \begin_inset Caption Standard
31179 \begin_layout Plain Layout
31180 \begin_inset CommandInset label
31182 name "fig:Endnotes"
31186 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31200 \begin_layout Standard
31201 \begin_inset VSpace medskip
31204 The paragraph heading for the endnotes isn't automatically translated into
31205 the document language, this must be done manually.
31206 The following preamble command translates the default English
31207 \begin_inset Quotes eld
31211 \begin_inset Quotes erd
31215 \begin_inset Quotes eld
31219 \begin_inset Quotes erd
31225 \begin_layout Standard
31232 notesname}{Anmerkungen}
31235 \begin_layout Standard
31236 \begin_inset VSpace medskip
31239 The numbering of endnotes can be changed like the footnote numbering as
31240 described in section
31241 \begin_inset space ~
31245 \begin_inset CommandInset ref
31247 reference "subsec:Footnote-Numbering"
31251 ; just replace the command
31264 To reset the endnote number use the command
31270 as described in section
31271 \begin_inset space ~
31275 \begin_inset CommandInset ref
31277 reference "subsec:Footnote-Numbering"
31281 and replace the command parameter
31292 \begin_layout Standard
31293 For endnotes there is the command
31297 endnotemark[number]
31299 similar to the command
31305 , that is described in section
31306 \begin_inset space ~
31310 \begin_inset CommandInset ref
31312 reference "sec:Footnotes"
31319 \begin_layout Standard
31320 \begin_inset VSpace bigskip
31323 Footnotes can also be placed in the page margin and the footnote text alignment
31324 can be changed, see the \SpecialChar LaTeX
31330 \begin_inset Index idx
31333 \begin_layout Plain Layout
31335 -packages ! footmisc
31341 \begin_inset CommandInset citation
31347 for more information about this.
31350 \begin_layout Standard
31351 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31353 \begin_inset CommandInset citation
31355 key "latexcompanion,latexguide,latexbook"
31365 \begin_inset Index idx
31368 \begin_layout Plain Layout
31370 -packages ! KOMA-Script
31375 document class, you can adjust all footnote settings using class-specific
31377 \begin_inset CommandInset citation
31386 \begin_layout Section
31388 \begin_inset Index idx
31391 \begin_layout Plain Layout
31392 Notes ! Margin Notes
31400 \begin_layout Standard
31401 Margin notes look and behave in \SpecialChar LyX
31403 They are inserted via the menu
31405 Insert\SpecialChar menuseparator
31407 \begin_inset space ~
31412 or the toolbar button
31415 arg "marginalnote-insert"
31429 \begin_inset Quotes eld
31433 \begin_inset Quotes erd
31436 appears where you can enter the text of the margin note.
31439 \begin_layout Standard
31440 At the side is an example margin note.
31445 \begin_inset Marginal
31448 \begin_layout Plain Layout
31449 This is a margin note.
31457 \begin_layout Standard
31458 Margin notes appear at the right side in single-sided documents.
31459 In double-sided documents they appear in the outer margin – left on even
31460 pages, right on odd pages.
31461 The text of margin notes is aligned opposite to the outer margin – right-aligne
31462 d when the note appears in the left margin.
31463 The first line of the margin note is placed at the position of the text
31464 line where it is inserted in the document.
31467 \begin_layout Standard
31468 \begin_inset VSpace bigskip
31471 To place the margin note in the inner margin, add the command
31474 \begin_layout Standard
31482 \begin_layout Standard
31483 in \SpecialChar TeX
31484 Code before a margin note.
31485 The new placement is valid for all subsequent margin notes.
31490 \begin_layout Plain Layout
31500 \begin_inset Marginal
31503 \begin_layout Plain Layout
31504 This is a margin note in the inner margin.
31512 \begin_inset Newline newline
31518 \begin_inset Note Greyedout
31521 \begin_layout Plain Layout
31526 There is often not enough space in the inner margin so that the notes are
31527 not correctly displayed in the output.
31535 \begin_layout Standard
31536 To return to the default placement insert the command
31539 \begin_layout Standard
31547 \begin_layout Standard
31548 in \SpecialChar TeX
31553 \begin_layout Plain Layout
31563 \begin_inset Note Greyedout
31566 \begin_layout Plain Layout
31571 The command is ignored when it is within a paragraph where also the command
31586 \begin_layout Standard
31587 \begin_inset VSpace bigskip
31594 \begin_inset Marginal
31597 \begin_layout Plain Layout
31598 AVeryLongMarginParWord that isn't hyphenated.
31606 Similar to the case described in section
31607 \begin_inset space ~
31611 \begin_inset CommandInset ref
31613 reference "subsec:Multiple-Lines-in"
31617 , long words cannot be hyphenated when they are the first word in a margin
31619 To avoid this, insert 0
31620 \begin_inset space \thinspace{}
31623 pt horizontal space before the word
31628 \begin_inset Marginal
31631 \begin_layout Plain Layout
31632 \begin_inset space \hspace*{}
31636 AVeryLongMarginParWord that is hyphenated.
31644 \begin_layout Standard
31645 \begin_inset VSpace bigskip
31651 \begin_layout Standard
31652 \begin_inset Note Greyedout
31655 \begin_layout Plain Layout
31660 Margin notes can normally not be used inside tables, floats, and footnotes.
31668 \begin_layout Standard
31669 \begin_inset VSpace bigskip
31675 \begin_layout Standard
31679 \begin_layout Plain Layout
31689 \begin_inset Note Note
31692 \begin_layout Plain Layout
31693 The following section will only be displayed when the \SpecialChar LaTeX
31706 \begin_layout Standard
31707 This restriction can be evaded by using the \SpecialChar LaTeX
31713 \begin_inset Index idx
31716 \begin_layout Plain Layout
31718 -packages ! marginnote
31724 By adding these two lines to your document preamble, the command used by
31726 for margin notes is redefined to use the command provided by the
31733 \begin_layout Standard
31738 usepackage{marginnote}
31739 \begin_inset Newline newline
31751 \begin_layout Standard
31752 This is also used in this document because
31756 has another useful feature: You can set a vertical offset for the note.
31757 This is often needed when too many margin notes are too close together
31758 or for a better page layout.
31759 The offset is set in \SpecialChar LyX
31760 as \SpecialChar TeX
31761 Code directly after the margin note in the scheme
31764 \begin_layout Standard
31770 \begin_layout Standard
31771 where the offset is a length with one of the units listed in Table
31772 \begin_inset space ~
31776 \begin_inset CommandInset ref
31778 reference "tab:Units"
31783 A negative value shifts the note up, a positive value shifts it down.
31787 For example the margin note beside this text line is shifted up 1.5
31788 \begin_inset space \thinspace{}
31791 cm with the \SpecialChar TeX
31793 \begin_inset Quotes eld
31803 \begin_inset Quotes erd
31807 \begin_inset Marginal
31810 \begin_layout Plain Layout
31811 This margin note is shifted up 1.5
31812 \begin_inset space \thinspace{}
31815 cm from its original position.
31827 \begin_layout Plain Layout
31837 \begin_layout Standard
31838 \begin_inset VSpace medskip
31845 you can also change the alignment of the text in the margin note.
31846 For example the commands
31849 \begin_layout Standard
31856 raggedleftmarginnote}{
31859 \begin_inset Newline newline
31866 raggedrightmarginnote}{
31871 \begin_layout Standard
31872 set the alignment to centered.
31877 raggedleftmarginnote
31879 denotes margin notes that appear at the left side.
31886 \begin_layout Plain Layout
31892 raggedleftmarginnote}{
31897 \begin_layout Plain Layout
31903 raggedrightmarginnote}{
31911 \begin_inset Marginal
31914 \begin_layout Plain Layout
31915 The text of this margin note is centered.
31926 \begin_layout Standard
31933 raggedleftmarginnote}{
31936 \begin_inset Newline newline
31943 raggedrightmarginnote}{
31952 \begin_layout Plain Layout
31958 raggedleftmarginnote}{
31963 \begin_layout Plain Layout
31969 raggedrightmarginnote}{
31979 \begin_layout Standard
31980 \begin_inset VSpace medskip
31983 For the other features of
31987 refer to its documentation
31988 \begin_inset CommandInset citation
31997 \begin_layout Standard
31998 \begin_inset VSpace bigskip
32001 You can adjust the layout of margin notes by changing its definition.
32002 To create for example a header for all margin notes with the underlined,
32003 sans-serif, and bold header text
32004 \begin_inset Quotes eld
32016 \begin_inset Quotes erd
32019 , add this to your document preamble:
32022 \begin_layout Standard
32032 \begin_inset Newline newline
32042 \begin_inset Newline newline
32046 \begin_inset Phantom HPhantom
32049 \begin_layout Plain Layout
32052 \begin_inset space ~
32068 underbar{Attention!}}}%
32069 \begin_inset Newline newline
32073 \begin_inset Phantom HPhantom
32076 \begin_layout Plain Layout
32079 \begin_inset space ~
32096 \begin_layout Standard
32103 \begin_layout Plain Layout
32114 \begin_layout Plain Layout
32125 \begin_layout Plain Layout
32133 underbar{Attention!}}}%
32136 \begin_layout Plain Layout
32150 \begin_inset Marginal
32153 \begin_layout Plain Layout
32154 This is a margin note with a defined heading.
32166 \begin_layout Plain Layout
32180 \begin_layout Plain Layout
32197 \begin_inset Note Note
32200 \begin_layout Plain Layout
32201 The margin note format is changed only for this example.
32209 \begin_layout Standard
32213 \begin_layout Plain Layout
32223 \begin_inset Note Note
32226 \begin_layout Plain Layout
32227 The following will be displayed when the \SpecialChar LaTeX
32240 \begin_layout Standard
32241 You need to install the \SpecialChar LaTeX
32246 to see the following part of this section in the output.
32249 \begin_layout Standard
32253 \begin_layout Plain Layout
32265 \begin_layout Chapter
32269 \begin_layout Section
32271 \begin_inset Index idx
32274 \begin_layout Plain Layout
32275 Boxes ! Introduction
32283 \begin_layout Standard
32284 Boxes are used to format a block of text.
32285 Boxes can be used to write documents with multiple languages, see section
32286 \begin_inset space ~
32290 \begin_inset CommandInset ref
32292 reference "sec:Minipages"
32296 , to frame texts, see section
32297 \begin_inset space ~
32301 \begin_inset CommandInset ref
32303 reference "sec:Decoration"
32307 , to prevent words from being hyphenated, see section
32308 \begin_inset space ~
32312 \begin_inset CommandInset ref
32314 reference "sec:Prevent-Hyphenation"
32318 , to align text, see section
32319 \begin_inset space ~
32323 \begin_inset CommandInset ref
32325 reference "subsec:Vertical-Alignment"
32329 , or to set the background color of texts, see section
32330 \begin_inset space ~
32334 \begin_inset CommandInset ref
32336 reference "sec:Colored-Boxes"
32343 \begin_layout Standard
32344 Boxes can be inserted with the menu
32346 Insert\SpecialChar menuseparator
32349 or the toolbar button
32352 arg "box-insert Frameless"
32356 A grey box with the label
32361 \begin_inset Graphics
32362 filename clipart/BoxInsetDefault.png
32364 scaleBeforeRotation
32369 The box type can be specified by right-clicking on the box and selecting
32375 The box dialog offers the
32378 \begin_inset space ~
32400 is the default for new boxes and is explained in section
32401 \begin_inset space ~
32405 \begin_inset CommandInset ref
32407 reference "sec:Minipages"
32415 is described in section
32416 \begin_inset space ~
32420 \begin_inset CommandInset ref
32422 reference "sec:Parboxes"
32431 \begin_inset CommandInset ref
32433 reference "sec:Prevent-Hyphenation"
32440 \begin_layout Standard
32441 Boxes are not numbered and can therefore not be referenced like floats or
32445 \begin_layout Standard
32446 \begin_inset Note Greyedout
32449 \begin_layout Plain Layout
32454 Boxes must not be the item in an
32470 \begin_layout Standard
32471 \begin_inset Note Greyedout
32474 \begin_layout Plain Layout
32479 For an unknown reason you can only set the
32482 \begin_inset space ~
32491 when you use a framed box.
32495 \begin_inset space ~
32500 type and without frames are explained in section
32501 \begin_inset space ~
32505 \begin_inset CommandInset ref
32507 reference "sec:Prevent-Hyphenation"
32519 \begin_layout Section
32521 \begin_inset CommandInset label
32523 name "sec:Box-Dialog"
32528 \begin_inset Index idx
32531 \begin_layout Plain Layout
32540 \begin_layout Subsection
32542 \begin_inset Index idx
32545 \begin_layout Plain Layout
32554 \begin_layout Standard
32555 In the box dialog you can adjust the box geometry in the fields
32564 The available units for the geometry are explained in Table
32565 \begin_inset space ~
32569 \begin_inset CommandInset ref
32571 reference "tab:Units"
32580 offers the following additional sizes:
32583 \begin_layout Description
32584 Depth This is the plain text
32585 \begin_inset Quotes eld
32589 \begin_inset Quotes erd
32593 It ignores the total depth when there are multiple text lines in the box:
32594 \begin_inset Newline newline
32598 \begin_inset Newline newline
32602 \begin_inset Newline newline
32606 \begin_inset Box Boxed
32616 height_special "depth"
32621 backgroundcolor "none"
32624 \begin_layout Plain Layout
32626 Box height set to 1
32627 \begin_inset space \thinspace{}
32636 \begin_inset Newline newline
32640 \begin_inset Newline newline
32646 \begin_layout Description
32647 Height This is the height of the text that is inside the box.
32649 \begin_inset space \thinspace{}
32653 \begin_inset space \space{}
32656 2 for this size will set the box height to 2
32657 \begin_inset space ~
32660 times the text height:
32661 \begin_inset Box Boxed
32671 height_special "height"
32676 backgroundcolor "none"
32679 \begin_layout Plain Layout
32681 Box height set to 2
32682 \begin_inset space \thinspace{}
32693 \begin_layout Description
32695 \begin_inset space ~
32698 Height This is the Height
32699 \begin_inset space \thinspace{}
32703 \begin_inset space \thinspace{}
32707 \begin_inset Box Boxed
32717 height_special "totalheight"
32722 backgroundcolor "none"
32725 \begin_layout Plain Layout
32727 Box height set to 1
32728 \begin_inset space \thinspace{}
32732 \begin_inset space ~
32743 \begin_layout Description
32744 Width This sets the width of the box as height:
32745 \begin_inset Box Boxed
32755 height_special "width"
32760 backgroundcolor "none"
32763 \begin_layout Plain Layout
32765 Box height set to 1
32766 \begin_inset space \thinspace{}
32777 \begin_layout Subsection
32779 \begin_inset Index idx
32782 \begin_layout Plain Layout
32791 \begin_layout Standard
32792 When you have chosen an
32795 \begin_inset space ~
32800 , the vertical box alignment can be:
32803 \begin_layout Description
32804 Top This is an example text line.
32806 \begin_inset Box Boxed
32816 height_special "totalheight"
32821 backgroundcolor "none"
32824 \begin_layout Plain Layout
32826 This box is top-aligned.
32831 This is an example text line.
32834 \begin_layout Description
32835 Middle This is an example text line.
32837 \begin_inset Box Boxed
32847 height_special "totalheight"
32852 backgroundcolor "none"
32855 \begin_layout Plain Layout
32857 This box is middle-aligned.
32862 This is an example text line.
32865 \begin_layout Description
32866 Bottom This is an example text line.
32868 \begin_inset Box Boxed
32878 height_special "totalheight"
32883 backgroundcolor "none"
32886 \begin_layout Plain Layout
32888 This box is bottom-aligned.
32893 This is an example text line.
32896 \begin_layout Standard
32897 \begin_inset Note Greyedout
32900 \begin_layout Plain Layout
32905 The vertical box alignment can be lost in the output when you have two
32906 boxes in a line and one has e.
32907 \begin_inset space \thinspace{}
32911 \begin_inset space \space{}
32914 a shadow and the other one not.
32922 \begin_layout Standard
32923 The horizontal box alignment can be set via \SpecialChar LyX
32924 's paragraph dialog when you
32925 set the box into its own paragraph.
32928 \begin_layout Standard
32929 \begin_inset VSpace bigskip
32932 When you have chosen an
32935 \begin_inset space ~
32940 , the box content can be aligned vertically to:
32943 \begin_layout Description
32944 top This is an example text line.
32946 \begin_inset Box Boxed
32956 height_special "totalheight"
32961 backgroundcolor "none"
32964 \begin_layout Plain Layout
32966 This box text is top-aligned.
32971 This is an example text line.
32974 \begin_layout Description
32975 middle This is an example text line.
32977 \begin_inset Box Boxed
32987 height_special "totalheight"
32992 backgroundcolor "none"
32995 \begin_layout Plain Layout
32997 This box text is middle-aligned.
33002 This is an example text line.
33005 \begin_layout Description
33006 bottom This is an example text line.
33008 \begin_inset Box Boxed
33018 height_special "totalheight"
33023 backgroundcolor "none"
33026 \begin_layout Plain Layout
33028 This box text is bottom-aligned.
33033 This is an example text line.
33036 \begin_layout Description
33037 stretch This is an example text line.
33039 \begin_inset Box Boxed
33049 height_special "totalheight"
33054 backgroundcolor "none"
33057 \begin_layout Plain Layout
33062 \begin_layout Plain Layout
33067 \begin_layout Plain Layout
33074 This is an example text line.
33077 \begin_layout Standard
33078 To stretch the box content, it must consist of more than one paragraph.
33079 In the example above every text line is in an own paragraph.
33082 \begin_layout Standard
33083 \begin_inset VSpace bigskip
33086 To align the box content horizontally you can use \SpecialChar LyX
33087 's paragraph dialog when
33091 \begin_inset space ~
33099 \begin_layout Standard
33101 \begin_inset Box Boxed
33111 height_special "totalheight"
33116 backgroundcolor "none"
33119 \begin_layout Plain Layout
33124 \begin_layout Plain Layout
33129 \begin_layout Plain Layout
33139 \begin_layout Standard
33140 If you have not set an
33143 \begin_inset space ~
33148 , you can align the box content horizontally in the box dialog.
33149 \begin_inset Separator parbreak
33155 \begin_layout Standard
33157 \begin_inset Box Boxed
33167 height_special "totalheight"
33172 backgroundcolor "none"
33175 \begin_layout Plain Layout
33176 This box text is horizontally stretched.
33184 \begin_layout Subsection
33186 \begin_inset CommandInset label
33188 name "sec:Decoration"
33193 \begin_inset Index idx
33196 \begin_layout Plain Layout
33205 \begin_layout Standard
33206 The type of the box can be specified in the box dialog in the drop-down
33212 The following types are possible:
33215 \begin_layout Description
33217 \begin_inset space ~
33220 frame Nothing is drawn.
33223 \begin_layout Description
33225 \begin_inset space ~
33229 \begin_inset space ~
33232 frame This draws a rectangular frame around the box.
33233 The frame line thickness can be specified.
33235 \begin_inset Box Boxed
33245 height_special "totalheight"
33250 backgroundcolor "none"
33253 \begin_layout Plain Layout
33263 \begin_layout Description
33265 \begin_inset space ~
33269 \begin_inset space ~
33272 thin This draws an oval frame around the box.
33273 The frame line thickness has the size 0.4
33274 \begin_inset space \thinspace{}
33279 \begin_inset Box ovalbox
33289 height_special "totalheight"
33294 backgroundcolor "none"
33297 \begin_layout Plain Layout
33307 \begin_layout Description
33309 \begin_inset space ~
33313 \begin_inset space ~
33316 thick This draws an oval frame around the box.
33317 The frame line thickness has the size 0.8
33318 \begin_inset space \thinspace{}
33323 \begin_inset Box Ovalbox
33333 height_special "totalheight"
33338 backgroundcolor "none"
33341 \begin_layout Plain Layout
33351 \begin_layout Description
33353 \begin_inset space ~
33356 shadow This draws a rectangular frame with a shadow around the box.
33357 The frame line thickness and the shadow can be specified.
33359 \begin_inset Box Shadowbox
33369 height_special "totalheight"
33374 backgroundcolor "none"
33377 \begin_layout Plain Layout
33387 \begin_layout Description
33389 \begin_inset space ~
33392 background This draws a box with a red background.
33393 Unlike colored boxes
33397 \begin_layout Plain Layout
33399 \begin_inset space \thinspace{}
33403 \begin_inset CommandInset ref
33405 reference "sec:Colored-Boxes"
33414 , it always uses the whole column width and the box is set as its own paragraph.
33416 \begin_inset Box Shaded
33426 height_special "totalheight"
33431 backgroundcolor "none"
33434 \begin_layout Plain Layout
33435 Shaded background box
33443 \begin_layout Description
33445 \begin_inset space ~
33449 \begin_inset space ~
33452 frame This draws a double-line rectangular frame around the box.
33453 The line thickness of the inner frame is 0.75
33454 \begin_inset space \thinspace{}
33458 \begin_inset space ~
33461 thickness, the thickness of the outer frame is 1.5
33462 \begin_inset space \thinspace{}
33466 \begin_inset space ~
33470 The distance between the lines is 1.5
33471 \begin_inset space \thinspace{}
33475 \begin_inset space ~
33479 \begin_inset space \thinspace{}
33483 \begin_inset space \thinspace{}
33487 \begin_inset space \thinspace{}
33492 \begin_inset Box Doublebox
33502 height_special "totalheight"
33507 backgroundcolor "none"
33510 \begin_layout Plain Layout
33512 Double rectangular box
33520 \begin_layout Standard
33521 \begin_inset VSpace bigskip
33525 's box label will reflect the different frame types.
33526 To be able to use all types, the \SpecialChar LaTeX
33532 \begin_inset Index idx
33535 \begin_layout Plain Layout
33537 -packages ! fancybox
33545 \begin_layout Standard
33546 \begin_inset VSpace bigskip
33549 When you use the decoration
33551 simple rectangular frame
33553 and no inner box, you can allow page breaks within a box.
33554 Note that then, unlike other framed boxes, the frame always uses the whole
33555 column width and the box is set as its own paragraph:
33556 \begin_inset Box Framed
33566 height_special "totalheight"
33571 backgroundcolor "none"
33574 \begin_layout Plain Layout
33575 Allow page break box
33583 \begin_layout Section
33585 \begin_inset Index idx
33588 \begin_layout Plain Layout
33589 Boxes ! Customization
33597 \begin_layout Standard
33598 The diameter of the round corners of the oval boxes can be set with the
33609 \begin_layout Standard
33617 \begin_layout Standard
33618 sets the diameter to 1
33619 \begin_inset space \thinspace{}
33626 \begin_layout Standard
33634 \begin_layout Standard
33635 sets the diameter to
33638 \begin_inset space \thinspace{}
33642 \begin_inset space \thinspace{}
33645 minimum(width and height of box)
33657 \begin_layout Standard
33661 \begin_layout Plain Layout
33671 \begin_inset Box Ovalbox
33681 height_special "totalheight"
33686 backgroundcolor "none"
33689 \begin_layout Plain Layout
33698 \begin_inset space \thinspace{}
33702 \begin_inset space \thinspace{}
33706 \begin_inset space \thinspace{}
33718 \begin_layout Plain Layout
33730 \begin_layout Standard
33731 \begin_inset VSpace bigskip
33737 \begin_layout Standard
33738 The default background color red of
33742 boxes can either be changed locally with the command
33746 definecolor{shadecolor}
33748 or globally with the menu
33750 Tools\SpecialChar menuseparator
33751 Preferences\SpecialChar menuseparator
33752 Colors\SpecialChar menuseparator
33754 \begin_inset space ~
33766 command is explained in section
33767 \begin_inset space ~
33771 \begin_inset CommandInset ref
33773 reference "sec:Colored-Tables"
33781 \begin_layout Plain Layout
33788 requires the \SpecialChar LaTeX
33793 in the preamble, see section
33794 \begin_inset space ~
33798 \begin_inset CommandInset ref
33800 reference "sec:Colored-Boxes"
33809 For example the appearance of the following shaded background box is set
33810 with the \SpecialChar TeX
33814 \begin_layout Standard
33819 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33822 \begin_layout Standard
33826 \begin_layout Plain Layout
33830 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33836 \begin_inset Box Shaded
33846 height_special "totalheight"
33851 backgroundcolor "none"
33854 \begin_layout Plain Layout
33857 This is yellow text in a
33867 box with dark green background.
33876 \begin_layout Plain Layout
33880 definecolor{shadecolor}{rgb}{1,0,0}
33888 \begin_layout Standard
33889 \begin_inset VSpace bigskip
33892 Manually changed sizes and colors are valid for all boxes following the
33893 commands that change them.
33896 \begin_layout Section
33898 \begin_inset CommandInset label
33900 name "sec:Minipages"
33905 \begin_inset Index idx
33908 \begin_layout Plain Layout
33917 \begin_layout Standard
33918 Minipages are treated by \SpecialChar LaTeX
33919 as pages within pages and can therefore for example
33920 have their own footnotes.
33923 \begin_layout Standard
33924 Minipages are useful when you write documents with different languages.
33927 \begin_layout Standard
33928 Below are two example minipages side by side.
33929 Their width is set to 45
33930 \begin_inset space \thinspace{}
33933 col% and they are separated by a horizontal fill, that was inserted via
33936 Insert\SpecialChar menuseparator
33938 \begin_inset space ~
33941 Formatting\SpecialChar menuseparator
33943 \begin_inset space ~
33949 \begin_inset Newpage newpage
33955 \begin_layout Standard
33956 \begin_inset Box Frameless
33966 height_special "totalheight"
33971 backgroundcolor "none"
33974 \begin_layout Plain Layout
33977 Dies ist ein deutscher Text.
33978 Dies ist ein deutscher Text.
33979 Dies ist ein deutscher Text.
33980 Dies ist ein deutscher Text.
33981 Dies ist ein deutscher Text.
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
33993 \begin_layout Plain Layout
33996 Dies ist eine deutsche Fußnote.
34002 Dies ist ein deutscher Text.
34003 Dies ist ein deutscher Text.
34009 \begin_inset space \hfill{}
34013 \begin_inset Box Frameless
34023 height_special "totalheight"
34028 backgroundcolor "none"
34031 \begin_layout Plain Layout
34032 This is an English Text.
34033 This is an English Text.
34034 This is an English Text.
34035 This is an English Text.
34036 This is an English Text.
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.
34051 \begin_layout Plain Layout
34052 This is an English footnote.
34057 This is an English Text.
34065 \begin_layout Standard
34066 \begin_inset VSpace bigskip
34069 The document-wide paragraph settings are ignored within minipages.
34070 That means that there will be no space between paragraphs in minipages
34071 although you set it to e.
34072 \begin_inset space \thinspace{}
34076 \begin_inset space \space{}
34083 in the document settings.
34086 \begin_layout Standard
34087 Minipages can also be used to set a background color for text parts, see
34089 \begin_inset space ~
34093 \begin_inset CommandInset ref
34095 reference "sec:Colored-Boxes"
34102 \begin_layout Standard
34103 \begin_inset Note Greyedout
34106 \begin_layout Plain Layout
34111 You cannot have floats or margin notes inside minipages but minipages can
34112 be used inside tables, floats, and other boxes.
34120 \begin_layout Standard
34121 \begin_inset VSpace bigskip
34127 \begin_layout Standard
34129 has also basic support for minipages whose size is automatically determined
34130 by the width of their contents, via the module
34132 Variable-width Minipages
34135 The \SpecialChar LyX
34138 varwidth-floats-side-by-side
34140 gives examples of variable-width minipages used for placing two floats
34144 \begin_layout Section
34146 \begin_inset CommandInset label
34148 name "sec:Parboxes"
34153 \begin_inset Index idx
34156 \begin_layout Plain Layout
34165 \begin_layout Standard
34166 Parboxes are very similar to minipages with the difference that they cannot
34168 \begin_inset Separator parbreak
34174 \begin_layout Standard
34176 \begin_inset Box Frameless
34186 height_special "totalheight"
34191 backgroundcolor "none"
34194 \begin_layout Plain Layout
34195 This a text within a parbox.
34196 This a text within a parbox.
34199 \begin_layout Plain Layout
34200 This footnote won't appear:
34204 \begin_layout Plain Layout
34205 This footnote is inside a parbox and will therefore not appear.
34218 \begin_layout Section
34219 Boxes for Words and Characters
34220 \begin_inset Index idx
34223 \begin_layout Plain Layout
34224 Boxes ! for Characters
34232 \begin_layout Subsection
34233 Prevent Hyphenation
34234 \begin_inset CommandInset label
34236 name "sec:Prevent-Hyphenation"
34241 \begin_inset Index idx
34244 \begin_layout Plain Layout
34245 Boxes ! to Prevent Hyphenation
34253 \begin_layout Standard
34254 You can use the box type
34258 to prevent words or text from being hyphenated.
34259 \begin_inset Newline newline
34262 Here is an example text:
34265 \begin_layout Standard
34266 This line is an example to show how you can prevent the hyphenation of
34267 \begin_inset Quotes eld
34271 \begin_inset Quotes erd
34277 \begin_layout Standard
34278 To prevent the hyphenation of the word
34279 \begin_inset Quotes eld
34283 \begin_inset Quotes erd
34286 , put the word into a box, set the
34289 \begin_inset space ~
34298 and use no explicit width.
34301 \begin_layout Standard
34302 This is the result:
34305 \begin_layout Standard
34306 This line is an example to show how you can prevent the hyphenation of
34307 \begin_inset Box Frameless
34317 height_special "totalheight"
34322 backgroundcolor "none"
34325 \begin_layout Plain Layout
34326 \begin_inset Quotes eld
34330 \begin_inset Quotes erd
34341 \begin_layout Standard
34342 You can alternatively set the command
34343 \begin_inset Quotes eld
34353 \begin_inset Quotes grd
34356 as \SpecialChar TeX
34357 Code directly before the word:
34360 \begin_layout Standard
34361 This line is an example to show how you can prevent the hyphenation of
34362 \begin_inset Quotes eld
34369 \begin_layout Plain Layout
34379 \begin_inset Quotes erd
34385 \begin_layout Standard
34386 Of course the word now protrudes over the side margin.
34387 To avoid this, add via the menu
34389 Insert\SpecialChar menuseparator
34390 Formatting\SpecialChar menuseparator
34392 \begin_inset space ~
34396 \begin_inset space ~
34404 arg "newline-insert newline"
34407 ) a line break before the word:
34410 \begin_layout Standard
34411 This line is an example to show how you can prevent the hyphenation of
34412 \begin_inset Newline newline
34416 \begin_inset Box Frameless
34426 height_special "totalheight"
34431 backgroundcolor "none"
34434 \begin_layout Plain Layout
34435 \begin_inset Quotes eld
34439 \begin_inset Quotes erd
34450 \begin_layout Subsection
34452 \begin_inset CommandInset label
34454 name "subsec:Vertical-Alignment"
34459 \begin_inset Index idx
34462 \begin_layout Plain Layout
34463 Boxes ! for Vertical Alignment
34469 \begin_inset Index idx
34472 \begin_layout Plain Layout
34481 \begin_layout Standard
34482 With the help of the command
34488 you can align words, characters or other boxes vertically relative to the
34496 is used with the following scheme:
34499 \begin_layout Standard
34504 raisebox{lift}[height][depth]{box content}
34507 \begin_layout Standard
34508 The lift can be a positive value to raise the box or a negative value to
34512 \begin_layout Standard
34513 To align for example the word
34514 \begin_inset Quotes eld
34518 \begin_inset Quotes erd
34521 so that the bottom of the
34522 \begin_inset Quotes eld
34526 \begin_inset Quotes erd
34530 \begin_inset Quotes eld
34534 \begin_inset Quotes erd
34537 is at the baseline, insert the command
34540 \begin_layout Standard
34550 \begin_layout Standard
34551 in \SpecialChar TeX
34552 Code before the word.
34553 After the word insert a closing brace
34554 \begin_inset Quotes eld
34562 \begin_inset Quotes erd
34565 in \SpecialChar TeX
34567 \begin_inset Newline newline
34570 This is the result:
34573 \begin_layout Standard
34574 This is a text line with the word
34578 \begin_layout Plain Layout
34590 \begin_inset Quotes eld
34594 \begin_inset Quotes erd
34601 \begin_layout Plain Layout
34611 \begin_layout Standard
34612 \begin_inset VSpace bigskip
34615 When you raise or lower characters in a line, the line distance will be
34619 \begin_layout Standard
34620 This is a text line with the word
34624 \begin_layout Plain Layout
34636 \begin_inset Quotes eld
34640 \begin_inset Quotes erd
34647 \begin_layout Plain Layout
34655 \begin_inset Newline newline
34658 This is a text line with the word
34662 \begin_layout Plain Layout
34672 \begin_inset Quotes eld
34676 \begin_inset Quotes erd
34683 \begin_layout Plain Layout
34693 \begin_layout Standard
34694 If you want to prevent this for a certain reason, set the box height to
34699 \begin_layout Standard
34709 \begin_layout Standard
34710 This is a text line with the word
34714 \begin_layout Plain Layout
34726 \begin_inset Quotes eld
34730 \begin_inset Quotes erd
34737 \begin_layout Plain Layout
34745 \begin_inset Newline newline
34749 \begin_inset Newline newline
34752 This is a text line with the word
34756 \begin_layout Plain Layout
34760 raisebox{0.5cm}[0pt]{
34766 \begin_inset Quotes eld
34770 \begin_inset Quotes erd
34777 \begin_layout Plain Layout
34787 \begin_layout Section
34789 \begin_inset CommandInset label
34791 name "sec:Colored-Boxes"
34796 \begin_inset Index idx
34799 \begin_layout Plain Layout
34808 \begin_layout Standard
34809 To color the background of a box just select the color you like in the box
34811 This is for example a box with orange background:
34812 \begin_inset Box Frameless
34822 height_special "totalheight"
34827 backgroundcolor "orange"
34830 \begin_layout Plain Layout
34831 Box with orange background
34839 \begin_layout Standard
34840 If you use the decoration
34843 \begin_inset space ~
34847 \begin_inset space ~
34852 you can set a frame color.
34853 In this case you must also specify a background color (LyX sets white as
34855 Here is an example:
34856 \begin_inset Box Boxed
34866 height_special "totalheight"
34871 backgroundcolor "yellow"
34874 \begin_layout Plain Layout
34875 Box with teal frame color and yellow background color
34883 \begin_layout Standard
34884 \begin_inset VSpace bigskip
34887 Of course you can also have colored text inside a colored box:
34888 \begin_inset Newline newline
34892 \begin_inset Box Boxed
34902 height_special "totalheight"
34907 backgroundcolor "magenta"
34910 \begin_layout Plain Layout
34913 This is colored text within a colored, framed box
34921 \begin_layout Standard
34922 \begin_inset VSpace bigskip
34928 \begin_layout Standard
34929 If you need another color than the predefined ones, you can define your
34930 own color as described in section
34931 \begin_inset space ~
34935 \begin_inset CommandInset ref
34937 reference "sec:Colored-Tables"
34942 To use your own color you must typeset the box by using TeX code:
34945 \begin_layout Standard
34946 Colored boxes without frame are created with the command
34953 It has the following scheme:
34956 \begin_layout Standard
34961 colorbox{color}{box content}
34964 \begin_layout Standard
34965 The box content can also be a box and colored boxes can also be within other
34968 \begin_inset space \thinspace{}
34972 \begin_inset space \space{}
34975 a darkgreen background for a word, insert the command
34978 \begin_layout Standard
34983 colorbox{darkgreen}{
34986 \begin_layout Standard
34987 before the word in \SpecialChar TeX
34989 After the word insert a closing brace
34990 \begin_inset Quotes eld
34998 \begin_inset Quotes erd
35001 in \SpecialChar TeX
35003 \begin_inset Newline newline
35006 This is the result:
35009 \begin_layout Standard
35010 This is a line where the word
35014 \begin_layout Plain Layout
35018 colorbox{darkgreen}{
35024 \begin_inset Quotes eld
35028 \begin_inset Quotes erd
35035 \begin_layout Plain Layout
35042 has a darkgreen background.
35045 \begin_layout Standard
35046 Framed, colored boxes are created with the command
35053 It has the following scheme:
35056 \begin_layout Standard
35061 fcolorbox{frame color}{box color}{box content}
35064 \begin_layout Section
35065 Rotated and Scaled Boxes
35068 \begin_layout Standard
35069 To use the boxes described in this section, the module
35073 must be loaded in the document settings.
35076 \begin_layout Standard
35077 \begin_inset Note Greyedout
35080 \begin_layout Plain Layout
35085 Not all DVI viewers are able to display rotated or scaled material.
35093 \begin_layout Standard
35094 \begin_inset Note Greyedout
35097 \begin_layout Plain Layout
35102 Floats are not allowed inside a rotated or scaled box.
35110 \begin_layout Subsection
35112 \begin_inset Index idx
35115 \begin_layout Plain Layout
35122 \begin_inset Index idx
35125 \begin_layout Plain Layout
35134 \begin_layout Standard
35135 To rotate material, you can put it into a
35140 Such a box is inserted via the menu
35142 Insert\SpecialChar menuseparator
35143 Custom Insets\SpecialChar menuseparator
35149 \begin_layout Standard
35150 The rotation origin can be specified via the inset
35156 Insert\SpecialChar menuseparator
35164 The following positions are possible:
35184 (top), along with meaningful combinations of the four base positions.
35189 means that the rotation origin is at the top left corner of the box.
35190 When no rotation origin is specified, the position
35195 The rotation angle is a number that can be negative that specifies the
35197 The rotation direction is counterclockwise.
35200 \begin_layout Standard
35201 In the following example
35205 was inserted to the
35213 was inserted to the
35220 \begin_layout Standard
35222 \begin_inset Flex Rotatebox
35225 \begin_layout Plain Layout
35226 \begin_inset Argument 1
35229 \begin_layout Plain Layout
35236 \begin_inset Argument 2
35239 \begin_layout Plain Layout
35253 \begin_layout Standard
35254 The box content can also be another box or an inline formula:
35257 \begin_layout Standard
35259 \begin_inset Flex Rotatebox
35262 \begin_layout Plain Layout
35263 \begin_inset Argument 1
35266 \begin_layout Plain Layout
35273 \begin_inset Argument 2
35276 \begin_layout Plain Layout
35283 \begin_inset Box Doublebox
35293 height_special "totalheight"
35298 backgroundcolor "none"
35301 \begin_layout Plain Layout
35313 \begin_inset Flex Rotatebox
35316 \begin_layout Plain Layout
35317 \begin_inset Argument 1
35320 \begin_layout Plain Layout
35327 \begin_inset Argument 2
35330 \begin_layout Plain Layout
35337 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35348 \begin_layout Standard
35349 or an image or table:
35352 \begin_layout Standard
35354 \begin_inset Flex Rotatebox
35357 \begin_layout Plain Layout
35358 \begin_inset Argument 1
35361 \begin_layout Plain Layout
35368 \begin_inset Argument 2
35371 \begin_layout Plain Layout
35378 \begin_inset Graphics
35379 filename clipart/platypus.eps
35390 with a rotated image
35391 \begin_inset Flex Rotatebox
35394 \begin_layout Plain Layout
35395 \begin_inset Argument 2
35398 \begin_layout Plain Layout
35405 \begin_inset Tabular
35406 <lyxtabular version="3" rows="2" columns="2">
35407 <features tabularvalignment="middle">
35408 <column alignment="center" valignment="top">
35409 <column alignment="center" valignment="top">
35411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35414 \begin_layout Plain Layout
35420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35423 \begin_layout Plain Layout
35431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35434 \begin_layout Plain Layout
35440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35443 \begin_layout Plain Layout
35460 \begin_inset Index idx
35463 \begin_layout Plain Layout
35470 \begin_inset Index idx
35473 \begin_layout Plain Layout
35474 Table Customization ! Rotating
35482 \begin_layout Standard
35483 \begin_inset Note Greyedout
35486 \begin_layout Plain Layout
35495 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35497 errors when viewing/exporting the document.
35505 \begin_layout Subsection
35507 \begin_inset Index idx
35510 \begin_layout Plain Layout
35517 \begin_inset Index idx
35520 \begin_layout Plain Layout
35529 \begin_layout Standard
35530 To scale material put it into a
35535 Such a box is inserted via the menu
35537 Insert\SpecialChar menuseparator
35538 Custom Insets\SpecialChar menuseparator
35544 \begin_layout Standard
35549 inset has the mandatory inset
35553 and the optional inset
35557 (inserted via the menu
35559 Insert\SpecialChar menuseparator
35563 Input there the horizontal and vertical scale factor, respectively.
35568 inset is used, the horizontal factor will also be used as the vertical
35572 \begin_layout Standard
35573 To get for example the double text size, compared to the document text size,
35584 \begin_inset Flex Scalebox
35587 \begin_layout Plain Layout
35588 \begin_inset Argument 1
35591 \begin_layout Plain Layout
35605 \begin_layout Standard
35623 \begin_inset Flex Scalebox
35626 \begin_layout Plain Layout
35627 \begin_inset Argument 1
35630 \begin_layout Plain Layout
35637 \begin_inset Argument 2
35640 \begin_layout Plain Layout
35654 \begin_layout Standard
35655 If the scaling factor is negative, the box content will be mirrored.
35672 can be used to create mirror writing:
35673 \begin_inset Flex Scalebox
35676 \begin_layout Plain Layout
35677 \begin_inset Argument 1
35680 \begin_layout Plain Layout
35687 \begin_inset Argument 2
35690 \begin_layout Plain Layout
35704 \begin_layout Standard
35722 \begin_inset Flex Scalebox
35725 \begin_layout Plain Layout
35726 \begin_inset Argument 1
35729 \begin_layout Plain Layout
35736 \begin_inset Argument 2
35739 \begin_layout Plain Layout
35753 \begin_layout Standard
35760 Insert\SpecialChar menuseparator
35761 Custom Insets\SpecialChar menuseparator
35787 \begin_layout Standard
35788 \begin_inset Note Greyedout
35791 \begin_layout Plain Layout
35800 inset is empty or contains other characters than numbers you will get LaTeX
35801 errors when viewing/exporting the document.
35809 \begin_layout Standard
35810 \begin_inset VSpace bigskip
35819 Insert\SpecialChar menuseparator
35820 Custom Insets\SpecialChar menuseparator
35823 ) is used to scale the content to a defined width and height.
35828 inset has the mandatory inset
35832 and the optional inset
35836 (inserted via the menu
35838 Insert\SpecialChar menuseparator
35842 Input there the width and height, respectively, as value with a unit.
35844 \begin_inset CommandInset ref
35846 reference "tab:Units"
35850 lists the possible units.
35851 If there is an exclamation mark
35855 in of of the two insets, the size is set so that the aspect ratio of the
35856 box content is kept.
35861 inset is used an exclamation mark will internally be used for the height.
35864 \begin_layout Standard
35882 \begin_inset Flex Resizebox
35885 \begin_layout Plain Layout
35886 \begin_inset Argument 1
35889 \begin_layout Plain Layout
35896 \begin_inset Argument 2
35899 \begin_layout Plain Layout
35911 \begin_inset Newline newline
35935 \begin_inset Flex Resizebox
35938 \begin_layout Plain Layout
35939 \begin_inset Argument 1
35942 \begin_layout Plain Layout
35949 \begin_inset Argument 2
35952 \begin_layout Plain Layout
35966 \begin_layout Standard
35967 \begin_inset Note Greyedout
35970 \begin_layout Plain Layout
35979 inset is empty or contains an invalid unit you will get LaTeX errors when
35980 viewing/exporting the document.
35988 \begin_layout Standard
35989 \begin_inset VSpace bigskip
35995 \begin_layout Standard
35996 The boxes can be combined in any order.
36005 which is in turn inside a
36012 \begin_layout Standard
36015 \begin_inset Flex Rotatebox
36018 \begin_layout Plain Layout
36019 \begin_inset Argument 1
36022 \begin_layout Plain Layout
36029 \begin_inset Argument 2
36032 \begin_layout Plain Layout
36039 \begin_inset Flex Resizebox
36042 \begin_layout Plain Layout
36043 \begin_inset Argument 1
36046 \begin_layout Plain Layout
36053 \begin_inset Flex Reflectbox
36056 \begin_layout Plain Layout
36075 \begin_layout Standard
36077 Images, tables, and inline formulas are allowed as box content:
36080 \begin_layout Standard
36083 \begin_inset Flex Resizebox
36086 \begin_layout Plain Layout
36087 \begin_inset Argument 1
36090 \begin_layout Plain Layout
36097 \begin_inset Flex Reflectbox
36100 \begin_layout Plain Layout
36101 \begin_inset Graphics
36102 filename clipart/platypus.eps
36119 \begin_inset Flex Resizebox
36122 \begin_layout Plain Layout
36123 \begin_inset Argument 1
36126 \begin_layout Plain Layout
36133 \begin_inset Flex Reflectbox
36136 \begin_layout Plain Layout
36137 \begin_inset Tabular
36138 <lyxtabular version="3" rows="2" columns="2">
36139 <features tabularvalignment="middle">
36140 <column alignment="center" valignment="top">
36141 <column alignment="center" valignment="top">
36143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36146 \begin_layout Plain Layout
36152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36155 \begin_layout Plain Layout
36163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36166 \begin_layout Plain Layout
36172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36175 \begin_layout Plain Layout
36197 \begin_inset Flex Resizebox
36200 \begin_layout Plain Layout
36201 \begin_inset Argument 1
36204 \begin_layout Plain Layout
36211 \begin_inset Flex Reflectbox
36214 \begin_layout Plain Layout
36215 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36229 \begin_inset Index idx
36232 \begin_layout Plain Layout
36239 \begin_inset Index idx
36242 \begin_layout Plain Layout
36243 Table Customization ! Scaling
36251 \begin_layout Standard
36252 When the global formula style
36256 is used in the document
36260 \begin_layout Plain Layout
36262 \begin_inset Quotes eld
36266 \begin_inset Quotes erd
36269 is added to the document class options.
36274 , display style formulas can also be scaled.
36277 \begin_layout Chapter
36278 Objects Surrounded by Text
36279 \begin_inset Index idx
36282 \begin_layout Plain Layout
36291 \begin_layout Section
36293 \begin_inset CommandInset label
36295 name "sec:Wrap-Floats"
36300 \begin_inset Index idx
36303 \begin_layout Plain Layout
36304 Floats ! Wrap Floats
36310 \begin_inset Index idx
36313 \begin_layout Plain Layout
36314 Surrounded by text ! Wrap Floats
36322 \begin_layout Standard
36323 \begin_inset Wrap figure
36330 \begin_layout Plain Layout
36331 \begin_inset Graphics
36332 filename clipart/mobius.eps
36334 scaleBeforeRotation
36335 rotateOrigin center
36342 \begin_layout Plain Layout
36343 \begin_inset Caption Standard
36345 \begin_layout Plain Layout
36346 \begin_inset CommandInset label
36348 name "fig:This-is-a"
36352 This is a figure wrap float.
36362 This float type is used if you want to wrap text around a figure or table
36363 so that it only occupies some fraction of the column width.
36364 It can be inserted using the menu
36366 Insert\SpecialChar menuseparator
36367 Floats\SpecialChar menuseparator
36369 \begin_inset space ~
36373 \begin_inset space ~
36381 \begin_inset space ~
36385 \begin_inset space ~
36390 if the \SpecialChar LaTeX
36396 \begin_inset Index idx
36399 \begin_layout Plain Layout
36401 -packages ! wrapfig
36410 \begin_layout Plain Layout
36411 Installing a \SpecialChar LaTeX
36412 -package is explained it in the
36416 \begin_inset space ~
36426 The settings of the float can be modified by right-clicking on the float
36428 The mandatory settings are the float
36441 that specifies how much the float is set into the paragraph
36442 \begin_inset space \thinspace{}
36446 \begin_inset space \thinspace{}
36449 page margin, and the
36452 \begin_inset space ~
36457 that specifies how many text lines the float will approximately need.
36458 The line span is often hard to approximate; so it is better only to use
36459 it when you encounter float placement problems.
36460 You can furthermore decide if \SpecialChar LaTeX
36461 is allowed to let the float float within
36462 the paragraph or to surrounding paragraphs.
36464 \begin_inset space ~
36468 \begin_inset CommandInset ref
36470 reference "fig:This-is-a"
36474 is an example text wrap float with a width of 40
36475 \begin_inset space \thinspace{}
36479 \begin_inset space \thinspace{}
36482 cm overhang, set to the left.
36485 \begin_layout Standard
36486 \begin_inset Note Greyedout
36489 \begin_layout Plain Layout
36495 \begin_inset space ~
36498 wrap float floats are fragile! E.
36499 \begin_inset space \thinspace{}
36503 \begin_inset space \space{}
36506 having a figure too close to the bottom of the page can mess things up in
36507 such a way that the float does not appear in the output or that it is placed
36508 over some other text.
36516 \begin_layout Standard
36517 In general, the following applies for wrap floats:
36520 \begin_layout Itemize
36521 They should not be placed in paragraphs that run over a page break.
36522 That means that wrap floats are better inserted in their exact place when
36523 the document is almost finished and you are able to estimate where page
36524 breaks will appear.
36527 \begin_layout Itemize
36528 They should either be placed in their own paragraph before the paragraph
36529 where they should wrap into or within a paragraph.
36532 \begin_layout Itemize
36533 In consecutive paragraphs they may cause troubles, so ensure that there
36534 is a text paragraph between them as separator.
36537 \begin_layout Itemize
36538 They are not allowed in section headings or tables.
36541 \begin_layout Itemize
36542 Their numbering and referencing works as described in chap.
36543 \begin_inset space \thinspace{}
36547 \begin_inset CommandInset ref
36549 reference "chap:Floats"
36556 \begin_layout Section
36557 Surrounded Fixed Objects
36558 \begin_inset Index idx
36561 \begin_layout Plain Layout
36562 Surrounded by text ! Fixed objects
36570 \begin_layout Standard
36571 The wrap floats described in sec.
36572 \begin_inset space \thinspace{}
36576 \begin_inset CommandInset ref
36578 reference "sec:Wrap-Floats"
36582 have these positions in the paragraph:
36583 \begin_inset Separator parbreak
36589 \begin_layout Standard
36592 \begin_inset Tabular
36593 <lyxtabular version="3" rows="2" columns="2">
36594 <features tabularvalignment="middle">
36595 <column alignment="center" valignment="top">
36596 <column alignment="center" valignment="top">
36598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36601 \begin_layout Plain Layout
36604 arg "dialog-show-new-inset graphics"
36612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36615 \begin_layout Plain Layout
36623 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36626 \begin_layout Plain Layout
36632 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36635 \begin_layout Plain Layout
36647 \begin_inset Tabular
36648 <lyxtabular version="3" rows="2" columns="2">
36649 <features tabularvalignment="middle">
36650 <column alignment="center" valignment="top">
36651 <column alignment="center" valignment="top">
36653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36656 \begin_layout Plain Layout
36662 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36665 \begin_layout Plain Layout
36668 arg "dialog-show-new-inset graphics"
36678 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36681 \begin_layout Plain Layout
36687 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36690 \begin_layout Plain Layout
36704 \begin_layout Standard
36705 To get an object exactly at the position where it is inserted, for example
36706 to get one of these positions:
36707 \begin_inset VSpace defskip
36713 \begin_layout Standard
36716 \begin_inset Tabular
36717 <lyxtabular version="3" rows="2" columns="2">
36718 <features tabularvalignment="middle">
36719 <column alignment="center" valignment="top">
36720 <column alignment="center" valignment="top">
36722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36725 \begin_layout Plain Layout
36731 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36734 \begin_layout Plain Layout
36742 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36745 \begin_layout Plain Layout
36748 arg "dialog-show-new-inset graphics"
36756 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36759 \begin_layout Plain Layout
36771 \begin_inset Tabular
36772 <lyxtabular version="3" rows="2" columns="2">
36773 <features tabularvalignment="middle">
36774 <column alignment="center" valignment="top">
36775 <column alignment="center" valignment="top">
36777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36780 \begin_layout Plain Layout
36786 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36789 \begin_layout Plain Layout
36797 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36800 \begin_layout Plain Layout
36806 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36809 \begin_layout Plain Layout
36812 arg "dialog-show-new-inset graphics"
36826 \begin_inset Tabular
36827 <lyxtabular version="3" rows="2" columns="3">
36828 <features tabularvalignment="middle">
36829 <column alignment="center" valignment="top">
36830 <column alignment="center" valignment="top">
36831 <column alignment="center" valignment="top">
36833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36836 \begin_layout Plain Layout
36842 <cell alignment="center" valignment="top" topline="true" usebox="none">
36845 \begin_layout Plain Layout
36848 arg "dialog-show-new-inset graphics"
36856 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36859 \begin_layout Plain Layout
36867 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36870 \begin_layout Plain Layout
36876 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36879 \begin_layout Plain Layout
36885 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36888 \begin_layout Plain Layout
36900 \begin_inset Tabular
36901 <lyxtabular version="3" rows="2" columns="3">
36902 <features tabularvalignment="middle">
36903 <column alignment="center" valignment="top">
36904 <column alignment="center" valignment="top">
36905 <column alignment="center" valignment="top">
36907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36910 \begin_layout Plain Layout
36916 <cell alignment="center" valignment="top" topline="true" usebox="none">
36919 \begin_layout Plain Layout
36925 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36928 \begin_layout Plain Layout
36936 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36939 \begin_layout Plain Layout
36945 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36948 \begin_layout Plain Layout
36951 arg "dialog-show-new-inset graphics"
36959 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36962 \begin_layout Plain Layout
36976 \begin_layout Standard
36979 \begin_inset Tabular
36980 <lyxtabular version="3" rows="3" columns="2">
36981 <features tabularvalignment="middle">
36982 <column alignment="center" valignment="top">
36983 <column alignment="center" valignment="top">
36985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36988 \begin_layout Plain Layout
36994 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36997 \begin_layout Plain Layout
37005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37008 \begin_layout Plain Layout
37011 arg "dialog-show-new-inset graphics"
37019 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37022 \begin_layout Plain Layout
37030 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37033 \begin_layout Plain Layout
37039 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37042 \begin_layout Plain Layout
37054 \begin_inset Tabular
37055 <lyxtabular version="3" rows="3" columns="3">
37056 <features tabularvalignment="middle">
37057 <column alignment="center" valignment="top">
37058 <column alignment="center" valignment="top">
37059 <column alignment="center" valignment="top">
37061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37064 \begin_layout Plain Layout
37070 <cell alignment="center" valignment="top" topline="true" usebox="none">
37073 \begin_layout Plain Layout
37079 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37082 \begin_layout Plain Layout
37090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37093 \begin_layout Plain Layout
37099 <cell alignment="center" valignment="top" usebox="none">
37102 \begin_layout Plain Layout
37105 arg "dialog-show-new-inset graphics"
37113 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37116 \begin_layout Plain Layout
37124 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37127 \begin_layout Plain Layout
37133 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37136 \begin_layout Plain Layout
37142 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37145 \begin_layout Plain Layout
37157 \begin_inset Tabular
37158 <lyxtabular version="3" rows="3" columns="2">
37159 <features tabularvalignment="middle">
37160 <column alignment="center" valignment="top">
37161 <column alignment="center" valignment="top">
37163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37166 \begin_layout Plain Layout
37172 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37175 \begin_layout Plain Layout
37183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37186 \begin_layout Plain Layout
37192 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37195 \begin_layout Plain Layout
37198 arg "dialog-show-new-inset graphics"
37208 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37211 \begin_layout Plain Layout
37217 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37220 \begin_layout Plain Layout
37234 \begin_layout Standard
37236 you can use the \SpecialChar LaTeX
37242 \begin_inset Index idx
37245 \begin_layout Plain Layout
37247 -packages ! picinpar
37253 Here is an example:
37256 \begin_layout Standard
37260 \begin_layout Plain Layout
37270 \begin_inset Note Note
37273 \begin_layout Plain Layout
37274 The following section will only be displayed when the \SpecialChar LaTeX
37287 \begin_layout Standard
37291 \begin_layout Plain Layout
37295 begin{window}[2,c,{
37301 \begin_inset Graphics
37302 filename clipart/mobius.eps
37305 scaleBeforeRotation
37306 rotateOrigin center
37314 \begin_layout Plain Layout
37319 \begin_layout Plain Layout
37328 It was in the spring of the year 1894 that all London was interested, and
37329 the fashionable world dismayed, by the murder of the Honourable Ronald
37330 Adair under most unusual and inexplicable circumstances.
37331 The public has already learned those particulars of the crime which
37337 \begin_layout Plain Layout
37348 came out in the police investigation, but a good deal was suppressed upon
37349 that occasion, since the case for the prosecution was so overwhelmingly
37350 strong that it was not necessary to bring forward all the facts.
37351 Only now, at the end of nearly ten years, am I allowed to supply those
37352 missing links which make up the whole of that remarkable chain.
37358 \begin_layout Plain Layout
37370 \begin_layout Standard
37374 \begin_layout Plain Layout
37383 Footnote of the paragraph with the fixed object.
37387 \begin_layout Plain Layout
37397 \begin_layout Standard
37398 Surrounded fixed objects are used to let text float around them, at which
37399 the object's position in the paragraph can be determined by the number
37401 In contrary to floats is it not possible to have a numbered caption.
37404 \begin_layout Standard
37405 A fixed object is inserted by adding the command
37408 \begin_layout Standard
37413 begin{window}[2,c,{
37416 \begin_layout Standard
37417 as \SpecialChar TeX
37418 Code at the beginning of the paragraph.
37419 The first parameter in the bracket, here '2', defines the number of lines
37420 above the object, the second, here 'c', the position of the object.
37421 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37422 Behind the command you insert the object.
37423 In this example an image with a width of 40
37424 \begin_inset space \thinspace{}
37427 % of the text column width was inserted.
37428 The object can also be a table, a box or an equation.
37429 Behind the object the command
37432 \begin_layout Standard
37435 },description text]
37436 \begin_inset Newline newline
37442 \begin_layout Standard
37445 \begin_inset Quotes eld
37453 \begin_inset Quotes erd
37456 is in the second line.
37457 The description text is optional.
37458 The text surrounding the object must be in the same paragraph as the object,
37459 so it must begin directly after the
37464 At the end of the paragraph insert the command:
37467 \begin_layout Standard
37475 \begin_layout Standard
37476 Within a paragraph with a fixed object, you cannot insert footnotes in the
37478 You have to use instead the command
37484 inside the paragraph and outside the command
37490 as described in sec.
37491 \begin_inset space \thinspace{}
37495 \begin_inset CommandInset ref
37497 reference "sec:Footnotes"
37504 \begin_layout Standard
37508 \begin_layout Plain Layout
37518 \begin_inset Note Note
37521 \begin_layout Plain Layout
37522 The following will be displayed when the \SpecialChar LaTeX
37535 \begin_layout Standard
37536 You need to install the \SpecialChar LaTeX
37541 to see the following part of this section in the output.
37544 \begin_layout Standard
37548 \begin_layout Plain Layout
37560 \begin_layout Section
37562 \begin_inset Index idx
37565 \begin_layout Plain Layout
37572 \begin_inset Index idx
37575 \begin_layout Plain Layout
37576 Surrounded by text ! Initials
37584 \begin_layout Standard
37585 To use initials, you must have the \SpecialChar LaTeX
37591 \begin_inset Index idx
37594 \begin_layout Plain Layout
37596 -packages ! lettrine
37601 installed and use the module
37605 in your document (menu
37607 Document\SpecialChar menuseparator
37608 Settings\SpecialChar menuseparator
37612 To insert an initial, use the style
37617 This style has a mandatory and two optional arguments.
37618 The arguments are inserted via the
37623 The mandatory argument
37627 contains the letter(s) that is the initial, the argument
37630 \begin_inset space ~
37634 \begin_inset space ~
37639 contains the rest of the word or text of the initial letter(s).
37644 contains parameters to modify the initial.
37645 For more information about the possible parameters see the documentation
37651 \begin_inset CommandInset citation
37658 The style itself contains the text that is surrounding the initial.
37659 The usual style is hereby that the word whose first letter is the initial,
37667 \begin_layout Standard
37668 Here are some examples:
37671 \begin_layout Standard
37675 \begin_layout Plain Layout
37685 \begin_inset Note Note
37688 \begin_layout Plain Layout
37689 The following section will only be displayed when the \SpecialChar LaTeX
37702 \begin_layout Enumerate
37703 No optional argument, the initial is the letter 'I' in the math font
37704 \begin_inset Formula $\mathfrak{Fraktur}$
37708 \begin_inset Separator parbreak
37715 \begin_layout Initial
37716 \begin_inset Argument 2
37719 \begin_layout Plain Layout
37720 \begin_inset Formula $\mathfrak{I}$
37729 \begin_inset Argument 3
37732 \begin_layout Plain Layout
37738 was in the spring of the year 1894 that all London was interested, and
37739 the fashionable world dismayed, by the murder of the Honourable Ronald
37740 Adair under most unusual and inexplicable circumstances.
37741 The public has already learned those particulars of the crime which came
37742 out in the police investigation, but a good deal was suppressed upon that
37743 occasion, since the case for the prosecution was so overwhelmingly strong
37744 that it was not necessary to bring forward all the facts.
37745 \begin_inset Newpage newpage
37752 \begin_layout Enumerate
37753 Only one line is surrounding the initial, which is formed by two letters
37754 in standard font and no text is printed in small caps:
37755 \begin_inset Separator parbreak
37762 \begin_layout Initial
37763 \begin_inset Argument 1
37766 \begin_layout Plain Layout
37773 \begin_inset Argument 2
37776 \begin_layout Plain Layout
37782 was in the spring of the year 1894 that all London was interested, and
37783 the fashionable world dismayed, by the murder of the Honourable Ronald
37784 Adair under most unusual and inexplicable circumstances.
37785 The public has already learned those particulars of the crime which came
37786 out in the police investigation, but a good deal was suppressed upon that
37787 occasion, since the case for the prosecution was so overwhelmingly strong
37788 that it was not necessary to bring forward all the facts.
37792 \begin_layout Enumerate
37793 Magenta, hanging initial over 3
37794 \begin_inset space ~
37797 lines in the math font
37798 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37802 \begin_inset Quotes eld
37805 t was in the spring
37806 \begin_inset Quotes erd
37813 ; to color the initial, you must insert this command before the initial:
37814 \begin_inset Newline newline
37828 \begin_inset Newline newline
37836 \begin_inset Quotes eld
37840 \begin_inset Quotes erd
37844 \begin_inset Quotes eld
37848 \begin_inset Quotes erd
37852 \begin_inset Quotes eld
37856 \begin_inset Quotes erd
37860 \begin_inset Quotes eld
37864 \begin_inset Quotes erd
37868 \begin_inset Quotes eld
37872 \begin_inset Quotes erd
37876 \begin_inset Quotes eld
37880 \begin_inset Quotes erd
37884 \begin_inset Quotes eld
37888 \begin_inset Quotes erd
37892 \begin_inset Quotes eld
37896 \begin_inset Quotes erd
37899 , and add this command to the document preamble:
37900 \begin_inset Newline newline
37907 @ifundefined{textcolor}
37908 \begin_inset Newline newline
37912 \begin_inset space ~
37917 usepackage{color}}{}
37920 \begin_inset Separator parbreak
37927 \begin_layout Standard
37931 \begin_layout Plain Layout
37945 \begin_inset Note Note
37948 \begin_layout Plain Layout
37949 makes the initial magenta
37957 \begin_layout Initial
37958 \begin_inset Argument 1
37961 \begin_layout Plain Layout
37962 lines=3, lhang=0.33, loversize=0.25
37968 \begin_inset Argument 2
37971 \begin_layout Plain Layout
37972 \begin_inset Formula $\mathcal{I}$
37981 \begin_inset Argument 3
37984 \begin_layout Plain Layout
37985 t was in the spring
37990 of the year 1894 that all London was interested, and the fashionable world
37991 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37992 and inexplicable circumstances.
37993 The public has already learned those particulars of the crime which came
37994 out in the police investigation, but a good deal was suppressed upon that
37995 occasion, since the case for the prosecution was so overwhelmingly strong
37996 that it was not necessary to bring forward all the facts.
38000 \begin_layout Standard
38004 \begin_layout Plain Layout
38014 \begin_inset Note Note
38017 \begin_layout Plain Layout
38018 The following will be displayed when the \SpecialChar LaTeX
38031 \begin_layout Standard
38032 You need to install the \SpecialChar LaTeX
38037 to see the following part of this section in the output.
38040 \begin_layout Standard
38044 \begin_layout Plain Layout
38056 \begin_layout Chapter
38057 External Document Parts
38058 \begin_inset Index idx
38061 \begin_layout Plain Layout
38062 External Document Parts
38070 \begin_layout Standard
38073 Insert\SpecialChar menuseparator
38076 you can insert external material into your document.
38080 \begin_layout Description
38082 \begin_inset space ~
38085 Document Another \SpecialChar LyX
38086 document; its content is directly inserted to your document.
38089 \begin_layout Description
38091 \begin_inset space ~
38094 Text A text document; each line is inserted in your document as a separate
38098 \begin_layout Description
38100 \begin_inset space ~
38104 \begin_inset space ~
38108 \begin_inset space ~
38111 Lines A text document; text lines are inserted in your document continuously
38112 but an empty text line creates a new paragraph.
38115 \begin_layout Description
38117 \begin_inset space ~
38120 Material Files in various formats.
38123 \begin_layout Description
38125 \begin_inset space ~
38128 Document \SpecialChar LyX
38129 or \SpecialChar LaTeX
38133 \begin_layout Section
38135 \begin_inset Index idx
38138 \begin_layout Plain Layout
38139 External Document Parts ! External Material
38147 \begin_layout Standard
38148 The external material feature allows you to insert files into your document
38149 without converting them to a format that can be read by the document output
38152 takes care of the necessary conversions.
38153 This is similar to images that can be inserted in various image formats
38154 in \SpecialChar LyX
38156 When you have enabled Instant Preview in \SpecialChar LyX
38157 's preferences under
38160 \begin_inset space ~
38164 \begin_inset space ~
38167 feel\SpecialChar menuseparator
38170 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38174 \begin_layout Standard
38175 External material can be inserted via the
38179 dialog that is accessible with the menu
38181 Insert\SpecialChar menuseparator
38182 File\SpecialChar menuseparator
38184 \begin_inset space ~
38190 Currently the following file types (
38197 \begin_layout Description
38199 \begin_inset space ~
38202 diagram This template supports chess position diagrams made with the program
38206 \begin_inset CommandInset href
38209 target "http://en.wikipedia.org/wiki/XBoard"
38218 \begin_layout Description
38219 Date This inserts the date in the form
38224 This is a date inserted as external material:
38225 \begin_inset External
38232 \begin_inset space ~
38236 \begin_inset Note Note
38239 \begin_layout Plain Layout
38240 Remove the protected space when bug 4398 is fixed!
38246 \begin_inset Newline newline
38249 The date is not shown within \SpecialChar LyX
38250 , only in the output.
38251 There are two other methods of inserting a date: Via menu
38253 Insert\SpecialChar menuseparator
38256 and with the \SpecialChar LaTeX
38263 as \SpecialChar TeX
38265 The different methods are compared in Table
38266 \begin_inset space ~
38270 \begin_inset CommandInset ref
38272 reference "tab:Comparison-of-the"
38279 \begin_layout Description
38281 \begin_inset space ~
38284 diagram This template supports diagrams created with the program
38287 \begin_inset CommandInset href
38290 target "http://en.wikipedia.org/wiki/Dia_(software)"
38299 \begin_layout Description
38300 Spreadsheet With this template you can insert spreadsheets
38301 \begin_inset space \thinspace{}
38305 \begin_inset space \thinspace{}
38308 tables in the format of
38311 \begin_inset CommandInset href
38314 target "http://en.wikipedia.org/wiki/Gnumeric"
38321 \begin_inset CommandInset href
38323 name "OpenDocument"
38324 target "http://en.wikipedia.org/wiki/OpenDocument"
38329 \begin_inset CommandInset href
38331 name "Microsoft Office XML"
38332 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38337 \begin_inset CommandInset href
38339 name "Office Open XML"
38340 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38345 For this feature \SpecialChar LyX
38346 must have found the program
38350 during its configuration.
38351 This program is part of Gnumeric, so that you must have Gnumeric installed,
38352 also if you don't have tables in the Gnumeric format.
38353 For examples and possible limitations have a look at \SpecialChar LyX
38361 \begin_layout Description
38363 \begin_inset space ~
38367 \begin_inset space ~
38370 music This template is used for music notation typeset with the program
38371 \begin_inset Newline linebreak
38377 \begin_inset CommandInset href
38380 target "http://en.wikipedia.org/wiki/LilyPond"
38387 For \SpecialChar LyX
38388 's extended support for LilyPond have a look at \SpecialChar LyX
38396 \begin_layout Description
38398 \begin_inset space ~
38401 pages With this template you can insert PDF documents to your document.
38402 To specify the range of pages that should be included, use the option
38412 LaTeX and LyX options
38415 The argument of this option is a comma separated list, containing page
38416 numbers (insert as option
38420 ), ranges of page numbers (
38424 ) or any combination.
38425 To insert empty pages use {}.
38427 \begin_inset space \thinspace{}
38431 \begin_inset space ~
38436 pages={3,{},8-11,15}
38438 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38439 Page ranges are specified in the syntax
38448 This selects all pages from
38461 defaults to the first page; omitting
38465 defaults to the last page of the document.
38466 The last page can also be selected with the keyword
38471 (This is only permitted in a page range.) So
38475 will insert all pages of the document and
38479 will insert all pages in reverse order.
38480 If the pages option is not specified, only the first page of the PDF is
38482 \begin_inset Newline newline
38489 inserts the pages with their original size, if this option is not given,
38490 the pages will be resized to fith the width of the page of your document.
38495 you can specify the width and height of the input pages and their rotation.
38496 If another width than 100
38497 \begin_inset space \thinspace{}
38500 Scale% is used, the option
38504 will be overwritten.
38505 For more info and possible options, have a look into the documentation
38506 of the \SpecialChar LaTeX
38512 \begin_inset CommandInset citation
38519 \begin_inset Index idx
38522 \begin_layout Plain Layout
38524 -packages ! pdfpages
38530 \begin_inset Newline newline
38533 To use this template in a
38537 presentation you need to first insert an
38541 environment and in a subsequent paragraph a \SpecialChar TeX
38542 Code box containing the command
38547 setbeamertemplate{background canvas}{}
38550 Then you can insert as many paragraphs containing the PDFPages template
38552 Behind the included PDF pages you can resume the Beamer presentation by
38553 beginning a new frame or by starting a new section.
38554 To avoid stray blank pages prior to the PDF pages, make sure to use the
38559 alignment for the paragraph containing the template.
38560 \begin_inset Newline newline
38563 Here is an included PDF which is rotated by -5°:
38564 \begin_inset External
38566 filename clipart/Abstract.pdf
38567 extra LaTeX "noautoscale, pages=-"
38569 rotateOrigin bottomleft
38576 \begin_layout Description
38578 \begin_inset space ~
38581 image This can be used for bitmap images.
38582 The image can be treated in the
38586 dialog like the images that are usually included via the
38590 dialog as described in section
38591 \begin_inset space ~
38595 \begin_inset CommandInset ref
38597 reference "sec:Graphics-Dialog"
38602 Here is an inserted raster image:
38603 \begin_inset External
38604 template RasterImage
38605 filename clipart/ToolbarEnvBox.png
38612 \begin_layout Description
38614 \begin_inset space ~
38617 graphics This can be used for vector graphics.
38618 The image can be treated in the
38622 dialog like the images that are usually included via the
38626 dialog as described in section
38627 \begin_inset space ~
38631 \begin_inset CommandInset ref
38633 reference "sec:Graphics-Dialog"
38638 Here is an inserted vector graphics:
38639 \begin_inset External
38640 template VectorGraphics
38641 filename clipart/SVG-Drawing.svg
38649 \begin_layout Description
38651 \begin_inset space ~
38654 figure This template supports images created with the program
38657 \begin_inset CommandInset href
38660 target "http://en.wikipedia.org/wiki/Xfig"
38669 \begin_layout Standard
38670 \begin_inset Float table
38676 \begin_layout Plain Layout
38677 \begin_inset Caption Standard
38679 \begin_layout Plain Layout
38680 \begin_inset CommandInset label
38682 name "tab:Comparison-of-the"
38686 Comparison of the date input methods.
38694 \begin_layout Plain Layout
38696 \begin_inset Tabular
38697 <lyxtabular version="3" rows="4" columns="4">
38698 <features tabularvalignment="middle">
38699 <column alignment="center" valignment="top">
38700 <column alignment="center" valignment="top">
38701 <column alignment="center" valignment="top">
38702 <column alignment="center" valignment="top">
38704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38707 \begin_layout Plain Layout
38713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38716 \begin_layout Plain Layout
38719 External Material\SpecialChar menuseparator
38725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38728 \begin_layout Plain Layout
38731 Insert\SpecialChar menuseparator
38737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38740 \begin_layout Plain Layout
38752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38755 \begin_layout Plain Layout
38762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38765 \begin_layout Plain Layout
38771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38774 \begin_layout Plain Layout
38780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38783 \begin_layout Plain Layout
38784 as \SpecialChar TeX
38792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38795 \begin_layout Plain Layout
38802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38805 \begin_layout Plain Layout
38811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38814 \begin_layout Plain Layout
38820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38823 \begin_layout Plain Layout
38831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38834 \begin_layout Plain Layout
38840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38843 \begin_layout Plain Layout
38849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38852 \begin_layout Plain Layout
38858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38861 \begin_layout Plain Layout
38880 \begin_layout Standard
38881 When you use the option
38893 dialog, only the path to the inserted file is shown in the output.
38894 \begin_inset Newline newline
38897 External material is displayed in \SpecialChar LyX
38898 either as a box like this:
38899 \begin_inset Graphics
38900 filename clipart/ExternalMaterial.png
38902 scaleBeforeRotation
38906 or as image, depending on the option
38912 LaTeX and LyX options
38917 \begin_layout Standard
38924 manual explains how you can define your own templates.
38927 \begin_layout Section
38929 \begin_inset CommandInset label
38931 name "sec:Child-Documents"
38936 \begin_inset Index idx
38939 \begin_layout Plain Layout
38940 External Document Parts ! Child Documents
38946 \begin_inset Index idx
38949 \begin_layout Plain Layout
38958 \begin_layout Standard
38959 Child documents are used if you have a long document consisting of several
38960 larger parts or sections.
38961 For maintenance it is often useful and sometimes even required to split
38962 the document into several files that can be revised separately.
38963 The different documents are then the so called
38964 \begin_inset Quotes eld
38968 \begin_inset Quotes erd
38971 , and a master document connects them to print the full document or parts
38973 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38975 the bibliography, and labels for cross-references.
38978 \begin_layout Standard
38979 To be able to work on child documents without the need to open their master,
38980 specify in the child document the master in the menu
38982 Document\SpecialChar menuseparator
38983 Settings\SpecialChar menuseparator
38985 \begin_inset space ~
38991 This master document will then be used in the background by \SpecialChar LyX
38993 the child document.
38996 \begin_layout Standard
38997 Included documents are displayed in \SpecialChar LyX
38998 as a box like this:
38999 \begin_inset Graphics
39000 filename clipart/ChildDocument.png
39001 scaleBeforeRotation
39005 To include child documents in a master document use the menu
39007 Insert\SpecialChar menuseparator
39008 File\SpecialChar menuseparator
39010 \begin_inset space ~
39016 A dialog pops up where you can choose between four include methods:
39019 \begin_layout Description
39020 Include You can include \SpecialChar LyX
39021 and \SpecialChar LaTeX
39031 dialog, the included document will be opened in \SpecialChar LyX
39032 in a new file tab so that
39034 \begin_inset Newline newline
39040 \begin_layout Standard
39041 Here is a child document inserted using
39046 \begin_inset CommandInset include
39047 LatexCommand include
39048 filename "DummyDocument1.lyx"
39055 \begin_layout Standard
39056 The section numbering includes the sections of the included files in the
39057 order they are inserted in the master document.
39058 The included example document has for example a subsection that is numbered
39059 as a subsection of this section.
39060 Labels of included documents can be referenced: Subsection
39061 \begin_inset space ~
39065 \begin_inset CommandInset ref
39067 reference "subsec:External-Subsection-1"
39074 \begin_layout Standard
39075 The preamble of the child document is ignored; only the preamble of the
39076 master document is used.
39077 Branches in child documents will be ignored by the master document when
39078 the master document does not have a branch with the same name.
39079 Included documents are inserted starting on a new page and ending with
39083 \begin_layout Standard
39084 \begin_inset Note Greyedout
39087 \begin_layout Plain Layout
39092 If you have included a \SpecialChar LyX
39093 or \SpecialChar LaTeX
39094 file, you are warned when you export/view the
39095 document in case the child document uses another document class than the
39096 master document as this will lead to unexpected outputs.
39104 \begin_layout Description
39105 Input This method is very similar to the Include method.
39106 The differences are:
39107 \begin_inset Separator parbreak
39114 \begin_layout Itemize
39115 Input files don't start with a new page and don't end with a page break.
39118 \begin_layout Itemize
39119 Input files can be previewed in \SpecialChar LyX
39123 \begin_inset space ~
39128 is enabled in \SpecialChar LyX
39129 's preferences under
39132 \begin_inset space ~
39136 \begin_inset space ~
39139 feel\SpecialChar menuseparator
39145 \begin_layout Itemize
39146 You cannot exclude Input files via the menu
39148 Document\SpecialChar menuseparator
39149 Settings\SpecialChar menuseparator
39156 \begin_layout Standard
39157 Here is a child document inserted using
39162 \begin_inset CommandInset include
39164 filename "DummyDocument2.lyx"
39171 \begin_layout Description
39172 Verbatim With this method any text file can be included.
39173 The file is shown in the output with its source code; no command used in
39174 the text is invoked.
39175 You can use the option
39177 Mark spaces in output
39179 that displays the character
39180 \begin_inset Quotes eld
39187 \begin_layout Plain Layout
39197 \begin_inset Quotes erd
39200 for every space character in the source code.
39201 The difference from the method via the menu
39203 Insert\SpecialChar menuseparator
39204 File\SpecialChar menuseparator
39206 \begin_inset space ~
39211 is that the document content is not shown in \SpecialChar LyX
39215 \begin_layout Standard
39216 Here is a child document inserted as Verbatim:
39217 \begin_inset CommandInset include
39218 LatexCommand verbatiminput
39219 filename "DUMMYT~1.TXT"
39224 \begin_inset VSpace bigskip
39227 Here is a child document inserted as Verbatim using the
39229 Mark spaces in output
39232 \begin_inset CommandInset include
39233 LatexCommand verbatiminput*
39234 filename "DUMMYT~1.TXT"
39241 \begin_layout Standard
39242 \begin_inset VSpace bigskip
39248 \begin_layout Standard
39249 \begin_inset Note Greyedout
39252 \begin_layout Plain Layout
39257 As you can see in the examples above, the text of the documents included
39262 is not broken at the end of the document lines.
39270 \begin_layout Description
39271 Listings This type is described in chapter
39272 \begin_inset space ~
39276 \begin_inset CommandInset ref
39278 reference "cha:Program-Code-Listings"
39285 \begin_layout Standard
39286 \begin_inset Note Greyedout
39289 \begin_layout Plain Layout
39294 Including the same document twice in a document using different methods
39295 could cause \SpecialChar LaTeX
39304 \begin_layout Standard
39305 If you want to view/export only selected children of your master document,
39306 either because you want to save compiling time or because you want to distribut
39307 e single chapters of the book you are just writing, you can exclude children
39309 This is done via the menu
39311 Document\SpecialChar menuseparator
39312 Settings\SpecialChar menuseparator
39316 You can exclude\SpecialChar breakableslash
39317 include children by double-clicking on the
39321 column of the respective child document in the list (note that this only
39322 works for documents embedded via
39323 \begin_inset Quotes eld
39327 \begin_inset Quotes erd
39331 \begin_inset Quotes eld
39335 \begin_inset Quotes erd
39341 Maintain counters and references
39343 is enabled, \SpecialChar LyX
39344 will assure that all page numbers, references etc.
39345 \begin_inset space ~
39348 are correct as if the whole document was processed.
39349 This is useful if you want the selected sub-documents to look exactly as
39350 in the context of the whole document.
39351 However, \SpecialChar LyX
39352 needs to process the whole document in the background for this
39354 So if you want to save compile time and if counters and references do not
39355 need to be correct, disable this checkbox.
39358 \begin_layout Standard
39359 Alternatively, you can put each included file into a branch.
39363 \begin_layout Plain Layout
39364 Branches are described in section
39368 of the \SpecialChar LyX
39378 By enabling\SpecialChar breakableslash
39379 disabling branches you can decide which included files will
39380 appear in the output.
39381 This has the advantage that it also works with Input'ed sub-documents.
39382 However, counters and references will not be maintained with this approach.
39385 \begin_layout Chapter
39386 Program Code Listings
39387 \begin_inset CommandInset label
39389 name "cha:Program-Code-Listings"
39394 \begin_inset Index idx
39397 \begin_layout Plain Layout
39404 \begin_inset Index idx
39407 \begin_layout Plain Layout
39414 \begin_inset Index idx
39417 \begin_layout Plain Layout
39426 \begin_layout Standard
39427 To include and typeset program code you can use the
39431 inset that can be inserted via the menu
39433 Insert\SpecialChar menuseparator
39437 The \SpecialChar LaTeX
39443 \begin_inset Index idx
39446 \begin_layout Plain Layout
39448 -packages ! listings
39453 provides a powerful and flexible way to insert program source code into
39457 \begin_layout Standard
39458 Right-clicking on a listings inset opens the context menu containing where
39459 you can set the listings format.
39462 \begin_layout Standard
39463 By default, a listing starts a new paragraph in the output.
39464 The placement option
39467 \begin_inset space ~
39472 prints the listing inline like this:
39473 \begin_inset listings
39474 lstparams "language={C++}"
39478 \begin_layout Plain Layout
39486 \begin_inset Newline newline
39493 creates a listings float where you can specify the placement options
39494 \begin_inset Quotes eld
39502 \begin_inset Quotes erd
39506 \begin_inset Quotes eld
39514 \begin_inset Quotes erd
39518 \begin_inset Quotes eld
39526 \begin_inset Quotes erd
39530 \begin_inset Quotes eld
39538 \begin_inset Quotes erd
39541 corresponding to the float placement options described in section
39542 \begin_inset space ~
39546 \begin_inset CommandInset ref
39548 reference "sec:Float-Placement"
39553 The placement options can be mixed and are inserted without any separation,
39555 \begin_inset space \thinspace{}
39559 \begin_inset space \space{}
39563 \begin_inset Quotes eld
39571 \begin_inset Quotes erd
39576 \begin_inset Quotes eld
39580 \begin_inset Quotes erd
39583 has sometimes no effect, but you don't need to use the
39587 option in this case as also non-float listings can have captions and be
39591 \begin_layout Standard
39592 You can add captions to listings with the menu
39594 Insert\SpecialChar menuseparator
39598 Listings can be referenced like floats: Listing
39599 \begin_inset space ~
39603 \begin_inset CommandInset ref
39605 reference "lst:Example-Listing"
39610 A list of listings which contains all listings with captions can be created
39613 Insert\SpecialChar menuseparator
39615 \begin_inset space ~
39619 \begin_inset space ~
39622 TOC\SpecialChar menuseparator
39626 The list entries are the listing caption and the listing number.
39629 \begin_layout Standard
39630 \begin_inset listings
39631 lstparams "language=Python"
39635 \begin_layout Plain Layout
39637 \begin_inset Caption Standard
39639 \begin_layout Plain Layout
39640 \begin_inset CommandInset label
39642 name "lst:Example-Listing"
39646 Example Listing float
39651 # Example listing float
39654 \begin_layout Plain Layout
39659 \begin_layout Plain Layout
39661 'this is a python function'
39664 \begin_layout Plain Layout
39674 \begin_layout Standard
39675 When you have set a programming language in the listings dialog, the keywords
39676 of this language will be recognized and specially typeset in the output.
39677 In the example listings the Python keyword
39678 \begin_inset Quotes eld
39682 \begin_inset Quotes erd
39685 is recognized and printed bold in the output.
39688 \begin_layout Standard
39689 \begin_inset Note Greyedout
39692 \begin_layout Plain Layout
39697 If you don't get bold keywords when using typewriter fonts, your
39701 font probably doesn't provide a bold shape.
39702 In this case select a different one in the menu
39704 Document\SpecialChar menuseparator
39705 Settings\SpecialChar menuseparator
39717 provide bold shapes.)
39725 \begin_layout Standard
39729 \begin_inset space ~
39734 of the listings dialog you can specify the line numbering style.
39735 You can insert a number to specify which lines are numbered in the field
39742 \begin_inset space \thinspace{}
39746 \begin_inset space \space{}
39750 \begin_inset Quotes eld
39754 \begin_inset Quotes erd
39757 , only every 3rd line will be numbered.
39760 \begin_layout Standard
39761 You can furthermore specify a range of lines; only these will then appear
39765 Extended character table
39767 should be used when you use national characters like the German umlauts
39769 \begin_inset Newline newline
39772 Here is an example listing with left line numbering, step
39773 \begin_inset Quotes eld
39777 \begin_inset Quotes erd
39781 \begin_inset Quotes eld
39785 \begin_inset Quotes erd
39789 \begin_inset Quotes eld
39792 Extended character table
39793 \begin_inset Quotes erd
39797 \begin_inset Quotes eld
39801 \begin_inset space ~
39805 \begin_inset space ~
39809 \begin_inset Quotes erd
39813 \begin_inset space \thinspace{}
39817 \begin_inset space \thinspace{}
39823 \begin_layout Standard
39824 \begin_inset listings
39825 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39829 \begin_layout Plain Layout
39834 \begin_layout Plain Layout
39836 'this is a python function'
39839 \begin_layout Plain Layout
39844 \begin_layout Plain Layout
39849 \begin_layout Plain Layout
39851 'This is a German word: Tschüß'
39854 \begin_layout Plain Layout
39859 \begin_layout Plain Layout
39864 \begin_layout Plain Layout
39866 'this is a python function'
39869 \begin_layout Plain Layout
39879 \begin_layout Standard
39880 When you have tabulators in your listing, you can specify the number of
39881 characters that are spanned by a tabulator in the field
39884 \begin_inset space ~
39892 \begin_layout Standard
39893 \begin_inset Note Greyedout
39896 \begin_layout Plain Layout
39901 Due to a bug in the
39905 package the line numbering is shifted by a line by every previous listing.
39906 That's the reason why the lines 2 and 5 are numbered in the above listing
39907 and not the lines 3 and 6.
39915 \begin_layout Standard
39916 \begin_inset VSpace bigskip
39922 \begin_layout Standard
39923 It is also possible to print lines from a file as listing.
39924 To do this, use the menu
39926 Insert\SpecialChar menuseparator
39927 File\SpecialChar menuseparator
39930 and choose the type
39938 \begin_layout Plain Layout
39939 The other child document types are described in section
39940 \begin_inset space ~
39944 \begin_inset CommandInset ref
39946 reference "sec:Child-Documents"
39955 In the child document dialog you can specify the listing parameters in
39957 To show a list of all available parameters, type in a question mark
39958 \begin_inset Quotes eld
39962 \begin_inset Quotes erd
39968 \begin_layout Standard
39969 To reference child document listings, write a label text into the corresponding
39970 field of the child document dialog.
39971 The label can then be referenced using the menu
39973 Insert\SpecialChar menuseparator
39979 \begin_layout Standard
39981 \begin_inset space ~
39985 \begin_inset CommandInset ref
39987 reference "lst:file-listing"
39991 is an example for a listing of a file; there the lines 10
39992 \begin_inset space \thinspace{}
39996 \begin_inset space \thinspace{}
39999 15 of this \SpecialChar LyX
40003 \begin_layout Standard
40004 \begin_inset CommandInset include
40005 LatexCommand lstinputlisting
40006 filename "EmbeddedObjects.lyx"
40007 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40014 \begin_layout Standard
40015 \begin_inset VSpace bigskip
40021 \begin_layout Standard
40022 Inserting a formula into a listing can be done the following way:
40025 \begin_layout Enumerate
40026 Open the listings dialog and add
40027 \begin_inset Newline newline
40035 \begin_inset Newline newline
40038 to the field of the
40045 \begin_layout Enumerate
40046 Create a formula outside the listing
40049 \begin_layout Enumerate
40050 Copy the content of the formula (not the formula inset) to the clipboard
40060 \begin_layout Enumerate
40061 In the listing write
40062 \begin_inset Quotes eld
40070 \begin_inset Quotes erd
40073 and copy from the clipboard between the dollar-signs (shortcut
40082 \begin_layout Standard
40083 \begin_inset listings
40084 lstparams "language=Python,mathescape=true"
40088 \begin_layout Plain Layout
40090 \begin_inset Caption Standard
40092 \begin_layout Plain Layout
40093 Example Listing float containing a formula
40098 # Example listing float
40101 \begin_layout Plain Layout
40106 \begin_layout Plain Layout
40119 \begin_layout Plain Layout
40129 \begin_layout Standard
40130 \begin_inset VSpace bigskip
40136 \begin_layout Standard
40137 Global listings settings can be set in the
40139 Document\SpecialChar menuseparator
40140 Settings\SpecialChar menuseparator
40144 To get there a list of available options, type in a question mark
40145 \begin_inset Quotes eld
40149 \begin_inset Quotes erd
40155 \begin_layout Standard
40156 For more information about the
40160 package, we refer to its documentation
40161 \begin_inset CommandInset citation
40170 \begin_layout Standard
40171 \begin_inset Newpage newpage
40177 \begin_layout Chapter
40179 Units available in \SpecialChar LyX
40181 \begin_inset Index idx
40184 \begin_layout Plain Layout
40191 \begin_inset CommandInset label
40193 name "cha:Units-available-in"
40200 \begin_layout Standard
40201 To understand the units described in this documentation, Table
40202 \begin_inset space ~
40206 \begin_inset CommandInset ref
40208 reference "tab:Units"
40212 explains all units available in \SpecialChar LyX
40216 \begin_layout Standard
40217 \begin_inset Float table
40223 \begin_layout Plain Layout
40224 \begin_inset Caption Standard
40226 \begin_layout Plain Layout
40227 \begin_inset CommandInset label
40241 \begin_layout Plain Layout
40242 \begin_inset VSpace medskip
40248 \begin_layout Plain Layout
40250 \begin_inset Tabular
40251 <lyxtabular version="3" rows="20" columns="3">
40252 <features tabularvalignment="middle">
40253 <column alignment="center" valignment="top">
40254 <column alignment="center" valignment="top">
40255 <column alignment="center" valignment="top">
40257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40260 \begin_layout Plain Layout
40266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40269 \begin_layout Plain Layout
40275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40278 \begin_layout Plain Layout
40287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40290 \begin_layout Plain Layout
40296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40299 \begin_layout Plain Layout
40305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40308 \begin_layout Plain Layout
40316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40319 \begin_layout Plain Layout
40325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40328 \begin_layout Plain Layout
40334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40337 \begin_layout Plain Layout
40345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40348 \begin_layout Plain Layout
40354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40357 \begin_layout Plain Layout
40363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40366 \begin_layout Plain Layout
40374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40377 \begin_layout Plain Layout
40383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40386 \begin_layout Plain Layout
40388 \begin_inset space \thinspace{}
40392 \begin_inset space \thinspace{}
40400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40403 \begin_layout Plain Layout
40411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40414 \begin_layout Plain Layout
40420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40423 \begin_layout Plain Layout
40425 \begin_inset space \thinspace{}
40429 \begin_inset space \thinspace{}
40437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40440 \begin_layout Plain Layout
40448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40451 \begin_layout Plain Layout
40457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40460 \begin_layout Plain Layout
40461 scaled point (65536
40462 \begin_inset space \thinspace{}
40466 \begin_inset space \thinspace{}
40474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40477 \begin_layout Plain Layout
40485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40488 \begin_layout Plain Layout
40494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40497 \begin_layout Plain Layout
40499 \begin_inset space \thinspace{}
40503 \begin_inset space \thinspace{}
40511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40514 \begin_layout Plain Layout
40522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40525 \begin_layout Plain Layout
40531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40534 \begin_layout Plain Layout
40536 \begin_inset space \thinspace{}
40540 \begin_inset Formula $\approx$
40544 \begin_inset space \thinspace{}
40552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40555 \begin_layout Plain Layout
40563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40566 \begin_layout Plain Layout
40572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40575 \begin_layout Plain Layout
40577 \begin_inset space \thinspace{}
40581 \begin_inset space \thinspace{}
40589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40592 \begin_layout Plain Layout
40600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40603 \begin_layout Plain Layout
40609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40612 \begin_layout Plain Layout
40613 % of original image width
40618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40621 \begin_layout Plain Layout
40629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40632 \begin_layout Plain Layout
40638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40641 \begin_layout Plain Layout
40647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40650 \begin_layout Plain Layout
40660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40663 \begin_layout Plain Layout
40669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40672 \begin_layout Plain Layout
40678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40681 \begin_layout Plain Layout
40691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40694 \begin_layout Plain Layout
40700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40703 \begin_layout Plain Layout
40709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40712 \begin_layout Plain Layout
40722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40725 \begin_layout Plain Layout
40731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40734 \begin_layout Plain Layout
40740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40743 \begin_layout Plain Layout
40753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40756 \begin_layout Plain Layout
40762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40765 \begin_layout Plain Layout
40771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40774 \begin_layout Plain Layout
40784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40787 \begin_layout Plain Layout
40793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40796 \begin_layout Plain Layout
40802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40805 \begin_layout Plain Layout
40815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40818 \begin_layout Plain Layout
40824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40827 \begin_layout Plain Layout
40837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40840 \begin_layout Plain Layout
40848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40851 \begin_layout Plain Layout
40857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40860 \begin_layout Plain Layout
40870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40873 \begin_layout Plain Layout
40881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40884 \begin_layout Plain Layout
40890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40893 \begin_layout Plain Layout
40895 \begin_inset space \thinspace{}
40899 \begin_inset space \thinspace{}
40907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40910 \begin_layout Plain Layout
40929 \begin_layout Chapter
40930 Output File Formats with Graphics
40931 \begin_inset CommandInset label
40933 name "cha:Output-File-Formats"
40940 \begin_layout Section
40942 \begin_inset Index idx
40945 \begin_layout Plain Layout
40952 \begin_inset Index idx
40955 \begin_layout Plain Layout
40960 \begin_layout Plain Layout
40971 \begin_layout Plain Layout
40986 \begin_layout Standard
40987 This file type has the extension
40988 \begin_inset Quotes eld
40996 \begin_inset Quotes erd
41001 \begin_inset Quotes eld
41005 \begin_inset Quotes erd
41008 (DVI), because it is completely portable; you can move them from one machine
41009 to another without needing to do any sort of conversion.
41010 At the time when this file-format was developed, this was no matter of
41012 DVIs are used for quick previews and as pre-stage for other output formats,
41016 \begin_layout Standard
41017 \begin_inset Note Greyedout
41020 \begin_layout Plain Layout
41025 DVI-files do not contain images; they will only be a linked.
41030 So don't forget this, if you move your
41034 file to another computer.
41035 This property can also slow down your computer when you view the DVI, because
41036 the DVI-viewer has to convert the image in the background to make it visible
41037 when you scroll in the DVI.
41038 So it is recommended that you use PDF for files with many images.
41041 \begin_layout Standard
41042 You can export your document to DVI by using the menu
41044 File\SpecialChar menuseparator
41045 Export\SpecialChar menuseparator
41049 You can view your document as DVI via the
41056 \begin_layout Section
41058 \begin_inset Index idx
41061 \begin_layout Plain Layout
41062 File Formats ! PostScript
41068 \begin_inset Index idx
41071 \begin_layout Plain Layout
41076 \begin_layout Plain Layout
41087 \begin_layout Plain Layout
41102 \begin_layout Standard
41103 This file type has the extension
41104 \begin_inset Quotes eld
41112 \begin_inset Quotes erd
41116 PostScript was developed by the company
41120 as a printer language.
41121 The file therefore contains commands that the printer uses to print the
41123 PostScript can be seen as a
41124 \begin_inset Quotes eld
41127 programming language
41128 \begin_inset Quotes erd
41131 ; you can calculate with it and draw diagrams and images.
41135 \begin_layout Plain Layout
41136 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41143 \begin_inset CommandInset citation
41154 Due to this ability, the files are often bigger than PDFs.
41157 \begin_layout Standard
41158 PostScript can only contain images in the format
41159 \begin_inset Quotes eld
41162 Encapsulated PostScript
41163 \begin_inset Quotes erd
41166 (EPS, file extension
41167 \begin_inset Quotes eld
41175 \begin_inset Quotes erd
41179 As \SpecialChar LyX
41180 allows you to use any known image format in your document, it has to
41181 convert images in the background to EPS.
41183 \begin_inset space ~
41187 \begin_inset space ~
41190 images in your document, \SpecialChar LyX
41192 \begin_inset space ~
41195 conversions whenever you view or export your document.
41196 This will slow down your work flow with \SpecialChar LyX
41198 So if you plan to use PostScript, you can insert your images directly as
41199 EPS to avoid this problem.
41202 \begin_layout Standard
41203 You can export your document to PostScript using the menu
41205 File\SpecialChar menuseparator
41206 Export\SpecialChar menuseparator
41210 You can view your document as PostScript via the
41217 \begin_layout Section
41219 \begin_inset Index idx
41222 \begin_layout Plain Layout
41229 \begin_inset Index idx
41232 \begin_layout Plain Layout
41241 \begin_layout Standard
41242 This file type has the extension
41243 \begin_inset Quotes eld
41251 \begin_inset Quotes erd
41256 \begin_inset Quotes eld
41259 Portable Document Format
41260 \begin_inset Quotes erd
41263 (PDF) was developed by
41267 as a derivative of PostScript.
41268 It is more compressed and it uses fewer commands than PostScript.
41270 \begin_inset Quotes eld
41274 \begin_inset Quotes erd
41277 implies, it can be processed at any computer system and the printed output
41278 looks exactly the same.
41281 \begin_layout Standard
41282 PDF can contain images in its own PDF format, in the format
41283 \begin_inset Quotes eld
41286 Joint Photographic Experts Group
41287 \begin_inset Quotes erd
41290 (JPG, file extension
41291 \begin_inset Quotes eld
41299 \begin_inset Quotes erd
41303 \begin_inset Quotes eld
41311 \begin_inset Quotes erd
41314 ), and in the format
41315 \begin_inset Quotes eld
41318 Portable Network Graphics
41319 \begin_inset Quotes erd
41322 (PNG, file extension
41323 \begin_inset Quotes eld
41331 \begin_inset Quotes erd
41335 Nevertheless you can use any other image format, because \SpecialChar LyX
41337 in the background to one of these formats.
41338 But as described in the section about PostScript, the image conversion
41339 will slow down your work flow.
41340 So it is recommended that you use images in one of the three mentioned
41344 \begin_layout Standard
41345 You can export your document to PDF via the menu
41347 File\SpecialChar menuseparator
41350 in three different ways:
41353 \begin_layout Description
41355 \begin_inset space ~
41358 (ps2pdf) This uses the program
41362 that creates a PDF from a PostScript-version of your file.
41363 The PostScript-version is produced by the program
41367 which uses a DVI-version as intermediate step.
41368 So this export variant consists of three conversions.
41371 \begin_layout Description
41373 \begin_inset space ~
41376 (dvipdfm) This uses the program
41380 that converts your file in the background to DVI and in a second step to
41384 \begin_layout Description
41386 \begin_inset space ~
41389 (pdflatex) This uses the program
41393 that converts your file directly to PDF.
41396 \begin_layout Standard
41397 It is recommended that you use
41400 \begin_inset space ~
41409 supports all features of actual PDF-versions, is quick and works stable.
41414 is not under development and therefore a bit outdated.
41417 \begin_layout Standard
41418 You can view your document as PDF via the
41422 menu or by using a toolbar button.
41425 \begin_layout Chapter
41426 List of dvips color names
41427 \begin_inset CommandInset label
41429 name "chap:List-of-dvips-colornames"
41436 \begin_layout Standard
41437 \begin_inset Tabular
41438 <lyxtabular version="3" rows="17" columns="4">
41439 <features tabularvalignment="middle">
41440 <column alignment="left" valignment="top" width="0pt">
41441 <column alignment="left" valignment="top" width="0pt">
41442 <column alignment="left" valignment="top" width="0pt">
41443 <column alignment="left" valignment="top" width="0pt">
41445 <cell alignment="left" valignment="top" usebox="none">
41448 \begin_layout Plain Layout
41452 \begin_layout Plain Layout
41465 \begin_layout Plain Layout
41476 \begin_layout Plain Layout
41488 <cell alignment="left" valignment="top" usebox="none">
41491 \begin_layout Plain Layout
41495 \begin_layout Plain Layout
41508 \begin_layout Plain Layout
41519 \begin_layout Plain Layout
41531 <cell alignment="left" valignment="top" usebox="none">
41534 \begin_layout Plain Layout
41538 \begin_layout Plain Layout
41551 \begin_layout Plain Layout
41562 \begin_layout Plain Layout
41574 <cell alignment="left" valignment="top" usebox="none">
41577 \begin_layout Plain Layout
41581 \begin_layout Plain Layout
41594 \begin_layout Plain Layout
41605 \begin_layout Plain Layout
41619 <cell alignment="center" valignment="top" usebox="none">
41622 \begin_layout Plain Layout
41626 \begin_layout Plain Layout
41639 \begin_layout Plain Layout
41647 \begin_inset Phantom Phantom
41650 \begin_layout Plain Layout
41660 \begin_layout Plain Layout
41672 <cell alignment="center" valignment="top" usebox="none">
41675 \begin_layout Plain Layout
41679 \begin_layout Plain Layout
41692 \begin_layout Plain Layout
41700 \begin_inset Phantom Phantom
41703 \begin_layout Plain Layout
41713 \begin_layout Plain Layout
41725 <cell alignment="center" valignment="top" usebox="none">
41728 \begin_layout Plain Layout
41732 \begin_layout Plain Layout
41745 \begin_layout Plain Layout
41753 \begin_inset Phantom Phantom
41756 \begin_layout Plain Layout
41766 \begin_layout Plain Layout
41778 <cell alignment="center" valignment="top" usebox="none">
41781 \begin_layout Plain Layout
41785 \begin_layout Plain Layout
41798 \begin_layout Plain Layout
41806 \begin_inset Phantom Phantom
41809 \begin_layout Plain Layout
41819 \begin_layout Plain Layout
41833 <cell alignment="left" valignment="top" usebox="none">
41836 \begin_layout Plain Layout
41840 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41861 \begin_inset Phantom Phantom
41864 \begin_layout Plain Layout
41874 \begin_layout Plain Layout
41886 <cell alignment="left" valignment="top" usebox="none">
41889 \begin_layout Plain Layout
41893 \begin_layout Plain Layout
41906 \begin_layout Plain Layout
41914 \begin_inset Phantom Phantom
41917 \begin_layout Plain Layout
41927 \begin_layout Plain Layout
41939 <cell alignment="left" valignment="top" usebox="none">
41942 \begin_layout Plain Layout
41946 \begin_layout Plain Layout
41959 \begin_layout Plain Layout
41967 \begin_inset Phantom Phantom
41970 \begin_layout Plain Layout
41980 \begin_layout Plain Layout
41992 <cell alignment="left" valignment="top" usebox="none">
41995 \begin_layout Plain Layout
41999 \begin_layout Plain Layout
42012 \begin_layout Plain Layout
42020 \begin_inset Phantom Phantom
42023 \begin_layout Plain Layout
42033 \begin_layout Plain Layout
42047 <cell alignment="left" valignment="top" usebox="none">
42050 \begin_layout Plain Layout
42054 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42075 \begin_inset Phantom Phantom
42078 \begin_layout Plain Layout
42088 \begin_layout Plain Layout
42100 <cell alignment="left" valignment="top" usebox="none">
42103 \begin_layout Plain Layout
42107 \begin_layout Plain Layout
42120 \begin_layout Plain Layout
42128 \begin_inset Phantom Phantom
42131 \begin_layout Plain Layout
42141 \begin_layout Plain Layout
42153 <cell alignment="left" valignment="top" usebox="none">
42156 \begin_layout Plain Layout
42160 \begin_layout Plain Layout
42173 \begin_layout Plain Layout
42181 \begin_inset Phantom Phantom
42184 \begin_layout Plain Layout
42194 \begin_layout Plain Layout
42206 <cell alignment="left" valignment="top" usebox="none">
42209 \begin_layout Plain Layout
42213 \begin_layout Plain Layout
42226 \begin_layout Plain Layout
42234 \begin_inset Phantom Phantom
42237 \begin_layout Plain Layout
42247 \begin_layout Plain Layout
42261 <cell alignment="left" valignment="top" usebox="none">
42264 \begin_layout Plain Layout
42268 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42289 \begin_inset Phantom Phantom
42292 \begin_layout Plain Layout
42302 \begin_layout Plain Layout
42314 <cell alignment="left" valignment="top" usebox="none">
42317 \begin_layout Plain Layout
42321 \begin_layout Plain Layout
42334 \begin_layout Plain Layout
42342 \begin_inset Phantom Phantom
42345 \begin_layout Plain Layout
42355 \begin_layout Plain Layout
42367 <cell alignment="left" valignment="top" usebox="none">
42370 \begin_layout Plain Layout
42374 \begin_layout Plain Layout
42387 \begin_layout Plain Layout
42395 \begin_inset Phantom Phantom
42398 \begin_layout Plain Layout
42408 \begin_layout Plain Layout
42420 <cell alignment="left" valignment="top" usebox="none">
42423 \begin_layout Plain Layout
42427 \begin_layout Plain Layout
42440 \begin_layout Plain Layout
42448 \begin_inset Phantom Phantom
42451 \begin_layout Plain Layout
42461 \begin_layout Plain Layout
42475 <cell alignment="left" valignment="top" usebox="none">
42478 \begin_layout Plain Layout
42482 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42503 \begin_inset Phantom Phantom
42506 \begin_layout Plain Layout
42516 \begin_layout Plain Layout
42528 <cell alignment="left" valignment="top" usebox="none">
42531 \begin_layout Plain Layout
42535 \begin_layout Plain Layout
42548 \begin_layout Plain Layout
42556 \begin_inset Phantom Phantom
42559 \begin_layout Plain Layout
42569 \begin_layout Plain Layout
42581 <cell alignment="left" valignment="top" usebox="none">
42584 \begin_layout Plain Layout
42588 \begin_layout Plain Layout
42601 \begin_layout Plain Layout
42609 \begin_inset Phantom Phantom
42612 \begin_layout Plain Layout
42622 \begin_layout Plain Layout
42634 <cell alignment="left" valignment="top" usebox="none">
42637 \begin_layout Plain Layout
42641 \begin_layout Plain Layout
42654 \begin_layout Plain Layout
42662 \begin_inset Phantom Phantom
42665 \begin_layout Plain Layout
42675 \begin_layout Plain Layout
42689 <cell alignment="center" valignment="top" usebox="none">
42692 \begin_layout Plain Layout
42696 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42717 \begin_inset Phantom Phantom
42720 \begin_layout Plain Layout
42730 \begin_layout Plain Layout
42742 <cell alignment="center" valignment="top" usebox="none">
42745 \begin_layout Plain Layout
42749 \begin_layout Plain Layout
42762 \begin_layout Plain Layout
42770 \begin_inset Phantom Phantom
42773 \begin_layout Plain Layout
42783 \begin_layout Plain Layout
42795 <cell alignment="center" valignment="top" usebox="none">
42798 \begin_layout Plain Layout
42802 \begin_layout Plain Layout
42815 \begin_layout Plain Layout
42823 \begin_inset Phantom Phantom
42826 \begin_layout Plain Layout
42836 \begin_layout Plain Layout
42848 <cell alignment="center" valignment="top" usebox="none">
42851 \begin_layout Plain Layout
42855 \begin_layout Plain Layout
42868 \begin_layout Plain Layout
42876 \begin_inset Phantom Phantom
42879 \begin_layout Plain Layout
42889 \begin_layout Plain Layout
42903 <cell alignment="left" valignment="top" usebox="none">
42906 \begin_layout Plain Layout
42910 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42931 \begin_inset Phantom Phantom
42934 \begin_layout Plain Layout
42944 \begin_layout Plain Layout
42956 <cell alignment="left" valignment="top" usebox="none">
42959 \begin_layout Plain Layout
42963 \begin_layout Plain Layout
42976 \begin_layout Plain Layout
42984 \begin_inset Phantom Phantom
42987 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43009 <cell alignment="left" valignment="top" usebox="none">
43012 \begin_layout Plain Layout
43016 \begin_layout Plain Layout
43029 \begin_layout Plain Layout
43037 \begin_inset Phantom Phantom
43040 \begin_layout Plain Layout
43050 \begin_layout Plain Layout
43062 <cell alignment="left" valignment="top" usebox="none">
43065 \begin_layout Plain Layout
43069 \begin_layout Plain Layout
43082 \begin_layout Plain Layout
43090 \begin_inset Phantom Phantom
43093 \begin_layout Plain Layout
43103 \begin_layout Plain Layout
43117 <cell alignment="left" valignment="top" usebox="none">
43120 \begin_layout Plain Layout
43124 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43145 \begin_inset Phantom Phantom
43148 \begin_layout Plain Layout
43158 \begin_layout Plain Layout
43170 <cell alignment="left" valignment="top" usebox="none">
43173 \begin_layout Plain Layout
43177 \begin_layout Plain Layout
43190 \begin_layout Plain Layout
43198 \begin_inset Phantom Phantom
43201 \begin_layout Plain Layout
43211 \begin_layout Plain Layout
43223 <cell alignment="left" valignment="top" usebox="none">
43226 \begin_layout Plain Layout
43230 \begin_layout Plain Layout
43243 \begin_layout Plain Layout
43251 \begin_inset Phantom Phantom
43254 \begin_layout Plain Layout
43264 \begin_layout Plain Layout
43276 <cell alignment="left" valignment="top" usebox="none">
43279 \begin_layout Plain Layout
43283 \begin_layout Plain Layout
43296 \begin_layout Plain Layout
43304 \begin_inset Phantom Phantom
43307 \begin_layout Plain Layout
43317 \begin_layout Plain Layout
43331 <cell alignment="left" valignment="top" usebox="none">
43334 \begin_layout Plain Layout
43338 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43359 \begin_inset Phantom Phantom
43362 \begin_layout Plain Layout
43372 \begin_layout Plain Layout
43384 <cell alignment="left" valignment="top" usebox="none">
43387 \begin_layout Plain Layout
43391 \begin_layout Plain Layout
43404 \begin_layout Plain Layout
43412 \begin_inset Phantom Phantom
43415 \begin_layout Plain Layout
43425 \begin_layout Plain Layout
43437 <cell alignment="left" valignment="top" usebox="none">
43440 \begin_layout Plain Layout
43444 \begin_layout Plain Layout
43457 \begin_layout Plain Layout
43465 \begin_inset Phantom Phantom
43468 \begin_layout Plain Layout
43478 \begin_layout Plain Layout
43490 <cell alignment="left" valignment="top" usebox="none">
43493 \begin_layout Plain Layout
43497 \begin_layout Plain Layout
43510 \begin_layout Plain Layout
43518 \begin_inset Phantom Phantom
43521 \begin_layout Plain Layout
43531 \begin_layout Plain Layout
43545 <cell alignment="left" valignment="top" usebox="none">
43548 \begin_layout Plain Layout
43552 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43573 \begin_inset Phantom Phantom
43576 \begin_layout Plain Layout
43586 \begin_layout Plain Layout
43598 <cell alignment="left" valignment="top" usebox="none">
43601 \begin_layout Plain Layout
43605 \begin_layout Plain Layout
43618 \begin_layout Plain Layout
43626 \begin_inset Phantom Phantom
43629 \begin_layout Plain Layout
43639 \begin_layout Plain Layout
43651 <cell alignment="left" valignment="top" usebox="none">
43654 \begin_layout Plain Layout
43658 \begin_layout Plain Layout
43671 \begin_layout Plain Layout
43679 \begin_inset Phantom Phantom
43682 \begin_layout Plain Layout
43692 \begin_layout Plain Layout
43704 <cell alignment="left" valignment="top" usebox="none">
43707 \begin_layout Plain Layout
43711 \begin_layout Plain Layout
43724 \begin_layout Plain Layout
43732 \begin_inset Phantom Phantom
43735 \begin_layout Plain Layout
43745 \begin_layout Plain Layout
43759 <cell alignment="left" valignment="top" usebox="none">
43762 \begin_layout Plain Layout
43766 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43787 \begin_inset Phantom Phantom
43790 \begin_layout Plain Layout
43800 \begin_layout Plain Layout
43812 <cell alignment="left" valignment="top" usebox="none">
43815 \begin_layout Plain Layout
43819 \begin_layout Plain Layout
43832 \begin_layout Plain Layout
43840 \begin_inset Phantom Phantom
43843 \begin_layout Plain Layout
43853 \begin_layout Plain Layout
43865 <cell alignment="left" valignment="top" usebox="none">
43868 \begin_layout Plain Layout
43872 \begin_layout Plain Layout
43885 \begin_layout Plain Layout
43893 \begin_inset Phantom Phantom
43896 \begin_layout Plain Layout
43906 \begin_layout Plain Layout
43918 <cell alignment="left" valignment="top" usebox="none">
43921 \begin_layout Plain Layout
43925 \begin_layout Plain Layout
43938 \begin_layout Plain Layout
43946 \begin_inset Phantom Phantom
43949 \begin_layout Plain Layout
43959 \begin_layout Plain Layout
43973 <cell alignment="left" valignment="top" usebox="none">
43976 \begin_layout Plain Layout
43980 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44001 \begin_inset Phantom Phantom
44004 \begin_layout Plain Layout
44014 \begin_layout Plain Layout
44026 <cell alignment="left" valignment="top" usebox="none">
44029 \begin_layout Plain Layout
44033 \begin_layout Plain Layout
44046 \begin_layout Plain Layout
44054 \begin_inset Phantom Phantom
44057 \begin_layout Plain Layout
44067 \begin_layout Plain Layout
44079 <cell alignment="left" valignment="top" usebox="none">
44082 \begin_layout Plain Layout
44086 \begin_layout Plain Layout
44099 \begin_layout Plain Layout
44107 \begin_inset Phantom Phantom
44110 \begin_layout Plain Layout
44120 \begin_layout Plain Layout
44132 <cell alignment="left" valignment="top" usebox="none">
44135 \begin_layout Plain Layout
44139 \begin_layout Plain Layout
44152 \begin_layout Plain Layout
44160 \begin_inset Phantom Phantom
44163 \begin_layout Plain Layout
44173 \begin_layout Plain Layout
44187 <cell alignment="left" valignment="top" usebox="none">
44190 \begin_layout Plain Layout
44194 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44215 \begin_inset Phantom Phantom
44218 \begin_layout Plain Layout
44228 \begin_layout Plain Layout
44240 <cell alignment="left" valignment="top" usebox="none">
44243 \begin_layout Plain Layout
44247 \begin_layout Plain Layout
44260 \begin_layout Plain Layout
44268 \begin_inset Phantom Phantom
44271 \begin_layout Plain Layout
44281 \begin_layout Plain Layout
44293 <cell alignment="left" valignment="top" usebox="none">
44296 \begin_layout Plain Layout
44300 \begin_layout Plain Layout
44313 \begin_layout Plain Layout
44321 \begin_inset Phantom Phantom
44324 \begin_layout Plain Layout
44334 \begin_layout Plain Layout
44346 <cell alignment="left" valignment="top" usebox="none">
44349 \begin_layout Plain Layout
44353 \begin_layout Plain Layout
44366 \begin_layout Plain Layout
44374 \begin_inset Phantom Phantom
44377 \begin_layout Plain Layout
44387 \begin_layout Plain Layout
44401 <cell alignment="left" valignment="top" usebox="none">
44404 \begin_layout Plain Layout
44408 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44429 \begin_inset Phantom Phantom
44432 \begin_layout Plain Layout
44442 \begin_layout Plain Layout
44454 <cell alignment="left" valignment="top" usebox="none">
44457 \begin_layout Plain Layout
44461 \begin_layout Plain Layout
44474 \begin_layout Plain Layout
44482 \begin_inset Phantom Phantom
44485 \begin_layout Plain Layout
44495 \begin_layout Plain Layout
44507 <cell alignment="left" valignment="top" usebox="none">
44510 \begin_layout Plain Layout
44514 \begin_layout Plain Layout
44527 \begin_layout Plain Layout
44535 \begin_inset Phantom Phantom
44538 \begin_layout Plain Layout
44548 \begin_layout Plain Layout
44560 <cell alignment="left" valignment="top" usebox="none">
44563 \begin_layout Plain Layout
44567 \begin_layout Plain Layout
44580 \begin_layout Plain Layout
44588 \begin_inset Phantom Phantom
44591 \begin_layout Plain Layout
44601 \begin_layout Plain Layout
44615 <cell alignment="left" valignment="top" usebox="none">
44618 \begin_layout Plain Layout
44622 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44643 \begin_inset Phantom Phantom
44646 \begin_layout Plain Layout
44656 \begin_layout Plain Layout
44668 <cell alignment="left" valignment="top" usebox="none">
44671 \begin_layout Plain Layout
44675 \begin_layout Plain Layout
44688 \begin_layout Plain Layout
44696 \begin_inset Phantom Phantom
44699 \begin_layout Plain Layout
44709 \begin_layout Plain Layout
44721 <cell alignment="left" valignment="top" usebox="none">
44724 \begin_layout Plain Layout
44728 \begin_layout Plain Layout
44741 \begin_layout Plain Layout
44749 \begin_inset Phantom Phantom
44752 \begin_layout Plain Layout
44762 \begin_layout Plain Layout
44774 <cell alignment="left" valignment="top" usebox="none">
44777 \begin_layout Plain Layout
44781 \begin_layout Plain Layout
44794 \begin_layout Plain Layout
44802 \begin_inset Phantom Phantom
44805 \begin_layout Plain Layout
44815 \begin_layout Plain Layout
44829 <cell alignment="left" valignment="top" usebox="none">
44832 \begin_layout Plain Layout
44836 \begin_layout Plain Layout
44849 \begin_layout Plain Layout
44857 \begin_inset Phantom Phantom
44860 \begin_layout Plain Layout
44870 \begin_layout Plain Layout
44882 <cell alignment="left" valignment="top" usebox="none">
44885 \begin_layout Plain Layout
44891 <cell alignment="left" valignment="top" usebox="none">
44894 \begin_layout Plain Layout
44900 <cell alignment="left" valignment="top" usebox="none">
44903 \begin_layout Plain Layout
44917 \begin_layout Chapter
44918 Explanation of Equation
44919 \begin_inset space ~
44923 \begin_inset CommandInset ref
44930 \begin_inset CommandInset label
44932 name "cha:Explanation-of-Equation"
44939 \begin_layout Standard
44940 We can calculate the total width of
44945 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44949 \begin_inset Formula
44951 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44957 \begin_inset Formula $W_{g\,n}$
44960 is the given width of all cells,
44966 is the \SpecialChar LaTeX
44967 -length between the cell text and the cell border (its default value
44969 \begin_inset space \thinspace{}
44979 is the thickness of the cell border line, the default is 0.4
44980 \begin_inset space \thinspace{}
44986 \begin_layout Standard
44988 \begin_inset space ~
44992 \begin_inset CommandInset ref
44994 reference "eq:Wtot_n"
44998 , the total width of a multicolumn
44999 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45003 \begin_inset Formula
45005 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45013 \begin_layout Standard
45014 By setting equation
45015 \begin_inset space ~
45019 \begin_inset CommandInset ref
45021 reference "eq:Wtot_n"
45026 \begin_inset CommandInset ref
45028 reference "eq:Wtot_mult"
45032 equal we can calculate the needed given width
45033 \begin_inset Formula $W_{g\,n}$
45040 columns are spanned, so that each column has a total width of
45041 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45045 \begin_inset Formula
45047 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45055 \begin_layout Bibliography
45056 \begin_inset CommandInset bibitem
45057 LatexCommand bibitem
45058 key "latexcompanion"
45062 Frank Mittelbach and Michel Goossens:
45064 The \SpecialChar LaTeX
45065 Companion Second Edition.
45068 Addison-Wesley, 2004
45071 \begin_layout Bibliography
45072 \begin_inset CommandInset bibitem
45073 LatexCommand bibitem
45078 Helmut Kopka and Patrick W.
45081 A Guide to \SpecialChar LaTeX
45085 Addison-Wesley, 2003
45088 \begin_layout Bibliography
45089 \begin_inset CommandInset bibitem
45090 LatexCommand bibitem
45098 : A Document Preparation System.
45101 Addison-Wesley, second edition, 1994
45104 \begin_layout Bibliography
45105 \begin_inset CommandInset bibitem
45106 LatexCommand bibitem
45111 Documentation of the \SpecialChar LaTeX
45115 \begin_inset CommandInset href
45118 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45125 \begin_inset Index idx
45128 \begin_layout Plain Layout
45130 -packages ! arydshln
45138 \begin_layout Bibliography
45139 \begin_inset CommandInset bibitem
45140 LatexCommand bibitem
45145 Documentation of the \SpecialChar LaTeX
45149 \begin_inset CommandInset href
45152 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45159 \begin_inset Index idx
45162 \begin_layout Plain Layout
45164 -packages ! booktabs
45172 \begin_layout Bibliography
45173 \begin_inset CommandInset bibitem
45174 LatexCommand bibitem
45179 Documentation of the \SpecialChar LaTeX
45183 \begin_inset CommandInset href
45186 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45193 \begin_inset Index idx
45196 \begin_layout Plain Layout
45198 -packages ! caption
45206 \begin_layout Bibliography
45207 \begin_inset CommandInset bibitem
45208 LatexCommand bibitem
45213 Documentation of the \SpecialChar LaTeX
45217 \begin_inset CommandInset href
45220 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45227 \begin_inset Index idx
45230 \begin_layout Plain Layout
45232 -packages ! diagbox
45240 \begin_layout Bibliography
45241 \begin_inset CommandInset bibitem
45242 LatexCommand bibitem
45247 Documentation of the \SpecialChar LaTeX
45251 \begin_inset CommandInset href
45254 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45261 \begin_inset Index idx
45264 \begin_layout Plain Layout
45266 -packages ! endfloat
45274 \begin_layout Bibliography
45275 \begin_inset CommandInset bibitem
45276 LatexCommand bibitem
45281 Documentation of the \SpecialChar LaTeX
45285 \begin_inset CommandInset href
45288 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45295 \begin_inset Index idx
45298 \begin_layout Plain Layout
45300 -packages ! footmisc
45308 \begin_layout Bibliography
45309 \begin_inset CommandInset bibitem
45310 LatexCommand bibitem
45315 Documentation of the \SpecialChar LaTeX
45319 \begin_inset CommandInset href
45322 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45329 \begin_inset Index idx
45332 \begin_layout Plain Layout
45334 -packages ! hyperref
45342 \begin_layout Bibliography
45343 \begin_inset CommandInset bibitem
45344 LatexCommand bibitem
45349 Documentation of the \SpecialChar LaTeX
45353 \begin_inset CommandInset href
45356 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45363 \begin_inset Index idx
45366 \begin_layout Plain Layout
45368 -packages ! hyperref
45376 \begin_layout Bibliography
45377 \begin_inset CommandInset bibitem
45378 LatexCommand bibitem
45383 Documentation of the \SpecialChar LaTeX
45387 \begin_inset CommandInset href
45390 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45397 \begin_inset Index idx
45400 \begin_layout Plain Layout
45402 -packages ! KOMA-Script
45410 \begin_layout Bibliography
45411 \begin_inset CommandInset bibitem
45412 LatexCommand bibitem
45417 Documentation of the \SpecialChar LaTeX
45421 \begin_inset CommandInset href
45424 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45431 \begin_inset CommandInset href
45434 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45439 \begin_inset Index idx
45442 \begin_layout Plain Layout
45444 -packages ! lettrine
45452 \begin_layout Bibliography
45453 \begin_inset CommandInset bibitem
45454 LatexCommand bibitem
45459 Documentation of the \SpecialChar LaTeX
45463 \begin_inset CommandInset href
45466 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45473 \begin_inset Index idx
45476 \begin_layout Plain Layout
45478 -packages ! listings
45486 \begin_layout Bibliography
45487 \begin_inset CommandInset bibitem
45488 LatexCommand bibitem
45493 Documentation of the \SpecialChar LaTeX
45497 \begin_inset CommandInset href
45500 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45507 \begin_inset Index idx
45510 \begin_layout Plain Layout
45512 -packages ! marginnote
45520 \begin_layout Bibliography
45521 \begin_inset CommandInset bibitem
45522 LatexCommand bibitem
45527 Documentation of the \SpecialChar LaTeX
45531 \begin_inset CommandInset href
45534 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45541 \begin_inset Index idx
45544 \begin_layout Plain Layout
45546 -packages ! pdfpages
45554 \begin_layout Bibliography
45555 \begin_inset CommandInset bibitem
45556 LatexCommand bibitem
45561 Documentation of the \SpecialChar LaTeX
45565 \begin_inset CommandInset href
45568 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45575 \begin_inset Index idx
45578 \begin_layout Plain Layout
45580 -packages ! prettyref
45588 \begin_layout Bibliography
45589 \begin_inset CommandInset bibitem
45590 LatexCommand bibitem
45595 Web page of the \SpecialChar LaTeX
45599 \begin_inset CommandInset href
45602 target "http://tug.org/PSTricks/"
45609 \begin_inset Index idx
45612 \begin_layout Plain Layout
45614 -packages ! PSTricks
45622 \begin_layout Bibliography
45623 \begin_inset CommandInset bibitem
45624 LatexCommand bibitem
45629 Documentation of the \SpecialChar LaTeX
45633 \begin_inset CommandInset href
45636 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45643 \begin_inset Index idx
45646 \begin_layout Plain Layout
45648 -packages ! refstyle
45656 \begin_layout Bibliography
45657 \begin_inset CommandInset bibitem
45658 LatexCommand bibitem
45663 Documentation of the \SpecialChar LaTeX
45667 \begin_inset CommandInset href
45670 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45677 \begin_inset Index idx
45680 \begin_layout Plain Layout
45682 -packages ! sidecap
45690 \begin_layout Bibliography
45691 \begin_inset CommandInset bibitem
45692 LatexCommand bibitem
45698 \begin_inset CommandInset href
45701 target "http://wiki.lyx.org/LyX/NewInLyX20"
45705 about new features in
45713 \begin_layout Standard
45714 \begin_inset CommandInset index_print
45715 LatexCommand printindex