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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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 latexpar
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
30939 \begin_inset Box Boxed
30949 height_special "totalheight"
30954 backgroundcolor "none"
30957 \begin_layout Plain Layout
30958 \begin_inset Graphics
30959 filename clipart/without_fntright.pdf
30961 scaleBeforeRotation
30973 \begin_layout Plain Layout
30974 \begin_inset Caption Standard
30976 \begin_layout Plain Layout
30977 \begin_inset CommandInset label
30979 name "fig:Standard-footnote-placement"
30983 Standard footnote placement in two-column documents.
30996 \begin_layout Standard
30997 \begin_inset Float figure
31003 \begin_layout Plain Layout
31006 \begin_inset Box Boxed
31016 height_special "totalheight"
31021 backgroundcolor "none"
31024 \begin_layout Plain Layout
31025 \begin_inset Graphics
31026 filename clipart/with_fntright.pdf
31028 scaleBeforeRotation
31040 \begin_layout Plain Layout
31041 \begin_inset Caption Standard
31043 \begin_layout Plain Layout
31044 \begin_inset CommandInset label
31046 name "fig:Footnote-placement-in"
31050 Footnote placement in two-column documents when the \SpecialChar LaTeX
31068 \begin_layout Standard
31069 \begin_inset VSpace bigskip
31072 In some scientific literature it is usual to collect the footnotes and print
31073 them in a separate paragraph at the end of a section, as in Figure
31074 \begin_inset space ~
31078 \begin_inset CommandInset ref
31080 reference "fig:Endnotes"
31085 They are then called
31086 \begin_inset Quotes eld
31090 \begin_inset Quotes erd
31094 \begin_inset Index idx
31097 \begin_layout Plain Layout
31103 To use endnotes instead of footnotes in your document, load in the menu
31106 Document\SpecialChar menuseparator
31107 Settings\SpecialChar menuseparator
31113 \begin_inset space ~
31117 \begin_inset space ~
31123 To insert the collected footnotes, insert the command
31126 \begin_layout Standard
31134 \begin_layout Standard
31135 in \SpecialChar TeX
31136 Code at the end of a section or chapter.
31139 \begin_layout Standard
31140 \begin_inset Float figure
31145 \begin_layout Plain Layout
31148 \begin_inset Box Boxed
31158 height_special "totalheight"
31163 backgroundcolor "none"
31166 \begin_layout Plain Layout
31167 \begin_inset Graphics
31168 filename clipart/endnotes.pdf
31170 scaleBeforeRotation
31182 \begin_layout Plain Layout
31183 \begin_inset Caption Standard
31185 \begin_layout Plain Layout
31186 \begin_inset CommandInset label
31188 name "fig:Endnotes"
31192 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31206 \begin_layout Standard
31207 \begin_inset VSpace medskip
31210 The paragraph heading for the endnotes isn't automatically translated into
31211 the document language, this must be done manually.
31212 The following preamble command translates the default English
31213 \begin_inset Quotes eld
31217 \begin_inset Quotes erd
31221 \begin_inset Quotes eld
31225 \begin_inset Quotes erd
31231 \begin_layout Standard
31238 notesname}{Anmerkungen}
31241 \begin_layout Standard
31242 \begin_inset VSpace medskip
31245 The numbering of endnotes can be changed like the footnote numbering as
31246 described in section
31247 \begin_inset space ~
31251 \begin_inset CommandInset ref
31253 reference "subsec:Footnote-Numbering"
31257 ; just replace the command
31270 To reset the endnote number use the command
31276 as described in section
31277 \begin_inset space ~
31281 \begin_inset CommandInset ref
31283 reference "subsec:Footnote-Numbering"
31287 and replace the command parameter
31298 \begin_layout Standard
31299 For endnotes there is the command
31303 endnotemark[number]
31305 similar to the command
31311 , that is described in section
31312 \begin_inset space ~
31316 \begin_inset CommandInset ref
31318 reference "sec:Footnotes"
31325 \begin_layout Standard
31326 \begin_inset VSpace bigskip
31329 Footnotes can also be placed in the page margin and the footnote text alignment
31330 can be changed, see the \SpecialChar LaTeX
31336 \begin_inset Index idx
31339 \begin_layout Plain Layout
31341 -packages ! footmisc
31347 \begin_inset CommandInset citation
31353 for more information about this.
31356 \begin_layout Standard
31357 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31359 \begin_inset CommandInset citation
31361 key "latexcompanion,latexguide,latexbook"
31371 \begin_inset Index idx
31374 \begin_layout Plain Layout
31376 -packages ! KOMA-Script
31381 document class, you can adjust all footnote settings using class-specific
31383 \begin_inset CommandInset citation
31392 \begin_layout Section
31394 \begin_inset Index idx
31397 \begin_layout Plain Layout
31398 Notes ! Margin Notes
31406 \begin_layout Standard
31407 Margin notes look and behave in \SpecialChar LyX
31409 They are inserted via the menu
31411 Insert\SpecialChar menuseparator
31413 \begin_inset space ~
31418 or the toolbar button
31421 arg "marginalnote-insert"
31435 \begin_inset Quotes eld
31439 \begin_inset Quotes erd
31442 appears where you can enter the text of the margin note.
31445 \begin_layout Standard
31446 At the side is an example margin note.
31451 \begin_inset Marginal
31454 \begin_layout Plain Layout
31455 This is a margin note.
31463 \begin_layout Standard
31464 Margin notes appear at the right side in single-sided documents.
31465 In double-sided documents they appear in the outer margin – left on even
31466 pages, right on odd pages.
31467 The text of margin notes is aligned opposite to the outer margin – right-aligne
31468 d when the note appears in the left margin.
31469 The first line of the margin note is placed at the position of the text
31470 line where it is inserted in the document.
31473 \begin_layout Standard
31474 \begin_inset VSpace bigskip
31477 To place the margin note in the inner margin, add the command
31480 \begin_layout Standard
31488 \begin_layout Standard
31489 in \SpecialChar TeX
31490 Code before a margin note.
31491 The new placement is valid for all subsequent margin notes.
31496 \begin_layout Plain Layout
31506 \begin_inset Marginal
31509 \begin_layout Plain Layout
31510 This is a margin note in the inner margin.
31518 \begin_inset Newline newline
31524 \begin_inset Note Greyedout
31527 \begin_layout Plain Layout
31532 There is often not enough space in the inner margin so that the notes are
31533 not correctly displayed in the output.
31541 \begin_layout Standard
31542 To return to the default placement insert the command
31545 \begin_layout Standard
31553 \begin_layout Standard
31554 in \SpecialChar TeX
31559 \begin_layout Plain Layout
31569 \begin_inset Note Greyedout
31572 \begin_layout Plain Layout
31577 The command is ignored when it is within a paragraph where also the command
31592 \begin_layout Standard
31593 \begin_inset VSpace bigskip
31600 \begin_inset Marginal
31603 \begin_layout Plain Layout
31604 AVeryLongMarginParWord that isn't hyphenated.
31612 Similar to the case described in section
31613 \begin_inset space ~
31617 \begin_inset CommandInset ref
31619 reference "subsec:Multiple-Lines-in"
31623 , long words cannot be hyphenated when they are the first word in a margin
31625 To avoid this, insert 0
31626 \begin_inset space \thinspace{}
31629 pt horizontal space before the word
31634 \begin_inset Marginal
31637 \begin_layout Plain Layout
31638 \begin_inset space \hspace*{}
31642 AVeryLongMarginParWord that is hyphenated.
31650 \begin_layout Standard
31651 \begin_inset VSpace bigskip
31657 \begin_layout Standard
31658 \begin_inset Note Greyedout
31661 \begin_layout Plain Layout
31666 Margin notes can normally not be used inside tables, floats, and footnotes.
31674 \begin_layout Standard
31675 \begin_inset VSpace bigskip
31681 \begin_layout Standard
31685 \begin_layout Plain Layout
31695 \begin_inset Note Note
31698 \begin_layout Plain Layout
31699 The following section will only be displayed when the \SpecialChar LaTeX
31712 \begin_layout Standard
31713 This restriction can be evaded by using the \SpecialChar LaTeX
31719 \begin_inset Index idx
31722 \begin_layout Plain Layout
31724 -packages ! marginnote
31730 By adding these two lines to your document preamble, the command used by
31732 for margin notes is redefined to use the command provided by the
31739 \begin_layout Standard
31744 usepackage{marginnote}
31745 \begin_inset Newline newline
31757 \begin_layout Standard
31758 This is also used in this document because
31762 has another useful feature: You can set a vertical offset for the note.
31763 This is often needed when too many margin notes are too close together
31764 or for a better page layout.
31765 The offset is set in \SpecialChar LyX
31766 as \SpecialChar TeX
31767 Code directly after the margin note in the scheme
31770 \begin_layout Standard
31776 \begin_layout Standard
31777 where the offset is a length with one of the units listed in Table
31778 \begin_inset space ~
31782 \begin_inset CommandInset ref
31784 reference "tab:Units"
31789 A negative value shifts the note up, a positive value shifts it down.
31793 For example the margin note beside this text line is shifted up 1.5
31794 \begin_inset space \thinspace{}
31797 cm with the \SpecialChar TeX
31799 \begin_inset Quotes eld
31809 \begin_inset Quotes erd
31813 \begin_inset Marginal
31816 \begin_layout Plain Layout
31817 This margin note is shifted up 1.5
31818 \begin_inset space \thinspace{}
31821 cm from its original position.
31833 \begin_layout Plain Layout
31843 \begin_layout Standard
31844 \begin_inset VSpace medskip
31851 you can also change the alignment of the text in the margin note.
31852 For example the commands
31855 \begin_layout Standard
31862 raggedleftmarginnote}{
31865 \begin_inset Newline newline
31872 raggedrightmarginnote}{
31877 \begin_layout Standard
31878 set the alignment to centered.
31883 raggedleftmarginnote
31885 denotes margin notes that appear at the left side.
31892 \begin_layout Plain Layout
31898 raggedleftmarginnote}{
31903 \begin_layout Plain Layout
31909 raggedrightmarginnote}{
31917 \begin_inset Marginal
31920 \begin_layout Plain Layout
31921 The text of this margin note is centered.
31932 \begin_layout Standard
31939 raggedleftmarginnote}{
31942 \begin_inset Newline newline
31949 raggedrightmarginnote}{
31958 \begin_layout Plain Layout
31964 raggedleftmarginnote}{
31969 \begin_layout Plain Layout
31975 raggedrightmarginnote}{
31985 \begin_layout Standard
31986 \begin_inset VSpace medskip
31989 For the other features of
31993 refer to its documentation
31994 \begin_inset CommandInset citation
32003 \begin_layout Standard
32004 \begin_inset VSpace bigskip
32007 You can adjust the layout of margin notes by changing its definition.
32008 To create for example a header for all margin notes with the underlined,
32009 sans-serif, and bold header text
32010 \begin_inset Quotes eld
32022 \begin_inset Quotes erd
32025 , add this to your document preamble:
32028 \begin_layout Standard
32038 \begin_inset Newline newline
32048 \begin_inset Newline newline
32052 \begin_inset Phantom HPhantom
32055 \begin_layout Plain Layout
32058 \begin_inset space ~
32074 underbar{Attention!}}}%
32075 \begin_inset Newline newline
32079 \begin_inset Phantom HPhantom
32082 \begin_layout Plain Layout
32085 \begin_inset space ~
32102 \begin_layout Standard
32109 \begin_layout Plain Layout
32120 \begin_layout Plain Layout
32131 \begin_layout Plain Layout
32139 underbar{Attention!}}}%
32142 \begin_layout Plain Layout
32156 \begin_inset Marginal
32159 \begin_layout Plain Layout
32160 This is a margin note with a defined heading.
32172 \begin_layout Plain Layout
32186 \begin_layout Plain Layout
32203 \begin_inset Note Note
32206 \begin_layout Plain Layout
32207 The margin note format is changed only for this example.
32215 \begin_layout Standard
32219 \begin_layout Plain Layout
32229 \begin_inset Note Note
32232 \begin_layout Plain Layout
32233 The following will be displayed when the \SpecialChar LaTeX
32246 \begin_layout Standard
32247 You need to install the \SpecialChar LaTeX
32252 to see the following part of this section in the output.
32255 \begin_layout Standard
32259 \begin_layout Plain Layout
32271 \begin_layout Chapter
32275 \begin_layout Section
32277 \begin_inset Index idx
32280 \begin_layout Plain Layout
32281 Boxes ! Introduction
32289 \begin_layout Standard
32290 Boxes are used to format a block of text.
32291 Boxes can be used to write documents with multiple languages, see section
32292 \begin_inset space ~
32296 \begin_inset CommandInset ref
32298 reference "sec:Minipages"
32302 , to frame texts, see section
32303 \begin_inset space ~
32307 \begin_inset CommandInset ref
32309 reference "sec:Decoration"
32313 , to prevent words from being hyphenated, see section
32314 \begin_inset space ~
32318 \begin_inset CommandInset ref
32320 reference "sec:Prevent-Hyphenation"
32324 , to align text, see section
32325 \begin_inset space ~
32329 \begin_inset CommandInset ref
32331 reference "subsec:Vertical-Alignment"
32335 , or to set the background color of texts, see section
32336 \begin_inset space ~
32340 \begin_inset CommandInset ref
32342 reference "sec:Colored-Boxes"
32349 \begin_layout Standard
32350 Boxes can be inserted with the menu
32352 Insert\SpecialChar menuseparator
32355 or the toolbar button
32358 arg "box-insert Frameless"
32362 A grey box with the label
32367 \begin_inset Graphics
32368 filename clipart/BoxInsetDefault.png
32370 scaleBeforeRotation
32375 The box type can be specified by right-clicking on the box and selecting
32381 The box dialog offers the
32384 \begin_inset space ~
32406 is the default for new boxes and is explained in section
32407 \begin_inset space ~
32411 \begin_inset CommandInset ref
32413 reference "sec:Minipages"
32421 is described in section
32422 \begin_inset space ~
32426 \begin_inset CommandInset ref
32428 reference "sec:Parboxes"
32437 \begin_inset CommandInset ref
32439 reference "sec:Prevent-Hyphenation"
32446 \begin_layout Standard
32447 Boxes are not numbered and can therefore not be referenced like floats or
32451 \begin_layout Standard
32452 \begin_inset Note Greyedout
32455 \begin_layout Plain Layout
32460 Boxes must not be the item in an
32476 \begin_layout Standard
32477 \begin_inset Note Greyedout
32480 \begin_layout Plain Layout
32485 For an unknown reason you can only set the
32488 \begin_inset space ~
32497 when you use a framed box.
32501 \begin_inset space ~
32506 type and without frames are explained in section
32507 \begin_inset space ~
32511 \begin_inset CommandInset ref
32513 reference "sec:Prevent-Hyphenation"
32525 \begin_layout Section
32527 \begin_inset CommandInset label
32529 name "sec:Box-Dialog"
32534 \begin_inset Index idx
32537 \begin_layout Plain Layout
32546 \begin_layout Subsection
32548 \begin_inset Index idx
32551 \begin_layout Plain Layout
32560 \begin_layout Standard
32561 In the box dialog you can adjust the box geometry in the fields
32570 The available units for the geometry are explained in Table
32571 \begin_inset space ~
32575 \begin_inset CommandInset ref
32577 reference "tab:Units"
32586 offers the following additional sizes:
32589 \begin_layout Description
32590 Depth This is the plain text
32591 \begin_inset Quotes eld
32595 \begin_inset Quotes erd
32599 It ignores the total depth when there are multiple text lines in the box:
32600 \begin_inset Newline newline
32604 \begin_inset Newline newline
32608 \begin_inset Newline newline
32612 \begin_inset Box Boxed
32622 height_special "depth"
32627 backgroundcolor "none"
32630 \begin_layout Plain Layout
32632 Box height set to 1
32633 \begin_inset space \thinspace{}
32642 \begin_inset Newline newline
32646 \begin_inset Newline newline
32652 \begin_layout Description
32653 Height This is the height of the text that is inside the box.
32655 \begin_inset space \thinspace{}
32659 \begin_inset space \space{}
32662 2 for this size will set the box height to 2
32663 \begin_inset space ~
32666 times the text height:
32667 \begin_inset Box Boxed
32677 height_special "height"
32682 backgroundcolor "none"
32685 \begin_layout Plain Layout
32687 Box height set to 2
32688 \begin_inset space \thinspace{}
32699 \begin_layout Description
32701 \begin_inset space ~
32704 Height This is the Height
32705 \begin_inset space \thinspace{}
32709 \begin_inset space \thinspace{}
32713 \begin_inset Box Boxed
32723 height_special "totalheight"
32728 backgroundcolor "none"
32731 \begin_layout Plain Layout
32733 Box height set to 1
32734 \begin_inset space \thinspace{}
32738 \begin_inset space ~
32749 \begin_layout Description
32750 Width This sets the width of the box as height:
32751 \begin_inset Box Boxed
32761 height_special "width"
32766 backgroundcolor "none"
32769 \begin_layout Plain Layout
32771 Box height set to 1
32772 \begin_inset space \thinspace{}
32783 \begin_layout Subsection
32785 \begin_inset Index idx
32788 \begin_layout Plain Layout
32797 \begin_layout Standard
32798 When you have chosen an
32801 \begin_inset space ~
32806 , the vertical box alignment can be:
32809 \begin_layout Description
32810 Top This is an example text line.
32812 \begin_inset Box Boxed
32822 height_special "totalheight"
32827 backgroundcolor "none"
32830 \begin_layout Plain Layout
32832 This box is top-aligned.
32837 This is an example text line.
32840 \begin_layout Description
32841 Middle This is an example text line.
32843 \begin_inset Box Boxed
32853 height_special "totalheight"
32858 backgroundcolor "none"
32861 \begin_layout Plain Layout
32863 This box is middle-aligned.
32868 This is an example text line.
32871 \begin_layout Description
32872 Bottom This is an example text line.
32874 \begin_inset Box Boxed
32884 height_special "totalheight"
32889 backgroundcolor "none"
32892 \begin_layout Plain Layout
32894 This box is bottom-aligned.
32899 This is an example text line.
32902 \begin_layout Standard
32903 \begin_inset Note Greyedout
32906 \begin_layout Plain Layout
32911 The vertical box alignment can be lost in the output when you have two
32912 boxes in a line and one has e.
32913 \begin_inset space \thinspace{}
32917 \begin_inset space \space{}
32920 a shadow and the other one not.
32928 \begin_layout Standard
32929 The horizontal box alignment can be set via \SpecialChar LyX
32930 's paragraph dialog when you
32931 set the box into its own paragraph.
32934 \begin_layout Standard
32935 \begin_inset VSpace bigskip
32938 When you have chosen an
32941 \begin_inset space ~
32946 , the box content can be aligned vertically to:
32949 \begin_layout Description
32950 top This is an example text line.
32952 \begin_inset Box Boxed
32962 height_special "totalheight"
32967 backgroundcolor "none"
32970 \begin_layout Plain Layout
32972 This box text is top-aligned.
32977 This is an example text line.
32980 \begin_layout Description
32981 middle This is an example text line.
32983 \begin_inset Box Boxed
32993 height_special "totalheight"
32998 backgroundcolor "none"
33001 \begin_layout Plain Layout
33003 This box text is middle-aligned.
33008 This is an example text line.
33011 \begin_layout Description
33012 bottom This is an example text line.
33014 \begin_inset Box Boxed
33024 height_special "totalheight"
33029 backgroundcolor "none"
33032 \begin_layout Plain Layout
33034 This box text is bottom-aligned.
33039 This is an example text line.
33042 \begin_layout Description
33043 stretch This is an example text line.
33045 \begin_inset Box Boxed
33055 height_special "totalheight"
33060 backgroundcolor "none"
33063 \begin_layout Plain Layout
33068 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33080 This is an example text line.
33083 \begin_layout Standard
33084 To stretch the box content, it must consist of more than one paragraph.
33085 In the example above every text line is in an own paragraph.
33088 \begin_layout Standard
33089 \begin_inset VSpace bigskip
33092 To align the box content horizontally you can use \SpecialChar LyX
33093 's paragraph dialog when
33097 \begin_inset space ~
33105 \begin_layout Standard
33107 \begin_inset Box Boxed
33117 height_special "totalheight"
33122 backgroundcolor "none"
33125 \begin_layout Plain Layout
33130 \begin_layout Plain Layout
33135 \begin_layout Plain Layout
33145 \begin_layout Standard
33146 If you have not set an
33149 \begin_inset space ~
33154 , you can align the box content horizontally in the box dialog.
33155 \begin_inset Separator latexpar
33161 \begin_layout Standard
33163 \begin_inset Box Boxed
33173 height_special "totalheight"
33178 backgroundcolor "none"
33181 \begin_layout Plain Layout
33182 This box text is horizontally stretched.
33190 \begin_layout Subsection
33192 \begin_inset CommandInset label
33194 name "sec:Decoration"
33199 \begin_inset Index idx
33202 \begin_layout Plain Layout
33211 \begin_layout Standard
33212 The type of the box can be specified in the box dialog in the drop-down
33218 The following types are possible:
33221 \begin_layout Description
33223 \begin_inset space ~
33226 frame Nothing is drawn.
33229 \begin_layout Description
33231 \begin_inset space ~
33235 \begin_inset space ~
33238 frame This draws a rectangular frame around the box.
33239 The frame line thickness can be specified.
33241 \begin_inset Box Boxed
33251 height_special "totalheight"
33256 backgroundcolor "none"
33259 \begin_layout Plain Layout
33269 \begin_layout Description
33271 \begin_inset space ~
33275 \begin_inset space ~
33278 thin This draws an oval frame around the box.
33279 The frame line thickness has the size 0.4
33280 \begin_inset space \thinspace{}
33285 \begin_inset Box ovalbox
33295 height_special "totalheight"
33300 backgroundcolor "none"
33303 \begin_layout Plain Layout
33313 \begin_layout Description
33315 \begin_inset space ~
33319 \begin_inset space ~
33322 thick This draws an oval frame around the box.
33323 The frame line thickness has the size 0.8
33324 \begin_inset space \thinspace{}
33329 \begin_inset Box Ovalbox
33339 height_special "totalheight"
33344 backgroundcolor "none"
33347 \begin_layout Plain Layout
33357 \begin_layout Description
33359 \begin_inset space ~
33362 shadow This draws a rectangular frame with a shadow around the box.
33363 The frame line thickness and the shadow can be specified.
33365 \begin_inset Box Shadowbox
33375 height_special "totalheight"
33380 backgroundcolor "none"
33383 \begin_layout Plain Layout
33393 \begin_layout Description
33395 \begin_inset space ~
33398 background This draws a box with a red background.
33399 Unlike colored boxes
33403 \begin_layout Plain Layout
33405 \begin_inset space \thinspace{}
33409 \begin_inset CommandInset ref
33411 reference "sec:Colored-Boxes"
33420 , it always uses the whole column width and the box is set as its own paragraph.
33422 \begin_inset Box Shaded
33432 height_special "totalheight"
33437 backgroundcolor "none"
33440 \begin_layout Plain Layout
33441 Shaded background box
33449 \begin_layout Description
33451 \begin_inset space ~
33455 \begin_inset space ~
33458 frame This draws a double-line rectangular frame around the box.
33459 The line thickness of the inner frame is 0.75
33460 \begin_inset space \thinspace{}
33464 \begin_inset space ~
33467 thickness, the thickness of the outer frame is 1.5
33468 \begin_inset space \thinspace{}
33472 \begin_inset space ~
33476 The distance between the lines is 1.5
33477 \begin_inset space \thinspace{}
33481 \begin_inset space ~
33485 \begin_inset space \thinspace{}
33489 \begin_inset space \thinspace{}
33493 \begin_inset space \thinspace{}
33498 \begin_inset Box Doublebox
33508 height_special "totalheight"
33513 backgroundcolor "none"
33516 \begin_layout Plain Layout
33518 Double rectangular box
33526 \begin_layout Standard
33527 \begin_inset VSpace bigskip
33531 's box label will reflect the different frame types.
33532 To be able to use all types, the \SpecialChar LaTeX
33538 \begin_inset Index idx
33541 \begin_layout Plain Layout
33543 -packages ! fancybox
33551 \begin_layout Standard
33552 \begin_inset VSpace bigskip
33555 When you use the decoration
33557 simple rectangular frame
33559 and no inner box, you can allow page breaks within a box.
33560 Note that then, unlike other framed boxes, the frame always uses the whole
33561 column width and the box is set as its own paragraph:
33562 \begin_inset Box Framed
33572 height_special "totalheight"
33577 backgroundcolor "none"
33580 \begin_layout Plain Layout
33581 Allow page break box
33589 \begin_layout Section
33591 \begin_inset Index idx
33594 \begin_layout Plain Layout
33595 Boxes ! Customization
33603 \begin_layout Standard
33604 The diameter of the round corners of the oval boxes can be set with the
33615 \begin_layout Standard
33623 \begin_layout Standard
33624 sets the diameter to 1
33625 \begin_inset space \thinspace{}
33632 \begin_layout Standard
33640 \begin_layout Standard
33641 sets the diameter to
33644 \begin_inset space \thinspace{}
33648 \begin_inset space \thinspace{}
33651 minimum(width and height of box)
33663 \begin_layout Standard
33667 \begin_layout Plain Layout
33677 \begin_inset Box Ovalbox
33687 height_special "totalheight"
33692 backgroundcolor "none"
33695 \begin_layout Plain Layout
33704 \begin_inset space \thinspace{}
33708 \begin_inset space \thinspace{}
33712 \begin_inset space \thinspace{}
33724 \begin_layout Plain Layout
33736 \begin_layout Standard
33737 \begin_inset VSpace bigskip
33743 \begin_layout Standard
33744 The default background color red of
33748 boxes can either be changed locally with the command
33752 definecolor{shadecolor}
33754 or globally with the menu
33756 Tools\SpecialChar menuseparator
33757 Preferences\SpecialChar menuseparator
33758 Colors\SpecialChar menuseparator
33760 \begin_inset space ~
33772 command is explained in section
33773 \begin_inset space ~
33777 \begin_inset CommandInset ref
33779 reference "sec:Colored-Tables"
33787 \begin_layout Plain Layout
33794 requires the \SpecialChar LaTeX
33799 in the preamble, see section
33800 \begin_inset space ~
33804 \begin_inset CommandInset ref
33806 reference "sec:Colored-Boxes"
33815 For example the appearance of the following shaded background box is set
33816 with the \SpecialChar TeX
33820 \begin_layout Standard
33825 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33828 \begin_layout Standard
33832 \begin_layout Plain Layout
33836 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33842 \begin_inset Box Shaded
33852 height_special "totalheight"
33857 backgroundcolor "none"
33860 \begin_layout Plain Layout
33863 This is yellow text in a
33873 box with dark green background.
33882 \begin_layout Plain Layout
33886 definecolor{shadecolor}{rgb}{1,0,0}
33894 \begin_layout Standard
33895 \begin_inset VSpace bigskip
33898 Manually changed sizes and colors are valid for all boxes following the
33899 commands that change them.
33902 \begin_layout Section
33904 \begin_inset CommandInset label
33906 name "sec:Minipages"
33911 \begin_inset Index idx
33914 \begin_layout Plain Layout
33923 \begin_layout Standard
33924 Minipages are treated by \SpecialChar LaTeX
33925 as pages within pages and can therefore for example
33926 have their own footnotes.
33929 \begin_layout Standard
33930 Minipages are useful when you write documents with different languages.
33933 \begin_layout Standard
33934 Below are two example minipages side by side.
33935 Their width is set to 45
33936 \begin_inset space \thinspace{}
33939 col% and they are separated by a horizontal fill, that was inserted via
33942 Insert\SpecialChar menuseparator
33944 \begin_inset space ~
33947 Formatting\SpecialChar menuseparator
33949 \begin_inset space ~
33955 \begin_inset Newpage newpage
33961 \begin_layout Standard
33962 \begin_inset Box Frameless
33972 height_special "totalheight"
33977 backgroundcolor "none"
33980 \begin_layout Plain Layout
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text
33999 \begin_layout Plain Layout
34002 Dies ist eine deutsche Fußnote.
34008 Dies ist ein deutscher Text.
34009 Dies ist ein deutscher Text.
34015 \begin_inset space \hfill{}
34019 \begin_inset Box Frameless
34029 height_special "totalheight"
34034 backgroundcolor "none"
34037 \begin_layout Plain Layout
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34057 \begin_layout Plain Layout
34058 This is an English footnote.
34063 This is an English Text.
34071 \begin_layout Standard
34072 \begin_inset VSpace bigskip
34075 The document-wide paragraph settings are ignored within minipages.
34076 That means that there will be no space between paragraphs in minipages
34077 although you set it to e.
34078 \begin_inset space \thinspace{}
34082 \begin_inset space \space{}
34089 in the document settings.
34092 \begin_layout Standard
34093 Minipages can also be used to set a background color for text parts, see
34095 \begin_inset space ~
34099 \begin_inset CommandInset ref
34101 reference "sec:Colored-Boxes"
34108 \begin_layout Standard
34109 \begin_inset Note Greyedout
34112 \begin_layout Plain Layout
34117 You cannot have floats or margin notes inside minipages but minipages can
34118 be used inside tables, floats, and other boxes.
34126 \begin_layout Standard
34127 \begin_inset VSpace bigskip
34133 \begin_layout Standard
34135 has also basic support for minipages whose size is automatically determined
34136 by the width of their contents, via the module
34138 Variable-width Minipages
34141 The \SpecialChar LyX
34144 varwidth-floats-side-by-side
34146 gives examples of variable-width minipages used for placing two floats
34150 \begin_layout Section
34152 \begin_inset CommandInset label
34154 name "sec:Parboxes"
34159 \begin_inset Index idx
34162 \begin_layout Plain Layout
34171 \begin_layout Standard
34172 Parboxes are very similar to minipages with the difference that they cannot
34174 \begin_inset Separator latexpar
34180 \begin_layout Standard
34182 \begin_inset Box Frameless
34192 height_special "totalheight"
34197 backgroundcolor "none"
34200 \begin_layout Plain Layout
34201 This a text within a parbox.
34202 This a text within a parbox.
34205 \begin_layout Plain Layout
34206 This footnote won't appear:
34210 \begin_layout Plain Layout
34211 This footnote is inside a parbox and will therefore not appear.
34224 \begin_layout Section
34225 Boxes for Words and Characters
34226 \begin_inset Index idx
34229 \begin_layout Plain Layout
34230 Boxes ! for Characters
34238 \begin_layout Subsection
34239 Prevent Hyphenation
34240 \begin_inset CommandInset label
34242 name "sec:Prevent-Hyphenation"
34247 \begin_inset Index idx
34250 \begin_layout Plain Layout
34251 Boxes ! to Prevent Hyphenation
34259 \begin_layout Standard
34260 You can use the box type
34264 to prevent words or text from being hyphenated.
34265 \begin_inset Newline newline
34268 Here is an example text:
34271 \begin_layout Standard
34272 This line is an example to show how you can prevent the hyphenation of
34273 \begin_inset Quotes eld
34277 \begin_inset Quotes erd
34283 \begin_layout Standard
34284 To prevent the hyphenation of the word
34285 \begin_inset Quotes eld
34289 \begin_inset Quotes erd
34292 , put the word into a box, set the
34295 \begin_inset space ~
34304 and use no explicit width.
34307 \begin_layout Standard
34308 This is the result:
34311 \begin_layout Standard
34312 This line is an example to show how you can prevent the hyphenation of
34313 \begin_inset Box Frameless
34323 height_special "totalheight"
34328 backgroundcolor "none"
34331 \begin_layout Plain Layout
34332 \begin_inset Quotes eld
34336 \begin_inset Quotes erd
34347 \begin_layout Standard
34348 You can alternatively set the command
34349 \begin_inset Quotes eld
34359 \begin_inset Quotes grd
34362 as \SpecialChar TeX
34363 Code directly before the word:
34366 \begin_layout Standard
34367 This line is an example to show how you can prevent the hyphenation of
34368 \begin_inset Quotes eld
34375 \begin_layout Plain Layout
34385 \begin_inset Quotes erd
34391 \begin_layout Standard
34392 Of course the word now protrudes over the side margin.
34393 To avoid this, add via the menu
34395 Insert\SpecialChar menuseparator
34396 Formatting\SpecialChar menuseparator
34398 \begin_inset space ~
34402 \begin_inset space ~
34410 arg "newline-insert newline"
34413 ) a line break before the word:
34416 \begin_layout Standard
34417 This line is an example to show how you can prevent the hyphenation of
34418 \begin_inset Newline newline
34422 \begin_inset Box Frameless
34432 height_special "totalheight"
34437 backgroundcolor "none"
34440 \begin_layout Plain Layout
34441 \begin_inset Quotes eld
34445 \begin_inset Quotes erd
34456 \begin_layout Subsection
34458 \begin_inset CommandInset label
34460 name "subsec:Vertical-Alignment"
34465 \begin_inset Index idx
34468 \begin_layout Plain Layout
34469 Boxes ! for Vertical Alignment
34475 \begin_inset Index idx
34478 \begin_layout Plain Layout
34487 \begin_layout Standard
34488 With the help of the command
34494 you can align words, characters or other boxes vertically relative to the
34502 is used with the following scheme:
34505 \begin_layout Standard
34510 raisebox{lift}[height][depth]{box content}
34513 \begin_layout Standard
34514 The lift can be a positive value to raise the box or a negative value to
34518 \begin_layout Standard
34519 To align for example the word
34520 \begin_inset Quotes eld
34524 \begin_inset Quotes erd
34527 so that the bottom of the
34528 \begin_inset Quotes eld
34532 \begin_inset Quotes erd
34536 \begin_inset Quotes eld
34540 \begin_inset Quotes erd
34543 is at the baseline, insert the command
34546 \begin_layout Standard
34556 \begin_layout Standard
34557 in \SpecialChar TeX
34558 Code before the word.
34559 After the word insert a closing brace
34560 \begin_inset Quotes eld
34568 \begin_inset Quotes erd
34571 in \SpecialChar TeX
34573 \begin_inset Newline newline
34576 This is the result:
34579 \begin_layout Standard
34580 This is a text line with the word
34584 \begin_layout Plain Layout
34596 \begin_inset Quotes eld
34600 \begin_inset Quotes erd
34607 \begin_layout Plain Layout
34617 \begin_layout Standard
34618 \begin_inset VSpace bigskip
34621 When you raise or lower characters in a line, the line distance will be
34625 \begin_layout Standard
34626 This is a text line with the word
34630 \begin_layout Plain Layout
34642 \begin_inset Quotes eld
34646 \begin_inset Quotes erd
34653 \begin_layout Plain Layout
34661 \begin_inset Newline newline
34664 This is a text line with the word
34668 \begin_layout Plain Layout
34678 \begin_inset Quotes eld
34682 \begin_inset Quotes erd
34689 \begin_layout Plain Layout
34699 \begin_layout Standard
34700 If you want to prevent this for a certain reason, set the box height to
34705 \begin_layout Standard
34715 \begin_layout Standard
34716 This is a text line with the word
34720 \begin_layout Plain Layout
34732 \begin_inset Quotes eld
34736 \begin_inset Quotes erd
34743 \begin_layout Plain Layout
34751 \begin_inset Newline newline
34755 \begin_inset Newline newline
34758 This is a text line with the word
34762 \begin_layout Plain Layout
34766 raisebox{0.5cm}[0pt]{
34772 \begin_inset Quotes eld
34776 \begin_inset Quotes erd
34783 \begin_layout Plain Layout
34793 \begin_layout Section
34795 \begin_inset CommandInset label
34797 name "sec:Colored-Boxes"
34802 \begin_inset Index idx
34805 \begin_layout Plain Layout
34814 \begin_layout Standard
34815 To color the background of a box just select the color you like in the box
34817 This is for example a box with orange background:
34818 \begin_inset Box Frameless
34828 height_special "totalheight"
34833 backgroundcolor "orange"
34836 \begin_layout Plain Layout
34837 Box with orange background
34845 \begin_layout Standard
34846 If you use the decoration
34849 \begin_inset space ~
34853 \begin_inset space ~
34858 you can set a frame color.
34859 In this case you must also specify a background color (LyX sets white as
34861 Here is an example:
34862 \begin_inset Box Boxed
34872 height_special "totalheight"
34877 backgroundcolor "yellow"
34880 \begin_layout Plain Layout
34881 Box with teal frame color and yellow background color
34889 \begin_layout Standard
34890 \begin_inset VSpace bigskip
34893 Of course you can also have colored text inside a colored box:
34894 \begin_inset Newline newline
34898 \begin_inset Box Boxed
34908 height_special "totalheight"
34913 backgroundcolor "magenta"
34916 \begin_layout Plain Layout
34919 This is colored text within a colored, framed box
34927 \begin_layout Standard
34928 \begin_inset VSpace bigskip
34934 \begin_layout Standard
34935 If you need another color than the predefined ones, you can define your
34936 own color as described in section
34937 \begin_inset space ~
34941 \begin_inset CommandInset ref
34943 reference "sec:Colored-Tables"
34948 To use your own color you must typeset the box by using TeX code:
34951 \begin_layout Standard
34952 Colored boxes without frame are created with the command
34959 It has the following scheme:
34962 \begin_layout Standard
34967 colorbox{color}{box content}
34970 \begin_layout Standard
34971 The box content can also be a box and colored boxes can also be within other
34974 \begin_inset space \thinspace{}
34978 \begin_inset space \space{}
34981 a darkgreen background for a word, insert the command
34984 \begin_layout Standard
34989 colorbox{darkgreen}{
34992 \begin_layout Standard
34993 before the word in \SpecialChar TeX
34995 After the word insert a closing brace
34996 \begin_inset Quotes eld
35004 \begin_inset Quotes erd
35007 in \SpecialChar TeX
35009 \begin_inset Newline newline
35012 This is the result:
35015 \begin_layout Standard
35016 This is a line where the word
35020 \begin_layout Plain Layout
35024 colorbox{darkgreen}{
35030 \begin_inset Quotes eld
35034 \begin_inset Quotes erd
35041 \begin_layout Plain Layout
35048 has a darkgreen background.
35051 \begin_layout Standard
35052 Framed, colored boxes are created with the command
35059 It has the following scheme:
35062 \begin_layout Standard
35067 fcolorbox{frame color}{box color}{box content}
35070 \begin_layout Section
35071 Rotated and Scaled Boxes
35074 \begin_layout Standard
35075 To use the boxes described in this section, the module
35079 must be loaded in the document settings.
35082 \begin_layout Standard
35083 \begin_inset Note Greyedout
35086 \begin_layout Plain Layout
35091 Not all DVI viewers are able to display rotated or scaled material.
35099 \begin_layout Standard
35100 \begin_inset Note Greyedout
35103 \begin_layout Plain Layout
35108 Floats are not allowed inside a rotated or scaled box.
35116 \begin_layout Subsection
35118 \begin_inset Index idx
35121 \begin_layout Plain Layout
35128 \begin_inset Index idx
35131 \begin_layout Plain Layout
35140 \begin_layout Standard
35141 To rotate material, you can put it into a
35146 Such a box is inserted via the menu
35148 Insert\SpecialChar menuseparator
35149 Custom Insets\SpecialChar menuseparator
35155 \begin_layout Standard
35156 The rotation origin can be specified via the inset
35162 Insert\SpecialChar menuseparator
35170 The following positions are possible:
35190 (top), along with meaningful combinations of the four base positions.
35195 means that the rotation origin is at the top left corner of the box.
35196 When no rotation origin is specified, the position
35201 The rotation angle is a number that can be negative that specifies the
35203 The rotation direction is counterclockwise.
35206 \begin_layout Standard
35207 In the following example
35211 was inserted to the
35219 was inserted to the
35226 \begin_layout Standard
35228 \begin_inset Flex Rotatebox
35231 \begin_layout Plain Layout
35232 \begin_inset Argument 1
35235 \begin_layout Plain Layout
35242 \begin_inset Argument 2
35245 \begin_layout Plain Layout
35259 \begin_layout Standard
35260 The box content can also be another box or an inline formula:
35263 \begin_layout Standard
35265 \begin_inset Flex Rotatebox
35268 \begin_layout Plain Layout
35269 \begin_inset Argument 1
35272 \begin_layout Plain Layout
35279 \begin_inset Argument 2
35282 \begin_layout Plain Layout
35289 \begin_inset Box Doublebox
35299 height_special "totalheight"
35304 backgroundcolor "none"
35307 \begin_layout Plain Layout
35319 \begin_inset Flex Rotatebox
35322 \begin_layout Plain Layout
35323 \begin_inset Argument 1
35326 \begin_layout Plain Layout
35333 \begin_inset Argument 2
35336 \begin_layout Plain Layout
35343 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35354 \begin_layout Standard
35355 or an image or table:
35358 \begin_layout Standard
35360 \begin_inset Flex Rotatebox
35363 \begin_layout Plain Layout
35364 \begin_inset Argument 1
35367 \begin_layout Plain Layout
35374 \begin_inset Argument 2
35377 \begin_layout Plain Layout
35384 \begin_inset Graphics
35385 filename clipart/platypus.eps
35396 with a rotated image
35397 \begin_inset Flex Rotatebox
35400 \begin_layout Plain Layout
35401 \begin_inset Argument 2
35404 \begin_layout Plain Layout
35411 \begin_inset Tabular
35412 <lyxtabular version="3" rows="2" columns="2">
35413 <features tabularvalignment="middle">
35414 <column alignment="center" valignment="top">
35415 <column alignment="center" valignment="top">
35417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35420 \begin_layout Plain Layout
35426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35429 \begin_layout Plain Layout
35437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35440 \begin_layout Plain Layout
35446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35449 \begin_layout Plain Layout
35466 \begin_inset Index idx
35469 \begin_layout Plain Layout
35476 \begin_inset Index idx
35479 \begin_layout Plain Layout
35480 Table Customization ! Rotating
35488 \begin_layout Standard
35489 \begin_inset Note Greyedout
35492 \begin_layout Plain Layout
35501 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35503 errors when viewing/exporting the document.
35511 \begin_layout Subsection
35513 \begin_inset Index idx
35516 \begin_layout Plain Layout
35523 \begin_inset Index idx
35526 \begin_layout Plain Layout
35535 \begin_layout Standard
35536 To scale material put it into a
35541 Such a box is inserted via the menu
35543 Insert\SpecialChar menuseparator
35544 Custom Insets\SpecialChar menuseparator
35550 \begin_layout Standard
35555 inset has the mandatory inset
35559 and the optional inset
35563 (inserted via the menu
35565 Insert\SpecialChar menuseparator
35569 Input there the horizontal and vertical scale factor, respectively.
35574 inset is used, the horizontal factor will also be used as the vertical
35578 \begin_layout Standard
35579 To get for example the double text size, compared to the document text size,
35590 \begin_inset Flex Scalebox
35593 \begin_layout Plain Layout
35594 \begin_inset Argument 1
35597 \begin_layout Plain Layout
35611 \begin_layout Standard
35629 \begin_inset Flex Scalebox
35632 \begin_layout Plain Layout
35633 \begin_inset Argument 1
35636 \begin_layout Plain Layout
35643 \begin_inset Argument 2
35646 \begin_layout Plain Layout
35660 \begin_layout Standard
35661 If the scaling factor is negative, the box content will be mirrored.
35678 can be used to create mirror writing:
35679 \begin_inset Flex Scalebox
35682 \begin_layout Plain Layout
35683 \begin_inset Argument 1
35686 \begin_layout Plain Layout
35693 \begin_inset Argument 2
35696 \begin_layout Plain Layout
35710 \begin_layout Standard
35728 \begin_inset Flex Scalebox
35731 \begin_layout Plain Layout
35732 \begin_inset Argument 1
35735 \begin_layout Plain Layout
35742 \begin_inset Argument 2
35745 \begin_layout Plain Layout
35759 \begin_layout Standard
35766 Insert\SpecialChar menuseparator
35767 Custom Insets\SpecialChar menuseparator
35793 \begin_layout Standard
35794 \begin_inset Note Greyedout
35797 \begin_layout Plain Layout
35806 inset is empty or contains other characters than numbers you will get LaTeX
35807 errors when viewing/exporting the document.
35815 \begin_layout Standard
35816 \begin_inset VSpace bigskip
35825 Insert\SpecialChar menuseparator
35826 Custom Insets\SpecialChar menuseparator
35829 ) is used to scale the content to a defined width and height.
35834 inset has the mandatory inset
35838 and the optional inset
35842 (inserted via the menu
35844 Insert\SpecialChar menuseparator
35848 Input there the width and height, respectively, as value with a unit.
35850 \begin_inset CommandInset ref
35852 reference "tab:Units"
35856 lists the possible units.
35857 If there is an exclamation mark
35861 in of of the two insets, the size is set so that the aspect ratio of the
35862 box content is kept.
35867 inset is used an exclamation mark will internally be used for the height.
35870 \begin_layout Standard
35888 \begin_inset Flex Resizebox
35891 \begin_layout Plain Layout
35892 \begin_inset Argument 1
35895 \begin_layout Plain Layout
35902 \begin_inset Argument 2
35905 \begin_layout Plain Layout
35917 \begin_inset Newline newline
35941 \begin_inset Flex Resizebox
35944 \begin_layout Plain Layout
35945 \begin_inset Argument 1
35948 \begin_layout Plain Layout
35955 \begin_inset Argument 2
35958 \begin_layout Plain Layout
35972 \begin_layout Standard
35973 \begin_inset Note Greyedout
35976 \begin_layout Plain Layout
35985 inset is empty or contains an invalid unit you will get LaTeX errors when
35986 viewing/exporting the document.
35994 \begin_layout Standard
35995 \begin_inset VSpace bigskip
36001 \begin_layout Standard
36002 The boxes can be combined in any order.
36011 which is in turn inside a
36018 \begin_layout Standard
36021 \begin_inset Flex Rotatebox
36024 \begin_layout Plain Layout
36025 \begin_inset Argument 1
36028 \begin_layout Plain Layout
36035 \begin_inset Argument 2
36038 \begin_layout Plain Layout
36045 \begin_inset Flex Resizebox
36048 \begin_layout Plain Layout
36049 \begin_inset Argument 1
36052 \begin_layout Plain Layout
36059 \begin_inset Flex Reflectbox
36062 \begin_layout Plain Layout
36081 \begin_layout Standard
36083 Images, tables, and inline formulas are allowed as box content:
36086 \begin_layout Standard
36089 \begin_inset Flex Resizebox
36092 \begin_layout Plain Layout
36093 \begin_inset Argument 1
36096 \begin_layout Plain Layout
36103 \begin_inset Flex Reflectbox
36106 \begin_layout Plain Layout
36107 \begin_inset Graphics
36108 filename clipart/platypus.eps
36125 \begin_inset Flex Resizebox
36128 \begin_layout Plain Layout
36129 \begin_inset Argument 1
36132 \begin_layout Plain Layout
36139 \begin_inset Flex Reflectbox
36142 \begin_layout Plain Layout
36143 \begin_inset Tabular
36144 <lyxtabular version="3" rows="2" columns="2">
36145 <features tabularvalignment="middle">
36146 <column alignment="center" valignment="top">
36147 <column alignment="center" valignment="top">
36149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36152 \begin_layout Plain Layout
36158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36161 \begin_layout Plain Layout
36169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36172 \begin_layout Plain Layout
36178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36181 \begin_layout Plain Layout
36203 \begin_inset Flex Resizebox
36206 \begin_layout Plain Layout
36207 \begin_inset Argument 1
36210 \begin_layout Plain Layout
36217 \begin_inset Flex Reflectbox
36220 \begin_layout Plain Layout
36221 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36235 \begin_inset Index idx
36238 \begin_layout Plain Layout
36245 \begin_inset Index idx
36248 \begin_layout Plain Layout
36249 Table Customization ! Scaling
36257 \begin_layout Standard
36258 When the global formula style
36262 is used in the document
36266 \begin_layout Plain Layout
36268 \begin_inset Quotes eld
36272 \begin_inset Quotes erd
36275 is added to the document class options.
36280 , display style formulas can also be scaled.
36283 \begin_layout Chapter
36284 Objects Surrounded by Text
36285 \begin_inset Index idx
36288 \begin_layout Plain Layout
36297 \begin_layout Section
36299 \begin_inset CommandInset label
36301 name "sec:Wrap-Floats"
36306 \begin_inset Index idx
36309 \begin_layout Plain Layout
36310 Floats ! Wrap Floats
36316 \begin_inset Index idx
36319 \begin_layout Plain Layout
36320 Surrounded by text ! Wrap Floats
36328 \begin_layout Standard
36329 \begin_inset Wrap figure
36336 \begin_layout Plain Layout
36337 \begin_inset Graphics
36338 filename clipart/mobius.eps
36340 scaleBeforeRotation
36341 rotateOrigin center
36348 \begin_layout Plain Layout
36349 \begin_inset Caption Standard
36351 \begin_layout Plain Layout
36352 \begin_inset CommandInset label
36354 name "fig:This-is-a"
36358 This is a figure wrap float.
36368 This float type is used if you want to wrap text around a figure or table
36369 so that it only occupies some fraction of the column width.
36370 It can be inserted using the menu
36372 Insert\SpecialChar menuseparator
36373 Floats\SpecialChar menuseparator
36375 \begin_inset space ~
36379 \begin_inset space ~
36387 \begin_inset space ~
36391 \begin_inset space ~
36396 if the \SpecialChar LaTeX
36402 \begin_inset Index idx
36405 \begin_layout Plain Layout
36407 -packages ! wrapfig
36416 \begin_layout Plain Layout
36417 Installing a \SpecialChar LaTeX
36418 -package is explained it in the
36422 \begin_inset space ~
36432 The settings of the float can be modified by right-clicking on the float
36434 The mandatory settings are the float
36447 that specifies how much the float is set into the paragraph
36448 \begin_inset space \thinspace{}
36452 \begin_inset space \thinspace{}
36455 page margin, and the
36458 \begin_inset space ~
36463 that specifies how many text lines the float will approximately need.
36464 The line span is often hard to approximate; so it is better only to use
36465 it when you encounter float placement problems.
36466 You can furthermore decide if \SpecialChar LaTeX
36467 is allowed to let the float float within
36468 the paragraph or to surrounding paragraphs.
36470 \begin_inset space ~
36474 \begin_inset CommandInset ref
36476 reference "fig:This-is-a"
36480 is an example text wrap float with a width of 40
36481 \begin_inset space \thinspace{}
36485 \begin_inset space \thinspace{}
36488 cm overhang, set to the left.
36491 \begin_layout Standard
36492 \begin_inset Note Greyedout
36495 \begin_layout Plain Layout
36501 \begin_inset space ~
36504 wrap float floats are fragile! E.
36505 \begin_inset space \thinspace{}
36509 \begin_inset space \space{}
36512 having a figure too close to the bottom of the page can mess things up in
36513 such a way that the float does not appear in the output or that it is placed
36514 over some other text.
36522 \begin_layout Standard
36523 In general, the following applies for wrap floats:
36526 \begin_layout Itemize
36527 They should not be placed in paragraphs that run over a page break.
36528 That means that wrap floats are better inserted in their exact place when
36529 the document is almost finished and you are able to estimate where page
36530 breaks will appear.
36533 \begin_layout Itemize
36534 They should either be placed in their own paragraph before the paragraph
36535 where they should wrap into or within a paragraph.
36538 \begin_layout Itemize
36539 In consecutive paragraphs they may cause troubles, so ensure that there
36540 is a text paragraph between them as separator.
36543 \begin_layout Itemize
36544 They are not allowed in section headings or tables.
36547 \begin_layout Itemize
36548 Their numbering and referencing works as described in chap.
36549 \begin_inset space \thinspace{}
36553 \begin_inset CommandInset ref
36555 reference "chap:Floats"
36562 \begin_layout Section
36563 Surrounded Fixed Objects
36564 \begin_inset Index idx
36567 \begin_layout Plain Layout
36568 Surrounded by text ! Fixed objects
36576 \begin_layout Standard
36577 The wrap floats described in sec.
36578 \begin_inset space \thinspace{}
36582 \begin_inset CommandInset ref
36584 reference "sec:Wrap-Floats"
36588 have these positions in the paragraph:
36589 \begin_inset Separator latexpar
36595 \begin_layout Standard
36598 \begin_inset Tabular
36599 <lyxtabular version="3" rows="2" columns="2">
36600 <features tabularvalignment="middle">
36601 <column alignment="center" valignment="top">
36602 <column alignment="center" valignment="top">
36604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36607 \begin_layout Plain Layout
36610 arg "dialog-show-new-inset graphics"
36618 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36621 \begin_layout Plain Layout
36629 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36632 \begin_layout Plain Layout
36638 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36641 \begin_layout Plain Layout
36653 \begin_inset Tabular
36654 <lyxtabular version="3" rows="2" columns="2">
36655 <features tabularvalignment="middle">
36656 <column alignment="center" valignment="top">
36657 <column alignment="center" valignment="top">
36659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36662 \begin_layout Plain Layout
36668 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36671 \begin_layout Plain Layout
36674 arg "dialog-show-new-inset graphics"
36684 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36687 \begin_layout Plain Layout
36693 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36696 \begin_layout Plain Layout
36710 \begin_layout Standard
36711 To get an object exactly at the position where it is inserted, for example
36712 to get one of these positions:
36713 \begin_inset VSpace defskip
36719 \begin_layout Standard
36722 \begin_inset Tabular
36723 <lyxtabular version="3" rows="2" columns="2">
36724 <features tabularvalignment="middle">
36725 <column alignment="center" valignment="top">
36726 <column alignment="center" valignment="top">
36728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36731 \begin_layout Plain Layout
36737 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36740 \begin_layout Plain Layout
36748 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36751 \begin_layout Plain Layout
36754 arg "dialog-show-new-inset graphics"
36762 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36765 \begin_layout Plain Layout
36777 \begin_inset Tabular
36778 <lyxtabular version="3" rows="2" columns="2">
36779 <features tabularvalignment="middle">
36780 <column alignment="center" valignment="top">
36781 <column alignment="center" valignment="top">
36783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36786 \begin_layout Plain Layout
36792 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36795 \begin_layout Plain Layout
36803 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36806 \begin_layout Plain Layout
36812 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36815 \begin_layout Plain Layout
36818 arg "dialog-show-new-inset graphics"
36832 \begin_inset Tabular
36833 <lyxtabular version="3" rows="2" columns="3">
36834 <features tabularvalignment="middle">
36835 <column alignment="center" valignment="top">
36836 <column alignment="center" valignment="top">
36837 <column alignment="center" valignment="top">
36839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36842 \begin_layout Plain Layout
36848 <cell alignment="center" valignment="top" topline="true" usebox="none">
36851 \begin_layout Plain Layout
36854 arg "dialog-show-new-inset graphics"
36862 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36865 \begin_layout Plain Layout
36873 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36876 \begin_layout Plain Layout
36882 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36885 \begin_layout Plain Layout
36891 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36894 \begin_layout Plain Layout
36906 \begin_inset Tabular
36907 <lyxtabular version="3" rows="2" columns="3">
36908 <features tabularvalignment="middle">
36909 <column alignment="center" valignment="top">
36910 <column alignment="center" valignment="top">
36911 <column alignment="center" valignment="top">
36913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36916 \begin_layout Plain Layout
36922 <cell alignment="center" valignment="top" topline="true" usebox="none">
36925 \begin_layout Plain Layout
36931 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36934 \begin_layout Plain Layout
36942 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36945 \begin_layout Plain Layout
36951 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36954 \begin_layout Plain Layout
36957 arg "dialog-show-new-inset graphics"
36965 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36968 \begin_layout Plain Layout
36982 \begin_layout Standard
36985 \begin_inset Tabular
36986 <lyxtabular version="3" rows="3" columns="2">
36987 <features tabularvalignment="middle">
36988 <column alignment="center" valignment="top">
36989 <column alignment="center" valignment="top">
36991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36994 \begin_layout Plain Layout
37000 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37003 \begin_layout Plain Layout
37011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37014 \begin_layout Plain Layout
37017 arg "dialog-show-new-inset graphics"
37025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37028 \begin_layout Plain Layout
37036 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37039 \begin_layout Plain Layout
37045 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37048 \begin_layout Plain Layout
37060 \begin_inset Tabular
37061 <lyxtabular version="3" rows="3" columns="3">
37062 <features tabularvalignment="middle">
37063 <column alignment="center" valignment="top">
37064 <column alignment="center" valignment="top">
37065 <column alignment="center" valignment="top">
37067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37070 \begin_layout Plain Layout
37076 <cell alignment="center" valignment="top" topline="true" usebox="none">
37079 \begin_layout Plain Layout
37085 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37088 \begin_layout Plain Layout
37096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37099 \begin_layout Plain Layout
37105 <cell alignment="center" valignment="top" usebox="none">
37108 \begin_layout Plain Layout
37111 arg "dialog-show-new-inset graphics"
37119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37122 \begin_layout Plain Layout
37130 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37133 \begin_layout Plain Layout
37139 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37142 \begin_layout Plain Layout
37148 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37151 \begin_layout Plain Layout
37163 \begin_inset Tabular
37164 <lyxtabular version="3" rows="3" columns="2">
37165 <features tabularvalignment="middle">
37166 <column alignment="center" valignment="top">
37167 <column alignment="center" valignment="top">
37169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37172 \begin_layout Plain Layout
37178 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37181 \begin_layout Plain Layout
37189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37192 \begin_layout Plain Layout
37198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37201 \begin_layout Plain Layout
37204 arg "dialog-show-new-inset graphics"
37214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37217 \begin_layout Plain Layout
37223 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37226 \begin_layout Plain Layout
37240 \begin_layout Standard
37242 you can use the \SpecialChar LaTeX
37248 \begin_inset Index idx
37251 \begin_layout Plain Layout
37253 -packages ! picinpar
37259 Here is an example:
37262 \begin_layout Standard
37266 \begin_layout Plain Layout
37276 \begin_inset Note Note
37279 \begin_layout Plain Layout
37280 The following section will only be displayed when the \SpecialChar LaTeX
37293 \begin_layout Standard
37297 \begin_layout Plain Layout
37301 begin{window}[2,c,{
37307 \begin_inset Graphics
37308 filename clipart/mobius.eps
37311 scaleBeforeRotation
37312 rotateOrigin center
37320 \begin_layout Plain Layout
37325 \begin_layout Plain Layout
37334 It was in the spring of the year 1894 that all London was interested, and
37335 the fashionable world dismayed, by the murder of the Honourable Ronald
37336 Adair under most unusual and inexplicable circumstances.
37337 The public has already learned those particulars of the crime which
37343 \begin_layout Plain Layout
37354 came out in the police investigation, but a good deal was suppressed upon
37355 that occasion, since the case for the prosecution was so overwhelmingly
37356 strong that it was not necessary to bring forward all the facts.
37357 Only now, at the end of nearly ten years, am I allowed to supply those
37358 missing links which make up the whole of that remarkable chain.
37364 \begin_layout Plain Layout
37376 \begin_layout Standard
37380 \begin_layout Plain Layout
37389 Footnote of the paragraph with the fixed object.
37393 \begin_layout Plain Layout
37403 \begin_layout Standard
37404 Surrounded fixed objects are used to let text float around them, at which
37405 the object's position in the paragraph can be determined by the number
37407 In contrary to floats is it not possible to have a numbered caption.
37410 \begin_layout Standard
37411 A fixed object is inserted by adding the command
37414 \begin_layout Standard
37419 begin{window}[2,c,{
37422 \begin_layout Standard
37423 as \SpecialChar TeX
37424 Code at the beginning of the paragraph.
37425 The first parameter in the bracket, here '2', defines the number of lines
37426 above the object, the second, here 'c', the position of the object.
37427 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37428 Behind the command you insert the object.
37429 In this example an image with a width of 40
37430 \begin_inset space \thinspace{}
37433 % of the text column width was inserted.
37434 The object can also be a table, a box or an equation.
37435 Behind the object the command
37438 \begin_layout Standard
37441 },description text]
37442 \begin_inset Newline newline
37448 \begin_layout Standard
37451 \begin_inset Quotes eld
37459 \begin_inset Quotes erd
37462 is in the second line.
37463 The description text is optional.
37464 The text surrounding the object must be in the same paragraph as the object,
37465 so it must begin directly after the
37470 At the end of the paragraph insert the command:
37473 \begin_layout Standard
37481 \begin_layout Standard
37482 Within a paragraph with a fixed object, you cannot insert footnotes in the
37484 You have to use instead the command
37490 inside the paragraph and outside the command
37496 as described in sec.
37497 \begin_inset space \thinspace{}
37501 \begin_inset CommandInset ref
37503 reference "sec:Footnotes"
37510 \begin_layout Standard
37514 \begin_layout Plain Layout
37524 \begin_inset Note Note
37527 \begin_layout Plain Layout
37528 The following will be displayed when the \SpecialChar LaTeX
37541 \begin_layout Standard
37542 You need to install the \SpecialChar LaTeX
37547 to see the following part of this section in the output.
37550 \begin_layout Standard
37554 \begin_layout Plain Layout
37566 \begin_layout Section
37568 \begin_inset Index idx
37571 \begin_layout Plain Layout
37578 \begin_inset Index idx
37581 \begin_layout Plain Layout
37582 Surrounded by text ! Initials
37590 \begin_layout Standard
37591 To use initials, you must have the \SpecialChar LaTeX
37597 \begin_inset Index idx
37600 \begin_layout Plain Layout
37602 -packages ! lettrine
37607 installed and use the module
37611 in your document (menu
37613 Document\SpecialChar menuseparator
37614 Settings\SpecialChar menuseparator
37618 To insert an initial, use the style
37623 This style has a mandatory and two optional arguments.
37624 The arguments are inserted via the
37629 The mandatory argument
37633 contains the letter(s) that is the initial, the argument
37636 \begin_inset space ~
37640 \begin_inset space ~
37645 contains the rest of the word or text of the initial letter(s).
37650 contains parameters to modify the initial.
37651 For more information about the possible parameters see the documentation
37657 \begin_inset CommandInset citation
37664 The style itself contains the text that is surrounding the initial.
37665 The usual style is hereby that the word whose first letter is the initial,
37673 \begin_layout Standard
37674 Here are some examples:
37677 \begin_layout Standard
37681 \begin_layout Plain Layout
37691 \begin_inset Note Note
37694 \begin_layout Plain Layout
37695 The following section will only be displayed when the \SpecialChar LaTeX
37708 \begin_layout Enumerate
37709 No optional argument, the initial is the letter 'I' in the math font
37710 \begin_inset Formula $\mathfrak{Fraktur}$
37714 \begin_inset Separator latexpar
37721 \begin_layout Initial
37722 \begin_inset Argument 2
37725 \begin_layout Plain Layout
37726 \begin_inset Formula $\mathfrak{I}$
37735 \begin_inset Argument 3
37738 \begin_layout Plain Layout
37744 was in the spring of the year 1894 that all London was interested, and
37745 the fashionable world dismayed, by the murder of the Honourable Ronald
37746 Adair under most unusual and inexplicable circumstances.
37747 The public has already learned those particulars of the crime which came
37748 out in the police investigation, but a good deal was suppressed upon that
37749 occasion, since the case for the prosecution was so overwhelmingly strong
37750 that it was not necessary to bring forward all the facts.
37751 \begin_inset Newpage newpage
37758 \begin_layout Enumerate
37759 Only one line is surrounding the initial, which is formed by two letters
37760 in standard font and no text is printed in small caps:
37761 \begin_inset Separator latexpar
37768 \begin_layout Initial
37769 \begin_inset Argument 1
37772 \begin_layout Plain Layout
37779 \begin_inset Argument 2
37782 \begin_layout Plain Layout
37788 was in the spring of the year 1894 that all London was interested, and
37789 the fashionable world dismayed, by the murder of the Honourable Ronald
37790 Adair under most unusual and inexplicable circumstances.
37791 The public has already learned those particulars of the crime which came
37792 out in the police investigation, but a good deal was suppressed upon that
37793 occasion, since the case for the prosecution was so overwhelmingly strong
37794 that it was not necessary to bring forward all the facts.
37798 \begin_layout Enumerate
37799 Magenta, hanging initial over 3
37800 \begin_inset space ~
37803 lines in the math font
37804 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37808 \begin_inset Quotes eld
37811 t was in the spring
37812 \begin_inset Quotes erd
37819 ; to color the initial, you must insert this command before the initial:
37820 \begin_inset Newline newline
37834 \begin_inset Newline newline
37842 \begin_inset Quotes eld
37846 \begin_inset Quotes erd
37850 \begin_inset Quotes eld
37854 \begin_inset Quotes erd
37858 \begin_inset Quotes eld
37862 \begin_inset Quotes erd
37866 \begin_inset Quotes eld
37870 \begin_inset Quotes erd
37874 \begin_inset Quotes eld
37878 \begin_inset Quotes erd
37882 \begin_inset Quotes eld
37886 \begin_inset Quotes erd
37890 \begin_inset Quotes eld
37894 \begin_inset Quotes erd
37898 \begin_inset Quotes eld
37902 \begin_inset Quotes erd
37905 , and add this command to the document preamble:
37906 \begin_inset Newline newline
37913 @ifundefined{textcolor}
37914 \begin_inset Newline newline
37918 \begin_inset space ~
37923 usepackage{color}}{}
37926 \begin_inset Separator latexpar
37933 \begin_layout Standard
37937 \begin_layout Plain Layout
37951 \begin_inset Note Note
37954 \begin_layout Plain Layout
37955 makes the initial magenta
37963 \begin_layout Initial
37964 \begin_inset Argument 1
37967 \begin_layout Plain Layout
37968 lines=3, lhang=0.33, loversize=0.25
37974 \begin_inset Argument 2
37977 \begin_layout Plain Layout
37978 \begin_inset Formula $\mathcal{I}$
37987 \begin_inset Argument 3
37990 \begin_layout Plain Layout
37991 t was in the spring
37996 of the year 1894 that all London was interested, and the fashionable world
37997 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37998 and inexplicable circumstances.
37999 The public has already learned those particulars of the crime which came
38000 out in the police investigation, but a good deal was suppressed upon that
38001 occasion, since the case for the prosecution was so overwhelmingly strong
38002 that it was not necessary to bring forward all the facts.
38006 \begin_layout Standard
38010 \begin_layout Plain Layout
38020 \begin_inset Note Note
38023 \begin_layout Plain Layout
38024 The following will be displayed when the \SpecialChar LaTeX
38037 \begin_layout Standard
38038 You need to install the \SpecialChar LaTeX
38043 to see the following part of this section in the output.
38046 \begin_layout Standard
38050 \begin_layout Plain Layout
38062 \begin_layout Chapter
38063 External Document Parts
38064 \begin_inset Index idx
38067 \begin_layout Plain Layout
38068 External Document Parts
38076 \begin_layout Standard
38079 Insert\SpecialChar menuseparator
38082 you can insert external material into your document.
38086 \begin_layout Description
38088 \begin_inset space ~
38091 Document Another \SpecialChar LyX
38092 document; its content is directly inserted to your document.
38095 \begin_layout Description
38097 \begin_inset space ~
38100 Text A text document; each line is inserted in your document as a separate
38104 \begin_layout Description
38106 \begin_inset space ~
38110 \begin_inset space ~
38114 \begin_inset space ~
38117 Lines A text document; text lines are inserted in your document continuously
38118 but an empty text line creates a new paragraph.
38121 \begin_layout Description
38123 \begin_inset space ~
38126 Material Files in various formats.
38129 \begin_layout Description
38131 \begin_inset space ~
38134 Document \SpecialChar LyX
38135 or \SpecialChar LaTeX
38139 \begin_layout Section
38141 \begin_inset Index idx
38144 \begin_layout Plain Layout
38145 External Document Parts ! External Material
38153 \begin_layout Standard
38154 The external material feature allows you to insert files into your document
38155 without converting them to a format that can be read by the document output
38158 takes care of the necessary conversions.
38159 This is similar to images that can be inserted in various image formats
38160 in \SpecialChar LyX
38162 When you have enabled Instant Preview in \SpecialChar LyX
38163 's preferences under
38166 \begin_inset space ~
38170 \begin_inset space ~
38173 feel\SpecialChar menuseparator
38176 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38180 \begin_layout Standard
38181 External material can be inserted via the
38185 dialog that is accessible with the menu
38187 Insert\SpecialChar menuseparator
38188 File\SpecialChar menuseparator
38190 \begin_inset space ~
38196 Currently the following file types (
38203 \begin_layout Description
38205 \begin_inset space ~
38208 diagram This template supports chess position diagrams made with the program
38212 \begin_inset CommandInset href
38215 target "http://en.wikipedia.org/wiki/XBoard"
38224 \begin_layout Description
38225 Date This inserts the date in the form
38230 This is a date inserted as external material:
38231 \begin_inset External
38238 \begin_inset space ~
38242 \begin_inset Note Note
38245 \begin_layout Plain Layout
38246 Remove the protected space when bug 4398 is fixed!
38252 \begin_inset Newline newline
38255 The date is not shown within \SpecialChar LyX
38256 , only in the output.
38257 There are two other methods of inserting a date: Via menu
38259 Insert\SpecialChar menuseparator
38262 and with the \SpecialChar LaTeX
38269 as \SpecialChar TeX
38271 The different methods are compared in Table
38272 \begin_inset space ~
38276 \begin_inset CommandInset ref
38278 reference "tab:Comparison-of-the"
38285 \begin_layout Description
38287 \begin_inset space ~
38290 diagram This template supports diagrams created with the program
38293 \begin_inset CommandInset href
38296 target "http://en.wikipedia.org/wiki/Dia_(software)"
38305 \begin_layout Description
38306 Spreadsheet With this template you can insert spreadsheets
38307 \begin_inset space \thinspace{}
38311 \begin_inset space \thinspace{}
38314 tables in the format of
38317 \begin_inset CommandInset href
38320 target "http://en.wikipedia.org/wiki/Gnumeric"
38327 \begin_inset CommandInset href
38329 name "OpenDocument"
38330 target "http://en.wikipedia.org/wiki/OpenDocument"
38335 \begin_inset CommandInset href
38337 name "Microsoft Office XML"
38338 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38343 \begin_inset CommandInset href
38345 name "Office Open XML"
38346 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38351 For this feature \SpecialChar LyX
38352 must have found the program
38356 during its configuration.
38357 This program is part of Gnumeric, so that you must have Gnumeric installed,
38358 also if you don't have tables in the Gnumeric format.
38359 For examples and possible limitations have a look at \SpecialChar LyX
38367 \begin_layout Description
38369 \begin_inset space ~
38373 \begin_inset space ~
38376 music This template is used for music notation typeset with the program
38377 \begin_inset Newline linebreak
38383 \begin_inset CommandInset href
38386 target "http://en.wikipedia.org/wiki/LilyPond"
38393 For \SpecialChar LyX
38394 's extended support for LilyPond have a look at \SpecialChar LyX
38402 \begin_layout Description
38404 \begin_inset space ~
38407 pages With this template you can insert PDF documents to your document.
38408 To specify the range of pages that should be included, use the option
38418 LaTeX and LyX options
38421 The argument of this option is a comma separated list, containing page
38422 numbers (insert as option
38426 ), ranges of page numbers (
38430 ) or any combination.
38431 To insert empty pages use {}.
38433 \begin_inset space \thinspace{}
38437 \begin_inset space ~
38442 pages={3,{},8-11,15}
38444 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38445 Page ranges are specified in the syntax
38454 This selects all pages from
38467 defaults to the first page; omitting
38471 defaults to the last page of the document.
38472 The last page can also be selected with the keyword
38477 (This is only permitted in a page range.) So
38481 will insert all pages of the document and
38485 will insert all pages in reverse order.
38486 If the pages option is not specified, only the first page of the PDF is
38488 \begin_inset Newline newline
38495 inserts the pages with their original size, if this option is not given,
38496 the pages will be resized to fith the width of the page of your document.
38501 you can specify the width and height of the input pages and their rotation.
38502 If another width than 100
38503 \begin_inset space \thinspace{}
38506 Scale% is used, the option
38510 will be overwritten.
38511 For more info and possible options, have a look into the documentation
38512 of the \SpecialChar LaTeX
38518 \begin_inset CommandInset citation
38525 \begin_inset Index idx
38528 \begin_layout Plain Layout
38530 -packages ! pdfpages
38536 \begin_inset Newline newline
38539 To use this template in a
38543 presentation you need to first insert an
38547 environment and in a subsequent paragraph a \SpecialChar TeX
38548 Code box containing the command
38553 setbeamertemplate{background canvas}{}
38556 Then you can insert as many paragraphs containing the PDFPages template
38558 Behind the included PDF pages you can resume the Beamer presentation by
38559 beginning a new frame or by starting a new section.
38560 To avoid stray blank pages prior to the PDF pages, make sure to use the
38565 alignment for the paragraph containing the template.
38566 \begin_inset Newline newline
38569 Here is an included PDF which is rotated by -5°:
38570 \begin_inset External
38572 filename clipart/Abstract.pdf
38573 extra LaTeX "noautoscale, pages=-"
38575 rotateOrigin bottomleft
38582 \begin_layout Description
38584 \begin_inset space ~
38587 image This can be used for bitmap images.
38588 The image can be treated in the
38592 dialog like the images that are usually included via the
38596 dialog as described in section
38597 \begin_inset space ~
38601 \begin_inset CommandInset ref
38603 reference "sec:Graphics-Dialog"
38608 Here is an inserted raster image:
38609 \begin_inset External
38610 template RasterImage
38611 filename clipart/ToolbarEnvBox.png
38618 \begin_layout Description
38620 \begin_inset space ~
38623 graphics This can be used for vector graphics.
38624 The image can be treated in the
38628 dialog like the images that are usually included via the
38632 dialog as described in section
38633 \begin_inset space ~
38637 \begin_inset CommandInset ref
38639 reference "sec:Graphics-Dialog"
38644 Here is an inserted vector graphics:
38645 \begin_inset External
38646 template VectorGraphics
38647 filename clipart/SVG-Drawing.svg
38655 \begin_layout Description
38657 \begin_inset space ~
38660 figure This template supports images created with the program
38663 \begin_inset CommandInset href
38666 target "http://en.wikipedia.org/wiki/Xfig"
38675 \begin_layout Standard
38676 \begin_inset Float table
38682 \begin_layout Plain Layout
38683 \begin_inset Caption Standard
38685 \begin_layout Plain Layout
38686 \begin_inset CommandInset label
38688 name "tab:Comparison-of-the"
38692 Comparison of the date input methods.
38700 \begin_layout Plain Layout
38702 \begin_inset Tabular
38703 <lyxtabular version="3" rows="4" columns="4">
38704 <features tabularvalignment="middle">
38705 <column alignment="center" valignment="top">
38706 <column alignment="center" valignment="top">
38707 <column alignment="center" valignment="top">
38708 <column alignment="center" valignment="top">
38710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38713 \begin_layout Plain Layout
38719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38722 \begin_layout Plain Layout
38725 External Material\SpecialChar menuseparator
38731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38734 \begin_layout Plain Layout
38737 Insert\SpecialChar menuseparator
38743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38746 \begin_layout Plain Layout
38758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38761 \begin_layout Plain Layout
38768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38771 \begin_layout Plain Layout
38777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38780 \begin_layout Plain Layout
38786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38789 \begin_layout Plain Layout
38790 as \SpecialChar TeX
38798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38801 \begin_layout Plain Layout
38808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38811 \begin_layout Plain Layout
38817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38820 \begin_layout Plain Layout
38826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38829 \begin_layout Plain Layout
38837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38840 \begin_layout Plain Layout
38846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38849 \begin_layout Plain Layout
38855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38858 \begin_layout Plain Layout
38864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38867 \begin_layout Plain Layout
38886 \begin_layout Standard
38887 When you use the option
38899 dialog, only the path to the inserted file is shown in the output.
38900 \begin_inset Newline newline
38903 External material is displayed in \SpecialChar LyX
38904 either as a box like this:
38905 \begin_inset Graphics
38906 filename clipart/ExternalMaterial.png
38908 scaleBeforeRotation
38912 or as image, depending on the option
38918 LaTeX and LyX options
38923 \begin_layout Standard
38930 manual explains how you can define your own templates.
38933 \begin_layout Section
38935 \begin_inset CommandInset label
38937 name "sec:Child-Documents"
38942 \begin_inset Index idx
38945 \begin_layout Plain Layout
38946 External Document Parts ! Child Documents
38952 \begin_inset Index idx
38955 \begin_layout Plain Layout
38964 \begin_layout Standard
38965 Child documents are used if you have a long document consisting of several
38966 larger parts or sections.
38967 For maintenance it is often useful and sometimes even required to split
38968 the document into several files that can be revised separately.
38969 The different documents are then the so called
38970 \begin_inset Quotes eld
38974 \begin_inset Quotes erd
38977 , and a master document connects them to print the full document or parts
38979 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38981 the bibliography, and labels for cross-references.
38984 \begin_layout Standard
38985 To be able to work on child documents without the need to open their master,
38986 specify in the child document the master in the menu
38988 Document\SpecialChar menuseparator
38989 Settings\SpecialChar menuseparator
38991 \begin_inset space ~
38997 This master document will then be used in the background by \SpecialChar LyX
38999 the child document.
39002 \begin_layout Standard
39003 Included documents are displayed in \SpecialChar LyX
39004 as a box like this:
39005 \begin_inset Graphics
39006 filename clipart/ChildDocument.png
39007 scaleBeforeRotation
39011 To include child documents in a master document use the menu
39013 Insert\SpecialChar menuseparator
39014 File\SpecialChar menuseparator
39016 \begin_inset space ~
39022 A dialog pops up where you can choose between four include methods:
39025 \begin_layout Description
39026 Include You can include \SpecialChar LyX
39027 and \SpecialChar LaTeX
39037 dialog, the included document will be opened in \SpecialChar LyX
39038 in a new file tab so that
39040 \begin_inset Newline newline
39046 \begin_layout Standard
39047 Here is a child document inserted using
39052 \begin_inset CommandInset include
39053 LatexCommand include
39054 filename "DummyDocument1.lyx"
39061 \begin_layout Standard
39062 The section numbering includes the sections of the included files in the
39063 order they are inserted in the master document.
39064 The included example document has for example a subsection that is numbered
39065 as a subsection of this section.
39066 Labels of included documents can be referenced: Subsection
39067 \begin_inset space ~
39071 \begin_inset CommandInset ref
39073 reference "subsec:External-Subsection-1"
39080 \begin_layout Standard
39081 The preamble of the child document is ignored; only the preamble of the
39082 master document is used.
39083 Branches in child documents will be ignored by the master document when
39084 the master document does not have a branch with the same name.
39085 Included documents are inserted starting on a new page and ending with
39089 \begin_layout Standard
39090 \begin_inset Note Greyedout
39093 \begin_layout Plain Layout
39098 If you have included a \SpecialChar LyX
39099 or \SpecialChar LaTeX
39100 file, you are warned when you export/view the
39101 document in case the child document uses another document class than the
39102 master document as this will lead to unexpected outputs.
39110 \begin_layout Description
39111 Input This method is very similar to the Include method.
39112 The differences are:
39113 \begin_inset Separator latexpar
39120 \begin_layout Itemize
39121 Input files don't start with a new page and don't end with a page break.
39124 \begin_layout Itemize
39125 Input files can be previewed in \SpecialChar LyX
39129 \begin_inset space ~
39134 is enabled in \SpecialChar LyX
39135 's preferences under
39138 \begin_inset space ~
39142 \begin_inset space ~
39145 feel\SpecialChar menuseparator
39151 \begin_layout Itemize
39152 You cannot exclude Input files via the menu
39154 Document\SpecialChar menuseparator
39155 Settings\SpecialChar menuseparator
39162 \begin_layout Standard
39163 Here is a child document inserted using
39168 \begin_inset CommandInset include
39170 filename "DummyDocument2.lyx"
39177 \begin_layout Description
39178 Verbatim With this method any text file can be included.
39179 The file is shown in the output with its source code; no command used in
39180 the text is invoked.
39181 You can use the option
39183 Mark spaces in output
39185 that displays the character
39186 \begin_inset Quotes eld
39193 \begin_layout Plain Layout
39203 \begin_inset Quotes erd
39206 for every space character in the source code.
39207 The difference from the method via the menu
39209 Insert\SpecialChar menuseparator
39210 File\SpecialChar menuseparator
39212 \begin_inset space ~
39217 is that the document content is not shown in \SpecialChar LyX
39221 \begin_layout Standard
39222 Here is a child document inserted as Verbatim:
39223 \begin_inset CommandInset include
39224 LatexCommand verbatiminput
39225 filename "DummyTextDocument.txt"
39230 \begin_inset VSpace bigskip
39233 Here is a child document inserted as Verbatim using the
39235 Mark spaces in output
39238 \begin_inset CommandInset include
39239 LatexCommand verbatiminput*
39240 filename "DummyTextDocument.txt"
39247 \begin_layout Standard
39248 \begin_inset VSpace bigskip
39254 \begin_layout Standard
39255 \begin_inset Note Greyedout
39258 \begin_layout Plain Layout
39263 As you can see in the examples above, the text of the documents included
39268 is not broken at the end of the document lines.
39276 \begin_layout Description
39277 Listings This type is described in chapter
39278 \begin_inset space ~
39282 \begin_inset CommandInset ref
39284 reference "cha:Program-Code-Listings"
39291 \begin_layout Standard
39292 \begin_inset Note Greyedout
39295 \begin_layout Plain Layout
39300 Including the same document twice in a document using different methods
39301 could cause \SpecialChar LaTeX
39310 \begin_layout Standard
39311 If you want to view/export only selected children of your master document,
39312 either because you want to save compiling time or because you want to distribut
39313 e single chapters of the book you are just writing, you can exclude children
39315 This is done via the menu
39317 Document\SpecialChar menuseparator
39318 Settings\SpecialChar menuseparator
39322 You can exclude\SpecialChar breakableslash
39323 include children by double-clicking on the
39327 column of the respective child document in the list (note that this only
39328 works for documents embedded via
39329 \begin_inset Quotes eld
39333 \begin_inset Quotes erd
39337 \begin_inset Quotes eld
39341 \begin_inset Quotes erd
39347 Maintain counters and references
39349 is enabled, \SpecialChar LyX
39350 will assure that all page numbers, references etc.
39351 \begin_inset space ~
39354 are correct as if the whole document was processed.
39355 This is useful if you want the selected sub-documents to look exactly as
39356 in the context of the whole document.
39357 However, \SpecialChar LyX
39358 needs to process the whole document in the background for this
39360 So if you want to save compile time and if counters and references do not
39361 need to be correct, disable this checkbox.
39364 \begin_layout Standard
39365 Alternatively, you can put each included file into a branch.
39369 \begin_layout Plain Layout
39370 Branches are described in section
39374 of the \SpecialChar LyX
39384 By enabling\SpecialChar breakableslash
39385 disabling branches you can decide which included files will
39386 appear in the output.
39387 This has the advantage that it also works with Input'ed sub-documents.
39388 However, counters and references will not be maintained with this approach.
39391 \begin_layout Chapter
39392 Program Code Listings
39393 \begin_inset CommandInset label
39395 name "cha:Program-Code-Listings"
39400 \begin_inset Index idx
39403 \begin_layout Plain Layout
39410 \begin_inset Index idx
39413 \begin_layout Plain Layout
39420 \begin_inset Index idx
39423 \begin_layout Plain Layout
39432 \begin_layout Standard
39433 To include and typeset program code you can use the
39437 inset that can be inserted via the menu
39439 Insert\SpecialChar menuseparator
39443 The \SpecialChar LaTeX
39449 \begin_inset Index idx
39452 \begin_layout Plain Layout
39454 -packages ! listings
39459 provides a powerful and flexible way to insert program source code into
39463 \begin_layout Standard
39464 Right-clicking on a listings inset opens the context menu containing where
39465 you can set the listings format.
39468 \begin_layout Standard
39469 By default, a listing starts a new paragraph in the output.
39470 The placement option
39473 \begin_inset space ~
39478 prints the listing inline like this:
39479 \begin_inset listings
39480 lstparams "language={C++}"
39484 \begin_layout Plain Layout
39492 \begin_inset Newline newline
39499 creates a listings float where you can specify the placement options
39500 \begin_inset Quotes eld
39508 \begin_inset Quotes erd
39512 \begin_inset Quotes eld
39520 \begin_inset Quotes erd
39524 \begin_inset Quotes eld
39532 \begin_inset Quotes erd
39536 \begin_inset Quotes eld
39544 \begin_inset Quotes erd
39547 corresponding to the float placement options described in section
39548 \begin_inset space ~
39552 \begin_inset CommandInset ref
39554 reference "sec:Float-Placement"
39559 The placement options can be mixed and are inserted without any separation,
39561 \begin_inset space \thinspace{}
39565 \begin_inset space \space{}
39569 \begin_inset Quotes eld
39577 \begin_inset Quotes erd
39582 \begin_inset Quotes eld
39586 \begin_inset Quotes erd
39589 has sometimes no effect, but you don't need to use the
39593 option in this case as also non-float listings can have captions and be
39597 \begin_layout Standard
39598 You can add captions to listings with the menu
39600 Insert\SpecialChar menuseparator
39604 Listings can be referenced like floats: Listing
39605 \begin_inset space ~
39609 \begin_inset CommandInset ref
39611 reference "lst:Example-Listing"
39616 A list of listings which contains all listings with captions can be created
39619 Insert\SpecialChar menuseparator
39621 \begin_inset space ~
39625 \begin_inset space ~
39628 TOC\SpecialChar menuseparator
39632 The list entries are the listing caption and the listing number.
39635 \begin_layout Standard
39636 \begin_inset listings
39637 lstparams "language=Python"
39641 \begin_layout Plain Layout
39643 \begin_inset Caption Standard
39645 \begin_layout Plain Layout
39646 \begin_inset CommandInset label
39648 name "lst:Example-Listing"
39652 Example Listing float
39657 # Example listing float
39660 \begin_layout Plain Layout
39665 \begin_layout Plain Layout
39667 'this is a python function'
39670 \begin_layout Plain Layout
39680 \begin_layout Standard
39681 When you have set a programming language in the listings dialog, the keywords
39682 of this language will be recognized and specially typeset in the output.
39683 In the example listings the Python keyword
39684 \begin_inset Quotes eld
39688 \begin_inset Quotes erd
39691 is recognized and printed bold in the output.
39694 \begin_layout Standard
39695 \begin_inset Note Greyedout
39698 \begin_layout Plain Layout
39703 If you don't get bold keywords when using typewriter fonts, your
39707 font probably doesn't provide a bold shape.
39708 In this case select a different one in the menu
39710 Document\SpecialChar menuseparator
39711 Settings\SpecialChar menuseparator
39723 provide bold shapes.)
39731 \begin_layout Standard
39735 \begin_inset space ~
39740 of the listings dialog you can specify the line numbering style.
39741 You can insert a number to specify which lines are numbered in the field
39748 \begin_inset space \thinspace{}
39752 \begin_inset space \space{}
39756 \begin_inset Quotes eld
39760 \begin_inset Quotes erd
39763 , only every 3rd line will be numbered.
39766 \begin_layout Standard
39767 You can furthermore specify a range of lines; only these will then appear
39771 Extended character table
39773 should be used when you use national characters like the German umlauts
39775 \begin_inset Newline newline
39778 Here is an example listing with left line numbering, step
39779 \begin_inset Quotes eld
39783 \begin_inset Quotes erd
39787 \begin_inset Quotes eld
39791 \begin_inset Quotes erd
39795 \begin_inset Quotes eld
39798 Extended character table
39799 \begin_inset Quotes erd
39803 \begin_inset Quotes eld
39807 \begin_inset space ~
39811 \begin_inset space ~
39815 \begin_inset Quotes erd
39819 \begin_inset space \thinspace{}
39823 \begin_inset space \thinspace{}
39829 \begin_layout Standard
39830 \begin_inset listings
39831 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39835 \begin_layout Plain Layout
39840 \begin_layout Plain Layout
39842 'this is a python function'
39845 \begin_layout Plain Layout
39850 \begin_layout Plain Layout
39855 \begin_layout Plain Layout
39857 'This is a German word: Tschüß'
39860 \begin_layout Plain Layout
39865 \begin_layout Plain Layout
39870 \begin_layout Plain Layout
39872 'this is a python function'
39875 \begin_layout Plain Layout
39885 \begin_layout Standard
39886 When you have tabulators in your listing, you can specify the number of
39887 characters that are spanned by a tabulator in the field
39890 \begin_inset space ~
39898 \begin_layout Standard
39899 \begin_inset Note Greyedout
39902 \begin_layout Plain Layout
39907 Due to a bug in the
39911 package the line numbering is shifted by a line by every previous listing.
39912 That's the reason why the lines 2 and 5 are numbered in the above listing
39913 and not the lines 3 and 6.
39921 \begin_layout Standard
39922 \begin_inset VSpace bigskip
39928 \begin_layout Standard
39929 It is also possible to print lines from a file as listing.
39930 To do this, use the menu
39932 Insert\SpecialChar menuseparator
39933 File\SpecialChar menuseparator
39936 and choose the type
39944 \begin_layout Plain Layout
39945 The other child document types are described in section
39946 \begin_inset space ~
39950 \begin_inset CommandInset ref
39952 reference "sec:Child-Documents"
39961 In the child document dialog you can specify the listing parameters in
39963 To show a list of all available parameters, type in a question mark
39964 \begin_inset Quotes eld
39968 \begin_inset Quotes erd
39974 \begin_layout Standard
39975 To reference child document listings, write a label text into the corresponding
39976 field of the child document dialog.
39977 The label can then be referenced using the menu
39979 Insert\SpecialChar menuseparator
39985 \begin_layout Standard
39987 \begin_inset space ~
39991 \begin_inset CommandInset ref
39993 reference "lst:file-listing"
39997 is an example for a listing of a file; there the lines 10
39998 \begin_inset space \thinspace{}
40002 \begin_inset space \thinspace{}
40005 15 of this \SpecialChar LyX
40009 \begin_layout Standard
40010 \begin_inset CommandInset include
40011 LatexCommand lstinputlisting
40012 filename "EmbeddedObjects.lyx"
40013 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40020 \begin_layout Standard
40021 \begin_inset VSpace bigskip
40027 \begin_layout Standard
40028 Inserting a formula into a listing can be done the following way:
40031 \begin_layout Enumerate
40032 Open the listings dialog and add
40033 \begin_inset Newline newline
40041 \begin_inset Newline newline
40044 to the field of the
40051 \begin_layout Enumerate
40052 Create a formula outside the listing
40055 \begin_layout Enumerate
40056 Copy the content of the formula (not the formula inset) to the clipboard
40066 \begin_layout Enumerate
40067 In the listing write
40068 \begin_inset Quotes eld
40076 \begin_inset Quotes erd
40079 and copy from the clipboard between the dollar-signs (shortcut
40088 \begin_layout Standard
40089 \begin_inset listings
40090 lstparams "language=Python,mathescape=true"
40094 \begin_layout Plain Layout
40096 \begin_inset Caption Standard
40098 \begin_layout Plain Layout
40099 Example Listing float containing a formula
40104 # Example listing float
40107 \begin_layout Plain Layout
40112 \begin_layout Plain Layout
40125 \begin_layout Plain Layout
40135 \begin_layout Standard
40136 \begin_inset VSpace bigskip
40142 \begin_layout Standard
40143 Global listings settings can be set in the
40145 Document\SpecialChar menuseparator
40146 Settings\SpecialChar menuseparator
40150 To get there a list of available options, type in a question mark
40151 \begin_inset Quotes eld
40155 \begin_inset Quotes erd
40161 \begin_layout Standard
40162 For more information about the
40166 package, we refer to its documentation
40167 \begin_inset CommandInset citation
40176 \begin_layout Standard
40177 \begin_inset Newpage newpage
40183 \begin_layout Chapter
40185 Units available in \SpecialChar LyX
40187 \begin_inset Index idx
40190 \begin_layout Plain Layout
40197 \begin_inset CommandInset label
40199 name "cha:Units-available-in"
40206 \begin_layout Standard
40207 To understand the units described in this documentation, Table
40208 \begin_inset space ~
40212 \begin_inset CommandInset ref
40214 reference "tab:Units"
40218 explains all units available in \SpecialChar LyX
40222 \begin_layout Standard
40223 \begin_inset Float table
40229 \begin_layout Plain Layout
40230 \begin_inset Caption Standard
40232 \begin_layout Plain Layout
40233 \begin_inset CommandInset label
40247 \begin_layout Plain Layout
40248 \begin_inset VSpace medskip
40254 \begin_layout Plain Layout
40256 \begin_inset Tabular
40257 <lyxtabular version="3" rows="20" columns="3">
40258 <features tabularvalignment="middle">
40259 <column alignment="center" valignment="top">
40260 <column alignment="center" valignment="top">
40261 <column alignment="center" valignment="top">
40263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40266 \begin_layout Plain Layout
40272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40275 \begin_layout Plain Layout
40281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40284 \begin_layout Plain Layout
40293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40296 \begin_layout Plain Layout
40302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40305 \begin_layout Plain Layout
40311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40314 \begin_layout Plain Layout
40322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40325 \begin_layout Plain Layout
40331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40334 \begin_layout Plain Layout
40340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40343 \begin_layout Plain Layout
40351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40354 \begin_layout Plain Layout
40360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40363 \begin_layout Plain Layout
40369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40372 \begin_layout Plain Layout
40380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40383 \begin_layout Plain Layout
40389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40392 \begin_layout Plain Layout
40394 \begin_inset space \thinspace{}
40398 \begin_inset space \thinspace{}
40406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40409 \begin_layout Plain Layout
40417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40420 \begin_layout Plain Layout
40426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40429 \begin_layout Plain Layout
40431 \begin_inset space \thinspace{}
40435 \begin_inset space \thinspace{}
40443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40446 \begin_layout Plain Layout
40454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40457 \begin_layout Plain Layout
40463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40466 \begin_layout Plain Layout
40467 scaled point (65536
40468 \begin_inset space \thinspace{}
40472 \begin_inset space \thinspace{}
40480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40483 \begin_layout Plain Layout
40491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40494 \begin_layout Plain Layout
40500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40503 \begin_layout Plain Layout
40505 \begin_inset space \thinspace{}
40509 \begin_inset space \thinspace{}
40517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40520 \begin_layout Plain Layout
40528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40531 \begin_layout Plain Layout
40537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40540 \begin_layout Plain Layout
40542 \begin_inset space \thinspace{}
40546 \begin_inset Formula $\approx$
40550 \begin_inset space \thinspace{}
40558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40561 \begin_layout Plain Layout
40569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40572 \begin_layout Plain Layout
40578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40581 \begin_layout Plain Layout
40583 \begin_inset space \thinspace{}
40587 \begin_inset space \thinspace{}
40595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40598 \begin_layout Plain Layout
40606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40609 \begin_layout Plain Layout
40615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40618 \begin_layout Plain Layout
40619 % of original image width
40624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40627 \begin_layout Plain Layout
40635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40638 \begin_layout Plain Layout
40644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40647 \begin_layout Plain Layout
40653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40656 \begin_layout Plain Layout
40666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40669 \begin_layout Plain Layout
40675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40678 \begin_layout Plain Layout
40684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40687 \begin_layout Plain Layout
40697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40700 \begin_layout Plain Layout
40706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40709 \begin_layout Plain Layout
40715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40718 \begin_layout Plain Layout
40728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40731 \begin_layout Plain Layout
40737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40740 \begin_layout Plain Layout
40746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40749 \begin_layout Plain Layout
40759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40762 \begin_layout Plain Layout
40768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40771 \begin_layout Plain Layout
40777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40780 \begin_layout Plain Layout
40790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40793 \begin_layout Plain Layout
40799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40802 \begin_layout Plain Layout
40808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40811 \begin_layout Plain Layout
40821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40824 \begin_layout Plain Layout
40830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40833 \begin_layout Plain Layout
40843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40846 \begin_layout Plain Layout
40854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40857 \begin_layout Plain Layout
40863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40866 \begin_layout Plain Layout
40876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40879 \begin_layout Plain Layout
40887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40890 \begin_layout Plain Layout
40896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40899 \begin_layout Plain Layout
40901 \begin_inset space \thinspace{}
40905 \begin_inset space \thinspace{}
40913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40916 \begin_layout Plain Layout
40935 \begin_layout Chapter
40936 Output File Formats with Graphics
40937 \begin_inset CommandInset label
40939 name "cha:Output-File-Formats"
40946 \begin_layout Section
40948 \begin_inset Index idx
40951 \begin_layout Plain Layout
40958 \begin_inset Index idx
40961 \begin_layout Plain Layout
40966 \begin_layout Plain Layout
40977 \begin_layout Plain Layout
40992 \begin_layout Standard
40993 This file type has the extension
40994 \begin_inset Quotes eld
41002 \begin_inset Quotes erd
41007 \begin_inset Quotes eld
41011 \begin_inset Quotes erd
41014 (DVI), because it is completely portable; you can move them from one machine
41015 to another without needing to do any sort of conversion.
41016 At the time when this file-format was developed, this was no matter of
41018 DVIs are used for quick previews and as pre-stage for other output formats,
41022 \begin_layout Standard
41023 \begin_inset Note Greyedout
41026 \begin_layout Plain Layout
41031 DVI-files do not contain images; they will only be a linked.
41036 So don't forget this, if you move your
41040 file to another computer.
41041 This property can also slow down your computer when you view the DVI, because
41042 the DVI-viewer has to convert the image in the background to make it visible
41043 when you scroll in the DVI.
41044 So it is recommended that you use PDF for files with many images.
41047 \begin_layout Standard
41048 You can export your document to DVI by using the menu
41050 File\SpecialChar menuseparator
41051 Export\SpecialChar menuseparator
41055 You can view your document as DVI via the
41062 \begin_layout Section
41064 \begin_inset Index idx
41067 \begin_layout Plain Layout
41068 File Formats ! PostScript
41074 \begin_inset Index idx
41077 \begin_layout Plain Layout
41082 \begin_layout Plain Layout
41093 \begin_layout Plain Layout
41108 \begin_layout Standard
41109 This file type has the extension
41110 \begin_inset Quotes eld
41118 \begin_inset Quotes erd
41122 PostScript was developed by the company
41126 as a printer language.
41127 The file therefore contains commands that the printer uses to print the
41129 PostScript can be seen as a
41130 \begin_inset Quotes eld
41133 programming language
41134 \begin_inset Quotes erd
41137 ; you can calculate with it and draw diagrams and images.
41141 \begin_layout Plain Layout
41142 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41149 \begin_inset CommandInset citation
41160 Due to this ability, the files are often bigger than PDFs.
41163 \begin_layout Standard
41164 PostScript can only contain images in the format
41165 \begin_inset Quotes eld
41168 Encapsulated PostScript
41169 \begin_inset Quotes erd
41172 (EPS, file extension
41173 \begin_inset Quotes eld
41181 \begin_inset Quotes erd
41185 As \SpecialChar LyX
41186 allows you to use any known image format in your document, it has to
41187 convert images in the background to EPS.
41189 \begin_inset space ~
41193 \begin_inset space ~
41196 images in your document, \SpecialChar LyX
41198 \begin_inset space ~
41201 conversions whenever you view or export your document.
41202 This will slow down your work flow with \SpecialChar LyX
41204 So if you plan to use PostScript, you can insert your images directly as
41205 EPS to avoid this problem.
41208 \begin_layout Standard
41209 You can export your document to PostScript using the menu
41211 File\SpecialChar menuseparator
41212 Export\SpecialChar menuseparator
41216 You can view your document as PostScript via the
41223 \begin_layout Section
41225 \begin_inset Index idx
41228 \begin_layout Plain Layout
41235 \begin_inset Index idx
41238 \begin_layout Plain Layout
41247 \begin_layout Standard
41248 This file type has the extension
41249 \begin_inset Quotes eld
41257 \begin_inset Quotes erd
41262 \begin_inset Quotes eld
41265 Portable Document Format
41266 \begin_inset Quotes erd
41269 (PDF) was developed by
41273 as a derivative of PostScript.
41274 It is more compressed and it uses fewer commands than PostScript.
41276 \begin_inset Quotes eld
41280 \begin_inset Quotes erd
41283 implies, it can be processed at any computer system and the printed output
41284 looks exactly the same.
41287 \begin_layout Standard
41288 PDF can contain images in its own PDF format, in the format
41289 \begin_inset Quotes eld
41292 Joint Photographic Experts Group
41293 \begin_inset Quotes erd
41296 (JPG, file extension
41297 \begin_inset Quotes eld
41305 \begin_inset Quotes erd
41309 \begin_inset Quotes eld
41317 \begin_inset Quotes erd
41320 ), and in the format
41321 \begin_inset Quotes eld
41324 Portable Network Graphics
41325 \begin_inset Quotes erd
41328 (PNG, file extension
41329 \begin_inset Quotes eld
41337 \begin_inset Quotes erd
41341 Nevertheless you can use any other image format, because \SpecialChar LyX
41343 in the background to one of these formats.
41344 But as described in the section about PostScript, the image conversion
41345 will slow down your work flow.
41346 So it is recommended that you use images in one of the three mentioned
41350 \begin_layout Standard
41351 You can export your document to PDF via the menu
41353 File\SpecialChar menuseparator
41356 in three different ways:
41359 \begin_layout Description
41361 \begin_inset space ~
41364 (ps2pdf) This uses the program
41368 that creates a PDF from a PostScript-version of your file.
41369 The PostScript-version is produced by the program
41373 which uses a DVI-version as intermediate step.
41374 So this export variant consists of three conversions.
41377 \begin_layout Description
41379 \begin_inset space ~
41382 (dvipdfm) This uses the program
41386 that converts your file in the background to DVI and in a second step to
41390 \begin_layout Description
41392 \begin_inset space ~
41395 (pdflatex) This uses the program
41399 that converts your file directly to PDF.
41402 \begin_layout Standard
41403 It is recommended that you use
41406 \begin_inset space ~
41415 supports all features of actual PDF-versions, is quick and works stable.
41420 is not under development and therefore a bit outdated.
41423 \begin_layout Standard
41424 You can view your document as PDF via the
41428 menu or by using a toolbar button.
41431 \begin_layout Chapter
41432 List of dvips color names
41433 \begin_inset CommandInset label
41435 name "chap:List-of-dvips-colornames"
41442 \begin_layout Standard
41443 \begin_inset Tabular
41444 <lyxtabular version="3" rows="17" columns="4">
41445 <features tabularvalignment="middle">
41446 <column alignment="left" valignment="top" width="0pt">
41447 <column alignment="left" valignment="top" width="0pt">
41448 <column alignment="left" valignment="top" width="0pt">
41449 <column alignment="left" valignment="top" width="0pt">
41451 <cell alignment="left" valignment="top" usebox="none">
41454 \begin_layout Plain Layout
41458 \begin_layout Plain Layout
41471 \begin_layout Plain Layout
41482 \begin_layout Plain Layout
41494 <cell alignment="left" valignment="top" usebox="none">
41497 \begin_layout Plain Layout
41501 \begin_layout Plain Layout
41514 \begin_layout Plain Layout
41525 \begin_layout Plain Layout
41537 <cell alignment="left" valignment="top" usebox="none">
41540 \begin_layout Plain Layout
41544 \begin_layout Plain Layout
41557 \begin_layout Plain Layout
41568 \begin_layout Plain Layout
41580 <cell alignment="left" valignment="top" usebox="none">
41583 \begin_layout Plain Layout
41587 \begin_layout Plain Layout
41600 \begin_layout Plain Layout
41611 \begin_layout Plain Layout
41625 <cell alignment="center" valignment="top" usebox="none">
41628 \begin_layout Plain Layout
41632 \begin_layout Plain Layout
41645 \begin_layout Plain Layout
41653 \begin_inset Phantom Phantom
41656 \begin_layout Plain Layout
41666 \begin_layout Plain Layout
41678 <cell alignment="center" valignment="top" usebox="none">
41681 \begin_layout Plain Layout
41685 \begin_layout Plain Layout
41698 \begin_layout Plain Layout
41706 \begin_inset Phantom Phantom
41709 \begin_layout Plain Layout
41719 \begin_layout Plain Layout
41731 <cell alignment="center" valignment="top" usebox="none">
41734 \begin_layout Plain Layout
41738 \begin_layout Plain Layout
41751 \begin_layout Plain Layout
41759 \begin_inset Phantom Phantom
41762 \begin_layout Plain Layout
41772 \begin_layout Plain Layout
41784 <cell alignment="center" valignment="top" usebox="none">
41787 \begin_layout Plain Layout
41791 \begin_layout Plain Layout
41804 \begin_layout Plain Layout
41812 \begin_inset Phantom Phantom
41815 \begin_layout Plain Layout
41825 \begin_layout Plain Layout
41839 <cell alignment="left" valignment="top" usebox="none">
41842 \begin_layout Plain Layout
41846 \begin_layout Plain Layout
41859 \begin_layout Plain Layout
41867 \begin_inset Phantom Phantom
41870 \begin_layout Plain Layout
41880 \begin_layout Plain Layout
41892 <cell alignment="left" valignment="top" usebox="none">
41895 \begin_layout Plain Layout
41899 \begin_layout Plain Layout
41912 \begin_layout Plain Layout
41920 \begin_inset Phantom Phantom
41923 \begin_layout Plain Layout
41933 \begin_layout Plain Layout
41945 <cell alignment="left" valignment="top" usebox="none">
41948 \begin_layout Plain Layout
41952 \begin_layout Plain Layout
41965 \begin_layout Plain Layout
41973 \begin_inset Phantom Phantom
41976 \begin_layout Plain Layout
41986 \begin_layout Plain Layout
41998 <cell alignment="left" valignment="top" usebox="none">
42001 \begin_layout Plain Layout
42005 \begin_layout Plain Layout
42018 \begin_layout Plain Layout
42026 \begin_inset Phantom Phantom
42029 \begin_layout Plain Layout
42039 \begin_layout Plain Layout
42053 <cell alignment="left" valignment="top" usebox="none">
42056 \begin_layout Plain Layout
42060 \begin_layout Plain Layout
42073 \begin_layout Plain Layout
42081 \begin_inset Phantom Phantom
42084 \begin_layout Plain Layout
42094 \begin_layout Plain Layout
42106 <cell alignment="left" valignment="top" usebox="none">
42109 \begin_layout Plain Layout
42113 \begin_layout Plain Layout
42126 \begin_layout Plain Layout
42134 \begin_inset Phantom Phantom
42137 \begin_layout Plain Layout
42147 \begin_layout Plain Layout
42159 <cell alignment="left" valignment="top" usebox="none">
42162 \begin_layout Plain Layout
42166 \begin_layout Plain Layout
42179 \begin_layout Plain Layout
42187 \begin_inset Phantom Phantom
42190 \begin_layout Plain Layout
42200 \begin_layout Plain Layout
42212 <cell alignment="left" valignment="top" usebox="none">
42215 \begin_layout Plain Layout
42219 \begin_layout Plain Layout
42232 \begin_layout Plain Layout
42240 \begin_inset Phantom Phantom
42243 \begin_layout Plain Layout
42253 \begin_layout Plain Layout
42267 <cell alignment="left" valignment="top" usebox="none">
42270 \begin_layout Plain Layout
42274 \begin_layout Plain Layout
42287 \begin_layout Plain Layout
42295 \begin_inset Phantom Phantom
42298 \begin_layout Plain Layout
42308 \begin_layout Plain Layout
42320 <cell alignment="left" valignment="top" usebox="none">
42323 \begin_layout Plain Layout
42327 \begin_layout Plain Layout
42340 \begin_layout Plain Layout
42348 \begin_inset Phantom Phantom
42351 \begin_layout Plain Layout
42361 \begin_layout Plain Layout
42373 <cell alignment="left" valignment="top" usebox="none">
42376 \begin_layout Plain Layout
42380 \begin_layout Plain Layout
42393 \begin_layout Plain Layout
42401 \begin_inset Phantom Phantom
42404 \begin_layout Plain Layout
42414 \begin_layout Plain Layout
42426 <cell alignment="left" valignment="top" usebox="none">
42429 \begin_layout Plain Layout
42433 \begin_layout Plain Layout
42446 \begin_layout Plain Layout
42454 \begin_inset Phantom Phantom
42457 \begin_layout Plain Layout
42467 \begin_layout Plain Layout
42481 <cell alignment="left" valignment="top" usebox="none">
42484 \begin_layout Plain Layout
42488 \begin_layout Plain Layout
42501 \begin_layout Plain Layout
42509 \begin_inset Phantom Phantom
42512 \begin_layout Plain Layout
42522 \begin_layout Plain Layout
42534 <cell alignment="left" valignment="top" usebox="none">
42537 \begin_layout Plain Layout
42541 \begin_layout Plain Layout
42554 \begin_layout Plain Layout
42562 \begin_inset Phantom Phantom
42565 \begin_layout Plain Layout
42575 \begin_layout Plain Layout
42587 <cell alignment="left" valignment="top" usebox="none">
42590 \begin_layout Plain Layout
42594 \begin_layout Plain Layout
42607 \begin_layout Plain Layout
42615 \begin_inset Phantom Phantom
42618 \begin_layout Plain Layout
42628 \begin_layout Plain Layout
42640 <cell alignment="left" valignment="top" usebox="none">
42643 \begin_layout Plain Layout
42647 \begin_layout Plain Layout
42660 \begin_layout Plain Layout
42668 \begin_inset Phantom Phantom
42671 \begin_layout Plain Layout
42681 \begin_layout Plain Layout
42695 <cell alignment="center" valignment="top" usebox="none">
42698 \begin_layout Plain Layout
42702 \begin_layout Plain Layout
42715 \begin_layout Plain Layout
42723 \begin_inset Phantom Phantom
42726 \begin_layout Plain Layout
42736 \begin_layout Plain Layout
42748 <cell alignment="center" valignment="top" usebox="none">
42751 \begin_layout Plain Layout
42755 \begin_layout Plain Layout
42768 \begin_layout Plain Layout
42776 \begin_inset Phantom Phantom
42779 \begin_layout Plain Layout
42789 \begin_layout Plain Layout
42801 <cell alignment="center" valignment="top" usebox="none">
42804 \begin_layout Plain Layout
42808 \begin_layout Plain Layout
42821 \begin_layout Plain Layout
42829 \begin_inset Phantom Phantom
42832 \begin_layout Plain Layout
42842 \begin_layout Plain Layout
42854 <cell alignment="center" valignment="top" usebox="none">
42857 \begin_layout Plain Layout
42861 \begin_layout Plain Layout
42874 \begin_layout Plain Layout
42882 \begin_inset Phantom Phantom
42885 \begin_layout Plain Layout
42895 \begin_layout Plain Layout
42909 <cell alignment="left" valignment="top" usebox="none">
42912 \begin_layout Plain Layout
42916 \begin_layout Plain Layout
42929 \begin_layout Plain Layout
42937 \begin_inset Phantom Phantom
42940 \begin_layout Plain Layout
42950 \begin_layout Plain Layout
42962 <cell alignment="left" valignment="top" usebox="none">
42965 \begin_layout Plain Layout
42969 \begin_layout Plain Layout
42982 \begin_layout Plain Layout
42990 \begin_inset Phantom Phantom
42993 \begin_layout Plain Layout
43003 \begin_layout Plain Layout
43015 <cell alignment="left" valignment="top" usebox="none">
43018 \begin_layout Plain Layout
43022 \begin_layout Plain Layout
43035 \begin_layout Plain Layout
43043 \begin_inset Phantom Phantom
43046 \begin_layout Plain Layout
43056 \begin_layout Plain Layout
43068 <cell alignment="left" valignment="top" usebox="none">
43071 \begin_layout Plain Layout
43075 \begin_layout Plain Layout
43088 \begin_layout Plain Layout
43096 \begin_inset Phantom Phantom
43099 \begin_layout Plain Layout
43109 \begin_layout Plain Layout
43123 <cell alignment="left" valignment="top" usebox="none">
43126 \begin_layout Plain Layout
43130 \begin_layout Plain Layout
43143 \begin_layout Plain Layout
43151 \begin_inset Phantom Phantom
43154 \begin_layout Plain Layout
43164 \begin_layout Plain Layout
43176 <cell alignment="left" valignment="top" usebox="none">
43179 \begin_layout Plain Layout
43183 \begin_layout Plain Layout
43196 \begin_layout Plain Layout
43204 \begin_inset Phantom Phantom
43207 \begin_layout Plain Layout
43217 \begin_layout Plain Layout
43229 <cell alignment="left" valignment="top" usebox="none">
43232 \begin_layout Plain Layout
43236 \begin_layout Plain Layout
43249 \begin_layout Plain Layout
43257 \begin_inset Phantom Phantom
43260 \begin_layout Plain Layout
43270 \begin_layout Plain Layout
43282 <cell alignment="left" valignment="top" usebox="none">
43285 \begin_layout Plain Layout
43289 \begin_layout Plain Layout
43302 \begin_layout Plain Layout
43310 \begin_inset Phantom Phantom
43313 \begin_layout Plain Layout
43323 \begin_layout Plain Layout
43337 <cell alignment="left" valignment="top" usebox="none">
43340 \begin_layout Plain Layout
43344 \begin_layout Plain Layout
43357 \begin_layout Plain Layout
43365 \begin_inset Phantom Phantom
43368 \begin_layout Plain Layout
43378 \begin_layout Plain Layout
43390 <cell alignment="left" valignment="top" usebox="none">
43393 \begin_layout Plain Layout
43397 \begin_layout Plain Layout
43410 \begin_layout Plain Layout
43418 \begin_inset Phantom Phantom
43421 \begin_layout Plain Layout
43431 \begin_layout Plain Layout
43443 <cell alignment="left" valignment="top" usebox="none">
43446 \begin_layout Plain Layout
43450 \begin_layout Plain Layout
43463 \begin_layout Plain Layout
43471 \begin_inset Phantom Phantom
43474 \begin_layout Plain Layout
43484 \begin_layout Plain Layout
43496 <cell alignment="left" valignment="top" usebox="none">
43499 \begin_layout Plain Layout
43503 \begin_layout Plain Layout
43516 \begin_layout Plain Layout
43524 \begin_inset Phantom Phantom
43527 \begin_layout Plain Layout
43537 \begin_layout Plain Layout
43551 <cell alignment="left" valignment="top" usebox="none">
43554 \begin_layout Plain Layout
43558 \begin_layout Plain Layout
43571 \begin_layout Plain Layout
43579 \begin_inset Phantom Phantom
43582 \begin_layout Plain Layout
43592 \begin_layout Plain Layout
43604 <cell alignment="left" valignment="top" usebox="none">
43607 \begin_layout Plain Layout
43611 \begin_layout Plain Layout
43624 \begin_layout Plain Layout
43632 \begin_inset Phantom Phantom
43635 \begin_layout Plain Layout
43645 \begin_layout Plain Layout
43657 <cell alignment="left" valignment="top" usebox="none">
43660 \begin_layout Plain Layout
43664 \begin_layout Plain Layout
43677 \begin_layout Plain Layout
43685 \begin_inset Phantom Phantom
43688 \begin_layout Plain Layout
43698 \begin_layout Plain Layout
43710 <cell alignment="left" valignment="top" usebox="none">
43713 \begin_layout Plain Layout
43717 \begin_layout Plain Layout
43730 \begin_layout Plain Layout
43738 \begin_inset Phantom Phantom
43741 \begin_layout Plain Layout
43751 \begin_layout Plain Layout
43765 <cell alignment="left" valignment="top" usebox="none">
43768 \begin_layout Plain Layout
43772 \begin_layout Plain Layout
43785 \begin_layout Plain Layout
43793 \begin_inset Phantom Phantom
43796 \begin_layout Plain Layout
43806 \begin_layout Plain Layout
43818 <cell alignment="left" valignment="top" usebox="none">
43821 \begin_layout Plain Layout
43825 \begin_layout Plain Layout
43838 \begin_layout Plain Layout
43846 \begin_inset Phantom Phantom
43849 \begin_layout Plain Layout
43859 \begin_layout Plain Layout
43871 <cell alignment="left" valignment="top" usebox="none">
43874 \begin_layout Plain Layout
43878 \begin_layout Plain Layout
43891 \begin_layout Plain Layout
43899 \begin_inset Phantom Phantom
43902 \begin_layout Plain Layout
43912 \begin_layout Plain Layout
43924 <cell alignment="left" valignment="top" usebox="none">
43927 \begin_layout Plain Layout
43931 \begin_layout Plain Layout
43944 \begin_layout Plain Layout
43952 \begin_inset Phantom Phantom
43955 \begin_layout Plain Layout
43965 \begin_layout Plain Layout
43979 <cell alignment="left" valignment="top" usebox="none">
43982 \begin_layout Plain Layout
43986 \begin_layout Plain Layout
43999 \begin_layout Plain Layout
44007 \begin_inset Phantom Phantom
44010 \begin_layout Plain Layout
44020 \begin_layout Plain Layout
44032 <cell alignment="left" valignment="top" usebox="none">
44035 \begin_layout Plain Layout
44039 \begin_layout Plain Layout
44052 \begin_layout Plain Layout
44060 \begin_inset Phantom Phantom
44063 \begin_layout Plain Layout
44073 \begin_layout Plain Layout
44085 <cell alignment="left" valignment="top" usebox="none">
44088 \begin_layout Plain Layout
44092 \begin_layout Plain Layout
44105 \begin_layout Plain Layout
44113 \begin_inset Phantom Phantom
44116 \begin_layout Plain Layout
44126 \begin_layout Plain Layout
44138 <cell alignment="left" valignment="top" usebox="none">
44141 \begin_layout Plain Layout
44145 \begin_layout Plain Layout
44158 \begin_layout Plain Layout
44166 \begin_inset Phantom Phantom
44169 \begin_layout Plain Layout
44179 \begin_layout Plain Layout
44193 <cell alignment="left" valignment="top" usebox="none">
44196 \begin_layout Plain Layout
44200 \begin_layout Plain Layout
44213 \begin_layout Plain Layout
44221 \begin_inset Phantom Phantom
44224 \begin_layout Plain Layout
44234 \begin_layout Plain Layout
44246 <cell alignment="left" valignment="top" usebox="none">
44249 \begin_layout Plain Layout
44253 \begin_layout Plain Layout
44266 \begin_layout Plain Layout
44274 \begin_inset Phantom Phantom
44277 \begin_layout Plain Layout
44287 \begin_layout Plain Layout
44299 <cell alignment="left" valignment="top" usebox="none">
44302 \begin_layout Plain Layout
44306 \begin_layout Plain Layout
44319 \begin_layout Plain Layout
44327 \begin_inset Phantom Phantom
44330 \begin_layout Plain Layout
44340 \begin_layout Plain Layout
44352 <cell alignment="left" valignment="top" usebox="none">
44355 \begin_layout Plain Layout
44359 \begin_layout Plain Layout
44372 \begin_layout Plain Layout
44380 \begin_inset Phantom Phantom
44383 \begin_layout Plain Layout
44393 \begin_layout Plain Layout
44407 <cell alignment="left" valignment="top" usebox="none">
44410 \begin_layout Plain Layout
44414 \begin_layout Plain Layout
44427 \begin_layout Plain Layout
44435 \begin_inset Phantom Phantom
44438 \begin_layout Plain Layout
44448 \begin_layout Plain Layout
44460 <cell alignment="left" valignment="top" usebox="none">
44463 \begin_layout Plain Layout
44467 \begin_layout Plain Layout
44480 \begin_layout Plain Layout
44488 \begin_inset Phantom Phantom
44491 \begin_layout Plain Layout
44501 \begin_layout Plain Layout
44513 <cell alignment="left" valignment="top" usebox="none">
44516 \begin_layout Plain Layout
44520 \begin_layout Plain Layout
44533 \begin_layout Plain Layout
44541 \begin_inset Phantom Phantom
44544 \begin_layout Plain Layout
44554 \begin_layout Plain Layout
44566 <cell alignment="left" valignment="top" usebox="none">
44569 \begin_layout Plain Layout
44573 \begin_layout Plain Layout
44586 \begin_layout Plain Layout
44594 \begin_inset Phantom Phantom
44597 \begin_layout Plain Layout
44607 \begin_layout Plain Layout
44621 <cell alignment="left" valignment="top" usebox="none">
44624 \begin_layout Plain Layout
44628 \begin_layout Plain Layout
44641 \begin_layout Plain Layout
44649 \begin_inset Phantom Phantom
44652 \begin_layout Plain Layout
44662 \begin_layout Plain Layout
44674 <cell alignment="left" valignment="top" usebox="none">
44677 \begin_layout Plain Layout
44681 \begin_layout Plain Layout
44694 \begin_layout Plain Layout
44702 \begin_inset Phantom Phantom
44705 \begin_layout Plain Layout
44715 \begin_layout Plain Layout
44727 <cell alignment="left" valignment="top" usebox="none">
44730 \begin_layout Plain Layout
44734 \begin_layout Plain Layout
44747 \begin_layout Plain Layout
44755 \begin_inset Phantom Phantom
44758 \begin_layout Plain Layout
44768 \begin_layout Plain Layout
44780 <cell alignment="left" valignment="top" usebox="none">
44783 \begin_layout Plain Layout
44787 \begin_layout Plain Layout
44800 \begin_layout Plain Layout
44808 \begin_inset Phantom Phantom
44811 \begin_layout Plain Layout
44821 \begin_layout Plain Layout
44835 <cell alignment="left" valignment="top" usebox="none">
44838 \begin_layout Plain Layout
44842 \begin_layout Plain Layout
44855 \begin_layout Plain Layout
44863 \begin_inset Phantom Phantom
44866 \begin_layout Plain Layout
44876 \begin_layout Plain Layout
44888 <cell alignment="left" valignment="top" usebox="none">
44891 \begin_layout Plain Layout
44897 <cell alignment="left" valignment="top" usebox="none">
44900 \begin_layout Plain Layout
44906 <cell alignment="left" valignment="top" usebox="none">
44909 \begin_layout Plain Layout
44923 \begin_layout Chapter
44924 Explanation of Equation
44925 \begin_inset space ~
44929 \begin_inset CommandInset ref
44936 \begin_inset CommandInset label
44938 name "cha:Explanation-of-Equation"
44945 \begin_layout Standard
44946 We can calculate the total width of
44951 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44955 \begin_inset Formula
44957 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44963 \begin_inset Formula $W_{g\,n}$
44966 is the given width of all cells,
44972 is the \SpecialChar LaTeX
44973 -length between the cell text and the cell border (its default value
44975 \begin_inset space \thinspace{}
44985 is the thickness of the cell border line, the default is 0.4
44986 \begin_inset space \thinspace{}
44992 \begin_layout Standard
44994 \begin_inset space ~
44998 \begin_inset CommandInset ref
45000 reference "eq:Wtot_n"
45004 , the total width of a multicolumn
45005 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45009 \begin_inset Formula
45011 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45019 \begin_layout Standard
45020 By setting equation
45021 \begin_inset space ~
45025 \begin_inset CommandInset ref
45027 reference "eq:Wtot_n"
45032 \begin_inset CommandInset ref
45034 reference "eq:Wtot_mult"
45038 equal we can calculate the needed given width
45039 \begin_inset Formula $W_{g\,n}$
45046 columns are spanned, so that each column has a total width of
45047 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45051 \begin_inset Formula
45053 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45061 \begin_layout Bibliography
45062 \begin_inset CommandInset bibitem
45063 LatexCommand bibitem
45064 key "latexcompanion"
45068 Frank Mittelbach and Michel Goossens:
45070 The \SpecialChar LaTeX
45071 Companion Second Edition.
45074 Addison-Wesley, 2004
45077 \begin_layout Bibliography
45078 \begin_inset CommandInset bibitem
45079 LatexCommand bibitem
45084 Helmut Kopka and Patrick W.
45087 A Guide to \SpecialChar LaTeX
45091 Addison-Wesley, 2003
45094 \begin_layout Bibliography
45095 \begin_inset CommandInset bibitem
45096 LatexCommand bibitem
45104 : A Document Preparation System.
45107 Addison-Wesley, second edition, 1994
45110 \begin_layout Bibliography
45111 \begin_inset CommandInset bibitem
45112 LatexCommand bibitem
45117 Documentation of the \SpecialChar LaTeX
45121 \begin_inset CommandInset href
45124 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45131 \begin_inset Index idx
45134 \begin_layout Plain Layout
45136 -packages ! arydshln
45144 \begin_layout Bibliography
45145 \begin_inset CommandInset bibitem
45146 LatexCommand bibitem
45151 Documentation of the \SpecialChar LaTeX
45155 \begin_inset CommandInset href
45158 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45165 \begin_inset Index idx
45168 \begin_layout Plain Layout
45170 -packages ! booktabs
45178 \begin_layout Bibliography
45179 \begin_inset CommandInset bibitem
45180 LatexCommand bibitem
45185 Documentation of the \SpecialChar LaTeX
45189 \begin_inset CommandInset href
45192 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45199 \begin_inset Index idx
45202 \begin_layout Plain Layout
45204 -packages ! caption
45212 \begin_layout Bibliography
45213 \begin_inset CommandInset bibitem
45214 LatexCommand bibitem
45219 Documentation of the \SpecialChar LaTeX
45223 \begin_inset CommandInset href
45226 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45233 \begin_inset Index idx
45236 \begin_layout Plain Layout
45238 -packages ! diagbox
45246 \begin_layout Bibliography
45247 \begin_inset CommandInset bibitem
45248 LatexCommand bibitem
45253 Documentation of the \SpecialChar LaTeX
45257 \begin_inset CommandInset href
45260 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45267 \begin_inset Index idx
45270 \begin_layout Plain Layout
45272 -packages ! endfloat
45280 \begin_layout Bibliography
45281 \begin_inset CommandInset bibitem
45282 LatexCommand bibitem
45287 Documentation of the \SpecialChar LaTeX
45291 \begin_inset CommandInset href
45294 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45301 \begin_inset Index idx
45304 \begin_layout Plain Layout
45306 -packages ! footmisc
45314 \begin_layout Bibliography
45315 \begin_inset CommandInset bibitem
45316 LatexCommand bibitem
45321 Documentation of the \SpecialChar LaTeX
45325 \begin_inset CommandInset href
45328 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45335 \begin_inset Index idx
45338 \begin_layout Plain Layout
45340 -packages ! hyperref
45348 \begin_layout Bibliography
45349 \begin_inset CommandInset bibitem
45350 LatexCommand bibitem
45355 Documentation of the \SpecialChar LaTeX
45359 \begin_inset CommandInset href
45362 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45369 \begin_inset Index idx
45372 \begin_layout Plain Layout
45374 -packages ! hyperref
45382 \begin_layout Bibliography
45383 \begin_inset CommandInset bibitem
45384 LatexCommand bibitem
45389 Documentation of the \SpecialChar LaTeX
45393 \begin_inset CommandInset href
45396 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45403 \begin_inset Index idx
45406 \begin_layout Plain Layout
45408 -packages ! KOMA-Script
45416 \begin_layout Bibliography
45417 \begin_inset CommandInset bibitem
45418 LatexCommand bibitem
45423 Documentation of the \SpecialChar LaTeX
45427 \begin_inset CommandInset href
45430 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45437 \begin_inset CommandInset href
45440 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45445 \begin_inset Index idx
45448 \begin_layout Plain Layout
45450 -packages ! lettrine
45458 \begin_layout Bibliography
45459 \begin_inset CommandInset bibitem
45460 LatexCommand bibitem
45465 Documentation of the \SpecialChar LaTeX
45469 \begin_inset CommandInset href
45472 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45479 \begin_inset Index idx
45482 \begin_layout Plain Layout
45484 -packages ! listings
45492 \begin_layout Bibliography
45493 \begin_inset CommandInset bibitem
45494 LatexCommand bibitem
45499 Documentation of the \SpecialChar LaTeX
45503 \begin_inset CommandInset href
45506 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45513 \begin_inset Index idx
45516 \begin_layout Plain Layout
45518 -packages ! marginnote
45526 \begin_layout Bibliography
45527 \begin_inset CommandInset bibitem
45528 LatexCommand bibitem
45533 Documentation of the \SpecialChar LaTeX
45537 \begin_inset CommandInset href
45540 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45547 \begin_inset Index idx
45550 \begin_layout Plain Layout
45552 -packages ! pdfpages
45560 \begin_layout Bibliography
45561 \begin_inset CommandInset bibitem
45562 LatexCommand bibitem
45567 Documentation of the \SpecialChar LaTeX
45571 \begin_inset CommandInset href
45574 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45581 \begin_inset Index idx
45584 \begin_layout Plain Layout
45586 -packages ! prettyref
45594 \begin_layout Bibliography
45595 \begin_inset CommandInset bibitem
45596 LatexCommand bibitem
45601 Web page of the \SpecialChar LaTeX
45605 \begin_inset CommandInset href
45608 target "http://tug.org/PSTricks/"
45615 \begin_inset Index idx
45618 \begin_layout Plain Layout
45620 -packages ! PSTricks
45628 \begin_layout Bibliography
45629 \begin_inset CommandInset bibitem
45630 LatexCommand bibitem
45635 Documentation of the \SpecialChar LaTeX
45639 \begin_inset CommandInset href
45642 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45649 \begin_inset Index idx
45652 \begin_layout Plain Layout
45654 -packages ! refstyle
45662 \begin_layout Bibliography
45663 \begin_inset CommandInset bibitem
45664 LatexCommand bibitem
45669 Documentation of the \SpecialChar LaTeX
45673 \begin_inset CommandInset href
45676 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45683 \begin_inset Index idx
45686 \begin_layout Plain Layout
45688 -packages ! sidecap
45696 \begin_layout Bibliography
45697 \begin_inset CommandInset bibitem
45698 LatexCommand bibitem
45704 \begin_inset CommandInset href
45707 target "http://wiki.lyx.org/LyX/NewInLyX20"
45711 about new features in
45719 \begin_layout Standard
45720 \begin_inset CommandInset index_print
45721 LatexCommand printindex