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/Manuals#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 all 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}{1.2pt}
19060 \begin_layout Standard
19061 To color only some of the table lines another strategy is necessary.
19062 To color all following horizontal lines, insert this command as \SpecialChar TeX
19064 last thing in the row that should be above the first colored line:
19067 \begin_layout Standard
19076 arrayrulecolor{blue}%
19079 \begin_layout Standard
19080 To go back to black lines, add this command as first thing in the row that
19081 is above the black lines:
19084 \begin_layout Standard
19089 arrayrulecolor{black}
19092 \begin_layout Standard
19093 With this one can color table lines like in Table
19094 \begin_inset space ~
19098 \begin_inset CommandInset ref
19100 reference "tab:Table-with-different-hor"
19105 However, with this method it is not possible to color the line above the
19106 first row of a table.
19109 \begin_layout Standard
19110 \begin_inset Float table
19115 \begin_layout Plain Layout
19116 \begin_inset Caption Standard
19118 \begin_layout Plain Layout
19119 \begin_inset CommandInset label
19121 name "tab:Table-with-different-hor"
19125 Table with different horizontal line colors.
19133 \begin_layout Plain Layout
19135 \begin_inset Tabular
19136 <lyxtabular version="3" rows="6" columns="7">
19137 <features tabularvalignment="middle">
19138 <column alignment="center" valignment="top">
19139 <column alignment="center" valignment="top">
19140 <column alignment="center" valignment="top">
19141 <column alignment="center" valignment="top">
19142 <column alignment="center" valignment="top">
19143 <column alignment="center" valignment="top">
19144 <column alignment="center" valignment="top">
19146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19149 \begin_layout Plain Layout
19155 <cell alignment="center" valignment="top" topline="true" usebox="none">
19158 \begin_layout Plain Layout
19164 <cell alignment="center" valignment="top" topline="true" usebox="none">
19167 \begin_layout Plain Layout
19173 <cell alignment="center" valignment="top" topline="true" usebox="none">
19176 \begin_layout Plain Layout
19182 <cell alignment="center" valignment="top" topline="true" usebox="none">
19185 \begin_layout Plain Layout
19191 <cell alignment="center" valignment="top" topline="true" usebox="none">
19194 \begin_layout Plain Layout
19200 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19203 \begin_layout Plain Layout
19207 \begin_layout Plain Layout
19215 arrayrulecolor{blue}%
19227 <cell alignment="center" valignment="top" usebox="none">
19230 \begin_layout Plain Layout
19236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19239 \begin_layout Plain Layout
19245 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19248 \begin_layout Plain Layout
19254 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19257 \begin_layout Plain Layout
19263 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19266 \begin_layout Plain Layout
19272 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19275 \begin_layout Plain Layout
19281 <cell alignment="center" valignment="top" usebox="none">
19284 \begin_layout Plain Layout
19292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19295 \begin_layout Plain Layout
19299 \begin_layout Plain Layout
19303 arrayrulecolor{black}
19313 <cell alignment="center" valignment="top" usebox="none">
19316 \begin_layout Plain Layout
19322 <cell alignment="center" valignment="top" usebox="none">
19325 \begin_layout Plain Layout
19331 <cell alignment="center" valignment="top" usebox="none">
19334 \begin_layout Plain Layout
19340 <cell alignment="center" valignment="top" usebox="none">
19343 \begin_layout Plain Layout
19349 <cell alignment="center" valignment="top" usebox="none">
19352 \begin_layout Plain Layout
19358 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19361 \begin_layout Plain Layout
19369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19372 \begin_layout Plain Layout
19378 <cell alignment="center" valignment="top" usebox="none">
19381 \begin_layout Plain Layout
19387 <cell alignment="center" valignment="top" usebox="none">
19390 \begin_layout Plain Layout
19396 <cell alignment="center" valignment="top" usebox="none">
19399 \begin_layout Plain Layout
19405 <cell alignment="center" valignment="top" usebox="none">
19408 \begin_layout Plain Layout
19414 <cell alignment="center" valignment="top" usebox="none">
19417 \begin_layout Plain Layout
19423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19426 \begin_layout Plain Layout
19430 \begin_layout Plain Layout
19438 arrayrulecolor{green}%
19450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19453 \begin_layout Plain Layout
19459 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19462 \begin_layout Plain Layout
19468 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19471 \begin_layout Plain Layout
19477 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19480 \begin_layout Plain Layout
19486 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19489 \begin_layout Plain Layout
19495 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19498 \begin_layout Plain Layout
19504 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19507 \begin_layout Plain Layout
19515 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19518 \begin_layout Plain Layout
19522 \begin_layout Plain Layout
19526 arrayrulecolor{black}
19536 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19539 \begin_layout Plain Layout
19545 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19548 \begin_layout Plain Layout
19554 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19557 \begin_layout Plain Layout
19563 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19566 \begin_layout Plain Layout
19572 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19575 \begin_layout Plain Layout
19581 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19584 \begin_layout Plain Layout
19588 \begin_layout Plain Layout
19596 arrayrulecolor{blue}%
19619 \begin_layout Standard
19620 To change the color of vertical lines within a row, like in Table
19621 \begin_inset space ~
19625 \begin_inset CommandInset ref
19627 reference "tab:Table-with-different-ver"
19631 , one needs to use multicolumns.
19632 At first one needs to remove all vertical lines that don't run along the
19634 Now one colors all lines using the command
19637 \begin_layout Standard
19646 arrayrulecolor{blue}%
19649 \begin_layout Standard
19651 Finally one inserts this command as \SpecialChar TeX
19652 code to every cell in the row where
19653 one needs a vertical line in a different color:
19656 \begin_layout Standard
19672 \begin_layout Standard
19673 This adds a vertical line to both sides of the cell.
19674 The left one will be green, the right one red.
19675 If no color change is necessary one can omit the
19681 command in the above command.
19682 To get for example a black left line and a blue right line you can write:
19685 \begin_layout Standard
19697 \begin_layout Standard
19698 because the color blue was already set for all lines.
19703 creates hereby the vertical line while
19716 To set vertical lines without changing any color use
19719 \begin_layout Standard
19724 multicolumn{1}{|c|}{
19727 \begin_layout Standard
19728 After this command insert the cell content the normal way and end the cell
19729 with a closing brace
19733 in \SpecialChar TeX
19737 \begin_layout Standard
19738 \begin_inset Float table
19743 \begin_layout Plain Layout
19744 \begin_inset Caption Standard
19746 \begin_layout Plain Layout
19747 \begin_inset CommandInset label
19749 name "tab:Table-with-different-ver"
19753 Table with different vertical line colors in one row.
19761 \begin_layout Plain Layout
19763 \begin_inset Tabular
19764 <lyxtabular version="3" rows="5" columns="7">
19765 <features tabularvalignment="middle">
19766 <column alignment="center" valignment="top">
19767 <column alignment="center" valignment="top">
19768 <column alignment="center" valignment="top">
19769 <column alignment="center" valignment="top">
19770 <column alignment="center" valignment="top">
19771 <column alignment="center" valignment="top">
19772 <column alignment="center" valignment="top">
19774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19777 \begin_layout Plain Layout
19783 <cell alignment="center" valignment="top" topline="true" usebox="none">
19786 \begin_layout Plain Layout
19792 <cell alignment="center" valignment="top" topline="true" usebox="none">
19795 \begin_layout Plain Layout
19801 <cell alignment="center" valignment="top" topline="true" usebox="none">
19804 \begin_layout Plain Layout
19810 <cell alignment="center" valignment="top" topline="true" usebox="none">
19813 \begin_layout Plain Layout
19819 <cell alignment="center" valignment="top" topline="true" usebox="none">
19822 \begin_layout Plain Layout
19828 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19831 \begin_layout Plain Layout
19835 \begin_layout Plain Layout
19843 arrayrulecolor{red}%
19855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19858 \begin_layout Plain Layout
19862 \begin_layout Plain Layout
19879 \begin_layout Plain Layout
19891 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19894 \begin_layout Plain Layout
19900 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19903 \begin_layout Plain Layout
19909 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19912 \begin_layout Plain Layout
19918 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19921 \begin_layout Plain Layout
19927 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19930 \begin_layout Plain Layout
19934 \begin_layout Plain Layout
19938 multicolumn{1}{c|}{
19947 \begin_layout Plain Layout
19959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19962 \begin_layout Plain Layout
19966 \begin_layout Plain Layout
19983 \begin_layout Plain Layout
19997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20000 \begin_layout Plain Layout
20004 \begin_layout Plain Layout
20008 arrayrulecolor{black}
20018 <cell alignment="center" valignment="top" usebox="none">
20021 \begin_layout Plain Layout
20027 <cell alignment="center" valignment="top" usebox="none">
20030 \begin_layout Plain Layout
20036 <cell alignment="center" valignment="top" usebox="none">
20039 \begin_layout Plain Layout
20045 <cell alignment="center" valignment="top" usebox="none">
20048 \begin_layout Plain Layout
20054 <cell alignment="center" valignment="top" usebox="none">
20057 \begin_layout Plain Layout
20063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20066 \begin_layout Plain Layout
20070 \begin_layout Plain Layout
20078 arrayrulecolor{magenta}%
20090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20093 \begin_layout Plain Layout
20097 \begin_layout Plain Layout
20101 multicolumn{1}{|c!{
20114 \begin_layout Plain Layout
20126 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20129 \begin_layout Plain Layout
20133 \begin_layout Plain Layout
20150 \begin_layout Plain Layout
20162 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20165 \begin_layout Plain Layout
20169 \begin_layout Plain Layout
20186 \begin_layout Plain Layout
20198 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20201 \begin_layout Plain Layout
20205 \begin_layout Plain Layout
20222 \begin_layout Plain Layout
20234 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20237 \begin_layout Plain Layout
20241 \begin_layout Plain Layout
20258 \begin_layout Plain Layout
20270 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20273 \begin_layout Plain Layout
20277 \begin_layout Plain Layout
20294 \begin_layout Plain Layout
20306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20309 \begin_layout Plain Layout
20313 \begin_layout Plain Layout
20317 multicolumn{1}{c|}{
20326 \begin_layout Plain Layout
20340 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20343 \begin_layout Plain Layout
20347 \begin_layout Plain Layout
20351 arrayrulecolor{black}
20361 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20364 \begin_layout Plain Layout
20370 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20373 \begin_layout Plain Layout
20379 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20382 \begin_layout Plain Layout
20388 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20391 \begin_layout Plain Layout
20397 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20400 \begin_layout Plain Layout
20406 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20409 \begin_layout Plain Layout
20428 \begin_layout Standard
20432 \begin_layout Plain Layout
20438 arrayrulewidth}{0.4pt}
20446 \begin_layout Section
20447 Rotated Table Cells
20448 \begin_inset CommandInset label
20450 name "sec:Rotated-Table-Cells"
20455 \begin_inset Index idx
20458 \begin_layout Plain Layout
20459 Table ! Rotated Cells
20465 \begin_inset Index idx
20468 \begin_layout Plain Layout
20477 \begin_layout Standard
20478 \begin_inset Note Greyedout
20481 \begin_layout Plain Layout
20486 Not all DVI-viewers are able to display rotations.
20494 \begin_layout Standard
20496 \begin_inset space ~
20500 \begin_inset CommandInset ref
20502 reference "tab:Table-with-rotated-multi"
20506 is an example where 3
20507 \begin_inset space ~
20510 cells were rotated by 45
20511 \begin_inset space \thinspace{}
20517 \begin_layout Standard
20518 \begin_inset Float table
20524 \begin_layout Plain Layout
20525 \begin_inset Caption Standard
20527 \begin_layout Plain Layout
20528 \begin_inset CommandInset label
20530 name "tab:Table-with-rotated"
20534 Table with rotated cells in the first row.
20542 \begin_layout Plain Layout
20545 \begin_inset Tabular
20546 <lyxtabular version="3" rows="2" columns="3">
20547 <features tabularvalignment="middle">
20548 <column alignment="center" valignment="top" width="0pt">
20549 <column alignment="center" valignment="top" width="0pt">
20550 <column alignment="center" valignment="top" width="0pt">
20552 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20555 \begin_layout Plain Layout
20561 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20564 \begin_layout Plain Layout
20570 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20573 \begin_layout Plain Layout
20581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20584 \begin_layout Plain Layout
20590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20593 \begin_layout Plain Layout
20599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20602 \begin_layout Plain Layout
20621 \begin_layout Standard
20622 \begin_inset Note Greyedout
20625 \begin_layout Plain Layout
20630 Line breaks (shortcut
20633 arg "newline-insert newline"
20636 ) are not allowed in rotated cells.
20644 \begin_layout Standard
20645 If you want to rotate table cells containing line breaks, you have to put
20646 the cell content into a minipage or a parbox.
20650 \begin_layout Plain Layout
20651 For more about these boxes see sec.
20652 \begin_inset space \thinspace{}
20656 \begin_inset CommandInset ref
20658 reference "sec:Minipages"
20663 \begin_inset CommandInset ref
20665 reference "sec:Parboxes"
20674 If you rotate this cell by 90
20675 \begin_inset space \thinspace{}
20678 ° the width of the box is the height of the cell.
20680 \begin_inset space ~
20684 \begin_inset CommandInset ref
20686 reference "tab:Table-with-rotated-multi"
20690 is an example for a rotated multiline cell where the box width was set
20692 \begin_inset space \thinspace{}
20698 \begin_layout Standard
20699 \begin_inset Float table
20704 \begin_layout Plain Layout
20705 \begin_inset Caption Standard
20707 \begin_layout Plain Layout
20708 \begin_inset CommandInset label
20710 name "tab:Table-with-rotated-multi"
20714 Table with rotated multiline cell.
20722 \begin_layout Plain Layout
20725 \begin_inset Tabular
20726 <lyxtabular version="3" rows="2" columns="3">
20727 <features tabularvalignment="middle">
20728 <column alignment="center" valignment="top">
20729 <column alignment="center" valignment="top" width="0pt">
20730 <column alignment="center" valignment="top">
20732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20735 \begin_layout Plain Layout
20741 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20744 \begin_layout Plain Layout
20745 \begin_inset Box Frameless
20755 height_special "totalheight"
20760 backgroundcolor "none"
20763 \begin_layout Plain Layout
20765 \begin_inset Newline newline
20778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20781 \begin_layout Plain Layout
20789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20792 \begin_layout Plain Layout
20798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20801 \begin_layout Plain Layout
20807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20810 \begin_layout Plain Layout
20829 \begin_layout Section
20830 Table Width Calculation
20831 \begin_inset CommandInset label
20833 name "sec:Table-Width-Calculation"
20840 \begin_layout Standard
20841 For wide tables it is sometimes difficult to assure that the table does
20842 not protrude over the page margin.
20843 Setting a fixed width for every column of the table is the solution, but
20844 what amount of space is needed for each column?
20847 \begin_layout Standard
20849 \begin_inset Formula $W_{\mathrm{table}}$
20852 can be calculated: Every column has the width of the specified column width
20854 \begin_inset Formula $W_{\mathrm{column}}$
20857 (that the content of the column can consume) plus two times the separation
20858 between the column content and the column border (\SpecialChar LaTeX
20866 \begin_inset space \thinspace{}
20869 pt) plus the width of a border line (\SpecialChar LaTeX
20877 \begin_inset space \thinspace{}
20881 \begin_inset Formula $n$
20885 \begin_inset space ~
20888 columns have the same width, the table width is
20889 \begin_inset Formula
20891 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20899 \begin_layout Standard
20900 The available width for a table is the space between the page margins or
20901 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20909 If all table columns should have the same width and
20910 \begin_inset Formula $W_{\mathrm{table}}$
20914 \begin_inset space \thinspace{}
20920 \begin_inset Formula $W_{\mathrm{column}}$
20923 can easily be calculated.
20926 \begin_layout Standard
20927 To be able to perform calculations you need to load the \SpecialChar LaTeX
20933 \begin_inset Index idx
20936 \begin_layout Plain Layout
20943 in the document preamble.
20944 To set the width in the table dialog you have to use the field
20950 The command scheme for this field is the same that is explained in section
20951 \begin_inset space ~
20955 \begin_inset CommandInset ref
20957 reference "subsec:Multicolumn-Calculations"
20963 \begin_inset space \thinspace{}
20966 columns with an uniform width and centered text, enter there for each column
20970 \begin_layout Standard
20977 columnwidth-62.4pt)/5}
20980 \begin_layout Standard
20982 \begin_inset space \thinspace{}
20985 columns where 2 should have 0.75
20986 \begin_inset space ~
20989 times the width than the 3 others, the calculation is
20990 \begin_inset Formula
20992 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
20993 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
20994 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
20995 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21003 \begin_layout Standard
21004 In the table therefore the command
21007 \begin_layout Standard
21014 columnwidth-62.4pt)/
21019 \begin_layout Standard
21020 is used for the wider columns and
21023 \begin_layout Standard
21030 columnwidth-62.4pt)/
21037 \begin_layout Standard
21038 for the smaller ones:
21041 \begin_layout Standard
21042 \begin_inset Tabular
21043 <lyxtabular version="3" rows="2" columns="5">
21044 <features tabularvalignment="middle">
21045 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21046 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21047 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21048 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21049 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21054 \begin_layout Plain Layout
21060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21063 \begin_layout Plain Layout
21069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21072 \begin_layout Plain Layout
21078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21081 \begin_layout Plain Layout
21087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21090 \begin_layout Plain Layout
21098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21101 \begin_layout Plain Layout
21102 111111 1111111 111111 111111111 11111 11111 1111
21107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21110 \begin_layout Plain Layout
21116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21119 \begin_layout Plain Layout
21120 2222 22222 222222 222222222 2222222 22 22222
21125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21128 \begin_layout Plain Layout
21134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21137 \begin_layout Plain Layout
21138 333333 333333 333333 33333 3333333 333
21151 \begin_layout Section
21152 Table Customization
21153 \begin_inset Index idx
21156 \begin_layout Plain Layout
21157 Table Customization
21163 \begin_inset Index idx
21166 \begin_layout Plain Layout
21167 Table ! Customization
21175 \begin_layout Subsection
21177 \begin_inset CommandInset label
21179 name "subsec:Row-Spacing"
21184 \begin_inset Index idx
21187 \begin_layout Plain Layout
21188 Table Customization ! Row Spacing
21196 \begin_layout Standard
21197 You can add vertical space to table rows in the
21201 tab of the table dialog.
21202 You find there three possibilities:
21205 \begin_layout Description
21207 \begin_inset space ~
21211 \begin_inset space ~
21214 row will add space above the characters of the table row.
21215 If the table is a formal table
21219 \begin_layout Plain Layout
21220 Formal tables are explained in section
21221 \begin_inset space ~
21225 \begin_inset CommandInset ref
21227 reference "sec:Formal-Tables"
21237 will insert as default 0.5
21238 \begin_inset space \thinspace{}
21242 For normal tables the inserted space will unfortunately destroy the vertical
21243 table lines as in the following table:
21244 \begin_inset VSpace medskip
21248 \begin_inset Newline newline
21252 \begin_inset space \hspace*{}
21257 \begin_inset space \hfill{}
21261 \begin_inset Tabular
21262 <lyxtabular version="3" rows="3" columns="1">
21263 <features tabularvalignment="middle">
21264 <column alignment="center" valignment="top">
21266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21269 \begin_layout Plain Layout
21276 <row topspace="3mm">
21277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21280 \begin_layout Plain Layout
21282 \begin_inset space \thinspace{}
21285 mm space top of row
21292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21295 \begin_layout Plain Layout
21307 \begin_inset space \hfill{}
21311 \begin_inset space \hspace*{}
21316 \begin_inset VSpace medskip
21320 \begin_inset Newline newline
21323 So inserting space in the top of row for normal tables is only useful when
21324 you don't have vertical lines.
21327 \begin_layout Description
21329 \begin_inset space ~
21333 \begin_inset space ~
21336 row will add space below the characters of the table row.
21337 If the table is a formal table \SpecialChar LyX
21338 will insert as default 0.5
21339 \begin_inset space \thinspace{}
21342 em space, for normal tables the default size is 2
21343 \begin_inset space \thinspace{}
21349 \begin_layout Description
21351 \begin_inset space ~
21354 rows adds space between the current and the following row.
21355 If the table is a formal table \SpecialChar LyX
21356 will insert as default 0.5
21357 \begin_inset space \thinspace{}
21361 For normal tables the inserted space will unfortunately destroy the vertical
21362 table lines as in the following table:
21363 \begin_inset VSpace medskip
21367 \begin_inset Newline newline
21371 \begin_inset space \hspace*{}
21376 \begin_inset space \hfill{}
21380 \begin_inset Tabular
21381 <lyxtabular version="3" rows="3" columns="1">
21382 <features tabularvalignment="middle">
21383 <column alignment="center" valignment="top">
21385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21388 \begin_layout Plain Layout
21395 <row interlinespace="3mm">
21396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21399 \begin_layout Plain Layout
21400 \begin_inset Formula $\downarrow$
21404 \begin_inset space \thinspace{}
21407 mm space between row
21408 \begin_inset Formula $\downarrow$
21418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21421 \begin_layout Plain Layout
21422 \begin_inset Formula $\uparrow$
21426 \begin_inset space \thinspace{}
21429 mm space between row
21430 \begin_inset Formula $\uparrow$
21444 \begin_inset space \hfill{}
21448 \begin_inset space \hspace*{}
21453 \begin_inset VSpace medskip
21457 \begin_inset Newline newline
21460 So inserting space between rows for normal tables is only useful when you
21461 don't have vertical lines.
21464 \begin_layout Standard
21465 \begin_inset VSpace bigskip
21468 When you want to add extra height to all cells of all tables, you can do
21469 this with the following preamble lines:
21472 \begin_layout Standard
21477 @ifundefined{extrarowheight}
21478 \begin_inset Newline newline
21482 \begin_inset Phantom HPhantom
21485 \begin_layout Plain Layout
21488 \begin_inset space ~
21498 usepackage{array}}{}
21499 \begin_inset Newline newline
21506 extrarowheight}{height}
21509 \begin_inset Note Note
21512 \begin_layout Plain Layout
21517 will be loaded automatically by \SpecialChar LyX
21518 when you use self defined table formats.
21519 To avoid that it being loaded twice the command
21525 is used in the above command.
21533 \begin_layout Standard
21538 can have one of the units listed in appendix
21539 \begin_inset space ~
21543 \begin_inset CommandInset ref
21545 reference "cha:Units-available-in"
21550 But this has the disadvantage that the cell texts are no longer exactly
21551 vertically centered.
21554 \begin_layout Standard
21555 If you are using font sizes larger than the normal size, the table borders
21556 are often too close to the letters.
21557 This can be corrected by inserting the command
21563 in \SpecialChar TeX
21564 Code at the beginning of a table row.
21566 \begin_inset space ~
21570 \begin_inset CommandInset ref
21572 reference "tab:Vertical-alignment-of"
21576 illustrates the effect.
21579 \begin_layout Standard
21581 \begin_inset Float table
21587 \begin_layout Plain Layout
21588 \begin_inset Caption Standard
21590 \begin_layout Plain Layout
21591 \begin_inset CommandInset label
21593 name "tab:Vertical-alignment-of"
21597 Vertical alignment of text with large font sizes.
21605 \begin_layout Plain Layout
21606 \begin_inset space \hfill{}
21610 \begin_inset Float table
21615 \begin_layout Plain Layout
21616 \begin_inset Caption Standard
21618 \begin_layout Plain Layout
21627 \begin_layout Plain Layout
21630 \begin_inset Tabular
21631 <lyxtabular version="3" rows="6" columns="1">
21632 <features tabularvalignment="middle">
21633 <column alignment="left" valignment="top">
21635 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21638 \begin_layout Plain Layout
21646 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21649 \begin_layout Plain Layout
21659 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21662 \begin_layout Plain Layout
21672 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21675 \begin_layout Plain Layout
21685 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21688 \begin_layout Plain Layout
21698 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21701 \begin_layout Plain Layout
21720 \begin_inset space \hfill{}
21724 \begin_inset Float table
21729 \begin_layout Plain Layout
21730 \begin_inset Caption Standard
21732 \begin_layout Plain Layout
21733 Table using the command
21747 \begin_layout Plain Layout
21750 \begin_inset Tabular
21751 <lyxtabular version="3" rows="6" columns="1">
21752 <features tabularvalignment="middle">
21753 <column alignment="left" valignment="top">
21755 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21758 \begin_layout Plain Layout
21766 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21769 \begin_layout Plain Layout
21775 \begin_layout Plain Layout
21791 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21794 \begin_layout Plain Layout
21800 \begin_layout Plain Layout
21816 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21819 \begin_layout Plain Layout
21825 \begin_layout Plain Layout
21841 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21844 \begin_layout Plain Layout
21850 \begin_layout Plain Layout
21866 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21869 \begin_layout Plain Layout
21875 \begin_layout Plain Layout
21902 \begin_inset space \hfill{}
21913 \begin_layout Subsection
21914 Special Cell Alignment
21915 \begin_inset CommandInset label
21917 name "subsec:Special-Cell-Alignment"
21922 \begin_inset Index idx
21925 \begin_layout Plain Layout
21926 Table Customization ! Special Cell Alignment
21934 \begin_layout Standard
21935 Sometimes it looks better when the cell entries of a column are aligned
21936 with a special character, e.
21937 \begin_inset space \thinspace{}
21941 \begin_inset space \space{}
21944 with the decimal separator as in Table
21945 \begin_inset space ~
21949 \begin_inset CommandInset ref
21951 reference "tab:Table-cells-align"
21956 This alignment is achieved by setting the cursor into the column and then
21957 either pressing the toolbar button
21960 arg "tabular-feature align-decimal"
21963 or setting the alignment in the table settings to
21966 \begin_inset space ~
21970 \begin_inset space ~
21976 The alignment character can be a character of your choice and is specified
21977 in the table settings.
21980 \begin_layout Standard
21981 \begin_inset Float table
21987 \begin_layout Plain Layout
21988 \begin_inset Caption Standard
21990 \begin_layout Plain Layout
21991 \begin_inset CommandInset label
21993 name "tab:Table-cells-align"
21997 Table cells of a column aligned with the decimal separator.
22005 \begin_layout Plain Layout
22007 \begin_inset Tabular
22008 <lyxtabular version="3" rows="4" columns="1">
22009 <features booktabs="true" tabularvalignment="middle">
22010 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22015 \begin_layout Plain Layout
22023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22026 \begin_layout Plain Layout
22034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22037 \begin_layout Plain Layout
22045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22048 \begin_layout Plain Layout
22067 \begin_layout Standard
22068 \begin_inset Float table
22074 \begin_layout Plain Layout
22075 \begin_inset Caption Standard
22077 \begin_layout Plain Layout
22078 \begin_inset CommandInset label
22080 name "tab:Table-align-operator"
22084 Table cells of a column aligned with the operators.
22092 \begin_layout Plain Layout
22094 \begin_inset Tabular
22095 <lyxtabular version="3" rows="4" columns="2">
22096 <features booktabs="true" tabularvalignment="middle">
22097 <column alignment="right" valignment="top" width="0pt">
22098 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22100 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22103 \begin_layout Plain Layout
22109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22112 \begin_layout Plain Layout
22120 <cell alignment="center" valignment="top" usebox="none">
22123 \begin_layout Plain Layout
22124 \begin_inset Formula $12\,+$
22132 <cell alignment="center" valignment="top" usebox="none">
22135 \begin_layout Plain Layout
22136 \begin_inset Formula $\,6$
22146 <cell alignment="center" valignment="top" usebox="none">
22149 \begin_layout Plain Layout
22150 \begin_inset Formula $0\,-$
22158 <cell alignment="center" valignment="top" usebox="none">
22161 \begin_layout Plain Layout
22162 \begin_inset Formula $\,68$
22172 <cell alignment="center" valignment="top" usebox="none">
22175 \begin_layout Plain Layout
22176 \begin_inset Formula $-123\,/$
22184 <cell alignment="center" valignment="top" usebox="none">
22187 \begin_layout Plain Layout
22188 \begin_inset Formula $\,0$
22209 \begin_layout Standard
22210 For alignments at characters in formulas this method does not work because
22211 the field to specify the alignment character does not allow formulas.
22212 In this case one need to use the method from Table
22213 \begin_inset space ~
22217 \begin_inset CommandInset ref
22219 reference "tab:Table-align-operator"
22224 This table was created with a 4×2 table.
22225 The heading is a centered multicolumn.
22226 The first column is right-aligned and contains the first part including
22228 The second column is left aligned and contains the rest.
22229 A small space was added at the beginning of each cell of the second column
22230 to get the space that is usually around operators.
22231 To omit the space that is normally between two table columns, the following
22233 -argument was used for the second column:
22236 \begin_layout Standard
22242 \begin_layout Standard
22244 \begin_inset space ~
22248 \begin_inset CommandInset ref
22250 reference "tab:Several-table-cell"
22254 shows some example alignments.
22255 For the alignment with the relation sign, a small space was added like
22256 for the second column of Table
22257 \begin_inset space ~
22261 \begin_inset CommandInset ref
22263 reference "tab:Table-align-operator"
22270 \begin_layout Standard
22271 \begin_inset Float table
22277 \begin_layout Plain Layout
22278 \begin_inset Caption Standard
22280 \begin_layout Plain Layout
22281 \begin_inset CommandInset label
22283 name "tab:Several-table-cell"
22287 Several table cell alignments.
22295 \begin_layout Plain Layout
22297 \begin_inset Tabular
22298 <lyxtabular version="3" rows="4" columns="6">
22299 <features tabularvalignment="middle">
22300 <column alignment="right" valignment="top">
22301 <column alignment="left" valignment="top" special="@{}l">
22302 <column alignment="right" valignment="top">
22303 <column alignment="left" valignment="top" special="@{}l">
22304 <column alignment="right" valignment="top">
22305 <column alignment="left" valignment="top" special="@{}l">
22307 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22328 \begin_layout Plain Layout
22334 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22337 \begin_layout Plain Layout
22343 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22346 \begin_layout Plain Layout
22352 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22355 \begin_layout Plain Layout
22363 <cell alignment="center" valignment="top" usebox="none">
22366 \begin_layout Plain Layout
22372 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22375 \begin_layout Plain Layout
22377 \begin_inset space \thinspace{}
22385 <cell alignment="center" valignment="top" usebox="none">
22388 \begin_layout Plain Layout
22389 \begin_inset Formula $10\cdot$
22397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22400 \begin_layout Plain Layout
22401 \begin_inset Formula $10^{\mbox{-}17}$
22409 <cell alignment="center" valignment="top" usebox="none">
22412 \begin_layout Plain Layout
22413 \begin_inset Formula $\Gamma(t)\propto$
22421 <cell alignment="center" valignment="top" usebox="none">
22424 \begin_layout Plain Layout
22425 \begin_inset Formula $\:\Upsilon(t)$
22435 <cell alignment="center" valignment="top" usebox="none">
22438 \begin_layout Plain Layout
22444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22447 \begin_layout Plain Layout
22449 \begin_inset space \thinspace{}
22457 <cell alignment="center" valignment="top" usebox="none">
22460 \begin_layout Plain Layout
22461 \begin_inset Formula $5.78\cdot$
22469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22472 \begin_layout Plain Layout
22473 \begin_inset Formula $10^{7}$
22481 <cell alignment="center" valignment="top" usebox="none">
22484 \begin_layout Plain Layout
22485 \begin_inset Formula $A\ne$
22493 <cell alignment="center" valignment="top" usebox="none">
22496 \begin_layout Plain Layout
22497 \begin_inset Formula $\:B_{\mathrm{red}}$
22507 <cell alignment="center" valignment="top" usebox="none">
22510 \begin_layout Plain Layout
22516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22519 \begin_layout Plain Layout
22521 \begin_inset space \thinspace{}
22529 <cell alignment="center" valignment="top" usebox="none">
22532 \begin_layout Plain Layout
22534 \begin_inset Formula $33.5\cdot$
22542 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22545 \begin_layout Plain Layout
22546 \begin_inset Formula $10^{4}$
22554 <cell alignment="center" valignment="top" usebox="none">
22557 \begin_layout Plain Layout
22558 \begin_inset Formula $\sin(\alpha)\ge$
22566 <cell alignment="center" valignment="top" usebox="none">
22569 \begin_layout Plain Layout
22570 \begin_inset Formula $\:\sin(\beta)$
22591 \begin_layout Subsection
22592 Customized Cell/Column Format
22593 \begin_inset CommandInset label
22595 name "subsec:Customized-Format"
22600 \begin_inset Index idx
22603 \begin_layout Plain Layout
22604 Table Customization ! Cell/Column Format
22612 \begin_layout Standard
22613 Calculating the required width for normal columns as described in section
22614 \begin_inset space ~
22618 \begin_inset CommandInset ref
22620 reference "sec:Table-Width-Calculation"
22624 or for spanned columns as described in section
22625 \begin_inset space ~
22629 \begin_inset CommandInset ref
22631 reference "subsec:Multicolumn-Calculations"
22635 is very annoying if you have several tables where a calculation is necessary.
22636 To make life easier, you can define a cell/column format in the preamble,
22637 that can be used in all tables of the document.
22638 The format is defined with the command
22641 \begin_layout Standard
22646 newcolumntype{name of format}[number of arguments]{commands}
22649 \begin_layout Standard
22650 The format name may only consist of one letter.
22675 are predefined and cannot be used.
22676 But all letters are allowed as capitals.
22679 \begin_layout Standard
22680 \begin_inset VSpace medskip
22686 \begin_layout Standard
22687 For vertically and horizontally centered multicolumn cells with a fixed
22688 width you can define the cell format
22691 \begin_layout Standard
22696 newcolumntype{M}[1]{>{
22703 \begin_layout Standard
22710 avoids the problem of hyphenating the first word, as described in section
22711 \begin_inset space ~
22715 \begin_inset CommandInset ref
22717 reference "subsec:Multiple-Lines-in"
22722 Now you can simply enter
22725 \begin_layout Standard
22731 \begin_layout Standard
22737 in the table dialog to create a multicolumn.
22740 \begin_layout Standard
22741 \begin_inset VSpace bigskip
22747 \begin_layout Standard
22748 For cells spanned by a multicolumn cell, you can define the format
22751 \begin_layout Standard
22756 newcolumntype{S}[2]{>{
22761 \begin_inset Newline newline
22765 \begin_inset Phantom HPhantom
22768 \begin_layout Plain Layout
22782 arrayrulewidth)*(1-#2))/#2}}
22785 \begin_layout Standard
22786 This format uses equation
22787 \begin_inset CommandInset ref
22793 to calculate the required width so that each spanned cell has the same
22797 \begin_layout Standard
22801 \begin_layout Standard
22804 S{width of multicolumn cell}{number of spanned columns}
22807 \begin_layout Standard
22808 as \SpecialChar LaTeX
22809 -argument of the column.
22812 \begin_layout Standard
22813 \begin_inset VSpace bigskip
22819 \begin_layout Standard
22820 For colored columns, you can define
22823 \begin_layout Standard
22828 newcolumntype{K}[1]{>{
22835 \begin_layout Standard
22837 \begin_inset Quotes eld
22841 \begin_inset Quotes erd
22844 at the end creates a column with a flexible width whose text is horizontally
22849 \begin_layout Standard
22855 \begin_layout Standard
22856 as \SpecialChar LaTeX
22860 \begin_layout Standard
22861 \begin_inset VSpace bigskip
22867 \begin_layout Standard
22869 \begin_inset space ~
22873 \begin_inset CommandInset ref
22875 reference "tab:Table-using-user-defined"
22879 use the \SpecialChar LaTeX
22883 \begin_layout Standard
22889 \begin_layout Standard
22890 for the first column and the multicolumn,
22893 \begin_layout Standard
22899 \begin_layout Standard
22900 for the last column, and
22903 \begin_layout Standard
22909 \begin_layout Standard
22910 for the cells in the second column.
22913 \begin_layout Standard
22914 \begin_inset Float table
22920 \begin_layout Plain Layout
22921 \begin_inset Caption Standard
22923 \begin_layout Plain Layout
22924 \begin_inset CommandInset label
22926 name "tab:Table-using-user-defined"
22930 Table using user-defined table formats
22938 \begin_layout Plain Layout
22940 \begin_inset Tabular
22941 <lyxtabular version="3" rows="3" columns="4">
22942 <features tabularvalignment="middle">
22943 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22944 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22945 <column alignment="center" valignment="middle">
22946 <column alignment="center" valignment="middle" special="K{red}">
22948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22951 \begin_layout Plain Layout
22952 verylongtablecellword
22957 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22960 \begin_layout Plain Layout
22961 multiple lines multicolumn
22966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22969 \begin_layout Plain Layout
22975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22978 \begin_layout Plain Layout
22986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22989 \begin_layout Plain Layout
22995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22998 \begin_layout Plain Layout
23004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23007 \begin_layout Plain Layout
23013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23016 \begin_layout Plain Layout
23024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23027 \begin_layout Plain Layout
23033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23036 \begin_layout Plain Layout
23042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23045 \begin_layout Plain Layout
23051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23054 \begin_layout Plain Layout
23073 \begin_layout Subsection
23075 \begin_inset CommandInset label
23077 name "subsec:Line-Thickness"
23082 \begin_inset Index idx
23085 \begin_layout Plain Layout
23086 Table Customization ! Line Thickness
23094 \begin_layout Standard
23095 The line thickness for all lines in a table can be adjusted with the length
23103 To set for example a line thickness of 1.5
23104 \begin_inset space \thinspace{}
23108 \begin_inset space ~
23112 \begin_inset CommandInset ref
23114 reference "tab:Table-with-1.5"
23118 , insert the command
23121 \begin_layout Standard
23128 arrayrulewidth}{1.5pt}
23131 \begin_layout Standard
23132 in \SpecialChar TeX
23133 Code before the table or table float.
23134 The changed thickness is valid for all subsequent tables.
23135 To use the default value again, set
23142 \begin_inset space \thinspace{}
23145 pt in \SpecialChar TeX
23146 Code after the table or table float.
23149 \begin_layout Standard
23153 \begin_layout Plain Layout
23159 arrayrulewidth}{1.5pt}
23165 \begin_inset Float table
23170 \begin_layout Plain Layout
23171 \begin_inset Caption Standard
23173 \begin_layout Plain Layout
23174 \begin_inset CommandInset label
23176 name "tab:Table-with-1.5"
23181 \begin_inset space \thinspace{}
23192 \begin_layout Plain Layout
23194 \begin_inset Tabular
23195 <lyxtabular version="3" rows="3" columns="3">
23196 <features tabularvalignment="middle">
23197 <column alignment="center" valignment="top">
23198 <column alignment="center" valignment="top">
23199 <column alignment="center" valignment="top">
23201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23213 \begin_layout Plain Layout
23219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23222 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23233 \begin_layout Plain Layout
23239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23242 \begin_layout Plain Layout
23248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23251 \begin_layout Plain Layout
23259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23262 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23280 \begin_layout Plain Layout
23300 \begin_layout Plain Layout
23306 arrayrulewidth}{0.4pt}
23314 \begin_layout Standard
23315 \begin_inset VSpace bigskip
23318 To set the line thickness to 1.5
23319 \begin_inset space \thinspace{}
23322 pt only for horizontal lines, as in Table
23323 \begin_inset space ~
23327 \begin_inset CommandInset ref
23329 reference "tab:Table-with-horizontal"
23333 , insert these commands in \SpecialChar TeX
23334 Code before the table or table float:
23337 \begin_layout Standard
23347 \begin_inset Newline newline
23355 \begin_inset Newline newline
23364 arrayrulewidth 1.5pt}
23365 \begin_inset Newline newline
23376 arrayrulewidth 0.4pt}}
23379 \begin_layout Standard
23380 To return to the default line thickness, insert this command in \SpecialChar TeX
23382 the table or table float:
23385 \begin_layout Standard
23397 \begin_layout Standard
23401 \begin_layout Plain Layout
23412 \begin_layout Plain Layout
23421 \begin_layout Plain Layout
23429 arrayrulewidth 1.5pt}
23432 \begin_layout Plain Layout
23442 arrayrulewidth 0.4pt}}
23448 \begin_inset Float table
23453 \begin_layout Plain Layout
23454 \begin_inset Caption Standard
23456 \begin_layout Plain Layout
23457 \begin_inset CommandInset label
23459 name "tab:Table-with-horizontal"
23464 \begin_inset space \thinspace{}
23467 pt thick horizontal lines
23475 \begin_layout Plain Layout
23477 \begin_inset Tabular
23478 <lyxtabular version="3" rows="3" columns="3">
23479 <features tabularvalignment="middle">
23480 <column alignment="center" valignment="top">
23481 <column alignment="center" valignment="top">
23482 <column alignment="center" valignment="top">
23484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23487 \begin_layout Plain Layout
23493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23496 \begin_layout Plain Layout
23502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23505 \begin_layout Plain Layout
23513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23516 \begin_layout Plain Layout
23522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23525 \begin_layout Plain Layout
23531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23534 \begin_layout Plain Layout
23542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23545 \begin_layout Plain Layout
23551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23554 \begin_layout Plain Layout
23560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23563 \begin_layout Plain Layout
23583 \begin_layout Plain Layout
23599 \begin_layout Standard
23600 \begin_inset VSpace bigskip
23603 To set the line thickness to 1.5
23604 \begin_inset space \thinspace{}
23607 pt only for vertical lines, create the following column format in the document
23608 preamble, according to the description in section
23609 \begin_inset space ~
23613 \begin_inset CommandInset ref
23615 reference "subsec:Customized-Format"
23622 \begin_layout Standard
23627 newcolumntype{V}{!{
23629 vrule width 1.5pt}}
23632 \begin_layout Standard
23634 \begin_inset space ~
23638 \begin_inset CommandInset ref
23640 reference "tab:Table-with-vertical"
23644 the \SpecialChar LaTeX
23648 \begin_layout Standard
23654 \begin_layout Standard
23655 was used for the last column and
23658 \begin_layout Standard
23664 \begin_layout Standard
23665 for the other columns.
23668 \begin_layout Standard
23669 \begin_inset Float table
23674 \begin_layout Plain Layout
23675 \begin_inset Caption Standard
23677 \begin_layout Plain Layout
23678 \begin_inset CommandInset label
23680 name "tab:Table-with-vertical"
23685 \begin_inset space \thinspace{}
23688 pt thick vertical lines
23696 \begin_layout Plain Layout
23698 \begin_inset Tabular
23699 <lyxtabular version="3" rows="3" columns="3">
23700 <features tabularvalignment="middle">
23701 <column alignment="center" valignment="top" special="Vc">
23702 <column alignment="center" valignment="top" special="Vc">
23703 <column alignment="center" valignment="top" special="VcV">
23705 <cell alignment="center" valignment="top" topline="true" usebox="none">
23708 \begin_layout Plain Layout
23714 <cell alignment="center" valignment="top" topline="true" usebox="none">
23717 \begin_layout Plain Layout
23723 <cell alignment="center" valignment="top" topline="true" usebox="none">
23726 \begin_layout Plain Layout
23734 <cell alignment="center" valignment="top" topline="true" usebox="none">
23737 \begin_layout Plain Layout
23743 <cell alignment="center" valignment="top" topline="true" usebox="none">
23746 \begin_layout Plain Layout
23752 <cell alignment="center" valignment="top" topline="true" usebox="none">
23755 \begin_layout Plain Layout
23763 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23766 \begin_layout Plain Layout
23772 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23775 \begin_layout Plain Layout
23781 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23784 \begin_layout Plain Layout
23803 \begin_layout Subsection
23805 \begin_inset Index idx
23808 \begin_layout Plain Layout
23809 Table Customization ! Dashed Lines
23817 \begin_layout Standard
23821 \begin_layout Plain Layout
23831 \begin_inset Note Note
23834 \begin_layout Plain Layout
23835 The following section will only be displayed when the \SpecialChar LaTeX
23848 \begin_layout Standard
23849 \begin_inset Float table
23855 \begin_layout Plain Layout
23856 \begin_inset Caption Standard
23858 \begin_layout Plain Layout
23859 \begin_inset CommandInset label
23861 name "tab:Table-with-dashed"
23865 Table with dashed lines
23873 \begin_layout Plain Layout
23875 \begin_inset Tabular
23876 <lyxtabular version="3" rows="5" columns="5">
23877 <features tabularvalignment="middle">
23878 <column alignment="center" valignment="top">
23879 <column alignment="center" valignment="top">
23880 <column alignment="center" valignment="top" special=":c">
23881 <column alignment="center" valignment="top">
23882 <column alignment="center" valignment="top">
23884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23887 \begin_layout Plain Layout
23893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23896 \begin_layout Plain Layout
23902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23905 \begin_layout Plain Layout
23911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23914 \begin_layout Plain Layout
23920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23923 \begin_layout Plain Layout
23931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23934 \begin_layout Plain Layout
23940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23943 \begin_layout Plain Layout
23949 <cell alignment="center" valignment="top" topline="true" usebox="none">
23952 \begin_layout Plain Layout
23958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23961 \begin_layout Plain Layout
23967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23970 \begin_layout Plain Layout
23978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23981 \begin_layout Plain Layout
23985 \begin_layout Plain Layout
23999 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24002 \begin_layout Plain Layout
24008 <cell alignment="center" valignment="top" usebox="none">
24011 \begin_layout Plain Layout
24017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24020 \begin_layout Plain Layout
24026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24029 \begin_layout Plain Layout
24037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24040 \begin_layout Plain Layout
24044 \begin_layout Plain Layout
24058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24061 \begin_layout Plain Layout
24067 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24070 \begin_layout Plain Layout
24076 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24079 \begin_layout Plain Layout
24085 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24088 \begin_layout Plain Layout
24096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24099 \begin_layout Plain Layout
24105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24108 \begin_layout Plain Layout
24114 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24117 \begin_layout Plain Layout
24123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24126 \begin_layout Plain Layout
24132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24135 \begin_layout Plain Layout
24154 \begin_layout Standard
24156 does not natively support dashed lines, so you have to use \SpecialChar TeX
24158 As a prerequisite the \SpecialChar LaTeX
24164 \begin_inset Index idx
24167 \begin_layout Plain Layout
24169 -packages ! arydshln
24174 must be loaded in the document preamble with the command
24177 \begin_layout Standard
24182 usepackage{arydshln}
24185 \begin_layout Standard
24186 To make a vertical line dashed, enter the colon
24187 \begin_inset Quotes eld
24191 \begin_inset Quotes erd
24194 together with the character for the horizontal alignment as \SpecialChar LaTeX
24196 the table cell dialog.
24199 \begin_layout Standard
24200 For a horizontal dashed line add the command
24203 \begin_layout Standard
24211 \begin_layout Standard
24212 in \SpecialChar TeX
24213 Code as first element of the first cell in the table row.
24216 \begin_layout Standard
24217 For dashed multicolumn lines use the command
24220 \begin_layout Standard
24225 cdashline{line number
24230 \begin_layout Standard
24231 in \SpecialChar TeX
24232 Code as the first element of the first cell in the table row.
24233 If you have for example a multicolumn spanning columns 2 to 4 and you want
24234 to have a dashed line above, add the command
24237 \begin_layout Standard
24245 \begin_layout Standard
24246 as the first element of the first cell in the row of the multicolumn.
24249 \begin_layout Standard
24250 \begin_inset VSpace bigskip
24256 \begin_layout Standard
24258 \begin_inset space ~
24262 \begin_inset CommandInset ref
24264 reference "tab:Table-with-dashed"
24269 \begin_inset Quotes eld
24277 \begin_inset Quotes erd
24280 as \SpecialChar LaTeX
24281 argument of the third column.
24282 The \SpecialChar TeX
24289 was inserted in the first cell of the third row and the \SpecialChar TeX
24291 \begin_inset Newline newline
24300 was inserted in the first cell of the fourth row.
24303 \begin_layout Standard
24304 \begin_inset VSpace bigskip
24310 \begin_layout Standard
24311 Tables with dashed lines can also be colored as shown by Table
24312 \begin_inset space ~
24316 \begin_inset CommandInset ref
24318 reference "tab:Colored-table-with"
24325 \begin_layout Standard
24329 \begin_layout Plain Layout
24335 arrayrulewidth}{1pt}
24341 \begin_inset Note Note
24344 \begin_layout Plain Layout
24345 thicker lines for better visualization of the line color
24353 \begin_layout Standard
24357 \begin_layout Plain Layout
24361 dashgapcolor{green}
24367 \begin_inset Note Note
24370 \begin_layout Plain Layout
24371 color gaps between dashes green
24379 \begin_layout Standard
24383 \begin_layout Plain Layout
24394 \begin_layout Plain Layout
24403 \begin_layout Plain Layout
24407 arrayrulecolor{red}
24411 arrayrulecolor{black}}
24417 \begin_inset Note Note
24420 \begin_layout Plain Layout
24421 color horizontal, dashed lines red
24429 \begin_layout Standard
24433 \begin_layout Plain Layout
24444 \begin_layout Plain Layout
24453 \begin_layout Plain Layout
24457 arrayrulecolor{yellow}
24461 arrayrulecolor{black}}
24467 \begin_inset Note Note
24470 \begin_layout Plain Layout
24471 color partial horizontal, dashed lines yellow
24479 \begin_layout Standard
24480 \begin_inset Float table
24486 \begin_layout Plain Layout
24487 \begin_inset Caption Standard
24489 \begin_layout Plain Layout
24490 \begin_inset CommandInset label
24492 name "tab:Colored-table-with"
24496 Colored table with dashed lines
24504 \begin_layout Plain Layout
24506 \begin_inset Tabular
24507 <lyxtabular version="3" rows="5" columns="5">
24508 <features tabularvalignment="middle">
24509 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24510 <column alignment="center" valignment="top" width="0pt">
24511 <column alignment="center" valignment="top" width="0pt" special=":c">
24512 <column alignment="center" valignment="top">
24513 <column alignment="center" valignment="top">
24515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24518 \begin_layout Plain Layout
24524 <cell alignment="center" valignment="top" topline="true" usebox="none">
24527 \begin_layout Plain Layout
24533 <cell alignment="center" valignment="top" topline="true" usebox="none">
24536 \begin_layout Plain Layout
24542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24545 \begin_layout Plain Layout
24551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24554 \begin_layout Plain Layout
24562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24565 \begin_layout Plain Layout
24571 <cell alignment="center" valignment="top" topline="true" usebox="none">
24574 \begin_layout Plain Layout
24580 <cell alignment="center" valignment="top" topline="true" usebox="none">
24583 \begin_layout Plain Layout
24589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24592 \begin_layout Plain Layout
24598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24601 \begin_layout Plain Layout
24609 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24612 \begin_layout Plain Layout
24616 \begin_layout Plain Layout
24629 \begin_layout Plain Layout
24643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24646 \begin_layout Plain Layout
24652 <cell alignment="center" valignment="top" usebox="none">
24655 \begin_layout Plain Layout
24661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24664 \begin_layout Plain Layout
24670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24673 \begin_layout Plain Layout
24681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24684 \begin_layout Plain Layout
24688 \begin_layout Plain Layout
24702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24705 \begin_layout Plain Layout
24711 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24714 \begin_layout Plain Layout
24720 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24723 \begin_layout Plain Layout
24729 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24732 \begin_layout Plain Layout
24740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24743 \begin_layout Plain Layout
24749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24752 \begin_layout Plain Layout
24758 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24761 \begin_layout Plain Layout
24767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24770 \begin_layout Plain Layout
24776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24779 \begin_layout Plain Layout
24783 \begin_layout Plain Layout
24810 \begin_layout Standard
24814 \begin_layout Plain Layout
24828 \begin_inset Note Note
24831 \begin_layout Plain Layout
24840 \begin_layout Standard
24844 \begin_layout Plain Layout
24858 \begin_inset Note Note
24861 \begin_layout Plain Layout
24870 \begin_layout Standard
24874 \begin_layout Plain Layout
24884 \begin_inset Note Note
24887 \begin_layout Plain Layout
24896 \begin_layout Standard
24900 \begin_layout Plain Layout
24906 arrayrulewidth}{0.4pt}
24912 \begin_inset Note Note
24915 \begin_layout Plain Layout
24924 \begin_layout Standard
24925 The coloring of lines, columns and lines works as decribed in section
24926 \begin_inset space ~
24930 \begin_inset CommandInset ref
24932 reference "sec:Colored-Tables"
24937 Coloring horizontal lines works analogically as described there as well,
24938 one only needs to replace in the commands
24962 ; so one uses the command
24965 \begin_layout Standard
24975 \begin_inset Newline newline
24983 \begin_inset Newline newline
24987 \begin_inset Phantom HPhantom
24990 \begin_layout Plain Layout
24991 \begin_inset space ~
25001 arrayrulecolor{red}
25005 arrayrulecolor{black}}
25008 \begin_layout Standard
25018 \begin_layout Standard
25028 \begin_inset Newline newline
25036 \begin_inset Newline newline
25040 \begin_inset Phantom HPhantom
25043 \begin_layout Plain Layout
25044 \begin_inset space ~
25054 arrayrulecolor{red}
25058 arrayrulecolor{black}}
25061 \begin_layout Standard
25062 To get back the black line color, one needs to insert the following commands
25063 as \SpecialChar TeX
25064 Code behind the table:
25067 \begin_layout Standard
25075 \begin_layout Standard
25087 \begin_layout Standard
25095 \begin_layout Standard
25107 \begin_layout Standard
25108 To color the gaps between the dashes the command
25111 \begin_layout Standard
25116 dashgapcolor{color}
25119 \begin_layout Standard
25120 can be used in front of a table as \SpecialChar TeX
25122 color is hereby the name of a defined color.
25126 \begin_layout Standard
25134 \begin_layout Standard
25135 unsets the changes made by
25144 \begin_layout Standard
25145 \begin_inset Note Greyedout
25148 \begin_layout Plain Layout
25154 : If there are multiple commands in a cell, the command of
25158 needs to be the first one in the cell.
25164 \begin_inset space ~
25168 \begin_inset CommandInset ref
25170 reference "tab:Colored-table-with"
25194 \begin_layout Standard
25195 \begin_inset Note Greyedout
25198 \begin_layout Plain Layout
25204 The \SpecialChar LaTeX
25209 must be loaded in the document preamble before the \SpecialChar LaTeX
25215 \begin_inset Index idx
25218 \begin_layout Plain Layout
25220 -packages ! colortbl
25233 \begin_layout Standard
25237 \begin_layout Plain Layout
25247 \begin_inset Note Note
25250 \begin_layout Plain Layout
25251 The following will be displayed when the \SpecialChar LaTeX
25264 \begin_layout Standard
25265 You need to install the package
25269 to see the content of this section in the output.
25272 \begin_layout Standard
25276 \begin_layout Plain Layout
25288 \begin_layout Standard
25289 For more information about dashed lines see the documentation of
25294 \begin_inset CommandInset citation
25303 \begin_layout Chapter
25305 \begin_inset CommandInset label
25312 \begin_inset Index idx
25315 \begin_layout Plain Layout
25324 \begin_layout Section
25326 \begin_inset CommandInset label
25328 name "sec:FloatIntroduction"
25333 \begin_inset Index idx
25336 \begin_layout Plain Layout
25337 Floats ! Introduction
25345 \begin_layout Standard
25346 A float is a block of text associated with some sort of label, which doesn't
25347 have a fixed location.
25349 \begin_inset Quotes eld
25353 \begin_inset Quotes erd
25356 forward or backward a page or two, to wherever it fits best.
25364 \begin_inset space ~
25369 are also floats because they can float to the next page when there are
25370 too many notes on the page.
25373 \begin_layout Standard
25374 Floats allow a high quality layout.
25375 Images and tables can be spread evenly among the pages to avoid white space
25376 and pages without text.
25377 As the floating often destroys the context between the text and the image/table
25378 , every float can be referenced in the text.
25379 Floats are therefore numbered.
25380 Referencing is described in section
25381 \begin_inset space ~
25385 \begin_inset CommandInset ref
25387 reference "sec:Referencing-Floats"
25394 \begin_layout Standard
25395 To insert a float, use the menu
25397 Insert\SpecialChar menuseparator
25403 arg "float-insert figure"
25409 arg "float-insert table"
25417 inset, a box with a label.
25418 The label will automatically be translated to the document language in
25420 After the label you can insert the caption text.
25421 The image or table is inserted above or below the caption in a separate
25422 paragraph within the float.
25423 More about the caption placement is contained in section
25424 \begin_inset space ~
25428 \begin_inset CommandInset ref
25430 reference "sec:Caption-Placement"
25435 To keep your \SpecialChar LyX
25436 document readable, you can open and close the float box by
25437 left-clicking on the box label.
25438 A closed float box looks like this:
25439 \begin_inset Graphics
25440 filename clipart/float.png
25442 scaleBeforeRotation
25446 – a gray button with a red label.
25449 \begin_layout Standard
25450 It is recommended that you insert floats as separate standard paragraphs
25451 to avoid possible \SpecialChar LaTeX
25452 -errors that can occur when the surrounding text is specially
25456 \begin_layout Standard
25457 Existing figures or tables can be put into a float by highlighting them
25458 and then pressing the corresponding toolbar button for a new float.
25461 \begin_layout Section
25465 \begin_layout Standard
25466 Besides figure and table floats that are described in sections
25467 \begin_inset space ~
25471 \begin_inset CommandInset ref
25473 reference "sec:Figure-Floats"
25478 \begin_inset CommandInset ref
25480 reference "sec:Table-Floats"
25484 respectively, \SpecialChar LyX
25485 offers the float types
25494 The latter are explained in sec.
25495 \begin_inset space \thinspace{}
25499 \begin_inset CommandInset ref
25501 reference "sec:Wrap-Floats"
25508 \begin_layout Subsection
25510 \begin_inset Index idx
25513 \begin_layout Plain Layout
25514 Floats ! Algorithms
25522 \begin_layout Standard
25523 \begin_inset Float algorithm
25529 \begin_layout Plain Layout
25530 \begin_inset Caption Standard
25532 \begin_layout Plain Layout
25533 \begin_inset CommandInset label
25535 name "alg:Example-Algorithm-float"
25539 Example Algorithm float
25547 \begin_layout LyX-Code
25549 \begin_inset Newline newline
25552 Sum:= Sum + A(I); /*comment*/
25553 \begin_inset Newline newline
25557 \begin_inset VSpace -4mm
25568 \begin_layout Standard
25569 This float type is inserted with the menu
25571 Insert\SpecialChar menuseparator
25572 Float\SpecialChar menuseparator
25576 It is used for program codes and descriptions of algorithms and can be
25577 seen as an alternative to program code listings that are explained in chapter
25578 \begin_inset space ~
25582 \begin_inset CommandInset ref
25584 reference "cha:Program-Code-Listings"
25589 A possible environment for algorithms is the
25594 , described in \SpecialChar LyX
25601 \begin_inset space ~
25605 \begin_inset CommandInset ref
25607 reference "alg:Example-Algorithm-float"
25611 is an example of an algorithm float where -4
25612 \begin_inset space \thinspace{}
25615 mm vertical space was added at the end of the float to have the bottom rule
25616 exactly below the last text line.
25619 \begin_layout Standard
25620 The float label is not automatically translated into the document language.
25621 If your document is not in English, you have to do this manually by adding
25622 the following line to the document preamble
25627 \begin_layout Standard
25632 floatname{algorithm}{your
25633 \begin_inset space ~
25639 \begin_layout Standard
25643 \begin_inset space ~
25649 \begin_inset Quotes eld
25657 \begin_inset Quotes erd
25663 \begin_layout Standard
25664 To insert the list of algorithms you can use the menu
25666 Insert\SpecialChar menuseparator
25668 \begin_inset space \thinspace{}
25672 \begin_inset space \thinspace{}
25675 TOC\SpecialChar menuseparator
25678 when your document has the same language as \SpecialChar LyX
25680 In other cases use this command in \SpecialChar TeX
25684 \begin_layout Standard
25689 listof{algorithm}{your
25690 \begin_inset space ~
25696 \begin_layout Standard
25700 \begin_inset space ~
25706 \begin_inset Quotes eld
25714 \begin_inset Quotes erd
25720 \begin_layout Standard
25721 Algorithm floats are not by default numbered in the scheme
25722 \begin_inset Quotes eld
25726 \begin_inset Quotes erd
25729 as is the case for table and figure floats in many document-classes.
25730 To number algorithm floats in the same scheme, add this command to your
25734 \begin_layout Standard
25739 numberwithin{algorithm}{chapter}
25742 \begin_layout Standard
25743 To be able to use the command
25752 \begin_inset space ~
25757 in the document settings the option
25760 \begin_inset space ~
25764 \begin_inset space ~
25768 \begin_inset space ~
25776 \begin_layout Section
25778 \begin_inset Index idx
25781 \begin_layout Plain Layout
25790 \begin_layout Standard
25791 Floats are usually numbered either independently from the sections the floats
25792 are in, or in the scheme
25793 \begin_inset Quotes eld
25797 \begin_inset Quotes erd
25801 \begin_inset Quotes eld
25805 \begin_inset Quotes erd
25809 This depends on the document class used.
25812 \begin_layout Standard
25813 To change section-independent numbering, you can use this command in the
25817 \begin_layout Standard
25829 \begin_layout Standard
25836 is the command that prints the table number.
25837 For figure floats, the command would be
25850 in the command above prints the table number as a small roman number.
25853 \begin_layout Standard
25854 To change the numbering scheme for example to
25855 \begin_inset Quotes eld
25859 \begin_inset Quotes erd
25862 , use this command in the preamble:
25865 \begin_layout Standard
25870 numberwithin{table}{subsection}
25873 \begin_layout Standard
25874 To be able to use the command
25883 \begin_inset space ~
25888 in the document settings the option
25891 \begin_inset space ~
25895 \begin_inset space ~
25899 \begin_inset space ~
25907 \begin_layout Standard
25908 Please also have a look at section
25909 \begin_inset space ~
25913 \begin_inset CommandInset ref
25915 reference "subsec:Footnote-Numbering"
25919 for the details and important notes about the numbering commands.
25922 \begin_layout Section
25924 \begin_inset CommandInset label
25926 name "sec:Referencing-Floats"
25931 \begin_inset Index idx
25934 \begin_layout Plain Layout
25935 Floats ! References
25941 \begin_inset Index idx
25944 \begin_layout Plain Layout
25945 References ! to Floats
25953 \begin_layout Standard
25954 To reference a float, insert a label into its caption using the menu
25956 Insert\SpecialChar menuseparator
25959 or the toolbar button
25966 A grey label box like this one:
25967 \begin_inset Graphics
25968 filename clipart/label.png
25969 scaleBeforeRotation
25973 will be inserted and the label window pops up asking for the label text.
25975 offers as text the first words of the caption with a prefix.
25976 The prefix depends on the float type, e.
25977 \begin_inset space \thinspace{}
25981 \begin_inset space \space{}
25984 for figure floats the prefix will be "
25991 \begin_layout Standard
25992 The label is used as anchor and name for the reference.
25993 You can refer to the label using the menu
25995 Insert\SpecialChar menuseparator
25998 or the toolbar button
26001 arg "dialog-show-new-inset ref"
26005 The cross-reference window appears showing all labels of the document.
26006 If you have multiple \SpecialChar LyX
26007 documents opened, choose the one you are working
26008 on from the drop-list at the top of the dialog.
26009 You can now sort the labels alphabetically and then choose one.
26010 A grey cross-reference box like this one:
26011 \begin_inset Graphics
26012 filename clipart/reference.png
26013 scaleBeforeRotation
26018 At the position of the cross-reference box the float number will appear
26022 \begin_layout Standard
26023 It is recommended that you use a protected space between the cross-reference
26024 name and its number to avoid line breaks between them.
26025 If a cross-reference refers to a non-existing label, you will see two question
26026 marks in the output instead of the reference.
26029 \begin_layout Standard
26030 You can change labels at any time by clicking on the label box.
26031 References to the changed label will automatically update their links to
26032 the new label text.
26035 \begin_layout Standard
26039 \begin_inset space ~
26043 \begin_inset space ~
26048 in the cross-reference window sets the cursor before the referred label.
26049 The button text changes then to Go
26050 \begin_inset space ~
26053 Back and you can use it to set the cursor back to the cross-reference.
26056 \begin_layout Subsection
26057 Cross-Reference Formats
26058 \begin_inset CommandInset label
26060 name "subsec:Cross-Reference-Formats"
26065 \begin_inset Index idx
26068 \begin_layout Plain Layout
26069 References ! Formats
26077 \begin_layout Standard
26078 There are six varieties of cross-references:
26081 \begin_layout Description
26082 <reference>: prints the float number, this is the default:
26083 \begin_inset CommandInset ref
26085 reference "fig:Two-distorted-images"
26092 \begin_layout Description
26093 (<reference>): prints the float number within two parentheses, this is the
26094 style normally used to reference formulas, especially when the reference
26096 \begin_inset Quotes eld
26100 \begin_inset Quotes erd
26104 \begin_inset CommandInset ref
26113 \begin_layout Description
26114 <page>: prints the page number: Page
26115 \begin_inset space ~
26119 \begin_inset CommandInset ref
26120 LatexCommand pageref
26121 reference "fig:Two-distorted-images"
26128 \begin_layout Description
26130 \begin_inset space ~
26134 \begin_inset space ~
26137 <page>: prints the text "on page" and the page number:
26138 \begin_inset CommandInset ref
26139 LatexCommand vpageref
26140 reference "fig:Two-distorted-images"
26147 \begin_layout Description
26149 \begin_inset space ~
26153 \begin_inset space ~
26157 \begin_inset space ~
26160 <page>: prints the float number, the text "on page", and the page number:
26162 \begin_inset CommandInset ref
26164 reference "fig:Two-distorted-images"
26171 \begin_layout Description
26173 \begin_inset space ~
26176 reference: prints a self-defined cross-reference format.
26177 \begin_inset Newline newline
26181 \begin_inset Note Greyedout
26184 \begin_layout Plain Layout
26189 This feature is only available when you have the \SpecialChar LaTeX
26199 \begin_inset Index idx
26202 \begin_layout Plain Layout
26204 -packages ! prettyref
26210 \begin_inset Index idx
26213 \begin_layout Plain Layout
26215 -packages ! refstyle
26226 \begin_inset Newline newline
26229 You can select which \SpecialChar LaTeX
26230 -package should be used for this feature by setting
26233 Use refstyle (not prettyref) for cross-references
26237 Document\SpecialChar menuseparator
26238 Settings\SpecialChar menuseparator
26242 The format is specified by adding the command
26254 (refstyle) to the preamble of the document.
26255 For example redefining all references to figures (which have the label
26257 \begin_inset Quotes eld
26265 \begin_inset Quotes erd
26268 ) can be done with this command
26269 \begin_inset Newline newline
26276 newref{fig}{refcmd={Image on page
26281 \begin_inset Newline newline
26284 For more information about the format, have a look at the package documentations
26286 \begin_inset CommandInset citation
26288 key "prettyref,refstyle"
26295 \begin_layout Description
26297 \begin_inset space ~
26300 reference: prints the caption of the reference:
26301 \begin_inset CommandInset ref
26302 LatexCommand nameref
26303 reference "fig:Two-distorted-images"
26310 \begin_layout Standard
26315 will not print the page number if the label is on the previous, the same,
26318 \begin_inset space \thinspace{}
26322 \begin_inset space \space{}
26326 \begin_inset Quotes eld
26334 \begin_inset Quotes erd
26340 <reference> on page <page>
26342 will not print anything about the page if the label is on the same page.
26345 \begin_layout Standard
26346 The number and current page of the part of the document referred to in the
26347 output is automatically calculated by \SpecialChar LaTeX
26349 The varieties are adjusted in the field
26353 of the cross-reference window that appears when you click on the cross-referenc
26357 \begin_layout Standard
26358 \begin_inset Note Greyedout
26361 \begin_layout Plain Layout
26366 It is recommended to use the \SpecialChar LaTeX
26372 \begin_inset Index idx
26375 \begin_layout Plain Layout
26377 -packages ! refstyle
26387 \begin_inset Index idx
26390 \begin_layout Plain Layout
26392 -packages ! prettyref
26397 does not know all of \SpecialChar LyX
26398 's possible label shortcuts
26402 \begin_layout Plain Layout
26403 \begin_inset Quotes eld
26407 \begin_inset Quotes erd
26410 is for example \SpecialChar LyX
26411 's shortcut for labels in figure captions.
26416 and is not internationalized.
26424 \begin_layout Subsection
26425 Automatic Reference Naming
26426 \begin_inset Index idx
26429 \begin_layout Plain Layout
26430 References ! Automatic Reference Naming
26438 \begin_layout Standard
26439 The \SpecialChar LaTeX
26445 \begin_inset Index idx
26448 \begin_layout Plain Layout
26450 -packages ! hyperref
26455 , that is enabled in the
26463 dialog, provides a very useful feature that cross-references automatically
26464 include the name of the referenced floats (or text parts like
26469 So you will save having to write e.
26470 \begin_inset space \thinspace{}
26474 \begin_inset space \space{}
26478 \begin_inset Quotes eld
26482 \begin_inset Quotes erd
26485 before every reference to a figure.
26486 To use this feature, enable
26490 and insert this line to the \SpecialChar LaTeX
26494 \begin_layout Standard
26510 \begin_layout Standard
26511 When you prefer other reference names than the default ones, for example
26512 you want instead of
26513 \begin_inset Quotes eld
26517 \begin_inset Quotes erd
26521 \begin_inset Quotes eld
26525 \begin_inset space \thinspace{}
26529 \begin_inset Quotes eld
26532 , you can redefine the name by inserting this in the preamble:
26535 \begin_layout Standard
26546 sectionautorefname}
26547 \begin_inset Newline newline
26551 \begin_inset Phantom HPhantom
26554 \begin_layout Plain Layout
26557 \begin_inset space ~
26570 \begin_layout Standard
26571 When you are using another document language than English, replace
26572 \begin_inset Newline newline
26587 , where *** is the name of the language used.
26590 \begin_layout Standard
26591 To get automatic names, but not for certain reference types, for example
26592 not for equations, use this preamble code:
26595 \begin_layout Standard
26606 equationautorefname}[1]{}}
26609 \begin_layout Standard
26610 More about this topic can be found in
26615 \begin_inset CommandInset citation
26624 \begin_layout Standard
26625 \begin_inset Note Greyedout
26628 \begin_layout Plain Layout
26633 Automatic reference naming cannot be used when you use cross-references
26637 \begin_inset space ~
26642 style, as described in section
26643 \begin_inset space ~
26647 \begin_inset CommandInset ref
26649 reference "subsec:Cross-Reference-Formats"
26661 \begin_layout Standard
26666 manual is an example where automatic reference naming is used.
26669 \begin_layout Subsection
26671 \begin_inset CommandInset label
26673 name "subsec:Reference-Position"
26678 \begin_inset Index idx
26681 \begin_layout Plain Layout
26682 References ! Reference Position
26690 \begin_layout Standard
26696 \begin_inset Index idx
26699 \begin_layout Plain Layout
26701 -packages ! hyperref
26714 dialog to link cross-references in the output, you will see that clicking
26715 on an image float reference jumps to the image label.
26716 The caption will be the first text part on the screen, so that you cannot
26717 see the image without scrolling.
26718 This is because the reference link anchor is placed at the position of
26720 With the use of the package
26725 \begin_inset Index idx
26728 \begin_layout Plain Layout
26735 , which is part of the \SpecialChar LaTeX
26741 \begin_inset Index idx
26744 \begin_layout Plain Layout
26746 -packages ! oberdiek
26751 , the link anchor is placed at the beginning of a float.
26752 To use this feature for figure floats, load
26756 in the document preamble with the line
26759 \begin_layout Standard
26764 usepackage[figure]{hypcap}
26767 \begin_layout Standard
26772 for all float types but this is not recommended for stability reasons.
26773 For more information, have a look at
26778 \begin_inset CommandInset citation
26787 \begin_layout Standard
26788 \begin_inset Note Greyedout
26791 \begin_layout Plain Layout
26800 has no effect on references to subfigures.
26808 \begin_layout Section
26810 \begin_inset CommandInset label
26812 name "sec:Float-Placement"
26817 \begin_inset Index idx
26820 \begin_layout Plain Layout
26829 \begin_layout Standard
26830 Right-clicking on a float-box and clicking on
26834 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26836 positioning the float.
26837 \begin_inset Newline newline
26843 \begin_inset space ~
26848 is only useful for two-column documents: If you select it, the float will
26849 span both columns on the page instead of being confined to just one.
26850 \begin_inset Newline newline
26856 \begin_inset space ~
26861 is used to rotate floats, see section
26862 \begin_inset CommandInset ref
26864 reference "sec:Rotated-Floats"
26871 \begin_layout Standard
26872 You can use one or more of the following options in the float dialog to
26873 set the placement for a particular float when you uncheck the option
26876 \begin_inset space ~
26880 \begin_inset space ~
26888 \begin_layout Description
26890 \begin_inset space ~
26894 \begin_inset space ~
26897 possible try to place the float on the position where it has been inserted
26900 \begin_layout Description
26902 \begin_inset space ~
26906 \begin_inset space ~
26909 page try to place the float at the top of the current page
26912 \begin_layout Description
26914 \begin_inset space ~
26918 \begin_inset space ~
26921 page try to place the float at the bottom of the current page
26924 \begin_layout Description
26926 \begin_inset space ~
26930 \begin_inset space ~
26933 floats try to place the float on its own page
26936 \begin_layout Standard
26937 The order of the above option is
26941 used by \SpecialChar LaTeX
26943 That means, if you use the default placement, \SpecialChar LaTeX
26947 \begin_inset space ~
26951 \begin_inset space ~
26959 \begin_inset space ~
26963 \begin_inset space ~
26968 , and then the others.
26969 If you do not use the default, \SpecialChar LaTeX
26970 will try only the checked options but in
26973 \begin_inset space ~
26976 placements is possible the procedure is internally repeated trying to put
26977 the float on the following page.
26980 \begin_layout Standard
26981 By default, each option has its own rules:
26984 \begin_layout Labeling
26985 \labelwidthstring 00.00.0000
26989 \begin_inset space ~
26993 \begin_inset space ~
26998 only floats occupying less than 70
26999 \begin_inset space \thinspace{}
27002 % of the page can be placed at the top of a page (
27011 \begin_layout Labeling
27012 \labelwidthstring 00.00.0000
27016 \begin_inset space ~
27020 \begin_inset space ~
27025 : only floats occupying less than 30
27026 \begin_inset space \thinspace{}
27029 % of the page can be placed at the bottom of a page.
27039 \begin_layout Labeling
27040 \labelwidthstring 00.00.0000
27044 \begin_inset space ~
27048 \begin_inset space ~
27053 : only if more than 50
27054 \begin_inset space \thinspace{}
27057 % of the page is occupied by floats, several floats can be set together
27068 \begin_layout Standard
27069 If you don't like these rules, you can ignore them by using the additional
27073 \begin_inset space ~
27078 \begin_inset space ~
27084 \begin_inset Newline newline
27087 You can also redefine the rules with \SpecialChar LaTeX
27088 -commands that are given in parentheses
27089 after the rules description above.
27090 To increase for example the often too small default of the bottom-rule
27092 \begin_inset space \thinspace{}
27095 % of the page, add this line to your document preamble:
27098 \begin_layout Standard
27105 bottomfraction}{0.5}
27108 \begin_layout Standard
27109 Sometimes you might need, under all circumstances, a float to be placed
27110 exactly at the position where it is inserted.
27111 For this case you can use the option
27114 \begin_inset space ~
27120 Use this option very rarely and only if the document is almost ready to
27121 be printed, because the float is then no longer able to
27122 \begin_inset Quotes eld
27126 \begin_inset Quotes erd
27129 when you change your document and this will often destroy the page layout.
27132 \begin_layout Standard
27133 There are no placement options for text wrap floats, because they are always
27134 surrounded by the text of a certain paragraph.
27135 \begin_inset VSpace bigskip
27141 \begin_layout Standard
27142 Sometimes you have the problem that a float is placed at the top of a page
27143 while its corresponding section starts at the middle of the page, so that
27144 the reader could think the float is part of the previous section.
27145 To avoid this the \SpecialChar LaTeX
27153 It suppresses a given float placement for the page where it is inserted
27154 and can therefore be used to avoid floats being set before a section starts.
27155 To get this, add these commands to your document preamble:
27158 \begin_layout Standard
27168 \begin_inset Newline newline
27182 \begin_layout Standard
27183 You can define the same for all section headings, like chapters and subsections.
27184 This definition is not recommended to be used for small text parts like
27185 subsubsections because \SpecialChar LaTeX
27186 may then have problems finding a suitable placement.
27189 \begin_layout Standard
27190 \begin_inset VSpace bigskip
27193 In some cases it is required to have all figures/tables at the end of the
27195 For this purpose the \SpecialChar LaTeX
27201 \begin_inset Index idx
27204 \begin_layout Plain Layout
27206 -packages ! endfloat
27212 It puts all figure and table floats at the end of the document into their
27214 At the original float position a text hint like
27215 \begin_inset Quotes eld
27221 \begin_inset space ~
27227 \begin_inset Quotes erd
27231 The endfloat-package is loaded in the preamble with the line
27234 \begin_layout Standard
27239 usepackage[options]{endfloat}
27242 \begin_layout Standard
27243 There are various package options to format the created figure/table sections.
27244 For more information we refer you to the
27249 \begin_inset CommandInset citation
27256 \begin_inset Newline newline
27260 \begin_inset Note Greyedout
27263 \begin_layout Plain Layout
27268 doesn't provide an automatic translation for the text hint, you have to
27269 do this manually, see section
27270 \begin_inset space ~
27274 \begin_inset CommandInset citation
27286 \begin_inset Newline newline
27290 \begin_inset Note Greyedout
27293 \begin_layout Plain Layout
27298 There is currently a bug in
27302 when the caption contains a German
27303 \begin_inset Quotes eld
27307 \begin_inset Quotes erd
27311 Use in this case the command
27312 \begin_inset Quotes eld
27322 \begin_inset Quotes erd
27325 in \SpecialChar TeX
27327 \begin_inset Quotes eld
27331 \begin_inset Quotes erd
27342 \begin_layout Standard
27343 \begin_inset VSpace bigskip
27346 For more details about float placements, have a look at \SpecialChar LaTeX
27348 \begin_inset CommandInset citation
27350 key "latexcompanion,latexguide,latexbook"
27357 \begin_layout Section
27359 \begin_inset CommandInset label
27361 name "sec:Rotated-Floats"
27366 \begin_inset Index idx
27369 \begin_layout Plain Layout
27378 \begin_layout Standard
27379 Especially for wide tables you might have floats rotated.
27380 To rotate a whole float including the caption, right-click on the float-box
27384 \begin_inset space ~
27392 \begin_layout Standard
27393 Rotated floats are always placed on a page of their own (or column of their
27394 own; in case you have a multi-column document).
27395 You can let them span several columns using the float settings option
27398 \begin_inset space ~
27404 Floats are rotated so that you can read them from the outside margin.
27405 To force a certain rotation direction for all pages, you can add either
27414 to the document class options.
27417 \begin_layout Standard
27418 Referencing rotated floats is the same as for normal floats, the caption
27419 format is also the same: Table
27420 \begin_inset space ~
27424 \begin_inset CommandInset ref
27426 reference "tab:Rotated-table"
27430 is an example of a rotated table float.
27433 \begin_layout Standard
27434 \begin_inset Note Greyedout
27437 \begin_layout Plain Layout
27442 Not all DVI-viewers are able to display rotated floats.
27450 \begin_layout Standard
27451 \begin_inset Float table
27456 \begin_layout Plain Layout
27457 \begin_inset Caption Standard
27459 \begin_layout Plain Layout
27460 \begin_inset CommandInset label
27462 name "tab:Rotated-table"
27474 \begin_layout Plain Layout
27476 \begin_inset Tabular
27477 <lyxtabular version="3" rows="1" columns="5">
27478 <features tabularvalignment="middle">
27479 <column alignment="center" valignment="top">
27480 <column alignment="center" valignment="top">
27481 <column alignment="center" valignment="top">
27482 <column alignment="center" valignment="top">
27483 <column alignment="center" valignment="top">
27485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27488 \begin_layout Plain Layout
27494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27497 \begin_layout Plain Layout
27503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27506 \begin_layout Plain Layout
27512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27515 \begin_layout Plain Layout
27521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27524 \begin_layout Plain Layout
27543 \begin_layout Section
27545 \begin_inset Index idx
27548 \begin_layout Plain Layout
27557 \begin_layout Standard
27558 Subfloats are for example used when a figure consists of several images.
27559 They are created by inserting a float into an existing float.
27560 The placement of the subfloats can be controlled in the same way as for
27561 paragraphs as shown in table
27562 \begin_inset space ~
27566 \begin_inset CommandInset ref
27568 reference "tab:Two-subtables-side"
27573 \begin_inset CommandInset ref
27575 reference "tab:Two-subtables-upon"
27582 \begin_layout Standard
27583 Referencing subfloats works as for normal floats: Table
27584 \begin_inset space ~
27588 \begin_inset CommandInset ref
27590 reference "tab:This-is-subtable-a"
27595 \begin_inset CommandInset ref
27597 reference "tab:This-is-subtable-b"
27601 are subtables of table
27602 \begin_inset space ~
27606 \begin_inset CommandInset ref
27608 reference "tab:Two-subtables-side"
27615 \begin_layout Standard
27616 \begin_inset Float table
27621 \begin_layout Plain Layout
27622 \begin_inset Caption Standard
27624 \begin_layout Plain Layout
27625 \begin_inset CommandInset label
27627 name "tab:Two-subtables-side"
27631 Two subtables placed side by side.
27639 \begin_layout Plain Layout
27641 \begin_inset space \hfill{}
27645 \begin_inset Float table
27650 \begin_layout Plain Layout
27651 \begin_inset Caption Standard
27653 \begin_layout Plain Layout
27654 \begin_inset CommandInset label
27656 name "tab:This-is-subtable-a"
27660 This is subtable a.
27668 \begin_layout Plain Layout
27670 \begin_inset Tabular
27671 <lyxtabular version="3" rows="1" columns="5">
27672 <features tabularvalignment="middle">
27673 <column alignment="center" valignment="top">
27674 <column alignment="center" valignment="top">
27675 <column alignment="center" valignment="top">
27676 <column alignment="center" valignment="top">
27677 <column alignment="center" valignment="top">
27679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27682 \begin_layout Plain Layout
27688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27691 \begin_layout Plain Layout
27697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27700 \begin_layout Plain Layout
27706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27709 \begin_layout Plain Layout
27715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27718 \begin_layout Plain Layout
27735 \begin_inset space \hfill{}
27739 \begin_inset Float table
27744 \begin_layout Plain Layout
27745 \begin_inset Caption Standard
27747 \begin_layout Plain Layout
27748 \begin_inset CommandInset label
27750 name "tab:This-is-subtable-b"
27754 This is subtable b.
27762 \begin_layout Plain Layout
27764 \begin_inset Tabular
27765 <lyxtabular version="3" rows="1" columns="5">
27766 <features tabularvalignment="middle">
27767 <column alignment="center" valignment="top">
27768 <column alignment="center" valignment="top">
27769 <column alignment="center" valignment="top">
27770 <column alignment="center" valignment="top">
27771 <column alignment="center" valignment="top">
27773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27776 \begin_layout Plain Layout
27782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27785 \begin_layout Plain Layout
27791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27794 \begin_layout Plain Layout
27800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27803 \begin_layout Plain Layout
27809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27812 \begin_layout Plain Layout
27829 \begin_inset space \hfill{}
27840 \begin_layout Standard
27841 \begin_inset Float table
27846 \begin_layout Plain Layout
27847 \begin_inset Caption Standard
27849 \begin_layout Plain Layout
27850 \begin_inset CommandInset label
27852 name "tab:Two-subtables-upon"
27856 Two subtables placed one above the other.
27857 (a) table with 4 cells, (b) table with 5 cells.
27865 \begin_layout Plain Layout
27867 \begin_inset Float table
27872 \begin_layout Plain Layout
27873 \begin_inset Caption Standard
27875 \begin_layout Plain Layout
27884 \begin_layout Plain Layout
27886 \begin_inset Tabular
27887 <lyxtabular version="3" rows="1" columns="4">
27888 <features tabularvalignment="middle">
27889 <column alignment="center" valignment="top">
27890 <column alignment="center" valignment="top">
27891 <column alignment="center" valignment="top">
27892 <column alignment="center" valignment="top">
27894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27897 \begin_layout Plain Layout
27903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27906 \begin_layout Plain Layout
27912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27915 \begin_layout Plain Layout
27921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27924 \begin_layout Plain Layout
27943 \begin_layout Plain Layout
27945 \begin_inset Float table
27950 \begin_layout Plain Layout
27951 \begin_inset Caption Standard
27953 \begin_layout Plain Layout
27962 \begin_layout Plain Layout
27964 \begin_inset Tabular
27965 <lyxtabular version="3" rows="1" columns="5">
27966 <features tabularvalignment="middle">
27967 <column alignment="center" valignment="top">
27968 <column alignment="center" valignment="top">
27969 <column alignment="center" valignment="top">
27970 <column alignment="center" valignment="top">
27971 <column alignment="center" valignment="top">
27973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27976 \begin_layout Plain Layout
27982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27985 \begin_layout Plain Layout
27991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27994 \begin_layout Plain Layout
28000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28003 \begin_layout Plain Layout
28009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28012 \begin_layout Plain Layout
28036 \begin_layout Section
28037 Floats Side by Side
28038 \begin_inset Index idx
28041 \begin_layout Plain Layout
28042 Floats ! Side by side
28050 \begin_layout Standard
28051 To place floats side by side, as in Figures
28052 \begin_inset space ~
28056 \begin_inset CommandInset ref
28058 reference "fig:Float-left"
28063 \begin_inset CommandInset ref
28065 reference "fig:Float-right"
28074 In it two minipage boxes are inserted.
28078 \begin_layout Plain Layout
28079 Minipages are explained in section
28080 \begin_inset space ~
28084 \begin_inset CommandInset ref
28086 reference "sec:Minipages"
28095 The width is set to 45
28096 \begin_inset space \thinspace{}
28100 \begin_inset space \thinspace{}
28103 column% and the box alignment to
28108 The minipage boxes contain the image and the caption in the same way as
28109 they are in a float.
28110 The only difference is that the image unit
28113 \begin_inset space ~
28117 \begin_inset space ~
28122 is now calculated according to the width of the minipage boxes.
28125 \begin_layout Standard
28126 \begin_inset Float figure
28131 \begin_layout Plain Layout
28132 \begin_inset Box Frameless
28142 height_special "totalheight"
28147 backgroundcolor "none"
28150 \begin_layout Plain Layout
28152 \begin_inset Graphics
28153 filename clipart/mobius.eps
28156 scaleBeforeRotation
28163 \begin_layout Plain Layout
28164 \begin_inset Caption Standard
28166 \begin_layout Plain Layout
28167 \begin_inset CommandInset label
28169 name "fig:Float-left"
28173 Float on the left side.
28184 \begin_inset space \hfill{}
28188 \begin_inset Box Frameless
28198 height_special "totalheight"
28203 backgroundcolor "none"
28206 \begin_layout Plain Layout
28208 \begin_inset Graphics
28209 filename clipart/platypus.eps
28212 scaleBeforeRotation
28219 \begin_layout Plain Layout
28220 \begin_inset Caption Standard
28222 \begin_layout Plain Layout
28223 \begin_inset CommandInset label
28225 name "fig:Float-right"
28229 Float on the right side.
28247 \begin_layout Standard
28248 An alternative and simpler solution is to use the module
28250 Variable-width Minipages
28253 \begin_inset space \thinspace{}
28257 \begin_inset CommandInset ref
28259 reference "sec:Minipages"
28264 Variable-width minipages adapt automatically to the width of the figures
28266 They do not require an explicit width to be given, and they improve the
28267 horizontal alignment of the figures.
28268 The LyX example file
28270 varwidth-floats-side-by-side
28272 gives examples of how to do this.
28275 \begin_layout Section
28277 \begin_inset Index idx
28280 \begin_layout Plain Layout
28281 Caption ! Formatting
28287 \begin_inset Index idx
28290 \begin_layout Plain Layout
28291 Floats ! Caption Formatting
28297 \begin_inset CommandInset label
28299 name "sec:Caption-Formatting"
28306 \begin_layout Standard
28311 environment is the default paragraph environment for
28316 On the \SpecialChar LyX
28317 screen captions appear as a label, e.
28318 \begin_inset space \thinspace{}
28322 \begin_inset space \space{}
28326 \begin_inset Quotes eld
28334 \begin_inset Quotes erd
28337 followed by the caption text.
28339 \begin_inset Quotes eld
28343 \begin_inset Quotes erd
28346 is the actual reference number.
28347 By default the label and the number are in the same font as the caption
28348 text and a colon follows the number to divide the label from the text.
28349 This caption format is suitable for many but not all documents.
28353 \begin_layout Standard
28354 To change the default caption format, load the \SpecialChar LaTeX
28360 \begin_inset Index idx
28363 \begin_layout Plain Layout
28365 -packages ! caption
28370 in the document preamble with this line:
28373 \begin_layout Standard
28378 usepackage[format definition]{caption}
28381 \begin_layout Standard
28382 To have for example the label and the number in sans-serif, bold font and
28383 the table captions always above the table as in this document, use the
28387 \begin_layout Standard
28392 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28395 \begin_layout Standard
28396 You can also define different caption formats for the different float types.
28397 In this case load the
28401 package without format specific options and define the different formats
28402 with the help of the command
28405 \begin_layout Standard
28410 captionsetup[float type]{format definition}
28413 \begin_layout Standard
28414 in the document preamble.
28415 For example the caption formats of Figure
28416 \begin_inset space ~
28420 \begin_inset CommandInset ref
28422 reference "fig:This-is-an-fig"
28427 \begin_inset space ~
28431 \begin_inset CommandInset ref
28433 reference "tab:This-is-an-tab"
28437 can be created using these commands in the document preamble:
28440 \begin_layout Standard
28445 usepackage[tableposition=top]{caption}
28448 \begin_inset Newline newline
28455 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28456 \begin_inset Newline newline
28460 \begin_inset Phantom HPhantom
28463 \begin_layout Plain Layout
28468 captionsetup[figure]{
28474 \begin_inset Newline newline
28479 captionsetup[table]{labelfont={bf,sf}}
28482 \begin_layout Standard
28483 \begin_inset Note Greyedout
28486 \begin_layout Plain Layout
28495 has no effect when a
28500 \begin_inset Index idx
28503 \begin_layout Plain Layout
28505 -packages ! KOMA-Script
28510 document class is used.
28511 In this case the document class option
28513 captions=tableheading
28523 \begin_layout Standard
28524 For more information about the package
28528 we refer to its documentation
28529 \begin_inset CommandInset citation
28538 \begin_layout Standard
28539 To change the label name from e.
28540 \begin_inset space \thinspace{}
28544 \begin_inset space \space{}
28548 \begin_inset Quotes eld
28552 \begin_inset Quotes erd
28556 \begin_inset Quotes eld
28560 \begin_inset Quotes erd
28563 use this preamble command:
28566 \begin_layout Standard
28573 fnum@figure}{Image~
28578 \begin_layout Standard
28585 inserts the figure number and
28588 \begin_inset Quotes eld
28594 \begin_inset Quotes erd
28597 creates a protected space.
28600 \begin_layout Standard
28601 \begin_inset VSpace bigskip
28609 \begin_inset Index idx
28612 \begin_layout Plain Layout
28614 -packages ! KOMA-Script
28621 article (KOMA-Script)
28629 letter (KOMA-Script)
28633 report (KOMA-Script)
28636 \begin_inset space \thinspace{}
28639 ), you can alternatively to the
28647 's built-in command
28654 For example, to have the caption label in bold, add this command to your
28658 \begin_layout Standard
28663 setkomafont{captionlabel}{
28668 \begin_layout Standard
28669 For more information about
28680 \begin_inset CommandInset citation
28689 \begin_layout Standard
28693 \begin_layout Plain Layout
28697 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28704 \begin_inset Note Note
28707 \begin_layout Plain Layout
28708 The caption format is changed only for this example.
28716 \begin_layout Standard
28717 \begin_inset Float figure
28723 \begin_layout Plain Layout
28725 \begin_inset Graphics
28726 filename clipart/mobius.eps
28729 scaleBeforeRotation
28736 \begin_layout Plain Layout
28737 \begin_inset Caption Standard
28739 \begin_layout Plain Layout
28740 \begin_inset CommandInset label
28742 name "fig:This-is-an-fig"
28746 This is an example figure caption that is longer than one line to show the
28747 different caption format.
28748 Here a self-defined caption format is used.
28761 \begin_layout Standard
28765 \begin_layout Plain Layout
28769 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28778 \begin_layout Standard
28779 \begin_inset Float table
28785 \begin_layout Plain Layout
28786 \begin_inset Caption Standard
28788 \begin_layout Plain Layout
28789 \begin_inset CommandInset label
28791 name "tab:This-is-an-tab"
28795 This is an example table caption that is longer than one line to show the
28796 different caption format.
28797 Here the standard caption format for tables in this document is used.
28805 \begin_layout Plain Layout
28807 \begin_inset Tabular
28808 <lyxtabular version="3" rows="1" columns="5">
28809 <features tabularvalignment="middle">
28810 <column alignment="center" valignment="top">
28811 <column alignment="center" valignment="top">
28812 <column alignment="center" valignment="top">
28813 <column alignment="center" valignment="top">
28814 <column alignment="center" valignment="top">
28816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28819 \begin_layout Plain Layout
28825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28828 \begin_layout Plain Layout
28834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28837 \begin_layout Plain Layout
28843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28846 \begin_layout Plain Layout
28852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28855 \begin_layout Plain Layout
28874 \begin_layout Section
28876 \begin_inset Index idx
28879 \begin_layout Plain Layout
28880 Caption ! Placement
28886 \begin_inset Index idx
28889 \begin_layout Plain Layout
28890 Floats ! Caption Placement
28896 \begin_inset CommandInset label
28898 name "sec:Caption-Placement"
28905 \begin_layout Standard
28906 The common caption placement rule is:
28909 \begin_layout Description
28910 Figure: Caption is set below the figure
28913 \begin_layout Description
28914 Table: Caption is set above the table
28917 \begin_layout Standard
28918 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
28921 That means if you are using the document classes
28937 there will be no space between the caption and the table.
28938 To insert the necessary space, load the \SpecialChar LaTeX
28944 \begin_inset Index idx
28947 \begin_layout Plain Layout
28949 -packages ! caption
28954 in your document preamble with the option
28958 \begin_layout Plain Layout
28960 \begin_inset space ~
28964 \begin_inset CommandInset ref
28966 reference "sec:Caption-Formatting"
28970 for more information of the package
28982 \begin_layout Standard
28988 \begin_layout Standard
28994 \begin_inset Index idx
28997 \begin_layout Plain Layout
28999 -packages ! KOMA-Script
29006 article (KOMA-Script)
29014 letter (KOMA-Script)
29018 report (KOMA-Script)
29021 \begin_inset space \thinspace{}
29024 ), you can alternatively to the
29028 package set the document class option
29032 \begin_layout Plain Layout
29033 That option is used in this document.
29041 \begin_layout Standard
29044 captions=tableheading
29047 \begin_layout Standard
29048 In documents with a KOMA-Script document class you can also right-click
29049 on a caption and mark in the context menu if this should be a caption above
29050 or below the table/figure.
29051 This way you can override the document-wide caption placement for certain
29054 \begin_inset space ~
29058 \begin_inset CommandInset ref
29060 reference "tab:A-caption-marked"
29064 is an example where the caption is marked a being below the table while
29066 For comparison the caption in Table
29067 \begin_inset space ~
29071 \begin_inset CommandInset ref
29073 reference "tab:A-standard-table"
29080 \begin_layout Standard
29081 \begin_inset Float table
29086 \begin_layout Plain Layout
29087 \begin_inset Caption Below
29089 \begin_layout Plain Layout
29090 \begin_inset CommandInset label
29092 name "tab:A-caption-marked"
29096 A caption marked as being below the table.
29104 \begin_layout Plain Layout
29106 \begin_inset Tabular
29107 <lyxtabular version="3" rows="3" columns="3">
29108 <features tabularvalignment="middle">
29109 <column alignment="center" valignment="top" width="0pt">
29110 <column alignment="center" valignment="top" width="0pt">
29111 <column alignment="center" valignment="top" width="0pt">
29113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29116 \begin_layout Plain Layout
29122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29125 \begin_layout Plain Layout
29131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29134 \begin_layout Plain Layout
29142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29145 \begin_layout Plain Layout
29151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29154 \begin_layout Plain Layout
29160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29163 \begin_layout Plain Layout
29171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29174 \begin_layout Plain Layout
29175 \begin_inset Formula $\int x^{2}dx$
29183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29186 \begin_layout Plain Layout
29187 \begin_inset Formula $\left[\begin{array}{cc}
29190 \end{array}\right]$
29198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29201 \begin_layout Plain Layout
29202 \begin_inset Formula $1+1=2$
29223 \begin_layout Standard
29224 \begin_inset Float table
29229 \begin_layout Plain Layout
29230 \begin_inset Caption Standard
29232 \begin_layout Plain Layout
29233 \begin_inset CommandInset label
29235 name "tab:A-standard-table"
29239 A standard table caption.
29247 \begin_layout Plain Layout
29249 \begin_inset Tabular
29250 <lyxtabular version="3" rows="3" columns="3">
29251 <features tabularvalignment="middle">
29252 <column alignment="center" valignment="top" width="0pt">
29253 <column alignment="center" valignment="top" width="0pt">
29254 <column alignment="center" valignment="top" width="0pt">
29256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29259 \begin_layout Plain Layout
29265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29268 \begin_layout Plain Layout
29274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29277 \begin_layout Plain Layout
29285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29288 \begin_layout Plain Layout
29294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29297 \begin_layout Plain Layout
29303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29306 \begin_layout Plain Layout
29314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29317 \begin_layout Plain Layout
29318 \begin_inset Formula $\int x^{2}dx$
29326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29329 \begin_layout Plain Layout
29330 \begin_inset Formula $\left[\begin{array}{cc}
29333 \end{array}\right]$
29341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29344 \begin_layout Plain Layout
29345 \begin_inset Formula $1+1=2$
29366 \begin_layout Standard
29367 \begin_inset VSpace bigskip
29370 It is also possible to set the caption beside a figure or table.
29371 To get this the \SpecialChar LaTeX
29377 \begin_inset Index idx
29380 \begin_layout Plain Layout
29382 -packages ! sidecap
29387 has to be loaded in the document preamble with the line
29390 \begin_layout Standard
29395 usepackage[option]{sidecap}
29398 \begin_layout Standard
29399 If you set no option, the caption is placed on the side of the outer page
29400 margin – to the right on odd pages, to the left on even pages.
29401 You can change the placement to inner margin with the option
29406 To force the placement always to the right or left, use the option
29417 \begin_layout Standard
29421 \begin_layout Plain Layout
29431 \begin_inset Note Note
29434 \begin_layout Plain Layout
29435 The following section will only be displayed when the \SpecialChar LaTeX
29448 \begin_layout Standard
29449 To place in \SpecialChar LyX
29450 the caption of a float on the side, it is necessary to add
29451 these commands to the document preamble:
29454 \begin_layout Standard
29456 \begin_inset CommandInset line
29467 \begin_layout Standard
29474 TabBesBeg}[1][1.0]{%
29475 \begin_inset Newline newline
29479 \begin_inset Phantom HPhantom
29482 \begin_layout Plain Layout
29483 \begin_inset space ~
29498 \begin_inset Newline newline
29502 \begin_inset Phantom HPhantom
29505 \begin_layout Plain Layout
29508 \begin_inset space ~
29523 \begin_inset Newline newline
29527 \begin_inset Phantom HPhantom
29530 \begin_layout Plain Layout
29533 \begin_inset space ~
29543 renewenvironment{table}[1]{
29545 begin{SCtable}[#1]##1}{
29550 \begin_layout Standard
29558 \begin_inset Newline newline
29562 \begin_inset Phantom HPhantom
29565 \begin_layout Plain Layout
29566 \begin_inset space ~
29581 \begin_inset Newline newline
29585 \begin_inset Phantom HPhantom
29588 \begin_layout Plain Layout
29589 \begin_inset space ~
29606 \begin_layout Standard
29613 FigBesBeg}[1][1.0]{%
29614 \begin_inset Newline newline
29618 \begin_inset Phantom HPhantom
29621 \begin_layout Plain Layout
29622 \begin_inset space ~
29637 \begin_inset Newline newline
29641 \begin_inset Phantom HPhantom
29644 \begin_layout Plain Layout
29645 \begin_inset space ~
29660 \begin_inset Newline newline
29664 \begin_inset Phantom HPhantom
29667 \begin_layout Plain Layout
29668 \begin_inset space ~
29678 renewenvironment{figure}[1]{
29680 begin{SCfigure}[#1]##1}{
29685 \begin_layout Standard
29693 \begin_inset Newline newline
29697 \begin_inset Phantom HPhantom
29700 \begin_layout Plain Layout
29701 \begin_inset space ~
29716 \begin_inset Newline newline
29720 \begin_inset Phantom HPhantom
29723 \begin_layout Plain Layout
29724 \begin_inset space ~
29741 \begin_layout Standard
29743 \begin_inset CommandInset line
29754 \begin_layout Standard
29755 The commands allow you to redefine the floats so that the caption is set
29757 For figure floats use the command
29760 \begin_layout Standard
29768 \begin_layout Standard
29769 in \SpecialChar TeX
29770 Code before the float.
29771 And insert the command
29774 \begin_layout Standard
29782 \begin_layout Standard
29783 in \SpecialChar TeX
29784 Code at the point where you want to get back to the original float definitio
29788 \begin_layout Standard
29789 For table floats use the corresponding commands
29792 \begin_layout Standard
29806 \begin_layout Standard
29808 \begin_inset space ~
29812 \begin_inset CommandInset ref
29814 reference "fig:cap-beside-fig"
29819 \begin_inset space ~
29823 \begin_inset CommandInset ref
29825 reference "tab:cap-beside-tab"
29829 are examples where the caption is set beside.
29832 \begin_layout Standard
29833 You can see in the examples that the caption text appears at the top of
29834 the floats for table floats and at the bottom for figure floats.
29835 To change this, you can use the command
29838 \begin_layout Standard
29843 sidecaptionvpos{float type}{placement}
29846 \begin_layout Standard
29847 in the document preamble or in \SpecialChar TeX
29848 Code before the float.
29849 The float type is either
29857 , the placement can be
29858 \begin_inset Quotes eld
29866 \begin_inset Quotes erd
29870 \begin_inset Quotes eld
29878 \begin_inset Quotes erd
29882 \begin_inset Quotes eld
29890 \begin_inset Quotes erd
29894 To have for example the caption of figure floats vertically centered, use
29898 \begin_layout Standard
29903 sidecaptionvpos{figure}{c}
29906 \begin_layout Standard
29907 This was used for Figure
29908 \begin_inset space ~
29912 \begin_inset CommandInset ref
29914 reference "fig:cap-beside-fig-2"
29921 \begin_layout Standard
29922 \begin_inset VSpace medskip
29928 \begin_layout Standard
29929 The default caption width is the width of the image/table.
29930 For thin image/tables, like in Table
29931 \begin_inset space ~
29935 \begin_inset CommandInset ref
29937 reference "tab:cap-beside-tab"
29941 , this leads to captions that are too thin.
29942 You can increase the width by specifying a factor that will be multiplied
29943 with the image/table width to get the caption width.
29944 The caption width will automatically be recalculated in case it would protrude
29945 over the page or column margin due to the specified width.
29950 can either be given as optional argument for
29959 \begin_layout Standard
29967 \begin_layout Standard
29968 or in the definition of
29978 with another value.
29979 If you do the latter, your factor will be the default if
29985 is used without an argument.
29987 \begin_inset space ~
29991 \begin_inset CommandInset ref
29993 reference "tab:cap-beside-tab-wider"
29997 the factor 5 was used.
30000 \begin_layout Standard
30001 \begin_inset Note Greyedout
30004 \begin_layout Plain Layout
30009 For floats with captions set beside, you cannot use the float placement
30013 \begin_inset space ~
30018 because it is not supported by
30030 \begin_layout Standard
30031 \begin_inset VSpace medskip
30034 For more information about the package
30038 we refer to its documentation
30039 \begin_inset CommandInset citation
30048 \begin_layout Standard
30049 \begin_inset Note Greyedout
30052 \begin_layout Plain Layout
30057 The \SpecialChar LaTeX
30063 \begin_inset Index idx
30066 \begin_layout Plain Layout
30073 , described in section
30074 \begin_inset space ~
30078 \begin_inset CommandInset ref
30080 reference "subsec:Reference-Position"
30084 , has no effect on floats with the caption set beside.
30092 \begin_layout Standard
30096 \begin_layout Plain Layout
30108 \begin_layout Standard
30109 \begin_inset Float figure
30114 \begin_layout Plain Layout
30115 \begin_inset Graphics
30116 filename clipart/escher-lsd.eps
30118 scaleBeforeRotation
30125 \begin_layout Plain Layout
30126 \begin_inset Caption Standard
30128 \begin_layout Plain Layout
30129 \begin_inset CommandInset label
30131 name "fig:cap-beside-fig"
30135 This is a caption beside a figure.
30148 \begin_layout Standard
30152 \begin_layout Plain Layout
30164 \begin_layout Standard
30168 \begin_layout Plain Layout
30180 \begin_layout Standard
30181 \begin_inset Float table
30186 \begin_layout Plain Layout
30187 \begin_inset Caption Standard
30189 \begin_layout Plain Layout
30190 \begin_inset CommandInset label
30192 name "tab:cap-beside-tab"
30196 This is a caption beside a table.
30204 \begin_layout Plain Layout
30205 \begin_inset Tabular
30206 <lyxtabular version="3" rows="4" columns="5">
30207 <features tabularvalignment="middle">
30208 <column alignment="center" valignment="top">
30209 <column alignment="center" valignment="top">
30210 <column alignment="center" valignment="top">
30211 <column alignment="center" valignment="top">
30212 <column alignment="center" valignment="top">
30214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30217 \begin_layout Plain Layout
30223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30226 \begin_layout Plain Layout
30232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30235 \begin_layout Plain Layout
30241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30244 \begin_layout Plain Layout
30250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30253 \begin_layout Plain Layout
30261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30264 \begin_layout Plain Layout
30270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30273 \begin_layout Plain Layout
30279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30282 \begin_layout Plain Layout
30288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30291 \begin_layout Plain Layout
30297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30300 \begin_layout Plain Layout
30308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30311 \begin_layout Plain Layout
30317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30320 \begin_layout Plain Layout
30326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30329 \begin_layout Plain Layout
30335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30338 \begin_layout Plain Layout
30344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30347 \begin_layout Plain Layout
30355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30358 \begin_layout Plain Layout
30364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30367 \begin_layout Plain Layout
30373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30376 \begin_layout Plain Layout
30382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30385 \begin_layout Plain Layout
30391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30394 \begin_layout Plain Layout
30413 \begin_layout Standard
30417 \begin_layout Plain Layout
30429 \begin_layout Standard
30433 \begin_layout Plain Layout
30446 \begin_layout Plain Layout
30450 sidecaptionvpos{figure}{c}
30456 \begin_inset Float figure
30461 \begin_layout Plain Layout
30462 \begin_inset Graphics
30463 filename clipart/escher-lsd.eps
30465 scaleBeforeRotation
30472 \begin_layout Plain Layout
30473 \begin_inset Caption Standard
30475 \begin_layout Plain Layout
30476 \begin_inset CommandInset label
30478 name "fig:cap-beside-fig-2"
30482 This is a vertically centered caption beside a figure.
30495 \begin_layout Standard
30499 \begin_layout Plain Layout
30511 \begin_layout Standard
30515 \begin_layout Plain Layout
30527 \begin_layout Standard
30528 \begin_inset Float table
30533 \begin_layout Plain Layout
30534 \begin_inset Caption Standard
30536 \begin_layout Plain Layout
30537 \begin_inset CommandInset label
30539 name "tab:cap-beside-tab-wider"
30543 This caption is wider than the one in Table
30544 \begin_inset space ~
30548 \begin_inset CommandInset ref
30550 reference "tab:cap-beside-tab"
30562 \begin_layout Plain Layout
30563 \begin_inset Tabular
30564 <lyxtabular version="3" rows="4" columns="5">
30565 <features tabularvalignment="middle">
30566 <column alignment="center" valignment="top">
30567 <column alignment="center" valignment="top">
30568 <column alignment="center" valignment="top">
30569 <column alignment="center" valignment="top">
30570 <column alignment="center" valignment="top">
30572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30575 \begin_layout Plain Layout
30581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30584 \begin_layout Plain Layout
30590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30593 \begin_layout Plain Layout
30599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30602 \begin_layout Plain Layout
30608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30611 \begin_layout Plain Layout
30619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30622 \begin_layout Plain Layout
30628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30631 \begin_layout Plain Layout
30637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30640 \begin_layout Plain Layout
30646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30649 \begin_layout Plain Layout
30655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30658 \begin_layout Plain Layout
30666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30669 \begin_layout Plain Layout
30675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30678 \begin_layout Plain Layout
30684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30687 \begin_layout Plain Layout
30693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30696 \begin_layout Plain Layout
30702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30705 \begin_layout Plain Layout
30713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30716 \begin_layout Plain Layout
30722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30725 \begin_layout Plain Layout
30731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30734 \begin_layout Plain Layout
30740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30743 \begin_layout Plain Layout
30749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30752 \begin_layout Plain Layout
30771 \begin_layout Standard
30775 \begin_layout Plain Layout
30787 \begin_layout Standard
30791 \begin_layout Plain Layout
30801 \begin_inset Note Note
30804 \begin_layout Plain Layout
30805 The following will be displayed when the \SpecialChar LaTeX
30818 \begin_layout Standard
30819 You need to install the \SpecialChar LaTeX
30824 to see the following part of this section in the output.
30827 \begin_layout Standard
30831 \begin_layout Plain Layout
30843 \begin_layout Section
30845 \begin_inset Index idx
30848 \begin_layout Plain Layout
30849 Floats ! Float Lists
30857 \begin_layout Standard
30858 Similar to the table of contents where the sections of the document are
30859 listed, there are listings for all float types, like the figures of the
30861 You can insert them via the
30863 Insert\SpecialChar menuseparator
30865 \begin_inset space ~
30869 \begin_inset space ~
30877 \begin_layout Standard
30878 The list entries are the float captions or its short title, the float number,
30879 and the page number where they appear in the document.
30882 \begin_layout Standard
30883 You can find the list of figures and tables at the end of this document.
30886 \begin_layout Chapter
30890 \begin_layout Section
30893 \begin_inset Index idx
30896 \begin_layout Plain Layout
30897 Notes ! \SpecialChar LyX
30906 \begin_layout Standard
30907 Notes are inserted with the toolbar button
30915 Insert\SpecialChar menuseparator
30919 There are three types of notes:
30922 \begin_layout Description
30925 \begin_inset space ~
30928 Note This note type is for internal notes that won't appear in the output.
30929 Its note-box looks like this:
30930 \begin_inset Newline newline
30934 \begin_inset Newline newline
30938 \begin_inset Graphics
30939 filename clipart/LyXNoteImage.png
30941 scaleBeforeRotation
30946 \begin_inset Note Note
30949 \begin_layout Plain Layout
30950 This is text in a note box that doesn't appear in the output.
30958 \begin_layout Description
30959 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
30961 when you export the document to \SpecialChar LaTeX
30964 File\SpecialChar menuseparator
30965 Export\SpecialChar menuseparator
30967 \begin_inset space ~
30970 (pdflatex) / (plain)
30973 Its note-box looks like this:
30974 \begin_inset Newline newline
30978 \begin_inset Newline newline
30982 \begin_inset Graphics
30983 filename clipart/CommentNoteImage.png
30985 scaleBeforeRotation
30990 \begin_inset Note Comment
30993 \begin_layout Plain Layout
30994 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31003 \begin_layout Description
31005 \begin_inset space ~
31008 Out This note will appear in the output as grey text.
31009 Its note-box looks like this:
31010 \begin_inset Newline newline
31014 \begin_inset Newline newline
31018 \begin_inset Graphics
31019 filename clipart/GreyedOutNoteImage.png
31021 scaleBeforeRotation
31026 \begin_inset Newline newline
31033 \begin_layout Plain Layout
31037 renewenvironment{lyxgreyedout}
31040 \begin_layout Plain Layout
31044 textcolor[gray]{0.8}
31054 \begin_inset Note Greyedout
31057 \begin_layout Plain Layout
31058 This is text of a comment that appears grey in the output.
31067 \begin_layout Plain Layout
31071 renewenvironment{lyxgreyedout}
31074 \begin_layout Plain Layout
31088 \begin_inset Note Note
31091 \begin_layout Plain Layout
31092 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31094 because greyed out notes are redefined in the preamble of this document,
31095 as described below, to have blue text.
31101 \begin_inset Newline newline
31105 \begin_inset Newline newline
31108 As you can see in the example, the first line of greyed out notes is a bit
31109 indented and greyed out notes can have footnotes.
31112 \begin_layout Standard
31113 \begin_inset VSpace bigskip
31116 When you use the toolbar button
31126 \begin_inset space ~
31132 You can switch between the three note types by right-clicking on the note-box.
31137 If you want to turn existing text into a note, mark it and click on the
31151 To change a note to text, press the backspace key when the cursor is in
31152 the first position of a note, or press the delete key when the cursor is
31153 in the very last position of the note, respectively.
31156 \begin_layout Standard
31157 \begin_inset VSpace bigskip
31160 You can change the text color of the greyed out notes in the menu
31162 Document\SpecialChar menuseparator
31163 Settings\SpecialChar menuseparator
31169 \begin_layout Section
31171 \begin_inset CommandInset label
31173 name "sec:Footnotes"
31178 \begin_inset Index idx
31181 \begin_layout Plain Layout
31188 \begin_inset Index idx
31191 \begin_layout Plain Layout
31200 \begin_layout Standard
31201 Footnotes can be inserted using the toolbar button
31204 arg "footnote-insert"
31209 Insert\SpecialChar menuseparator
31213 You will then see the following footnote-box:
31214 \begin_inset Graphics
31215 filename clipart/footnote.png
31217 scaleBeforeRotation
31225 where you can enter the footnote text.
31226 If you want to turn existing text into a footnote, mark it and click on
31252 key when the cursor is in the first position of a
31264 key when the cursor is in the very last position of the
31275 \begin_layout Standard
31276 Here is an example footnote:
31284 \begin_layout Plain Layout
31285 \begin_inset CommandInset label
31287 name "foot:This-is-an"
31291 This is an example footnote.
31304 \begin_layout Plain Layout
31308 newcounter{MyRepeatFoot}
31311 \begin_layout Plain Layout
31315 setcounter{MyRepeatFoot}{
31325 \begin_layout Standard
31326 The footnote will appear in the output as a superscript number at the text
31327 position where the footnote box is placed.
31328 The footnote text is placed at the bottom of the current page.
31329 The footnote number is calculated by \SpecialChar LaTeX
31330 ; the numbers are consecutive.
31331 Whether the footnote number is reset for every chapter depends on your
31335 \begin_layout Standard
31336 Footnotes can be referenced like floats: Insert a label into the footnote
31337 and cross-reference this label in the text as described in section
31338 \begin_inset space ~
31342 \begin_inset CommandInset ref
31344 reference "sec:Referencing-Floats"
31349 \begin_inset Newline newline
31352 This is a cross-reference of Footnote
31353 \begin_inset space ~
31357 \begin_inset CommandInset ref
31359 reference "foot:This-is-an"
31366 \begin_layout Standard
31367 \begin_inset VSpace defskip
31370 Footnotes in title environments are usually not numbered with symbols and
31371 they cannot contain several paragraphs.
31372 See for example the footnote in the titling of this document.
31375 \begin_layout Standard
31376 \begin_inset VSpace defskip
31379 Footnotes in tables are not printed by \SpecialChar LaTeX
31380 due to technical reasons.
31381 However there exists another method to print them: Instead of the footnote
31388 is inserted as \SpecialChar TeX
31390 The text of the footnote is entered as an argument of the \SpecialChar TeX
31399 \begin_inset Newline newline
31402 This was done for the following table with the command
31405 \begin_layout Standard
31412 Printed table footnote.
31417 \begin_layout Standard
31418 \begin_inset Tabular
31419 <lyxtabular version="3" rows="2" columns="1">
31420 <features tabularvalignment="middle">
31421 <column alignment="center" valignment="top">
31423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31426 \begin_layout Plain Layout
31427 This an example text.
31431 \begin_layout Plain Layout
31432 This footnote will not be printed!
31444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31447 \begin_layout Plain Layout
31448 This an example text.
31452 \begin_layout Plain Layout
31475 \begin_layout Plain Layout
31484 Printed table footnote.
31488 \begin_layout Plain Layout
31498 \begin_layout Standard
31499 Footnotes in multi-page tables are described in section
31500 \begin_inset space ~
31504 \begin_inset CommandInset ref
31506 reference "subsec:Footnotes-in-Multi-page"
31513 \begin_layout Standard
31514 Footnotes in minipage boxes are printed, but inside the box and with a different
31515 numbering because a minipage box is like a page inside a page.
31516 (For more about minipages, see section
31517 \begin_inset space ~
31521 \begin_inset CommandInset ref
31523 reference "sec:Minipages"
31527 .) To get a footnote in the minipage that is output at the bottom of the
31528 page like normal footnotes, also use the method of
31543 \begin_layout Standard
31544 \begin_inset Box Frameless
31554 height_special "totalheight"
31559 backgroundcolor "none"
31562 \begin_layout Plain Layout
31563 This an example text in a minipage.
31567 \begin_layout Plain Layout
31568 Footnote in the minipage.
31576 \begin_layout Plain Layout
31577 This an example text in a minipage.
31581 \begin_layout Plain Layout
31598 \begin_layout Standard
31602 \begin_layout Plain Layout
31611 Footnote outside the minipage.
31615 \begin_layout Plain Layout
31625 \begin_layout Standard
31626 \begin_inset VSpace defskip
31632 \begin_layout Standard
31633 To refer to the same footnote several times without printing the footnote
31634 text every time, use the command
31638 footnotemark[number]
31640 in \SpecialChar TeX
31642 \begin_inset Newline newline
31645 As you do not know the number of the repeating footnote while you are writing
31646 the text, you have to store its number.
31647 For the following footnote mark example, these commands were inserted in
31649 code after Footnote
31650 \begin_inset space ~
31654 \begin_inset CommandInset ref
31656 reference "foot:This-is-an"
31660 to store the footnote number:
31663 \begin_layout Standard
31668 newcounter{MyRepeatFoot}
31669 \begin_inset Newline newline
31674 setcounter{MyRepeatFoot}{
31679 \begin_layout Standard
31680 The footnote mark was then created with this command:
31683 \begin_layout Standard
31693 \begin_layout Standard
31694 Here is a repeated footnote:
31702 \begin_layout Plain Layout
31716 \begin_layout Standard
31717 If you want to repeat the previous footnote, you can omit the storage of
31718 the footnote number and just use this command instead:
31721 \begin_layout Standard
31731 \begin_layout Standard
31732 Here is another repeated footnote:
31740 \begin_layout Plain Layout
31754 \begin_layout Subsection
31756 \begin_inset CommandInset label
31758 name "subsec:Footnote-Numbering"
31763 \begin_inset Index idx
31766 \begin_layout Plain Layout
31767 Footnotes ! Numbering
31775 \begin_layout Standard
31776 To reset the footnote number back to 1 after each section
31778 , add this command to your document preamble:
31781 \begin_layout Standard
31786 @addtoreset{footnote}{section}
31789 \begin_layout Standard
31790 \begin_inset VSpace bigskip
31793 The following preamble command changes the footnote numbering style to small
31797 \begin_layout Standard
31809 \begin_layout Standard
31813 \begin_layout Plain Layout
31826 This is a footnote with roman numbering:
31830 \begin_layout Plain Layout
31831 This is an example footnote with roman numbering.
31839 \begin_layout Standard
31840 To change the numbering style to capital roman numerals replace in the command
31855 \begin_inset Quotes eld
31859 \begin_inset Quotes erd
31862 footnotes with capital or small Latin letters use
31876 \begin_inset Quotes eld
31880 \begin_inset Quotes erd
31883 footnotes with symbols use
31892 \begin_layout Standard
31893 \begin_inset Note Greyedout
31896 \begin_layout Plain Layout
31901 You can only number 26 footnotes with Latin letters, because this numbering
31902 is limited to single letters.
31908 \begin_inset Newline newline
31912 \begin_inset Note Greyedout
31915 \begin_layout Plain Layout
31920 You can only number 9 footnotes with symbols.
31928 \begin_layout Standard
31929 To return to the default numbering style after you have changed to another
31942 in the command above.
31946 \begin_layout Plain Layout
31962 \begin_layout Standard
31963 \begin_inset VSpace bigskip
31969 \begin_layout Standard
31970 If you want to have footnotes numbered in the scheme
31971 \begin_inset Quotes eld
31975 \begin_inset Quotes erd
31978 , add the following command to your document preamble:
31981 \begin_layout Standard
31986 numberwithin{footnote}{chapter}
31989 \begin_layout Standard
31990 To be able to use the command
31999 \begin_inset space ~
32004 in the document settings the option
32007 \begin_inset space ~
32011 \begin_inset space ~
32015 \begin_inset space ~
32023 \begin_layout Standard
32027 \begin_layout Plain Layout
32031 numberwithin{footnote}{chapter}
32036 This is another example footnote:
32042 \begin_layout Plain Layout
32043 This is a footnote numbered in the scheme
32044 \begin_inset Quotes eld
32048 \begin_inset Quotes erd
32062 \begin_layout Plain Layout
32078 \begin_layout Standard
32079 \begin_inset Note Greyedout
32082 \begin_layout Plain Layout
32093 always prints out the footnote number as arabic number; previous redefinitions
32094 to get non-arabic numbers are overwritten.
32102 \begin_layout Standard
32103 So to get for example the scheme
32104 \begin_inset Quotes eld
32110 \begin_inset Quotes erd
32113 , use this command instead of
32122 \begin_layout Standard
32136 \begin_layout Subsection
32138 \begin_inset Index idx
32141 \begin_layout Plain Layout
32142 Footnotes ! Placement
32150 \begin_layout Standard
32151 If you have several footnotes in one page, they appear without vertical
32152 space between them at the bottom of the page.
32153 To make them more readable you can e.
32154 \begin_inset space \thinspace{}
32158 \begin_inset space \space{}
32162 \begin_inset space \thinspace{}
32165 mm space with the following preamble command:
32168 \begin_layout Standard
32178 \begin_inset Newline newline
32192 \begin_layout Standard
32193 \begin_inset VSpace bigskip
32196 In a two-column document the footnotes appear at the bottom of every column,
32198 \begin_inset space ~
32202 \begin_inset CommandInset ref
32204 reference "fig:Standard-footnote-placement"
32209 If the footnotes should only appear at the bottom of the right column,
32211 \begin_inset space ~
32215 \begin_inset CommandInset ref
32217 reference "fig:Footnote-placement-in"
32221 , use the \SpecialChar LaTeX
32227 \begin_inset Index idx
32230 \begin_layout Plain Layout
32232 -packages ! ftnright
32237 with this command in the document preamble:
32240 \begin_layout Standard
32245 usepackage{ftnright}
32248 \begin_layout Standard
32249 \begin_inset Float figure
32255 \begin_layout Plain Layout
32258 \begin_inset Box Boxed
32268 height_special "totalheight"
32273 backgroundcolor "none"
32276 \begin_layout Plain Layout
32277 \begin_inset Graphics
32278 filename clipart/without_fntright.pdf
32280 scaleBeforeRotation
32292 \begin_layout Plain Layout
32293 \begin_inset Caption Standard
32295 \begin_layout Plain Layout
32296 \begin_inset CommandInset label
32298 name "fig:Standard-footnote-placement"
32302 Standard footnote placement in two-column documents.
32315 \begin_layout Standard
32316 \begin_inset Float figure
32322 \begin_layout Plain Layout
32325 \begin_inset Box Boxed
32335 height_special "totalheight"
32340 backgroundcolor "none"
32343 \begin_layout Plain Layout
32344 \begin_inset Graphics
32345 filename clipart/with_fntright.pdf
32347 scaleBeforeRotation
32359 \begin_layout Plain Layout
32360 \begin_inset Caption Standard
32362 \begin_layout Plain Layout
32363 \begin_inset CommandInset label
32365 name "fig:Footnote-placement-in"
32369 Footnote placement in two-column documents when the \SpecialChar LaTeX
32387 \begin_layout Standard
32388 \begin_inset VSpace bigskip
32391 In some scientific literature it is usual to collect the footnotes and print
32392 them in a separate paragraph at the end of a section, as in Figure
32393 \begin_inset space ~
32397 \begin_inset CommandInset ref
32399 reference "fig:Endnotes"
32404 They are then called
32405 \begin_inset Quotes eld
32409 \begin_inset Quotes erd
32413 \begin_inset Index idx
32416 \begin_layout Plain Layout
32422 To use endnotes instead of footnotes in your document, load in the menu
32425 Document\SpecialChar menuseparator
32426 Settings\SpecialChar menuseparator
32432 \begin_inset space ~
32436 \begin_inset space ~
32442 To insert the collected footnotes, insert the command
32445 \begin_layout Standard
32453 \begin_layout Standard
32454 in \SpecialChar TeX
32455 Code at the end of a section or chapter.
32458 \begin_layout Standard
32459 \begin_inset Float figure
32464 \begin_layout Plain Layout
32467 \begin_inset Box Boxed
32477 height_special "totalheight"
32482 backgroundcolor "none"
32485 \begin_layout Plain Layout
32486 \begin_inset Graphics
32487 filename clipart/endnotes.pdf
32489 scaleBeforeRotation
32501 \begin_layout Plain Layout
32502 \begin_inset Caption Standard
32504 \begin_layout Plain Layout
32505 \begin_inset CommandInset label
32507 name "fig:Endnotes"
32511 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32525 \begin_layout Standard
32526 \begin_inset VSpace medskip
32529 The paragraph heading for the endnotes isn't automatically translated into
32530 the document language, this must be done manually.
32531 The following preamble command translates the default English
32532 \begin_inset Quotes eld
32536 \begin_inset Quotes erd
32540 \begin_inset Quotes eld
32544 \begin_inset Quotes erd
32550 \begin_layout Standard
32557 notesname}{Anmerkungen}
32560 \begin_layout Standard
32561 \begin_inset VSpace medskip
32564 The numbering of endnotes can be changed like the footnote numbering as
32565 described in section
32566 \begin_inset space ~
32570 \begin_inset CommandInset ref
32572 reference "subsec:Footnote-Numbering"
32576 ; just replace the command
32589 To reset the endnote number use the command
32595 as described in section
32596 \begin_inset space ~
32600 \begin_inset CommandInset ref
32602 reference "subsec:Footnote-Numbering"
32606 and replace the command parameter
32617 \begin_layout Standard
32618 For endnotes there is the command
32622 endnotemark[number]
32624 similar to the command
32630 , that is described in section
32631 \begin_inset space ~
32635 \begin_inset CommandInset ref
32637 reference "sec:Footnotes"
32644 \begin_layout Standard
32645 \begin_inset VSpace bigskip
32648 Footnotes can also be placed in the page margin and the footnote text alignment
32649 can be changed, see the \SpecialChar LaTeX
32655 \begin_inset Index idx
32658 \begin_layout Plain Layout
32660 -packages ! footmisc
32666 \begin_inset CommandInset citation
32672 for more information about this.
32675 \begin_layout Standard
32676 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32678 \begin_inset CommandInset citation
32680 key "latexcompanion,latexguide,latexbook"
32690 \begin_inset Index idx
32693 \begin_layout Plain Layout
32695 -packages ! KOMA-Script
32700 document class, you can adjust all footnote settings using class-specific
32702 \begin_inset CommandInset citation
32711 \begin_layout Section
32713 \begin_inset Index idx
32716 \begin_layout Plain Layout
32717 Notes ! Margin Notes
32725 \begin_layout Standard
32726 Margin notes look and behave in \SpecialChar LyX
32728 They are inserted via the menu
32730 Insert\SpecialChar menuseparator
32732 \begin_inset space ~
32737 or the toolbar button
32740 arg "marginalnote-insert"
32754 \begin_inset Quotes eld
32758 \begin_inset Quotes erd
32761 appears where you can enter the text of the margin note.
32764 \begin_layout Standard
32765 At the side is an example margin note.
32770 \begin_inset Marginal
32773 \begin_layout Plain Layout
32774 This is a margin note.
32782 \begin_layout Standard
32783 Margin notes appear at the right side in single-sided documents.
32784 In double-sided documents they appear in the outer margin – left on even
32785 pages, right on odd pages.
32786 The text of margin notes is aligned opposite to the outer margin – right-aligne
32787 d when the note appears in the left margin.
32788 The first line of the margin note is placed at the position of the text
32789 line where it is inserted in the document.
32792 \begin_layout Standard
32793 \begin_inset VSpace bigskip
32796 To place the margin note in the inner margin, add the command
32799 \begin_layout Standard
32807 \begin_layout Standard
32808 in \SpecialChar TeX
32809 Code before a margin note.
32810 The new placement is valid for all subsequent margin notes.
32815 \begin_layout Plain Layout
32825 \begin_inset Marginal
32828 \begin_layout Plain Layout
32829 This is a margin note in the inner margin.
32837 \begin_inset Newline newline
32843 \begin_inset Note Greyedout
32846 \begin_layout Plain Layout
32851 There is often not enough space in the inner margin so that the notes are
32852 not correctly displayed in the output.
32860 \begin_layout Standard
32861 To return to the default placement insert the command
32864 \begin_layout Standard
32872 \begin_layout Standard
32873 in \SpecialChar TeX
32878 \begin_layout Plain Layout
32888 \begin_inset Note Greyedout
32891 \begin_layout Plain Layout
32896 The command is ignored when it is within a paragraph where also the command
32911 \begin_layout Standard
32912 \begin_inset VSpace bigskip
32919 \begin_inset Marginal
32922 \begin_layout Plain Layout
32923 AVeryLongMarginParWord that isn't hyphenated.
32931 Similar to the case described in section
32932 \begin_inset space ~
32936 \begin_inset CommandInset ref
32938 reference "subsec:Multiple-Lines-in"
32942 , long words cannot be hyphenated when they are the first word in a margin
32944 To avoid this, insert 0
32945 \begin_inset space \thinspace{}
32948 pt horizontal space before the word
32953 \begin_inset Marginal
32956 \begin_layout Plain Layout
32957 \begin_inset space \hspace*{}
32961 AVeryLongMarginParWord that is hyphenated.
32969 \begin_layout Standard
32970 \begin_inset VSpace bigskip
32976 \begin_layout Standard
32977 \begin_inset Note Greyedout
32980 \begin_layout Plain Layout
32985 Margin notes can normally not be used inside tables, floats, and footnotes.
32993 \begin_layout Standard
32994 \begin_inset VSpace bigskip
33000 \begin_layout Standard
33004 \begin_layout Plain Layout
33014 \begin_inset Note Note
33017 \begin_layout Plain Layout
33018 The following section will only be displayed when the \SpecialChar LaTeX
33031 \begin_layout Standard
33032 This restriction can be evaded by using the \SpecialChar LaTeX
33038 \begin_inset Index idx
33041 \begin_layout Plain Layout
33043 -packages ! marginnote
33049 By adding these two lines to your document preamble, the command used by
33051 for margin notes is redefined to use the command provided by the
33058 \begin_layout Standard
33063 usepackage{marginnote}
33064 \begin_inset Newline newline
33076 \begin_layout Standard
33077 This is also used in this document because
33081 has another useful feature: You can set a vertical offset for the note.
33082 This is often needed when too many margin notes are too close together
33083 or for a better page layout.
33084 The offset is set in \SpecialChar LyX
33085 as \SpecialChar TeX
33086 Code directly after the margin note in the scheme
33089 \begin_layout Standard
33095 \begin_layout Standard
33096 where the offset is a length with one of the units listed in Table
33097 \begin_inset space ~
33101 \begin_inset CommandInset ref
33103 reference "tab:Units"
33108 A negative value shifts the note up, a positive value shifts it down.
33112 For example the margin note beside this text line is shifted up 1.5
33113 \begin_inset space \thinspace{}
33116 cm with the \SpecialChar TeX
33118 \begin_inset Quotes eld
33128 \begin_inset Quotes erd
33132 \begin_inset Marginal
33135 \begin_layout Plain Layout
33136 This margin note is shifted up 1.5
33137 \begin_inset space \thinspace{}
33140 cm from its original position.
33152 \begin_layout Plain Layout
33162 \begin_layout Standard
33163 \begin_inset VSpace medskip
33170 you can also change the alignment of the text in the margin note.
33171 For example the commands
33174 \begin_layout Standard
33181 raggedleftmarginnote}{
33184 \begin_inset Newline newline
33191 raggedrightmarginnote}{
33196 \begin_layout Standard
33197 set the alignment to centered.
33202 raggedleftmarginnote
33204 denotes margin notes that appear at the left side.
33211 \begin_layout Plain Layout
33217 raggedleftmarginnote}{
33222 \begin_layout Plain Layout
33228 raggedrightmarginnote}{
33236 \begin_inset Marginal
33239 \begin_layout Plain Layout
33240 The text of this margin note is centered.
33251 \begin_layout Standard
33258 raggedleftmarginnote}{
33261 \begin_inset Newline newline
33268 raggedrightmarginnote}{
33277 \begin_layout Plain Layout
33283 raggedleftmarginnote}{
33288 \begin_layout Plain Layout
33294 raggedrightmarginnote}{
33304 \begin_layout Standard
33305 \begin_inset VSpace medskip
33308 For the other features of
33312 refer to its documentation
33313 \begin_inset CommandInset citation
33322 \begin_layout Standard
33323 \begin_inset VSpace bigskip
33326 You can adjust the layout of margin notes by changing its definition.
33327 To create for example a header for all margin notes with the underlined,
33328 sans-serif, and bold header text
33329 \begin_inset Quotes eld
33341 \begin_inset Quotes erd
33344 , add this to your document preamble:
33347 \begin_layout Standard
33357 \begin_inset Newline newline
33367 \begin_inset Newline newline
33371 \begin_inset Phantom HPhantom
33374 \begin_layout Plain Layout
33377 \begin_inset space ~
33393 underbar{Attention!}}}%
33394 \begin_inset Newline newline
33398 \begin_inset Phantom HPhantom
33401 \begin_layout Plain Layout
33404 \begin_inset space ~
33421 \begin_layout Standard
33428 \begin_layout Plain Layout
33439 \begin_layout Plain Layout
33450 \begin_layout Plain Layout
33458 underbar{Attention!}}}%
33461 \begin_layout Plain Layout
33475 \begin_inset Marginal
33478 \begin_layout Plain Layout
33479 This is a margin note with a defined heading.
33491 \begin_layout Plain Layout
33505 \begin_layout Plain Layout
33522 \begin_inset Note Note
33525 \begin_layout Plain Layout
33526 The margin note format is changed only for this example.
33534 \begin_layout Standard
33538 \begin_layout Plain Layout
33548 \begin_inset Note Note
33551 \begin_layout Plain Layout
33552 The following will be displayed when the \SpecialChar LaTeX
33565 \begin_layout Standard
33566 You need to install the \SpecialChar LaTeX
33571 to see the following part of this section in the output.
33574 \begin_layout Standard
33578 \begin_layout Plain Layout
33590 \begin_layout Chapter
33594 \begin_layout Section
33596 \begin_inset Index idx
33599 \begin_layout Plain Layout
33600 Boxes ! Introduction
33608 \begin_layout Standard
33609 Boxes are used to format a block of text.
33610 Boxes can be used to write documents with multiple languages, see section
33611 \begin_inset space ~
33615 \begin_inset CommandInset ref
33617 reference "sec:Minipages"
33621 , to frame texts, see section
33622 \begin_inset space ~
33626 \begin_inset CommandInset ref
33628 reference "sec:Decoration"
33632 , to prevent words from being hyphenated, see section
33633 \begin_inset space ~
33637 \begin_inset CommandInset ref
33639 reference "sec:Prevent-Hyphenation"
33643 , to align text, see section
33644 \begin_inset space ~
33648 \begin_inset CommandInset ref
33650 reference "subsec:Vertical-Alignment"
33654 , or to set the background color of texts, see section
33655 \begin_inset space ~
33659 \begin_inset CommandInset ref
33661 reference "sec:Colored-Boxes"
33668 \begin_layout Standard
33669 Boxes can be inserted with the menu
33671 Insert\SpecialChar menuseparator
33674 or the toolbar button
33677 arg "box-insert Frameless"
33681 A grey box with the label
33686 \begin_inset Graphics
33687 filename clipart/BoxInsetDefault.png
33689 scaleBeforeRotation
33694 The box type can be specified by right-clicking on the box and selecting
33700 The box dialog offers the
33703 \begin_inset space ~
33725 is the default for new boxes and is explained in section
33726 \begin_inset space ~
33730 \begin_inset CommandInset ref
33732 reference "sec:Minipages"
33740 is described in section
33741 \begin_inset space ~
33745 \begin_inset CommandInset ref
33747 reference "sec:Parboxes"
33756 \begin_inset CommandInset ref
33758 reference "sec:Prevent-Hyphenation"
33765 \begin_layout Standard
33766 Boxes are not numbered and can therefore not be referenced like floats or
33770 \begin_layout Standard
33771 \begin_inset Note Greyedout
33774 \begin_layout Plain Layout
33779 Boxes must not be the item in an
33795 \begin_layout Standard
33796 \begin_inset Note Greyedout
33799 \begin_layout Plain Layout
33804 For an unknown reason you can only set the
33807 \begin_inset space ~
33816 when you use a framed box.
33820 \begin_inset space ~
33825 type and without frames are explained in section
33826 \begin_inset space ~
33830 \begin_inset CommandInset ref
33832 reference "sec:Prevent-Hyphenation"
33844 \begin_layout Section
33846 \begin_inset CommandInset label
33848 name "sec:Box-Dialog"
33853 \begin_inset Index idx
33856 \begin_layout Plain Layout
33865 \begin_layout Subsection
33867 \begin_inset Index idx
33870 \begin_layout Plain Layout
33879 \begin_layout Standard
33880 In the box dialog you can adjust the box geometry in the fields
33889 The available units for the geometry are explained in Table
33890 \begin_inset space ~
33894 \begin_inset CommandInset ref
33896 reference "tab:Units"
33905 offers the following additional sizes:
33908 \begin_layout Description
33909 Depth This is the plain text
33910 \begin_inset Quotes eld
33914 \begin_inset Quotes erd
33918 It ignores the total depth when there are multiple text lines in the box:
33919 \begin_inset Newline newline
33923 \begin_inset Newline newline
33927 \begin_inset Newline newline
33931 \begin_inset Box Boxed
33941 height_special "depth"
33946 backgroundcolor "none"
33949 \begin_layout Plain Layout
33951 Box height set to 1
33952 \begin_inset space \thinspace{}
33961 \begin_inset Newline newline
33965 \begin_inset Newline newline
33971 \begin_layout Description
33972 Height This is the height of the text that is inside the box.
33974 \begin_inset space \thinspace{}
33978 \begin_inset space \space{}
33981 2 for this size will set the box height to 2
33982 \begin_inset space ~
33985 times the text height:
33986 \begin_inset Box Boxed
33996 height_special "height"
34001 backgroundcolor "none"
34004 \begin_layout Plain Layout
34006 Box height set to 2
34007 \begin_inset space \thinspace{}
34018 \begin_layout Description
34020 \begin_inset space ~
34023 Height This is the Height
34024 \begin_inset space \thinspace{}
34028 \begin_inset space \thinspace{}
34032 \begin_inset Box Boxed
34042 height_special "totalheight"
34047 backgroundcolor "none"
34050 \begin_layout Plain Layout
34052 Box height set to 1
34053 \begin_inset space \thinspace{}
34057 \begin_inset space ~
34068 \begin_layout Description
34069 Width This sets the width of the box as height:
34070 \begin_inset Box Boxed
34080 height_special "width"
34085 backgroundcolor "none"
34088 \begin_layout Plain Layout
34090 Box height set to 1
34091 \begin_inset space \thinspace{}
34102 \begin_layout Subsection
34104 \begin_inset Index idx
34107 \begin_layout Plain Layout
34116 \begin_layout Standard
34117 When you have chosen an
34120 \begin_inset space ~
34125 , the vertical box alignment can be:
34128 \begin_layout Description
34129 Top This is an example text line.
34131 \begin_inset Box Boxed
34141 height_special "totalheight"
34146 backgroundcolor "none"
34149 \begin_layout Plain Layout
34151 This box is top-aligned.
34156 This is an example text line.
34159 \begin_layout Description
34160 Middle This is an example text line.
34162 \begin_inset Box Boxed
34172 height_special "totalheight"
34177 backgroundcolor "none"
34180 \begin_layout Plain Layout
34182 This box is middle-aligned.
34187 This is an example text line.
34190 \begin_layout Description
34191 Bottom This is an example text line.
34193 \begin_inset Box Boxed
34203 height_special "totalheight"
34208 backgroundcolor "none"
34211 \begin_layout Plain Layout
34213 This box is bottom-aligned.
34218 This is an example text line.
34221 \begin_layout Standard
34222 \begin_inset Note Greyedout
34225 \begin_layout Plain Layout
34230 The vertical box alignment can be lost in the output when you have two
34231 boxes in a line and one has e.
34232 \begin_inset space \thinspace{}
34236 \begin_inset space \space{}
34239 a shadow and the other one not.
34247 \begin_layout Standard
34248 The horizontal box alignment can be set via \SpecialChar LyX
34249 's paragraph dialog when you
34250 set the box into its own paragraph.
34253 \begin_layout Standard
34254 \begin_inset VSpace bigskip
34257 When you have chosen an
34260 \begin_inset space ~
34265 , the box content can be aligned vertically to:
34268 \begin_layout Description
34269 top This is an example text line.
34271 \begin_inset Box Boxed
34281 height_special "totalheight"
34286 backgroundcolor "none"
34289 \begin_layout Plain Layout
34291 This box text is top-aligned.
34296 This is an example text line.
34299 \begin_layout Description
34300 middle This is an example text line.
34302 \begin_inset Box Boxed
34312 height_special "totalheight"
34317 backgroundcolor "none"
34320 \begin_layout Plain Layout
34322 This box text is middle-aligned.
34327 This is an example text line.
34330 \begin_layout Description
34331 bottom This is an example text line.
34333 \begin_inset Box Boxed
34343 height_special "totalheight"
34348 backgroundcolor "none"
34351 \begin_layout Plain Layout
34353 This box text is bottom-aligned.
34358 This is an example text line.
34361 \begin_layout Description
34362 stretch This is an example text line.
34364 \begin_inset Box Boxed
34374 height_special "totalheight"
34379 backgroundcolor "none"
34382 \begin_layout Plain Layout
34387 \begin_layout Plain Layout
34392 \begin_layout Plain Layout
34399 This is an example text line.
34402 \begin_layout Standard
34403 To stretch the box content, it must consist of more than one paragraph.
34404 In the example above every text line is in an own paragraph.
34407 \begin_layout Standard
34408 \begin_inset VSpace bigskip
34411 To align the box content horizontally you can use \SpecialChar LyX
34412 's paragraph dialog when
34416 \begin_inset space ~
34424 \begin_layout Standard
34426 \begin_inset Box Boxed
34436 height_special "totalheight"
34441 backgroundcolor "none"
34444 \begin_layout Plain Layout
34449 \begin_layout Plain Layout
34454 \begin_layout Plain Layout
34464 \begin_layout Standard
34465 If you have not set an
34468 \begin_inset space ~
34473 , you can align the box content horizontally in the box dialog.
34476 \begin_layout Standard
34478 \begin_inset Box Boxed
34488 height_special "totalheight"
34493 backgroundcolor "none"
34496 \begin_layout Plain Layout
34497 This box text is horizontally stretched.
34505 \begin_layout Subsection
34507 \begin_inset CommandInset label
34509 name "sec:Decoration"
34514 \begin_inset Index idx
34517 \begin_layout Plain Layout
34526 \begin_layout Standard
34527 The type of the box can be specified in the box dialog in the drop-down
34533 The following types are possible:
34536 \begin_layout Description
34538 \begin_inset space ~
34541 frame Nothing is drawn.
34544 \begin_layout Description
34546 \begin_inset space ~
34550 \begin_inset space ~
34553 frame This draws a rectangular frame around the box.
34554 The frame line thickness can be specified.
34556 \begin_inset Box Boxed
34566 height_special "totalheight"
34571 backgroundcolor "none"
34574 \begin_layout Plain Layout
34584 \begin_layout Description
34586 \begin_inset space ~
34590 \begin_inset space ~
34593 thin This draws an oval frame around the box.
34594 The frame line thickness has the size 0.4
34595 \begin_inset space \thinspace{}
34600 \begin_inset Box ovalbox
34610 height_special "totalheight"
34615 backgroundcolor "none"
34618 \begin_layout Plain Layout
34628 \begin_layout Description
34630 \begin_inset space ~
34634 \begin_inset space ~
34637 thick This draws an oval frame around the box.
34638 The frame line thickness has the size 0.8
34639 \begin_inset space \thinspace{}
34644 \begin_inset Box Ovalbox
34654 height_special "totalheight"
34659 backgroundcolor "none"
34662 \begin_layout Plain Layout
34672 \begin_layout Description
34674 \begin_inset space ~
34677 shadow This draws a rectangular frame with a shadow around the box.
34678 The frame line thickness and the shadow can be specified.
34680 \begin_inset Box Shadowbox
34690 height_special "totalheight"
34695 backgroundcolor "none"
34698 \begin_layout Plain Layout
34708 \begin_layout Description
34710 \begin_inset space ~
34713 background This draws a box with a red background.
34714 Unlike colored boxes
34718 \begin_layout Plain Layout
34720 \begin_inset space \thinspace{}
34724 \begin_inset CommandInset ref
34726 reference "sec:Colored-Boxes"
34735 , it always uses the whole column width and the box is set as its own paragraph.
34737 \begin_inset Box Shaded
34747 height_special "totalheight"
34752 backgroundcolor "none"
34755 \begin_layout Plain Layout
34756 Shaded background box
34764 \begin_layout Description
34766 \begin_inset space ~
34770 \begin_inset space ~
34773 frame This draws a double-line rectangular frame around the box.
34774 The line thickness of the inner frame is 0.75
34775 \begin_inset space \thinspace{}
34779 \begin_inset space ~
34782 thickness, the thickness of the outer frame is 1.5
34783 \begin_inset space \thinspace{}
34787 \begin_inset space ~
34791 The distance between the lines is 1.5
34792 \begin_inset space \thinspace{}
34796 \begin_inset space ~
34800 \begin_inset space \thinspace{}
34804 \begin_inset space \thinspace{}
34808 \begin_inset space \thinspace{}
34813 \begin_inset Box Doublebox
34823 height_special "totalheight"
34828 backgroundcolor "none"
34831 \begin_layout Plain Layout
34833 Double rectangular box
34841 \begin_layout Standard
34842 \begin_inset VSpace bigskip
34846 's box label will reflect the different frame types.
34847 To be able to use all types, the \SpecialChar LaTeX
34853 \begin_inset Index idx
34856 \begin_layout Plain Layout
34858 -packages ! fancybox
34866 \begin_layout Standard
34867 \begin_inset VSpace bigskip
34870 When you use the decoration
34872 simple rectangular frame
34874 and no inner box, you can allow page breaks within a box.
34875 Note that then, unlike other framed boxes, the frame always uses the whole
34876 column width and the box is set as its own paragraph:
34877 \begin_inset Box Framed
34887 height_special "totalheight"
34892 backgroundcolor "none"
34895 \begin_layout Plain Layout
34896 Allow page break box
34904 \begin_layout Section
34906 \begin_inset Index idx
34909 \begin_layout Plain Layout
34910 Boxes ! Customization
34918 \begin_layout Standard
34919 The diameter of the round corners of the oval boxes can be set with the
34930 \begin_layout Standard
34938 \begin_layout Standard
34939 sets the diameter to 1
34940 \begin_inset space \thinspace{}
34947 \begin_layout Standard
34955 \begin_layout Standard
34956 sets the diameter to
34959 \begin_inset space \thinspace{}
34963 \begin_inset space \thinspace{}
34966 minimum(width and height of box)
34978 \begin_layout Standard
34982 \begin_layout Plain Layout
34992 \begin_inset Box Ovalbox
35002 height_special "totalheight"
35007 backgroundcolor "none"
35010 \begin_layout Plain Layout
35019 \begin_inset space \thinspace{}
35023 \begin_inset space \thinspace{}
35027 \begin_inset space \thinspace{}
35039 \begin_layout Plain Layout
35051 \begin_layout Standard
35052 \begin_inset VSpace bigskip
35058 \begin_layout Standard
35059 The default background color red of
35063 boxes can either be changed locally with the command
35067 definecolor{shadecolor}
35069 or globally with the menu
35071 Tools\SpecialChar menuseparator
35072 Preferences\SpecialChar menuseparator
35073 Colors\SpecialChar menuseparator
35075 \begin_inset space ~
35087 command is explained in section
35088 \begin_inset space ~
35092 \begin_inset CommandInset ref
35094 reference "sec:Colored-Tables"
35102 \begin_layout Plain Layout
35109 requires the \SpecialChar LaTeX
35114 in the preamble, see section
35115 \begin_inset space ~
35119 \begin_inset CommandInset ref
35121 reference "sec:Colored-Boxes"
35130 For example the appearance of the following shaded background box is set
35131 with the \SpecialChar TeX
35135 \begin_layout Standard
35140 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35143 \begin_layout Standard
35147 \begin_layout Plain Layout
35151 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35157 \begin_inset Box Shaded
35167 height_special "totalheight"
35172 backgroundcolor "none"
35175 \begin_layout Plain Layout
35178 This is yellow text in a
35188 box with dark green background.
35197 \begin_layout Plain Layout
35201 definecolor{shadecolor}{rgb}{1,0,0}
35209 \begin_layout Standard
35210 \begin_inset VSpace bigskip
35213 Manually changed sizes and colors are valid for all boxes following the
35214 commands that change them.
35217 \begin_layout Section
35219 \begin_inset CommandInset label
35221 name "sec:Minipages"
35226 \begin_inset Index idx
35229 \begin_layout Plain Layout
35238 \begin_layout Standard
35239 Minipages are treated by \SpecialChar LaTeX
35240 as pages within pages and can therefore for example
35241 have their own footnotes.
35244 \begin_layout Standard
35245 Minipages are useful when you write documents with different languages.
35248 \begin_layout Standard
35249 Below are two example minipages side by side.
35250 Their width is set to 45
35251 \begin_inset space \thinspace{}
35254 col% and they are separated by a horizontal fill, that was inserted via
35257 Insert\SpecialChar menuseparator
35259 \begin_inset space ~
35262 Formatting\SpecialChar menuseparator
35264 \begin_inset space ~
35270 \begin_inset Newpage newpage
35276 \begin_layout Standard
35277 \begin_inset Box Frameless
35287 height_special "totalheight"
35292 backgroundcolor "none"
35295 \begin_layout Plain Layout
35298 Dies ist ein deutscher Text.
35299 Dies ist ein deutscher Text.
35300 Dies ist ein deutscher Text.
35301 Dies ist ein deutscher Text.
35302 Dies ist ein deutscher Text.
35303 Dies ist ein deutscher Text.
35304 Dies ist ein deutscher Text.
35305 Dies ist ein deutscher Text.
35306 Dies ist ein deutscher Text.
35307 Dies ist ein deutscher Text.
35308 Dies ist ein deutscher Text.
35309 Dies ist ein deutscher Text.
35310 Dies ist ein deutscher Text
35314 \begin_layout Plain Layout
35317 Dies ist eine deutsche Fußnote.
35323 Dies ist ein deutscher Text.
35324 Dies ist ein deutscher Text.
35330 \begin_inset space \hfill{}
35334 \begin_inset Box Frameless
35344 height_special "totalheight"
35349 backgroundcolor "none"
35352 \begin_layout Plain Layout
35353 This is an English Text.
35354 This is an English Text.
35355 This is an English Text.
35356 This is an English Text.
35357 This is an English Text.
35358 This is an English Text.
35359 This is an English Text.
35360 This is an English Text.
35361 This is an English Text.
35362 This is an English Text.
35363 This is an English Text.
35364 This is an English Text.
35365 This is an English Text.
35366 This is an English Text.
35367 This is an English Text.
35368 This is an English Text.
35372 \begin_layout Plain Layout
35373 This is an English footnote.
35378 This is an English Text.
35386 \begin_layout Standard
35387 \begin_inset VSpace bigskip
35390 The document-wide paragraph settings are ignored within minipages.
35391 That means that there will be no space between paragraphs in minipages
35392 although you set it to e.
35393 \begin_inset space \thinspace{}
35397 \begin_inset space \space{}
35404 in the document settings.
35407 \begin_layout Standard
35408 Minipages can also be used to set a background color for text parts, see
35410 \begin_inset space ~
35414 \begin_inset CommandInset ref
35416 reference "sec:Colored-Boxes"
35423 \begin_layout Standard
35424 \begin_inset Note Greyedout
35427 \begin_layout Plain Layout
35432 You cannot have floats or margin notes inside minipages but minipages can
35433 be used inside tables, floats, and other boxes.
35441 \begin_layout Standard
35442 \begin_inset VSpace bigskip
35448 \begin_layout Standard
35450 has also basic support for minipages whose size is automatically determined
35451 by the width of their contents, via the module
35453 Variable-width Minipages
35456 The \SpecialChar LyX
35459 varwidth-floats-side-by-side
35461 gives examples of variable-width minipages used for placing two floats
35465 \begin_layout Section
35467 \begin_inset CommandInset label
35469 name "sec:Parboxes"
35474 \begin_inset Index idx
35477 \begin_layout Plain Layout
35486 \begin_layout Standard
35487 Parboxes are very similar to minipages with the difference that they cannot
35491 \begin_layout Standard
35493 \begin_inset Box Frameless
35503 height_special "totalheight"
35508 backgroundcolor "none"
35511 \begin_layout Plain Layout
35512 This a text within a parbox.
35513 This a text within a parbox.
35516 \begin_layout Plain Layout
35517 This footnote won't appear:
35521 \begin_layout Plain Layout
35522 This footnote is inside a parbox and will therefore not appear.
35535 \begin_layout Section
35536 Boxes for Words and Characters
35537 \begin_inset Index idx
35540 \begin_layout Plain Layout
35541 Boxes ! for Characters
35549 \begin_layout Subsection
35550 Prevent Hyphenation
35551 \begin_inset CommandInset label
35553 name "sec:Prevent-Hyphenation"
35558 \begin_inset Index idx
35561 \begin_layout Plain Layout
35562 Boxes ! to Prevent Hyphenation
35570 \begin_layout Standard
35571 You can use the box type
35575 to prevent words or text from being hyphenated.
35576 \begin_inset Newline newline
35579 Here is an example text:
35582 \begin_layout Standard
35583 This line is an example to show how you can prevent the hyphenation of
35584 \begin_inset Quotes eld
35588 \begin_inset Quotes erd
35594 \begin_layout Standard
35595 To prevent the hyphenation of the word
35596 \begin_inset Quotes eld
35600 \begin_inset Quotes erd
35603 , put the word into a box, set the
35606 \begin_inset space ~
35615 and use no explicit width.
35618 \begin_layout Standard
35619 This is the result:
35622 \begin_layout Standard
35623 This line is an example to show how you can prevent the hyphenation of
35624 \begin_inset Box Frameless
35634 height_special "totalheight"
35639 backgroundcolor "none"
35642 \begin_layout Plain Layout
35643 \begin_inset Quotes eld
35647 \begin_inset Quotes erd
35658 \begin_layout Standard
35659 You can alternatively set the command
35660 \begin_inset Quotes eld
35670 \begin_inset Quotes grd
35673 as \SpecialChar TeX
35674 Code directly before the word:
35677 \begin_layout Standard
35678 This line is an example to show how you can prevent the hyphenation of
35679 \begin_inset Quotes eld
35686 \begin_layout Plain Layout
35696 \begin_inset Quotes erd
35702 \begin_layout Standard
35703 Of course the word now protrudes over the side margin.
35704 To avoid this, add via the menu
35706 Insert\SpecialChar menuseparator
35707 Formatting\SpecialChar menuseparator
35709 \begin_inset space ~
35713 \begin_inset space ~
35721 arg "newline-insert newline"
35724 ) a line break before the word:
35727 \begin_layout Standard
35728 This line is an example to show how you can prevent the hyphenation of
35729 \begin_inset Newline newline
35733 \begin_inset Box Frameless
35743 height_special "totalheight"
35748 backgroundcolor "none"
35751 \begin_layout Plain Layout
35752 \begin_inset Quotes eld
35756 \begin_inset Quotes erd
35767 \begin_layout Subsection
35769 \begin_inset CommandInset label
35771 name "subsec:Vertical-Alignment"
35776 \begin_inset Index idx
35779 \begin_layout Plain Layout
35780 Boxes ! for Vertical Alignment
35786 \begin_inset Index idx
35789 \begin_layout Plain Layout
35798 \begin_layout Standard
35799 With the help of the command
35805 you can align words, characters or other boxes vertically relative to the
35813 is used with the following scheme:
35816 \begin_layout Standard
35821 raisebox{lift}[height][depth]{box content}
35824 \begin_layout Standard
35825 The lift can be a positive value to raise the box or a negative value to
35829 \begin_layout Standard
35830 To align for example the word
35831 \begin_inset Quotes eld
35835 \begin_inset Quotes erd
35838 so that the bottom of the
35839 \begin_inset Quotes eld
35843 \begin_inset Quotes erd
35847 \begin_inset Quotes eld
35851 \begin_inset Quotes erd
35854 is at the baseline, insert the command
35857 \begin_layout Standard
35867 \begin_layout Standard
35868 in \SpecialChar TeX
35869 Code before the word.
35870 After the word insert a closing brace
35871 \begin_inset Quotes eld
35879 \begin_inset Quotes erd
35882 in \SpecialChar TeX
35884 \begin_inset Newline newline
35887 This is the result:
35890 \begin_layout Standard
35891 This is a text line with the word
35895 \begin_layout Plain Layout
35907 \begin_inset Quotes eld
35911 \begin_inset Quotes erd
35918 \begin_layout Plain Layout
35928 \begin_layout Standard
35929 \begin_inset VSpace bigskip
35932 When you raise or lower characters in a line, the line distance will be
35936 \begin_layout Standard
35937 This is a text line with the word
35941 \begin_layout Plain Layout
35953 \begin_inset Quotes eld
35957 \begin_inset Quotes erd
35964 \begin_layout Plain Layout
35972 \begin_inset Newline newline
35975 This is a text line with the word
35979 \begin_layout Plain Layout
35989 \begin_inset Quotes eld
35993 \begin_inset Quotes erd
36000 \begin_layout Plain Layout
36010 \begin_layout Standard
36011 If you want to prevent this for a certain reason, set the box height to
36016 \begin_layout Standard
36026 \begin_layout Standard
36027 This is a text line with the word
36031 \begin_layout Plain Layout
36043 \begin_inset Quotes eld
36047 \begin_inset Quotes erd
36054 \begin_layout Plain Layout
36062 \begin_inset Newline newline
36066 \begin_inset Newline newline
36069 This is a text line with the word
36073 \begin_layout Plain Layout
36077 raisebox{0.5cm}[0pt]{
36083 \begin_inset Quotes eld
36087 \begin_inset Quotes erd
36094 \begin_layout Plain Layout
36104 \begin_layout Section
36106 \begin_inset CommandInset label
36108 name "sec:Colored-Boxes"
36113 \begin_inset Index idx
36116 \begin_layout Plain Layout
36125 \begin_layout Standard
36126 To color the background of a box just select the color you like in the box
36128 This is for example a box with orange background:
36129 \begin_inset Box Frameless
36139 height_special "totalheight"
36144 backgroundcolor "orange"
36147 \begin_layout Plain Layout
36148 Box with orange background
36156 \begin_layout Standard
36157 If you use the decoration
36160 \begin_inset space ~
36164 \begin_inset space ~
36169 you can set a frame color.
36170 In this case you must also specify a background color (LyX sets white as
36172 Here is an example:
36173 \begin_inset Box Boxed
36183 height_special "totalheight"
36188 backgroundcolor "yellow"
36191 \begin_layout Plain Layout
36192 Box with teal frame color and yellow background color
36200 \begin_layout Standard
36201 \begin_inset VSpace bigskip
36204 Of course you can also have colored text inside a colored box:
36205 \begin_inset Newline newline
36209 \begin_inset Box Boxed
36219 height_special "totalheight"
36224 backgroundcolor "magenta"
36227 \begin_layout Plain Layout
36230 This is colored text within a colored, framed box
36238 \begin_layout Standard
36239 \begin_inset VSpace bigskip
36245 \begin_layout Standard
36246 If you need another color than the predefined ones, you can define your
36247 own color as described in section
36248 \begin_inset space ~
36252 \begin_inset CommandInset ref
36254 reference "sec:Colored-Tables"
36259 To use your own color you must typeset the box by using TeX code:
36262 \begin_layout Standard
36263 Colored boxes without frame are created with the command
36270 It has the following scheme:
36273 \begin_layout Standard
36278 colorbox{color}{box content}
36281 \begin_layout Standard
36282 The box content can also be a box and colored boxes can also be within other
36285 \begin_inset space \thinspace{}
36289 \begin_inset space \space{}
36292 a darkgreen background for a word, insert the command
36295 \begin_layout Standard
36300 colorbox{darkgreen}{
36303 \begin_layout Standard
36304 before the word in \SpecialChar TeX
36306 After the word insert a closing brace
36307 \begin_inset Quotes eld
36315 \begin_inset Quotes erd
36318 in \SpecialChar TeX
36320 \begin_inset Newline newline
36323 This is the result:
36326 \begin_layout Standard
36327 This is a line where the word
36331 \begin_layout Plain Layout
36335 colorbox{darkgreen}{
36341 \begin_inset Quotes eld
36345 \begin_inset Quotes erd
36352 \begin_layout Plain Layout
36359 has a darkgreen background.
36362 \begin_layout Standard
36363 Framed, colored boxes are created with the command
36370 It has the following scheme:
36373 \begin_layout Standard
36378 fcolorbox{frame color}{box color}{box content}
36381 \begin_layout Section
36382 Rotated and Scaled Boxes
36385 \begin_layout Standard
36386 To use the boxes described in this section, the module
36390 must be loaded in the document settings.
36393 \begin_layout Standard
36394 \begin_inset Note Greyedout
36397 \begin_layout Plain Layout
36402 Not all DVI viewers are able to display rotated or scaled material.
36410 \begin_layout Standard
36411 \begin_inset Note Greyedout
36414 \begin_layout Plain Layout
36419 Floats are not allowed inside a rotated or scaled box.
36427 \begin_layout Subsection
36429 \begin_inset Index idx
36432 \begin_layout Plain Layout
36439 \begin_inset Index idx
36442 \begin_layout Plain Layout
36451 \begin_layout Standard
36452 To rotate material, you can put it into a
36457 Such a box is inserted via the menu
36459 Insert\SpecialChar menuseparator
36460 Custom Insets\SpecialChar menuseparator
36466 \begin_layout Standard
36467 The rotation origin can be specified via the inset
36473 Insert\SpecialChar menuseparator
36481 The following positions are possible:
36501 (top), along with meaningful combinations of the four base positions.
36506 means that the rotation origin is at the top left corner of the box.
36507 When no rotation origin is specified, the position
36512 The rotation angle is a number that can be negative that specifies the
36514 The rotation direction is counterclockwise.
36517 \begin_layout Standard
36518 In the following example
36522 was inserted to the
36530 was inserted to the
36537 \begin_layout Standard
36539 \begin_inset Flex Rotatebox
36542 \begin_layout Plain Layout
36543 \begin_inset Argument 1
36546 \begin_layout Plain Layout
36553 \begin_inset Argument 2
36556 \begin_layout Plain Layout
36570 \begin_layout Standard
36571 The box content can also be another box or an inline formula:
36574 \begin_layout Standard
36576 \begin_inset Flex Rotatebox
36579 \begin_layout Plain Layout
36580 \begin_inset Argument 1
36583 \begin_layout Plain Layout
36590 \begin_inset Argument 2
36593 \begin_layout Plain Layout
36600 \begin_inset Box Doublebox
36610 height_special "totalheight"
36615 backgroundcolor "none"
36618 \begin_layout Plain Layout
36630 \begin_inset Flex Rotatebox
36633 \begin_layout Plain Layout
36634 \begin_inset Argument 1
36637 \begin_layout Plain Layout
36644 \begin_inset Argument 2
36647 \begin_layout Plain Layout
36654 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36665 \begin_layout Standard
36666 or an image or table:
36669 \begin_layout Standard
36671 \begin_inset Flex Rotatebox
36674 \begin_layout Plain Layout
36675 \begin_inset Argument 1
36678 \begin_layout Plain Layout
36685 \begin_inset Argument 2
36688 \begin_layout Plain Layout
36695 \begin_inset Graphics
36696 filename clipart/platypus.eps
36707 with a rotated image
36708 \begin_inset Flex Rotatebox
36711 \begin_layout Plain Layout
36712 \begin_inset Argument 2
36715 \begin_layout Plain Layout
36722 \begin_inset Tabular
36723 <lyxtabular version="3" rows="2" columns="2">
36724 <features tabularvalignment="middle">
36725 <column alignment="center" valignment="top">
36726 <column alignment="center" valignment="top">
36728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36731 \begin_layout Plain Layout
36737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36740 \begin_layout Plain Layout
36748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36751 \begin_layout Plain Layout
36757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36760 \begin_layout Plain Layout
36777 \begin_inset Index idx
36780 \begin_layout Plain Layout
36787 \begin_inset Index idx
36790 \begin_layout Plain Layout
36791 Table Customization ! Rotating
36799 \begin_layout Standard
36800 \begin_inset Note Greyedout
36803 \begin_layout Plain Layout
36812 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36814 errors when viewing/exporting the document.
36822 \begin_layout Subsection
36824 \begin_inset Index idx
36827 \begin_layout Plain Layout
36834 \begin_inset Index idx
36837 \begin_layout Plain Layout
36846 \begin_layout Standard
36847 To scale material put it into a
36852 Such a box is inserted via the menu
36854 Insert\SpecialChar menuseparator
36855 Custom Insets\SpecialChar menuseparator
36861 \begin_layout Standard
36866 inset has the mandatory inset
36870 and the optional inset
36874 (inserted via the menu
36876 Insert\SpecialChar menuseparator
36880 Input there the horizontal and vertical scale factor, respectively.
36885 inset is used, the horizontal factor will also be used as the vertical
36889 \begin_layout Standard
36890 To get for example the double text size, compared to the document text size,
36901 \begin_inset Flex Scalebox
36904 \begin_layout Plain Layout
36905 \begin_inset Argument 1
36908 \begin_layout Plain Layout
36922 \begin_layout Standard
36940 \begin_inset Flex Scalebox
36943 \begin_layout Plain Layout
36944 \begin_inset Argument 1
36947 \begin_layout Plain Layout
36954 \begin_inset Argument 2
36957 \begin_layout Plain Layout
36971 \begin_layout Standard
36972 If the scaling factor is negative, the box content will be mirrored.
36989 can be used to create mirror writing:
36990 \begin_inset Flex Scalebox
36993 \begin_layout Plain Layout
36994 \begin_inset Argument 1
36997 \begin_layout Plain Layout
37004 \begin_inset Argument 2
37007 \begin_layout Plain Layout
37021 \begin_layout Standard
37039 \begin_inset Flex Scalebox
37042 \begin_layout Plain Layout
37043 \begin_inset Argument 1
37046 \begin_layout Plain Layout
37053 \begin_inset Argument 2
37056 \begin_layout Plain Layout
37070 \begin_layout Standard
37077 Insert\SpecialChar menuseparator
37078 Custom Insets\SpecialChar menuseparator
37104 \begin_layout Standard
37105 \begin_inset Note Greyedout
37108 \begin_layout Plain Layout
37117 inset is empty or contains other characters than numbers you will get LaTeX
37118 errors when viewing/exporting the document.
37126 \begin_layout Standard
37127 \begin_inset VSpace bigskip
37136 Insert\SpecialChar menuseparator
37137 Custom Insets\SpecialChar menuseparator
37140 ) is used to scale the content to a defined width and height.
37145 inset has the mandatory inset
37149 and the optional inset
37153 (inserted via the menu
37155 Insert\SpecialChar menuseparator
37159 Input there the width and height, respectively, as value with a unit.
37161 \begin_inset CommandInset ref
37163 reference "tab:Units"
37167 lists the possible units.
37168 If there is an exclamation mark
37172 in of of the two insets, the size is set so that the aspect ratio of the
37173 box content is kept.
37178 inset is used an exclamation mark will internally be used for the height.
37181 \begin_layout Standard
37199 \begin_inset Flex Resizebox
37202 \begin_layout Plain Layout
37203 \begin_inset Argument 1
37206 \begin_layout Plain Layout
37213 \begin_inset Argument 2
37216 \begin_layout Plain Layout
37228 \begin_inset Newline newline
37252 \begin_inset Flex Resizebox
37255 \begin_layout Plain Layout
37256 \begin_inset Argument 1
37259 \begin_layout Plain Layout
37266 \begin_inset Argument 2
37269 \begin_layout Plain Layout
37283 \begin_layout Standard
37284 \begin_inset Note Greyedout
37287 \begin_layout Plain Layout
37296 inset is empty or contains an invalid unit you will get LaTeX errors when
37297 viewing/exporting the document.
37305 \begin_layout Standard
37306 \begin_inset VSpace bigskip
37312 \begin_layout Standard
37313 The boxes can be combined in any order.
37322 which is in turn inside a
37329 \begin_layout Standard
37332 \begin_inset Flex Rotatebox
37335 \begin_layout Plain Layout
37336 \begin_inset Argument 1
37339 \begin_layout Plain Layout
37346 \begin_inset Argument 2
37349 \begin_layout Plain Layout
37356 \begin_inset Flex Resizebox
37359 \begin_layout Plain Layout
37360 \begin_inset Argument 1
37363 \begin_layout Plain Layout
37370 \begin_inset Flex Reflectbox
37373 \begin_layout Plain Layout
37392 \begin_layout Standard
37394 Images, tables, and inline formulas are allowed as box content:
37397 \begin_layout Standard
37400 \begin_inset Flex Resizebox
37403 \begin_layout Plain Layout
37404 \begin_inset Argument 1
37407 \begin_layout Plain Layout
37414 \begin_inset Flex Reflectbox
37417 \begin_layout Plain Layout
37418 \begin_inset Graphics
37419 filename clipart/platypus.eps
37436 \begin_inset Flex Resizebox
37439 \begin_layout Plain Layout
37440 \begin_inset Argument 1
37443 \begin_layout Plain Layout
37450 \begin_inset Flex Reflectbox
37453 \begin_layout Plain Layout
37454 \begin_inset Tabular
37455 <lyxtabular version="3" rows="2" columns="2">
37456 <features tabularvalignment="middle">
37457 <column alignment="center" valignment="top">
37458 <column alignment="center" valignment="top">
37460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37463 \begin_layout Plain Layout
37469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37472 \begin_layout Plain Layout
37480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37483 \begin_layout Plain Layout
37489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37492 \begin_layout Plain Layout
37514 \begin_inset Flex Resizebox
37517 \begin_layout Plain Layout
37518 \begin_inset Argument 1
37521 \begin_layout Plain Layout
37528 \begin_inset Flex Reflectbox
37531 \begin_layout Plain Layout
37532 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37546 \begin_inset Index idx
37549 \begin_layout Plain Layout
37556 \begin_inset Index idx
37559 \begin_layout Plain Layout
37560 Table Customization ! Scaling
37568 \begin_layout Standard
37569 When the global formula style
37573 is used in the document
37577 \begin_layout Plain Layout
37579 \begin_inset Quotes eld
37583 \begin_inset Quotes erd
37586 is added to the document class options.
37591 , display style formulas can also be scaled.
37594 \begin_layout Chapter
37595 Objects Surrounded by Text
37596 \begin_inset Index idx
37599 \begin_layout Plain Layout
37608 \begin_layout Section
37610 \begin_inset CommandInset label
37612 name "sec:Wrap-Floats"
37617 \begin_inset Index idx
37620 \begin_layout Plain Layout
37621 Floats ! Wrap Floats
37627 \begin_inset Index idx
37630 \begin_layout Plain Layout
37631 Surrounded by text ! Wrap Floats
37639 \begin_layout Standard
37640 \begin_inset Wrap figure
37647 \begin_layout Plain Layout
37648 \begin_inset Graphics
37649 filename clipart/mobius.eps
37651 scaleBeforeRotation
37652 rotateOrigin center
37659 \begin_layout Plain Layout
37660 \begin_inset Caption Standard
37662 \begin_layout Plain Layout
37663 \begin_inset CommandInset label
37665 name "fig:This-is-a"
37669 This is a figure wrap float.
37679 This float type is used if you want to wrap text around a figure or table
37680 so that it only occupies some fraction of the column width.
37681 It can be inserted using the menu
37683 Insert\SpecialChar menuseparator
37684 Floats\SpecialChar menuseparator
37686 \begin_inset space ~
37690 \begin_inset space ~
37698 \begin_inset space ~
37702 \begin_inset space ~
37707 if the \SpecialChar LaTeX
37713 \begin_inset Index idx
37716 \begin_layout Plain Layout
37718 -packages ! wrapfig
37727 \begin_layout Plain Layout
37728 Installing a \SpecialChar LaTeX
37729 -package is explained it in the
37733 \begin_inset space ~
37743 The settings of the float can be modified by right-clicking on the float
37745 The mandatory settings are the float
37758 that specifies how much the float is set into the paragraph
37759 \begin_inset space \thinspace{}
37763 \begin_inset space \thinspace{}
37766 page margin, and the
37769 \begin_inset space ~
37774 that specifies how many text lines the float will approximately need.
37775 The line span is often hard to approximate; so it is better only to use
37776 it when you encounter float placement problems.
37777 You can furthermore decide if \SpecialChar LaTeX
37778 is allowed to let the float float within
37779 the paragraph or to surrounding paragraphs.
37781 \begin_inset space ~
37785 \begin_inset CommandInset ref
37787 reference "fig:This-is-a"
37791 is an example text wrap float with a width of 40
37792 \begin_inset space \thinspace{}
37796 \begin_inset space \thinspace{}
37799 cm overhang, set to the left.
37802 \begin_layout Standard
37803 \begin_inset Note Greyedout
37806 \begin_layout Plain Layout
37812 \begin_inset space ~
37815 wrap float floats are fragile! E.
37816 \begin_inset space \thinspace{}
37820 \begin_inset space \space{}
37823 having a figure too close to the bottom of the page can mess things up in
37824 such a way that the float does not appear in the output or that it is placed
37825 over some other text.
37833 \begin_layout Standard
37834 In general, the following applies for wrap floats:
37837 \begin_layout Itemize
37838 They should not be placed in paragraphs that run over a page break.
37839 That means that wrap floats are better inserted in their exact place when
37840 the document is almost finished and you are able to estimate where page
37841 breaks will appear.
37844 \begin_layout Itemize
37845 They should either be placed in their own paragraph before the paragraph
37846 where they should wrap into or within a paragraph.
37849 \begin_layout Itemize
37850 In consecutive paragraphs they may cause troubles, so ensure that there
37851 is a text paragraph between them as separator.
37854 \begin_layout Itemize
37855 They are not allowed in section headings or tables.
37858 \begin_layout Itemize
37859 Their numbering and referencing works as described in chap.
37860 \begin_inset space \thinspace{}
37864 \begin_inset CommandInset ref
37866 reference "chap:Floats"
37873 \begin_layout Section
37874 Surrounded Fixed Objects
37875 \begin_inset Index idx
37878 \begin_layout Plain Layout
37879 Surrounded by text ! Fixed objects
37887 \begin_layout Standard
37888 The wrap floats described in sec.
37889 \begin_inset space \thinspace{}
37893 \begin_inset CommandInset ref
37895 reference "sec:Wrap-Floats"
37899 have these positions in the paragraph:
37902 \begin_layout Standard
37905 \begin_inset Tabular
37906 <lyxtabular version="3" rows="2" columns="2">
37907 <features tabularvalignment="middle">
37908 <column alignment="center" valignment="top">
37909 <column alignment="center" valignment="top">
37911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37914 \begin_layout Plain Layout
37917 arg "dialog-show-new-inset graphics"
37925 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37928 \begin_layout Plain Layout
37936 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37939 \begin_layout Plain Layout
37945 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37948 \begin_layout Plain Layout
37960 \begin_inset Tabular
37961 <lyxtabular version="3" rows="2" columns="2">
37962 <features tabularvalignment="middle">
37963 <column alignment="center" valignment="top">
37964 <column alignment="center" valignment="top">
37966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37969 \begin_layout Plain Layout
37975 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37978 \begin_layout Plain Layout
37981 arg "dialog-show-new-inset graphics"
37991 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37994 \begin_layout Plain Layout
38000 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38003 \begin_layout Plain Layout
38017 \begin_layout Standard
38018 To get an object exactly at the position where it is inserted, for example
38019 to get one of these positions:
38020 \begin_inset VSpace defskip
38026 \begin_layout Standard
38029 \begin_inset Tabular
38030 <lyxtabular version="3" rows="2" columns="2">
38031 <features tabularvalignment="middle">
38032 <column alignment="center" valignment="top">
38033 <column alignment="center" valignment="top">
38035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38038 \begin_layout Plain Layout
38044 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38047 \begin_layout Plain Layout
38055 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38058 \begin_layout Plain Layout
38061 arg "dialog-show-new-inset graphics"
38069 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38072 \begin_layout Plain Layout
38084 \begin_inset Tabular
38085 <lyxtabular version="3" rows="2" columns="2">
38086 <features tabularvalignment="middle">
38087 <column alignment="center" valignment="top">
38088 <column alignment="center" valignment="top">
38090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38093 \begin_layout Plain Layout
38099 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38102 \begin_layout Plain Layout
38110 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38113 \begin_layout Plain Layout
38119 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38122 \begin_layout Plain Layout
38125 arg "dialog-show-new-inset graphics"
38139 \begin_inset Tabular
38140 <lyxtabular version="3" rows="2" columns="3">
38141 <features tabularvalignment="middle">
38142 <column alignment="center" valignment="top">
38143 <column alignment="center" valignment="top">
38144 <column alignment="center" valignment="top">
38146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38149 \begin_layout Plain Layout
38155 <cell alignment="center" valignment="top" topline="true" usebox="none">
38158 \begin_layout Plain Layout
38161 arg "dialog-show-new-inset graphics"
38169 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38172 \begin_layout Plain Layout
38180 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38183 \begin_layout Plain Layout
38189 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38192 \begin_layout Plain Layout
38198 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38201 \begin_layout Plain Layout
38213 \begin_inset Tabular
38214 <lyxtabular version="3" rows="2" columns="3">
38215 <features tabularvalignment="middle">
38216 <column alignment="center" valignment="top">
38217 <column alignment="center" valignment="top">
38218 <column alignment="center" valignment="top">
38220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38223 \begin_layout Plain Layout
38229 <cell alignment="center" valignment="top" topline="true" usebox="none">
38232 \begin_layout Plain Layout
38238 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38241 \begin_layout Plain Layout
38249 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38252 \begin_layout Plain Layout
38258 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38261 \begin_layout Plain Layout
38264 arg "dialog-show-new-inset graphics"
38272 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38275 \begin_layout Plain Layout
38289 \begin_layout Standard
38292 \begin_inset Tabular
38293 <lyxtabular version="3" rows="3" columns="2">
38294 <features tabularvalignment="middle">
38295 <column alignment="center" valignment="top">
38296 <column alignment="center" valignment="top">
38298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38301 \begin_layout Plain Layout
38307 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38310 \begin_layout Plain Layout
38318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38321 \begin_layout Plain Layout
38324 arg "dialog-show-new-inset graphics"
38332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38335 \begin_layout Plain Layout
38343 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38346 \begin_layout Plain Layout
38352 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38355 \begin_layout Plain Layout
38367 \begin_inset Tabular
38368 <lyxtabular version="3" rows="3" columns="3">
38369 <features tabularvalignment="middle">
38370 <column alignment="center" valignment="top">
38371 <column alignment="center" valignment="top">
38372 <column alignment="center" valignment="top">
38374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38377 \begin_layout Plain Layout
38383 <cell alignment="center" valignment="top" topline="true" usebox="none">
38386 \begin_layout Plain Layout
38392 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38395 \begin_layout Plain Layout
38403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38406 \begin_layout Plain Layout
38412 <cell alignment="center" valignment="top" usebox="none">
38415 \begin_layout Plain Layout
38418 arg "dialog-show-new-inset graphics"
38426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38429 \begin_layout Plain Layout
38437 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38440 \begin_layout Plain Layout
38446 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38449 \begin_layout Plain Layout
38455 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38458 \begin_layout Plain Layout
38470 \begin_inset Tabular
38471 <lyxtabular version="3" rows="3" columns="2">
38472 <features tabularvalignment="middle">
38473 <column alignment="center" valignment="top">
38474 <column alignment="center" valignment="top">
38476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38479 \begin_layout Plain Layout
38485 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38488 \begin_layout Plain Layout
38496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38499 \begin_layout Plain Layout
38505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38508 \begin_layout Plain Layout
38511 arg "dialog-show-new-inset graphics"
38521 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38524 \begin_layout Plain Layout
38530 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38533 \begin_layout Plain Layout
38547 \begin_layout Standard
38549 you can use the \SpecialChar LaTeX
38555 \begin_inset Index idx
38558 \begin_layout Plain Layout
38560 -packages ! picinpar
38566 Here is an example:
38569 \begin_layout Standard
38573 \begin_layout Plain Layout
38583 \begin_inset Note Note
38586 \begin_layout Plain Layout
38587 The following section will only be displayed when the \SpecialChar LaTeX
38600 \begin_layout Standard
38604 \begin_layout Plain Layout
38608 begin{window}[2,c,{
38614 \begin_inset Graphics
38615 filename clipart/mobius.eps
38618 scaleBeforeRotation
38619 rotateOrigin center
38627 \begin_layout Plain Layout
38632 \begin_layout Plain Layout
38641 It was in the spring of the year 1894 that all London was interested, and
38642 the fashionable world dismayed, by the murder of the Honourable Ronald
38643 Adair under most unusual and inexplicable circumstances.
38644 The public has already learned those particulars of the crime which
38650 \begin_layout Plain Layout
38661 came out in the police investigation, but a good deal was suppressed upon
38662 that occasion, since the case for the prosecution was so overwhelmingly
38663 strong that it was not necessary to bring forward all the facts.
38664 Only now, at the end of nearly ten years, am I allowed to supply those
38665 missing links which make up the whole of that remarkable chain.
38671 \begin_layout Plain Layout
38683 \begin_layout Standard
38687 \begin_layout Plain Layout
38696 Footnote of the paragraph with the fixed object.
38700 \begin_layout Plain Layout
38710 \begin_layout Standard
38711 Surrounded fixed objects are used to let text float around them, at which
38712 the object's position in the paragraph can be determined by the number
38714 In contrary to floats is it not possible to have a numbered caption.
38717 \begin_layout Standard
38718 A fixed object is inserted by adding the command
38721 \begin_layout Standard
38726 begin{window}[2,c,{
38729 \begin_layout Standard
38730 as \SpecialChar TeX
38731 Code at the beginning of the paragraph.
38732 The first parameter in the bracket, here '2', defines the number of lines
38733 above the object, the second, here 'c', the position of the object.
38734 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38735 Behind the command you insert the object.
38736 In this example an image with a width of 40
38737 \begin_inset space \thinspace{}
38740 % of the text column width was inserted.
38741 The object can also be a table, a box or an equation.
38742 Behind the object the command
38745 \begin_layout Standard
38748 },description text]
38749 \begin_inset Newline newline
38755 \begin_layout Standard
38758 \begin_inset Quotes eld
38766 \begin_inset Quotes erd
38769 is in the second line.
38770 The description text is optional.
38771 The text surrounding the object must be in the same paragraph as the object,
38772 so it must begin directly after the
38777 At the end of the paragraph insert the command:
38780 \begin_layout Standard
38788 \begin_layout Standard
38789 Within a paragraph with a fixed object, you cannot insert footnotes in the
38791 You have to use instead the command
38797 inside the paragraph and outside the command
38803 as described in sec.
38804 \begin_inset space \thinspace{}
38808 \begin_inset CommandInset ref
38810 reference "sec:Footnotes"
38817 \begin_layout Standard
38821 \begin_layout Plain Layout
38831 \begin_inset Note Note
38834 \begin_layout Plain Layout
38835 The following will be displayed when the \SpecialChar LaTeX
38848 \begin_layout Standard
38849 You need to install the \SpecialChar LaTeX
38854 to see the following part of this section in the output.
38857 \begin_layout Standard
38861 \begin_layout Plain Layout
38873 \begin_layout Section
38875 \begin_inset Index idx
38878 \begin_layout Plain Layout
38885 \begin_inset Index idx
38888 \begin_layout Plain Layout
38889 Surrounded by text ! Initials
38897 \begin_layout Standard
38898 To use initials, you must have the \SpecialChar LaTeX
38904 \begin_inset Index idx
38907 \begin_layout Plain Layout
38909 -packages ! lettrine
38914 installed and use the module
38918 in your document (menu
38920 Document\SpecialChar menuseparator
38921 Settings\SpecialChar menuseparator
38925 To insert an initial, use the style
38930 This style has a mandatory and two optional arguments.
38931 The arguments are inserted via the
38936 The mandatory argument
38940 contains the letter(s) that is the initial, the argument
38943 \begin_inset space ~
38947 \begin_inset space ~
38952 contains the rest of the word or text of the initial letter(s).
38957 contains parameters to modify the initial.
38958 For more information about the possible parameters see the documentation
38964 \begin_inset CommandInset citation
38971 The style itself contains the text that is surrounding the initial.
38972 The usual style is hereby that the word whose first letter is the initial,
38980 \begin_layout Standard
38981 Here are some examples:
38984 \begin_layout Standard
38988 \begin_layout Plain Layout
38998 \begin_inset Note Note
39001 \begin_layout Plain Layout
39002 The following section will only be displayed when the \SpecialChar LaTeX
39015 \begin_layout Enumerate
39016 No optional argument, the initial is the letter 'I' in the math font
39017 \begin_inset Formula $\mathfrak{Fraktur}$
39024 \begin_layout Initial
39025 \begin_inset Argument 2
39028 \begin_layout Plain Layout
39029 \begin_inset Formula $\mathfrak{I}$
39038 \begin_inset Argument 3
39041 \begin_layout Plain Layout
39047 was in the spring of the year 1894 that all London was interested, and
39048 the fashionable world dismayed, by the murder of the Honourable Ronald
39049 Adair under most unusual and inexplicable circumstances.
39050 The public has already learned those particulars of the crime which came
39051 out in the police investigation, but a good deal was suppressed upon that
39052 occasion, since the case for the prosecution was so overwhelmingly strong
39053 that it was not necessary to bring forward all the facts.
39054 \begin_inset Newpage newpage
39061 \begin_layout Enumerate
39062 Only one line is surrounding the initial, which is formed by two letters
39063 in standard font and no text is printed in small caps:
39067 \begin_layout Initial
39068 \begin_inset Argument 1
39071 \begin_layout Plain Layout
39078 \begin_inset Argument 2
39081 \begin_layout Plain Layout
39087 was in the spring of the year 1894 that all London was interested, and
39088 the fashionable world dismayed, by the murder of the Honourable Ronald
39089 Adair under most unusual and inexplicable circumstances.
39090 The public has already learned those particulars of the crime which came
39091 out in the police investigation, but a good deal was suppressed upon that
39092 occasion, since the case for the prosecution was so overwhelmingly strong
39093 that it was not necessary to bring forward all the facts.
39097 \begin_layout Enumerate
39098 Magenta, hanging initial over 3
39099 \begin_inset space ~
39102 lines in the math font
39103 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39107 \begin_inset Quotes eld
39110 t was in the spring
39111 \begin_inset Quotes erd
39118 ; to color the initial, you must insert this command before the initial:
39119 \begin_inset Newline newline
39133 \begin_inset Newline newline
39141 \begin_inset Quotes eld
39145 \begin_inset Quotes erd
39149 \begin_inset Quotes eld
39153 \begin_inset Quotes erd
39157 \begin_inset Quotes eld
39161 \begin_inset Quotes erd
39165 \begin_inset Quotes eld
39169 \begin_inset Quotes erd
39173 \begin_inset Quotes eld
39177 \begin_inset Quotes erd
39181 \begin_inset Quotes eld
39185 \begin_inset Quotes erd
39189 \begin_inset Quotes eld
39193 \begin_inset Quotes erd
39197 \begin_inset Quotes eld
39201 \begin_inset Quotes erd
39204 , and add this command to the document preamble:
39205 \begin_inset Newline newline
39212 @ifundefined{textcolor}
39213 \begin_inset Newline newline
39217 \begin_inset space ~
39222 usepackage{color}}{}
39226 \begin_layout Standard
39230 \begin_layout Plain Layout
39244 \begin_inset Note Note
39247 \begin_layout Plain Layout
39248 makes the initial magenta
39256 \begin_layout Initial
39257 \begin_inset Argument 1
39260 \begin_layout Plain Layout
39261 lines=3, lhang=0.33, loversize=0.25
39267 \begin_inset Argument 2
39270 \begin_layout Plain Layout
39271 \begin_inset Formula $\mathcal{I}$
39280 \begin_inset Argument 3
39283 \begin_layout Plain Layout
39284 t was in the spring
39289 of the year 1894 that all London was interested, and the fashionable world
39290 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39291 and inexplicable circumstances.
39292 The public has already learned those particulars of the crime which came
39293 out in the police investigation, but a good deal was suppressed upon that
39294 occasion, since the case for the prosecution was so overwhelmingly strong
39295 that it was not necessary to bring forward all the facts.
39299 \begin_layout Standard
39303 \begin_layout Plain Layout
39313 \begin_inset Note Note
39316 \begin_layout Plain Layout
39317 The following will be displayed when the \SpecialChar LaTeX
39330 \begin_layout Standard
39331 You need to install the \SpecialChar LaTeX
39336 to see the following part of this section in the output.
39339 \begin_layout Standard
39343 \begin_layout Plain Layout
39355 \begin_layout Chapter
39356 External Document Parts
39357 \begin_inset Index idx
39360 \begin_layout Plain Layout
39361 External Document Parts
39369 \begin_layout Standard
39372 Insert\SpecialChar menuseparator
39375 you can insert external material into your document.
39379 \begin_layout Description
39381 \begin_inset space ~
39384 Document Another \SpecialChar LyX
39385 document; its content is directly inserted to your document.
39388 \begin_layout Description
39390 \begin_inset space ~
39393 Text A text document; each line is inserted in your document as a separate
39397 \begin_layout Description
39399 \begin_inset space ~
39403 \begin_inset space ~
39407 \begin_inset space ~
39410 Lines A text document; text lines are inserted in your document continuously
39411 but an empty text line creates a new paragraph.
39414 \begin_layout Description
39416 \begin_inset space ~
39419 Material Files in various formats.
39422 \begin_layout Description
39424 \begin_inset space ~
39427 Document \SpecialChar LyX
39428 or \SpecialChar LaTeX
39432 \begin_layout Section
39434 \begin_inset Index idx
39437 \begin_layout Plain Layout
39438 External Document Parts ! External Material
39446 \begin_layout Standard
39447 The external material feature allows you to insert files into your document
39448 without converting them to a format that can be read by the document output
39451 takes care of the necessary conversions.
39452 This is similar to images that can be inserted in various image formats
39453 in \SpecialChar LyX
39455 When you have enabled Instant Preview in \SpecialChar LyX
39456 's preferences under
39459 \begin_inset space ~
39463 \begin_inset space ~
39466 feel\SpecialChar menuseparator
39469 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39473 \begin_layout Standard
39474 External material can be inserted via the
39478 dialog that is accessible with the menu
39480 Insert\SpecialChar menuseparator
39481 File\SpecialChar menuseparator
39483 \begin_inset space ~
39489 Currently the following file types (
39496 \begin_layout Description
39498 \begin_inset space ~
39501 diagram This template supports chess position diagrams made with the program
39505 \begin_inset CommandInset href
39508 target "http://en.wikipedia.org/wiki/XBoard"
39517 \begin_layout Description
39519 \begin_inset space ~
39522 diagram This template supports diagrams created with the program
39525 \begin_inset CommandInset href
39528 target "http://en.wikipedia.org/wiki/Dia_(software)"
39537 \begin_layout Description
39538 Spreadsheet With this template you can insert spreadsheets
39539 \begin_inset space \thinspace{}
39543 \begin_inset space \thinspace{}
39546 tables in the format of
39549 \begin_inset CommandInset href
39552 target "http://en.wikipedia.org/wiki/Gnumeric"
39559 \begin_inset CommandInset href
39561 name "OpenDocument"
39562 target "http://en.wikipedia.org/wiki/OpenDocument"
39567 \begin_inset CommandInset href
39569 name "Microsoft Office XML"
39570 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39575 \begin_inset CommandInset href
39577 name "Office Open XML"
39578 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39583 For this feature \SpecialChar LyX
39584 must have found the program
39588 during its configuration.
39589 This program is part of Gnumeric, so that you must have Gnumeric installed,
39590 also if you don't have tables in the Gnumeric format.
39591 For examples and possible limitations have a look at \SpecialChar LyX
39599 \begin_layout Description
39601 \begin_inset space ~
39605 \begin_inset space ~
39608 music This template is used for music notation typeset with the program
39609 \begin_inset Newline linebreak
39615 \begin_inset CommandInset href
39618 target "http://en.wikipedia.org/wiki/LilyPond"
39625 For \SpecialChar LyX
39626 's extended support for LilyPond have a look at \SpecialChar LyX
39634 \begin_layout Description
39636 \begin_inset space ~
39639 pages With this template you can insert PDF documents to your document.
39640 To specify the range of pages that should be included, use the option
39650 LaTeX and LyX options
39653 The argument of this option is a comma separated list, containing page
39654 numbers (insert as option
39658 ), ranges of page numbers (
39662 ) or any combination.
39663 To insert empty pages use {}.
39665 \begin_inset space \thinspace{}
39669 \begin_inset space ~
39674 pages={3,{},8-11,15}
39676 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39677 Page ranges are specified in the syntax
39686 This selects all pages from
39699 defaults to the first page; omitting
39703 defaults to the last page of the document.
39704 The last page can also be selected with the keyword
39709 (This is only permitted in a page range.) So
39713 will insert all pages of the document and
39717 will insert all pages in reverse order.
39718 If the pages option is not specified, only the first page of the PDF is
39720 \begin_inset Newline newline
39727 inserts the pages with their original size, if this option is not given,
39728 the pages will be resized to fith the width of the page of your document.
39733 you can specify the width and height of the input pages and their rotation.
39734 If another width than 100
39735 \begin_inset space \thinspace{}
39738 Scale% is used, the option
39742 will be overwritten.
39743 For more info and possible options, have a look into the documentation
39744 of the \SpecialChar LaTeX
39750 \begin_inset CommandInset citation
39757 \begin_inset Index idx
39760 \begin_layout Plain Layout
39762 -packages ! pdfpages
39768 \begin_inset Newline newline
39771 To use this template in a
39775 presentation you need to first insert an
39779 environment and in a subsequent paragraph a \SpecialChar TeX
39780 Code box containing the command
39785 setbeamertemplate{background canvas}{}
39788 Then you can insert as many paragraphs containing the PDFPages template
39790 Behind the included PDF pages you can resume the Beamer presentation by
39791 beginning a new frame or by starting a new section.
39792 To avoid stray blank pages prior to the PDF pages, make sure to use the
39797 alignment for the paragraph containing the template.
39798 \begin_inset Newline newline
39801 Here is an included PDF which is rotated by -5°:
39802 \begin_inset External
39804 filename clipart/Abstract.pdf
39805 extra LaTeX "noautoscale, pages=-"
39807 rotateOrigin bottomleft
39814 \begin_layout Description
39816 \begin_inset space ~
39819 image This can be used for bitmap images.
39820 The image can be treated in the
39824 dialog like the images that are usually included via the
39828 dialog as described in section
39829 \begin_inset space ~
39833 \begin_inset CommandInset ref
39835 reference "sec:Graphics-Dialog"
39840 Here is an inserted raster image:
39841 \begin_inset External
39842 template RasterImage
39843 filename clipart/ToolbarEnvBox.png
39850 \begin_layout Description
39852 \begin_inset space ~
39855 graphics This can be used for vector graphics.
39856 The image can be treated in the
39860 dialog like the images that are usually included via the
39864 dialog as described in section
39865 \begin_inset space ~
39869 \begin_inset CommandInset ref
39871 reference "sec:Graphics-Dialog"
39876 Here is an inserted vector graphics:
39877 \begin_inset External
39878 template VectorGraphics
39879 filename clipart/SVG-Drawing.svg
39887 \begin_layout Description
39889 \begin_inset space ~
39892 figure This template supports images created with the program
39895 \begin_inset CommandInset href
39898 target "http://en.wikipedia.org/wiki/Xfig"
39905 \change_inserted 227574939 1473131626
39909 \begin_layout Description
39911 \change_inserted 227574939 1473131628
39913 \begin_inset space ~
39916 figure This experimental template supports
39917 \change_inserted 2047637253 1475533187
39919 \change_inserted 227574939 1473131628
39921 \change_inserted 2047637253 1475533525
39922 that contain text written in \SpecialChar LaTeX
39925 \change_inserted 227574939 1473131628
39927 \change_inserted 2047637253 1475533551
39928 It relies on the PDF/PS+\SpecialChar LaTeX
39930 \change_deleted 2047637253 1475533556
39932 \change_inserted 227574939 1473131628
39934 \begin_inset CommandInset href
39937 target "https://en.wikipedia.org/wiki/Inkscape"
39943 \change_inserted 2047637253 1475534005
39944 As described by the CTAN demonstration package
39952 \begin_layout Quote
39954 \change_inserted 2047637253 1475534064
39958 \begin_inset Quotes eld
39961 PDF+\SpecialChar LaTeX
39963 \begin_inset Quotes erd
39966 option of Inkscape, it is possible to include SVG in documents, in which
39969 This results in uniform text style throughout the document, including text
39970 in images; moreover, \SpecialChar LaTeX
39971 commands may be used in the image’s text, providing
39972 such things as mathematics and references.
39975 \begin_layout Standard
39977 \change_inserted 2047637253 1475534692
39978 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
39981 Of course, you can always embed \SpecialChar LaTeX
39995 into your figure text strings.
40000 documentation package for more information and examples.
40003 \begin_layout Standard
40005 \change_inserted 2047637253 1475534902
40006 It should be noted that while the image takes into account the surrounding
40007 font, its preview in \SpecialChar LyX
40009 Wrapping the external inset in a preview inset gives better results in
40013 \begin_layout Standard
40015 \change_deleted 2047637253 1475534821
40017 \change_inserted 2047637253 1475534913
40019 \change_inserted 227574939 1473131628
40020 works very similarly to Xfig support, except that Inkscape is a more modern
40021 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
40026 \change_inserted 227574939 1473131628
40027 LyX will process the image file in much the same way as it does an Xfig
40028 image, extracting the text into a separate TeX file for the text strings,
40029 and a PDF file for the rest.
40032 \begin_layout Description
40034 \change_inserted 227574939 1473131628
40035 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
40036 with multi-page PDFs, the TeX file will sometimes reference more pages
40037 than the PDF file contains.
40038 This is the version that ships with Ubuntu 16.04.
40039 Its use with LyX can therefore not be recommended, until the bug is fixed
40043 \begin_layout Plain Layout
40045 \change_inserted 227574939 1473131628
40046 A workaround for those who have already SVG figures in their document is,
40047 to manually do the LaTeX+PDF output from Inkscape, edit the
40051 file to remove the erroneous references, and
40057 it directly into LyX, i.e., not use the external-template mechanism:
40060 \begin_layout Plain Layout
40062 \change_inserted 227574939 1473131628
40063 \begin_inset Graphics
40064 filename clipart/workaround.png
40072 \begin_layout Plain Layout
40074 \change_inserted 227574939 1473131628
40075 Here, the child document input inset (
40077 Insert\SpecialChar menuseparator
40078 File\SpecialChar menuseparator
40081 ) was used, which allows you do directly edit the
40085 file in a text editor.
40086 The LaTeX output is based on this edited snippet as re-generation from
40087 the SVG file has been commented out.
40093 \change_deleted 2047637253 1475534230
40097 \begin_layout Standard
40099 \change_deleted 2047637253 1475534225
40100 The reason why we would use this complicated process at all, like in the
40101 case of Xfig, is that it makes the text strings inside the figure of the
40102 same font type and attributes as the surrounding text, which looks so much
40104 With Inkscape, even the
40108 of the font is taken from the surrounding LaTeX document – in Xfig, you
40109 have to set it by hand to be the same.
40110 Of course you can always embed LaTeX modifiers like
40123 into your figure text strings.
40124 \change_inserted 227574939 1473131628
40129 \begin_layout Standard
40130 \begin_inset Float table
40136 \begin_layout Plain Layout
40137 \begin_inset Caption Standard
40139 \begin_layout Plain Layout
40140 \begin_inset CommandInset label
40142 name "tab:Comparison-of-the"
40146 Comparison of the date input methods.
40154 \begin_layout Plain Layout
40156 \begin_inset Tabular
40157 <lyxtabular version="3" rows="4" columns="3">
40158 <features tabularvalignment="middle">
40159 <column alignment="center" valignment="top">
40160 <column alignment="center" valignment="top">
40161 <column alignment="center" valignment="top">
40163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40166 \begin_layout Plain Layout
40172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40175 \begin_layout Plain Layout
40178 Insert\SpecialChar menuseparator
40184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40187 \begin_layout Plain Layout
40199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40202 \begin_layout Plain Layout
40209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40212 \begin_layout Plain Layout
40218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40221 \begin_layout Plain Layout
40222 as \SpecialChar TeX
40230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40233 \begin_layout Plain Layout
40240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40243 \begin_layout Plain Layout
40249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40252 \begin_layout Plain Layout
40260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40272 \begin_layout Plain Layout
40278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40281 \begin_layout Plain Layout
40300 \begin_layout Standard
40301 When you use the option
40313 dialog, only the path to the inserted file is shown in the output.
40314 \begin_inset Newline newline
40317 External material is displayed in \SpecialChar LyX
40318 either as a box like this:
40319 \begin_inset Graphics
40320 filename clipart/ExternalMaterial.png
40322 scaleBeforeRotation
40326 or as image, depending on the option
40332 LaTeX and LyX options
40337 \begin_layout Standard
40344 manual explains how you can define your own templates.
40347 \begin_layout Section
40349 \begin_inset CommandInset label
40351 name "sec:Child-Documents"
40356 \begin_inset Index idx
40359 \begin_layout Plain Layout
40360 External Document Parts ! Child Documents
40366 \begin_inset Index idx
40369 \begin_layout Plain Layout
40378 \begin_layout Standard
40379 Child documents are used if you have a long document consisting of several
40380 larger parts or sections.
40381 For maintenance it is often useful and sometimes even required to split
40382 the document into several files that can be revised separately.
40383 The different documents are then the so called
40384 \begin_inset Quotes eld
40388 \begin_inset Quotes erd
40391 , and a master document connects them to print the full document or parts
40393 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40395 the bibliography, and labels for cross-references.
40398 \begin_layout Standard
40399 To be able to work on child documents without the need to open their master,
40400 specify in the child document the master in the menu
40402 Document\SpecialChar menuseparator
40403 Settings\SpecialChar menuseparator
40405 \begin_inset space ~
40411 This master document will then be used in the background by \SpecialChar LyX
40413 the child document.
40416 \begin_layout Standard
40417 Included documents are displayed in \SpecialChar LyX
40418 as a box like this:
40419 \begin_inset Graphics
40420 filename clipart/ChildDocument.png
40421 scaleBeforeRotation
40425 To include child documents in a master document use the menu
40427 Insert\SpecialChar menuseparator
40428 File\SpecialChar menuseparator
40430 \begin_inset space ~
40436 A dialog pops up where you can choose between four include methods:
40439 \begin_layout Description
40440 Include You can include \SpecialChar LyX
40441 and \SpecialChar LaTeX
40451 dialog, the included document will be opened in \SpecialChar LyX
40452 in a new file tab so that
40454 \begin_inset Newline newline
40460 \begin_layout Standard
40461 Here is a child document inserted using
40466 \begin_inset CommandInset include
40467 LatexCommand include
40468 filename "DummyDocument1.lyx"
40475 \begin_layout Standard
40476 The section numbering includes the sections of the included files in the
40477 order they are inserted in the master document.
40478 The included example document has for example a subsection that is numbered
40479 as a subsection of this section.
40480 Labels of included documents can be referenced: Subsection
40481 \begin_inset space ~
40485 \begin_inset CommandInset ref
40487 reference "subsec:External-Subsection-1"
40494 \begin_layout Standard
40495 The preamble of the child document is ignored; only the preamble of the
40496 master document is used.
40497 Branches in child documents will be ignored by the master document when
40498 the master document does not have a branch with the same name.
40499 Included documents are inserted starting on a new page and ending with
40503 \begin_layout Standard
40504 \begin_inset Note Greyedout
40507 \begin_layout Plain Layout
40512 If you have included a \SpecialChar LyX
40513 or \SpecialChar LaTeX
40514 file, you are warned when you export/view the
40515 document in case the child document uses another document class than the
40516 master document as this will lead to unexpected outputs.
40524 \begin_layout Description
40525 Input This method is very similar to the Include method.
40526 The differences are:
40530 \begin_layout Itemize
40531 Input files don't start with a new page and don't end with a page break.
40534 \begin_layout Itemize
40535 Input files can be previewed in \SpecialChar LyX
40539 \begin_inset space ~
40544 is enabled in \SpecialChar LyX
40545 's preferences under
40548 \begin_inset space ~
40552 \begin_inset space ~
40555 feel\SpecialChar menuseparator
40561 \begin_layout Itemize
40562 You cannot exclude Input files via the menu
40564 Document\SpecialChar menuseparator
40565 Settings\SpecialChar menuseparator
40572 \begin_layout Standard
40573 Here is a child document inserted using
40578 \begin_inset CommandInset include
40580 filename "DummyDocument2.lyx"
40587 \begin_layout Description
40588 Verbatim With this method any text file can be included.
40589 The file is shown in the output with its source code; no command used in
40590 the text is invoked.
40591 You can use the option
40593 Mark spaces in output
40595 that displays the character
40596 \begin_inset Quotes eld
40603 \begin_layout Plain Layout
40613 \begin_inset Quotes erd
40616 for every space character in the source code.
40617 The difference from the method via the menu
40619 Insert\SpecialChar menuseparator
40620 File\SpecialChar menuseparator
40622 \begin_inset space ~
40627 is that the document content is not shown in \SpecialChar LyX
40631 \begin_layout Standard
40632 Here is a child document inserted as Verbatim:
40633 \begin_inset CommandInset include
40634 LatexCommand verbatiminput
40635 filename "DummyTextDocument.txt"
40640 \begin_inset VSpace bigskip
40643 Here is a child document inserted as Verbatim using the
40645 Mark spaces in output
40648 \begin_inset CommandInset include
40649 LatexCommand verbatiminput*
40650 filename "DummyTextDocument.txt"
40657 \begin_layout Standard
40658 \begin_inset VSpace bigskip
40664 \begin_layout Standard
40665 \begin_inset Note Greyedout
40668 \begin_layout Plain Layout
40673 As you can see in the examples above, the text of the documents included
40678 is not broken at the end of the document lines.
40686 \begin_layout Description
40687 Listings This type is described in chapter
40688 \begin_inset space ~
40692 \begin_inset CommandInset ref
40694 reference "cha:Program-Code-Listings"
40701 \begin_layout Standard
40702 \begin_inset Note Greyedout
40705 \begin_layout Plain Layout
40710 Including the same document twice in a document using different methods
40711 could cause \SpecialChar LaTeX
40720 \begin_layout Standard
40721 If you want to view/export only selected children of your master document,
40722 either because you want to save compiling time or because you want to distribut
40723 e single chapters of the book you are just writing, you can exclude children
40725 This is done via the menu
40727 Document\SpecialChar menuseparator
40728 Settings\SpecialChar menuseparator
40732 You can exclude\SpecialChar breakableslash
40733 include children by double-clicking on the
40737 column of the respective child document in the list (note that this only
40738 works for documents embedded via
40739 \begin_inset Quotes eld
40743 \begin_inset Quotes erd
40747 \begin_inset Quotes eld
40751 \begin_inset Quotes erd
40757 Maintain counters and references
40759 is enabled, \SpecialChar LyX
40760 will assure that all page numbers, references etc.
40761 \begin_inset space ~
40764 are correct as if the whole document was processed.
40765 This is useful if you want the selected sub-documents to look exactly as
40766 in the context of the whole document.
40767 However, \SpecialChar LyX
40768 needs to process the whole document in the background for this
40770 So if you want to save compile time and if counters and references do not
40771 need to be correct, disable this checkbox.
40774 \begin_layout Standard
40775 Alternatively, you can put each included file into a branch.
40779 \begin_layout Plain Layout
40780 Branches are described in section
40784 of the \SpecialChar LyX
40794 By enabling\SpecialChar breakableslash
40795 disabling branches you can decide which included files will
40796 appear in the output.
40797 This has the advantage that it also works with Input'ed sub-documents.
40798 However, counters and references will not be maintained with this approach.
40801 \begin_layout Chapter
40802 Program Code Listings
40803 \begin_inset CommandInset label
40805 name "cha:Program-Code-Listings"
40810 \begin_inset Index idx
40813 \begin_layout Plain Layout
40820 \begin_inset Index idx
40823 \begin_layout Plain Layout
40830 \begin_inset Index idx
40833 \begin_layout Plain Layout
40842 \begin_layout Standard
40843 To include and typeset program code you can use the
40847 inset that can be inserted via the menu
40849 Insert\SpecialChar menuseparator
40853 The \SpecialChar LaTeX
40859 \begin_inset Index idx
40862 \begin_layout Plain Layout
40864 -packages ! listings
40869 provides a powerful and flexible way to insert program source code into
40873 \begin_layout Standard
40874 Right-clicking on a listings inset opens the context menu containing where
40875 you can set the listings format.
40878 \begin_layout Standard
40879 By default, a listing starts a new paragraph in the output.
40880 The placement option
40883 \begin_inset space ~
40888 prints the listing inline like this:
40889 \begin_inset listings
40890 lstparams "language={C++}"
40894 \begin_layout Plain Layout
40902 \begin_inset Newline newline
40909 creates a listings float where you can specify the placement options
40910 \begin_inset Quotes eld
40918 \begin_inset Quotes erd
40922 \begin_inset Quotes eld
40930 \begin_inset Quotes erd
40934 \begin_inset Quotes eld
40942 \begin_inset Quotes erd
40946 \begin_inset Quotes eld
40954 \begin_inset Quotes erd
40957 corresponding to the float placement options described in section
40958 \begin_inset space ~
40962 \begin_inset CommandInset ref
40964 reference "sec:Float-Placement"
40969 The placement options can be mixed and are inserted without any separation,
40971 \begin_inset space \thinspace{}
40975 \begin_inset space \space{}
40979 \begin_inset Quotes eld
40987 \begin_inset Quotes erd
40992 \begin_inset Quotes eld
40996 \begin_inset Quotes erd
40999 has sometimes no effect, but you don't need to use the
41003 option in this case as also non-float listings can have captions and be
41007 \begin_layout Standard
41008 You can add captions to listings with the menu
41010 Insert\SpecialChar menuseparator
41014 Listings can be referenced like floats: Listing
41015 \begin_inset space ~
41019 \begin_inset CommandInset ref
41021 reference "lst:Example-Listing"
41026 A list of listings which contains all listings with captions can be created
41029 Insert\SpecialChar menuseparator
41031 \begin_inset space ~
41035 \begin_inset space ~
41038 TOC\SpecialChar menuseparator
41042 The list entries are the listing caption and the listing number.
41045 \begin_layout Standard
41046 \begin_inset listings
41047 lstparams "language=Python"
41051 \begin_layout Plain Layout
41053 \begin_inset Caption Standard
41055 \begin_layout Plain Layout
41056 \begin_inset CommandInset label
41058 name "lst:Example-Listing"
41062 Example Listing float
41067 # Example listing float
41070 \begin_layout Plain Layout
41075 \begin_layout Plain Layout
41077 'this is a python function'
41080 \begin_layout Plain Layout
41090 \begin_layout Standard
41091 When you have set a programming language in the listings dialog, the keywords
41092 of this language will be recognized and specially typeset in the output.
41093 In the example listings the Python keyword
41094 \begin_inset Quotes eld
41098 \begin_inset Quotes erd
41101 is recognized and printed bold in the output.
41104 \begin_layout Standard
41105 \begin_inset Note Greyedout
41108 \begin_layout Plain Layout
41113 If you don't get bold keywords when using typewriter fonts, your
41117 font probably doesn't provide a bold shape.
41118 In this case select a different one in the menu
41120 Document\SpecialChar menuseparator
41121 Settings\SpecialChar menuseparator
41133 provide bold shapes.)
41141 \begin_layout Standard
41145 \begin_inset space ~
41150 of the listings dialog you can specify the line numbering style.
41151 You can insert a number to specify which lines are numbered in the field
41158 \begin_inset space \thinspace{}
41162 \begin_inset space \space{}
41166 \begin_inset Quotes eld
41170 \begin_inset Quotes erd
41173 , only every 3rd line will be numbered.
41176 \begin_layout Standard
41177 You can furthermore specify a range of lines; only these will then appear
41181 Extended character table
41183 should be used when you use national characters like the German umlauts
41185 \begin_inset Newline newline
41188 Here is an example listing with left line numbering, step
41189 \begin_inset Quotes eld
41193 \begin_inset Quotes erd
41197 \begin_inset Quotes eld
41201 \begin_inset Quotes erd
41205 \begin_inset Quotes eld
41208 Extended character table
41209 \begin_inset Quotes erd
41213 \begin_inset Quotes eld
41217 \begin_inset space ~
41221 \begin_inset space ~
41225 \begin_inset Quotes erd
41229 \begin_inset space \thinspace{}
41233 \begin_inset space \thinspace{}
41239 \begin_layout Standard
41240 \begin_inset listings
41241 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41245 \begin_layout Plain Layout
41250 \begin_layout Plain Layout
41252 'this is a python function'
41255 \begin_layout Plain Layout
41260 \begin_layout Plain Layout
41265 \begin_layout Plain Layout
41267 'This is a German word: Tschüß'
41270 \begin_layout Plain Layout
41275 \begin_layout Plain Layout
41280 \begin_layout Plain Layout
41282 'this is a python function'
41285 \begin_layout Plain Layout
41295 \begin_layout Standard
41296 When you have tabulators in your listing, you can specify the number of
41297 characters that are spanned by a tabulator in the field
41300 \begin_inset space ~
41308 \begin_layout Standard
41309 \begin_inset Note Greyedout
41312 \begin_layout Plain Layout
41317 Due to a bug in the
41321 package the line numbering is shifted by a line by every previous listing.
41322 That's the reason why the lines 2 and 5 are numbered in the above listing
41323 and not the lines 3 and 6.
41331 \begin_layout Standard
41332 \begin_inset VSpace bigskip
41338 \begin_layout Standard
41339 It is also possible to print lines from a file as listing.
41340 To do this, use the menu
41342 Insert\SpecialChar menuseparator
41343 File\SpecialChar menuseparator
41346 and choose the type
41354 \begin_layout Plain Layout
41355 The other child document types are described in section
41356 \begin_inset space ~
41360 \begin_inset CommandInset ref
41362 reference "sec:Child-Documents"
41371 In the child document dialog you can specify the listing parameters in
41373 To show a list of all available parameters, type in a question mark
41374 \begin_inset Quotes eld
41378 \begin_inset Quotes erd
41384 \begin_layout Standard
41385 To reference child document listings, write a label text into the corresponding
41386 field of the child document dialog.
41387 The label can then be referenced using the menu
41389 Insert\SpecialChar menuseparator
41395 \begin_layout Standard
41397 \begin_inset space ~
41401 \begin_inset CommandInset ref
41403 reference "lst:file-listing"
41407 is an example for a listing of a file; there the lines 10
41408 \begin_inset space \thinspace{}
41412 \begin_inset space \thinspace{}
41415 15 of this \SpecialChar LyX
41419 \begin_layout Standard
41420 \begin_inset CommandInset include
41421 LatexCommand lstinputlisting
41422 filename "EmbeddedObjects.lyx"
41423 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41430 \begin_layout Standard
41431 \begin_inset VSpace bigskip
41437 \begin_layout Standard
41438 Inserting a formula into a listing can be done the following way:
41441 \begin_layout Enumerate
41442 Open the listings dialog and add
41443 \begin_inset Newline newline
41451 \begin_inset Newline newline
41454 to the field of the
41461 \begin_layout Enumerate
41462 Create a formula outside the listing
41465 \begin_layout Enumerate
41466 Copy the content of the formula (not the formula inset) to the clipboard
41476 \begin_layout Enumerate
41477 In the listing write
41478 \begin_inset Quotes eld
41486 \begin_inset Quotes erd
41489 and copy from the clipboard between the dollar-signs (shortcut
41498 \begin_layout Standard
41499 \begin_inset listings
41500 lstparams "language=Python,mathescape=true"
41504 \begin_layout Plain Layout
41506 \begin_inset Caption Standard
41508 \begin_layout Plain Layout
41509 Example Listing float containing a formula
41514 # Example listing float
41517 \begin_layout Plain Layout
41522 \begin_layout Plain Layout
41535 \begin_layout Plain Layout
41545 \begin_layout Standard
41546 \begin_inset VSpace bigskip
41552 \begin_layout Standard
41553 Global listings settings can be set in the
41555 Document\SpecialChar menuseparator
41556 Settings\SpecialChar menuseparator
41560 To get there a list of available options, type in a question mark
41561 \begin_inset Quotes eld
41565 \begin_inset Quotes erd
41571 \begin_layout Standard
41572 For more information about the
41576 package, we refer to its documentation
41577 \begin_inset CommandInset citation
41586 \begin_layout Standard
41587 \begin_inset Newpage newpage
41593 \begin_layout Chapter
41595 Units available in \SpecialChar LyX
41597 \begin_inset Index idx
41600 \begin_layout Plain Layout
41607 \begin_inset CommandInset label
41609 name "cha:Units-available-in"
41616 \begin_layout Standard
41617 To understand the units described in this documentation, Table
41618 \begin_inset space ~
41622 \begin_inset CommandInset ref
41624 reference "tab:Units"
41628 explains all units available in \SpecialChar LyX
41632 \begin_layout Standard
41633 \begin_inset Float table
41639 \begin_layout Plain Layout
41640 \begin_inset Caption Standard
41642 \begin_layout Plain Layout
41643 \begin_inset CommandInset label
41657 \begin_layout Plain Layout
41658 \begin_inset VSpace medskip
41664 \begin_layout Plain Layout
41666 \begin_inset Tabular
41667 <lyxtabular version="3" rows="20" columns="3">
41668 <features tabularvalignment="middle">
41669 <column alignment="center" valignment="top">
41670 <column alignment="center" valignment="top">
41671 <column alignment="center" valignment="top">
41673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41676 \begin_layout Plain Layout
41682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41685 \begin_layout Plain Layout
41691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41694 \begin_layout Plain Layout
41703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41706 \begin_layout Plain Layout
41712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41715 \begin_layout Plain Layout
41721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41724 \begin_layout Plain Layout
41732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41735 \begin_layout Plain Layout
41741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41744 \begin_layout Plain Layout
41750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41753 \begin_layout Plain Layout
41761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41764 \begin_layout Plain Layout
41770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41773 \begin_layout Plain Layout
41779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41782 \begin_layout Plain Layout
41790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41793 \begin_layout Plain Layout
41799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41802 \begin_layout Plain Layout
41804 \begin_inset space \thinspace{}
41808 \begin_inset space \thinspace{}
41816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41819 \begin_layout Plain Layout
41827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41830 \begin_layout Plain Layout
41836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41839 \begin_layout Plain Layout
41841 \begin_inset space \thinspace{}
41845 \begin_inset space \thinspace{}
41853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41856 \begin_layout Plain Layout
41864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41867 \begin_layout Plain Layout
41873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41876 \begin_layout Plain Layout
41877 scaled point (65536
41878 \begin_inset space \thinspace{}
41882 \begin_inset space \thinspace{}
41890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41893 \begin_layout Plain Layout
41901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41904 \begin_layout Plain Layout
41910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41913 \begin_layout Plain Layout
41915 \begin_inset space \thinspace{}
41919 \begin_inset space \thinspace{}
41927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41930 \begin_layout Plain Layout
41938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41941 \begin_layout Plain Layout
41947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41950 \begin_layout Plain Layout
41952 \begin_inset space \thinspace{}
41956 \begin_inset Formula $\approx$
41960 \begin_inset space \thinspace{}
41968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41971 \begin_layout Plain Layout
41979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41982 \begin_layout Plain Layout
41988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41991 \begin_layout Plain Layout
41993 \begin_inset space \thinspace{}
41997 \begin_inset space \thinspace{}
42005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42008 \begin_layout Plain Layout
42016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42019 \begin_layout Plain Layout
42025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42028 \begin_layout Plain Layout
42029 % of original image width
42034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42037 \begin_layout Plain Layout
42045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42048 \begin_layout Plain Layout
42054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42057 \begin_layout Plain Layout
42063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42066 \begin_layout Plain Layout
42076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42079 \begin_layout Plain Layout
42085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42088 \begin_layout Plain Layout
42094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42097 \begin_layout Plain Layout
42107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42110 \begin_layout Plain Layout
42116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42119 \begin_layout Plain Layout
42125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42128 \begin_layout Plain Layout
42138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42141 \begin_layout Plain Layout
42147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42150 \begin_layout Plain Layout
42156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42159 \begin_layout Plain Layout
42169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42172 \begin_layout Plain Layout
42178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42181 \begin_layout Plain Layout
42187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42190 \begin_layout Plain Layout
42200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42203 \begin_layout Plain Layout
42209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42212 \begin_layout Plain Layout
42218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42221 \begin_layout Plain Layout
42231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42234 \begin_layout Plain Layout
42240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42243 \begin_layout Plain Layout
42253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42256 \begin_layout Plain Layout
42264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42267 \begin_layout Plain Layout
42273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42276 \begin_layout Plain Layout
42286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42289 \begin_layout Plain Layout
42297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42300 \begin_layout Plain Layout
42306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42309 \begin_layout Plain Layout
42311 \begin_inset space \thinspace{}
42315 \begin_inset space \thinspace{}
42323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42326 \begin_layout Plain Layout
42345 \begin_layout Chapter
42346 Output File Formats with Graphics
42347 \begin_inset CommandInset label
42349 name "cha:Output-File-Formats"
42356 \begin_layout Section
42358 \begin_inset Index idx
42361 \begin_layout Plain Layout
42368 \begin_inset Index idx
42371 \begin_layout Plain Layout
42376 \begin_layout Plain Layout
42387 \begin_layout Plain Layout
42402 \begin_layout Standard
42403 This file type has the extension
42404 \begin_inset Quotes eld
42412 \begin_inset Quotes erd
42417 \begin_inset Quotes eld
42421 \begin_inset Quotes erd
42424 (DVI), because it is completely portable; you can move them from one machine
42425 to another without needing to do any sort of conversion.
42426 At the time when this file-format was developed, this was no matter of
42428 DVIs are used for quick previews and as pre-stage for other output formats,
42432 \begin_layout Standard
42433 \begin_inset Note Greyedout
42436 \begin_layout Plain Layout
42441 DVI-files do not contain images; they will only be a linked.
42446 So don't forget this, if you move your
42450 file to another computer.
42451 This property can also slow down your computer when you view the DVI, because
42452 the DVI-viewer has to convert the image in the background to make it visible
42453 when you scroll in the DVI.
42454 So it is recommended that you use PDF for files with many images.
42457 \begin_layout Standard
42458 You can export your document to DVI by using the menu
42460 File\SpecialChar menuseparator
42461 Export\SpecialChar menuseparator
42465 You can view your document as DVI via the
42472 \begin_layout Section
42474 \begin_inset Index idx
42477 \begin_layout Plain Layout
42478 File Formats ! PostScript
42484 \begin_inset Index idx
42487 \begin_layout Plain Layout
42492 \begin_layout Plain Layout
42503 \begin_layout Plain Layout
42518 \begin_layout Standard
42519 This file type has the extension
42520 \begin_inset Quotes eld
42528 \begin_inset Quotes erd
42532 PostScript was developed by the company
42536 as a printer language.
42537 The file therefore contains commands that the printer uses to print the
42539 PostScript can be seen as a
42540 \begin_inset Quotes eld
42543 programming language
42544 \begin_inset Quotes erd
42547 ; you can calculate with it and draw diagrams and images.
42551 \begin_layout Plain Layout
42552 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42559 \begin_inset CommandInset citation
42570 Due to this ability, the files are often bigger than PDFs.
42573 \begin_layout Standard
42574 PostScript can only contain images in the format
42575 \begin_inset Quotes eld
42578 Encapsulated PostScript
42579 \begin_inset Quotes erd
42582 (EPS, file extension
42583 \begin_inset Quotes eld
42591 \begin_inset Quotes erd
42595 As \SpecialChar LyX
42596 allows you to use any known image format in your document, it has to
42597 convert images in the background to EPS.
42599 \begin_inset space ~
42603 \begin_inset space ~
42606 images in your document, \SpecialChar LyX
42608 \begin_inset space ~
42611 conversions whenever you view or export your document.
42612 This will slow down your work flow with \SpecialChar LyX
42614 So if you plan to use PostScript, you can insert your images directly as
42615 EPS to avoid this problem.
42618 \begin_layout Standard
42619 You can export your document to PostScript using the menu
42621 File\SpecialChar menuseparator
42622 Export\SpecialChar menuseparator
42626 You can view your document as PostScript via the
42633 \begin_layout Section
42635 \begin_inset Index idx
42638 \begin_layout Plain Layout
42645 \begin_inset Index idx
42648 \begin_layout Plain Layout
42657 \begin_layout Standard
42658 This file type has the extension
42659 \begin_inset Quotes eld
42667 \begin_inset Quotes erd
42672 \begin_inset Quotes eld
42675 Portable Document Format
42676 \begin_inset Quotes erd
42679 (PDF) was developed by
42683 as a derivative of PostScript.
42684 It is more compressed and it uses fewer commands than PostScript.
42686 \begin_inset Quotes eld
42690 \begin_inset Quotes erd
42693 implies, it can be processed at any computer system and the printed output
42694 looks exactly the same.
42697 \begin_layout Standard
42698 PDF can contain images in its own PDF format, in the format
42699 \begin_inset Quotes eld
42702 Joint Photographic Experts Group
42703 \begin_inset Quotes erd
42706 (JPG, file extension
42707 \begin_inset Quotes eld
42715 \begin_inset Quotes erd
42719 \begin_inset Quotes eld
42727 \begin_inset Quotes erd
42730 ), and in the format
42731 \begin_inset Quotes eld
42734 Portable Network Graphics
42735 \begin_inset Quotes erd
42738 (PNG, file extension
42739 \begin_inset Quotes eld
42747 \begin_inset Quotes erd
42751 Nevertheless you can use any other image format, because \SpecialChar LyX
42753 in the background to one of these formats.
42754 But as described in the section about PostScript, the image conversion
42755 will slow down your work flow.
42756 So it is recommended that you use images in one of the three mentioned
42760 \begin_layout Standard
42761 You can export your document to PDF via the menu
42763 File\SpecialChar menuseparator
42766 in three different ways:
42769 \begin_layout Description
42771 \begin_inset space ~
42774 (ps2pdf) This uses the program
42778 that creates a PDF from a PostScript-version of your file.
42779 The PostScript-version is produced by the program
42783 which uses a DVI-version as intermediate step.
42784 So this export variant consists of three conversions.
42787 \begin_layout Description
42789 \begin_inset space ~
42792 (dvipdfm) This uses the program
42796 that converts your file in the background to DVI and in a second step to
42800 \begin_layout Description
42802 \begin_inset space ~
42805 (pdflatex) This uses the program
42809 that converts your file directly to PDF.
42812 \begin_layout Standard
42813 It is recommended that you use
42816 \begin_inset space ~
42825 supports all features of actual PDF-versions, is quick and works stable.
42830 is not under development and therefore a bit outdated.
42833 \begin_layout Standard
42834 You can view your document as PDF via the
42838 menu or by using a toolbar button.
42841 \begin_layout Chapter
42842 List of dvips color names
42843 \begin_inset CommandInset label
42845 name "chap:List-of-dvips-colornames"
42852 \begin_layout Standard
42853 \begin_inset Tabular
42854 <lyxtabular version="3" rows="17" columns="4">
42855 <features tabularvalignment="middle">
42856 <column alignment="left" valignment="top" width="0pt">
42857 <column alignment="left" valignment="top" width="0pt">
42858 <column alignment="left" valignment="top" width="0pt">
42859 <column alignment="left" valignment="top" width="0pt">
42861 <cell alignment="left" valignment="top" usebox="none">
42864 \begin_layout Plain Layout
42868 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42892 \begin_layout Plain Layout
42904 <cell alignment="left" valignment="top" usebox="none">
42907 \begin_layout Plain Layout
42911 \begin_layout Plain Layout
42924 \begin_layout Plain Layout
42935 \begin_layout Plain Layout
42947 <cell alignment="left" valignment="top" usebox="none">
42950 \begin_layout Plain Layout
42954 \begin_layout Plain Layout
42967 \begin_layout Plain Layout
42978 \begin_layout Plain Layout
42990 <cell alignment="left" valignment="top" usebox="none">
42993 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43010 \begin_layout Plain Layout
43021 \begin_layout Plain Layout
43035 <cell alignment="center" valignment="top" usebox="none">
43038 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43055 \begin_layout Plain Layout
43063 \begin_inset Phantom Phantom
43066 \begin_layout Plain Layout
43076 \begin_layout Plain Layout
43088 <cell alignment="center" valignment="top" usebox="none">
43091 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43108 \begin_layout Plain Layout
43116 \begin_inset Phantom Phantom
43119 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43141 <cell alignment="center" valignment="top" usebox="none">
43144 \begin_layout Plain Layout
43148 \begin_layout Plain Layout
43161 \begin_layout Plain Layout
43169 \begin_inset Phantom Phantom
43172 \begin_layout Plain Layout
43182 \begin_layout Plain Layout
43194 <cell alignment="center" valignment="top" usebox="none">
43197 \begin_layout Plain Layout
43201 \begin_layout Plain Layout
43214 \begin_layout Plain Layout
43222 \begin_inset Phantom Phantom
43225 \begin_layout Plain Layout
43235 \begin_layout Plain Layout
43249 <cell alignment="left" valignment="top" usebox="none">
43252 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43269 \begin_layout Plain Layout
43277 \begin_inset Phantom Phantom
43280 \begin_layout Plain Layout
43290 \begin_layout Plain Layout
43302 <cell alignment="left" valignment="top" usebox="none">
43305 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43322 \begin_layout Plain Layout
43330 \begin_inset Phantom Phantom
43333 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43355 <cell alignment="left" valignment="top" usebox="none">
43358 \begin_layout Plain Layout
43362 \begin_layout Plain Layout
43375 \begin_layout Plain Layout
43383 \begin_inset Phantom Phantom
43386 \begin_layout Plain Layout
43396 \begin_layout Plain Layout
43408 <cell alignment="left" valignment="top" usebox="none">
43411 \begin_layout Plain Layout
43415 \begin_layout Plain Layout
43428 \begin_layout Plain Layout
43436 \begin_inset Phantom Phantom
43439 \begin_layout Plain Layout
43449 \begin_layout Plain Layout
43463 <cell alignment="left" valignment="top" usebox="none">
43466 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43483 \begin_layout Plain Layout
43491 \begin_inset Phantom Phantom
43494 \begin_layout Plain Layout
43504 \begin_layout Plain Layout
43516 <cell alignment="left" valignment="top" usebox="none">
43519 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43536 \begin_layout Plain Layout
43544 \begin_inset Phantom Phantom
43547 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43569 <cell alignment="left" valignment="top" usebox="none">
43572 \begin_layout Plain Layout
43576 \begin_layout Plain Layout
43589 \begin_layout Plain Layout
43597 \begin_inset Phantom Phantom
43600 \begin_layout Plain Layout
43610 \begin_layout Plain Layout
43622 <cell alignment="left" valignment="top" usebox="none">
43625 \begin_layout Plain Layout
43629 \begin_layout Plain Layout
43642 \begin_layout Plain Layout
43650 \begin_inset Phantom Phantom
43653 \begin_layout Plain Layout
43663 \begin_layout Plain Layout
43677 <cell alignment="left" valignment="top" usebox="none">
43680 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43697 \begin_layout Plain Layout
43705 \begin_inset Phantom Phantom
43708 \begin_layout Plain Layout
43718 \begin_layout Plain Layout
43730 <cell alignment="left" valignment="top" usebox="none">
43733 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43750 \begin_layout Plain Layout
43758 \begin_inset Phantom Phantom
43761 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43783 <cell alignment="left" valignment="top" usebox="none">
43786 \begin_layout Plain Layout
43790 \begin_layout Plain Layout
43803 \begin_layout Plain Layout
43811 \begin_inset Phantom Phantom
43814 \begin_layout Plain Layout
43824 \begin_layout Plain Layout
43836 <cell alignment="left" valignment="top" usebox="none">
43839 \begin_layout Plain Layout
43843 \begin_layout Plain Layout
43856 \begin_layout Plain Layout
43864 \begin_inset Phantom Phantom
43867 \begin_layout Plain Layout
43877 \begin_layout Plain Layout
43891 <cell alignment="left" valignment="top" usebox="none">
43894 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43911 \begin_layout Plain Layout
43919 \begin_inset Phantom Phantom
43922 \begin_layout Plain Layout
43932 \begin_layout Plain Layout
43944 <cell alignment="left" valignment="top" usebox="none">
43947 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43964 \begin_layout Plain Layout
43972 \begin_inset Phantom Phantom
43975 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43997 <cell alignment="left" valignment="top" usebox="none">
44000 \begin_layout Plain Layout
44004 \begin_layout Plain Layout
44017 \begin_layout Plain Layout
44025 \begin_inset Phantom Phantom
44028 \begin_layout Plain Layout
44038 \begin_layout Plain Layout
44050 <cell alignment="left" valignment="top" usebox="none">
44053 \begin_layout Plain Layout
44057 \begin_layout Plain Layout
44070 \begin_layout Plain Layout
44078 \begin_inset Phantom Phantom
44081 \begin_layout Plain Layout
44091 \begin_layout Plain Layout
44105 <cell alignment="center" valignment="top" usebox="none">
44108 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44125 \begin_layout Plain Layout
44133 \begin_inset Phantom Phantom
44136 \begin_layout Plain Layout
44146 \begin_layout Plain Layout
44158 <cell alignment="center" valignment="top" usebox="none">
44161 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44178 \begin_layout Plain Layout
44186 \begin_inset Phantom Phantom
44189 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44211 <cell alignment="center" valignment="top" usebox="none">
44214 \begin_layout Plain Layout
44218 \begin_layout Plain Layout
44231 \begin_layout Plain Layout
44239 \begin_inset Phantom Phantom
44242 \begin_layout Plain Layout
44252 \begin_layout Plain Layout
44264 <cell alignment="center" valignment="top" usebox="none">
44267 \begin_layout Plain Layout
44271 \begin_layout Plain Layout
44284 \begin_layout Plain Layout
44292 \begin_inset Phantom Phantom
44295 \begin_layout Plain Layout
44305 \begin_layout Plain Layout
44319 <cell alignment="left" valignment="top" usebox="none">
44322 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44339 \begin_layout Plain Layout
44347 \begin_inset Phantom Phantom
44350 \begin_layout Plain Layout
44360 \begin_layout Plain Layout
44372 <cell alignment="left" valignment="top" usebox="none">
44375 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44392 \begin_layout Plain Layout
44400 \begin_inset Phantom Phantom
44403 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44425 <cell alignment="left" valignment="top" usebox="none">
44428 \begin_layout Plain Layout
44432 \begin_layout Plain Layout
44445 \begin_layout Plain Layout
44453 \begin_inset Phantom Phantom
44456 \begin_layout Plain Layout
44466 \begin_layout Plain Layout
44478 <cell alignment="left" valignment="top" usebox="none">
44481 \begin_layout Plain Layout
44485 \begin_layout Plain Layout
44498 \begin_layout Plain Layout
44506 \begin_inset Phantom Phantom
44509 \begin_layout Plain Layout
44519 \begin_layout Plain Layout
44533 <cell alignment="left" valignment="top" usebox="none">
44536 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44553 \begin_layout Plain Layout
44561 \begin_inset Phantom Phantom
44564 \begin_layout Plain Layout
44574 \begin_layout Plain Layout
44586 <cell alignment="left" valignment="top" usebox="none">
44589 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44606 \begin_layout Plain Layout
44614 \begin_inset Phantom Phantom
44617 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44639 <cell alignment="left" valignment="top" usebox="none">
44642 \begin_layout Plain Layout
44646 \begin_layout Plain Layout
44659 \begin_layout Plain Layout
44667 \begin_inset Phantom Phantom
44670 \begin_layout Plain Layout
44680 \begin_layout Plain Layout
44692 <cell alignment="left" valignment="top" usebox="none">
44695 \begin_layout Plain Layout
44699 \begin_layout Plain Layout
44712 \begin_layout Plain Layout
44720 \begin_inset Phantom Phantom
44723 \begin_layout Plain Layout
44733 \begin_layout Plain Layout
44747 <cell alignment="left" valignment="top" usebox="none">
44750 \begin_layout Plain Layout
44754 \begin_layout Plain Layout
44767 \begin_layout Plain Layout
44775 \begin_inset Phantom Phantom
44778 \begin_layout Plain Layout
44788 \begin_layout Plain Layout
44800 <cell alignment="left" valignment="top" usebox="none">
44803 \begin_layout Plain Layout
44807 \begin_layout Plain Layout
44820 \begin_layout Plain Layout
44828 \begin_inset Phantom Phantom
44831 \begin_layout Plain Layout
44841 \begin_layout Plain Layout
44853 <cell alignment="left" valignment="top" usebox="none">
44856 \begin_layout Plain Layout
44860 \begin_layout Plain Layout
44873 \begin_layout Plain Layout
44881 \begin_inset Phantom Phantom
44884 \begin_layout Plain Layout
44894 \begin_layout Plain Layout
44906 <cell alignment="left" valignment="top" usebox="none">
44909 \begin_layout Plain Layout
44913 \begin_layout Plain Layout
44926 \begin_layout Plain Layout
44934 \begin_inset Phantom Phantom
44937 \begin_layout Plain Layout
44947 \begin_layout Plain Layout
44961 <cell alignment="left" valignment="top" usebox="none">
44964 \begin_layout Plain Layout
44968 \begin_layout Plain Layout
44981 \begin_layout Plain Layout
44989 \begin_inset Phantom Phantom
44992 \begin_layout Plain Layout
45002 \begin_layout Plain Layout
45014 <cell alignment="left" valignment="top" usebox="none">
45017 \begin_layout Plain Layout
45021 \begin_layout Plain Layout
45034 \begin_layout Plain Layout
45042 \begin_inset Phantom Phantom
45045 \begin_layout Plain Layout
45055 \begin_layout Plain Layout
45067 <cell alignment="left" valignment="top" usebox="none">
45070 \begin_layout Plain Layout
45074 \begin_layout Plain Layout
45087 \begin_layout Plain Layout
45095 \begin_inset Phantom Phantom
45098 \begin_layout Plain Layout
45108 \begin_layout Plain Layout
45120 <cell alignment="left" valignment="top" usebox="none">
45123 \begin_layout Plain Layout
45127 \begin_layout Plain Layout
45140 \begin_layout Plain Layout
45148 \begin_inset Phantom Phantom
45151 \begin_layout Plain Layout
45161 \begin_layout Plain Layout
45175 <cell alignment="left" valignment="top" usebox="none">
45178 \begin_layout Plain Layout
45182 \begin_layout Plain Layout
45195 \begin_layout Plain Layout
45203 \begin_inset Phantom Phantom
45206 \begin_layout Plain Layout
45216 \begin_layout Plain Layout
45228 <cell alignment="left" valignment="top" usebox="none">
45231 \begin_layout Plain Layout
45235 \begin_layout Plain Layout
45248 \begin_layout Plain Layout
45256 \begin_inset Phantom Phantom
45259 \begin_layout Plain Layout
45269 \begin_layout Plain Layout
45281 <cell alignment="left" valignment="top" usebox="none">
45284 \begin_layout Plain Layout
45288 \begin_layout Plain Layout
45301 \begin_layout Plain Layout
45309 \begin_inset Phantom Phantom
45312 \begin_layout Plain Layout
45322 \begin_layout Plain Layout
45334 <cell alignment="left" valignment="top" usebox="none">
45337 \begin_layout Plain Layout
45341 \begin_layout Plain Layout
45354 \begin_layout Plain Layout
45362 \begin_inset Phantom Phantom
45365 \begin_layout Plain Layout
45375 \begin_layout Plain Layout
45389 <cell alignment="left" valignment="top" usebox="none">
45392 \begin_layout Plain Layout
45396 \begin_layout Plain Layout
45409 \begin_layout Plain Layout
45417 \begin_inset Phantom Phantom
45420 \begin_layout Plain Layout
45430 \begin_layout Plain Layout
45442 <cell alignment="left" valignment="top" usebox="none">
45445 \begin_layout Plain Layout
45449 \begin_layout Plain Layout
45462 \begin_layout Plain Layout
45470 \begin_inset Phantom Phantom
45473 \begin_layout Plain Layout
45483 \begin_layout Plain Layout
45495 <cell alignment="left" valignment="top" usebox="none">
45498 \begin_layout Plain Layout
45502 \begin_layout Plain Layout
45515 \begin_layout Plain Layout
45523 \begin_inset Phantom Phantom
45526 \begin_layout Plain Layout
45536 \begin_layout Plain Layout
45548 <cell alignment="left" valignment="top" usebox="none">
45551 \begin_layout Plain Layout
45555 \begin_layout Plain Layout
45568 \begin_layout Plain Layout
45576 \begin_inset Phantom Phantom
45579 \begin_layout Plain Layout
45589 \begin_layout Plain Layout
45603 <cell alignment="left" valignment="top" usebox="none">
45606 \begin_layout Plain Layout
45610 \begin_layout Plain Layout
45623 \begin_layout Plain Layout
45631 \begin_inset Phantom Phantom
45634 \begin_layout Plain Layout
45644 \begin_layout Plain Layout
45656 <cell alignment="left" valignment="top" usebox="none">
45659 \begin_layout Plain Layout
45663 \begin_layout Plain Layout
45676 \begin_layout Plain Layout
45684 \begin_inset Phantom Phantom
45687 \begin_layout Plain Layout
45697 \begin_layout Plain Layout
45709 <cell alignment="left" valignment="top" usebox="none">
45712 \begin_layout Plain Layout
45716 \begin_layout Plain Layout
45729 \begin_layout Plain Layout
45737 \begin_inset Phantom Phantom
45740 \begin_layout Plain Layout
45750 \begin_layout Plain Layout
45762 <cell alignment="left" valignment="top" usebox="none">
45765 \begin_layout Plain Layout
45769 \begin_layout Plain Layout
45782 \begin_layout Plain Layout
45790 \begin_inset Phantom Phantom
45793 \begin_layout Plain Layout
45803 \begin_layout Plain Layout
45817 <cell alignment="left" valignment="top" usebox="none">
45820 \begin_layout Plain Layout
45824 \begin_layout Plain Layout
45837 \begin_layout Plain Layout
45845 \begin_inset Phantom Phantom
45848 \begin_layout Plain Layout
45858 \begin_layout Plain Layout
45870 <cell alignment="left" valignment="top" usebox="none">
45873 \begin_layout Plain Layout
45877 \begin_layout Plain Layout
45890 \begin_layout Plain Layout
45898 \begin_inset Phantom Phantom
45901 \begin_layout Plain Layout
45911 \begin_layout Plain Layout
45923 <cell alignment="left" valignment="top" usebox="none">
45926 \begin_layout Plain Layout
45930 \begin_layout Plain Layout
45943 \begin_layout Plain Layout
45951 \begin_inset Phantom Phantom
45954 \begin_layout Plain Layout
45964 \begin_layout Plain Layout
45976 <cell alignment="left" valignment="top" usebox="none">
45979 \begin_layout Plain Layout
45983 \begin_layout Plain Layout
45996 \begin_layout Plain Layout
46004 \begin_inset Phantom Phantom
46007 \begin_layout Plain Layout
46017 \begin_layout Plain Layout
46031 <cell alignment="left" valignment="top" usebox="none">
46034 \begin_layout Plain Layout
46038 \begin_layout Plain Layout
46051 \begin_layout Plain Layout
46059 \begin_inset Phantom Phantom
46062 \begin_layout Plain Layout
46072 \begin_layout Plain Layout
46084 <cell alignment="left" valignment="top" usebox="none">
46087 \begin_layout Plain Layout
46091 \begin_layout Plain Layout
46104 \begin_layout Plain Layout
46112 \begin_inset Phantom Phantom
46115 \begin_layout Plain Layout
46125 \begin_layout Plain Layout
46137 <cell alignment="left" valignment="top" usebox="none">
46140 \begin_layout Plain Layout
46144 \begin_layout Plain Layout
46157 \begin_layout Plain Layout
46165 \begin_inset Phantom Phantom
46168 \begin_layout Plain Layout
46178 \begin_layout Plain Layout
46190 <cell alignment="left" valignment="top" usebox="none">
46193 \begin_layout Plain Layout
46197 \begin_layout Plain Layout
46210 \begin_layout Plain Layout
46218 \begin_inset Phantom Phantom
46221 \begin_layout Plain Layout
46231 \begin_layout Plain Layout
46245 <cell alignment="left" valignment="top" usebox="none">
46248 \begin_layout Plain Layout
46252 \begin_layout Plain Layout
46265 \begin_layout Plain Layout
46273 \begin_inset Phantom Phantom
46276 \begin_layout Plain Layout
46286 \begin_layout Plain Layout
46298 <cell alignment="left" valignment="top" usebox="none">
46301 \begin_layout Plain Layout
46307 <cell alignment="left" valignment="top" usebox="none">
46310 \begin_layout Plain Layout
46316 <cell alignment="left" valignment="top" usebox="none">
46319 \begin_layout Plain Layout
46333 \begin_layout Chapter
46334 Explanation of Equation
46335 \begin_inset space ~
46339 \begin_inset CommandInset ref
46346 \begin_inset CommandInset label
46348 name "cha:Explanation-of-Equation"
46355 \begin_layout Standard
46356 We can calculate the total width of
46361 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46365 \begin_inset Formula
46367 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46373 \begin_inset Formula $W_{g\,n}$
46376 is the given width of all cells,
46382 is the \SpecialChar LaTeX
46383 -length between the cell text and the cell border (its default value
46385 \begin_inset space \thinspace{}
46395 is the thickness of the cell border line, the default is 0.4
46396 \begin_inset space \thinspace{}
46402 \begin_layout Standard
46404 \begin_inset space ~
46408 \begin_inset CommandInset ref
46410 reference "eq:Wtot_n"
46414 , the total width of a multicolumn
46415 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46419 \begin_inset Formula
46421 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46429 \begin_layout Standard
46430 By setting equation
46431 \begin_inset space ~
46435 \begin_inset CommandInset ref
46437 reference "eq:Wtot_n"
46442 \begin_inset CommandInset ref
46444 reference "eq:Wtot_mult"
46448 equal we can calculate the needed given width
46449 \begin_inset Formula $W_{g\,n}$
46456 columns are spanned, so that each column has a total width of
46457 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46461 \begin_inset Formula
46463 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46471 \begin_layout Bibliography
46472 \begin_inset CommandInset bibitem
46473 LatexCommand bibitem
46474 key "latexcompanion"
46478 Frank Mittelbach and Michel Goossens:
46480 The \SpecialChar LaTeX
46481 Companion Second Edition.
46484 Addison-Wesley, 2004
46487 \begin_layout Bibliography
46488 \begin_inset CommandInset bibitem
46489 LatexCommand bibitem
46494 Helmut Kopka and Patrick W.
46497 A Guide to \SpecialChar LaTeX
46501 Addison-Wesley, 2003
46504 \begin_layout Bibliography
46505 \begin_inset CommandInset bibitem
46506 LatexCommand bibitem
46514 : A Document Preparation System.
46517 Addison-Wesley, second edition, 1994
46520 \begin_layout Bibliography
46521 \begin_inset CommandInset bibitem
46522 LatexCommand bibitem
46527 Documentation of the \SpecialChar LaTeX
46531 \begin_inset CommandInset href
46534 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46541 \begin_inset Index idx
46544 \begin_layout Plain Layout
46546 -packages ! arydshln
46554 \begin_layout Bibliography
46555 \begin_inset CommandInset bibitem
46556 LatexCommand bibitem
46561 Documentation of the \SpecialChar LaTeX
46565 \begin_inset CommandInset href
46568 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46575 \begin_inset Index idx
46578 \begin_layout Plain Layout
46580 -packages ! booktabs
46588 \begin_layout Bibliography
46589 \begin_inset CommandInset bibitem
46590 LatexCommand bibitem
46595 Documentation of the \SpecialChar LaTeX
46599 \begin_inset CommandInset href
46602 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46609 \begin_inset Index idx
46612 \begin_layout Plain Layout
46614 -packages ! caption
46622 \begin_layout Bibliography
46623 \begin_inset CommandInset bibitem
46624 LatexCommand bibitem
46629 Documentation of the \SpecialChar LaTeX
46633 \begin_inset CommandInset href
46636 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46643 \begin_inset Index idx
46646 \begin_layout Plain Layout
46648 -packages ! diagbox
46656 \begin_layout Bibliography
46657 \begin_inset CommandInset bibitem
46658 LatexCommand bibitem
46663 Documentation of the \SpecialChar LaTeX
46667 \begin_inset CommandInset href
46670 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46677 \begin_inset Index idx
46680 \begin_layout Plain Layout
46682 -packages ! endfloat
46690 \begin_layout Bibliography
46691 \begin_inset CommandInset bibitem
46692 LatexCommand bibitem
46697 Documentation of the \SpecialChar LaTeX
46701 \begin_inset CommandInset href
46704 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46711 \begin_inset Index idx
46714 \begin_layout Plain Layout
46716 -packages ! footmisc
46724 \begin_layout Bibliography
46725 \begin_inset CommandInset bibitem
46726 LatexCommand bibitem
46731 Documentation of the \SpecialChar LaTeX
46735 \begin_inset CommandInset href
46738 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46745 \begin_inset Index idx
46748 \begin_layout Plain Layout
46750 -packages ! hyperref
46758 \begin_layout Bibliography
46759 \begin_inset CommandInset bibitem
46760 LatexCommand bibitem
46765 Documentation of the \SpecialChar LaTeX
46769 \begin_inset CommandInset href
46772 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46779 \begin_inset Index idx
46782 \begin_layout Plain Layout
46784 -packages ! hyperref
46792 \begin_layout Bibliography
46793 \begin_inset CommandInset bibitem
46794 LatexCommand bibitem
46799 Documentation of the \SpecialChar LaTeX
46803 \begin_inset CommandInset href
46806 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46813 \begin_inset Index idx
46816 \begin_layout Plain Layout
46818 -packages ! KOMA-Script
46826 \begin_layout Bibliography
46827 \begin_inset CommandInset bibitem
46828 LatexCommand bibitem
46833 Documentation of the \SpecialChar LaTeX
46837 \begin_inset CommandInset href
46840 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46847 \begin_inset CommandInset href
46850 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46855 \begin_inset Index idx
46858 \begin_layout Plain Layout
46860 -packages ! lettrine
46868 \begin_layout Bibliography
46869 \begin_inset CommandInset bibitem
46870 LatexCommand bibitem
46875 Documentation of the \SpecialChar LaTeX
46879 \begin_inset CommandInset href
46882 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
46889 \begin_inset Index idx
46892 \begin_layout Plain Layout
46894 -packages ! listings
46902 \begin_layout Bibliography
46903 \begin_inset CommandInset bibitem
46904 LatexCommand bibitem
46909 Documentation of the \SpecialChar LaTeX
46913 \begin_inset CommandInset href
46916 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
46923 \begin_inset Index idx
46926 \begin_layout Plain Layout
46928 -packages ! marginnote
46936 \begin_layout Bibliography
46937 \begin_inset CommandInset bibitem
46938 LatexCommand bibitem
46943 Documentation of the \SpecialChar LaTeX
46947 \begin_inset CommandInset href
46950 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
46957 \begin_inset Index idx
46960 \begin_layout Plain Layout
46962 -packages ! pdfpages
46970 \begin_layout Bibliography
46971 \begin_inset CommandInset bibitem
46972 LatexCommand bibitem
46977 Documentation of the \SpecialChar LaTeX
46981 \begin_inset CommandInset href
46984 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
46991 \begin_inset Index idx
46994 \begin_layout Plain Layout
46996 -packages ! prettyref
47004 \begin_layout Bibliography
47005 \begin_inset CommandInset bibitem
47006 LatexCommand bibitem
47011 Web page of the \SpecialChar LaTeX
47015 \begin_inset CommandInset href
47018 target "http://tug.org/PSTricks/"
47025 \begin_inset Index idx
47028 \begin_layout Plain Layout
47030 -packages ! PSTricks
47038 \begin_layout Bibliography
47039 \begin_inset CommandInset bibitem
47040 LatexCommand bibitem
47045 Documentation of the \SpecialChar LaTeX
47049 \begin_inset CommandInset href
47052 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47059 \begin_inset Index idx
47062 \begin_layout Plain Layout
47064 -packages ! refstyle
47072 \begin_layout Bibliography
47073 \begin_inset CommandInset bibitem
47074 LatexCommand bibitem
47079 Documentation of the \SpecialChar LaTeX
47083 \begin_inset CommandInset href
47086 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47093 \begin_inset Index idx
47096 \begin_layout Plain Layout
47098 -packages ! sidecap
47106 \begin_layout Bibliography
47107 \begin_inset CommandInset bibitem
47108 LatexCommand bibitem
47114 \begin_inset CommandInset href
47117 target "http://wiki.lyx.org/LyX/NewInLyX20"
47121 about new features in
47129 \begin_layout Standard
47130 \begin_inset CommandInset index_print
47131 LatexCommand printindex