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:
654 \begin_layout Standard
656 \begin_inset Graphics
657 filename clipart/mobius.eps
667 \begin_layout Standard
668 This is the same image like the one above but in draft mode:
671 \begin_layout Standard
673 \begin_inset Graphics
674 filename clipart/mobius.eps
685 \begin_layout Standard
686 \begin_inset Newpage newpage
692 \begin_layout Section
694 \begin_inset CommandInset label
696 name "sec:Figure-Floats"
701 \begin_inset Index idx
704 \begin_layout Plain Layout
711 \begin_inset Index idx
714 \begin_layout Plain Layout
723 \begin_layout Standard
724 For general explanations about floats, have a look at section
729 \begin_inset CommandInset ref
731 reference "sec:FloatIntroduction"
738 \begin_layout Standard
742 arg "float-insert figure"
747 Insert\SpecialChar menuseparator
748 Float\SpecialChar menuseparator
751 inserts a float with a caption that has the label
752 \begin_inset Quotes eld
760 \begin_inset Quotes erd
763 (# is the actual number).
764 You can insert the image above the caption, like in Figure
769 \begin_inset CommandInset ref
771 reference "fig:kill-plat"
775 or below the caption, like in Figure
780 \begin_inset CommandInset ref
782 reference "fig:escher"
787 More about caption placement is described in section
792 \begin_inset CommandInset ref
794 reference "sec:Caption-Placement"
801 \begin_layout Standard
802 \begin_inset Float figure
807 \begin_layout Plain Layout
809 \begin_inset Graphics
810 filename clipart/platypus.eps
820 \begin_layout Plain Layout
821 \begin_inset Caption Standard
823 \begin_layout Plain Layout
824 \begin_inset CommandInset label
830 A severely distorted platypus in a float.
843 \begin_layout Standard
844 \begin_inset Float figure
849 \begin_layout Plain Layout
850 \begin_inset Caption Standard
852 \begin_layout Plain Layout
853 \begin_inset CommandInset label
868 \begin_layout Plain Layout
870 \begin_inset Graphics
871 filename clipart/escher-lsd.eps
886 \begin_layout Standard
887 \begin_inset Index idx
890 \begin_layout Plain Layout
891 References ! to Figures
901 \begin_inset CommandInset ref
903 reference "fig:kill-plat"
908 \begin_inset CommandInset ref
910 reference "fig:escher"
914 are examples of referenced figures.
915 Figures can be referenced in the text by referencing their label.
916 To do this insert a label in the caption using the menu
918 Insert\SpecialChar menuseparator
921 or the toolbar button
928 You can now refer to the label using the menu
930 Insert\SpecialChar menuseparator
937 or the toolbar button
940 arg "dialog-show-new-inset ref"
944 It is important to use references to floats, rather than using vague references
946 \begin_inset Quotes eld
950 \begin_inset Quotes erd
953 , because \SpecialChar LaTeX
954 will reposition the floats in the final document and it might
956 \begin_inset Quotes eld
960 \begin_inset Quotes erd
964 \begin_inset Newline newline
967 Referencing is explained in detail in section
972 \begin_inset CommandInset ref
974 reference "sec:Referencing-Floats"
981 \begin_layout Standard
982 Normally only one image is inserted to a figure float, but sometimes you
983 might want to use two images with separate subcaptions.
984 This can be done by inserting image floats into existing image floats.
985 Note that only the main caption of the float is added to the List of Figures.
991 \begin_inset CommandInset ref
993 reference "fig:Two-distorted-images"
997 is an example of a figure float with two images set side by side.
998 You can also set the images one below the other.
1000 \begin_inset space ~
1004 \begin_inset CommandInset ref
1006 reference "fig:Undefinable-structure"
1011 \begin_inset CommandInset ref
1013 reference "fig:A-Platypus"
1020 \begin_layout Standard
1021 \begin_inset Float figure
1026 \begin_layout Plain Layout
1027 \begin_inset space \hfill{}
1031 \begin_inset Float figure
1036 \begin_layout Plain Layout
1037 \begin_inset Caption Standard
1039 \begin_layout Plain Layout
1040 \begin_inset CommandInset label
1042 name "fig:Undefinable-structure"
1046 Undefinable structure.
1054 \begin_layout Plain Layout
1055 \begin_inset Graphics
1056 filename clipart/escher-lsd.eps
1069 \begin_inset space \hfill{}
1073 \begin_inset Float figure
1078 \begin_layout Plain Layout
1079 \begin_inset Caption Standard
1081 \begin_layout Plain Layout
1082 \begin_inset CommandInset label
1084 name "fig:A-Platypus"
1096 \begin_layout Plain Layout
1097 \begin_inset Graphics
1098 filename clipart/platypus.eps
1111 \begin_inset space \hfill{}
1117 \begin_layout Plain Layout
1118 \begin_inset Caption Standard
1120 \begin_layout Plain Layout
1121 \begin_inset CommandInset label
1123 name "fig:Two-distorted-images"
1127 Two distorted images.
1128 Both images are in the image settings group named
1129 \begin_inset Quotes eld
1133 \begin_inset Quotes erd
1149 \begin_layout Standard
1150 \begin_inset Newpage newpage
1156 \begin_layout Section
1158 \begin_inset CommandInset label
1160 name "sec:Image-Formats"
1165 \begin_inset Index idx
1168 \begin_layout Plain Layout
1175 \begin_inset Index idx
1178 \begin_layout Plain Layout
1179 Figures ! Image Formats
1187 \begin_layout Standard
1188 You can insert images in any known file format.
1189 But as explained in appendix
1190 \begin_inset space ~
1194 \begin_inset CommandInset ref
1196 reference "cha:Output-File-Formats"
1200 , each output document format allows only a few image formats.
1202 uses therefore the program
1206 in the background to convert the images to the right format.
1207 To increase your work flow by avoiding these conversions in the background,
1208 you could choose to use only the image formats that can directly be embedded
1209 in the output file format.
1210 The output file formats are explained in appendix
1211 \begin_inset space ~
1215 \begin_inset CommandInset ref
1217 reference "cha:Output-File-Formats"
1224 \begin_layout Standard
1225 Similar to fonts there are two types of image formats:
1228 \begin_layout Description
1230 \begin_inset space ~
1233 images consist of pixel values, often in a compressed form.
1234 They are therefore not fully scalable and look pixelated in large zooms.
1235 Well-known bitmap image formats are
1236 \begin_inset Quotes eld
1239 Graphics Interchange Format
1240 \begin_inset Quotes erd
1243 (GIF, file extension
1244 \begin_inset Quotes eld
1252 \begin_inset Quotes erd
1256 \begin_inset Index idx
1259 \begin_layout Plain Layout
1264 \begin_layout Plain Layout
1275 \begin_layout Plain Layout
1288 \begin_inset Quotes eld
1291 Portable Network Graphics
1292 \begin_inset Quotes erd
1295 (PNG, file extension
1296 \begin_inset Quotes eld
1304 \begin_inset Quotes erd
1308 \begin_inset Index idx
1311 \begin_layout Plain Layout
1316 \begin_layout Plain Layout
1327 \begin_layout Plain Layout
1340 \begin_inset Quotes eld
1343 Joint Photographic Experts Group
1344 \begin_inset Quotes erd
1347 (JPG, file extension
1348 \begin_inset Quotes eld
1356 \begin_inset Quotes erd
1360 \begin_inset Quotes eld
1368 \begin_inset Quotes erd
1372 \begin_inset Index idx
1375 \begin_layout Plain Layout
1380 \begin_layout Plain Layout
1391 \begin_layout Plain Layout
1406 \begin_layout Description
1408 \begin_inset space ~
1411 images consist of vectors and can therefore be scaled to any size without
1413 The scaling ability is necessary if you want to create presentations, because
1414 presentations are always scaled by the video projector.
1415 Scaling is also useful for online documents to let the user zoom into diagrams.
1416 \begin_inset Newline newline
1419 Well-known scalable image formats are
1420 \begin_inset Quotes eld
1423 Scalable Vector Graphics
1424 \begin_inset Quotes erd
1427 (SVG, file extension
1428 \begin_inset Quotes eld
1436 \begin_inset Quotes erd
1440 \begin_inset Index idx
1443 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1459 \begin_layout Plain Layout
1472 \begin_inset Quotes eld
1475 Encapsulated PostScript
1476 \begin_inset Quotes erd
1479 (EPS, file extension
1480 \begin_inset Quotes eld
1488 \begin_inset Quotes erd
1492 \begin_inset Index idx
1495 \begin_layout Plain Layout
1500 \begin_layout Plain Layout
1511 \begin_layout Plain Layout
1524 \begin_inset Quotes eld
1527 Portable Document Format
1528 \begin_inset Quotes erd
1531 (PDF, file extension
1532 \begin_inset Quotes eld
1540 \begin_inset Quotes erd
1544 \begin_inset Index idx
1547 \begin_layout Plain Layout
1554 \begin_inset Quotes eld
1558 \begin_inset Quotes erd
1561 (WMF, file extension
1562 \begin_inset Quotes eld
1570 \begin_inset Quotes erd
1574 \begin_inset Index idx
1577 \begin_layout Plain Layout
1582 \begin_layout Plain Layout
1593 \begin_layout Plain Layout
1607 \begin_inset Quotes eld
1611 \begin_inset Quotes erd
1614 , because you can convert any bitmap image to a PDF or EPS-image and the
1615 result will still be a bitmap image.
1616 In such cases only a header with the image properties is added to the original
1621 \begin_layout Plain Layout
1622 In the case of PDF, the original image is additionally compressed.
1628 The PDF-files generated by
1632 are for example bitmap images.
1635 \begin_layout Standard
1636 Normally it is not possible to convert a bitmap image into a scalable one,
1638 Only the image formats PDF and EPS can directly be embedded to PDF and
1639 PostScript output files, respectively.
1640 SVG and WMF-images are recalculated to bitmaps when the output file is
1641 generated because there is currently no adequate WMF/SVG
1642 \begin_inset Formula $\to$
1645 PDF/EPS converter available.
1648 \begin_layout Chapter
1650 \begin_inset Index idx
1653 \begin_layout Plain Layout
1662 \begin_layout Section
1664 \begin_inset Index idx
1667 \begin_layout Plain Layout
1668 Table ! Introduction
1676 \begin_layout Standard
1677 You can insert a table using either the toolbar button
1680 arg "tabular-insert"
1685 Insert\SpecialChar menuseparator
1689 The toolbar button offers you a graphical selection: move the mouse to
1690 set the column/row number of the table that should be created and then
1691 press a mouse button.
1692 When you use the menu to create a table, a dialog will appear, asking you
1693 for the number of rows and columns.
1694 \begin_inset Newline newline
1697 The default table has lines around any cell and the first row appears separated
1698 from the rest of the table.
1699 This separation occurs due to a double line: The cells of the first row
1700 have a line below them and the cells of the second row have a line above
1702 Here is an example table:
1705 \begin_layout Standard
1707 \begin_inset Tabular
1708 <lyxtabular version="3" rows="4" columns="4">
1709 <features tabularvalignment="middle">
1710 <column alignment="center" valignment="top">
1711 <column alignment="center" valignment="top">
1712 <column alignment="center" valignment="top">
1713 <column alignment="center" valignment="top">
1715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1718 \begin_layout Plain Layout
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1745 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1754 \begin_layout Plain Layout
1762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1765 \begin_layout Plain Layout
1780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1783 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1801 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1812 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1830 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1848 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1877 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1895 \begin_layout Plain Layout
1909 \begin_layout Section
1911 \begin_inset Index idx
1914 \begin_layout Plain Layout
1923 \begin_layout Standard
1924 You can alter a table by clicking on it with the right mouse button, which
1925 brings up the context menu.
1926 Under the menu entry
1930 you can adjust the settings of that cell and row/column respectively where
1931 the cursor is currently placed.
1934 More\SpecialChar menuseparator
1937 opens the table dialog where you can adjust more things.
1938 Most of the dialog options also work on selections.
1939 This means if you select more cells, columns or rows, the action is done
1940 for the whole selection.
1941 Note that there is a difference between selecting the
1945 of the cell, and the cell itself.
1946 \begin_inset Newline newline
1949 With the dialog option
1952 \begin_inset space ~
1957 every change you make in the dialog is directly applied.
1958 If you move the cursor to another table cell the dialog will then also
1959 be updated with the parameters of the new cell.
1960 If you change length values in the dialog you must press
1964 to get the change applied.
1965 \begin_inset Newline newline
1968 You can alter tables with the following tabs of the table dialog:
1971 \begin_layout Description
1973 \begin_inset space ~
1976 Settings Here you can set the table width
1977 \begin_inset Index idx
1980 \begin_layout Plain Layout
1986 , and the horizontal alignment and the width of the current column.
1990 \begin_inset space ~
1994 \begin_inset space ~
1999 is described in section
2000 \begin_inset space ~
2004 \begin_inset CommandInset ref
2006 reference "subsec:Special-Cell-Alignment"
2011 When you have set a width you can also adjust the vertical alignment of
2013 A given width will allow the cell to have line breaks and multiple paragraphs
2015 \begin_inset space \thinspace{}
2019 \begin_inset CommandInset ref
2021 reference "subsec:Multiple-Lines-in"
2026 If you set no width, the column is as wide as the content of its widest
2028 \begin_inset Newline newline
2031 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2033 \begin_inset space \thinspace{}
2037 \begin_inset CommandInset ref
2039 reference "subsec:Multicolumns"
2043 or the cells of one column as multirow cell, see sec.
2044 \begin_inset space \thinspace{}
2048 \begin_inset CommandInset ref
2050 reference "subsec:Multirows"
2055 \begin_inset Newline newline
2058 The rotate check boxes rotate the current cell, a selection, or the whole
2059 table counter-clockwise by 90
2060 \begin_inset space \thinspace{}
2064 The rotation is not shown within \SpecialChar LyX
2065 , only in the output.
2066 For more information see sec.
2067 \begin_inset space \thinspace{}
2071 \begin_inset CommandInset ref
2073 reference "sec:Rotated-Table-Cells"
2078 \begin_inset Newline newline
2082 \begin_inset Note Greyedout
2085 \begin_layout Plain Layout
2090 Not all DVI-viewers are able to display rotations.
2096 \begin_inset Newline newline
2099 The table-wide vertical alignment is used for tables within text lines:
2100 \begin_inset Newline newline
2103 A line with tables with different alignments:
2104 \begin_inset Tabular
2105 <lyxtabular version="3" rows="2" columns="2">
2106 <features tabularvalignment="top">
2107 <column alignment="center" valignment="top" width="0pt">
2108 <column alignment="center" valignment="top">
2110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2113 \begin_layout Plain Layout
2119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2122 \begin_layout Plain Layout
2139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2142 \begin_layout Plain Layout
2157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2160 \begin_layout Plain Layout
2172 \begin_inset Tabular
2173 <lyxtabular version="3" rows="2" columns="2">
2174 <features tabularvalignment="middle">
2175 <column alignment="center" valignment="top">
2176 <column alignment="center" valignment="top">
2178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2181 \begin_layout Plain Layout
2187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2190 \begin_layout Plain Layout
2207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2210 \begin_layout Plain Layout
2225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2228 \begin_layout Plain Layout
2240 \begin_inset Tabular
2241 <lyxtabular version="3" rows="2" columns="2">
2242 <features tabularvalignment="bottom">
2243 <column alignment="center" valignment="top" width="0pt">
2244 <column alignment="center" valignment="top">
2246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2249 \begin_layout Plain Layout
2255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2258 \begin_layout Plain Layout
2275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2278 \begin_layout Plain Layout
2293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2296 \begin_layout Plain Layout
2308 \begin_inset Newline newline
2311 It is also possible to enter a \SpecialChar LaTeX
2312 -argument which is needed for special table
2313 formattings, see sec.
2314 \begin_inset space \thinspace{}
2318 \begin_inset CommandInset ref
2320 reference "subsec:Multicolumn-Calculations"
2325 \begin_inset CommandInset ref
2327 reference "sec:Colored-Tables"
2334 \begin_layout Description
2335 Borders In this tab you can add and delete border lines for the current
2337 \begin_inset Newline newline
2340 Using the style option
2344 will convert the table to a formal table as described in sec.
2345 \begin_inset space \thinspace{}
2349 \begin_inset CommandInset ref
2351 reference "sec:Formal-Tables"
2356 \begin_inset Newline newline
2359 You can also add space here to table rows as described in sec.
2360 \begin_inset space \thinspace{}
2364 \begin_inset CommandInset ref
2366 reference "subsec:Row-Spacing"
2373 \begin_layout Description
2375 \begin_inset space ~
2378 table This tab is to make a table a multi-page table that can run over several
2381 \begin_inset space ~
2385 \begin_inset CommandInset ref
2387 reference "sec:Multi-page-Tables"
2392 \begin_inset CommandInset ref
2394 reference "sec:Special-Longtable-Issues"
2398 describe the multi-page table features in detail.
2401 \begin_layout Section
2403 \begin_inset Index idx
2406 \begin_layout Plain Layout
2415 \begin_layout Standard
2416 The table toolbar is an alternative to the table dialog to be able to alter
2418 It should normally appear at the bottom of \SpecialChar LyX
2419 's main window when the cursor
2421 You can alternatively switch it on to appear always, by right-clicking
2426 \begin_layout Standard
2427 The toolbar has the following icons:
2430 \begin_layout Labeling
2431 \labelwidthstring 00.00.0000
2434 arg "tabular-feature append-row"
2437 adds a row below the current cell or selection
2440 \begin_layout Labeling
2441 \labelwidthstring 00.00.0000
2444 arg "tabular-feature append-column"
2447 adds a column right beside the current cell or selection
2450 \begin_layout Labeling
2451 \labelwidthstring 00.00.0000
2454 arg "tabular-feature delete-row"
2457 deletes the current row or selection
2460 \begin_layout Labeling
2461 \labelwidthstring 00.00.0000
2464 arg "tabular-feature delete-column"
2467 deletes the current column or selection
2470 \begin_layout Labeling
2471 \labelwidthstring 00.00.0000
2474 arg "tabular-feature move-row-up"
2480 \begin_layout Labeling
2481 \labelwidthstring 00.00.0000
2484 arg "tabular-feature move-column-left"
2487 moves the column to the left
2490 \begin_layout Labeling
2491 \labelwidthstring 00.00.0000
2494 arg "tabular-feature move-row-down"
2500 \begin_layout Labeling
2501 \labelwidthstring 00.00.0000
2504 arg "tabular-feature move-column-right"
2507 moves the column to the right
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2514 arg "tabular-feature toggle-line-top"
2517 adds a line at the top of the current cell / row or of a selection
2520 \begin_layout Labeling
2521 \labelwidthstring 00.00.0000
2524 arg "tabular-feature toggle-line-bottom"
2527 adds a line at the bottom of the current cell / row or of a selection
2530 \begin_layout Labeling
2531 \labelwidthstring 00.00.0000
2534 arg "tabular-feature toggle-line-left"
2537 adds a line at the left side of the current cell / row or of a selection
2540 \begin_layout Labeling
2541 \labelwidthstring 00.00.0000
2544 arg "tabular-feature toggle-line-right"
2547 adds a line at the right side of the current cell / row or of a selection
2550 \begin_layout Labeling
2551 \labelwidthstring 00.00.0000
2554 arg "tabular-feature set-all-lines"
2557 adds lines around the current or selected cells - if the current cell no
2558 multicolumn cell this also affects the current row and column
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2565 arg "tabular-feature unset-all-lines"
2568 deletes all lines of the current or selected cells - if the current cell
2569 no multicolumn cell this also affects the current row and column
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "tabular-feature m-align-left"
2579 left-aligns the content of the current cell / column
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "tabular-feature m-align-center"
2589 centers the content of the current cell / column horizontally
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "tabular-feature m-align-right"
2599 right-aligns the content of the current cell / column
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "tabular-feature align-decimal"
2609 aligns the content of the current column at a character
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "tabular-feature m-valign-top"
2619 aligns the content of the current cell vertically to the top
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "tabular-feature m-valign-middle"
2629 centers the content of the current cell vertically
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "tabular-feature m-valign-bottom"
2639 aligns the content of the current cell vertically to the bottom
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "tabular-feature set-rotate-cell"
2649 rotates the current cell or selection counter-clockwise by 90°
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "tabular-feature set-rotate-tabular"
2659 rotates the whole table counter-clockwise by 90°
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2666 arg "tabular-feature multicolumn"
2669 sets the current cell or selection as a multicolumn
2672 \begin_layout Labeling
2673 \labelwidthstring 00.00.0000
2676 arg "tabular-feature multirow"
2679 sets the current cell or selection as a multirow
2682 \begin_layout Standard
2683 \begin_inset Note Greyedout
2686 \begin_layout Plain Layout
2691 For the output the vertical alignment of the first cell in a row is used
2692 for all following cells in the row.
2700 \begin_layout Section
2702 \begin_inset Index idx
2705 \begin_layout Plain Layout
2714 \begin_layout Standard
2715 In addition to the table dialog and toolbar, the menu
2717 Edit\SpecialChar menuseparator
2720 allows you to add and delete border lines for the current row/column and
2721 to set the current selection as multicolumn.
2722 The menu is only available when the cursor is inside a table.
2725 \begin_layout Section
2727 \begin_inset CommandInset label
2729 name "sec:Table-Floats"
2734 \begin_inset Index idx
2737 \begin_layout Plain Layout
2744 \begin_inset Index idx
2747 \begin_layout Plain Layout
2756 \begin_layout Standard
2757 For general explanations about floats, have a look at section
2758 \begin_inset space ~
2762 \begin_inset CommandInset ref
2764 reference "sec:FloatIntroduction"
2771 \begin_layout Standard
2772 \begin_inset Float table
2778 \begin_layout Plain Layout
2779 \begin_inset Caption Standard
2781 \begin_layout Plain Layout
2782 \begin_inset CommandInset label
2784 name "tab:a table float"
2796 \begin_layout Plain Layout
2798 \begin_inset Tabular
2799 <lyxtabular version="3" rows="3" columns="3">
2800 <features tabularvalignment="middle">
2801 <column alignment="center" valignment="top" width="0pt">
2802 <column alignment="center" valignment="top" width="0pt">
2803 <column alignment="center" valignment="top" width="0pt">
2805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2808 \begin_layout Plain Layout
2823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2826 \begin_layout Plain Layout
2841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2844 \begin_layout Plain Layout
2861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2864 \begin_layout Plain Layout
2879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2882 \begin_layout Plain Layout
2897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2900 \begin_layout Plain Layout
2917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2920 \begin_layout Plain Layout
2930 \begin_inset Formula $\int x^{2}dx$
2938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2941 \begin_layout Plain Layout
2951 \begin_inset Formula $\left[\begin{array}{cc}
2962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2965 \begin_layout Plain Layout
2975 \begin_inset Formula $1+1=2$
2996 \begin_layout Standard
2997 Table floats can be inserted using the menu
2999 Insert\SpecialChar menuseparator
3000 Float\SpecialChar menuseparator
3003 or the toolbar button
3006 arg "float-insert table"
3012 \begin_layout Standard
3013 The float appears as a collapsible box with a caption that has the label
3015 \begin_inset Quotes eld
3019 \begin_inset space ~
3023 \begin_inset Quotes erd
3026 (# is the actual table number).
3027 You can insert tables in the float above or below the caption.
3030 \begin_layout Standard
3032 \begin_inset space ~
3036 \begin_inset CommandInset ref
3038 reference "tab:a table float"
3042 is an example table within a table float.
3045 \begin_layout Standard
3046 Having the caption above the table is the common rule that is unfortunately
3047 not supported in \SpecialChar LaTeX
3048 's standard classes.
3049 This means that, if you are using the document classes
3065 , there will be no space between the caption and the table.
3066 To insert the needed space, add the following option to the load command
3067 of the \SpecialChar LaTeX
3073 \begin_inset Index idx
3076 \begin_layout Plain Layout
3083 in your document preamble:
3087 \begin_layout Plain Layout
3088 For more information have a look at section
3089 \begin_inset space ~
3093 \begin_inset CommandInset ref
3095 reference "sec:Caption-Placement"
3107 \begin_layout Standard
3113 \begin_layout Standard
3118 , which is described in section
3119 \begin_inset space ~
3123 \begin_inset CommandInset ref
3125 reference "sec:Caption-Formatting"
3129 , is used to adjust the caption format.
3132 \begin_layout Standard
3133 \begin_inset Index idx
3136 \begin_layout Plain Layout
3137 References ! to Tables
3142 Tables can be cross-referenced in the text by referencing their label.
3143 To do this insert a label in the caption using the menu
3145 Insert\SpecialChar menuseparator
3148 or the toolbar button
3155 You can now refer to the label using the menu
3157 Insert\SpecialChar menuseparator
3159 \begin_inset space ~
3164 or the toolbar button
3167 arg "dialog-show-new-inset ref"
3171 \begin_inset Newline newline
3174 Referencing is explained in detail in section
3175 \begin_inset space ~
3179 \begin_inset CommandInset ref
3181 reference "sec:Referencing-Floats"
3188 \begin_layout Section
3194 \begin_inset CommandInset label
3196 name "sec:Multi-page-Tables"
3201 \begin_inset Index idx
3204 \begin_layout Plain Layout
3211 \begin_inset Index idx
3214 \begin_layout Plain Layout
3215 Table ! Multi-page Table
3223 \begin_layout Standard
3224 If the table is too long to fit on one page, you can use the option
3227 \begin_inset space ~
3235 \begin_inset space ~
3240 of the table dialog to split the table automatically over more pages.
3241 Doing this enables the following options:
3244 \begin_layout Description
3245 Header: The current row is defined to be a header row that appears on all
3246 pages of the multi-page table; except for the first page, if
3249 \begin_inset space ~
3255 This is therefore called the main header.
3258 \begin_layout Description
3260 \begin_inset space ~
3263 header: The current row is defined to be a header row that appears on the
3264 first page of the multi-page table.
3267 \begin_layout Description
3268 Footer: The current row is defined to be a footer row that appears on all
3269 pages of the multi-page table; except for the last page, if
3272 \begin_inset space ~
3280 \begin_layout Description
3282 \begin_inset space ~
3285 footer: The current row is defined to be a footer row that appears on the
3286 last page of the multi-page table.
3289 \begin_layout Description
3290 Caption: The current row contains the table caption.
3291 The row is reset as single column and a caption is inserted.
3292 More about multi-page table captions is explained in sec.
3293 \begin_inset space \thinspace{}
3297 \begin_inset CommandInset ref
3299 reference "subsec:Multi-page-Table-Captions"
3306 \begin_layout Standard
3307 You can also specify a row where the table is split.
3308 See the following multi-page table to see how it works:
3311 \begin_layout Standard
3313 \begin_inset Tabular
3314 <lyxtabular version="3" rows="69" columns="3">
3315 <features islongtable="true" longtabularalignment="center">
3316 <column alignment="left" valignment="top" width="0cm">
3317 <column alignment="left" valignment="top" width="0pt">
3318 <column alignment="center" valignment="top" width="0pt">
3319 <row endfirsthead="true">
3320 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3323 \begin_layout Plain Layout
3326 Example Phone List (ignore the names)
3331 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3334 \begin_layout Plain Layout
3340 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3343 \begin_layout Plain Layout
3350 <row endfirsthead="true">
3351 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3354 \begin_layout Plain Layout
3362 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3365 \begin_layout Plain Layout
3371 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3374 \begin_layout Plain Layout
3383 <row endhead="true">
3384 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3398 \begin_layout Plain Layout
3404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Plain Layout
3414 <row endhead="true">
3415 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3447 <row endfoot="true">
3448 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3451 \begin_layout Plain Layout
3452 continued on next page
3457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" usebox="none">
3491 \begin_layout Plain Layout
3497 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" usebox="none">
3522 \begin_layout Plain Layout
3528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" usebox="none">
3553 \begin_layout Plain Layout
3559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" usebox="none">
3584 \begin_layout Plain Layout
3590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" usebox="none">
3615 \begin_layout Plain Layout
3621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3624 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" usebox="none">
3646 \begin_layout Plain Layout
3652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3655 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" usebox="none">
3677 \begin_layout Plain Layout
3683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3686 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" usebox="none">
3708 \begin_layout Plain Layout
3714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3717 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" usebox="none">
3739 \begin_layout Plain Layout
3745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3748 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" usebox="none">
3770 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3779 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" usebox="none">
3801 \begin_layout Plain Layout
3807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3810 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" usebox="none">
3832 \begin_layout Plain Layout
3838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3841 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" usebox="none">
3863 \begin_layout Plain Layout
3869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3872 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" usebox="none">
3894 \begin_layout Plain Layout
3900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3903 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" usebox="none">
3925 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3934 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" usebox="none">
3956 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3965 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" usebox="none">
3987 \begin_layout Plain Layout
3993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3996 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" usebox="none">
4018 \begin_layout Plain Layout
4024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4027 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" usebox="none">
4080 \begin_layout Plain Layout
4086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4089 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" usebox="none">
4111 \begin_layout Plain Layout
4117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4120 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" usebox="none">
4142 \begin_layout Plain Layout
4148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4151 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4182 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" usebox="none">
4204 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4213 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" usebox="none">
4235 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4244 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" usebox="none">
4266 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4275 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" usebox="none">
4297 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4306 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" usebox="none">
4328 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4337 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" usebox="none">
4359 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4368 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" usebox="none">
4390 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4399 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4421 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4430 \begin_layout Plain Layout
4438 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4447 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Plain Layout
4456 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" usebox="none">
4481 \begin_layout Plain Layout
4487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4498 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" usebox="none">
4512 \begin_layout Plain Layout
4518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Plain Layout
4529 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="center" valignment="top" usebox="none">
4574 \begin_layout Plain Layout
4580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Plain Layout
4591 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="center" valignment="top" usebox="none">
4605 \begin_layout Plain Layout
4611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4614 \begin_layout Plain Layout
4622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="center" valignment="top" usebox="none">
4636 \begin_layout Plain Layout
4642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4645 \begin_layout Plain Layout
4653 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="center" valignment="top" usebox="none">
4667 \begin_layout Plain Layout
4673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4676 \begin_layout Plain Layout
4684 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="center" valignment="top" usebox="none">
4698 \begin_layout Plain Layout
4704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4707 \begin_layout Plain Layout
4715 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="center" valignment="top" usebox="none">
4729 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4738 \begin_layout Plain Layout
4746 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="center" valignment="top" usebox="none">
4760 \begin_layout Plain Layout
4766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4769 \begin_layout Plain Layout
4777 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="center" valignment="top" usebox="none">
4791 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4800 \begin_layout Plain Layout
4808 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="center" valignment="top" usebox="none">
4822 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4831 \begin_layout Plain Layout
4839 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="center" valignment="top" usebox="none">
4853 \begin_layout Plain Layout
4859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4862 \begin_layout Plain Layout
4870 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="center" valignment="top" usebox="none">
4884 \begin_layout Plain Layout
4890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4893 \begin_layout Plain Layout
4901 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="center" valignment="top" usebox="none">
4915 \begin_layout Plain Layout
4921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4924 \begin_layout Plain Layout
4932 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="center" valignment="top" usebox="none">
4946 \begin_layout Plain Layout
4952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4955 \begin_layout Plain Layout
4963 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="center" valignment="top" usebox="none">
4977 \begin_layout Plain Layout
4983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4986 \begin_layout Plain Layout
4994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="center" valignment="top" usebox="none">
5008 \begin_layout Plain Layout
5014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5017 \begin_layout Plain Layout
5025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="center" valignment="top" usebox="none">
5039 \begin_layout Plain Layout
5045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5048 \begin_layout Plain Layout
5056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="center" valignment="top" usebox="none">
5070 \begin_layout Plain Layout
5076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5079 \begin_layout Plain Layout
5087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="center" valignment="top" usebox="none">
5101 \begin_layout Plain Layout
5107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5110 \begin_layout Plain Layout
5118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="center" valignment="top" usebox="none">
5132 \begin_layout Plain Layout
5138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5141 \begin_layout Plain Layout
5149 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="center" valignment="top" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5172 \begin_layout Plain Layout
5180 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="center" valignment="top" usebox="none">
5194 \begin_layout Plain Layout
5200 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5203 \begin_layout Plain Layout
5211 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="center" valignment="top" usebox="none">
5225 \begin_layout Plain Layout
5231 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5234 \begin_layout Plain Layout
5242 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="center" valignment="top" usebox="none">
5256 \begin_layout Plain Layout
5262 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5265 \begin_layout Plain Layout
5273 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="center" valignment="top" usebox="none">
5287 \begin_layout Plain Layout
5293 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5296 \begin_layout Plain Layout
5304 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="center" valignment="top" usebox="none">
5318 \begin_layout Plain Layout
5324 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5327 \begin_layout Plain Layout
5335 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="center" valignment="top" usebox="none">
5349 \begin_layout Plain Layout
5355 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5358 \begin_layout Plain Layout
5366 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="center" valignment="top" usebox="none">
5380 \begin_layout Plain Layout
5386 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5389 \begin_layout Plain Layout
5397 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5411 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5420 \begin_layout Plain Layout
5427 <row endlastfoot="true">
5428 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5431 \begin_layout Plain Layout
5437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5440 \begin_layout Plain Layout
5446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5449 \begin_layout Plain Layout
5464 \begin_layout Plain Layout
5468 addtocounter{table}{-1}
5474 \begin_inset Note Note
5477 \begin_layout Plain Layout
5478 See the first greyed-out note in section
5479 \begin_inset space ~
5483 \begin_inset CommandInset ref
5485 reference "subsec:Multi-page-Table-Captions"
5489 for an explanation of this command.
5497 \begin_layout Subsection
5498 Footnotes in Multi-page tables
5499 \begin_inset CommandInset label
5501 name "subsec:Footnotes-in-Multi-page"
5506 \begin_inset Index idx
5509 \begin_layout Plain Layout
5510 Table ! Multi-page Table ! Footnotes
5518 \begin_layout Standard
5519 Footnotes can be inserted to every Multi-page table cell.
5520 They appear at the bottom of the page where the table cell with the footnote
5523 \begin_inset space ~
5527 \begin_inset CommandInset ref
5529 reference "tab:DiffCaptions"
5533 has for example a footnote.
5536 \begin_layout Subsection
5537 Multi-page Table Alignment
5538 \begin_inset Index idx
5541 \begin_layout Plain Layout
5542 Table ! Multi-page Table ! Alignment
5550 \begin_layout Standard
5551 The horizontal alignment of multi-page tables can be set in the table settings
5553 For left- and right-alignment the table will be directly at the page border.
5554 To add space between the table and the border one has to set the alignment
5555 to center and change the value of the \SpecialChar LaTeX
5568 by inserting this line as \SpecialChar TeX
5569 Code before the multi-page table:
5572 \begin_layout Standard
5582 \begin_layout Standard
5583 The value can have any of the units listed in Table
5584 \begin_inset space ~
5588 \begin_inset CommandInset ref
5590 reference "tab:Units"
5601 controls the horizontal distance from the left page border to the multi-page
5608 the distance from the right side.
5609 The default value for both lengths is
5615 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5619 \begin_layout Standard
5620 The following multi-page table was centered and
5636 \begin_layout Plain Layout
5652 \begin_layout Standard
5653 \begin_inset Tabular
5654 <lyxtabular version="3" rows="5" columns="5">
5655 <features islongtable="true" longtabularalignment="center">
5656 <column alignment="center" valignment="top">
5657 <column alignment="center" valignment="top" width="0pt">
5658 <column alignment="center" valignment="top">
5659 <column alignment="center" valignment="top">
5660 <column alignment="center" valignment="top">
5662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5665 \begin_layout Plain Layout
5671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5674 \begin_layout Plain Layout
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5683 \begin_layout Plain Layout
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Plain Layout
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5701 \begin_layout Plain Layout
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Plain Layout
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5748 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Plain Layout
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Plain Layout
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5795 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5842 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5889 \begin_layout Plain Layout
5904 \begin_layout Plain Layout
5921 \begin_layout Plain Layout
5925 addtocounter{table}{-1}
5931 \begin_inset Note Note
5934 \begin_layout Plain Layout
5935 See the first greyed-out note in section
5936 \begin_inset space ~
5940 \begin_inset CommandInset ref
5942 reference "subsec:Multi-page-Table-Captions"
5946 for an explanation of this command.
5954 \begin_layout Subsection
5955 Multi-page Table Captions
5956 \begin_inset Index idx
5959 \begin_layout Plain Layout
5960 Table ! Multi-page Table ! Captions
5966 \begin_inset CommandInset label
5968 name "subsec:Multi-page-Table-Captions"
5975 \begin_layout Standard
5976 A multi-page table cannot be put into a table float because floats can only
5978 But the caption environment of floats can also be used for multi-page tables
5979 when you use the multi-page table option
5983 as described in sec.
5984 \begin_inset space \thinspace{}
5988 \begin_inset CommandInset ref
5990 reference "sec:Multi-page-Tables"
5995 Only one table row should contain a caption, either a header or a footer
5999 \begin_layout Standard
6000 Here is a short multi-page table to see how it works:
6003 \begin_layout Standard
6004 \begin_inset Tabular
6005 <lyxtabular version="3" rows="6" columns="5">
6006 <features islongtable="true" longtabularalignment="center">
6007 <column alignment="center" valignment="top">
6008 <column alignment="center" valignment="top">
6009 <column alignment="center" valignment="top">
6010 <column alignment="center" valignment="top">
6011 <column alignment="center" valignment="top">
6012 <row endfirsthead="true" caption="true">
6013 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6016 \begin_layout Plain Layout
6017 \begin_inset Caption Standard
6019 \begin_layout Plain Layout
6020 Multi-page table with caption
6021 \begin_inset Argument 1
6024 \begin_layout Plain Layout
6040 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6043 \begin_layout Plain Layout
6049 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6052 \begin_layout Plain Layout
6058 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6061 \begin_layout Plain Layout
6067 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6070 \begin_layout Plain Layout
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Plain Layout
6114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6117 \begin_layout Plain Layout
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Plain Layout
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Plain Layout
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6155 \begin_layout Plain Layout
6161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6164 \begin_layout Plain Layout
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6211 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6258 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6305 \begin_layout Plain Layout
6319 \begin_layout Standard
6320 \begin_inset VSpace medskip
6324 \begin_inset Note Greyedout
6327 \begin_layout Plain Layout
6331 \begin_inset space ~
6336 The table number is increased for every multi-page table, even if you did
6337 not set a caption for it.
6338 For this reason you could have the case that e.
6339 \begin_inset space \thinspace{}
6343 \begin_inset space \space{}
6347 \begin_inset space ~
6351 \begin_inset space ~
6354 2.1 in the list of tables if there are two multi-page tables without captions.
6355 To avoid this you can add the following command in \SpecialChar TeX
6356 Code after every multi-page
6357 table without a caption:
6360 \begin_layout Plain Layout
6365 addtocounter{table}{-1}
6368 \begin_layout Plain Layout
6369 This is not needed when none of your multi-page tables has a caption and
6370 you add the following code to the document preamble:
6373 \begin_layout Plain Layout
6383 \begin_inset Newline newline
6394 addtocounter{table}{-1}}
6402 \begin_layout Standard
6403 \begin_inset Note Greyedout
6406 \begin_layout Plain Layout
6410 \begin_inset space ~
6420 \begin_inset Index idx
6423 \begin_layout Plain Layout
6425 -packages ! hyperref
6438 dialog to link cross-references, the link to a multi-page table caption
6439 will always point to the beginning of the document.
6447 \begin_layout Subsubsection
6448 References to multi-page tables
6449 \begin_inset Index idx
6452 \begin_layout Plain Layout
6453 Table ! Multi-page Table ! References
6461 \begin_layout Standard
6462 \begin_inset Tabular
6463 <lyxtabular version="3" rows="6" columns="5">
6464 <features islongtable="true" longtabularalignment="center">
6465 <column alignment="center" valignment="top">
6466 <column alignment="center" valignment="top">
6467 <column alignment="center" valignment="top">
6468 <column alignment="center" valignment="top">
6469 <column alignment="center" valignment="top">
6470 <row endfirsthead="true" caption="true">
6471 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6474 \begin_layout Plain Layout
6475 \begin_inset Caption Standard
6477 \begin_layout Plain Layout
6478 Referenced multi-page table
6479 \begin_inset CommandInset label
6481 name "tab:Referenced-multi-page-table"
6495 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6498 \begin_layout Plain Layout
6504 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6507 \begin_layout Plain Layout
6513 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6516 \begin_layout Plain Layout
6522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6525 \begin_layout Plain Layout
6533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6536 \begin_layout Plain Layout
6542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6545 \begin_layout Plain Layout
6551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6554 \begin_layout Plain Layout
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6572 \begin_layout Plain Layout
6580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6583 \begin_layout Plain Layout
6589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6592 \begin_layout Plain Layout
6598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6601 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6619 \begin_layout Plain Layout
6627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6648 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6666 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6713 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6742 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6760 \begin_layout Plain Layout
6774 \begin_layout Standard
6775 To reference a multi-page table, insert a label into the caption.
6778 \begin_layout Standard
6779 This is a reference to Table
6780 \begin_inset space ~
6784 \begin_inset CommandInset ref
6786 reference "tab:Referenced-multi-page-table"
6793 \begin_layout Standard
6794 The caption layout can be set together with all other captions of your document
6795 using the \SpecialChar LaTeX
6801 \begin_inset Index idx
6804 \begin_layout Plain Layout
6812 \begin_inset space ~
6816 \begin_inset CommandInset ref
6818 reference "sec:Caption-Formatting"
6825 \begin_layout Subsubsection
6827 \begin_inset Index idx
6830 \begin_layout Plain Layout
6831 Table ! Multi-page Table ! Caption Width
6839 \begin_layout Standard
6840 The maximal width of caption lines is defined by the length
6847 Its default value is 4
6848 \begin_inset space \thinspace{}
6852 To change it add the following command to your document preamble or as
6854 Code into your document before the multi-page table that should be affected
6857 \begin_layout Standard
6867 \begin_layout Standard
6872 can have one of the units listed in appendix
6873 \begin_inset space ~
6877 \begin_inset CommandInset ref
6879 reference "cha:Units-available-in"
6886 \begin_layout Standard
6887 The following tables show the difference:
6890 \begin_layout Standard
6891 \begin_inset Tabular
6892 <lyxtabular version="3" rows="6" columns="5">
6893 <features islongtable="true" longtabularalignment="center">
6894 <column alignment="center" valignment="top">
6895 <column alignment="center" valignment="top">
6896 <column alignment="center" valignment="top">
6897 <column alignment="center" valignment="top">
6898 <column alignment="center" valignment="top">
6899 <row endfirsthead="true" caption="true">
6900 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6903 \begin_layout Plain Layout
6904 \begin_inset Caption Standard
6906 \begin_layout Plain Layout
6907 Long full title with default width long full title with default width long
6908 full title with default width
6909 \begin_inset Argument 1
6912 \begin_layout Plain Layout
6913 caption with default width
6928 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6931 \begin_layout Plain Layout
6937 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6940 \begin_layout Plain Layout
6946 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6949 \begin_layout Plain Layout
6955 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6958 \begin_layout Plain Layout
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6969 \begin_layout Plain Layout
6975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6978 \begin_layout Plain Layout
6984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6987 \begin_layout Plain Layout
6993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6996 \begin_layout Plain Layout
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7005 \begin_layout Plain Layout
7013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7016 \begin_layout Plain Layout
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7025 \begin_layout Plain Layout
7031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7034 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7052 \begin_layout Plain Layout
7060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7063 \begin_layout Plain Layout
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7072 \begin_layout Plain Layout
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7081 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7099 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Plain Layout
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7119 \begin_layout Plain Layout
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7128 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7146 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7157 \begin_layout Plain Layout
7163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7166 \begin_layout Plain Layout
7172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7175 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7193 \begin_layout Plain Layout
7207 \begin_layout Standard
7211 \begin_layout Plain Layout
7223 \begin_inset Tabular
7224 <lyxtabular version="3" rows="6" columns="5">
7225 <features islongtable="true" longtabularalignment="center">
7226 <column alignment="center" valignment="top">
7227 <column alignment="center" valignment="top">
7228 <column alignment="center" valignment="top">
7229 <column alignment="center" valignment="top">
7230 <column alignment="center" valignment="top">
7231 <row endfirsthead="true" caption="true">
7232 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7235 \begin_layout Plain Layout
7236 \begin_inset Caption Standard
7238 \begin_layout Plain Layout
7239 Long full title with width set to 5
7240 \begin_inset space \thinspace{}
7243 cm long full title with width set to 5
7244 \begin_inset space \thinspace{}
7247 cm long full title with width set to 5
7248 \begin_inset space \thinspace{}
7252 \begin_inset Argument 1
7255 \begin_layout Plain Layout
7257 \begin_inset space \thinspace{}
7261 \begin_inset space \thinspace{}
7265 \begin_inset space \thinspace{}
7283 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7286 \begin_layout Plain Layout
7292 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7295 \begin_layout Plain Layout
7301 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7304 \begin_layout Plain Layout
7310 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7313 \begin_layout Plain Layout
7321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7324 \begin_layout Plain Layout
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7333 \begin_layout Plain Layout
7339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7342 \begin_layout Plain Layout
7348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7351 \begin_layout Plain Layout
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7360 \begin_layout Plain Layout
7368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7371 \begin_layout Plain Layout
7377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7380 \begin_layout Plain Layout
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7389 \begin_layout Plain Layout
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7398 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7407 \begin_layout Plain Layout
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Plain Layout
7424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7427 \begin_layout Plain Layout
7433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7436 \begin_layout Plain Layout
7442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7454 \begin_layout Plain Layout
7462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7465 \begin_layout Plain Layout
7471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7474 \begin_layout Plain Layout
7480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7483 \begin_layout Plain Layout
7489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7492 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7501 \begin_layout Plain Layout
7509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7521 \begin_layout Plain Layout
7527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7530 \begin_layout Plain Layout
7536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7539 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7548 \begin_layout Plain Layout
7562 \begin_layout Standard
7566 \begin_layout Plain Layout
7580 \begin_layout Standard
7581 \begin_inset Note Greyedout
7584 \begin_layout Plain Layout
7589 When the \SpecialChar LaTeX
7595 \begin_inset Index idx
7598 \begin_layout Plain Layout
7605 is used, as in this document, the full page width is used for the caption
7606 when you use the default value of 4
7607 \begin_inset space \thinspace{}
7617 To get in this case exactly a 4
7618 \begin_inset space \thinspace{}
7621 in wide caption, you can either use a value slightly different from 4.0
7622 \begin_inset space \thinspace{}
7626 \begin_inset space \thinspace{}
7630 \begin_inset space \space{}
7634 \begin_inset space \thinspace{}
7637 in, or the \SpecialChar LaTeX
7642 captionsetup{width=value}
7644 that is provided by the
7656 \begin_layout Subsubsection
7657 Different Captions for Table Pages
7658 \begin_inset Index idx
7661 \begin_layout Plain Layout
7662 Table ! Multi-page Table ! Different Captions for Pages
7670 \begin_layout Standard
7671 When the table captions for the following pages should differ from the one
7672 of the first table page, mark a empty row as header which contains a caption.
7673 Then right-click on the caption and select in the context menu
7676 \begin_inset space ~
7683 \begin_inset space ~
7687 \begin_inset CommandInset ref
7689 reference "tab:DiffCaptions"
7693 is an example of a multi-page table with different heading where the second
7694 caption does not include the table number.
7697 \begin_layout Standard
7699 \begin_inset Tabular
7700 <lyxtabular version="3" rows="59" columns="3">
7701 <features islongtable="true" longtabularalignment="center">
7702 <column alignment="left" valignment="top" width="0cm">
7703 <column alignment="left" valignment="top" width="0pt">
7704 <column alignment="center" valignment="top" width="0pt">
7705 <row endfirsthead="true" caption="true">
7706 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7709 \begin_layout Plain Layout
7710 \begin_inset Caption Standard
7712 \begin_layout Plain Layout
7714 \begin_inset CommandInset label
7716 name "tab:DiffCaptions"
7721 \begin_inset Argument 1
7724 \begin_layout Plain Layout
7740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7743 \begin_layout Plain Layout
7749 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7752 \begin_layout Plain Layout
7759 <row endfirsthead="true">
7760 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7763 \begin_layout Plain Layout
7766 Example Phone List (ignore the names)
7771 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7774 \begin_layout Plain Layout
7780 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7783 \begin_layout Plain Layout
7790 <row endfirsthead="true">
7791 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7794 \begin_layout Plain Layout
7802 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7805 \begin_layout Plain Layout
7811 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Plain Layout
7823 <row endhead="true" caption="true">
7824 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7827 \begin_layout Plain Layout
7828 \begin_inset Caption Unnumbered
7830 \begin_layout Plain Layout
7831 Continued Example Phone List
7841 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7844 \begin_layout Plain Layout
7850 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7853 \begin_layout Plain Layout
7860 <row endhead="true">
7861 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7864 \begin_layout Plain Layout
7872 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7875 \begin_layout Plain Layout
7881 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7891 <row endhead="true">
7892 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7906 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7924 <row endfoot="true">
7925 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7928 \begin_layout Plain Layout
7929 continued on next page
7934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7937 \begin_layout Plain Layout
7943 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7965 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7968 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7999 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8030 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8061 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8092 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8123 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8400 \begin_layout Plain Layout
8411 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8414 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8442 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8445 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8476 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8507 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8538 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8569 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8600 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8631 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8693 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8702 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8724 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8755 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8786 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8817 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8848 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8879 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8910 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8936 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8939 \begin_layout Plain Layout
8945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8967 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8970 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9032 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9063 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9094 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9125 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9156 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9187 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9218 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9249 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9280 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9311 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9320 \begin_layout Plain Layout
9328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9342 \begin_layout Plain Layout
9348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9351 \begin_layout Plain Layout
9359 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9373 \begin_layout Plain Layout
9379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9382 \begin_layout Plain Layout
9390 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9404 \begin_layout Plain Layout
9410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9413 \begin_layout Plain Layout
9421 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9435 \begin_layout Plain Layout
9441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9444 \begin_layout Plain Layout
9452 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9466 \begin_layout Plain Layout
9472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9475 \begin_layout Plain Layout
9483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9497 \begin_layout Plain Layout
9503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9506 \begin_layout Plain Layout
9514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9528 \begin_layout Plain Layout
9534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9537 \begin_layout Plain Layout
9545 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9559 \begin_layout Plain Layout
9565 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9568 \begin_layout Plain Layout
9582 \begin_layout Section
9583 Special Multi-page Table Issues
9584 \begin_inset CommandInset label
9586 name "sec:Special-Longtable-Issues"
9593 \begin_layout Subsection
9594 Multi-page Table Calculation
9595 \begin_inset Index idx
9598 \begin_layout Plain Layout
9599 Table ! Multi-page Table ! Calculation
9607 \begin_layout Standard
9609 calculates the height of table pages and their page breaks using so called
9611 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9613 The default value was historically set to only 20
9614 \begin_inset space ~
9618 If you are using multi-page tables with many pages this may slow down the
9619 creation of your document.
9620 You can safely increase the chunk size to values of 100
9621 \begin_inset space \thinspace{}
9625 \begin_inset space \thinspace{}
9628 1000 by adding this command line to your document preamble:
9631 \begin_layout Standard
9636 setcounter{LTchunksize}{100}
9639 \begin_layout Subsection
9640 Floats and Multi-page Tables
9641 \begin_inset Index idx
9644 \begin_layout Plain Layout
9645 Table ! Multi-page Table ! Floats
9653 \begin_layout Standard
9654 There might be problems when a float appears on the same page where a multi-page
9656 To avoid such a situation, insert a
9657 \begin_inset Quotes eld
9661 \begin_inset Quotes erd
9666 Insert\SpecialChar menuseparator
9667 Formatting\SpecialChar menuseparator
9669 \begin_inset space ~
9674 ) before your multi-page table.
9677 \begin_layout Subsection
9679 \begin_inset Index idx
9682 \begin_layout Plain Layout
9683 Table ! Multi-page Table ! Forced Page Breaks
9691 \begin_layout Standard
9692 By default tables are only broken between rows.
9693 If you have a cell with multiples lines and want to have a page break within
9694 the cell, insert the new line command
9695 \begin_inset Quotes eld
9707 \begin_inset Quotes erd
9711 Code at the point of the cell where it can be broken.
9720 command you have to insert in \SpecialChar TeX
9722 \begin_inset Quotes eld
9730 \begin_inset Quotes erd
9733 characters as the number of the following table columns.
9738 is the character to separate table cells.
9739 Write in \SpecialChar TeX
9744 the content of the corresponding following cell and delete the content
9746 \begin_inset Newline newline
9757 command, insert as many
9761 characters as the number of table columns before the current column.
9763 \begin_inset space ~
9767 \begin_inset CommandInset ref
9769 reference "tab:ForcedPagebreak"
9773 the cell that should be broken is in the second column followed by another
9775 Therefore the following command was inserted in the cell as \SpecialChar TeX
9778 \begin_inset Quotes eld
9786 \begin_inset Quotes erd
9792 \begin_layout Standard
9802 \begin_inset Newline newline
9808 \begin_layout Standard
9810 \begin_inset Quotes eld
9814 \begin_inset Quotes erd
9817 in the third column of the row was deleted.
9824 is only needed when a page break should definitely occur at this position,
9825 otherwise it would be a conditional break.
9826 If your footer row of the multi-page table has for a certain reason no
9827 upper line but you would have a horizontal line where the cell is broken,
9828 use this command instead:
9831 \begin_layout Standard
9839 \begin_inset Newline newline
9847 \begin_layout Standard
9848 When the cell to be broken is in the last column, the command
9851 \begin_layout Standard
9861 \begin_layout Standard
9862 must be inserted as \SpecialChar TeX
9863 Code at the beginning of the cell.
9864 This ensures that the part of the cell that will be displayed on the new
9865 page appears with the full width.
9868 \begin_layout Standard
9870 \begin_inset Tabular
9871 <lyxtabular version="3" rows="38" columns="3">
9872 <features islongtable="true" longtabularalignment="center">
9873 <column alignment="left" valignment="top" width="0cm">
9874 <column alignment="left" valignment="top" width="3cm">
9875 <column alignment="center" valignment="top" width="0pt">
9876 <row endfirsthead="true" caption="true">
9877 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9880 \begin_layout Plain Layout
9881 \begin_inset Caption Standard
9883 \begin_layout Plain Layout
9884 Table with forced page break in table cell
9885 \begin_inset CommandInset label
9887 name "tab:ForcedPagebreak"
9892 \begin_inset Argument 1
9895 \begin_layout Plain Layout
9896 Table with forced page break in table cell
9911 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9914 \begin_layout Plain Layout
9920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9923 \begin_layout Plain Layout
9930 <row endfirsthead="true">
9931 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9937 Example Phone List (ignore the names)
9942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9961 <row endfirsthead="true">
9962 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9994 <row endhead="true" caption="true">
9995 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9998 \begin_layout Plain Layout
9999 \begin_inset Caption Unnumbered
10001 \begin_layout Plain Layout
10002 Continued Example Phone List
10012 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10031 <row endhead="true">
10032 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10062 <row endhead="true">
10063 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10095 <row endfoot="true">
10096 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10099 \begin_layout Plain Layout
10100 continued on next page
10105 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10548 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10551 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10613 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10644 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10675 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10706 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10737 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10768 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10799 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10823 Fürst von Montecompatri, 11.
10824 Fürst von Sulmona und Vivaro, 10.
10825 Fürst von Rossano, 5.
10826 Herzog von Canemorte, 11.
10827 Herzog von Palombara, 5.
10828 Herzog von Castelchiodato,
10832 \begin_layout Plain Layout
10843 \begin_layout Plain Layout
10851 Herzog von Poggionativo, 11.
10852 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10853 Graf von Valinfreda, 11.
10854 Baron von Cropalati, 11.
10855 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10863 \begin_layout Plain Layout
10871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10874 \begin_layout Plain Layout
10882 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10885 \begin_layout Plain Layout
10891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10894 \begin_layout Plain Layout
10902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10905 \begin_layout Plain Layout
10913 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10916 \begin_layout Plain Layout
10922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10925 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10936 \begin_layout Plain Layout
10944 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10956 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10975 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10998 \begin_layout Plain Layout
11006 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11009 \begin_layout Plain Layout
11015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11018 \begin_layout Plain Layout
11026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11040 \begin_layout Plain Layout
11046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11049 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11071 \begin_layout Plain Layout
11077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11080 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11102 \begin_layout Plain Layout
11108 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11111 \begin_layout Plain Layout
11125 \begin_layout Section
11126 Multiple Lines, Columns and Rows
11129 \begin_layout Subsection
11130 Multiple Lines in Table Cells
11131 \begin_inset CommandInset label
11133 name "subsec:Multiple-Lines-in"
11138 \begin_inset Index idx
11141 \begin_layout Plain Layout
11142 Multiple Lines in Table Cells
11148 \begin_inset Index idx
11151 \begin_layout Plain Layout
11160 \begin_layout Standard
11162 \begin_inset Float table
11168 \begin_layout Plain Layout
11169 \begin_inset Caption Standard
11171 \begin_layout Plain Layout
11172 \begin_inset CommandInset label
11174 name "tab:Table-with-multiple"
11178 Table with multiple lines in cells
11186 \begin_layout Plain Layout
11188 \begin_inset Tabular
11189 <lyxtabular version="3" rows="3" columns="3">
11190 <features tabularvalignment="middle">
11191 <column alignment="center" valignment="middle" width="2.5cm">
11192 <column alignment="center" valignment="middle">
11193 <column alignment="center" valignment="middle">
11195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11198 \begin_layout Plain Layout
11200 \begin_inset Newline linebreak
11208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11211 \begin_layout Plain Layout
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11220 \begin_layout Plain Layout
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11231 \begin_layout Plain Layout
11237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11240 \begin_layout Plain Layout
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11249 \begin_layout Plain Layout
11257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11260 \begin_layout Plain Layout
11266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11269 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11278 \begin_layout Plain Layout
11297 \begin_layout Standard
11298 Setting a fixed width for a column enables you to enter text as a paragraph
11299 with multiple lines and hyphenation.
11302 \begin_layout Standard
11304 \begin_inset space ~
11308 \begin_inset CommandInset ref
11310 reference "tab:Table-with-multiple"
11314 , create a 3×3 table, mark the first cell and right-click on it.
11315 In the appearing table dialog we set a cell width of 2.5
11316 \begin_inset space \thinspace{}
11319 cm and choose centered for the vertical and horizontal alignment.
11320 The vertical alignment is used for all cells of the row.
11321 As our text is smaller than 2.5
11322 \begin_inset space \thinspace{}
11325 cm, only one line will appear.
11326 To get two lines, a justified line break (shortcut
11329 arg "newline-insert linebreak"
11333 If the text is wider than the set cell width, it will automatically be
11334 broken to several lines.
11337 \begin_layout Standard
11338 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11339 by \SpecialChar LaTeX
11340 if it is the first entry.
11341 Therefore you need to insert something to prevent the word not being the
11343 So add a horizontal space of 0
11344 \begin_inset space \thinspace{}
11347 pt before the word.
11348 As the space is zero, it doesn't change the output.
11350 \begin_inset space ~
11354 \begin_inset CommandInset ref
11356 reference "tab:Table-with-and"
11363 \begin_layout Standard
11364 \begin_inset Float table
11370 \begin_layout Plain Layout
11371 \begin_inset Caption Standard
11373 \begin_layout Plain Layout
11374 \begin_inset CommandInset label
11376 name "tab:Table-with-and"
11380 Table with and without hyphenation
11388 \begin_layout Plain Layout
11389 \begin_inset space \hfill{}
11393 \begin_inset Tabular
11394 <lyxtabular version="3" rows="3" columns="3">
11395 <features tabularvalignment="middle">
11396 <column alignment="center" valignment="middle" width="2.5cm">
11397 <column alignment="center" valignment="middle">
11398 <column alignment="center" valignment="middle">
11400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11403 \begin_layout Plain Layout
11404 verylongtablecellword
11409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11412 \begin_layout Plain Layout
11418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11421 \begin_layout Plain Layout
11429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11432 \begin_layout Plain Layout
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11441 \begin_layout Plain Layout
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11450 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11479 \begin_layout Plain Layout
11491 \begin_inset space \hfill{}
11495 \begin_inset Tabular
11496 <lyxtabular version="3" rows="3" columns="3">
11497 <features tabularvalignment="middle">
11498 <column alignment="center" valignment="middle" width="2.5cm">
11499 <column alignment="center" valignment="middle">
11500 <column alignment="center" valignment="middle">
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11505 \begin_layout Plain Layout
11506 \begin_inset space \hspace{}
11510 verylongtablecellword
11515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11518 \begin_layout Plain Layout
11524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11527 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11556 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11567 \begin_layout Plain Layout
11573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11585 \begin_layout Plain Layout
11597 \begin_inset space \hfill{}
11608 \begin_layout Subsection
11610 \begin_inset CommandInset label
11612 name "subsec:Multicolumns"
11617 \begin_inset Index idx
11620 \begin_layout Plain Layout
11627 \begin_inset Index idx
11630 \begin_layout Plain Layout
11631 Table ! Multicolumns
11639 \begin_layout Subsubsection
11643 \begin_layout Standard
11644 To merge cells over multiple columns, select as many cells within a row
11645 as you want to merge and use either the table-toolbar button
11648 arg "tabular-feature multicolumn"
11653 Edit\SpecialChar menuseparator
11654 Table\SpecialChar menuseparator
11657 , or right click on the marked cells and choose
11661 in the context menu.
11664 \begin_layout Standard
11665 Multicolumns have their own cell settings.
11666 That means changing cell borders, cell alignment, and the width only affects
11668 Here is an example table with a multicolumn cell in the first row and one
11669 in the last row without the upper border:
11672 \begin_layout Standard
11674 \begin_inset Tabular
11675 <lyxtabular version="3" rows="3" columns="4">
11676 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11677 <column alignment="center" valignment="top" width="0pt">
11678 <column alignment="center" valignment="middle">
11679 <column alignment="center" valignment="top" width="0in">
11680 <column alignment="center" valignment="top" width="0pt">
11682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11685 \begin_layout Plain Layout
11691 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11694 \begin_layout Plain Layout
11700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11703 \begin_layout Plain Layout
11709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11712 \begin_layout Plain Layout
11720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11723 \begin_layout Plain Layout
11738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11741 \begin_layout Plain Layout
11747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11750 \begin_layout Plain Layout
11756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11759 \begin_layout Plain Layout
11767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11770 \begin_layout Plain Layout
11776 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11779 \begin_layout Plain Layout
11785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11788 \begin_layout Plain Layout
11794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11797 \begin_layout Plain Layout
11811 \begin_layout Subsubsection
11812 Multicolumn Calculations
11813 \begin_inset CommandInset label
11815 name "subsec:Multicolumn-Calculations"
11820 \begin_inset Index idx
11823 \begin_layout Plain Layout
11824 Multicolumns ! Calculations
11832 \begin_layout Standard
11834 supports multicolumns directly, but we have to take account of the cell
11835 width of the columns spanned by the multicolumn cell.
11838 \begin_layout Standard
11839 \begin_inset Float table
11845 \begin_layout Plain Layout
11846 \begin_inset Caption Standard
11848 \begin_layout Plain Layout
11849 \begin_inset CommandInset label
11851 name "tab:Table-with-centered"
11855 Table with centered multicolumn text above two columns that have exactly
11856 half the width of the multicolumn cell
11857 \begin_inset Argument 1
11860 \begin_layout Plain Layout
11861 Perfect multicolumn table
11874 \begin_layout Plain Layout
11876 \begin_inset Tabular
11877 <lyxtabular version="3" rows="3" columns="3">
11878 <features tabularvalignment="middle">
11879 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11880 <column alignment="center" valignment="middle">
11881 <column alignment="center" valignment="top">
11883 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11886 \begin_layout Plain Layout
11887 multiple lines multicolumn
11892 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11895 \begin_layout Plain Layout
11901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11904 \begin_layout Plain Layout
11912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11915 \begin_layout Plain Layout
11921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11924 \begin_layout Plain Layout
11930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11933 \begin_layout Plain Layout
11941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11944 \begin_layout Plain Layout
11950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11953 \begin_layout Plain Layout
11959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11962 \begin_layout Plain Layout
11981 \begin_layout Standard
11982 To create for example Table
11983 \begin_inset space ~
11987 \begin_inset CommandInset ref
11989 reference "tab:Table-with-centered"
11993 , mark the first two cells in the first row of a 3×3 table and right-click
11995 Now choose for this cell
12004 \begin_inset space \thinspace{}
12007 cm in the table dialog.
12008 The merged columns should have exactly half the width of the multicolumn
12009 cell, so that you would set a width of 1.25
12010 \begin_inset space \thinspace{}
12013 cm for the first column.
12014 The second column has then automatically a width of 1.25
12015 \begin_inset space \thinspace{}
12018 cm (multicolumn width - width of first column).
12019 This was done for Table
12020 \begin_inset space ~
12024 \begin_inset CommandInset ref
12026 reference "tab:Table-without-half"
12033 \begin_layout Standard
12034 \begin_inset Float table
12039 \begin_layout Plain Layout
12040 \begin_inset Caption Standard
12042 \begin_layout Plain Layout
12043 \begin_inset CommandInset label
12045 name "tab:Table-without-half"
12049 Table where the spanned table columns are not exactly half the width of
12050 the multicolumn cell
12051 \begin_inset Argument 1
12054 \begin_layout Plain Layout
12055 Imperfect multicolumn table
12068 \begin_layout Plain Layout
12070 \begin_inset Tabular
12071 <lyxtabular version="3" rows="3" columns="3">
12072 <features tabularvalignment="middle">
12073 <column alignment="center" valignment="top" width="1.25cm">
12074 <column alignment="center" valignment="top">
12075 <column alignment="center" valignment="top">
12077 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12080 \begin_layout Plain Layout
12081 multiple lines multicolumn
12086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12089 \begin_layout Plain Layout
12095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12098 \begin_layout Plain Layout
12106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12109 \begin_layout Plain Layout
12115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12118 \begin_layout Plain Layout
12124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12127 \begin_layout Plain Layout
12135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12138 \begin_layout Plain Layout
12144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12147 \begin_layout Plain Layout
12153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12156 \begin_layout Plain Layout
12175 \begin_layout Standard
12176 You can see that the first column is not half the width of the multicolumn
12177 cell, it is a bit bigger.
12178 The reason is that the specified width of a cell
12179 \begin_inset Formula $W_{g}$
12182 is not its total width
12183 \begin_inset Formula $W_{\mathrm{tot}}$
12186 because a cell is always a bit larger than specified.
12188 \begin_inset space ~
12192 \begin_inset CommandInset ref
12194 reference "cha:Explanation-of-Equation"
12198 explains this in detail.
12201 \begin_layout Standard
12203 \begin_inset Formula $W_{g\,n}$
12206 which the user needs to set when
12210 columns are spanned can be calculated, so that each column has a total
12212 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12216 \begin_inset Formula
12218 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12226 \begin_layout Standard
12227 In our case we have
12228 \begin_inset Formula $n=2$
12232 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12235 cm and the default values for the lengths, so that equation
12236 \begin_inset CommandInset ref
12243 \begin_inset Formula
12245 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12253 \begin_layout Standard
12254 To enable calculations in \SpecialChar LaTeX
12255 , the \SpecialChar LaTeX
12260 must be loaded with the document preamble line
12261 \begin_inset Index idx
12264 \begin_layout Plain Layout
12274 \begin_layout Standard
12282 \begin_layout Standard
12284 does not allow you to calculate lengths in the
12288 field of the table dialog.
12289 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12292 Here is an overview about the arguments:
12295 \begin_layout Itemize
12300 creates cell with a fixed width, its text is vertically top-aligned
12303 \begin_layout Itemize
12308 creates cell with a fixed width, its text is vertically centered
12311 \begin_layout Itemize
12316 creates cell with a fixed width, its text is vertically bottom-aligned
12319 \begin_layout Standard
12320 By entering a \SpecialChar LaTeX
12321 -argument, all cell settings set in the table dialog are overwritt
12325 \begin_layout Standard
12326 \begin_inset Note Greyedout
12329 \begin_layout Plain Layout
12334 Due to a bug, \SpecialChar LyX
12335 shows the overwritten settings anyway.
12343 \begin_layout Standard
12344 As the text should be horizontally centered, the command
12351 You can now enter the following \SpecialChar LaTeX
12352 -argument for the first spanned column:
12355 \begin_layout Standard
12360 centering}m{1.25cm-6.2pt}
12363 \begin_layout Standard
12368 means, that the commands inside the braces are applied before the cell
12372 \begin_layout Standard
12373 Although we have chosen centered alignment for the text of the multicolumn
12374 cell, it is still left aligned.
12375 This is because \SpecialChar LyX
12376 only applies the alignment to single columns.
12377 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12381 \begin_layout Standard
12389 \begin_layout Subsection
12391 \begin_inset CommandInset label
12393 name "subsec:Multirows"
12398 \begin_inset Index idx
12401 \begin_layout Plain Layout
12408 \begin_inset Index idx
12411 \begin_layout Plain Layout
12420 \begin_layout Standard
12421 To merge cells over multiple rows, select as many cells within a column
12422 as you want to merge and use either the table-toolbar button
12425 arg "tabular-feature multirow"
12430 Edit\SpecialChar menuseparator
12431 Table\SpecialChar menuseparator
12434 , or right click on the marked cells and choose
12438 in the context menu.
12441 \begin_layout Standard
12442 Here is an example table with a multirow in the first column:
12445 \begin_layout Standard
12447 \begin_inset Tabular
12448 <lyxtabular version="3" rows="3" columns="3">
12449 <features tabularvalignment="middle">
12450 <column alignment="center" valignment="top" width="0pt">
12451 <column alignment="center" valignment="top">
12452 <column alignment="center" valignment="top">
12454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12457 \begin_layout Plain Layout
12463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12466 \begin_layout Plain Layout
12472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12475 \begin_layout Plain Layout
12483 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12486 \begin_layout Plain Layout
12492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12495 \begin_layout Plain Layout
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12504 \begin_layout Plain Layout
12512 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12524 \begin_layout Plain Layout
12530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12533 \begin_layout Plain Layout
12547 \begin_layout Standard
12548 The width of multirow cells is set by setting the width and alignment for
12554 shifts the content of the multirow up/down if the offset is positive/negative.
12557 \begin_layout Standard
12558 If the column of a multirow cell has no explicit width, the multirow cell
12559 inherits the alignment of the column.
12560 Otherwise it is by default left-aligned.
12561 To override the default, renew the command
12570 \begin_layout Standard
12582 \begin_layout Standard
12583 in the document preamble.
12584 Then all entries of multirow cells in the document are centered.
12585 If centering is only needed for several tables, you can renew the command
12586 in a \SpecialChar TeX
12587 Code box just before the table instead of the preamble.
12588 If the text should be right-aligned, replace
12601 To return to left-alignment
12610 \begin_layout Standard
12611 This is an example table with a right-aligned multirow cell that has a vertical
12613 \begin_inset space \thinspace{}
12617 \begin_inset space \thinspace{}
12623 \begin_layout Standard
12629 \begin_layout Plain Layout
12643 \begin_inset Tabular
12644 <lyxtabular version="3" rows="4" columns="3">
12645 <features tabularvalignment="middle">
12646 <column alignment="center" valignment="top" width="3cm">
12647 <column alignment="center" valignment="top">
12648 <column alignment="center" valignment="top">
12650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12653 \begin_layout Plain Layout
12659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12662 \begin_layout Plain Layout
12668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12671 \begin_layout Plain Layout
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12682 \begin_layout Plain Layout
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12700 \begin_layout Plain Layout
12708 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12729 \begin_layout Plain Layout
12737 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12740 \begin_layout Plain Layout
12746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12749 \begin_layout Plain Layout
12755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12758 \begin_layout Plain Layout
12773 \begin_layout Plain Layout
12789 \begin_layout Standard
12790 To start a new line in a multirow you can use a forced line break (shortcut
12794 arg "newline-insert newline"
12797 ) but this will not respect the cell lines as demonstrated in this table:
12800 \begin_layout Standard
12803 \begin_inset Tabular
12804 <lyxtabular version="3" rows="3" columns="2">
12805 <features tabularvalignment="middle">
12806 <column alignment="left" valignment="middle" width="2cm">
12807 <column alignment="center" valignment="top">
12809 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12812 \begin_layout Plain Layout
12814 \begin_inset Newline newline
12818 \begin_inset Newline newline
12826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12829 \begin_layout Plain Layout
12837 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12840 \begin_layout Plain Layout
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12849 \begin_layout Plain Layout
12857 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12860 \begin_layout Plain Layout
12866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12869 \begin_layout Plain Layout
12883 \begin_layout Standard
12884 Therefore be careful with forced line breaks.
12887 \begin_layout Subsection
12888 Cells with diagonal line(s)
12891 \begin_layout Standard
12892 To tell the reader what is meant by column and row headings in a table,
12893 it is helpful to split the first cell of the table by one or two diagonal
12895 This can be achieved by loading the \SpecialChar LaTeX
12901 \begin_inset Index idx
12904 \begin_layout Plain Layout
12906 -packages ! picinpar
12911 in the document preamble.
12912 The package provides the command
12918 that is inserted as \SpecialChar TeX
12919 Code and that can take 2 or 3
12920 \begin_inset space ~
12926 \begin_layout Standard
12931 diagbox[options]{lower left}{upper right}
12934 \begin_layout Standard
12939 diagbox[options]{lower left}{upper left}{upper right}
12942 \begin_layout Standard
12943 The first scheme divides the cell by a single diagonal line and the arguments
12944 are placed below and above this line.
12945 The second scheme divides the cell by 2
12946 \begin_inset space ~
12952 \begin_layout Standard
12956 \begin_layout Plain Layout
12966 \begin_inset Note Note
12969 \begin_layout Plain Layout
12970 The following section will only be displayed when the \SpecialChar LaTeX
12983 \begin_layout Standard
12984 Here is an example table where
12990 is used in the 2-argument scheme in the first cell:
12991 \begin_inset VSpace medskip
12997 \begin_layout Standard
12999 \begin_inset Tabular
13000 <lyxtabular version="3" rows="4" columns="4">
13001 <features tabularvalignment="middle">
13002 <column alignment="center" valignment="top">
13003 <column alignment="center" valignment="top">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13010 \begin_layout Plain Layout
13014 \begin_layout Plain Layout
13027 \begin_layout Plain Layout
13038 \begin_layout Plain Layout
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Plain Layout
13059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13062 \begin_layout Plain Layout
13068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13071 \begin_layout Plain Layout
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Plain Layout
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Plain Layout
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Plain Layout
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Plain Layout
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Plain Layout
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13197 \begin_inset VSpace medskip
13203 \begin_layout Standard
13204 The 3-argument scheme is for example useful for cross-tables of sports leagues
13208 \begin_layout Standard
13211 \begin_inset Tabular
13212 <lyxtabular version="3" rows="4" columns="4">
13213 <features tabularvalignment="middle">
13214 <column alignment="center" valignment="top" width="0pt">
13215 <column alignment="center" valignment="top">
13216 <column alignment="center" valignment="top">
13217 <column alignment="center" valignment="top">
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13226 \begin_layout Plain Layout
13239 \begin_layout Plain Layout
13250 \begin_layout Plain Layout
13261 \begin_layout Plain Layout
13273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13305 \begin_layout Plain Layout
13311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13332 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13370 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13408 \begin_layout Plain Layout
13422 \begin_layout Standard
13423 For larger cross-tables one might use split cells in 2 or every corner of
13424 the table like in this example:
13427 \begin_layout Standard
13430 \begin_inset Tabular
13431 <lyxtabular version="3" rows="5" columns="5">
13432 <features tabularvalignment="middle">
13433 <column alignment="center" valignment="top" width="0pt">
13434 <column alignment="center" valignment="top">
13435 <column alignment="center" valignment="top">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13446 \begin_layout Plain Layout
13459 \begin_layout Plain Layout
13470 \begin_layout Plain Layout
13481 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13523 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13540 \begin_layout Plain Layout
13551 \begin_layout Plain Layout
13562 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13615 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13673 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13724 \begin_layout Plain Layout
13737 \begin_layout Plain Layout
13748 \begin_layout Plain Layout
13759 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13801 \begin_layout Plain Layout
13805 \begin_layout Plain Layout
13818 \begin_layout Plain Layout
13829 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13860 \begin_layout Standard
13861 To rotate the diagonal lines, the command option
13886 and represent a point of a compass.
13891 is for example the south-west corner.
13892 Thus in the lower left cell of the above table the command
13895 \begin_layout Standard
13900 diagbox[dir=SW]{Team home}{Result}{Team away}
13903 \begin_layout Standard
13905 If no direction is given, it will be NW.
13908 \begin_layout Standard
13909 The necessary width of split cells is automatically calculated.
13910 Thus if you set a fixed column width smaller than the calculated one, the
13911 cell's content will protrude the cell borders:
13914 \begin_layout Standard
13917 \begin_inset Tabular
13918 <lyxtabular version="3" rows="2" columns="2">
13919 <features tabularvalignment="middle">
13920 <column alignment="center" valignment="top" width="3cm">
13921 <column alignment="center" valignment="top">
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13930 \begin_layout Plain Layout
13943 \begin_layout Plain Layout
13954 \begin_layout Plain Layout
13966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13969 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13989 \begin_layout Plain Layout
14003 \begin_layout Standard
14004 If you need a certain width for columns with a split cell, use the command
14009 (replace '3cm' by the width you need).
14010 In the following table the width of the first column is set to 4
14011 \begin_inset space \thinspace{}
14022 \begin_inset space \thinspace{}
14026 \begin_inset space \thinspace{}
14031 tabcolsep is necessary because the overall width is the width for the text
14032 (in this case the 4
14033 \begin_inset space \thinspace{}
14036 cm) plus two times the separation of the text and the cell border.
14037 The calculation of the width cannot be done in the command option of
14043 so one needs to create a new length which can be used later.
14044 This is done with the \SpecialChar TeX
14048 \begin_layout Standard
14056 \begin_inset Newline newline
14068 \begin_layout Standard
14072 \begin_layout Plain Layout
14081 \begin_layout Plain Layout
14097 \begin_layout Standard
14098 To enable calculations in \SpecialChar LaTeX
14099 one needs to load the package
14104 \begin_inset Index idx
14107 \begin_layout Plain Layout
14114 in the document preamble.
14117 \begin_layout Standard
14118 In this table you can now use the command
14121 \begin_layout Standard
14131 \begin_layout Standard
14135 \begin_layout Standard
14138 \begin_inset Tabular
14139 <lyxtabular version="3" rows="2" columns="2">
14140 <features tabularvalignment="middle">
14141 <column alignment="center" valignment="top" width="4cm">
14142 <column alignment="center" valignment="top">
14144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14147 \begin_layout Plain Layout
14151 \begin_layout Plain Layout
14166 \begin_layout Plain Layout
14177 \begin_layout Plain Layout
14189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14192 \begin_layout Plain Layout
14200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14203 \begin_layout Plain Layout
14209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14212 \begin_layout Plain Layout
14226 \begin_layout Standard
14227 Note that the split cell needs to be the widest one in the column.
14228 Otherwise the length of the diagonal line cannot be calculated correctly
14229 like in this table:
14232 \begin_layout Standard
14235 \begin_inset Tabular
14236 <lyxtabular version="3" rows="2" columns="2">
14237 <features tabularvalignment="middle">
14238 <column alignment="center" valignment="top" width="0pt">
14239 <column alignment="center" valignment="top">
14241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14244 \begin_layout Plain Layout
14248 \begin_layout Plain Layout
14261 \begin_layout Plain Layout
14272 \begin_layout Plain Layout
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14287 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14298 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14307 \begin_layout Plain Layout
14321 \begin_layout Standard
14322 In this case use the
14333 It is then not necessary to add 2
14335 tabcolsep because the cell width is now the width of the column.
14336 In this table a width of 3
14337 \begin_inset space \thinspace{}
14343 \begin_layout Standard
14346 \begin_inset Tabular
14347 <lyxtabular version="3" rows="2" columns="2">
14348 <features tabularvalignment="middle">
14349 <column alignment="center" valignment="top" width="0pt">
14350 <column alignment="center" valignment="top">
14352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14355 \begin_layout Plain Layout
14359 \begin_layout Plain Layout
14363 diagbox[width=3cm]{
14372 \begin_layout Plain Layout
14383 \begin_layout Plain Layout
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14398 \begin_layout Plain Layout
14406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14409 \begin_layout Plain Layout
14415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14418 \begin_layout Plain Layout
14432 \begin_layout Standard
14433 For multiple text lines in split cells one needs some extra height to fit
14434 the text to the cell.
14435 This can be achieved with the
14445 (replace '3cm' by the height you need).
14446 In the following table the command
14449 \begin_layout Standard
14454 diagbox[width=3cm,height=1.4cm]{A
14465 \begin_layout Standard
14466 is used in the first cell.
14475 creates hereby the line break.
14479 \begin_layout Plain Layout
14480 Breaking lines with
14484 is only possible when the column has a fixed width.
14492 \begin_layout Standard
14495 \begin_inset Tabular
14496 <lyxtabular version="3" rows="2" columns="2">
14497 <features tabularvalignment="middle">
14498 <column alignment="center" valignment="top">
14499 <column alignment="center" valignment="top">
14501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14504 \begin_layout Plain Layout
14508 \begin_layout Plain Layout
14512 diagbox[width=3cm,height=1.4cm]{
14521 \begin_layout Plain Layout
14536 \begin_layout Plain Layout
14547 \begin_layout Plain Layout
14562 \begin_layout Plain Layout
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14577 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14588 \begin_layout Plain Layout
14594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14597 \begin_layout Plain Layout
14611 \begin_layout Standard
14615 \begin_layout Plain Layout
14625 \begin_inset Note Note
14628 \begin_layout Plain Layout
14629 The following will be displayed when the \SpecialChar LaTeX
14642 \begin_layout Standard
14643 You need to install the \SpecialChar LaTeX
14648 to see the following part of this section in the output.
14651 \begin_layout Standard
14655 \begin_layout Plain Layout
14667 \begin_layout Standard
14668 For more info about the \SpecialChar LaTeX
14673 , see its documentation,
14674 \begin_inset CommandInset citation
14683 \begin_layout Section
14685 \begin_inset CommandInset label
14687 name "sec:Formal-Tables"
14692 \begin_inset Index idx
14695 \begin_layout Plain Layout
14704 \begin_layout Standard
14705 Tables are often typeset in books similar to Table
14706 \begin_inset space ~
14710 \begin_inset CommandInset ref
14712 reference "tab:Example-booktabs-table"
14717 This kind of tables is called
14718 \begin_inset Quotes eld
14726 \begin_inset Quotes erd
14730 To make a table a formal table use the option
14738 tab of the table dialog.
14741 \begin_layout Standard
14742 \begin_inset Float table
14748 \begin_layout Plain Layout
14749 \begin_inset Caption Standard
14751 \begin_layout Plain Layout
14752 \begin_inset CommandInset label
14754 name "tab:Example-booktabs-table"
14758 Example booktabs-table
14766 \begin_layout Plain Layout
14768 \begin_inset Tabular
14769 <lyxtabular version="3" rows="8" columns="4">
14770 <features booktabs="true" tabularvalignment="middle">
14771 <column alignment="center" valignment="top">
14772 <column alignment="center" valignment="top">
14773 <column alignment="center" valignment="top">
14774 <column alignment="center" valignment="top">
14776 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14779 \begin_layout Plain Layout
14785 <cell alignment="center" valignment="top" topline="true" usebox="none">
14788 \begin_layout Plain Layout
14790 \begin_inset space \thinspace{}
14798 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14801 \begin_layout Plain Layout
14803 \begin_inset space \thinspace{}
14811 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14814 \begin_layout Plain Layout
14822 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14825 \begin_layout Plain Layout
14829 \begin_layout Plain Layout
14842 \begin_layout Plain Layout
14851 Detector thickness in µm
14856 <cell alignment="center" valignment="top" usebox="none">
14859 \begin_layout Plain Layout
14865 <cell alignment="center" valignment="top" usebox="none">
14868 \begin_layout Plain Layout
14874 <cell alignment="center" valignment="top" usebox="none">
14877 \begin_layout Plain Layout
14885 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14888 \begin_layout Plain Layout
14894 <cell alignment="center" valignment="top" topline="true" usebox="none">
14897 \begin_layout Plain Layout
14903 <cell alignment="center" valignment="top" topline="true" usebox="none">
14906 \begin_layout Plain Layout
14912 <cell alignment="center" valignment="top" topline="true" usebox="none">
14915 \begin_layout Plain Layout
14922 <row topspace="default">
14923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14926 \begin_layout Plain Layout
14927 Spatial resolution in µm
14932 <cell alignment="center" valignment="top" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" usebox="none">
14953 \begin_layout Plain Layout
14960 <row topspace="default">
14961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14964 \begin_layout Plain Layout
14966 \begin_inset Formula $f_{\mathrm{max}}$
14974 <cell alignment="center" valignment="top" usebox="none">
14977 \begin_layout Plain Layout
14983 <cell alignment="center" valignment="top" usebox="none">
14986 \begin_layout Plain Layout
14992 <cell alignment="center" valignment="top" usebox="none">
14995 \begin_layout Plain Layout
15002 <row topspace="default">
15003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15006 \begin_layout Plain Layout
15010 \begin_layout Plain Layout
15014 cmidrule[2pt](l{10pt}){1-1}
15019 LSF-spatial resolution
15024 <cell alignment="center" valignment="top" usebox="none">
15027 \begin_layout Plain Layout
15033 <cell alignment="center" valignment="top" usebox="none">
15036 \begin_layout Plain Layout
15042 <cell alignment="center" valignment="top" usebox="none">
15045 \begin_layout Plain Layout
15053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15056 \begin_layout Plain Layout
15062 <cell alignment="center" valignment="top" usebox="none">
15065 \begin_layout Plain Layout
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15091 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15094 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15121 \begin_layout Plain Layout
15140 \begin_layout Standard
15141 Spaces to table rows can be added using the
15145 tab of the table dialog as described in section
15146 \begin_inset space ~
15150 \begin_inset CommandInset ref
15152 reference "subsec:Row-Spacing"
15159 \begin_layout Standard
15160 Unlike normal tables, formal tables have no vertical table lines.
15161 The horizontal table lines can be set as for normal tables but they appear
15162 with different widths in the output:
15163 \begin_inset Newline newline
15166 The first and the last table line have a default width of 0.08
15167 \begin_inset space \thinspace{}
15170 em while the other lines have a default width of 0.05
15171 \begin_inset space \thinspace{}
15177 \begin_layout Standard
15178 The default widths can be changed with the following preamble lines
15181 \begin_layout Standard
15191 \begin_inset Newline newline
15203 \begin_layout Standard
15204 This example is for the first line, the so called
15209 If you want to change the width for the last line, replace
15218 To change the width for the other lines replace
15227 You can use all units listed in appendix
15228 \begin_inset space ~
15232 \begin_inset CommandInset ref
15234 reference "cha:Units-available-in"
15241 \begin_layout Standard
15242 Lines that do not span all table columns can be created by setting a table
15243 line for multicolumn cells.
15245 will then internally use the command
15251 to create this line.
15255 \begin_layout Standard
15260 cmidrule[height](trim){startcol-endcol}
15263 \begin_layout Standard
15270 are currently not supported by \SpecialChar LyX
15271 so you have to use \SpecialChar TeX
15280 s can manually be created by inserting the command as \SpecialChar TeX
15282 cell entry of the first cell of a row.
15283 The line is then drawn in the output above the current row.
15286 \begin_layout Standard
15287 The default for the optional
15292 \begin_inset space \thinspace{}
15300 is the number of the column where the line starts and
15304 the column number where the line ends.
15309 always needs to be specified, also when the line should span only one column.
15310 The optional parameter
15327 Using for example the parameter
15331 means that the line is trimmed from its left end by 2
15332 \begin_inset space \thinspace{}
15336 If you don't specify the
15340 the line is trimmed by the default of 0.5
15341 \begin_inset space \thinspace{}
15347 \begin_layout Standard
15348 \begin_inset VSpace bigskip
15352 \begin_inset space ~
15356 \begin_inset CommandInset ref
15358 reference "tab:Example-booktabs-table"
15362 was created using the commands
15365 \begin_layout Standard
15375 \begin_layout Standard
15376 at the beginning of the second row and
15379 \begin_layout Standard
15384 cmidrule[2pt](l{10pt}){1-1}
15387 \begin_layout Standard
15391 \begin_layout Standard
15392 \begin_inset VSpace bigskip
15398 \begin_layout Standard
15399 You might want to have overlapping
15406 \begin_inset space ~
15410 \begin_inset CommandInset ref
15412 reference "tab:Special-booktabs-table"
15417 This can be achieved with the \SpecialChar TeX
15421 \begin_layout Standard
15429 \begin_layout Standard
15430 The command that was used for the second row of Table
15431 \begin_inset space ~
15435 \begin_inset CommandInset ref
15437 reference "tab:Special-booktabs-table"
15444 \begin_layout Standard
15458 \begin_layout Standard
15459 The command for the sixth row is
15462 \begin_layout Standard
15474 \begin_layout Standard
15475 \begin_inset VSpace bigskip
15481 \begin_layout Standard
15482 If you are in any way not satisfied with the border line spacing, you can
15483 use the following command to produce lines that span over all table columns
15488 \begin_layout Standard
15493 specialrule{width}{space above}{space below}
15496 \begin_layout Standard
15497 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15504 \begin_inset CommandInset citation
15511 \begin_inset Index idx
15514 \begin_layout Plain Layout
15516 -packages ! booktabs
15524 \begin_layout Standard
15525 \begin_inset Float table
15531 \begin_layout Plain Layout
15532 \begin_inset Caption Standard
15534 \begin_layout Plain Layout
15535 \begin_inset CommandInset label
15537 name "tab:Special-booktabs-table"
15541 Special booktabs-table
15549 \begin_layout Plain Layout
15551 \begin_inset Tabular
15552 <lyxtabular version="3" rows="8" columns="4">
15553 <features booktabs="true" tabularvalignment="middle">
15554 <column alignment="center" valignment="top">
15555 <column alignment="center" valignment="top">
15556 <column alignment="center" valignment="top">
15557 <column alignment="center" valignment="top">
15559 <cell alignment="center" valignment="top" topline="true" usebox="none">
15562 \begin_layout Plain Layout
15568 <cell alignment="center" valignment="top" topline="true" usebox="none">
15571 \begin_layout Plain Layout
15573 \begin_inset space \thinspace{}
15581 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15584 \begin_layout Plain Layout
15586 \begin_inset space \thinspace{}
15594 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15597 \begin_layout Plain Layout
15605 <cell alignment="center" valignment="top" usebox="none">
15608 \begin_layout Plain Layout
15612 \begin_layout Plain Layout
15625 \begin_layout Plain Layout
15638 \begin_layout Plain Layout
15651 \begin_layout Plain Layout
15660 Detector thickness in µm
15665 <cell alignment="center" valignment="top" usebox="none">
15668 \begin_layout Plain Layout
15674 <cell alignment="center" valignment="top" usebox="none">
15677 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" usebox="none">
15686 \begin_layout Plain Layout
15694 <cell alignment="center" valignment="top" topline="true" usebox="none">
15697 \begin_layout Plain Layout
15703 <cell alignment="center" valignment="top" topline="true" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" topline="true" usebox="none">
15715 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" topline="true" usebox="none">
15724 \begin_layout Plain Layout
15731 <row topspace="default">
15732 <cell alignment="center" valignment="top" usebox="none">
15735 \begin_layout Plain Layout
15736 Spatial resolution in µm
15741 <cell alignment="center" valignment="top" usebox="none">
15744 \begin_layout Plain Layout
15750 <cell alignment="center" valignment="top" usebox="none">
15753 \begin_layout Plain Layout
15759 <cell alignment="center" valignment="top" usebox="none">
15762 \begin_layout Plain Layout
15769 <row topspace="default">
15770 <cell alignment="center" valignment="top" usebox="none">
15773 \begin_layout Plain Layout
15775 \begin_inset Formula $f_{\mathrm{max}}$
15783 <cell alignment="center" valignment="top" usebox="none">
15786 \begin_layout Plain Layout
15792 <cell alignment="center" valignment="top" usebox="none">
15795 \begin_layout Plain Layout
15801 <cell alignment="center" valignment="top" usebox="none">
15804 \begin_layout Plain Layout
15812 <cell alignment="center" valignment="top" topline="true" usebox="none">
15815 \begin_layout Plain Layout
15819 \begin_layout Plain Layout
15832 \begin_layout Plain Layout
15841 LSF-spatial resolution
15846 <cell alignment="center" valignment="top" topline="true" usebox="none">
15849 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" topline="true" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" topline="true" usebox="none">
15867 \begin_layout Plain Layout
15875 <cell alignment="center" valignment="top" usebox="none">
15878 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" usebox="none">
15905 \begin_layout Plain Layout
15913 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15916 \begin_layout Plain Layout
15922 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15925 \begin_layout Plain Layout
15931 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15934 \begin_layout Plain Layout
15940 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15943 \begin_layout Plain Layout
15962 \begin_layout Section
15963 Vertical Table Alignment
15964 \begin_inset Index idx
15967 \begin_layout Plain Layout
15976 \begin_layout Standard
15977 To align tables vertically in a text line, the table must be inside a box.
15978 The box can then be vertically aligned as described in section
15979 \begin_inset space ~
15983 \begin_inset CommandInset ref
15985 reference "sec:Box-Dialog"
15992 \begin_layout Standard
15993 In the following example the tables are inside a minipage
15997 \begin_layout Plain Layout
15998 Minipages are described in section
15999 \begin_inset space ~
16003 \begin_inset CommandInset ref
16005 reference "sec:Minipages"
16014 box that has a width of 15
16015 \begin_inset space \thinspace{}
16021 \begin_layout Itemize
16023 \begin_inset Box Frameless
16033 height_special "totalheight"
16038 backgroundcolor "none"
16041 \begin_layout Plain Layout
16042 \begin_inset Tabular
16043 <lyxtabular version="3" rows="3" columns="3">
16044 <features tabularvalignment="middle">
16045 <column alignment="center" valignment="top">
16046 <column alignment="center" valignment="top">
16047 <column alignment="center" valignment="top">
16049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16052 \begin_layout Plain Layout
16058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16061 \begin_layout Plain Layout
16067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16070 \begin_layout Plain Layout
16078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16081 \begin_layout Plain Layout
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16090 \begin_layout Plain Layout
16096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16099 \begin_layout Plain Layout
16107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16110 \begin_layout Plain Layout
16116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16119 \begin_layout Plain Layout
16125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16128 \begin_layout Plain Layout
16148 \begin_layout Plain Layout
16160 \begin_inset Box Frameless
16170 height_special "totalheight"
16175 backgroundcolor "none"
16178 \begin_layout Plain Layout
16179 \begin_inset Tabular
16180 <lyxtabular version="3" rows="3" columns="3">
16181 <features tabularvalignment="middle">
16182 <column alignment="center" valignment="top">
16183 <column alignment="center" valignment="top">
16184 <column alignment="center" valignment="top">
16186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16189 \begin_layout Plain Layout
16195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16198 \begin_layout Plain Layout
16204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16207 \begin_layout Plain Layout
16215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16218 \begin_layout Plain Layout
16224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16227 \begin_layout Plain Layout
16233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16236 \begin_layout Plain Layout
16244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16247 \begin_layout Plain Layout
16253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16256 \begin_layout Plain Layout
16262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16265 \begin_layout Plain Layout
16285 \begin_layout Plain Layout
16295 \begin_layout Itemize
16297 \begin_inset Box Frameless
16307 height_special "totalheight"
16312 backgroundcolor "none"
16315 \begin_layout Plain Layout
16316 \begin_inset Tabular
16317 <lyxtabular version="3" rows="3" columns="3">
16318 <features tabularvalignment="middle">
16319 <column alignment="center" valignment="top">
16320 <column alignment="center" valignment="top">
16321 <column alignment="center" valignment="top">
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16335 \begin_layout Plain Layout
16341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16344 \begin_layout Plain Layout
16352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16364 \begin_layout Plain Layout
16370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16373 \begin_layout Plain Layout
16381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16384 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16402 \begin_layout Plain Layout
16421 \begin_layout Itemize
16423 \begin_inset Box Frameless
16433 height_special "totalheight"
16438 backgroundcolor "none"
16441 \begin_layout Plain Layout
16442 \begin_inset Tabular
16443 <lyxtabular version="3" rows="3" columns="3">
16444 <features tabularvalignment="middle">
16445 <column alignment="center" valignment="top">
16446 <column alignment="center" valignment="top">
16447 <column alignment="center" valignment="top">
16449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16461 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16470 \begin_layout Plain Layout
16478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16481 \begin_layout Plain Layout
16487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16490 \begin_layout Plain Layout
16496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16499 \begin_layout Plain Layout
16507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16510 \begin_layout Plain Layout
16516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16519 \begin_layout Plain Layout
16525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16528 \begin_layout Plain Layout
16548 \begin_layout Plain Layout
16560 \begin_inset Box Frameless
16570 height_special "totalheight"
16575 backgroundcolor "none"
16578 \begin_layout Plain Layout
16579 \begin_inset Tabular
16580 <lyxtabular version="3" rows="3" columns="3">
16581 <features tabularvalignment="middle">
16582 <column alignment="center" valignment="top">
16583 <column alignment="center" valignment="top">
16584 <column alignment="center" valignment="top">
16586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16589 \begin_layout Plain Layout
16595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16598 \begin_layout Plain Layout
16604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16607 \begin_layout Plain Layout
16615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16618 \begin_layout Plain Layout
16624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16627 \begin_layout Plain Layout
16633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16636 \begin_layout Plain Layout
16644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16647 \begin_layout Plain Layout
16653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16656 \begin_layout Plain Layout
16662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16665 \begin_layout Plain Layout
16685 \begin_layout Plain Layout
16695 \begin_layout Standard
16696 As you will see, the content of the first and last table row is not correctly
16698 To get this alignment, the minipage box must be set into a raisebox.
16702 \begin_layout Plain Layout
16703 Raiseboxes are described in section
16704 \begin_inset space ~
16708 \begin_inset CommandInset ref
16710 reference "subsec:Vertical-Alignment"
16719 In the example above the second table in the first item is aligned using
16720 the \SpecialChar TeX
16724 \begin_layout Standard
16734 \begin_layout Standard
16736 After the box the closing brace
16740 is inserted as \SpecialChar TeX
16742 For the second table in the last item the command
16745 \begin_layout Standard
16755 \begin_layout Standard
16759 \begin_layout Standard
16760 \begin_inset Note Greyedout
16763 \begin_layout Plain Layout
16768 The alignment of the table row content to the surrounding text line is
16770 The required value for the
16776 command for this alignment depends on the document font, the font size,
16777 and the table line thickness.
16785 \begin_layout Section
16787 \begin_inset CommandInset label
16789 name "sec:Colored-Tables"
16794 \begin_inset Index idx
16797 \begin_layout Plain Layout
16806 \begin_layout Subsection
16808 \begin_inset Index idx
16811 \begin_layout Plain Layout
16812 Table Color ! for Cells
16818 \begin_inset Index idx
16821 \begin_layout Plain Layout
16822 Color ! for Table Cells
16830 \begin_layout Standard
16831 \begin_inset Float table
16837 \begin_layout Plain Layout
16838 \begin_inset Caption Standard
16840 \begin_layout Plain Layout
16841 \begin_inset CommandInset label
16843 name "tab:Table-colored-without"
16847 Table colored without using the package
16852 \begin_inset Argument 1
16855 \begin_layout Plain Layout
16856 Table without colortbl
16869 \begin_layout Plain Layout
16871 \begin_inset Tabular
16872 <lyxtabular version="3" rows="3" columns="3">
16873 <features tabularvalignment="middle">
16874 <column alignment="center" valignment="top">
16875 <column alignment="center" valignment="top">
16876 <column alignment="center" valignment="top">
16878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16881 \begin_layout Plain Layout
16889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16892 \begin_layout Plain Layout
16900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16903 \begin_layout Plain Layout
16913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16916 \begin_layout Plain Layout
16924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16927 \begin_layout Plain Layout
16935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16938 \begin_layout Plain Layout
16948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16951 \begin_layout Plain Layout
16959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16962 \begin_layout Plain Layout
16970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16973 \begin_layout Plain Layout
16994 \begin_layout Standard
16995 If you only need colored text, mark the cells and choose a color in the
16999 \begin_inset space ~
17004 dialog (toolbar button
17007 arg "dialog-show character"
17011 This was used to create Table
17012 \begin_inset space ~
17016 \begin_inset CommandInset ref
17018 reference "tab:Table-colored-without"
17023 In any other case you have to use the \SpecialChar LaTeX
17029 \begin_inset Index idx
17032 \begin_layout Plain Layout
17034 -packages ! colortbl
17042 \begin_layout Standard
17046 \begin_layout Plain Layout
17056 \begin_inset Note Note
17059 \begin_layout Plain Layout
17060 The following section part will only be displayed when the \SpecialChar LaTeX
17073 \begin_layout Standard
17074 To create colored tables,
17078 must be loaded in the preamble with the line
17081 \begin_layout Standard
17086 usepackage{colortbl}
17089 \begin_layout Standard
17090 The color of a column is adjusted with the command
17093 \begin_layout Standard
17098 columncolor{name of color}
17101 \begin_layout Standard
17107 More about the command
17111 is contained in section
17112 \begin_inset space ~
17116 \begin_inset CommandInset ref
17118 reference "subsec:Multicolumn-Calculations"
17125 \begin_layout Standard
17126 The following color names are predefined:
17129 \begin_layout Standard
17163 \begin_layout Standard
17164 \begin_inset VSpace medskip
17170 \begin_layout Standard
17171 If you add the option
17174 \begin_layout Standard
17180 \begin_layout Standard
17181 to the document class options in the document settings, you can additionally
17183 \begin_inset space ~
17187 These colors are listed in appendix
17188 \begin_inset space ~
17192 \begin_inset CommandInset ref
17194 reference "chap:List-of-dvips-colornames"
17199 One of these colors,
17203 , is used as example in Table
17204 \begin_inset space ~
17208 \begin_inset CommandInset ref
17210 reference "tab:Table-colored-using"
17217 \begin_layout Standard
17218 \begin_inset VSpace medskip
17224 \begin_layout Standard
17225 You can also define your own color with the command
17228 \begin_layout Standard
17233 definecolor{color name}{color model}{color values}
17236 \begin_layout Standard
17237 The color model can be
17240 \begin_layout Labeling
17241 \labelwidthstring 00.00.0000
17242 cmyk: cyan, magenta, yellow, black
17245 \begin_layout Labeling
17246 \labelwidthstring 00.00.0000
17247 rgb: red, green blue
17250 \begin_layout Labeling
17251 \labelwidthstring 00.00.0000
17255 \begin_layout Standard
17256 and the color values are comma separated numbers between 0 and 1 describing
17257 the factor for the corresponding color of the color model.
17260 \begin_layout Standard
17262 \begin_inset space \thinspace{}
17266 \begin_inset space \space{}
17273 " in the preamble with
17276 \begin_layout Standard
17281 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17284 \begin_layout Standard
17292 \begin_layout Standard
17297 definecolor{lightgray}{gray}{0.8}
17300 \begin_layout Standard
17301 \begin_inset VSpace medskip
17307 \begin_layout Standard
17308 Lines are colored with the command
17311 \begin_layout Standard
17316 rowcolor{name of color}
17319 \begin_layout Standard
17320 and cells are colored with the command
17323 \begin_layout Standard
17328 cellcolor{name of color}
17331 \begin_layout Standard
17332 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17336 \begin_layout Standard
17337 To color characters in the table, mark the cells and use the
17340 \begin_inset space ~
17346 If a cell contains \SpecialChar TeX
17347 Code mark only the characters, otherwise the colored
17349 Code will cause \SpecialChar LaTeX
17353 \begin_layout Standard
17354 \begin_inset Note Greyedout
17357 \begin_layout Plain Layout
17362 Not all DVI-viewers are able to display self-defined colors.
17370 \begin_layout Standard
17371 \begin_inset VSpace bigskip
17377 \begin_layout Standard
17379 \begin_inset space ~
17383 \begin_inset CommandInset ref
17385 reference "tab:Table-colored-using"
17389 do the following: The color of the first column should be
17397 \begin_layout Standard
17402 columncolor{darkgreen}
17407 \begin_layout Standard
17408 as \SpecialChar LaTeX
17409 -argument for this column.
17410 The first row should be light blue, therefore the \SpecialChar TeX
17414 \begin_layout Standard
17422 \begin_layout Standard
17423 is inserted to the first cell of this row.
17424 Note that this overwrites the column color for the first cell.
17425 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17430 \begin_layout Standard
17438 \begin_layout Standard
17439 The characters could now be colored using the menu
17441 Edit\SpecialChar menuseparator
17443 \begin_inset space ~
17451 \begin_layout Standard
17452 \begin_inset Float table
17458 \begin_layout Plain Layout
17459 \begin_inset Caption Standard
17461 \begin_layout Plain Layout
17462 \begin_inset CommandInset label
17464 name "tab:Table-colored-using"
17468 Table colored using the package
17473 \begin_inset Argument 1
17476 \begin_layout Plain Layout
17477 Table with colortbl
17490 \begin_layout Plain Layout
17492 \begin_inset Tabular
17493 <lyxtabular version="3" rows="3" columns="3">
17494 <features tabularvalignment="middle">
17495 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17496 <column alignment="center" valignment="top">
17497 <column alignment="center" valignment="top">
17499 <cell alignment="center" valignment="top" usebox="none">
17502 \begin_layout Plain Layout
17506 \begin_layout Plain Layout
17522 <cell alignment="center" valignment="top" usebox="none">
17525 \begin_layout Plain Layout
17533 <cell alignment="center" valignment="top" usebox="none">
17536 \begin_layout Plain Layout
17546 <cell alignment="center" valignment="top" usebox="none">
17549 \begin_layout Plain Layout
17557 <cell alignment="center" valignment="top" usebox="none">
17560 \begin_layout Plain Layout
17568 <cell alignment="center" valignment="top" usebox="none">
17571 \begin_layout Plain Layout
17581 <cell alignment="center" valignment="top" usebox="none">
17584 \begin_layout Plain Layout
17592 <cell alignment="center" valignment="top" usebox="none">
17595 \begin_layout Plain Layout
17603 <cell alignment="center" valignment="top" usebox="none">
17606 \begin_layout Plain Layout
17610 \begin_layout Plain Layout
17639 \begin_layout Standard
17643 \begin_layout Plain Layout
17653 \begin_inset Note Note
17656 \begin_layout Plain Layout
17657 The following will be displayed when the \SpecialChar LaTeX
17670 \begin_layout Standard
17671 You need to install the package
17675 to see the content of this section in the output.
17678 \begin_layout Standard
17682 \begin_layout Plain Layout
17694 \begin_layout Subsection
17696 \begin_inset Index idx
17699 \begin_layout Plain Layout
17700 Table Color ! for Rows
17706 \begin_inset Index idx
17709 \begin_layout Plain Layout
17710 Color ! for Table Rows
17718 \begin_layout Standard
17719 In case every second table row needs to be colored there is an alternative
17720 to the method described in the previous section: One loads the package
17726 \begin_inset Index idx
17729 \begin_layout Plain Layout
17735 \begin_layout Plain Layout
17749 in the document preamble with the command
17752 \begin_layout Standard
17757 usepackage[table]{xcolor}
17760 \begin_layout Standard
17765 automatically loads also the package
17770 \begin_inset Index idx
17773 \begin_layout Plain Layout
17775 -packages ! colortbl
17784 must be installed in your \SpecialChar LaTeX
17785 -distribution, otherwise you get \SpecialChar LaTeX
17789 \begin_layout Standard
17793 \begin_layout Plain Layout
17803 \begin_inset Note Note
17806 \begin_layout Plain Layout
17807 The following section part will only be displayed when the \SpecialChar LaTeX
17820 \begin_layout Standard
17821 The table rows are colored with the command
17824 \begin_layout Standard
17829 rowcolors[commands]{row number}{odd row color}{even row color}
17832 \begin_layout Standard
17833 that is either inserted in the document preamble or as \SpecialChar TeX
17835 first table to be colored.
17837 \begin_inset space ~
17840 number is the number of the first row which should be colored according
17841 to the odd row color.
17842 commands can be additional commands that are executed before every table
17844 So for example the command
17847 \begin_layout Standard
17852 rowcolors{1}{white}{lightgray}
17855 \begin_layout Standard
17856 leads to the coloring scheme of Table
17857 \begin_inset space ~
17861 \begin_inset CommandInset ref
17863 reference "tab:Table-rowcolors"
17871 \begin_layout Standard
17878 hline]{1}{lightgray}{cyan}
17881 \begin_layout Standard
17882 leads to the coloring scheme of Table
17883 \begin_inset space ~
17887 \begin_inset CommandInset ref
17889 reference "tab:Table-rowcolors-2"
17895 \begin_inset space ~
17899 \begin_inset space ~
17903 \begin_inset space ~
17907 \begin_inset space ~
17910 color are left empty, no color will be used so that the command
17913 \begin_layout Standard
17921 \begin_layout Standard
17922 deletes all colors.
17929 affects all tables following that command.
17932 \begin_layout Standard
17936 \begin_layout Plain Layout
17940 rowcolors{1}{white}{lightgray}
17948 \begin_layout Standard
17949 \begin_inset Float table
17955 \begin_layout Plain Layout
17956 \begin_inset Caption Standard
17958 \begin_layout Plain Layout
17959 \begin_inset CommandInset label
17961 name "tab:Table-rowcolors"
17965 Table where every second row is colored light gray.
17973 \begin_layout Plain Layout
17975 \begin_inset Tabular
17976 <lyxtabular version="3" rows="4" columns="3">
17977 <features tabularvalignment="middle">
17978 <column alignment="center" valignment="top">
17979 <column alignment="center" valignment="top" width="0pt">
17980 <column alignment="center" valignment="top" width="0pt">
17982 <cell alignment="center" valignment="top" usebox="none">
17985 \begin_layout Plain Layout
17991 <cell alignment="center" valignment="top" usebox="none">
17994 \begin_layout Plain Layout
18000 <cell alignment="center" valignment="top" usebox="none">
18003 \begin_layout Plain Layout
18011 <cell alignment="center" valignment="top" usebox="none">
18014 \begin_layout Plain Layout
18020 <cell alignment="center" valignment="top" usebox="none">
18023 \begin_layout Plain Layout
18029 <cell alignment="center" valignment="top" usebox="none">
18032 \begin_layout Plain Layout
18040 <cell alignment="center" valignment="top" usebox="none">
18043 \begin_layout Plain Layout
18049 <cell alignment="center" valignment="top" usebox="none">
18052 \begin_layout Plain Layout
18058 <cell alignment="center" valignment="top" usebox="none">
18061 \begin_layout Plain Layout
18069 <cell alignment="center" valignment="top" usebox="none">
18072 \begin_layout Plain Layout
18078 <cell alignment="center" valignment="top" usebox="none">
18081 \begin_layout Plain Layout
18087 <cell alignment="center" valignment="top" usebox="none">
18090 \begin_layout Plain Layout
18109 \begin_layout Standard
18113 \begin_layout Plain Layout
18119 hline]{1}{lightgray}{cyan}
18127 \begin_layout Standard
18128 \begin_inset Float table
18134 \begin_layout Plain Layout
18135 \begin_inset Caption Standard
18137 \begin_layout Plain Layout
18138 \begin_inset CommandInset label
18140 name "tab:Table-rowcolors-2"
18144 Table where every second row is colored cyan and at which there is a line
18153 \begin_layout Plain Layout
18155 \begin_inset Tabular
18156 <lyxtabular version="3" rows="4" columns="3">
18157 <features tabularvalignment="middle">
18158 <column alignment="center" valignment="top">
18159 <column alignment="center" valignment="top">
18160 <column alignment="center" valignment="top" width="0pt">
18162 <cell alignment="center" valignment="top" usebox="none">
18165 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" usebox="none">
18174 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" usebox="none">
18183 \begin_layout Plain Layout
18191 <cell alignment="center" valignment="top" usebox="none">
18194 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" usebox="none">
18203 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" usebox="none">
18212 \begin_layout Plain Layout
18220 <cell alignment="center" valignment="top" usebox="none">
18223 \begin_layout Plain Layout
18229 <cell alignment="center" valignment="top" usebox="none">
18232 \begin_layout Plain Layout
18238 <cell alignment="center" valignment="top" usebox="none">
18241 \begin_layout Plain Layout
18249 <cell alignment="center" valignment="top" usebox="none">
18252 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" usebox="none">
18261 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" usebox="none">
18270 \begin_layout Plain Layout
18289 \begin_layout Standard
18293 \begin_layout Plain Layout
18303 \begin_inset Note Note
18306 \begin_layout Plain Layout
18307 turns off the row coloring
18315 \begin_layout Standard
18319 \begin_layout Plain Layout
18329 \begin_inset Note Note
18332 \begin_layout Plain Layout
18333 The following will be displayed when the \SpecialChar LaTeX
18346 \begin_layout Standard
18347 You need to install the package
18351 to see the content of this section in the output.
18354 \begin_layout Standard
18358 \begin_layout Plain Layout
18370 \begin_layout Subsection
18372 \begin_inset Index idx
18375 \begin_layout Plain Layout
18376 Table Color ! for Lines
18382 \begin_inset Index idx
18385 \begin_layout Plain Layout
18386 Color ! for Table Lines
18394 \begin_layout Standard
18395 As described in section
18396 \begin_inset space ~
18400 \begin_inset CommandInset ref
18402 reference "subsec:Line-Thickness"
18406 , the line thickness for all lines in a table can be adjusted with the length
18415 \begin_inset space \thinspace{}
18418 pt for all tables of this section.
18422 \begin_layout Plain Layout
18428 arrayrulewidth}{1.5pt}
18436 \begin_layout Standard
18437 To color vertical lines for example with green, create the following column
18438 format in the document preamble, according to the description in section
18439 \begin_inset space ~
18443 \begin_inset CommandInset ref
18445 reference "subsec:Customized-Format"
18452 \begin_layout Standard
18457 newcolumntype{W}{!{
18464 \begin_layout Standard
18466 \begin_inset space ~
18470 \begin_inset CommandInset ref
18472 reference "tab:Table-with-vertical-colored"
18476 the \SpecialChar LaTeX
18481 was used for the last column and
18485 for the other columns.
18488 \begin_layout Standard
18489 If you want to have several colors, define more column formats.
18492 \begin_layout Standard
18493 \begin_inset Float table
18499 \begin_layout Plain Layout
18500 \begin_inset Caption Standard
18502 \begin_layout Plain Layout
18503 \begin_inset CommandInset label
18505 name "tab:Table-with-vertical-colored"
18509 Table with colored vertical lines
18517 \begin_layout Plain Layout
18519 \begin_inset Tabular
18520 <lyxtabular version="3" rows="3" columns="3">
18521 <features tabularvalignment="middle">
18522 <column alignment="center" valignment="top" special="Wc">
18523 <column alignment="center" valignment="top" special="Wc">
18524 <column alignment="center" valignment="top" special="WcW">
18526 <cell alignment="center" valignment="top" topline="true" usebox="none">
18529 \begin_layout Plain Layout
18535 <cell alignment="center" valignment="top" topline="true" usebox="none">
18538 \begin_layout Plain Layout
18544 <cell alignment="center" valignment="top" topline="true" usebox="none">
18547 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" topline="true" usebox="none">
18558 \begin_layout Plain Layout
18564 <cell alignment="center" valignment="top" topline="true" usebox="none">
18567 \begin_layout Plain Layout
18573 <cell alignment="center" valignment="top" topline="true" usebox="none">
18576 \begin_layout Plain Layout
18584 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18587 \begin_layout Plain Layout
18593 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18596 \begin_layout Plain Layout
18602 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18605 \begin_layout Plain Layout
18624 \begin_layout Standard
18625 \begin_inset VSpace bigskip
18628 To color horizontal lines for example with red, as in Table
18629 \begin_inset space ~
18633 \begin_inset CommandInset ref
18635 reference "tab:Table-with-horizontal-colored"
18639 , insert these commands in \SpecialChar TeX
18640 Code before the table or table float:
18643 \begin_layout Standard
18653 \begin_inset Newline newline
18661 \begin_inset Newline newline
18665 \begin_inset Phantom HPhantom
18668 \begin_layout Plain Layout
18671 \begin_inset space ~
18681 arrayrulecolor{red}
18685 arrayrulecolor{black}}
18688 \begin_layout Standard
18692 \begin_layout Plain Layout
18703 \begin_layout Plain Layout
18712 \begin_layout Plain Layout
18716 arrayrulecolor{red}
18720 arrayrulecolor{black}}
18726 \begin_inset Float table
18732 \begin_layout Plain Layout
18733 \begin_inset Caption Standard
18735 \begin_layout Plain Layout
18736 \begin_inset CommandInset label
18738 name "tab:Table-with-horizontal-colored"
18742 Table with colored horizontal lines
18750 \begin_layout Plain Layout
18752 \begin_inset Tabular
18753 <lyxtabular version="3" rows="3" columns="3">
18754 <features tabularvalignment="middle">
18755 <column alignment="center" valignment="top">
18756 <column alignment="center" valignment="top">
18757 <column alignment="center" valignment="top">
18759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18771 \begin_layout Plain Layout
18777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18780 \begin_layout Plain Layout
18788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18791 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18800 \begin_layout Plain Layout
18806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18809 \begin_layout Plain Layout
18817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18820 \begin_layout Plain Layout
18826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18829 \begin_layout Plain Layout
18835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18838 \begin_layout Plain Layout
18857 \begin_layout Standard
18858 To return to the default line color black, insert this command in \SpecialChar TeX
18860 after the table or table float:
18863 \begin_layout Standard
18875 \begin_layout Standard
18877 \begin_inset space ~
18881 \begin_inset CommandInset ref
18883 reference "tab:Table-with-colored"
18887 is an example with colored vertical and horizontal lines.
18890 \begin_layout Standard
18891 \begin_inset Float table
18897 \begin_layout Plain Layout
18898 \begin_inset Caption Standard
18900 \begin_layout Plain Layout
18901 \begin_inset CommandInset label
18903 name "tab:Table-with-colored"
18907 Table with colored lines
18915 \begin_layout Plain Layout
18917 \begin_inset Tabular
18918 <lyxtabular version="3" rows="3" columns="3">
18919 <features tabularvalignment="middle">
18920 <column alignment="center" valignment="top" special="Wc">
18921 <column alignment="center" valignment="top" special="Wc">
18922 <column alignment="center" valignment="top" special="WcW">
18924 <cell alignment="center" valignment="top" topline="true" usebox="none">
18927 \begin_layout Plain Layout
18933 <cell alignment="center" valignment="top" topline="true" usebox="none">
18936 \begin_layout Plain Layout
18942 <cell alignment="center" valignment="top" topline="true" usebox="none">
18945 \begin_layout Plain Layout
18953 <cell alignment="center" valignment="top" topline="true" usebox="none">
18956 \begin_layout Plain Layout
18962 <cell alignment="center" valignment="top" topline="true" usebox="none">
18965 \begin_layout Plain Layout
18971 <cell alignment="center" valignment="top" topline="true" usebox="none">
18974 \begin_layout Plain Layout
18981 <row topspace="default">
18982 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18985 \begin_layout Plain Layout
18991 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18994 \begin_layout Plain Layout
19000 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19003 \begin_layout Plain Layout
19022 \begin_layout Standard
19026 \begin_layout Plain Layout
19042 \begin_layout Standard
19046 \begin_layout Plain Layout
19052 arrayrulewidth}{0.4pt}
19060 \begin_layout Section
19061 Rotated Table Cells
19062 \begin_inset CommandInset label
19064 name "sec:Rotated-Table-Cells"
19069 \begin_inset Index idx
19072 \begin_layout Plain Layout
19073 Table ! Rotated Cells
19079 \begin_inset Index idx
19082 \begin_layout Plain Layout
19091 \begin_layout Standard
19092 \begin_inset Note Greyedout
19095 \begin_layout Plain Layout
19100 Not all DVI-viewers are able to display rotations.
19108 \begin_layout Standard
19110 \begin_inset space ~
19114 \begin_inset CommandInset ref
19116 reference "tab:Table-with-rotated-multi"
19120 is an example where 3
19121 \begin_inset space ~
19124 cells were rotated by 45
19125 \begin_inset space \thinspace{}
19131 \begin_layout Standard
19132 \begin_inset Float table
19138 \begin_layout Plain Layout
19139 \begin_inset Caption Standard
19141 \begin_layout Plain Layout
19142 \begin_inset CommandInset label
19144 name "tab:Table-with-rotated"
19148 Table with rotated cells in the first row.
19156 \begin_layout Plain Layout
19159 \begin_inset Tabular
19160 <lyxtabular version="3" rows="2" columns="3">
19161 <features tabularvalignment="middle">
19162 <column alignment="center" valignment="top" width="0pt">
19163 <column alignment="center" valignment="top" width="0pt">
19164 <column alignment="center" valignment="top" width="0pt">
19166 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19169 \begin_layout Plain Layout
19175 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19178 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19187 \begin_layout Plain Layout
19195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19198 \begin_layout Plain Layout
19204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19207 \begin_layout Plain Layout
19213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19216 \begin_layout Plain Layout
19235 \begin_layout Standard
19236 \begin_inset Note Greyedout
19239 \begin_layout Plain Layout
19244 Line breaks (shortcut
19247 arg "newline-insert newline"
19250 ) are not allowed in rotated cells.
19258 \begin_layout Standard
19259 If you want to rotate table cells containing line breaks, you have to put
19260 the cell content into a minipage or a parbox.
19264 \begin_layout Plain Layout
19265 For more about these boxes see sec.
19266 \begin_inset space \thinspace{}
19270 \begin_inset CommandInset ref
19272 reference "sec:Minipages"
19277 \begin_inset CommandInset ref
19279 reference "sec:Parboxes"
19288 If you rotate this cell by 90
19289 \begin_inset space \thinspace{}
19292 ° the width of the box is the height of the cell.
19294 \begin_inset space ~
19298 \begin_inset CommandInset ref
19300 reference "tab:Table-with-rotated-multi"
19304 is an example for a rotated multiline cell where the box width was set
19306 \begin_inset space \thinspace{}
19312 \begin_layout Standard
19313 \begin_inset Float table
19318 \begin_layout Plain Layout
19319 \begin_inset Caption Standard
19321 \begin_layout Plain Layout
19322 \begin_inset CommandInset label
19324 name "tab:Table-with-rotated-multi"
19328 Table with rotated multiline cell.
19336 \begin_layout Plain Layout
19339 \begin_inset Tabular
19340 <lyxtabular version="3" rows="2" columns="3">
19341 <features tabularvalignment="middle">
19342 <column alignment="center" valignment="top">
19343 <column alignment="center" valignment="top" width="0pt">
19344 <column alignment="center" valignment="top">
19346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19349 \begin_layout Plain Layout
19355 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19358 \begin_layout Plain Layout
19359 \begin_inset Box Frameless
19369 height_special "totalheight"
19374 backgroundcolor "none"
19377 \begin_layout Plain Layout
19379 \begin_inset Newline newline
19392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19395 \begin_layout Plain Layout
19403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19406 \begin_layout Plain Layout
19412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19415 \begin_layout Plain Layout
19421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19424 \begin_layout Plain Layout
19443 \begin_layout Section
19444 Table Width Calculation
19445 \begin_inset CommandInset label
19447 name "sec:Table-Width-Calculation"
19454 \begin_layout Standard
19455 For wide tables it is sometimes difficult to assure that the table does
19456 not protrude over the page margin.
19457 Setting a fixed width for every column of the table is the solution, but
19458 what amount of space is needed for each column?
19461 \begin_layout Standard
19463 \begin_inset Formula $W_{\mathrm{table}}$
19466 can be calculated: Every column has the width of the specified column width
19468 \begin_inset Formula $W_{\mathrm{column}}$
19471 (that the content of the column can consume) plus two times the separation
19472 between the column content and the column border (\SpecialChar LaTeX
19480 \begin_inset space \thinspace{}
19483 pt) plus the width of a border line (\SpecialChar LaTeX
19491 \begin_inset space \thinspace{}
19495 \begin_inset Formula $n$
19499 \begin_inset space ~
19502 columns have the same width, the table width is
19503 \begin_inset Formula
19505 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19513 \begin_layout Standard
19514 The available width for a table is the space between the page margins or
19515 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19523 If all table columns should have the same width and
19524 \begin_inset Formula $W_{\mathrm{table}}$
19528 \begin_inset space \thinspace{}
19534 \begin_inset Formula $W_{\mathrm{column}}$
19537 can easily be calculated.
19540 \begin_layout Standard
19541 To be able to perform calculations you need to load the \SpecialChar LaTeX
19547 \begin_inset Index idx
19550 \begin_layout Plain Layout
19557 in the document preamble.
19558 To set the width in the table dialog you have to use the field
19564 The command scheme for this field is the same that is explained in section
19565 \begin_inset space ~
19569 \begin_inset CommandInset ref
19571 reference "subsec:Multicolumn-Calculations"
19577 \begin_inset space \thinspace{}
19580 columns with an uniform width and centered text, enter there for each column
19584 \begin_layout Standard
19591 columnwidth-62.4pt)/5}
19594 \begin_layout Standard
19596 \begin_inset space \thinspace{}
19599 columns where 2 should have 0.75
19600 \begin_inset space ~
19603 times the width than the 3 others, the calculation is
19604 \begin_inset Formula
19606 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19607 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19608 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19609 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19617 \begin_layout Standard
19618 In the table therefore the command
19621 \begin_layout Standard
19628 columnwidth-62.4pt)/
19633 \begin_layout Standard
19634 is used for the wider columns and
19637 \begin_layout Standard
19644 columnwidth-62.4pt)/
19651 \begin_layout Standard
19652 for the smaller ones:
19655 \begin_layout Standard
19656 \begin_inset Tabular
19657 <lyxtabular version="3" rows="2" columns="5">
19658 <features tabularvalignment="middle">
19659 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19660 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19661 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19662 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19663 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19668 \begin_layout Plain Layout
19674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19677 \begin_layout Plain Layout
19683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19686 \begin_layout Plain Layout
19692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19695 \begin_layout Plain Layout
19701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19704 \begin_layout Plain Layout
19712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19715 \begin_layout Plain Layout
19716 111111 1111111 111111 111111111 11111 11111 1111
19721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19724 \begin_layout Plain Layout
19730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19733 \begin_layout Plain Layout
19734 2222 22222 222222 222222222 2222222 22 22222
19739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19742 \begin_layout Plain Layout
19748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19751 \begin_layout Plain Layout
19752 333333 333333 333333 33333 3333333 333
19765 \begin_layout Section
19766 Table Customization
19767 \begin_inset Index idx
19770 \begin_layout Plain Layout
19771 Table Customization
19777 \begin_inset Index idx
19780 \begin_layout Plain Layout
19781 Table ! Customization
19789 \begin_layout Subsection
19791 \begin_inset CommandInset label
19793 name "subsec:Row-Spacing"
19798 \begin_inset Index idx
19801 \begin_layout Plain Layout
19802 Table Customization ! Row Spacing
19810 \begin_layout Standard
19811 You can add vertical space to table rows in the
19815 tab of the table dialog.
19816 You find there three possibilities:
19819 \begin_layout Description
19821 \begin_inset space ~
19825 \begin_inset space ~
19828 row will add space above the characters of the table row.
19829 If the table is a formal table
19833 \begin_layout Plain Layout
19834 Formal tables are explained in section
19835 \begin_inset space ~
19839 \begin_inset CommandInset ref
19841 reference "sec:Formal-Tables"
19851 will insert as default 0.5
19852 \begin_inset space \thinspace{}
19856 For normal tables the inserted space will unfortunately destroy the vertical
19857 table lines as in the following table:
19858 \begin_inset VSpace medskip
19862 \begin_inset Newline newline
19866 \begin_inset space \hspace*{}
19871 \begin_inset space \hfill{}
19875 \begin_inset Tabular
19876 <lyxtabular version="3" rows="3" columns="1">
19877 <features tabularvalignment="middle">
19878 <column alignment="center" valignment="top">
19880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19883 \begin_layout Plain Layout
19890 <row topspace="3mm">
19891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19894 \begin_layout Plain Layout
19896 \begin_inset space \thinspace{}
19899 mm space top of row
19906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19909 \begin_layout Plain Layout
19921 \begin_inset space \hfill{}
19925 \begin_inset space \hspace*{}
19930 \begin_inset VSpace medskip
19934 \begin_inset Newline newline
19937 So inserting space in the top of row for normal tables is only useful when
19938 you don't have vertical lines.
19941 \begin_layout Description
19943 \begin_inset space ~
19947 \begin_inset space ~
19950 row will add space below the characters of the table row.
19951 If the table is a formal table \SpecialChar LyX
19952 will insert as default 0.5
19953 \begin_inset space \thinspace{}
19956 em space, for normal tables the default size is 2
19957 \begin_inset space \thinspace{}
19963 \begin_layout Description
19965 \begin_inset space ~
19968 rows adds space between the current and the following row.
19969 If the table is a formal table \SpecialChar LyX
19970 will insert as default 0.5
19971 \begin_inset space \thinspace{}
19975 For normal tables the inserted space will unfortunately destroy the vertical
19976 table lines as in the following table:
19977 \begin_inset VSpace medskip
19981 \begin_inset Newline newline
19985 \begin_inset space \hspace*{}
19990 \begin_inset space \hfill{}
19994 \begin_inset Tabular
19995 <lyxtabular version="3" rows="3" columns="1">
19996 <features tabularvalignment="middle">
19997 <column alignment="center" valignment="top">
19999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20002 \begin_layout Plain Layout
20009 <row interlinespace="3mm">
20010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20013 \begin_layout Plain Layout
20014 \begin_inset Formula $\downarrow$
20018 \begin_inset space \thinspace{}
20021 mm space between row
20022 \begin_inset Formula $\downarrow$
20032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20035 \begin_layout Plain Layout
20036 \begin_inset Formula $\uparrow$
20040 \begin_inset space \thinspace{}
20043 mm space between row
20044 \begin_inset Formula $\uparrow$
20058 \begin_inset space \hfill{}
20062 \begin_inset space \hspace*{}
20067 \begin_inset VSpace medskip
20071 \begin_inset Newline newline
20074 So inserting space between rows for normal tables is only useful when you
20075 don't have vertical lines.
20078 \begin_layout Standard
20079 \begin_inset VSpace bigskip
20082 When you want to add extra height to all cells of all tables, you can do
20083 this with the following preamble lines:
20086 \begin_layout Standard
20091 @ifundefined{extrarowheight}
20092 \begin_inset Newline newline
20096 \begin_inset Phantom HPhantom
20099 \begin_layout Plain Layout
20102 \begin_inset space ~
20112 usepackage{array}}{}
20113 \begin_inset Newline newline
20120 extrarowheight}{height}
20123 \begin_inset Note Note
20126 \begin_layout Plain Layout
20131 will be loaded automatically by \SpecialChar LyX
20132 when you use self defined table formats.
20133 To avoid that it being loaded twice the command
20139 is used in the above command.
20147 \begin_layout Standard
20152 can have one of the units listed in appendix
20153 \begin_inset space ~
20157 \begin_inset CommandInset ref
20159 reference "cha:Units-available-in"
20164 But this has the disadvantage that the cell texts are no longer exactly
20165 vertically centered.
20168 \begin_layout Standard
20169 If you are using font sizes larger than the normal size, the table borders
20170 are often too close to the letters.
20171 This can be corrected by inserting the command
20177 in \SpecialChar TeX
20178 Code at the beginning of a table row.
20180 \begin_inset space ~
20184 \begin_inset CommandInset ref
20186 reference "tab:Vertical-alignment-of"
20190 illustrates the effect.
20193 \begin_layout Standard
20195 \begin_inset Float table
20201 \begin_layout Plain Layout
20202 \begin_inset Caption Standard
20204 \begin_layout Plain Layout
20205 \begin_inset CommandInset label
20207 name "tab:Vertical-alignment-of"
20211 Vertical alignment of text with large font sizes.
20219 \begin_layout Plain Layout
20220 \begin_inset space \hfill{}
20224 \begin_inset Float table
20229 \begin_layout Plain Layout
20230 \begin_inset Caption Standard
20232 \begin_layout Plain Layout
20241 \begin_layout Plain Layout
20244 \begin_inset Tabular
20245 <lyxtabular version="3" rows="6" columns="1">
20246 <features tabularvalignment="middle">
20247 <column alignment="left" valignment="top">
20249 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20252 \begin_layout Plain Layout
20260 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20263 \begin_layout Plain Layout
20273 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20276 \begin_layout Plain Layout
20286 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20289 \begin_layout Plain Layout
20299 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20302 \begin_layout Plain Layout
20312 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20315 \begin_layout Plain Layout
20334 \begin_inset space \hfill{}
20338 \begin_inset Float table
20343 \begin_layout Plain Layout
20344 \begin_inset Caption Standard
20346 \begin_layout Plain Layout
20347 Table using the command
20361 \begin_layout Plain Layout
20364 \begin_inset Tabular
20365 <lyxtabular version="3" rows="6" columns="1">
20366 <features tabularvalignment="middle">
20367 <column alignment="left" valignment="top">
20369 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20372 \begin_layout Plain Layout
20380 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20383 \begin_layout Plain Layout
20389 \begin_layout Plain Layout
20405 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20408 \begin_layout Plain Layout
20414 \begin_layout Plain Layout
20430 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20433 \begin_layout Plain Layout
20439 \begin_layout Plain Layout
20455 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20458 \begin_layout Plain Layout
20464 \begin_layout Plain Layout
20480 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20483 \begin_layout Plain Layout
20489 \begin_layout Plain Layout
20516 \begin_inset space \hfill{}
20527 \begin_layout Subsection
20528 Special Cell Alignment
20529 \begin_inset CommandInset label
20531 name "subsec:Special-Cell-Alignment"
20536 \begin_inset Index idx
20539 \begin_layout Plain Layout
20540 Table Customization ! Special Cell Alignment
20548 \begin_layout Standard
20549 Sometimes it looks better when the cell entries of a column are aligned
20550 with a special character, e.
20551 \begin_inset space \thinspace{}
20555 \begin_inset space \space{}
20558 with the decimal separator as in Table
20559 \begin_inset space ~
20563 \begin_inset CommandInset ref
20565 reference "tab:Table-cells-align"
20570 This alignment is achieved by setting the cursor into the column and then
20571 either pressing the toolbar button
20574 arg "tabular-feature align-decimal"
20577 or setting the alignment in the table settings to
20580 \begin_inset space ~
20584 \begin_inset space ~
20590 The alignment character can be a character of your choice and is specified
20591 in the table settings.
20594 \begin_layout Standard
20595 \begin_inset Float table
20601 \begin_layout Plain Layout
20602 \begin_inset Caption Standard
20604 \begin_layout Plain Layout
20605 \begin_inset CommandInset label
20607 name "tab:Table-cells-align"
20611 Table cells of a column aligned with the decimal separator.
20619 \begin_layout Plain Layout
20621 \begin_inset Tabular
20622 <lyxtabular version="3" rows="4" columns="1">
20623 <features booktabs="true" tabularvalignment="middle">
20624 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20629 \begin_layout Plain Layout
20637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20640 \begin_layout Plain Layout
20648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20651 \begin_layout Plain Layout
20659 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20662 \begin_layout Plain Layout
20681 \begin_layout Standard
20682 \begin_inset Float table
20688 \begin_layout Plain Layout
20689 \begin_inset Caption Standard
20691 \begin_layout Plain Layout
20692 \begin_inset CommandInset label
20694 name "tab:Table-align-operator"
20698 Table cells of a column aligned with the operators.
20706 \begin_layout Plain Layout
20708 \begin_inset Tabular
20709 <lyxtabular version="3" rows="4" columns="2">
20710 <features booktabs="true" tabularvalignment="middle">
20711 <column alignment="right" valignment="top" width="0pt">
20712 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20714 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20717 \begin_layout Plain Layout
20723 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20726 \begin_layout Plain Layout
20734 <cell alignment="center" valignment="top" usebox="none">
20737 \begin_layout Plain Layout
20738 \begin_inset Formula $12\,+$
20746 <cell alignment="center" valignment="top" usebox="none">
20749 \begin_layout Plain Layout
20750 \begin_inset Formula $\,6$
20760 <cell alignment="center" valignment="top" usebox="none">
20763 \begin_layout Plain Layout
20764 \begin_inset Formula $0\,-$
20772 <cell alignment="center" valignment="top" usebox="none">
20775 \begin_layout Plain Layout
20776 \begin_inset Formula $\,68$
20786 <cell alignment="center" valignment="top" usebox="none">
20789 \begin_layout Plain Layout
20790 \begin_inset Formula $-123\,/$
20798 <cell alignment="center" valignment="top" usebox="none">
20801 \begin_layout Plain Layout
20802 \begin_inset Formula $\,0$
20823 \begin_layout Standard
20824 For alignments at characters in formulas this method does not work because
20825 the field to specify the alignment character does not allow formulas.
20826 In this case one need to use the method from Table
20827 \begin_inset space ~
20831 \begin_inset CommandInset ref
20833 reference "tab:Table-align-operator"
20838 This table was created with a 4×2 table.
20839 The heading is a centered multicolumn.
20840 The first column is right-aligned and contains the first part including
20842 The second column is left aligned and contains the rest.
20843 A small space was added at the beginning of each cell of the second column
20844 to get the space that is usually around operators.
20845 To omit the space that is normally between two table columns, the following
20847 -argument was used for the second column:
20850 \begin_layout Standard
20856 \begin_layout Standard
20858 \begin_inset space ~
20862 \begin_inset CommandInset ref
20864 reference "tab:Several-table-cell"
20868 shows some example alignments.
20869 For the alignment with the relation sign, a small space was added like
20870 for the second column of Table
20871 \begin_inset space ~
20875 \begin_inset CommandInset ref
20877 reference "tab:Table-align-operator"
20884 \begin_layout Standard
20885 \begin_inset Float table
20891 \begin_layout Plain Layout
20892 \begin_inset Caption Standard
20894 \begin_layout Plain Layout
20895 \begin_inset CommandInset label
20897 name "tab:Several-table-cell"
20901 Several table cell alignments.
20909 \begin_layout Plain Layout
20911 \begin_inset Tabular
20912 <lyxtabular version="3" rows="4" columns="6">
20913 <features tabularvalignment="middle">
20914 <column alignment="right" valignment="top">
20915 <column alignment="left" valignment="top" special="@{}l">
20916 <column alignment="right" valignment="top">
20917 <column alignment="left" valignment="top" special="@{}l">
20918 <column alignment="right" valignment="top">
20919 <column alignment="left" valignment="top" special="@{}l">
20921 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20924 \begin_layout Plain Layout
20930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20933 \begin_layout Plain Layout
20939 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20942 \begin_layout Plain Layout
20948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20951 \begin_layout Plain Layout
20957 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20960 \begin_layout Plain Layout
20966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20969 \begin_layout Plain Layout
20977 <cell alignment="center" valignment="top" usebox="none">
20980 \begin_layout Plain Layout
20986 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20989 \begin_layout Plain Layout
20991 \begin_inset space \thinspace{}
20999 <cell alignment="center" valignment="top" usebox="none">
21002 \begin_layout Plain Layout
21003 \begin_inset Formula $10\cdot$
21011 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21014 \begin_layout Plain Layout
21015 \begin_inset Formula $10^{\mbox{-}17}$
21023 <cell alignment="center" valignment="top" usebox="none">
21026 \begin_layout Plain Layout
21027 \begin_inset Formula $\Gamma(t)\propto$
21035 <cell alignment="center" valignment="top" usebox="none">
21038 \begin_layout Plain Layout
21039 \begin_inset Formula $\:\Upsilon(t)$
21049 <cell alignment="center" valignment="top" usebox="none">
21052 \begin_layout Plain Layout
21058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21061 \begin_layout Plain Layout
21063 \begin_inset space \thinspace{}
21071 <cell alignment="center" valignment="top" usebox="none">
21074 \begin_layout Plain Layout
21075 \begin_inset Formula $5.78\cdot$
21083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21086 \begin_layout Plain Layout
21087 \begin_inset Formula $10^{7}$
21095 <cell alignment="center" valignment="top" usebox="none">
21098 \begin_layout Plain Layout
21099 \begin_inset Formula $A\ne$
21107 <cell alignment="center" valignment="top" usebox="none">
21110 \begin_layout Plain Layout
21111 \begin_inset Formula $\:B_{\mathrm{red}}$
21121 <cell alignment="center" valignment="top" usebox="none">
21124 \begin_layout Plain Layout
21130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21133 \begin_layout Plain Layout
21135 \begin_inset space \thinspace{}
21143 <cell alignment="center" valignment="top" usebox="none">
21146 \begin_layout Plain Layout
21148 \begin_inset Formula $33.5\cdot$
21156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21159 \begin_layout Plain Layout
21160 \begin_inset Formula $10^{4}$
21168 <cell alignment="center" valignment="top" usebox="none">
21171 \begin_layout Plain Layout
21172 \begin_inset Formula $\sin(\alpha)\ge$
21180 <cell alignment="center" valignment="top" usebox="none">
21183 \begin_layout Plain Layout
21184 \begin_inset Formula $\:\sin(\beta)$
21205 \begin_layout Subsection
21206 Customized Cell/Column Format
21207 \begin_inset CommandInset label
21209 name "subsec:Customized-Format"
21214 \begin_inset Index idx
21217 \begin_layout Plain Layout
21218 Table Customization ! Cell/Column Format
21226 \begin_layout Standard
21227 Calculating the required width for normal columns as described in section
21228 \begin_inset space ~
21232 \begin_inset CommandInset ref
21234 reference "sec:Table-Width-Calculation"
21238 or for spanned columns as described in section
21239 \begin_inset space ~
21243 \begin_inset CommandInset ref
21245 reference "subsec:Multicolumn-Calculations"
21249 is very annoying if you have several tables where a calculation is necessary.
21250 To make life easier, you can define a cell/column format in the preamble,
21251 that can be used in all tables of the document.
21252 The format is defined with the command
21255 \begin_layout Standard
21260 newcolumntype{name of format}[number of arguments]{commands}
21263 \begin_layout Standard
21264 The format name may only consist of one letter.
21289 are predefined and cannot be used.
21290 But all letters are allowed as capitals.
21293 \begin_layout Standard
21294 \begin_inset VSpace medskip
21300 \begin_layout Standard
21301 For vertically and horizontally centered multicolumn cells with a fixed
21302 width you can define the cell format
21305 \begin_layout Standard
21310 newcolumntype{M}[1]{>{
21317 \begin_layout Standard
21324 avoids the problem of hyphenating the first word, as described in section
21325 \begin_inset space ~
21329 \begin_inset CommandInset ref
21331 reference "subsec:Multiple-Lines-in"
21336 Now you can simply enter
21339 \begin_layout Standard
21345 \begin_layout Standard
21351 in the table dialog to create a multicolumn.
21354 \begin_layout Standard
21355 \begin_inset VSpace bigskip
21361 \begin_layout Standard
21362 For cells spanned by a multicolumn cell, you can define the format
21365 \begin_layout Standard
21370 newcolumntype{S}[2]{>{
21375 \begin_inset Newline newline
21379 \begin_inset Phantom HPhantom
21382 \begin_layout Plain Layout
21396 arrayrulewidth)*(1-#2))/#2}}
21399 \begin_layout Standard
21400 This format uses equation
21401 \begin_inset CommandInset ref
21407 to calculate the required width so that each spanned cell has the same
21411 \begin_layout Standard
21415 \begin_layout Standard
21418 S{width of multicolumn cell}{number of spanned columns}
21421 \begin_layout Standard
21422 as \SpecialChar LaTeX
21423 -argument of the column.
21426 \begin_layout Standard
21427 \begin_inset VSpace bigskip
21433 \begin_layout Standard
21434 For colored columns, you can define
21437 \begin_layout Standard
21442 newcolumntype{K}[1]{>{
21449 \begin_layout Standard
21451 \begin_inset Quotes eld
21455 \begin_inset Quotes erd
21458 at the end creates a column with a flexible width whose text is horizontally
21463 \begin_layout Standard
21469 \begin_layout Standard
21470 as \SpecialChar LaTeX
21474 \begin_layout Standard
21475 \begin_inset VSpace bigskip
21481 \begin_layout Standard
21483 \begin_inset space ~
21487 \begin_inset CommandInset ref
21489 reference "tab:Table-using-user-defined"
21493 use the \SpecialChar LaTeX
21497 \begin_layout Standard
21503 \begin_layout Standard
21504 for the first column and the multicolumn,
21507 \begin_layout Standard
21513 \begin_layout Standard
21514 for the last column, and
21517 \begin_layout Standard
21523 \begin_layout Standard
21524 for the cells in the second column.
21527 \begin_layout Standard
21528 \begin_inset Float table
21534 \begin_layout Plain Layout
21535 \begin_inset Caption Standard
21537 \begin_layout Plain Layout
21538 \begin_inset CommandInset label
21540 name "tab:Table-using-user-defined"
21544 Table using user-defined table formats
21552 \begin_layout Plain Layout
21554 \begin_inset Tabular
21555 <lyxtabular version="3" rows="3" columns="4">
21556 <features tabularvalignment="middle">
21557 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21558 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21559 <column alignment="center" valignment="middle">
21560 <column alignment="center" valignment="middle" special="K{red}">
21562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21565 \begin_layout Plain Layout
21566 verylongtablecellword
21571 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21574 \begin_layout Plain Layout
21575 multiple lines multicolumn
21580 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21583 \begin_layout Plain Layout
21589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21592 \begin_layout Plain Layout
21600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21603 \begin_layout Plain Layout
21609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21612 \begin_layout Plain Layout
21618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21621 \begin_layout Plain Layout
21627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21630 \begin_layout Plain Layout
21638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21641 \begin_layout Plain Layout
21647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21650 \begin_layout Plain Layout
21656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21659 \begin_layout Plain Layout
21665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21668 \begin_layout Plain Layout
21687 \begin_layout Subsection
21689 \begin_inset CommandInset label
21691 name "subsec:Line-Thickness"
21696 \begin_inset Index idx
21699 \begin_layout Plain Layout
21700 Table Customization ! Line Thickness
21708 \begin_layout Standard
21709 The line thickness for all lines in a table can be adjusted with the length
21717 To set for example a line thickness of 1.5
21718 \begin_inset space \thinspace{}
21722 \begin_inset space ~
21726 \begin_inset CommandInset ref
21728 reference "tab:Table-with-1.5"
21732 , insert the command
21735 \begin_layout Standard
21742 arrayrulewidth}{1.5pt}
21745 \begin_layout Standard
21746 in \SpecialChar TeX
21747 Code before the table or table float.
21748 The changed thickness is valid for all subsequent tables.
21749 To use the default value again, set
21756 \begin_inset space \thinspace{}
21759 pt in \SpecialChar TeX
21760 Code after the table or table float.
21763 \begin_layout Standard
21767 \begin_layout Plain Layout
21773 arrayrulewidth}{1.5pt}
21779 \begin_inset Float table
21784 \begin_layout Plain Layout
21785 \begin_inset Caption Standard
21787 \begin_layout Plain Layout
21788 \begin_inset CommandInset label
21790 name "tab:Table-with-1.5"
21795 \begin_inset space \thinspace{}
21806 \begin_layout Plain Layout
21808 \begin_inset Tabular
21809 <lyxtabular version="3" rows="3" columns="3">
21810 <features tabularvalignment="middle">
21811 <column alignment="center" valignment="top">
21812 <column alignment="center" valignment="top">
21813 <column alignment="center" valignment="top">
21815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21818 \begin_layout Plain Layout
21824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21827 \begin_layout Plain Layout
21833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21836 \begin_layout Plain Layout
21844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21856 \begin_layout Plain Layout
21862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21865 \begin_layout Plain Layout
21873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21876 \begin_layout Plain Layout
21882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21885 \begin_layout Plain Layout
21891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21894 \begin_layout Plain Layout
21914 \begin_layout Plain Layout
21920 arrayrulewidth}{0.4pt}
21928 \begin_layout Standard
21929 \begin_inset VSpace bigskip
21932 To set the line thickness to 1.5
21933 \begin_inset space \thinspace{}
21936 pt only for horizontal lines, as in Table
21937 \begin_inset space ~
21941 \begin_inset CommandInset ref
21943 reference "tab:Table-with-horizontal"
21947 , insert these commands in \SpecialChar TeX
21948 Code before the table or table float:
21951 \begin_layout Standard
21961 \begin_inset Newline newline
21969 \begin_inset Newline newline
21978 arrayrulewidth 1.5pt}
21979 \begin_inset Newline newline
21990 arrayrulewidth 0.4pt}}
21993 \begin_layout Standard
21994 To return to the default line thickness, insert this command in \SpecialChar TeX
21996 the table or table float:
21999 \begin_layout Standard
22011 \begin_layout Standard
22015 \begin_layout Plain Layout
22026 \begin_layout Plain Layout
22035 \begin_layout Plain Layout
22043 arrayrulewidth 1.5pt}
22046 \begin_layout Plain Layout
22056 arrayrulewidth 0.4pt}}
22062 \begin_inset Float table
22067 \begin_layout Plain Layout
22068 \begin_inset Caption Standard
22070 \begin_layout Plain Layout
22071 \begin_inset CommandInset label
22073 name "tab:Table-with-horizontal"
22078 \begin_inset space \thinspace{}
22081 pt thick horizontal lines
22089 \begin_layout Plain Layout
22091 \begin_inset Tabular
22092 <lyxtabular version="3" rows="3" columns="3">
22093 <features tabularvalignment="middle">
22094 <column alignment="center" valignment="top">
22095 <column alignment="center" valignment="top">
22096 <column alignment="center" valignment="top">
22098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22101 \begin_layout Plain Layout
22107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22110 \begin_layout Plain Layout
22116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22119 \begin_layout Plain Layout
22127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22130 \begin_layout Plain Layout
22136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22139 \begin_layout Plain Layout
22145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22148 \begin_layout Plain Layout
22156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22159 \begin_layout Plain Layout
22165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22168 \begin_layout Plain Layout
22174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22177 \begin_layout Plain Layout
22197 \begin_layout Plain Layout
22213 \begin_layout Standard
22214 \begin_inset VSpace bigskip
22217 To set the line thickness to 1.5
22218 \begin_inset space \thinspace{}
22221 pt only for vertical lines, create the following column format in the document
22222 preamble, according to the description in section
22223 \begin_inset space ~
22227 \begin_inset CommandInset ref
22229 reference "subsec:Customized-Format"
22236 \begin_layout Standard
22241 newcolumntype{V}{!{
22243 vrule width 1.5pt}}
22246 \begin_layout Standard
22248 \begin_inset space ~
22252 \begin_inset CommandInset ref
22254 reference "tab:Table-with-vertical"
22258 the \SpecialChar LaTeX
22262 \begin_layout Standard
22268 \begin_layout Standard
22269 was used for the last column and
22272 \begin_layout Standard
22278 \begin_layout Standard
22279 for the other columns.
22282 \begin_layout Standard
22283 \begin_inset Float table
22288 \begin_layout Plain Layout
22289 \begin_inset Caption Standard
22291 \begin_layout Plain Layout
22292 \begin_inset CommandInset label
22294 name "tab:Table-with-vertical"
22299 \begin_inset space \thinspace{}
22302 pt thick vertical lines
22310 \begin_layout Plain Layout
22312 \begin_inset Tabular
22313 <lyxtabular version="3" rows="3" columns="3">
22314 <features tabularvalignment="middle">
22315 <column alignment="center" valignment="top" special="Vc">
22316 <column alignment="center" valignment="top" special="Vc">
22317 <column alignment="center" valignment="top" special="VcV">
22319 <cell alignment="center" valignment="top" topline="true" usebox="none">
22322 \begin_layout Plain Layout
22328 <cell alignment="center" valignment="top" topline="true" usebox="none">
22331 \begin_layout Plain Layout
22337 <cell alignment="center" valignment="top" topline="true" usebox="none">
22340 \begin_layout Plain Layout
22348 <cell alignment="center" valignment="top" topline="true" usebox="none">
22351 \begin_layout Plain Layout
22357 <cell alignment="center" valignment="top" topline="true" usebox="none">
22360 \begin_layout Plain Layout
22366 <cell alignment="center" valignment="top" topline="true" usebox="none">
22369 \begin_layout Plain Layout
22377 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22380 \begin_layout Plain Layout
22386 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22389 \begin_layout Plain Layout
22395 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22398 \begin_layout Plain Layout
22417 \begin_layout Subsection
22419 \begin_inset Index idx
22422 \begin_layout Plain Layout
22423 Table Customization ! Dashed Lines
22431 \begin_layout Standard
22435 \begin_layout Plain Layout
22445 \begin_inset Note Note
22448 \begin_layout Plain Layout
22449 The following section will only be displayed when the \SpecialChar LaTeX
22462 \begin_layout Standard
22463 \begin_inset Float table
22469 \begin_layout Plain Layout
22470 \begin_inset Caption Standard
22472 \begin_layout Plain Layout
22473 \begin_inset CommandInset label
22475 name "tab:Table-with-dashed"
22479 Table with dashed lines
22487 \begin_layout Plain Layout
22489 \begin_inset Tabular
22490 <lyxtabular version="3" rows="5" columns="5">
22491 <features tabularvalignment="middle">
22492 <column alignment="center" valignment="top">
22493 <column alignment="center" valignment="top">
22494 <column alignment="center" valignment="top" special=":c">
22495 <column alignment="center" valignment="top">
22496 <column alignment="center" valignment="top">
22498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22501 \begin_layout Plain Layout
22507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22510 \begin_layout Plain Layout
22516 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22519 \begin_layout Plain Layout
22525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22528 \begin_layout Plain Layout
22534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22537 \begin_layout Plain Layout
22545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22548 \begin_layout Plain Layout
22554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22557 \begin_layout Plain Layout
22563 <cell alignment="center" valignment="top" topline="true" usebox="none">
22566 \begin_layout Plain Layout
22572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22575 \begin_layout Plain Layout
22581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22584 \begin_layout Plain Layout
22592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22595 \begin_layout Plain Layout
22599 \begin_layout Plain Layout
22613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22616 \begin_layout Plain Layout
22622 <cell alignment="center" valignment="top" usebox="none">
22625 \begin_layout Plain Layout
22631 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22634 \begin_layout Plain Layout
22640 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22643 \begin_layout Plain Layout
22651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22654 \begin_layout Plain Layout
22658 \begin_layout Plain Layout
22672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22675 \begin_layout Plain Layout
22681 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22684 \begin_layout Plain Layout
22690 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22693 \begin_layout Plain Layout
22699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22702 \begin_layout Plain Layout
22710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22713 \begin_layout Plain Layout
22719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22722 \begin_layout Plain Layout
22728 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22731 \begin_layout Plain Layout
22737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22740 \begin_layout Plain Layout
22746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22749 \begin_layout Plain Layout
22768 \begin_layout Standard
22770 does not natively support dashed lines, so you have to use \SpecialChar TeX
22772 As a prerequisite the \SpecialChar LaTeX
22778 \begin_inset Index idx
22781 \begin_layout Plain Layout
22783 -packages ! arydshln
22788 must be loaded in the document preamble with the command
22791 \begin_layout Standard
22796 usepackage{arydshln}
22799 \begin_layout Standard
22800 To make a vertical line dashed, enter the colon
22801 \begin_inset Quotes eld
22805 \begin_inset Quotes erd
22808 together with the character for the horizontal alignment as \SpecialChar LaTeX
22810 the table cell dialog.
22813 \begin_layout Standard
22814 For a horizontal dashed line add the command
22817 \begin_layout Standard
22825 \begin_layout Standard
22826 in \SpecialChar TeX
22827 Code as first element of the first cell in the table row.
22830 \begin_layout Standard
22831 For dashed multicolumn lines use the command
22834 \begin_layout Standard
22839 cdashline{line number
22844 \begin_layout Standard
22845 in \SpecialChar TeX
22846 Code as the first element of the first cell in the table row.
22847 If you have for example a multicolumn spanning columns 2 to 4 and you want
22848 to have a dashed line above, add the command
22851 \begin_layout Standard
22859 \begin_layout Standard
22860 as the first element of the first cell in the row of the multicolumn.
22863 \begin_layout Standard
22864 \begin_inset VSpace bigskip
22870 \begin_layout Standard
22872 \begin_inset space ~
22876 \begin_inset CommandInset ref
22878 reference "tab:Table-with-dashed"
22883 \begin_inset Quotes eld
22891 \begin_inset Quotes erd
22894 as \SpecialChar LaTeX
22895 argument of the third column.
22896 The \SpecialChar TeX
22903 was inserted in the first cell of the third row and the \SpecialChar TeX
22905 \begin_inset Newline newline
22914 was inserted in the first cell of the fourth row.
22917 \begin_layout Standard
22918 \begin_inset VSpace bigskip
22924 \begin_layout Standard
22925 Tables with dashed lines can also be colored as shown by Table
22926 \begin_inset space ~
22930 \begin_inset CommandInset ref
22932 reference "tab:Colored-table-with"
22939 \begin_layout Standard
22943 \begin_layout Plain Layout
22949 arrayrulewidth}{1pt}
22955 \begin_inset Note Note
22958 \begin_layout Plain Layout
22959 thicker lines for better visualization of the line color
22967 \begin_layout Standard
22971 \begin_layout Plain Layout
22975 dashgapcolor{green}
22981 \begin_inset Note Note
22984 \begin_layout Plain Layout
22985 color gaps between dashes green
22993 \begin_layout Standard
22997 \begin_layout Plain Layout
23008 \begin_layout Plain Layout
23017 \begin_layout Plain Layout
23021 arrayrulecolor{red}
23025 arrayrulecolor{black}}
23031 \begin_inset Note Note
23034 \begin_layout Plain Layout
23035 color horizontal, dashed lines red
23043 \begin_layout Standard
23047 \begin_layout Plain Layout
23058 \begin_layout Plain Layout
23067 \begin_layout Plain Layout
23071 arrayrulecolor{yellow}
23075 arrayrulecolor{black}}
23081 \begin_inset Note Note
23084 \begin_layout Plain Layout
23085 color partial horizontal, dashed lines yellow
23093 \begin_layout Standard
23094 \begin_inset Float table
23100 \begin_layout Plain Layout
23101 \begin_inset Caption Standard
23103 \begin_layout Plain Layout
23104 \begin_inset CommandInset label
23106 name "tab:Colored-table-with"
23110 Colored table with dashed lines
23118 \begin_layout Plain Layout
23120 \begin_inset Tabular
23121 <lyxtabular version="3" rows="5" columns="5">
23122 <features tabularvalignment="middle">
23123 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23124 <column alignment="center" valignment="top" width="0pt">
23125 <column alignment="center" valignment="top" width="0pt" special=":c">
23126 <column alignment="center" valignment="top">
23127 <column alignment="center" valignment="top">
23129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23132 \begin_layout Plain Layout
23138 <cell alignment="center" valignment="top" topline="true" usebox="none">
23141 \begin_layout Plain Layout
23147 <cell alignment="center" valignment="top" topline="true" usebox="none">
23150 \begin_layout Plain Layout
23156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23159 \begin_layout Plain Layout
23165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23168 \begin_layout Plain Layout
23176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23179 \begin_layout Plain Layout
23185 <cell alignment="center" valignment="top" topline="true" usebox="none">
23188 \begin_layout Plain Layout
23194 <cell alignment="center" valignment="top" topline="true" usebox="none">
23197 \begin_layout Plain Layout
23203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23206 \begin_layout Plain Layout
23212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23215 \begin_layout Plain Layout
23223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23226 \begin_layout Plain Layout
23230 \begin_layout Plain Layout
23243 \begin_layout Plain Layout
23257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23260 \begin_layout Plain Layout
23266 <cell alignment="center" valignment="top" usebox="none">
23269 \begin_layout Plain Layout
23275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23278 \begin_layout Plain Layout
23284 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23287 \begin_layout Plain Layout
23295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23298 \begin_layout Plain Layout
23302 \begin_layout Plain Layout
23316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23319 \begin_layout Plain Layout
23325 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23328 \begin_layout Plain Layout
23334 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23337 \begin_layout Plain Layout
23343 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23346 \begin_layout Plain Layout
23354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23357 \begin_layout Plain Layout
23363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23366 \begin_layout Plain Layout
23372 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23375 \begin_layout Plain Layout
23381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23384 \begin_layout Plain Layout
23390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23393 \begin_layout Plain Layout
23397 \begin_layout Plain Layout
23424 \begin_layout Standard
23428 \begin_layout Plain Layout
23442 \begin_inset Note Note
23445 \begin_layout Plain Layout
23454 \begin_layout Standard
23458 \begin_layout Plain Layout
23472 \begin_inset Note Note
23475 \begin_layout Plain Layout
23484 \begin_layout Standard
23488 \begin_layout Plain Layout
23498 \begin_inset Note Note
23501 \begin_layout Plain Layout
23510 \begin_layout Standard
23514 \begin_layout Plain Layout
23520 arrayrulewidth}{0.4pt}
23526 \begin_inset Note Note
23529 \begin_layout Plain Layout
23538 \begin_layout Standard
23539 The coloring of lines, columns and lines works as decribed in section
23540 \begin_inset space ~
23544 \begin_inset CommandInset ref
23546 reference "sec:Colored-Tables"
23551 Coloring horizontal lines works analogically as described there as well,
23552 one only needs to replace in the commands
23576 ; so one uses the command
23579 \begin_layout Standard
23589 \begin_inset Newline newline
23597 \begin_inset Newline newline
23601 \begin_inset Phantom HPhantom
23604 \begin_layout Plain Layout
23605 \begin_inset space ~
23615 arrayrulecolor{red}
23619 arrayrulecolor{black}}
23622 \begin_layout Standard
23632 \begin_layout Standard
23642 \begin_inset Newline newline
23650 \begin_inset Newline newline
23654 \begin_inset Phantom HPhantom
23657 \begin_layout Plain Layout
23658 \begin_inset space ~
23668 arrayrulecolor{red}
23672 arrayrulecolor{black}}
23675 \begin_layout Standard
23676 To get back the black line color, one needs to insert the following commands
23677 as \SpecialChar TeX
23678 Code behind the table:
23681 \begin_layout Standard
23689 \begin_layout Standard
23701 \begin_layout Standard
23709 \begin_layout Standard
23721 \begin_layout Standard
23722 To color the gaps between the dashes the command
23725 \begin_layout Standard
23730 dashgapcolor{color}
23733 \begin_layout Standard
23734 can be used in front of a table as \SpecialChar TeX
23736 color is hereby the name of a defined color.
23740 \begin_layout Standard
23748 \begin_layout Standard
23749 unsets the changes made by
23758 \begin_layout Standard
23759 \begin_inset Note Greyedout
23762 \begin_layout Plain Layout
23768 : If there are multiple commands in a cell, the command of
23772 needs to be the first one in the cell.
23778 \begin_inset space ~
23782 \begin_inset CommandInset ref
23784 reference "tab:Colored-table-with"
23808 \begin_layout Standard
23809 \begin_inset Note Greyedout
23812 \begin_layout Plain Layout
23818 The \SpecialChar LaTeX
23823 must be loaded in the document preamble before the \SpecialChar LaTeX
23829 \begin_inset Index idx
23832 \begin_layout Plain Layout
23834 -packages ! colortbl
23847 \begin_layout Standard
23851 \begin_layout Plain Layout
23861 \begin_inset Note Note
23864 \begin_layout Plain Layout
23865 The following will be displayed when the \SpecialChar LaTeX
23878 \begin_layout Standard
23879 You need to install the package
23883 to see the content of this section in the output.
23886 \begin_layout Standard
23890 \begin_layout Plain Layout
23902 \begin_layout Standard
23903 For more information about dashed lines see the documentation of
23908 \begin_inset CommandInset citation
23917 \begin_layout Chapter
23919 \begin_inset CommandInset label
23926 \begin_inset Index idx
23929 \begin_layout Plain Layout
23938 \begin_layout Section
23940 \begin_inset CommandInset label
23942 name "sec:FloatIntroduction"
23947 \begin_inset Index idx
23950 \begin_layout Plain Layout
23951 Floats ! Introduction
23959 \begin_layout Standard
23960 A float is a block of text associated with some sort of label, which doesn't
23961 have a fixed location.
23963 \begin_inset Quotes eld
23967 \begin_inset Quotes erd
23970 forward or backward a page or two, to wherever it fits best.
23978 \begin_inset space ~
23983 are also floats because they can float to the next page when there are
23984 too many notes on the page.
23987 \begin_layout Standard
23988 Floats allow a high quality layout.
23989 Images and tables can be spread evenly among the pages to avoid white space
23990 and pages without text.
23991 As the floating often destroys the context between the text and the image/table
23992 , every float can be referenced in the text.
23993 Floats are therefore numbered.
23994 Referencing is described in section
23995 \begin_inset space ~
23999 \begin_inset CommandInset ref
24001 reference "sec:Referencing-Floats"
24008 \begin_layout Standard
24009 To insert a float, use the menu
24011 Insert\SpecialChar menuseparator
24017 arg "float-insert figure"
24023 arg "float-insert table"
24031 inset, a box with a label.
24032 The label will automatically be translated to the document language in
24034 After the label you can insert the caption text.
24035 The image or table is inserted above or below the caption in a separate
24036 paragraph within the float.
24037 More about the caption placement is contained in section
24038 \begin_inset space ~
24042 \begin_inset CommandInset ref
24044 reference "sec:Caption-Placement"
24049 To keep your \SpecialChar LyX
24050 document readable, you can open and close the float box by
24051 left-clicking on the box label.
24052 A closed float box looks like this:
24053 \begin_inset Graphics
24054 filename clipart/float.png
24056 scaleBeforeRotation
24060 – a gray button with a red label.
24063 \begin_layout Standard
24064 It is recommended that you insert floats as separate standard paragraphs
24065 to avoid possible \SpecialChar LaTeX
24066 -errors that can occur when the surrounding text is specially
24070 \begin_layout Standard
24071 Existing figures or tables can be put into a float by highlighting them
24072 and then pressing the corresponding toolbar button for a new float.
24075 \begin_layout Section
24079 \begin_layout Standard
24080 Besides figure and table floats that are described in sections
24081 \begin_inset space ~
24085 \begin_inset CommandInset ref
24087 reference "sec:Figure-Floats"
24092 \begin_inset CommandInset ref
24094 reference "sec:Table-Floats"
24098 respectively, \SpecialChar LyX
24099 offers the float types
24108 The latter are explained in sec.
24109 \begin_inset space \thinspace{}
24113 \begin_inset CommandInset ref
24115 reference "sec:Wrap-Floats"
24122 \begin_layout Subsection
24124 \begin_inset Index idx
24127 \begin_layout Plain Layout
24128 Floats ! Algorithms
24136 \begin_layout Standard
24137 \begin_inset Float algorithm
24143 \begin_layout Plain Layout
24144 \begin_inset Caption Standard
24146 \begin_layout Plain Layout
24147 \begin_inset CommandInset label
24149 name "alg:Example-Algorithm-float"
24153 Example Algorithm float
24161 \begin_layout LyX-Code
24163 \begin_inset Newline newline
24166 Sum:= Sum + A(I); /*comment*/
24167 \begin_inset Newline newline
24171 \begin_inset VSpace -4mm
24182 \begin_layout Standard
24183 This float type is inserted with the menu
24185 Insert\SpecialChar menuseparator
24186 Float\SpecialChar menuseparator
24190 It is used for program codes and descriptions of algorithms and can be
24191 seen as an alternative to program code listings that are explained in chapter
24192 \begin_inset space ~
24196 \begin_inset CommandInset ref
24198 reference "cha:Program-Code-Listings"
24203 A possible environment for algorithms is the
24208 , described in \SpecialChar LyX
24215 \begin_inset space ~
24219 \begin_inset CommandInset ref
24221 reference "alg:Example-Algorithm-float"
24225 is an example of an algorithm float where -4
24226 \begin_inset space \thinspace{}
24229 mm vertical space was added at the end of the float to have the bottom rule
24230 exactly below the last text line.
24233 \begin_layout Standard
24234 The float label is not automatically translated into the document language.
24235 If your document is not in English, you have to do this manually by adding
24236 the following line to the document preamble
24241 \begin_layout Standard
24246 floatname{algorithm}{your
24247 \begin_inset space ~
24253 \begin_layout Standard
24257 \begin_inset space ~
24263 \begin_inset Quotes eld
24271 \begin_inset Quotes erd
24277 \begin_layout Standard
24278 To insert the list of algorithms you can use the menu
24280 Insert\SpecialChar menuseparator
24282 \begin_inset space \thinspace{}
24286 \begin_inset space \thinspace{}
24289 TOC\SpecialChar menuseparator
24292 when your document has the same language as \SpecialChar LyX
24294 In other cases use this command in \SpecialChar TeX
24298 \begin_layout Standard
24303 listof{algorithm}{your
24304 \begin_inset space ~
24310 \begin_layout Standard
24314 \begin_inset space ~
24320 \begin_inset Quotes eld
24328 \begin_inset Quotes erd
24334 \begin_layout Standard
24335 Algorithm floats are not by default numbered in the scheme
24336 \begin_inset Quotes eld
24340 \begin_inset Quotes erd
24343 as is the case for table and figure floats in many document-classes.
24344 To number algorithm floats in the same scheme, add this command to your
24348 \begin_layout Standard
24353 numberwithin{algorithm}{chapter}
24356 \begin_layout Standard
24357 To be able to use the command
24366 \begin_inset space ~
24371 in the document settings the option
24374 \begin_inset space ~
24378 \begin_inset space ~
24382 \begin_inset space ~
24390 \begin_layout Section
24392 \begin_inset Index idx
24395 \begin_layout Plain Layout
24404 \begin_layout Standard
24405 Floats are usually numbered either independently from the sections the floats
24406 are in, or in the scheme
24407 \begin_inset Quotes eld
24411 \begin_inset Quotes erd
24415 \begin_inset Quotes eld
24419 \begin_inset Quotes erd
24423 This depends on the document class used.
24426 \begin_layout Standard
24427 To change section-independent numbering, you can use this command in the
24431 \begin_layout Standard
24443 \begin_layout Standard
24450 is the command that prints the table number.
24451 For figure floats, the command would be
24464 in the command above prints the table number as a small roman number.
24467 \begin_layout Standard
24468 To change the numbering scheme for example to
24469 \begin_inset Quotes eld
24473 \begin_inset Quotes erd
24476 , use this command in the preamble:
24479 \begin_layout Standard
24484 numberwithin{table}{subsection}
24487 \begin_layout Standard
24488 To be able to use the command
24497 \begin_inset space ~
24502 in the document settings the option
24505 \begin_inset space ~
24509 \begin_inset space ~
24513 \begin_inset space ~
24521 \begin_layout Standard
24522 Please also have a look at section
24523 \begin_inset space ~
24527 \begin_inset CommandInset ref
24529 reference "subsec:Footnote-Numbering"
24533 for the details and important notes about the numbering commands.
24536 \begin_layout Section
24538 \begin_inset CommandInset label
24540 name "sec:Referencing-Floats"
24545 \begin_inset Index idx
24548 \begin_layout Plain Layout
24549 Floats ! References
24555 \begin_inset Index idx
24558 \begin_layout Plain Layout
24559 References ! to Floats
24567 \begin_layout Standard
24568 To reference a float, insert a label into its caption using the menu
24570 Insert\SpecialChar menuseparator
24573 or the toolbar button
24580 A grey label box like this one:
24581 \begin_inset Graphics
24582 filename clipart/label.png
24583 scaleBeforeRotation
24587 will be inserted and the label window pops up asking for the label text.
24589 offers as text the first words of the caption with a prefix.
24590 The prefix depends on the float type, e.
24591 \begin_inset space \thinspace{}
24595 \begin_inset space \space{}
24598 for figure floats the prefix will be "
24605 \begin_layout Standard
24606 The label is used as anchor and name for the reference.
24607 You can refer to the label using the menu
24609 Insert\SpecialChar menuseparator
24612 or the toolbar button
24615 arg "dialog-show-new-inset ref"
24619 The cross-reference window appears showing all labels of the document.
24620 If you have multiple \SpecialChar LyX
24621 documents opened, choose the one you are working
24622 on from the drop-list at the top of the dialog.
24623 You can now sort the labels alphabetically and then choose one.
24624 A grey cross-reference box like this one:
24625 \begin_inset Graphics
24626 filename clipart/reference.png
24627 scaleBeforeRotation
24632 At the position of the cross-reference box the float number will appear
24636 \begin_layout Standard
24637 It is recommended that you use a protected space between the cross-reference
24638 name and its number to avoid line breaks between them.
24639 If a cross-reference refers to a non-existing label, you will see two question
24640 marks in the output instead of the reference.
24643 \begin_layout Standard
24644 You can change labels at any time by clicking on the label box.
24645 References to the changed label will automatically update their links to
24646 the new label text.
24649 \begin_layout Standard
24653 \begin_inset space ~
24657 \begin_inset space ~
24662 in the cross-reference window sets the cursor before the referred label.
24663 The button text changes then to Go
24664 \begin_inset space ~
24667 Back and you can use it to set the cursor back to the cross-reference.
24670 \begin_layout Subsection
24671 Cross-Reference Formats
24672 \begin_inset CommandInset label
24674 name "subsec:Cross-Reference-Formats"
24679 \begin_inset Index idx
24682 \begin_layout Plain Layout
24683 References ! Formats
24691 \begin_layout Standard
24692 There are six varieties of cross-references:
24695 \begin_layout Description
24696 <reference>: prints the float number, this is the default:
24697 \begin_inset CommandInset ref
24699 reference "fig:Two-distorted-images"
24706 \begin_layout Description
24707 (<reference>): prints the float number within two parentheses, this is the
24708 style normally used to reference formulas, especially when the reference
24710 \begin_inset Quotes eld
24714 \begin_inset Quotes erd
24718 \begin_inset CommandInset ref
24727 \begin_layout Description
24728 <page>: prints the page number: Page
24729 \begin_inset space ~
24733 \begin_inset CommandInset ref
24734 LatexCommand pageref
24735 reference "fig:Two-distorted-images"
24742 \begin_layout Description
24744 \begin_inset space ~
24748 \begin_inset space ~
24751 <page>: prints the text "on page" and the page number:
24752 \begin_inset CommandInset ref
24753 LatexCommand vpageref
24754 reference "fig:Two-distorted-images"
24761 \begin_layout Description
24763 \begin_inset space ~
24767 \begin_inset space ~
24771 \begin_inset space ~
24774 <page>: prints the float number, the text "on page", and the page number:
24776 \begin_inset CommandInset ref
24778 reference "fig:Two-distorted-images"
24785 \begin_layout Description
24787 \begin_inset space ~
24790 reference: prints a self-defined cross-reference format.
24791 \begin_inset Newline newline
24795 \begin_inset Note Greyedout
24798 \begin_layout Plain Layout
24803 This feature is only available when you have the \SpecialChar LaTeX
24813 \begin_inset Index idx
24816 \begin_layout Plain Layout
24818 -packages ! prettyref
24824 \begin_inset Index idx
24827 \begin_layout Plain Layout
24829 -packages ! refstyle
24840 \begin_inset Newline newline
24843 You can select which \SpecialChar LaTeX
24844 -package should be used for this feature by setting
24847 Use refstyle (not prettyref) for cross-references
24851 Document\SpecialChar menuseparator
24852 Settings\SpecialChar menuseparator
24856 The format is specified by adding the command
24868 (refstyle) to the preamble of the document.
24869 For example redefining all references to figures (which have the label
24871 \begin_inset Quotes eld
24879 \begin_inset Quotes erd
24882 ) can be done with this command
24883 \begin_inset Newline newline
24890 newref{fig}{refcmd={Image on page
24895 \begin_inset Newline newline
24898 For more information about the format, have a look at the package documentations
24900 \begin_inset CommandInset citation
24902 key "prettyref,refstyle"
24909 \begin_layout Description
24911 \begin_inset space ~
24914 reference: prints the caption of the reference:
24915 \begin_inset CommandInset ref
24916 LatexCommand nameref
24917 reference "fig:Two-distorted-images"
24924 \begin_layout Standard
24929 will not print the page number if the label is on the previous, the same,
24932 \begin_inset space \thinspace{}
24936 \begin_inset space \space{}
24940 \begin_inset Quotes eld
24948 \begin_inset Quotes erd
24954 <reference> on page <page>
24956 will not print anything about the page if the label is on the same page.
24959 \begin_layout Standard
24960 The number and current page of the part of the document referred to in the
24961 output is automatically calculated by \SpecialChar LaTeX
24963 The varieties are adjusted in the field
24967 of the cross-reference window that appears when you click on the cross-referenc
24971 \begin_layout Standard
24972 \begin_inset Note Greyedout
24975 \begin_layout Plain Layout
24980 It is recommended to use the \SpecialChar LaTeX
24986 \begin_inset Index idx
24989 \begin_layout Plain Layout
24991 -packages ! refstyle
25001 \begin_inset Index idx
25004 \begin_layout Plain Layout
25006 -packages ! prettyref
25011 does not know all of \SpecialChar LyX
25012 's possible label shortcuts
25016 \begin_layout Plain Layout
25017 \begin_inset Quotes eld
25021 \begin_inset Quotes erd
25024 is for example \SpecialChar LyX
25025 's shortcut for labels in figure captions.
25030 and is not internationalized.
25038 \begin_layout Subsection
25039 Automatic Reference Naming
25040 \begin_inset Index idx
25043 \begin_layout Plain Layout
25044 References ! Automatic Reference Naming
25052 \begin_layout Standard
25053 The \SpecialChar LaTeX
25059 \begin_inset Index idx
25062 \begin_layout Plain Layout
25064 -packages ! hyperref
25069 , that is enabled in the
25077 dialog, provides a very useful feature that cross-references automatically
25078 include the name of the referenced floats (or text parts like
25083 So you will save having to write e.
25084 \begin_inset space \thinspace{}
25088 \begin_inset space \space{}
25092 \begin_inset Quotes eld
25096 \begin_inset Quotes erd
25099 before every reference to a figure.
25100 To use this feature, enable
25104 and insert this line to the \SpecialChar LaTeX
25108 \begin_layout Standard
25124 \begin_layout Standard
25125 When you prefer other reference names than the default ones, for example
25126 you want instead of
25127 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25135 \begin_inset Quotes eld
25139 \begin_inset space \thinspace{}
25143 \begin_inset Quotes eld
25146 , you can redefine the name by inserting this in the preamble:
25149 \begin_layout Standard
25160 sectionautorefname}
25161 \begin_inset Newline newline
25165 \begin_inset Phantom HPhantom
25168 \begin_layout Plain Layout
25171 \begin_inset space ~
25184 \begin_layout Standard
25185 When you are using another document language than English, replace
25186 \begin_inset Newline newline
25201 , where *** is the name of the language used.
25204 \begin_layout Standard
25205 To get automatic names, but not for certain reference types, for example
25206 not for equations, use this preamble code:
25209 \begin_layout Standard
25220 equationautorefname}[1]{}}
25223 \begin_layout Standard
25224 More about this topic can be found in
25229 \begin_inset CommandInset citation
25238 \begin_layout Standard
25239 \begin_inset Note Greyedout
25242 \begin_layout Plain Layout
25247 Automatic reference naming cannot be used when you use cross-references
25251 \begin_inset space ~
25256 style, as described in section
25257 \begin_inset space ~
25261 \begin_inset CommandInset ref
25263 reference "subsec:Cross-Reference-Formats"
25275 \begin_layout Standard
25280 manual is an example where automatic reference naming is used.
25283 \begin_layout Subsection
25285 \begin_inset CommandInset label
25287 name "subsec:Reference-Position"
25292 \begin_inset Index idx
25295 \begin_layout Plain Layout
25296 References ! Reference Position
25304 \begin_layout Standard
25310 \begin_inset Index idx
25313 \begin_layout Plain Layout
25315 -packages ! hyperref
25328 dialog to link cross-references in the output, you will see that clicking
25329 on an image float reference jumps to the image label.
25330 The caption will be the first text part on the screen, so that you cannot
25331 see the image without scrolling.
25332 This is because the reference link anchor is placed at the position of
25334 With the use of the package
25339 \begin_inset Index idx
25342 \begin_layout Plain Layout
25349 , which is part of the \SpecialChar LaTeX
25355 \begin_inset Index idx
25358 \begin_layout Plain Layout
25360 -packages ! oberdiek
25365 , the link anchor is placed at the beginning of a float.
25366 To use this feature for figure floats, load
25370 in the document preamble with the line
25373 \begin_layout Standard
25378 usepackage[figure]{hypcap}
25381 \begin_layout Standard
25386 for all float types but this is not recommended for stability reasons.
25387 For more information, have a look at
25392 \begin_inset CommandInset citation
25401 \begin_layout Standard
25402 \begin_inset Note Greyedout
25405 \begin_layout Plain Layout
25414 has no effect on references to subfigures.
25422 \begin_layout Section
25424 \begin_inset CommandInset label
25426 name "sec:Float-Placement"
25431 \begin_inset Index idx
25434 \begin_layout Plain Layout
25443 \begin_layout Standard
25444 Right-clicking on a float-box and clicking on
25448 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25450 positioning the float.
25451 \begin_inset Newline newline
25457 \begin_inset space ~
25462 is only useful for two-column documents: If you select it, the float will
25463 span both columns on the page instead of being confined to just one.
25464 \begin_inset Newline newline
25470 \begin_inset space ~
25475 is used to rotate floats, see section
25476 \begin_inset CommandInset ref
25478 reference "sec:Rotated-Floats"
25485 \begin_layout Standard
25486 You can use one or more of the following options in the float dialog to
25487 set the placement for a particular float when you uncheck the option
25490 \begin_inset space ~
25494 \begin_inset space ~
25502 \begin_layout Description
25504 \begin_inset space ~
25508 \begin_inset space ~
25511 possible try to place the float on the position where it has been inserted
25514 \begin_layout Description
25516 \begin_inset space ~
25520 \begin_inset space ~
25523 page try to place the float at the top of the current page
25526 \begin_layout Description
25528 \begin_inset space ~
25532 \begin_inset space ~
25535 page try to place the float at the bottom of the current page
25538 \begin_layout Description
25540 \begin_inset space ~
25544 \begin_inset space ~
25547 floats try to place the float on its own page
25550 \begin_layout Standard
25551 The order of the above option is
25555 used by \SpecialChar LaTeX
25557 That means, if you use the default placement, \SpecialChar LaTeX
25561 \begin_inset space ~
25565 \begin_inset space ~
25573 \begin_inset space ~
25577 \begin_inset space ~
25582 , and then the others.
25583 If you do not use the default, \SpecialChar LaTeX
25584 will try only the checked options but in
25587 \begin_inset space ~
25590 placements is possible the procedure is internally repeated trying to put
25591 the float on the following page.
25594 \begin_layout Standard
25595 By default, each option has its own rules:
25598 \begin_layout Labeling
25599 \labelwidthstring 00.00.0000
25603 \begin_inset space ~
25607 \begin_inset space ~
25612 only floats occupying less than 70
25613 \begin_inset space \thinspace{}
25616 % of the page can be placed at the top of a page (
25625 \begin_layout Labeling
25626 \labelwidthstring 00.00.0000
25630 \begin_inset space ~
25634 \begin_inset space ~
25639 : only floats occupying less than 30
25640 \begin_inset space \thinspace{}
25643 % of the page can be placed at the bottom of a page.
25653 \begin_layout Labeling
25654 \labelwidthstring 00.00.0000
25658 \begin_inset space ~
25662 \begin_inset space ~
25667 : only if more than 50
25668 \begin_inset space \thinspace{}
25671 % of the page is occupied by floats, several floats can be set together
25682 \begin_layout Standard
25683 If you don't like these rules, you can ignore them by using the additional
25687 \begin_inset space ~
25692 \begin_inset space ~
25698 \begin_inset Newline newline
25701 You can also redefine the rules with \SpecialChar LaTeX
25702 -commands that are given in parentheses
25703 after the rules description above.
25704 To increase for example the often too small default of the bottom-rule
25706 \begin_inset space \thinspace{}
25709 % of the page, add this line to your document preamble:
25712 \begin_layout Standard
25719 bottomfraction}{0.5}
25722 \begin_layout Standard
25723 Sometimes you might need, under all circumstances, a float to be placed
25724 exactly at the position where it is inserted.
25725 For this case you can use the option
25728 \begin_inset space ~
25734 Use this option very rarely and only if the document is almost ready to
25735 be printed, because the float is then no longer able to
25736 \begin_inset Quotes eld
25740 \begin_inset Quotes erd
25743 when you change your document and this will often destroy the page layout.
25746 \begin_layout Standard
25747 There are no placement options for text wrap floats, because they are always
25748 surrounded by the text of a certain paragraph.
25749 \begin_inset VSpace bigskip
25755 \begin_layout Standard
25756 Sometimes you have the problem that a float is placed at the top of a page
25757 while its corresponding section starts at the middle of the page, so that
25758 the reader could think the float is part of the previous section.
25759 To avoid this the \SpecialChar LaTeX
25767 It suppresses a given float placement for the page where it is inserted
25768 and can therefore be used to avoid floats being set before a section starts.
25769 To get this, add these commands to your document preamble:
25772 \begin_layout Standard
25782 \begin_inset Newline newline
25796 \begin_layout Standard
25797 You can define the same for all section headings, like chapters and subsections.
25798 This definition is not recommended to be used for small text parts like
25799 subsubsections because \SpecialChar LaTeX
25800 may then have problems finding a suitable placement.
25803 \begin_layout Standard
25804 \begin_inset VSpace bigskip
25807 In some cases it is required to have all figures/tables at the end of the
25809 For this purpose the \SpecialChar LaTeX
25815 \begin_inset Index idx
25818 \begin_layout Plain Layout
25820 -packages ! endfloat
25826 It puts all figure and table floats at the end of the document into their
25828 At the original float position a text hint like
25829 \begin_inset Quotes eld
25835 \begin_inset space ~
25841 \begin_inset Quotes erd
25845 The endfloat-package is loaded in the preamble with the line
25848 \begin_layout Standard
25853 usepackage[options]{endfloat}
25856 \begin_layout Standard
25857 There are various package options to format the created figure/table sections.
25858 For more information we refer you to the
25863 \begin_inset CommandInset citation
25870 \begin_inset Newline newline
25874 \begin_inset Note Greyedout
25877 \begin_layout Plain Layout
25882 doesn't provide an automatic translation for the text hint, you have to
25883 do this manually, see section
25884 \begin_inset space ~
25888 \begin_inset CommandInset citation
25900 \begin_inset Newline newline
25904 \begin_inset Note Greyedout
25907 \begin_layout Plain Layout
25912 There is currently a bug in
25916 when the caption contains a German
25917 \begin_inset Quotes eld
25921 \begin_inset Quotes erd
25925 Use in this case the command
25926 \begin_inset Quotes eld
25936 \begin_inset Quotes erd
25939 in \SpecialChar TeX
25941 \begin_inset Quotes eld
25945 \begin_inset Quotes erd
25956 \begin_layout Standard
25957 \begin_inset VSpace bigskip
25960 For more details about float placements, have a look at \SpecialChar LaTeX
25962 \begin_inset CommandInset citation
25964 key "latexcompanion,latexguide,latexbook"
25971 \begin_layout Section
25973 \begin_inset CommandInset label
25975 name "sec:Rotated-Floats"
25980 \begin_inset Index idx
25983 \begin_layout Plain Layout
25992 \begin_layout Standard
25993 Especially for wide tables you might have floats rotated.
25994 To rotate a whole float including the caption, right-click on the float-box
25998 \begin_inset space ~
26006 \begin_layout Standard
26007 Rotated floats are always placed on a page of their own (or column of their
26008 own; in case you have a multi-column document).
26009 You can let them span several columns using the float settings option
26012 \begin_inset space ~
26018 Floats are rotated so that you can read them from the outside margin.
26019 To force a certain rotation direction for all pages, you can add either
26028 to the document class options.
26031 \begin_layout Standard
26032 Referencing rotated floats is the same as for normal floats, the caption
26033 format is also the same: Table
26034 \begin_inset space ~
26038 \begin_inset CommandInset ref
26040 reference "tab:Rotated-table"
26044 is an example of a rotated table float.
26047 \begin_layout Standard
26048 \begin_inset Note Greyedout
26051 \begin_layout Plain Layout
26056 Not all DVI-viewers are able to display rotated floats.
26064 \begin_layout Standard
26065 \begin_inset Float table
26070 \begin_layout Plain Layout
26071 \begin_inset Caption Standard
26073 \begin_layout Plain Layout
26074 \begin_inset CommandInset label
26076 name "tab:Rotated-table"
26088 \begin_layout Plain Layout
26090 \begin_inset Tabular
26091 <lyxtabular version="3" rows="1" columns="5">
26092 <features tabularvalignment="middle">
26093 <column alignment="center" valignment="top">
26094 <column alignment="center" valignment="top">
26095 <column alignment="center" valignment="top">
26096 <column alignment="center" valignment="top">
26097 <column alignment="center" valignment="top">
26099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26102 \begin_layout Plain Layout
26108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26111 \begin_layout Plain Layout
26117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26120 \begin_layout Plain Layout
26126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26129 \begin_layout Plain Layout
26135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26138 \begin_layout Plain Layout
26157 \begin_layout Section
26159 \begin_inset Index idx
26162 \begin_layout Plain Layout
26171 \begin_layout Standard
26172 Subfloats are for example used when a figure consists of several images.
26173 They are created by inserting a float into an existing float.
26174 The placement of the subfloats can be controlled in the same way as for
26175 paragraphs as shown in table
26176 \begin_inset space ~
26180 \begin_inset CommandInset ref
26182 reference "tab:Two-subtables-side"
26187 \begin_inset CommandInset ref
26189 reference "tab:Two-subtables-upon"
26196 \begin_layout Standard
26197 Referencing subfloats works as for normal floats: Table
26198 \begin_inset space ~
26202 \begin_inset CommandInset ref
26204 reference "tab:This-is-subtable-a"
26209 \begin_inset CommandInset ref
26211 reference "tab:This-is-subtable-b"
26215 are subtables of table
26216 \begin_inset space ~
26220 \begin_inset CommandInset ref
26222 reference "tab:Two-subtables-side"
26229 \begin_layout Standard
26230 \begin_inset Float table
26235 \begin_layout Plain Layout
26236 \begin_inset Caption Standard
26238 \begin_layout Plain Layout
26239 \begin_inset CommandInset label
26241 name "tab:Two-subtables-side"
26245 Two subtables placed side by side.
26253 \begin_layout Plain Layout
26255 \begin_inset space \hfill{}
26259 \begin_inset Float table
26264 \begin_layout Plain Layout
26265 \begin_inset Caption Standard
26267 \begin_layout Plain Layout
26268 \begin_inset CommandInset label
26270 name "tab:This-is-subtable-a"
26274 This is subtable a.
26282 \begin_layout Plain Layout
26284 \begin_inset Tabular
26285 <lyxtabular version="3" rows="1" columns="5">
26286 <features tabularvalignment="middle">
26287 <column alignment="center" valignment="top">
26288 <column alignment="center" valignment="top">
26289 <column alignment="center" valignment="top">
26290 <column alignment="center" valignment="top">
26291 <column alignment="center" valignment="top">
26293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26296 \begin_layout Plain Layout
26302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26305 \begin_layout Plain Layout
26311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26314 \begin_layout Plain Layout
26320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26323 \begin_layout Plain Layout
26329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26332 \begin_layout Plain Layout
26349 \begin_inset space \hfill{}
26353 \begin_inset Float table
26358 \begin_layout Plain Layout
26359 \begin_inset Caption Standard
26361 \begin_layout Plain Layout
26362 \begin_inset CommandInset label
26364 name "tab:This-is-subtable-b"
26368 This is subtable b.
26376 \begin_layout Plain Layout
26378 \begin_inset Tabular
26379 <lyxtabular version="3" rows="1" columns="5">
26380 <features tabularvalignment="middle">
26381 <column alignment="center" valignment="top">
26382 <column alignment="center" valignment="top">
26383 <column alignment="center" valignment="top">
26384 <column alignment="center" valignment="top">
26385 <column alignment="center" valignment="top">
26387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26390 \begin_layout Plain Layout
26396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26399 \begin_layout Plain Layout
26405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26408 \begin_layout Plain Layout
26414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26417 \begin_layout Plain Layout
26423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26426 \begin_layout Plain Layout
26443 \begin_inset space \hfill{}
26454 \begin_layout Standard
26455 \begin_inset Float table
26460 \begin_layout Plain Layout
26461 \begin_inset Caption Standard
26463 \begin_layout Plain Layout
26464 \begin_inset CommandInset label
26466 name "tab:Two-subtables-upon"
26470 Two subtables placed one above the other.
26471 (a) table with 4 cells, (b) table with 5 cells.
26479 \begin_layout Plain Layout
26481 \begin_inset Float table
26486 \begin_layout Plain Layout
26487 \begin_inset Caption Standard
26489 \begin_layout Plain Layout
26498 \begin_layout Plain Layout
26500 \begin_inset Tabular
26501 <lyxtabular version="3" rows="1" columns="4">
26502 <features tabularvalignment="middle">
26503 <column alignment="center" valignment="top">
26504 <column alignment="center" valignment="top">
26505 <column alignment="center" valignment="top">
26506 <column alignment="center" valignment="top">
26508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26511 \begin_layout Plain Layout
26517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26520 \begin_layout Plain Layout
26526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26529 \begin_layout Plain Layout
26535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26538 \begin_layout Plain Layout
26557 \begin_layout Plain Layout
26559 \begin_inset Float table
26564 \begin_layout Plain Layout
26565 \begin_inset Caption Standard
26567 \begin_layout Plain Layout
26576 \begin_layout Plain Layout
26578 \begin_inset Tabular
26579 <lyxtabular version="3" rows="1" columns="5">
26580 <features tabularvalignment="middle">
26581 <column alignment="center" valignment="top">
26582 <column alignment="center" valignment="top">
26583 <column alignment="center" valignment="top">
26584 <column alignment="center" valignment="top">
26585 <column alignment="center" valignment="top">
26587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26590 \begin_layout Plain Layout
26596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26599 \begin_layout Plain Layout
26605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26608 \begin_layout Plain Layout
26614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26617 \begin_layout Plain Layout
26623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26626 \begin_layout Plain Layout
26650 \begin_layout Section
26651 Floats Side by Side
26652 \begin_inset Index idx
26655 \begin_layout Plain Layout
26656 Floats ! Side by side
26664 \begin_layout Standard
26665 To place floats side by side, as in Figures
26666 \begin_inset space ~
26670 \begin_inset CommandInset ref
26672 reference "fig:Float-left"
26677 \begin_inset CommandInset ref
26679 reference "fig:Float-right"
26688 In it two minipage boxes are inserted.
26692 \begin_layout Plain Layout
26693 Minipages are explained in section
26694 \begin_inset space ~
26698 \begin_inset CommandInset ref
26700 reference "sec:Minipages"
26709 The width is set to 45
26710 \begin_inset space \thinspace{}
26714 \begin_inset space \thinspace{}
26717 column% and the box alignment to
26722 The minipage boxes contain the image and the caption in the same way as
26723 they are in a float.
26724 The only difference is that the image unit
26727 \begin_inset space ~
26731 \begin_inset space ~
26736 is now calculated according to the width of the minipage boxes.
26739 \begin_layout Standard
26740 \begin_inset Float figure
26745 \begin_layout Plain Layout
26746 \begin_inset Box Frameless
26756 height_special "totalheight"
26761 backgroundcolor "none"
26764 \begin_layout Plain Layout
26766 \begin_inset Graphics
26767 filename clipart/mobius.eps
26770 scaleBeforeRotation
26777 \begin_layout Plain Layout
26778 \begin_inset Caption Standard
26780 \begin_layout Plain Layout
26781 \begin_inset CommandInset label
26783 name "fig:Float-left"
26787 Float on the left side.
26798 \begin_inset space \hfill{}
26802 \begin_inset Box Frameless
26812 height_special "totalheight"
26817 backgroundcolor "none"
26820 \begin_layout Plain Layout
26822 \begin_inset Graphics
26823 filename clipart/platypus.eps
26826 scaleBeforeRotation
26833 \begin_layout Plain Layout
26834 \begin_inset Caption Standard
26836 \begin_layout Plain Layout
26837 \begin_inset CommandInset label
26839 name "fig:Float-right"
26843 Float on the right side.
26861 \begin_layout Standard
26862 An alternative and simpler solution is to use the module
26864 Variable-width Minipages
26867 \begin_inset space \thinspace{}
26871 \begin_inset CommandInset ref
26873 reference "sec:Minipages"
26878 Variable-width minipages adapt automatically to the width of the figures
26880 They do not require an explicit width to be given, and they improve the
26881 horizontal alignment of the figures.
26882 The LyX example file
26884 varwidth-floats-side-by-side
26886 gives examples of how to do this.
26889 \begin_layout Section
26891 \begin_inset Index idx
26894 \begin_layout Plain Layout
26895 Caption ! Formatting
26901 \begin_inset Index idx
26904 \begin_layout Plain Layout
26905 Floats ! Caption Formatting
26911 \begin_inset CommandInset label
26913 name "sec:Caption-Formatting"
26920 \begin_layout Standard
26925 environment is the default paragraph environment for
26930 On the \SpecialChar LyX
26931 screen captions appear as a label, e.
26932 \begin_inset space \thinspace{}
26936 \begin_inset space \space{}
26940 \begin_inset Quotes eld
26948 \begin_inset Quotes erd
26951 followed by the caption text.
26953 \begin_inset Quotes eld
26957 \begin_inset Quotes erd
26960 is the actual reference number.
26961 By default the label and the number are in the same font as the caption
26962 text and a colon follows the number to divide the label from the text.
26963 This caption format is suitable for many but not all documents.
26967 \begin_layout Standard
26968 To change the default caption format, load the \SpecialChar LaTeX
26974 \begin_inset Index idx
26977 \begin_layout Plain Layout
26979 -packages ! caption
26984 in the document preamble with this line:
26987 \begin_layout Standard
26992 usepackage[format definition]{caption}
26995 \begin_layout Standard
26996 To have for example the label and the number in sans-serif, bold font and
26997 the table captions always above the table as in this document, use the
27001 \begin_layout Standard
27006 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27009 \begin_layout Standard
27010 You can also define different caption formats for the different float types.
27011 In this case load the
27015 package without format specific options and define the different formats
27016 with the help of the command
27019 \begin_layout Standard
27024 captionsetup[float type]{format definition}
27027 \begin_layout Standard
27028 in the document preamble.
27029 For example the caption formats of Figure
27030 \begin_inset space ~
27034 \begin_inset CommandInset ref
27036 reference "fig:This-is-an-fig"
27041 \begin_inset space ~
27045 \begin_inset CommandInset ref
27047 reference "tab:This-is-an-tab"
27051 can be created using these commands in the document preamble:
27054 \begin_layout Standard
27059 usepackage[tableposition=top]{caption}
27062 \begin_inset Newline newline
27069 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27070 \begin_inset Newline newline
27074 \begin_inset Phantom HPhantom
27077 \begin_layout Plain Layout
27082 captionsetup[figure]{
27088 \begin_inset Newline newline
27093 captionsetup[table]{labelfont={bf,sf}}
27096 \begin_layout Standard
27097 \begin_inset Note Greyedout
27100 \begin_layout Plain Layout
27109 has no effect when a
27114 \begin_inset Index idx
27117 \begin_layout Plain Layout
27119 -packages ! KOMA-Script
27124 document class is used.
27125 In this case the document class option
27127 captions=tableheading
27137 \begin_layout Standard
27138 For more information about the package
27142 we refer to its documentation
27143 \begin_inset CommandInset citation
27152 \begin_layout Standard
27153 To change the label name from e.
27154 \begin_inset space \thinspace{}
27158 \begin_inset space \space{}
27162 \begin_inset Quotes eld
27166 \begin_inset Quotes erd
27170 \begin_inset Quotes eld
27174 \begin_inset Quotes erd
27177 use this preamble command:
27180 \begin_layout Standard
27187 fnum@figure}{Image~
27192 \begin_layout Standard
27199 inserts the figure number and
27202 \begin_inset Quotes eld
27208 \begin_inset Quotes erd
27211 creates a protected space.
27214 \begin_layout Standard
27215 \begin_inset VSpace bigskip
27223 \begin_inset Index idx
27226 \begin_layout Plain Layout
27228 -packages ! KOMA-Script
27235 article (KOMA-Script)
27243 letter (KOMA-Script)
27247 report (KOMA-Script)
27250 \begin_inset space \thinspace{}
27253 ), you can alternatively to the
27261 's built-in command
27268 For example, to have the caption label in bold, add this command to your
27272 \begin_layout Standard
27277 setkomafont{captionlabel}{
27282 \begin_layout Standard
27283 For more information about
27294 \begin_inset CommandInset citation
27303 \begin_layout Standard
27307 \begin_layout Plain Layout
27311 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27318 \begin_inset Note Note
27321 \begin_layout Plain Layout
27322 The caption format is changed only for this example.
27330 \begin_layout Standard
27331 \begin_inset Float figure
27337 \begin_layout Plain Layout
27339 \begin_inset Graphics
27340 filename clipart/mobius.eps
27343 scaleBeforeRotation
27350 \begin_layout Plain Layout
27351 \begin_inset Caption Standard
27353 \begin_layout Plain Layout
27354 \begin_inset CommandInset label
27356 name "fig:This-is-an-fig"
27360 This is an example figure caption that is longer than one line to show the
27361 different caption format.
27362 Here a self-defined caption format is used.
27375 \begin_layout Standard
27379 \begin_layout Plain Layout
27383 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27392 \begin_layout Standard
27393 \begin_inset Float table
27399 \begin_layout Plain Layout
27400 \begin_inset Caption Standard
27402 \begin_layout Plain Layout
27403 \begin_inset CommandInset label
27405 name "tab:This-is-an-tab"
27409 This is an example table caption that is longer than one line to show the
27410 different caption format.
27411 Here the standard caption format for tables in this document is used.
27419 \begin_layout Plain Layout
27421 \begin_inset Tabular
27422 <lyxtabular version="3" rows="1" columns="5">
27423 <features tabularvalignment="middle">
27424 <column alignment="center" valignment="top">
27425 <column alignment="center" valignment="top">
27426 <column alignment="center" valignment="top">
27427 <column alignment="center" valignment="top">
27428 <column alignment="center" valignment="top">
27430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27433 \begin_layout Plain Layout
27439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27442 \begin_layout Plain Layout
27448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27451 \begin_layout Plain Layout
27457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27460 \begin_layout Plain Layout
27466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27469 \begin_layout Plain Layout
27488 \begin_layout Section
27490 \begin_inset Index idx
27493 \begin_layout Plain Layout
27494 Caption ! Placement
27500 \begin_inset Index idx
27503 \begin_layout Plain Layout
27504 Floats ! Caption Placement
27510 \begin_inset CommandInset label
27512 name "sec:Caption-Placement"
27519 \begin_layout Standard
27520 The common caption placement rule is:
27523 \begin_layout Description
27524 Figure: Caption is set below the figure
27527 \begin_layout Description
27528 Table: Caption is set above the table
27531 \begin_layout Standard
27532 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27535 That means if you are using the document classes
27551 there will be no space between the caption and the table.
27552 To insert the necessary space, load the \SpecialChar LaTeX
27558 \begin_inset Index idx
27561 \begin_layout Plain Layout
27563 -packages ! caption
27568 in your document preamble with the option
27572 \begin_layout Plain Layout
27574 \begin_inset space ~
27578 \begin_inset CommandInset ref
27580 reference "sec:Caption-Formatting"
27584 for more information of the package
27596 \begin_layout Standard
27602 \begin_layout Standard
27608 \begin_inset Index idx
27611 \begin_layout Plain Layout
27613 -packages ! KOMA-Script
27620 article (KOMA-Script)
27628 letter (KOMA-Script)
27632 report (KOMA-Script)
27635 \begin_inset space \thinspace{}
27638 ), you can alternatively to the
27642 package set the document class option
27646 \begin_layout Plain Layout
27647 That option is used in this document.
27655 \begin_layout Standard
27658 captions=tableheading
27661 \begin_layout Standard
27662 In documents with a KOMA-Script document class you can also right-click
27663 on a caption and mark in the context menu if this should be a caption above
27664 or below the table/figure.
27665 This way you can override the document-wide caption placement for certain
27668 \begin_inset space ~
27672 \begin_inset CommandInset ref
27674 reference "tab:A-caption-marked"
27678 is an example where the caption is marked a being below the table while
27680 For comparison the caption in Table
27681 \begin_inset space ~
27685 \begin_inset CommandInset ref
27687 reference "tab:A-standard-table"
27694 \begin_layout Standard
27695 \begin_inset Float table
27700 \begin_layout Plain Layout
27701 \begin_inset Caption Below
27703 \begin_layout Plain Layout
27704 \begin_inset CommandInset label
27706 name "tab:A-caption-marked"
27710 A caption marked as being below the table.
27718 \begin_layout Plain Layout
27720 \begin_inset Tabular
27721 <lyxtabular version="3" rows="3" columns="3">
27722 <features tabularvalignment="middle">
27723 <column alignment="center" valignment="top" width="0pt">
27724 <column alignment="center" valignment="top" width="0pt">
27725 <column alignment="center" valignment="top" width="0pt">
27727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27730 \begin_layout Plain Layout
27736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27739 \begin_layout Plain Layout
27745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27748 \begin_layout Plain Layout
27756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27759 \begin_layout Plain Layout
27765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27768 \begin_layout Plain Layout
27774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27777 \begin_layout Plain Layout
27785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27788 \begin_layout Plain Layout
27789 \begin_inset Formula $\int x^{2}dx$
27797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27800 \begin_layout Plain Layout
27801 \begin_inset Formula $\left[\begin{array}{cc}
27804 \end{array}\right]$
27812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27815 \begin_layout Plain Layout
27816 \begin_inset Formula $1+1=2$
27837 \begin_layout Standard
27838 \begin_inset Float table
27843 \begin_layout Plain Layout
27844 \begin_inset Caption Standard
27846 \begin_layout Plain Layout
27847 \begin_inset CommandInset label
27849 name "tab:A-standard-table"
27853 A standard table caption.
27861 \begin_layout Plain Layout
27863 \begin_inset Tabular
27864 <lyxtabular version="3" rows="3" columns="3">
27865 <features tabularvalignment="middle">
27866 <column alignment="center" valignment="top" width="0pt">
27867 <column alignment="center" valignment="top" width="0pt">
27868 <column alignment="center" valignment="top" width="0pt">
27870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27873 \begin_layout Plain Layout
27879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27882 \begin_layout Plain Layout
27888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27891 \begin_layout Plain Layout
27899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27902 \begin_layout Plain Layout
27908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27911 \begin_layout Plain Layout
27917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27920 \begin_layout Plain Layout
27928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27931 \begin_layout Plain Layout
27932 \begin_inset Formula $\int x^{2}dx$
27940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27943 \begin_layout Plain Layout
27944 \begin_inset Formula $\left[\begin{array}{cc}
27947 \end{array}\right]$
27955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27958 \begin_layout Plain Layout
27959 \begin_inset Formula $1+1=2$
27980 \begin_layout Standard
27981 \begin_inset VSpace bigskip
27984 It is also possible to set the caption beside a figure or table.
27985 To get this the \SpecialChar LaTeX
27991 \begin_inset Index idx
27994 \begin_layout Plain Layout
27996 -packages ! sidecap
28001 has to be loaded in the document preamble with the line
28004 \begin_layout Standard
28009 usepackage[option]{sidecap}
28012 \begin_layout Standard
28013 If you set no option, the caption is placed on the side of the outer page
28014 margin – to the right on odd pages, to the left on even pages.
28015 You can change the placement to inner margin with the option
28020 To force the placement always to the right or left, use the option
28031 \begin_layout Standard
28035 \begin_layout Plain Layout
28045 \begin_inset Note Note
28048 \begin_layout Plain Layout
28049 The following section will only be displayed when the \SpecialChar LaTeX
28062 \begin_layout Standard
28063 To place in \SpecialChar LyX
28064 the caption of a float on the side, it is necessary to add
28065 these commands to the document preamble:
28068 \begin_layout Standard
28070 \begin_inset CommandInset line
28081 \begin_layout Standard
28088 TabBesBeg}[1][1.0]{%
28089 \begin_inset Newline newline
28093 \begin_inset Phantom HPhantom
28096 \begin_layout Plain Layout
28097 \begin_inset space ~
28112 \begin_inset Newline newline
28116 \begin_inset Phantom HPhantom
28119 \begin_layout Plain Layout
28122 \begin_inset space ~
28137 \begin_inset Newline newline
28141 \begin_inset Phantom HPhantom
28144 \begin_layout Plain Layout
28147 \begin_inset space ~
28157 renewenvironment{table}[1]{
28159 begin{SCtable}[#1]##1}{
28164 \begin_layout Standard
28172 \begin_inset Newline newline
28176 \begin_inset Phantom HPhantom
28179 \begin_layout Plain Layout
28180 \begin_inset space ~
28195 \begin_inset Newline newline
28199 \begin_inset Phantom HPhantom
28202 \begin_layout Plain Layout
28203 \begin_inset space ~
28220 \begin_layout Standard
28227 FigBesBeg}[1][1.0]{%
28228 \begin_inset Newline newline
28232 \begin_inset Phantom HPhantom
28235 \begin_layout Plain Layout
28236 \begin_inset space ~
28251 \begin_inset Newline newline
28255 \begin_inset Phantom HPhantom
28258 \begin_layout Plain Layout
28259 \begin_inset space ~
28274 \begin_inset Newline newline
28278 \begin_inset Phantom HPhantom
28281 \begin_layout Plain Layout
28282 \begin_inset space ~
28292 renewenvironment{figure}[1]{
28294 begin{SCfigure}[#1]##1}{
28299 \begin_layout Standard
28307 \begin_inset Newline newline
28311 \begin_inset Phantom HPhantom
28314 \begin_layout Plain Layout
28315 \begin_inset space ~
28330 \begin_inset Newline newline
28334 \begin_inset Phantom HPhantom
28337 \begin_layout Plain Layout
28338 \begin_inset space ~
28355 \begin_layout Standard
28357 \begin_inset CommandInset line
28368 \begin_layout Standard
28369 The commands allow you to redefine the floats so that the caption is set
28371 For figure floats use the command
28374 \begin_layout Standard
28382 \begin_layout Standard
28383 in \SpecialChar TeX
28384 Code before the float.
28385 And insert the command
28388 \begin_layout Standard
28396 \begin_layout Standard
28397 in \SpecialChar TeX
28398 Code at the point where you want to get back to the original float definitio
28402 \begin_layout Standard
28403 For table floats use the corresponding commands
28406 \begin_layout Standard
28420 \begin_layout Standard
28422 \begin_inset space ~
28426 \begin_inset CommandInset ref
28428 reference "fig:cap-beside-fig"
28433 \begin_inset space ~
28437 \begin_inset CommandInset ref
28439 reference "tab:cap-beside-tab"
28443 are examples where the caption is set beside.
28446 \begin_layout Standard
28447 You can see in the examples that the caption text appears at the top of
28448 the floats for table floats and at the bottom for figure floats.
28449 To change this, you can use the command
28452 \begin_layout Standard
28457 sidecaptionvpos{float type}{placement}
28460 \begin_layout Standard
28461 in the document preamble or in \SpecialChar TeX
28462 Code before the float.
28463 The float type is either
28471 , the placement can be
28472 \begin_inset Quotes eld
28480 \begin_inset Quotes erd
28484 \begin_inset Quotes eld
28492 \begin_inset Quotes erd
28496 \begin_inset Quotes eld
28504 \begin_inset Quotes erd
28508 To have for example the caption of figure floats vertically centered, use
28512 \begin_layout Standard
28517 sidecaptionvpos{figure}{c}
28520 \begin_layout Standard
28521 This was used for Figure
28522 \begin_inset space ~
28526 \begin_inset CommandInset ref
28528 reference "fig:cap-beside-fig-2"
28535 \begin_layout Standard
28536 \begin_inset VSpace medskip
28542 \begin_layout Standard
28543 The default caption width is the width of the image/table.
28544 For thin image/tables, like in Table
28545 \begin_inset space ~
28549 \begin_inset CommandInset ref
28551 reference "tab:cap-beside-tab"
28555 , this leads to captions that are too thin.
28556 You can increase the width by specifying a factor that will be multiplied
28557 with the image/table width to get the caption width.
28558 The caption width will automatically be recalculated in case it would protrude
28559 over the page or column margin due to the specified width.
28564 can either be given as optional argument for
28573 \begin_layout Standard
28581 \begin_layout Standard
28582 or in the definition of
28592 with another value.
28593 If you do the latter, your factor will be the default if
28599 is used without an argument.
28601 \begin_inset space ~
28605 \begin_inset CommandInset ref
28607 reference "tab:cap-beside-tab-wider"
28611 the factor 5 was used.
28614 \begin_layout Standard
28615 \begin_inset Note Greyedout
28618 \begin_layout Plain Layout
28623 For floats with captions set beside, you cannot use the float placement
28627 \begin_inset space ~
28632 because it is not supported by
28644 \begin_layout Standard
28645 \begin_inset VSpace medskip
28648 For more information about the package
28652 we refer to its documentation
28653 \begin_inset CommandInset citation
28662 \begin_layout Standard
28663 \begin_inset Note Greyedout
28666 \begin_layout Plain Layout
28671 The \SpecialChar LaTeX
28677 \begin_inset Index idx
28680 \begin_layout Plain Layout
28687 , described in section
28688 \begin_inset space ~
28692 \begin_inset CommandInset ref
28694 reference "subsec:Reference-Position"
28698 , has no effect on floats with the caption set beside.
28706 \begin_layout Standard
28710 \begin_layout Plain Layout
28722 \begin_layout Standard
28723 \begin_inset Float figure
28728 \begin_layout Plain Layout
28729 \begin_inset Graphics
28730 filename clipart/escher-lsd.eps
28732 scaleBeforeRotation
28739 \begin_layout Plain Layout
28740 \begin_inset Caption Standard
28742 \begin_layout Plain Layout
28743 \begin_inset CommandInset label
28745 name "fig:cap-beside-fig"
28749 This is a caption beside a figure.
28762 \begin_layout Standard
28766 \begin_layout Plain Layout
28778 \begin_layout Standard
28782 \begin_layout Plain Layout
28794 \begin_layout Standard
28795 \begin_inset Float table
28800 \begin_layout Plain Layout
28801 \begin_inset Caption Standard
28803 \begin_layout Plain Layout
28804 \begin_inset CommandInset label
28806 name "tab:cap-beside-tab"
28810 This is a caption beside a table.
28818 \begin_layout Plain Layout
28819 \begin_inset Tabular
28820 <lyxtabular version="3" rows="4" columns="5">
28821 <features tabularvalignment="middle">
28822 <column alignment="center" valignment="top">
28823 <column alignment="center" valignment="top">
28824 <column alignment="center" valignment="top">
28825 <column alignment="center" valignment="top">
28826 <column alignment="center" valignment="top">
28828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28831 \begin_layout Plain Layout
28837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28840 \begin_layout Plain Layout
28846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28849 \begin_layout Plain Layout
28855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28858 \begin_layout Plain Layout
28864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28867 \begin_layout Plain Layout
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28878 \begin_layout Plain Layout
28884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28887 \begin_layout Plain Layout
28893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28896 \begin_layout Plain Layout
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28914 \begin_layout Plain Layout
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Plain Layout
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28934 \begin_layout Plain Layout
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28961 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28981 \begin_layout Plain Layout
28987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28990 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29008 \begin_layout Plain Layout
29027 \begin_layout Standard
29031 \begin_layout Plain Layout
29043 \begin_layout Standard
29047 \begin_layout Plain Layout
29060 \begin_layout Plain Layout
29064 sidecaptionvpos{figure}{c}
29070 \begin_inset Float figure
29075 \begin_layout Plain Layout
29076 \begin_inset Graphics
29077 filename clipart/escher-lsd.eps
29079 scaleBeforeRotation
29086 \begin_layout Plain Layout
29087 \begin_inset Caption Standard
29089 \begin_layout Plain Layout
29090 \begin_inset CommandInset label
29092 name "fig:cap-beside-fig-2"
29096 This is a vertically centered caption beside a figure.
29109 \begin_layout Standard
29113 \begin_layout Plain Layout
29125 \begin_layout Standard
29129 \begin_layout Plain Layout
29141 \begin_layout Standard
29142 \begin_inset Float table
29147 \begin_layout Plain Layout
29148 \begin_inset Caption Standard
29150 \begin_layout Plain Layout
29151 \begin_inset CommandInset label
29153 name "tab:cap-beside-tab-wider"
29157 This caption is wider than the one in Table
29158 \begin_inset space ~
29162 \begin_inset CommandInset ref
29164 reference "tab:cap-beside-tab"
29176 \begin_layout Plain Layout
29177 \begin_inset Tabular
29178 <lyxtabular version="3" rows="4" columns="5">
29179 <features tabularvalignment="middle">
29180 <column alignment="center" valignment="top">
29181 <column alignment="center" valignment="top">
29182 <column alignment="center" valignment="top">
29183 <column alignment="center" valignment="top">
29184 <column alignment="center" valignment="top">
29186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29189 \begin_layout Plain Layout
29195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29198 \begin_layout Plain Layout
29204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29207 \begin_layout Plain Layout
29213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29216 \begin_layout Plain Layout
29222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29225 \begin_layout Plain Layout
29233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29236 \begin_layout Plain Layout
29242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29245 \begin_layout Plain Layout
29251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29254 \begin_layout Plain Layout
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29272 \begin_layout Plain Layout
29280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29283 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29292 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Plain Layout
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29319 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29339 \begin_layout Plain Layout
29345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29348 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29366 \begin_layout Plain Layout
29385 \begin_layout Standard
29389 \begin_layout Plain Layout
29401 \begin_layout Standard
29405 \begin_layout Plain Layout
29415 \begin_inset Note Note
29418 \begin_layout Plain Layout
29419 The following will be displayed when the \SpecialChar LaTeX
29432 \begin_layout Standard
29433 You need to install the \SpecialChar LaTeX
29438 to see the following part of this section in the output.
29441 \begin_layout Standard
29445 \begin_layout Plain Layout
29457 \begin_layout Section
29459 \begin_inset Index idx
29462 \begin_layout Plain Layout
29463 Floats ! Float Lists
29471 \begin_layout Standard
29472 Similar to the table of contents where the sections of the document are
29473 listed, there are listings for all float types, like the figures of the
29475 You can insert them via the
29477 Insert\SpecialChar menuseparator
29479 \begin_inset space ~
29483 \begin_inset space ~
29491 \begin_layout Standard
29492 The list entries are the float captions or its short title, the float number,
29493 and the page number where they appear in the document.
29496 \begin_layout Standard
29497 You can find the list of figures and tables at the end of this document.
29500 \begin_layout Chapter
29504 \begin_layout Section
29507 \begin_inset Index idx
29510 \begin_layout Plain Layout
29511 Notes ! \SpecialChar LyX
29520 \begin_layout Standard
29521 Notes are inserted with the toolbar button
29529 Insert\SpecialChar menuseparator
29533 There are three types of notes:
29536 \begin_layout Description
29539 \begin_inset space ~
29542 Note This note type is for internal notes that won't appear in the output.
29543 Its note-box looks like this:
29544 \begin_inset Newline newline
29548 \begin_inset Newline newline
29552 \begin_inset Graphics
29553 filename clipart/LyXNoteImage.png
29555 scaleBeforeRotation
29560 \begin_inset Note Note
29563 \begin_layout Plain Layout
29564 This is text in a note box that doesn't appear in the output.
29572 \begin_layout Description
29573 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29575 when you export the document to \SpecialChar LaTeX
29578 File\SpecialChar menuseparator
29579 Export\SpecialChar menuseparator
29581 \begin_inset space ~
29584 (pdflatex) / (plain)
29587 Its note-box looks like this:
29588 \begin_inset Newline newline
29592 \begin_inset Newline newline
29596 \begin_inset Graphics
29597 filename clipart/CommentNoteImage.png
29599 scaleBeforeRotation
29604 \begin_inset Note Comment
29607 \begin_layout Plain Layout
29608 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29617 \begin_layout Description
29619 \begin_inset space ~
29622 Out This note will appear in the output as grey text.
29623 Its note-box looks like this:
29624 \begin_inset Newline newline
29628 \begin_inset Newline newline
29632 \begin_inset Graphics
29633 filename clipart/GreyedOutNoteImage.png
29635 scaleBeforeRotation
29640 \begin_inset Newline newline
29647 \begin_layout Plain Layout
29651 renewenvironment{lyxgreyedout}
29654 \begin_layout Plain Layout
29658 textcolor[gray]{0.8}
29668 \begin_inset Note Greyedout
29671 \begin_layout Plain Layout
29672 This is text of a comment that appears grey in the output.
29681 \begin_layout Plain Layout
29685 renewenvironment{lyxgreyedout}
29688 \begin_layout Plain Layout
29702 \begin_inset Note Note
29705 \begin_layout Plain Layout
29706 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29708 because greyed out notes are redefined in the preamble of this document,
29709 as described below, to have blue text.
29715 \begin_inset Newline newline
29719 \begin_inset Newline newline
29722 As you can see in the example, the first line of greyed out notes is a bit
29723 indented and greyed out notes can have footnotes.
29726 \begin_layout Standard
29727 \begin_inset VSpace bigskip
29730 When you use the toolbar button
29740 \begin_inset space ~
29746 You can switch between the three note types by right-clicking on the note-box.
29751 If you want to turn existing text into a note, mark it and click on the
29765 To change a note to text, press the backspace key when the cursor is in
29766 the first position of a note, or press the delete key when the cursor is
29767 in the very last position of the note, respectively.
29770 \begin_layout Standard
29771 \begin_inset VSpace bigskip
29774 You can change the text color of the greyed out notes in the menu
29776 Document\SpecialChar menuseparator
29777 Settings\SpecialChar menuseparator
29783 \begin_layout Section
29785 \begin_inset CommandInset label
29787 name "sec:Footnotes"
29792 \begin_inset Index idx
29795 \begin_layout Plain Layout
29802 \begin_inset Index idx
29805 \begin_layout Plain Layout
29814 \begin_layout Standard
29815 Footnotes can be inserted using the toolbar button
29818 arg "footnote-insert"
29823 Insert\SpecialChar menuseparator
29827 You will then see the following footnote-box:
29828 \begin_inset Graphics
29829 filename clipart/footnote.png
29831 scaleBeforeRotation
29839 where you can enter the footnote text.
29840 If you want to turn existing text into a footnote, mark it and click on
29866 key when the cursor is in the first position of a
29878 key when the cursor is in the very last position of the
29889 \begin_layout Standard
29890 Here is an example footnote:
29898 \begin_layout Plain Layout
29899 \begin_inset CommandInset label
29901 name "foot:This-is-an"
29905 This is an example footnote.
29918 \begin_layout Plain Layout
29922 newcounter{MyRepeatFoot}
29925 \begin_layout Plain Layout
29929 setcounter{MyRepeatFoot}{
29939 \begin_layout Standard
29940 The footnote will appear in the output as a superscript number at the text
29941 position where the footnote box is placed.
29942 The footnote text is placed at the bottom of the current page.
29943 The footnote number is calculated by \SpecialChar LaTeX
29944 ; the numbers are consecutive.
29945 Whether the footnote number is reset for every chapter depends on your
29949 \begin_layout Standard
29950 Footnotes can be referenced like floats: Insert a label into the footnote
29951 and cross-reference this label in the text as described in section
29952 \begin_inset space ~
29956 \begin_inset CommandInset ref
29958 reference "sec:Referencing-Floats"
29963 \begin_inset Newline newline
29966 This is a cross-reference of Footnote
29967 \begin_inset space ~
29971 \begin_inset CommandInset ref
29973 reference "foot:This-is-an"
29980 \begin_layout Standard
29981 \begin_inset VSpace defskip
29984 Footnotes in title environments are usually not numbered with symbols and
29985 they cannot contain several paragraphs.
29986 See for example the footnote in the titling of this document.
29989 \begin_layout Standard
29990 \begin_inset VSpace defskip
29993 Footnotes in tables are not printed by \SpecialChar LaTeX
29994 due to technical reasons.
29995 However there exists another method to print them: Instead of the footnote
30002 is inserted as \SpecialChar TeX
30004 The text of the footnote is entered as an argument of the \SpecialChar TeX
30013 \begin_inset Newline newline
30016 This was done for the following table with the command
30019 \begin_layout Standard
30026 Printed table footnote.
30031 \begin_layout Standard
30032 \begin_inset Tabular
30033 <lyxtabular version="3" rows="2" columns="1">
30034 <features tabularvalignment="middle">
30035 <column alignment="center" valignment="top">
30037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30040 \begin_layout Plain Layout
30041 This an example text.
30045 \begin_layout Plain Layout
30046 This footnote will not be printed!
30058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30061 \begin_layout Plain Layout
30062 This an example text.
30066 \begin_layout Plain Layout
30089 \begin_layout Plain Layout
30098 Printed table footnote.
30102 \begin_layout Plain Layout
30112 \begin_layout Standard
30113 Footnotes in multi-page tables are described in section
30114 \begin_inset space ~
30118 \begin_inset CommandInset ref
30120 reference "subsec:Footnotes-in-Multi-page"
30127 \begin_layout Standard
30128 Footnotes in minipage boxes are printed, but inside the box and with a different
30129 numbering because a minipage box is like a page inside a page.
30130 (For more about minipages, see section
30131 \begin_inset space ~
30135 \begin_inset CommandInset ref
30137 reference "sec:Minipages"
30141 .) To get a footnote in the minipage that is output at the bottom of the
30142 page like normal footnotes, also use the method of
30157 \begin_layout Standard
30158 \begin_inset Box Frameless
30168 height_special "totalheight"
30173 backgroundcolor "none"
30176 \begin_layout Plain Layout
30177 This an example text in a minipage.
30181 \begin_layout Plain Layout
30182 Footnote in the minipage.
30190 \begin_layout Plain Layout
30191 This an example text in a minipage.
30195 \begin_layout Plain Layout
30212 \begin_layout Standard
30216 \begin_layout Plain Layout
30225 Footnote outside the minipage.
30229 \begin_layout Plain Layout
30239 \begin_layout Standard
30240 \begin_inset VSpace defskip
30246 \begin_layout Standard
30247 To refer to the same footnote several times without printing the footnote
30248 text every time, use the command
30252 footnotemark[number]
30254 in \SpecialChar TeX
30256 \begin_inset Newline newline
30259 As you do not know the number of the repeating footnote while you are writing
30260 the text, you have to store its number.
30261 For the following footnote mark example, these commands were inserted in
30263 code after Footnote
30264 \begin_inset space ~
30268 \begin_inset CommandInset ref
30270 reference "foot:This-is-an"
30274 to store the footnote number:
30277 \begin_layout Standard
30282 newcounter{MyRepeatFoot}
30283 \begin_inset Newline newline
30288 setcounter{MyRepeatFoot}{
30293 \begin_layout Standard
30294 The footnote mark was then created with this command:
30297 \begin_layout Standard
30307 \begin_layout Standard
30308 Here is a repeated footnote:
30316 \begin_layout Plain Layout
30330 \begin_layout Standard
30331 If you want to repeat the previous footnote, you can omit the storage of
30332 the footnote number and just use this command instead:
30335 \begin_layout Standard
30345 \begin_layout Standard
30346 Here is another repeated footnote:
30354 \begin_layout Plain Layout
30368 \begin_layout Subsection
30370 \begin_inset CommandInset label
30372 name "subsec:Footnote-Numbering"
30377 \begin_inset Index idx
30380 \begin_layout Plain Layout
30381 Footnotes ! Numbering
30389 \begin_layout Standard
30390 To reset the footnote number back to 1 after each section
30392 , add this command to your document preamble:
30395 \begin_layout Standard
30400 @addtoreset{footnote}{section}
30403 \begin_layout Standard
30404 \begin_inset VSpace bigskip
30407 The following preamble command changes the footnote numbering style to small
30411 \begin_layout Standard
30423 \begin_layout Standard
30427 \begin_layout Plain Layout
30440 This is a footnote with roman numbering:
30444 \begin_layout Plain Layout
30445 This is an example footnote with roman numbering.
30453 \begin_layout Standard
30454 To change the numbering style to capital roman numerals replace in the command
30469 \begin_inset Quotes eld
30473 \begin_inset Quotes erd
30476 footnotes with capital or small Latin letters use
30490 \begin_inset Quotes eld
30494 \begin_inset Quotes erd
30497 footnotes with symbols use
30506 \begin_layout Standard
30507 \begin_inset Note Greyedout
30510 \begin_layout Plain Layout
30515 You can only number 26 footnotes with Latin letters, because this numbering
30516 is limited to single letters.
30522 \begin_inset Newline newline
30526 \begin_inset Note Greyedout
30529 \begin_layout Plain Layout
30534 You can only number 9 footnotes with symbols.
30542 \begin_layout Standard
30543 To return to the default numbering style after you have changed to another
30556 in the command above.
30560 \begin_layout Plain Layout
30576 \begin_layout Standard
30577 \begin_inset VSpace bigskip
30583 \begin_layout Standard
30584 If you want to have footnotes numbered in the scheme
30585 \begin_inset Quotes eld
30589 \begin_inset Quotes erd
30592 , add the following command to your document preamble:
30595 \begin_layout Standard
30600 numberwithin{footnote}{chapter}
30603 \begin_layout Standard
30604 To be able to use the command
30613 \begin_inset space ~
30618 in the document settings the option
30621 \begin_inset space ~
30625 \begin_inset space ~
30629 \begin_inset space ~
30637 \begin_layout Standard
30641 \begin_layout Plain Layout
30645 numberwithin{footnote}{chapter}
30650 This is another example footnote:
30656 \begin_layout Plain Layout
30657 This is a footnote numbered in the scheme
30658 \begin_inset Quotes eld
30662 \begin_inset Quotes erd
30676 \begin_layout Plain Layout
30692 \begin_layout Standard
30693 \begin_inset Note Greyedout
30696 \begin_layout Plain Layout
30707 always prints out the footnote number as arabic number; previous redefinitions
30708 to get non-arabic numbers are overwritten.
30716 \begin_layout Standard
30717 So to get for example the scheme
30718 \begin_inset Quotes eld
30724 \begin_inset Quotes erd
30727 , use this command instead of
30736 \begin_layout Standard
30750 \begin_layout Subsection
30752 \begin_inset Index idx
30755 \begin_layout Plain Layout
30756 Footnotes ! Placement
30764 \begin_layout Standard
30765 If you have several footnotes in one page, they appear without vertical
30766 space between them at the bottom of the page.
30767 To make them more readable you can e.
30768 \begin_inset space \thinspace{}
30772 \begin_inset space \space{}
30776 \begin_inset space \thinspace{}
30779 mm space with the following preamble command:
30782 \begin_layout Standard
30792 \begin_inset Newline newline
30806 \begin_layout Standard
30807 \begin_inset VSpace bigskip
30810 In a two-column document the footnotes appear at the bottom of every column,
30812 \begin_inset space ~
30816 \begin_inset CommandInset ref
30818 reference "fig:Standard-footnote-placement"
30823 If the footnotes should only appear at the bottom of the right column,
30825 \begin_inset space ~
30829 \begin_inset CommandInset ref
30831 reference "fig:Footnote-placement-in"
30835 , use the \SpecialChar LaTeX
30841 \begin_inset Index idx
30844 \begin_layout Plain Layout
30846 -packages ! ftnright
30851 with this command in the document preamble:
30854 \begin_layout Standard
30859 usepackage{ftnright}
30862 \begin_layout Standard
30863 \begin_inset Float figure
30869 \begin_layout Plain Layout
30872 \begin_inset Box Boxed
30882 height_special "totalheight"
30887 backgroundcolor "none"
30890 \begin_layout Plain Layout
30891 \begin_inset Graphics
30892 filename clipart/without_fntright.pdf
30894 scaleBeforeRotation
30906 \begin_layout Plain Layout
30907 \begin_inset Caption Standard
30909 \begin_layout Plain Layout
30910 \begin_inset CommandInset label
30912 name "fig:Standard-footnote-placement"
30916 Standard footnote placement in two-column documents.
30929 \begin_layout Standard
30930 \begin_inset Float figure
30936 \begin_layout Plain Layout
30939 \begin_inset Box Boxed
30949 height_special "totalheight"
30954 backgroundcolor "none"
30957 \begin_layout Plain Layout
30958 \begin_inset Graphics
30959 filename clipart/with_fntright.pdf
30961 scaleBeforeRotation
30973 \begin_layout Plain Layout
30974 \begin_inset Caption Standard
30976 \begin_layout Plain Layout
30977 \begin_inset CommandInset label
30979 name "fig:Footnote-placement-in"
30983 Footnote placement in two-column documents when the \SpecialChar LaTeX
31001 \begin_layout Standard
31002 \begin_inset VSpace bigskip
31005 In some scientific literature it is usual to collect the footnotes and print
31006 them in a separate paragraph at the end of a section, as in Figure
31007 \begin_inset space ~
31011 \begin_inset CommandInset ref
31013 reference "fig:Endnotes"
31018 They are then called
31019 \begin_inset Quotes eld
31023 \begin_inset Quotes erd
31027 \begin_inset Index idx
31030 \begin_layout Plain Layout
31036 To use endnotes instead of footnotes in your document, load in the menu
31039 Document\SpecialChar menuseparator
31040 Settings\SpecialChar menuseparator
31046 \begin_inset space ~
31050 \begin_inset space ~
31056 To insert the collected footnotes, insert the command
31059 \begin_layout Standard
31067 \begin_layout Standard
31068 in \SpecialChar TeX
31069 Code at the end of a section or chapter.
31072 \begin_layout Standard
31073 \begin_inset Float figure
31078 \begin_layout Plain Layout
31081 \begin_inset Box Boxed
31091 height_special "totalheight"
31096 backgroundcolor "none"
31099 \begin_layout Plain Layout
31100 \begin_inset Graphics
31101 filename clipart/endnotes.pdf
31103 scaleBeforeRotation
31115 \begin_layout Plain Layout
31116 \begin_inset Caption Standard
31118 \begin_layout Plain Layout
31119 \begin_inset CommandInset label
31121 name "fig:Endnotes"
31125 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31139 \begin_layout Standard
31140 \begin_inset VSpace medskip
31143 The paragraph heading for the endnotes isn't automatically translated into
31144 the document language, this must be done manually.
31145 The following preamble command translates the default English
31146 \begin_inset Quotes eld
31150 \begin_inset Quotes erd
31154 \begin_inset Quotes eld
31158 \begin_inset Quotes erd
31164 \begin_layout Standard
31171 notesname}{Anmerkungen}
31174 \begin_layout Standard
31175 \begin_inset VSpace medskip
31178 The numbering of endnotes can be changed like the footnote numbering as
31179 described in section
31180 \begin_inset space ~
31184 \begin_inset CommandInset ref
31186 reference "subsec:Footnote-Numbering"
31190 ; just replace the command
31203 To reset the endnote number use the command
31209 as described in section
31210 \begin_inset space ~
31214 \begin_inset CommandInset ref
31216 reference "subsec:Footnote-Numbering"
31220 and replace the command parameter
31231 \begin_layout Standard
31232 For endnotes there is the command
31236 endnotemark[number]
31238 similar to the command
31244 , that is described in section
31245 \begin_inset space ~
31249 \begin_inset CommandInset ref
31251 reference "sec:Footnotes"
31258 \begin_layout Standard
31259 \begin_inset VSpace bigskip
31262 Footnotes can also be placed in the page margin and the footnote text alignment
31263 can be changed, see the \SpecialChar LaTeX
31269 \begin_inset Index idx
31272 \begin_layout Plain Layout
31274 -packages ! footmisc
31280 \begin_inset CommandInset citation
31286 for more information about this.
31289 \begin_layout Standard
31290 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31292 \begin_inset CommandInset citation
31294 key "latexcompanion,latexguide,latexbook"
31304 \begin_inset Index idx
31307 \begin_layout Plain Layout
31309 -packages ! KOMA-Script
31314 document class, you can adjust all footnote settings using class-specific
31316 \begin_inset CommandInset citation
31325 \begin_layout Section
31327 \begin_inset Index idx
31330 \begin_layout Plain Layout
31331 Notes ! Margin Notes
31339 \begin_layout Standard
31340 Margin notes look and behave in \SpecialChar LyX
31342 They are inserted via the menu
31344 Insert\SpecialChar menuseparator
31346 \begin_inset space ~
31351 or the toolbar button
31354 arg "marginalnote-insert"
31368 \begin_inset Quotes eld
31372 \begin_inset Quotes erd
31375 appears where you can enter the text of the margin note.
31378 \begin_layout Standard
31379 At the side is an example margin note.
31384 \begin_inset Marginal
31387 \begin_layout Plain Layout
31388 This is a margin note.
31396 \begin_layout Standard
31397 Margin notes appear at the right side in single-sided documents.
31398 In double-sided documents they appear in the outer margin – left on even
31399 pages, right on odd pages.
31400 The text of margin notes is aligned opposite to the outer margin – right-aligne
31401 d when the note appears in the left margin.
31402 The first line of the margin note is placed at the position of the text
31403 line where it is inserted in the document.
31406 \begin_layout Standard
31407 \begin_inset VSpace bigskip
31410 To place the margin note in the inner margin, add the command
31413 \begin_layout Standard
31421 \begin_layout Standard
31422 in \SpecialChar TeX
31423 Code before a margin note.
31424 The new placement is valid for all subsequent margin notes.
31429 \begin_layout Plain Layout
31439 \begin_inset Marginal
31442 \begin_layout Plain Layout
31443 This is a margin note in the inner margin.
31451 \begin_inset Newline newline
31457 \begin_inset Note Greyedout
31460 \begin_layout Plain Layout
31465 There is often not enough space in the inner margin so that the notes are
31466 not correctly displayed in the output.
31474 \begin_layout Standard
31475 To return to the default placement insert the command
31478 \begin_layout Standard
31486 \begin_layout Standard
31487 in \SpecialChar TeX
31492 \begin_layout Plain Layout
31502 \begin_inset Note Greyedout
31505 \begin_layout Plain Layout
31510 The command is ignored when it is within a paragraph where also the command
31525 \begin_layout Standard
31526 \begin_inset VSpace bigskip
31533 \begin_inset Marginal
31536 \begin_layout Plain Layout
31537 AVeryLongMarginParWord that isn't hyphenated.
31545 Similar to the case described in section
31546 \begin_inset space ~
31550 \begin_inset CommandInset ref
31552 reference "subsec:Multiple-Lines-in"
31556 , long words cannot be hyphenated when they are the first word in a margin
31558 To avoid this, insert 0
31559 \begin_inset space \thinspace{}
31562 pt horizontal space before the word
31567 \begin_inset Marginal
31570 \begin_layout Plain Layout
31571 \begin_inset space \hspace*{}
31575 AVeryLongMarginParWord that is hyphenated.
31583 \begin_layout Standard
31584 \begin_inset VSpace bigskip
31590 \begin_layout Standard
31591 \begin_inset Note Greyedout
31594 \begin_layout Plain Layout
31599 Margin notes can normally not be used inside tables, floats, and footnotes.
31607 \begin_layout Standard
31608 \begin_inset VSpace bigskip
31614 \begin_layout Standard
31618 \begin_layout Plain Layout
31628 \begin_inset Note Note
31631 \begin_layout Plain Layout
31632 The following section will only be displayed when the \SpecialChar LaTeX
31645 \begin_layout Standard
31646 This restriction can be evaded by using the \SpecialChar LaTeX
31652 \begin_inset Index idx
31655 \begin_layout Plain Layout
31657 -packages ! marginnote
31663 By adding these two lines to your document preamble, the command used by
31665 for margin notes is redefined to use the command provided by the
31672 \begin_layout Standard
31677 usepackage{marginnote}
31678 \begin_inset Newline newline
31690 \begin_layout Standard
31691 This is also used in this document because
31695 has another useful feature: You can set a vertical offset for the note.
31696 This is often needed when too many margin notes are too close together
31697 or for a better page layout.
31698 The offset is set in \SpecialChar LyX
31699 as \SpecialChar TeX
31700 Code directly after the margin note in the scheme
31703 \begin_layout Standard
31709 \begin_layout Standard
31710 where the offset is a length with one of the units listed in Table
31711 \begin_inset space ~
31715 \begin_inset CommandInset ref
31717 reference "tab:Units"
31722 A negative value shifts the note up, a positive value shifts it down.
31726 For example the margin note beside this text line is shifted up 1.5
31727 \begin_inset space \thinspace{}
31730 cm with the \SpecialChar TeX
31732 \begin_inset Quotes eld
31742 \begin_inset Quotes erd
31746 \begin_inset Marginal
31749 \begin_layout Plain Layout
31750 This margin note is shifted up 1.5
31751 \begin_inset space \thinspace{}
31754 cm from its original position.
31766 \begin_layout Plain Layout
31776 \begin_layout Standard
31777 \begin_inset VSpace medskip
31784 you can also change the alignment of the text in the margin note.
31785 For example the commands
31788 \begin_layout Standard
31795 raggedleftmarginnote}{
31798 \begin_inset Newline newline
31805 raggedrightmarginnote}{
31810 \begin_layout Standard
31811 set the alignment to centered.
31816 raggedleftmarginnote
31818 denotes margin notes that appear at the left side.
31825 \begin_layout Plain Layout
31831 raggedleftmarginnote}{
31836 \begin_layout Plain Layout
31842 raggedrightmarginnote}{
31850 \begin_inset Marginal
31853 \begin_layout Plain Layout
31854 The text of this margin note is centered.
31865 \begin_layout Standard
31872 raggedleftmarginnote}{
31875 \begin_inset Newline newline
31882 raggedrightmarginnote}{
31891 \begin_layout Plain Layout
31897 raggedleftmarginnote}{
31902 \begin_layout Plain Layout
31908 raggedrightmarginnote}{
31918 \begin_layout Standard
31919 \begin_inset VSpace medskip
31922 For the other features of
31926 refer to its documentation
31927 \begin_inset CommandInset citation
31936 \begin_layout Standard
31937 \begin_inset VSpace bigskip
31940 You can adjust the layout of margin notes by changing its definition.
31941 To create for example a header for all margin notes with the underlined,
31942 sans-serif, and bold header text
31943 \begin_inset Quotes eld
31955 \begin_inset Quotes erd
31958 , add this to your document preamble:
31961 \begin_layout Standard
31971 \begin_inset Newline newline
31981 \begin_inset Newline newline
31985 \begin_inset Phantom HPhantom
31988 \begin_layout Plain Layout
31991 \begin_inset space ~
32007 underbar{Attention!}}}%
32008 \begin_inset Newline newline
32012 \begin_inset Phantom HPhantom
32015 \begin_layout Plain Layout
32018 \begin_inset space ~
32035 \begin_layout Standard
32042 \begin_layout Plain Layout
32053 \begin_layout Plain Layout
32064 \begin_layout Plain Layout
32072 underbar{Attention!}}}%
32075 \begin_layout Plain Layout
32089 \begin_inset Marginal
32092 \begin_layout Plain Layout
32093 This is a margin note with a defined heading.
32105 \begin_layout Plain Layout
32119 \begin_layout Plain Layout
32136 \begin_inset Note Note
32139 \begin_layout Plain Layout
32140 The margin note format is changed only for this example.
32148 \begin_layout Standard
32152 \begin_layout Plain Layout
32162 \begin_inset Note Note
32165 \begin_layout Plain Layout
32166 The following will be displayed when the \SpecialChar LaTeX
32179 \begin_layout Standard
32180 You need to install the \SpecialChar LaTeX
32185 to see the following part of this section in the output.
32188 \begin_layout Standard
32192 \begin_layout Plain Layout
32204 \begin_layout Chapter
32208 \begin_layout Section
32210 \begin_inset Index idx
32213 \begin_layout Plain Layout
32214 Boxes ! Introduction
32222 \begin_layout Standard
32223 Boxes are used to format a block of text.
32224 Boxes can be used to write documents with multiple languages, see section
32225 \begin_inset space ~
32229 \begin_inset CommandInset ref
32231 reference "sec:Minipages"
32235 , to frame texts, see section
32236 \begin_inset space ~
32240 \begin_inset CommandInset ref
32242 reference "sec:Decoration"
32246 , to prevent words from being hyphenated, see section
32247 \begin_inset space ~
32251 \begin_inset CommandInset ref
32253 reference "sec:Prevent-Hyphenation"
32257 , to align text, see section
32258 \begin_inset space ~
32262 \begin_inset CommandInset ref
32264 reference "subsec:Vertical-Alignment"
32268 , or to set the background color of texts, see section
32269 \begin_inset space ~
32273 \begin_inset CommandInset ref
32275 reference "sec:Colored-Boxes"
32282 \begin_layout Standard
32283 Boxes can be inserted with the menu
32285 Insert\SpecialChar menuseparator
32288 or the toolbar button
32291 arg "box-insert Frameless"
32295 A grey box with the label
32300 \begin_inset Graphics
32301 filename clipart/BoxInsetDefault.png
32303 scaleBeforeRotation
32308 The box type can be specified by right-clicking on the box and selecting
32314 The box dialog offers the
32317 \begin_inset space ~
32339 is the default for new boxes and is explained in section
32340 \begin_inset space ~
32344 \begin_inset CommandInset ref
32346 reference "sec:Minipages"
32354 is described in section
32355 \begin_inset space ~
32359 \begin_inset CommandInset ref
32361 reference "sec:Parboxes"
32370 \begin_inset CommandInset ref
32372 reference "sec:Prevent-Hyphenation"
32379 \begin_layout Standard
32380 Boxes are not numbered and can therefore not be referenced like floats or
32384 \begin_layout Standard
32385 \begin_inset Note Greyedout
32388 \begin_layout Plain Layout
32393 Boxes must not be the item in an
32409 \begin_layout Standard
32410 \begin_inset Note Greyedout
32413 \begin_layout Plain Layout
32418 For an unknown reason you can only set the
32421 \begin_inset space ~
32430 when you use a framed box.
32434 \begin_inset space ~
32439 type and without frames are explained in section
32440 \begin_inset space ~
32444 \begin_inset CommandInset ref
32446 reference "sec:Prevent-Hyphenation"
32458 \begin_layout Section
32460 \begin_inset CommandInset label
32462 name "sec:Box-Dialog"
32467 \begin_inset Index idx
32470 \begin_layout Plain Layout
32479 \begin_layout Subsection
32481 \begin_inset Index idx
32484 \begin_layout Plain Layout
32493 \begin_layout Standard
32494 In the box dialog you can adjust the box geometry in the fields
32503 The available units for the geometry are explained in Table
32504 \begin_inset space ~
32508 \begin_inset CommandInset ref
32510 reference "tab:Units"
32519 offers the following additional sizes:
32522 \begin_layout Description
32523 Depth This is the plain text
32524 \begin_inset Quotes eld
32528 \begin_inset Quotes erd
32532 It ignores the total depth when there are multiple text lines in the box:
32533 \begin_inset Newline newline
32537 \begin_inset Newline newline
32541 \begin_inset Newline newline
32545 \begin_inset Box Boxed
32555 height_special "depth"
32560 backgroundcolor "none"
32563 \begin_layout Plain Layout
32565 Box height set to 1
32566 \begin_inset space \thinspace{}
32575 \begin_inset Newline newline
32579 \begin_inset Newline newline
32585 \begin_layout Description
32586 Height This is the height of the text that is inside the box.
32588 \begin_inset space \thinspace{}
32592 \begin_inset space \space{}
32595 2 for this size will set the box height to 2
32596 \begin_inset space ~
32599 times the text height:
32600 \begin_inset Box Boxed
32610 height_special "height"
32615 backgroundcolor "none"
32618 \begin_layout Plain Layout
32620 Box height set to 2
32621 \begin_inset space \thinspace{}
32632 \begin_layout Description
32634 \begin_inset space ~
32637 Height This is the Height
32638 \begin_inset space \thinspace{}
32642 \begin_inset space \thinspace{}
32646 \begin_inset Box Boxed
32656 height_special "totalheight"
32661 backgroundcolor "none"
32664 \begin_layout Plain Layout
32666 Box height set to 1
32667 \begin_inset space \thinspace{}
32671 \begin_inset space ~
32682 \begin_layout Description
32683 Width This sets the width of the box as height:
32684 \begin_inset Box Boxed
32694 height_special "width"
32699 backgroundcolor "none"
32702 \begin_layout Plain Layout
32704 Box height set to 1
32705 \begin_inset space \thinspace{}
32716 \begin_layout Subsection
32718 \begin_inset Index idx
32721 \begin_layout Plain Layout
32730 \begin_layout Standard
32731 When you have chosen an
32734 \begin_inset space ~
32739 , the vertical box alignment can be:
32742 \begin_layout Description
32743 Top This is an example text line.
32745 \begin_inset Box Boxed
32755 height_special "totalheight"
32760 backgroundcolor "none"
32763 \begin_layout Plain Layout
32765 This box is top-aligned.
32770 This is an example text line.
32773 \begin_layout Description
32774 Middle This is an example text line.
32776 \begin_inset Box Boxed
32786 height_special "totalheight"
32791 backgroundcolor "none"
32794 \begin_layout Plain Layout
32796 This box is middle-aligned.
32801 This is an example text line.
32804 \begin_layout Description
32805 Bottom This is an example text line.
32807 \begin_inset Box Boxed
32817 height_special "totalheight"
32822 backgroundcolor "none"
32825 \begin_layout Plain Layout
32827 This box is bottom-aligned.
32832 This is an example text line.
32835 \begin_layout Standard
32836 \begin_inset Note Greyedout
32839 \begin_layout Plain Layout
32844 The vertical box alignment can be lost in the output when you have two
32845 boxes in a line and one has e.
32846 \begin_inset space \thinspace{}
32850 \begin_inset space \space{}
32853 a shadow and the other one not.
32861 \begin_layout Standard
32862 The horizontal box alignment can be set via \SpecialChar LyX
32863 's paragraph dialog when you
32864 set the box into its own paragraph.
32867 \begin_layout Standard
32868 \begin_inset VSpace bigskip
32871 When you have chosen an
32874 \begin_inset space ~
32879 , the box content can be aligned vertically to:
32882 \begin_layout Description
32883 top This is an example text line.
32885 \begin_inset Box Boxed
32895 height_special "totalheight"
32900 backgroundcolor "none"
32903 \begin_layout Plain Layout
32905 This box text is top-aligned.
32910 This is an example text line.
32913 \begin_layout Description
32914 middle This is an example text line.
32916 \begin_inset Box Boxed
32926 height_special "totalheight"
32931 backgroundcolor "none"
32934 \begin_layout Plain Layout
32936 This box text is middle-aligned.
32941 This is an example text line.
32944 \begin_layout Description
32945 bottom This is an example text line.
32947 \begin_inset Box Boxed
32957 height_special "totalheight"
32962 backgroundcolor "none"
32965 \begin_layout Plain Layout
32967 This box text is bottom-aligned.
32972 This is an example text line.
32975 \begin_layout Description
32976 stretch This is an example text line.
32978 \begin_inset Box Boxed
32988 height_special "totalheight"
32993 backgroundcolor "none"
32996 \begin_layout Plain Layout
33001 \begin_layout Plain Layout
33006 \begin_layout Plain Layout
33013 This is an example text line.
33016 \begin_layout Standard
33017 To stretch the box content, it must consist of more than one paragraph.
33018 In the example above every text line is in an own paragraph.
33021 \begin_layout Standard
33022 \begin_inset VSpace bigskip
33025 To align the box content horizontally you can use \SpecialChar LyX
33026 's paragraph dialog when
33030 \begin_inset space ~
33038 \begin_layout Standard
33040 \begin_inset Box Boxed
33050 height_special "totalheight"
33055 backgroundcolor "none"
33058 \begin_layout Plain Layout
33063 \begin_layout Plain Layout
33068 \begin_layout Plain Layout
33078 \begin_layout Standard
33079 If you have not set an
33082 \begin_inset space ~
33087 , you can align the box content horizontally in the box dialog.
33090 \begin_layout Standard
33092 \begin_inset Box Boxed
33102 height_special "totalheight"
33107 backgroundcolor "none"
33110 \begin_layout Plain Layout
33111 This box text is horizontally stretched.
33119 \begin_layout Subsection
33121 \begin_inset CommandInset label
33123 name "sec:Decoration"
33128 \begin_inset Index idx
33131 \begin_layout Plain Layout
33140 \begin_layout Standard
33141 The type of the box can be specified in the box dialog in the drop-down
33147 The following types are possible:
33150 \begin_layout Description
33152 \begin_inset space ~
33155 frame Nothing is drawn.
33158 \begin_layout Description
33160 \begin_inset space ~
33164 \begin_inset space ~
33167 frame This draws a rectangular frame around the box.
33168 The frame line thickness can be specified.
33170 \begin_inset Box Boxed
33180 height_special "totalheight"
33185 backgroundcolor "none"
33188 \begin_layout Plain Layout
33198 \begin_layout Description
33200 \begin_inset space ~
33204 \begin_inset space ~
33207 thin This draws an oval frame around the box.
33208 The frame line thickness has the size 0.4
33209 \begin_inset space \thinspace{}
33214 \begin_inset Box ovalbox
33224 height_special "totalheight"
33229 backgroundcolor "none"
33232 \begin_layout Plain Layout
33242 \begin_layout Description
33244 \begin_inset space ~
33248 \begin_inset space ~
33251 thick This draws an oval frame around the box.
33252 The frame line thickness has the size 0.8
33253 \begin_inset space \thinspace{}
33258 \begin_inset Box Ovalbox
33268 height_special "totalheight"
33273 backgroundcolor "none"
33276 \begin_layout Plain Layout
33286 \begin_layout Description
33288 \begin_inset space ~
33291 shadow This draws a rectangular frame with a shadow around the box.
33292 The frame line thickness and the shadow can be specified.
33294 \begin_inset Box Shadowbox
33304 height_special "totalheight"
33309 backgroundcolor "none"
33312 \begin_layout Plain Layout
33322 \begin_layout Description
33324 \begin_inset space ~
33327 background This draws a box with a red background.
33328 Unlike colored boxes
33332 \begin_layout Plain Layout
33334 \begin_inset space \thinspace{}
33338 \begin_inset CommandInset ref
33340 reference "sec:Colored-Boxes"
33349 , it always uses the whole column width and the box is set as its own paragraph.
33351 \begin_inset Box Shaded
33361 height_special "totalheight"
33366 backgroundcolor "none"
33369 \begin_layout Plain Layout
33370 Shaded background box
33378 \begin_layout Description
33380 \begin_inset space ~
33384 \begin_inset space ~
33387 frame This draws a double-line rectangular frame around the box.
33388 The line thickness of the inner frame is 0.75
33389 \begin_inset space \thinspace{}
33393 \begin_inset space ~
33396 thickness, the thickness of the outer frame is 1.5
33397 \begin_inset space \thinspace{}
33401 \begin_inset space ~
33405 The distance between the lines is 1.5
33406 \begin_inset space \thinspace{}
33410 \begin_inset space ~
33414 \begin_inset space \thinspace{}
33418 \begin_inset space \thinspace{}
33422 \begin_inset space \thinspace{}
33427 \begin_inset Box Doublebox
33437 height_special "totalheight"
33442 backgroundcolor "none"
33445 \begin_layout Plain Layout
33447 Double rectangular box
33455 \begin_layout Standard
33456 \begin_inset VSpace bigskip
33460 's box label will reflect the different frame types.
33461 To be able to use all types, the \SpecialChar LaTeX
33467 \begin_inset Index idx
33470 \begin_layout Plain Layout
33472 -packages ! fancybox
33480 \begin_layout Standard
33481 \begin_inset VSpace bigskip
33484 When you use the decoration
33486 simple rectangular frame
33488 and no inner box, you can allow page breaks within a box.
33489 Note that then, unlike other framed boxes, the frame always uses the whole
33490 column width and the box is set as its own paragraph:
33491 \begin_inset Box Framed
33501 height_special "totalheight"
33506 backgroundcolor "none"
33509 \begin_layout Plain Layout
33510 Allow page break box
33518 \begin_layout Section
33520 \begin_inset Index idx
33523 \begin_layout Plain Layout
33524 Boxes ! Customization
33532 \begin_layout Standard
33533 The diameter of the round corners of the oval boxes can be set with the
33544 \begin_layout Standard
33552 \begin_layout Standard
33553 sets the diameter to 1
33554 \begin_inset space \thinspace{}
33561 \begin_layout Standard
33569 \begin_layout Standard
33570 sets the diameter to
33573 \begin_inset space \thinspace{}
33577 \begin_inset space \thinspace{}
33580 minimum(width and height of box)
33592 \begin_layout Standard
33596 \begin_layout Plain Layout
33606 \begin_inset Box Ovalbox
33616 height_special "totalheight"
33621 backgroundcolor "none"
33624 \begin_layout Plain Layout
33633 \begin_inset space \thinspace{}
33637 \begin_inset space \thinspace{}
33641 \begin_inset space \thinspace{}
33653 \begin_layout Plain Layout
33665 \begin_layout Standard
33666 \begin_inset VSpace bigskip
33672 \begin_layout Standard
33673 The default background color red of
33677 boxes can either be changed locally with the command
33681 definecolor{shadecolor}
33683 or globally with the menu
33685 Tools\SpecialChar menuseparator
33686 Preferences\SpecialChar menuseparator
33687 Colors\SpecialChar menuseparator
33689 \begin_inset space ~
33701 command is explained in section
33702 \begin_inset space ~
33706 \begin_inset CommandInset ref
33708 reference "sec:Colored-Tables"
33716 \begin_layout Plain Layout
33723 requires the \SpecialChar LaTeX
33728 in the preamble, see section
33729 \begin_inset space ~
33733 \begin_inset CommandInset ref
33735 reference "sec:Colored-Boxes"
33744 For example the appearance of the following shaded background box is set
33745 with the \SpecialChar TeX
33749 \begin_layout Standard
33754 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33757 \begin_layout Standard
33761 \begin_layout Plain Layout
33765 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33771 \begin_inset Box Shaded
33781 height_special "totalheight"
33786 backgroundcolor "none"
33789 \begin_layout Plain Layout
33792 This is yellow text in a
33802 box with dark green background.
33811 \begin_layout Plain Layout
33815 definecolor{shadecolor}{rgb}{1,0,0}
33823 \begin_layout Standard
33824 \begin_inset VSpace bigskip
33827 Manually changed sizes and colors are valid for all boxes following the
33828 commands that change them.
33831 \begin_layout Section
33833 \begin_inset CommandInset label
33835 name "sec:Minipages"
33840 \begin_inset Index idx
33843 \begin_layout Plain Layout
33852 \begin_layout Standard
33853 Minipages are treated by \SpecialChar LaTeX
33854 as pages within pages and can therefore for example
33855 have their own footnotes.
33858 \begin_layout Standard
33859 Minipages are useful when you write documents with different languages.
33862 \begin_layout Standard
33863 Below are two example minipages side by side.
33864 Their width is set to 45
33865 \begin_inset space \thinspace{}
33868 col% and they are separated by a horizontal fill, that was inserted via
33871 Insert\SpecialChar menuseparator
33873 \begin_inset space ~
33876 Formatting\SpecialChar menuseparator
33878 \begin_inset space ~
33884 \begin_inset Newpage newpage
33890 \begin_layout Standard
33891 \begin_inset Box Frameless
33901 height_special "totalheight"
33906 backgroundcolor "none"
33909 \begin_layout Plain Layout
33912 Dies ist ein deutscher Text.
33913 Dies ist ein deutscher Text.
33914 Dies ist ein deutscher Text.
33915 Dies ist ein deutscher Text.
33916 Dies ist ein deutscher Text.
33917 Dies ist ein deutscher Text.
33918 Dies ist ein deutscher Text.
33919 Dies ist ein deutscher Text.
33920 Dies ist ein deutscher Text.
33921 Dies ist ein deutscher Text.
33922 Dies ist ein deutscher Text.
33923 Dies ist ein deutscher Text.
33924 Dies ist ein deutscher Text
33928 \begin_layout Plain Layout
33931 Dies ist eine deutsche Fußnote.
33937 Dies ist ein deutscher Text.
33938 Dies ist ein deutscher Text.
33944 \begin_inset space \hfill{}
33948 \begin_inset Box Frameless
33958 height_special "totalheight"
33963 backgroundcolor "none"
33966 \begin_layout Plain Layout
33967 This is an English Text.
33968 This is an English Text.
33969 This is an English Text.
33970 This is an English Text.
33971 This is an English Text.
33972 This is an English Text.
33973 This is an English Text.
33974 This is an English Text.
33975 This is an English Text.
33976 This is an English Text.
33977 This is an English Text.
33978 This is an English Text.
33979 This is an English Text.
33980 This is an English Text.
33981 This is an English Text.
33982 This is an English Text.
33986 \begin_layout Plain Layout
33987 This is an English footnote.
33992 This is an English Text.
34000 \begin_layout Standard
34001 \begin_inset VSpace bigskip
34004 The document-wide paragraph settings are ignored within minipages.
34005 That means that there will be no space between paragraphs in minipages
34006 although you set it to e.
34007 \begin_inset space \thinspace{}
34011 \begin_inset space \space{}
34018 in the document settings.
34021 \begin_layout Standard
34022 Minipages can also be used to set a background color for text parts, see
34024 \begin_inset space ~
34028 \begin_inset CommandInset ref
34030 reference "sec:Colored-Boxes"
34037 \begin_layout Standard
34038 \begin_inset Note Greyedout
34041 \begin_layout Plain Layout
34046 You cannot have floats or margin notes inside minipages but minipages can
34047 be used inside tables, floats, and other boxes.
34055 \begin_layout Standard
34056 \begin_inset VSpace bigskip
34062 \begin_layout Standard
34064 has also basic support for minipages whose size is automatically determined
34065 by the width of their contents, via the module
34067 Variable-width Minipages
34070 The \SpecialChar LyX
34073 varwidth-floats-side-by-side
34075 gives examples of variable-width minipages used for placing two floats
34079 \begin_layout Section
34081 \begin_inset CommandInset label
34083 name "sec:Parboxes"
34088 \begin_inset Index idx
34091 \begin_layout Plain Layout
34100 \begin_layout Standard
34101 Parboxes are very similar to minipages with the difference that they cannot
34105 \begin_layout Standard
34107 \begin_inset Box Frameless
34117 height_special "totalheight"
34122 backgroundcolor "none"
34125 \begin_layout Plain Layout
34126 This a text within a parbox.
34127 This a text within a parbox.
34130 \begin_layout Plain Layout
34131 This footnote won't appear:
34135 \begin_layout Plain Layout
34136 This footnote is inside a parbox and will therefore not appear.
34149 \begin_layout Section
34150 Boxes for Words and Characters
34151 \begin_inset Index idx
34154 \begin_layout Plain Layout
34155 Boxes ! for Characters
34163 \begin_layout Subsection
34164 Prevent Hyphenation
34165 \begin_inset CommandInset label
34167 name "sec:Prevent-Hyphenation"
34172 \begin_inset Index idx
34175 \begin_layout Plain Layout
34176 Boxes ! to Prevent Hyphenation
34184 \begin_layout Standard
34185 You can use the box type
34189 to prevent words or text from being hyphenated.
34190 \begin_inset Newline newline
34193 Here is an example text:
34196 \begin_layout Standard
34197 This line is an example to show how you can prevent the hyphenation of
34198 \begin_inset Quotes eld
34202 \begin_inset Quotes erd
34208 \begin_layout Standard
34209 To prevent the hyphenation of the word
34210 \begin_inset Quotes eld
34214 \begin_inset Quotes erd
34217 , put the word into a box, set the
34220 \begin_inset space ~
34229 and use no explicit width.
34232 \begin_layout Standard
34233 This is the result:
34236 \begin_layout Standard
34237 This line is an example to show how you can prevent the hyphenation of
34238 \begin_inset Box Frameless
34248 height_special "totalheight"
34253 backgroundcolor "none"
34256 \begin_layout Plain Layout
34257 \begin_inset Quotes eld
34261 \begin_inset Quotes erd
34272 \begin_layout Standard
34273 You can alternatively set the command
34274 \begin_inset Quotes eld
34284 \begin_inset Quotes grd
34287 as \SpecialChar TeX
34288 Code directly before the word:
34291 \begin_layout Standard
34292 This line is an example to show how you can prevent the hyphenation of
34293 \begin_inset Quotes eld
34300 \begin_layout Plain Layout
34310 \begin_inset Quotes erd
34316 \begin_layout Standard
34317 Of course the word now protrudes over the side margin.
34318 To avoid this, add via the menu
34320 Insert\SpecialChar menuseparator
34321 Formatting\SpecialChar menuseparator
34323 \begin_inset space ~
34327 \begin_inset space ~
34335 arg "newline-insert newline"
34338 ) a line break before the word:
34341 \begin_layout Standard
34342 This line is an example to show how you can prevent the hyphenation of
34343 \begin_inset Newline newline
34347 \begin_inset Box Frameless
34357 height_special "totalheight"
34362 backgroundcolor "none"
34365 \begin_layout Plain Layout
34366 \begin_inset Quotes eld
34370 \begin_inset Quotes erd
34381 \begin_layout Subsection
34383 \begin_inset CommandInset label
34385 name "subsec:Vertical-Alignment"
34390 \begin_inset Index idx
34393 \begin_layout Plain Layout
34394 Boxes ! for Vertical Alignment
34400 \begin_inset Index idx
34403 \begin_layout Plain Layout
34412 \begin_layout Standard
34413 With the help of the command
34419 you can align words, characters or other boxes vertically relative to the
34427 is used with the following scheme:
34430 \begin_layout Standard
34435 raisebox{lift}[height][depth]{box content}
34438 \begin_layout Standard
34439 The lift can be a positive value to raise the box or a negative value to
34443 \begin_layout Standard
34444 To align for example the word
34445 \begin_inset Quotes eld
34449 \begin_inset Quotes erd
34452 so that the bottom of the
34453 \begin_inset Quotes eld
34457 \begin_inset Quotes erd
34461 \begin_inset Quotes eld
34465 \begin_inset Quotes erd
34468 is at the baseline, insert the command
34471 \begin_layout Standard
34481 \begin_layout Standard
34482 in \SpecialChar TeX
34483 Code before the word.
34484 After the word insert a closing brace
34485 \begin_inset Quotes eld
34493 \begin_inset Quotes erd
34496 in \SpecialChar TeX
34498 \begin_inset Newline newline
34501 This is the result:
34504 \begin_layout Standard
34505 This is a text line with the word
34509 \begin_layout Plain Layout
34521 \begin_inset Quotes eld
34525 \begin_inset Quotes erd
34532 \begin_layout Plain Layout
34542 \begin_layout Standard
34543 \begin_inset VSpace bigskip
34546 When you raise or lower characters in a line, the line distance will be
34550 \begin_layout Standard
34551 This is a text line with the word
34555 \begin_layout Plain Layout
34567 \begin_inset Quotes eld
34571 \begin_inset Quotes erd
34578 \begin_layout Plain Layout
34586 \begin_inset Newline newline
34589 This is a text line with the word
34593 \begin_layout Plain Layout
34603 \begin_inset Quotes eld
34607 \begin_inset Quotes erd
34614 \begin_layout Plain Layout
34624 \begin_layout Standard
34625 If you want to prevent this for a certain reason, set the box height to
34630 \begin_layout Standard
34640 \begin_layout Standard
34641 This is a text line with the word
34645 \begin_layout Plain Layout
34657 \begin_inset Quotes eld
34661 \begin_inset Quotes erd
34668 \begin_layout Plain Layout
34676 \begin_inset Newline newline
34680 \begin_inset Newline newline
34683 This is a text line with the word
34687 \begin_layout Plain Layout
34691 raisebox{0.5cm}[0pt]{
34697 \begin_inset Quotes eld
34701 \begin_inset Quotes erd
34708 \begin_layout Plain Layout
34718 \begin_layout Section
34720 \begin_inset CommandInset label
34722 name "sec:Colored-Boxes"
34727 \begin_inset Index idx
34730 \begin_layout Plain Layout
34739 \begin_layout Standard
34740 To color the background of a box just select the color you like in the box
34742 This is for example a box with orange background:
34743 \begin_inset Box Frameless
34753 height_special "totalheight"
34758 backgroundcolor "orange"
34761 \begin_layout Plain Layout
34762 Box with orange background
34770 \begin_layout Standard
34771 If you use the decoration
34774 \begin_inset space ~
34778 \begin_inset space ~
34783 you can set a frame color.
34784 In this case you must also specify a background color (LyX sets white as
34786 Here is an example:
34787 \begin_inset Box Boxed
34797 height_special "totalheight"
34802 backgroundcolor "yellow"
34805 \begin_layout Plain Layout
34806 Box with teal frame color and yellow background color
34814 \begin_layout Standard
34815 \begin_inset VSpace bigskip
34818 Of course you can also have colored text inside a colored box:
34819 \begin_inset Newline newline
34823 \begin_inset Box Boxed
34833 height_special "totalheight"
34838 backgroundcolor "magenta"
34841 \begin_layout Plain Layout
34844 This is colored text within a colored, framed box
34852 \begin_layout Standard
34853 \begin_inset VSpace bigskip
34859 \begin_layout Standard
34860 If you need another color than the predefined ones, you can define your
34861 own color as described in section
34862 \begin_inset space ~
34866 \begin_inset CommandInset ref
34868 reference "sec:Colored-Tables"
34873 To use your own color you must typeset the box by using TeX code:
34876 \begin_layout Standard
34877 Colored boxes without frame are created with the command
34884 It has the following scheme:
34887 \begin_layout Standard
34892 colorbox{color}{box content}
34895 \begin_layout Standard
34896 The box content can also be a box and colored boxes can also be within other
34899 \begin_inset space \thinspace{}
34903 \begin_inset space \space{}
34906 a darkgreen background for a word, insert the command
34909 \begin_layout Standard
34914 colorbox{darkgreen}{
34917 \begin_layout Standard
34918 before the word in \SpecialChar TeX
34920 After the word insert a closing brace
34921 \begin_inset Quotes eld
34929 \begin_inset Quotes erd
34932 in \SpecialChar TeX
34934 \begin_inset Newline newline
34937 This is the result:
34940 \begin_layout Standard
34941 This is a line where the word
34945 \begin_layout Plain Layout
34949 colorbox{darkgreen}{
34955 \begin_inset Quotes eld
34959 \begin_inset Quotes erd
34966 \begin_layout Plain Layout
34973 has a darkgreen background.
34976 \begin_layout Standard
34977 Framed, colored boxes are created with the command
34984 It has the following scheme:
34987 \begin_layout Standard
34992 fcolorbox{frame color}{box color}{box content}
34995 \begin_layout Section
34996 Rotated and Scaled Boxes
34999 \begin_layout Standard
35000 To use the boxes described in this section, the module
35004 must be loaded in the document settings.
35007 \begin_layout Standard
35008 \begin_inset Note Greyedout
35011 \begin_layout Plain Layout
35016 Not all DVI viewers are able to display rotated or scaled material.
35024 \begin_layout Standard
35025 \begin_inset Note Greyedout
35028 \begin_layout Plain Layout
35033 Floats are not allowed inside a rotated or scaled box.
35041 \begin_layout Subsection
35043 \begin_inset Index idx
35046 \begin_layout Plain Layout
35053 \begin_inset Index idx
35056 \begin_layout Plain Layout
35065 \begin_layout Standard
35066 To rotate material, you can put it into a
35071 Such a box is inserted via the menu
35073 Insert\SpecialChar menuseparator
35074 Custom Insets\SpecialChar menuseparator
35080 \begin_layout Standard
35081 The rotation origin can be specified via the inset
35087 Insert\SpecialChar menuseparator
35095 The following positions are possible:
35115 (top), along with meaningful combinations of the four base positions.
35120 means that the rotation origin is at the top left corner of the box.
35121 When no rotation origin is specified, the position
35126 The rotation angle is a number that can be negative that specifies the
35128 The rotation direction is counterclockwise.
35131 \begin_layout Standard
35132 In the following example
35136 was inserted to the
35144 was inserted to the
35151 \begin_layout Standard
35153 \begin_inset Flex Rotatebox
35156 \begin_layout Plain Layout
35157 \begin_inset Argument 1
35160 \begin_layout Plain Layout
35167 \begin_inset Argument 2
35170 \begin_layout Plain Layout
35184 \begin_layout Standard
35185 The box content can also be another box or an inline formula:
35188 \begin_layout Standard
35190 \begin_inset Flex Rotatebox
35193 \begin_layout Plain Layout
35194 \begin_inset Argument 1
35197 \begin_layout Plain Layout
35204 \begin_inset Argument 2
35207 \begin_layout Plain Layout
35214 \begin_inset Box Doublebox
35224 height_special "totalheight"
35229 backgroundcolor "none"
35232 \begin_layout Plain Layout
35244 \begin_inset Flex Rotatebox
35247 \begin_layout Plain Layout
35248 \begin_inset Argument 1
35251 \begin_layout Plain Layout
35258 \begin_inset Argument 2
35261 \begin_layout Plain Layout
35268 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35279 \begin_layout Standard
35280 or an image or table:
35283 \begin_layout Standard
35285 \begin_inset Flex Rotatebox
35288 \begin_layout Plain Layout
35289 \begin_inset Argument 1
35292 \begin_layout Plain Layout
35299 \begin_inset Argument 2
35302 \begin_layout Plain Layout
35309 \begin_inset Graphics
35310 filename clipart/platypus.eps
35321 with a rotated image
35322 \begin_inset Flex Rotatebox
35325 \begin_layout Plain Layout
35326 \begin_inset Argument 2
35329 \begin_layout Plain Layout
35336 \begin_inset Tabular
35337 <lyxtabular version="3" rows="2" columns="2">
35338 <features tabularvalignment="middle">
35339 <column alignment="center" valignment="top">
35340 <column alignment="center" valignment="top">
35342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35345 \begin_layout Plain Layout
35351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35354 \begin_layout Plain Layout
35362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35365 \begin_layout Plain Layout
35371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35374 \begin_layout Plain Layout
35391 \begin_inset Index idx
35394 \begin_layout Plain Layout
35401 \begin_inset Index idx
35404 \begin_layout Plain Layout
35405 Table Customization ! Rotating
35413 \begin_layout Standard
35414 \begin_inset Note Greyedout
35417 \begin_layout Plain Layout
35426 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35428 errors when viewing/exporting the document.
35436 \begin_layout Subsection
35438 \begin_inset Index idx
35441 \begin_layout Plain Layout
35448 \begin_inset Index idx
35451 \begin_layout Plain Layout
35460 \begin_layout Standard
35461 To scale material put it into a
35466 Such a box is inserted via the menu
35468 Insert\SpecialChar menuseparator
35469 Custom Insets\SpecialChar menuseparator
35475 \begin_layout Standard
35480 inset has the mandatory inset
35484 and the optional inset
35488 (inserted via the menu
35490 Insert\SpecialChar menuseparator
35494 Input there the horizontal and vertical scale factor, respectively.
35499 inset is used, the horizontal factor will also be used as the vertical
35503 \begin_layout Standard
35504 To get for example the double text size, compared to the document text size,
35515 \begin_inset Flex Scalebox
35518 \begin_layout Plain Layout
35519 \begin_inset Argument 1
35522 \begin_layout Plain Layout
35536 \begin_layout Standard
35554 \begin_inset Flex Scalebox
35557 \begin_layout Plain Layout
35558 \begin_inset Argument 1
35561 \begin_layout Plain Layout
35568 \begin_inset Argument 2
35571 \begin_layout Plain Layout
35585 \begin_layout Standard
35586 If the scaling factor is negative, the box content will be mirrored.
35603 can be used to create mirror writing:
35604 \begin_inset Flex Scalebox
35607 \begin_layout Plain Layout
35608 \begin_inset Argument 1
35611 \begin_layout Plain Layout
35618 \begin_inset Argument 2
35621 \begin_layout Plain Layout
35635 \begin_layout Standard
35653 \begin_inset Flex Scalebox
35656 \begin_layout Plain Layout
35657 \begin_inset Argument 1
35660 \begin_layout Plain Layout
35667 \begin_inset Argument 2
35670 \begin_layout Plain Layout
35684 \begin_layout Standard
35691 Insert\SpecialChar menuseparator
35692 Custom Insets\SpecialChar menuseparator
35718 \begin_layout Standard
35719 \begin_inset Note Greyedout
35722 \begin_layout Plain Layout
35731 inset is empty or contains other characters than numbers you will get LaTeX
35732 errors when viewing/exporting the document.
35740 \begin_layout Standard
35741 \begin_inset VSpace bigskip
35750 Insert\SpecialChar menuseparator
35751 Custom Insets\SpecialChar menuseparator
35754 ) is used to scale the content to a defined width and height.
35759 inset has the mandatory inset
35763 and the optional inset
35767 (inserted via the menu
35769 Insert\SpecialChar menuseparator
35773 Input there the width and height, respectively, as value with a unit.
35775 \begin_inset CommandInset ref
35777 reference "tab:Units"
35781 lists the possible units.
35782 If there is an exclamation mark
35786 in of of the two insets, the size is set so that the aspect ratio of the
35787 box content is kept.
35792 inset is used an exclamation mark will internally be used for the height.
35795 \begin_layout Standard
35813 \begin_inset Flex Resizebox
35816 \begin_layout Plain Layout
35817 \begin_inset Argument 1
35820 \begin_layout Plain Layout
35827 \begin_inset Argument 2
35830 \begin_layout Plain Layout
35842 \begin_inset Newline newline
35866 \begin_inset Flex Resizebox
35869 \begin_layout Plain Layout
35870 \begin_inset Argument 1
35873 \begin_layout Plain Layout
35880 \begin_inset Argument 2
35883 \begin_layout Plain Layout
35897 \begin_layout Standard
35898 \begin_inset Note Greyedout
35901 \begin_layout Plain Layout
35910 inset is empty or contains an invalid unit you will get LaTeX errors when
35911 viewing/exporting the document.
35919 \begin_layout Standard
35920 \begin_inset VSpace bigskip
35926 \begin_layout Standard
35927 The boxes can be combined in any order.
35936 which is in turn inside a
35943 \begin_layout Standard
35946 \begin_inset Flex Rotatebox
35949 \begin_layout Plain Layout
35950 \begin_inset Argument 1
35953 \begin_layout Plain Layout
35960 \begin_inset Argument 2
35963 \begin_layout Plain Layout
35970 \begin_inset Flex Resizebox
35973 \begin_layout Plain Layout
35974 \begin_inset Argument 1
35977 \begin_layout Plain Layout
35984 \begin_inset Flex Reflectbox
35987 \begin_layout Plain Layout
36006 \begin_layout Standard
36008 Images, tables, and inline formulas are allowed as box content:
36011 \begin_layout Standard
36014 \begin_inset Flex Resizebox
36017 \begin_layout Plain Layout
36018 \begin_inset Argument 1
36021 \begin_layout Plain Layout
36028 \begin_inset Flex Reflectbox
36031 \begin_layout Plain Layout
36032 \begin_inset Graphics
36033 filename clipart/platypus.eps
36050 \begin_inset Flex Resizebox
36053 \begin_layout Plain Layout
36054 \begin_inset Argument 1
36057 \begin_layout Plain Layout
36064 \begin_inset Flex Reflectbox
36067 \begin_layout Plain Layout
36068 \begin_inset Tabular
36069 <lyxtabular version="3" rows="2" columns="2">
36070 <features tabularvalignment="middle">
36071 <column alignment="center" valignment="top">
36072 <column alignment="center" valignment="top">
36074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36077 \begin_layout Plain Layout
36083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36086 \begin_layout Plain Layout
36094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36097 \begin_layout Plain Layout
36103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36106 \begin_layout Plain Layout
36128 \begin_inset Flex Resizebox
36131 \begin_layout Plain Layout
36132 \begin_inset Argument 1
36135 \begin_layout Plain Layout
36142 \begin_inset Flex Reflectbox
36145 \begin_layout Plain Layout
36146 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36160 \begin_inset Index idx
36163 \begin_layout Plain Layout
36170 \begin_inset Index idx
36173 \begin_layout Plain Layout
36174 Table Customization ! Scaling
36182 \begin_layout Standard
36183 When the global formula style
36187 is used in the document
36191 \begin_layout Plain Layout
36193 \begin_inset Quotes eld
36197 \begin_inset Quotes erd
36200 is added to the document class options.
36205 , display style formulas can also be scaled.
36208 \begin_layout Chapter
36209 Objects Surrounded by Text
36210 \begin_inset Index idx
36213 \begin_layout Plain Layout
36222 \begin_layout Section
36224 \begin_inset CommandInset label
36226 name "sec:Wrap-Floats"
36231 \begin_inset Index idx
36234 \begin_layout Plain Layout
36235 Floats ! Wrap Floats
36241 \begin_inset Index idx
36244 \begin_layout Plain Layout
36245 Surrounded by text ! Wrap Floats
36253 \begin_layout Standard
36254 \begin_inset Wrap figure
36261 \begin_layout Plain Layout
36262 \begin_inset Graphics
36263 filename clipart/mobius.eps
36265 scaleBeforeRotation
36266 rotateOrigin center
36273 \begin_layout Plain Layout
36274 \begin_inset Caption Standard
36276 \begin_layout Plain Layout
36277 \begin_inset CommandInset label
36279 name "fig:This-is-a"
36283 This is a figure wrap float.
36293 This float type is used if you want to wrap text around a figure or table
36294 so that it only occupies some fraction of the column width.
36295 It can be inserted using the menu
36297 Insert\SpecialChar menuseparator
36298 Floats\SpecialChar menuseparator
36300 \begin_inset space ~
36304 \begin_inset space ~
36312 \begin_inset space ~
36316 \begin_inset space ~
36321 if the \SpecialChar LaTeX
36327 \begin_inset Index idx
36330 \begin_layout Plain Layout
36332 -packages ! wrapfig
36341 \begin_layout Plain Layout
36342 Installing a \SpecialChar LaTeX
36343 -package is explained it in the
36347 \begin_inset space ~
36357 The settings of the float can be modified by right-clicking on the float
36359 The mandatory settings are the float
36372 that specifies how much the float is set into the paragraph
36373 \begin_inset space \thinspace{}
36377 \begin_inset space \thinspace{}
36380 page margin, and the
36383 \begin_inset space ~
36388 that specifies how many text lines the float will approximately need.
36389 The line span is often hard to approximate; so it is better only to use
36390 it when you encounter float placement problems.
36391 You can furthermore decide if \SpecialChar LaTeX
36392 is allowed to let the float float within
36393 the paragraph or to surrounding paragraphs.
36395 \begin_inset space ~
36399 \begin_inset CommandInset ref
36401 reference "fig:This-is-a"
36405 is an example text wrap float with a width of 40
36406 \begin_inset space \thinspace{}
36410 \begin_inset space \thinspace{}
36413 cm overhang, set to the left.
36416 \begin_layout Standard
36417 \begin_inset Note Greyedout
36420 \begin_layout Plain Layout
36426 \begin_inset space ~
36429 wrap float floats are fragile! E.
36430 \begin_inset space \thinspace{}
36434 \begin_inset space \space{}
36437 having a figure too close to the bottom of the page can mess things up in
36438 such a way that the float does not appear in the output or that it is placed
36439 over some other text.
36447 \begin_layout Standard
36448 In general, the following applies for wrap floats:
36451 \begin_layout Itemize
36452 They should not be placed in paragraphs that run over a page break.
36453 That means that wrap floats are better inserted in their exact place when
36454 the document is almost finished and you are able to estimate where page
36455 breaks will appear.
36458 \begin_layout Itemize
36459 They should either be placed in their own paragraph before the paragraph
36460 where they should wrap into or within a paragraph.
36463 \begin_layout Itemize
36464 In consecutive paragraphs they may cause troubles, so ensure that there
36465 is a text paragraph between them as separator.
36468 \begin_layout Itemize
36469 They are not allowed in section headings or tables.
36472 \begin_layout Itemize
36473 Their numbering and referencing works as described in chap.
36474 \begin_inset space \thinspace{}
36478 \begin_inset CommandInset ref
36480 reference "chap:Floats"
36487 \begin_layout Section
36488 Surrounded Fixed Objects
36489 \begin_inset Index idx
36492 \begin_layout Plain Layout
36493 Surrounded by text ! Fixed objects
36501 \begin_layout Standard
36502 The wrap floats described in sec.
36503 \begin_inset space \thinspace{}
36507 \begin_inset CommandInset ref
36509 reference "sec:Wrap-Floats"
36513 have these positions in the paragraph:
36516 \begin_layout Standard
36519 \begin_inset Tabular
36520 <lyxtabular version="3" rows="2" columns="2">
36521 <features tabularvalignment="middle">
36522 <column alignment="center" valignment="top">
36523 <column alignment="center" valignment="top">
36525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36528 \begin_layout Plain Layout
36531 arg "dialog-show-new-inset graphics"
36539 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36542 \begin_layout Plain Layout
36550 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36553 \begin_layout Plain Layout
36559 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36562 \begin_layout Plain Layout
36574 \begin_inset Tabular
36575 <lyxtabular version="3" rows="2" columns="2">
36576 <features tabularvalignment="middle">
36577 <column alignment="center" valignment="top">
36578 <column alignment="center" valignment="top">
36580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36583 \begin_layout Plain Layout
36589 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36592 \begin_layout Plain Layout
36595 arg "dialog-show-new-inset graphics"
36605 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36608 \begin_layout Plain Layout
36614 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36617 \begin_layout Plain Layout
36631 \begin_layout Standard
36632 To get an object exactly at the position where it is inserted, for example
36633 to get one of these positions:
36634 \begin_inset VSpace defskip
36640 \begin_layout Standard
36643 \begin_inset Tabular
36644 <lyxtabular version="3" rows="2" columns="2">
36645 <features tabularvalignment="middle">
36646 <column alignment="center" valignment="top">
36647 <column alignment="center" valignment="top">
36649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36652 \begin_layout Plain Layout
36658 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36661 \begin_layout Plain Layout
36669 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36672 \begin_layout Plain Layout
36675 arg "dialog-show-new-inset graphics"
36683 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36686 \begin_layout Plain Layout
36698 \begin_inset Tabular
36699 <lyxtabular version="3" rows="2" columns="2">
36700 <features tabularvalignment="middle">
36701 <column alignment="center" valignment="top">
36702 <column alignment="center" valignment="top">
36704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36707 \begin_layout Plain Layout
36713 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36716 \begin_layout Plain Layout
36724 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36727 \begin_layout Plain Layout
36733 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36736 \begin_layout Plain Layout
36739 arg "dialog-show-new-inset graphics"
36753 \begin_inset Tabular
36754 <lyxtabular version="3" rows="2" columns="3">
36755 <features tabularvalignment="middle">
36756 <column alignment="center" valignment="top">
36757 <column alignment="center" valignment="top">
36758 <column alignment="center" valignment="top">
36760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36763 \begin_layout Plain Layout
36769 <cell alignment="center" valignment="top" topline="true" usebox="none">
36772 \begin_layout Plain Layout
36775 arg "dialog-show-new-inset graphics"
36783 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36786 \begin_layout Plain Layout
36794 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36797 \begin_layout Plain Layout
36803 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36806 \begin_layout Plain Layout
36812 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36815 \begin_layout Plain Layout
36827 \begin_inset Tabular
36828 <lyxtabular version="3" rows="2" columns="3">
36829 <features tabularvalignment="middle">
36830 <column alignment="center" valignment="top">
36831 <column alignment="center" valignment="top">
36832 <column alignment="center" valignment="top">
36834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36837 \begin_layout Plain Layout
36843 <cell alignment="center" valignment="top" topline="true" usebox="none">
36846 \begin_layout Plain Layout
36852 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36855 \begin_layout Plain Layout
36863 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36866 \begin_layout Plain Layout
36872 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36875 \begin_layout Plain Layout
36878 arg "dialog-show-new-inset graphics"
36886 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36889 \begin_layout Plain Layout
36903 \begin_layout Standard
36906 \begin_inset Tabular
36907 <lyxtabular version="3" rows="3" columns="2">
36908 <features tabularvalignment="middle">
36909 <column alignment="center" valignment="top">
36910 <column alignment="center" valignment="top">
36912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36915 \begin_layout Plain Layout
36921 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36924 \begin_layout Plain Layout
36932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36935 \begin_layout Plain Layout
36938 arg "dialog-show-new-inset graphics"
36946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36949 \begin_layout Plain Layout
36957 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36960 \begin_layout Plain Layout
36966 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36969 \begin_layout Plain Layout
36981 \begin_inset Tabular
36982 <lyxtabular version="3" rows="3" columns="3">
36983 <features tabularvalignment="middle">
36984 <column alignment="center" valignment="top">
36985 <column alignment="center" valignment="top">
36986 <column alignment="center" valignment="top">
36988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36991 \begin_layout Plain Layout
36997 <cell alignment="center" valignment="top" topline="true" usebox="none">
37000 \begin_layout Plain Layout
37006 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37009 \begin_layout Plain Layout
37017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37020 \begin_layout Plain Layout
37026 <cell alignment="center" valignment="top" usebox="none">
37029 \begin_layout Plain Layout
37032 arg "dialog-show-new-inset graphics"
37040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37043 \begin_layout Plain Layout
37051 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37054 \begin_layout Plain Layout
37060 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37063 \begin_layout Plain Layout
37069 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37072 \begin_layout Plain Layout
37084 \begin_inset Tabular
37085 <lyxtabular version="3" rows="3" columns="2">
37086 <features tabularvalignment="middle">
37087 <column alignment="center" valignment="top">
37088 <column alignment="center" valignment="top">
37090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37093 \begin_layout Plain Layout
37099 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37102 \begin_layout Plain Layout
37110 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37113 \begin_layout Plain Layout
37119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37122 \begin_layout Plain Layout
37125 arg "dialog-show-new-inset graphics"
37135 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37138 \begin_layout Plain Layout
37144 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37147 \begin_layout Plain Layout
37161 \begin_layout Standard
37163 you can use the \SpecialChar LaTeX
37169 \begin_inset Index idx
37172 \begin_layout Plain Layout
37174 -packages ! picinpar
37180 Here is an example:
37183 \begin_layout Standard
37187 \begin_layout Plain Layout
37197 \begin_inset Note Note
37200 \begin_layout Plain Layout
37201 The following section will only be displayed when the \SpecialChar LaTeX
37214 \begin_layout Standard
37218 \begin_layout Plain Layout
37222 begin{window}[2,c,{
37228 \begin_inset Graphics
37229 filename clipart/mobius.eps
37232 scaleBeforeRotation
37233 rotateOrigin center
37241 \begin_layout Plain Layout
37246 \begin_layout Plain Layout
37255 It was in the spring of the year 1894 that all London was interested, and
37256 the fashionable world dismayed, by the murder of the Honourable Ronald
37257 Adair under most unusual and inexplicable circumstances.
37258 The public has already learned those particulars of the crime which
37264 \begin_layout Plain Layout
37275 came out in the police investigation, but a good deal was suppressed upon
37276 that occasion, since the case for the prosecution was so overwhelmingly
37277 strong that it was not necessary to bring forward all the facts.
37278 Only now, at the end of nearly ten years, am I allowed to supply those
37279 missing links which make up the whole of that remarkable chain.
37285 \begin_layout Plain Layout
37297 \begin_layout Standard
37301 \begin_layout Plain Layout
37310 Footnote of the paragraph with the fixed object.
37314 \begin_layout Plain Layout
37324 \begin_layout Standard
37325 Surrounded fixed objects are used to let text float around them, at which
37326 the object's position in the paragraph can be determined by the number
37328 In contrary to floats is it not possible to have a numbered caption.
37331 \begin_layout Standard
37332 A fixed object is inserted by adding the command
37335 \begin_layout Standard
37340 begin{window}[2,c,{
37343 \begin_layout Standard
37344 as \SpecialChar TeX
37345 Code at the beginning of the paragraph.
37346 The first parameter in the bracket, here '2', defines the number of lines
37347 above the object, the second, here 'c', the position of the object.
37348 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37349 Behind the command you insert the object.
37350 In this example an image with a width of 40
37351 \begin_inset space \thinspace{}
37354 % of the text column width was inserted.
37355 The object can also be a table, a box or an equation.
37356 Behind the object the command
37359 \begin_layout Standard
37362 },description text]
37363 \begin_inset Newline newline
37369 \begin_layout Standard
37372 \begin_inset Quotes eld
37380 \begin_inset Quotes erd
37383 is in the second line.
37384 The description text is optional.
37385 The text surrounding the object must be in the same paragraph as the object,
37386 so it must begin directly after the
37391 At the end of the paragraph insert the command:
37394 \begin_layout Standard
37402 \begin_layout Standard
37403 Within a paragraph with a fixed object, you cannot insert footnotes in the
37405 You have to use instead the command
37411 inside the paragraph and outside the command
37417 as described in sec.
37418 \begin_inset space \thinspace{}
37422 \begin_inset CommandInset ref
37424 reference "sec:Footnotes"
37431 \begin_layout Standard
37435 \begin_layout Plain Layout
37445 \begin_inset Note Note
37448 \begin_layout Plain Layout
37449 The following will be displayed when the \SpecialChar LaTeX
37462 \begin_layout Standard
37463 You need to install the \SpecialChar LaTeX
37468 to see the following part of this section in the output.
37471 \begin_layout Standard
37475 \begin_layout Plain Layout
37487 \begin_layout Section
37489 \begin_inset Index idx
37492 \begin_layout Plain Layout
37499 \begin_inset Index idx
37502 \begin_layout Plain Layout
37503 Surrounded by text ! Initials
37511 \begin_layout Standard
37512 To use initials, you must have the \SpecialChar LaTeX
37518 \begin_inset Index idx
37521 \begin_layout Plain Layout
37523 -packages ! lettrine
37528 installed and use the module
37532 in your document (menu
37534 Document\SpecialChar menuseparator
37535 Settings\SpecialChar menuseparator
37539 To insert an initial, use the style
37544 This style has a mandatory and two optional arguments.
37545 The arguments are inserted via the
37550 The mandatory argument
37554 contains the letter(s) that is the initial, the argument
37557 \begin_inset space ~
37561 \begin_inset space ~
37566 contains the rest of the word or text of the initial letter(s).
37571 contains parameters to modify the initial.
37572 For more information about the possible parameters see the documentation
37578 \begin_inset CommandInset citation
37585 The style itself contains the text that is surrounding the initial.
37586 The usual style is hereby that the word whose first letter is the initial,
37594 \begin_layout Standard
37595 Here are some examples:
37598 \begin_layout Standard
37602 \begin_layout Plain Layout
37612 \begin_inset Note Note
37615 \begin_layout Plain Layout
37616 The following section will only be displayed when the \SpecialChar LaTeX
37629 \begin_layout Enumerate
37630 No optional argument, the initial is the letter 'I' in the math font
37631 \begin_inset Formula $\mathfrak{Fraktur}$
37638 \begin_layout Initial
37639 \begin_inset Argument 2
37642 \begin_layout Plain Layout
37643 \begin_inset Formula $\mathfrak{I}$
37652 \begin_inset Argument 3
37655 \begin_layout Plain Layout
37661 was in the spring of the year 1894 that all London was interested, and
37662 the fashionable world dismayed, by the murder of the Honourable Ronald
37663 Adair under most unusual and inexplicable circumstances.
37664 The public has already learned those particulars of the crime which came
37665 out in the police investigation, but a good deal was suppressed upon that
37666 occasion, since the case for the prosecution was so overwhelmingly strong
37667 that it was not necessary to bring forward all the facts.
37668 \begin_inset Newpage newpage
37675 \begin_layout Enumerate
37676 Only one line is surrounding the initial, which is formed by two letters
37677 in standard font and no text is printed in small caps:
37681 \begin_layout Initial
37682 \begin_inset Argument 1
37685 \begin_layout Plain Layout
37692 \begin_inset Argument 2
37695 \begin_layout Plain Layout
37701 was in the spring of the year 1894 that all London was interested, and
37702 the fashionable world dismayed, by the murder of the Honourable Ronald
37703 Adair under most unusual and inexplicable circumstances.
37704 The public has already learned those particulars of the crime which came
37705 out in the police investigation, but a good deal was suppressed upon that
37706 occasion, since the case for the prosecution was so overwhelmingly strong
37707 that it was not necessary to bring forward all the facts.
37711 \begin_layout Enumerate
37712 Magenta, hanging initial over 3
37713 \begin_inset space ~
37716 lines in the math font
37717 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37721 \begin_inset Quotes eld
37724 t was in the spring
37725 \begin_inset Quotes erd
37732 ; to color the initial, you must insert this command before the initial:
37733 \begin_inset Newline newline
37747 \begin_inset Newline newline
37755 \begin_inset Quotes eld
37759 \begin_inset Quotes erd
37763 \begin_inset Quotes eld
37767 \begin_inset Quotes erd
37771 \begin_inset Quotes eld
37775 \begin_inset Quotes erd
37779 \begin_inset Quotes eld
37783 \begin_inset Quotes erd
37787 \begin_inset Quotes eld
37791 \begin_inset Quotes erd
37795 \begin_inset Quotes eld
37799 \begin_inset Quotes erd
37803 \begin_inset Quotes eld
37807 \begin_inset Quotes erd
37811 \begin_inset Quotes eld
37815 \begin_inset Quotes erd
37818 , and add this command to the document preamble:
37819 \begin_inset Newline newline
37826 @ifundefined{textcolor}
37827 \begin_inset Newline newline
37831 \begin_inset space ~
37836 usepackage{color}}{}
37840 \begin_layout Standard
37844 \begin_layout Plain Layout
37858 \begin_inset Note Note
37861 \begin_layout Plain Layout
37862 makes the initial magenta
37870 \begin_layout Initial
37871 \begin_inset Argument 1
37874 \begin_layout Plain Layout
37875 lines=3, lhang=0.33, loversize=0.25
37881 \begin_inset Argument 2
37884 \begin_layout Plain Layout
37885 \begin_inset Formula $\mathcal{I}$
37894 \begin_inset Argument 3
37897 \begin_layout Plain Layout
37898 t was in the spring
37903 of the year 1894 that all London was interested, and the fashionable world
37904 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37905 and inexplicable circumstances.
37906 The public has already learned those particulars of the crime which came
37907 out in the police investigation, but a good deal was suppressed upon that
37908 occasion, since the case for the prosecution was so overwhelmingly strong
37909 that it was not necessary to bring forward all the facts.
37913 \begin_layout Standard
37917 \begin_layout Plain Layout
37927 \begin_inset Note Note
37930 \begin_layout Plain Layout
37931 The following will be displayed when the \SpecialChar LaTeX
37944 \begin_layout Standard
37945 You need to install the \SpecialChar LaTeX
37950 to see the following part of this section in the output.
37953 \begin_layout Standard
37957 \begin_layout Plain Layout
37969 \begin_layout Chapter
37970 External Document Parts
37971 \begin_inset Index idx
37974 \begin_layout Plain Layout
37975 External Document Parts
37983 \begin_layout Standard
37986 Insert\SpecialChar menuseparator
37989 you can insert external material into your document.
37993 \begin_layout Description
37995 \begin_inset space ~
37998 Document Another \SpecialChar LyX
37999 document; its content is directly inserted to your document.
38002 \begin_layout Description
38004 \begin_inset space ~
38007 Text A text document; each line is inserted in your document as a separate
38011 \begin_layout Description
38013 \begin_inset space ~
38017 \begin_inset space ~
38021 \begin_inset space ~
38024 Lines A text document; text lines are inserted in your document continuously
38025 but an empty text line creates a new paragraph.
38028 \begin_layout Description
38030 \begin_inset space ~
38033 Material Files in various formats.
38036 \begin_layout Description
38038 \begin_inset space ~
38041 Document \SpecialChar LyX
38042 or \SpecialChar LaTeX
38046 \begin_layout Section
38048 \begin_inset Index idx
38051 \begin_layout Plain Layout
38052 External Document Parts ! External Material
38060 \begin_layout Standard
38061 The external material feature allows you to insert files into your document
38062 without converting them to a format that can be read by the document output
38065 takes care of the necessary conversions.
38066 This is similar to images that can be inserted in various image formats
38067 in \SpecialChar LyX
38069 When you have enabled Instant Preview in \SpecialChar LyX
38070 's preferences under
38073 \begin_inset space ~
38077 \begin_inset space ~
38080 feel\SpecialChar menuseparator
38083 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38087 \begin_layout Standard
38088 External material can be inserted via the
38092 dialog that is accessible with the menu
38094 Insert\SpecialChar menuseparator
38095 File\SpecialChar menuseparator
38097 \begin_inset space ~
38103 Currently the following file types (
38110 \begin_layout Description
38112 \begin_inset space ~
38115 diagram This template supports chess position diagrams made with the program
38119 \begin_inset CommandInset href
38122 target "http://en.wikipedia.org/wiki/XBoard"
38131 \begin_layout Description
38133 \begin_inset space ~
38136 diagram This template supports diagrams created with the program
38139 \begin_inset CommandInset href
38142 target "http://en.wikipedia.org/wiki/Dia_(software)"
38151 \begin_layout Description
38152 Spreadsheet With this template you can insert spreadsheets
38153 \begin_inset space \thinspace{}
38157 \begin_inset space \thinspace{}
38160 tables in the format of
38163 \begin_inset CommandInset href
38166 target "http://en.wikipedia.org/wiki/Gnumeric"
38173 \begin_inset CommandInset href
38175 name "OpenDocument"
38176 target "http://en.wikipedia.org/wiki/OpenDocument"
38181 \begin_inset CommandInset href
38183 name "Microsoft Office XML"
38184 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38189 \begin_inset CommandInset href
38191 name "Office Open XML"
38192 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38197 For this feature \SpecialChar LyX
38198 must have found the program
38202 during its configuration.
38203 This program is part of Gnumeric, so that you must have Gnumeric installed,
38204 also if you don't have tables in the Gnumeric format.
38205 For examples and possible limitations have a look at \SpecialChar LyX
38213 \begin_layout Description
38215 \begin_inset space ~
38219 \begin_inset space ~
38222 music This template is used for music notation typeset with the program
38223 \begin_inset Newline linebreak
38229 \begin_inset CommandInset href
38232 target "http://en.wikipedia.org/wiki/LilyPond"
38239 For \SpecialChar LyX
38240 's extended support for LilyPond have a look at \SpecialChar LyX
38248 \begin_layout Description
38250 \begin_inset space ~
38253 pages With this template you can insert PDF documents to your document.
38254 To specify the range of pages that should be included, use the option
38264 LaTeX and LyX options
38267 The argument of this option is a comma separated list, containing page
38268 numbers (insert as option
38272 ), ranges of page numbers (
38276 ) or any combination.
38277 To insert empty pages use {}.
38279 \begin_inset space \thinspace{}
38283 \begin_inset space ~
38288 pages={3,{},8-11,15}
38290 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38291 Page ranges are specified in the syntax
38300 This selects all pages from
38313 defaults to the first page; omitting
38317 defaults to the last page of the document.
38318 The last page can also be selected with the keyword
38323 (This is only permitted in a page range.) So
38327 will insert all pages of the document and
38331 will insert all pages in reverse order.
38332 If the pages option is not specified, only the first page of the PDF is
38334 \begin_inset Newline newline
38341 inserts the pages with their original size, if this option is not given,
38342 the pages will be resized to fith the width of the page of your document.
38347 you can specify the width and height of the input pages and their rotation.
38348 If another width than 100
38349 \begin_inset space \thinspace{}
38352 Scale% is used, the option
38356 will be overwritten.
38357 For more info and possible options, have a look into the documentation
38358 of the \SpecialChar LaTeX
38364 \begin_inset CommandInset citation
38371 \begin_inset Index idx
38374 \begin_layout Plain Layout
38376 -packages ! pdfpages
38382 \begin_inset Newline newline
38385 To use this template in a
38389 presentation you need to first insert an
38393 environment and in a subsequent paragraph a \SpecialChar TeX
38394 Code box containing the command
38399 setbeamertemplate{background canvas}{}
38402 Then you can insert as many paragraphs containing the PDFPages template
38404 Behind the included PDF pages you can resume the Beamer presentation by
38405 beginning a new frame or by starting a new section.
38406 To avoid stray blank pages prior to the PDF pages, make sure to use the
38411 alignment for the paragraph containing the template.
38412 \begin_inset Newline newline
38415 Here is an included PDF which is rotated by -5°:
38416 \begin_inset External
38418 filename clipart/Abstract.pdf
38419 extra LaTeX "noautoscale, pages=-"
38421 rotateOrigin bottomleft
38428 \begin_layout Description
38430 \begin_inset space ~
38433 image This can be used for bitmap images.
38434 The image can be treated in the
38438 dialog like the images that are usually included via the
38442 dialog as described in section
38443 \begin_inset space ~
38447 \begin_inset CommandInset ref
38449 reference "sec:Graphics-Dialog"
38454 Here is an inserted raster image:
38455 \begin_inset External
38456 template RasterImage
38457 filename clipart/ToolbarEnvBox.png
38464 \begin_layout Description
38466 \begin_inset space ~
38469 graphics This can be used for vector graphics.
38470 The image can be treated in the
38474 dialog like the images that are usually included via the
38478 dialog as described in section
38479 \begin_inset space ~
38483 \begin_inset CommandInset ref
38485 reference "sec:Graphics-Dialog"
38490 Here is an inserted vector graphics:
38491 \begin_inset External
38492 template VectorGraphics
38493 filename clipart/SVG-Drawing.svg
38501 \begin_layout Description
38503 \begin_inset space ~
38506 figure This template supports images created with the program
38509 \begin_inset CommandInset href
38512 target "http://en.wikipedia.org/wiki/Xfig"
38519 \change_inserted 227574939 1473131626
38523 \begin_layout Description
38525 \change_inserted 227574939 1473131628
38527 \begin_inset space ~
38530 figure This experimental template supports
38531 \change_inserted 2047637253 1475533187
38533 \change_inserted 227574939 1473131628
38535 \change_inserted 2047637253 1475533525
38536 that contain text written in \SpecialChar LaTeX
38539 \change_inserted 227574939 1473131628
38541 \change_inserted 2047637253 1475533551
38542 It relies on the PDF/PS+\SpecialChar LaTeX
38544 \change_deleted 2047637253 1475533556
38546 \change_inserted 227574939 1473131628
38548 \begin_inset CommandInset href
38551 target "https://en.wikipedia.org/wiki/Inkscape"
38557 \change_inserted 2047637253 1475534005
38558 As described by the CTAN demonstration package
38566 \begin_layout Quote
38568 \change_inserted 2047637253 1475534064
38572 \begin_inset Quotes eld
38575 PDF+\SpecialChar LaTeX
38577 \begin_inset Quotes erd
38580 option of Inkscape, it is possible to include SVG in documents, in which
38583 This results in uniform text style throughout the document, including text
38584 in images; moreover, \SpecialChar LaTeX
38585 commands may be used in the image’s text, providing
38586 such things as mathematics and references.
38589 \begin_layout Standard
38591 \change_inserted 2047637253 1475534692
38592 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
38595 Of course, you can always embed \SpecialChar LaTeX
38609 into your figure text strings.
38614 documentation package for more information and examples.
38617 \begin_layout Standard
38619 \change_inserted 2047637253 1475534902
38620 It should be noted that while the image takes into account the surrounding
38621 font, its preview in \SpecialChar LyX
38623 Wrapping the external inset in a preview inset gives better results in
38627 \begin_layout Standard
38629 \change_deleted 2047637253 1475534821
38631 \change_inserted 2047637253 1475534913
38633 \change_inserted 227574939 1473131628
38634 works very similarly to Xfig support, except that Inkscape is a more modern
38635 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
38640 \change_inserted 227574939 1473131628
38641 LyX will process the image file in much the same way as it does an Xfig
38642 image, extracting the text into a separate TeX file for the text strings,
38643 and a PDF file for the rest.
38646 \begin_layout Description
38648 \change_inserted 227574939 1473131628
38649 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
38650 with multi-page PDFs, the TeX file will sometimes reference more pages
38651 than the PDF file contains.
38652 This is the version that ships with Ubuntu 16.04.
38653 Its use with LyX can therefore not be recommended, until the bug is fixed
38657 \begin_layout Plain Layout
38659 \change_inserted 227574939 1473131628
38660 A workaround for those who have already SVG figures in their document is,
38661 to manually do the LaTeX+PDF output from Inkscape, edit the
38665 file to remove the erroneous references, and
38671 it directly into LyX, i.e., not use the external-template mechanism:
38674 \begin_layout Plain Layout
38676 \change_inserted 227574939 1473131628
38677 \begin_inset Graphics
38678 filename clipart/workaround.png
38686 \begin_layout Plain Layout
38688 \change_inserted 227574939 1473131628
38689 Here, the child document input inset (
38691 Insert\SpecialChar menuseparator
38692 File\SpecialChar menuseparator
38695 ) was used, which allows you do directly edit the
38699 file in a text editor.
38700 The LaTeX output is based on this edited snippet as re-generation from
38701 the SVG file has been commented out.
38707 \change_deleted 2047637253 1475534230
38711 \begin_layout Standard
38713 \change_deleted 2047637253 1475534225
38714 The reason why we would use this complicated process at all, like in the
38715 case of Xfig, is that it makes the text strings inside the figure of the
38716 same font type and attributes as the surrounding text, which looks so much
38718 With Inkscape, even the
38722 of the font is taken from the surrounding LaTeX document – in Xfig, you
38723 have to set it by hand to be the same.
38724 Of course you can always embed LaTeX modifiers like
38737 into your figure text strings.
38738 \change_inserted 227574939 1473131628
38743 \begin_layout Standard
38744 \begin_inset Float table
38750 \begin_layout Plain Layout
38751 \begin_inset Caption Standard
38753 \begin_layout Plain Layout
38754 \begin_inset CommandInset label
38756 name "tab:Comparison-of-the"
38760 Comparison of the date input methods.
38768 \begin_layout Plain Layout
38770 \begin_inset Tabular
38771 <lyxtabular version="3" rows="4" columns="3">
38772 <features tabularvalignment="middle">
38773 <column alignment="center" valignment="top">
38774 <column alignment="center" valignment="top">
38775 <column alignment="center" valignment="top">
38777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38780 \begin_layout Plain Layout
38786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38789 \begin_layout Plain Layout
38792 Insert\SpecialChar menuseparator
38798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38801 \begin_layout Plain Layout
38813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38816 \begin_layout Plain Layout
38823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38826 \begin_layout Plain Layout
38832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38835 \begin_layout Plain Layout
38836 as \SpecialChar TeX
38844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38847 \begin_layout Plain Layout
38854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38857 \begin_layout Plain Layout
38863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38866 \begin_layout Plain Layout
38874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38877 \begin_layout Plain Layout
38883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38886 \begin_layout Plain Layout
38892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38895 \begin_layout Plain Layout
38914 \begin_layout Standard
38915 When you use the option
38927 dialog, only the path to the inserted file is shown in the output.
38928 \begin_inset Newline newline
38931 External material is displayed in \SpecialChar LyX
38932 either as a box like this:
38933 \begin_inset Graphics
38934 filename clipart/ExternalMaterial.png
38936 scaleBeforeRotation
38940 or as image, depending on the option
38946 LaTeX and LyX options
38951 \begin_layout Standard
38958 manual explains how you can define your own templates.
38961 \begin_layout Section
38963 \begin_inset CommandInset label
38965 name "sec:Child-Documents"
38970 \begin_inset Index idx
38973 \begin_layout Plain Layout
38974 External Document Parts ! Child Documents
38980 \begin_inset Index idx
38983 \begin_layout Plain Layout
38992 \begin_layout Standard
38993 Child documents are used if you have a long document consisting of several
38994 larger parts or sections.
38995 For maintenance it is often useful and sometimes even required to split
38996 the document into several files that can be revised separately.
38997 The different documents are then the so called
38998 \begin_inset Quotes eld
39002 \begin_inset Quotes erd
39005 , and a master document connects them to print the full document or parts
39007 A child document inherits elements from its master, for example the \SpecialChar LaTeX
39009 the bibliography, and labels for cross-references.
39012 \begin_layout Standard
39013 To be able to work on child documents without the need to open their master,
39014 specify in the child document the master in the menu
39016 Document\SpecialChar menuseparator
39017 Settings\SpecialChar menuseparator
39019 \begin_inset space ~
39025 This master document will then be used in the background by \SpecialChar LyX
39027 the child document.
39030 \begin_layout Standard
39031 Included documents are displayed in \SpecialChar LyX
39032 as a box like this:
39033 \begin_inset Graphics
39034 filename clipart/ChildDocument.png
39035 scaleBeforeRotation
39039 To include child documents in a master document use the menu
39041 Insert\SpecialChar menuseparator
39042 File\SpecialChar menuseparator
39044 \begin_inset space ~
39050 A dialog pops up where you can choose between four include methods:
39053 \begin_layout Description
39054 Include You can include \SpecialChar LyX
39055 and \SpecialChar LaTeX
39065 dialog, the included document will be opened in \SpecialChar LyX
39066 in a new file tab so that
39068 \begin_inset Newline newline
39074 \begin_layout Standard
39075 Here is a child document inserted using
39080 \begin_inset CommandInset include
39081 LatexCommand include
39082 filename "DummyDocument1.lyx"
39089 \begin_layout Standard
39090 The section numbering includes the sections of the included files in the
39091 order they are inserted in the master document.
39092 The included example document has for example a subsection that is numbered
39093 as a subsection of this section.
39094 Labels of included documents can be referenced: Subsection
39095 \begin_inset space ~
39099 \begin_inset CommandInset ref
39101 reference "subsec:External-Subsection-1"
39108 \begin_layout Standard
39109 The preamble of the child document is ignored; only the preamble of the
39110 master document is used.
39111 Branches in child documents will be ignored by the master document when
39112 the master document does not have a branch with the same name.
39113 Included documents are inserted starting on a new page and ending with
39117 \begin_layout Standard
39118 \begin_inset Note Greyedout
39121 \begin_layout Plain Layout
39126 If you have included a \SpecialChar LyX
39127 or \SpecialChar LaTeX
39128 file, you are warned when you export/view the
39129 document in case the child document uses another document class than the
39130 master document as this will lead to unexpected outputs.
39138 \begin_layout Description
39139 Input This method is very similar to the Include method.
39140 The differences are:
39144 \begin_layout Itemize
39145 Input files don't start with a new page and don't end with a page break.
39148 \begin_layout Itemize
39149 Input files can be previewed in \SpecialChar LyX
39153 \begin_inset space ~
39158 is enabled in \SpecialChar LyX
39159 's preferences under
39162 \begin_inset space ~
39166 \begin_inset space ~
39169 feel\SpecialChar menuseparator
39175 \begin_layout Itemize
39176 You cannot exclude Input files via the menu
39178 Document\SpecialChar menuseparator
39179 Settings\SpecialChar menuseparator
39186 \begin_layout Standard
39187 Here is a child document inserted using
39192 \begin_inset CommandInset include
39194 filename "DummyDocument2.lyx"
39201 \begin_layout Description
39202 Verbatim With this method any text file can be included.
39203 The file is shown in the output with its source code; no command used in
39204 the text is invoked.
39205 You can use the option
39207 Mark spaces in output
39209 that displays the character
39210 \begin_inset Quotes eld
39217 \begin_layout Plain Layout
39227 \begin_inset Quotes erd
39230 for every space character in the source code.
39231 The difference from the method via the menu
39233 Insert\SpecialChar menuseparator
39234 File\SpecialChar menuseparator
39236 \begin_inset space ~
39241 is that the document content is not shown in \SpecialChar LyX
39245 \begin_layout Standard
39246 Here is a child document inserted as Verbatim:
39247 \begin_inset CommandInset include
39248 LatexCommand verbatiminput
39249 filename "DummyTextDocument.txt"
39254 \begin_inset VSpace bigskip
39257 Here is a child document inserted as Verbatim using the
39259 Mark spaces in output
39262 \begin_inset CommandInset include
39263 LatexCommand verbatiminput*
39264 filename "DummyTextDocument.txt"
39271 \begin_layout Standard
39272 \begin_inset VSpace bigskip
39278 \begin_layout Standard
39279 \begin_inset Note Greyedout
39282 \begin_layout Plain Layout
39287 As you can see in the examples above, the text of the documents included
39292 is not broken at the end of the document lines.
39300 \begin_layout Description
39301 Listings This type is described in chapter
39302 \begin_inset space ~
39306 \begin_inset CommandInset ref
39308 reference "cha:Program-Code-Listings"
39315 \begin_layout Standard
39316 \begin_inset Note Greyedout
39319 \begin_layout Plain Layout
39324 Including the same document twice in a document using different methods
39325 could cause \SpecialChar LaTeX
39334 \begin_layout Standard
39335 If you want to view/export only selected children of your master document,
39336 either because you want to save compiling time or because you want to distribut
39337 e single chapters of the book you are just writing, you can exclude children
39339 This is done via the menu
39341 Document\SpecialChar menuseparator
39342 Settings\SpecialChar menuseparator
39346 You can exclude\SpecialChar breakableslash
39347 include children by double-clicking on the
39351 column of the respective child document in the list (note that this only
39352 works for documents embedded via
39353 \begin_inset Quotes eld
39357 \begin_inset Quotes erd
39361 \begin_inset Quotes eld
39365 \begin_inset Quotes erd
39371 Maintain counters and references
39373 is enabled, \SpecialChar LyX
39374 will assure that all page numbers, references etc.
39375 \begin_inset space ~
39378 are correct as if the whole document was processed.
39379 This is useful if you want the selected sub-documents to look exactly as
39380 in the context of the whole document.
39381 However, \SpecialChar LyX
39382 needs to process the whole document in the background for this
39384 So if you want to save compile time and if counters and references do not
39385 need to be correct, disable this checkbox.
39388 \begin_layout Standard
39389 Alternatively, you can put each included file into a branch.
39393 \begin_layout Plain Layout
39394 Branches are described in section
39398 of the \SpecialChar LyX
39408 By enabling\SpecialChar breakableslash
39409 disabling branches you can decide which included files will
39410 appear in the output.
39411 This has the advantage that it also works with Input'ed sub-documents.
39412 However, counters and references will not be maintained with this approach.
39415 \begin_layout Chapter
39416 Program Code Listings
39417 \begin_inset CommandInset label
39419 name "cha:Program-Code-Listings"
39424 \begin_inset Index idx
39427 \begin_layout Plain Layout
39434 \begin_inset Index idx
39437 \begin_layout Plain Layout
39444 \begin_inset Index idx
39447 \begin_layout Plain Layout
39456 \begin_layout Standard
39457 To include and typeset program code you can use the
39461 inset that can be inserted via the menu
39463 Insert\SpecialChar menuseparator
39467 The \SpecialChar LaTeX
39473 \begin_inset Index idx
39476 \begin_layout Plain Layout
39478 -packages ! listings
39483 provides a powerful and flexible way to insert program source code into
39487 \begin_layout Standard
39488 Right-clicking on a listings inset opens the context menu containing where
39489 you can set the listings format.
39492 \begin_layout Standard
39493 By default, a listing starts a new paragraph in the output.
39494 The placement option
39497 \begin_inset space ~
39502 prints the listing inline like this:
39503 \begin_inset listings
39504 lstparams "language={C++}"
39508 \begin_layout Plain Layout
39516 \begin_inset Newline newline
39523 creates a listings float where you can specify the placement options
39524 \begin_inset Quotes eld
39532 \begin_inset Quotes erd
39536 \begin_inset Quotes eld
39544 \begin_inset Quotes erd
39548 \begin_inset Quotes eld
39556 \begin_inset Quotes erd
39560 \begin_inset Quotes eld
39568 \begin_inset Quotes erd
39571 corresponding to the float placement options described in section
39572 \begin_inset space ~
39576 \begin_inset CommandInset ref
39578 reference "sec:Float-Placement"
39583 The placement options can be mixed and are inserted without any separation,
39585 \begin_inset space \thinspace{}
39589 \begin_inset space \space{}
39593 \begin_inset Quotes eld
39601 \begin_inset Quotes erd
39606 \begin_inset Quotes eld
39610 \begin_inset Quotes erd
39613 has sometimes no effect, but you don't need to use the
39617 option in this case as also non-float listings can have captions and be
39621 \begin_layout Standard
39622 You can add captions to listings with the menu
39624 Insert\SpecialChar menuseparator
39628 Listings can be referenced like floats: Listing
39629 \begin_inset space ~
39633 \begin_inset CommandInset ref
39635 reference "lst:Example-Listing"
39640 A list of listings which contains all listings with captions can be created
39643 Insert\SpecialChar menuseparator
39645 \begin_inset space ~
39649 \begin_inset space ~
39652 TOC\SpecialChar menuseparator
39656 The list entries are the listing caption and the listing number.
39659 \begin_layout Standard
39660 \begin_inset listings
39661 lstparams "language=Python"
39665 \begin_layout Plain Layout
39667 \begin_inset Caption Standard
39669 \begin_layout Plain Layout
39670 \begin_inset CommandInset label
39672 name "lst:Example-Listing"
39676 Example Listing float
39681 # Example listing float
39684 \begin_layout Plain Layout
39689 \begin_layout Plain Layout
39691 'this is a python function'
39694 \begin_layout Plain Layout
39704 \begin_layout Standard
39705 When you have set a programming language in the listings dialog, the keywords
39706 of this language will be recognized and specially typeset in the output.
39707 In the example listings the Python keyword
39708 \begin_inset Quotes eld
39712 \begin_inset Quotes erd
39715 is recognized and printed bold in the output.
39718 \begin_layout Standard
39719 \begin_inset Note Greyedout
39722 \begin_layout Plain Layout
39727 If you don't get bold keywords when using typewriter fonts, your
39731 font probably doesn't provide a bold shape.
39732 In this case select a different one in the menu
39734 Document\SpecialChar menuseparator
39735 Settings\SpecialChar menuseparator
39747 provide bold shapes.)
39755 \begin_layout Standard
39759 \begin_inset space ~
39764 of the listings dialog you can specify the line numbering style.
39765 You can insert a number to specify which lines are numbered in the field
39772 \begin_inset space \thinspace{}
39776 \begin_inset space \space{}
39780 \begin_inset Quotes eld
39784 \begin_inset Quotes erd
39787 , only every 3rd line will be numbered.
39790 \begin_layout Standard
39791 You can furthermore specify a range of lines; only these will then appear
39795 Extended character table
39797 should be used when you use national characters like the German umlauts
39799 \begin_inset Newline newline
39802 Here is an example listing with left line numbering, step
39803 \begin_inset Quotes eld
39807 \begin_inset Quotes erd
39811 \begin_inset Quotes eld
39815 \begin_inset Quotes erd
39819 \begin_inset Quotes eld
39822 Extended character table
39823 \begin_inset Quotes erd
39827 \begin_inset Quotes eld
39831 \begin_inset space ~
39835 \begin_inset space ~
39839 \begin_inset Quotes erd
39843 \begin_inset space \thinspace{}
39847 \begin_inset space \thinspace{}
39853 \begin_layout Standard
39854 \begin_inset listings
39855 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39859 \begin_layout Plain Layout
39864 \begin_layout Plain Layout
39866 'this is a python function'
39869 \begin_layout Plain Layout
39874 \begin_layout Plain Layout
39879 \begin_layout Plain Layout
39881 'This is a German word: Tschüß'
39884 \begin_layout Plain Layout
39889 \begin_layout Plain Layout
39894 \begin_layout Plain Layout
39896 'this is a python function'
39899 \begin_layout Plain Layout
39909 \begin_layout Standard
39910 When you have tabulators in your listing, you can specify the number of
39911 characters that are spanned by a tabulator in the field
39914 \begin_inset space ~
39922 \begin_layout Standard
39923 \begin_inset Note Greyedout
39926 \begin_layout Plain Layout
39931 Due to a bug in the
39935 package the line numbering is shifted by a line by every previous listing.
39936 That's the reason why the lines 2 and 5 are numbered in the above listing
39937 and not the lines 3 and 6.
39945 \begin_layout Standard
39946 \begin_inset VSpace bigskip
39952 \begin_layout Standard
39953 It is also possible to print lines from a file as listing.
39954 To do this, use the menu
39956 Insert\SpecialChar menuseparator
39957 File\SpecialChar menuseparator
39960 and choose the type
39968 \begin_layout Plain Layout
39969 The other child document types are described in section
39970 \begin_inset space ~
39974 \begin_inset CommandInset ref
39976 reference "sec:Child-Documents"
39985 In the child document dialog you can specify the listing parameters in
39987 To show a list of all available parameters, type in a question mark
39988 \begin_inset Quotes eld
39992 \begin_inset Quotes erd
39998 \begin_layout Standard
39999 To reference child document listings, write a label text into the corresponding
40000 field of the child document dialog.
40001 The label can then be referenced using the menu
40003 Insert\SpecialChar menuseparator
40009 \begin_layout Standard
40011 \begin_inset space ~
40015 \begin_inset CommandInset ref
40017 reference "lst:file-listing"
40021 is an example for a listing of a file; there the lines 10
40022 \begin_inset space \thinspace{}
40026 \begin_inset space \thinspace{}
40029 15 of this \SpecialChar LyX
40033 \begin_layout Standard
40034 \begin_inset CommandInset include
40035 LatexCommand lstinputlisting
40036 filename "EmbeddedObjects.lyx"
40037 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40044 \begin_layout Standard
40045 \begin_inset VSpace bigskip
40051 \begin_layout Standard
40052 Inserting a formula into a listing can be done the following way:
40055 \begin_layout Enumerate
40056 Open the listings dialog and add
40057 \begin_inset Newline newline
40065 \begin_inset Newline newline
40068 to the field of the
40075 \begin_layout Enumerate
40076 Create a formula outside the listing
40079 \begin_layout Enumerate
40080 Copy the content of the formula (not the formula inset) to the clipboard
40090 \begin_layout Enumerate
40091 In the listing write
40092 \begin_inset Quotes eld
40100 \begin_inset Quotes erd
40103 and copy from the clipboard between the dollar-signs (shortcut
40112 \begin_layout Standard
40113 \begin_inset listings
40114 lstparams "language=Python,mathescape=true"
40118 \begin_layout Plain Layout
40120 \begin_inset Caption Standard
40122 \begin_layout Plain Layout
40123 Example Listing float containing a formula
40128 # Example listing float
40131 \begin_layout Plain Layout
40136 \begin_layout Plain Layout
40149 \begin_layout Plain Layout
40159 \begin_layout Standard
40160 \begin_inset VSpace bigskip
40166 \begin_layout Standard
40167 Global listings settings can be set in the
40169 Document\SpecialChar menuseparator
40170 Settings\SpecialChar menuseparator
40174 To get there a list of available options, type in a question mark
40175 \begin_inset Quotes eld
40179 \begin_inset Quotes erd
40185 \begin_layout Standard
40186 For more information about the
40190 package, we refer to its documentation
40191 \begin_inset CommandInset citation
40200 \begin_layout Standard
40201 \begin_inset Newpage newpage
40207 \begin_layout Chapter
40209 Units available in \SpecialChar LyX
40211 \begin_inset Index idx
40214 \begin_layout Plain Layout
40221 \begin_inset CommandInset label
40223 name "cha:Units-available-in"
40230 \begin_layout Standard
40231 To understand the units described in this documentation, Table
40232 \begin_inset space ~
40236 \begin_inset CommandInset ref
40238 reference "tab:Units"
40242 explains all units available in \SpecialChar LyX
40246 \begin_layout Standard
40247 \begin_inset Float table
40253 \begin_layout Plain Layout
40254 \begin_inset Caption Standard
40256 \begin_layout Plain Layout
40257 \begin_inset CommandInset label
40271 \begin_layout Plain Layout
40272 \begin_inset VSpace medskip
40278 \begin_layout Plain Layout
40280 \begin_inset Tabular
40281 <lyxtabular version="3" rows="20" columns="3">
40282 <features tabularvalignment="middle">
40283 <column alignment="center" valignment="top">
40284 <column alignment="center" valignment="top">
40285 <column alignment="center" valignment="top">
40287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40290 \begin_layout Plain Layout
40296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40299 \begin_layout Plain Layout
40305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40308 \begin_layout Plain Layout
40317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40320 \begin_layout Plain Layout
40326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40329 \begin_layout Plain Layout
40335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40338 \begin_layout Plain Layout
40346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40349 \begin_layout Plain Layout
40355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40358 \begin_layout Plain Layout
40364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40367 \begin_layout Plain Layout
40375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40378 \begin_layout Plain Layout
40384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40387 \begin_layout Plain Layout
40393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40396 \begin_layout Plain Layout
40404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40407 \begin_layout Plain Layout
40413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40416 \begin_layout Plain Layout
40418 \begin_inset space \thinspace{}
40422 \begin_inset space \thinspace{}
40430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40433 \begin_layout Plain Layout
40441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40444 \begin_layout Plain Layout
40450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40453 \begin_layout Plain Layout
40455 \begin_inset space \thinspace{}
40459 \begin_inset space \thinspace{}
40467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40470 \begin_layout Plain Layout
40478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40481 \begin_layout Plain Layout
40487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40490 \begin_layout Plain Layout
40491 scaled point (65536
40492 \begin_inset space \thinspace{}
40496 \begin_inset space \thinspace{}
40504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40507 \begin_layout Plain Layout
40515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40518 \begin_layout Plain Layout
40524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40527 \begin_layout Plain Layout
40529 \begin_inset space \thinspace{}
40533 \begin_inset space \thinspace{}
40541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40544 \begin_layout Plain Layout
40552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40555 \begin_layout Plain Layout
40561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40564 \begin_layout Plain Layout
40566 \begin_inset space \thinspace{}
40570 \begin_inset Formula $\approx$
40574 \begin_inset space \thinspace{}
40582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40585 \begin_layout Plain Layout
40593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40596 \begin_layout Plain Layout
40602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40605 \begin_layout Plain Layout
40607 \begin_inset space \thinspace{}
40611 \begin_inset space \thinspace{}
40619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40622 \begin_layout Plain Layout
40630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40633 \begin_layout Plain Layout
40639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40642 \begin_layout Plain Layout
40643 % of original image width
40648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40651 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40662 \begin_layout Plain Layout
40668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40671 \begin_layout Plain Layout
40677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40680 \begin_layout Plain Layout
40690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40693 \begin_layout Plain Layout
40699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40702 \begin_layout Plain Layout
40708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40711 \begin_layout Plain Layout
40721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40724 \begin_layout Plain Layout
40730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40733 \begin_layout Plain Layout
40739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40742 \begin_layout Plain Layout
40752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40755 \begin_layout Plain Layout
40761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40764 \begin_layout Plain Layout
40770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40773 \begin_layout Plain Layout
40783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40786 \begin_layout Plain Layout
40792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40795 \begin_layout Plain Layout
40801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40804 \begin_layout Plain Layout
40814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40817 \begin_layout Plain Layout
40823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40826 \begin_layout Plain Layout
40832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40835 \begin_layout Plain Layout
40845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40848 \begin_layout Plain Layout
40854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40857 \begin_layout Plain Layout
40867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40870 \begin_layout Plain Layout
40878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40881 \begin_layout Plain Layout
40887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40890 \begin_layout Plain Layout
40900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40903 \begin_layout Plain Layout
40911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40914 \begin_layout Plain Layout
40920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40923 \begin_layout Plain Layout
40925 \begin_inset space \thinspace{}
40929 \begin_inset space \thinspace{}
40937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40940 \begin_layout Plain Layout
40959 \begin_layout Chapter
40960 Output File Formats with Graphics
40961 \begin_inset CommandInset label
40963 name "cha:Output-File-Formats"
40970 \begin_layout Section
40972 \begin_inset Index idx
40975 \begin_layout Plain Layout
40982 \begin_inset Index idx
40985 \begin_layout Plain Layout
40990 \begin_layout Plain Layout
41001 \begin_layout Plain Layout
41016 \begin_layout Standard
41017 This file type has the extension
41018 \begin_inset Quotes eld
41026 \begin_inset Quotes erd
41031 \begin_inset Quotes eld
41035 \begin_inset Quotes erd
41038 (DVI), because it is completely portable; you can move them from one machine
41039 to another without needing to do any sort of conversion.
41040 At the time when this file-format was developed, this was no matter of
41042 DVIs are used for quick previews and as pre-stage for other output formats,
41046 \begin_layout Standard
41047 \begin_inset Note Greyedout
41050 \begin_layout Plain Layout
41055 DVI-files do not contain images; they will only be a linked.
41060 So don't forget this, if you move your
41064 file to another computer.
41065 This property can also slow down your computer when you view the DVI, because
41066 the DVI-viewer has to convert the image in the background to make it visible
41067 when you scroll in the DVI.
41068 So it is recommended that you use PDF for files with many images.
41071 \begin_layout Standard
41072 You can export your document to DVI by using the menu
41074 File\SpecialChar menuseparator
41075 Export\SpecialChar menuseparator
41079 You can view your document as DVI via the
41086 \begin_layout Section
41088 \begin_inset Index idx
41091 \begin_layout Plain Layout
41092 File Formats ! PostScript
41098 \begin_inset Index idx
41101 \begin_layout Plain Layout
41106 \begin_layout Plain Layout
41117 \begin_layout Plain Layout
41132 \begin_layout Standard
41133 This file type has the extension
41134 \begin_inset Quotes eld
41142 \begin_inset Quotes erd
41146 PostScript was developed by the company
41150 as a printer language.
41151 The file therefore contains commands that the printer uses to print the
41153 PostScript can be seen as a
41154 \begin_inset Quotes eld
41157 programming language
41158 \begin_inset Quotes erd
41161 ; you can calculate with it and draw diagrams and images.
41165 \begin_layout Plain Layout
41166 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41173 \begin_inset CommandInset citation
41184 Due to this ability, the files are often bigger than PDFs.
41187 \begin_layout Standard
41188 PostScript can only contain images in the format
41189 \begin_inset Quotes eld
41192 Encapsulated PostScript
41193 \begin_inset Quotes erd
41196 (EPS, file extension
41197 \begin_inset Quotes eld
41205 \begin_inset Quotes erd
41209 As \SpecialChar LyX
41210 allows you to use any known image format in your document, it has to
41211 convert images in the background to EPS.
41213 \begin_inset space ~
41217 \begin_inset space ~
41220 images in your document, \SpecialChar LyX
41222 \begin_inset space ~
41225 conversions whenever you view or export your document.
41226 This will slow down your work flow with \SpecialChar LyX
41228 So if you plan to use PostScript, you can insert your images directly as
41229 EPS to avoid this problem.
41232 \begin_layout Standard
41233 You can export your document to PostScript using the menu
41235 File\SpecialChar menuseparator
41236 Export\SpecialChar menuseparator
41240 You can view your document as PostScript via the
41247 \begin_layout Section
41249 \begin_inset Index idx
41252 \begin_layout Plain Layout
41259 \begin_inset Index idx
41262 \begin_layout Plain Layout
41271 \begin_layout Standard
41272 This file type has the extension
41273 \begin_inset Quotes eld
41281 \begin_inset Quotes erd
41286 \begin_inset Quotes eld
41289 Portable Document Format
41290 \begin_inset Quotes erd
41293 (PDF) was developed by
41297 as a derivative of PostScript.
41298 It is more compressed and it uses fewer commands than PostScript.
41300 \begin_inset Quotes eld
41304 \begin_inset Quotes erd
41307 implies, it can be processed at any computer system and the printed output
41308 looks exactly the same.
41311 \begin_layout Standard
41312 PDF can contain images in its own PDF format, in the format
41313 \begin_inset Quotes eld
41316 Joint Photographic Experts Group
41317 \begin_inset Quotes erd
41320 (JPG, file extension
41321 \begin_inset Quotes eld
41329 \begin_inset Quotes erd
41333 \begin_inset Quotes eld
41341 \begin_inset Quotes erd
41344 ), and in the format
41345 \begin_inset Quotes eld
41348 Portable Network Graphics
41349 \begin_inset Quotes erd
41352 (PNG, file extension
41353 \begin_inset Quotes eld
41361 \begin_inset Quotes erd
41365 Nevertheless you can use any other image format, because \SpecialChar LyX
41367 in the background to one of these formats.
41368 But as described in the section about PostScript, the image conversion
41369 will slow down your work flow.
41370 So it is recommended that you use images in one of the three mentioned
41374 \begin_layout Standard
41375 You can export your document to PDF via the menu
41377 File\SpecialChar menuseparator
41380 in three different ways:
41383 \begin_layout Description
41385 \begin_inset space ~
41388 (ps2pdf) This uses the program
41392 that creates a PDF from a PostScript-version of your file.
41393 The PostScript-version is produced by the program
41397 which uses a DVI-version as intermediate step.
41398 So this export variant consists of three conversions.
41401 \begin_layout Description
41403 \begin_inset space ~
41406 (dvipdfm) This uses the program
41410 that converts your file in the background to DVI and in a second step to
41414 \begin_layout Description
41416 \begin_inset space ~
41419 (pdflatex) This uses the program
41423 that converts your file directly to PDF.
41426 \begin_layout Standard
41427 It is recommended that you use
41430 \begin_inset space ~
41439 supports all features of actual PDF-versions, is quick and works stable.
41444 is not under development and therefore a bit outdated.
41447 \begin_layout Standard
41448 You can view your document as PDF via the
41452 menu or by using a toolbar button.
41455 \begin_layout Chapter
41456 List of dvips color names
41457 \begin_inset CommandInset label
41459 name "chap:List-of-dvips-colornames"
41466 \begin_layout Standard
41467 \begin_inset Tabular
41468 <lyxtabular version="3" rows="17" columns="4">
41469 <features tabularvalignment="middle">
41470 <column alignment="left" valignment="top" width="0pt">
41471 <column alignment="left" valignment="top" width="0pt">
41472 <column alignment="left" valignment="top" width="0pt">
41473 <column alignment="left" valignment="top" width="0pt">
41475 <cell alignment="left" valignment="top" usebox="none">
41478 \begin_layout Plain Layout
41482 \begin_layout Plain Layout
41495 \begin_layout Plain Layout
41506 \begin_layout Plain Layout
41518 <cell alignment="left" valignment="top" usebox="none">
41521 \begin_layout Plain Layout
41525 \begin_layout Plain Layout
41538 \begin_layout Plain Layout
41549 \begin_layout Plain Layout
41561 <cell alignment="left" valignment="top" usebox="none">
41564 \begin_layout Plain Layout
41568 \begin_layout Plain Layout
41581 \begin_layout Plain Layout
41592 \begin_layout Plain Layout
41604 <cell alignment="left" valignment="top" usebox="none">
41607 \begin_layout Plain Layout
41611 \begin_layout Plain Layout
41624 \begin_layout Plain Layout
41635 \begin_layout Plain Layout
41649 <cell alignment="center" valignment="top" usebox="none">
41652 \begin_layout Plain Layout
41656 \begin_layout Plain Layout
41669 \begin_layout Plain Layout
41677 \begin_inset Phantom Phantom
41680 \begin_layout Plain Layout
41690 \begin_layout Plain Layout
41702 <cell alignment="center" valignment="top" usebox="none">
41705 \begin_layout Plain Layout
41709 \begin_layout Plain Layout
41722 \begin_layout Plain Layout
41730 \begin_inset Phantom Phantom
41733 \begin_layout Plain Layout
41743 \begin_layout Plain Layout
41755 <cell alignment="center" valignment="top" usebox="none">
41758 \begin_layout Plain Layout
41762 \begin_layout Plain Layout
41775 \begin_layout Plain Layout
41783 \begin_inset Phantom Phantom
41786 \begin_layout Plain Layout
41796 \begin_layout Plain Layout
41808 <cell alignment="center" valignment="top" usebox="none">
41811 \begin_layout Plain Layout
41815 \begin_layout Plain Layout
41828 \begin_layout Plain Layout
41836 \begin_inset Phantom Phantom
41839 \begin_layout Plain Layout
41849 \begin_layout Plain Layout
41863 <cell alignment="left" valignment="top" usebox="none">
41866 \begin_layout Plain Layout
41870 \begin_layout Plain Layout
41883 \begin_layout Plain Layout
41891 \begin_inset Phantom Phantom
41894 \begin_layout Plain Layout
41904 \begin_layout Plain Layout
41916 <cell alignment="left" valignment="top" usebox="none">
41919 \begin_layout Plain Layout
41923 \begin_layout Plain Layout
41936 \begin_layout Plain Layout
41944 \begin_inset Phantom Phantom
41947 \begin_layout Plain Layout
41957 \begin_layout Plain Layout
41969 <cell alignment="left" valignment="top" usebox="none">
41972 \begin_layout Plain Layout
41976 \begin_layout Plain Layout
41989 \begin_layout Plain Layout
41997 \begin_inset Phantom Phantom
42000 \begin_layout Plain Layout
42010 \begin_layout Plain Layout
42022 <cell alignment="left" valignment="top" usebox="none">
42025 \begin_layout Plain Layout
42029 \begin_layout Plain Layout
42042 \begin_layout Plain Layout
42050 \begin_inset Phantom Phantom
42053 \begin_layout Plain Layout
42063 \begin_layout Plain Layout
42077 <cell alignment="left" valignment="top" usebox="none">
42080 \begin_layout Plain Layout
42084 \begin_layout Plain Layout
42097 \begin_layout Plain Layout
42105 \begin_inset Phantom Phantom
42108 \begin_layout Plain Layout
42118 \begin_layout Plain Layout
42130 <cell alignment="left" valignment="top" usebox="none">
42133 \begin_layout Plain Layout
42137 \begin_layout Plain Layout
42150 \begin_layout Plain Layout
42158 \begin_inset Phantom Phantom
42161 \begin_layout Plain Layout
42171 \begin_layout Plain Layout
42183 <cell alignment="left" valignment="top" usebox="none">
42186 \begin_layout Plain Layout
42190 \begin_layout Plain Layout
42203 \begin_layout Plain Layout
42211 \begin_inset Phantom Phantom
42214 \begin_layout Plain Layout
42224 \begin_layout Plain Layout
42236 <cell alignment="left" valignment="top" usebox="none">
42239 \begin_layout Plain Layout
42243 \begin_layout Plain Layout
42256 \begin_layout Plain Layout
42264 \begin_inset Phantom Phantom
42267 \begin_layout Plain Layout
42277 \begin_layout Plain Layout
42291 <cell alignment="left" valignment="top" usebox="none">
42294 \begin_layout Plain Layout
42298 \begin_layout Plain Layout
42311 \begin_layout Plain Layout
42319 \begin_inset Phantom Phantom
42322 \begin_layout Plain Layout
42332 \begin_layout Plain Layout
42344 <cell alignment="left" valignment="top" usebox="none">
42347 \begin_layout Plain Layout
42351 \begin_layout Plain Layout
42364 \begin_layout Plain Layout
42372 \begin_inset Phantom Phantom
42375 \begin_layout Plain Layout
42385 \begin_layout Plain Layout
42397 <cell alignment="left" valignment="top" usebox="none">
42400 \begin_layout Plain Layout
42404 \begin_layout Plain Layout
42417 \begin_layout Plain Layout
42425 \begin_inset Phantom Phantom
42428 \begin_layout Plain Layout
42438 \begin_layout Plain Layout
42450 <cell alignment="left" valignment="top" usebox="none">
42453 \begin_layout Plain Layout
42457 \begin_layout Plain Layout
42470 \begin_layout Plain Layout
42478 \begin_inset Phantom Phantom
42481 \begin_layout Plain Layout
42491 \begin_layout Plain Layout
42505 <cell alignment="left" valignment="top" usebox="none">
42508 \begin_layout Plain Layout
42512 \begin_layout Plain Layout
42525 \begin_layout Plain Layout
42533 \begin_inset Phantom Phantom
42536 \begin_layout Plain Layout
42546 \begin_layout Plain Layout
42558 <cell alignment="left" valignment="top" usebox="none">
42561 \begin_layout Plain Layout
42565 \begin_layout Plain Layout
42578 \begin_layout Plain Layout
42586 \begin_inset Phantom Phantom
42589 \begin_layout Plain Layout
42599 \begin_layout Plain Layout
42611 <cell alignment="left" valignment="top" usebox="none">
42614 \begin_layout Plain Layout
42618 \begin_layout Plain Layout
42631 \begin_layout Plain Layout
42639 \begin_inset Phantom Phantom
42642 \begin_layout Plain Layout
42652 \begin_layout Plain Layout
42664 <cell alignment="left" valignment="top" usebox="none">
42667 \begin_layout Plain Layout
42671 \begin_layout Plain Layout
42684 \begin_layout Plain Layout
42692 \begin_inset Phantom Phantom
42695 \begin_layout Plain Layout
42705 \begin_layout Plain Layout
42719 <cell alignment="center" valignment="top" usebox="none">
42722 \begin_layout Plain Layout
42726 \begin_layout Plain Layout
42739 \begin_layout Plain Layout
42747 \begin_inset Phantom Phantom
42750 \begin_layout Plain Layout
42760 \begin_layout Plain Layout
42772 <cell alignment="center" valignment="top" usebox="none">
42775 \begin_layout Plain Layout
42779 \begin_layout Plain Layout
42792 \begin_layout Plain Layout
42800 \begin_inset Phantom Phantom
42803 \begin_layout Plain Layout
42813 \begin_layout Plain Layout
42825 <cell alignment="center" valignment="top" usebox="none">
42828 \begin_layout Plain Layout
42832 \begin_layout Plain Layout
42845 \begin_layout Plain Layout
42853 \begin_inset Phantom Phantom
42856 \begin_layout Plain Layout
42866 \begin_layout Plain Layout
42878 <cell alignment="center" valignment="top" usebox="none">
42881 \begin_layout Plain Layout
42885 \begin_layout Plain Layout
42898 \begin_layout Plain Layout
42906 \begin_inset Phantom Phantom
42909 \begin_layout Plain Layout
42919 \begin_layout Plain Layout
42933 <cell alignment="left" valignment="top" usebox="none">
42936 \begin_layout Plain Layout
42940 \begin_layout Plain Layout
42953 \begin_layout Plain Layout
42961 \begin_inset Phantom Phantom
42964 \begin_layout Plain Layout
42974 \begin_layout Plain Layout
42986 <cell alignment="left" valignment="top" usebox="none">
42989 \begin_layout Plain Layout
42993 \begin_layout Plain Layout
43006 \begin_layout Plain Layout
43014 \begin_inset Phantom Phantom
43017 \begin_layout Plain Layout
43027 \begin_layout Plain Layout
43039 <cell alignment="left" valignment="top" usebox="none">
43042 \begin_layout Plain Layout
43046 \begin_layout Plain Layout
43059 \begin_layout Plain Layout
43067 \begin_inset Phantom Phantom
43070 \begin_layout Plain Layout
43080 \begin_layout Plain Layout
43092 <cell alignment="left" valignment="top" usebox="none">
43095 \begin_layout Plain Layout
43099 \begin_layout Plain Layout
43112 \begin_layout Plain Layout
43120 \begin_inset Phantom Phantom
43123 \begin_layout Plain Layout
43133 \begin_layout Plain Layout
43147 <cell alignment="left" valignment="top" usebox="none">
43150 \begin_layout Plain Layout
43154 \begin_layout Plain Layout
43167 \begin_layout Plain Layout
43175 \begin_inset Phantom Phantom
43178 \begin_layout Plain Layout
43188 \begin_layout Plain Layout
43200 <cell alignment="left" valignment="top" usebox="none">
43203 \begin_layout Plain Layout
43207 \begin_layout Plain Layout
43220 \begin_layout Plain Layout
43228 \begin_inset Phantom Phantom
43231 \begin_layout Plain Layout
43241 \begin_layout Plain Layout
43253 <cell alignment="left" valignment="top" usebox="none">
43256 \begin_layout Plain Layout
43260 \begin_layout Plain Layout
43273 \begin_layout Plain Layout
43281 \begin_inset Phantom Phantom
43284 \begin_layout Plain Layout
43294 \begin_layout Plain Layout
43306 <cell alignment="left" valignment="top" usebox="none">
43309 \begin_layout Plain Layout
43313 \begin_layout Plain Layout
43326 \begin_layout Plain Layout
43334 \begin_inset Phantom Phantom
43337 \begin_layout Plain Layout
43347 \begin_layout Plain Layout
43361 <cell alignment="left" valignment="top" usebox="none">
43364 \begin_layout Plain Layout
43368 \begin_layout Plain Layout
43381 \begin_layout Plain Layout
43389 \begin_inset Phantom Phantom
43392 \begin_layout Plain Layout
43402 \begin_layout Plain Layout
43414 <cell alignment="left" valignment="top" usebox="none">
43417 \begin_layout Plain Layout
43421 \begin_layout Plain Layout
43434 \begin_layout Plain Layout
43442 \begin_inset Phantom Phantom
43445 \begin_layout Plain Layout
43455 \begin_layout Plain Layout
43467 <cell alignment="left" valignment="top" usebox="none">
43470 \begin_layout Plain Layout
43474 \begin_layout Plain Layout
43487 \begin_layout Plain Layout
43495 \begin_inset Phantom Phantom
43498 \begin_layout Plain Layout
43508 \begin_layout Plain Layout
43520 <cell alignment="left" valignment="top" usebox="none">
43523 \begin_layout Plain Layout
43527 \begin_layout Plain Layout
43540 \begin_layout Plain Layout
43548 \begin_inset Phantom Phantom
43551 \begin_layout Plain Layout
43561 \begin_layout Plain Layout
43575 <cell alignment="left" valignment="top" usebox="none">
43578 \begin_layout Plain Layout
43582 \begin_layout Plain Layout
43595 \begin_layout Plain Layout
43603 \begin_inset Phantom Phantom
43606 \begin_layout Plain Layout
43616 \begin_layout Plain Layout
43628 <cell alignment="left" valignment="top" usebox="none">
43631 \begin_layout Plain Layout
43635 \begin_layout Plain Layout
43648 \begin_layout Plain Layout
43656 \begin_inset Phantom Phantom
43659 \begin_layout Plain Layout
43669 \begin_layout Plain Layout
43681 <cell alignment="left" valignment="top" usebox="none">
43684 \begin_layout Plain Layout
43688 \begin_layout Plain Layout
43701 \begin_layout Plain Layout
43709 \begin_inset Phantom Phantom
43712 \begin_layout Plain Layout
43722 \begin_layout Plain Layout
43734 <cell alignment="left" valignment="top" usebox="none">
43737 \begin_layout Plain Layout
43741 \begin_layout Plain Layout
43754 \begin_layout Plain Layout
43762 \begin_inset Phantom Phantom
43765 \begin_layout Plain Layout
43775 \begin_layout Plain Layout
43789 <cell alignment="left" valignment="top" usebox="none">
43792 \begin_layout Plain Layout
43796 \begin_layout Plain Layout
43809 \begin_layout Plain Layout
43817 \begin_inset Phantom Phantom
43820 \begin_layout Plain Layout
43830 \begin_layout Plain Layout
43842 <cell alignment="left" valignment="top" usebox="none">
43845 \begin_layout Plain Layout
43849 \begin_layout Plain Layout
43862 \begin_layout Plain Layout
43870 \begin_inset Phantom Phantom
43873 \begin_layout Plain Layout
43883 \begin_layout Plain Layout
43895 <cell alignment="left" valignment="top" usebox="none">
43898 \begin_layout Plain Layout
43902 \begin_layout Plain Layout
43915 \begin_layout Plain Layout
43923 \begin_inset Phantom Phantom
43926 \begin_layout Plain Layout
43936 \begin_layout Plain Layout
43948 <cell alignment="left" valignment="top" usebox="none">
43951 \begin_layout Plain Layout
43955 \begin_layout Plain Layout
43968 \begin_layout Plain Layout
43976 \begin_inset Phantom Phantom
43979 \begin_layout Plain Layout
43989 \begin_layout Plain Layout
44003 <cell alignment="left" valignment="top" usebox="none">
44006 \begin_layout Plain Layout
44010 \begin_layout Plain Layout
44023 \begin_layout Plain Layout
44031 \begin_inset Phantom Phantom
44034 \begin_layout Plain Layout
44044 \begin_layout Plain Layout
44056 <cell alignment="left" valignment="top" usebox="none">
44059 \begin_layout Plain Layout
44063 \begin_layout Plain Layout
44076 \begin_layout Plain Layout
44084 \begin_inset Phantom Phantom
44087 \begin_layout Plain Layout
44097 \begin_layout Plain Layout
44109 <cell alignment="left" valignment="top" usebox="none">
44112 \begin_layout Plain Layout
44116 \begin_layout Plain Layout
44129 \begin_layout Plain Layout
44137 \begin_inset Phantom Phantom
44140 \begin_layout Plain Layout
44150 \begin_layout Plain Layout
44162 <cell alignment="left" valignment="top" usebox="none">
44165 \begin_layout Plain Layout
44169 \begin_layout Plain Layout
44182 \begin_layout Plain Layout
44190 \begin_inset Phantom Phantom
44193 \begin_layout Plain Layout
44203 \begin_layout Plain Layout
44217 <cell alignment="left" valignment="top" usebox="none">
44220 \begin_layout Plain Layout
44224 \begin_layout Plain Layout
44237 \begin_layout Plain Layout
44245 \begin_inset Phantom Phantom
44248 \begin_layout Plain Layout
44258 \begin_layout Plain Layout
44270 <cell alignment="left" valignment="top" usebox="none">
44273 \begin_layout Plain Layout
44277 \begin_layout Plain Layout
44290 \begin_layout Plain Layout
44298 \begin_inset Phantom Phantom
44301 \begin_layout Plain Layout
44311 \begin_layout Plain Layout
44323 <cell alignment="left" valignment="top" usebox="none">
44326 \begin_layout Plain Layout
44330 \begin_layout Plain Layout
44343 \begin_layout Plain Layout
44351 \begin_inset Phantom Phantom
44354 \begin_layout Plain Layout
44364 \begin_layout Plain Layout
44376 <cell alignment="left" valignment="top" usebox="none">
44379 \begin_layout Plain Layout
44383 \begin_layout Plain Layout
44396 \begin_layout Plain Layout
44404 \begin_inset Phantom Phantom
44407 \begin_layout Plain Layout
44417 \begin_layout Plain Layout
44431 <cell alignment="left" valignment="top" usebox="none">
44434 \begin_layout Plain Layout
44438 \begin_layout Plain Layout
44451 \begin_layout Plain Layout
44459 \begin_inset Phantom Phantom
44462 \begin_layout Plain Layout
44472 \begin_layout Plain Layout
44484 <cell alignment="left" valignment="top" usebox="none">
44487 \begin_layout Plain Layout
44491 \begin_layout Plain Layout
44504 \begin_layout Plain Layout
44512 \begin_inset Phantom Phantom
44515 \begin_layout Plain Layout
44525 \begin_layout Plain Layout
44537 <cell alignment="left" valignment="top" usebox="none">
44540 \begin_layout Plain Layout
44544 \begin_layout Plain Layout
44557 \begin_layout Plain Layout
44565 \begin_inset Phantom Phantom
44568 \begin_layout Plain Layout
44578 \begin_layout Plain Layout
44590 <cell alignment="left" valignment="top" usebox="none">
44593 \begin_layout Plain Layout
44597 \begin_layout Plain Layout
44610 \begin_layout Plain Layout
44618 \begin_inset Phantom Phantom
44621 \begin_layout Plain Layout
44631 \begin_layout Plain Layout
44645 <cell alignment="left" valignment="top" usebox="none">
44648 \begin_layout Plain Layout
44652 \begin_layout Plain Layout
44665 \begin_layout Plain Layout
44673 \begin_inset Phantom Phantom
44676 \begin_layout Plain Layout
44686 \begin_layout Plain Layout
44698 <cell alignment="left" valignment="top" usebox="none">
44701 \begin_layout Plain Layout
44705 \begin_layout Plain Layout
44718 \begin_layout Plain Layout
44726 \begin_inset Phantom Phantom
44729 \begin_layout Plain Layout
44739 \begin_layout Plain Layout
44751 <cell alignment="left" valignment="top" usebox="none">
44754 \begin_layout Plain Layout
44758 \begin_layout Plain Layout
44771 \begin_layout Plain Layout
44779 \begin_inset Phantom Phantom
44782 \begin_layout Plain Layout
44792 \begin_layout Plain Layout
44804 <cell alignment="left" valignment="top" usebox="none">
44807 \begin_layout Plain Layout
44811 \begin_layout Plain Layout
44824 \begin_layout Plain Layout
44832 \begin_inset Phantom Phantom
44835 \begin_layout Plain Layout
44845 \begin_layout Plain Layout
44859 <cell alignment="left" valignment="top" usebox="none">
44862 \begin_layout Plain Layout
44866 \begin_layout Plain Layout
44879 \begin_layout Plain Layout
44887 \begin_inset Phantom Phantom
44890 \begin_layout Plain Layout
44900 \begin_layout Plain Layout
44912 <cell alignment="left" valignment="top" usebox="none">
44915 \begin_layout Plain Layout
44921 <cell alignment="left" valignment="top" usebox="none">
44924 \begin_layout Plain Layout
44930 <cell alignment="left" valignment="top" usebox="none">
44933 \begin_layout Plain Layout
44947 \begin_layout Chapter
44948 Explanation of Equation
44949 \begin_inset space ~
44953 \begin_inset CommandInset ref
44960 \begin_inset CommandInset label
44962 name "cha:Explanation-of-Equation"
44969 \begin_layout Standard
44970 We can calculate the total width of
44975 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44979 \begin_inset Formula
44981 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44987 \begin_inset Formula $W_{g\,n}$
44990 is the given width of all cells,
44996 is the \SpecialChar LaTeX
44997 -length between the cell text and the cell border (its default value
44999 \begin_inset space \thinspace{}
45009 is the thickness of the cell border line, the default is 0.4
45010 \begin_inset space \thinspace{}
45016 \begin_layout Standard
45018 \begin_inset space ~
45022 \begin_inset CommandInset ref
45024 reference "eq:Wtot_n"
45028 , the total width of a multicolumn
45029 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45033 \begin_inset Formula
45035 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45043 \begin_layout Standard
45044 By setting equation
45045 \begin_inset space ~
45049 \begin_inset CommandInset ref
45051 reference "eq:Wtot_n"
45056 \begin_inset CommandInset ref
45058 reference "eq:Wtot_mult"
45062 equal we can calculate the needed given width
45063 \begin_inset Formula $W_{g\,n}$
45070 columns are spanned, so that each column has a total width of
45071 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45075 \begin_inset Formula
45077 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45085 \begin_layout Bibliography
45086 \begin_inset CommandInset bibitem
45087 LatexCommand bibitem
45088 key "latexcompanion"
45092 Frank Mittelbach and Michel Goossens:
45094 The \SpecialChar LaTeX
45095 Companion Second Edition.
45098 Addison-Wesley, 2004
45101 \begin_layout Bibliography
45102 \begin_inset CommandInset bibitem
45103 LatexCommand bibitem
45108 Helmut Kopka and Patrick W.
45111 A Guide to \SpecialChar LaTeX
45115 Addison-Wesley, 2003
45118 \begin_layout Bibliography
45119 \begin_inset CommandInset bibitem
45120 LatexCommand bibitem
45128 : A Document Preparation System.
45131 Addison-Wesley, second edition, 1994
45134 \begin_layout Bibliography
45135 \begin_inset CommandInset bibitem
45136 LatexCommand bibitem
45141 Documentation of the \SpecialChar LaTeX
45145 \begin_inset CommandInset href
45148 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45155 \begin_inset Index idx
45158 \begin_layout Plain Layout
45160 -packages ! arydshln
45168 \begin_layout Bibliography
45169 \begin_inset CommandInset bibitem
45170 LatexCommand bibitem
45175 Documentation of the \SpecialChar LaTeX
45179 \begin_inset CommandInset href
45182 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45189 \begin_inset Index idx
45192 \begin_layout Plain Layout
45194 -packages ! booktabs
45202 \begin_layout Bibliography
45203 \begin_inset CommandInset bibitem
45204 LatexCommand bibitem
45209 Documentation of the \SpecialChar LaTeX
45213 \begin_inset CommandInset href
45216 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45223 \begin_inset Index idx
45226 \begin_layout Plain Layout
45228 -packages ! caption
45236 \begin_layout Bibliography
45237 \begin_inset CommandInset bibitem
45238 LatexCommand bibitem
45243 Documentation of the \SpecialChar LaTeX
45247 \begin_inset CommandInset href
45250 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45257 \begin_inset Index idx
45260 \begin_layout Plain Layout
45262 -packages ! diagbox
45270 \begin_layout Bibliography
45271 \begin_inset CommandInset bibitem
45272 LatexCommand bibitem
45277 Documentation of the \SpecialChar LaTeX
45281 \begin_inset CommandInset href
45284 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45291 \begin_inset Index idx
45294 \begin_layout Plain Layout
45296 -packages ! endfloat
45304 \begin_layout Bibliography
45305 \begin_inset CommandInset bibitem
45306 LatexCommand bibitem
45311 Documentation of the \SpecialChar LaTeX
45315 \begin_inset CommandInset href
45318 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45325 \begin_inset Index idx
45328 \begin_layout Plain Layout
45330 -packages ! footmisc
45338 \begin_layout Bibliography
45339 \begin_inset CommandInset bibitem
45340 LatexCommand bibitem
45345 Documentation of the \SpecialChar LaTeX
45349 \begin_inset CommandInset href
45352 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45359 \begin_inset Index idx
45362 \begin_layout Plain Layout
45364 -packages ! hyperref
45372 \begin_layout Bibliography
45373 \begin_inset CommandInset bibitem
45374 LatexCommand bibitem
45379 Documentation of the \SpecialChar LaTeX
45383 \begin_inset CommandInset href
45386 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45393 \begin_inset Index idx
45396 \begin_layout Plain Layout
45398 -packages ! hyperref
45406 \begin_layout Bibliography
45407 \begin_inset CommandInset bibitem
45408 LatexCommand bibitem
45413 Documentation of the \SpecialChar LaTeX
45417 \begin_inset CommandInset href
45420 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45427 \begin_inset Index idx
45430 \begin_layout Plain Layout
45432 -packages ! KOMA-Script
45440 \begin_layout Bibliography
45441 \begin_inset CommandInset bibitem
45442 LatexCommand bibitem
45447 Documentation of the \SpecialChar LaTeX
45451 \begin_inset CommandInset href
45454 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45461 \begin_inset CommandInset href
45464 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45469 \begin_inset Index idx
45472 \begin_layout Plain Layout
45474 -packages ! lettrine
45482 \begin_layout Bibliography
45483 \begin_inset CommandInset bibitem
45484 LatexCommand bibitem
45489 Documentation of the \SpecialChar LaTeX
45493 \begin_inset CommandInset href
45496 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45503 \begin_inset Index idx
45506 \begin_layout Plain Layout
45508 -packages ! listings
45516 \begin_layout Bibliography
45517 \begin_inset CommandInset bibitem
45518 LatexCommand bibitem
45523 Documentation of the \SpecialChar LaTeX
45527 \begin_inset CommandInset href
45530 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45537 \begin_inset Index idx
45540 \begin_layout Plain Layout
45542 -packages ! marginnote
45550 \begin_layout Bibliography
45551 \begin_inset CommandInset bibitem
45552 LatexCommand bibitem
45557 Documentation of the \SpecialChar LaTeX
45561 \begin_inset CommandInset href
45564 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45571 \begin_inset Index idx
45574 \begin_layout Plain Layout
45576 -packages ! pdfpages
45584 \begin_layout Bibliography
45585 \begin_inset CommandInset bibitem
45586 LatexCommand bibitem
45591 Documentation of the \SpecialChar LaTeX
45595 \begin_inset CommandInset href
45598 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45605 \begin_inset Index idx
45608 \begin_layout Plain Layout
45610 -packages ! prettyref
45618 \begin_layout Bibliography
45619 \begin_inset CommandInset bibitem
45620 LatexCommand bibitem
45625 Web page of the \SpecialChar LaTeX
45629 \begin_inset CommandInset href
45632 target "http://tug.org/PSTricks/"
45639 \begin_inset Index idx
45642 \begin_layout Plain Layout
45644 -packages ! PSTricks
45652 \begin_layout Bibliography
45653 \begin_inset CommandInset bibitem
45654 LatexCommand bibitem
45659 Documentation of the \SpecialChar LaTeX
45663 \begin_inset CommandInset href
45666 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45673 \begin_inset Index idx
45676 \begin_layout Plain Layout
45678 -packages ! refstyle
45686 \begin_layout Bibliography
45687 \begin_inset CommandInset bibitem
45688 LatexCommand bibitem
45693 Documentation of the \SpecialChar LaTeX
45697 \begin_inset CommandInset href
45700 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45707 \begin_inset Index idx
45710 \begin_layout Plain Layout
45712 -packages ! sidecap
45720 \begin_layout Bibliography
45721 \begin_inset CommandInset bibitem
45722 LatexCommand bibitem
45728 \begin_inset CommandInset href
45731 target "http://wiki.lyx.org/LyX/NewInLyX20"
45735 about new features in
45743 \begin_layout Standard
45744 \begin_inset CommandInset index_print
45745 LatexCommand printindex