1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
176 \default_output_format pdf2
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \use_package amsmath 2
200 \use_package amssymb 2
201 \use_package cancel 0
203 \use_package mathdots 1
204 \use_package mathtools 0
205 \use_package mhchem 1
206 \use_package stackrel 0
207 \use_package stmaryrd 0
208 \use_package undertilde 0
210 \cite_engine_type default
214 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_language english
230 \paperpagestyle default
231 \tracking_changes true
232 \output_changes false
235 \html_be_strict false
236 \author 227574939 "Kyttj"
237 \author 2047637253 "Guillaume Munch"
244 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
248 by the \SpecialChar LyX
253 \begin_layout Plain Layout
255 If you have comments or error corrections, please send them to the \SpecialChar LyX
258 \begin_inset CommandInset href
260 name "lyx-docs@lists.lyx.org"
261 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
272 \begin_inset Note Note
275 \begin_layout Plain Layout
282 \begin_inset Newline newline
286 \begin_inset Newline newline
294 \begin_layout Standard
295 \begin_inset CommandInset toc
296 LatexCommand tableofcontents
303 \begin_layout Standard
304 \begin_inset Note Note
307 \begin_layout Plain Layout
308 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
319 diagbox, lettrine, marginnote, picinpar
326 If they are not installed you can export the document anyway but the sections
327 where the packages are required won't appear in the output.
330 \begin_layout Plain Layout
331 The latest PDF-version of this document can be found here:
332 \begin_inset Newline newline
337 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
345 \begin_layout Chapter
347 \begin_inset Index idx
350 \begin_layout Plain Layout
357 \begin_inset Index idx
360 \begin_layout Plain Layout
365 \begin_layout Plain Layout
376 \begin_layout Plain Layout
391 \begin_layout Section
393 \begin_inset Index idx
396 \begin_layout Plain Layout
397 Figures ! Graphics Dialog
403 \begin_inset CommandInset label
405 name "sec:Graphics-Dialog"
412 \begin_layout Standard
413 To insert an image into your document, place the cursor at the text position
414 you want and click on the toolbar icon
417 arg "dialog-show-new-inset graphics"
422 Insert\SpecialChar menuseparator
426 Then a dialog will appear to choose the file to load.
427 The image will appear in the output exactly at the position where it is
431 \begin_layout Standard
432 The graphics dialog can be called at any time by clicking on an image.
433 This dialog has three tabs:
436 \begin_layout Description
441 Here you can choose an image file and adjust its appearance in the output.
442 The available units for the image size are explained in appendix
447 \begin_inset CommandInset ref
449 reference "cha:Units-available-in"
454 \begin_inset Newline newline
458 \begin_inset Index idx
461 \begin_layout Plain Layout
467 You can rotate images counter-clockwise by setting a rotation angle and
469 The image will also be rotated inside \SpecialChar LyX
471 \begin_inset Newline newline
475 \begin_inset Index idx
478 \begin_layout Plain Layout
484 Images can be scaled by using a percentage value or by setting the width
485 and height explicitly.
486 If you set only the width or only the height, the other size will be determined
488 If you set both, then the image will be transformed to the given size,
489 possibly distorting it.
490 To prevent the image from distortion, use the option
492 Maintain aspect ratio
495 The image will then be scaled so that its width and height don't exceed
496 the specified dimensions.
497 \begin_inset Newline newline
500 Images can be opened in a program of your choice by right-clicking on it
501 and choosing the entry
510 The program can be set for every image format in the file format settings
515 \begin_layout Description
520 Alternatively to the usage of scaling units it is possible to set image
521 coordinates to adjust the height and width of the image in the output.
522 The coordinates can also be calculated automatically by pressing the button
552 will only print the image region within the given coordinates.
553 Normally you don't need to worry about image coordinates and can ignore
557 \begin_layout Description
574 In this tab you can modify the appearance of the image within \SpecialChar LyX
575 and \SpecialChar LaTeX
577 can specify additional \SpecialChar LaTeX
579 \begin_inset Newline newline
590 makes the image appear in the output only as a frame with the size of the
592 \begin_inset Newline newline
603 you can define or join an image settings group.
604 \begin_inset Index idx
607 \begin_layout Plain Layout
608 Figures ! Settings grouping
613 Images within such a group share their settings, so adjusting one image
614 of the group automatically also adjusts all other images of the group in
616 So you can for example change the size for a bunch of images without the
617 need to manually change each of them.
618 Joining an existing group can also be done using the context menu of the
619 image by checking the name of the desired group.
622 \begin_layout Standard
623 \begin_inset VSpace bigskip
629 \begin_layout Standard
630 This is an example image in EPS format
634 \begin_layout Plain Layout
635 Image formats are explained in section
640 \begin_inset CommandInset ref
642 reference "sec:Image-Formats"
651 within a separate, horizontally centered paragraph:
652 \begin_inset Separator latexpar
658 \begin_layout Standard
660 \begin_inset Graphics
661 filename clipart/mobius.eps
671 \begin_layout Standard
672 This is the same image like the one above but in draft mode:
673 \begin_inset Separator latexpar
679 \begin_layout Standard
681 \begin_inset Graphics
682 filename clipart/mobius.eps
693 \begin_layout Standard
694 \begin_inset Newpage newpage
700 \begin_layout Section
702 \begin_inset CommandInset label
704 name "sec:Figure-Floats"
709 \begin_inset Index idx
712 \begin_layout Plain Layout
719 \begin_inset Index idx
722 \begin_layout Plain Layout
731 \begin_layout Standard
732 For general explanations about floats, have a look at section
737 \begin_inset CommandInset ref
739 reference "sec:FloatIntroduction"
746 \begin_layout Standard
750 arg "float-insert figure"
755 Insert\SpecialChar menuseparator
756 Float\SpecialChar menuseparator
759 inserts a float with a caption that has the label
760 \begin_inset Quotes eld
768 \begin_inset Quotes erd
771 (# is the actual number).
772 You can insert the image above the caption, like in Figure
777 \begin_inset CommandInset ref
779 reference "fig:kill-plat"
783 or below the caption, like in Figure
788 \begin_inset CommandInset ref
790 reference "fig:escher"
795 More about caption placement is described in section
800 \begin_inset CommandInset ref
802 reference "sec:Caption-Placement"
809 \begin_layout Standard
810 \begin_inset Float figure
815 \begin_layout Plain Layout
817 \begin_inset Graphics
818 filename clipart/platypus.eps
828 \begin_layout Plain Layout
829 \begin_inset Caption Standard
831 \begin_layout Plain Layout
832 \begin_inset CommandInset label
838 A severely distorted platypus in a float.
851 \begin_layout Standard
852 \begin_inset Float figure
857 \begin_layout Plain Layout
858 \begin_inset Caption Standard
860 \begin_layout Plain Layout
861 \begin_inset CommandInset label
876 \begin_layout Plain Layout
878 \begin_inset Graphics
879 filename clipart/escher-lsd.eps
894 \begin_layout Standard
895 \begin_inset Index idx
898 \begin_layout Plain Layout
899 References ! to Figures
909 \begin_inset CommandInset ref
911 reference "fig:kill-plat"
916 \begin_inset CommandInset ref
918 reference "fig:escher"
922 are examples of referenced figures.
923 Figures can be referenced in the text by referencing their label.
924 To do this insert a label in the caption using the menu
926 Insert\SpecialChar menuseparator
929 or the toolbar button
936 You can now refer to the label using the menu
938 Insert\SpecialChar menuseparator
945 or the toolbar button
948 arg "dialog-show-new-inset ref"
952 It is important to use references to floats, rather than using vague references
954 \begin_inset Quotes eld
958 \begin_inset Quotes erd
961 , because \SpecialChar LaTeX
962 will reposition the floats in the final document and it might
964 \begin_inset Quotes eld
968 \begin_inset Quotes erd
972 \begin_inset Newline newline
975 Referencing is explained in detail in section
980 \begin_inset CommandInset ref
982 reference "sec:Referencing-Floats"
989 \begin_layout Standard
990 Normally only one image is inserted to a figure float, but sometimes you
991 might want to use two images with separate subcaptions.
992 This can be done by inserting image floats into existing image floats.
993 Note that only the main caption of the float is added to the List of Figures.
999 \begin_inset CommandInset ref
1001 reference "fig:Two-distorted-images"
1005 is an example of a figure float with two images set side by side.
1006 You can also set the images one below the other.
1008 \begin_inset space ~
1012 \begin_inset CommandInset ref
1014 reference "fig:Undefinable-structure"
1019 \begin_inset CommandInset ref
1021 reference "fig:A-Platypus"
1028 \begin_layout Standard
1029 \begin_inset Float figure
1034 \begin_layout Plain Layout
1035 \begin_inset space \hfill{}
1039 \begin_inset Float figure
1044 \begin_layout Plain Layout
1045 \begin_inset Caption Standard
1047 \begin_layout Plain Layout
1048 \begin_inset CommandInset label
1050 name "fig:Undefinable-structure"
1054 Undefinable structure.
1062 \begin_layout Plain Layout
1063 \begin_inset Graphics
1064 filename clipart/escher-lsd.eps
1077 \begin_inset space \hfill{}
1081 \begin_inset Float figure
1086 \begin_layout Plain Layout
1087 \begin_inset Caption Standard
1089 \begin_layout Plain Layout
1090 \begin_inset CommandInset label
1092 name "fig:A-Platypus"
1104 \begin_layout Plain Layout
1105 \begin_inset Graphics
1106 filename clipart/platypus.eps
1119 \begin_inset space \hfill{}
1125 \begin_layout Plain Layout
1126 \begin_inset Caption Standard
1128 \begin_layout Plain Layout
1129 \begin_inset CommandInset label
1131 name "fig:Two-distorted-images"
1135 Two distorted images.
1136 Both images are in the image settings group named
1137 \begin_inset Quotes eld
1141 \begin_inset Quotes erd
1157 \begin_layout Standard
1158 \begin_inset Newpage newpage
1164 \begin_layout Section
1166 \begin_inset CommandInset label
1168 name "sec:Image-Formats"
1173 \begin_inset Index idx
1176 \begin_layout Plain Layout
1183 \begin_inset Index idx
1186 \begin_layout Plain Layout
1187 Figures ! Image Formats
1195 \begin_layout Standard
1196 You can insert images in any known file format.
1197 But as explained in appendix
1198 \begin_inset space ~
1202 \begin_inset CommandInset ref
1204 reference "cha:Output-File-Formats"
1208 , each output document format allows only a few image formats.
1210 uses therefore the program
1214 in the background to convert the images to the right format.
1215 To increase your work flow by avoiding these conversions in the background,
1216 you could choose to use only the image formats that can directly be embedded
1217 in the output file format.
1218 The output file formats are explained in appendix
1219 \begin_inset space ~
1223 \begin_inset CommandInset ref
1225 reference "cha:Output-File-Formats"
1232 \begin_layout Standard
1233 Similar to fonts there are two types of image formats:
1236 \begin_layout Description
1238 \begin_inset space ~
1241 images consist of pixel values, often in a compressed form.
1242 They are therefore not fully scalable and look pixelated in large zooms.
1243 Well-known bitmap image formats are
1244 \begin_inset Quotes eld
1247 Graphics Interchange Format
1248 \begin_inset Quotes erd
1251 (GIF, file extension
1252 \begin_inset Quotes eld
1260 \begin_inset Quotes erd
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1272 \begin_layout Plain Layout
1283 \begin_layout Plain Layout
1296 \begin_inset Quotes eld
1299 Portable Network Graphics
1300 \begin_inset Quotes erd
1303 (PNG, file extension
1304 \begin_inset Quotes eld
1312 \begin_inset Quotes erd
1316 \begin_inset Index idx
1319 \begin_layout Plain Layout
1324 \begin_layout Plain Layout
1335 \begin_layout Plain Layout
1348 \begin_inset Quotes eld
1351 Joint Photographic Experts Group
1352 \begin_inset Quotes erd
1355 (JPG, file extension
1356 \begin_inset Quotes eld
1364 \begin_inset Quotes erd
1368 \begin_inset Quotes eld
1376 \begin_inset Quotes erd
1380 \begin_inset Index idx
1383 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1399 \begin_layout Plain Layout
1414 \begin_layout Description
1416 \begin_inset space ~
1419 images consist of vectors and can therefore be scaled to any size without
1421 The scaling ability is necessary if you want to create presentations, because
1422 presentations are always scaled by the video projector.
1423 Scaling is also useful for online documents to let the user zoom into diagrams.
1424 \begin_inset Newline newline
1427 Well-known scalable image formats are
1428 \begin_inset Quotes eld
1431 Scalable Vector Graphics
1432 \begin_inset Quotes erd
1435 (SVG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Index idx
1451 \begin_layout Plain Layout
1456 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1480 \begin_inset Quotes eld
1483 Encapsulated PostScript
1484 \begin_inset Quotes erd
1487 (EPS, file extension
1488 \begin_inset Quotes eld
1496 \begin_inset Quotes erd
1500 \begin_inset Index idx
1503 \begin_layout Plain Layout
1508 \begin_layout Plain Layout
1519 \begin_layout Plain Layout
1532 \begin_inset Quotes eld
1535 Portable Document Format
1536 \begin_inset Quotes erd
1539 (PDF, file extension
1540 \begin_inset Quotes eld
1548 \begin_inset Quotes erd
1552 \begin_inset Index idx
1555 \begin_layout Plain Layout
1562 \begin_inset Quotes eld
1566 \begin_inset Quotes erd
1569 (WMF, file extension
1570 \begin_inset Quotes eld
1578 \begin_inset Quotes erd
1582 \begin_inset Index idx
1585 \begin_layout Plain Layout
1590 \begin_layout Plain Layout
1601 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 , because you can convert any bitmap image to a PDF or EPS-image and the
1623 result will still be a bitmap image.
1624 In such cases only a header with the image properties is added to the original
1629 \begin_layout Plain Layout
1630 In the case of PDF, the original image is additionally compressed.
1636 The PDF-files generated by
1640 are for example bitmap images.
1643 \begin_layout Standard
1644 Normally it is not possible to convert a bitmap image into a scalable one,
1646 Only the image formats PDF and EPS can directly be embedded to PDF and
1647 PostScript output files, respectively.
1648 SVG and WMF-images are recalculated to bitmaps when the output file is
1649 generated because there is currently no adequate WMF/SVG
1650 \begin_inset Formula $\to$
1653 PDF/EPS converter available.
1656 \begin_layout Chapter
1658 \begin_inset Index idx
1661 \begin_layout Plain Layout
1670 \begin_layout Section
1672 \begin_inset Index idx
1675 \begin_layout Plain Layout
1676 Table ! Introduction
1684 \begin_layout Standard
1685 You can insert a table using either the toolbar button
1688 arg "tabular-insert"
1693 Insert\SpecialChar menuseparator
1697 The toolbar button offers you a graphical selection: move the mouse to
1698 set the column/row number of the table that should be created and then
1699 press a mouse button.
1700 When you use the menu to create a table, a dialog will appear, asking you
1701 for the number of rows and columns.
1702 \begin_inset Newline newline
1705 The default table has lines around any cell and the first row appears separated
1706 from the rest of the table.
1707 This separation occurs due to a double line: The cells of the first row
1708 have a line below them and the cells of the second row have a line above
1710 Here is an example table:
1711 \begin_inset Separator latexpar
1717 \begin_layout Standard
1719 \begin_inset Tabular
1720 <lyxtabular version="3" rows="4" columns="4">
1721 <features tabularvalignment="middle">
1722 <column alignment="center" valignment="top">
1723 <column alignment="center" valignment="top">
1724 <column alignment="center" valignment="top">
1725 <column alignment="center" valignment="top">
1727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1730 \begin_layout Plain Layout
1736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1739 \begin_layout Plain Layout
1754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1757 \begin_layout Plain Layout
1763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1766 \begin_layout Plain Layout
1774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1795 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1921 \begin_layout Section
1923 \begin_inset Index idx
1926 \begin_layout Plain Layout
1935 \begin_layout Standard
1936 You can alter a table by clicking on it with the right mouse button, which
1937 brings up the context menu.
1938 Under the menu entry
1942 you can adjust the settings of that cell and row/column respectively where
1943 the cursor is currently placed.
1946 More\SpecialChar menuseparator
1949 opens the table dialog where you can adjust more things.
1950 Most of the dialog options also work on selections.
1951 This means if you select more cells, columns or rows, the action is done
1952 for the whole selection.
1953 Note that there is a difference between selecting the
1957 of the cell, and the cell itself.
1958 \begin_inset Newline newline
1961 With the dialog option
1964 \begin_inset space ~
1969 every change you make in the dialog is directly applied.
1970 If you move the cursor to another table cell the dialog will then also
1971 be updated with the parameters of the new cell.
1972 If you change length values in the dialog you must press
1976 to get the change applied.
1977 \begin_inset Newline newline
1980 You can alter tables with the following tabs of the table dialog:
1983 \begin_layout Description
1985 \begin_inset space ~
1988 Settings Here you can set the table width
1989 \begin_inset Index idx
1992 \begin_layout Plain Layout
1998 , and the horizontal alignment and the width of the current column.
2002 \begin_inset space ~
2006 \begin_inset space ~
2011 is described in section
2012 \begin_inset space ~
2016 \begin_inset CommandInset ref
2018 reference "subsec:Special-Cell-Alignment"
2023 When you have set a width you can also adjust the vertical alignment of
2025 A given width will allow the cell to have line breaks and multiple paragraphs
2027 \begin_inset space \thinspace{}
2031 \begin_inset CommandInset ref
2033 reference "subsec:Multiple-Lines-in"
2038 If you set no width, the column is as wide as the content of its widest
2040 \begin_inset Newline newline
2043 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2045 \begin_inset space \thinspace{}
2049 \begin_inset CommandInset ref
2051 reference "subsec:Multicolumns"
2055 or the cells of one column as multirow cell, see sec.
2056 \begin_inset space \thinspace{}
2060 \begin_inset CommandInset ref
2062 reference "subsec:Multirows"
2067 \begin_inset Newline newline
2070 The rotate check boxes rotate the current cell, a selection, or the whole
2071 table counter-clockwise by 90
2072 \begin_inset space \thinspace{}
2076 The rotation is not shown within \SpecialChar LyX
2077 , only in the output.
2078 For more information see sec.
2079 \begin_inset space \thinspace{}
2083 \begin_inset CommandInset ref
2085 reference "sec:Rotated-Table-Cells"
2090 \begin_inset Newline newline
2094 \begin_inset Note Greyedout
2097 \begin_layout Plain Layout
2102 Not all DVI-viewers are able to display rotations.
2108 \begin_inset Newline newline
2111 The table-wide vertical alignment is used for tables within text lines:
2112 \begin_inset Newline newline
2115 A line with tables with different alignments:
2116 \begin_inset Tabular
2117 <lyxtabular version="3" rows="2" columns="2">
2118 <features tabularvalignment="top">
2119 <column alignment="center" valignment="top" width="0pt">
2120 <column alignment="center" valignment="top">
2122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2125 \begin_layout Plain Layout
2131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2134 \begin_layout Plain Layout
2151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2154 \begin_layout Plain Layout
2169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2172 \begin_layout Plain Layout
2184 \begin_inset Tabular
2185 <lyxtabular version="3" rows="2" columns="2">
2186 <features tabularvalignment="middle">
2187 <column alignment="center" valignment="top">
2188 <column alignment="center" valignment="top">
2190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2193 \begin_layout Plain Layout
2199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2202 \begin_layout Plain Layout
2219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2222 \begin_layout Plain Layout
2237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2240 \begin_layout Plain Layout
2252 \begin_inset Tabular
2253 <lyxtabular version="3" rows="2" columns="2">
2254 <features tabularvalignment="bottom">
2255 <column alignment="center" valignment="top" width="0pt">
2256 <column alignment="center" valignment="top">
2258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2261 \begin_layout Plain Layout
2267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2270 \begin_layout Plain Layout
2287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2290 \begin_layout Plain Layout
2305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2308 \begin_layout Plain Layout
2320 \begin_inset Newline newline
2323 It is also possible to enter a \SpecialChar LaTeX
2324 -argument which is needed for special table
2325 formattings, see sec.
2326 \begin_inset space \thinspace{}
2330 \begin_inset CommandInset ref
2332 reference "subsec:Multicolumn-Calculations"
2337 \begin_inset CommandInset ref
2339 reference "sec:Colored-Tables"
2346 \begin_layout Description
2347 Borders In this tab you can add and delete border lines for the current
2349 \begin_inset Newline newline
2352 Using the style option
2356 will convert the table to a formal table as described in sec.
2357 \begin_inset space \thinspace{}
2361 \begin_inset CommandInset ref
2363 reference "sec:Formal-Tables"
2368 \begin_inset Newline newline
2371 You can also add space here to table rows as described in sec.
2372 \begin_inset space \thinspace{}
2376 \begin_inset CommandInset ref
2378 reference "subsec:Row-Spacing"
2385 \begin_layout Description
2387 \begin_inset space ~
2390 table This tab is to make a table a multi-page table that can run over several
2393 \begin_inset space ~
2397 \begin_inset CommandInset ref
2399 reference "sec:Multi-page-Tables"
2404 \begin_inset CommandInset ref
2406 reference "sec:Special-Longtable-Issues"
2410 describe the multi-page table features in detail.
2413 \begin_layout Section
2415 \begin_inset Index idx
2418 \begin_layout Plain Layout
2427 \begin_layout Standard
2428 The table toolbar is an alternative to the table dialog to be able to alter
2430 It should normally appear at the bottom of \SpecialChar LyX
2431 's main window when the cursor
2433 You can alternatively switch it on to appear always, by right-clicking
2438 \begin_layout Standard
2439 The toolbar has the following icons:
2442 \begin_layout Labeling
2443 \labelwidthstring 00.00.0000
2446 arg "tabular-feature append-row"
2449 adds a row below the current cell or selection
2452 \begin_layout Labeling
2453 \labelwidthstring 00.00.0000
2456 arg "tabular-feature append-column"
2459 adds a column right beside the current cell or selection
2462 \begin_layout Labeling
2463 \labelwidthstring 00.00.0000
2466 arg "tabular-feature delete-row"
2469 deletes the current row or selection
2472 \begin_layout Labeling
2473 \labelwidthstring 00.00.0000
2476 arg "tabular-feature delete-column"
2479 deletes the current column or selection
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2486 arg "tabular-feature move-row-up"
2492 \begin_layout Labeling
2493 \labelwidthstring 00.00.0000
2496 arg "tabular-feature move-column-left"
2499 moves the column to the left
2502 \begin_layout Labeling
2503 \labelwidthstring 00.00.0000
2506 arg "tabular-feature move-row-down"
2512 \begin_layout Labeling
2513 \labelwidthstring 00.00.0000
2516 arg "tabular-feature move-column-right"
2519 moves the column to the right
2522 \begin_layout Labeling
2523 \labelwidthstring 00.00.0000
2526 arg "tabular-feature toggle-line-top"
2529 adds a line at the top of the current cell / row or of a selection
2532 \begin_layout Labeling
2533 \labelwidthstring 00.00.0000
2536 arg "tabular-feature toggle-line-bottom"
2539 adds a line at the bottom of the current cell / row or of a selection
2542 \begin_layout Labeling
2543 \labelwidthstring 00.00.0000
2546 arg "tabular-feature toggle-line-left"
2549 adds a line at the left side of the current cell / row or of a selection
2552 \begin_layout Labeling
2553 \labelwidthstring 00.00.0000
2556 arg "tabular-feature toggle-line-right"
2559 adds a line at the right side of the current cell / row or of a selection
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2566 arg "tabular-feature set-all-lines"
2569 adds lines around the current or selected cells - if the current cell no
2570 multicolumn cell this also affects the current row and column
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2577 arg "tabular-feature unset-all-lines"
2580 deletes all lines of the current or selected cells - if the current cell
2581 no multicolumn cell this also affects the current row and column
2584 \begin_layout Labeling
2585 \labelwidthstring 00.00.0000
2588 arg "tabular-feature m-align-left"
2591 left-aligns the content of the current cell / column
2594 \begin_layout Labeling
2595 \labelwidthstring 00.00.0000
2598 arg "tabular-feature m-align-center"
2601 centers the content of the current cell / column horizontally
2604 \begin_layout Labeling
2605 \labelwidthstring 00.00.0000
2608 arg "tabular-feature m-align-right"
2611 right-aligns the content of the current cell / column
2614 \begin_layout Labeling
2615 \labelwidthstring 00.00.0000
2618 arg "tabular-feature align-decimal"
2621 aligns the content of the current column at a character
2624 \begin_layout Labeling
2625 \labelwidthstring 00.00.0000
2628 arg "tabular-feature m-valign-top"
2631 aligns the content of the current cell vertically to the top
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2638 arg "tabular-feature m-valign-middle"
2641 centers the content of the current cell vertically
2644 \begin_layout Labeling
2645 \labelwidthstring 00.00.0000
2648 arg "tabular-feature m-valign-bottom"
2651 aligns the content of the current cell vertically to the bottom
2654 \begin_layout Labeling
2655 \labelwidthstring 00.00.0000
2658 arg "tabular-feature set-rotate-cell"
2661 rotates the current cell or selection counter-clockwise by 90°
2664 \begin_layout Labeling
2665 \labelwidthstring 00.00.0000
2668 arg "tabular-feature set-rotate-tabular"
2671 rotates the whole table counter-clockwise by 90°
2674 \begin_layout Labeling
2675 \labelwidthstring 00.00.0000
2678 arg "tabular-feature multicolumn"
2681 sets the current cell or selection as a multicolumn
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2688 arg "tabular-feature multirow"
2691 sets the current cell or selection as a multirow
2694 \begin_layout Standard
2695 \begin_inset Note Greyedout
2698 \begin_layout Plain Layout
2703 For the output the vertical alignment of the first cell in a row is used
2704 for all following cells in the row.
2712 \begin_layout Section
2714 \begin_inset Index idx
2717 \begin_layout Plain Layout
2726 \begin_layout Standard
2727 In addition to the table dialog and toolbar, the menu
2729 Edit\SpecialChar menuseparator
2732 allows you to add and delete border lines for the current row/column and
2733 to set the current selection as multicolumn.
2734 The menu is only available when the cursor is inside a table.
2737 \begin_layout Section
2739 \begin_inset CommandInset label
2741 name "sec:Table-Floats"
2746 \begin_inset Index idx
2749 \begin_layout Plain Layout
2756 \begin_inset Index idx
2759 \begin_layout Plain Layout
2768 \begin_layout Standard
2769 For general explanations about floats, have a look at section
2770 \begin_inset space ~
2774 \begin_inset CommandInset ref
2776 reference "sec:FloatIntroduction"
2783 \begin_layout Standard
2784 \begin_inset Float table
2790 \begin_layout Plain Layout
2791 \begin_inset Caption Standard
2793 \begin_layout Plain Layout
2794 \begin_inset CommandInset label
2796 name "tab:a table float"
2808 \begin_layout Plain Layout
2810 \begin_inset Tabular
2811 <lyxtabular version="3" rows="3" columns="3">
2812 <features tabularvalignment="middle">
2813 <column alignment="center" valignment="top" width="0pt">
2814 <column alignment="center" valignment="top" width="0pt">
2815 <column alignment="center" valignment="top" width="0pt">
2817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2820 \begin_layout Plain Layout
2835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2838 \begin_layout Plain Layout
2853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2856 \begin_layout Plain Layout
2873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2876 \begin_layout Plain Layout
2891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2894 \begin_layout Plain Layout
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2912 \begin_layout Plain Layout
2929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2932 \begin_layout Plain Layout
2942 \begin_inset Formula $\int x^{2}dx$
2950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2953 \begin_layout Plain Layout
2963 \begin_inset Formula $\left[\begin{array}{cc}
2974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2977 \begin_layout Plain Layout
2987 \begin_inset Formula $1+1=2$
3008 \begin_layout Standard
3009 Table floats can be inserted using the menu
3011 Insert\SpecialChar menuseparator
3012 Float\SpecialChar menuseparator
3015 or the toolbar button
3018 arg "float-insert table"
3024 \begin_layout Standard
3025 The float appears as a collapsible box with a caption that has the label
3027 \begin_inset Quotes eld
3031 \begin_inset space ~
3035 \begin_inset Quotes erd
3038 (# is the actual table number).
3039 You can insert tables in the float above or below the caption.
3042 \begin_layout Standard
3044 \begin_inset space ~
3048 \begin_inset CommandInset ref
3050 reference "tab:a table float"
3054 is an example table within a table float.
3057 \begin_layout Standard
3058 Having the caption above the table is the common rule that is unfortunately
3059 not supported in \SpecialChar LaTeX
3060 's standard classes.
3061 This means that, if you are using the document classes
3077 , there will be no space between the caption and the table.
3078 To insert the needed space, add the following option to the load command
3079 of the \SpecialChar LaTeX
3085 \begin_inset Index idx
3088 \begin_layout Plain Layout
3095 in your document preamble:
3099 \begin_layout Plain Layout
3100 For more information have a look at section
3101 \begin_inset space ~
3105 \begin_inset CommandInset ref
3107 reference "sec:Caption-Placement"
3119 \begin_layout Standard
3125 \begin_layout Standard
3130 , which is described in section
3131 \begin_inset space ~
3135 \begin_inset CommandInset ref
3137 reference "sec:Caption-Formatting"
3141 , is used to adjust the caption format.
3144 \begin_layout Standard
3145 \begin_inset Index idx
3148 \begin_layout Plain Layout
3149 References ! to Tables
3154 Tables can be cross-referenced in the text by referencing their label.
3155 To do this insert a label in the caption using the menu
3157 Insert\SpecialChar menuseparator
3160 or the toolbar button
3167 You can now refer to the label using the menu
3169 Insert\SpecialChar menuseparator
3171 \begin_inset space ~
3176 or the toolbar button
3179 arg "dialog-show-new-inset ref"
3183 \begin_inset Newline newline
3186 Referencing is explained in detail in section
3187 \begin_inset space ~
3191 \begin_inset CommandInset ref
3193 reference "sec:Referencing-Floats"
3200 \begin_layout Section
3206 \begin_inset CommandInset label
3208 name "sec:Multi-page-Tables"
3213 \begin_inset Index idx
3216 \begin_layout Plain Layout
3223 \begin_inset Index idx
3226 \begin_layout Plain Layout
3227 Table ! Multi-page Table
3235 \begin_layout Standard
3236 If the table is too long to fit on one page, you can use the option
3239 \begin_inset space ~
3247 \begin_inset space ~
3252 of the table dialog to split the table automatically over more pages.
3253 Doing this enables the following options:
3256 \begin_layout Description
3257 Header: The current row is defined to be a header row that appears on all
3258 pages of the multi-page table; except for the first page, if
3261 \begin_inset space ~
3267 This is therefore called the main header.
3270 \begin_layout Description
3272 \begin_inset space ~
3275 header: The current row is defined to be a header row that appears on the
3276 first page of the multi-page table.
3279 \begin_layout Description
3280 Footer: The current row is defined to be a footer row that appears on all
3281 pages of the multi-page table; except for the last page, if
3284 \begin_inset space ~
3292 \begin_layout Description
3294 \begin_inset space ~
3297 footer: The current row is defined to be a footer row that appears on the
3298 last page of the multi-page table.
3301 \begin_layout Description
3302 Caption: The current row contains the table caption.
3303 The row is reset as single column and a caption is inserted.
3304 More about multi-page table captions is explained in sec.
3305 \begin_inset space \thinspace{}
3309 \begin_inset CommandInset ref
3311 reference "subsec:Multi-page-Table-Captions"
3318 \begin_layout Standard
3319 You can also specify a row where the table is split.
3320 See the following multi-page table to see how it works:
3321 \begin_inset Separator latexpar
3327 \begin_layout Standard
3329 \begin_inset Tabular
3330 <lyxtabular version="3" rows="69" columns="3">
3331 <features islongtable="true" longtabularalignment="center">
3332 <column alignment="left" valignment="top" width="0cm">
3333 <column alignment="left" valignment="top" width="0pt">
3334 <column alignment="center" valignment="top" width="0pt">
3335 <row endfirsthead="true">
3336 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3339 \begin_layout Plain Layout
3342 Example Phone List (ignore the names)
3347 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3350 \begin_layout Plain Layout
3356 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3359 \begin_layout Plain Layout
3366 <row endfirsthead="true">
3367 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3370 \begin_layout Plain Layout
3378 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3381 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3390 \begin_layout Plain Layout
3399 <row endhead="true">
3400 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3414 \begin_layout Plain Layout
3420 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3423 \begin_layout Plain Layout
3430 <row endhead="true">
3431 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3445 \begin_layout Plain Layout
3451 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3454 \begin_layout Plain Layout
3463 <row endfoot="true">
3464 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3467 \begin_layout Plain Layout
3468 continued on next page
3473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3476 \begin_layout Plain Layout
3482 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3485 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" usebox="none">
3507 \begin_layout Plain Layout
3513 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" usebox="none">
3538 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" usebox="none">
3569 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" usebox="none">
3600 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" usebox="none">
3631 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" usebox="none">
3662 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" usebox="none">
3693 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" usebox="none">
3724 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" usebox="none">
3755 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" usebox="none">
3786 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" usebox="none">
3817 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" usebox="none">
3848 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" usebox="none">
3879 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" usebox="none">
3910 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" usebox="none">
3941 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" usebox="none">
3972 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" usebox="none">
4003 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" usebox="none">
4034 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" usebox="none">
4065 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" usebox="none">
4096 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" usebox="none">
4127 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" usebox="none">
4158 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" usebox="none">
4189 \begin_layout Plain Layout
4195 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4198 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell alignment="center" valignment="top" usebox="none">
4220 \begin_layout Plain Layout
4226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4229 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4240 \begin_layout Plain Layout
4248 <cell alignment="center" valignment="top" usebox="none">
4251 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4260 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4271 \begin_layout Plain Layout
4279 <cell alignment="center" valignment="top" usebox="none">
4282 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4291 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4302 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" usebox="none">
4313 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4333 \begin_layout Plain Layout
4341 <cell alignment="center" valignment="top" usebox="none">
4344 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4353 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4364 \begin_layout Plain Layout
4372 <cell alignment="center" valignment="top" usebox="none">
4375 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4384 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4395 \begin_layout Plain Layout
4403 <cell alignment="center" valignment="top" usebox="none">
4406 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4415 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4426 \begin_layout Plain Layout
4434 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4437 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4446 \begin_layout Plain Layout
4454 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Plain Layout
4463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4466 \begin_layout Plain Layout
4472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="center" valignment="top" usebox="none">
4497 \begin_layout Plain Layout
4503 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="center" valignment="top" usebox="none">
4528 \begin_layout Plain Layout
4534 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="center" valignment="top" usebox="none">
4559 \begin_layout Plain Layout
4565 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="center" valignment="top" usebox="none">
4590 \begin_layout Plain Layout
4596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="center" valignment="top" usebox="none">
4621 \begin_layout Plain Layout
4627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="center" valignment="top" usebox="none">
4652 \begin_layout Plain Layout
4658 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="center" valignment="top" usebox="none">
4683 \begin_layout Plain Layout
4689 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="center" valignment="top" usebox="none">
4714 \begin_layout Plain Layout
4720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="center" valignment="top" usebox="none">
4745 \begin_layout Plain Layout
4751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="center" valignment="top" usebox="none">
4776 \begin_layout Plain Layout
4782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="center" valignment="top" usebox="none">
4807 \begin_layout Plain Layout
4813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="center" valignment="top" usebox="none">
4838 \begin_layout Plain Layout
4844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="center" valignment="top" usebox="none">
4869 \begin_layout Plain Layout
4875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="center" valignment="top" usebox="none">
4900 \begin_layout Plain Layout
4906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="center" valignment="top" usebox="none">
4931 \begin_layout Plain Layout
4937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="center" valignment="top" usebox="none">
4962 \begin_layout Plain Layout
4968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="center" valignment="top" usebox="none">
4993 \begin_layout Plain Layout
4999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="center" valignment="top" usebox="none">
5024 \begin_layout Plain Layout
5030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="center" valignment="top" usebox="none">
5055 \begin_layout Plain Layout
5061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="center" valignment="top" usebox="none">
5086 \begin_layout Plain Layout
5092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="center" valignment="top" usebox="none">
5117 \begin_layout Plain Layout
5123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="center" valignment="top" usebox="none">
5148 \begin_layout Plain Layout
5154 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="center" valignment="top" usebox="none">
5179 \begin_layout Plain Layout
5185 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5188 \begin_layout Plain Layout
5196 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5199 \begin_layout Plain Layout
5207 <cell alignment="center" valignment="top" usebox="none">
5210 \begin_layout Plain Layout
5216 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5219 \begin_layout Plain Layout
5227 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5230 \begin_layout Plain Layout
5238 <cell alignment="center" valignment="top" usebox="none">
5241 \begin_layout Plain Layout
5247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5250 \begin_layout Plain Layout
5258 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5261 \begin_layout Plain Layout
5269 <cell alignment="center" valignment="top" usebox="none">
5272 \begin_layout Plain Layout
5278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5281 \begin_layout Plain Layout
5289 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5292 \begin_layout Plain Layout
5300 <cell alignment="center" valignment="top" usebox="none">
5303 \begin_layout Plain Layout
5309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5312 \begin_layout Plain Layout
5320 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5323 \begin_layout Plain Layout
5331 <cell alignment="center" valignment="top" usebox="none">
5334 \begin_layout Plain Layout
5340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5343 \begin_layout Plain Layout
5351 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5354 \begin_layout Plain Layout
5362 <cell alignment="center" valignment="top" usebox="none">
5365 \begin_layout Plain Layout
5371 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5385 \begin_layout Plain Layout
5393 <cell alignment="center" valignment="top" usebox="none">
5396 \begin_layout Plain Layout
5402 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5405 \begin_layout Plain Layout
5413 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5416 \begin_layout Plain Layout
5424 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5427 \begin_layout Plain Layout
5433 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5436 \begin_layout Plain Layout
5443 <row endlastfoot="true">
5444 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5447 \begin_layout Plain Layout
5453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5456 \begin_layout Plain Layout
5462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5465 \begin_layout Plain Layout
5480 \begin_layout Plain Layout
5484 addtocounter{table}{-1}
5490 \begin_inset Note Note
5493 \begin_layout Plain Layout
5494 See the first greyed-out note in section
5495 \begin_inset space ~
5499 \begin_inset CommandInset ref
5501 reference "subsec:Multi-page-Table-Captions"
5505 for an explanation of this command.
5513 \begin_layout Subsection
5514 Footnotes in Multi-page tables
5515 \begin_inset CommandInset label
5517 name "subsec:Footnotes-in-Multi-page"
5522 \begin_inset Index idx
5525 \begin_layout Plain Layout
5526 Table ! Multi-page Table ! Footnotes
5534 \begin_layout Standard
5535 Footnotes can be inserted to every Multi-page table cell.
5536 They appear at the bottom of the page where the table cell with the footnote
5539 \begin_inset space ~
5543 \begin_inset CommandInset ref
5545 reference "tab:DiffCaptions"
5549 has for example a footnote.
5552 \begin_layout Subsection
5553 Multi-page Table Alignment
5554 \begin_inset Index idx
5557 \begin_layout Plain Layout
5558 Table ! Multi-page Table ! Alignment
5566 \begin_layout Standard
5567 The horizontal alignment of multi-page tables can be set in the table settings
5569 For left- and right-alignment the table will be directly at the page border.
5570 To add space between the table and the border one has to set the alignment
5571 to center and change the value of the \SpecialChar LaTeX
5584 by inserting this line as \SpecialChar TeX
5585 Code before the multi-page table:
5588 \begin_layout Standard
5598 \begin_layout Standard
5599 The value can have any of the units listed in Table
5600 \begin_inset space ~
5604 \begin_inset CommandInset ref
5606 reference "tab:Units"
5617 controls the horizontal distance from the left page border to the multi-page
5624 the distance from the right side.
5625 The default value for both lengths is
5631 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5635 \begin_layout Standard
5636 The following multi-page table was centered and
5652 \begin_layout Plain Layout
5668 \begin_layout Standard
5669 \begin_inset Tabular
5670 <lyxtabular version="3" rows="5" columns="5">
5671 <features islongtable="true" longtabularalignment="center">
5672 <column alignment="center" valignment="top">
5673 <column alignment="center" valignment="top" width="0pt">
5674 <column alignment="center" valignment="top">
5675 <column alignment="center" valignment="top">
5676 <column alignment="center" valignment="top">
5678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5681 \begin_layout Plain Layout
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5690 \begin_layout Plain Layout
5696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5699 \begin_layout Plain Layout
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5708 \begin_layout Plain Layout
5714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5717 \begin_layout Plain Layout
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5728 \begin_layout Plain Layout
5734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5737 \begin_layout Plain Layout
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5746 \begin_layout Plain Layout
5752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5755 \begin_layout Plain Layout
5761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5764 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Plain Layout
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5793 \begin_layout Plain Layout
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5802 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5811 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5858 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5896 \begin_layout Plain Layout
5902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5905 \begin_layout Plain Layout
5920 \begin_layout Plain Layout
5937 \begin_layout Plain Layout
5941 addtocounter{table}{-1}
5947 \begin_inset Note Note
5950 \begin_layout Plain Layout
5951 See the first greyed-out note in section
5952 \begin_inset space ~
5956 \begin_inset CommandInset ref
5958 reference "subsec:Multi-page-Table-Captions"
5962 for an explanation of this command.
5970 \begin_layout Subsection
5971 Multi-page Table Captions
5972 \begin_inset Index idx
5975 \begin_layout Plain Layout
5976 Table ! Multi-page Table ! Captions
5982 \begin_inset CommandInset label
5984 name "subsec:Multi-page-Table-Captions"
5991 \begin_layout Standard
5992 A multi-page table cannot be put into a table float because floats can only
5994 But the caption environment of floats can also be used for multi-page tables
5995 when you use the multi-page table option
5999 as described in sec.
6000 \begin_inset space \thinspace{}
6004 \begin_inset CommandInset ref
6006 reference "sec:Multi-page-Tables"
6011 Only one table row should contain a caption, either a header or a footer
6015 \begin_layout Standard
6016 Here is a short multi-page table to see how it works:
6019 \begin_layout Standard
6020 \begin_inset Tabular
6021 <lyxtabular version="3" rows="6" columns="5">
6022 <features islongtable="true" longtabularalignment="center">
6023 <column alignment="center" valignment="top">
6024 <column alignment="center" valignment="top">
6025 <column alignment="center" valignment="top">
6026 <column alignment="center" valignment="top">
6027 <column alignment="center" valignment="top">
6028 <row endfirsthead="true" caption="true">
6029 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6032 \begin_layout Plain Layout
6033 \begin_inset Caption Standard
6035 \begin_layout Plain Layout
6036 Multi-page table with caption
6037 \begin_inset Argument 1
6040 \begin_layout Plain Layout
6056 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6059 \begin_layout Plain Layout
6065 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6068 \begin_layout Plain Layout
6074 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6077 \begin_layout Plain Layout
6083 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6086 \begin_layout Plain Layout
6094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6097 \begin_layout Plain Layout
6103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6106 \begin_layout Plain Layout
6112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6115 \begin_layout Plain Layout
6121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6124 \begin_layout Plain Layout
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6133 \begin_layout Plain Layout
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6144 \begin_layout Plain Layout
6150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6153 \begin_layout Plain Layout
6159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6162 \begin_layout Plain Layout
6168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6171 \begin_layout Plain Layout
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6180 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6191 \begin_layout Plain Layout
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6209 \begin_layout Plain Layout
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6227 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6274 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6321 \begin_layout Plain Layout
6335 \begin_layout Standard
6336 \begin_inset VSpace medskip
6340 \begin_inset Note Greyedout
6343 \begin_layout Plain Layout
6347 \begin_inset space ~
6352 The table number is increased for every multi-page table, even if you did
6353 not set a caption for it.
6354 For this reason you could have the case that e.
6355 \begin_inset space \thinspace{}
6359 \begin_inset space \space{}
6363 \begin_inset space ~
6367 \begin_inset space ~
6370 2.1 in the list of tables if there are two multi-page tables without captions.
6371 To avoid this you can add the following command in \SpecialChar TeX
6372 Code after every multi-page
6373 table without a caption:
6376 \begin_layout Plain Layout
6381 addtocounter{table}{-1}
6384 \begin_layout Plain Layout
6385 This is not needed when none of your multi-page tables has a caption and
6386 you add the following code to the document preamble:
6389 \begin_layout Plain Layout
6399 \begin_inset Newline newline
6410 addtocounter{table}{-1}}
6418 \begin_layout Standard
6419 \begin_inset Note Greyedout
6422 \begin_layout Plain Layout
6426 \begin_inset space ~
6436 \begin_inset Index idx
6439 \begin_layout Plain Layout
6441 -packages ! hyperref
6454 dialog to link cross-references, the link to a multi-page table caption
6455 will always point to the beginning of the document.
6463 \begin_layout Subsubsection
6464 References to multi-page tables
6465 \begin_inset Index idx
6468 \begin_layout Plain Layout
6469 Table ! Multi-page Table ! References
6477 \begin_layout Standard
6478 \begin_inset Tabular
6479 <lyxtabular version="3" rows="6" columns="5">
6480 <features islongtable="true" longtabularalignment="center">
6481 <column alignment="center" valignment="top">
6482 <column alignment="center" valignment="top">
6483 <column alignment="center" valignment="top">
6484 <column alignment="center" valignment="top">
6485 <column alignment="center" valignment="top">
6486 <row endfirsthead="true" caption="true">
6487 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6490 \begin_layout Plain Layout
6491 \begin_inset Caption Standard
6493 \begin_layout Plain Layout
6494 Referenced multi-page table
6495 \begin_inset CommandInset label
6497 name "tab:Referenced-multi-page-table"
6511 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6514 \begin_layout Plain Layout
6520 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6523 \begin_layout Plain Layout
6529 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6532 \begin_layout Plain Layout
6538 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6541 \begin_layout Plain Layout
6549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6552 \begin_layout Plain Layout
6558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6561 \begin_layout Plain Layout
6567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6570 \begin_layout Plain Layout
6576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6579 \begin_layout Plain Layout
6585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6588 \begin_layout Plain Layout
6596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6599 \begin_layout Plain Layout
6605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6608 \begin_layout Plain Layout
6614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6617 \begin_layout Plain Layout
6623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6626 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6635 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6646 \begin_layout Plain Layout
6652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6655 \begin_layout Plain Layout
6661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6664 \begin_layout Plain Layout
6670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6682 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6693 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6702 \begin_layout Plain Layout
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6729 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6740 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6749 \begin_layout Plain Layout
6755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6758 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6776 \begin_layout Plain Layout
6790 \begin_layout Standard
6791 To reference a multi-page table, insert a label into the caption.
6794 \begin_layout Standard
6795 This is a reference to Table
6796 \begin_inset space ~
6800 \begin_inset CommandInset ref
6802 reference "tab:Referenced-multi-page-table"
6809 \begin_layout Standard
6810 The caption layout can be set together with all other captions of your document
6811 using the \SpecialChar LaTeX
6817 \begin_inset Index idx
6820 \begin_layout Plain Layout
6828 \begin_inset space ~
6832 \begin_inset CommandInset ref
6834 reference "sec:Caption-Formatting"
6841 \begin_layout Subsubsection
6843 \begin_inset Index idx
6846 \begin_layout Plain Layout
6847 Table ! Multi-page Table ! Caption Width
6855 \begin_layout Standard
6856 The maximal width of caption lines is defined by the length
6863 Its default value is 4
6864 \begin_inset space \thinspace{}
6868 To change it add the following command to your document preamble or as
6870 Code into your document before the multi-page table that should be affected
6873 \begin_layout Standard
6883 \begin_layout Standard
6888 can have one of the units listed in appendix
6889 \begin_inset space ~
6893 \begin_inset CommandInset ref
6895 reference "cha:Units-available-in"
6902 \begin_layout Standard
6903 The following tables show the difference:
6906 \begin_layout Standard
6907 \begin_inset Tabular
6908 <lyxtabular version="3" rows="6" columns="5">
6909 <features islongtable="true" longtabularalignment="center">
6910 <column alignment="center" valignment="top">
6911 <column alignment="center" valignment="top">
6912 <column alignment="center" valignment="top">
6913 <column alignment="center" valignment="top">
6914 <column alignment="center" valignment="top">
6915 <row endfirsthead="true" caption="true">
6916 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6919 \begin_layout Plain Layout
6920 \begin_inset Caption Standard
6922 \begin_layout Plain Layout
6923 Long full title with default width long full title with default width long
6924 full title with default width
6925 \begin_inset Argument 1
6928 \begin_layout Plain Layout
6929 caption with default width
6944 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6947 \begin_layout Plain Layout
6953 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6956 \begin_layout Plain Layout
6962 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6965 \begin_layout Plain Layout
6971 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6974 \begin_layout Plain Layout
6982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6985 \begin_layout Plain Layout
6991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6994 \begin_layout Plain Layout
7000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7003 \begin_layout Plain Layout
7009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7021 \begin_layout Plain Layout
7029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7041 \begin_layout Plain Layout
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7068 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7088 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7115 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7162 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7209 \begin_layout Plain Layout
7223 \begin_layout Standard
7227 \begin_layout Plain Layout
7239 \begin_inset Tabular
7240 <lyxtabular version="3" rows="6" columns="5">
7241 <features islongtable="true" longtabularalignment="center">
7242 <column alignment="center" valignment="top">
7243 <column alignment="center" valignment="top">
7244 <column alignment="center" valignment="top">
7245 <column alignment="center" valignment="top">
7246 <column alignment="center" valignment="top">
7247 <row endfirsthead="true" caption="true">
7248 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7251 \begin_layout Plain Layout
7252 \begin_inset Caption Standard
7254 \begin_layout Plain Layout
7255 Long full title with width set to 5
7256 \begin_inset space \thinspace{}
7259 cm long full title with width set to 5
7260 \begin_inset space \thinspace{}
7263 cm long full title with width set to 5
7264 \begin_inset space \thinspace{}
7268 \begin_inset Argument 1
7271 \begin_layout Plain Layout
7273 \begin_inset space \thinspace{}
7277 \begin_inset space \thinspace{}
7281 \begin_inset space \thinspace{}
7299 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7302 \begin_layout Plain Layout
7308 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7311 \begin_layout Plain Layout
7317 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7320 \begin_layout Plain Layout
7326 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7329 \begin_layout Plain Layout
7337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7340 \begin_layout Plain Layout
7346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7349 \begin_layout Plain Layout
7355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7358 \begin_layout Plain Layout
7364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7367 \begin_layout Plain Layout
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7376 \begin_layout Plain Layout
7384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7387 \begin_layout Plain Layout
7393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7396 \begin_layout Plain Layout
7402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7405 \begin_layout Plain Layout
7411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7414 \begin_layout Plain Layout
7420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7423 \begin_layout Plain Layout
7431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7434 \begin_layout Plain Layout
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7443 \begin_layout Plain Layout
7449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7461 \begin_layout Plain Layout
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7470 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7490 \begin_layout Plain Layout
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Plain Layout
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7508 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7537 \begin_layout Plain Layout
7543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7555 \begin_layout Plain Layout
7561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7564 \begin_layout Plain Layout
7578 \begin_layout Standard
7582 \begin_layout Plain Layout
7596 \begin_layout Standard
7597 \begin_inset Note Greyedout
7600 \begin_layout Plain Layout
7605 When the \SpecialChar LaTeX
7611 \begin_inset Index idx
7614 \begin_layout Plain Layout
7621 is used, as in this document, the full page width is used for the caption
7622 when you use the default value of 4
7623 \begin_inset space \thinspace{}
7633 To get in this case exactly a 4
7634 \begin_inset space \thinspace{}
7637 in wide caption, you can either use a value slightly different from 4.0
7638 \begin_inset space \thinspace{}
7642 \begin_inset space \thinspace{}
7646 \begin_inset space \space{}
7650 \begin_inset space \thinspace{}
7653 in, or the \SpecialChar LaTeX
7658 captionsetup{width=value}
7660 that is provided by the
7672 \begin_layout Subsubsection
7673 Different Captions for Table Pages
7674 \begin_inset Index idx
7677 \begin_layout Plain Layout
7678 Table ! Multi-page Table ! Different Captions for Pages
7686 \begin_layout Standard
7687 When the table captions for the following pages should differ from the one
7688 of the first table page, mark a empty row as header which contains a caption.
7689 Then right-click on the caption and select in the context menu
7692 \begin_inset space ~
7699 \begin_inset space ~
7703 \begin_inset CommandInset ref
7705 reference "tab:DiffCaptions"
7709 is an example of a multi-page table with different heading where the second
7710 caption does not include the table number.
7711 \begin_inset Separator latexpar
7717 \begin_layout Standard
7719 \begin_inset Tabular
7720 <lyxtabular version="3" rows="59" columns="3">
7721 <features islongtable="true" longtabularalignment="center">
7722 <column alignment="left" valignment="top" width="0cm">
7723 <column alignment="left" valignment="top" width="0pt">
7724 <column alignment="center" valignment="top" width="0pt">
7725 <row endfirsthead="true" caption="true">
7726 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7729 \begin_layout Plain Layout
7730 \begin_inset Caption Standard
7732 \begin_layout Plain Layout
7734 \begin_inset CommandInset label
7736 name "tab:DiffCaptions"
7741 \begin_inset Argument 1
7744 \begin_layout Plain Layout
7760 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7763 \begin_layout Plain Layout
7769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7772 \begin_layout Plain Layout
7779 <row endfirsthead="true">
7780 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Plain Layout
7786 Example Phone List (ignore the names)
7791 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7794 \begin_layout Plain Layout
7800 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7803 \begin_layout Plain Layout
7810 <row endfirsthead="true">
7811 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7814 \begin_layout Plain Layout
7822 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7825 \begin_layout Plain Layout
7831 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7834 \begin_layout Plain Layout
7843 <row endhead="true" caption="true">
7844 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7847 \begin_layout Plain Layout
7848 \begin_inset Caption Unnumbered
7850 \begin_layout Plain Layout
7851 Continued Example Phone List
7861 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7864 \begin_layout Plain Layout
7870 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7873 \begin_layout Plain Layout
7880 <row endhead="true">
7881 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7892 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7895 \begin_layout Plain Layout
7901 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7904 \begin_layout Plain Layout
7911 <row endhead="true">
7912 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7926 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7935 \begin_layout Plain Layout
7944 <row endfoot="true">
7945 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7948 \begin_layout Plain Layout
7949 continued on next page
7954 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7957 \begin_layout Plain Layout
7963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7988 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7997 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8019 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8050 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8081 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8112 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8121 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8143 \begin_layout Plain Layout
8149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8152 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8174 \begin_layout Plain Layout
8180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8183 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8214 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8245 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8276 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8307 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8338 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8369 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8400 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8411 \begin_layout Plain Layout
8420 \begin_layout Plain Layout
8431 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8434 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8443 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8465 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8474 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8496 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8527 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8558 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8589 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8620 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8651 \begin_layout Plain Layout
8657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8660 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8682 \begin_layout Plain Layout
8688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8691 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8702 \begin_layout Plain Layout
8710 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8713 \begin_layout Plain Layout
8719 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8722 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8744 \begin_layout Plain Layout
8750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8753 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8775 \begin_layout Plain Layout
8781 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8784 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8806 \begin_layout Plain Layout
8812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8815 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8837 \begin_layout Plain Layout
8843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8846 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8868 \begin_layout Plain Layout
8874 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8877 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8899 \begin_layout Plain Layout
8905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8908 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8936 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8939 \begin_layout Plain Layout
8947 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8950 \begin_layout Plain Layout
8956 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9021 \begin_layout Plain Layout
9027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9052 \begin_layout Plain Layout
9058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9083 \begin_layout Plain Layout
9089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9114 \begin_layout Plain Layout
9120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9145 \begin_layout Plain Layout
9151 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9176 \begin_layout Plain Layout
9182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9207 \begin_layout Plain Layout
9213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9238 \begin_layout Plain Layout
9244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9269 \begin_layout Plain Layout
9275 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9278 \begin_layout Plain Layout
9286 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9300 \begin_layout Plain Layout
9306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9309 \begin_layout Plain Layout
9317 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9320 \begin_layout Plain Layout
9328 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9331 \begin_layout Plain Layout
9337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9340 \begin_layout Plain Layout
9348 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9351 \begin_layout Plain Layout
9359 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9362 \begin_layout Plain Layout
9368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9371 \begin_layout Plain Layout
9379 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9382 \begin_layout Plain Layout
9390 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9393 \begin_layout Plain Layout
9399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9402 \begin_layout Plain Layout
9410 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9413 \begin_layout Plain Layout
9421 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9424 \begin_layout Plain Layout
9430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9433 \begin_layout Plain Layout
9441 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9444 \begin_layout Plain Layout
9452 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9455 \begin_layout Plain Layout
9461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9464 \begin_layout Plain Layout
9472 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9475 \begin_layout Plain Layout
9483 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9486 \begin_layout Plain Layout
9492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9495 \begin_layout Plain Layout
9503 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9506 \begin_layout Plain Layout
9514 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9517 \begin_layout Plain Layout
9523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9526 \begin_layout Plain Layout
9534 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9537 \begin_layout Plain Layout
9545 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9548 \begin_layout Plain Layout
9554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9557 \begin_layout Plain Layout
9565 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9568 \begin_layout Plain Layout
9576 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9579 \begin_layout Plain Layout
9585 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9588 \begin_layout Plain Layout
9602 \begin_layout Section
9603 Special Multi-page Table Issues
9604 \begin_inset CommandInset label
9606 name "sec:Special-Longtable-Issues"
9613 \begin_layout Subsection
9614 Multi-page Table Calculation
9615 \begin_inset Index idx
9618 \begin_layout Plain Layout
9619 Table ! Multi-page Table ! Calculation
9627 \begin_layout Standard
9629 calculates the height of table pages and their page breaks using so called
9631 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9633 The default value was historically set to only 20
9634 \begin_inset space ~
9638 If you are using multi-page tables with many pages this may slow down the
9639 creation of your document.
9640 You can safely increase the chunk size to values of 100
9641 \begin_inset space \thinspace{}
9645 \begin_inset space \thinspace{}
9648 1000 by adding this command line to your document preamble:
9651 \begin_layout Standard
9656 setcounter{LTchunksize}{100}
9659 \begin_layout Subsection
9660 Floats and Multi-page Tables
9661 \begin_inset Index idx
9664 \begin_layout Plain Layout
9665 Table ! Multi-page Table ! Floats
9673 \begin_layout Standard
9674 There might be problems when a float appears on the same page where a multi-page
9676 To avoid such a situation, insert a
9677 \begin_inset Quotes eld
9681 \begin_inset Quotes erd
9686 Insert\SpecialChar menuseparator
9687 Formatting\SpecialChar menuseparator
9689 \begin_inset space ~
9694 ) before your multi-page table.
9697 \begin_layout Subsection
9699 \begin_inset Index idx
9702 \begin_layout Plain Layout
9703 Table ! Multi-page Table ! Forced Page Breaks
9711 \begin_layout Standard
9712 By default tables are only broken between rows.
9713 If you have a cell with multiples lines and want to have a page break within
9714 the cell, insert the new line command
9715 \begin_inset Quotes eld
9727 \begin_inset Quotes erd
9731 Code at the point of the cell where it can be broken.
9740 command you have to insert in \SpecialChar TeX
9742 \begin_inset Quotes eld
9750 \begin_inset Quotes erd
9753 characters as the number of the following table columns.
9758 is the character to separate table cells.
9759 Write in \SpecialChar TeX
9764 the content of the corresponding following cell and delete the content
9766 \begin_inset Newline newline
9777 command, insert as many
9781 characters as the number of table columns before the current column.
9783 \begin_inset space ~
9787 \begin_inset CommandInset ref
9789 reference "tab:ForcedPagebreak"
9793 the cell that should be broken is in the second column followed by another
9795 Therefore the following command was inserted in the cell as \SpecialChar TeX
9798 \begin_inset Quotes eld
9806 \begin_inset Quotes erd
9812 \begin_layout Standard
9822 \begin_inset Newline newline
9828 \begin_layout Standard
9830 \begin_inset Quotes eld
9834 \begin_inset Quotes erd
9837 in the third column of the row was deleted.
9844 is only needed when a page break should definitely occur at this position,
9845 otherwise it would be a conditional break.
9846 If your footer row of the multi-page table has for a certain reason no
9847 upper line but you would have a horizontal line where the cell is broken,
9848 use this command instead:
9851 \begin_layout Standard
9859 \begin_inset Newline newline
9867 \begin_layout Standard
9868 When the cell to be broken is in the last column, the command
9871 \begin_layout Standard
9881 \begin_layout Standard
9882 must be inserted as \SpecialChar TeX
9883 Code at the beginning of the cell.
9884 This ensures that the part of the cell that will be displayed on the new
9885 page appears with the full width.
9886 \begin_inset Separator latexpar
9892 \begin_layout Standard
9894 \begin_inset Tabular
9895 <lyxtabular version="3" rows="38" columns="3">
9896 <features islongtable="true" longtabularalignment="center">
9897 <column alignment="left" valignment="top" width="0cm">
9898 <column alignment="left" valignment="top" width="3cm">
9899 <column alignment="center" valignment="top" width="0pt">
9900 <row endfirsthead="true" caption="true">
9901 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9904 \begin_layout Plain Layout
9905 \begin_inset Caption Standard
9907 \begin_layout Plain Layout
9908 Table with forced page break in table cell
9909 \begin_inset CommandInset label
9911 name "tab:ForcedPagebreak"
9916 \begin_inset Argument 1
9919 \begin_layout Plain Layout
9920 Table with forced page break in table cell
9935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9954 <row endfirsthead="true">
9955 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9961 Example Phone List (ignore the names)
9966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9978 \begin_layout Plain Layout
9985 <row endfirsthead="true">
9986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9989 \begin_layout Plain Layout
9997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10000 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10009 \begin_layout Plain Layout
10018 <row endhead="true" caption="true">
10019 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10022 \begin_layout Plain Layout
10023 \begin_inset Caption Unnumbered
10025 \begin_layout Plain Layout
10026 Continued Example Phone List
10036 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10045 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10048 \begin_layout Plain Layout
10055 <row endhead="true">
10056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10070 \begin_layout Plain Layout
10076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10079 \begin_layout Plain Layout
10086 <row endhead="true">
10087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10090 \begin_layout Plain Layout
10098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10101 \begin_layout Plain Layout
10107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10110 \begin_layout Plain Layout
10119 <row endfoot="true">
10120 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10123 \begin_layout Plain Layout
10124 continued on next page
10129 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10132 \begin_layout Plain Layout
10138 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10141 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10152 \begin_layout Plain Layout
10160 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10163 \begin_layout Plain Layout
10169 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10172 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10194 \begin_layout Plain Layout
10200 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10203 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10225 \begin_layout Plain Layout
10231 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10234 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10256 \begin_layout Plain Layout
10262 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10265 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10287 \begin_layout Plain Layout
10293 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10296 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10318 \begin_layout Plain Layout
10324 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10327 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10349 \begin_layout Plain Layout
10355 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10358 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10380 \begin_layout Plain Layout
10386 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10389 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10411 \begin_layout Plain Layout
10417 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10420 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10442 \begin_layout Plain Layout
10448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10451 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10473 \begin_layout Plain Layout
10479 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10482 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10493 \begin_layout Plain Layout
10501 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10504 \begin_layout Plain Layout
10510 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10513 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10524 \begin_layout Plain Layout
10532 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10535 \begin_layout Plain Layout
10541 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10544 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10566 \begin_layout Plain Layout
10572 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10575 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10597 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10628 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10659 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10690 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10721 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10752 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10772 \begin_layout Plain Layout
10780 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10783 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10803 \begin_layout Plain Layout
10811 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10814 \begin_layout Plain Layout
10820 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10834 \begin_layout Plain Layout
10842 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10847 Fürst von Montecompatri, 11.
10848 Fürst von Sulmona und Vivaro, 10.
10849 Fürst von Rossano, 5.
10850 Herzog von Canemorte, 11.
10851 Herzog von Palombara, 5.
10852 Herzog von Castelchiodato,
10856 \begin_layout Plain Layout
10867 \begin_layout Plain Layout
10875 Herzog von Poggionativo, 11.
10876 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10877 Graf von Valinfreda, 11.
10878 Baron von Cropalati, 11.
10879 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10884 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10887 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10898 \begin_layout Plain Layout
10906 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10909 \begin_layout Plain Layout
10915 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10918 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10949 \begin_layout Plain Layout
10957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10960 \begin_layout Plain Layout
10968 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10971 \begin_layout Plain Layout
10977 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10980 \begin_layout Plain Layout
10988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10991 \begin_layout Plain Layout
10999 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11002 \begin_layout Plain Layout
11008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11011 \begin_layout Plain Layout
11019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11022 \begin_layout Plain Layout
11030 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11033 \begin_layout Plain Layout
11039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11042 \begin_layout Plain Layout
11050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11053 \begin_layout Plain Layout
11061 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11064 \begin_layout Plain Layout
11070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11073 \begin_layout Plain Layout
11081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11084 \begin_layout Plain Layout
11092 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11095 \begin_layout Plain Layout
11101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11104 \begin_layout Plain Layout
11112 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11115 \begin_layout Plain Layout
11123 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11126 \begin_layout Plain Layout
11132 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11135 \begin_layout Plain Layout
11149 \begin_layout Section
11150 Multiple Lines, Columns and Rows
11153 \begin_layout Subsection
11154 Multiple Lines in Table Cells
11155 \begin_inset CommandInset label
11157 name "subsec:Multiple-Lines-in"
11162 \begin_inset Index idx
11165 \begin_layout Plain Layout
11166 Multiple Lines in Table Cells
11172 \begin_inset Index idx
11175 \begin_layout Plain Layout
11184 \begin_layout Standard
11186 \begin_inset Float table
11192 \begin_layout Plain Layout
11193 \begin_inset Caption Standard
11195 \begin_layout Plain Layout
11196 \begin_inset CommandInset label
11198 name "tab:Table-with-multiple"
11202 Table with multiple lines in cells
11210 \begin_layout Plain Layout
11212 \begin_inset Tabular
11213 <lyxtabular version="3" rows="3" columns="3">
11214 <features tabularvalignment="middle">
11215 <column alignment="center" valignment="middle" width="2.5cm">
11216 <column alignment="center" valignment="middle">
11217 <column alignment="center" valignment="middle">
11219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11222 \begin_layout Plain Layout
11224 \begin_inset Newline linebreak
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11244 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11264 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11273 \begin_layout Plain Layout
11281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11284 \begin_layout Plain Layout
11290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11293 \begin_layout Plain Layout
11299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11302 \begin_layout Plain Layout
11321 \begin_layout Standard
11322 Setting a fixed width for a column enables you to enter text as a paragraph
11323 with multiple lines and hyphenation.
11326 \begin_layout Standard
11328 \begin_inset space ~
11332 \begin_inset CommandInset ref
11334 reference "tab:Table-with-multiple"
11338 , create a 3×3 table, mark the first cell and right-click on it.
11339 In the appearing table dialog we set a cell width of 2.5
11340 \begin_inset space \thinspace{}
11343 cm and choose centered for the vertical and horizontal alignment.
11344 The vertical alignment is used for all cells of the row.
11345 As our text is smaller than 2.5
11346 \begin_inset space \thinspace{}
11349 cm, only one line will appear.
11350 To get two lines, a justified line break (shortcut
11353 arg "newline-insert linebreak"
11357 If the text is wider than the set cell width, it will automatically be
11358 broken to several lines.
11361 \begin_layout Standard
11362 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11363 by \SpecialChar LaTeX
11364 if it is the first entry.
11365 Therefore you need to insert something to prevent the word not being the
11367 So add a horizontal space of 0
11368 \begin_inset space \thinspace{}
11371 pt before the word.
11372 As the space is zero, it doesn't change the output.
11374 \begin_inset space ~
11378 \begin_inset CommandInset ref
11380 reference "tab:Table-with-and"
11387 \begin_layout Standard
11388 \begin_inset Float table
11394 \begin_layout Plain Layout
11395 \begin_inset Caption Standard
11397 \begin_layout Plain Layout
11398 \begin_inset CommandInset label
11400 name "tab:Table-with-and"
11404 Table with and without hyphenation
11412 \begin_layout Plain Layout
11413 \begin_inset space \hfill{}
11417 \begin_inset Tabular
11418 <lyxtabular version="3" rows="3" columns="3">
11419 <features tabularvalignment="middle">
11420 <column alignment="center" valignment="middle" width="2.5cm">
11421 <column alignment="center" valignment="middle">
11422 <column alignment="center" valignment="middle">
11424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11427 \begin_layout Plain Layout
11428 verylongtablecellword
11433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11445 \begin_layout Plain Layout
11453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11456 \begin_layout Plain Layout
11462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11465 \begin_layout Plain Layout
11471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11474 \begin_layout Plain Layout
11482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11485 \begin_layout Plain Layout
11491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11494 \begin_layout Plain Layout
11500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11503 \begin_layout Plain Layout
11515 \begin_inset space \hfill{}
11519 \begin_inset Tabular
11520 <lyxtabular version="3" rows="3" columns="3">
11521 <features tabularvalignment="middle">
11522 <column alignment="center" valignment="middle" width="2.5cm">
11523 <column alignment="center" valignment="middle">
11524 <column alignment="center" valignment="middle">
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11529 \begin_layout Plain Layout
11530 \begin_inset space \hspace{}
11534 verylongtablecellword
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11551 \begin_layout Plain Layout
11559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11562 \begin_layout Plain Layout
11568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11580 \begin_layout Plain Layout
11588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11591 \begin_layout Plain Layout
11597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11600 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11609 \begin_layout Plain Layout
11621 \begin_inset space \hfill{}
11632 \begin_layout Subsection
11634 \begin_inset CommandInset label
11636 name "subsec:Multicolumns"
11641 \begin_inset Index idx
11644 \begin_layout Plain Layout
11651 \begin_inset Index idx
11654 \begin_layout Plain Layout
11655 Table ! Multicolumns
11663 \begin_layout Subsubsection
11667 \begin_layout Standard
11668 To merge cells over multiple columns, select as many cells within a row
11669 as you want to merge and use either the table-toolbar button
11672 arg "tabular-feature multicolumn"
11677 Edit\SpecialChar menuseparator
11678 Table\SpecialChar menuseparator
11681 , or right click on the marked cells and choose
11685 in the context menu.
11688 \begin_layout Standard
11689 Multicolumns have their own cell settings.
11690 That means changing cell borders, cell alignment, and the width only affects
11692 Here is an example table with a multicolumn cell in the first row and one
11693 in the last row without the upper border:
11694 \begin_inset Separator latexpar
11700 \begin_layout Standard
11702 \begin_inset Tabular
11703 <lyxtabular version="3" rows="3" columns="4">
11704 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11705 <column alignment="center" valignment="top" width="0pt">
11706 <column alignment="center" valignment="middle">
11707 <column alignment="center" valignment="top" width="0in">
11708 <column alignment="center" valignment="top" width="0pt">
11710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11713 \begin_layout Plain Layout
11719 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11722 \begin_layout Plain Layout
11728 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11731 \begin_layout Plain Layout
11737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11740 \begin_layout Plain Layout
11748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11751 \begin_layout Plain Layout
11766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11769 \begin_layout Plain Layout
11775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11778 \begin_layout Plain Layout
11784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11787 \begin_layout Plain Layout
11795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11798 \begin_layout Plain Layout
11804 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11807 \begin_layout Plain Layout
11813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11816 \begin_layout Plain Layout
11822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11825 \begin_layout Plain Layout
11839 \begin_layout Subsubsection
11840 Multicolumn Calculations
11841 \begin_inset CommandInset label
11843 name "subsec:Multicolumn-Calculations"
11848 \begin_inset Index idx
11851 \begin_layout Plain Layout
11852 Multicolumns ! Calculations
11860 \begin_layout Standard
11862 supports multicolumns directly, but we have to take account of the cell
11863 width of the columns spanned by the multicolumn cell.
11866 \begin_layout Standard
11867 \begin_inset Float table
11873 \begin_layout Plain Layout
11874 \begin_inset Caption Standard
11876 \begin_layout Plain Layout
11877 \begin_inset CommandInset label
11879 name "tab:Table-with-centered"
11883 Table with centered multicolumn text above two columns that have exactly
11884 half the width of the multicolumn cell
11885 \begin_inset Argument 1
11888 \begin_layout Plain Layout
11889 Perfect multicolumn table
11902 \begin_layout Plain Layout
11904 \begin_inset Tabular
11905 <lyxtabular version="3" rows="3" columns="3">
11906 <features tabularvalignment="middle">
11907 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11908 <column alignment="center" valignment="middle">
11909 <column alignment="center" valignment="top">
11911 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11914 \begin_layout Plain Layout
11915 multiple lines multicolumn
11920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11923 \begin_layout Plain Layout
11929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11932 \begin_layout Plain Layout
11940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11943 \begin_layout Plain Layout
11949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11952 \begin_layout Plain Layout
11958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11961 \begin_layout Plain Layout
11969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11972 \begin_layout Plain Layout
11978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11981 \begin_layout Plain Layout
11987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11990 \begin_layout Plain Layout
12009 \begin_layout Standard
12010 To create for example Table
12011 \begin_inset space ~
12015 \begin_inset CommandInset ref
12017 reference "tab:Table-with-centered"
12021 , mark the first two cells in the first row of a 3×3 table and right-click
12023 Now choose for this cell
12032 \begin_inset space \thinspace{}
12035 cm in the table dialog.
12036 The merged columns should have exactly half the width of the multicolumn
12037 cell, so that you would set a width of 1.25
12038 \begin_inset space \thinspace{}
12041 cm for the first column.
12042 The second column has then automatically a width of 1.25
12043 \begin_inset space \thinspace{}
12046 cm (multicolumn width - width of first column).
12047 This was done for Table
12048 \begin_inset space ~
12052 \begin_inset CommandInset ref
12054 reference "tab:Table-without-half"
12061 \begin_layout Standard
12062 \begin_inset Float table
12067 \begin_layout Plain Layout
12068 \begin_inset Caption Standard
12070 \begin_layout Plain Layout
12071 \begin_inset CommandInset label
12073 name "tab:Table-without-half"
12077 Table where the spanned table columns are not exactly half the width of
12078 the multicolumn cell
12079 \begin_inset Argument 1
12082 \begin_layout Plain Layout
12083 Imperfect multicolumn table
12096 \begin_layout Plain Layout
12098 \begin_inset Tabular
12099 <lyxtabular version="3" rows="3" columns="3">
12100 <features tabularvalignment="middle">
12101 <column alignment="center" valignment="top" width="1.25cm">
12102 <column alignment="center" valignment="top">
12103 <column alignment="center" valignment="top">
12105 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12108 \begin_layout Plain Layout
12109 multiple lines multicolumn
12114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12117 \begin_layout Plain Layout
12123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12126 \begin_layout Plain Layout
12134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12137 \begin_layout Plain Layout
12143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12146 \begin_layout Plain Layout
12152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12155 \begin_layout Plain Layout
12163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12166 \begin_layout Plain Layout
12172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12175 \begin_layout Plain Layout
12181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12184 \begin_layout Plain Layout
12203 \begin_layout Standard
12204 You can see that the first column is not half the width of the multicolumn
12205 cell, it is a bit bigger.
12206 The reason is that the specified width of a cell
12207 \begin_inset Formula $W_{g}$
12210 is not its total width
12211 \begin_inset Formula $W_{\mathrm{tot}}$
12214 because a cell is always a bit larger than specified.
12216 \begin_inset space ~
12220 \begin_inset CommandInset ref
12222 reference "cha:Explanation-of-Equation"
12226 explains this in detail.
12229 \begin_layout Standard
12231 \begin_inset Formula $W_{g\,n}$
12234 which the user needs to set when
12238 columns are spanned can be calculated, so that each column has a total
12240 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12244 \begin_inset Formula
12246 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12254 \begin_layout Standard
12255 In our case we have
12256 \begin_inset Formula $n=2$
12260 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12263 cm and the default values for the lengths, so that equation
12264 \begin_inset CommandInset ref
12271 \begin_inset Formula
12273 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12281 \begin_layout Standard
12282 To enable calculations in \SpecialChar LaTeX
12283 , the \SpecialChar LaTeX
12288 must be loaded with the document preamble line
12289 \begin_inset Index idx
12292 \begin_layout Plain Layout
12302 \begin_layout Standard
12310 \begin_layout Standard
12312 does not allow you to calculate lengths in the
12316 field of the table dialog.
12317 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12320 Here is an overview about the arguments:
12323 \begin_layout Itemize
12328 creates cell with a fixed width, its text is vertically top-aligned
12331 \begin_layout Itemize
12336 creates cell with a fixed width, its text is vertically centered
12339 \begin_layout Itemize
12344 creates cell with a fixed width, its text is vertically bottom-aligned
12347 \begin_layout Standard
12348 By entering a \SpecialChar LaTeX
12349 -argument, all cell settings set in the table dialog are overwritt
12353 \begin_layout Standard
12354 \begin_inset Note Greyedout
12357 \begin_layout Plain Layout
12362 Due to a bug, \SpecialChar LyX
12363 shows the overwritten settings anyway.
12371 \begin_layout Standard
12372 As the text should be horizontally centered, the command
12379 You can now enter the following \SpecialChar LaTeX
12380 -argument for the first spanned column:
12383 \begin_layout Standard
12388 centering}m{1.25cm-6.2pt}
12391 \begin_layout Standard
12396 means, that the commands inside the braces are applied before the cell
12400 \begin_layout Standard
12401 Although we have chosen centered alignment for the text of the multicolumn
12402 cell, it is still left aligned.
12403 This is because \SpecialChar LyX
12404 only applies the alignment to single columns.
12405 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12409 \begin_layout Standard
12417 \begin_layout Subsection
12419 \begin_inset CommandInset label
12421 name "subsec:Multirows"
12426 \begin_inset Index idx
12429 \begin_layout Plain Layout
12436 \begin_inset Index idx
12439 \begin_layout Plain Layout
12448 \begin_layout Standard
12449 To merge cells over multiple rows, select as many cells within a column
12450 as you want to merge and use either the table-toolbar button
12453 arg "tabular-feature multirow"
12458 Edit\SpecialChar menuseparator
12459 Table\SpecialChar menuseparator
12462 , or right click on the marked cells and choose
12466 in the context menu.
12469 \begin_layout Standard
12470 Here is an example table with a multirow in the first column:
12471 \begin_inset Separator latexpar
12477 \begin_layout Standard
12479 \begin_inset Tabular
12480 <lyxtabular version="3" rows="3" columns="3">
12481 <features tabularvalignment="middle">
12482 <column alignment="center" valignment="top" width="0pt">
12483 <column alignment="center" valignment="top">
12484 <column alignment="center" valignment="top">
12486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12489 \begin_layout Plain Layout
12495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12498 \begin_layout Plain Layout
12504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12507 \begin_layout Plain Layout
12515 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12518 \begin_layout Plain Layout
12524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12527 \begin_layout Plain Layout
12533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12536 \begin_layout Plain Layout
12544 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12547 \begin_layout Plain Layout
12553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12556 \begin_layout Plain Layout
12562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12565 \begin_layout Plain Layout
12579 \begin_layout Standard
12580 The width of multirow cells is set by setting the width and alignment for
12586 shifts the content of the multirow up/down if the offset is positive/negative.
12589 \begin_layout Standard
12590 If the column of a multirow cell has no explicit width, the multirow cell
12591 inherits the alignment of the column.
12592 Otherwise it is by default left-aligned.
12593 To override the default, renew the command
12602 \begin_layout Standard
12614 \begin_layout Standard
12615 in the document preamble.
12616 Then all entries of multirow cells in the document are centered.
12617 If centering is only needed for several tables, you can renew the command
12618 in a \SpecialChar TeX
12619 Code box just before the table instead of the preamble.
12620 If the text should be right-aligned, replace
12633 To return to left-alignment
12642 \begin_layout Standard
12643 This is an example table with a right-aligned multirow cell that has a vertical
12645 \begin_inset space \thinspace{}
12649 \begin_inset space \thinspace{}
12653 \begin_inset Separator latexpar
12659 \begin_layout Standard
12665 \begin_layout Plain Layout
12679 \begin_inset Tabular
12680 <lyxtabular version="3" rows="4" columns="3">
12681 <features tabularvalignment="middle">
12682 <column alignment="center" valignment="top" width="3cm">
12683 <column alignment="center" valignment="top">
12684 <column alignment="center" valignment="top">
12686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12689 \begin_layout Plain Layout
12695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12698 \begin_layout Plain Layout
12704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12707 \begin_layout Plain Layout
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Plain Layout
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12727 \begin_layout Plain Layout
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12736 \begin_layout Plain Layout
12744 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12747 \begin_layout Plain Layout
12753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12756 \begin_layout Plain Layout
12762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12765 \begin_layout Plain Layout
12773 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12776 \begin_layout Plain Layout
12782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12785 \begin_layout Plain Layout
12791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12794 \begin_layout Plain Layout
12809 \begin_layout Plain Layout
12825 \begin_layout Standard
12826 To start a new line in a multirow you can use a forced line break (shortcut
12830 arg "newline-insert newline"
12833 ) but this will not respect the cell lines as demonstrated in this table:
12834 \begin_inset Separator latexpar
12840 \begin_layout Standard
12843 \begin_inset Tabular
12844 <lyxtabular version="3" rows="3" columns="2">
12845 <features tabularvalignment="middle">
12846 <column alignment="left" valignment="middle" width="2cm">
12847 <column alignment="center" valignment="top">
12849 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12852 \begin_layout Plain Layout
12854 \begin_inset Newline newline
12858 \begin_inset Newline newline
12866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12869 \begin_layout Plain Layout
12877 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12880 \begin_layout Plain Layout
12886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12889 \begin_layout Plain Layout
12897 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12900 \begin_layout Plain Layout
12906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12909 \begin_layout Plain Layout
12923 \begin_layout Standard
12924 Therefore be careful with forced line breaks.
12927 \begin_layout Subsection
12928 Cells with diagonal line(s)
12931 \begin_layout Standard
12932 To tell the reader what is meant by column and row headings in a table,
12933 it is helpful to split the first cell of the table by one or two diagonal
12935 This can be achieved by loading the \SpecialChar LaTeX
12941 \begin_inset Index idx
12944 \begin_layout Plain Layout
12946 -packages ! picinpar
12951 in the document preamble.
12952 The package provides the command
12958 that is inserted as \SpecialChar TeX
12959 Code and that can take 2 or 3
12960 \begin_inset space ~
12966 \begin_layout Standard
12971 diagbox[options]{lower left}{upper right}
12974 \begin_layout Standard
12979 diagbox[options]{lower left}{upper left}{upper right}
12982 \begin_layout Standard
12983 The first scheme divides the cell by a single diagonal line and the arguments
12984 are placed below and above this line.
12985 The second scheme divides the cell by 2
12986 \begin_inset space ~
12992 \begin_layout Standard
12996 \begin_layout Plain Layout
13006 \begin_inset Note Note
13009 \begin_layout Plain Layout
13010 The following section will only be displayed when the \SpecialChar LaTeX
13023 \begin_layout Standard
13024 Here is an example table where
13030 is used in the 2-argument scheme in the first cell:
13031 \begin_inset VSpace medskip
13037 \begin_layout Standard
13039 \begin_inset Tabular
13040 <lyxtabular version="3" rows="4" columns="4">
13041 <features tabularvalignment="middle">
13042 <column alignment="center" valignment="top">
13043 <column alignment="center" valignment="top">
13044 <column alignment="center" valignment="top">
13045 <column alignment="center" valignment="top">
13047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13050 \begin_layout Plain Layout
13054 \begin_layout Plain Layout
13067 \begin_layout Plain Layout
13078 \begin_layout Plain Layout
13090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13093 \begin_layout Plain Layout
13099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13102 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13111 \begin_layout Plain Layout
13119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13122 \begin_layout Plain Layout
13128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13131 \begin_layout Plain Layout
13137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13140 \begin_layout Plain Layout
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13149 \begin_layout Plain Layout
13157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13160 \begin_layout Plain Layout
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13187 \begin_layout Plain Layout
13195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13198 \begin_layout Plain Layout
13204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13207 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13216 \begin_layout Plain Layout
13222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13225 \begin_layout Plain Layout
13237 \begin_inset VSpace medskip
13243 \begin_layout Standard
13244 The 3-argument scheme is for example useful for cross-tables of sports leagues
13246 \begin_inset Separator latexpar
13252 \begin_layout Standard
13255 \begin_inset Tabular
13256 <lyxtabular version="3" rows="4" columns="4">
13257 <features tabularvalignment="middle">
13258 <column alignment="center" valignment="top" width="0pt">
13259 <column alignment="center" valignment="top">
13260 <column alignment="center" valignment="top">
13261 <column alignment="center" valignment="top">
13263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13266 \begin_layout Plain Layout
13270 \begin_layout Plain Layout
13283 \begin_layout Plain Layout
13294 \begin_layout Plain Layout
13305 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13320 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13338 \begin_layout Plain Layout
13346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13349 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13376 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13387 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13414 \begin_layout Plain Layout
13422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13425 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13434 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13452 \begin_layout Plain Layout
13466 \begin_layout Standard
13467 For larger cross-tables one might use split cells in 2 or every corner of
13468 the table like in this example:
13469 \begin_inset Separator latexpar
13475 \begin_layout Standard
13478 \begin_inset Tabular
13479 <lyxtabular version="3" rows="5" columns="5">
13480 <features tabularvalignment="middle">
13481 <column alignment="center" valignment="top" width="0pt">
13482 <column alignment="center" valignment="top">
13483 <column alignment="center" valignment="top">
13484 <column alignment="center" valignment="top">
13485 <column alignment="center" valignment="top">
13487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13490 \begin_layout Plain Layout
13494 \begin_layout Plain Layout
13507 \begin_layout Plain Layout
13518 \begin_layout Plain Layout
13529 \begin_layout Plain Layout
13541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13544 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13553 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13562 \begin_layout Plain Layout
13568 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13571 \begin_layout Plain Layout
13575 \begin_layout Plain Layout
13588 \begin_layout Plain Layout
13599 \begin_layout Plain Layout
13610 \begin_layout Plain Layout
13624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13627 \begin_layout Plain Layout
13633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13636 \begin_layout Plain Layout
13642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13645 \begin_layout Plain Layout
13651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13654 \begin_layout Plain Layout
13660 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13663 \begin_layout Plain Layout
13671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13674 \begin_layout Plain Layout
13680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13683 \begin_layout Plain Layout
13689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13692 \begin_layout Plain Layout
13698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13701 \begin_layout Plain Layout
13707 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13710 \begin_layout Plain Layout
13718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13721 \begin_layout Plain Layout
13727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13730 \begin_layout Plain Layout
13736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13739 \begin_layout Plain Layout
13745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13748 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13757 \begin_layout Plain Layout
13765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13768 \begin_layout Plain Layout
13772 \begin_layout Plain Layout
13785 \begin_layout Plain Layout
13796 \begin_layout Plain Layout
13807 \begin_layout Plain Layout
13819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13822 \begin_layout Plain Layout
13828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13831 \begin_layout Plain Layout
13837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13849 \begin_layout Plain Layout
13853 \begin_layout Plain Layout
13866 \begin_layout Plain Layout
13877 \begin_layout Plain Layout
13888 \begin_layout Plain Layout
13908 \begin_layout Standard
13909 To rotate the diagonal lines, the command option
13934 and represent a point of a compass.
13939 is for example the south-west corner.
13940 Thus in the lower left cell of the above table the command
13943 \begin_layout Standard
13948 diagbox[dir=SW]{Team home}{Result}{Team away}
13951 \begin_layout Standard
13953 If no direction is given, it will be NW.
13956 \begin_layout Standard
13957 The necessary width of split cells is automatically calculated.
13958 Thus if you set a fixed column width smaller than the calculated one, the
13959 cell's content will protrude the cell borders:
13960 \begin_inset Separator latexpar
13966 \begin_layout Standard
13969 \begin_inset Tabular
13970 <lyxtabular version="3" rows="2" columns="2">
13971 <features tabularvalignment="middle">
13972 <column alignment="center" valignment="top" width="3cm">
13973 <column alignment="center" valignment="top">
13975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13978 \begin_layout Plain Layout
13982 \begin_layout Plain Layout
13995 \begin_layout Plain Layout
14006 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14041 \begin_layout Plain Layout
14055 \begin_layout Standard
14056 If you need a certain width for columns with a split cell, use the command
14061 (replace '3cm' by the width you need).
14062 In the following table the width of the first column is set to 4
14063 \begin_inset space \thinspace{}
14074 \begin_inset space \thinspace{}
14078 \begin_inset space \thinspace{}
14083 tabcolsep is necessary because the overall width is the width for the text
14084 (in this case the 4
14085 \begin_inset space \thinspace{}
14088 cm) plus two times the separation of the text and the cell border.
14089 The calculation of the width cannot be done in the command option of
14095 so one needs to create a new length which can be used later.
14096 This is done with the \SpecialChar TeX
14100 \begin_layout Standard
14108 \begin_inset Newline newline
14120 \begin_layout Standard
14124 \begin_layout Plain Layout
14133 \begin_layout Plain Layout
14149 \begin_layout Standard
14150 To enable calculations in \SpecialChar LaTeX
14151 one needs to load the package
14156 \begin_inset Index idx
14159 \begin_layout Plain Layout
14166 in the document preamble.
14169 \begin_layout Standard
14170 In this table you can now use the command
14173 \begin_layout Standard
14183 \begin_layout Standard
14185 \begin_inset Separator latexpar
14191 \begin_layout Standard
14194 \begin_inset Tabular
14195 <lyxtabular version="3" rows="2" columns="2">
14196 <features tabularvalignment="middle">
14197 <column alignment="center" valignment="top" width="4cm">
14198 <column alignment="center" valignment="top">
14200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14203 \begin_layout Plain Layout
14207 \begin_layout Plain Layout
14222 \begin_layout Plain Layout
14233 \begin_layout Plain Layout
14245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14248 \begin_layout Plain Layout
14256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14259 \begin_layout Plain Layout
14265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14268 \begin_layout Plain Layout
14282 \begin_layout Standard
14283 Note that the split cell needs to be the widest one in the column.
14284 Otherwise the length of the diagonal line cannot be calculated correctly
14285 like in this table:
14286 \begin_inset Separator latexpar
14292 \begin_layout Standard
14295 \begin_inset Tabular
14296 <lyxtabular version="3" rows="2" columns="2">
14297 <features tabularvalignment="middle">
14298 <column alignment="center" valignment="top" width="0pt">
14299 <column alignment="center" valignment="top">
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14304 \begin_layout Plain Layout
14308 \begin_layout Plain Layout
14321 \begin_layout Plain Layout
14332 \begin_layout Plain Layout
14344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14347 \begin_layout Plain Layout
14355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14358 \begin_layout Plain Layout
14364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14367 \begin_layout Plain Layout
14381 \begin_layout Standard
14382 In this case use the
14393 It is then not necessary to add 2
14395 tabcolsep because the cell width is now the width of the column.
14396 In this table a width of 3
14397 \begin_inset space \thinspace{}
14401 \begin_inset Separator latexpar
14407 \begin_layout Standard
14410 \begin_inset Tabular
14411 <lyxtabular version="3" rows="2" columns="2">
14412 <features tabularvalignment="middle">
14413 <column alignment="center" valignment="top" width="0pt">
14414 <column alignment="center" valignment="top">
14416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14419 \begin_layout Plain Layout
14423 \begin_layout Plain Layout
14427 diagbox[width=3cm]{
14436 \begin_layout Plain Layout
14447 \begin_layout Plain Layout
14459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14462 \begin_layout Plain Layout
14470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14473 \begin_layout Plain Layout
14479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14482 \begin_layout Plain Layout
14496 \begin_layout Standard
14497 For multiple text lines in split cells one needs some extra height to fit
14498 the text to the cell.
14499 This can be achieved with the
14509 (replace '3cm' by the height you need).
14510 In the following table the command
14513 \begin_layout Standard
14518 diagbox[width=3cm,height=1.4cm]{A
14529 \begin_layout Standard
14530 is used in the first cell.
14539 creates hereby the line break.
14543 \begin_layout Plain Layout
14544 Breaking lines with
14548 is only possible when the column has a fixed width.
14554 \begin_inset Separator latexpar
14560 \begin_layout Standard
14563 \begin_inset Tabular
14564 <lyxtabular version="3" rows="2" columns="2">
14565 <features tabularvalignment="middle">
14566 <column alignment="center" valignment="top">
14567 <column alignment="center" valignment="top">
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14572 \begin_layout Plain Layout
14576 \begin_layout Plain Layout
14580 diagbox[width=3cm,height=1.4cm]{
14589 \begin_layout Plain Layout
14604 \begin_layout Plain Layout
14615 \begin_layout Plain Layout
14630 \begin_layout Plain Layout
14642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14645 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14656 \begin_layout Plain Layout
14662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14665 \begin_layout Plain Layout
14679 \begin_layout Standard
14683 \begin_layout Plain Layout
14693 \begin_inset Note Note
14696 \begin_layout Plain Layout
14697 The following will be displayed when the \SpecialChar LaTeX
14710 \begin_layout Standard
14711 You need to install the \SpecialChar LaTeX
14716 to see the following part of this section in the output.
14719 \begin_layout Standard
14723 \begin_layout Plain Layout
14735 \begin_layout Standard
14736 For more info about the \SpecialChar LaTeX
14741 , see its documentation,
14742 \begin_inset CommandInset citation
14751 \begin_layout Section
14753 \begin_inset CommandInset label
14755 name "sec:Formal-Tables"
14760 \begin_inset Index idx
14763 \begin_layout Plain Layout
14772 \begin_layout Standard
14773 Tables are often typeset in books similar to Table
14774 \begin_inset space ~
14778 \begin_inset CommandInset ref
14780 reference "tab:Example-booktabs-table"
14785 This kind of tables is called
14786 \begin_inset Quotes eld
14794 \begin_inset Quotes erd
14798 To make a table a formal table use the option
14806 tab of the table dialog.
14809 \begin_layout Standard
14810 \begin_inset Float table
14816 \begin_layout Plain Layout
14817 \begin_inset Caption Standard
14819 \begin_layout Plain Layout
14820 \begin_inset CommandInset label
14822 name "tab:Example-booktabs-table"
14826 Example booktabs-table
14834 \begin_layout Plain Layout
14836 \begin_inset Tabular
14837 <lyxtabular version="3" rows="8" columns="4">
14838 <features booktabs="true" tabularvalignment="middle">
14839 <column alignment="center" valignment="top">
14840 <column alignment="center" valignment="top">
14841 <column alignment="center" valignment="top">
14842 <column alignment="center" valignment="top">
14844 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14847 \begin_layout Plain Layout
14853 <cell alignment="center" valignment="top" topline="true" usebox="none">
14856 \begin_layout Plain Layout
14858 \begin_inset space \thinspace{}
14866 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14869 \begin_layout Plain Layout
14871 \begin_inset space \thinspace{}
14879 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14882 \begin_layout Plain Layout
14890 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14893 \begin_layout Plain Layout
14897 \begin_layout Plain Layout
14910 \begin_layout Plain Layout
14919 Detector thickness in µm
14924 <cell alignment="center" valignment="top" usebox="none">
14927 \begin_layout Plain Layout
14933 <cell alignment="center" valignment="top" usebox="none">
14936 \begin_layout Plain Layout
14942 <cell alignment="center" valignment="top" usebox="none">
14945 \begin_layout Plain Layout
14953 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14956 \begin_layout Plain Layout
14962 <cell alignment="center" valignment="top" topline="true" usebox="none">
14965 \begin_layout Plain Layout
14971 <cell alignment="center" valignment="top" topline="true" usebox="none">
14974 \begin_layout Plain Layout
14980 <cell alignment="center" valignment="top" topline="true" usebox="none">
14983 \begin_layout Plain Layout
14990 <row topspace="default">
14991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14994 \begin_layout Plain Layout
14995 Spatial resolution in µm
15000 <cell alignment="center" valignment="top" usebox="none">
15003 \begin_layout Plain Layout
15009 <cell alignment="center" valignment="top" usebox="none">
15012 \begin_layout Plain Layout
15018 <cell alignment="center" valignment="top" usebox="none">
15021 \begin_layout Plain Layout
15028 <row topspace="default">
15029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15032 \begin_layout Plain Layout
15034 \begin_inset Formula $f_{\mathrm{max}}$
15042 <cell alignment="center" valignment="top" usebox="none">
15045 \begin_layout Plain Layout
15051 <cell alignment="center" valignment="top" usebox="none">
15054 \begin_layout Plain Layout
15060 <cell alignment="center" valignment="top" usebox="none">
15063 \begin_layout Plain Layout
15070 <row topspace="default">
15071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15074 \begin_layout Plain Layout
15078 \begin_layout Plain Layout
15082 cmidrule[2pt](l{10pt}){1-1}
15087 LSF-spatial resolution
15092 <cell alignment="center" valignment="top" usebox="none">
15095 \begin_layout Plain Layout
15101 <cell alignment="center" valignment="top" usebox="none">
15104 \begin_layout Plain Layout
15110 <cell alignment="center" valignment="top" usebox="none">
15113 \begin_layout Plain Layout
15121 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15124 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" usebox="none">
15142 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15159 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15162 \begin_layout Plain Layout
15168 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15171 \begin_layout Plain Layout
15177 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15180 \begin_layout Plain Layout
15186 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15189 \begin_layout Plain Layout
15208 \begin_layout Standard
15209 Spaces to table rows can be added using the
15213 tab of the table dialog as described in section
15214 \begin_inset space ~
15218 \begin_inset CommandInset ref
15220 reference "subsec:Row-Spacing"
15227 \begin_layout Standard
15228 Unlike normal tables, formal tables have no vertical table lines.
15229 The horizontal table lines can be set as for normal tables but they appear
15230 with different widths in the output:
15231 \begin_inset Newline newline
15234 The first and the last table line have a default width of 0.08
15235 \begin_inset space \thinspace{}
15238 em while the other lines have a default width of 0.05
15239 \begin_inset space \thinspace{}
15245 \begin_layout Standard
15246 The default widths can be changed with the following preamble lines
15249 \begin_layout Standard
15259 \begin_inset Newline newline
15271 \begin_layout Standard
15272 This example is for the first line, the so called
15277 If you want to change the width for the last line, replace
15286 To change the width for the other lines replace
15295 You can use all units listed in appendix
15296 \begin_inset space ~
15300 \begin_inset CommandInset ref
15302 reference "cha:Units-available-in"
15309 \begin_layout Standard
15310 Lines that do not span all table columns can be created by setting a table
15311 line for multicolumn cells.
15313 will then internally use the command
15319 to create this line.
15323 \begin_layout Standard
15328 cmidrule[height](trim){startcol-endcol}
15331 \begin_layout Standard
15338 are currently not supported by \SpecialChar LyX
15339 so you have to use \SpecialChar TeX
15348 s can manually be created by inserting the command as \SpecialChar TeX
15350 cell entry of the first cell of a row.
15351 The line is then drawn in the output above the current row.
15354 \begin_layout Standard
15355 The default for the optional
15360 \begin_inset space \thinspace{}
15368 is the number of the column where the line starts and
15372 the column number where the line ends.
15377 always needs to be specified, also when the line should span only one column.
15378 The optional parameter
15395 Using for example the parameter
15399 means that the line is trimmed from its left end by 2
15400 \begin_inset space \thinspace{}
15404 If you don't specify the
15408 the line is trimmed by the default of 0.5
15409 \begin_inset space \thinspace{}
15415 \begin_layout Standard
15416 \begin_inset VSpace bigskip
15420 \begin_inset space ~
15424 \begin_inset CommandInset ref
15426 reference "tab:Example-booktabs-table"
15430 was created using the commands
15433 \begin_layout Standard
15443 \begin_layout Standard
15444 at the beginning of the second row and
15447 \begin_layout Standard
15452 cmidrule[2pt](l{10pt}){1-1}
15455 \begin_layout Standard
15459 \begin_layout Standard
15460 \begin_inset VSpace bigskip
15466 \begin_layout Standard
15467 You might want to have overlapping
15474 \begin_inset space ~
15478 \begin_inset CommandInset ref
15480 reference "tab:Special-booktabs-table"
15485 This can be achieved with the \SpecialChar TeX
15489 \begin_layout Standard
15497 \begin_layout Standard
15498 The command that was used for the second row of Table
15499 \begin_inset space ~
15503 \begin_inset CommandInset ref
15505 reference "tab:Special-booktabs-table"
15512 \begin_layout Standard
15526 \begin_layout Standard
15527 The command for the sixth row is
15530 \begin_layout Standard
15542 \begin_layout Standard
15543 \begin_inset VSpace bigskip
15549 \begin_layout Standard
15550 If you are in any way not satisfied with the border line spacing, you can
15551 use the following command to produce lines that span over all table columns
15556 \begin_layout Standard
15561 specialrule{width}{space above}{space below}
15564 \begin_layout Standard
15565 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15572 \begin_inset CommandInset citation
15579 \begin_inset Index idx
15582 \begin_layout Plain Layout
15584 -packages ! booktabs
15592 \begin_layout Standard
15593 \begin_inset Float table
15599 \begin_layout Plain Layout
15600 \begin_inset Caption Standard
15602 \begin_layout Plain Layout
15603 \begin_inset CommandInset label
15605 name "tab:Special-booktabs-table"
15609 Special booktabs-table
15617 \begin_layout Plain Layout
15619 \begin_inset Tabular
15620 <lyxtabular version="3" rows="8" columns="4">
15621 <features booktabs="true" tabularvalignment="middle">
15622 <column alignment="center" valignment="top">
15623 <column alignment="center" valignment="top">
15624 <column alignment="center" valignment="top">
15625 <column alignment="center" valignment="top">
15627 <cell alignment="center" valignment="top" topline="true" usebox="none">
15630 \begin_layout Plain Layout
15636 <cell alignment="center" valignment="top" topline="true" usebox="none">
15639 \begin_layout Plain Layout
15641 \begin_inset space \thinspace{}
15649 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15652 \begin_layout Plain Layout
15654 \begin_inset space \thinspace{}
15662 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15665 \begin_layout Plain Layout
15673 <cell alignment="center" valignment="top" usebox="none">
15676 \begin_layout Plain Layout
15680 \begin_layout Plain Layout
15693 \begin_layout Plain Layout
15706 \begin_layout Plain Layout
15719 \begin_layout Plain Layout
15728 Detector thickness in µm
15733 <cell alignment="center" valignment="top" usebox="none">
15736 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" usebox="none">
15745 \begin_layout Plain Layout
15751 <cell alignment="center" valignment="top" usebox="none">
15754 \begin_layout Plain Layout
15762 <cell alignment="center" valignment="top" topline="true" usebox="none">
15765 \begin_layout Plain Layout
15771 <cell alignment="center" valignment="top" topline="true" usebox="none">
15774 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" topline="true" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" topline="true" usebox="none">
15792 \begin_layout Plain Layout
15799 <row topspace="default">
15800 <cell alignment="center" valignment="top" usebox="none">
15803 \begin_layout Plain Layout
15804 Spatial resolution in µm
15809 <cell alignment="center" valignment="top" usebox="none">
15812 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" usebox="none">
15821 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" usebox="none">
15830 \begin_layout Plain Layout
15837 <row topspace="default">
15838 <cell alignment="center" valignment="top" usebox="none">
15841 \begin_layout Plain Layout
15843 \begin_inset Formula $f_{\mathrm{max}}$
15851 <cell alignment="center" valignment="top" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" usebox="none">
15872 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15887 \begin_layout Plain Layout
15900 \begin_layout Plain Layout
15909 LSF-spatial resolution
15914 <cell alignment="center" valignment="top" topline="true" usebox="none">
15917 \begin_layout Plain Layout
15923 <cell alignment="center" valignment="top" topline="true" usebox="none">
15926 \begin_layout Plain Layout
15932 <cell alignment="center" valignment="top" topline="true" usebox="none">
15935 \begin_layout Plain Layout
15943 <cell alignment="center" valignment="top" usebox="none">
15946 \begin_layout Plain Layout
15952 <cell alignment="center" valignment="top" usebox="none">
15955 \begin_layout Plain Layout
15961 <cell alignment="center" valignment="top" usebox="none">
15964 \begin_layout Plain Layout
15970 <cell alignment="center" valignment="top" usebox="none">
15973 \begin_layout Plain Layout
15981 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15984 \begin_layout Plain Layout
15990 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15993 \begin_layout Plain Layout
15999 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16002 \begin_layout Plain Layout
16008 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16011 \begin_layout Plain Layout
16030 \begin_layout Section
16031 Vertical Table Alignment
16032 \begin_inset Index idx
16035 \begin_layout Plain Layout
16044 \begin_layout Standard
16045 To align tables vertically in a text line, the table must be inside a box.
16046 The box can then be vertically aligned as described in section
16047 \begin_inset space ~
16051 \begin_inset CommandInset ref
16053 reference "sec:Box-Dialog"
16060 \begin_layout Standard
16061 In the following example the tables are inside a minipage
16065 \begin_layout Plain Layout
16066 Minipages are described in section
16067 \begin_inset space ~
16071 \begin_inset CommandInset ref
16073 reference "sec:Minipages"
16082 box that has a width of 15
16083 \begin_inset space \thinspace{}
16089 \begin_layout Itemize
16091 \begin_inset Box Frameless
16101 height_special "totalheight"
16106 backgroundcolor "none"
16109 \begin_layout Plain Layout
16110 \begin_inset Tabular
16111 <lyxtabular version="3" rows="3" columns="3">
16112 <features tabularvalignment="middle">
16113 <column alignment="center" valignment="top">
16114 <column alignment="center" valignment="top">
16115 <column alignment="center" valignment="top">
16117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16120 \begin_layout Plain Layout
16126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16129 \begin_layout Plain Layout
16135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16138 \begin_layout Plain Layout
16146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16149 \begin_layout Plain Layout
16155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16158 \begin_layout Plain Layout
16164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16167 \begin_layout Plain Layout
16175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16178 \begin_layout Plain Layout
16184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16187 \begin_layout Plain Layout
16193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Plain Layout
16216 \begin_layout Plain Layout
16228 \begin_inset Box Frameless
16238 height_special "totalheight"
16243 backgroundcolor "none"
16246 \begin_layout Plain Layout
16247 \begin_inset Tabular
16248 <lyxtabular version="3" rows="3" columns="3">
16249 <features tabularvalignment="middle">
16250 <column alignment="center" valignment="top">
16251 <column alignment="center" valignment="top">
16252 <column alignment="center" valignment="top">
16254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16266 \begin_layout Plain Layout
16272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16275 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16286 \begin_layout Plain Layout
16292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16295 \begin_layout Plain Layout
16301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16304 \begin_layout Plain Layout
16312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16315 \begin_layout Plain Layout
16321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16324 \begin_layout Plain Layout
16330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16333 \begin_layout Plain Layout
16353 \begin_layout Plain Layout
16363 \begin_layout Itemize
16365 \begin_inset Box Frameless
16375 height_special "totalheight"
16380 backgroundcolor "none"
16383 \begin_layout Plain Layout
16384 \begin_inset Tabular
16385 <lyxtabular version="3" rows="3" columns="3">
16386 <features tabularvalignment="middle">
16387 <column alignment="center" valignment="top">
16388 <column alignment="center" valignment="top">
16389 <column alignment="center" valignment="top">
16391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16394 \begin_layout Plain Layout
16400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16403 \begin_layout Plain Layout
16409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16412 \begin_layout Plain Layout
16420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16423 \begin_layout Plain Layout
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16432 \begin_layout Plain Layout
16438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16441 \begin_layout Plain Layout
16449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16461 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16470 \begin_layout Plain Layout
16489 \begin_layout Itemize
16491 \begin_inset Box Frameless
16501 height_special "totalheight"
16506 backgroundcolor "none"
16509 \begin_layout Plain Layout
16510 \begin_inset Tabular
16511 <lyxtabular version="3" rows="3" columns="3">
16512 <features tabularvalignment="middle">
16513 <column alignment="center" valignment="top">
16514 <column alignment="center" valignment="top">
16515 <column alignment="center" valignment="top">
16517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16520 \begin_layout Plain Layout
16526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16529 \begin_layout Plain Layout
16535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16538 \begin_layout Plain Layout
16546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16549 \begin_layout Plain Layout
16555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16558 \begin_layout Plain Layout
16564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16567 \begin_layout Plain Layout
16575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16578 \begin_layout Plain Layout
16584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16587 \begin_layout Plain Layout
16593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16616 \begin_layout Plain Layout
16628 \begin_inset Box Frameless
16638 height_special "totalheight"
16643 backgroundcolor "none"
16646 \begin_layout Plain Layout
16647 \begin_inset Tabular
16648 <lyxtabular version="3" rows="3" columns="3">
16649 <features tabularvalignment="middle">
16650 <column alignment="center" valignment="top">
16651 <column alignment="center" valignment="top">
16652 <column alignment="center" valignment="top">
16654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16657 \begin_layout Plain Layout
16663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16666 \begin_layout Plain Layout
16672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16675 \begin_layout Plain Layout
16683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16686 \begin_layout Plain Layout
16692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16695 \begin_layout Plain Layout
16701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16704 \begin_layout Plain Layout
16712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16715 \begin_layout Plain Layout
16721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16724 \begin_layout Plain Layout
16730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16733 \begin_layout Plain Layout
16753 \begin_layout Plain Layout
16763 \begin_layout Standard
16764 As you will see, the content of the first and last table row is not correctly
16766 To get this alignment, the minipage box must be set into a raisebox.
16770 \begin_layout Plain Layout
16771 Raiseboxes are described in section
16772 \begin_inset space ~
16776 \begin_inset CommandInset ref
16778 reference "subsec:Vertical-Alignment"
16787 In the example above the second table in the first item is aligned using
16788 the \SpecialChar TeX
16792 \begin_layout Standard
16802 \begin_layout Standard
16804 After the box the closing brace
16808 is inserted as \SpecialChar TeX
16810 For the second table in the last item the command
16813 \begin_layout Standard
16823 \begin_layout Standard
16827 \begin_layout Standard
16828 \begin_inset Note Greyedout
16831 \begin_layout Plain Layout
16836 The alignment of the table row content to the surrounding text line is
16838 The required value for the
16844 command for this alignment depends on the document font, the font size,
16845 and the table line thickness.
16853 \begin_layout Section
16855 \begin_inset CommandInset label
16857 name "sec:Colored-Tables"
16862 \begin_inset Index idx
16865 \begin_layout Plain Layout
16874 \begin_layout Subsection
16876 \begin_inset Index idx
16879 \begin_layout Plain Layout
16880 Table Color ! for Cells
16886 \begin_inset Index idx
16889 \begin_layout Plain Layout
16890 Color ! for Table Cells
16898 \begin_layout Standard
16899 \begin_inset Float table
16905 \begin_layout Plain Layout
16906 \begin_inset Caption Standard
16908 \begin_layout Plain Layout
16909 \begin_inset CommandInset label
16911 name "tab:Table-colored-without"
16915 Table colored without using the package
16920 \begin_inset Argument 1
16923 \begin_layout Plain Layout
16924 Table without colortbl
16937 \begin_layout Plain Layout
16939 \begin_inset Tabular
16940 <lyxtabular version="3" rows="3" columns="3">
16941 <features tabularvalignment="middle">
16942 <column alignment="center" valignment="top">
16943 <column alignment="center" valignment="top">
16944 <column alignment="center" valignment="top">
16946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16949 \begin_layout Plain Layout
16957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16960 \begin_layout Plain Layout
16968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16971 \begin_layout Plain Layout
16981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16984 \begin_layout Plain Layout
16992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16995 \begin_layout Plain Layout
17003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17006 \begin_layout Plain Layout
17016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17019 \begin_layout Plain Layout
17027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17030 \begin_layout Plain Layout
17038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17041 \begin_layout Plain Layout
17062 \begin_layout Standard
17063 If you only need colored text, mark the cells and choose a color in the
17067 \begin_inset space ~
17072 dialog (toolbar button
17075 arg "dialog-show character"
17079 This was used to create Table
17080 \begin_inset space ~
17084 \begin_inset CommandInset ref
17086 reference "tab:Table-colored-without"
17091 In any other case you have to use the \SpecialChar LaTeX
17097 \begin_inset Index idx
17100 \begin_layout Plain Layout
17102 -packages ! colortbl
17110 \begin_layout Standard
17114 \begin_layout Plain Layout
17124 \begin_inset Note Note
17127 \begin_layout Plain Layout
17128 The following section part will only be displayed when the \SpecialChar LaTeX
17141 \begin_layout Standard
17142 To create colored tables,
17146 must be loaded in the preamble with the line
17149 \begin_layout Standard
17154 usepackage{colortbl}
17157 \begin_layout Standard
17158 The color of a column is adjusted with the command
17161 \begin_layout Standard
17166 columncolor{name of color}
17169 \begin_layout Standard
17175 More about the command
17179 is contained in section
17180 \begin_inset space ~
17184 \begin_inset CommandInset ref
17186 reference "subsec:Multicolumn-Calculations"
17193 \begin_layout Standard
17194 The following color names are predefined:
17197 \begin_layout Standard
17231 \begin_layout Standard
17232 \begin_inset VSpace medskip
17238 \begin_layout Standard
17239 If you add the option
17242 \begin_layout Standard
17248 \begin_layout Standard
17249 to the document class options in the document settings, you can additionally
17251 \begin_inset space ~
17255 These colors are listed in appendix
17256 \begin_inset space ~
17260 \begin_inset CommandInset ref
17262 reference "chap:List-of-dvips-colornames"
17267 One of these colors,
17271 , is used as example in Table
17272 \begin_inset space ~
17276 \begin_inset CommandInset ref
17278 reference "tab:Table-colored-using"
17285 \begin_layout Standard
17286 \begin_inset VSpace medskip
17292 \begin_layout Standard
17293 You can also define your own color with the command
17296 \begin_layout Standard
17301 definecolor{color name}{color model}{color values}
17304 \begin_layout Standard
17305 The color model can be
17308 \begin_layout Labeling
17309 \labelwidthstring 00.00.0000
17310 cmyk: cyan, magenta, yellow, black
17313 \begin_layout Labeling
17314 \labelwidthstring 00.00.0000
17315 rgb: red, green blue
17318 \begin_layout Labeling
17319 \labelwidthstring 00.00.0000
17323 \begin_layout Standard
17324 and the color values are comma separated numbers between 0 and 1 describing
17325 the factor for the corresponding color of the color model.
17328 \begin_layout Standard
17330 \begin_inset space \thinspace{}
17334 \begin_inset space \space{}
17341 " in the preamble with
17344 \begin_layout Standard
17349 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17352 \begin_layout Standard
17360 \begin_layout Standard
17365 definecolor{lightgray}{gray}{0.8}
17368 \begin_layout Standard
17369 \begin_inset VSpace medskip
17375 \begin_layout Standard
17376 Lines are colored with the command
17379 \begin_layout Standard
17384 rowcolor{name of color}
17387 \begin_layout Standard
17388 and cells are colored with the command
17391 \begin_layout Standard
17396 cellcolor{name of color}
17399 \begin_layout Standard
17400 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17404 \begin_layout Standard
17405 To color characters in the table, mark the cells and use the
17408 \begin_inset space ~
17414 If a cell contains \SpecialChar TeX
17415 Code mark only the characters, otherwise the colored
17417 Code will cause \SpecialChar LaTeX
17421 \begin_layout Standard
17422 \begin_inset Note Greyedout
17425 \begin_layout Plain Layout
17430 Not all DVI-viewers are able to display self-defined colors.
17438 \begin_layout Standard
17439 \begin_inset VSpace bigskip
17445 \begin_layout Standard
17447 \begin_inset space ~
17451 \begin_inset CommandInset ref
17453 reference "tab:Table-colored-using"
17457 do the following: The color of the first column should be
17465 \begin_layout Standard
17470 columncolor{darkgreen}
17475 \begin_layout Standard
17476 as \SpecialChar LaTeX
17477 -argument for this column.
17478 The first row should be light blue, therefore the \SpecialChar TeX
17482 \begin_layout Standard
17490 \begin_layout Standard
17491 is inserted to the first cell of this row.
17492 Note that this overwrites the column color for the first cell.
17493 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17498 \begin_layout Standard
17506 \begin_layout Standard
17507 The characters could now be colored using the menu
17509 Edit\SpecialChar menuseparator
17511 \begin_inset space ~
17519 \begin_layout Standard
17520 \begin_inset Float table
17526 \begin_layout Plain Layout
17527 \begin_inset Caption Standard
17529 \begin_layout Plain Layout
17530 \begin_inset CommandInset label
17532 name "tab:Table-colored-using"
17536 Table colored using the package
17541 \begin_inset Argument 1
17544 \begin_layout Plain Layout
17545 Table with colortbl
17558 \begin_layout Plain Layout
17560 \begin_inset Tabular
17561 <lyxtabular version="3" rows="3" columns="3">
17562 <features tabularvalignment="middle">
17563 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17564 <column alignment="center" valignment="top">
17565 <column alignment="center" valignment="top">
17567 <cell alignment="center" valignment="top" usebox="none">
17570 \begin_layout Plain Layout
17574 \begin_layout Plain Layout
17590 <cell alignment="center" valignment="top" usebox="none">
17593 \begin_layout Plain Layout
17601 <cell alignment="center" valignment="top" usebox="none">
17604 \begin_layout Plain Layout
17614 <cell alignment="center" valignment="top" usebox="none">
17617 \begin_layout Plain Layout
17625 <cell alignment="center" valignment="top" usebox="none">
17628 \begin_layout Plain Layout
17636 <cell alignment="center" valignment="top" usebox="none">
17639 \begin_layout Plain Layout
17649 <cell alignment="center" valignment="top" usebox="none">
17652 \begin_layout Plain Layout
17660 <cell alignment="center" valignment="top" usebox="none">
17663 \begin_layout Plain Layout
17671 <cell alignment="center" valignment="top" usebox="none">
17674 \begin_layout Plain Layout
17678 \begin_layout Plain Layout
17707 \begin_layout Standard
17711 \begin_layout Plain Layout
17721 \begin_inset Note Note
17724 \begin_layout Plain Layout
17725 The following will be displayed when the \SpecialChar LaTeX
17738 \begin_layout Standard
17739 You need to install the package
17743 to see the content of this section in the output.
17746 \begin_layout Standard
17750 \begin_layout Plain Layout
17762 \begin_layout Subsection
17764 \begin_inset Index idx
17767 \begin_layout Plain Layout
17768 Table Color ! for Rows
17774 \begin_inset Index idx
17777 \begin_layout Plain Layout
17778 Color ! for Table Rows
17786 \begin_layout Standard
17787 In case every second table row needs to be colored there is an alternative
17788 to the method described in the previous section: One loads the package
17794 \begin_inset Index idx
17797 \begin_layout Plain Layout
17803 \begin_layout Plain Layout
17817 in the document preamble with the command
17820 \begin_layout Standard
17825 usepackage[table]{xcolor}
17828 \begin_layout Standard
17833 automatically loads also the package
17838 \begin_inset Index idx
17841 \begin_layout Plain Layout
17843 -packages ! colortbl
17852 must be installed in your \SpecialChar LaTeX
17853 -distribution, otherwise you get \SpecialChar LaTeX
17857 \begin_layout Standard
17861 \begin_layout Plain Layout
17871 \begin_inset Note Note
17874 \begin_layout Plain Layout
17875 The following section part will only be displayed when the \SpecialChar LaTeX
17888 \begin_layout Standard
17889 The table rows are colored with the command
17892 \begin_layout Standard
17897 rowcolors[commands]{row number}{odd row color}{even row color}
17900 \begin_layout Standard
17901 that is either inserted in the document preamble or as \SpecialChar TeX
17903 first table to be colored.
17905 \begin_inset space ~
17908 number is the number of the first row which should be colored according
17909 to the odd row color.
17910 commands can be additional commands that are executed before every table
17912 So for example the command
17915 \begin_layout Standard
17920 rowcolors{1}{white}{lightgray}
17923 \begin_layout Standard
17924 leads to the coloring scheme of Table
17925 \begin_inset space ~
17929 \begin_inset CommandInset ref
17931 reference "tab:Table-rowcolors"
17939 \begin_layout Standard
17946 hline]{1}{lightgray}{cyan}
17949 \begin_layout Standard
17950 leads to the coloring scheme of Table
17951 \begin_inset space ~
17955 \begin_inset CommandInset ref
17957 reference "tab:Table-rowcolors-2"
17963 \begin_inset space ~
17967 \begin_inset space ~
17971 \begin_inset space ~
17975 \begin_inset space ~
17978 color are left empty, no color will be used so that the command
17981 \begin_layout Standard
17989 \begin_layout Standard
17990 deletes all colors.
17997 affects all tables following that command.
18000 \begin_layout Standard
18004 \begin_layout Plain Layout
18008 rowcolors{1}{white}{lightgray}
18016 \begin_layout Standard
18017 \begin_inset Float table
18023 \begin_layout Plain Layout
18024 \begin_inset Caption Standard
18026 \begin_layout Plain Layout
18027 \begin_inset CommandInset label
18029 name "tab:Table-rowcolors"
18033 Table where every second row is colored light gray.
18041 \begin_layout Plain Layout
18043 \begin_inset Tabular
18044 <lyxtabular version="3" rows="4" columns="3">
18045 <features tabularvalignment="middle">
18046 <column alignment="center" valignment="top">
18047 <column alignment="center" valignment="top" width="0pt">
18048 <column alignment="center" valignment="top" width="0pt">
18050 <cell alignment="center" valignment="top" usebox="none">
18053 \begin_layout Plain Layout
18059 <cell alignment="center" valignment="top" usebox="none">
18062 \begin_layout Plain Layout
18068 <cell alignment="center" valignment="top" usebox="none">
18071 \begin_layout Plain Layout
18079 <cell alignment="center" valignment="top" usebox="none">
18082 \begin_layout Plain Layout
18088 <cell alignment="center" valignment="top" usebox="none">
18091 \begin_layout Plain Layout
18097 <cell alignment="center" valignment="top" usebox="none">
18100 \begin_layout Plain Layout
18108 <cell alignment="center" valignment="top" usebox="none">
18111 \begin_layout Plain Layout
18117 <cell alignment="center" valignment="top" usebox="none">
18120 \begin_layout Plain Layout
18126 <cell alignment="center" valignment="top" usebox="none">
18129 \begin_layout Plain Layout
18137 <cell alignment="center" valignment="top" usebox="none">
18140 \begin_layout Plain Layout
18146 <cell alignment="center" valignment="top" usebox="none">
18149 \begin_layout Plain Layout
18155 <cell alignment="center" valignment="top" usebox="none">
18158 \begin_layout Plain Layout
18177 \begin_layout Standard
18181 \begin_layout Plain Layout
18187 hline]{1}{lightgray}{cyan}
18195 \begin_layout Standard
18196 \begin_inset Float table
18202 \begin_layout Plain Layout
18203 \begin_inset Caption Standard
18205 \begin_layout Plain Layout
18206 \begin_inset CommandInset label
18208 name "tab:Table-rowcolors-2"
18212 Table where every second row is colored cyan and at which there is a line
18221 \begin_layout Plain Layout
18223 \begin_inset Tabular
18224 <lyxtabular version="3" rows="4" columns="3">
18225 <features tabularvalignment="middle">
18226 <column alignment="center" valignment="top">
18227 <column alignment="center" valignment="top">
18228 <column alignment="center" valignment="top" width="0pt">
18230 <cell alignment="center" valignment="top" usebox="none">
18233 \begin_layout Plain Layout
18239 <cell alignment="center" valignment="top" usebox="none">
18242 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" usebox="none">
18251 \begin_layout Plain Layout
18259 <cell alignment="center" valignment="top" usebox="none">
18262 \begin_layout Plain Layout
18268 <cell alignment="center" valignment="top" usebox="none">
18271 \begin_layout Plain Layout
18277 <cell alignment="center" valignment="top" usebox="none">
18280 \begin_layout Plain Layout
18288 <cell alignment="center" valignment="top" usebox="none">
18291 \begin_layout Plain Layout
18297 <cell alignment="center" valignment="top" usebox="none">
18300 \begin_layout Plain Layout
18306 <cell alignment="center" valignment="top" usebox="none">
18309 \begin_layout Plain Layout
18317 <cell alignment="center" valignment="top" usebox="none">
18320 \begin_layout Plain Layout
18326 <cell alignment="center" valignment="top" usebox="none">
18329 \begin_layout Plain Layout
18335 <cell alignment="center" valignment="top" usebox="none">
18338 \begin_layout Plain Layout
18357 \begin_layout Standard
18361 \begin_layout Plain Layout
18371 \begin_inset Note Note
18374 \begin_layout Plain Layout
18375 turns off the row coloring
18383 \begin_layout Standard
18387 \begin_layout Plain Layout
18397 \begin_inset Note Note
18400 \begin_layout Plain Layout
18401 The following will be displayed when the \SpecialChar LaTeX
18414 \begin_layout Standard
18415 You need to install the package
18419 to see the content of this section in the output.
18422 \begin_layout Standard
18426 \begin_layout Plain Layout
18438 \begin_layout Subsection
18440 \begin_inset Index idx
18443 \begin_layout Plain Layout
18444 Table Color ! for Lines
18450 \begin_inset Index idx
18453 \begin_layout Plain Layout
18454 Color ! for Table Lines
18462 \begin_layout Standard
18463 As described in section
18464 \begin_inset space ~
18468 \begin_inset CommandInset ref
18470 reference "subsec:Line-Thickness"
18474 , the line thickness for all lines in a table can be adjusted with the length
18483 \begin_inset space \thinspace{}
18486 pt for all tables of this section.
18490 \begin_layout Plain Layout
18496 arrayrulewidth}{1.5pt}
18504 \begin_layout Standard
18505 To color vertical lines for example with green, create the following column
18506 format in the document preamble, according to the description in section
18507 \begin_inset space ~
18511 \begin_inset CommandInset ref
18513 reference "subsec:Customized-Format"
18520 \begin_layout Standard
18525 newcolumntype{W}{!{
18532 \begin_layout Standard
18534 \begin_inset space ~
18538 \begin_inset CommandInset ref
18540 reference "tab:Table-with-vertical-colored"
18544 the \SpecialChar LaTeX
18549 was used for the last column and
18553 for the other columns.
18556 \begin_layout Standard
18557 If you want to have several colors, define more column formats.
18560 \begin_layout Standard
18561 \begin_inset Float table
18567 \begin_layout Plain Layout
18568 \begin_inset Caption Standard
18570 \begin_layout Plain Layout
18571 \begin_inset CommandInset label
18573 name "tab:Table-with-vertical-colored"
18577 Table with colored vertical lines
18585 \begin_layout Plain Layout
18587 \begin_inset Tabular
18588 <lyxtabular version="3" rows="3" columns="3">
18589 <features tabularvalignment="middle">
18590 <column alignment="center" valignment="top" special="Wc">
18591 <column alignment="center" valignment="top" special="Wc">
18592 <column alignment="center" valignment="top" special="WcW">
18594 <cell alignment="center" valignment="top" topline="true" usebox="none">
18597 \begin_layout Plain Layout
18603 <cell alignment="center" valignment="top" topline="true" usebox="none">
18606 \begin_layout Plain Layout
18612 <cell alignment="center" valignment="top" topline="true" usebox="none">
18615 \begin_layout Plain Layout
18623 <cell alignment="center" valignment="top" topline="true" usebox="none">
18626 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" topline="true" usebox="none">
18635 \begin_layout Plain Layout
18641 <cell alignment="center" valignment="top" topline="true" usebox="none">
18644 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18664 \begin_layout Plain Layout
18670 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18673 \begin_layout Plain Layout
18692 \begin_layout Standard
18693 \begin_inset VSpace bigskip
18696 To color horizontal lines for example with red, as in Table
18697 \begin_inset space ~
18701 \begin_inset CommandInset ref
18703 reference "tab:Table-with-horizontal-colored"
18707 , insert these commands in \SpecialChar TeX
18708 Code before the table or table float:
18711 \begin_layout Standard
18721 \begin_inset Newline newline
18729 \begin_inset Newline newline
18733 \begin_inset Phantom HPhantom
18736 \begin_layout Plain Layout
18739 \begin_inset space ~
18749 arrayrulecolor{red}
18753 arrayrulecolor{black}}
18756 \begin_layout Standard
18760 \begin_layout Plain Layout
18771 \begin_layout Plain Layout
18780 \begin_layout Plain Layout
18784 arrayrulecolor{red}
18788 arrayrulecolor{black}}
18794 \begin_inset Float table
18800 \begin_layout Plain Layout
18801 \begin_inset Caption Standard
18803 \begin_layout Plain Layout
18804 \begin_inset CommandInset label
18806 name "tab:Table-with-horizontal-colored"
18810 Table with colored horizontal lines
18818 \begin_layout Plain Layout
18820 \begin_inset Tabular
18821 <lyxtabular version="3" rows="3" columns="3">
18822 <features tabularvalignment="middle">
18823 <column alignment="center" valignment="top">
18824 <column alignment="center" valignment="top">
18825 <column alignment="center" valignment="top">
18827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18830 \begin_layout Plain Layout
18836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18839 \begin_layout Plain Layout
18845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18848 \begin_layout Plain Layout
18856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18859 \begin_layout Plain Layout
18865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18868 \begin_layout Plain Layout
18874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18877 \begin_layout Plain Layout
18885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18888 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18906 \begin_layout Plain Layout
18925 \begin_layout Standard
18926 To return to the default line color black, insert this command in \SpecialChar TeX
18928 after the table or table float:
18931 \begin_layout Standard
18943 \begin_layout Standard
18945 \begin_inset space ~
18949 \begin_inset CommandInset ref
18951 reference "tab:Table-with-colored"
18955 is an example with colored vertical and horizontal lines.
18958 \begin_layout Standard
18959 \begin_inset Float table
18965 \begin_layout Plain Layout
18966 \begin_inset Caption Standard
18968 \begin_layout Plain Layout
18969 \begin_inset CommandInset label
18971 name "tab:Table-with-colored"
18975 Table with colored lines
18983 \begin_layout Plain Layout
18985 \begin_inset Tabular
18986 <lyxtabular version="3" rows="3" columns="3">
18987 <features tabularvalignment="middle">
18988 <column alignment="center" valignment="top" special="Wc">
18989 <column alignment="center" valignment="top" special="Wc">
18990 <column alignment="center" valignment="top" special="WcW">
18992 <cell alignment="center" valignment="top" topline="true" usebox="none">
18995 \begin_layout Plain Layout
19001 <cell alignment="center" valignment="top" topline="true" usebox="none">
19004 \begin_layout Plain Layout
19010 <cell alignment="center" valignment="top" topline="true" usebox="none">
19013 \begin_layout Plain Layout
19021 <cell alignment="center" valignment="top" topline="true" usebox="none">
19024 \begin_layout Plain Layout
19030 <cell alignment="center" valignment="top" topline="true" usebox="none">
19033 \begin_layout Plain Layout
19039 <cell alignment="center" valignment="top" topline="true" usebox="none">
19042 \begin_layout Plain Layout
19049 <row topspace="default">
19050 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19053 \begin_layout Plain Layout
19059 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19062 \begin_layout Plain Layout
19068 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19071 \begin_layout Plain Layout
19090 \begin_layout Standard
19094 \begin_layout Plain Layout
19110 \begin_layout Standard
19114 \begin_layout Plain Layout
19120 arrayrulewidth}{0.4pt}
19128 \begin_layout Section
19129 Rotated Table Cells
19130 \begin_inset CommandInset label
19132 name "sec:Rotated-Table-Cells"
19137 \begin_inset Index idx
19140 \begin_layout Plain Layout
19141 Table ! Rotated Cells
19147 \begin_inset Index idx
19150 \begin_layout Plain Layout
19159 \begin_layout Standard
19160 \begin_inset Note Greyedout
19163 \begin_layout Plain Layout
19168 Not all DVI-viewers are able to display rotations.
19176 \begin_layout Standard
19178 \begin_inset space ~
19182 \begin_inset CommandInset ref
19184 reference "tab:Table-with-rotated-multi"
19188 is an example where 3
19189 \begin_inset space ~
19192 cells were rotated by 45
19193 \begin_inset space \thinspace{}
19199 \begin_layout Standard
19200 \begin_inset Float table
19206 \begin_layout Plain Layout
19207 \begin_inset Caption Standard
19209 \begin_layout Plain Layout
19210 \begin_inset CommandInset label
19212 name "tab:Table-with-rotated"
19216 Table with rotated cells in the first row.
19224 \begin_layout Plain Layout
19227 \begin_inset Tabular
19228 <lyxtabular version="3" rows="2" columns="3">
19229 <features tabularvalignment="middle">
19230 <column alignment="center" valignment="top" width="0pt">
19231 <column alignment="center" valignment="top" width="0pt">
19232 <column alignment="center" valignment="top" width="0pt">
19234 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19237 \begin_layout Plain Layout
19243 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19246 \begin_layout Plain Layout
19252 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19255 \begin_layout Plain Layout
19263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19266 \begin_layout Plain Layout
19272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19275 \begin_layout Plain Layout
19281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19284 \begin_layout Plain Layout
19303 \begin_layout Standard
19304 \begin_inset Note Greyedout
19307 \begin_layout Plain Layout
19312 Line breaks (shortcut
19315 arg "newline-insert newline"
19318 ) are not allowed in rotated cells.
19326 \begin_layout Standard
19327 If you want to rotate table cells containing line breaks, you have to put
19328 the cell content into a minipage or a parbox.
19332 \begin_layout Plain Layout
19333 For more about these boxes see sec.
19334 \begin_inset space \thinspace{}
19338 \begin_inset CommandInset ref
19340 reference "sec:Minipages"
19345 \begin_inset CommandInset ref
19347 reference "sec:Parboxes"
19356 If you rotate this cell by 90
19357 \begin_inset space \thinspace{}
19360 ° the width of the box is the height of the cell.
19362 \begin_inset space ~
19366 \begin_inset CommandInset ref
19368 reference "tab:Table-with-rotated-multi"
19372 is an example for a rotated multiline cell where the box width was set
19374 \begin_inset space \thinspace{}
19380 \begin_layout Standard
19381 \begin_inset Float table
19386 \begin_layout Plain Layout
19387 \begin_inset Caption Standard
19389 \begin_layout Plain Layout
19390 \begin_inset CommandInset label
19392 name "tab:Table-with-rotated-multi"
19396 Table with rotated multiline cell.
19404 \begin_layout Plain Layout
19407 \begin_inset Tabular
19408 <lyxtabular version="3" rows="2" columns="3">
19409 <features tabularvalignment="middle">
19410 <column alignment="center" valignment="top">
19411 <column alignment="center" valignment="top" width="0pt">
19412 <column alignment="center" valignment="top">
19414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19417 \begin_layout Plain Layout
19423 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19426 \begin_layout Plain Layout
19427 \begin_inset Box Frameless
19437 height_special "totalheight"
19442 backgroundcolor "none"
19445 \begin_layout Plain Layout
19447 \begin_inset Newline newline
19460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19463 \begin_layout Plain Layout
19471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19474 \begin_layout Plain Layout
19480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19483 \begin_layout Plain Layout
19489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19492 \begin_layout Plain Layout
19511 \begin_layout Section
19512 Table Width Calculation
19513 \begin_inset CommandInset label
19515 name "sec:Table-Width-Calculation"
19522 \begin_layout Standard
19523 For wide tables it is sometimes difficult to assure that the table does
19524 not protrude over the page margin.
19525 Setting a fixed width for every column of the table is the solution, but
19526 what amount of space is needed for each column?
19529 \begin_layout Standard
19531 \begin_inset Formula $W_{\mathrm{table}}$
19534 can be calculated: Every column has the width of the specified column width
19536 \begin_inset Formula $W_{\mathrm{column}}$
19539 (that the content of the column can consume) plus two times the separation
19540 between the column content and the column border (\SpecialChar LaTeX
19548 \begin_inset space \thinspace{}
19551 pt) plus the width of a border line (\SpecialChar LaTeX
19559 \begin_inset space \thinspace{}
19563 \begin_inset Formula $n$
19567 \begin_inset space ~
19570 columns have the same width, the table width is
19571 \begin_inset Formula
19573 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19581 \begin_layout Standard
19582 The available width for a table is the space between the page margins or
19583 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19591 If all table columns should have the same width and
19592 \begin_inset Formula $W_{\mathrm{table}}$
19596 \begin_inset space \thinspace{}
19602 \begin_inset Formula $W_{\mathrm{column}}$
19605 can easily be calculated.
19608 \begin_layout Standard
19609 To be able to perform calculations you need to load the \SpecialChar LaTeX
19615 \begin_inset Index idx
19618 \begin_layout Plain Layout
19625 in the document preamble.
19626 To set the width in the table dialog you have to use the field
19632 The command scheme for this field is the same that is explained in section
19633 \begin_inset space ~
19637 \begin_inset CommandInset ref
19639 reference "subsec:Multicolumn-Calculations"
19645 \begin_inset space \thinspace{}
19648 columns with an uniform width and centered text, enter there for each column
19652 \begin_layout Standard
19659 columnwidth-62.4pt)/5}
19662 \begin_layout Standard
19664 \begin_inset space \thinspace{}
19667 columns where 2 should have 0.75
19668 \begin_inset space ~
19671 times the width than the 3 others, the calculation is
19672 \begin_inset Formula
19674 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19675 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19676 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19677 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19685 \begin_layout Standard
19686 In the table therefore the command
19689 \begin_layout Standard
19696 columnwidth-62.4pt)/
19701 \begin_layout Standard
19702 is used for the wider columns and
19705 \begin_layout Standard
19712 columnwidth-62.4pt)/
19719 \begin_layout Standard
19720 for the smaller ones:
19723 \begin_layout Standard
19724 \begin_inset Tabular
19725 <lyxtabular version="3" rows="2" columns="5">
19726 <features tabularvalignment="middle">
19727 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19728 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19729 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19730 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19731 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19736 \begin_layout Plain Layout
19742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19745 \begin_layout Plain Layout
19751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19754 \begin_layout Plain Layout
19760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19763 \begin_layout Plain Layout
19769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19772 \begin_layout Plain Layout
19780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19783 \begin_layout Plain Layout
19784 111111 1111111 111111 111111111 11111 11111 1111
19789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19792 \begin_layout Plain Layout
19798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19801 \begin_layout Plain Layout
19802 2222 22222 222222 222222222 2222222 22 22222
19807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19810 \begin_layout Plain Layout
19816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19819 \begin_layout Plain Layout
19820 333333 333333 333333 33333 3333333 333
19833 \begin_layout Section
19834 Table Customization
19835 \begin_inset Index idx
19838 \begin_layout Plain Layout
19839 Table Customization
19845 \begin_inset Index idx
19848 \begin_layout Plain Layout
19849 Table ! Customization
19857 \begin_layout Subsection
19859 \begin_inset CommandInset label
19861 name "subsec:Row-Spacing"
19866 \begin_inset Index idx
19869 \begin_layout Plain Layout
19870 Table Customization ! Row Spacing
19878 \begin_layout Standard
19879 You can add vertical space to table rows in the
19883 tab of the table dialog.
19884 You find there three possibilities:
19887 \begin_layout Description
19889 \begin_inset space ~
19893 \begin_inset space ~
19896 row will add space above the characters of the table row.
19897 If the table is a formal table
19901 \begin_layout Plain Layout
19902 Formal tables are explained in section
19903 \begin_inset space ~
19907 \begin_inset CommandInset ref
19909 reference "sec:Formal-Tables"
19919 will insert as default 0.5
19920 \begin_inset space \thinspace{}
19924 For normal tables the inserted space will unfortunately destroy the vertical
19925 table lines as in the following table:
19926 \begin_inset VSpace medskip
19930 \begin_inset Newline newline
19934 \begin_inset space \hspace*{}
19939 \begin_inset space \hfill{}
19943 \begin_inset Tabular
19944 <lyxtabular version="3" rows="3" columns="1">
19945 <features tabularvalignment="middle">
19946 <column alignment="center" valignment="top">
19948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19951 \begin_layout Plain Layout
19958 <row topspace="3mm">
19959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19962 \begin_layout Plain Layout
19964 \begin_inset space \thinspace{}
19967 mm space top of row
19974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19977 \begin_layout Plain Layout
19989 \begin_inset space \hfill{}
19993 \begin_inset space \hspace*{}
19998 \begin_inset VSpace medskip
20002 \begin_inset Newline newline
20005 So inserting space in the top of row for normal tables is only useful when
20006 you don't have vertical lines.
20009 \begin_layout Description
20011 \begin_inset space ~
20015 \begin_inset space ~
20018 row will add space below the characters of the table row.
20019 If the table is a formal table \SpecialChar LyX
20020 will insert as default 0.5
20021 \begin_inset space \thinspace{}
20024 em space, for normal tables the default size is 2
20025 \begin_inset space \thinspace{}
20031 \begin_layout Description
20033 \begin_inset space ~
20036 rows adds space between the current and the following row.
20037 If the table is a formal table \SpecialChar LyX
20038 will insert as default 0.5
20039 \begin_inset space \thinspace{}
20043 For normal tables the inserted space will unfortunately destroy the vertical
20044 table lines as in the following table:
20045 \begin_inset VSpace medskip
20049 \begin_inset Newline newline
20053 \begin_inset space \hspace*{}
20058 \begin_inset space \hfill{}
20062 \begin_inset Tabular
20063 <lyxtabular version="3" rows="3" columns="1">
20064 <features tabularvalignment="middle">
20065 <column alignment="center" valignment="top">
20067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20070 \begin_layout Plain Layout
20077 <row interlinespace="3mm">
20078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20081 \begin_layout Plain Layout
20082 \begin_inset Formula $\downarrow$
20086 \begin_inset space \thinspace{}
20089 mm space between row
20090 \begin_inset Formula $\downarrow$
20100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20103 \begin_layout Plain Layout
20104 \begin_inset Formula $\uparrow$
20108 \begin_inset space \thinspace{}
20111 mm space between row
20112 \begin_inset Formula $\uparrow$
20126 \begin_inset space \hfill{}
20130 \begin_inset space \hspace*{}
20135 \begin_inset VSpace medskip
20139 \begin_inset Newline newline
20142 So inserting space between rows for normal tables is only useful when you
20143 don't have vertical lines.
20146 \begin_layout Standard
20147 \begin_inset VSpace bigskip
20150 When you want to add extra height to all cells of all tables, you can do
20151 this with the following preamble lines:
20154 \begin_layout Standard
20159 @ifundefined{extrarowheight}
20160 \begin_inset Newline newline
20164 \begin_inset Phantom HPhantom
20167 \begin_layout Plain Layout
20170 \begin_inset space ~
20180 usepackage{array}}{}
20181 \begin_inset Newline newline
20188 extrarowheight}{height}
20191 \begin_inset Note Note
20194 \begin_layout Plain Layout
20199 will be loaded automatically by \SpecialChar LyX
20200 when you use self defined table formats.
20201 To avoid that it being loaded twice the command
20207 is used in the above command.
20215 \begin_layout Standard
20220 can have one of the units listed in appendix
20221 \begin_inset space ~
20225 \begin_inset CommandInset ref
20227 reference "cha:Units-available-in"
20232 But this has the disadvantage that the cell texts are no longer exactly
20233 vertically centered.
20236 \begin_layout Standard
20237 If you are using font sizes larger than the normal size, the table borders
20238 are often too close to the letters.
20239 This can be corrected by inserting the command
20245 in \SpecialChar TeX
20246 Code at the beginning of a table row.
20248 \begin_inset space ~
20252 \begin_inset CommandInset ref
20254 reference "tab:Vertical-alignment-of"
20258 illustrates the effect.
20261 \begin_layout Standard
20263 \begin_inset Float table
20269 \begin_layout Plain Layout
20270 \begin_inset Caption Standard
20272 \begin_layout Plain Layout
20273 \begin_inset CommandInset label
20275 name "tab:Vertical-alignment-of"
20279 Vertical alignment of text with large font sizes.
20287 \begin_layout Plain Layout
20288 \begin_inset space \hfill{}
20292 \begin_inset Float table
20297 \begin_layout Plain Layout
20298 \begin_inset Caption Standard
20300 \begin_layout Plain Layout
20309 \begin_layout Plain Layout
20312 \begin_inset Tabular
20313 <lyxtabular version="3" rows="6" columns="1">
20314 <features tabularvalignment="middle">
20315 <column alignment="left" valignment="top">
20317 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20320 \begin_layout Plain Layout
20328 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20331 \begin_layout Plain Layout
20341 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20344 \begin_layout Plain Layout
20354 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20357 \begin_layout Plain Layout
20367 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20370 \begin_layout Plain Layout
20380 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20383 \begin_layout Plain Layout
20402 \begin_inset space \hfill{}
20406 \begin_inset Float table
20411 \begin_layout Plain Layout
20412 \begin_inset Caption Standard
20414 \begin_layout Plain Layout
20415 Table using the command
20429 \begin_layout Plain Layout
20432 \begin_inset Tabular
20433 <lyxtabular version="3" rows="6" columns="1">
20434 <features tabularvalignment="middle">
20435 <column alignment="left" valignment="top">
20437 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20440 \begin_layout Plain Layout
20448 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20451 \begin_layout Plain Layout
20457 \begin_layout Plain Layout
20473 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20476 \begin_layout Plain Layout
20482 \begin_layout Plain Layout
20498 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20501 \begin_layout Plain Layout
20507 \begin_layout Plain Layout
20523 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20526 \begin_layout Plain Layout
20532 \begin_layout Plain Layout
20548 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20551 \begin_layout Plain Layout
20557 \begin_layout Plain Layout
20584 \begin_inset space \hfill{}
20595 \begin_layout Subsection
20596 Special Cell Alignment
20597 \begin_inset CommandInset label
20599 name "subsec:Special-Cell-Alignment"
20604 \begin_inset Index idx
20607 \begin_layout Plain Layout
20608 Table Customization ! Special Cell Alignment
20616 \begin_layout Standard
20617 Sometimes it looks better when the cell entries of a column are aligned
20618 with a special character, e.
20619 \begin_inset space \thinspace{}
20623 \begin_inset space \space{}
20626 with the decimal separator as in Table
20627 \begin_inset space ~
20631 \begin_inset CommandInset ref
20633 reference "tab:Table-cells-align"
20638 This alignment is achieved by setting the cursor into the column and then
20639 either pressing the toolbar button
20642 arg "tabular-feature align-decimal"
20645 or setting the alignment in the table settings to
20648 \begin_inset space ~
20652 \begin_inset space ~
20658 The alignment character can be a character of your choice and is specified
20659 in the table settings.
20662 \begin_layout Standard
20663 \begin_inset Float table
20669 \begin_layout Plain Layout
20670 \begin_inset Caption Standard
20672 \begin_layout Plain Layout
20673 \begin_inset CommandInset label
20675 name "tab:Table-cells-align"
20679 Table cells of a column aligned with the decimal separator.
20687 \begin_layout Plain Layout
20689 \begin_inset Tabular
20690 <lyxtabular version="3" rows="4" columns="1">
20691 <features booktabs="true" tabularvalignment="middle">
20692 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20697 \begin_layout Plain Layout
20705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20708 \begin_layout Plain Layout
20716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20719 \begin_layout Plain Layout
20727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20730 \begin_layout Plain Layout
20749 \begin_layout Standard
20750 \begin_inset Float table
20756 \begin_layout Plain Layout
20757 \begin_inset Caption Standard
20759 \begin_layout Plain Layout
20760 \begin_inset CommandInset label
20762 name "tab:Table-align-operator"
20766 Table cells of a column aligned with the operators.
20774 \begin_layout Plain Layout
20776 \begin_inset Tabular
20777 <lyxtabular version="3" rows="4" columns="2">
20778 <features booktabs="true" tabularvalignment="middle">
20779 <column alignment="right" valignment="top" width="0pt">
20780 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20782 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20785 \begin_layout Plain Layout
20791 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20794 \begin_layout Plain Layout
20802 <cell alignment="center" valignment="top" usebox="none">
20805 \begin_layout Plain Layout
20806 \begin_inset Formula $12\,+$
20814 <cell alignment="center" valignment="top" usebox="none">
20817 \begin_layout Plain Layout
20818 \begin_inset Formula $\,6$
20828 <cell alignment="center" valignment="top" usebox="none">
20831 \begin_layout Plain Layout
20832 \begin_inset Formula $0\,-$
20840 <cell alignment="center" valignment="top" usebox="none">
20843 \begin_layout Plain Layout
20844 \begin_inset Formula $\,68$
20854 <cell alignment="center" valignment="top" usebox="none">
20857 \begin_layout Plain Layout
20858 \begin_inset Formula $-123\,/$
20866 <cell alignment="center" valignment="top" usebox="none">
20869 \begin_layout Plain Layout
20870 \begin_inset Formula $\,0$
20891 \begin_layout Standard
20892 For alignments at characters in formulas this method does not work because
20893 the field to specify the alignment character does not allow formulas.
20894 In this case one need to use the method from Table
20895 \begin_inset space ~
20899 \begin_inset CommandInset ref
20901 reference "tab:Table-align-operator"
20906 This table was created with a 4×2 table.
20907 The heading is a centered multicolumn.
20908 The first column is right-aligned and contains the first part including
20910 The second column is left aligned and contains the rest.
20911 A small space was added at the beginning of each cell of the second column
20912 to get the space that is usually around operators.
20913 To omit the space that is normally between two table columns, the following
20915 -argument was used for the second column:
20918 \begin_layout Standard
20924 \begin_layout Standard
20926 \begin_inset space ~
20930 \begin_inset CommandInset ref
20932 reference "tab:Several-table-cell"
20936 shows some example alignments.
20937 For the alignment with the relation sign, a small space was added like
20938 for the second column of Table
20939 \begin_inset space ~
20943 \begin_inset CommandInset ref
20945 reference "tab:Table-align-operator"
20952 \begin_layout Standard
20953 \begin_inset Float table
20959 \begin_layout Plain Layout
20960 \begin_inset Caption Standard
20962 \begin_layout Plain Layout
20963 \begin_inset CommandInset label
20965 name "tab:Several-table-cell"
20969 Several table cell alignments.
20977 \begin_layout Plain Layout
20979 \begin_inset Tabular
20980 <lyxtabular version="3" rows="4" columns="6">
20981 <features tabularvalignment="middle">
20982 <column alignment="right" valignment="top">
20983 <column alignment="left" valignment="top" special="@{}l">
20984 <column alignment="right" valignment="top">
20985 <column alignment="left" valignment="top" special="@{}l">
20986 <column alignment="right" valignment="top">
20987 <column alignment="left" valignment="top" special="@{}l">
20989 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20992 \begin_layout Plain Layout
20998 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21001 \begin_layout Plain Layout
21007 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21010 \begin_layout Plain Layout
21016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21019 \begin_layout Plain Layout
21025 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21028 \begin_layout Plain Layout
21034 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21037 \begin_layout Plain Layout
21045 <cell alignment="center" valignment="top" usebox="none">
21048 \begin_layout Plain Layout
21054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21057 \begin_layout Plain Layout
21059 \begin_inset space \thinspace{}
21067 <cell alignment="center" valignment="top" usebox="none">
21070 \begin_layout Plain Layout
21071 \begin_inset Formula $10\cdot$
21079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21082 \begin_layout Plain Layout
21083 \begin_inset Formula $10^{\mbox{-}17}$
21091 <cell alignment="center" valignment="top" usebox="none">
21094 \begin_layout Plain Layout
21095 \begin_inset Formula $\Gamma(t)\propto$
21103 <cell alignment="center" valignment="top" usebox="none">
21106 \begin_layout Plain Layout
21107 \begin_inset Formula $\:\Upsilon(t)$
21117 <cell alignment="center" valignment="top" usebox="none">
21120 \begin_layout Plain Layout
21126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21129 \begin_layout Plain Layout
21131 \begin_inset space \thinspace{}
21139 <cell alignment="center" valignment="top" usebox="none">
21142 \begin_layout Plain Layout
21143 \begin_inset Formula $5.78\cdot$
21151 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21154 \begin_layout Plain Layout
21155 \begin_inset Formula $10^{7}$
21163 <cell alignment="center" valignment="top" usebox="none">
21166 \begin_layout Plain Layout
21167 \begin_inset Formula $A\ne$
21175 <cell alignment="center" valignment="top" usebox="none">
21178 \begin_layout Plain Layout
21179 \begin_inset Formula $\:B_{\mathrm{red}}$
21189 <cell alignment="center" valignment="top" usebox="none">
21192 \begin_layout Plain Layout
21198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21201 \begin_layout Plain Layout
21203 \begin_inset space \thinspace{}
21211 <cell alignment="center" valignment="top" usebox="none">
21214 \begin_layout Plain Layout
21216 \begin_inset Formula $33.5\cdot$
21224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21227 \begin_layout Plain Layout
21228 \begin_inset Formula $10^{4}$
21236 <cell alignment="center" valignment="top" usebox="none">
21239 \begin_layout Plain Layout
21240 \begin_inset Formula $\sin(\alpha)\ge$
21248 <cell alignment="center" valignment="top" usebox="none">
21251 \begin_layout Plain Layout
21252 \begin_inset Formula $\:\sin(\beta)$
21273 \begin_layout Subsection
21274 Customized Cell/Column Format
21275 \begin_inset CommandInset label
21277 name "subsec:Customized-Format"
21282 \begin_inset Index idx
21285 \begin_layout Plain Layout
21286 Table Customization ! Cell/Column Format
21294 \begin_layout Standard
21295 Calculating the required width for normal columns as described in section
21296 \begin_inset space ~
21300 \begin_inset CommandInset ref
21302 reference "sec:Table-Width-Calculation"
21306 or for spanned columns as described in section
21307 \begin_inset space ~
21311 \begin_inset CommandInset ref
21313 reference "subsec:Multicolumn-Calculations"
21317 is very annoying if you have several tables where a calculation is necessary.
21318 To make life easier, you can define a cell/column format in the preamble,
21319 that can be used in all tables of the document.
21320 The format is defined with the command
21323 \begin_layout Standard
21328 newcolumntype{name of format}[number of arguments]{commands}
21331 \begin_layout Standard
21332 The format name may only consist of one letter.
21357 are predefined and cannot be used.
21358 But all letters are allowed as capitals.
21361 \begin_layout Standard
21362 \begin_inset VSpace medskip
21368 \begin_layout Standard
21369 For vertically and horizontally centered multicolumn cells with a fixed
21370 width you can define the cell format
21373 \begin_layout Standard
21378 newcolumntype{M}[1]{>{
21385 \begin_layout Standard
21392 avoids the problem of hyphenating the first word, as described in section
21393 \begin_inset space ~
21397 \begin_inset CommandInset ref
21399 reference "subsec:Multiple-Lines-in"
21404 Now you can simply enter
21407 \begin_layout Standard
21413 \begin_layout Standard
21419 in the table dialog to create a multicolumn.
21422 \begin_layout Standard
21423 \begin_inset VSpace bigskip
21429 \begin_layout Standard
21430 For cells spanned by a multicolumn cell, you can define the format
21433 \begin_layout Standard
21438 newcolumntype{S}[2]{>{
21443 \begin_inset Newline newline
21447 \begin_inset Phantom HPhantom
21450 \begin_layout Plain Layout
21464 arrayrulewidth)*(1-#2))/#2}}
21467 \begin_layout Standard
21468 This format uses equation
21469 \begin_inset CommandInset ref
21475 to calculate the required width so that each spanned cell has the same
21479 \begin_layout Standard
21483 \begin_layout Standard
21486 S{width of multicolumn cell}{number of spanned columns}
21489 \begin_layout Standard
21490 as \SpecialChar LaTeX
21491 -argument of the column.
21494 \begin_layout Standard
21495 \begin_inset VSpace bigskip
21501 \begin_layout Standard
21502 For colored columns, you can define
21505 \begin_layout Standard
21510 newcolumntype{K}[1]{>{
21517 \begin_layout Standard
21519 \begin_inset Quotes eld
21523 \begin_inset Quotes erd
21526 at the end creates a column with a flexible width whose text is horizontally
21531 \begin_layout Standard
21537 \begin_layout Standard
21538 as \SpecialChar LaTeX
21542 \begin_layout Standard
21543 \begin_inset VSpace bigskip
21549 \begin_layout Standard
21551 \begin_inset space ~
21555 \begin_inset CommandInset ref
21557 reference "tab:Table-using-user-defined"
21561 use the \SpecialChar LaTeX
21565 \begin_layout Standard
21571 \begin_layout Standard
21572 for the first column and the multicolumn,
21575 \begin_layout Standard
21581 \begin_layout Standard
21582 for the last column, and
21585 \begin_layout Standard
21591 \begin_layout Standard
21592 for the cells in the second column.
21595 \begin_layout Standard
21596 \begin_inset Float table
21602 \begin_layout Plain Layout
21603 \begin_inset Caption Standard
21605 \begin_layout Plain Layout
21606 \begin_inset CommandInset label
21608 name "tab:Table-using-user-defined"
21612 Table using user-defined table formats
21620 \begin_layout Plain Layout
21622 \begin_inset Tabular
21623 <lyxtabular version="3" rows="3" columns="4">
21624 <features tabularvalignment="middle">
21625 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21626 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21627 <column alignment="center" valignment="middle">
21628 <column alignment="center" valignment="middle" special="K{red}">
21630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21633 \begin_layout Plain Layout
21634 verylongtablecellword
21639 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21642 \begin_layout Plain Layout
21643 multiple lines multicolumn
21648 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21651 \begin_layout Plain Layout
21657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21660 \begin_layout Plain Layout
21668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21671 \begin_layout Plain Layout
21677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21680 \begin_layout Plain Layout
21686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21689 \begin_layout Plain Layout
21695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21698 \begin_layout Plain Layout
21706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21709 \begin_layout Plain Layout
21715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21718 \begin_layout Plain Layout
21724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21727 \begin_layout Plain Layout
21733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21736 \begin_layout Plain Layout
21755 \begin_layout Subsection
21757 \begin_inset CommandInset label
21759 name "subsec:Line-Thickness"
21764 \begin_inset Index idx
21767 \begin_layout Plain Layout
21768 Table Customization ! Line Thickness
21776 \begin_layout Standard
21777 The line thickness for all lines in a table can be adjusted with the length
21785 To set for example a line thickness of 1.5
21786 \begin_inset space \thinspace{}
21790 \begin_inset space ~
21794 \begin_inset CommandInset ref
21796 reference "tab:Table-with-1.5"
21800 , insert the command
21803 \begin_layout Standard
21810 arrayrulewidth}{1.5pt}
21813 \begin_layout Standard
21814 in \SpecialChar TeX
21815 Code before the table or table float.
21816 The changed thickness is valid for all subsequent tables.
21817 To use the default value again, set
21824 \begin_inset space \thinspace{}
21827 pt in \SpecialChar TeX
21828 Code after the table or table float.
21831 \begin_layout Standard
21835 \begin_layout Plain Layout
21841 arrayrulewidth}{1.5pt}
21847 \begin_inset Float table
21852 \begin_layout Plain Layout
21853 \begin_inset Caption Standard
21855 \begin_layout Plain Layout
21856 \begin_inset CommandInset label
21858 name "tab:Table-with-1.5"
21863 \begin_inset space \thinspace{}
21874 \begin_layout Plain Layout
21876 \begin_inset Tabular
21877 <lyxtabular version="3" rows="3" columns="3">
21878 <features tabularvalignment="middle">
21879 <column alignment="center" valignment="top">
21880 <column alignment="center" valignment="top">
21881 <column alignment="center" valignment="top">
21883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21886 \begin_layout Plain Layout
21892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21895 \begin_layout Plain Layout
21901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21904 \begin_layout Plain Layout
21912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21915 \begin_layout Plain Layout
21921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21924 \begin_layout Plain Layout
21930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21933 \begin_layout Plain Layout
21941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21944 \begin_layout Plain Layout
21950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21953 \begin_layout Plain Layout
21959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21962 \begin_layout Plain Layout
21982 \begin_layout Plain Layout
21988 arrayrulewidth}{0.4pt}
21996 \begin_layout Standard
21997 \begin_inset VSpace bigskip
22000 To set the line thickness to 1.5
22001 \begin_inset space \thinspace{}
22004 pt only for horizontal lines, as in Table
22005 \begin_inset space ~
22009 \begin_inset CommandInset ref
22011 reference "tab:Table-with-horizontal"
22015 , insert these commands in \SpecialChar TeX
22016 Code before the table or table float:
22019 \begin_layout Standard
22029 \begin_inset Newline newline
22037 \begin_inset Newline newline
22046 arrayrulewidth 1.5pt}
22047 \begin_inset Newline newline
22058 arrayrulewidth 0.4pt}}
22061 \begin_layout Standard
22062 To return to the default line thickness, insert this command in \SpecialChar TeX
22064 the table or table float:
22067 \begin_layout Standard
22079 \begin_layout Standard
22083 \begin_layout Plain Layout
22094 \begin_layout Plain Layout
22103 \begin_layout Plain Layout
22111 arrayrulewidth 1.5pt}
22114 \begin_layout Plain Layout
22124 arrayrulewidth 0.4pt}}
22130 \begin_inset Float table
22135 \begin_layout Plain Layout
22136 \begin_inset Caption Standard
22138 \begin_layout Plain Layout
22139 \begin_inset CommandInset label
22141 name "tab:Table-with-horizontal"
22146 \begin_inset space \thinspace{}
22149 pt thick horizontal lines
22157 \begin_layout Plain Layout
22159 \begin_inset Tabular
22160 <lyxtabular version="3" rows="3" columns="3">
22161 <features tabularvalignment="middle">
22162 <column alignment="center" valignment="top">
22163 <column alignment="center" valignment="top">
22164 <column alignment="center" valignment="top">
22166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22169 \begin_layout Plain Layout
22175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22178 \begin_layout Plain Layout
22184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22187 \begin_layout Plain Layout
22195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22198 \begin_layout Plain Layout
22204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22207 \begin_layout Plain Layout
22213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22216 \begin_layout Plain Layout
22224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22227 \begin_layout Plain Layout
22233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22236 \begin_layout Plain Layout
22242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22245 \begin_layout Plain Layout
22265 \begin_layout Plain Layout
22281 \begin_layout Standard
22282 \begin_inset VSpace bigskip
22285 To set the line thickness to 1.5
22286 \begin_inset space \thinspace{}
22289 pt only for vertical lines, create the following column format in the document
22290 preamble, according to the description in section
22291 \begin_inset space ~
22295 \begin_inset CommandInset ref
22297 reference "subsec:Customized-Format"
22304 \begin_layout Standard
22309 newcolumntype{V}{!{
22311 vrule width 1.5pt}}
22314 \begin_layout Standard
22316 \begin_inset space ~
22320 \begin_inset CommandInset ref
22322 reference "tab:Table-with-vertical"
22326 the \SpecialChar LaTeX
22330 \begin_layout Standard
22336 \begin_layout Standard
22337 was used for the last column and
22340 \begin_layout Standard
22346 \begin_layout Standard
22347 for the other columns.
22350 \begin_layout Standard
22351 \begin_inset Float table
22356 \begin_layout Plain Layout
22357 \begin_inset Caption Standard
22359 \begin_layout Plain Layout
22360 \begin_inset CommandInset label
22362 name "tab:Table-with-vertical"
22367 \begin_inset space \thinspace{}
22370 pt thick vertical lines
22378 \begin_layout Plain Layout
22380 \begin_inset Tabular
22381 <lyxtabular version="3" rows="3" columns="3">
22382 <features tabularvalignment="middle">
22383 <column alignment="center" valignment="top" special="Vc">
22384 <column alignment="center" valignment="top" special="Vc">
22385 <column alignment="center" valignment="top" special="VcV">
22387 <cell alignment="center" valignment="top" topline="true" usebox="none">
22390 \begin_layout Plain Layout
22396 <cell alignment="center" valignment="top" topline="true" usebox="none">
22399 \begin_layout Plain Layout
22405 <cell alignment="center" valignment="top" topline="true" usebox="none">
22408 \begin_layout Plain Layout
22416 <cell alignment="center" valignment="top" topline="true" usebox="none">
22419 \begin_layout Plain Layout
22425 <cell alignment="center" valignment="top" topline="true" usebox="none">
22428 \begin_layout Plain Layout
22434 <cell alignment="center" valignment="top" topline="true" usebox="none">
22437 \begin_layout Plain Layout
22445 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22448 \begin_layout Plain Layout
22454 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22457 \begin_layout Plain Layout
22463 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22466 \begin_layout Plain Layout
22485 \begin_layout Subsection
22487 \begin_inset Index idx
22490 \begin_layout Plain Layout
22491 Table Customization ! Dashed Lines
22499 \begin_layout Standard
22503 \begin_layout Plain Layout
22513 \begin_inset Note Note
22516 \begin_layout Plain Layout
22517 The following section will only be displayed when the \SpecialChar LaTeX
22530 \begin_layout Standard
22531 \begin_inset Float table
22537 \begin_layout Plain Layout
22538 \begin_inset Caption Standard
22540 \begin_layout Plain Layout
22541 \begin_inset CommandInset label
22543 name "tab:Table-with-dashed"
22547 Table with dashed lines
22555 \begin_layout Plain Layout
22557 \begin_inset Tabular
22558 <lyxtabular version="3" rows="5" columns="5">
22559 <features tabularvalignment="middle">
22560 <column alignment="center" valignment="top">
22561 <column alignment="center" valignment="top">
22562 <column alignment="center" valignment="top" special=":c">
22563 <column alignment="center" valignment="top">
22564 <column alignment="center" valignment="top">
22566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22569 \begin_layout Plain Layout
22575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22578 \begin_layout Plain Layout
22584 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22587 \begin_layout Plain Layout
22593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22596 \begin_layout Plain Layout
22602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22605 \begin_layout Plain Layout
22613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22616 \begin_layout Plain Layout
22622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22625 \begin_layout Plain Layout
22631 <cell alignment="center" valignment="top" topline="true" usebox="none">
22634 \begin_layout Plain Layout
22640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22643 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22652 \begin_layout Plain Layout
22660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22663 \begin_layout Plain Layout
22667 \begin_layout Plain Layout
22681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22684 \begin_layout Plain Layout
22690 <cell alignment="center" valignment="top" usebox="none">
22693 \begin_layout Plain Layout
22699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22702 \begin_layout Plain Layout
22708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22711 \begin_layout Plain Layout
22719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22722 \begin_layout Plain Layout
22726 \begin_layout Plain Layout
22740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22743 \begin_layout Plain Layout
22749 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22752 \begin_layout Plain Layout
22758 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22761 \begin_layout Plain Layout
22767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22770 \begin_layout Plain Layout
22778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22781 \begin_layout Plain Layout
22787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22790 \begin_layout Plain Layout
22796 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22799 \begin_layout Plain Layout
22805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22808 \begin_layout Plain Layout
22814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22817 \begin_layout Plain Layout
22836 \begin_layout Standard
22838 does not natively support dashed lines, so you have to use \SpecialChar TeX
22840 As a prerequisite the \SpecialChar LaTeX
22846 \begin_inset Index idx
22849 \begin_layout Plain Layout
22851 -packages ! arydshln
22856 must be loaded in the document preamble with the command
22859 \begin_layout Standard
22864 usepackage{arydshln}
22867 \begin_layout Standard
22868 To make a vertical line dashed, enter the colon
22869 \begin_inset Quotes eld
22873 \begin_inset Quotes erd
22876 together with the character for the horizontal alignment as \SpecialChar LaTeX
22878 the table cell dialog.
22881 \begin_layout Standard
22882 For a horizontal dashed line add the command
22885 \begin_layout Standard
22893 \begin_layout Standard
22894 in \SpecialChar TeX
22895 Code as first element of the first cell in the table row.
22898 \begin_layout Standard
22899 For dashed multicolumn lines use the command
22902 \begin_layout Standard
22907 cdashline{line number
22912 \begin_layout Standard
22913 in \SpecialChar TeX
22914 Code as the first element of the first cell in the table row.
22915 If you have for example a multicolumn spanning columns 2 to 4 and you want
22916 to have a dashed line above, add the command
22919 \begin_layout Standard
22927 \begin_layout Standard
22928 as the first element of the first cell in the row of the multicolumn.
22931 \begin_layout Standard
22932 \begin_inset VSpace bigskip
22938 \begin_layout Standard
22940 \begin_inset space ~
22944 \begin_inset CommandInset ref
22946 reference "tab:Table-with-dashed"
22951 \begin_inset Quotes eld
22959 \begin_inset Quotes erd
22962 as \SpecialChar LaTeX
22963 argument of the third column.
22964 The \SpecialChar TeX
22971 was inserted in the first cell of the third row and the \SpecialChar TeX
22973 \begin_inset Newline newline
22982 was inserted in the first cell of the fourth row.
22985 \begin_layout Standard
22986 \begin_inset VSpace bigskip
22992 \begin_layout Standard
22993 Tables with dashed lines can also be colored as shown by Table
22994 \begin_inset space ~
22998 \begin_inset CommandInset ref
23000 reference "tab:Colored-table-with"
23007 \begin_layout Standard
23011 \begin_layout Plain Layout
23017 arrayrulewidth}{1pt}
23023 \begin_inset Note Note
23026 \begin_layout Plain Layout
23027 thicker lines for better visualization of the line color
23035 \begin_layout Standard
23039 \begin_layout Plain Layout
23043 dashgapcolor{green}
23049 \begin_inset Note Note
23052 \begin_layout Plain Layout
23053 color gaps between dashes green
23061 \begin_layout Standard
23065 \begin_layout Plain Layout
23076 \begin_layout Plain Layout
23085 \begin_layout Plain Layout
23089 arrayrulecolor{red}
23093 arrayrulecolor{black}}
23099 \begin_inset Note Note
23102 \begin_layout Plain Layout
23103 color horizontal, dashed lines red
23111 \begin_layout Standard
23115 \begin_layout Plain Layout
23126 \begin_layout Plain Layout
23135 \begin_layout Plain Layout
23139 arrayrulecolor{yellow}
23143 arrayrulecolor{black}}
23149 \begin_inset Note Note
23152 \begin_layout Plain Layout
23153 color partial horizontal, dashed lines yellow
23161 \begin_layout Standard
23162 \begin_inset Float table
23168 \begin_layout Plain Layout
23169 \begin_inset Caption Standard
23171 \begin_layout Plain Layout
23172 \begin_inset CommandInset label
23174 name "tab:Colored-table-with"
23178 Colored table with dashed lines
23186 \begin_layout Plain Layout
23188 \begin_inset Tabular
23189 <lyxtabular version="3" rows="5" columns="5">
23190 <features tabularvalignment="middle">
23191 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23192 <column alignment="center" valignment="top" width="0pt">
23193 <column alignment="center" valignment="top" width="0pt" special=":c">
23194 <column alignment="center" valignment="top">
23195 <column alignment="center" valignment="top">
23197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23200 \begin_layout Plain Layout
23206 <cell alignment="center" valignment="top" topline="true" usebox="none">
23209 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" topline="true" usebox="none">
23218 \begin_layout Plain Layout
23224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23227 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23236 \begin_layout Plain Layout
23244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23247 \begin_layout Plain Layout
23253 <cell alignment="center" valignment="top" topline="true" usebox="none">
23256 \begin_layout Plain Layout
23262 <cell alignment="center" valignment="top" topline="true" usebox="none">
23265 \begin_layout Plain Layout
23271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23274 \begin_layout Plain Layout
23280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23283 \begin_layout Plain Layout
23291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23294 \begin_layout Plain Layout
23298 \begin_layout Plain Layout
23311 \begin_layout Plain Layout
23325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23328 \begin_layout Plain Layout
23334 <cell alignment="center" valignment="top" usebox="none">
23337 \begin_layout Plain Layout
23343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23346 \begin_layout Plain Layout
23352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23355 \begin_layout Plain Layout
23363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23366 \begin_layout Plain Layout
23370 \begin_layout Plain Layout
23384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23387 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23396 \begin_layout Plain Layout
23402 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23414 \begin_layout Plain Layout
23422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23425 \begin_layout Plain Layout
23431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23434 \begin_layout Plain Layout
23440 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23443 \begin_layout Plain Layout
23449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23452 \begin_layout Plain Layout
23458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23461 \begin_layout Plain Layout
23465 \begin_layout Plain Layout
23492 \begin_layout Standard
23496 \begin_layout Plain Layout
23510 \begin_inset Note Note
23513 \begin_layout Plain Layout
23522 \begin_layout Standard
23526 \begin_layout Plain Layout
23540 \begin_inset Note Note
23543 \begin_layout Plain Layout
23552 \begin_layout Standard
23556 \begin_layout Plain Layout
23566 \begin_inset Note Note
23569 \begin_layout Plain Layout
23578 \begin_layout Standard
23582 \begin_layout Plain Layout
23588 arrayrulewidth}{0.4pt}
23594 \begin_inset Note Note
23597 \begin_layout Plain Layout
23606 \begin_layout Standard
23607 The coloring of lines, columns and lines works as decribed in section
23608 \begin_inset space ~
23612 \begin_inset CommandInset ref
23614 reference "sec:Colored-Tables"
23619 Coloring horizontal lines works analogically as described there as well,
23620 one only needs to replace in the commands
23644 ; so one uses the command
23647 \begin_layout Standard
23657 \begin_inset Newline newline
23665 \begin_inset Newline newline
23669 \begin_inset Phantom HPhantom
23672 \begin_layout Plain Layout
23673 \begin_inset space ~
23683 arrayrulecolor{red}
23687 arrayrulecolor{black}}
23690 \begin_layout Standard
23700 \begin_layout Standard
23710 \begin_inset Newline newline
23718 \begin_inset Newline newline
23722 \begin_inset Phantom HPhantom
23725 \begin_layout Plain Layout
23726 \begin_inset space ~
23736 arrayrulecolor{red}
23740 arrayrulecolor{black}}
23743 \begin_layout Standard
23744 To get back the black line color, one needs to insert the following commands
23745 as \SpecialChar TeX
23746 Code behind the table:
23749 \begin_layout Standard
23757 \begin_layout Standard
23769 \begin_layout Standard
23777 \begin_layout Standard
23789 \begin_layout Standard
23790 To color the gaps between the dashes the command
23793 \begin_layout Standard
23798 dashgapcolor{color}
23801 \begin_layout Standard
23802 can be used in front of a table as \SpecialChar TeX
23804 color is hereby the name of a defined color.
23808 \begin_layout Standard
23816 \begin_layout Standard
23817 unsets the changes made by
23826 \begin_layout Standard
23827 \begin_inset Note Greyedout
23830 \begin_layout Plain Layout
23836 : If there are multiple commands in a cell, the command of
23840 needs to be the first one in the cell.
23846 \begin_inset space ~
23850 \begin_inset CommandInset ref
23852 reference "tab:Colored-table-with"
23876 \begin_layout Standard
23877 \begin_inset Note Greyedout
23880 \begin_layout Plain Layout
23886 The \SpecialChar LaTeX
23891 must be loaded in the document preamble before the \SpecialChar LaTeX
23897 \begin_inset Index idx
23900 \begin_layout Plain Layout
23902 -packages ! colortbl
23915 \begin_layout Standard
23919 \begin_layout Plain Layout
23929 \begin_inset Note Note
23932 \begin_layout Plain Layout
23933 The following will be displayed when the \SpecialChar LaTeX
23946 \begin_layout Standard
23947 You need to install the package
23951 to see the content of this section in the output.
23954 \begin_layout Standard
23958 \begin_layout Plain Layout
23970 \begin_layout Standard
23971 For more information about dashed lines see the documentation of
23976 \begin_inset CommandInset citation
23985 \begin_layout Chapter
23987 \begin_inset CommandInset label
23994 \begin_inset Index idx
23997 \begin_layout Plain Layout
24006 \begin_layout Section
24008 \begin_inset CommandInset label
24010 name "sec:FloatIntroduction"
24015 \begin_inset Index idx
24018 \begin_layout Plain Layout
24019 Floats ! Introduction
24027 \begin_layout Standard
24028 A float is a block of text associated with some sort of label, which doesn't
24029 have a fixed location.
24031 \begin_inset Quotes eld
24035 \begin_inset Quotes erd
24038 forward or backward a page or two, to wherever it fits best.
24046 \begin_inset space ~
24051 are also floats because they can float to the next page when there are
24052 too many notes on the page.
24055 \begin_layout Standard
24056 Floats allow a high quality layout.
24057 Images and tables can be spread evenly among the pages to avoid white space
24058 and pages without text.
24059 As the floating often destroys the context between the text and the image/table
24060 , every float can be referenced in the text.
24061 Floats are therefore numbered.
24062 Referencing is described in section
24063 \begin_inset space ~
24067 \begin_inset CommandInset ref
24069 reference "sec:Referencing-Floats"
24076 \begin_layout Standard
24077 To insert a float, use the menu
24079 Insert\SpecialChar menuseparator
24085 arg "float-insert figure"
24091 arg "float-insert table"
24099 inset, a box with a label.
24100 The label will automatically be translated to the document language in
24102 After the label you can insert the caption text.
24103 The image or table is inserted above or below the caption in a separate
24104 paragraph within the float.
24105 More about the caption placement is contained in section
24106 \begin_inset space ~
24110 \begin_inset CommandInset ref
24112 reference "sec:Caption-Placement"
24117 To keep your \SpecialChar LyX
24118 document readable, you can open and close the float box by
24119 left-clicking on the box label.
24120 A closed float box looks like this:
24121 \begin_inset Graphics
24122 filename clipart/float.png
24124 scaleBeforeRotation
24128 – a gray button with a red label.
24131 \begin_layout Standard
24132 It is recommended that you insert floats as separate standard paragraphs
24133 to avoid possible \SpecialChar LaTeX
24134 -errors that can occur when the surrounding text is specially
24138 \begin_layout Standard
24139 Existing figures or tables can be put into a float by highlighting them
24140 and then pressing the corresponding toolbar button for a new float.
24143 \begin_layout Section
24147 \begin_layout Standard
24148 Besides figure and table floats that are described in sections
24149 \begin_inset space ~
24153 \begin_inset CommandInset ref
24155 reference "sec:Figure-Floats"
24160 \begin_inset CommandInset ref
24162 reference "sec:Table-Floats"
24166 respectively, \SpecialChar LyX
24167 offers the float types
24176 The latter are explained in sec.
24177 \begin_inset space \thinspace{}
24181 \begin_inset CommandInset ref
24183 reference "sec:Wrap-Floats"
24190 \begin_layout Subsection
24192 \begin_inset Index idx
24195 \begin_layout Plain Layout
24196 Floats ! Algorithms
24204 \begin_layout Standard
24205 \begin_inset Float algorithm
24211 \begin_layout Plain Layout
24212 \begin_inset Caption Standard
24214 \begin_layout Plain Layout
24215 \begin_inset CommandInset label
24217 name "alg:Example-Algorithm-float"
24221 Example Algorithm float
24229 \begin_layout LyX-Code
24231 \begin_inset Newline newline
24234 Sum:= Sum + A(I); /*comment*/
24235 \begin_inset Newline newline
24239 \begin_inset VSpace -4mm
24250 \begin_layout Standard
24251 This float type is inserted with the menu
24253 Insert\SpecialChar menuseparator
24254 Float\SpecialChar menuseparator
24258 It is used for program codes and descriptions of algorithms and can be
24259 seen as an alternative to program code listings that are explained in chapter
24260 \begin_inset space ~
24264 \begin_inset CommandInset ref
24266 reference "cha:Program-Code-Listings"
24271 A possible environment for algorithms is the
24276 , described in \SpecialChar LyX
24283 \begin_inset space ~
24287 \begin_inset CommandInset ref
24289 reference "alg:Example-Algorithm-float"
24293 is an example of an algorithm float where -4
24294 \begin_inset space \thinspace{}
24297 mm vertical space was added at the end of the float to have the bottom rule
24298 exactly below the last text line.
24301 \begin_layout Standard
24302 The float label is not automatically translated into the document language.
24303 If your document is not in English, you have to do this manually by adding
24304 the following line to the document preamble
24309 \begin_layout Standard
24314 floatname{algorithm}{your
24315 \begin_inset space ~
24321 \begin_layout Standard
24325 \begin_inset space ~
24331 \begin_inset Quotes eld
24339 \begin_inset Quotes erd
24345 \begin_layout Standard
24346 To insert the list of algorithms you can use the menu
24348 Insert\SpecialChar menuseparator
24350 \begin_inset space \thinspace{}
24354 \begin_inset space \thinspace{}
24357 TOC\SpecialChar menuseparator
24360 when your document has the same language as \SpecialChar LyX
24362 In other cases use this command in \SpecialChar TeX
24366 \begin_layout Standard
24371 listof{algorithm}{your
24372 \begin_inset space ~
24378 \begin_layout Standard
24382 \begin_inset space ~
24388 \begin_inset Quotes eld
24396 \begin_inset Quotes erd
24402 \begin_layout Standard
24403 Algorithm floats are not by default numbered in the scheme
24404 \begin_inset Quotes eld
24408 \begin_inset Quotes erd
24411 as is the case for table and figure floats in many document-classes.
24412 To number algorithm floats in the same scheme, add this command to your
24416 \begin_layout Standard
24421 numberwithin{algorithm}{chapter}
24424 \begin_layout Standard
24425 To be able to use the command
24434 \begin_inset space ~
24439 in the document settings the option
24442 \begin_inset space ~
24446 \begin_inset space ~
24450 \begin_inset space ~
24458 \begin_layout Section
24460 \begin_inset Index idx
24463 \begin_layout Plain Layout
24472 \begin_layout Standard
24473 Floats are usually numbered either independently from the sections the floats
24474 are in, or in the scheme
24475 \begin_inset Quotes eld
24479 \begin_inset Quotes erd
24483 \begin_inset Quotes eld
24487 \begin_inset Quotes erd
24491 This depends on the document class used.
24494 \begin_layout Standard
24495 To change section-independent numbering, you can use this command in the
24499 \begin_layout Standard
24511 \begin_layout Standard
24518 is the command that prints the table number.
24519 For figure floats, the command would be
24532 in the command above prints the table number as a small roman number.
24535 \begin_layout Standard
24536 To change the numbering scheme for example to
24537 \begin_inset Quotes eld
24541 \begin_inset Quotes erd
24544 , use this command in the preamble:
24547 \begin_layout Standard
24552 numberwithin{table}{subsection}
24555 \begin_layout Standard
24556 To be able to use the command
24565 \begin_inset space ~
24570 in the document settings the option
24573 \begin_inset space ~
24577 \begin_inset space ~
24581 \begin_inset space ~
24589 \begin_layout Standard
24590 Please also have a look at section
24591 \begin_inset space ~
24595 \begin_inset CommandInset ref
24597 reference "subsec:Footnote-Numbering"
24601 for the details and important notes about the numbering commands.
24604 \begin_layout Section
24606 \begin_inset CommandInset label
24608 name "sec:Referencing-Floats"
24613 \begin_inset Index idx
24616 \begin_layout Plain Layout
24617 Floats ! References
24623 \begin_inset Index idx
24626 \begin_layout Plain Layout
24627 References ! to Floats
24635 \begin_layout Standard
24636 To reference a float, insert a label into its caption using the menu
24638 Insert\SpecialChar menuseparator
24641 or the toolbar button
24648 A grey label box like this one:
24649 \begin_inset Graphics
24650 filename clipart/label.png
24651 scaleBeforeRotation
24655 will be inserted and the label window pops up asking for the label text.
24657 offers as text the first words of the caption with a prefix.
24658 The prefix depends on the float type, e.
24659 \begin_inset space \thinspace{}
24663 \begin_inset space \space{}
24666 for figure floats the prefix will be "
24673 \begin_layout Standard
24674 The label is used as anchor and name for the reference.
24675 You can refer to the label using the menu
24677 Insert\SpecialChar menuseparator
24680 or the toolbar button
24683 arg "dialog-show-new-inset ref"
24687 The cross-reference window appears showing all labels of the document.
24688 If you have multiple \SpecialChar LyX
24689 documents opened, choose the one you are working
24690 on from the drop-list at the top of the dialog.
24691 You can now sort the labels alphabetically and then choose one.
24692 A grey cross-reference box like this one:
24693 \begin_inset Graphics
24694 filename clipart/reference.png
24695 scaleBeforeRotation
24700 At the position of the cross-reference box the float number will appear
24704 \begin_layout Standard
24705 It is recommended that you use a protected space between the cross-reference
24706 name and its number to avoid line breaks between them.
24707 If a cross-reference refers to a non-existing label, you will see two question
24708 marks in the output instead of the reference.
24711 \begin_layout Standard
24712 You can change labels at any time by clicking on the label box.
24713 References to the changed label will automatically update their links to
24714 the new label text.
24717 \begin_layout Standard
24721 \begin_inset space ~
24725 \begin_inset space ~
24730 in the cross-reference window sets the cursor before the referred label.
24731 The button text changes then to Go
24732 \begin_inset space ~
24735 Back and you can use it to set the cursor back to the cross-reference.
24738 \begin_layout Subsection
24739 Cross-Reference Formats
24740 \begin_inset CommandInset label
24742 name "subsec:Cross-Reference-Formats"
24747 \begin_inset Index idx
24750 \begin_layout Plain Layout
24751 References ! Formats
24759 \begin_layout Standard
24760 There are six varieties of cross-references:
24763 \begin_layout Description
24764 <reference>: prints the float number, this is the default:
24765 \begin_inset CommandInset ref
24767 reference "fig:Two-distorted-images"
24774 \begin_layout Description
24775 (<reference>): prints the float number within two parentheses, this is the
24776 style normally used to reference formulas, especially when the reference
24778 \begin_inset Quotes eld
24782 \begin_inset Quotes erd
24786 \begin_inset CommandInset ref
24795 \begin_layout Description
24796 <page>: prints the page number: Page
24797 \begin_inset space ~
24801 \begin_inset CommandInset ref
24802 LatexCommand pageref
24803 reference "fig:Two-distorted-images"
24810 \begin_layout Description
24812 \begin_inset space ~
24816 \begin_inset space ~
24819 <page>: prints the text "on page" and the page number:
24820 \begin_inset CommandInset ref
24821 LatexCommand vpageref
24822 reference "fig:Two-distorted-images"
24829 \begin_layout Description
24831 \begin_inset space ~
24835 \begin_inset space ~
24839 \begin_inset space ~
24842 <page>: prints the float number, the text "on page", and the page number:
24844 \begin_inset CommandInset ref
24846 reference "fig:Two-distorted-images"
24853 \begin_layout Description
24855 \begin_inset space ~
24858 reference: prints a self-defined cross-reference format.
24859 \begin_inset Newline newline
24863 \begin_inset Note Greyedout
24866 \begin_layout Plain Layout
24871 This feature is only available when you have the \SpecialChar LaTeX
24881 \begin_inset Index idx
24884 \begin_layout Plain Layout
24886 -packages ! prettyref
24892 \begin_inset Index idx
24895 \begin_layout Plain Layout
24897 -packages ! refstyle
24908 \begin_inset Newline newline
24911 You can select which \SpecialChar LaTeX
24912 -package should be used for this feature by setting
24915 Use refstyle (not prettyref) for cross-references
24919 Document\SpecialChar menuseparator
24920 Settings\SpecialChar menuseparator
24924 The format is specified by adding the command
24936 (refstyle) to the preamble of the document.
24937 For example redefining all references to figures (which have the label
24939 \begin_inset Quotes eld
24947 \begin_inset Quotes erd
24950 ) can be done with this command
24951 \begin_inset Newline newline
24958 newref{fig}{refcmd={Image on page
24963 \begin_inset Newline newline
24966 For more information about the format, have a look at the package documentations
24968 \begin_inset CommandInset citation
24970 key "prettyref,refstyle"
24977 \begin_layout Description
24979 \begin_inset space ~
24982 reference: prints the caption of the reference:
24983 \begin_inset CommandInset ref
24984 LatexCommand nameref
24985 reference "fig:Two-distorted-images"
24992 \begin_layout Standard
24997 will not print the page number if the label is on the previous, the same,
25000 \begin_inset space \thinspace{}
25004 \begin_inset space \space{}
25008 \begin_inset Quotes eld
25016 \begin_inset Quotes erd
25022 <reference> on page <page>
25024 will not print anything about the page if the label is on the same page.
25027 \begin_layout Standard
25028 The number and current page of the part of the document referred to in the
25029 output is automatically calculated by \SpecialChar LaTeX
25031 The varieties are adjusted in the field
25035 of the cross-reference window that appears when you click on the cross-referenc
25039 \begin_layout Standard
25040 \begin_inset Note Greyedout
25043 \begin_layout Plain Layout
25048 It is recommended to use the \SpecialChar LaTeX
25054 \begin_inset Index idx
25057 \begin_layout Plain Layout
25059 -packages ! refstyle
25069 \begin_inset Index idx
25072 \begin_layout Plain Layout
25074 -packages ! prettyref
25079 does not know all of \SpecialChar LyX
25080 's possible label shortcuts
25084 \begin_layout Plain Layout
25085 \begin_inset Quotes eld
25089 \begin_inset Quotes erd
25092 is for example \SpecialChar LyX
25093 's shortcut for labels in figure captions.
25098 and is not internationalized.
25106 \begin_layout Subsection
25107 Automatic Reference Naming
25108 \begin_inset Index idx
25111 \begin_layout Plain Layout
25112 References ! Automatic Reference Naming
25120 \begin_layout Standard
25121 The \SpecialChar LaTeX
25127 \begin_inset Index idx
25130 \begin_layout Plain Layout
25132 -packages ! hyperref
25137 , that is enabled in the
25145 dialog, provides a very useful feature that cross-references automatically
25146 include the name of the referenced floats (or text parts like
25151 So you will save having to write e.
25152 \begin_inset space \thinspace{}
25156 \begin_inset space \space{}
25160 \begin_inset Quotes eld
25164 \begin_inset Quotes erd
25167 before every reference to a figure.
25168 To use this feature, enable
25172 and insert this line to the \SpecialChar LaTeX
25176 \begin_layout Standard
25192 \begin_layout Standard
25193 When you prefer other reference names than the default ones, for example
25194 you want instead of
25195 \begin_inset Quotes eld
25199 \begin_inset Quotes erd
25203 \begin_inset Quotes eld
25207 \begin_inset space \thinspace{}
25211 \begin_inset Quotes eld
25214 , you can redefine the name by inserting this in the preamble:
25217 \begin_layout Standard
25228 sectionautorefname}
25229 \begin_inset Newline newline
25233 \begin_inset Phantom HPhantom
25236 \begin_layout Plain Layout
25239 \begin_inset space ~
25252 \begin_layout Standard
25253 When you are using another document language than English, replace
25254 \begin_inset Newline newline
25269 , where *** is the name of the language used.
25272 \begin_layout Standard
25273 To get automatic names, but not for certain reference types, for example
25274 not for equations, use this preamble code:
25277 \begin_layout Standard
25288 equationautorefname}[1]{}}
25291 \begin_layout Standard
25292 More about this topic can be found in
25297 \begin_inset CommandInset citation
25306 \begin_layout Standard
25307 \begin_inset Note Greyedout
25310 \begin_layout Plain Layout
25315 Automatic reference naming cannot be used when you use cross-references
25319 \begin_inset space ~
25324 style, as described in section
25325 \begin_inset space ~
25329 \begin_inset CommandInset ref
25331 reference "subsec:Cross-Reference-Formats"
25343 \begin_layout Standard
25348 manual is an example where automatic reference naming is used.
25351 \begin_layout Subsection
25353 \begin_inset CommandInset label
25355 name "subsec:Reference-Position"
25360 \begin_inset Index idx
25363 \begin_layout Plain Layout
25364 References ! Reference Position
25372 \begin_layout Standard
25378 \begin_inset Index idx
25381 \begin_layout Plain Layout
25383 -packages ! hyperref
25396 dialog to link cross-references in the output, you will see that clicking
25397 on an image float reference jumps to the image label.
25398 The caption will be the first text part on the screen, so that you cannot
25399 see the image without scrolling.
25400 This is because the reference link anchor is placed at the position of
25402 With the use of the package
25407 \begin_inset Index idx
25410 \begin_layout Plain Layout
25417 , which is part of the \SpecialChar LaTeX
25423 \begin_inset Index idx
25426 \begin_layout Plain Layout
25428 -packages ! oberdiek
25433 , the link anchor is placed at the beginning of a float.
25434 To use this feature for figure floats, load
25438 in the document preamble with the line
25441 \begin_layout Standard
25446 usepackage[figure]{hypcap}
25449 \begin_layout Standard
25454 for all float types but this is not recommended for stability reasons.
25455 For more information, have a look at
25460 \begin_inset CommandInset citation
25469 \begin_layout Standard
25470 \begin_inset Note Greyedout
25473 \begin_layout Plain Layout
25482 has no effect on references to subfigures.
25490 \begin_layout Section
25492 \begin_inset CommandInset label
25494 name "sec:Float-Placement"
25499 \begin_inset Index idx
25502 \begin_layout Plain Layout
25511 \begin_layout Standard
25512 Right-clicking on a float-box and clicking on
25516 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25518 positioning the float.
25519 \begin_inset Newline newline
25525 \begin_inset space ~
25530 is only useful for two-column documents: If you select it, the float will
25531 span both columns on the page instead of being confined to just one.
25532 \begin_inset Newline newline
25538 \begin_inset space ~
25543 is used to rotate floats, see section
25544 \begin_inset CommandInset ref
25546 reference "sec:Rotated-Floats"
25553 \begin_layout Standard
25554 You can use one or more of the following options in the float dialog to
25555 set the placement for a particular float when you uncheck the option
25558 \begin_inset space ~
25562 \begin_inset space ~
25570 \begin_layout Description
25572 \begin_inset space ~
25576 \begin_inset space ~
25579 possible try to place the float on the position where it has been inserted
25582 \begin_layout Description
25584 \begin_inset space ~
25588 \begin_inset space ~
25591 page try to place the float at the top of the current page
25594 \begin_layout Description
25596 \begin_inset space ~
25600 \begin_inset space ~
25603 page try to place the float at the bottom of the current page
25606 \begin_layout Description
25608 \begin_inset space ~
25612 \begin_inset space ~
25615 floats try to place the float on its own page
25618 \begin_layout Standard
25619 The order of the above option is
25623 used by \SpecialChar LaTeX
25625 That means, if you use the default placement, \SpecialChar LaTeX
25629 \begin_inset space ~
25633 \begin_inset space ~
25641 \begin_inset space ~
25645 \begin_inset space ~
25650 , and then the others.
25651 If you do not use the default, \SpecialChar LaTeX
25652 will try only the checked options but in
25655 \begin_inset space ~
25658 placements is possible the procedure is internally repeated trying to put
25659 the float on the following page.
25662 \begin_layout Standard
25663 By default, each option has its own rules:
25666 \begin_layout Labeling
25667 \labelwidthstring 00.00.0000
25671 \begin_inset space ~
25675 \begin_inset space ~
25680 only floats occupying less than 70
25681 \begin_inset space \thinspace{}
25684 % of the page can be placed at the top of a page (
25693 \begin_layout Labeling
25694 \labelwidthstring 00.00.0000
25698 \begin_inset space ~
25702 \begin_inset space ~
25707 : only floats occupying less than 30
25708 \begin_inset space \thinspace{}
25711 % of the page can be placed at the bottom of a page.
25721 \begin_layout Labeling
25722 \labelwidthstring 00.00.0000
25726 \begin_inset space ~
25730 \begin_inset space ~
25735 : only if more than 50
25736 \begin_inset space \thinspace{}
25739 % of the page is occupied by floats, several floats can be set together
25750 \begin_layout Standard
25751 If you don't like these rules, you can ignore them by using the additional
25755 \begin_inset space ~
25760 \begin_inset space ~
25766 \begin_inset Newline newline
25769 You can also redefine the rules with \SpecialChar LaTeX
25770 -commands that are given in parentheses
25771 after the rules description above.
25772 To increase for example the often too small default of the bottom-rule
25774 \begin_inset space \thinspace{}
25777 % of the page, add this line to your document preamble:
25780 \begin_layout Standard
25787 bottomfraction}{0.5}
25790 \begin_layout Standard
25791 Sometimes you might need, under all circumstances, a float to be placed
25792 exactly at the position where it is inserted.
25793 For this case you can use the option
25796 \begin_inset space ~
25802 Use this option very rarely and only if the document is almost ready to
25803 be printed, because the float is then no longer able to
25804 \begin_inset Quotes eld
25808 \begin_inset Quotes erd
25811 when you change your document and this will often destroy the page layout.
25814 \begin_layout Standard
25815 There are no placement options for text wrap floats, because they are always
25816 surrounded by the text of a certain paragraph.
25817 \begin_inset VSpace bigskip
25823 \begin_layout Standard
25824 Sometimes you have the problem that a float is placed at the top of a page
25825 while its corresponding section starts at the middle of the page, so that
25826 the reader could think the float is part of the previous section.
25827 To avoid this the \SpecialChar LaTeX
25835 It suppresses a given float placement for the page where it is inserted
25836 and can therefore be used to avoid floats being set before a section starts.
25837 To get this, add these commands to your document preamble:
25840 \begin_layout Standard
25850 \begin_inset Newline newline
25864 \begin_layout Standard
25865 You can define the same for all section headings, like chapters and subsections.
25866 This definition is not recommended to be used for small text parts like
25867 subsubsections because \SpecialChar LaTeX
25868 may then have problems finding a suitable placement.
25871 \begin_layout Standard
25872 \begin_inset VSpace bigskip
25875 In some cases it is required to have all figures/tables at the end of the
25877 For this purpose the \SpecialChar LaTeX
25883 \begin_inset Index idx
25886 \begin_layout Plain Layout
25888 -packages ! endfloat
25894 It puts all figure and table floats at the end of the document into their
25896 At the original float position a text hint like
25897 \begin_inset Quotes eld
25903 \begin_inset space ~
25909 \begin_inset Quotes erd
25913 The endfloat-package is loaded in the preamble with the line
25916 \begin_layout Standard
25921 usepackage[options]{endfloat}
25924 \begin_layout Standard
25925 There are various package options to format the created figure/table sections.
25926 For more information we refer you to the
25931 \begin_inset CommandInset citation
25938 \begin_inset Newline newline
25942 \begin_inset Note Greyedout
25945 \begin_layout Plain Layout
25950 doesn't provide an automatic translation for the text hint, you have to
25951 do this manually, see section
25952 \begin_inset space ~
25956 \begin_inset CommandInset citation
25968 \begin_inset Newline newline
25972 \begin_inset Note Greyedout
25975 \begin_layout Plain Layout
25980 There is currently a bug in
25984 when the caption contains a German
25985 \begin_inset Quotes eld
25989 \begin_inset Quotes erd
25993 Use in this case the command
25994 \begin_inset Quotes eld
26004 \begin_inset Quotes erd
26007 in \SpecialChar TeX
26009 \begin_inset Quotes eld
26013 \begin_inset Quotes erd
26024 \begin_layout Standard
26025 \begin_inset VSpace bigskip
26028 For more details about float placements, have a look at \SpecialChar LaTeX
26030 \begin_inset CommandInset citation
26032 key "latexcompanion,latexguide,latexbook"
26039 \begin_layout Section
26041 \begin_inset CommandInset label
26043 name "sec:Rotated-Floats"
26048 \begin_inset Index idx
26051 \begin_layout Plain Layout
26060 \begin_layout Standard
26061 Especially for wide tables you might have floats rotated.
26062 To rotate a whole float including the caption, right-click on the float-box
26066 \begin_inset space ~
26074 \begin_layout Standard
26075 Rotated floats are always placed on a page of their own (or column of their
26076 own; in case you have a multi-column document).
26077 You can let them span several columns using the float settings option
26080 \begin_inset space ~
26086 Floats are rotated so that you can read them from the outside margin.
26087 To force a certain rotation direction for all pages, you can add either
26096 to the document class options.
26099 \begin_layout Standard
26100 Referencing rotated floats is the same as for normal floats, the caption
26101 format is also the same: Table
26102 \begin_inset space ~
26106 \begin_inset CommandInset ref
26108 reference "tab:Rotated-table"
26112 is an example of a rotated table float.
26115 \begin_layout Standard
26116 \begin_inset Note Greyedout
26119 \begin_layout Plain Layout
26124 Not all DVI-viewers are able to display rotated floats.
26132 \begin_layout Standard
26133 \begin_inset Float table
26138 \begin_layout Plain Layout
26139 \begin_inset Caption Standard
26141 \begin_layout Plain Layout
26142 \begin_inset CommandInset label
26144 name "tab:Rotated-table"
26156 \begin_layout Plain Layout
26158 \begin_inset Tabular
26159 <lyxtabular version="3" rows="1" columns="5">
26160 <features tabularvalignment="middle">
26161 <column alignment="center" valignment="top">
26162 <column alignment="center" valignment="top">
26163 <column alignment="center" valignment="top">
26164 <column alignment="center" valignment="top">
26165 <column alignment="center" valignment="top">
26167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26170 \begin_layout Plain Layout
26176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26179 \begin_layout Plain Layout
26185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26188 \begin_layout Plain Layout
26194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26197 \begin_layout Plain Layout
26203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26206 \begin_layout Plain Layout
26225 \begin_layout Section
26227 \begin_inset Index idx
26230 \begin_layout Plain Layout
26239 \begin_layout Standard
26240 Subfloats are for example used when a figure consists of several images.
26241 They are created by inserting a float into an existing float.
26242 The placement of the subfloats can be controlled in the same way as for
26243 paragraphs as shown in table
26244 \begin_inset space ~
26248 \begin_inset CommandInset ref
26250 reference "tab:Two-subtables-side"
26255 \begin_inset CommandInset ref
26257 reference "tab:Two-subtables-upon"
26264 \begin_layout Standard
26265 Referencing subfloats works as for normal floats: Table
26266 \begin_inset space ~
26270 \begin_inset CommandInset ref
26272 reference "tab:This-is-subtable-a"
26277 \begin_inset CommandInset ref
26279 reference "tab:This-is-subtable-b"
26283 are subtables of table
26284 \begin_inset space ~
26288 \begin_inset CommandInset ref
26290 reference "tab:Two-subtables-side"
26297 \begin_layout Standard
26298 \begin_inset Float table
26303 \begin_layout Plain Layout
26304 \begin_inset Caption Standard
26306 \begin_layout Plain Layout
26307 \begin_inset CommandInset label
26309 name "tab:Two-subtables-side"
26313 Two subtables placed side by side.
26321 \begin_layout Plain Layout
26323 \begin_inset space \hfill{}
26327 \begin_inset Float table
26332 \begin_layout Plain Layout
26333 \begin_inset Caption Standard
26335 \begin_layout Plain Layout
26336 \begin_inset CommandInset label
26338 name "tab:This-is-subtable-a"
26342 This is subtable a.
26350 \begin_layout Plain Layout
26352 \begin_inset Tabular
26353 <lyxtabular version="3" rows="1" columns="5">
26354 <features tabularvalignment="middle">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26357 <column alignment="center" valignment="top">
26358 <column alignment="center" valignment="top">
26359 <column alignment="center" valignment="top">
26361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26364 \begin_layout Plain Layout
26370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26373 \begin_layout Plain Layout
26379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26382 \begin_layout Plain Layout
26388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26391 \begin_layout Plain Layout
26397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26400 \begin_layout Plain Layout
26417 \begin_inset space \hfill{}
26421 \begin_inset Float table
26426 \begin_layout Plain Layout
26427 \begin_inset Caption Standard
26429 \begin_layout Plain Layout
26430 \begin_inset CommandInset label
26432 name "tab:This-is-subtable-b"
26436 This is subtable b.
26444 \begin_layout Plain Layout
26446 \begin_inset Tabular
26447 <lyxtabular version="3" rows="1" columns="5">
26448 <features tabularvalignment="middle">
26449 <column alignment="center" valignment="top">
26450 <column alignment="center" valignment="top">
26451 <column alignment="center" valignment="top">
26452 <column alignment="center" valignment="top">
26453 <column alignment="center" valignment="top">
26455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26458 \begin_layout Plain Layout
26464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26467 \begin_layout Plain Layout
26473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26476 \begin_layout Plain Layout
26482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26485 \begin_layout Plain Layout
26491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26494 \begin_layout Plain Layout
26511 \begin_inset space \hfill{}
26522 \begin_layout Standard
26523 \begin_inset Float table
26528 \begin_layout Plain Layout
26529 \begin_inset Caption Standard
26531 \begin_layout Plain Layout
26532 \begin_inset CommandInset label
26534 name "tab:Two-subtables-upon"
26538 Two subtables placed one above the other.
26539 (a) table with 4 cells, (b) table with 5 cells.
26547 \begin_layout Plain Layout
26549 \begin_inset Float table
26554 \begin_layout Plain Layout
26555 \begin_inset Caption Standard
26557 \begin_layout Plain Layout
26566 \begin_layout Plain Layout
26568 \begin_inset Tabular
26569 <lyxtabular version="3" rows="1" columns="4">
26570 <features tabularvalignment="middle">
26571 <column alignment="center" valignment="top">
26572 <column alignment="center" valignment="top">
26573 <column alignment="center" valignment="top">
26574 <column alignment="center" valignment="top">
26576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26579 \begin_layout Plain Layout
26585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26588 \begin_layout Plain Layout
26594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26597 \begin_layout Plain Layout
26603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26606 \begin_layout Plain Layout
26625 \begin_layout Plain Layout
26627 \begin_inset Float table
26632 \begin_layout Plain Layout
26633 \begin_inset Caption Standard
26635 \begin_layout Plain Layout
26644 \begin_layout Plain Layout
26646 \begin_inset Tabular
26647 <lyxtabular version="3" rows="1" columns="5">
26648 <features tabularvalignment="middle">
26649 <column alignment="center" valignment="top">
26650 <column alignment="center" valignment="top">
26651 <column alignment="center" valignment="top">
26652 <column alignment="center" valignment="top">
26653 <column alignment="center" valignment="top">
26655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26658 \begin_layout Plain Layout
26664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26667 \begin_layout Plain Layout
26673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26676 \begin_layout Plain Layout
26682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26685 \begin_layout Plain Layout
26691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26694 \begin_layout Plain Layout
26718 \begin_layout Section
26719 Floats Side by Side
26720 \begin_inset Index idx
26723 \begin_layout Plain Layout
26724 Floats ! Side by side
26732 \begin_layout Standard
26733 To place floats side by side, as in Figures
26734 \begin_inset space ~
26738 \begin_inset CommandInset ref
26740 reference "fig:Float-left"
26745 \begin_inset CommandInset ref
26747 reference "fig:Float-right"
26756 In it two minipage boxes are inserted.
26760 \begin_layout Plain Layout
26761 Minipages are explained in section
26762 \begin_inset space ~
26766 \begin_inset CommandInset ref
26768 reference "sec:Minipages"
26777 The width is set to 45
26778 \begin_inset space \thinspace{}
26782 \begin_inset space \thinspace{}
26785 column% and the box alignment to
26790 The minipage boxes contain the image and the caption in the same way as
26791 they are in a float.
26792 The only difference is that the image unit
26795 \begin_inset space ~
26799 \begin_inset space ~
26804 is now calculated according to the width of the minipage boxes.
26807 \begin_layout Standard
26808 \begin_inset Float figure
26813 \begin_layout Plain Layout
26814 \begin_inset Box Frameless
26824 height_special "totalheight"
26829 backgroundcolor "none"
26832 \begin_layout Plain Layout
26834 \begin_inset Graphics
26835 filename clipart/mobius.eps
26838 scaleBeforeRotation
26845 \begin_layout Plain Layout
26846 \begin_inset Caption Standard
26848 \begin_layout Plain Layout
26849 \begin_inset CommandInset label
26851 name "fig:Float-left"
26855 Float on the left side.
26866 \begin_inset space \hfill{}
26870 \begin_inset Box Frameless
26880 height_special "totalheight"
26885 backgroundcolor "none"
26888 \begin_layout Plain Layout
26890 \begin_inset Graphics
26891 filename clipart/platypus.eps
26894 scaleBeforeRotation
26901 \begin_layout Plain Layout
26902 \begin_inset Caption Standard
26904 \begin_layout Plain Layout
26905 \begin_inset CommandInset label
26907 name "fig:Float-right"
26911 Float on the right side.
26929 \begin_layout Standard
26930 An alternative and simpler solution is to use the module
26932 Variable-width Minipages
26935 \begin_inset space \thinspace{}
26939 \begin_inset CommandInset ref
26941 reference "sec:Minipages"
26946 Variable-width minipages adapt automatically to the width of the figures
26948 They do not require an explicit width to be given, and they improve the
26949 horizontal alignment of the figures.
26950 The LyX example file
26952 varwidth-floats-side-by-side
26954 gives examples of how to do this.
26957 \begin_layout Section
26959 \begin_inset Index idx
26962 \begin_layout Plain Layout
26963 Caption ! Formatting
26969 \begin_inset Index idx
26972 \begin_layout Plain Layout
26973 Floats ! Caption Formatting
26979 \begin_inset CommandInset label
26981 name "sec:Caption-Formatting"
26988 \begin_layout Standard
26993 environment is the default paragraph environment for
26998 On the \SpecialChar LyX
26999 screen captions appear as a label, e.
27000 \begin_inset space \thinspace{}
27004 \begin_inset space \space{}
27008 \begin_inset Quotes eld
27016 \begin_inset Quotes erd
27019 followed by the caption text.
27021 \begin_inset Quotes eld
27025 \begin_inset Quotes erd
27028 is the actual reference number.
27029 By default the label and the number are in the same font as the caption
27030 text and a colon follows the number to divide the label from the text.
27031 This caption format is suitable for many but not all documents.
27035 \begin_layout Standard
27036 To change the default caption format, load the \SpecialChar LaTeX
27042 \begin_inset Index idx
27045 \begin_layout Plain Layout
27047 -packages ! caption
27052 in the document preamble with this line:
27055 \begin_layout Standard
27060 usepackage[format definition]{caption}
27063 \begin_layout Standard
27064 To have for example the label and the number in sans-serif, bold font and
27065 the table captions always above the table as in this document, use the
27069 \begin_layout Standard
27074 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27077 \begin_layout Standard
27078 You can also define different caption formats for the different float types.
27079 In this case load the
27083 package without format specific options and define the different formats
27084 with the help of the command
27087 \begin_layout Standard
27092 captionsetup[float type]{format definition}
27095 \begin_layout Standard
27096 in the document preamble.
27097 For example the caption formats of Figure
27098 \begin_inset space ~
27102 \begin_inset CommandInset ref
27104 reference "fig:This-is-an-fig"
27109 \begin_inset space ~
27113 \begin_inset CommandInset ref
27115 reference "tab:This-is-an-tab"
27119 can be created using these commands in the document preamble:
27122 \begin_layout Standard
27127 usepackage[tableposition=top]{caption}
27130 \begin_inset Newline newline
27137 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27138 \begin_inset Newline newline
27142 \begin_inset Phantom HPhantom
27145 \begin_layout Plain Layout
27150 captionsetup[figure]{
27156 \begin_inset Newline newline
27161 captionsetup[table]{labelfont={bf,sf}}
27164 \begin_layout Standard
27165 \begin_inset Note Greyedout
27168 \begin_layout Plain Layout
27177 has no effect when a
27182 \begin_inset Index idx
27185 \begin_layout Plain Layout
27187 -packages ! KOMA-Script
27192 document class is used.
27193 In this case the document class option
27195 captions=tableheading
27205 \begin_layout Standard
27206 For more information about the package
27210 we refer to its documentation
27211 \begin_inset CommandInset citation
27220 \begin_layout Standard
27221 To change the label name from e.
27222 \begin_inset space \thinspace{}
27226 \begin_inset space \space{}
27230 \begin_inset Quotes eld
27234 \begin_inset Quotes erd
27238 \begin_inset Quotes eld
27242 \begin_inset Quotes erd
27245 use this preamble command:
27248 \begin_layout Standard
27255 fnum@figure}{Image~
27260 \begin_layout Standard
27267 inserts the figure number and
27270 \begin_inset Quotes eld
27276 \begin_inset Quotes erd
27279 creates a protected space.
27282 \begin_layout Standard
27283 \begin_inset VSpace bigskip
27291 \begin_inset Index idx
27294 \begin_layout Plain Layout
27296 -packages ! KOMA-Script
27303 article (KOMA-Script)
27311 letter (KOMA-Script)
27315 report (KOMA-Script)
27318 \begin_inset space \thinspace{}
27321 ), you can alternatively to the
27329 's built-in command
27336 For example, to have the caption label in bold, add this command to your
27340 \begin_layout Standard
27345 setkomafont{captionlabel}{
27350 \begin_layout Standard
27351 For more information about
27362 \begin_inset CommandInset citation
27371 \begin_layout Standard
27375 \begin_layout Plain Layout
27379 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27386 \begin_inset Note Note
27389 \begin_layout Plain Layout
27390 The caption format is changed only for this example.
27398 \begin_layout Standard
27399 \begin_inset Float figure
27405 \begin_layout Plain Layout
27407 \begin_inset Graphics
27408 filename clipart/mobius.eps
27411 scaleBeforeRotation
27418 \begin_layout Plain Layout
27419 \begin_inset Caption Standard
27421 \begin_layout Plain Layout
27422 \begin_inset CommandInset label
27424 name "fig:This-is-an-fig"
27428 This is an example figure caption that is longer than one line to show the
27429 different caption format.
27430 Here a self-defined caption format is used.
27443 \begin_layout Standard
27447 \begin_layout Plain Layout
27451 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27460 \begin_layout Standard
27461 \begin_inset Float table
27467 \begin_layout Plain Layout
27468 \begin_inset Caption Standard
27470 \begin_layout Plain Layout
27471 \begin_inset CommandInset label
27473 name "tab:This-is-an-tab"
27477 This is an example table caption that is longer than one line to show the
27478 different caption format.
27479 Here the standard caption format for tables in this document is used.
27487 \begin_layout Plain Layout
27489 \begin_inset Tabular
27490 <lyxtabular version="3" rows="1" columns="5">
27491 <features tabularvalignment="middle">
27492 <column alignment="center" valignment="top">
27493 <column alignment="center" valignment="top">
27494 <column alignment="center" valignment="top">
27495 <column alignment="center" valignment="top">
27496 <column alignment="center" valignment="top">
27498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27501 \begin_layout Plain Layout
27507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27510 \begin_layout Plain Layout
27516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27519 \begin_layout Plain Layout
27525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27528 \begin_layout Plain Layout
27534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27537 \begin_layout Plain Layout
27556 \begin_layout Section
27558 \begin_inset Index idx
27561 \begin_layout Plain Layout
27562 Caption ! Placement
27568 \begin_inset Index idx
27571 \begin_layout Plain Layout
27572 Floats ! Caption Placement
27578 \begin_inset CommandInset label
27580 name "sec:Caption-Placement"
27587 \begin_layout Standard
27588 The common caption placement rule is:
27591 \begin_layout Description
27592 Figure: Caption is set below the figure
27595 \begin_layout Description
27596 Table: Caption is set above the table
27599 \begin_layout Standard
27600 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27603 That means if you are using the document classes
27619 there will be no space between the caption and the table.
27620 To insert the necessary space, load the \SpecialChar LaTeX
27626 \begin_inset Index idx
27629 \begin_layout Plain Layout
27631 -packages ! caption
27636 in your document preamble with the option
27640 \begin_layout Plain Layout
27642 \begin_inset space ~
27646 \begin_inset CommandInset ref
27648 reference "sec:Caption-Formatting"
27652 for more information of the package
27664 \begin_layout Standard
27670 \begin_layout Standard
27676 \begin_inset Index idx
27679 \begin_layout Plain Layout
27681 -packages ! KOMA-Script
27688 article (KOMA-Script)
27696 letter (KOMA-Script)
27700 report (KOMA-Script)
27703 \begin_inset space \thinspace{}
27706 ), you can alternatively to the
27710 package set the document class option
27714 \begin_layout Plain Layout
27715 That option is used in this document.
27723 \begin_layout Standard
27726 captions=tableheading
27729 \begin_layout Standard
27730 In documents with a KOMA-Script document class you can also right-click
27731 on a caption and mark in the context menu if this should be a caption above
27732 or below the table/figure.
27733 This way you can override the document-wide caption placement for certain
27736 \begin_inset space ~
27740 \begin_inset CommandInset ref
27742 reference "tab:A-caption-marked"
27746 is an example where the caption is marked a being below the table while
27748 For comparison the caption in Table
27749 \begin_inset space ~
27753 \begin_inset CommandInset ref
27755 reference "tab:A-standard-table"
27762 \begin_layout Standard
27763 \begin_inset Float table
27768 \begin_layout Plain Layout
27769 \begin_inset Caption Below
27771 \begin_layout Plain Layout
27772 \begin_inset CommandInset label
27774 name "tab:A-caption-marked"
27778 A caption marked as being below the table.
27786 \begin_layout Plain Layout
27788 \begin_inset Tabular
27789 <lyxtabular version="3" rows="3" columns="3">
27790 <features tabularvalignment="middle">
27791 <column alignment="center" valignment="top" width="0pt">
27792 <column alignment="center" valignment="top" width="0pt">
27793 <column alignment="center" valignment="top" width="0pt">
27795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27798 \begin_layout Plain Layout
27804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27807 \begin_layout Plain Layout
27813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27816 \begin_layout Plain Layout
27824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27827 \begin_layout Plain Layout
27833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27836 \begin_layout Plain Layout
27842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27845 \begin_layout Plain Layout
27853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27856 \begin_layout Plain Layout
27857 \begin_inset Formula $\int x^{2}dx$
27865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27868 \begin_layout Plain Layout
27869 \begin_inset Formula $\left[\begin{array}{cc}
27872 \end{array}\right]$
27880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27883 \begin_layout Plain Layout
27884 \begin_inset Formula $1+1=2$
27905 \begin_layout Standard
27906 \begin_inset Float table
27911 \begin_layout Plain Layout
27912 \begin_inset Caption Standard
27914 \begin_layout Plain Layout
27915 \begin_inset CommandInset label
27917 name "tab:A-standard-table"
27921 A standard table caption.
27929 \begin_layout Plain Layout
27931 \begin_inset Tabular
27932 <lyxtabular version="3" rows="3" columns="3">
27933 <features tabularvalignment="middle">
27934 <column alignment="center" valignment="top" width="0pt">
27935 <column alignment="center" valignment="top" width="0pt">
27936 <column alignment="center" valignment="top" width="0pt">
27938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27941 \begin_layout Plain Layout
27947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27950 \begin_layout Plain Layout
27956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27959 \begin_layout Plain Layout
27967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27970 \begin_layout Plain Layout
27976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27979 \begin_layout Plain Layout
27985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27988 \begin_layout Plain Layout
27996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27999 \begin_layout Plain Layout
28000 \begin_inset Formula $\int x^{2}dx$
28008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28011 \begin_layout Plain Layout
28012 \begin_inset Formula $\left[\begin{array}{cc}
28015 \end{array}\right]$
28023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28026 \begin_layout Plain Layout
28027 \begin_inset Formula $1+1=2$
28048 \begin_layout Standard
28049 \begin_inset VSpace bigskip
28052 It is also possible to set the caption beside a figure or table.
28053 To get this the \SpecialChar LaTeX
28059 \begin_inset Index idx
28062 \begin_layout Plain Layout
28064 -packages ! sidecap
28069 has to be loaded in the document preamble with the line
28072 \begin_layout Standard
28077 usepackage[option]{sidecap}
28080 \begin_layout Standard
28081 If you set no option, the caption is placed on the side of the outer page
28082 margin – to the right on odd pages, to the left on even pages.
28083 You can change the placement to inner margin with the option
28088 To force the placement always to the right or left, use the option
28099 \begin_layout Standard
28103 \begin_layout Plain Layout
28113 \begin_inset Note Note
28116 \begin_layout Plain Layout
28117 The following section will only be displayed when the \SpecialChar LaTeX
28130 \begin_layout Standard
28131 To place in \SpecialChar LyX
28132 the caption of a float on the side, it is necessary to add
28133 these commands to the document preamble:
28136 \begin_layout Standard
28138 \begin_inset CommandInset line
28149 \begin_layout Standard
28156 TabBesBeg}[1][1.0]{%
28157 \begin_inset Newline newline
28161 \begin_inset Phantom HPhantom
28164 \begin_layout Plain Layout
28165 \begin_inset space ~
28180 \begin_inset Newline newline
28184 \begin_inset Phantom HPhantom
28187 \begin_layout Plain Layout
28190 \begin_inset space ~
28205 \begin_inset Newline newline
28209 \begin_inset Phantom HPhantom
28212 \begin_layout Plain Layout
28215 \begin_inset space ~
28225 renewenvironment{table}[1]{
28227 begin{SCtable}[#1]##1}{
28232 \begin_layout Standard
28240 \begin_inset Newline newline
28244 \begin_inset Phantom HPhantom
28247 \begin_layout Plain Layout
28248 \begin_inset space ~
28263 \begin_inset Newline newline
28267 \begin_inset Phantom HPhantom
28270 \begin_layout Plain Layout
28271 \begin_inset space ~
28288 \begin_layout Standard
28295 FigBesBeg}[1][1.0]{%
28296 \begin_inset Newline newline
28300 \begin_inset Phantom HPhantom
28303 \begin_layout Plain Layout
28304 \begin_inset space ~
28319 \begin_inset Newline newline
28323 \begin_inset Phantom HPhantom
28326 \begin_layout Plain Layout
28327 \begin_inset space ~
28342 \begin_inset Newline newline
28346 \begin_inset Phantom HPhantom
28349 \begin_layout Plain Layout
28350 \begin_inset space ~
28360 renewenvironment{figure}[1]{
28362 begin{SCfigure}[#1]##1}{
28367 \begin_layout Standard
28375 \begin_inset Newline newline
28379 \begin_inset Phantom HPhantom
28382 \begin_layout Plain Layout
28383 \begin_inset space ~
28398 \begin_inset Newline newline
28402 \begin_inset Phantom HPhantom
28405 \begin_layout Plain Layout
28406 \begin_inset space ~
28423 \begin_layout Standard
28425 \begin_inset CommandInset line
28436 \begin_layout Standard
28437 The commands allow you to redefine the floats so that the caption is set
28439 For figure floats use the command
28442 \begin_layout Standard
28450 \begin_layout Standard
28451 in \SpecialChar TeX
28452 Code before the float.
28453 And insert the command
28456 \begin_layout Standard
28464 \begin_layout Standard
28465 in \SpecialChar TeX
28466 Code at the point where you want to get back to the original float definitio
28470 \begin_layout Standard
28471 For table floats use the corresponding commands
28474 \begin_layout Standard
28488 \begin_layout Standard
28490 \begin_inset space ~
28494 \begin_inset CommandInset ref
28496 reference "fig:cap-beside-fig"
28501 \begin_inset space ~
28505 \begin_inset CommandInset ref
28507 reference "tab:cap-beside-tab"
28511 are examples where the caption is set beside.
28514 \begin_layout Standard
28515 You can see in the examples that the caption text appears at the top of
28516 the floats for table floats and at the bottom for figure floats.
28517 To change this, you can use the command
28520 \begin_layout Standard
28525 sidecaptionvpos{float type}{placement}
28528 \begin_layout Standard
28529 in the document preamble or in \SpecialChar TeX
28530 Code before the float.
28531 The float type is either
28539 , the placement can be
28540 \begin_inset Quotes eld
28548 \begin_inset Quotes erd
28552 \begin_inset Quotes eld
28560 \begin_inset Quotes erd
28564 \begin_inset Quotes eld
28572 \begin_inset Quotes erd
28576 To have for example the caption of figure floats vertically centered, use
28580 \begin_layout Standard
28585 sidecaptionvpos{figure}{c}
28588 \begin_layout Standard
28589 This was used for Figure
28590 \begin_inset space ~
28594 \begin_inset CommandInset ref
28596 reference "fig:cap-beside-fig-2"
28603 \begin_layout Standard
28604 \begin_inset VSpace medskip
28610 \begin_layout Standard
28611 The default caption width is the width of the image/table.
28612 For thin image/tables, like in Table
28613 \begin_inset space ~
28617 \begin_inset CommandInset ref
28619 reference "tab:cap-beside-tab"
28623 , this leads to captions that are too thin.
28624 You can increase the width by specifying a factor that will be multiplied
28625 with the image/table width to get the caption width.
28626 The caption width will automatically be recalculated in case it would protrude
28627 over the page or column margin due to the specified width.
28632 can either be given as optional argument for
28641 \begin_layout Standard
28649 \begin_layout Standard
28650 or in the definition of
28660 with another value.
28661 If you do the latter, your factor will be the default if
28667 is used without an argument.
28669 \begin_inset space ~
28673 \begin_inset CommandInset ref
28675 reference "tab:cap-beside-tab-wider"
28679 the factor 5 was used.
28682 \begin_layout Standard
28683 \begin_inset Note Greyedout
28686 \begin_layout Plain Layout
28691 For floats with captions set beside, you cannot use the float placement
28695 \begin_inset space ~
28700 because it is not supported by
28712 \begin_layout Standard
28713 \begin_inset VSpace medskip
28716 For more information about the package
28720 we refer to its documentation
28721 \begin_inset CommandInset citation
28730 \begin_layout Standard
28731 \begin_inset Note Greyedout
28734 \begin_layout Plain Layout
28739 The \SpecialChar LaTeX
28745 \begin_inset Index idx
28748 \begin_layout Plain Layout
28755 , described in section
28756 \begin_inset space ~
28760 \begin_inset CommandInset ref
28762 reference "subsec:Reference-Position"
28766 , has no effect on floats with the caption set beside.
28774 \begin_layout Standard
28778 \begin_layout Plain Layout
28790 \begin_layout Standard
28791 \begin_inset Float figure
28796 \begin_layout Plain Layout
28797 \begin_inset Graphics
28798 filename clipart/escher-lsd.eps
28800 scaleBeforeRotation
28807 \begin_layout Plain Layout
28808 \begin_inset Caption Standard
28810 \begin_layout Plain Layout
28811 \begin_inset CommandInset label
28813 name "fig:cap-beside-fig"
28817 This is a caption beside a figure.
28830 \begin_layout Standard
28834 \begin_layout Plain Layout
28846 \begin_layout Standard
28850 \begin_layout Plain Layout
28862 \begin_layout Standard
28863 \begin_inset Float table
28868 \begin_layout Plain Layout
28869 \begin_inset Caption Standard
28871 \begin_layout Plain Layout
28872 \begin_inset CommandInset label
28874 name "tab:cap-beside-tab"
28878 This is a caption beside a table.
28886 \begin_layout Plain Layout
28887 \begin_inset Tabular
28888 <lyxtabular version="3" rows="4" columns="5">
28889 <features tabularvalignment="middle">
28890 <column alignment="center" valignment="top">
28891 <column alignment="center" valignment="top">
28892 <column alignment="center" valignment="top">
28893 <column alignment="center" valignment="top">
28894 <column alignment="center" valignment="top">
28896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28899 \begin_layout Plain Layout
28905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28908 \begin_layout Plain Layout
28914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28917 \begin_layout Plain Layout
28923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28926 \begin_layout Plain Layout
28932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28935 \begin_layout Plain Layout
28943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28946 \begin_layout Plain Layout
28952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28955 \begin_layout Plain Layout
28961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28964 \begin_layout Plain Layout
28970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28973 \begin_layout Plain Layout
28979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28982 \begin_layout Plain Layout
28990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28993 \begin_layout Plain Layout
28999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29002 \begin_layout Plain Layout
29008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29011 \begin_layout Plain Layout
29017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29020 \begin_layout Plain Layout
29026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29029 \begin_layout Plain Layout
29037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29040 \begin_layout Plain Layout
29046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29049 \begin_layout Plain Layout
29055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29058 \begin_layout Plain Layout
29064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29067 \begin_layout Plain Layout
29073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29076 \begin_layout Plain Layout
29095 \begin_layout Standard
29099 \begin_layout Plain Layout
29111 \begin_layout Standard
29115 \begin_layout Plain Layout
29128 \begin_layout Plain Layout
29132 sidecaptionvpos{figure}{c}
29138 \begin_inset Float figure
29143 \begin_layout Plain Layout
29144 \begin_inset Graphics
29145 filename clipart/escher-lsd.eps
29147 scaleBeforeRotation
29154 \begin_layout Plain Layout
29155 \begin_inset Caption Standard
29157 \begin_layout Plain Layout
29158 \begin_inset CommandInset label
29160 name "fig:cap-beside-fig-2"
29164 This is a vertically centered caption beside a figure.
29177 \begin_layout Standard
29181 \begin_layout Plain Layout
29193 \begin_layout Standard
29197 \begin_layout Plain Layout
29209 \begin_layout Standard
29210 \begin_inset Float table
29215 \begin_layout Plain Layout
29216 \begin_inset Caption Standard
29218 \begin_layout Plain Layout
29219 \begin_inset CommandInset label
29221 name "tab:cap-beside-tab-wider"
29225 This caption is wider than the one in Table
29226 \begin_inset space ~
29230 \begin_inset CommandInset ref
29232 reference "tab:cap-beside-tab"
29244 \begin_layout Plain Layout
29245 \begin_inset Tabular
29246 <lyxtabular version="3" rows="4" columns="5">
29247 <features tabularvalignment="middle">
29248 <column alignment="center" valignment="top">
29249 <column alignment="center" valignment="top">
29250 <column alignment="center" valignment="top">
29251 <column alignment="center" valignment="top">
29252 <column alignment="center" valignment="top">
29254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29257 \begin_layout Plain Layout
29263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29266 \begin_layout Plain Layout
29272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29275 \begin_layout Plain Layout
29281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29284 \begin_layout Plain Layout
29290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29293 \begin_layout Plain Layout
29301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29304 \begin_layout Plain Layout
29310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29313 \begin_layout Plain Layout
29319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29322 \begin_layout Plain Layout
29328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29331 \begin_layout Plain Layout
29337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29340 \begin_layout Plain Layout
29348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29351 \begin_layout Plain Layout
29357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29360 \begin_layout Plain Layout
29366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29369 \begin_layout Plain Layout
29375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29378 \begin_layout Plain Layout
29384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29387 \begin_layout Plain Layout
29395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29398 \begin_layout Plain Layout
29404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29407 \begin_layout Plain Layout
29413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29416 \begin_layout Plain Layout
29422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29425 \begin_layout Plain Layout
29431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29434 \begin_layout Plain Layout
29453 \begin_layout Standard
29457 \begin_layout Plain Layout
29469 \begin_layout Standard
29473 \begin_layout Plain Layout
29483 \begin_inset Note Note
29486 \begin_layout Plain Layout
29487 The following will be displayed when the \SpecialChar LaTeX
29500 \begin_layout Standard
29501 You need to install the \SpecialChar LaTeX
29506 to see the following part of this section in the output.
29509 \begin_layout Standard
29513 \begin_layout Plain Layout
29525 \begin_layout Section
29527 \begin_inset Index idx
29530 \begin_layout Plain Layout
29531 Floats ! Float Lists
29539 \begin_layout Standard
29540 Similar to the table of contents where the sections of the document are
29541 listed, there are listings for all float types, like the figures of the
29543 You can insert them via the
29545 Insert\SpecialChar menuseparator
29547 \begin_inset space ~
29551 \begin_inset space ~
29559 \begin_layout Standard
29560 The list entries are the float captions or its short title, the float number,
29561 and the page number where they appear in the document.
29564 \begin_layout Standard
29565 You can find the list of figures and tables at the end of this document.
29568 \begin_layout Chapter
29572 \begin_layout Section
29575 \begin_inset Index idx
29578 \begin_layout Plain Layout
29579 Notes ! \SpecialChar LyX
29588 \begin_layout Standard
29589 Notes are inserted with the toolbar button
29597 Insert\SpecialChar menuseparator
29601 There are three types of notes:
29604 \begin_layout Description
29607 \begin_inset space ~
29610 Note This note type is for internal notes that won't appear in the output.
29611 Its note-box looks like this:
29612 \begin_inset Newline newline
29616 \begin_inset Newline newline
29620 \begin_inset Graphics
29621 filename clipart/LyXNoteImage.png
29623 scaleBeforeRotation
29628 \begin_inset Note Note
29631 \begin_layout Plain Layout
29632 This is text in a note box that doesn't appear in the output.
29640 \begin_layout Description
29641 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29643 when you export the document to \SpecialChar LaTeX
29646 File\SpecialChar menuseparator
29647 Export\SpecialChar menuseparator
29649 \begin_inset space ~
29652 (pdflatex) / (plain)
29655 Its note-box looks like this:
29656 \begin_inset Newline newline
29660 \begin_inset Newline newline
29664 \begin_inset Graphics
29665 filename clipart/CommentNoteImage.png
29667 scaleBeforeRotation
29672 \begin_inset Note Comment
29675 \begin_layout Plain Layout
29676 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29685 \begin_layout Description
29687 \begin_inset space ~
29690 Out This note will appear in the output as grey text.
29691 Its note-box looks like this:
29692 \begin_inset Newline newline
29696 \begin_inset Newline newline
29700 \begin_inset Graphics
29701 filename clipart/GreyedOutNoteImage.png
29703 scaleBeforeRotation
29708 \begin_inset Newline newline
29715 \begin_layout Plain Layout
29719 renewenvironment{lyxgreyedout}
29722 \begin_layout Plain Layout
29726 textcolor[gray]{0.8}
29736 \begin_inset Note Greyedout
29739 \begin_layout Plain Layout
29740 This is text of a comment that appears grey in the output.
29749 \begin_layout Plain Layout
29753 renewenvironment{lyxgreyedout}
29756 \begin_layout Plain Layout
29770 \begin_inset Note Note
29773 \begin_layout Plain Layout
29774 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29776 because greyed out notes are redefined in the preamble of this document,
29777 as described below, to have blue text.
29783 \begin_inset Newline newline
29787 \begin_inset Newline newline
29790 As you can see in the example, the first line of greyed out notes is a bit
29791 indented and greyed out notes can have footnotes.
29794 \begin_layout Standard
29795 \begin_inset VSpace bigskip
29798 When you use the toolbar button
29808 \begin_inset space ~
29814 You can switch between the three note types by right-clicking on the note-box.
29819 If you want to turn existing text into a note, mark it and click on the
29833 To change a note to text, press the backspace key when the cursor is in
29834 the first position of a note, or press the delete key when the cursor is
29835 in the very last position of the note, respectively.
29838 \begin_layout Standard
29839 \begin_inset VSpace bigskip
29842 You can change the text color of the greyed out notes in the menu
29844 Document\SpecialChar menuseparator
29845 Settings\SpecialChar menuseparator
29851 \begin_layout Section
29853 \begin_inset CommandInset label
29855 name "sec:Footnotes"
29860 \begin_inset Index idx
29863 \begin_layout Plain Layout
29870 \begin_inset Index idx
29873 \begin_layout Plain Layout
29882 \begin_layout Standard
29883 Footnotes can be inserted using the toolbar button
29886 arg "footnote-insert"
29891 Insert\SpecialChar menuseparator
29895 You will then see the following footnote-box:
29896 \begin_inset Graphics
29897 filename clipart/footnote.png
29899 scaleBeforeRotation
29907 where you can enter the footnote text.
29908 If you want to turn existing text into a footnote, mark it and click on
29934 key when the cursor is in the first position of a
29946 key when the cursor is in the very last position of the
29957 \begin_layout Standard
29958 Here is an example footnote:
29966 \begin_layout Plain Layout
29967 \begin_inset CommandInset label
29969 name "foot:This-is-an"
29973 This is an example footnote.
29986 \begin_layout Plain Layout
29990 newcounter{MyRepeatFoot}
29993 \begin_layout Plain Layout
29997 setcounter{MyRepeatFoot}{
30007 \begin_layout Standard
30008 The footnote will appear in the output as a superscript number at the text
30009 position where the footnote box is placed.
30010 The footnote text is placed at the bottom of the current page.
30011 The footnote number is calculated by \SpecialChar LaTeX
30012 ; the numbers are consecutive.
30013 Whether the footnote number is reset for every chapter depends on your
30017 \begin_layout Standard
30018 Footnotes can be referenced like floats: Insert a label into the footnote
30019 and cross-reference this label in the text as described in section
30020 \begin_inset space ~
30024 \begin_inset CommandInset ref
30026 reference "sec:Referencing-Floats"
30031 \begin_inset Newline newline
30034 This is a cross-reference of Footnote
30035 \begin_inset space ~
30039 \begin_inset CommandInset ref
30041 reference "foot:This-is-an"
30048 \begin_layout Standard
30049 \begin_inset VSpace defskip
30052 Footnotes in title environments are usually not numbered with symbols and
30053 they cannot contain several paragraphs.
30054 See for example the footnote in the titling of this document.
30057 \begin_layout Standard
30058 \begin_inset VSpace defskip
30061 Footnotes in tables are not printed by \SpecialChar LaTeX
30062 due to technical reasons.
30063 However there exists another method to print them: Instead of the footnote
30070 is inserted as \SpecialChar TeX
30072 The text of the footnote is entered as an argument of the \SpecialChar TeX
30081 \begin_inset Newline newline
30084 This was done for the following table with the command
30087 \begin_layout Standard
30094 Printed table footnote.
30099 \begin_layout Standard
30100 \begin_inset Tabular
30101 <lyxtabular version="3" rows="2" columns="1">
30102 <features tabularvalignment="middle">
30103 <column alignment="center" valignment="top">
30105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30108 \begin_layout Plain Layout
30109 This an example text.
30113 \begin_layout Plain Layout
30114 This footnote will not be printed!
30126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30129 \begin_layout Plain Layout
30130 This an example text.
30134 \begin_layout Plain Layout
30157 \begin_layout Plain Layout
30166 Printed table footnote.
30170 \begin_layout Plain Layout
30180 \begin_layout Standard
30181 Footnotes in multi-page tables are described in section
30182 \begin_inset space ~
30186 \begin_inset CommandInset ref
30188 reference "subsec:Footnotes-in-Multi-page"
30195 \begin_layout Standard
30196 Footnotes in minipage boxes are printed, but inside the box and with a different
30197 numbering because a minipage box is like a page inside a page.
30198 (For more about minipages, see section
30199 \begin_inset space ~
30203 \begin_inset CommandInset ref
30205 reference "sec:Minipages"
30209 .) To get a footnote in the minipage that is output at the bottom of the
30210 page like normal footnotes, also use the method of
30225 \begin_layout Standard
30226 \begin_inset Box Frameless
30236 height_special "totalheight"
30241 backgroundcolor "none"
30244 \begin_layout Plain Layout
30245 This an example text in a minipage.
30249 \begin_layout Plain Layout
30250 Footnote in the minipage.
30258 \begin_layout Plain Layout
30259 This an example text in a minipage.
30263 \begin_layout Plain Layout
30280 \begin_layout Standard
30284 \begin_layout Plain Layout
30293 Footnote outside the minipage.
30297 \begin_layout Plain Layout
30307 \begin_layout Standard
30308 \begin_inset VSpace defskip
30314 \begin_layout Standard
30315 To refer to the same footnote several times without printing the footnote
30316 text every time, use the command
30320 footnotemark[number]
30322 in \SpecialChar TeX
30324 \begin_inset Newline newline
30327 As you do not know the number of the repeating footnote while you are writing
30328 the text, you have to store its number.
30329 For the following footnote mark example, these commands were inserted in
30331 code after Footnote
30332 \begin_inset space ~
30336 \begin_inset CommandInset ref
30338 reference "foot:This-is-an"
30342 to store the footnote number:
30345 \begin_layout Standard
30350 newcounter{MyRepeatFoot}
30351 \begin_inset Newline newline
30356 setcounter{MyRepeatFoot}{
30361 \begin_layout Standard
30362 The footnote mark was then created with this command:
30365 \begin_layout Standard
30375 \begin_layout Standard
30376 Here is a repeated footnote:
30384 \begin_layout Plain Layout
30398 \begin_layout Standard
30399 If you want to repeat the previous footnote, you can omit the storage of
30400 the footnote number and just use this command instead:
30403 \begin_layout Standard
30413 \begin_layout Standard
30414 Here is another repeated footnote:
30422 \begin_layout Plain Layout
30436 \begin_layout Subsection
30438 \begin_inset CommandInset label
30440 name "subsec:Footnote-Numbering"
30445 \begin_inset Index idx
30448 \begin_layout Plain Layout
30449 Footnotes ! Numbering
30457 \begin_layout Standard
30458 To reset the footnote number back to 1 after each section
30460 , add this command to your document preamble:
30463 \begin_layout Standard
30468 @addtoreset{footnote}{section}
30471 \begin_layout Standard
30472 \begin_inset VSpace bigskip
30475 The following preamble command changes the footnote numbering style to small
30479 \begin_layout Standard
30491 \begin_layout Standard
30495 \begin_layout Plain Layout
30508 This is a footnote with roman numbering:
30512 \begin_layout Plain Layout
30513 This is an example footnote with roman numbering.
30521 \begin_layout Standard
30522 To change the numbering style to capital roman numerals replace in the command
30537 \begin_inset Quotes eld
30541 \begin_inset Quotes erd
30544 footnotes with capital or small Latin letters use
30558 \begin_inset Quotes eld
30562 \begin_inset Quotes erd
30565 footnotes with symbols use
30574 \begin_layout Standard
30575 \begin_inset Note Greyedout
30578 \begin_layout Plain Layout
30583 You can only number 26 footnotes with Latin letters, because this numbering
30584 is limited to single letters.
30590 \begin_inset Newline newline
30594 \begin_inset Note Greyedout
30597 \begin_layout Plain Layout
30602 You can only number 9 footnotes with symbols.
30610 \begin_layout Standard
30611 To return to the default numbering style after you have changed to another
30624 in the command above.
30628 \begin_layout Plain Layout
30644 \begin_layout Standard
30645 \begin_inset VSpace bigskip
30651 \begin_layout Standard
30652 If you want to have footnotes numbered in the scheme
30653 \begin_inset Quotes eld
30657 \begin_inset Quotes erd
30660 , add the following command to your document preamble:
30663 \begin_layout Standard
30668 numberwithin{footnote}{chapter}
30671 \begin_layout Standard
30672 To be able to use the command
30681 \begin_inset space ~
30686 in the document settings the option
30689 \begin_inset space ~
30693 \begin_inset space ~
30697 \begin_inset space ~
30705 \begin_layout Standard
30709 \begin_layout Plain Layout
30713 numberwithin{footnote}{chapter}
30718 This is another example footnote:
30724 \begin_layout Plain Layout
30725 This is a footnote numbered in the scheme
30726 \begin_inset Quotes eld
30730 \begin_inset Quotes erd
30744 \begin_layout Plain Layout
30760 \begin_layout Standard
30761 \begin_inset Note Greyedout
30764 \begin_layout Plain Layout
30775 always prints out the footnote number as arabic number; previous redefinitions
30776 to get non-arabic numbers are overwritten.
30784 \begin_layout Standard
30785 So to get for example the scheme
30786 \begin_inset Quotes eld
30792 \begin_inset Quotes erd
30795 , use this command instead of
30804 \begin_layout Standard
30818 \begin_layout Subsection
30820 \begin_inset Index idx
30823 \begin_layout Plain Layout
30824 Footnotes ! Placement
30832 \begin_layout Standard
30833 If you have several footnotes in one page, they appear without vertical
30834 space between them at the bottom of the page.
30835 To make them more readable you can e.
30836 \begin_inset space \thinspace{}
30840 \begin_inset space \space{}
30844 \begin_inset space \thinspace{}
30847 mm space with the following preamble command:
30850 \begin_layout Standard
30860 \begin_inset Newline newline
30874 \begin_layout Standard
30875 \begin_inset VSpace bigskip
30878 In a two-column document the footnotes appear at the bottom of every column,
30880 \begin_inset space ~
30884 \begin_inset CommandInset ref
30886 reference "fig:Standard-footnote-placement"
30891 If the footnotes should only appear at the bottom of the right column,
30893 \begin_inset space ~
30897 \begin_inset CommandInset ref
30899 reference "fig:Footnote-placement-in"
30903 , use the \SpecialChar LaTeX
30909 \begin_inset Index idx
30912 \begin_layout Plain Layout
30914 -packages ! ftnright
30919 with this command in the document preamble:
30922 \begin_layout Standard
30927 usepackage{ftnright}
30930 \begin_layout Standard
30931 \begin_inset Float figure
30937 \begin_layout Plain Layout
30940 \begin_inset Box Boxed
30950 height_special "totalheight"
30955 backgroundcolor "none"
30958 \begin_layout Plain Layout
30959 \begin_inset Graphics
30960 filename clipart/without_fntright.pdf
30962 scaleBeforeRotation
30974 \begin_layout Plain Layout
30975 \begin_inset Caption Standard
30977 \begin_layout Plain Layout
30978 \begin_inset CommandInset label
30980 name "fig:Standard-footnote-placement"
30984 Standard footnote placement in two-column documents.
30997 \begin_layout Standard
30998 \begin_inset Float figure
31004 \begin_layout Plain Layout
31007 \begin_inset Box Boxed
31017 height_special "totalheight"
31022 backgroundcolor "none"
31025 \begin_layout Plain Layout
31026 \begin_inset Graphics
31027 filename clipart/with_fntright.pdf
31029 scaleBeforeRotation
31041 \begin_layout Plain Layout
31042 \begin_inset Caption Standard
31044 \begin_layout Plain Layout
31045 \begin_inset CommandInset label
31047 name "fig:Footnote-placement-in"
31051 Footnote placement in two-column documents when the \SpecialChar LaTeX
31069 \begin_layout Standard
31070 \begin_inset VSpace bigskip
31073 In some scientific literature it is usual to collect the footnotes and print
31074 them in a separate paragraph at the end of a section, as in Figure
31075 \begin_inset space ~
31079 \begin_inset CommandInset ref
31081 reference "fig:Endnotes"
31086 They are then called
31087 \begin_inset Quotes eld
31091 \begin_inset Quotes erd
31095 \begin_inset Index idx
31098 \begin_layout Plain Layout
31104 To use endnotes instead of footnotes in your document, load in the menu
31107 Document\SpecialChar menuseparator
31108 Settings\SpecialChar menuseparator
31114 \begin_inset space ~
31118 \begin_inset space ~
31124 To insert the collected footnotes, insert the command
31127 \begin_layout Standard
31135 \begin_layout Standard
31136 in \SpecialChar TeX
31137 Code at the end of a section or chapter.
31140 \begin_layout Standard
31141 \begin_inset Float figure
31146 \begin_layout Plain Layout
31149 \begin_inset Box Boxed
31159 height_special "totalheight"
31164 backgroundcolor "none"
31167 \begin_layout Plain Layout
31168 \begin_inset Graphics
31169 filename clipart/endnotes.pdf
31171 scaleBeforeRotation
31183 \begin_layout Plain Layout
31184 \begin_inset Caption Standard
31186 \begin_layout Plain Layout
31187 \begin_inset CommandInset label
31189 name "fig:Endnotes"
31193 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31207 \begin_layout Standard
31208 \begin_inset VSpace medskip
31211 The paragraph heading for the endnotes isn't automatically translated into
31212 the document language, this must be done manually.
31213 The following preamble command translates the default English
31214 \begin_inset Quotes eld
31218 \begin_inset Quotes erd
31222 \begin_inset Quotes eld
31226 \begin_inset Quotes erd
31232 \begin_layout Standard
31239 notesname}{Anmerkungen}
31242 \begin_layout Standard
31243 \begin_inset VSpace medskip
31246 The numbering of endnotes can be changed like the footnote numbering as
31247 described in section
31248 \begin_inset space ~
31252 \begin_inset CommandInset ref
31254 reference "subsec:Footnote-Numbering"
31258 ; just replace the command
31271 To reset the endnote number use the command
31277 as described in section
31278 \begin_inset space ~
31282 \begin_inset CommandInset ref
31284 reference "subsec:Footnote-Numbering"
31288 and replace the command parameter
31299 \begin_layout Standard
31300 For endnotes there is the command
31304 endnotemark[number]
31306 similar to the command
31312 , that is described in section
31313 \begin_inset space ~
31317 \begin_inset CommandInset ref
31319 reference "sec:Footnotes"
31326 \begin_layout Standard
31327 \begin_inset VSpace bigskip
31330 Footnotes can also be placed in the page margin and the footnote text alignment
31331 can be changed, see the \SpecialChar LaTeX
31337 \begin_inset Index idx
31340 \begin_layout Plain Layout
31342 -packages ! footmisc
31348 \begin_inset CommandInset citation
31354 for more information about this.
31357 \begin_layout Standard
31358 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31360 \begin_inset CommandInset citation
31362 key "latexcompanion,latexguide,latexbook"
31372 \begin_inset Index idx
31375 \begin_layout Plain Layout
31377 -packages ! KOMA-Script
31382 document class, you can adjust all footnote settings using class-specific
31384 \begin_inset CommandInset citation
31393 \begin_layout Section
31395 \begin_inset Index idx
31398 \begin_layout Plain Layout
31399 Notes ! Margin Notes
31407 \begin_layout Standard
31408 Margin notes look and behave in \SpecialChar LyX
31410 They are inserted via the menu
31412 Insert\SpecialChar menuseparator
31414 \begin_inset space ~
31419 or the toolbar button
31422 arg "marginalnote-insert"
31436 \begin_inset Quotes eld
31440 \begin_inset Quotes erd
31443 appears where you can enter the text of the margin note.
31446 \begin_layout Standard
31447 At the side is an example margin note.
31452 \begin_inset Marginal
31455 \begin_layout Plain Layout
31456 This is a margin note.
31464 \begin_layout Standard
31465 Margin notes appear at the right side in single-sided documents.
31466 In double-sided documents they appear in the outer margin – left on even
31467 pages, right on odd pages.
31468 The text of margin notes is aligned opposite to the outer margin – right-aligne
31469 d when the note appears in the left margin.
31470 The first line of the margin note is placed at the position of the text
31471 line where it is inserted in the document.
31474 \begin_layout Standard
31475 \begin_inset VSpace bigskip
31478 To place the margin note in the inner margin, add the command
31481 \begin_layout Standard
31489 \begin_layout Standard
31490 in \SpecialChar TeX
31491 Code before a margin note.
31492 The new placement is valid for all subsequent margin notes.
31497 \begin_layout Plain Layout
31507 \begin_inset Marginal
31510 \begin_layout Plain Layout
31511 This is a margin note in the inner margin.
31519 \begin_inset Newline newline
31525 \begin_inset Note Greyedout
31528 \begin_layout Plain Layout
31533 There is often not enough space in the inner margin so that the notes are
31534 not correctly displayed in the output.
31542 \begin_layout Standard
31543 To return to the default placement insert the command
31546 \begin_layout Standard
31554 \begin_layout Standard
31555 in \SpecialChar TeX
31560 \begin_layout Plain Layout
31570 \begin_inset Note Greyedout
31573 \begin_layout Plain Layout
31578 The command is ignored when it is within a paragraph where also the command
31593 \begin_layout Standard
31594 \begin_inset VSpace bigskip
31601 \begin_inset Marginal
31604 \begin_layout Plain Layout
31605 AVeryLongMarginParWord that isn't hyphenated.
31613 Similar to the case described in section
31614 \begin_inset space ~
31618 \begin_inset CommandInset ref
31620 reference "subsec:Multiple-Lines-in"
31624 , long words cannot be hyphenated when they are the first word in a margin
31626 To avoid this, insert 0
31627 \begin_inset space \thinspace{}
31630 pt horizontal space before the word
31635 \begin_inset Marginal
31638 \begin_layout Plain Layout
31639 \begin_inset space \hspace*{}
31643 AVeryLongMarginParWord that is hyphenated.
31651 \begin_layout Standard
31652 \begin_inset VSpace bigskip
31658 \begin_layout Standard
31659 \begin_inset Note Greyedout
31662 \begin_layout Plain Layout
31667 Margin notes can normally not be used inside tables, floats, and footnotes.
31675 \begin_layout Standard
31676 \begin_inset VSpace bigskip
31682 \begin_layout Standard
31686 \begin_layout Plain Layout
31696 \begin_inset Note Note
31699 \begin_layout Plain Layout
31700 The following section will only be displayed when the \SpecialChar LaTeX
31713 \begin_layout Standard
31714 This restriction can be evaded by using the \SpecialChar LaTeX
31720 \begin_inset Index idx
31723 \begin_layout Plain Layout
31725 -packages ! marginnote
31731 By adding these two lines to your document preamble, the command used by
31733 for margin notes is redefined to use the command provided by the
31740 \begin_layout Standard
31745 usepackage{marginnote}
31746 \begin_inset Newline newline
31758 \begin_layout Standard
31759 This is also used in this document because
31763 has another useful feature: You can set a vertical offset for the note.
31764 This is often needed when too many margin notes are too close together
31765 or for a better page layout.
31766 The offset is set in \SpecialChar LyX
31767 as \SpecialChar TeX
31768 Code directly after the margin note in the scheme
31771 \begin_layout Standard
31777 \begin_layout Standard
31778 where the offset is a length with one of the units listed in Table
31779 \begin_inset space ~
31783 \begin_inset CommandInset ref
31785 reference "tab:Units"
31790 A negative value shifts the note up, a positive value shifts it down.
31794 For example the margin note beside this text line is shifted up 1.5
31795 \begin_inset space \thinspace{}
31798 cm with the \SpecialChar TeX
31800 \begin_inset Quotes eld
31810 \begin_inset Quotes erd
31814 \begin_inset Marginal
31817 \begin_layout Plain Layout
31818 This margin note is shifted up 1.5
31819 \begin_inset space \thinspace{}
31822 cm from its original position.
31834 \begin_layout Plain Layout
31844 \begin_layout Standard
31845 \begin_inset VSpace medskip
31852 you can also change the alignment of the text in the margin note.
31853 For example the commands
31856 \begin_layout Standard
31863 raggedleftmarginnote}{
31866 \begin_inset Newline newline
31873 raggedrightmarginnote}{
31878 \begin_layout Standard
31879 set the alignment to centered.
31884 raggedleftmarginnote
31886 denotes margin notes that appear at the left side.
31893 \begin_layout Plain Layout
31899 raggedleftmarginnote}{
31904 \begin_layout Plain Layout
31910 raggedrightmarginnote}{
31918 \begin_inset Marginal
31921 \begin_layout Plain Layout
31922 The text of this margin note is centered.
31933 \begin_layout Standard
31940 raggedleftmarginnote}{
31943 \begin_inset Newline newline
31950 raggedrightmarginnote}{
31959 \begin_layout Plain Layout
31965 raggedleftmarginnote}{
31970 \begin_layout Plain Layout
31976 raggedrightmarginnote}{
31986 \begin_layout Standard
31987 \begin_inset VSpace medskip
31990 For the other features of
31994 refer to its documentation
31995 \begin_inset CommandInset citation
32004 \begin_layout Standard
32005 \begin_inset VSpace bigskip
32008 You can adjust the layout of margin notes by changing its definition.
32009 To create for example a header for all margin notes with the underlined,
32010 sans-serif, and bold header text
32011 \begin_inset Quotes eld
32023 \begin_inset Quotes erd
32026 , add this to your document preamble:
32029 \begin_layout Standard
32039 \begin_inset Newline newline
32049 \begin_inset Newline newline
32053 \begin_inset Phantom HPhantom
32056 \begin_layout Plain Layout
32059 \begin_inset space ~
32075 underbar{Attention!}}}%
32076 \begin_inset Newline newline
32080 \begin_inset Phantom HPhantom
32083 \begin_layout Plain Layout
32086 \begin_inset space ~
32103 \begin_layout Standard
32110 \begin_layout Plain Layout
32121 \begin_layout Plain Layout
32132 \begin_layout Plain Layout
32140 underbar{Attention!}}}%
32143 \begin_layout Plain Layout
32157 \begin_inset Marginal
32160 \begin_layout Plain Layout
32161 This is a margin note with a defined heading.
32173 \begin_layout Plain Layout
32187 \begin_layout Plain Layout
32204 \begin_inset Note Note
32207 \begin_layout Plain Layout
32208 The margin note format is changed only for this example.
32216 \begin_layout Standard
32220 \begin_layout Plain Layout
32230 \begin_inset Note Note
32233 \begin_layout Plain Layout
32234 The following will be displayed when the \SpecialChar LaTeX
32247 \begin_layout Standard
32248 You need to install the \SpecialChar LaTeX
32253 to see the following part of this section in the output.
32256 \begin_layout Standard
32260 \begin_layout Plain Layout
32272 \begin_layout Chapter
32276 \begin_layout Section
32278 \begin_inset Index idx
32281 \begin_layout Plain Layout
32282 Boxes ! Introduction
32290 \begin_layout Standard
32291 Boxes are used to format a block of text.
32292 Boxes can be used to write documents with multiple languages, see section
32293 \begin_inset space ~
32297 \begin_inset CommandInset ref
32299 reference "sec:Minipages"
32303 , to frame texts, see section
32304 \begin_inset space ~
32308 \begin_inset CommandInset ref
32310 reference "sec:Decoration"
32314 , to prevent words from being hyphenated, see section
32315 \begin_inset space ~
32319 \begin_inset CommandInset ref
32321 reference "sec:Prevent-Hyphenation"
32325 , to align text, see section
32326 \begin_inset space ~
32330 \begin_inset CommandInset ref
32332 reference "subsec:Vertical-Alignment"
32336 , or to set the background color of texts, see section
32337 \begin_inset space ~
32341 \begin_inset CommandInset ref
32343 reference "sec:Colored-Boxes"
32350 \begin_layout Standard
32351 Boxes can be inserted with the menu
32353 Insert\SpecialChar menuseparator
32356 or the toolbar button
32359 arg "box-insert Frameless"
32363 A grey box with the label
32368 \begin_inset Graphics
32369 filename clipart/BoxInsetDefault.png
32371 scaleBeforeRotation
32376 The box type can be specified by right-clicking on the box and selecting
32382 The box dialog offers the
32385 \begin_inset space ~
32407 is the default for new boxes and is explained in section
32408 \begin_inset space ~
32412 \begin_inset CommandInset ref
32414 reference "sec:Minipages"
32422 is described in section
32423 \begin_inset space ~
32427 \begin_inset CommandInset ref
32429 reference "sec:Parboxes"
32438 \begin_inset CommandInset ref
32440 reference "sec:Prevent-Hyphenation"
32447 \begin_layout Standard
32448 Boxes are not numbered and can therefore not be referenced like floats or
32452 \begin_layout Standard
32453 \begin_inset Note Greyedout
32456 \begin_layout Plain Layout
32461 Boxes must not be the item in an
32477 \begin_layout Standard
32478 \begin_inset Note Greyedout
32481 \begin_layout Plain Layout
32486 For an unknown reason you can only set the
32489 \begin_inset space ~
32498 when you use a framed box.
32502 \begin_inset space ~
32507 type and without frames are explained in section
32508 \begin_inset space ~
32512 \begin_inset CommandInset ref
32514 reference "sec:Prevent-Hyphenation"
32526 \begin_layout Section
32528 \begin_inset CommandInset label
32530 name "sec:Box-Dialog"
32535 \begin_inset Index idx
32538 \begin_layout Plain Layout
32547 \begin_layout Subsection
32549 \begin_inset Index idx
32552 \begin_layout Plain Layout
32561 \begin_layout Standard
32562 In the box dialog you can adjust the box geometry in the fields
32571 The available units for the geometry are explained in Table
32572 \begin_inset space ~
32576 \begin_inset CommandInset ref
32578 reference "tab:Units"
32587 offers the following additional sizes:
32590 \begin_layout Description
32591 Depth This is the plain text
32592 \begin_inset Quotes eld
32596 \begin_inset Quotes erd
32600 It ignores the total depth when there are multiple text lines in the box:
32601 \begin_inset Newline newline
32605 \begin_inset Newline newline
32609 \begin_inset Newline newline
32613 \begin_inset Box Boxed
32623 height_special "depth"
32628 backgroundcolor "none"
32631 \begin_layout Plain Layout
32633 Box height set to 1
32634 \begin_inset space \thinspace{}
32643 \begin_inset Newline newline
32647 \begin_inset Newline newline
32653 \begin_layout Description
32654 Height This is the height of the text that is inside the box.
32656 \begin_inset space \thinspace{}
32660 \begin_inset space \space{}
32663 2 for this size will set the box height to 2
32664 \begin_inset space ~
32667 times the text height:
32668 \begin_inset Box Boxed
32678 height_special "height"
32683 backgroundcolor "none"
32686 \begin_layout Plain Layout
32688 Box height set to 2
32689 \begin_inset space \thinspace{}
32700 \begin_layout Description
32702 \begin_inset space ~
32705 Height This is the Height
32706 \begin_inset space \thinspace{}
32710 \begin_inset space \thinspace{}
32714 \begin_inset Box Boxed
32724 height_special "totalheight"
32729 backgroundcolor "none"
32732 \begin_layout Plain Layout
32734 Box height set to 1
32735 \begin_inset space \thinspace{}
32739 \begin_inset space ~
32750 \begin_layout Description
32751 Width This sets the width of the box as height:
32752 \begin_inset Box Boxed
32762 height_special "width"
32767 backgroundcolor "none"
32770 \begin_layout Plain Layout
32772 Box height set to 1
32773 \begin_inset space \thinspace{}
32784 \begin_layout Subsection
32786 \begin_inset Index idx
32789 \begin_layout Plain Layout
32798 \begin_layout Standard
32799 When you have chosen an
32802 \begin_inset space ~
32807 , the vertical box alignment can be:
32810 \begin_layout Description
32811 Top This is an example text line.
32813 \begin_inset Box Boxed
32823 height_special "totalheight"
32828 backgroundcolor "none"
32831 \begin_layout Plain Layout
32833 This box is top-aligned.
32838 This is an example text line.
32841 \begin_layout Description
32842 Middle This is an example text line.
32844 \begin_inset Box Boxed
32854 height_special "totalheight"
32859 backgroundcolor "none"
32862 \begin_layout Plain Layout
32864 This box is middle-aligned.
32869 This is an example text line.
32872 \begin_layout Description
32873 Bottom This is an example text line.
32875 \begin_inset Box Boxed
32885 height_special "totalheight"
32890 backgroundcolor "none"
32893 \begin_layout Plain Layout
32895 This box is bottom-aligned.
32900 This is an example text line.
32903 \begin_layout Standard
32904 \begin_inset Note Greyedout
32907 \begin_layout Plain Layout
32912 The vertical box alignment can be lost in the output when you have two
32913 boxes in a line and one has e.
32914 \begin_inset space \thinspace{}
32918 \begin_inset space \space{}
32921 a shadow and the other one not.
32929 \begin_layout Standard
32930 The horizontal box alignment can be set via \SpecialChar LyX
32931 's paragraph dialog when you
32932 set the box into its own paragraph.
32935 \begin_layout Standard
32936 \begin_inset VSpace bigskip
32939 When you have chosen an
32942 \begin_inset space ~
32947 , the box content can be aligned vertically to:
32950 \begin_layout Description
32951 top This is an example text line.
32953 \begin_inset Box Boxed
32963 height_special "totalheight"
32968 backgroundcolor "none"
32971 \begin_layout Plain Layout
32973 This box text is top-aligned.
32978 This is an example text line.
32981 \begin_layout Description
32982 middle This is an example text line.
32984 \begin_inset Box Boxed
32994 height_special "totalheight"
32999 backgroundcolor "none"
33002 \begin_layout Plain Layout
33004 This box text is middle-aligned.
33009 This is an example text line.
33012 \begin_layout Description
33013 bottom This is an example text line.
33015 \begin_inset Box Boxed
33025 height_special "totalheight"
33030 backgroundcolor "none"
33033 \begin_layout Plain Layout
33035 This box text is bottom-aligned.
33040 This is an example text line.
33043 \begin_layout Description
33044 stretch This is an example text line.
33046 \begin_inset Box Boxed
33056 height_special "totalheight"
33061 backgroundcolor "none"
33064 \begin_layout Plain Layout
33069 \begin_layout Plain Layout
33074 \begin_layout Plain Layout
33081 This is an example text line.
33084 \begin_layout Standard
33085 To stretch the box content, it must consist of more than one paragraph.
33086 In the example above every text line is in an own paragraph.
33089 \begin_layout Standard
33090 \begin_inset VSpace bigskip
33093 To align the box content horizontally you can use \SpecialChar LyX
33094 's paragraph dialog when
33098 \begin_inset space ~
33106 \begin_layout Standard
33108 \begin_inset Box Boxed
33118 height_special "totalheight"
33123 backgroundcolor "none"
33126 \begin_layout Plain Layout
33131 \begin_layout Plain Layout
33136 \begin_layout Plain Layout
33146 \begin_layout Standard
33147 If you have not set an
33150 \begin_inset space ~
33155 , you can align the box content horizontally in the box dialog.
33156 \begin_inset Separator latexpar
33162 \begin_layout Standard
33164 \begin_inset Box Boxed
33174 height_special "totalheight"
33179 backgroundcolor "none"
33182 \begin_layout Plain Layout
33183 This box text is horizontally stretched.
33191 \begin_layout Subsection
33193 \begin_inset CommandInset label
33195 name "sec:Decoration"
33200 \begin_inset Index idx
33203 \begin_layout Plain Layout
33212 \begin_layout Standard
33213 The type of the box can be specified in the box dialog in the drop-down
33219 The following types are possible:
33222 \begin_layout Description
33224 \begin_inset space ~
33227 frame Nothing is drawn.
33230 \begin_layout Description
33232 \begin_inset space ~
33236 \begin_inset space ~
33239 frame This draws a rectangular frame around the box.
33240 The frame line thickness can be specified.
33242 \begin_inset Box Boxed
33252 height_special "totalheight"
33257 backgroundcolor "none"
33260 \begin_layout Plain Layout
33270 \begin_layout Description
33272 \begin_inset space ~
33276 \begin_inset space ~
33279 thin This draws an oval frame around the box.
33280 The frame line thickness has the size 0.4
33281 \begin_inset space \thinspace{}
33286 \begin_inset Box ovalbox
33296 height_special "totalheight"
33301 backgroundcolor "none"
33304 \begin_layout Plain Layout
33314 \begin_layout Description
33316 \begin_inset space ~
33320 \begin_inset space ~
33323 thick This draws an oval frame around the box.
33324 The frame line thickness has the size 0.8
33325 \begin_inset space \thinspace{}
33330 \begin_inset Box Ovalbox
33340 height_special "totalheight"
33345 backgroundcolor "none"
33348 \begin_layout Plain Layout
33358 \begin_layout Description
33360 \begin_inset space ~
33363 shadow This draws a rectangular frame with a shadow around the box.
33364 The frame line thickness and the shadow can be specified.
33366 \begin_inset Box Shadowbox
33376 height_special "totalheight"
33381 backgroundcolor "none"
33384 \begin_layout Plain Layout
33394 \begin_layout Description
33396 \begin_inset space ~
33399 background This draws a box with a red background.
33400 Unlike colored boxes
33404 \begin_layout Plain Layout
33406 \begin_inset space \thinspace{}
33410 \begin_inset CommandInset ref
33412 reference "sec:Colored-Boxes"
33421 , it always uses the whole column width and the box is set as its own paragraph.
33423 \begin_inset Box Shaded
33433 height_special "totalheight"
33438 backgroundcolor "none"
33441 \begin_layout Plain Layout
33442 Shaded background box
33450 \begin_layout Description
33452 \begin_inset space ~
33456 \begin_inset space ~
33459 frame This draws a double-line rectangular frame around the box.
33460 The line thickness of the inner frame is 0.75
33461 \begin_inset space \thinspace{}
33465 \begin_inset space ~
33468 thickness, the thickness of the outer frame is 1.5
33469 \begin_inset space \thinspace{}
33473 \begin_inset space ~
33477 The distance between the lines is 1.5
33478 \begin_inset space \thinspace{}
33482 \begin_inset space ~
33486 \begin_inset space \thinspace{}
33490 \begin_inset space \thinspace{}
33494 \begin_inset space \thinspace{}
33499 \begin_inset Box Doublebox
33509 height_special "totalheight"
33514 backgroundcolor "none"
33517 \begin_layout Plain Layout
33519 Double rectangular box
33527 \begin_layout Standard
33528 \begin_inset VSpace bigskip
33532 's box label will reflect the different frame types.
33533 To be able to use all types, the \SpecialChar LaTeX
33539 \begin_inset Index idx
33542 \begin_layout Plain Layout
33544 -packages ! fancybox
33552 \begin_layout Standard
33553 \begin_inset VSpace bigskip
33556 When you use the decoration
33558 simple rectangular frame
33560 and no inner box, you can allow page breaks within a box.
33561 Note that then, unlike other framed boxes, the frame always uses the whole
33562 column width and the box is set as its own paragraph:
33563 \begin_inset Box Framed
33573 height_special "totalheight"
33578 backgroundcolor "none"
33581 \begin_layout Plain Layout
33582 Allow page break box
33590 \begin_layout Section
33592 \begin_inset Index idx
33595 \begin_layout Plain Layout
33596 Boxes ! Customization
33604 \begin_layout Standard
33605 The diameter of the round corners of the oval boxes can be set with the
33616 \begin_layout Standard
33624 \begin_layout Standard
33625 sets the diameter to 1
33626 \begin_inset space \thinspace{}
33633 \begin_layout Standard
33641 \begin_layout Standard
33642 sets the diameter to
33645 \begin_inset space \thinspace{}
33649 \begin_inset space \thinspace{}
33652 minimum(width and height of box)
33664 \begin_layout Standard
33668 \begin_layout Plain Layout
33678 \begin_inset Box Ovalbox
33688 height_special "totalheight"
33693 backgroundcolor "none"
33696 \begin_layout Plain Layout
33705 \begin_inset space \thinspace{}
33709 \begin_inset space \thinspace{}
33713 \begin_inset space \thinspace{}
33725 \begin_layout Plain Layout
33737 \begin_layout Standard
33738 \begin_inset VSpace bigskip
33744 \begin_layout Standard
33745 The default background color red of
33749 boxes can either be changed locally with the command
33753 definecolor{shadecolor}
33755 or globally with the menu
33757 Tools\SpecialChar menuseparator
33758 Preferences\SpecialChar menuseparator
33759 Colors\SpecialChar menuseparator
33761 \begin_inset space ~
33773 command is explained in section
33774 \begin_inset space ~
33778 \begin_inset CommandInset ref
33780 reference "sec:Colored-Tables"
33788 \begin_layout Plain Layout
33795 requires the \SpecialChar LaTeX
33800 in the preamble, see section
33801 \begin_inset space ~
33805 \begin_inset CommandInset ref
33807 reference "sec:Colored-Boxes"
33816 For example the appearance of the following shaded background box is set
33817 with the \SpecialChar TeX
33821 \begin_layout Standard
33826 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33829 \begin_layout Standard
33833 \begin_layout Plain Layout
33837 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33843 \begin_inset Box Shaded
33853 height_special "totalheight"
33858 backgroundcolor "none"
33861 \begin_layout Plain Layout
33864 This is yellow text in a
33874 box with dark green background.
33883 \begin_layout Plain Layout
33887 definecolor{shadecolor}{rgb}{1,0,0}
33895 \begin_layout Standard
33896 \begin_inset VSpace bigskip
33899 Manually changed sizes and colors are valid for all boxes following the
33900 commands that change them.
33903 \begin_layout Section
33905 \begin_inset CommandInset label
33907 name "sec:Minipages"
33912 \begin_inset Index idx
33915 \begin_layout Plain Layout
33924 \begin_layout Standard
33925 Minipages are treated by \SpecialChar LaTeX
33926 as pages within pages and can therefore for example
33927 have their own footnotes.
33930 \begin_layout Standard
33931 Minipages are useful when you write documents with different languages.
33934 \begin_layout Standard
33935 Below are two example minipages side by side.
33936 Their width is set to 45
33937 \begin_inset space \thinspace{}
33940 col% and they are separated by a horizontal fill, that was inserted via
33943 Insert\SpecialChar menuseparator
33945 \begin_inset space ~
33948 Formatting\SpecialChar menuseparator
33950 \begin_inset space ~
33956 \begin_inset Newpage newpage
33962 \begin_layout Standard
33963 \begin_inset Box Frameless
33973 height_special "totalheight"
33978 backgroundcolor "none"
33981 \begin_layout Plain Layout
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text.
33996 Dies ist ein deutscher Text
34000 \begin_layout Plain Layout
34003 Dies ist eine deutsche Fußnote.
34009 Dies ist ein deutscher Text.
34010 Dies ist ein deutscher Text.
34016 \begin_inset space \hfill{}
34020 \begin_inset Box Frameless
34030 height_special "totalheight"
34035 backgroundcolor "none"
34038 \begin_layout Plain Layout
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34054 This is an English Text.
34058 \begin_layout Plain Layout
34059 This is an English footnote.
34064 This is an English Text.
34072 \begin_layout Standard
34073 \begin_inset VSpace bigskip
34076 The document-wide paragraph settings are ignored within minipages.
34077 That means that there will be no space between paragraphs in minipages
34078 although you set it to e.
34079 \begin_inset space \thinspace{}
34083 \begin_inset space \space{}
34090 in the document settings.
34093 \begin_layout Standard
34094 Minipages can also be used to set a background color for text parts, see
34096 \begin_inset space ~
34100 \begin_inset CommandInset ref
34102 reference "sec:Colored-Boxes"
34109 \begin_layout Standard
34110 \begin_inset Note Greyedout
34113 \begin_layout Plain Layout
34118 You cannot have floats or margin notes inside minipages but minipages can
34119 be used inside tables, floats, and other boxes.
34127 \begin_layout Standard
34128 \begin_inset VSpace bigskip
34134 \begin_layout Standard
34136 has also basic support for minipages whose size is automatically determined
34137 by the width of their contents, via the module
34139 Variable-width Minipages
34142 The \SpecialChar LyX
34145 varwidth-floats-side-by-side
34147 gives examples of variable-width minipages used for placing two floats
34151 \begin_layout Section
34153 \begin_inset CommandInset label
34155 name "sec:Parboxes"
34160 \begin_inset Index idx
34163 \begin_layout Plain Layout
34172 \begin_layout Standard
34173 Parboxes are very similar to minipages with the difference that they cannot
34175 \begin_inset Separator latexpar
34181 \begin_layout Standard
34183 \begin_inset Box Frameless
34193 height_special "totalheight"
34198 backgroundcolor "none"
34201 \begin_layout Plain Layout
34202 This a text within a parbox.
34203 This a text within a parbox.
34206 \begin_layout Plain Layout
34207 This footnote won't appear:
34211 \begin_layout Plain Layout
34212 This footnote is inside a parbox and will therefore not appear.
34225 \begin_layout Section
34226 Boxes for Words and Characters
34227 \begin_inset Index idx
34230 \begin_layout Plain Layout
34231 Boxes ! for Characters
34239 \begin_layout Subsection
34240 Prevent Hyphenation
34241 \begin_inset CommandInset label
34243 name "sec:Prevent-Hyphenation"
34248 \begin_inset Index idx
34251 \begin_layout Plain Layout
34252 Boxes ! to Prevent Hyphenation
34260 \begin_layout Standard
34261 You can use the box type
34265 to prevent words or text from being hyphenated.
34266 \begin_inset Newline newline
34269 Here is an example text:
34272 \begin_layout Standard
34273 This line is an example to show how you can prevent the hyphenation of
34274 \begin_inset Quotes eld
34278 \begin_inset Quotes erd
34284 \begin_layout Standard
34285 To prevent the hyphenation of the word
34286 \begin_inset Quotes eld
34290 \begin_inset Quotes erd
34293 , put the word into a box, set the
34296 \begin_inset space ~
34305 and use no explicit width.
34308 \begin_layout Standard
34309 This is the result:
34312 \begin_layout Standard
34313 This line is an example to show how you can prevent the hyphenation of
34314 \begin_inset Box Frameless
34324 height_special "totalheight"
34329 backgroundcolor "none"
34332 \begin_layout Plain Layout
34333 \begin_inset Quotes eld
34337 \begin_inset Quotes erd
34348 \begin_layout Standard
34349 You can alternatively set the command
34350 \begin_inset Quotes eld
34360 \begin_inset Quotes grd
34363 as \SpecialChar TeX
34364 Code directly before the word:
34367 \begin_layout Standard
34368 This line is an example to show how you can prevent the hyphenation of
34369 \begin_inset Quotes eld
34376 \begin_layout Plain Layout
34386 \begin_inset Quotes erd
34392 \begin_layout Standard
34393 Of course the word now protrudes over the side margin.
34394 To avoid this, add via the menu
34396 Insert\SpecialChar menuseparator
34397 Formatting\SpecialChar menuseparator
34399 \begin_inset space ~
34403 \begin_inset space ~
34411 arg "newline-insert newline"
34414 ) a line break before the word:
34417 \begin_layout Standard
34418 This line is an example to show how you can prevent the hyphenation of
34419 \begin_inset Newline newline
34423 \begin_inset Box Frameless
34433 height_special "totalheight"
34438 backgroundcolor "none"
34441 \begin_layout Plain Layout
34442 \begin_inset Quotes eld
34446 \begin_inset Quotes erd
34457 \begin_layout Subsection
34459 \begin_inset CommandInset label
34461 name "subsec:Vertical-Alignment"
34466 \begin_inset Index idx
34469 \begin_layout Plain Layout
34470 Boxes ! for Vertical Alignment
34476 \begin_inset Index idx
34479 \begin_layout Plain Layout
34488 \begin_layout Standard
34489 With the help of the command
34495 you can align words, characters or other boxes vertically relative to the
34503 is used with the following scheme:
34506 \begin_layout Standard
34511 raisebox{lift}[height][depth]{box content}
34514 \begin_layout Standard
34515 The lift can be a positive value to raise the box or a negative value to
34519 \begin_layout Standard
34520 To align for example the word
34521 \begin_inset Quotes eld
34525 \begin_inset Quotes erd
34528 so that the bottom of the
34529 \begin_inset Quotes eld
34533 \begin_inset Quotes erd
34537 \begin_inset Quotes eld
34541 \begin_inset Quotes erd
34544 is at the baseline, insert the command
34547 \begin_layout Standard
34557 \begin_layout Standard
34558 in \SpecialChar TeX
34559 Code before the word.
34560 After the word insert a closing brace
34561 \begin_inset Quotes eld
34569 \begin_inset Quotes erd
34572 in \SpecialChar TeX
34574 \begin_inset Newline newline
34577 This is the result:
34580 \begin_layout Standard
34581 This is a text line with the word
34585 \begin_layout Plain Layout
34597 \begin_inset Quotes eld
34601 \begin_inset Quotes erd
34608 \begin_layout Plain Layout
34618 \begin_layout Standard
34619 \begin_inset VSpace bigskip
34622 When you raise or lower characters in a line, the line distance will be
34626 \begin_layout Standard
34627 This is a text line with the word
34631 \begin_layout Plain Layout
34643 \begin_inset Quotes eld
34647 \begin_inset Quotes erd
34654 \begin_layout Plain Layout
34662 \begin_inset Newline newline
34665 This is a text line with the word
34669 \begin_layout Plain Layout
34679 \begin_inset Quotes eld
34683 \begin_inset Quotes erd
34690 \begin_layout Plain Layout
34700 \begin_layout Standard
34701 If you want to prevent this for a certain reason, set the box height to
34706 \begin_layout Standard
34716 \begin_layout Standard
34717 This is a text line with the word
34721 \begin_layout Plain Layout
34733 \begin_inset Quotes eld
34737 \begin_inset Quotes erd
34744 \begin_layout Plain Layout
34752 \begin_inset Newline newline
34756 \begin_inset Newline newline
34759 This is a text line with the word
34763 \begin_layout Plain Layout
34767 raisebox{0.5cm}[0pt]{
34773 \begin_inset Quotes eld
34777 \begin_inset Quotes erd
34784 \begin_layout Plain Layout
34794 \begin_layout Section
34796 \begin_inset CommandInset label
34798 name "sec:Colored-Boxes"
34803 \begin_inset Index idx
34806 \begin_layout Plain Layout
34815 \begin_layout Standard
34816 To color the background of a box just select the color you like in the box
34818 This is for example a box with orange background:
34819 \begin_inset Box Frameless
34829 height_special "totalheight"
34834 backgroundcolor "orange"
34837 \begin_layout Plain Layout
34838 Box with orange background
34846 \begin_layout Standard
34847 If you use the decoration
34850 \begin_inset space ~
34854 \begin_inset space ~
34859 you can set a frame color.
34860 In this case you must also specify a background color (LyX sets white as
34862 Here is an example:
34863 \begin_inset Box Boxed
34873 height_special "totalheight"
34878 backgroundcolor "yellow"
34881 \begin_layout Plain Layout
34882 Box with teal frame color and yellow background color
34890 \begin_layout Standard
34891 \begin_inset VSpace bigskip
34894 Of course you can also have colored text inside a colored box:
34895 \begin_inset Newline newline
34899 \begin_inset Box Boxed
34909 height_special "totalheight"
34914 backgroundcolor "magenta"
34917 \begin_layout Plain Layout
34920 This is colored text within a colored, framed box
34928 \begin_layout Standard
34929 \begin_inset VSpace bigskip
34935 \begin_layout Standard
34936 If you need another color than the predefined ones, you can define your
34937 own color as described in section
34938 \begin_inset space ~
34942 \begin_inset CommandInset ref
34944 reference "sec:Colored-Tables"
34949 To use your own color you must typeset the box by using TeX code:
34952 \begin_layout Standard
34953 Colored boxes without frame are created with the command
34960 It has the following scheme:
34963 \begin_layout Standard
34968 colorbox{color}{box content}
34971 \begin_layout Standard
34972 The box content can also be a box and colored boxes can also be within other
34975 \begin_inset space \thinspace{}
34979 \begin_inset space \space{}
34982 a darkgreen background for a word, insert the command
34985 \begin_layout Standard
34990 colorbox{darkgreen}{
34993 \begin_layout Standard
34994 before the word in \SpecialChar TeX
34996 After the word insert a closing brace
34997 \begin_inset Quotes eld
35005 \begin_inset Quotes erd
35008 in \SpecialChar TeX
35010 \begin_inset Newline newline
35013 This is the result:
35016 \begin_layout Standard
35017 This is a line where the word
35021 \begin_layout Plain Layout
35025 colorbox{darkgreen}{
35031 \begin_inset Quotes eld
35035 \begin_inset Quotes erd
35042 \begin_layout Plain Layout
35049 has a darkgreen background.
35052 \begin_layout Standard
35053 Framed, colored boxes are created with the command
35060 It has the following scheme:
35063 \begin_layout Standard
35068 fcolorbox{frame color}{box color}{box content}
35071 \begin_layout Section
35072 Rotated and Scaled Boxes
35075 \begin_layout Standard
35076 To use the boxes described in this section, the module
35080 must be loaded in the document settings.
35083 \begin_layout Standard
35084 \begin_inset Note Greyedout
35087 \begin_layout Plain Layout
35092 Not all DVI viewers are able to display rotated or scaled material.
35100 \begin_layout Standard
35101 \begin_inset Note Greyedout
35104 \begin_layout Plain Layout
35109 Floats are not allowed inside a rotated or scaled box.
35117 \begin_layout Subsection
35119 \begin_inset Index idx
35122 \begin_layout Plain Layout
35129 \begin_inset Index idx
35132 \begin_layout Plain Layout
35141 \begin_layout Standard
35142 To rotate material, you can put it into a
35147 Such a box is inserted via the menu
35149 Insert\SpecialChar menuseparator
35150 Custom Insets\SpecialChar menuseparator
35156 \begin_layout Standard
35157 The rotation origin can be specified via the inset
35163 Insert\SpecialChar menuseparator
35171 The following positions are possible:
35191 (top), along with meaningful combinations of the four base positions.
35196 means that the rotation origin is at the top left corner of the box.
35197 When no rotation origin is specified, the position
35202 The rotation angle is a number that can be negative that specifies the
35204 The rotation direction is counterclockwise.
35207 \begin_layout Standard
35208 In the following example
35212 was inserted to the
35220 was inserted to the
35227 \begin_layout Standard
35229 \begin_inset Flex Rotatebox
35232 \begin_layout Plain Layout
35233 \begin_inset Argument 1
35236 \begin_layout Plain Layout
35243 \begin_inset Argument 2
35246 \begin_layout Plain Layout
35260 \begin_layout Standard
35261 The box content can also be another box or an inline formula:
35264 \begin_layout Standard
35266 \begin_inset Flex Rotatebox
35269 \begin_layout Plain Layout
35270 \begin_inset Argument 1
35273 \begin_layout Plain Layout
35280 \begin_inset Argument 2
35283 \begin_layout Plain Layout
35290 \begin_inset Box Doublebox
35300 height_special "totalheight"
35305 backgroundcolor "none"
35308 \begin_layout Plain Layout
35320 \begin_inset Flex Rotatebox
35323 \begin_layout Plain Layout
35324 \begin_inset Argument 1
35327 \begin_layout Plain Layout
35334 \begin_inset Argument 2
35337 \begin_layout Plain Layout
35344 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35355 \begin_layout Standard
35356 or an image or table:
35359 \begin_layout Standard
35361 \begin_inset Flex Rotatebox
35364 \begin_layout Plain Layout
35365 \begin_inset Argument 1
35368 \begin_layout Plain Layout
35375 \begin_inset Argument 2
35378 \begin_layout Plain Layout
35385 \begin_inset Graphics
35386 filename clipart/platypus.eps
35397 with a rotated image
35398 \begin_inset Flex Rotatebox
35401 \begin_layout Plain Layout
35402 \begin_inset Argument 2
35405 \begin_layout Plain Layout
35412 \begin_inset Tabular
35413 <lyxtabular version="3" rows="2" columns="2">
35414 <features tabularvalignment="middle">
35415 <column alignment="center" valignment="top">
35416 <column alignment="center" valignment="top">
35418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35421 \begin_layout Plain Layout
35427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35430 \begin_layout Plain Layout
35438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35441 \begin_layout Plain Layout
35447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35450 \begin_layout Plain Layout
35467 \begin_inset Index idx
35470 \begin_layout Plain Layout
35477 \begin_inset Index idx
35480 \begin_layout Plain Layout
35481 Table Customization ! Rotating
35489 \begin_layout Standard
35490 \begin_inset Note Greyedout
35493 \begin_layout Plain Layout
35502 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35504 errors when viewing/exporting the document.
35512 \begin_layout Subsection
35514 \begin_inset Index idx
35517 \begin_layout Plain Layout
35524 \begin_inset Index idx
35527 \begin_layout Plain Layout
35536 \begin_layout Standard
35537 To scale material put it into a
35542 Such a box is inserted via the menu
35544 Insert\SpecialChar menuseparator
35545 Custom Insets\SpecialChar menuseparator
35551 \begin_layout Standard
35556 inset has the mandatory inset
35560 and the optional inset
35564 (inserted via the menu
35566 Insert\SpecialChar menuseparator
35570 Input there the horizontal and vertical scale factor, respectively.
35575 inset is used, the horizontal factor will also be used as the vertical
35579 \begin_layout Standard
35580 To get for example the double text size, compared to the document text size,
35591 \begin_inset Flex Scalebox
35594 \begin_layout Plain Layout
35595 \begin_inset Argument 1
35598 \begin_layout Plain Layout
35612 \begin_layout Standard
35630 \begin_inset Flex Scalebox
35633 \begin_layout Plain Layout
35634 \begin_inset Argument 1
35637 \begin_layout Plain Layout
35644 \begin_inset Argument 2
35647 \begin_layout Plain Layout
35661 \begin_layout Standard
35662 If the scaling factor is negative, the box content will be mirrored.
35679 can be used to create mirror writing:
35680 \begin_inset Flex Scalebox
35683 \begin_layout Plain Layout
35684 \begin_inset Argument 1
35687 \begin_layout Plain Layout
35694 \begin_inset Argument 2
35697 \begin_layout Plain Layout
35711 \begin_layout Standard
35729 \begin_inset Flex Scalebox
35732 \begin_layout Plain Layout
35733 \begin_inset Argument 1
35736 \begin_layout Plain Layout
35743 \begin_inset Argument 2
35746 \begin_layout Plain Layout
35760 \begin_layout Standard
35767 Insert\SpecialChar menuseparator
35768 Custom Insets\SpecialChar menuseparator
35794 \begin_layout Standard
35795 \begin_inset Note Greyedout
35798 \begin_layout Plain Layout
35807 inset is empty or contains other characters than numbers you will get LaTeX
35808 errors when viewing/exporting the document.
35816 \begin_layout Standard
35817 \begin_inset VSpace bigskip
35826 Insert\SpecialChar menuseparator
35827 Custom Insets\SpecialChar menuseparator
35830 ) is used to scale the content to a defined width and height.
35835 inset has the mandatory inset
35839 and the optional inset
35843 (inserted via the menu
35845 Insert\SpecialChar menuseparator
35849 Input there the width and height, respectively, as value with a unit.
35851 \begin_inset CommandInset ref
35853 reference "tab:Units"
35857 lists the possible units.
35858 If there is an exclamation mark
35862 in of of the two insets, the size is set so that the aspect ratio of the
35863 box content is kept.
35868 inset is used an exclamation mark will internally be used for the height.
35871 \begin_layout Standard
35889 \begin_inset Flex Resizebox
35892 \begin_layout Plain Layout
35893 \begin_inset Argument 1
35896 \begin_layout Plain Layout
35903 \begin_inset Argument 2
35906 \begin_layout Plain Layout
35918 \begin_inset Newline newline
35942 \begin_inset Flex Resizebox
35945 \begin_layout Plain Layout
35946 \begin_inset Argument 1
35949 \begin_layout Plain Layout
35956 \begin_inset Argument 2
35959 \begin_layout Plain Layout
35973 \begin_layout Standard
35974 \begin_inset Note Greyedout
35977 \begin_layout Plain Layout
35986 inset is empty or contains an invalid unit you will get LaTeX errors when
35987 viewing/exporting the document.
35995 \begin_layout Standard
35996 \begin_inset VSpace bigskip
36002 \begin_layout Standard
36003 The boxes can be combined in any order.
36012 which is in turn inside a
36019 \begin_layout Standard
36022 \begin_inset Flex Rotatebox
36025 \begin_layout Plain Layout
36026 \begin_inset Argument 1
36029 \begin_layout Plain Layout
36036 \begin_inset Argument 2
36039 \begin_layout Plain Layout
36046 \begin_inset Flex Resizebox
36049 \begin_layout Plain Layout
36050 \begin_inset Argument 1
36053 \begin_layout Plain Layout
36060 \begin_inset Flex Reflectbox
36063 \begin_layout Plain Layout
36082 \begin_layout Standard
36084 Images, tables, and inline formulas are allowed as box content:
36087 \begin_layout Standard
36090 \begin_inset Flex Resizebox
36093 \begin_layout Plain Layout
36094 \begin_inset Argument 1
36097 \begin_layout Plain Layout
36104 \begin_inset Flex Reflectbox
36107 \begin_layout Plain Layout
36108 \begin_inset Graphics
36109 filename clipart/platypus.eps
36126 \begin_inset Flex Resizebox
36129 \begin_layout Plain Layout
36130 \begin_inset Argument 1
36133 \begin_layout Plain Layout
36140 \begin_inset Flex Reflectbox
36143 \begin_layout Plain Layout
36144 \begin_inset Tabular
36145 <lyxtabular version="3" rows="2" columns="2">
36146 <features tabularvalignment="middle">
36147 <column alignment="center" valignment="top">
36148 <column alignment="center" valignment="top">
36150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36153 \begin_layout Plain Layout
36159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36162 \begin_layout Plain Layout
36170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36173 \begin_layout Plain Layout
36179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36182 \begin_layout Plain Layout
36204 \begin_inset Flex Resizebox
36207 \begin_layout Plain Layout
36208 \begin_inset Argument 1
36211 \begin_layout Plain Layout
36218 \begin_inset Flex Reflectbox
36221 \begin_layout Plain Layout
36222 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36236 \begin_inset Index idx
36239 \begin_layout Plain Layout
36246 \begin_inset Index idx
36249 \begin_layout Plain Layout
36250 Table Customization ! Scaling
36258 \begin_layout Standard
36259 When the global formula style
36263 is used in the document
36267 \begin_layout Plain Layout
36269 \begin_inset Quotes eld
36273 \begin_inset Quotes erd
36276 is added to the document class options.
36281 , display style formulas can also be scaled.
36284 \begin_layout Chapter
36285 Objects Surrounded by Text
36286 \begin_inset Index idx
36289 \begin_layout Plain Layout
36298 \begin_layout Section
36300 \begin_inset CommandInset label
36302 name "sec:Wrap-Floats"
36307 \begin_inset Index idx
36310 \begin_layout Plain Layout
36311 Floats ! Wrap Floats
36317 \begin_inset Index idx
36320 \begin_layout Plain Layout
36321 Surrounded by text ! Wrap Floats
36329 \begin_layout Standard
36330 \begin_inset Wrap figure
36337 \begin_layout Plain Layout
36338 \begin_inset Graphics
36339 filename clipart/mobius.eps
36341 scaleBeforeRotation
36342 rotateOrigin center
36349 \begin_layout Plain Layout
36350 \begin_inset Caption Standard
36352 \begin_layout Plain Layout
36353 \begin_inset CommandInset label
36355 name "fig:This-is-a"
36359 This is a figure wrap float.
36369 This float type is used if you want to wrap text around a figure or table
36370 so that it only occupies some fraction of the column width.
36371 It can be inserted using the menu
36373 Insert\SpecialChar menuseparator
36374 Floats\SpecialChar menuseparator
36376 \begin_inset space ~
36380 \begin_inset space ~
36388 \begin_inset space ~
36392 \begin_inset space ~
36397 if the \SpecialChar LaTeX
36403 \begin_inset Index idx
36406 \begin_layout Plain Layout
36408 -packages ! wrapfig
36417 \begin_layout Plain Layout
36418 Installing a \SpecialChar LaTeX
36419 -package is explained it in the
36423 \begin_inset space ~
36433 The settings of the float can be modified by right-clicking on the float
36435 The mandatory settings are the float
36448 that specifies how much the float is set into the paragraph
36449 \begin_inset space \thinspace{}
36453 \begin_inset space \thinspace{}
36456 page margin, and the
36459 \begin_inset space ~
36464 that specifies how many text lines the float will approximately need.
36465 The line span is often hard to approximate; so it is better only to use
36466 it when you encounter float placement problems.
36467 You can furthermore decide if \SpecialChar LaTeX
36468 is allowed to let the float float within
36469 the paragraph or to surrounding paragraphs.
36471 \begin_inset space ~
36475 \begin_inset CommandInset ref
36477 reference "fig:This-is-a"
36481 is an example text wrap float with a width of 40
36482 \begin_inset space \thinspace{}
36486 \begin_inset space \thinspace{}
36489 cm overhang, set to the left.
36492 \begin_layout Standard
36493 \begin_inset Note Greyedout
36496 \begin_layout Plain Layout
36502 \begin_inset space ~
36505 wrap float floats are fragile! E.
36506 \begin_inset space \thinspace{}
36510 \begin_inset space \space{}
36513 having a figure too close to the bottom of the page can mess things up in
36514 such a way that the float does not appear in the output or that it is placed
36515 over some other text.
36523 \begin_layout Standard
36524 In general, the following applies for wrap floats:
36527 \begin_layout Itemize
36528 They should not be placed in paragraphs that run over a page break.
36529 That means that wrap floats are better inserted in their exact place when
36530 the document is almost finished and you are able to estimate where page
36531 breaks will appear.
36534 \begin_layout Itemize
36535 They should either be placed in their own paragraph before the paragraph
36536 where they should wrap into or within a paragraph.
36539 \begin_layout Itemize
36540 In consecutive paragraphs they may cause troubles, so ensure that there
36541 is a text paragraph between them as separator.
36544 \begin_layout Itemize
36545 They are not allowed in section headings or tables.
36548 \begin_layout Itemize
36549 Their numbering and referencing works as described in chap.
36550 \begin_inset space \thinspace{}
36554 \begin_inset CommandInset ref
36556 reference "chap:Floats"
36563 \begin_layout Section
36564 Surrounded Fixed Objects
36565 \begin_inset Index idx
36568 \begin_layout Plain Layout
36569 Surrounded by text ! Fixed objects
36577 \begin_layout Standard
36578 The wrap floats described in sec.
36579 \begin_inset space \thinspace{}
36583 \begin_inset CommandInset ref
36585 reference "sec:Wrap-Floats"
36589 have these positions in the paragraph:
36590 \begin_inset Separator latexpar
36596 \begin_layout Standard
36599 \begin_inset Tabular
36600 <lyxtabular version="3" rows="2" columns="2">
36601 <features tabularvalignment="middle">
36602 <column alignment="center" valignment="top">
36603 <column alignment="center" valignment="top">
36605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36608 \begin_layout Plain Layout
36611 arg "dialog-show-new-inset graphics"
36619 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36622 \begin_layout Plain Layout
36630 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36633 \begin_layout Plain Layout
36639 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36642 \begin_layout Plain Layout
36654 \begin_inset Tabular
36655 <lyxtabular version="3" rows="2" columns="2">
36656 <features tabularvalignment="middle">
36657 <column alignment="center" valignment="top">
36658 <column alignment="center" valignment="top">
36660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36663 \begin_layout Plain Layout
36669 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36672 \begin_layout Plain Layout
36675 arg "dialog-show-new-inset graphics"
36685 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36688 \begin_layout Plain Layout
36694 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36697 \begin_layout Plain Layout
36711 \begin_layout Standard
36712 To get an object exactly at the position where it is inserted, for example
36713 to get one of these positions:
36714 \begin_inset VSpace defskip
36720 \begin_layout Standard
36723 \begin_inset Tabular
36724 <lyxtabular version="3" rows="2" columns="2">
36725 <features tabularvalignment="middle">
36726 <column alignment="center" valignment="top">
36727 <column alignment="center" valignment="top">
36729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36732 \begin_layout Plain Layout
36738 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36741 \begin_layout Plain Layout
36749 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36752 \begin_layout Plain Layout
36755 arg "dialog-show-new-inset graphics"
36763 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36766 \begin_layout Plain Layout
36778 \begin_inset Tabular
36779 <lyxtabular version="3" rows="2" columns="2">
36780 <features tabularvalignment="middle">
36781 <column alignment="center" valignment="top">
36782 <column alignment="center" valignment="top">
36784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36787 \begin_layout Plain Layout
36793 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36796 \begin_layout Plain Layout
36804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36807 \begin_layout Plain Layout
36813 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36816 \begin_layout Plain Layout
36819 arg "dialog-show-new-inset graphics"
36833 \begin_inset Tabular
36834 <lyxtabular version="3" rows="2" columns="3">
36835 <features tabularvalignment="middle">
36836 <column alignment="center" valignment="top">
36837 <column alignment="center" valignment="top">
36838 <column alignment="center" valignment="top">
36840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36843 \begin_layout Plain Layout
36849 <cell alignment="center" valignment="top" topline="true" usebox="none">
36852 \begin_layout Plain Layout
36855 arg "dialog-show-new-inset graphics"
36863 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36866 \begin_layout Plain Layout
36874 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36877 \begin_layout Plain Layout
36883 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36886 \begin_layout Plain Layout
36892 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36895 \begin_layout Plain Layout
36907 \begin_inset Tabular
36908 <lyxtabular version="3" rows="2" columns="3">
36909 <features tabularvalignment="middle">
36910 <column alignment="center" valignment="top">
36911 <column alignment="center" valignment="top">
36912 <column alignment="center" valignment="top">
36914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36917 \begin_layout Plain Layout
36923 <cell alignment="center" valignment="top" topline="true" usebox="none">
36926 \begin_layout Plain Layout
36932 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36935 \begin_layout Plain Layout
36943 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36946 \begin_layout Plain Layout
36952 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36955 \begin_layout Plain Layout
36958 arg "dialog-show-new-inset graphics"
36966 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36969 \begin_layout Plain Layout
36983 \begin_layout Standard
36986 \begin_inset Tabular
36987 <lyxtabular version="3" rows="3" columns="2">
36988 <features tabularvalignment="middle">
36989 <column alignment="center" valignment="top">
36990 <column alignment="center" valignment="top">
36992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36995 \begin_layout Plain Layout
37001 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37004 \begin_layout Plain Layout
37012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37015 \begin_layout Plain Layout
37018 arg "dialog-show-new-inset graphics"
37026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37029 \begin_layout Plain Layout
37037 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37040 \begin_layout Plain Layout
37046 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37049 \begin_layout Plain Layout
37061 \begin_inset Tabular
37062 <lyxtabular version="3" rows="3" columns="3">
37063 <features tabularvalignment="middle">
37064 <column alignment="center" valignment="top">
37065 <column alignment="center" valignment="top">
37066 <column alignment="center" valignment="top">
37068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37071 \begin_layout Plain Layout
37077 <cell alignment="center" valignment="top" topline="true" usebox="none">
37080 \begin_layout Plain Layout
37086 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37089 \begin_layout Plain Layout
37097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37100 \begin_layout Plain Layout
37106 <cell alignment="center" valignment="top" usebox="none">
37109 \begin_layout Plain Layout
37112 arg "dialog-show-new-inset graphics"
37120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37123 \begin_layout Plain Layout
37131 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37134 \begin_layout Plain Layout
37140 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37143 \begin_layout Plain Layout
37149 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37152 \begin_layout Plain Layout
37164 \begin_inset Tabular
37165 <lyxtabular version="3" rows="3" columns="2">
37166 <features tabularvalignment="middle">
37167 <column alignment="center" valignment="top">
37168 <column alignment="center" valignment="top">
37170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37173 \begin_layout Plain Layout
37179 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37182 \begin_layout Plain Layout
37190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37193 \begin_layout Plain Layout
37199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37202 \begin_layout Plain Layout
37205 arg "dialog-show-new-inset graphics"
37215 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37218 \begin_layout Plain Layout
37224 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37227 \begin_layout Plain Layout
37241 \begin_layout Standard
37243 you can use the \SpecialChar LaTeX
37249 \begin_inset Index idx
37252 \begin_layout Plain Layout
37254 -packages ! picinpar
37260 Here is an example:
37263 \begin_layout Standard
37267 \begin_layout Plain Layout
37277 \begin_inset Note Note
37280 \begin_layout Plain Layout
37281 The following section will only be displayed when the \SpecialChar LaTeX
37294 \begin_layout Standard
37298 \begin_layout Plain Layout
37302 begin{window}[2,c,{
37308 \begin_inset Graphics
37309 filename clipart/mobius.eps
37312 scaleBeforeRotation
37313 rotateOrigin center
37321 \begin_layout Plain Layout
37326 \begin_layout Plain Layout
37335 It was in the spring of the year 1894 that all London was interested, and
37336 the fashionable world dismayed, by the murder of the Honourable Ronald
37337 Adair under most unusual and inexplicable circumstances.
37338 The public has already learned those particulars of the crime which
37344 \begin_layout Plain Layout
37355 came out in the police investigation, but a good deal was suppressed upon
37356 that occasion, since the case for the prosecution was so overwhelmingly
37357 strong that it was not necessary to bring forward all the facts.
37358 Only now, at the end of nearly ten years, am I allowed to supply those
37359 missing links which make up the whole of that remarkable chain.
37365 \begin_layout Plain Layout
37377 \begin_layout Standard
37381 \begin_layout Plain Layout
37390 Footnote of the paragraph with the fixed object.
37394 \begin_layout Plain Layout
37404 \begin_layout Standard
37405 Surrounded fixed objects are used to let text float around them, at which
37406 the object's position in the paragraph can be determined by the number
37408 In contrary to floats is it not possible to have a numbered caption.
37411 \begin_layout Standard
37412 A fixed object is inserted by adding the command
37415 \begin_layout Standard
37420 begin{window}[2,c,{
37423 \begin_layout Standard
37424 as \SpecialChar TeX
37425 Code at the beginning of the paragraph.
37426 The first parameter in the bracket, here '2', defines the number of lines
37427 above the object, the second, here 'c', the position of the object.
37428 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37429 Behind the command you insert the object.
37430 In this example an image with a width of 40
37431 \begin_inset space \thinspace{}
37434 % of the text column width was inserted.
37435 The object can also be a table, a box or an equation.
37436 Behind the object the command
37439 \begin_layout Standard
37442 },description text]
37443 \begin_inset Newline newline
37449 \begin_layout Standard
37452 \begin_inset Quotes eld
37460 \begin_inset Quotes erd
37463 is in the second line.
37464 The description text is optional.
37465 The text surrounding the object must be in the same paragraph as the object,
37466 so it must begin directly after the
37471 At the end of the paragraph insert the command:
37474 \begin_layout Standard
37482 \begin_layout Standard
37483 Within a paragraph with a fixed object, you cannot insert footnotes in the
37485 You have to use instead the command
37491 inside the paragraph and outside the command
37497 as described in sec.
37498 \begin_inset space \thinspace{}
37502 \begin_inset CommandInset ref
37504 reference "sec:Footnotes"
37511 \begin_layout Standard
37515 \begin_layout Plain Layout
37525 \begin_inset Note Note
37528 \begin_layout Plain Layout
37529 The following will be displayed when the \SpecialChar LaTeX
37542 \begin_layout Standard
37543 You need to install the \SpecialChar LaTeX
37548 to see the following part of this section in the output.
37551 \begin_layout Standard
37555 \begin_layout Plain Layout
37567 \begin_layout Section
37569 \begin_inset Index idx
37572 \begin_layout Plain Layout
37579 \begin_inset Index idx
37582 \begin_layout Plain Layout
37583 Surrounded by text ! Initials
37591 \begin_layout Standard
37592 To use initials, you must have the \SpecialChar LaTeX
37598 \begin_inset Index idx
37601 \begin_layout Plain Layout
37603 -packages ! lettrine
37608 installed and use the module
37612 in your document (menu
37614 Document\SpecialChar menuseparator
37615 Settings\SpecialChar menuseparator
37619 To insert an initial, use the style
37624 This style has a mandatory and two optional arguments.
37625 The arguments are inserted via the
37630 The mandatory argument
37634 contains the letter(s) that is the initial, the argument
37637 \begin_inset space ~
37641 \begin_inset space ~
37646 contains the rest of the word or text of the initial letter(s).
37651 contains parameters to modify the initial.
37652 For more information about the possible parameters see the documentation
37658 \begin_inset CommandInset citation
37665 The style itself contains the text that is surrounding the initial.
37666 The usual style is hereby that the word whose first letter is the initial,
37674 \begin_layout Standard
37675 Here are some examples:
37678 \begin_layout Standard
37682 \begin_layout Plain Layout
37692 \begin_inset Note Note
37695 \begin_layout Plain Layout
37696 The following section will only be displayed when the \SpecialChar LaTeX
37709 \begin_layout Enumerate
37710 No optional argument, the initial is the letter 'I' in the math font
37711 \begin_inset Formula $\mathfrak{Fraktur}$
37715 \begin_inset Separator latexpar
37722 \begin_layout Initial
37723 \begin_inset Argument 2
37726 \begin_layout Plain Layout
37727 \begin_inset Formula $\mathfrak{I}$
37736 \begin_inset Argument 3
37739 \begin_layout Plain Layout
37745 was in the spring of the year 1894 that all London was interested, and
37746 the fashionable world dismayed, by the murder of the Honourable Ronald
37747 Adair under most unusual and inexplicable circumstances.
37748 The public has already learned those particulars of the crime which came
37749 out in the police investigation, but a good deal was suppressed upon that
37750 occasion, since the case for the prosecution was so overwhelmingly strong
37751 that it was not necessary to bring forward all the facts.
37752 \begin_inset Newpage newpage
37759 \begin_layout Enumerate
37760 Only one line is surrounding the initial, which is formed by two letters
37761 in standard font and no text is printed in small caps:
37762 \begin_inset Separator latexpar
37769 \begin_layout Initial
37770 \begin_inset Argument 1
37773 \begin_layout Plain Layout
37780 \begin_inset Argument 2
37783 \begin_layout Plain Layout
37789 was in the spring of the year 1894 that all London was interested, and
37790 the fashionable world dismayed, by the murder of the Honourable Ronald
37791 Adair under most unusual and inexplicable circumstances.
37792 The public has already learned those particulars of the crime which came
37793 out in the police investigation, but a good deal was suppressed upon that
37794 occasion, since the case for the prosecution was so overwhelmingly strong
37795 that it was not necessary to bring forward all the facts.
37799 \begin_layout Enumerate
37800 Magenta, hanging initial over 3
37801 \begin_inset space ~
37804 lines in the math font
37805 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37809 \begin_inset Quotes eld
37812 t was in the spring
37813 \begin_inset Quotes erd
37820 ; to color the initial, you must insert this command before the initial:
37821 \begin_inset Newline newline
37835 \begin_inset Newline newline
37843 \begin_inset Quotes eld
37847 \begin_inset Quotes erd
37851 \begin_inset Quotes eld
37855 \begin_inset Quotes erd
37859 \begin_inset Quotes eld
37863 \begin_inset Quotes erd
37867 \begin_inset Quotes eld
37871 \begin_inset Quotes erd
37875 \begin_inset Quotes eld
37879 \begin_inset Quotes erd
37883 \begin_inset Quotes eld
37887 \begin_inset Quotes erd
37891 \begin_inset Quotes eld
37895 \begin_inset Quotes erd
37899 \begin_inset Quotes eld
37903 \begin_inset Quotes erd
37906 , and add this command to the document preamble:
37907 \begin_inset Newline newline
37914 @ifundefined{textcolor}
37915 \begin_inset Newline newline
37919 \begin_inset space ~
37924 usepackage{color}}{}
37927 \begin_inset Separator latexpar
37934 \begin_layout Standard
37938 \begin_layout Plain Layout
37952 \begin_inset Note Note
37955 \begin_layout Plain Layout
37956 makes the initial magenta
37964 \begin_layout Initial
37965 \begin_inset Argument 1
37968 \begin_layout Plain Layout
37969 lines=3, lhang=0.33, loversize=0.25
37975 \begin_inset Argument 2
37978 \begin_layout Plain Layout
37979 \begin_inset Formula $\mathcal{I}$
37988 \begin_inset Argument 3
37991 \begin_layout Plain Layout
37992 t was in the spring
37997 of the year 1894 that all London was interested, and the fashionable world
37998 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37999 and inexplicable circumstances.
38000 The public has already learned those particulars of the crime which came
38001 out in the police investigation, but a good deal was suppressed upon that
38002 occasion, since the case for the prosecution was so overwhelmingly strong
38003 that it was not necessary to bring forward all the facts.
38007 \begin_layout Standard
38011 \begin_layout Plain Layout
38021 \begin_inset Note Note
38024 \begin_layout Plain Layout
38025 The following will be displayed when the \SpecialChar LaTeX
38038 \begin_layout Standard
38039 You need to install the \SpecialChar LaTeX
38044 to see the following part of this section in the output.
38047 \begin_layout Standard
38051 \begin_layout Plain Layout
38063 \begin_layout Chapter
38064 External Document Parts
38065 \begin_inset Index idx
38068 \begin_layout Plain Layout
38069 External Document Parts
38077 \begin_layout Standard
38080 Insert\SpecialChar menuseparator
38083 you can insert external material into your document.
38087 \begin_layout Description
38089 \begin_inset space ~
38092 Document Another \SpecialChar LyX
38093 document; its content is directly inserted to your document.
38096 \begin_layout Description
38098 \begin_inset space ~
38101 Text A text document; each line is inserted in your document as a separate
38105 \begin_layout Description
38107 \begin_inset space ~
38111 \begin_inset space ~
38115 \begin_inset space ~
38118 Lines A text document; text lines are inserted in your document continuously
38119 but an empty text line creates a new paragraph.
38122 \begin_layout Description
38124 \begin_inset space ~
38127 Material Files in various formats.
38130 \begin_layout Description
38132 \begin_inset space ~
38135 Document \SpecialChar LyX
38136 or \SpecialChar LaTeX
38140 \begin_layout Section
38142 \begin_inset Index idx
38145 \begin_layout Plain Layout
38146 External Document Parts ! External Material
38154 \begin_layout Standard
38155 The external material feature allows you to insert files into your document
38156 without converting them to a format that can be read by the document output
38159 takes care of the necessary conversions.
38160 This is similar to images that can be inserted in various image formats
38161 in \SpecialChar LyX
38163 When you have enabled Instant Preview in \SpecialChar LyX
38164 's preferences under
38167 \begin_inset space ~
38171 \begin_inset space ~
38174 feel\SpecialChar menuseparator
38177 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38181 \begin_layout Standard
38182 External material can be inserted via the
38186 dialog that is accessible with the menu
38188 Insert\SpecialChar menuseparator
38189 File\SpecialChar menuseparator
38191 \begin_inset space ~
38197 Currently the following file types (
38204 \begin_layout Description
38206 \begin_inset space ~
38209 diagram This template supports chess position diagrams made with the program
38213 \begin_inset CommandInset href
38216 target "http://en.wikipedia.org/wiki/XBoard"
38225 \begin_layout Description
38227 \begin_inset space ~
38230 diagram This template supports diagrams created with the program
38233 \begin_inset CommandInset href
38236 target "http://en.wikipedia.org/wiki/Dia_(software)"
38245 \begin_layout Description
38246 Spreadsheet With this template you can insert spreadsheets
38247 \begin_inset space \thinspace{}
38251 \begin_inset space \thinspace{}
38254 tables in the format of
38257 \begin_inset CommandInset href
38260 target "http://en.wikipedia.org/wiki/Gnumeric"
38267 \begin_inset CommandInset href
38269 name "OpenDocument"
38270 target "http://en.wikipedia.org/wiki/OpenDocument"
38275 \begin_inset CommandInset href
38277 name "Microsoft Office XML"
38278 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38283 \begin_inset CommandInset href
38285 name "Office Open XML"
38286 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38291 For this feature \SpecialChar LyX
38292 must have found the program
38296 during its configuration.
38297 This program is part of Gnumeric, so that you must have Gnumeric installed,
38298 also if you don't have tables in the Gnumeric format.
38299 For examples and possible limitations have a look at \SpecialChar LyX
38307 \begin_layout Description
38309 \begin_inset space ~
38313 \begin_inset space ~
38316 music This template is used for music notation typeset with the program
38317 \begin_inset Newline linebreak
38323 \begin_inset CommandInset href
38326 target "http://en.wikipedia.org/wiki/LilyPond"
38333 For \SpecialChar LyX
38334 's extended support for LilyPond have a look at \SpecialChar LyX
38342 \begin_layout Description
38344 \begin_inset space ~
38347 pages With this template you can insert PDF documents to your document.
38348 To specify the range of pages that should be included, use the option
38358 LaTeX and LyX options
38361 The argument of this option is a comma separated list, containing page
38362 numbers (insert as option
38366 ), ranges of page numbers (
38370 ) or any combination.
38371 To insert empty pages use {}.
38373 \begin_inset space \thinspace{}
38377 \begin_inset space ~
38382 pages={3,{},8-11,15}
38384 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38385 Page ranges are specified in the syntax
38394 This selects all pages from
38407 defaults to the first page; omitting
38411 defaults to the last page of the document.
38412 The last page can also be selected with the keyword
38417 (This is only permitted in a page range.) So
38421 will insert all pages of the document and
38425 will insert all pages in reverse order.
38426 If the pages option is not specified, only the first page of the PDF is
38428 \begin_inset Newline newline
38435 inserts the pages with their original size, if this option is not given,
38436 the pages will be resized to fith the width of the page of your document.
38441 you can specify the width and height of the input pages and their rotation.
38442 If another width than 100
38443 \begin_inset space \thinspace{}
38446 Scale% is used, the option
38450 will be overwritten.
38451 For more info and possible options, have a look into the documentation
38452 of the \SpecialChar LaTeX
38458 \begin_inset CommandInset citation
38465 \begin_inset Index idx
38468 \begin_layout Plain Layout
38470 -packages ! pdfpages
38476 \begin_inset Newline newline
38479 To use this template in a
38483 presentation you need to first insert an
38487 environment and in a subsequent paragraph a \SpecialChar TeX
38488 Code box containing the command
38493 setbeamertemplate{background canvas}{}
38496 Then you can insert as many paragraphs containing the PDFPages template
38498 Behind the included PDF pages you can resume the Beamer presentation by
38499 beginning a new frame or by starting a new section.
38500 To avoid stray blank pages prior to the PDF pages, make sure to use the
38505 alignment for the paragraph containing the template.
38506 \begin_inset Newline newline
38509 Here is an included PDF which is rotated by -5°:
38510 \begin_inset External
38512 filename clipart/Abstract.pdf
38513 extra LaTeX "noautoscale, pages=-"
38515 rotateOrigin bottomleft
38522 \begin_layout Description
38524 \begin_inset space ~
38527 image This can be used for bitmap images.
38528 The image can be treated in the
38532 dialog like the images that are usually included via the
38536 dialog as described in section
38537 \begin_inset space ~
38541 \begin_inset CommandInset ref
38543 reference "sec:Graphics-Dialog"
38548 Here is an inserted raster image:
38549 \begin_inset External
38550 template RasterImage
38551 filename clipart/ToolbarEnvBox.png
38558 \begin_layout Description
38560 \begin_inset space ~
38563 graphics This can be used for vector graphics.
38564 The image can be treated in the
38568 dialog like the images that are usually included via the
38572 dialog as described in section
38573 \begin_inset space ~
38577 \begin_inset CommandInset ref
38579 reference "sec:Graphics-Dialog"
38584 Here is an inserted vector graphics:
38585 \begin_inset External
38586 template VectorGraphics
38587 filename clipart/SVG-Drawing.svg
38595 \begin_layout Description
38597 \begin_inset space ~
38600 figure This template supports images created with the program
38603 \begin_inset CommandInset href
38606 target "http://en.wikipedia.org/wiki/Xfig"
38613 \change_inserted 227574939 1473131626
38617 \begin_layout Description
38619 \change_inserted 227574939 1473131628
38621 \begin_inset space ~
38624 figure This experimental template supports
38625 \change_inserted 2047637253 1475533187
38627 \change_inserted 227574939 1473131628
38629 \change_inserted 2047637253 1475533525
38630 that contain text written in \SpecialChar LaTeX
38633 \change_inserted 227574939 1473131628
38635 \change_inserted 2047637253 1475533551
38636 It relies on the PDF/PS+\SpecialChar LaTeX
38638 \change_deleted 2047637253 1475533556
38640 \change_inserted 227574939 1473131628
38642 \begin_inset CommandInset href
38645 target "https://en.wikipedia.org/wiki/Inkscape"
38651 \change_inserted 2047637253 1475534005
38652 As described by the CTAN demonstration package
38660 \begin_layout Quote
38662 \change_inserted 2047637253 1475534064
38666 \begin_inset Quotes eld
38669 PDF+\SpecialChar LaTeX
38671 \begin_inset Quotes erd
38674 option of Inkscape, it is possible to include SVG in documents, in which
38677 This results in uniform text style throughout the document, including text
38678 in images; moreover, \SpecialChar LaTeX
38679 commands may be used in the image’s text, providing
38680 such things as mathematics and references.
38683 \begin_layout Standard
38685 \change_inserted 2047637253 1475534692
38686 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
38689 Of course, you can always embed \SpecialChar LaTeX
38703 into your figure text strings.
38708 documentation package for more information and examples.
38711 \begin_layout Standard
38713 \change_inserted 2047637253 1475534902
38714 It should be noted that while the image takes into account the surrounding
38715 font, its preview in \SpecialChar LyX
38717 Wrapping the external inset in a preview inset gives better results in
38721 \begin_layout Standard
38723 \change_deleted 2047637253 1475534821
38725 \change_inserted 2047637253 1475534913
38727 \change_inserted 227574939 1473131628
38728 works very similarly to Xfig support, except that Inkscape is a more modern
38729 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
38734 \change_inserted 227574939 1473131628
38735 LyX will process the image file in much the same way as it does an Xfig
38736 image, extracting the text into a separate TeX file for the text strings,
38737 and a PDF file for the rest.
38740 \begin_layout Description
38742 \change_inserted 227574939 1473131628
38743 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
38744 with multi-page PDFs, the TeX file will sometimes reference more pages
38745 than the PDF file contains.
38746 This is the version that ships with Ubuntu 16.04.
38747 Its use with LyX can therefore not be recommended, until the bug is fixed
38751 \begin_layout Plain Layout
38753 \change_inserted 227574939 1473131628
38754 A workaround for those who have already SVG figures in their document is,
38755 to manually do the LaTeX+PDF output from Inkscape, edit the
38759 file to remove the erroneous references, and
38765 it directly into LyX, i.e., not use the external-template mechanism:
38768 \begin_layout Plain Layout
38770 \change_inserted 227574939 1473131628
38771 \begin_inset Graphics
38772 filename clipart/workaround.png
38780 \begin_layout Plain Layout
38782 \change_inserted 227574939 1473131628
38783 Here, the child document input inset (
38785 Insert\SpecialChar menuseparator
38786 File\SpecialChar menuseparator
38789 ) was used, which allows you do directly edit the
38793 file in a text editor.
38794 The LaTeX output is based on this edited snippet as re-generation from
38795 the SVG file has been commented out.
38801 \change_deleted 2047637253 1475534230
38805 \begin_layout Standard
38807 \change_deleted 2047637253 1475534225
38808 The reason why we would use this complicated process at all, like in the
38809 case of Xfig, is that it makes the text strings inside the figure of the
38810 same font type and attributes as the surrounding text, which looks so much
38812 With Inkscape, even the
38816 of the font is taken from the surrounding LaTeX document – in Xfig, you
38817 have to set it by hand to be the same.
38818 Of course you can always embed LaTeX modifiers like
38831 into your figure text strings.
38832 \change_inserted 227574939 1473131628
38837 \begin_layout Standard
38838 \begin_inset Float table
38844 \begin_layout Plain Layout
38845 \begin_inset Caption Standard
38847 \begin_layout Plain Layout
38848 \begin_inset CommandInset label
38850 name "tab:Comparison-of-the"
38854 Comparison of the date input methods.
38862 \begin_layout Plain Layout
38864 \begin_inset Tabular
38865 <lyxtabular version="3" rows="4" columns="3">
38866 <features tabularvalignment="middle">
38867 <column alignment="center" valignment="top">
38868 <column alignment="center" valignment="top">
38869 <column alignment="center" valignment="top">
38871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38874 \begin_layout Plain Layout
38880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38883 \begin_layout Plain Layout
38886 Insert\SpecialChar menuseparator
38892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38895 \begin_layout Plain Layout
38907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38910 \begin_layout Plain Layout
38917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38920 \begin_layout Plain Layout
38926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38929 \begin_layout Plain Layout
38930 as \SpecialChar TeX
38938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38941 \begin_layout Plain Layout
38948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38951 \begin_layout Plain Layout
38957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38960 \begin_layout Plain Layout
38968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38971 \begin_layout Plain Layout
38977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38980 \begin_layout Plain Layout
38986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38989 \begin_layout Plain Layout
39008 \begin_layout Standard
39009 When you use the option
39021 dialog, only the path to the inserted file is shown in the output.
39022 \begin_inset Newline newline
39025 External material is displayed in \SpecialChar LyX
39026 either as a box like this:
39027 \begin_inset Graphics
39028 filename clipart/ExternalMaterial.png
39030 scaleBeforeRotation
39034 or as image, depending on the option
39040 LaTeX and LyX options
39045 \begin_layout Standard
39052 manual explains how you can define your own templates.
39055 \begin_layout Section
39057 \begin_inset CommandInset label
39059 name "sec:Child-Documents"
39064 \begin_inset Index idx
39067 \begin_layout Plain Layout
39068 External Document Parts ! Child Documents
39074 \begin_inset Index idx
39077 \begin_layout Plain Layout
39086 \begin_layout Standard
39087 Child documents are used if you have a long document consisting of several
39088 larger parts or sections.
39089 For maintenance it is often useful and sometimes even required to split
39090 the document into several files that can be revised separately.
39091 The different documents are then the so called
39092 \begin_inset Quotes eld
39096 \begin_inset Quotes erd
39099 , and a master document connects them to print the full document or parts
39101 A child document inherits elements from its master, for example the \SpecialChar LaTeX
39103 the bibliography, and labels for cross-references.
39106 \begin_layout Standard
39107 To be able to work on child documents without the need to open their master,
39108 specify in the child document the master in the menu
39110 Document\SpecialChar menuseparator
39111 Settings\SpecialChar menuseparator
39113 \begin_inset space ~
39119 This master document will then be used in the background by \SpecialChar LyX
39121 the child document.
39124 \begin_layout Standard
39125 Included documents are displayed in \SpecialChar LyX
39126 as a box like this:
39127 \begin_inset Graphics
39128 filename clipart/ChildDocument.png
39129 scaleBeforeRotation
39133 To include child documents in a master document use the menu
39135 Insert\SpecialChar menuseparator
39136 File\SpecialChar menuseparator
39138 \begin_inset space ~
39144 A dialog pops up where you can choose between four include methods:
39147 \begin_layout Description
39148 Include You can include \SpecialChar LyX
39149 and \SpecialChar LaTeX
39159 dialog, the included document will be opened in \SpecialChar LyX
39160 in a new file tab so that
39162 \begin_inset Newline newline
39168 \begin_layout Standard
39169 Here is a child document inserted using
39174 \begin_inset CommandInset include
39175 LatexCommand include
39176 filename "DummyDocument1.lyx"
39183 \begin_layout Standard
39184 The section numbering includes the sections of the included files in the
39185 order they are inserted in the master document.
39186 The included example document has for example a subsection that is numbered
39187 as a subsection of this section.
39188 Labels of included documents can be referenced: Subsection
39189 \begin_inset space ~
39193 \begin_inset CommandInset ref
39195 reference "subsec:External-Subsection-1"
39202 \begin_layout Standard
39203 The preamble of the child document is ignored; only the preamble of the
39204 master document is used.
39205 Branches in child documents will be ignored by the master document when
39206 the master document does not have a branch with the same name.
39207 Included documents are inserted starting on a new page and ending with
39211 \begin_layout Standard
39212 \begin_inset Note Greyedout
39215 \begin_layout Plain Layout
39220 If you have included a \SpecialChar LyX
39221 or \SpecialChar LaTeX
39222 file, you are warned when you export/view the
39223 document in case the child document uses another document class than the
39224 master document as this will lead to unexpected outputs.
39232 \begin_layout Description
39233 Input This method is very similar to the Include method.
39234 The differences are:
39235 \begin_inset Separator latexpar
39242 \begin_layout Itemize
39243 Input files don't start with a new page and don't end with a page break.
39246 \begin_layout Itemize
39247 Input files can be previewed in \SpecialChar LyX
39251 \begin_inset space ~
39256 is enabled in \SpecialChar LyX
39257 's preferences under
39260 \begin_inset space ~
39264 \begin_inset space ~
39267 feel\SpecialChar menuseparator
39273 \begin_layout Itemize
39274 You cannot exclude Input files via the menu
39276 Document\SpecialChar menuseparator
39277 Settings\SpecialChar menuseparator
39284 \begin_layout Standard
39285 Here is a child document inserted using
39290 \begin_inset CommandInset include
39292 filename "DummyDocument2.lyx"
39299 \begin_layout Description
39300 Verbatim With this method any text file can be included.
39301 The file is shown in the output with its source code; no command used in
39302 the text is invoked.
39303 You can use the option
39305 Mark spaces in output
39307 that displays the character
39308 \begin_inset Quotes eld
39315 \begin_layout Plain Layout
39325 \begin_inset Quotes erd
39328 for every space character in the source code.
39329 The difference from the method via the menu
39331 Insert\SpecialChar menuseparator
39332 File\SpecialChar menuseparator
39334 \begin_inset space ~
39339 is that the document content is not shown in \SpecialChar LyX
39343 \begin_layout Standard
39344 Here is a child document inserted as Verbatim:
39345 \begin_inset CommandInset include
39346 LatexCommand verbatiminput
39347 filename "DummyTextDocument.txt"
39352 \begin_inset VSpace bigskip
39355 Here is a child document inserted as Verbatim using the
39357 Mark spaces in output
39360 \begin_inset CommandInset include
39361 LatexCommand verbatiminput*
39362 filename "DummyTextDocument.txt"
39369 \begin_layout Standard
39370 \begin_inset VSpace bigskip
39376 \begin_layout Standard
39377 \begin_inset Note Greyedout
39380 \begin_layout Plain Layout
39385 As you can see in the examples above, the text of the documents included
39390 is not broken at the end of the document lines.
39398 \begin_layout Description
39399 Listings This type is described in chapter
39400 \begin_inset space ~
39404 \begin_inset CommandInset ref
39406 reference "cha:Program-Code-Listings"
39413 \begin_layout Standard
39414 \begin_inset Note Greyedout
39417 \begin_layout Plain Layout
39422 Including the same document twice in a document using different methods
39423 could cause \SpecialChar LaTeX
39432 \begin_layout Standard
39433 If you want to view/export only selected children of your master document,
39434 either because you want to save compiling time or because you want to distribut
39435 e single chapters of the book you are just writing, you can exclude children
39437 This is done via the menu
39439 Document\SpecialChar menuseparator
39440 Settings\SpecialChar menuseparator
39444 You can exclude\SpecialChar breakableslash
39445 include children by double-clicking on the
39449 column of the respective child document in the list (note that this only
39450 works for documents embedded via
39451 \begin_inset Quotes eld
39455 \begin_inset Quotes erd
39459 \begin_inset Quotes eld
39463 \begin_inset Quotes erd
39469 Maintain counters and references
39471 is enabled, \SpecialChar LyX
39472 will assure that all page numbers, references etc.
39473 \begin_inset space ~
39476 are correct as if the whole document was processed.
39477 This is useful if you want the selected sub-documents to look exactly as
39478 in the context of the whole document.
39479 However, \SpecialChar LyX
39480 needs to process the whole document in the background for this
39482 So if you want to save compile time and if counters and references do not
39483 need to be correct, disable this checkbox.
39486 \begin_layout Standard
39487 Alternatively, you can put each included file into a branch.
39491 \begin_layout Plain Layout
39492 Branches are described in section
39496 of the \SpecialChar LyX
39506 By enabling\SpecialChar breakableslash
39507 disabling branches you can decide which included files will
39508 appear in the output.
39509 This has the advantage that it also works with Input'ed sub-documents.
39510 However, counters and references will not be maintained with this approach.
39513 \begin_layout Chapter
39514 Program Code Listings
39515 \begin_inset CommandInset label
39517 name "cha:Program-Code-Listings"
39522 \begin_inset Index idx
39525 \begin_layout Plain Layout
39532 \begin_inset Index idx
39535 \begin_layout Plain Layout
39542 \begin_inset Index idx
39545 \begin_layout Plain Layout
39554 \begin_layout Standard
39555 To include and typeset program code you can use the
39559 inset that can be inserted via the menu
39561 Insert\SpecialChar menuseparator
39565 The \SpecialChar LaTeX
39571 \begin_inset Index idx
39574 \begin_layout Plain Layout
39576 -packages ! listings
39581 provides a powerful and flexible way to insert program source code into
39585 \begin_layout Standard
39586 Right-clicking on a listings inset opens the context menu containing where
39587 you can set the listings format.
39590 \begin_layout Standard
39591 By default, a listing starts a new paragraph in the output.
39592 The placement option
39595 \begin_inset space ~
39600 prints the listing inline like this:
39601 \begin_inset listings
39602 lstparams "language={C++}"
39606 \begin_layout Plain Layout
39614 \begin_inset Newline newline
39621 creates a listings float where you can specify the placement options
39622 \begin_inset Quotes eld
39630 \begin_inset Quotes erd
39634 \begin_inset Quotes eld
39642 \begin_inset Quotes erd
39646 \begin_inset Quotes eld
39654 \begin_inset Quotes erd
39658 \begin_inset Quotes eld
39666 \begin_inset Quotes erd
39669 corresponding to the float placement options described in section
39670 \begin_inset space ~
39674 \begin_inset CommandInset ref
39676 reference "sec:Float-Placement"
39681 The placement options can be mixed and are inserted without any separation,
39683 \begin_inset space \thinspace{}
39687 \begin_inset space \space{}
39691 \begin_inset Quotes eld
39699 \begin_inset Quotes erd
39704 \begin_inset Quotes eld
39708 \begin_inset Quotes erd
39711 has sometimes no effect, but you don't need to use the
39715 option in this case as also non-float listings can have captions and be
39719 \begin_layout Standard
39720 You can add captions to listings with the menu
39722 Insert\SpecialChar menuseparator
39726 Listings can be referenced like floats: Listing
39727 \begin_inset space ~
39731 \begin_inset CommandInset ref
39733 reference "lst:Example-Listing"
39738 A list of listings which contains all listings with captions can be created
39741 Insert\SpecialChar menuseparator
39743 \begin_inset space ~
39747 \begin_inset space ~
39750 TOC\SpecialChar menuseparator
39754 The list entries are the listing caption and the listing number.
39757 \begin_layout Standard
39758 \begin_inset listings
39759 lstparams "language=Python"
39763 \begin_layout Plain Layout
39765 \begin_inset Caption Standard
39767 \begin_layout Plain Layout
39768 \begin_inset CommandInset label
39770 name "lst:Example-Listing"
39774 Example Listing float
39779 # Example listing float
39782 \begin_layout Plain Layout
39787 \begin_layout Plain Layout
39789 'this is a python function'
39792 \begin_layout Plain Layout
39802 \begin_layout Standard
39803 When you have set a programming language in the listings dialog, the keywords
39804 of this language will be recognized and specially typeset in the output.
39805 In the example listings the Python keyword
39806 \begin_inset Quotes eld
39810 \begin_inset Quotes erd
39813 is recognized and printed bold in the output.
39816 \begin_layout Standard
39817 \begin_inset Note Greyedout
39820 \begin_layout Plain Layout
39825 If you don't get bold keywords when using typewriter fonts, your
39829 font probably doesn't provide a bold shape.
39830 In this case select a different one in the menu
39832 Document\SpecialChar menuseparator
39833 Settings\SpecialChar menuseparator
39845 provide bold shapes.)
39853 \begin_layout Standard
39857 \begin_inset space ~
39862 of the listings dialog you can specify the line numbering style.
39863 You can insert a number to specify which lines are numbered in the field
39870 \begin_inset space \thinspace{}
39874 \begin_inset space \space{}
39878 \begin_inset Quotes eld
39882 \begin_inset Quotes erd
39885 , only every 3rd line will be numbered.
39888 \begin_layout Standard
39889 You can furthermore specify a range of lines; only these will then appear
39893 Extended character table
39895 should be used when you use national characters like the German umlauts
39897 \begin_inset Newline newline
39900 Here is an example listing with left line numbering, step
39901 \begin_inset Quotes eld
39905 \begin_inset Quotes erd
39909 \begin_inset Quotes eld
39913 \begin_inset Quotes erd
39917 \begin_inset Quotes eld
39920 Extended character table
39921 \begin_inset Quotes erd
39925 \begin_inset Quotes eld
39929 \begin_inset space ~
39933 \begin_inset space ~
39937 \begin_inset Quotes erd
39941 \begin_inset space \thinspace{}
39945 \begin_inset space \thinspace{}
39951 \begin_layout Standard
39952 \begin_inset listings
39953 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39957 \begin_layout Plain Layout
39962 \begin_layout Plain Layout
39964 'this is a python function'
39967 \begin_layout Plain Layout
39972 \begin_layout Plain Layout
39977 \begin_layout Plain Layout
39979 'This is a German word: Tschüß'
39982 \begin_layout Plain Layout
39987 \begin_layout Plain Layout
39992 \begin_layout Plain Layout
39994 'this is a python function'
39997 \begin_layout Plain Layout
40007 \begin_layout Standard
40008 When you have tabulators in your listing, you can specify the number of
40009 characters that are spanned by a tabulator in the field
40012 \begin_inset space ~
40020 \begin_layout Standard
40021 \begin_inset Note Greyedout
40024 \begin_layout Plain Layout
40029 Due to a bug in the
40033 package the line numbering is shifted by a line by every previous listing.
40034 That's the reason why the lines 2 and 5 are numbered in the above listing
40035 and not the lines 3 and 6.
40043 \begin_layout Standard
40044 \begin_inset VSpace bigskip
40050 \begin_layout Standard
40051 It is also possible to print lines from a file as listing.
40052 To do this, use the menu
40054 Insert\SpecialChar menuseparator
40055 File\SpecialChar menuseparator
40058 and choose the type
40066 \begin_layout Plain Layout
40067 The other child document types are described in section
40068 \begin_inset space ~
40072 \begin_inset CommandInset ref
40074 reference "sec:Child-Documents"
40083 In the child document dialog you can specify the listing parameters in
40085 To show a list of all available parameters, type in a question mark
40086 \begin_inset Quotes eld
40090 \begin_inset Quotes erd
40096 \begin_layout Standard
40097 To reference child document listings, write a label text into the corresponding
40098 field of the child document dialog.
40099 The label can then be referenced using the menu
40101 Insert\SpecialChar menuseparator
40107 \begin_layout Standard
40109 \begin_inset space ~
40113 \begin_inset CommandInset ref
40115 reference "lst:file-listing"
40119 is an example for a listing of a file; there the lines 10
40120 \begin_inset space \thinspace{}
40124 \begin_inset space \thinspace{}
40127 15 of this \SpecialChar LyX
40131 \begin_layout Standard
40132 \begin_inset CommandInset include
40133 LatexCommand lstinputlisting
40134 filename "EmbeddedObjects.lyx"
40135 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40142 \begin_layout Standard
40143 \begin_inset VSpace bigskip
40149 \begin_layout Standard
40150 Inserting a formula into a listing can be done the following way:
40153 \begin_layout Enumerate
40154 Open the listings dialog and add
40155 \begin_inset Newline newline
40163 \begin_inset Newline newline
40166 to the field of the
40173 \begin_layout Enumerate
40174 Create a formula outside the listing
40177 \begin_layout Enumerate
40178 Copy the content of the formula (not the formula inset) to the clipboard
40188 \begin_layout Enumerate
40189 In the listing write
40190 \begin_inset Quotes eld
40198 \begin_inset Quotes erd
40201 and copy from the clipboard between the dollar-signs (shortcut
40210 \begin_layout Standard
40211 \begin_inset listings
40212 lstparams "language=Python,mathescape=true"
40216 \begin_layout Plain Layout
40218 \begin_inset Caption Standard
40220 \begin_layout Plain Layout
40221 Example Listing float containing a formula
40226 # Example listing float
40229 \begin_layout Plain Layout
40234 \begin_layout Plain Layout
40247 \begin_layout Plain Layout
40257 \begin_layout Standard
40258 \begin_inset VSpace bigskip
40264 \begin_layout Standard
40265 Global listings settings can be set in the
40267 Document\SpecialChar menuseparator
40268 Settings\SpecialChar menuseparator
40272 To get there a list of available options, type in a question mark
40273 \begin_inset Quotes eld
40277 \begin_inset Quotes erd
40283 \begin_layout Standard
40284 For more information about the
40288 package, we refer to its documentation
40289 \begin_inset CommandInset citation
40298 \begin_layout Standard
40299 \begin_inset Newpage newpage
40305 \begin_layout Chapter
40307 Units available in \SpecialChar LyX
40309 \begin_inset Index idx
40312 \begin_layout Plain Layout
40319 \begin_inset CommandInset label
40321 name "cha:Units-available-in"
40328 \begin_layout Standard
40329 To understand the units described in this documentation, Table
40330 \begin_inset space ~
40334 \begin_inset CommandInset ref
40336 reference "tab:Units"
40340 explains all units available in \SpecialChar LyX
40344 \begin_layout Standard
40345 \begin_inset Float table
40351 \begin_layout Plain Layout
40352 \begin_inset Caption Standard
40354 \begin_layout Plain Layout
40355 \begin_inset CommandInset label
40369 \begin_layout Plain Layout
40370 \begin_inset VSpace medskip
40376 \begin_layout Plain Layout
40378 \begin_inset Tabular
40379 <lyxtabular version="3" rows="20" columns="3">
40380 <features tabularvalignment="middle">
40381 <column alignment="center" valignment="top">
40382 <column alignment="center" valignment="top">
40383 <column alignment="center" valignment="top">
40385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40388 \begin_layout Plain Layout
40394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40397 \begin_layout Plain Layout
40403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40406 \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
40433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40436 \begin_layout Plain Layout
40444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40447 \begin_layout Plain Layout
40453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40456 \begin_layout Plain Layout
40462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40465 \begin_layout Plain Layout
40473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40476 \begin_layout Plain Layout
40482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40485 \begin_layout Plain Layout
40491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40494 \begin_layout Plain Layout
40502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40505 \begin_layout Plain Layout
40511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40514 \begin_layout Plain Layout
40516 \begin_inset space \thinspace{}
40520 \begin_inset space \thinspace{}
40528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40531 \begin_layout Plain Layout
40539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40542 \begin_layout Plain Layout
40548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40551 \begin_layout Plain Layout
40553 \begin_inset space \thinspace{}
40557 \begin_inset space \thinspace{}
40565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40568 \begin_layout Plain Layout
40576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40579 \begin_layout Plain Layout
40585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40588 \begin_layout Plain Layout
40589 scaled point (65536
40590 \begin_inset space \thinspace{}
40594 \begin_inset space \thinspace{}
40602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40605 \begin_layout Plain Layout
40613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40616 \begin_layout Plain Layout
40622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40625 \begin_layout Plain Layout
40627 \begin_inset space \thinspace{}
40631 \begin_inset space \thinspace{}
40639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40642 \begin_layout Plain Layout
40650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40653 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40662 \begin_layout Plain Layout
40664 \begin_inset space \thinspace{}
40668 \begin_inset Formula $\approx$
40672 \begin_inset space \thinspace{}
40680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40683 \begin_layout Plain Layout
40691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40694 \begin_layout Plain Layout
40700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40703 \begin_layout Plain Layout
40705 \begin_inset space \thinspace{}
40709 \begin_inset space \thinspace{}
40717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40720 \begin_layout Plain Layout
40728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40731 \begin_layout Plain Layout
40737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40740 \begin_layout Plain Layout
40741 % of original image width
40746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40749 \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
40837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40840 \begin_layout Plain Layout
40850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40853 \begin_layout Plain Layout
40859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40862 \begin_layout Plain Layout
40868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40871 \begin_layout Plain Layout
40881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40884 \begin_layout Plain Layout
40890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40893 \begin_layout Plain Layout
40899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40902 \begin_layout Plain Layout
40912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40915 \begin_layout Plain Layout
40921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40924 \begin_layout Plain Layout
40930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40933 \begin_layout Plain Layout
40943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40946 \begin_layout Plain Layout
40952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40955 \begin_layout Plain Layout
40965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40968 \begin_layout Plain Layout
40976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40979 \begin_layout Plain Layout
40985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40988 \begin_layout Plain Layout
40998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41001 \begin_layout Plain Layout
41009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41012 \begin_layout Plain Layout
41018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41021 \begin_layout Plain Layout
41023 \begin_inset space \thinspace{}
41027 \begin_inset space \thinspace{}
41035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41038 \begin_layout Plain Layout
41057 \begin_layout Chapter
41058 Output File Formats with Graphics
41059 \begin_inset CommandInset label
41061 name "cha:Output-File-Formats"
41068 \begin_layout Section
41070 \begin_inset Index idx
41073 \begin_layout Plain Layout
41080 \begin_inset Index idx
41083 \begin_layout Plain Layout
41088 \begin_layout Plain Layout
41099 \begin_layout Plain Layout
41114 \begin_layout Standard
41115 This file type has the extension
41116 \begin_inset Quotes eld
41124 \begin_inset Quotes erd
41129 \begin_inset Quotes eld
41133 \begin_inset Quotes erd
41136 (DVI), because it is completely portable; you can move them from one machine
41137 to another without needing to do any sort of conversion.
41138 At the time when this file-format was developed, this was no matter of
41140 DVIs are used for quick previews and as pre-stage for other output formats,
41144 \begin_layout Standard
41145 \begin_inset Note Greyedout
41148 \begin_layout Plain Layout
41153 DVI-files do not contain images; they will only be a linked.
41158 So don't forget this, if you move your
41162 file to another computer.
41163 This property can also slow down your computer when you view the DVI, because
41164 the DVI-viewer has to convert the image in the background to make it visible
41165 when you scroll in the DVI.
41166 So it is recommended that you use PDF for files with many images.
41169 \begin_layout Standard
41170 You can export your document to DVI by using the menu
41172 File\SpecialChar menuseparator
41173 Export\SpecialChar menuseparator
41177 You can view your document as DVI via the
41184 \begin_layout Section
41186 \begin_inset Index idx
41189 \begin_layout Plain Layout
41190 File Formats ! PostScript
41196 \begin_inset Index idx
41199 \begin_layout Plain Layout
41204 \begin_layout Plain Layout
41215 \begin_layout Plain Layout
41230 \begin_layout Standard
41231 This file type has the extension
41232 \begin_inset Quotes eld
41240 \begin_inset Quotes erd
41244 PostScript was developed by the company
41248 as a printer language.
41249 The file therefore contains commands that the printer uses to print the
41251 PostScript can be seen as a
41252 \begin_inset Quotes eld
41255 programming language
41256 \begin_inset Quotes erd
41259 ; you can calculate with it and draw diagrams and images.
41263 \begin_layout Plain Layout
41264 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41271 \begin_inset CommandInset citation
41282 Due to this ability, the files are often bigger than PDFs.
41285 \begin_layout Standard
41286 PostScript can only contain images in the format
41287 \begin_inset Quotes eld
41290 Encapsulated PostScript
41291 \begin_inset Quotes erd
41294 (EPS, file extension
41295 \begin_inset Quotes eld
41303 \begin_inset Quotes erd
41307 As \SpecialChar LyX
41308 allows you to use any known image format in your document, it has to
41309 convert images in the background to EPS.
41311 \begin_inset space ~
41315 \begin_inset space ~
41318 images in your document, \SpecialChar LyX
41320 \begin_inset space ~
41323 conversions whenever you view or export your document.
41324 This will slow down your work flow with \SpecialChar LyX
41326 So if you plan to use PostScript, you can insert your images directly as
41327 EPS to avoid this problem.
41330 \begin_layout Standard
41331 You can export your document to PostScript using the menu
41333 File\SpecialChar menuseparator
41334 Export\SpecialChar menuseparator
41338 You can view your document as PostScript via the
41345 \begin_layout Section
41347 \begin_inset Index idx
41350 \begin_layout Plain Layout
41357 \begin_inset Index idx
41360 \begin_layout Plain Layout
41369 \begin_layout Standard
41370 This file type has the extension
41371 \begin_inset Quotes eld
41379 \begin_inset Quotes erd
41384 \begin_inset Quotes eld
41387 Portable Document Format
41388 \begin_inset Quotes erd
41391 (PDF) was developed by
41395 as a derivative of PostScript.
41396 It is more compressed and it uses fewer commands than PostScript.
41398 \begin_inset Quotes eld
41402 \begin_inset Quotes erd
41405 implies, it can be processed at any computer system and the printed output
41406 looks exactly the same.
41409 \begin_layout Standard
41410 PDF can contain images in its own PDF format, in the format
41411 \begin_inset Quotes eld
41414 Joint Photographic Experts Group
41415 \begin_inset Quotes erd
41418 (JPG, file extension
41419 \begin_inset Quotes eld
41427 \begin_inset Quotes erd
41431 \begin_inset Quotes eld
41439 \begin_inset Quotes erd
41442 ), and in the format
41443 \begin_inset Quotes eld
41446 Portable Network Graphics
41447 \begin_inset Quotes erd
41450 (PNG, file extension
41451 \begin_inset Quotes eld
41459 \begin_inset Quotes erd
41463 Nevertheless you can use any other image format, because \SpecialChar LyX
41465 in the background to one of these formats.
41466 But as described in the section about PostScript, the image conversion
41467 will slow down your work flow.
41468 So it is recommended that you use images in one of the three mentioned
41472 \begin_layout Standard
41473 You can export your document to PDF via the menu
41475 File\SpecialChar menuseparator
41478 in three different ways:
41481 \begin_layout Description
41483 \begin_inset space ~
41486 (ps2pdf) This uses the program
41490 that creates a PDF from a PostScript-version of your file.
41491 The PostScript-version is produced by the program
41495 which uses a DVI-version as intermediate step.
41496 So this export variant consists of three conversions.
41499 \begin_layout Description
41501 \begin_inset space ~
41504 (dvipdfm) This uses the program
41508 that converts your file in the background to DVI and in a second step to
41512 \begin_layout Description
41514 \begin_inset space ~
41517 (pdflatex) This uses the program
41521 that converts your file directly to PDF.
41524 \begin_layout Standard
41525 It is recommended that you use
41528 \begin_inset space ~
41537 supports all features of actual PDF-versions, is quick and works stable.
41542 is not under development and therefore a bit outdated.
41545 \begin_layout Standard
41546 You can view your document as PDF via the
41550 menu or by using a toolbar button.
41553 \begin_layout Chapter
41554 List of dvips color names
41555 \begin_inset CommandInset label
41557 name "chap:List-of-dvips-colornames"
41564 \begin_layout Standard
41565 \begin_inset Tabular
41566 <lyxtabular version="3" rows="17" columns="4">
41567 <features tabularvalignment="middle">
41568 <column alignment="left" valignment="top" width="0pt">
41569 <column alignment="left" valignment="top" width="0pt">
41570 <column alignment="left" valignment="top" width="0pt">
41571 <column alignment="left" valignment="top" width="0pt">
41573 <cell alignment="left" valignment="top" usebox="none">
41576 \begin_layout Plain Layout
41580 \begin_layout Plain Layout
41593 \begin_layout Plain Layout
41604 \begin_layout Plain Layout
41616 <cell alignment="left" valignment="top" usebox="none">
41619 \begin_layout Plain Layout
41623 \begin_layout Plain Layout
41636 \begin_layout Plain Layout
41647 \begin_layout Plain Layout
41659 <cell alignment="left" valignment="top" usebox="none">
41662 \begin_layout Plain Layout
41666 \begin_layout Plain Layout
41679 \begin_layout Plain Layout
41690 \begin_layout Plain Layout
41702 <cell alignment="left" valignment="top" usebox="none">
41705 \begin_layout Plain Layout
41709 \begin_layout Plain Layout
41722 \begin_layout Plain Layout
41733 \begin_layout Plain Layout
41747 <cell alignment="center" valignment="top" usebox="none">
41750 \begin_layout Plain Layout
41754 \begin_layout Plain Layout
41767 \begin_layout Plain Layout
41775 \begin_inset Phantom Phantom
41778 \begin_layout Plain Layout
41788 \begin_layout Plain Layout
41800 <cell alignment="center" valignment="top" usebox="none">
41803 \begin_layout Plain Layout
41807 \begin_layout Plain Layout
41820 \begin_layout Plain Layout
41828 \begin_inset Phantom Phantom
41831 \begin_layout Plain Layout
41841 \begin_layout Plain Layout
41853 <cell alignment="center" valignment="top" usebox="none">
41856 \begin_layout Plain Layout
41860 \begin_layout Plain Layout
41873 \begin_layout Plain Layout
41881 \begin_inset Phantom Phantom
41884 \begin_layout Plain Layout
41894 \begin_layout Plain Layout
41906 <cell alignment="center" valignment="top" usebox="none">
41909 \begin_layout Plain Layout
41913 \begin_layout Plain Layout
41926 \begin_layout Plain Layout
41934 \begin_inset Phantom Phantom
41937 \begin_layout Plain Layout
41947 \begin_layout Plain Layout
41961 <cell alignment="left" valignment="top" usebox="none">
41964 \begin_layout Plain Layout
41968 \begin_layout Plain Layout
41981 \begin_layout Plain Layout
41989 \begin_inset Phantom Phantom
41992 \begin_layout Plain Layout
42002 \begin_layout Plain Layout
42014 <cell alignment="left" valignment="top" usebox="none">
42017 \begin_layout Plain Layout
42021 \begin_layout Plain Layout
42034 \begin_layout Plain Layout
42042 \begin_inset Phantom Phantom
42045 \begin_layout Plain Layout
42055 \begin_layout Plain Layout
42067 <cell alignment="left" valignment="top" usebox="none">
42070 \begin_layout Plain Layout
42074 \begin_layout Plain Layout
42087 \begin_layout Plain Layout
42095 \begin_inset Phantom Phantom
42098 \begin_layout Plain Layout
42108 \begin_layout Plain Layout
42120 <cell alignment="left" valignment="top" usebox="none">
42123 \begin_layout Plain Layout
42127 \begin_layout Plain Layout
42140 \begin_layout Plain Layout
42148 \begin_inset Phantom Phantom
42151 \begin_layout Plain Layout
42161 \begin_layout Plain Layout
42175 <cell alignment="left" valignment="top" usebox="none">
42178 \begin_layout Plain Layout
42182 \begin_layout Plain Layout
42195 \begin_layout Plain Layout
42203 \begin_inset Phantom Phantom
42206 \begin_layout Plain Layout
42216 \begin_layout Plain Layout
42228 <cell alignment="left" valignment="top" usebox="none">
42231 \begin_layout Plain Layout
42235 \begin_layout Plain Layout
42248 \begin_layout Plain Layout
42256 \begin_inset Phantom Phantom
42259 \begin_layout Plain Layout
42269 \begin_layout Plain Layout
42281 <cell alignment="left" valignment="top" usebox="none">
42284 \begin_layout Plain Layout
42288 \begin_layout Plain Layout
42301 \begin_layout Plain Layout
42309 \begin_inset Phantom Phantom
42312 \begin_layout Plain Layout
42322 \begin_layout Plain Layout
42334 <cell alignment="left" valignment="top" usebox="none">
42337 \begin_layout Plain Layout
42341 \begin_layout Plain Layout
42354 \begin_layout Plain Layout
42362 \begin_inset Phantom Phantom
42365 \begin_layout Plain Layout
42375 \begin_layout Plain Layout
42389 <cell alignment="left" valignment="top" usebox="none">
42392 \begin_layout Plain Layout
42396 \begin_layout Plain Layout
42409 \begin_layout Plain Layout
42417 \begin_inset Phantom Phantom
42420 \begin_layout Plain Layout
42430 \begin_layout Plain Layout
42442 <cell alignment="left" valignment="top" usebox="none">
42445 \begin_layout Plain Layout
42449 \begin_layout Plain Layout
42462 \begin_layout Plain Layout
42470 \begin_inset Phantom Phantom
42473 \begin_layout Plain Layout
42483 \begin_layout Plain Layout
42495 <cell alignment="left" valignment="top" usebox="none">
42498 \begin_layout Plain Layout
42502 \begin_layout Plain Layout
42515 \begin_layout Plain Layout
42523 \begin_inset Phantom Phantom
42526 \begin_layout Plain Layout
42536 \begin_layout Plain Layout
42548 <cell alignment="left" valignment="top" usebox="none">
42551 \begin_layout Plain Layout
42555 \begin_layout Plain Layout
42568 \begin_layout Plain Layout
42576 \begin_inset Phantom Phantom
42579 \begin_layout Plain Layout
42589 \begin_layout Plain Layout
42603 <cell alignment="left" valignment="top" usebox="none">
42606 \begin_layout Plain Layout
42610 \begin_layout Plain Layout
42623 \begin_layout Plain Layout
42631 \begin_inset Phantom Phantom
42634 \begin_layout Plain Layout
42644 \begin_layout Plain Layout
42656 <cell alignment="left" valignment="top" usebox="none">
42659 \begin_layout Plain Layout
42663 \begin_layout Plain Layout
42676 \begin_layout Plain Layout
42684 \begin_inset Phantom Phantom
42687 \begin_layout Plain Layout
42697 \begin_layout Plain Layout
42709 <cell alignment="left" valignment="top" usebox="none">
42712 \begin_layout Plain Layout
42716 \begin_layout Plain Layout
42729 \begin_layout Plain Layout
42737 \begin_inset Phantom Phantom
42740 \begin_layout Plain Layout
42750 \begin_layout Plain Layout
42762 <cell alignment="left" valignment="top" usebox="none">
42765 \begin_layout Plain Layout
42769 \begin_layout Plain Layout
42782 \begin_layout Plain Layout
42790 \begin_inset Phantom Phantom
42793 \begin_layout Plain Layout
42803 \begin_layout Plain Layout
42817 <cell alignment="center" valignment="top" usebox="none">
42820 \begin_layout Plain Layout
42824 \begin_layout Plain Layout
42837 \begin_layout Plain Layout
42845 \begin_inset Phantom Phantom
42848 \begin_layout Plain Layout
42858 \begin_layout Plain Layout
42870 <cell alignment="center" valignment="top" usebox="none">
42873 \begin_layout Plain Layout
42877 \begin_layout Plain Layout
42890 \begin_layout Plain Layout
42898 \begin_inset Phantom Phantom
42901 \begin_layout Plain Layout
42911 \begin_layout Plain Layout
42923 <cell alignment="center" valignment="top" usebox="none">
42926 \begin_layout Plain Layout
42930 \begin_layout Plain Layout
42943 \begin_layout Plain Layout
42951 \begin_inset Phantom Phantom
42954 \begin_layout Plain Layout
42964 \begin_layout Plain Layout
42976 <cell alignment="center" valignment="top" usebox="none">
42979 \begin_layout Plain Layout
42983 \begin_layout Plain Layout
42996 \begin_layout Plain Layout
43004 \begin_inset Phantom Phantom
43007 \begin_layout Plain Layout
43017 \begin_layout Plain Layout
43031 <cell alignment="left" valignment="top" usebox="none">
43034 \begin_layout Plain Layout
43038 \begin_layout Plain Layout
43051 \begin_layout Plain Layout
43059 \begin_inset Phantom Phantom
43062 \begin_layout Plain Layout
43072 \begin_layout Plain Layout
43084 <cell alignment="left" valignment="top" usebox="none">
43087 \begin_layout Plain Layout
43091 \begin_layout Plain Layout
43104 \begin_layout Plain Layout
43112 \begin_inset Phantom Phantom
43115 \begin_layout Plain Layout
43125 \begin_layout Plain Layout
43137 <cell alignment="left" valignment="top" usebox="none">
43140 \begin_layout Plain Layout
43144 \begin_layout Plain Layout
43157 \begin_layout Plain Layout
43165 \begin_inset Phantom Phantom
43168 \begin_layout Plain Layout
43178 \begin_layout Plain Layout
43190 <cell alignment="left" valignment="top" usebox="none">
43193 \begin_layout Plain Layout
43197 \begin_layout Plain Layout
43210 \begin_layout Plain Layout
43218 \begin_inset Phantom Phantom
43221 \begin_layout Plain Layout
43231 \begin_layout Plain Layout
43245 <cell alignment="left" valignment="top" usebox="none">
43248 \begin_layout Plain Layout
43252 \begin_layout Plain Layout
43265 \begin_layout Plain Layout
43273 \begin_inset Phantom Phantom
43276 \begin_layout Plain Layout
43286 \begin_layout Plain Layout
43298 <cell alignment="left" valignment="top" usebox="none">
43301 \begin_layout Plain Layout
43305 \begin_layout Plain Layout
43318 \begin_layout Plain Layout
43326 \begin_inset Phantom Phantom
43329 \begin_layout Plain Layout
43339 \begin_layout Plain Layout
43351 <cell alignment="left" valignment="top" usebox="none">
43354 \begin_layout Plain Layout
43358 \begin_layout Plain Layout
43371 \begin_layout Plain Layout
43379 \begin_inset Phantom Phantom
43382 \begin_layout Plain Layout
43392 \begin_layout Plain Layout
43404 <cell alignment="left" valignment="top" usebox="none">
43407 \begin_layout Plain Layout
43411 \begin_layout Plain Layout
43424 \begin_layout Plain Layout
43432 \begin_inset Phantom Phantom
43435 \begin_layout Plain Layout
43445 \begin_layout Plain Layout
43459 <cell alignment="left" valignment="top" usebox="none">
43462 \begin_layout Plain Layout
43466 \begin_layout Plain Layout
43479 \begin_layout Plain Layout
43487 \begin_inset Phantom Phantom
43490 \begin_layout Plain Layout
43500 \begin_layout Plain Layout
43512 <cell alignment="left" valignment="top" usebox="none">
43515 \begin_layout Plain Layout
43519 \begin_layout Plain Layout
43532 \begin_layout Plain Layout
43540 \begin_inset Phantom Phantom
43543 \begin_layout Plain Layout
43553 \begin_layout Plain Layout
43565 <cell alignment="left" valignment="top" usebox="none">
43568 \begin_layout Plain Layout
43572 \begin_layout Plain Layout
43585 \begin_layout Plain Layout
43593 \begin_inset Phantom Phantom
43596 \begin_layout Plain Layout
43606 \begin_layout Plain Layout
43618 <cell alignment="left" valignment="top" usebox="none">
43621 \begin_layout Plain Layout
43625 \begin_layout Plain Layout
43638 \begin_layout Plain Layout
43646 \begin_inset Phantom Phantom
43649 \begin_layout Plain Layout
43659 \begin_layout Plain Layout
43673 <cell alignment="left" valignment="top" usebox="none">
43676 \begin_layout Plain Layout
43680 \begin_layout Plain Layout
43693 \begin_layout Plain Layout
43701 \begin_inset Phantom Phantom
43704 \begin_layout Plain Layout
43714 \begin_layout Plain Layout
43726 <cell alignment="left" valignment="top" usebox="none">
43729 \begin_layout Plain Layout
43733 \begin_layout Plain Layout
43746 \begin_layout Plain Layout
43754 \begin_inset Phantom Phantom
43757 \begin_layout Plain Layout
43767 \begin_layout Plain Layout
43779 <cell alignment="left" valignment="top" usebox="none">
43782 \begin_layout Plain Layout
43786 \begin_layout Plain Layout
43799 \begin_layout Plain Layout
43807 \begin_inset Phantom Phantom
43810 \begin_layout Plain Layout
43820 \begin_layout Plain Layout
43832 <cell alignment="left" valignment="top" usebox="none">
43835 \begin_layout Plain Layout
43839 \begin_layout Plain Layout
43852 \begin_layout Plain Layout
43860 \begin_inset Phantom Phantom
43863 \begin_layout Plain Layout
43873 \begin_layout Plain Layout
43887 <cell alignment="left" valignment="top" usebox="none">
43890 \begin_layout Plain Layout
43894 \begin_layout Plain Layout
43907 \begin_layout Plain Layout
43915 \begin_inset Phantom Phantom
43918 \begin_layout Plain Layout
43928 \begin_layout Plain Layout
43940 <cell alignment="left" valignment="top" usebox="none">
43943 \begin_layout Plain Layout
43947 \begin_layout Plain Layout
43960 \begin_layout Plain Layout
43968 \begin_inset Phantom Phantom
43971 \begin_layout Plain Layout
43981 \begin_layout Plain Layout
43993 <cell alignment="left" valignment="top" usebox="none">
43996 \begin_layout Plain Layout
44000 \begin_layout Plain Layout
44013 \begin_layout Plain Layout
44021 \begin_inset Phantom Phantom
44024 \begin_layout Plain Layout
44034 \begin_layout Plain Layout
44046 <cell alignment="left" valignment="top" usebox="none">
44049 \begin_layout Plain Layout
44053 \begin_layout Plain Layout
44066 \begin_layout Plain Layout
44074 \begin_inset Phantom Phantom
44077 \begin_layout Plain Layout
44087 \begin_layout Plain Layout
44101 <cell alignment="left" valignment="top" usebox="none">
44104 \begin_layout Plain Layout
44108 \begin_layout Plain Layout
44121 \begin_layout Plain Layout
44129 \begin_inset Phantom Phantom
44132 \begin_layout Plain Layout
44142 \begin_layout Plain Layout
44154 <cell alignment="left" valignment="top" usebox="none">
44157 \begin_layout Plain Layout
44161 \begin_layout Plain Layout
44174 \begin_layout Plain Layout
44182 \begin_inset Phantom Phantom
44185 \begin_layout Plain Layout
44195 \begin_layout Plain Layout
44207 <cell alignment="left" valignment="top" usebox="none">
44210 \begin_layout Plain Layout
44214 \begin_layout Plain Layout
44227 \begin_layout Plain Layout
44235 \begin_inset Phantom Phantom
44238 \begin_layout Plain Layout
44248 \begin_layout Plain Layout
44260 <cell alignment="left" valignment="top" usebox="none">
44263 \begin_layout Plain Layout
44267 \begin_layout Plain Layout
44280 \begin_layout Plain Layout
44288 \begin_inset Phantom Phantom
44291 \begin_layout Plain Layout
44301 \begin_layout Plain Layout
44315 <cell alignment="left" valignment="top" usebox="none">
44318 \begin_layout Plain Layout
44322 \begin_layout Plain Layout
44335 \begin_layout Plain Layout
44343 \begin_inset Phantom Phantom
44346 \begin_layout Plain Layout
44356 \begin_layout Plain Layout
44368 <cell alignment="left" valignment="top" usebox="none">
44371 \begin_layout Plain Layout
44375 \begin_layout Plain Layout
44388 \begin_layout Plain Layout
44396 \begin_inset Phantom Phantom
44399 \begin_layout Plain Layout
44409 \begin_layout Plain Layout
44421 <cell alignment="left" valignment="top" usebox="none">
44424 \begin_layout Plain Layout
44428 \begin_layout Plain Layout
44441 \begin_layout Plain Layout
44449 \begin_inset Phantom Phantom
44452 \begin_layout Plain Layout
44462 \begin_layout Plain Layout
44474 <cell alignment="left" valignment="top" usebox="none">
44477 \begin_layout Plain Layout
44481 \begin_layout Plain Layout
44494 \begin_layout Plain Layout
44502 \begin_inset Phantom Phantom
44505 \begin_layout Plain Layout
44515 \begin_layout Plain Layout
44529 <cell alignment="left" valignment="top" usebox="none">
44532 \begin_layout Plain Layout
44536 \begin_layout Plain Layout
44549 \begin_layout Plain Layout
44557 \begin_inset Phantom Phantom
44560 \begin_layout Plain Layout
44570 \begin_layout Plain Layout
44582 <cell alignment="left" valignment="top" usebox="none">
44585 \begin_layout Plain Layout
44589 \begin_layout Plain Layout
44602 \begin_layout Plain Layout
44610 \begin_inset Phantom Phantom
44613 \begin_layout Plain Layout
44623 \begin_layout Plain Layout
44635 <cell alignment="left" valignment="top" usebox="none">
44638 \begin_layout Plain Layout
44642 \begin_layout Plain Layout
44655 \begin_layout Plain Layout
44663 \begin_inset Phantom Phantom
44666 \begin_layout Plain Layout
44676 \begin_layout Plain Layout
44688 <cell alignment="left" valignment="top" usebox="none">
44691 \begin_layout Plain Layout
44695 \begin_layout Plain Layout
44708 \begin_layout Plain Layout
44716 \begin_inset Phantom Phantom
44719 \begin_layout Plain Layout
44729 \begin_layout Plain Layout
44743 <cell alignment="left" valignment="top" usebox="none">
44746 \begin_layout Plain Layout
44750 \begin_layout Plain Layout
44763 \begin_layout Plain Layout
44771 \begin_inset Phantom Phantom
44774 \begin_layout Plain Layout
44784 \begin_layout Plain Layout
44796 <cell alignment="left" valignment="top" usebox="none">
44799 \begin_layout Plain Layout
44803 \begin_layout Plain Layout
44816 \begin_layout Plain Layout
44824 \begin_inset Phantom Phantom
44827 \begin_layout Plain Layout
44837 \begin_layout Plain Layout
44849 <cell alignment="left" valignment="top" usebox="none">
44852 \begin_layout Plain Layout
44856 \begin_layout Plain Layout
44869 \begin_layout Plain Layout
44877 \begin_inset Phantom Phantom
44880 \begin_layout Plain Layout
44890 \begin_layout Plain Layout
44902 <cell alignment="left" valignment="top" usebox="none">
44905 \begin_layout Plain Layout
44909 \begin_layout Plain Layout
44922 \begin_layout Plain Layout
44930 \begin_inset Phantom Phantom
44933 \begin_layout Plain Layout
44943 \begin_layout Plain Layout
44957 <cell alignment="left" valignment="top" usebox="none">
44960 \begin_layout Plain Layout
44964 \begin_layout Plain Layout
44977 \begin_layout Plain Layout
44985 \begin_inset Phantom Phantom
44988 \begin_layout Plain Layout
44998 \begin_layout Plain Layout
45010 <cell alignment="left" valignment="top" usebox="none">
45013 \begin_layout Plain Layout
45019 <cell alignment="left" valignment="top" usebox="none">
45022 \begin_layout Plain Layout
45028 <cell alignment="left" valignment="top" usebox="none">
45031 \begin_layout Plain Layout
45045 \begin_layout Chapter
45046 Explanation of Equation
45047 \begin_inset space ~
45051 \begin_inset CommandInset ref
45058 \begin_inset CommandInset label
45060 name "cha:Explanation-of-Equation"
45067 \begin_layout Standard
45068 We can calculate the total width of
45073 \begin_inset Formula $W_{\mathrm{tot\,n}}$
45077 \begin_inset Formula
45079 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45085 \begin_inset Formula $W_{g\,n}$
45088 is the given width of all cells,
45094 is the \SpecialChar LaTeX
45095 -length between the cell text and the cell border (its default value
45097 \begin_inset space \thinspace{}
45107 is the thickness of the cell border line, the default is 0.4
45108 \begin_inset space \thinspace{}
45114 \begin_layout Standard
45116 \begin_inset space ~
45120 \begin_inset CommandInset ref
45122 reference "eq:Wtot_n"
45126 , the total width of a multicolumn
45127 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45131 \begin_inset Formula
45133 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45141 \begin_layout Standard
45142 By setting equation
45143 \begin_inset space ~
45147 \begin_inset CommandInset ref
45149 reference "eq:Wtot_n"
45154 \begin_inset CommandInset ref
45156 reference "eq:Wtot_mult"
45160 equal we can calculate the needed given width
45161 \begin_inset Formula $W_{g\,n}$
45168 columns are spanned, so that each column has a total width of
45169 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45173 \begin_inset Formula
45175 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45183 \begin_layout Bibliography
45184 \begin_inset CommandInset bibitem
45185 LatexCommand bibitem
45186 key "latexcompanion"
45190 Frank Mittelbach and Michel Goossens:
45192 The \SpecialChar LaTeX
45193 Companion Second Edition.
45196 Addison-Wesley, 2004
45199 \begin_layout Bibliography
45200 \begin_inset CommandInset bibitem
45201 LatexCommand bibitem
45206 Helmut Kopka and Patrick W.
45209 A Guide to \SpecialChar LaTeX
45213 Addison-Wesley, 2003
45216 \begin_layout Bibliography
45217 \begin_inset CommandInset bibitem
45218 LatexCommand bibitem
45226 : A Document Preparation System.
45229 Addison-Wesley, second edition, 1994
45232 \begin_layout Bibliography
45233 \begin_inset CommandInset bibitem
45234 LatexCommand bibitem
45239 Documentation of the \SpecialChar LaTeX
45243 \begin_inset CommandInset href
45246 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45253 \begin_inset Index idx
45256 \begin_layout Plain Layout
45258 -packages ! arydshln
45266 \begin_layout Bibliography
45267 \begin_inset CommandInset bibitem
45268 LatexCommand bibitem
45273 Documentation of the \SpecialChar LaTeX
45277 \begin_inset CommandInset href
45280 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45287 \begin_inset Index idx
45290 \begin_layout Plain Layout
45292 -packages ! booktabs
45300 \begin_layout Bibliography
45301 \begin_inset CommandInset bibitem
45302 LatexCommand bibitem
45307 Documentation of the \SpecialChar LaTeX
45311 \begin_inset CommandInset href
45314 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45321 \begin_inset Index idx
45324 \begin_layout Plain Layout
45326 -packages ! caption
45334 \begin_layout Bibliography
45335 \begin_inset CommandInset bibitem
45336 LatexCommand bibitem
45341 Documentation of the \SpecialChar LaTeX
45345 \begin_inset CommandInset href
45348 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45355 \begin_inset Index idx
45358 \begin_layout Plain Layout
45360 -packages ! diagbox
45368 \begin_layout Bibliography
45369 \begin_inset CommandInset bibitem
45370 LatexCommand bibitem
45375 Documentation of the \SpecialChar LaTeX
45379 \begin_inset CommandInset href
45382 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45389 \begin_inset Index idx
45392 \begin_layout Plain Layout
45394 -packages ! endfloat
45402 \begin_layout Bibliography
45403 \begin_inset CommandInset bibitem
45404 LatexCommand bibitem
45409 Documentation of the \SpecialChar LaTeX
45413 \begin_inset CommandInset href
45416 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45423 \begin_inset Index idx
45426 \begin_layout Plain Layout
45428 -packages ! footmisc
45436 \begin_layout Bibliography
45437 \begin_inset CommandInset bibitem
45438 LatexCommand bibitem
45443 Documentation of the \SpecialChar LaTeX
45447 \begin_inset CommandInset href
45450 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45457 \begin_inset Index idx
45460 \begin_layout Plain Layout
45462 -packages ! hyperref
45470 \begin_layout Bibliography
45471 \begin_inset CommandInset bibitem
45472 LatexCommand bibitem
45477 Documentation of the \SpecialChar LaTeX
45481 \begin_inset CommandInset href
45484 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45491 \begin_inset Index idx
45494 \begin_layout Plain Layout
45496 -packages ! hyperref
45504 \begin_layout Bibliography
45505 \begin_inset CommandInset bibitem
45506 LatexCommand bibitem
45511 Documentation of the \SpecialChar LaTeX
45515 \begin_inset CommandInset href
45518 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45525 \begin_inset Index idx
45528 \begin_layout Plain Layout
45530 -packages ! KOMA-Script
45538 \begin_layout Bibliography
45539 \begin_inset CommandInset bibitem
45540 LatexCommand bibitem
45545 Documentation of the \SpecialChar LaTeX
45549 \begin_inset CommandInset href
45552 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45559 \begin_inset CommandInset href
45562 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45567 \begin_inset Index idx
45570 \begin_layout Plain Layout
45572 -packages ! lettrine
45580 \begin_layout Bibliography
45581 \begin_inset CommandInset bibitem
45582 LatexCommand bibitem
45587 Documentation of the \SpecialChar LaTeX
45591 \begin_inset CommandInset href
45594 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45601 \begin_inset Index idx
45604 \begin_layout Plain Layout
45606 -packages ! listings
45614 \begin_layout Bibliography
45615 \begin_inset CommandInset bibitem
45616 LatexCommand bibitem
45621 Documentation of the \SpecialChar LaTeX
45625 \begin_inset CommandInset href
45628 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45635 \begin_inset Index idx
45638 \begin_layout Plain Layout
45640 -packages ! marginnote
45648 \begin_layout Bibliography
45649 \begin_inset CommandInset bibitem
45650 LatexCommand bibitem
45655 Documentation of the \SpecialChar LaTeX
45659 \begin_inset CommandInset href
45662 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45669 \begin_inset Index idx
45672 \begin_layout Plain Layout
45674 -packages ! pdfpages
45682 \begin_layout Bibliography
45683 \begin_inset CommandInset bibitem
45684 LatexCommand bibitem
45689 Documentation of the \SpecialChar LaTeX
45693 \begin_inset CommandInset href
45696 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45703 \begin_inset Index idx
45706 \begin_layout Plain Layout
45708 -packages ! prettyref
45716 \begin_layout Bibliography
45717 \begin_inset CommandInset bibitem
45718 LatexCommand bibitem
45723 Web page of the \SpecialChar LaTeX
45727 \begin_inset CommandInset href
45730 target "http://tug.org/PSTricks/"
45737 \begin_inset Index idx
45740 \begin_layout Plain Layout
45742 -packages ! PSTricks
45750 \begin_layout Bibliography
45751 \begin_inset CommandInset bibitem
45752 LatexCommand bibitem
45757 Documentation of the \SpecialChar LaTeX
45761 \begin_inset CommandInset href
45764 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45771 \begin_inset Index idx
45774 \begin_layout Plain Layout
45776 -packages ! refstyle
45784 \begin_layout Bibliography
45785 \begin_inset CommandInset bibitem
45786 LatexCommand bibitem
45791 Documentation of the \SpecialChar LaTeX
45795 \begin_inset CommandInset href
45798 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45805 \begin_inset Index idx
45808 \begin_layout Plain Layout
45810 -packages ! sidecap
45818 \begin_layout Bibliography
45819 \begin_inset CommandInset bibitem
45820 LatexCommand bibitem
45826 \begin_inset CommandInset href
45829 target "http://wiki.lyx.org/LyX/NewInLyX20"
45833 about new features in
45841 \begin_layout Standard
45842 \begin_inset CommandInset index_print
45843 LatexCommand printindex