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 their 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
24648 scaleBeforeRotation
24652 will be inserted and the label window pops up asking for the label text.
24654 offers as text the first words of the caption with a prefix.
24655 The prefix depends on the float type, e.
24656 \begin_inset space \thinspace{}
24660 \begin_inset space \space{}
24663 for figure floats the prefix will be "
24670 \begin_layout Standard
24671 The label is used as anchor and name for the reference.
24672 You can refer to the label using the menu
24674 Insert\SpecialChar menuseparator
24677 or the toolbar button
24680 arg "dialog-show-new-inset ref"
24684 The cross-reference window appears showing all labels of the document.
24685 If you have multiple \SpecialChar LyX
24686 documents opened, choose the one you are working
24687 on from the drop-list at the top of the dialog.
24688 You can now sort the labels alphabetically and then choose one.
24689 A grey cross-reference box like this one:
24690 \begin_inset Graphics
24691 filename clipart/reference.png
24692 scaleBeforeRotation
24697 At the position of the cross-reference box the float number will appear
24701 \begin_layout Standard
24702 It is recommended that you use a protected space between the cross-reference
24703 name and its number to avoid line breaks between them.
24704 If a cross-reference refers to a non-existing label, you will see two question
24705 marks in the output instead of the reference.
24708 \begin_layout Standard
24709 You can change labels at any time by clicking on the label box.
24710 References to the changed label will automatically update their links to
24711 the new label text.
24714 \begin_layout Standard
24718 \begin_inset space ~
24722 \begin_inset space ~
24727 in the cross-reference window sets the cursor before the referred label.
24728 The button text changes then to Go
24729 \begin_inset space ~
24732 Back and you can use it to set the cursor back to the cross-reference.
24735 \begin_layout Subsection
24736 Cross-Reference Formats
24737 \begin_inset CommandInset label
24739 name "subsec:Cross-Reference-Formats"
24744 \begin_inset Index idx
24747 \begin_layout Plain Layout
24748 References ! Formats
24756 \begin_layout Standard
24757 There are six varieties of cross-references:
24760 \begin_layout Description
24761 <reference>: prints the float number, this is the default:
24762 \begin_inset CommandInset ref
24764 reference "fig:Two-distorted-images"
24771 \begin_layout Description
24772 (<reference>): prints the float number within two parentheses, this is the
24773 style normally used to reference formulas, especially when the reference
24775 \begin_inset Quotes eld
24779 \begin_inset Quotes erd
24783 \begin_inset CommandInset ref
24792 \begin_layout Description
24793 <page>: prints the page number: Page
24794 \begin_inset space ~
24798 \begin_inset CommandInset ref
24799 LatexCommand pageref
24800 reference "fig:Two-distorted-images"
24807 \begin_layout Description
24809 \begin_inset space ~
24813 \begin_inset space ~
24816 <page>: prints the text "on page" and the page number:
24817 \begin_inset CommandInset ref
24818 LatexCommand vpageref
24819 reference "fig:Two-distorted-images"
24826 \begin_layout Description
24828 \begin_inset space ~
24832 \begin_inset space ~
24836 \begin_inset space ~
24839 <page>: prints the float number, the text "on page", and the page number:
24841 \begin_inset CommandInset ref
24843 reference "fig:Two-distorted-images"
24850 \begin_layout Description
24852 \begin_inset space ~
24855 reference: prints a self-defined cross-reference format.
24856 \begin_inset Newline newline
24860 \begin_inset Note Greyedout
24863 \begin_layout Plain Layout
24868 This feature is only available when you have the \SpecialChar LaTeX
24878 \begin_inset Index idx
24881 \begin_layout Plain Layout
24883 -packages ! prettyref
24889 \begin_inset Index idx
24892 \begin_layout Plain Layout
24894 -packages ! refstyle
24905 \begin_inset Newline newline
24908 You can select which \SpecialChar LaTeX
24909 -package should be used for this feature by setting
24912 Use refstyle (not prettyref) for cross-references
24916 Document\SpecialChar menuseparator
24917 Settings\SpecialChar menuseparator
24921 The format is specified by adding the command
24933 (refstyle) to the preamble of the document.
24934 For example redefining all references to figures (which have the label
24936 \begin_inset Quotes eld
24944 \begin_inset Quotes erd
24947 ) can be done with this command
24948 \begin_inset Newline newline
24955 newref{fig}{refcmd={Image on page
24960 \begin_inset Newline newline
24963 For more information about the format, have a look at the package documentations
24965 \begin_inset CommandInset citation
24967 key "prettyref,refstyle"
24974 \begin_layout Description
24976 \begin_inset space ~
24979 reference: prints the caption of the reference:
24980 \begin_inset CommandInset ref
24981 LatexCommand nameref
24982 reference "fig:Two-distorted-images"
24989 \begin_layout Standard
24994 will not print the page number if the label is on the previous, the same,
24997 \begin_inset space \thinspace{}
25001 \begin_inset space \space{}
25005 \begin_inset Quotes eld
25013 \begin_inset Quotes erd
25019 <reference> on page <page>
25021 will not print anything about the page if the label is on the same page.
25024 \begin_layout Standard
25025 The number and current page of the part of the document referred to in the
25026 output is automatically calculated by \SpecialChar LaTeX
25028 The varieties are adjusted in the field
25032 of the cross-reference window that appears when you click on the cross-referenc
25036 \begin_layout Standard
25037 \begin_inset Note Greyedout
25040 \begin_layout Plain Layout
25045 It is recommended to use the \SpecialChar LaTeX
25051 \begin_inset Index idx
25054 \begin_layout Plain Layout
25056 -packages ! refstyle
25066 \begin_inset Index idx
25069 \begin_layout Plain Layout
25071 -packages ! prettyref
25076 does not know all of \SpecialChar LyX
25077 's possible label shortcuts
25081 \begin_layout Plain Layout
25082 \begin_inset Quotes eld
25086 \begin_inset Quotes erd
25089 is for example \SpecialChar LyX
25090 's shortcut for labels in figure captions.
25095 and is not internationalized.
25103 \begin_layout Subsection
25104 Automatic Reference Naming
25105 \begin_inset Index idx
25108 \begin_layout Plain Layout
25109 References ! Automatic Reference Naming
25117 \begin_layout Standard
25118 The \SpecialChar LaTeX
25124 \begin_inset Index idx
25127 \begin_layout Plain Layout
25129 -packages ! hyperref
25134 , that is enabled in the
25142 dialog, provides a very useful feature that cross-references automatically
25143 include the name of the referenced floats (or text parts like
25148 So you will save having to write e.
25149 \begin_inset space \thinspace{}
25153 \begin_inset space \space{}
25157 \begin_inset Quotes eld
25161 \begin_inset Quotes erd
25164 before every reference to a figure.
25165 To use this feature, enable
25169 and insert this line to the \SpecialChar LaTeX
25173 \begin_layout Standard
25189 \begin_layout Standard
25190 When you prefer other reference names than the default ones, for example
25191 you want instead of
25192 \begin_inset Quotes eld
25196 \begin_inset Quotes erd
25200 \begin_inset Quotes eld
25204 \begin_inset space \thinspace{}
25208 \begin_inset Quotes eld
25211 , you can redefine the name by inserting this in the preamble:
25214 \begin_layout Standard
25225 sectionautorefname}
25226 \begin_inset Newline newline
25230 \begin_inset Phantom HPhantom
25233 \begin_layout Plain Layout
25236 \begin_inset space ~
25249 \begin_layout Standard
25250 When you are using another document language than English, replace
25251 \begin_inset Newline newline
25266 , where *** is the name of the language used.
25269 \begin_layout Standard
25270 To get automatic names, but not for certain reference types, for example
25271 not for equations, use this preamble code:
25274 \begin_layout Standard
25285 equationautorefname}[1]{}}
25288 \begin_layout Standard
25289 More about this topic can be found in
25294 \begin_inset CommandInset citation
25303 \begin_layout Standard
25304 \begin_inset Note Greyedout
25307 \begin_layout Plain Layout
25312 Automatic reference naming cannot be used when you use cross-references
25316 \begin_inset space ~
25321 style, as described in section
25322 \begin_inset space ~
25326 \begin_inset CommandInset ref
25328 reference "subsec:Cross-Reference-Formats"
25340 \begin_layout Standard
25345 manual is an example where automatic reference naming is used.
25348 \begin_layout Subsection
25350 \begin_inset CommandInset label
25352 name "subsec:Reference-Position"
25357 \begin_inset Index idx
25360 \begin_layout Plain Layout
25361 References ! Reference Position
25369 \begin_layout Standard
25375 \begin_inset Index idx
25378 \begin_layout Plain Layout
25380 -packages ! hyperref
25393 dialog to link cross-references in the output, you will see that clicking
25394 on an image float reference jumps to the image label.
25395 The caption will be the first text part on the screen, so that you cannot
25396 see the image without scrolling.
25397 This is because the reference link anchor is placed at the position of
25399 With the use of the package
25404 \begin_inset Index idx
25407 \begin_layout Plain Layout
25414 , which is part of the \SpecialChar LaTeX
25420 \begin_inset Index idx
25423 \begin_layout Plain Layout
25425 -packages ! oberdiek
25430 , the link anchor is placed at the beginning of a float.
25431 To use this feature for figure floats, load
25435 in the document preamble with the line
25438 \begin_layout Standard
25443 usepackage[figure]{hypcap}
25446 \begin_layout Standard
25451 for all float types but this is not recommended for stability reasons.
25452 For more information, have a look at
25457 \begin_inset CommandInset citation
25466 \begin_layout Standard
25467 \begin_inset Note Greyedout
25470 \begin_layout Plain Layout
25479 has no effect on references to subfigures.
25487 \begin_layout Section
25489 \begin_inset CommandInset label
25491 name "sec:Float-Placement"
25496 \begin_inset Index idx
25499 \begin_layout Plain Layout
25508 \begin_layout Standard
25509 Right-clicking on a float-box and clicking on
25513 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25515 positioning the float.
25516 \begin_inset Newline newline
25522 \begin_inset space ~
25527 is only useful for two-column documents: If you select it, the float will
25528 span both columns on the page instead of being confined to just one.
25529 \begin_inset Newline newline
25535 \begin_inset space ~
25540 is used to rotate floats, see section
25541 \begin_inset CommandInset ref
25543 reference "sec:Rotated-Floats"
25550 \begin_layout Standard
25551 You can use one or more of the following options in the float dialog to
25552 set the placement for a particular float when you uncheck the option
25555 \begin_inset space ~
25559 \begin_inset space ~
25567 \begin_layout Description
25569 \begin_inset space ~
25573 \begin_inset space ~
25576 possible try to place the float on the position where it has been inserted
25579 \begin_layout Description
25581 \begin_inset space ~
25585 \begin_inset space ~
25588 page try to place the float at the top of the current page
25591 \begin_layout Description
25593 \begin_inset space ~
25597 \begin_inset space ~
25600 page try to place the float at the bottom of the current page
25603 \begin_layout Description
25605 \begin_inset space ~
25609 \begin_inset space ~
25612 floats try to place the float on its own page
25615 \begin_layout Standard
25616 The order of the above option is
25620 used by \SpecialChar LaTeX
25622 That means, if you use the default placement, \SpecialChar LaTeX
25626 \begin_inset space ~
25630 \begin_inset space ~
25638 \begin_inset space ~
25642 \begin_inset space ~
25647 , and then the others.
25648 If you do not use the default, \SpecialChar LaTeX
25649 will try only the checked options but in
25652 \begin_inset space ~
25655 placements is possible the procedure is internally repeated trying to put
25656 the float on the following page.
25659 \begin_layout Standard
25660 By default, each option has its own rules:
25663 \begin_layout Labeling
25664 \labelwidthstring 00.00.0000
25668 \begin_inset space ~
25672 \begin_inset space ~
25677 only floats occupying less than 70
25678 \begin_inset space \thinspace{}
25681 % of the page can be placed at the top of a page (
25690 \begin_layout Labeling
25691 \labelwidthstring 00.00.0000
25695 \begin_inset space ~
25699 \begin_inset space ~
25704 : only floats occupying less than 30
25705 \begin_inset space \thinspace{}
25708 % of the page can be placed at the bottom of a page.
25718 \begin_layout Labeling
25719 \labelwidthstring 00.00.0000
25723 \begin_inset space ~
25727 \begin_inset space ~
25732 : only if more than 50
25733 \begin_inset space \thinspace{}
25736 % of the page is occupied by floats, several floats can be set together
25747 \begin_layout Standard
25748 If you don't like these rules, you can ignore them by using the additional
25752 \begin_inset space ~
25757 \begin_inset space ~
25763 \begin_inset Newline newline
25766 You can also redefine the rules with \SpecialChar LaTeX
25767 -commands that are given in parentheses
25768 after the rules description above.
25769 To increase for example the often too small default of the bottom-rule
25771 \begin_inset space \thinspace{}
25774 % of the page, add this line to your document preamble:
25777 \begin_layout Standard
25784 bottomfraction}{0.5}
25787 \begin_layout Standard
25788 Sometimes you might need, under all circumstances, a float to be placed
25789 exactly at the position where it is inserted.
25790 For this case you can use the option
25793 \begin_inset space ~
25799 Use this option very rarely and only if the document is almost ready to
25800 be printed, because the float is then no longer able to
25801 \begin_inset Quotes eld
25805 \begin_inset Quotes erd
25808 when you change your document and this will often destroy the page layout.
25811 \begin_layout Standard
25812 There are no placement options for text wrap floats, because they are always
25813 surrounded by the text of a certain paragraph.
25814 \begin_inset VSpace bigskip
25820 \begin_layout Standard
25821 Sometimes you have the problem that a float is placed at the top of a page
25822 while its corresponding section starts at the middle of the page, so that
25823 the reader could think the float is part of the previous section.
25824 To avoid this the \SpecialChar LaTeX
25832 It suppresses a given float placement for the page where it is inserted
25833 and can therefore be used to avoid floats being set before a section starts.
25834 To get this, add these commands to your document preamble:
25837 \begin_layout Standard
25847 \begin_inset Newline newline
25861 \begin_layout Standard
25862 You can define the same for all section headings, like chapters and subsections.
25863 This definition is not recommended to be used for small text parts like
25864 subsubsections because \SpecialChar LaTeX
25865 may then have problems finding a suitable placement.
25868 \begin_layout Standard
25869 \begin_inset VSpace bigskip
25872 In some cases it is required to have all figures/tables at the end of the
25874 For this purpose the \SpecialChar LaTeX
25880 \begin_inset Index idx
25883 \begin_layout Plain Layout
25885 -packages ! endfloat
25891 It puts all figure and table floats at the end of the document into their
25893 At the original float position a text hint like
25894 \begin_inset Quotes eld
25900 \begin_inset space ~
25906 \begin_inset Quotes erd
25910 The endfloat-package is loaded in the preamble with the line
25913 \begin_layout Standard
25918 usepackage[options]{endfloat}
25921 \begin_layout Standard
25922 There are various package options to format the created figure/table sections.
25923 For more information we refer you to the
25928 \begin_inset CommandInset citation
25935 \begin_inset Newline newline
25939 \begin_inset Note Greyedout
25942 \begin_layout Plain Layout
25947 doesn't provide an automatic translation for the text hint, you have to
25948 do this manually, see section
25949 \begin_inset space ~
25953 \begin_inset CommandInset citation
25965 \begin_inset Newline newline
25969 \begin_inset Note Greyedout
25972 \begin_layout Plain Layout
25977 There is currently a bug in
25981 when the caption contains a German
25982 \begin_inset Quotes eld
25986 \begin_inset Quotes erd
25990 Use in this case the command
25991 \begin_inset Quotes eld
26001 \begin_inset Quotes erd
26004 in \SpecialChar TeX
26006 \begin_inset Quotes eld
26010 \begin_inset Quotes erd
26021 \begin_layout Standard
26022 \begin_inset VSpace bigskip
26025 For more details about float placements, have a look at \SpecialChar LaTeX
26027 \begin_inset CommandInset citation
26029 key "latexcompanion,latexguide,latexbook"
26036 \begin_layout Section
26038 \begin_inset CommandInset label
26040 name "sec:Rotated-Floats"
26045 \begin_inset Index idx
26048 \begin_layout Plain Layout
26057 \begin_layout Standard
26058 Especially for wide tables you might have floats rotated.
26059 To rotate a whole float including the caption, right-click on the float-box
26063 \begin_inset space ~
26071 \begin_layout Standard
26072 Rotated floats are always placed on a page of their own (or column of their
26073 own; in case you have a multi-column document).
26074 You can let them span several columns using the float settings option
26077 \begin_inset space ~
26083 Floats are rotated so that you can read them from the outside margin.
26084 To force a certain rotation direction for all pages, you can add either
26093 to the document class options.
26096 \begin_layout Standard
26097 Referencing rotated floats is the same as for normal floats, the caption
26098 format is also the same: Table
26099 \begin_inset space ~
26103 \begin_inset CommandInset ref
26105 reference "tab:Rotated-table"
26109 is an example of a rotated table float.
26112 \begin_layout Standard
26113 \begin_inset Note Greyedout
26116 \begin_layout Plain Layout
26121 Not all DVI-viewers are able to display rotated floats.
26129 \begin_layout Standard
26130 \begin_inset Float table
26135 \begin_layout Plain Layout
26136 \begin_inset Caption Standard
26138 \begin_layout Plain Layout
26139 \begin_inset CommandInset label
26141 name "tab:Rotated-table"
26153 \begin_layout Plain Layout
26155 \begin_inset Tabular
26156 <lyxtabular version="3" rows="1" columns="5">
26157 <features tabularvalignment="middle">
26158 <column alignment="center" valignment="top">
26159 <column alignment="center" valignment="top">
26160 <column alignment="center" valignment="top">
26161 <column alignment="center" valignment="top">
26162 <column alignment="center" valignment="top">
26164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26167 \begin_layout Plain Layout
26173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26176 \begin_layout Plain Layout
26182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26185 \begin_layout Plain Layout
26191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26194 \begin_layout Plain Layout
26200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26203 \begin_layout Plain Layout
26222 \begin_layout Section
26224 \begin_inset Index idx
26227 \begin_layout Plain Layout
26236 \begin_layout Standard
26237 Subfloats are for example used when a figure consists of several images.
26238 They are created by inserting a float into an existing float.
26239 The placement of the subfloats can be controlled in the same way as for
26240 paragraphs as shown in table
26241 \begin_inset space ~
26245 \begin_inset CommandInset ref
26247 reference "tab:Two-subtables-side"
26252 \begin_inset CommandInset ref
26254 reference "tab:Two-subtables-upon"
26261 \begin_layout Standard
26262 Referencing subfloats works as for normal floats: Table
26263 \begin_inset space ~
26267 \begin_inset CommandInset ref
26269 reference "tab:This-is-subtable-a"
26274 \begin_inset CommandInset ref
26276 reference "tab:This-is-subtable-b"
26280 are subtables of table
26281 \begin_inset space ~
26285 \begin_inset CommandInset ref
26287 reference "tab:Two-subtables-side"
26294 \begin_layout Standard
26295 \begin_inset Float table
26300 \begin_layout Plain Layout
26301 \begin_inset Caption Standard
26303 \begin_layout Plain Layout
26304 \begin_inset CommandInset label
26306 name "tab:Two-subtables-side"
26310 Two subtables placed side by side.
26318 \begin_layout Plain Layout
26320 \begin_inset space \hfill{}
26324 \begin_inset Float table
26329 \begin_layout Plain Layout
26330 \begin_inset Caption Standard
26332 \begin_layout Plain Layout
26333 \begin_inset CommandInset label
26335 name "tab:This-is-subtable-a"
26339 This is subtable a.
26347 \begin_layout Plain Layout
26349 \begin_inset Tabular
26350 <lyxtabular version="3" rows="1" columns="5">
26351 <features tabularvalignment="middle">
26352 <column alignment="center" valignment="top">
26353 <column alignment="center" valignment="top">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26379 \begin_layout Plain Layout
26385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26388 \begin_layout Plain Layout
26394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26397 \begin_layout Plain Layout
26414 \begin_inset space \hfill{}
26418 \begin_inset Float table
26423 \begin_layout Plain Layout
26424 \begin_inset Caption Standard
26426 \begin_layout Plain Layout
26427 \begin_inset CommandInset label
26429 name "tab:This-is-subtable-b"
26433 This is subtable b.
26441 \begin_layout Plain Layout
26443 \begin_inset Tabular
26444 <lyxtabular version="3" rows="1" columns="5">
26445 <features tabularvalignment="middle">
26446 <column alignment="center" valignment="top">
26447 <column alignment="center" valignment="top">
26448 <column alignment="center" valignment="top">
26449 <column alignment="center" valignment="top">
26450 <column alignment="center" valignment="top">
26452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26455 \begin_layout Plain Layout
26461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26464 \begin_layout Plain Layout
26470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26473 \begin_layout Plain Layout
26479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26482 \begin_layout Plain Layout
26488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26491 \begin_layout Plain Layout
26508 \begin_inset space \hfill{}
26519 \begin_layout Standard
26520 \begin_inset Float table
26525 \begin_layout Plain Layout
26526 \begin_inset Caption Standard
26528 \begin_layout Plain Layout
26529 \begin_inset CommandInset label
26531 name "tab:Two-subtables-upon"
26535 Two subtables placed one above the other.
26536 (a) table with 4 cells, (b) table with 5 cells.
26544 \begin_layout Plain Layout
26546 \begin_inset Float table
26551 \begin_layout Plain Layout
26552 \begin_inset Caption Standard
26554 \begin_layout Plain Layout
26563 \begin_layout Plain Layout
26565 \begin_inset Tabular
26566 <lyxtabular version="3" rows="1" columns="4">
26567 <features tabularvalignment="middle">
26568 <column alignment="center" valignment="top">
26569 <column alignment="center" valignment="top">
26570 <column alignment="center" valignment="top">
26571 <column alignment="center" valignment="top">
26573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26576 \begin_layout Plain Layout
26582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26585 \begin_layout Plain Layout
26591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26594 \begin_layout Plain Layout
26600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26603 \begin_layout Plain Layout
26622 \begin_layout Plain Layout
26624 \begin_inset Float table
26629 \begin_layout Plain Layout
26630 \begin_inset Caption Standard
26632 \begin_layout Plain Layout
26641 \begin_layout Plain Layout
26643 \begin_inset Tabular
26644 <lyxtabular version="3" rows="1" columns="5">
26645 <features tabularvalignment="middle">
26646 <column alignment="center" valignment="top">
26647 <column alignment="center" valignment="top">
26648 <column alignment="center" valignment="top">
26649 <column alignment="center" valignment="top">
26650 <column alignment="center" valignment="top">
26652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26655 \begin_layout Plain Layout
26661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26664 \begin_layout Plain Layout
26670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26673 \begin_layout Plain Layout
26679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26682 \begin_layout Plain Layout
26688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26691 \begin_layout Plain Layout
26715 \begin_layout Section
26716 Floats Side by Side
26717 \begin_inset Index idx
26720 \begin_layout Plain Layout
26721 Floats ! Side by side
26729 \begin_layout Standard
26730 To place floats side by side, as in Figures
26731 \begin_inset space ~
26735 \begin_inset CommandInset ref
26737 reference "fig:Float-left"
26742 \begin_inset CommandInset ref
26744 reference "fig:Float-right"
26753 In it two minipage boxes are inserted.
26757 \begin_layout Plain Layout
26758 Minipages are explained in section
26759 \begin_inset space ~
26763 \begin_inset CommandInset ref
26765 reference "sec:Minipages"
26774 The width is set to 45
26775 \begin_inset space \thinspace{}
26779 \begin_inset space \thinspace{}
26782 column% and the box alignment to
26787 The minipage boxes contain the image and the caption in the same way as
26788 they are in a float.
26789 The only difference is that the image unit
26792 \begin_inset space ~
26796 \begin_inset space ~
26801 is now calculated according to the width of the minipage boxes.
26804 \begin_layout Standard
26805 \begin_inset Float figure
26810 \begin_layout Plain Layout
26811 \begin_inset Box Frameless
26821 height_special "totalheight"
26826 backgroundcolor "none"
26829 \begin_layout Plain Layout
26831 \begin_inset Graphics
26832 filename clipart/mobius.eps
26835 scaleBeforeRotation
26842 \begin_layout Plain Layout
26843 \begin_inset Caption Standard
26845 \begin_layout Plain Layout
26846 \begin_inset CommandInset label
26848 name "fig:Float-left"
26852 Float on the left side.
26863 \begin_inset space \hfill{}
26867 \begin_inset Box Frameless
26877 height_special "totalheight"
26882 backgroundcolor "none"
26885 \begin_layout Plain Layout
26887 \begin_inset Graphics
26888 filename clipart/platypus.eps
26891 scaleBeforeRotation
26898 \begin_layout Plain Layout
26899 \begin_inset Caption Standard
26901 \begin_layout Plain Layout
26902 \begin_inset CommandInset label
26904 name "fig:Float-right"
26908 Float on the right side.
26926 \begin_layout Standard
26927 An alternative and simpler solution is to use the module
26929 Variable-width Minipages
26932 \begin_inset space \thinspace{}
26936 \begin_inset CommandInset ref
26938 reference "sec:Minipages"
26943 Variable-width minipages adapt automatically to the width of the figures
26945 They do not require an explicit width to be given, and they improve the
26946 horizontal alignment of the figures.
26947 The LyX example file
26949 varwidth-floats-side-by-side
26951 gives examples of how to do this.
26954 \begin_layout Section
26956 \begin_inset Index idx
26959 \begin_layout Plain Layout
26960 Caption ! Formatting
26966 \begin_inset Index idx
26969 \begin_layout Plain Layout
26970 Floats ! Caption Formatting
26976 \begin_inset CommandInset label
26978 name "sec:Caption-Formatting"
26985 \begin_layout Standard
26990 environment is the default paragraph environment for
26995 On the \SpecialChar LyX
26996 screen captions appear as a label, e.
26997 \begin_inset space \thinspace{}
27001 \begin_inset space \space{}
27005 \begin_inset Quotes eld
27013 \begin_inset Quotes erd
27016 followed by the caption text.
27018 \begin_inset Quotes eld
27022 \begin_inset Quotes erd
27025 is the actual reference number.
27026 By default the label and the number are in the same font as the caption
27027 text and a colon follows the number to divide the label from the text.
27028 This caption format is suitable for many but not all documents.
27032 \begin_layout Standard
27033 To change the default caption format, load the \SpecialChar LaTeX
27039 \begin_inset Index idx
27042 \begin_layout Plain Layout
27044 -packages ! caption
27049 in the document preamble with this line:
27052 \begin_layout Standard
27057 usepackage[format definition]{caption}
27060 \begin_layout Standard
27061 To have for example the label and the number in sans-serif, bold font and
27062 the table captions always above the table as in this document, use the
27066 \begin_layout Standard
27071 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27074 \begin_layout Standard
27075 You can also define different caption formats for the different float types.
27076 In this case load the
27080 package without format specific options and define the different formats
27081 with the help of the command
27084 \begin_layout Standard
27089 captionsetup[float type]{format definition}
27092 \begin_layout Standard
27093 in the document preamble.
27094 For example the caption formats of Figure
27095 \begin_inset space ~
27099 \begin_inset CommandInset ref
27101 reference "fig:This-is-an-fig"
27106 \begin_inset space ~
27110 \begin_inset CommandInset ref
27112 reference "tab:This-is-an-tab"
27116 can be created using these commands in the document preamble:
27119 \begin_layout Standard
27124 usepackage[tableposition=top]{caption}
27127 \begin_inset Newline newline
27134 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27135 \begin_inset Newline newline
27139 \begin_inset Phantom HPhantom
27142 \begin_layout Plain Layout
27147 captionsetup[figure]{
27153 \begin_inset Newline newline
27158 captionsetup[table]{labelfont={bf,sf}}
27161 \begin_layout Standard
27162 \begin_inset Note Greyedout
27165 \begin_layout Plain Layout
27174 has no effect when a
27179 \begin_inset Index idx
27182 \begin_layout Plain Layout
27184 -packages ! KOMA-Script
27189 document class is used.
27190 In this case the document class option
27192 captions=tableheading
27202 \begin_layout Standard
27203 For more information about the package
27207 we refer to its documentation
27208 \begin_inset CommandInset citation
27217 \begin_layout Standard
27218 To change the label name from e.
27219 \begin_inset space \thinspace{}
27223 \begin_inset space \space{}
27227 \begin_inset Quotes eld
27231 \begin_inset Quotes erd
27235 \begin_inset Quotes eld
27239 \begin_inset Quotes erd
27242 use this preamble command:
27245 \begin_layout Standard
27252 fnum@figure}{Image~
27257 \begin_layout Standard
27264 inserts the figure number and
27267 \begin_inset Quotes eld
27273 \begin_inset Quotes erd
27276 creates a protected space.
27279 \begin_layout Standard
27280 \begin_inset VSpace bigskip
27288 \begin_inset Index idx
27291 \begin_layout Plain Layout
27293 -packages ! KOMA-Script
27300 article (KOMA-Script)
27308 letter (KOMA-Script)
27312 report (KOMA-Script)
27315 \begin_inset space \thinspace{}
27318 ), you can alternatively to the
27326 's built-in command
27333 For example, to have the caption label in bold, add this command to your
27337 \begin_layout Standard
27342 setkomafont{captionlabel}{
27347 \begin_layout Standard
27348 For more information about
27359 \begin_inset CommandInset citation
27368 \begin_layout Standard
27372 \begin_layout Plain Layout
27376 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27383 \begin_inset Note Note
27386 \begin_layout Plain Layout
27387 The caption format is changed only for this example.
27395 \begin_layout Standard
27396 \begin_inset Float figure
27402 \begin_layout Plain Layout
27404 \begin_inset Graphics
27405 filename clipart/mobius.eps
27408 scaleBeforeRotation
27415 \begin_layout Plain Layout
27416 \begin_inset Caption Standard
27418 \begin_layout Plain Layout
27419 \begin_inset CommandInset label
27421 name "fig:This-is-an-fig"
27425 This is an example figure caption that is longer than one line to show the
27426 different caption format.
27427 Here a self-defined caption format is used.
27440 \begin_layout Standard
27444 \begin_layout Plain Layout
27448 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27457 \begin_layout Standard
27458 \begin_inset Float table
27464 \begin_layout Plain Layout
27465 \begin_inset Caption Standard
27467 \begin_layout Plain Layout
27468 \begin_inset CommandInset label
27470 name "tab:This-is-an-tab"
27474 This is an example table caption that is longer than one line to show the
27475 different caption format.
27476 Here the standard caption format for tables in this document is used.
27484 \begin_layout Plain Layout
27486 \begin_inset Tabular
27487 <lyxtabular version="3" rows="1" columns="5">
27488 <features tabularvalignment="middle">
27489 <column alignment="center" valignment="top">
27490 <column alignment="center" valignment="top">
27491 <column alignment="center" valignment="top">
27492 <column alignment="center" valignment="top">
27493 <column alignment="center" valignment="top">
27495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27498 \begin_layout Plain Layout
27504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27507 \begin_layout Plain Layout
27513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27516 \begin_layout Plain Layout
27522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27525 \begin_layout Plain Layout
27531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27534 \begin_layout Plain Layout
27553 \begin_layout Section
27555 \begin_inset Index idx
27558 \begin_layout Plain Layout
27559 Caption ! Placement
27565 \begin_inset Index idx
27568 \begin_layout Plain Layout
27569 Floats ! Caption Placement
27575 \begin_inset CommandInset label
27577 name "sec:Caption-Placement"
27584 \begin_layout Standard
27585 The common caption placement rule is:
27588 \begin_layout Description
27589 Figure: Caption is set below the figure
27592 \begin_layout Description
27593 Table: Caption is set above the table
27596 \begin_layout Standard
27597 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27600 That means if you are using the document classes
27616 there will be no space between the caption and the table.
27617 To insert the necessary space, load the \SpecialChar LaTeX
27623 \begin_inset Index idx
27626 \begin_layout Plain Layout
27628 -packages ! caption
27633 in your document preamble with the option
27637 \begin_layout Plain Layout
27639 \begin_inset space ~
27643 \begin_inset CommandInset ref
27645 reference "sec:Caption-Formatting"
27649 for more information of the package
27661 \begin_layout Standard
27667 \begin_layout Standard
27673 \begin_inset Index idx
27676 \begin_layout Plain Layout
27678 -packages ! KOMA-Script
27685 article (KOMA-Script)
27693 letter (KOMA-Script)
27697 report (KOMA-Script)
27700 \begin_inset space \thinspace{}
27703 ), you can alternatively to the
27707 package set the document class option
27711 \begin_layout Plain Layout
27712 That option is used in this document.
27720 \begin_layout Standard
27723 captions=tableheading
27726 \begin_layout Standard
27727 In documents with a KOMA-Script document class you can also right-click
27728 on a caption and mark in the context menu if this should be a caption above
27729 or below the table/figure.
27730 This way you can override the document-wide caption placement for certain
27733 \begin_inset space ~
27737 \begin_inset CommandInset ref
27739 reference "tab:A-caption-marked"
27743 is an example where the caption is marked a being below the table while
27745 For comparison the caption in Table
27746 \begin_inset space ~
27750 \begin_inset CommandInset ref
27752 reference "tab:A-standard-table"
27759 \begin_layout Standard
27760 \begin_inset Float table
27765 \begin_layout Plain Layout
27766 \begin_inset Caption Below
27768 \begin_layout Plain Layout
27769 \begin_inset CommandInset label
27771 name "tab:A-caption-marked"
27775 A caption marked as being below the table.
27783 \begin_layout Plain Layout
27785 \begin_inset Tabular
27786 <lyxtabular version="3" rows="3" columns="3">
27787 <features tabularvalignment="middle">
27788 <column alignment="center" valignment="top" width="0pt">
27789 <column alignment="center" valignment="top" width="0pt">
27790 <column alignment="center" valignment="top" width="0pt">
27792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27795 \begin_layout Plain Layout
27801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27804 \begin_layout Plain Layout
27810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27813 \begin_layout Plain Layout
27821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27824 \begin_layout Plain Layout
27830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27833 \begin_layout Plain Layout
27839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27842 \begin_layout Plain Layout
27850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27853 \begin_layout Plain Layout
27854 \begin_inset Formula $\int x^{2}dx$
27862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27865 \begin_layout Plain Layout
27866 \begin_inset Formula $\left[\begin{array}{cc}
27869 \end{array}\right]$
27877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27880 \begin_layout Plain Layout
27881 \begin_inset Formula $1+1=2$
27902 \begin_layout Standard
27903 \begin_inset Float table
27908 \begin_layout Plain Layout
27909 \begin_inset Caption Standard
27911 \begin_layout Plain Layout
27912 \begin_inset CommandInset label
27914 name "tab:A-standard-table"
27918 A standard table caption.
27926 \begin_layout Plain Layout
27928 \begin_inset Tabular
27929 <lyxtabular version="3" rows="3" columns="3">
27930 <features tabularvalignment="middle">
27931 <column alignment="center" valignment="top" width="0pt">
27932 <column alignment="center" valignment="top" width="0pt">
27933 <column alignment="center" valignment="top" width="0pt">
27935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27938 \begin_layout Plain Layout
27944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27947 \begin_layout Plain Layout
27953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27956 \begin_layout Plain Layout
27964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27967 \begin_layout Plain Layout
27973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27976 \begin_layout Plain Layout
27982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27985 \begin_layout Plain Layout
27993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27996 \begin_layout Plain Layout
27997 \begin_inset Formula $\int x^{2}dx$
28005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28008 \begin_layout Plain Layout
28009 \begin_inset Formula $\left[\begin{array}{cc}
28012 \end{array}\right]$
28020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28023 \begin_layout Plain Layout
28024 \begin_inset Formula $1+1=2$
28045 \begin_layout Standard
28046 \begin_inset VSpace bigskip
28049 It is also possible to set the caption beside a figure or table.
28050 To get this the \SpecialChar LaTeX
28056 \begin_inset Index idx
28059 \begin_layout Plain Layout
28061 -packages ! sidecap
28066 has to be loaded in the document preamble with the line
28069 \begin_layout Standard
28074 usepackage[option]{sidecap}
28077 \begin_layout Standard
28078 If you set no option, the caption is placed on the side of the outer page
28079 margin – to the right on odd pages, to the left on even pages.
28080 You can change the placement to inner margin with the option
28085 To force the placement always to the right or left, use the option
28096 \begin_layout Standard
28100 \begin_layout Plain Layout
28110 \begin_inset Note Note
28113 \begin_layout Plain Layout
28114 The following section will only be displayed when the \SpecialChar LaTeX
28127 \begin_layout Standard
28128 To place in \SpecialChar LyX
28129 the caption of a float on the side, it is necessary to add
28130 these commands to the document preamble:
28133 \begin_layout Standard
28135 \begin_inset CommandInset line
28146 \begin_layout Standard
28153 TabBesBeg}[1][1.0]{%
28154 \begin_inset Newline newline
28158 \begin_inset Phantom HPhantom
28161 \begin_layout Plain Layout
28162 \begin_inset space ~
28177 \begin_inset Newline newline
28181 \begin_inset Phantom HPhantom
28184 \begin_layout Plain Layout
28187 \begin_inset space ~
28202 \begin_inset Newline newline
28206 \begin_inset Phantom HPhantom
28209 \begin_layout Plain Layout
28212 \begin_inset space ~
28222 renewenvironment{table}[1]{
28224 begin{SCtable}[#1]##1}{
28229 \begin_layout Standard
28237 \begin_inset Newline newline
28241 \begin_inset Phantom HPhantom
28244 \begin_layout Plain Layout
28245 \begin_inset space ~
28260 \begin_inset Newline newline
28264 \begin_inset Phantom HPhantom
28267 \begin_layout Plain Layout
28268 \begin_inset space ~
28285 \begin_layout Standard
28292 FigBesBeg}[1][1.0]{%
28293 \begin_inset Newline newline
28297 \begin_inset Phantom HPhantom
28300 \begin_layout Plain Layout
28301 \begin_inset space ~
28316 \begin_inset Newline newline
28320 \begin_inset Phantom HPhantom
28323 \begin_layout Plain Layout
28324 \begin_inset space ~
28339 \begin_inset Newline newline
28343 \begin_inset Phantom HPhantom
28346 \begin_layout Plain Layout
28347 \begin_inset space ~
28357 renewenvironment{figure}[1]{
28359 begin{SCfigure}[#1]##1}{
28364 \begin_layout Standard
28372 \begin_inset Newline newline
28376 \begin_inset Phantom HPhantom
28379 \begin_layout Plain Layout
28380 \begin_inset space ~
28395 \begin_inset Newline newline
28399 \begin_inset Phantom HPhantom
28402 \begin_layout Plain Layout
28403 \begin_inset space ~
28420 \begin_layout Standard
28422 \begin_inset CommandInset line
28433 \begin_layout Standard
28434 The commands allow you to redefine the floats so that the caption is set
28436 For figure floats use the command
28439 \begin_layout Standard
28447 \begin_layout Standard
28448 in \SpecialChar TeX
28449 Code before the float.
28450 And insert the command
28453 \begin_layout Standard
28461 \begin_layout Standard
28462 in \SpecialChar TeX
28463 Code at the point where you want to get back to the original float definitio
28467 \begin_layout Standard
28468 For table floats use the corresponding commands
28471 \begin_layout Standard
28485 \begin_layout Standard
28487 \begin_inset space ~
28491 \begin_inset CommandInset ref
28493 reference "fig:cap-beside-fig"
28498 \begin_inset space ~
28502 \begin_inset CommandInset ref
28504 reference "tab:cap-beside-tab"
28508 are examples where the caption is set beside.
28511 \begin_layout Standard
28512 You can see in the examples that the caption text appears at the top of
28513 the floats for table floats and at the bottom for figure floats.
28514 To change this, you can use the command
28517 \begin_layout Standard
28522 sidecaptionvpos{float type}{placement}
28525 \begin_layout Standard
28526 in the document preamble or in \SpecialChar TeX
28527 Code before the float.
28528 The float type is either
28536 , the placement can be
28537 \begin_inset Quotes eld
28545 \begin_inset Quotes erd
28549 \begin_inset Quotes eld
28557 \begin_inset Quotes erd
28561 \begin_inset Quotes eld
28569 \begin_inset Quotes erd
28573 To have for example the caption of figure floats vertically centered, use
28577 \begin_layout Standard
28582 sidecaptionvpos{figure}{c}
28585 \begin_layout Standard
28586 This was used for Figure
28587 \begin_inset space ~
28591 \begin_inset CommandInset ref
28593 reference "fig:cap-beside-fig-2"
28600 \begin_layout Standard
28601 \begin_inset VSpace medskip
28607 \begin_layout Standard
28608 The default caption width is the width of the image/table.
28609 For thin image/tables, like in Table
28610 \begin_inset space ~
28614 \begin_inset CommandInset ref
28616 reference "tab:cap-beside-tab"
28620 , this leads to captions that are too thin.
28621 You can increase the width by specifying a factor that will be multiplied
28622 with the image/table width to get the caption width.
28623 The caption width will automatically be recalculated in case it would protrude
28624 over the page or column margin due to the specified width.
28629 can either be given as optional argument for
28638 \begin_layout Standard
28646 \begin_layout Standard
28647 or in the definition of
28657 with another value.
28658 If you do the latter, your factor will be the default if
28664 is used without an argument.
28666 \begin_inset space ~
28670 \begin_inset CommandInset ref
28672 reference "tab:cap-beside-tab-wider"
28676 the factor 5 was used.
28679 \begin_layout Standard
28680 \begin_inset Note Greyedout
28683 \begin_layout Plain Layout
28688 For floats with captions set beside, you cannot use the float placement
28692 \begin_inset space ~
28697 because it is not supported by
28709 \begin_layout Standard
28710 \begin_inset VSpace medskip
28713 For more information about the package
28717 we refer to its documentation
28718 \begin_inset CommandInset citation
28727 \begin_layout Standard
28728 \begin_inset Note Greyedout
28731 \begin_layout Plain Layout
28736 The \SpecialChar LaTeX
28742 \begin_inset Index idx
28745 \begin_layout Plain Layout
28752 , described in section
28753 \begin_inset space ~
28757 \begin_inset CommandInset ref
28759 reference "subsec:Reference-Position"
28763 , has no effect on floats with the caption set beside.
28771 \begin_layout Standard
28775 \begin_layout Plain Layout
28787 \begin_layout Standard
28788 \begin_inset Float figure
28793 \begin_layout Plain Layout
28794 \begin_inset Graphics
28795 filename clipart/escher-lsd.eps
28797 scaleBeforeRotation
28804 \begin_layout Plain Layout
28805 \begin_inset Caption Standard
28807 \begin_layout Plain Layout
28808 \begin_inset CommandInset label
28810 name "fig:cap-beside-fig"
28814 This is a caption beside a figure.
28827 \begin_layout Standard
28831 \begin_layout Plain Layout
28843 \begin_layout Standard
28847 \begin_layout Plain Layout
28859 \begin_layout Standard
28860 \begin_inset Float table
28865 \begin_layout Plain Layout
28866 \begin_inset Caption Standard
28868 \begin_layout Plain Layout
28869 \begin_inset CommandInset label
28871 name "tab:cap-beside-tab"
28875 This is a caption beside a table.
28883 \begin_layout Plain Layout
28884 \begin_inset Tabular
28885 <lyxtabular version="3" rows="4" columns="5">
28886 <features tabularvalignment="middle">
28887 <column alignment="center" valignment="top">
28888 <column alignment="center" valignment="top">
28889 <column alignment="center" valignment="top">
28890 <column alignment="center" valignment="top">
28891 <column alignment="center" valignment="top">
28893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28896 \begin_layout Plain Layout
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28914 \begin_layout Plain Layout
28920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28923 \begin_layout Plain Layout
28929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28932 \begin_layout Plain Layout
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28961 \begin_layout Plain Layout
28967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28970 \begin_layout Plain Layout
28976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28979 \begin_layout Plain Layout
28987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28990 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29008 \begin_layout Plain Layout
29014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29017 \begin_layout Plain Layout
29023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29026 \begin_layout Plain Layout
29034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29037 \begin_layout Plain Layout
29043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29046 \begin_layout Plain Layout
29052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29055 \begin_layout Plain Layout
29061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29064 \begin_layout Plain Layout
29070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29073 \begin_layout Plain Layout
29092 \begin_layout Standard
29096 \begin_layout Plain Layout
29108 \begin_layout Standard
29112 \begin_layout Plain Layout
29125 \begin_layout Plain Layout
29129 sidecaptionvpos{figure}{c}
29135 \begin_inset Float figure
29140 \begin_layout Plain Layout
29141 \begin_inset Graphics
29142 filename clipart/escher-lsd.eps
29144 scaleBeforeRotation
29151 \begin_layout Plain Layout
29152 \begin_inset Caption Standard
29154 \begin_layout Plain Layout
29155 \begin_inset CommandInset label
29157 name "fig:cap-beside-fig-2"
29161 This is a vertically centered caption beside a figure.
29174 \begin_layout Standard
29178 \begin_layout Plain Layout
29190 \begin_layout Standard
29194 \begin_layout Plain Layout
29206 \begin_layout Standard
29207 \begin_inset Float table
29212 \begin_layout Plain Layout
29213 \begin_inset Caption Standard
29215 \begin_layout Plain Layout
29216 \begin_inset CommandInset label
29218 name "tab:cap-beside-tab-wider"
29222 This caption is wider than the one in Table
29223 \begin_inset space ~
29227 \begin_inset CommandInset ref
29229 reference "tab:cap-beside-tab"
29241 \begin_layout Plain Layout
29242 \begin_inset Tabular
29243 <lyxtabular version="3" rows="4" columns="5">
29244 <features tabularvalignment="middle">
29245 <column alignment="center" valignment="top">
29246 <column alignment="center" valignment="top">
29247 <column alignment="center" valignment="top">
29248 <column alignment="center" valignment="top">
29249 <column alignment="center" valignment="top">
29251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29254 \begin_layout Plain Layout
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29272 \begin_layout Plain Layout
29278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29281 \begin_layout Plain Layout
29287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29290 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Plain Layout
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29319 \begin_layout Plain Layout
29325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29328 \begin_layout Plain Layout
29334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29337 \begin_layout Plain Layout
29345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29348 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29366 \begin_layout Plain Layout
29372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29375 \begin_layout Plain Layout
29381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29384 \begin_layout Plain Layout
29392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29395 \begin_layout Plain Layout
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29404 \begin_layout Plain Layout
29410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29413 \begin_layout Plain Layout
29419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29422 \begin_layout Plain Layout
29428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29431 \begin_layout Plain Layout
29450 \begin_layout Standard
29454 \begin_layout Plain Layout
29466 \begin_layout Standard
29470 \begin_layout Plain Layout
29480 \begin_inset Note Note
29483 \begin_layout Plain Layout
29484 The following will be displayed when the \SpecialChar LaTeX
29497 \begin_layout Standard
29498 You need to install the \SpecialChar LaTeX
29503 to see the following part of this section in the output.
29506 \begin_layout Standard
29510 \begin_layout Plain Layout
29522 \begin_layout Section
29524 \begin_inset Index idx
29527 \begin_layout Plain Layout
29528 Floats ! Float Lists
29536 \begin_layout Standard
29537 Similar to the table of contents where the sections of the document are
29538 listed, there are listings for all float types, like the figures of the
29540 You can insert them via the
29542 Insert\SpecialChar menuseparator
29544 \begin_inset space ~
29548 \begin_inset space ~
29556 \begin_layout Standard
29557 The list entries are the float captions or its short title, the float number,
29558 and the page number where they appear in the document.
29561 \begin_layout Standard
29562 You can find the list of figures and tables at the end of this document.
29565 \begin_layout Chapter
29569 \begin_layout Section
29572 \begin_inset Index idx
29575 \begin_layout Plain Layout
29576 Notes ! \SpecialChar LyX
29585 \begin_layout Standard
29586 Notes are inserted with the toolbar button
29594 Insert\SpecialChar menuseparator
29598 There are three types of notes:
29601 \begin_layout Description
29604 \begin_inset space ~
29607 Note This note type is for internal notes that won't appear in the output.
29608 Its note-box looks like this:
29609 \begin_inset Newline newline
29613 \begin_inset Newline newline
29617 \begin_inset Graphics
29618 filename clipart/LyXNoteImage.png
29620 scaleBeforeRotation
29625 \begin_inset Note Note
29628 \begin_layout Plain Layout
29629 This is text in a note box that doesn't appear in the output.
29637 \begin_layout Description
29638 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29640 when you export the document to \SpecialChar LaTeX
29643 File\SpecialChar menuseparator
29644 Export\SpecialChar menuseparator
29646 \begin_inset space ~
29649 (pdflatex) / (plain)
29652 Its note-box looks like this:
29653 \begin_inset Newline newline
29657 \begin_inset Newline newline
29661 \begin_inset Graphics
29662 filename clipart/CommentNoteImage.png
29664 scaleBeforeRotation
29669 \begin_inset Note Comment
29672 \begin_layout Plain Layout
29673 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29682 \begin_layout Description
29684 \begin_inset space ~
29687 Out This note will appear in the output as grey text.
29688 Its note-box looks like this:
29689 \begin_inset Newline newline
29693 \begin_inset Newline newline
29697 \begin_inset Graphics
29698 filename clipart/GreyedOutNoteImage.png
29700 scaleBeforeRotation
29705 \begin_inset Newline newline
29712 \begin_layout Plain Layout
29716 renewenvironment{lyxgreyedout}
29719 \begin_layout Plain Layout
29723 textcolor[gray]{0.8}
29733 \begin_inset Note Greyedout
29736 \begin_layout Plain Layout
29737 This is text of a comment that appears grey in the output.
29746 \begin_layout Plain Layout
29750 renewenvironment{lyxgreyedout}
29753 \begin_layout Plain Layout
29767 \begin_inset Note Note
29770 \begin_layout Plain Layout
29771 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29773 because greyed out notes are redefined in the preamble of this document,
29774 as described below, to have blue text.
29780 \begin_inset Newline newline
29784 \begin_inset Newline newline
29787 As you can see in the example, the first line of greyed out notes is a bit
29788 indented and greyed out notes can have footnotes.
29791 \begin_layout Standard
29792 \begin_inset VSpace bigskip
29795 When you use the toolbar button
29805 \begin_inset space ~
29811 You can switch between the three note types by right-clicking on the note-box.
29816 If you want to turn existing text into a note, mark it and click on the
29830 To change a note to text, press the backspace key when the cursor is in
29831 the first position of a note, or press the delete key when the cursor is
29832 in the very last position of the note, respectively.
29835 \begin_layout Standard
29836 \begin_inset VSpace bigskip
29839 You can change the text color of the greyed out notes in the menu
29841 Document\SpecialChar menuseparator
29842 Settings\SpecialChar menuseparator
29848 \begin_layout Section
29850 \begin_inset CommandInset label
29852 name "sec:Footnotes"
29857 \begin_inset Index idx
29860 \begin_layout Plain Layout
29867 \begin_inset Index idx
29870 \begin_layout Plain Layout
29879 \begin_layout Standard
29880 Footnotes can be inserted using the toolbar button
29883 arg "footnote-insert"
29888 Insert\SpecialChar menuseparator
29892 You will then see the following footnote-box:
29893 \begin_inset Graphics
29894 filename clipart/footnote.png
29896 scaleBeforeRotation
29904 where you can enter the footnote text.
29905 If you want to turn existing text into a footnote, mark it and click on
29931 key when the cursor is in the first position of a
29943 key when the cursor is in the very last position of the
29954 \begin_layout Standard
29955 Here is an example footnote:
29963 \begin_layout Plain Layout
29964 \begin_inset CommandInset label
29966 name "foot:This-is-an"
29970 This is an example footnote.
29983 \begin_layout Plain Layout
29987 newcounter{MyRepeatFoot}
29990 \begin_layout Plain Layout
29994 setcounter{MyRepeatFoot}{
30004 \begin_layout Standard
30005 The footnote will appear in the output as a superscript number at the text
30006 position where the footnote box is placed.
30007 The footnote text is placed at the bottom of the current page.
30008 The footnote number is calculated by \SpecialChar LaTeX
30009 ; the numbers are consecutive.
30010 Whether the footnote number is reset for every chapter depends on your
30014 \begin_layout Standard
30015 Footnotes can be referenced like floats: Insert a label into the footnote
30016 and cross-reference this label in the text as described in section
30017 \begin_inset space ~
30021 \begin_inset CommandInset ref
30023 reference "sec:Referencing-Floats"
30028 \begin_inset Newline newline
30031 This is a cross-reference of Footnote
30032 \begin_inset space ~
30036 \begin_inset CommandInset ref
30038 reference "foot:This-is-an"
30045 \begin_layout Standard
30046 \begin_inset VSpace defskip
30049 Footnotes in title environments are usually not numbered with symbols and
30050 they cannot contain several paragraphs.
30051 See for example the footnote in the titling of this document.
30054 \begin_layout Standard
30055 \begin_inset VSpace defskip
30058 Footnotes in tables are not printed by \SpecialChar LaTeX
30059 due to technical reasons.
30060 However there exists another method to print them: Instead of the footnote
30067 is inserted as \SpecialChar TeX
30069 The text of the footnote is entered as an argument of the \SpecialChar TeX
30078 \begin_inset Newline newline
30081 This was done for the following table with the command
30084 \begin_layout Standard
30091 Printed table footnote.
30096 \begin_layout Standard
30097 \begin_inset Tabular
30098 <lyxtabular version="3" rows="2" columns="1">
30099 <features tabularvalignment="middle">
30100 <column alignment="center" valignment="top">
30102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30105 \begin_layout Plain Layout
30106 This an example text.
30110 \begin_layout Plain Layout
30111 This footnote will not be printed!
30123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30126 \begin_layout Plain Layout
30127 This an example text.
30131 \begin_layout Plain Layout
30154 \begin_layout Plain Layout
30163 Printed table footnote.
30167 \begin_layout Plain Layout
30177 \begin_layout Standard
30178 Footnotes in multi-page tables are described in section
30179 \begin_inset space ~
30183 \begin_inset CommandInset ref
30185 reference "subsec:Footnotes-in-Multi-page"
30192 \begin_layout Standard
30193 Footnotes in minipage boxes are printed, but inside the box and with a different
30194 numbering because a minipage box is like a page inside a page.
30195 (For more about minipages, see section
30196 \begin_inset space ~
30200 \begin_inset CommandInset ref
30202 reference "sec:Minipages"
30206 .) To get a footnote in the minipage that is output at the bottom of the
30207 page like normal footnotes, also use the method of
30222 \begin_layout Standard
30223 \begin_inset Box Frameless
30233 height_special "totalheight"
30238 backgroundcolor "none"
30241 \begin_layout Plain Layout
30242 This an example text in a minipage.
30246 \begin_layout Plain Layout
30247 Footnote in the minipage.
30255 \begin_layout Plain Layout
30256 This an example text in a minipage.
30260 \begin_layout Plain Layout
30277 \begin_layout Standard
30281 \begin_layout Plain Layout
30290 Footnote outside the minipage.
30294 \begin_layout Plain Layout
30304 \begin_layout Standard
30305 \begin_inset VSpace defskip
30311 \begin_layout Standard
30312 To refer to the same footnote several times without printing the footnote
30313 text every time, use the command
30317 footnotemark[number]
30319 in \SpecialChar TeX
30321 \begin_inset Newline newline
30324 As you do not know the number of the repeating footnote while you are writing
30325 the text, you have to store its number.
30326 For the following footnote mark example, these commands were inserted in
30328 code after Footnote
30329 \begin_inset space ~
30333 \begin_inset CommandInset ref
30335 reference "foot:This-is-an"
30339 to store the footnote number:
30342 \begin_layout Standard
30347 newcounter{MyRepeatFoot}
30348 \begin_inset Newline newline
30353 setcounter{MyRepeatFoot}{
30358 \begin_layout Standard
30359 The footnote mark was then created with this command:
30362 \begin_layout Standard
30372 \begin_layout Standard
30373 Here is a repeated footnote:
30381 \begin_layout Plain Layout
30395 \begin_layout Standard
30396 If you want to repeat the previous footnote, you can omit the storage of
30397 the footnote number and just use this command instead:
30400 \begin_layout Standard
30410 \begin_layout Standard
30411 Here is another repeated footnote:
30419 \begin_layout Plain Layout
30433 \begin_layout Subsection
30435 \begin_inset CommandInset label
30437 name "subsec:Footnote-Numbering"
30442 \begin_inset Index idx
30445 \begin_layout Plain Layout
30446 Footnotes ! Numbering
30454 \begin_layout Standard
30455 To reset the footnote number back to 1 after each section
30457 , add this command to your document preamble:
30460 \begin_layout Standard
30465 @addtoreset{footnote}{section}
30468 \begin_layout Standard
30469 \begin_inset VSpace bigskip
30472 The following preamble command changes the footnote numbering style to small
30476 \begin_layout Standard
30488 \begin_layout Standard
30492 \begin_layout Plain Layout
30505 This is a footnote with roman numbering:
30509 \begin_layout Plain Layout
30510 This is an example footnote with roman numbering.
30518 \begin_layout Standard
30519 To change the numbering style to capital roman numerals replace in the command
30534 \begin_inset Quotes eld
30538 \begin_inset Quotes erd
30541 footnotes with capital or small Latin letters use
30555 \begin_inset Quotes eld
30559 \begin_inset Quotes erd
30562 footnotes with symbols use
30571 \begin_layout Standard
30572 \begin_inset Note Greyedout
30575 \begin_layout Plain Layout
30580 You can only number 26 footnotes with Latin letters, because this numbering
30581 is limited to single letters.
30587 \begin_inset Newline newline
30591 \begin_inset Note Greyedout
30594 \begin_layout Plain Layout
30599 You can only number 9 footnotes with symbols.
30607 \begin_layout Standard
30608 To return to the default numbering style after you have changed to another
30621 in the command above.
30625 \begin_layout Plain Layout
30641 \begin_layout Standard
30642 \begin_inset VSpace bigskip
30648 \begin_layout Standard
30649 If you want to have footnotes numbered in the scheme
30650 \begin_inset Quotes eld
30654 \begin_inset Quotes erd
30657 , add the following command to your document preamble:
30660 \begin_layout Standard
30665 numberwithin{footnote}{chapter}
30668 \begin_layout Standard
30669 To be able to use the command
30678 \begin_inset space ~
30683 in the document settings the option
30686 \begin_inset space ~
30690 \begin_inset space ~
30694 \begin_inset space ~
30702 \begin_layout Standard
30706 \begin_layout Plain Layout
30710 numberwithin{footnote}{chapter}
30715 This is another example footnote:
30721 \begin_layout Plain Layout
30722 This is a footnote numbered in the scheme
30723 \begin_inset Quotes eld
30727 \begin_inset Quotes erd
30741 \begin_layout Plain Layout
30757 \begin_layout Standard
30758 \begin_inset Note Greyedout
30761 \begin_layout Plain Layout
30772 always prints out the footnote number as arabic number; previous redefinitions
30773 to get non-arabic numbers are overwritten.
30781 \begin_layout Standard
30782 So to get for example the scheme
30783 \begin_inset Quotes eld
30789 \begin_inset Quotes erd
30792 , use this command instead of
30801 \begin_layout Standard
30815 \begin_layout Subsection
30817 \begin_inset Index idx
30820 \begin_layout Plain Layout
30821 Footnotes ! Placement
30829 \begin_layout Standard
30830 If you have several footnotes in one page, they appear without vertical
30831 space between them at the bottom of the page.
30832 To make them more readable you can e.
30833 \begin_inset space \thinspace{}
30837 \begin_inset space \space{}
30841 \begin_inset space \thinspace{}
30844 mm space with the following preamble command:
30847 \begin_layout Standard
30857 \begin_inset Newline newline
30871 \begin_layout Standard
30872 \begin_inset VSpace bigskip
30875 In a two-column document the footnotes appear at the bottom of every column,
30877 \begin_inset space ~
30881 \begin_inset CommandInset ref
30883 reference "fig:Standard-footnote-placement"
30888 If the footnotes should only appear at the bottom of the right column,
30890 \begin_inset space ~
30894 \begin_inset CommandInset ref
30896 reference "fig:Footnote-placement-in"
30900 , use the \SpecialChar LaTeX
30906 \begin_inset Index idx
30909 \begin_layout Plain Layout
30911 -packages ! ftnright
30916 with this command in the document preamble:
30919 \begin_layout Standard
30924 usepackage{ftnright}
30927 \begin_layout Standard
30928 \begin_inset Float figure
30934 \begin_layout Plain Layout
30937 \begin_inset Box Boxed
30947 height_special "totalheight"
30952 backgroundcolor "none"
30955 \begin_layout Plain Layout
30956 \begin_inset Graphics
30957 filename clipart/without_fntright.pdf
30959 scaleBeforeRotation
30971 \begin_layout Plain Layout
30972 \begin_inset Caption Standard
30974 \begin_layout Plain Layout
30975 \begin_inset CommandInset label
30977 name "fig:Standard-footnote-placement"
30981 Standard footnote placement in two-column documents.
30994 \begin_layout Standard
30995 \begin_inset Float figure
31001 \begin_layout Plain Layout
31004 \begin_inset Box Boxed
31014 height_special "totalheight"
31019 backgroundcolor "none"
31022 \begin_layout Plain Layout
31023 \begin_inset Graphics
31024 filename clipart/with_fntright.pdf
31026 scaleBeforeRotation
31038 \begin_layout Plain Layout
31039 \begin_inset Caption Standard
31041 \begin_layout Plain Layout
31042 \begin_inset CommandInset label
31044 name "fig:Footnote-placement-in"
31048 Footnote placement in two-column documents when the \SpecialChar LaTeX
31066 \begin_layout Standard
31067 \begin_inset VSpace bigskip
31070 In some scientific literature it is usual to collect the footnotes and print
31071 them in a separate paragraph at the end of a section, as in Figure
31072 \begin_inset space ~
31076 \begin_inset CommandInset ref
31078 reference "fig:Endnotes"
31083 They are then called
31084 \begin_inset Quotes eld
31088 \begin_inset Quotes erd
31092 \begin_inset Index idx
31095 \begin_layout Plain Layout
31101 To use endnotes instead of footnotes in your document, load in the menu
31104 Document\SpecialChar menuseparator
31105 Settings\SpecialChar menuseparator
31111 \begin_inset space ~
31115 \begin_inset space ~
31121 To insert the collected footnotes, insert the command
31124 \begin_layout Standard
31132 \begin_layout Standard
31133 in \SpecialChar TeX
31134 Code at the end of a section or chapter.
31137 \begin_layout Standard
31138 \begin_inset Float figure
31143 \begin_layout Plain Layout
31146 \begin_inset Box Boxed
31156 height_special "totalheight"
31161 backgroundcolor "none"
31164 \begin_layout Plain Layout
31165 \begin_inset Graphics
31166 filename clipart/endnotes.pdf
31168 scaleBeforeRotation
31180 \begin_layout Plain Layout
31181 \begin_inset Caption Standard
31183 \begin_layout Plain Layout
31184 \begin_inset CommandInset label
31186 name "fig:Endnotes"
31190 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31204 \begin_layout Standard
31205 \begin_inset VSpace medskip
31208 The paragraph heading for the endnotes isn't automatically translated into
31209 the document language, this must be done manually.
31210 The following preamble command translates the default English
31211 \begin_inset Quotes eld
31215 \begin_inset Quotes erd
31219 \begin_inset Quotes eld
31223 \begin_inset Quotes erd
31229 \begin_layout Standard
31236 notesname}{Anmerkungen}
31239 \begin_layout Standard
31240 \begin_inset VSpace medskip
31243 The numbering of endnotes can be changed like the footnote numbering as
31244 described in section
31245 \begin_inset space ~
31249 \begin_inset CommandInset ref
31251 reference "subsec:Footnote-Numbering"
31255 ; just replace the command
31268 To reset the endnote number use the command
31274 as described in section
31275 \begin_inset space ~
31279 \begin_inset CommandInset ref
31281 reference "subsec:Footnote-Numbering"
31285 and replace the command parameter
31296 \begin_layout Standard
31297 For endnotes there is the command
31301 endnotemark[number]
31303 similar to the command
31309 , that is described in section
31310 \begin_inset space ~
31314 \begin_inset CommandInset ref
31316 reference "sec:Footnotes"
31323 \begin_layout Standard
31324 \begin_inset VSpace bigskip
31327 Footnotes can also be placed in the page margin and the footnote text alignment
31328 can be changed, see the \SpecialChar LaTeX
31334 \begin_inset Index idx
31337 \begin_layout Plain Layout
31339 -packages ! footmisc
31345 \begin_inset CommandInset citation
31351 for more information about this.
31354 \begin_layout Standard
31355 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31357 \begin_inset CommandInset citation
31359 key "latexcompanion,latexguide,latexbook"
31369 \begin_inset Index idx
31372 \begin_layout Plain Layout
31374 -packages ! KOMA-Script
31379 document class, you can adjust all footnote settings using class-specific
31381 \begin_inset CommandInset citation
31390 \begin_layout Section
31392 \begin_inset Index idx
31395 \begin_layout Plain Layout
31396 Notes ! Margin Notes
31404 \begin_layout Standard
31405 Margin notes look and behave in \SpecialChar LyX
31407 They are inserted via the menu
31409 Insert\SpecialChar menuseparator
31411 \begin_inset space ~
31416 or the toolbar button
31419 arg "marginalnote-insert"
31433 \begin_inset Quotes eld
31437 \begin_inset Quotes erd
31440 appears where you can enter the text of the margin note.
31443 \begin_layout Standard
31444 At the side is an example margin note.
31449 \begin_inset Marginal
31452 \begin_layout Plain Layout
31453 This is a margin note.
31461 \begin_layout Standard
31462 Margin notes appear at the right side in single-sided documents.
31463 In double-sided documents they appear in the outer margin – left on even
31464 pages, right on odd pages.
31465 The text of margin notes is aligned opposite to the outer margin – right-aligne
31466 d when the note appears in the left margin.
31467 The first line of the margin note is placed at the position of the text
31468 line where it is inserted in the document.
31471 \begin_layout Standard
31472 \begin_inset VSpace bigskip
31475 To place the margin note in the inner margin, add the command
31478 \begin_layout Standard
31486 \begin_layout Standard
31487 in \SpecialChar TeX
31488 Code before a margin note.
31489 The new placement is valid for all subsequent margin notes.
31494 \begin_layout Plain Layout
31504 \begin_inset Marginal
31507 \begin_layout Plain Layout
31508 This is a margin note in the inner margin.
31516 \begin_inset Newline newline
31522 \begin_inset Note Greyedout
31525 \begin_layout Plain Layout
31530 There is often not enough space in the inner margin so that the notes are
31531 not correctly displayed in the output.
31539 \begin_layout Standard
31540 To return to the default placement insert the command
31543 \begin_layout Standard
31551 \begin_layout Standard
31552 in \SpecialChar TeX
31557 \begin_layout Plain Layout
31567 \begin_inset Note Greyedout
31570 \begin_layout Plain Layout
31575 The command is ignored when it is within a paragraph where also the command
31590 \begin_layout Standard
31591 \begin_inset VSpace bigskip
31598 \begin_inset Marginal
31601 \begin_layout Plain Layout
31602 AVeryLongMarginParWord that isn't hyphenated.
31610 Similar to the case described in section
31611 \begin_inset space ~
31615 \begin_inset CommandInset ref
31617 reference "subsec:Multiple-Lines-in"
31621 , long words cannot be hyphenated when they are the first word in a margin
31623 To avoid this, insert 0
31624 \begin_inset space \thinspace{}
31627 pt horizontal space before the word
31632 \begin_inset Marginal
31635 \begin_layout Plain Layout
31636 \begin_inset space \hspace*{}
31640 AVeryLongMarginParWord that is hyphenated.
31648 \begin_layout Standard
31649 \begin_inset VSpace bigskip
31655 \begin_layout Standard
31656 \begin_inset Note Greyedout
31659 \begin_layout Plain Layout
31664 Margin notes can normally not be used inside tables, floats, and footnotes.
31672 \begin_layout Standard
31673 \begin_inset VSpace bigskip
31679 \begin_layout Standard
31683 \begin_layout Plain Layout
31693 \begin_inset Note Note
31696 \begin_layout Plain Layout
31697 The following section will only be displayed when the \SpecialChar LaTeX
31710 \begin_layout Standard
31711 This restriction can be evaded by using the \SpecialChar LaTeX
31717 \begin_inset Index idx
31720 \begin_layout Plain Layout
31722 -packages ! marginnote
31728 By adding these two lines to your document preamble, the command used by
31730 for margin notes is redefined to use the command provided by the
31737 \begin_layout Standard
31742 usepackage{marginnote}
31743 \begin_inset Newline newline
31755 \begin_layout Standard
31756 This is also used in this document because
31760 has another useful feature: You can set a vertical offset for the note.
31761 This is often needed when too many margin notes are too close together
31762 or for a better page layout.
31763 The offset is set in \SpecialChar LyX
31764 as \SpecialChar TeX
31765 Code directly after the margin note in the scheme
31768 \begin_layout Standard
31774 \begin_layout Standard
31775 where the offset is a length with one of the units listed in Table
31776 \begin_inset space ~
31780 \begin_inset CommandInset ref
31782 reference "tab:Units"
31787 A negative value shifts the note up, a positive value shifts it down.
31791 For example the margin note beside this text line is shifted up 1.5
31792 \begin_inset space \thinspace{}
31795 cm with the \SpecialChar TeX
31797 \begin_inset Quotes eld
31807 \begin_inset Quotes erd
31811 \begin_inset Marginal
31814 \begin_layout Plain Layout
31815 This margin note is shifted up 1.5
31816 \begin_inset space \thinspace{}
31819 cm from its original position.
31831 \begin_layout Plain Layout
31841 \begin_layout Standard
31842 \begin_inset VSpace medskip
31849 you can also change the alignment of the text in the margin note.
31850 For example the commands
31853 \begin_layout Standard
31860 raggedleftmarginnote}{
31863 \begin_inset Newline newline
31870 raggedrightmarginnote}{
31875 \begin_layout Standard
31876 set the alignment to centered.
31881 raggedleftmarginnote
31883 denotes margin notes that appear at the left side.
31890 \begin_layout Plain Layout
31896 raggedleftmarginnote}{
31901 \begin_layout Plain Layout
31907 raggedrightmarginnote}{
31915 \begin_inset Marginal
31918 \begin_layout Plain Layout
31919 The text of this margin note is centered.
31930 \begin_layout Standard
31937 raggedleftmarginnote}{
31940 \begin_inset Newline newline
31947 raggedrightmarginnote}{
31956 \begin_layout Plain Layout
31962 raggedleftmarginnote}{
31967 \begin_layout Plain Layout
31973 raggedrightmarginnote}{
31983 \begin_layout Standard
31984 \begin_inset VSpace medskip
31987 For the other features of
31991 refer to its documentation
31992 \begin_inset CommandInset citation
32001 \begin_layout Standard
32002 \begin_inset VSpace bigskip
32005 You can adjust the layout of margin notes by changing its definition.
32006 To create for example a header for all margin notes with the underlined,
32007 sans-serif, and bold header text
32008 \begin_inset Quotes eld
32020 \begin_inset Quotes erd
32023 , add this to your document preamble:
32026 \begin_layout Standard
32036 \begin_inset Newline newline
32046 \begin_inset Newline newline
32050 \begin_inset Phantom HPhantom
32053 \begin_layout Plain Layout
32056 \begin_inset space ~
32072 underbar{Attention!}}}%
32073 \begin_inset Newline newline
32077 \begin_inset Phantom HPhantom
32080 \begin_layout Plain Layout
32083 \begin_inset space ~
32100 \begin_layout Standard
32107 \begin_layout Plain Layout
32118 \begin_layout Plain Layout
32129 \begin_layout Plain Layout
32137 underbar{Attention!}}}%
32140 \begin_layout Plain Layout
32154 \begin_inset Marginal
32157 \begin_layout Plain Layout
32158 This is a margin note with a defined heading.
32170 \begin_layout Plain Layout
32184 \begin_layout Plain Layout
32201 \begin_inset Note Note
32204 \begin_layout Plain Layout
32205 The margin note format is changed only for this example.
32213 \begin_layout Standard
32217 \begin_layout Plain Layout
32227 \begin_inset Note Note
32230 \begin_layout Plain Layout
32231 The following will be displayed when the \SpecialChar LaTeX
32244 \begin_layout Standard
32245 You need to install the \SpecialChar LaTeX
32250 to see the following part of this section in the output.
32253 \begin_layout Standard
32257 \begin_layout Plain Layout
32269 \begin_layout Chapter
32273 \begin_layout Section
32275 \begin_inset Index idx
32278 \begin_layout Plain Layout
32279 Boxes ! Introduction
32287 \begin_layout Standard
32288 Boxes are used to format a block of text.
32289 Boxes can be used to write documents with multiple languages, see section
32290 \begin_inset space ~
32294 \begin_inset CommandInset ref
32296 reference "sec:Minipages"
32300 , to frame texts, see section
32301 \begin_inset space ~
32305 \begin_inset CommandInset ref
32307 reference "sec:Decoration"
32311 , to prevent words from being hyphenated, see section
32312 \begin_inset space ~
32316 \begin_inset CommandInset ref
32318 reference "sec:Prevent-Hyphenation"
32322 , to align text, see section
32323 \begin_inset space ~
32327 \begin_inset CommandInset ref
32329 reference "subsec:Vertical-Alignment"
32333 , or to set the background color of texts, see section
32334 \begin_inset space ~
32338 \begin_inset CommandInset ref
32340 reference "sec:Colored-Boxes"
32347 \begin_layout Standard
32348 Boxes can be inserted with the menu
32350 Insert\SpecialChar menuseparator
32353 or the toolbar button
32356 arg "box-insert Frameless"
32360 A grey box with the label
32365 \begin_inset Graphics
32366 filename clipart/BoxInsetDefault.png
32368 scaleBeforeRotation
32373 The box type can be specified by right-clicking on the box and selecting
32379 The box dialog offers the
32382 \begin_inset space ~
32404 is the default for new boxes and is explained in section
32405 \begin_inset space ~
32409 \begin_inset CommandInset ref
32411 reference "sec:Minipages"
32419 is described in section
32420 \begin_inset space ~
32424 \begin_inset CommandInset ref
32426 reference "sec:Parboxes"
32435 \begin_inset CommandInset ref
32437 reference "sec:Prevent-Hyphenation"
32444 \begin_layout Standard
32445 Boxes are not numbered and can therefore not be referenced like floats or
32449 \begin_layout Standard
32450 \begin_inset Note Greyedout
32453 \begin_layout Plain Layout
32458 Boxes must not be the item in an
32474 \begin_layout Standard
32475 \begin_inset Note Greyedout
32478 \begin_layout Plain Layout
32483 For an unknown reason you can only set the
32486 \begin_inset space ~
32495 when you use a framed box.
32499 \begin_inset space ~
32504 type and without frames are explained in section
32505 \begin_inset space ~
32509 \begin_inset CommandInset ref
32511 reference "sec:Prevent-Hyphenation"
32523 \begin_layout Section
32525 \begin_inset CommandInset label
32527 name "sec:Box-Dialog"
32532 \begin_inset Index idx
32535 \begin_layout Plain Layout
32544 \begin_layout Subsection
32546 \begin_inset Index idx
32549 \begin_layout Plain Layout
32558 \begin_layout Standard
32559 In the box dialog you can adjust the box geometry in the fields
32568 The available units for the geometry are explained in Table
32569 \begin_inset space ~
32573 \begin_inset CommandInset ref
32575 reference "tab:Units"
32584 offers the following additional sizes:
32587 \begin_layout Description
32588 Depth This is the plain text
32589 \begin_inset Quotes eld
32593 \begin_inset Quotes erd
32597 It ignores the total depth when there are multiple text lines in the box:
32598 \begin_inset Newline newline
32602 \begin_inset Newline newline
32606 \begin_inset Newline newline
32610 \begin_inset Box Boxed
32620 height_special "depth"
32625 backgroundcolor "none"
32628 \begin_layout Plain Layout
32630 Box height set to 1
32631 \begin_inset space \thinspace{}
32640 \begin_inset Newline newline
32644 \begin_inset Newline newline
32650 \begin_layout Description
32651 Height This is the height of the text that is inside the box.
32653 \begin_inset space \thinspace{}
32657 \begin_inset space \space{}
32660 2 for this size will set the box height to 2
32661 \begin_inset space ~
32664 times the text height:
32665 \begin_inset Box Boxed
32675 height_special "height"
32680 backgroundcolor "none"
32683 \begin_layout Plain Layout
32685 Box height set to 2
32686 \begin_inset space \thinspace{}
32697 \begin_layout Description
32699 \begin_inset space ~
32702 Height This is the Height
32703 \begin_inset space \thinspace{}
32707 \begin_inset space \thinspace{}
32711 \begin_inset Box Boxed
32721 height_special "totalheight"
32726 backgroundcolor "none"
32729 \begin_layout Plain Layout
32731 Box height set to 1
32732 \begin_inset space \thinspace{}
32736 \begin_inset space ~
32747 \begin_layout Description
32748 Width This sets the width of the box as height:
32749 \begin_inset Box Boxed
32759 height_special "width"
32764 backgroundcolor "none"
32767 \begin_layout Plain Layout
32769 Box height set to 1
32770 \begin_inset space \thinspace{}
32781 \begin_layout Subsection
32783 \begin_inset Index idx
32786 \begin_layout Plain Layout
32795 \begin_layout Standard
32796 When you have chosen an
32799 \begin_inset space ~
32804 , the vertical box alignment can be:
32807 \begin_layout Description
32808 Top This is an example text line.
32810 \begin_inset Box Boxed
32820 height_special "totalheight"
32825 backgroundcolor "none"
32828 \begin_layout Plain Layout
32830 This box is top-aligned.
32835 This is an example text line.
32838 \begin_layout Description
32839 Middle This is an example text line.
32841 \begin_inset Box Boxed
32851 height_special "totalheight"
32856 backgroundcolor "none"
32859 \begin_layout Plain Layout
32861 This box is middle-aligned.
32866 This is an example text line.
32869 \begin_layout Description
32870 Bottom This is an example text line.
32872 \begin_inset Box Boxed
32882 height_special "totalheight"
32887 backgroundcolor "none"
32890 \begin_layout Plain Layout
32892 This box is bottom-aligned.
32897 This is an example text line.
32900 \begin_layout Standard
32901 \begin_inset Note Greyedout
32904 \begin_layout Plain Layout
32909 The vertical box alignment can be lost in the output when you have two
32910 boxes in a line and one has e.
32911 \begin_inset space \thinspace{}
32915 \begin_inset space \space{}
32918 a shadow and the other one not.
32926 \begin_layout Standard
32927 The horizontal box alignment can be set via \SpecialChar LyX
32928 's paragraph dialog when you
32929 set the box into its own paragraph.
32932 \begin_layout Standard
32933 \begin_inset VSpace bigskip
32936 When you have chosen an
32939 \begin_inset space ~
32944 , the box content can be aligned vertically to:
32947 \begin_layout Description
32948 top This is an example text line.
32950 \begin_inset Box Boxed
32960 height_special "totalheight"
32965 backgroundcolor "none"
32968 \begin_layout Plain Layout
32970 This box text is top-aligned.
32975 This is an example text line.
32978 \begin_layout Description
32979 middle This is an example text line.
32981 \begin_inset Box Boxed
32991 height_special "totalheight"
32996 backgroundcolor "none"
32999 \begin_layout Plain Layout
33001 This box text is middle-aligned.
33006 This is an example text line.
33009 \begin_layout Description
33010 bottom This is an example text line.
33012 \begin_inset Box Boxed
33022 height_special "totalheight"
33027 backgroundcolor "none"
33030 \begin_layout Plain Layout
33032 This box text is bottom-aligned.
33037 This is an example text line.
33040 \begin_layout Description
33041 stretch This is an example text line.
33043 \begin_inset Box Boxed
33053 height_special "totalheight"
33058 backgroundcolor "none"
33061 \begin_layout Plain Layout
33066 \begin_layout Plain Layout
33071 \begin_layout Plain Layout
33078 This is an example text line.
33081 \begin_layout Standard
33082 To stretch the box content, it must consist of more than one paragraph.
33083 In the example above every text line is in an own paragraph.
33086 \begin_layout Standard
33087 \begin_inset VSpace bigskip
33090 To align the box content horizontally you can use \SpecialChar LyX
33091 's paragraph dialog when
33095 \begin_inset space ~
33103 \begin_layout Standard
33105 \begin_inset Box Boxed
33115 height_special "totalheight"
33120 backgroundcolor "none"
33123 \begin_layout Plain Layout
33128 \begin_layout Plain Layout
33133 \begin_layout Plain Layout
33143 \begin_layout Standard
33144 If you have not set an
33147 \begin_inset space ~
33152 , you can align the box content horizontally in the box dialog.
33153 \begin_inset Separator latexpar
33159 \begin_layout Standard
33161 \begin_inset Box Boxed
33171 height_special "totalheight"
33176 backgroundcolor "none"
33179 \begin_layout Plain Layout
33180 This box text is horizontally stretched.
33188 \begin_layout Subsection
33190 \begin_inset CommandInset label
33192 name "sec:Decoration"
33197 \begin_inset Index idx
33200 \begin_layout Plain Layout
33209 \begin_layout Standard
33210 The type of the box can be specified in the box dialog in the drop-down
33216 The following types are possible:
33219 \begin_layout Description
33221 \begin_inset space ~
33224 frame Nothing is drawn.
33227 \begin_layout Description
33229 \begin_inset space ~
33233 \begin_inset space ~
33236 frame This draws a rectangular frame around the box.
33237 The frame line thickness can be specified.
33239 \begin_inset Box Boxed
33249 height_special "totalheight"
33254 backgroundcolor "none"
33257 \begin_layout Plain Layout
33267 \begin_layout Description
33269 \begin_inset space ~
33273 \begin_inset space ~
33276 thin This draws an oval frame around the box.
33277 The frame line thickness has the size 0.4
33278 \begin_inset space \thinspace{}
33283 \begin_inset Box ovalbox
33293 height_special "totalheight"
33298 backgroundcolor "none"
33301 \begin_layout Plain Layout
33311 \begin_layout Description
33313 \begin_inset space ~
33317 \begin_inset space ~
33320 thick This draws an oval frame around the box.
33321 The frame line thickness has the size 0.8
33322 \begin_inset space \thinspace{}
33327 \begin_inset Box Ovalbox
33337 height_special "totalheight"
33342 backgroundcolor "none"
33345 \begin_layout Plain Layout
33355 \begin_layout Description
33357 \begin_inset space ~
33360 shadow This draws a rectangular frame with a shadow around the box.
33361 The frame line thickness and the shadow can be specified.
33363 \begin_inset Box Shadowbox
33373 height_special "totalheight"
33378 backgroundcolor "none"
33381 \begin_layout Plain Layout
33391 \begin_layout Description
33393 \begin_inset space ~
33396 background This draws a box with a red background.
33397 Unlike colored boxes
33401 \begin_layout Plain Layout
33403 \begin_inset space \thinspace{}
33407 \begin_inset CommandInset ref
33409 reference "sec:Colored-Boxes"
33418 , it always uses the whole column width and the box is set as its own paragraph.
33420 \begin_inset Box Shaded
33430 height_special "totalheight"
33435 backgroundcolor "none"
33438 \begin_layout Plain Layout
33439 Shaded background box
33447 \begin_layout Description
33449 \begin_inset space ~
33453 \begin_inset space ~
33456 frame This draws a double-line rectangular frame around the box.
33457 The line thickness of the inner frame is 0.75
33458 \begin_inset space \thinspace{}
33462 \begin_inset space ~
33465 thickness, the thickness of the outer frame is 1.5
33466 \begin_inset space \thinspace{}
33470 \begin_inset space ~
33474 The distance between the lines is 1.5
33475 \begin_inset space \thinspace{}
33479 \begin_inset space ~
33483 \begin_inset space \thinspace{}
33487 \begin_inset space \thinspace{}
33491 \begin_inset space \thinspace{}
33496 \begin_inset Box Doublebox
33506 height_special "totalheight"
33511 backgroundcolor "none"
33514 \begin_layout Plain Layout
33516 Double rectangular box
33524 \begin_layout Standard
33525 \begin_inset VSpace bigskip
33529 's box label will reflect the different frame types.
33530 To be able to use all types, the \SpecialChar LaTeX
33536 \begin_inset Index idx
33539 \begin_layout Plain Layout
33541 -packages ! fancybox
33549 \begin_layout Standard
33550 \begin_inset VSpace bigskip
33553 When you use the decoration
33555 simple rectangular frame
33557 and no inner box, you can allow page breaks within a box.
33558 Note that then, unlike other framed boxes, the frame always uses the whole
33559 column width and the box is set as its own paragraph:
33560 \begin_inset Box Framed
33570 height_special "totalheight"
33575 backgroundcolor "none"
33578 \begin_layout Plain Layout
33579 Allow page break box
33587 \begin_layout Section
33589 \begin_inset Index idx
33592 \begin_layout Plain Layout
33593 Boxes ! Customization
33601 \begin_layout Standard
33602 The diameter of the round corners of the oval boxes can be set with the
33613 \begin_layout Standard
33621 \begin_layout Standard
33622 sets the diameter to 1
33623 \begin_inset space \thinspace{}
33630 \begin_layout Standard
33638 \begin_layout Standard
33639 sets the diameter to
33642 \begin_inset space \thinspace{}
33646 \begin_inset space \thinspace{}
33649 minimum(width and height of box)
33661 \begin_layout Standard
33665 \begin_layout Plain Layout
33675 \begin_inset Box Ovalbox
33685 height_special "totalheight"
33690 backgroundcolor "none"
33693 \begin_layout Plain Layout
33702 \begin_inset space \thinspace{}
33706 \begin_inset space \thinspace{}
33710 \begin_inset space \thinspace{}
33722 \begin_layout Plain Layout
33734 \begin_layout Standard
33735 \begin_inset VSpace bigskip
33741 \begin_layout Standard
33742 The default background color red of
33746 boxes can either be changed locally with the command
33750 definecolor{shadecolor}
33752 or globally with the menu
33754 Tools\SpecialChar menuseparator
33755 Preferences\SpecialChar menuseparator
33756 Colors\SpecialChar menuseparator
33758 \begin_inset space ~
33770 command is explained in section
33771 \begin_inset space ~
33775 \begin_inset CommandInset ref
33777 reference "sec:Colored-Tables"
33785 \begin_layout Plain Layout
33792 requires the \SpecialChar LaTeX
33797 in the preamble, see section
33798 \begin_inset space ~
33802 \begin_inset CommandInset ref
33804 reference "sec:Colored-Boxes"
33813 For example the appearance of the following shaded background box is set
33814 with the \SpecialChar TeX
33818 \begin_layout Standard
33823 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33826 \begin_layout Standard
33830 \begin_layout Plain Layout
33834 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33840 \begin_inset Box Shaded
33850 height_special "totalheight"
33855 backgroundcolor "none"
33858 \begin_layout Plain Layout
33861 This is yellow text in a
33871 box with dark green background.
33880 \begin_layout Plain Layout
33884 definecolor{shadecolor}{rgb}{1,0,0}
33892 \begin_layout Standard
33893 \begin_inset VSpace bigskip
33896 Manually changed sizes and colors are valid for all boxes following the
33897 commands that change them.
33900 \begin_layout Section
33902 \begin_inset CommandInset label
33904 name "sec:Minipages"
33909 \begin_inset Index idx
33912 \begin_layout Plain Layout
33921 \begin_layout Standard
33922 Minipages are treated by \SpecialChar LaTeX
33923 as pages within pages and can therefore for example
33924 have their own footnotes.
33927 \begin_layout Standard
33928 Minipages are useful when you write documents with different languages.
33931 \begin_layout Standard
33932 Below are two example minipages side by side.
33933 Their width is set to 45
33934 \begin_inset space \thinspace{}
33937 col% and they are separated by a horizontal fill, that was inserted via
33940 Insert\SpecialChar menuseparator
33942 \begin_inset space ~
33945 Formatting\SpecialChar menuseparator
33947 \begin_inset space ~
33953 \begin_inset Newpage newpage
33959 \begin_layout Standard
33960 \begin_inset Box Frameless
33970 height_special "totalheight"
33975 backgroundcolor "none"
33978 \begin_layout Plain Layout
33981 Dies ist ein deutscher Text.
33982 Dies ist ein deutscher Text.
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text
33997 \begin_layout Plain Layout
34000 Dies ist eine deutsche Fußnote.
34006 Dies ist ein deutscher Text.
34007 Dies ist ein deutscher Text.
34013 \begin_inset space \hfill{}
34017 \begin_inset Box Frameless
34027 height_special "totalheight"
34032 backgroundcolor "none"
34035 \begin_layout Plain Layout
34036 This is an English Text.
34037 This is an English Text.
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34055 \begin_layout Plain Layout
34056 This is an English footnote.
34061 This is an English Text.
34069 \begin_layout Standard
34070 \begin_inset VSpace bigskip
34073 The document-wide paragraph settings are ignored within minipages.
34074 That means that there will be no space between paragraphs in minipages
34075 although you set it to e.
34076 \begin_inset space \thinspace{}
34080 \begin_inset space \space{}
34087 in the document settings.
34090 \begin_layout Standard
34091 Minipages can also be used to set a background color for text parts, see
34093 \begin_inset space ~
34097 \begin_inset CommandInset ref
34099 reference "sec:Colored-Boxes"
34106 \begin_layout Standard
34107 \begin_inset Note Greyedout
34110 \begin_layout Plain Layout
34115 You cannot have floats or margin notes inside minipages but minipages can
34116 be used inside tables, floats, and other boxes.
34124 \begin_layout Standard
34125 \begin_inset VSpace bigskip
34131 \begin_layout Standard
34133 has also basic support for minipages whose size is automatically determined
34134 by the width of their contents, via the module
34136 Variable-width Minipages
34139 The \SpecialChar LyX
34142 varwidth-floats-side-by-side
34144 gives examples of variable-width minipages used for placing two floats
34148 \begin_layout Section
34150 \begin_inset CommandInset label
34152 name "sec:Parboxes"
34157 \begin_inset Index idx
34160 \begin_layout Plain Layout
34169 \begin_layout Standard
34170 Parboxes are very similar to minipages with the difference that they cannot
34172 \begin_inset Separator latexpar
34178 \begin_layout Standard
34180 \begin_inset Box Frameless
34190 height_special "totalheight"
34195 backgroundcolor "none"
34198 \begin_layout Plain Layout
34199 This a text within a parbox.
34200 This a text within a parbox.
34203 \begin_layout Plain Layout
34204 This footnote won't appear:
34208 \begin_layout Plain Layout
34209 This footnote is inside a parbox and will therefore not appear.
34222 \begin_layout Section
34223 Boxes for Words and Characters
34224 \begin_inset Index idx
34227 \begin_layout Plain Layout
34228 Boxes ! for Characters
34236 \begin_layout Subsection
34237 Prevent Hyphenation
34238 \begin_inset CommandInset label
34240 name "sec:Prevent-Hyphenation"
34245 \begin_inset Index idx
34248 \begin_layout Plain Layout
34249 Boxes ! to Prevent Hyphenation
34257 \begin_layout Standard
34258 You can use the box type
34262 to prevent words or text from being hyphenated.
34263 \begin_inset Newline newline
34266 Here is an example text:
34269 \begin_layout Standard
34270 This line is an example to show how you can prevent the hyphenation of
34271 \begin_inset Quotes eld
34275 \begin_inset Quotes erd
34281 \begin_layout Standard
34282 To prevent the hyphenation of the word
34283 \begin_inset Quotes eld
34287 \begin_inset Quotes erd
34290 , put the word into a box, set the
34293 \begin_inset space ~
34302 and use no explicit width.
34305 \begin_layout Standard
34306 This is the result:
34309 \begin_layout Standard
34310 This line is an example to show how you can prevent the hyphenation of
34311 \begin_inset Box Frameless
34321 height_special "totalheight"
34326 backgroundcolor "none"
34329 \begin_layout Plain Layout
34330 \begin_inset Quotes eld
34334 \begin_inset Quotes erd
34345 \begin_layout Standard
34346 You can alternatively set the command
34347 \begin_inset Quotes eld
34357 \begin_inset Quotes grd
34360 as \SpecialChar TeX
34361 Code directly before the word:
34364 \begin_layout Standard
34365 This line is an example to show how you can prevent the hyphenation of
34366 \begin_inset Quotes eld
34373 \begin_layout Plain Layout
34383 \begin_inset Quotes erd
34389 \begin_layout Standard
34390 Of course the word now protrudes over the side margin.
34391 To avoid this, add via the menu
34393 Insert\SpecialChar menuseparator
34394 Formatting\SpecialChar menuseparator
34396 \begin_inset space ~
34400 \begin_inset space ~
34408 arg "newline-insert newline"
34411 ) a line break before the word:
34414 \begin_layout Standard
34415 This line is an example to show how you can prevent the hyphenation of
34416 \begin_inset Newline newline
34420 \begin_inset Box Frameless
34430 height_special "totalheight"
34435 backgroundcolor "none"
34438 \begin_layout Plain Layout
34439 \begin_inset Quotes eld
34443 \begin_inset Quotes erd
34454 \begin_layout Subsection
34456 \begin_inset CommandInset label
34458 name "subsec:Vertical-Alignment"
34463 \begin_inset Index idx
34466 \begin_layout Plain Layout
34467 Boxes ! for Vertical Alignment
34473 \begin_inset Index idx
34476 \begin_layout Plain Layout
34485 \begin_layout Standard
34486 With the help of the command
34492 you can align words, characters or other boxes vertically relative to the
34500 is used with the following scheme:
34503 \begin_layout Standard
34508 raisebox{lift}[height][depth]{box content}
34511 \begin_layout Standard
34512 The lift can be a positive value to raise the box or a negative value to
34516 \begin_layout Standard
34517 To align for example the word
34518 \begin_inset Quotes eld
34522 \begin_inset Quotes erd
34525 so that the bottom of the
34526 \begin_inset Quotes eld
34530 \begin_inset Quotes erd
34534 \begin_inset Quotes eld
34538 \begin_inset Quotes erd
34541 is at the baseline, insert the command
34544 \begin_layout Standard
34554 \begin_layout Standard
34555 in \SpecialChar TeX
34556 Code before the word.
34557 After the word insert a closing brace
34558 \begin_inset Quotes eld
34566 \begin_inset Quotes erd
34569 in \SpecialChar TeX
34571 \begin_inset Newline newline
34574 This is the result:
34577 \begin_layout Standard
34578 This is a text line with the word
34582 \begin_layout Plain Layout
34594 \begin_inset Quotes eld
34598 \begin_inset Quotes erd
34605 \begin_layout Plain Layout
34615 \begin_layout Standard
34616 \begin_inset VSpace bigskip
34619 When you raise or lower characters in a line, the line distance will be
34623 \begin_layout Standard
34624 This is a text line with the word
34628 \begin_layout Plain Layout
34640 \begin_inset Quotes eld
34644 \begin_inset Quotes erd
34651 \begin_layout Plain Layout
34659 \begin_inset Newline newline
34662 This is a text line with the word
34666 \begin_layout Plain Layout
34676 \begin_inset Quotes eld
34680 \begin_inset Quotes erd
34687 \begin_layout Plain Layout
34697 \begin_layout Standard
34698 If you want to prevent this for a certain reason, set the box height to
34703 \begin_layout Standard
34713 \begin_layout Standard
34714 This is a text line with the word
34718 \begin_layout Plain Layout
34730 \begin_inset Quotes eld
34734 \begin_inset Quotes erd
34741 \begin_layout Plain Layout
34749 \begin_inset Newline newline
34753 \begin_inset Newline newline
34756 This is a text line with the word
34760 \begin_layout Plain Layout
34764 raisebox{0.5cm}[0pt]{
34770 \begin_inset Quotes eld
34774 \begin_inset Quotes erd
34781 \begin_layout Plain Layout
34791 \begin_layout Section
34793 \begin_inset CommandInset label
34795 name "sec:Colored-Boxes"
34800 \begin_inset Index idx
34803 \begin_layout Plain Layout
34812 \begin_layout Standard
34813 To color the background of a box just select the color you like in the box
34815 This is for example a box with orange background:
34816 \begin_inset Box Frameless
34826 height_special "totalheight"
34831 backgroundcolor "orange"
34834 \begin_layout Plain Layout
34835 Box with orange background
34843 \begin_layout Standard
34844 If you use the decoration
34847 \begin_inset space ~
34851 \begin_inset space ~
34856 you can set a frame color.
34857 In this case you must also specify a background color (LyX sets white as
34859 Here is an example:
34860 \begin_inset Box Boxed
34870 height_special "totalheight"
34875 backgroundcolor "yellow"
34878 \begin_layout Plain Layout
34879 Box with teal frame color and yellow background color
34887 \begin_layout Standard
34888 \begin_inset VSpace bigskip
34891 Of course you can also have colored text inside a colored box:
34892 \begin_inset Newline newline
34896 \begin_inset Box Boxed
34906 height_special "totalheight"
34911 backgroundcolor "magenta"
34914 \begin_layout Plain Layout
34917 This is colored text within a colored, framed box
34925 \begin_layout Standard
34926 \begin_inset VSpace bigskip
34932 \begin_layout Standard
34933 If you need another color than the predefined ones, you can define your
34934 own color as described in section
34935 \begin_inset space ~
34939 \begin_inset CommandInset ref
34941 reference "sec:Colored-Tables"
34946 To use your own color you must typeset the box by using TeX code:
34949 \begin_layout Standard
34950 Colored boxes without frame are created with the command
34957 It has the following scheme:
34960 \begin_layout Standard
34965 colorbox{color}{box content}
34968 \begin_layout Standard
34969 The box content can also be a box and colored boxes can also be within other
34972 \begin_inset space \thinspace{}
34976 \begin_inset space \space{}
34979 a darkgreen background for a word, insert the command
34982 \begin_layout Standard
34987 colorbox{darkgreen}{
34990 \begin_layout Standard
34991 before the word in \SpecialChar TeX
34993 After the word insert a closing brace
34994 \begin_inset Quotes eld
35002 \begin_inset Quotes erd
35005 in \SpecialChar TeX
35007 \begin_inset Newline newline
35010 This is the result:
35013 \begin_layout Standard
35014 This is a line where the word
35018 \begin_layout Plain Layout
35022 colorbox{darkgreen}{
35028 \begin_inset Quotes eld
35032 \begin_inset Quotes erd
35039 \begin_layout Plain Layout
35046 has a darkgreen background.
35049 \begin_layout Standard
35050 Framed, colored boxes are created with the command
35057 It has the following scheme:
35060 \begin_layout Standard
35065 fcolorbox{frame color}{box color}{box content}
35068 \begin_layout Section
35069 Rotated and Scaled Boxes
35072 \begin_layout Standard
35073 To use the boxes described in this section, the module
35077 must be loaded in the document settings.
35080 \begin_layout Standard
35081 \begin_inset Note Greyedout
35084 \begin_layout Plain Layout
35089 Not all DVI viewers are able to display rotated or scaled material.
35097 \begin_layout Standard
35098 \begin_inset Note Greyedout
35101 \begin_layout Plain Layout
35106 Floats are not allowed inside a rotated or scaled box.
35114 \begin_layout Subsection
35116 \begin_inset Index idx
35119 \begin_layout Plain Layout
35126 \begin_inset Index idx
35129 \begin_layout Plain Layout
35138 \begin_layout Standard
35139 To rotate material, you can put it into a
35144 Such a box is inserted via the menu
35146 Insert\SpecialChar menuseparator
35147 Custom Insets\SpecialChar menuseparator
35153 \begin_layout Standard
35154 The rotation origin can be specified via the inset
35160 Insert\SpecialChar menuseparator
35168 The following positions are possible:
35188 (top), along with meaningful combinations of the four base positions.
35193 means that the rotation origin is at the top left corner of the box.
35194 When no rotation origin is specified, the position
35199 The rotation angle is a number that can be negative that specifies the
35201 The rotation direction is counterclockwise.
35204 \begin_layout Standard
35205 In the following example
35209 was inserted to the
35217 was inserted to the
35224 \begin_layout Standard
35226 \begin_inset Flex Rotatebox
35229 \begin_layout Plain Layout
35230 \begin_inset Argument 1
35233 \begin_layout Plain Layout
35240 \begin_inset Argument 2
35243 \begin_layout Plain Layout
35257 \begin_layout Standard
35258 The box content can also be another box or an inline formula:
35261 \begin_layout Standard
35263 \begin_inset Flex Rotatebox
35266 \begin_layout Plain Layout
35267 \begin_inset Argument 1
35270 \begin_layout Plain Layout
35277 \begin_inset Argument 2
35280 \begin_layout Plain Layout
35287 \begin_inset Box Doublebox
35297 height_special "totalheight"
35302 backgroundcolor "none"
35305 \begin_layout Plain Layout
35317 \begin_inset Flex Rotatebox
35320 \begin_layout Plain Layout
35321 \begin_inset Argument 1
35324 \begin_layout Plain Layout
35331 \begin_inset Argument 2
35334 \begin_layout Plain Layout
35341 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35352 \begin_layout Standard
35353 or an image or table:
35356 \begin_layout Standard
35358 \begin_inset Flex Rotatebox
35361 \begin_layout Plain Layout
35362 \begin_inset Argument 1
35365 \begin_layout Plain Layout
35372 \begin_inset Argument 2
35375 \begin_layout Plain Layout
35382 \begin_inset Graphics
35383 filename clipart/platypus.eps
35394 with a rotated image
35395 \begin_inset Flex Rotatebox
35398 \begin_layout Plain Layout
35399 \begin_inset Argument 2
35402 \begin_layout Plain Layout
35409 \begin_inset Tabular
35410 <lyxtabular version="3" rows="2" columns="2">
35411 <features tabularvalignment="middle">
35412 <column alignment="center" valignment="top">
35413 <column alignment="center" valignment="top">
35415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35418 \begin_layout Plain Layout
35424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35427 \begin_layout Plain Layout
35435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35438 \begin_layout Plain Layout
35444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35447 \begin_layout Plain Layout
35464 \begin_inset Index idx
35467 \begin_layout Plain Layout
35474 \begin_inset Index idx
35477 \begin_layout Plain Layout
35478 Table Customization ! Rotating
35486 \begin_layout Standard
35487 \begin_inset Note Greyedout
35490 \begin_layout Plain Layout
35499 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35501 errors when viewing/exporting the document.
35509 \begin_layout Subsection
35511 \begin_inset Index idx
35514 \begin_layout Plain Layout
35521 \begin_inset Index idx
35524 \begin_layout Plain Layout
35533 \begin_layout Standard
35534 To scale material put it into a
35539 Such a box is inserted via the menu
35541 Insert\SpecialChar menuseparator
35542 Custom Insets\SpecialChar menuseparator
35548 \begin_layout Standard
35553 inset has the mandatory inset
35557 and the optional inset
35561 (inserted via the menu
35563 Insert\SpecialChar menuseparator
35567 Input there the horizontal and vertical scale factor, respectively.
35572 inset is used, the horizontal factor will also be used as the vertical
35576 \begin_layout Standard
35577 To get for example the double text size, compared to the document text size,
35588 \begin_inset Flex Scalebox
35591 \begin_layout Plain Layout
35592 \begin_inset Argument 1
35595 \begin_layout Plain Layout
35609 \begin_layout Standard
35627 \begin_inset Flex Scalebox
35630 \begin_layout Plain Layout
35631 \begin_inset Argument 1
35634 \begin_layout Plain Layout
35641 \begin_inset Argument 2
35644 \begin_layout Plain Layout
35658 \begin_layout Standard
35659 If the scaling factor is negative, the box content will be mirrored.
35676 can be used to create mirror writing:
35677 \begin_inset Flex Scalebox
35680 \begin_layout Plain Layout
35681 \begin_inset Argument 1
35684 \begin_layout Plain Layout
35691 \begin_inset Argument 2
35694 \begin_layout Plain Layout
35708 \begin_layout Standard
35726 \begin_inset Flex Scalebox
35729 \begin_layout Plain Layout
35730 \begin_inset Argument 1
35733 \begin_layout Plain Layout
35740 \begin_inset Argument 2
35743 \begin_layout Plain Layout
35757 \begin_layout Standard
35764 Insert\SpecialChar menuseparator
35765 Custom Insets\SpecialChar menuseparator
35791 \begin_layout Standard
35792 \begin_inset Note Greyedout
35795 \begin_layout Plain Layout
35804 inset is empty or contains other characters than numbers you will get LaTeX
35805 errors when viewing/exporting the document.
35813 \begin_layout Standard
35814 \begin_inset VSpace bigskip
35823 Insert\SpecialChar menuseparator
35824 Custom Insets\SpecialChar menuseparator
35827 ) is used to scale the content to a defined width and height.
35832 inset has the mandatory inset
35836 and the optional inset
35840 (inserted via the menu
35842 Insert\SpecialChar menuseparator
35846 Input there the width and height, respectively, as value with a unit.
35848 \begin_inset CommandInset ref
35850 reference "tab:Units"
35854 lists the possible units.
35855 If there is an exclamation mark
35859 in of of the two insets, the size is set so that the aspect ratio of the
35860 box content is kept.
35865 inset is used an exclamation mark will internally be used for the height.
35868 \begin_layout Standard
35886 \begin_inset Flex Resizebox
35889 \begin_layout Plain Layout
35890 \begin_inset Argument 1
35893 \begin_layout Plain Layout
35900 \begin_inset Argument 2
35903 \begin_layout Plain Layout
35915 \begin_inset Newline newline
35939 \begin_inset Flex Resizebox
35942 \begin_layout Plain Layout
35943 \begin_inset Argument 1
35946 \begin_layout Plain Layout
35953 \begin_inset Argument 2
35956 \begin_layout Plain Layout
35970 \begin_layout Standard
35971 \begin_inset Note Greyedout
35974 \begin_layout Plain Layout
35983 inset is empty or contains an invalid unit you will get LaTeX errors when
35984 viewing/exporting the document.
35992 \begin_layout Standard
35993 \begin_inset VSpace bigskip
35999 \begin_layout Standard
36000 The boxes can be combined in any order.
36009 which is in turn inside a
36016 \begin_layout Standard
36019 \begin_inset Flex Rotatebox
36022 \begin_layout Plain Layout
36023 \begin_inset Argument 1
36026 \begin_layout Plain Layout
36033 \begin_inset Argument 2
36036 \begin_layout Plain Layout
36043 \begin_inset Flex Resizebox
36046 \begin_layout Plain Layout
36047 \begin_inset Argument 1
36050 \begin_layout Plain Layout
36057 \begin_inset Flex Reflectbox
36060 \begin_layout Plain Layout
36079 \begin_layout Standard
36081 Images, tables, and inline formulas are allowed as box content:
36084 \begin_layout Standard
36087 \begin_inset Flex Resizebox
36090 \begin_layout Plain Layout
36091 \begin_inset Argument 1
36094 \begin_layout Plain Layout
36101 \begin_inset Flex Reflectbox
36104 \begin_layout Plain Layout
36105 \begin_inset Graphics
36106 filename clipart/platypus.eps
36123 \begin_inset Flex Resizebox
36126 \begin_layout Plain Layout
36127 \begin_inset Argument 1
36130 \begin_layout Plain Layout
36137 \begin_inset Flex Reflectbox
36140 \begin_layout Plain Layout
36141 \begin_inset Tabular
36142 <lyxtabular version="3" rows="2" columns="2">
36143 <features tabularvalignment="middle">
36144 <column alignment="center" valignment="top">
36145 <column alignment="center" valignment="top">
36147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36150 \begin_layout Plain Layout
36156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36159 \begin_layout Plain Layout
36167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36170 \begin_layout Plain Layout
36176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36179 \begin_layout Plain Layout
36201 \begin_inset Flex Resizebox
36204 \begin_layout Plain Layout
36205 \begin_inset Argument 1
36208 \begin_layout Plain Layout
36215 \begin_inset Flex Reflectbox
36218 \begin_layout Plain Layout
36219 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36233 \begin_inset Index idx
36236 \begin_layout Plain Layout
36243 \begin_inset Index idx
36246 \begin_layout Plain Layout
36247 Table Customization ! Scaling
36255 \begin_layout Standard
36256 When the global formula style
36260 is used in the document
36264 \begin_layout Plain Layout
36266 \begin_inset Quotes eld
36270 \begin_inset Quotes erd
36273 is added to the document class options.
36278 , display style formulas can also be scaled.
36281 \begin_layout Chapter
36282 Objects Surrounded by Text
36283 \begin_inset Index idx
36286 \begin_layout Plain Layout
36295 \begin_layout Section
36297 \begin_inset CommandInset label
36299 name "sec:Wrap-Floats"
36304 \begin_inset Index idx
36307 \begin_layout Plain Layout
36308 Floats ! Wrap Floats
36314 \begin_inset Index idx
36317 \begin_layout Plain Layout
36318 Surrounded by text ! Wrap Floats
36326 \begin_layout Standard
36327 \begin_inset Wrap figure
36334 \begin_layout Plain Layout
36335 \begin_inset Graphics
36336 filename clipart/mobius.eps
36338 scaleBeforeRotation
36339 rotateOrigin center
36346 \begin_layout Plain Layout
36347 \begin_inset Caption Standard
36349 \begin_layout Plain Layout
36350 \begin_inset CommandInset label
36352 name "fig:This-is-a"
36356 This is a figure wrap float.
36366 This float type is used if you want to wrap text around a figure or table
36367 so that it only occupies some fraction of the column width.
36368 It can be inserted using the menu
36370 Insert\SpecialChar menuseparator
36371 Floats\SpecialChar menuseparator
36373 \begin_inset space ~
36377 \begin_inset space ~
36385 \begin_inset space ~
36389 \begin_inset space ~
36394 if the \SpecialChar LaTeX
36400 \begin_inset Index idx
36403 \begin_layout Plain Layout
36405 -packages ! wrapfig
36414 \begin_layout Plain Layout
36415 Installing a \SpecialChar LaTeX
36416 -package is explained it in the
36420 \begin_inset space ~
36430 The settings of the float can be modified by right-clicking on the float
36432 The mandatory settings are the float
36445 that specifies how much the float is set into the paragraph
36446 \begin_inset space \thinspace{}
36450 \begin_inset space \thinspace{}
36453 page margin, and the
36456 \begin_inset space ~
36461 that specifies how many text lines the float will approximately need.
36462 The line span is often hard to approximate; so it is better only to use
36463 it when you encounter float placement problems.
36464 You can furthermore decide if \SpecialChar LaTeX
36465 is allowed to let the float float within
36466 the paragraph or to surrounding paragraphs.
36468 \begin_inset space ~
36472 \begin_inset CommandInset ref
36474 reference "fig:This-is-a"
36478 is an example text wrap float with a width of 40
36479 \begin_inset space \thinspace{}
36483 \begin_inset space \thinspace{}
36486 cm overhang, set to the left.
36489 \begin_layout Standard
36490 \begin_inset Note Greyedout
36493 \begin_layout Plain Layout
36499 \begin_inset space ~
36502 wrap float floats are fragile! E.
36503 \begin_inset space \thinspace{}
36507 \begin_inset space \space{}
36510 having a figure too close to the bottom of the page can mess things up in
36511 such a way that the float does not appear in the output or that it is placed
36512 over some other text.
36520 \begin_layout Standard
36521 In general, the following applies for wrap floats:
36524 \begin_layout Itemize
36525 They should not be placed in paragraphs that run over a page break.
36526 That means that wrap floats are better inserted in their exact place when
36527 the document is almost finished and you are able to estimate where page
36528 breaks will appear.
36531 \begin_layout Itemize
36532 They should either be placed in their own paragraph before the paragraph
36533 where they should wrap into or within a paragraph.
36536 \begin_layout Itemize
36537 In consecutive paragraphs they may cause troubles, so ensure that there
36538 is a text paragraph between them as separator.
36541 \begin_layout Itemize
36542 They are not allowed in section headings or tables.
36545 \begin_layout Itemize
36546 Their numbering and referencing works as described in chap.
36547 \begin_inset space \thinspace{}
36551 \begin_inset CommandInset ref
36553 reference "chap:Floats"
36560 \begin_layout Section
36561 Surrounded Fixed Objects
36562 \begin_inset Index idx
36565 \begin_layout Plain Layout
36566 Surrounded by text ! Fixed objects
36574 \begin_layout Standard
36575 The wrap floats described in sec.
36576 \begin_inset space \thinspace{}
36580 \begin_inset CommandInset ref
36582 reference "sec:Wrap-Floats"
36586 have these positions in the paragraph:
36587 \begin_inset Separator latexpar
36593 \begin_layout Standard
36596 \begin_inset Tabular
36597 <lyxtabular version="3" rows="2" columns="2">
36598 <features tabularvalignment="middle">
36599 <column alignment="center" valignment="top">
36600 <column alignment="center" valignment="top">
36602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36605 \begin_layout Plain Layout
36608 arg "dialog-show-new-inset graphics"
36616 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36619 \begin_layout Plain Layout
36627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36630 \begin_layout Plain Layout
36636 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36639 \begin_layout Plain Layout
36651 \begin_inset Tabular
36652 <lyxtabular version="3" rows="2" columns="2">
36653 <features tabularvalignment="middle">
36654 <column alignment="center" valignment="top">
36655 <column alignment="center" valignment="top">
36657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36660 \begin_layout Plain Layout
36666 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36669 \begin_layout Plain Layout
36672 arg "dialog-show-new-inset graphics"
36682 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36685 \begin_layout Plain Layout
36691 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36694 \begin_layout Plain Layout
36708 \begin_layout Standard
36709 To get an object exactly at the position where it is inserted, for example
36710 to get one of these positions:
36711 \begin_inset VSpace defskip
36717 \begin_layout Standard
36720 \begin_inset Tabular
36721 <lyxtabular version="3" rows="2" columns="2">
36722 <features tabularvalignment="middle">
36723 <column alignment="center" valignment="top">
36724 <column alignment="center" valignment="top">
36726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36729 \begin_layout Plain Layout
36735 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36738 \begin_layout Plain Layout
36746 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36749 \begin_layout Plain Layout
36752 arg "dialog-show-new-inset graphics"
36760 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36763 \begin_layout Plain Layout
36775 \begin_inset Tabular
36776 <lyxtabular version="3" rows="2" columns="2">
36777 <features tabularvalignment="middle">
36778 <column alignment="center" valignment="top">
36779 <column alignment="center" valignment="top">
36781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36784 \begin_layout Plain Layout
36790 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36793 \begin_layout Plain Layout
36801 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36804 \begin_layout Plain Layout
36810 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36813 \begin_layout Plain Layout
36816 arg "dialog-show-new-inset graphics"
36830 \begin_inset Tabular
36831 <lyxtabular version="3" rows="2" columns="3">
36832 <features tabularvalignment="middle">
36833 <column alignment="center" valignment="top">
36834 <column alignment="center" valignment="top">
36835 <column alignment="center" valignment="top">
36837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36840 \begin_layout Plain Layout
36846 <cell alignment="center" valignment="top" topline="true" usebox="none">
36849 \begin_layout Plain Layout
36852 arg "dialog-show-new-inset graphics"
36860 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36863 \begin_layout Plain Layout
36871 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36874 \begin_layout Plain Layout
36880 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36883 \begin_layout Plain Layout
36889 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36892 \begin_layout Plain Layout
36904 \begin_inset Tabular
36905 <lyxtabular version="3" rows="2" columns="3">
36906 <features tabularvalignment="middle">
36907 <column alignment="center" valignment="top">
36908 <column alignment="center" valignment="top">
36909 <column alignment="center" valignment="top">
36911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36914 \begin_layout Plain Layout
36920 <cell alignment="center" valignment="top" topline="true" usebox="none">
36923 \begin_layout Plain Layout
36929 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36932 \begin_layout Plain Layout
36940 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36943 \begin_layout Plain Layout
36949 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36952 \begin_layout Plain Layout
36955 arg "dialog-show-new-inset graphics"
36963 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36966 \begin_layout Plain Layout
36980 \begin_layout Standard
36983 \begin_inset Tabular
36984 <lyxtabular version="3" rows="3" columns="2">
36985 <features tabularvalignment="middle">
36986 <column alignment="center" valignment="top">
36987 <column alignment="center" valignment="top">
36989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36992 \begin_layout Plain Layout
36998 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37001 \begin_layout Plain Layout
37009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37012 \begin_layout Plain Layout
37015 arg "dialog-show-new-inset graphics"
37023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37026 \begin_layout Plain Layout
37034 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37037 \begin_layout Plain Layout
37043 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37046 \begin_layout Plain Layout
37058 \begin_inset Tabular
37059 <lyxtabular version="3" rows="3" columns="3">
37060 <features tabularvalignment="middle">
37061 <column alignment="center" valignment="top">
37062 <column alignment="center" valignment="top">
37063 <column alignment="center" valignment="top">
37065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37068 \begin_layout Plain Layout
37074 <cell alignment="center" valignment="top" topline="true" usebox="none">
37077 \begin_layout Plain Layout
37083 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37086 \begin_layout Plain Layout
37094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37097 \begin_layout Plain Layout
37103 <cell alignment="center" valignment="top" usebox="none">
37106 \begin_layout Plain Layout
37109 arg "dialog-show-new-inset graphics"
37117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37120 \begin_layout Plain Layout
37128 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37131 \begin_layout Plain Layout
37137 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37140 \begin_layout Plain Layout
37146 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37149 \begin_layout Plain Layout
37161 \begin_inset Tabular
37162 <lyxtabular version="3" rows="3" columns="2">
37163 <features tabularvalignment="middle">
37164 <column alignment="center" valignment="top">
37165 <column alignment="center" valignment="top">
37167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37170 \begin_layout Plain Layout
37176 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37179 \begin_layout Plain Layout
37187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37190 \begin_layout Plain Layout
37196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37199 \begin_layout Plain Layout
37202 arg "dialog-show-new-inset graphics"
37212 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37215 \begin_layout Plain Layout
37221 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37224 \begin_layout Plain Layout
37238 \begin_layout Standard
37240 you can use the \SpecialChar LaTeX
37246 \begin_inset Index idx
37249 \begin_layout Plain Layout
37251 -packages ! picinpar
37257 Here is an example:
37260 \begin_layout Standard
37264 \begin_layout Plain Layout
37274 \begin_inset Note Note
37277 \begin_layout Plain Layout
37278 The following section will only be displayed when the \SpecialChar LaTeX
37291 \begin_layout Standard
37295 \begin_layout Plain Layout
37299 begin{window}[2,c,{
37305 \begin_inset Graphics
37306 filename clipart/mobius.eps
37309 scaleBeforeRotation
37310 rotateOrigin center
37318 \begin_layout Plain Layout
37323 \begin_layout Plain Layout
37332 It was in the spring of the year 1894 that all London was interested, and
37333 the fashionable world dismayed, by the murder of the Honourable Ronald
37334 Adair under most unusual and inexplicable circumstances.
37335 The public has already learned those particulars of the crime which
37341 \begin_layout Plain Layout
37352 came out in the police investigation, but a good deal was suppressed upon
37353 that occasion, since the case for the prosecution was so overwhelmingly
37354 strong that it was not necessary to bring forward all the facts.
37355 Only now, at the end of nearly ten years, am I allowed to supply those
37356 missing links which make up the whole of that remarkable chain.
37362 \begin_layout Plain Layout
37374 \begin_layout Standard
37378 \begin_layout Plain Layout
37387 Footnote of the paragraph with the fixed object.
37391 \begin_layout Plain Layout
37401 \begin_layout Standard
37402 Surrounded fixed objects are used to let text float around them, at which
37403 the object's position in the paragraph can be determined by the number
37405 In contrary to floats is it not possible to have a numbered caption.
37408 \begin_layout Standard
37409 A fixed object is inserted by adding the command
37412 \begin_layout Standard
37417 begin{window}[2,c,{
37420 \begin_layout Standard
37421 as \SpecialChar TeX
37422 Code at the beginning of the paragraph.
37423 The first parameter in the bracket, here '2', defines the number of lines
37424 above the object, the second, here 'c', the position of the object.
37425 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37426 Behind the command you insert the object.
37427 In this example an image with a width of 40
37428 \begin_inset space \thinspace{}
37431 % of the text column width was inserted.
37432 The object can also be a table, a box or an equation.
37433 Behind the object the command
37436 \begin_layout Standard
37439 },description text]
37440 \begin_inset Newline newline
37446 \begin_layout Standard
37449 \begin_inset Quotes eld
37457 \begin_inset Quotes erd
37460 is in the second line.
37461 The description text is optional.
37462 The text surrounding the object must be in the same paragraph as the object,
37463 so it must begin directly after the
37468 At the end of the paragraph insert the command:
37471 \begin_layout Standard
37479 \begin_layout Standard
37480 Within a paragraph with a fixed object, you cannot insert footnotes in the
37482 You have to use instead the command
37488 inside the paragraph and outside the command
37494 as described in sec.
37495 \begin_inset space \thinspace{}
37499 \begin_inset CommandInset ref
37501 reference "sec:Footnotes"
37508 \begin_layout Standard
37512 \begin_layout Plain Layout
37522 \begin_inset Note Note
37525 \begin_layout Plain Layout
37526 The following will be displayed when the \SpecialChar LaTeX
37539 \begin_layout Standard
37540 You need to install the \SpecialChar LaTeX
37545 to see the following part of this section in the output.
37548 \begin_layout Standard
37552 \begin_layout Plain Layout
37564 \begin_layout Section
37566 \begin_inset Index idx
37569 \begin_layout Plain Layout
37576 \begin_inset Index idx
37579 \begin_layout Plain Layout
37580 Surrounded by text ! Initials
37588 \begin_layout Standard
37589 To use initials, you must have the \SpecialChar LaTeX
37595 \begin_inset Index idx
37598 \begin_layout Plain Layout
37600 -packages ! lettrine
37605 installed and use the module
37609 in your document (menu
37611 Document\SpecialChar menuseparator
37612 Settings\SpecialChar menuseparator
37616 To insert an initial, use the style
37621 This style has a mandatory and two optional arguments.
37622 The arguments are inserted via the
37627 The mandatory argument
37631 contains the letter(s) that is the initial, the argument
37634 \begin_inset space ~
37638 \begin_inset space ~
37643 contains the rest of the word or text of the initial letter(s).
37648 contains parameters to modify the initial.
37649 For more information about the possible parameters see the documentation
37655 \begin_inset CommandInset citation
37662 The style itself contains the text that is surrounding the initial.
37663 The usual style is hereby that the word whose first letter is the initial,
37671 \begin_layout Standard
37672 Here are some examples:
37675 \begin_layout Standard
37679 \begin_layout Plain Layout
37689 \begin_inset Note Note
37692 \begin_layout Plain Layout
37693 The following section will only be displayed when the \SpecialChar LaTeX
37706 \begin_layout Enumerate
37707 No optional argument, the initial is the letter 'I' in the math font
37708 \begin_inset Formula $\mathfrak{Fraktur}$
37712 \begin_inset Separator latexpar
37719 \begin_layout Initial
37720 \begin_inset Argument 2
37723 \begin_layout Plain Layout
37724 \begin_inset Formula $\mathfrak{I}$
37733 \begin_inset Argument 3
37736 \begin_layout Plain Layout
37742 was in the spring of the year 1894 that all London was interested, and
37743 the fashionable world dismayed, by the murder of the Honourable Ronald
37744 Adair under most unusual and inexplicable circumstances.
37745 The public has already learned those particulars of the crime which came
37746 out in the police investigation, but a good deal was suppressed upon that
37747 occasion, since the case for the prosecution was so overwhelmingly strong
37748 that it was not necessary to bring forward all the facts.
37749 \begin_inset Newpage newpage
37756 \begin_layout Enumerate
37757 Only one line is surrounding the initial, which is formed by two letters
37758 in standard font and no text is printed in small caps:
37759 \begin_inset Separator latexpar
37766 \begin_layout Initial
37767 \begin_inset Argument 1
37770 \begin_layout Plain Layout
37777 \begin_inset Argument 2
37780 \begin_layout Plain Layout
37786 was in the spring of the year 1894 that all London was interested, and
37787 the fashionable world dismayed, by the murder of the Honourable Ronald
37788 Adair under most unusual and inexplicable circumstances.
37789 The public has already learned those particulars of the crime which came
37790 out in the police investigation, but a good deal was suppressed upon that
37791 occasion, since the case for the prosecution was so overwhelmingly strong
37792 that it was not necessary to bring forward all the facts.
37796 \begin_layout Enumerate
37797 Magenta, hanging initial over 3
37798 \begin_inset space ~
37801 lines in the math font
37802 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37806 \begin_inset Quotes eld
37809 t was in the spring
37810 \begin_inset Quotes erd
37817 ; to color the initial, you must insert this command before the initial:
37818 \begin_inset Newline newline
37832 \begin_inset Newline newline
37840 \begin_inset Quotes eld
37844 \begin_inset Quotes erd
37848 \begin_inset Quotes eld
37852 \begin_inset Quotes erd
37856 \begin_inset Quotes eld
37860 \begin_inset Quotes erd
37864 \begin_inset Quotes eld
37868 \begin_inset Quotes erd
37872 \begin_inset Quotes eld
37876 \begin_inset Quotes erd
37880 \begin_inset Quotes eld
37884 \begin_inset Quotes erd
37888 \begin_inset Quotes eld
37892 \begin_inset Quotes erd
37896 \begin_inset Quotes eld
37900 \begin_inset Quotes erd
37903 , and add this command to the document preamble:
37904 \begin_inset Newline newline
37911 @ifundefined{textcolor}
37912 \begin_inset Newline newline
37916 \begin_inset space ~
37921 usepackage{color}}{}
37924 \begin_inset Separator latexpar
37931 \begin_layout Standard
37935 \begin_layout Plain Layout
37949 \begin_inset Note Note
37952 \begin_layout Plain Layout
37953 makes the initial magenta
37961 \begin_layout Initial
37962 \begin_inset Argument 1
37965 \begin_layout Plain Layout
37966 lines=3, lhang=0.33, loversize=0.25
37972 \begin_inset Argument 2
37975 \begin_layout Plain Layout
37976 \begin_inset Formula $\mathcal{I}$
37985 \begin_inset Argument 3
37988 \begin_layout Plain Layout
37989 t was in the spring
37994 of the year 1894 that all London was interested, and the fashionable world
37995 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37996 and inexplicable circumstances.
37997 The public has already learned those particulars of the crime which came
37998 out in the police investigation, but a good deal was suppressed upon that
37999 occasion, since the case for the prosecution was so overwhelmingly strong
38000 that it was not necessary to bring forward all the facts.
38004 \begin_layout Standard
38008 \begin_layout Plain Layout
38018 \begin_inset Note Note
38021 \begin_layout Plain Layout
38022 The following will be displayed when the \SpecialChar LaTeX
38035 \begin_layout Standard
38036 You need to install the \SpecialChar LaTeX
38041 to see the following part of this section in the output.
38044 \begin_layout Standard
38048 \begin_layout Plain Layout
38060 \begin_layout Chapter
38061 External Document Parts
38062 \begin_inset Index idx
38065 \begin_layout Plain Layout
38066 External Document Parts
38074 \begin_layout Standard
38077 Insert\SpecialChar menuseparator
38080 you can insert external material into your document.
38084 \begin_layout Description
38086 \begin_inset space ~
38089 Document Another \SpecialChar LyX
38090 document; its content is directly inserted to your document.
38093 \begin_layout Description
38095 \begin_inset space ~
38098 Text A text document; each line is inserted in your document as a separate
38102 \begin_layout Description
38104 \begin_inset space ~
38108 \begin_inset space ~
38112 \begin_inset space ~
38115 Lines A text document; text lines are inserted in your document continuously
38116 but an empty text line creates a new paragraph.
38119 \begin_layout Description
38121 \begin_inset space ~
38124 Material Files in various formats.
38127 \begin_layout Description
38129 \begin_inset space ~
38132 Document \SpecialChar LyX
38133 or \SpecialChar LaTeX
38137 \begin_layout Section
38139 \begin_inset Index idx
38142 \begin_layout Plain Layout
38143 External Document Parts ! External Material
38151 \begin_layout Standard
38152 The external material feature allows you to insert files into your document
38153 without converting them to a format that can be read by the document output
38156 takes care of the necessary conversions.
38157 This is similar to images that can be inserted in various image formats
38158 in \SpecialChar LyX
38160 When you have enabled Instant Preview in \SpecialChar LyX
38161 's preferences under
38164 \begin_inset space ~
38168 \begin_inset space ~
38171 feel\SpecialChar menuseparator
38174 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38178 \begin_layout Standard
38179 External material can be inserted via the
38183 dialog that is accessible with the menu
38185 Insert\SpecialChar menuseparator
38186 File\SpecialChar menuseparator
38188 \begin_inset space ~
38194 Currently the following file types (
38201 \begin_layout Description
38203 \begin_inset space ~
38206 diagram This template supports chess position diagrams made with the program
38210 \begin_inset CommandInset href
38213 target "http://en.wikipedia.org/wiki/XBoard"
38222 \begin_layout Description
38223 Date This inserts the date in the form
38228 This is a date inserted as external material:
38229 \begin_inset External
38236 \begin_inset space ~
38240 \begin_inset Note Note
38243 \begin_layout Plain Layout
38244 Remove the protected space when bug 4398 is fixed!
38250 \begin_inset Newline newline
38253 The date is not shown within \SpecialChar LyX
38254 , only in the output.
38255 There are two other methods of inserting a date: Via menu
38257 Insert\SpecialChar menuseparator
38260 and with the \SpecialChar LaTeX
38267 as \SpecialChar TeX
38269 The different methods are compared in Table
38270 \begin_inset space ~
38274 \begin_inset CommandInset ref
38276 reference "tab:Comparison-of-the"
38283 \begin_layout Description
38285 \begin_inset space ~
38288 diagram This template supports diagrams created with the program
38291 \begin_inset CommandInset href
38294 target "http://en.wikipedia.org/wiki/Dia_(software)"
38303 \begin_layout Description
38304 Spreadsheet With this template you can insert spreadsheets
38305 \begin_inset space \thinspace{}
38309 \begin_inset space \thinspace{}
38312 tables in the format of
38315 \begin_inset CommandInset href
38318 target "http://en.wikipedia.org/wiki/Gnumeric"
38325 \begin_inset CommandInset href
38327 name "OpenDocument"
38328 target "http://en.wikipedia.org/wiki/OpenDocument"
38333 \begin_inset CommandInset href
38335 name "Microsoft Office XML"
38336 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38341 \begin_inset CommandInset href
38343 name "Office Open XML"
38344 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38349 For this feature \SpecialChar LyX
38350 must have found the program
38354 during its configuration.
38355 This program is part of Gnumeric, so that you must have Gnumeric installed,
38356 also if you don't have tables in the Gnumeric format.
38357 For examples and possible limitations have a look at \SpecialChar LyX
38365 \begin_layout Description
38367 \begin_inset space ~
38371 \begin_inset space ~
38374 music This template is used for music notation typeset with the program
38375 \begin_inset Newline linebreak
38381 \begin_inset CommandInset href
38384 target "http://en.wikipedia.org/wiki/LilyPond"
38391 For \SpecialChar LyX
38392 's extended support for LilyPond have a look at \SpecialChar LyX
38400 \begin_layout Description
38402 \begin_inset space ~
38405 pages With this template you can insert PDF documents to your document.
38406 To specify the range of pages that should be included, use the option
38416 LaTeX and LyX options
38419 The argument of this option is a comma separated list, containing page
38420 numbers (insert as option
38424 ), ranges of page numbers (
38428 ) or any combination.
38429 To insert empty pages use {}.
38431 \begin_inset space \thinspace{}
38435 \begin_inset space ~
38440 pages={3,{},8-11,15}
38442 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38443 Page ranges are specified in the syntax
38452 This selects all pages from
38465 defaults to the first page; omitting
38469 defaults to the last page of the document.
38470 The last page can also be selected with the keyword
38475 (This is only permitted in a page range.) So
38479 will insert all pages of the document and
38483 will insert all pages in reverse order.
38484 If the pages option is not specified, only the first page of the PDF is
38486 \begin_inset Newline newline
38493 inserts the pages with their original size, if this option is not given,
38494 the pages will be resized to fith the width of the page of your document.
38499 you can specify the width and height of the input pages and their rotation.
38500 If another width than 100
38501 \begin_inset space \thinspace{}
38504 Scale% is used, the option
38508 will be overwritten.
38509 For more info and possible options, have a look into the documentation
38510 of the \SpecialChar LaTeX
38516 \begin_inset CommandInset citation
38523 \begin_inset Index idx
38526 \begin_layout Plain Layout
38528 -packages ! pdfpages
38534 \begin_inset Newline newline
38537 To use this template in a
38541 presentation you need to first insert an
38545 environment and in a subsequent paragraph a \SpecialChar TeX
38546 Code box containing the command
38551 setbeamertemplate{background canvas}{}
38554 Then you can insert as many paragraphs containing the PDFPages template
38556 Behind the included PDF pages you can resume the Beamer presentation by
38557 beginning a new frame or by starting a new section.
38558 To avoid stray blank pages prior to the PDF pages, make sure to use the
38563 alignment for the paragraph containing the template.
38564 \begin_inset Newline newline
38567 Here is an included PDF which is rotated by -5°:
38568 \begin_inset External
38570 filename clipart/Abstract.pdf
38571 extra LaTeX "noautoscale, pages=-"
38573 rotateOrigin bottomleft
38580 \begin_layout Description
38582 \begin_inset space ~
38585 image This can be used for bitmap images.
38586 The image can be treated in the
38590 dialog like the images that are usually included via the
38594 dialog as described in section
38595 \begin_inset space ~
38599 \begin_inset CommandInset ref
38601 reference "sec:Graphics-Dialog"
38606 Here is an inserted raster image:
38607 \begin_inset External
38608 template RasterImage
38609 filename clipart/ToolbarEnvBox.png
38616 \begin_layout Description
38618 \begin_inset space ~
38621 graphics This can be used for vector graphics.
38622 The image can be treated in the
38626 dialog like the images that are usually included via the
38630 dialog as described in section
38631 \begin_inset space ~
38635 \begin_inset CommandInset ref
38637 reference "sec:Graphics-Dialog"
38642 Here is an inserted vector graphics:
38643 \begin_inset External
38644 template VectorGraphics
38645 filename clipart/SVG-Drawing.svg
38653 \begin_layout Description
38655 \begin_inset space ~
38658 figure This template supports images created with the program
38661 \begin_inset CommandInset href
38664 target "http://en.wikipedia.org/wiki/Xfig"
38673 \begin_layout Standard
38674 \begin_inset Float table
38680 \begin_layout Plain Layout
38681 \begin_inset Caption Standard
38683 \begin_layout Plain Layout
38684 \begin_inset CommandInset label
38686 name "tab:Comparison-of-the"
38690 Comparison of the date input methods.
38698 \begin_layout Plain Layout
38700 \begin_inset Tabular
38701 <lyxtabular version="3" rows="4" columns="4">
38702 <features tabularvalignment="middle">
38703 <column alignment="center" valignment="top">
38704 <column alignment="center" valignment="top">
38705 <column alignment="center" valignment="top">
38706 <column alignment="center" valignment="top">
38708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38711 \begin_layout Plain Layout
38717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38720 \begin_layout Plain Layout
38723 External Material\SpecialChar menuseparator
38729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38732 \begin_layout Plain Layout
38735 Insert\SpecialChar menuseparator
38741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38744 \begin_layout Plain Layout
38756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38759 \begin_layout Plain Layout
38766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38769 \begin_layout Plain Layout
38775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38778 \begin_layout Plain Layout
38784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38787 \begin_layout Plain Layout
38788 as \SpecialChar TeX
38796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38799 \begin_layout Plain Layout
38806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38809 \begin_layout Plain Layout
38815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38818 \begin_layout Plain Layout
38824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38827 \begin_layout Plain Layout
38835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38838 \begin_layout Plain Layout
38844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38847 \begin_layout Plain Layout
38853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38856 \begin_layout Plain Layout
38862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38865 \begin_layout Plain Layout
38884 \begin_layout Standard
38885 When you use the option
38897 dialog, only the path to the inserted file is shown in the output.
38898 \begin_inset Newline newline
38901 External material is displayed in \SpecialChar LyX
38902 either as a box like this:
38903 \begin_inset Graphics
38904 filename clipart/ExternalMaterial.png
38906 scaleBeforeRotation
38910 or as image, depending on the option
38916 LaTeX and LyX options
38921 \begin_layout Standard
38928 manual explains how you can define your own templates.
38931 \begin_layout Section
38933 \begin_inset CommandInset label
38935 name "sec:Child-Documents"
38940 \begin_inset Index idx
38943 \begin_layout Plain Layout
38944 External Document Parts ! Child Documents
38950 \begin_inset Index idx
38953 \begin_layout Plain Layout
38962 \begin_layout Standard
38963 Child documents are used if you have a long document consisting of several
38964 larger parts or sections.
38965 For maintenance it is often useful and sometimes even required to split
38966 the document into several files that can be revised separately.
38967 The different documents are then the so called
38968 \begin_inset Quotes eld
38972 \begin_inset Quotes erd
38975 , and a master document connects them to print the full document or parts
38977 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38979 the bibliography, and labels for cross-references.
38982 \begin_layout Standard
38983 To be able to work on child documents without the need to open their master,
38984 specify in the child document the master in the menu
38986 Document\SpecialChar menuseparator
38987 Settings\SpecialChar menuseparator
38989 \begin_inset space ~
38995 This master document will then be used in the background by \SpecialChar LyX
38997 the child document.
39000 \begin_layout Standard
39001 Included documents are displayed in \SpecialChar LyX
39002 as a box like this:
39003 \begin_inset Graphics
39004 filename clipart/ChildDocument.png
39005 scaleBeforeRotation
39009 To include child documents in a master document use the menu
39011 Insert\SpecialChar menuseparator
39012 File\SpecialChar menuseparator
39014 \begin_inset space ~
39020 A dialog pops up where you can choose between four include methods:
39023 \begin_layout Description
39024 Include You can include \SpecialChar LyX
39025 and \SpecialChar LaTeX
39035 dialog, the included document will be opened in \SpecialChar LyX
39036 in a new file tab so that
39038 \begin_inset Newline newline
39044 \begin_layout Standard
39045 Here is a child document inserted using
39050 \begin_inset CommandInset include
39051 LatexCommand include
39052 filename "DummyDocument1.lyx"
39059 \begin_layout Standard
39060 The section numbering includes the sections of the included files in the
39061 order they are inserted in the master document.
39062 The included example document has for example a subsection that is numbered
39063 as a subsection of this section.
39064 Labels of included documents can be referenced: Subsection
39065 \begin_inset space ~
39069 \begin_inset CommandInset ref
39071 reference "subsec:External-Subsection-1"
39078 \begin_layout Standard
39079 The preamble of the child document is ignored; only the preamble of the
39080 master document is used.
39081 Branches in child documents will be ignored by the master document when
39082 the master document does not have a branch with the same name.
39083 Included documents are inserted starting on a new page and ending with
39087 \begin_layout Standard
39088 \begin_inset Note Greyedout
39091 \begin_layout Plain Layout
39096 If you have included a \SpecialChar LyX
39097 or \SpecialChar LaTeX
39098 file, you are warned when you export/view the
39099 document in case the child document uses another document class than the
39100 master document as this will lead to unexpected outputs.
39108 \begin_layout Description
39109 Input This method is very similar to the Include method.
39110 The differences are:
39111 \begin_inset Separator latexpar
39118 \begin_layout Itemize
39119 Input files don't start with a new page and don't end with a page break.
39122 \begin_layout Itemize
39123 Input files can be previewed in \SpecialChar LyX
39127 \begin_inset space ~
39132 is enabled in \SpecialChar LyX
39133 's preferences under
39136 \begin_inset space ~
39140 \begin_inset space ~
39143 feel\SpecialChar menuseparator
39149 \begin_layout Itemize
39150 You cannot exclude Input files via the menu
39152 Document\SpecialChar menuseparator
39153 Settings\SpecialChar menuseparator
39160 \begin_layout Standard
39161 Here is a child document inserted using
39166 \begin_inset CommandInset include
39168 filename "DummyDocument2.lyx"
39175 \begin_layout Description
39176 Verbatim With this method any text file can be included.
39177 The file is shown in the output with its source code; no command used in
39178 the text is invoked.
39179 You can use the option
39181 Mark spaces in output
39183 that displays the character
39184 \begin_inset Quotes eld
39191 \begin_layout Plain Layout
39201 \begin_inset Quotes erd
39204 for every space character in the source code.
39205 The difference from the method via the menu
39207 Insert\SpecialChar menuseparator
39208 File\SpecialChar menuseparator
39210 \begin_inset space ~
39215 is that the document content is not shown in \SpecialChar LyX
39219 \begin_layout Standard
39220 Here is a child document inserted as Verbatim:
39221 \begin_inset CommandInset include
39222 LatexCommand verbatiminput
39223 filename "DummyTextDocument.txt"
39228 \begin_inset VSpace bigskip
39231 Here is a child document inserted as Verbatim using the
39233 Mark spaces in output
39236 \begin_inset CommandInset include
39237 LatexCommand verbatiminput*
39238 filename "DummyTextDocument.txt"
39245 \begin_layout Standard
39246 \begin_inset VSpace bigskip
39252 \begin_layout Standard
39253 \begin_inset Note Greyedout
39256 \begin_layout Plain Layout
39261 As you can see in the examples above, the text of the documents included
39266 is not broken at the end of the document lines.
39274 \begin_layout Description
39275 Listings This type is described in chapter
39276 \begin_inset space ~
39280 \begin_inset CommandInset ref
39282 reference "cha:Program-Code-Listings"
39289 \begin_layout Standard
39290 \begin_inset Note Greyedout
39293 \begin_layout Plain Layout
39298 Including the same document twice in a document using different methods
39299 could cause \SpecialChar LaTeX
39308 \begin_layout Standard
39309 If you want to view/export only selected children of your master document,
39310 either because you want to save compiling time or because you want to distribut
39311 e single chapters of the book you are just writing, you can exclude children
39313 This is done via the menu
39315 Document\SpecialChar menuseparator
39316 Settings\SpecialChar menuseparator
39320 You can exclude\SpecialChar breakableslash
39321 include children by double-clicking on the
39325 column of the respective child document in the list (note that this only
39326 works for documents embedded via
39327 \begin_inset Quotes eld
39331 \begin_inset Quotes erd
39335 \begin_inset Quotes eld
39339 \begin_inset Quotes erd
39345 Maintain counters and references
39347 is enabled, \SpecialChar LyX
39348 will assure that all page numbers, references etc.
39349 \begin_inset space ~
39352 are correct as if the whole document was processed.
39353 This is useful if you want the selected sub-documents to look exactly as
39354 in the context of the whole document.
39355 However, \SpecialChar LyX
39356 needs to process the whole document in the background for this
39358 So if you want to save compile time and if counters and references do not
39359 need to be correct, disable this checkbox.
39362 \begin_layout Standard
39363 Alternatively, you can put each included file into a branch.
39367 \begin_layout Plain Layout
39368 Branches are described in section
39372 of the \SpecialChar LyX
39382 By enabling\SpecialChar breakableslash
39383 disabling branches you can decide which included files will
39384 appear in the output.
39385 This has the advantage that it also works with Input'ed sub-documents.
39386 However, counters and references will not be maintained with this approach.
39389 \begin_layout Chapter
39390 Program Code Listings
39391 \begin_inset CommandInset label
39393 name "cha:Program-Code-Listings"
39398 \begin_inset Index idx
39401 \begin_layout Plain Layout
39408 \begin_inset Index idx
39411 \begin_layout Plain Layout
39418 \begin_inset Index idx
39421 \begin_layout Plain Layout
39430 \begin_layout Standard
39431 To include and typeset program code you can use the
39435 inset that can be inserted via the menu
39437 Insert\SpecialChar menuseparator
39441 The \SpecialChar LaTeX
39447 \begin_inset Index idx
39450 \begin_layout Plain Layout
39452 -packages ! listings
39457 provides a powerful and flexible way to insert program source code into
39461 \begin_layout Standard
39462 Right-clicking on a listings inset opens the context menu containing where
39463 you can set the listings format.
39466 \begin_layout Standard
39467 By default, a listing starts a new paragraph in the output.
39468 The placement option
39471 \begin_inset space ~
39476 prints the listing inline like this:
39477 \begin_inset listings
39478 lstparams "language={C++}"
39482 \begin_layout Plain Layout
39490 \begin_inset Newline newline
39497 creates a listings float where you can specify the placement options
39498 \begin_inset Quotes eld
39506 \begin_inset Quotes erd
39510 \begin_inset Quotes eld
39518 \begin_inset Quotes erd
39522 \begin_inset Quotes eld
39530 \begin_inset Quotes erd
39534 \begin_inset Quotes eld
39542 \begin_inset Quotes erd
39545 corresponding to the float placement options described in section
39546 \begin_inset space ~
39550 \begin_inset CommandInset ref
39552 reference "sec:Float-Placement"
39557 The placement options can be mixed and are inserted without any separation,
39559 \begin_inset space \thinspace{}
39563 \begin_inset space \space{}
39567 \begin_inset Quotes eld
39575 \begin_inset Quotes erd
39580 \begin_inset Quotes eld
39584 \begin_inset Quotes erd
39587 has sometimes no effect, but you don't need to use the
39591 option in this case as also non-float listings can have captions and be
39595 \begin_layout Standard
39596 You can add captions to listings with the menu
39598 Insert\SpecialChar menuseparator
39602 Listings can be referenced like floats: Listing
39603 \begin_inset space ~
39607 \begin_inset CommandInset ref
39609 reference "lst:Example-Listing"
39614 A list of listings which contains all listings with captions can be created
39617 Insert\SpecialChar menuseparator
39619 \begin_inset space ~
39623 \begin_inset space ~
39626 TOC\SpecialChar menuseparator
39630 The list entries are the listing caption and the listing number.
39633 \begin_layout Standard
39634 \begin_inset listings
39635 lstparams "language=Python"
39639 \begin_layout Plain Layout
39641 \begin_inset Caption Standard
39643 \begin_layout Plain Layout
39644 \begin_inset CommandInset label
39646 name "lst:Example-Listing"
39650 Example Listing float
39655 # Example listing float
39658 \begin_layout Plain Layout
39663 \begin_layout Plain Layout
39665 'this is a python function'
39668 \begin_layout Plain Layout
39678 \begin_layout Standard
39679 When you have set a programming language in the listings dialog, the keywords
39680 of this language will be recognized and specially typeset in the output.
39681 In the example listings the Python keyword
39682 \begin_inset Quotes eld
39686 \begin_inset Quotes erd
39689 is recognized and printed bold in the output.
39692 \begin_layout Standard
39693 \begin_inset Note Greyedout
39696 \begin_layout Plain Layout
39701 If you don't get bold keywords when using typewriter fonts, your
39705 font probably doesn't provide a bold shape.
39706 In this case select a different one in the menu
39708 Document\SpecialChar menuseparator
39709 Settings\SpecialChar menuseparator
39721 provide bold shapes.)
39729 \begin_layout Standard
39733 \begin_inset space ~
39738 of the listings dialog you can specify the line numbering style.
39739 You can insert a number to specify which lines are numbered in the field
39746 \begin_inset space \thinspace{}
39750 \begin_inset space \space{}
39754 \begin_inset Quotes eld
39758 \begin_inset Quotes erd
39761 , only every 3rd line will be numbered.
39764 \begin_layout Standard
39765 You can furthermore specify a range of lines; only these will then appear
39769 Extended character table
39771 should be used when you use national characters like the German umlauts
39773 \begin_inset Newline newline
39776 Here is an example listing with left line numbering, step
39777 \begin_inset Quotes eld
39781 \begin_inset Quotes erd
39785 \begin_inset Quotes eld
39789 \begin_inset Quotes erd
39793 \begin_inset Quotes eld
39796 Extended character table
39797 \begin_inset Quotes erd
39801 \begin_inset Quotes eld
39805 \begin_inset space ~
39809 \begin_inset space ~
39813 \begin_inset Quotes erd
39817 \begin_inset space \thinspace{}
39821 \begin_inset space \thinspace{}
39827 \begin_layout Standard
39828 \begin_inset listings
39829 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39833 \begin_layout Plain Layout
39838 \begin_layout Plain Layout
39840 'this is a python function'
39843 \begin_layout Plain Layout
39848 \begin_layout Plain Layout
39853 \begin_layout Plain Layout
39855 'This is a German word: Tschüß'
39858 \begin_layout Plain Layout
39863 \begin_layout Plain Layout
39868 \begin_layout Plain Layout
39870 'this is a python function'
39873 \begin_layout Plain Layout
39883 \begin_layout Standard
39884 When you have tabulators in your listing, you can specify the number of
39885 characters that are spanned by a tabulator in the field
39888 \begin_inset space ~
39896 \begin_layout Standard
39897 \begin_inset Note Greyedout
39900 \begin_layout Plain Layout
39905 Due to a bug in the
39909 package the line numbering is shifted by a line by every previous listing.
39910 That's the reason why the lines 2 and 5 are numbered in the above listing
39911 and not the lines 3 and 6.
39919 \begin_layout Standard
39920 \begin_inset VSpace bigskip
39926 \begin_layout Standard
39927 It is also possible to print lines from a file as listing.
39928 To do this, use the menu
39930 Insert\SpecialChar menuseparator
39931 File\SpecialChar menuseparator
39934 and choose the type
39942 \begin_layout Plain Layout
39943 The other child document types are described in section
39944 \begin_inset space ~
39948 \begin_inset CommandInset ref
39950 reference "sec:Child-Documents"
39959 In the child document dialog you can specify the listing parameters in
39961 To show a list of all available parameters, type in a question mark
39962 \begin_inset Quotes eld
39966 \begin_inset Quotes erd
39972 \begin_layout Standard
39973 To reference child document listings, write a label text into the corresponding
39974 field of the child document dialog.
39975 The label can then be referenced using the menu
39977 Insert\SpecialChar menuseparator
39983 \begin_layout Standard
39985 \begin_inset space ~
39989 \begin_inset CommandInset ref
39991 reference "lst:file-listing"
39995 is an example for a listing of a file; there the lines 10
39996 \begin_inset space \thinspace{}
40000 \begin_inset space \thinspace{}
40003 15 of this \SpecialChar LyX
40007 \begin_layout Standard
40008 \begin_inset CommandInset include
40009 LatexCommand lstinputlisting
40010 filename "EmbeddedObjects.lyx"
40011 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40018 \begin_layout Standard
40019 \begin_inset VSpace bigskip
40025 \begin_layout Standard
40026 Inserting a formula into a listing can be done the following way:
40029 \begin_layout Enumerate
40030 Open the listings dialog and add
40031 \begin_inset Newline newline
40039 \begin_inset Newline newline
40042 to the field of the
40049 \begin_layout Enumerate
40050 Create a formula outside the listing
40053 \begin_layout Enumerate
40054 Copy the content of the formula (not the formula inset) to the clipboard
40064 \begin_layout Enumerate
40065 In the listing write
40066 \begin_inset Quotes eld
40074 \begin_inset Quotes erd
40077 and copy from the clipboard between the dollar-signs (shortcut
40086 \begin_layout Standard
40087 \begin_inset listings
40088 lstparams "language=Python,mathescape=true"
40092 \begin_layout Plain Layout
40094 \begin_inset Caption Standard
40096 \begin_layout Plain Layout
40097 Example Listing float containing a formula
40102 # Example listing float
40105 \begin_layout Plain Layout
40110 \begin_layout Plain Layout
40123 \begin_layout Plain Layout
40133 \begin_layout Standard
40134 \begin_inset VSpace bigskip
40140 \begin_layout Standard
40141 Global listings settings can be set in the
40143 Document\SpecialChar menuseparator
40144 Settings\SpecialChar menuseparator
40148 To get there a list of available options, type in a question mark
40149 \begin_inset Quotes eld
40153 \begin_inset Quotes erd
40159 \begin_layout Standard
40160 For more information about the
40164 package, we refer to its documentation
40165 \begin_inset CommandInset citation
40174 \begin_layout Standard
40175 \begin_inset Newpage newpage
40181 \begin_layout Chapter
40183 Units available in \SpecialChar LyX
40185 \begin_inset Index idx
40188 \begin_layout Plain Layout
40195 \begin_inset CommandInset label
40197 name "cha:Units-available-in"
40204 \begin_layout Standard
40205 To understand the units described in this documentation, Table
40206 \begin_inset space ~
40210 \begin_inset CommandInset ref
40212 reference "tab:Units"
40216 explains all units available in \SpecialChar LyX
40220 \begin_layout Standard
40221 \begin_inset Float table
40227 \begin_layout Plain Layout
40228 \begin_inset Caption Standard
40230 \begin_layout Plain Layout
40231 \begin_inset CommandInset label
40245 \begin_layout Plain Layout
40246 \begin_inset VSpace medskip
40252 \begin_layout Plain Layout
40254 \begin_inset Tabular
40255 <lyxtabular version="3" rows="20" columns="3">
40256 <features tabularvalignment="middle">
40257 <column alignment="center" valignment="top">
40258 <column alignment="center" valignment="top">
40259 <column alignment="center" valignment="top">
40261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40264 \begin_layout Plain Layout
40270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40273 \begin_layout Plain Layout
40279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40282 \begin_layout Plain Layout
40291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40294 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40323 \begin_layout Plain Layout
40329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40332 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40341 \begin_layout Plain Layout
40349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40352 \begin_layout Plain Layout
40358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40361 \begin_layout Plain Layout
40367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40370 \begin_layout Plain Layout
40378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40381 \begin_layout Plain Layout
40387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40390 \begin_layout Plain Layout
40392 \begin_inset space \thinspace{}
40396 \begin_inset space \thinspace{}
40404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40407 \begin_layout Plain Layout
40415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40418 \begin_layout Plain Layout
40424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40427 \begin_layout Plain Layout
40429 \begin_inset space \thinspace{}
40433 \begin_inset space \thinspace{}
40441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40444 \begin_layout Plain Layout
40452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40455 \begin_layout Plain Layout
40461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40464 \begin_layout Plain Layout
40465 scaled point (65536
40466 \begin_inset space \thinspace{}
40470 \begin_inset space \thinspace{}
40478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40481 \begin_layout Plain Layout
40489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40492 \begin_layout Plain Layout
40498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40501 \begin_layout Plain Layout
40503 \begin_inset space \thinspace{}
40507 \begin_inset space \thinspace{}
40515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40518 \begin_layout Plain Layout
40526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40529 \begin_layout Plain Layout
40535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40538 \begin_layout Plain Layout
40540 \begin_inset space \thinspace{}
40544 \begin_inset Formula $\approx$
40548 \begin_inset space \thinspace{}
40556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40559 \begin_layout Plain Layout
40567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40570 \begin_layout Plain Layout
40576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40579 \begin_layout Plain Layout
40581 \begin_inset space \thinspace{}
40585 \begin_inset space \thinspace{}
40593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40596 \begin_layout Plain Layout
40604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40607 \begin_layout Plain Layout
40613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40616 \begin_layout Plain Layout
40617 % of original image width
40622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40625 \begin_layout Plain Layout
40633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40636 \begin_layout Plain Layout
40642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40645 \begin_layout Plain Layout
40651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40654 \begin_layout Plain Layout
40664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40667 \begin_layout Plain Layout
40673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40676 \begin_layout Plain Layout
40682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40685 \begin_layout Plain Layout
40695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40698 \begin_layout Plain Layout
40704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40707 \begin_layout Plain Layout
40713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40716 \begin_layout Plain Layout
40726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40729 \begin_layout Plain Layout
40735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40738 \begin_layout Plain Layout
40744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40747 \begin_layout Plain Layout
40757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40760 \begin_layout Plain Layout
40766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40769 \begin_layout Plain Layout
40775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40778 \begin_layout Plain Layout
40788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40791 \begin_layout Plain Layout
40797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40800 \begin_layout Plain Layout
40806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40809 \begin_layout Plain Layout
40819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40822 \begin_layout Plain Layout
40828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40831 \begin_layout Plain Layout
40841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40844 \begin_layout Plain Layout
40852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40855 \begin_layout Plain Layout
40861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40864 \begin_layout Plain Layout
40874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40877 \begin_layout Plain Layout
40885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40888 \begin_layout Plain Layout
40894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40897 \begin_layout Plain Layout
40899 \begin_inset space \thinspace{}
40903 \begin_inset space \thinspace{}
40911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40914 \begin_layout Plain Layout
40933 \begin_layout Chapter
40934 Output File Formats with Graphics
40935 \begin_inset CommandInset label
40937 name "cha:Output-File-Formats"
40944 \begin_layout Section
40946 \begin_inset Index idx
40949 \begin_layout Plain Layout
40956 \begin_inset Index idx
40959 \begin_layout Plain Layout
40964 \begin_layout Plain Layout
40975 \begin_layout Plain Layout
40990 \begin_layout Standard
40991 This file type has the extension
40992 \begin_inset Quotes eld
41000 \begin_inset Quotes erd
41005 \begin_inset Quotes eld
41009 \begin_inset Quotes erd
41012 (DVI), because it is completely portable; you can move them from one machine
41013 to another without needing to do any sort of conversion.
41014 At the time when this file-format was developed, this was no matter of
41016 DVIs are used for quick previews and as pre-stage for other output formats,
41020 \begin_layout Standard
41021 \begin_inset Note Greyedout
41024 \begin_layout Plain Layout
41029 DVI-files do not contain images; they will only be a linked.
41034 So don't forget this, if you move your
41038 file to another computer.
41039 This property can also slow down your computer when you view the DVI, because
41040 the DVI-viewer has to convert the image in the background to make it visible
41041 when you scroll in the DVI.
41042 So it is recommended that you use PDF for files with many images.
41045 \begin_layout Standard
41046 You can export your document to DVI by using the menu
41048 File\SpecialChar menuseparator
41049 Export\SpecialChar menuseparator
41053 You can view your document as DVI via the
41060 \begin_layout Section
41062 \begin_inset Index idx
41065 \begin_layout Plain Layout
41066 File Formats ! PostScript
41072 \begin_inset Index idx
41075 \begin_layout Plain Layout
41080 \begin_layout Plain Layout
41091 \begin_layout Plain Layout
41106 \begin_layout Standard
41107 This file type has the extension
41108 \begin_inset Quotes eld
41116 \begin_inset Quotes erd
41120 PostScript was developed by the company
41124 as a printer language.
41125 The file therefore contains commands that the printer uses to print the
41127 PostScript can be seen as a
41128 \begin_inset Quotes eld
41131 programming language
41132 \begin_inset Quotes erd
41135 ; you can calculate with it and draw diagrams and images.
41139 \begin_layout Plain Layout
41140 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41147 \begin_inset CommandInset citation
41158 Due to this ability, the files are often bigger than PDFs.
41161 \begin_layout Standard
41162 PostScript can only contain images in the format
41163 \begin_inset Quotes eld
41166 Encapsulated PostScript
41167 \begin_inset Quotes erd
41170 (EPS, file extension
41171 \begin_inset Quotes eld
41179 \begin_inset Quotes erd
41183 As \SpecialChar LyX
41184 allows you to use any known image format in your document, it has to
41185 convert images in the background to EPS.
41187 \begin_inset space ~
41191 \begin_inset space ~
41194 images in your document, \SpecialChar LyX
41196 \begin_inset space ~
41199 conversions whenever you view or export your document.
41200 This will slow down your work flow with \SpecialChar LyX
41202 So if you plan to use PostScript, you can insert your images directly as
41203 EPS to avoid this problem.
41206 \begin_layout Standard
41207 You can export your document to PostScript using the menu
41209 File\SpecialChar menuseparator
41210 Export\SpecialChar menuseparator
41214 You can view your document as PostScript via the
41221 \begin_layout Section
41223 \begin_inset Index idx
41226 \begin_layout Plain Layout
41233 \begin_inset Index idx
41236 \begin_layout Plain Layout
41245 \begin_layout Standard
41246 This file type has the extension
41247 \begin_inset Quotes eld
41255 \begin_inset Quotes erd
41260 \begin_inset Quotes eld
41263 Portable Document Format
41264 \begin_inset Quotes erd
41267 (PDF) was developed by
41271 as a derivative of PostScript.
41272 It is more compressed and it uses fewer commands than PostScript.
41274 \begin_inset Quotes eld
41278 \begin_inset Quotes erd
41281 implies, it can be processed at any computer system and the printed output
41282 looks exactly the same.
41285 \begin_layout Standard
41286 PDF can contain images in its own PDF format, in the format
41287 \begin_inset Quotes eld
41290 Joint Photographic Experts Group
41291 \begin_inset Quotes erd
41294 (JPG, file extension
41295 \begin_inset Quotes eld
41303 \begin_inset Quotes erd
41307 \begin_inset Quotes eld
41315 \begin_inset Quotes erd
41318 ), and in the format
41319 \begin_inset Quotes eld
41322 Portable Network Graphics
41323 \begin_inset Quotes erd
41326 (PNG, file extension
41327 \begin_inset Quotes eld
41335 \begin_inset Quotes erd
41339 Nevertheless you can use any other image format, because \SpecialChar LyX
41341 in the background to one of these formats.
41342 But as described in the section about PostScript, the image conversion
41343 will slow down your work flow.
41344 So it is recommended that you use images in one of the three mentioned
41348 \begin_layout Standard
41349 You can export your document to PDF via the menu
41351 File\SpecialChar menuseparator
41354 in three different ways:
41357 \begin_layout Description
41359 \begin_inset space ~
41362 (ps2pdf) This uses the program
41366 that creates a PDF from a PostScript-version of your file.
41367 The PostScript-version is produced by the program
41371 which uses a DVI-version as intermediate step.
41372 So this export variant consists of three conversions.
41375 \begin_layout Description
41377 \begin_inset space ~
41380 (dvipdfm) This uses the program
41384 that converts your file in the background to DVI and in a second step to
41388 \begin_layout Description
41390 \begin_inset space ~
41393 (pdflatex) This uses the program
41397 that converts your file directly to PDF.
41400 \begin_layout Standard
41401 It is recommended that you use
41404 \begin_inset space ~
41413 supports all features of actual PDF-versions, is quick and works stable.
41418 is not under development and therefore a bit outdated.
41421 \begin_layout Standard
41422 You can view your document as PDF via the
41426 menu or by using a toolbar button.
41429 \begin_layout Chapter
41430 List of dvips color names
41431 \begin_inset CommandInset label
41433 name "chap:List-of-dvips-colornames"
41440 \begin_layout Standard
41441 \begin_inset Tabular
41442 <lyxtabular version="3" rows="17" columns="4">
41443 <features tabularvalignment="middle">
41444 <column alignment="left" valignment="top" width="0pt">
41445 <column alignment="left" valignment="top" width="0pt">
41446 <column alignment="left" valignment="top" width="0pt">
41447 <column alignment="left" valignment="top" width="0pt">
41449 <cell alignment="left" valignment="top" usebox="none">
41452 \begin_layout Plain Layout
41456 \begin_layout Plain Layout
41469 \begin_layout Plain Layout
41480 \begin_layout Plain Layout
41492 <cell alignment="left" valignment="top" usebox="none">
41495 \begin_layout Plain Layout
41499 \begin_layout Plain Layout
41512 \begin_layout Plain Layout
41523 \begin_layout Plain Layout
41535 <cell alignment="left" valignment="top" usebox="none">
41538 \begin_layout Plain Layout
41542 \begin_layout Plain Layout
41555 \begin_layout Plain Layout
41566 \begin_layout Plain Layout
41578 <cell alignment="left" valignment="top" usebox="none">
41581 \begin_layout Plain Layout
41585 \begin_layout Plain Layout
41598 \begin_layout Plain Layout
41609 \begin_layout Plain Layout
41623 <cell alignment="center" valignment="top" usebox="none">
41626 \begin_layout Plain Layout
41630 \begin_layout Plain Layout
41643 \begin_layout Plain Layout
41651 \begin_inset Phantom Phantom
41654 \begin_layout Plain Layout
41664 \begin_layout Plain Layout
41676 <cell alignment="center" valignment="top" usebox="none">
41679 \begin_layout Plain Layout
41683 \begin_layout Plain Layout
41696 \begin_layout Plain Layout
41704 \begin_inset Phantom Phantom
41707 \begin_layout Plain Layout
41717 \begin_layout Plain Layout
41729 <cell alignment="center" valignment="top" usebox="none">
41732 \begin_layout Plain Layout
41736 \begin_layout Plain Layout
41749 \begin_layout Plain Layout
41757 \begin_inset Phantom Phantom
41760 \begin_layout Plain Layout
41770 \begin_layout Plain Layout
41782 <cell alignment="center" valignment="top" usebox="none">
41785 \begin_layout Plain Layout
41789 \begin_layout Plain Layout
41802 \begin_layout Plain Layout
41810 \begin_inset Phantom Phantom
41813 \begin_layout Plain Layout
41823 \begin_layout Plain Layout
41837 <cell alignment="left" valignment="top" usebox="none">
41840 \begin_layout Plain Layout
41844 \begin_layout Plain Layout
41857 \begin_layout Plain Layout
41865 \begin_inset Phantom Phantom
41868 \begin_layout Plain Layout
41878 \begin_layout Plain Layout
41890 <cell alignment="left" valignment="top" usebox="none">
41893 \begin_layout Plain Layout
41897 \begin_layout Plain Layout
41910 \begin_layout Plain Layout
41918 \begin_inset Phantom Phantom
41921 \begin_layout Plain Layout
41931 \begin_layout Plain Layout
41943 <cell alignment="left" valignment="top" usebox="none">
41946 \begin_layout Plain Layout
41950 \begin_layout Plain Layout
41963 \begin_layout Plain Layout
41971 \begin_inset Phantom Phantom
41974 \begin_layout Plain Layout
41984 \begin_layout Plain Layout
41996 <cell alignment="left" valignment="top" usebox="none">
41999 \begin_layout Plain Layout
42003 \begin_layout Plain Layout
42016 \begin_layout Plain Layout
42024 \begin_inset Phantom Phantom
42027 \begin_layout Plain Layout
42037 \begin_layout Plain Layout
42051 <cell alignment="left" valignment="top" usebox="none">
42054 \begin_layout Plain Layout
42058 \begin_layout Plain Layout
42071 \begin_layout Plain Layout
42079 \begin_inset Phantom Phantom
42082 \begin_layout Plain Layout
42092 \begin_layout Plain Layout
42104 <cell alignment="left" valignment="top" usebox="none">
42107 \begin_layout Plain Layout
42111 \begin_layout Plain Layout
42124 \begin_layout Plain Layout
42132 \begin_inset Phantom Phantom
42135 \begin_layout Plain Layout
42145 \begin_layout Plain Layout
42157 <cell alignment="left" valignment="top" usebox="none">
42160 \begin_layout Plain Layout
42164 \begin_layout Plain Layout
42177 \begin_layout Plain Layout
42185 \begin_inset Phantom Phantom
42188 \begin_layout Plain Layout
42198 \begin_layout Plain Layout
42210 <cell alignment="left" valignment="top" usebox="none">
42213 \begin_layout Plain Layout
42217 \begin_layout Plain Layout
42230 \begin_layout Plain Layout
42238 \begin_inset Phantom Phantom
42241 \begin_layout Plain Layout
42251 \begin_layout Plain Layout
42265 <cell alignment="left" valignment="top" usebox="none">
42268 \begin_layout Plain Layout
42272 \begin_layout Plain Layout
42285 \begin_layout Plain Layout
42293 \begin_inset Phantom Phantom
42296 \begin_layout Plain Layout
42306 \begin_layout Plain Layout
42318 <cell alignment="left" valignment="top" usebox="none">
42321 \begin_layout Plain Layout
42325 \begin_layout Plain Layout
42338 \begin_layout Plain Layout
42346 \begin_inset Phantom Phantom
42349 \begin_layout Plain Layout
42359 \begin_layout Plain Layout
42371 <cell alignment="left" valignment="top" usebox="none">
42374 \begin_layout Plain Layout
42378 \begin_layout Plain Layout
42391 \begin_layout Plain Layout
42399 \begin_inset Phantom Phantom
42402 \begin_layout Plain Layout
42412 \begin_layout Plain Layout
42424 <cell alignment="left" valignment="top" usebox="none">
42427 \begin_layout Plain Layout
42431 \begin_layout Plain Layout
42444 \begin_layout Plain Layout
42452 \begin_inset Phantom Phantom
42455 \begin_layout Plain Layout
42465 \begin_layout Plain Layout
42479 <cell alignment="left" valignment="top" usebox="none">
42482 \begin_layout Plain Layout
42486 \begin_layout Plain Layout
42499 \begin_layout Plain Layout
42507 \begin_inset Phantom Phantom
42510 \begin_layout Plain Layout
42520 \begin_layout Plain Layout
42532 <cell alignment="left" valignment="top" usebox="none">
42535 \begin_layout Plain Layout
42539 \begin_layout Plain Layout
42552 \begin_layout Plain Layout
42560 \begin_inset Phantom Phantom
42563 \begin_layout Plain Layout
42573 \begin_layout Plain Layout
42585 <cell alignment="left" valignment="top" usebox="none">
42588 \begin_layout Plain Layout
42592 \begin_layout Plain Layout
42605 \begin_layout Plain Layout
42613 \begin_inset Phantom Phantom
42616 \begin_layout Plain Layout
42626 \begin_layout Plain Layout
42638 <cell alignment="left" valignment="top" usebox="none">
42641 \begin_layout Plain Layout
42645 \begin_layout Plain Layout
42658 \begin_layout Plain Layout
42666 \begin_inset Phantom Phantom
42669 \begin_layout Plain Layout
42679 \begin_layout Plain Layout
42693 <cell alignment="center" valignment="top" usebox="none">
42696 \begin_layout Plain Layout
42700 \begin_layout Plain Layout
42713 \begin_layout Plain Layout
42721 \begin_inset Phantom Phantom
42724 \begin_layout Plain Layout
42734 \begin_layout Plain Layout
42746 <cell alignment="center" valignment="top" usebox="none">
42749 \begin_layout Plain Layout
42753 \begin_layout Plain Layout
42766 \begin_layout Plain Layout
42774 \begin_inset Phantom Phantom
42777 \begin_layout Plain Layout
42787 \begin_layout Plain Layout
42799 <cell alignment="center" valignment="top" usebox="none">
42802 \begin_layout Plain Layout
42806 \begin_layout Plain Layout
42819 \begin_layout Plain Layout
42827 \begin_inset Phantom Phantom
42830 \begin_layout Plain Layout
42840 \begin_layout Plain Layout
42852 <cell alignment="center" valignment="top" usebox="none">
42855 \begin_layout Plain Layout
42859 \begin_layout Plain Layout
42872 \begin_layout Plain Layout
42880 \begin_inset Phantom Phantom
42883 \begin_layout Plain Layout
42893 \begin_layout Plain Layout
42907 <cell alignment="left" valignment="top" usebox="none">
42910 \begin_layout Plain Layout
42914 \begin_layout Plain Layout
42927 \begin_layout Plain Layout
42935 \begin_inset Phantom Phantom
42938 \begin_layout Plain Layout
42948 \begin_layout Plain Layout
42960 <cell alignment="left" valignment="top" usebox="none">
42963 \begin_layout Plain Layout
42967 \begin_layout Plain Layout
42980 \begin_layout Plain Layout
42988 \begin_inset Phantom Phantom
42991 \begin_layout Plain Layout
43001 \begin_layout Plain Layout
43013 <cell alignment="left" valignment="top" usebox="none">
43016 \begin_layout Plain Layout
43020 \begin_layout Plain Layout
43033 \begin_layout Plain Layout
43041 \begin_inset Phantom Phantom
43044 \begin_layout Plain Layout
43054 \begin_layout Plain Layout
43066 <cell alignment="left" valignment="top" usebox="none">
43069 \begin_layout Plain Layout
43073 \begin_layout Plain Layout
43086 \begin_layout Plain Layout
43094 \begin_inset Phantom Phantom
43097 \begin_layout Plain Layout
43107 \begin_layout Plain Layout
43121 <cell alignment="left" valignment="top" usebox="none">
43124 \begin_layout Plain Layout
43128 \begin_layout Plain Layout
43141 \begin_layout Plain Layout
43149 \begin_inset Phantom Phantom
43152 \begin_layout Plain Layout
43162 \begin_layout Plain Layout
43174 <cell alignment="left" valignment="top" usebox="none">
43177 \begin_layout Plain Layout
43181 \begin_layout Plain Layout
43194 \begin_layout Plain Layout
43202 \begin_inset Phantom Phantom
43205 \begin_layout Plain Layout
43215 \begin_layout Plain Layout
43227 <cell alignment="left" valignment="top" usebox="none">
43230 \begin_layout Plain Layout
43234 \begin_layout Plain Layout
43247 \begin_layout Plain Layout
43255 \begin_inset Phantom Phantom
43258 \begin_layout Plain Layout
43268 \begin_layout Plain Layout
43280 <cell alignment="left" valignment="top" usebox="none">
43283 \begin_layout Plain Layout
43287 \begin_layout Plain Layout
43300 \begin_layout Plain Layout
43308 \begin_inset Phantom Phantom
43311 \begin_layout Plain Layout
43321 \begin_layout Plain Layout
43335 <cell alignment="left" valignment="top" usebox="none">
43338 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43355 \begin_layout Plain Layout
43363 \begin_inset Phantom Phantom
43366 \begin_layout Plain Layout
43376 \begin_layout Plain Layout
43388 <cell alignment="left" valignment="top" usebox="none">
43391 \begin_layout Plain Layout
43395 \begin_layout Plain Layout
43408 \begin_layout Plain Layout
43416 \begin_inset Phantom Phantom
43419 \begin_layout Plain Layout
43429 \begin_layout Plain Layout
43441 <cell alignment="left" valignment="top" usebox="none">
43444 \begin_layout Plain Layout
43448 \begin_layout Plain Layout
43461 \begin_layout Plain Layout
43469 \begin_inset Phantom Phantom
43472 \begin_layout Plain Layout
43482 \begin_layout Plain Layout
43494 <cell alignment="left" valignment="top" usebox="none">
43497 \begin_layout Plain Layout
43501 \begin_layout Plain Layout
43514 \begin_layout Plain Layout
43522 \begin_inset Phantom Phantom
43525 \begin_layout Plain Layout
43535 \begin_layout Plain Layout
43549 <cell alignment="left" valignment="top" usebox="none">
43552 \begin_layout Plain Layout
43556 \begin_layout Plain Layout
43569 \begin_layout Plain Layout
43577 \begin_inset Phantom Phantom
43580 \begin_layout Plain Layout
43590 \begin_layout Plain Layout
43602 <cell alignment="left" valignment="top" usebox="none">
43605 \begin_layout Plain Layout
43609 \begin_layout Plain Layout
43622 \begin_layout Plain Layout
43630 \begin_inset Phantom Phantom
43633 \begin_layout Plain Layout
43643 \begin_layout Plain Layout
43655 <cell alignment="left" valignment="top" usebox="none">
43658 \begin_layout Plain Layout
43662 \begin_layout Plain Layout
43675 \begin_layout Plain Layout
43683 \begin_inset Phantom Phantom
43686 \begin_layout Plain Layout
43696 \begin_layout Plain Layout
43708 <cell alignment="left" valignment="top" usebox="none">
43711 \begin_layout Plain Layout
43715 \begin_layout Plain Layout
43728 \begin_layout Plain Layout
43736 \begin_inset Phantom Phantom
43739 \begin_layout Plain Layout
43749 \begin_layout Plain Layout
43763 <cell alignment="left" valignment="top" usebox="none">
43766 \begin_layout Plain Layout
43770 \begin_layout Plain Layout
43783 \begin_layout Plain Layout
43791 \begin_inset Phantom Phantom
43794 \begin_layout Plain Layout
43804 \begin_layout Plain Layout
43816 <cell alignment="left" valignment="top" usebox="none">
43819 \begin_layout Plain Layout
43823 \begin_layout Plain Layout
43836 \begin_layout Plain Layout
43844 \begin_inset Phantom Phantom
43847 \begin_layout Plain Layout
43857 \begin_layout Plain Layout
43869 <cell alignment="left" valignment="top" usebox="none">
43872 \begin_layout Plain Layout
43876 \begin_layout Plain Layout
43889 \begin_layout Plain Layout
43897 \begin_inset Phantom Phantom
43900 \begin_layout Plain Layout
43910 \begin_layout Plain Layout
43922 <cell alignment="left" valignment="top" usebox="none">
43925 \begin_layout Plain Layout
43929 \begin_layout Plain Layout
43942 \begin_layout Plain Layout
43950 \begin_inset Phantom Phantom
43953 \begin_layout Plain Layout
43963 \begin_layout Plain Layout
43977 <cell alignment="left" valignment="top" usebox="none">
43980 \begin_layout Plain Layout
43984 \begin_layout Plain Layout
43997 \begin_layout Plain Layout
44005 \begin_inset Phantom Phantom
44008 \begin_layout Plain Layout
44018 \begin_layout Plain Layout
44030 <cell alignment="left" valignment="top" usebox="none">
44033 \begin_layout Plain Layout
44037 \begin_layout Plain Layout
44050 \begin_layout Plain Layout
44058 \begin_inset Phantom Phantom
44061 \begin_layout Plain Layout
44071 \begin_layout Plain Layout
44083 <cell alignment="left" valignment="top" usebox="none">
44086 \begin_layout Plain Layout
44090 \begin_layout Plain Layout
44103 \begin_layout Plain Layout
44111 \begin_inset Phantom Phantom
44114 \begin_layout Plain Layout
44124 \begin_layout Plain Layout
44136 <cell alignment="left" valignment="top" usebox="none">
44139 \begin_layout Plain Layout
44143 \begin_layout Plain Layout
44156 \begin_layout Plain Layout
44164 \begin_inset Phantom Phantom
44167 \begin_layout Plain Layout
44177 \begin_layout Plain Layout
44191 <cell alignment="left" valignment="top" usebox="none">
44194 \begin_layout Plain Layout
44198 \begin_layout Plain Layout
44211 \begin_layout Plain Layout
44219 \begin_inset Phantom Phantom
44222 \begin_layout Plain Layout
44232 \begin_layout Plain Layout
44244 <cell alignment="left" valignment="top" usebox="none">
44247 \begin_layout Plain Layout
44251 \begin_layout Plain Layout
44264 \begin_layout Plain Layout
44272 \begin_inset Phantom Phantom
44275 \begin_layout Plain Layout
44285 \begin_layout Plain Layout
44297 <cell alignment="left" valignment="top" usebox="none">
44300 \begin_layout Plain Layout
44304 \begin_layout Plain Layout
44317 \begin_layout Plain Layout
44325 \begin_inset Phantom Phantom
44328 \begin_layout Plain Layout
44338 \begin_layout Plain Layout
44350 <cell alignment="left" valignment="top" usebox="none">
44353 \begin_layout Plain Layout
44357 \begin_layout Plain Layout
44370 \begin_layout Plain Layout
44378 \begin_inset Phantom Phantom
44381 \begin_layout Plain Layout
44391 \begin_layout Plain Layout
44405 <cell alignment="left" valignment="top" usebox="none">
44408 \begin_layout Plain Layout
44412 \begin_layout Plain Layout
44425 \begin_layout Plain Layout
44433 \begin_inset Phantom Phantom
44436 \begin_layout Plain Layout
44446 \begin_layout Plain Layout
44458 <cell alignment="left" valignment="top" usebox="none">
44461 \begin_layout Plain Layout
44465 \begin_layout Plain Layout
44478 \begin_layout Plain Layout
44486 \begin_inset Phantom Phantom
44489 \begin_layout Plain Layout
44499 \begin_layout Plain Layout
44511 <cell alignment="left" valignment="top" usebox="none">
44514 \begin_layout Plain Layout
44518 \begin_layout Plain Layout
44531 \begin_layout Plain Layout
44539 \begin_inset Phantom Phantom
44542 \begin_layout Plain Layout
44552 \begin_layout Plain Layout
44564 <cell alignment="left" valignment="top" usebox="none">
44567 \begin_layout Plain Layout
44571 \begin_layout Plain Layout
44584 \begin_layout Plain Layout
44592 \begin_inset Phantom Phantom
44595 \begin_layout Plain Layout
44605 \begin_layout Plain Layout
44619 <cell alignment="left" valignment="top" usebox="none">
44622 \begin_layout Plain Layout
44626 \begin_layout Plain Layout
44639 \begin_layout Plain Layout
44647 \begin_inset Phantom Phantom
44650 \begin_layout Plain Layout
44660 \begin_layout Plain Layout
44672 <cell alignment="left" valignment="top" usebox="none">
44675 \begin_layout Plain Layout
44679 \begin_layout Plain Layout
44692 \begin_layout Plain Layout
44700 \begin_inset Phantom Phantom
44703 \begin_layout Plain Layout
44713 \begin_layout Plain Layout
44725 <cell alignment="left" valignment="top" usebox="none">
44728 \begin_layout Plain Layout
44732 \begin_layout Plain Layout
44745 \begin_layout Plain Layout
44753 \begin_inset Phantom Phantom
44756 \begin_layout Plain Layout
44766 \begin_layout Plain Layout
44778 <cell alignment="left" valignment="top" usebox="none">
44781 \begin_layout Plain Layout
44785 \begin_layout Plain Layout
44798 \begin_layout Plain Layout
44806 \begin_inset Phantom Phantom
44809 \begin_layout Plain Layout
44819 \begin_layout Plain Layout
44833 <cell alignment="left" valignment="top" usebox="none">
44836 \begin_layout Plain Layout
44840 \begin_layout Plain Layout
44853 \begin_layout Plain Layout
44861 \begin_inset Phantom Phantom
44864 \begin_layout Plain Layout
44874 \begin_layout Plain Layout
44886 <cell alignment="left" valignment="top" usebox="none">
44889 \begin_layout Plain Layout
44895 <cell alignment="left" valignment="top" usebox="none">
44898 \begin_layout Plain Layout
44904 <cell alignment="left" valignment="top" usebox="none">
44907 \begin_layout Plain Layout
44921 \begin_layout Chapter
44922 Explanation of Equation
44923 \begin_inset space ~
44927 \begin_inset CommandInset ref
44934 \begin_inset CommandInset label
44936 name "cha:Explanation-of-Equation"
44943 \begin_layout Standard
44944 We can calculate the total width of
44949 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44953 \begin_inset Formula
44955 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44961 \begin_inset Formula $W_{g\,n}$
44964 is the given width of all cells,
44970 is the \SpecialChar LaTeX
44971 -length between the cell text and the cell border (its default value
44973 \begin_inset space \thinspace{}
44983 is the thickness of the cell border line, the default is 0.4
44984 \begin_inset space \thinspace{}
44990 \begin_layout Standard
44992 \begin_inset space ~
44996 \begin_inset CommandInset ref
44998 reference "eq:Wtot_n"
45002 , the total width of a multicolumn
45003 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45007 \begin_inset Formula
45009 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45017 \begin_layout Standard
45018 By setting equation
45019 \begin_inset space ~
45023 \begin_inset CommandInset ref
45025 reference "eq:Wtot_n"
45030 \begin_inset CommandInset ref
45032 reference "eq:Wtot_mult"
45036 equal we can calculate the needed given width
45037 \begin_inset Formula $W_{g\,n}$
45044 columns are spanned, so that each column has a total width of
45045 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45049 \begin_inset Formula
45051 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45059 \begin_layout Bibliography
45060 \begin_inset CommandInset bibitem
45061 LatexCommand bibitem
45062 key "latexcompanion"
45066 Frank Mittelbach and Michel Goossens:
45068 The \SpecialChar LaTeX
45069 Companion Second Edition.
45072 Addison-Wesley, 2004
45075 \begin_layout Bibliography
45076 \begin_inset CommandInset bibitem
45077 LatexCommand bibitem
45082 Helmut Kopka and Patrick W.
45085 A Guide to \SpecialChar LaTeX
45089 Addison-Wesley, 2003
45092 \begin_layout Bibliography
45093 \begin_inset CommandInset bibitem
45094 LatexCommand bibitem
45102 : A Document Preparation System.
45105 Addison-Wesley, second edition, 1994
45108 \begin_layout Bibliography
45109 \begin_inset CommandInset bibitem
45110 LatexCommand bibitem
45115 Documentation of the \SpecialChar LaTeX
45119 \begin_inset CommandInset href
45122 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45129 \begin_inset Index idx
45132 \begin_layout Plain Layout
45134 -packages ! arydshln
45142 \begin_layout Bibliography
45143 \begin_inset CommandInset bibitem
45144 LatexCommand bibitem
45149 Documentation of the \SpecialChar LaTeX
45153 \begin_inset CommandInset href
45156 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45163 \begin_inset Index idx
45166 \begin_layout Plain Layout
45168 -packages ! booktabs
45176 \begin_layout Bibliography
45177 \begin_inset CommandInset bibitem
45178 LatexCommand bibitem
45183 Documentation of the \SpecialChar LaTeX
45187 \begin_inset CommandInset href
45190 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45197 \begin_inset Index idx
45200 \begin_layout Plain Layout
45202 -packages ! caption
45210 \begin_layout Bibliography
45211 \begin_inset CommandInset bibitem
45212 LatexCommand bibitem
45217 Documentation of the \SpecialChar LaTeX
45221 \begin_inset CommandInset href
45224 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45231 \begin_inset Index idx
45234 \begin_layout Plain Layout
45236 -packages ! diagbox
45244 \begin_layout Bibliography
45245 \begin_inset CommandInset bibitem
45246 LatexCommand bibitem
45251 Documentation of the \SpecialChar LaTeX
45255 \begin_inset CommandInset href
45258 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45265 \begin_inset Index idx
45268 \begin_layout Plain Layout
45270 -packages ! endfloat
45278 \begin_layout Bibliography
45279 \begin_inset CommandInset bibitem
45280 LatexCommand bibitem
45285 Documentation of the \SpecialChar LaTeX
45289 \begin_inset CommandInset href
45292 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45299 \begin_inset Index idx
45302 \begin_layout Plain Layout
45304 -packages ! footmisc
45312 \begin_layout Bibliography
45313 \begin_inset CommandInset bibitem
45314 LatexCommand bibitem
45319 Documentation of the \SpecialChar LaTeX
45323 \begin_inset CommandInset href
45326 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45333 \begin_inset Index idx
45336 \begin_layout Plain Layout
45338 -packages ! hyperref
45346 \begin_layout Bibliography
45347 \begin_inset CommandInset bibitem
45348 LatexCommand bibitem
45353 Documentation of the \SpecialChar LaTeX
45357 \begin_inset CommandInset href
45360 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45367 \begin_inset Index idx
45370 \begin_layout Plain Layout
45372 -packages ! hyperref
45380 \begin_layout Bibliography
45381 \begin_inset CommandInset bibitem
45382 LatexCommand bibitem
45387 Documentation of the \SpecialChar LaTeX
45391 \begin_inset CommandInset href
45394 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45401 \begin_inset Index idx
45404 \begin_layout Plain Layout
45406 -packages ! KOMA-Script
45414 \begin_layout Bibliography
45415 \begin_inset CommandInset bibitem
45416 LatexCommand bibitem
45421 Documentation of the \SpecialChar LaTeX
45425 \begin_inset CommandInset href
45428 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45435 \begin_inset CommandInset href
45438 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45443 \begin_inset Index idx
45446 \begin_layout Plain Layout
45448 -packages ! lettrine
45456 \begin_layout Bibliography
45457 \begin_inset CommandInset bibitem
45458 LatexCommand bibitem
45463 Documentation of the \SpecialChar LaTeX
45467 \begin_inset CommandInset href
45470 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45477 \begin_inset Index idx
45480 \begin_layout Plain Layout
45482 -packages ! listings
45490 \begin_layout Bibliography
45491 \begin_inset CommandInset bibitem
45492 LatexCommand bibitem
45497 Documentation of the \SpecialChar LaTeX
45501 \begin_inset CommandInset href
45504 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45511 \begin_inset Index idx
45514 \begin_layout Plain Layout
45516 -packages ! marginnote
45524 \begin_layout Bibliography
45525 \begin_inset CommandInset bibitem
45526 LatexCommand bibitem
45531 Documentation of the \SpecialChar LaTeX
45535 \begin_inset CommandInset href
45538 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45545 \begin_inset Index idx
45548 \begin_layout Plain Layout
45550 -packages ! pdfpages
45558 \begin_layout Bibliography
45559 \begin_inset CommandInset bibitem
45560 LatexCommand bibitem
45565 Documentation of the \SpecialChar LaTeX
45569 \begin_inset CommandInset href
45572 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45579 \begin_inset Index idx
45582 \begin_layout Plain Layout
45584 -packages ! prettyref
45592 \begin_layout Bibliography
45593 \begin_inset CommandInset bibitem
45594 LatexCommand bibitem
45599 Web page of the \SpecialChar LaTeX
45603 \begin_inset CommandInset href
45606 target "http://tug.org/PSTricks/"
45613 \begin_inset Index idx
45616 \begin_layout Plain Layout
45618 -packages ! PSTricks
45626 \begin_layout Bibliography
45627 \begin_inset CommandInset bibitem
45628 LatexCommand bibitem
45633 Documentation of the \SpecialChar LaTeX
45637 \begin_inset CommandInset href
45640 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45647 \begin_inset Index idx
45650 \begin_layout Plain Layout
45652 -packages ! refstyle
45660 \begin_layout Bibliography
45661 \begin_inset CommandInset bibitem
45662 LatexCommand bibitem
45667 Documentation of the \SpecialChar LaTeX
45671 \begin_inset CommandInset href
45674 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45681 \begin_inset Index idx
45684 \begin_layout Plain Layout
45686 -packages ! sidecap
45694 \begin_layout Bibliography
45695 \begin_inset CommandInset bibitem
45696 LatexCommand bibitem
45702 \begin_inset CommandInset href
45705 target "http://wiki.lyx.org/LyX/NewInLyX20"
45709 about new features in
45717 \begin_layout Standard
45718 \begin_inset CommandInset index_print
45719 LatexCommand printindex