1 #LyX 2.4 created this file. For more info see https://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 are 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 \setlength{\parskip}{\medskipamount}
154 \setlength{\parindent}{0pt}
156 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
157 \use_default_options false
163 \maintain_unincluded_children no
165 \language_package default
168 \font_roman "lmodern" "default"
169 \font_sans "lmss" "default"
170 \font_typewriter "lmtt" "default"
171 \font_math "auto" "auto"
172 \font_default_family default
173 \use_non_tex_fonts false
175 \font_roman_osf false
177 \font_typewriter_osf false
178 \font_sf_scale 100 100
179 \font_tt_scale 100 100
181 \use_dash_ligatures true
183 \default_output_format pdf2
185 \bibtex_command default
186 \index_command makeindex
190 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
191 \pdf_author "LyX Team, Uwe Stöhr"
192 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
193 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
195 \pdf_bookmarksnumbered true
196 \pdf_bookmarksopen true
197 \pdf_bookmarksopenlevel 1
198 \pdf_breaklinks false
202 \pdf_pdfusetitle false
203 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
206 \use_package amsmath 1
207 \use_package amssymb 1
208 \use_package cancel 1
210 \use_package mathdots 1
211 \use_package mathtools 1
212 \use_package mhchem 1
213 \use_package stackrel 1
214 \use_package stmaryrd 1
215 \use_package undertilde 1
217 \cite_engine_type default
221 \paperorientation portrait
227 \notefontcolor #0000ff
234 \paragraph_separation indent
235 \paragraph_indentation default
237 \math_numbering_side default
238 \quotes_style english
242 \paperpagestyle default
244 \tracking_changes true
245 \output_changes false
247 \postpone_fragile_content false
250 \html_be_strict false
251 \docbook_table_output 0
252 \docbook_mathml_prefix 1
253 \author -712698321 "Jürgen Spitzmüller"
254 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
261 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
265 by the \SpecialChar LyX
270 \begin_layout Plain Layout
272 If you have comments or error corrections, please send them to the \SpecialChar LyX
275 \begin_inset CommandInset href
277 name "lyx-docs@lists.lyx.org"
278 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
290 \begin_inset Note Note
293 \begin_layout Plain Layout
300 \begin_inset Newline newline
304 \begin_inset Newline newline
312 \begin_layout Standard
313 \begin_inset CommandInset toc
314 LatexCommand tableofcontents
321 \begin_layout Standard
322 \begin_inset Note Note
325 \begin_layout Plain Layout
326 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
337 diagbox, lettrine, marginnote, picinpar
344 If they are not installed you can export the document anyway but the sections
345 where the packages are required won't appear in the output.
348 \begin_layout Plain Layout
349 The latest PDF-version of this document can be found here:
350 \begin_inset Newline newline
355 https://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
363 \begin_layout Chapter
365 \begin_inset Index idx
368 \begin_layout Plain Layout
375 \begin_inset Index idx
378 \begin_layout Plain Layout
383 \begin_layout Plain Layout
394 \begin_layout Plain Layout
409 \begin_layout Section
411 \begin_inset Index idx
414 \begin_layout Plain Layout
415 Figures ! Graphics Dialog
421 \begin_inset CommandInset label
423 name "sec:Graphics-Dialog"
430 \begin_layout Standard
431 To insert an image into your document, place the cursor at the text position
432 you want and click on the toolbar icon
435 arg "dialog-show-new-inset graphics"
440 Insert\SpecialChar menuseparator
444 Then a dialog will appear to choose the file to load.
445 The image will appear in the output exactly at the position where it is
449 \begin_layout Standard
450 The graphics dialog can be called at any time by clicking on an image.
451 This dialog has three tabs:
454 \begin_layout Description
459 Here you can choose an image file and adjust its appearance in the output.
460 The available units for the image size are explained in appendix
465 \begin_inset CommandInset ref
467 reference "cha:Units-available-in"
472 \begin_inset Newline newline
476 \begin_inset Index idx
479 \begin_layout Plain Layout
485 You can rotate images counter-clockwise by setting a rotation angle and
487 The image will also be rotated inside \SpecialChar LyX
489 \begin_inset Newline newline
493 \begin_inset Index idx
496 \begin_layout Plain Layout
502 Images can be scaled by using a percentage value or by setting the width
503 and height explicitly.
504 If you set only the width or only the height, the other size will be determined
506 If you set both, then the image will be transformed to the given size,
507 possibly distorting it.
508 To prevent the image from distortion, use the option
510 Maintain aspect ratio
513 The image will then be scaled so that its width and height don't exceed
514 the specified dimensions.
515 \begin_inset Newline newline
518 Images can be opened in a program of your choice by right-clicking on it
519 and choosing the entry
528 The program can be set for every image format in the file format settings
533 \begin_layout Description
546 Alternatively to the usage of scaling units it is possible to set image
547 coordinates to adjust the height and width of the image in the output.
548 The coordinates can also be calculated automatically by pressing the button
578 will only print the image region within the given coordinates.
579 Normally you don't need to worry about image coordinates and can ignore
583 \begin_layout Description
600 In this tab you can modify the appearance of the image within \SpecialChar LyX
601 and \SpecialChar LaTeX
603 can specify additional \SpecialChar LaTeX
605 \begin_inset Newline newline
616 makes the image appear in the output only as a frame with the size of the
618 \begin_inset Newline newline
629 you can define or join an image settings group.
630 \begin_inset Index idx
633 \begin_layout Plain Layout
634 Figures ! Settings grouping
639 Images within such a group share their settings, so adjusting one image
640 of the group automatically also adjusts all other images of the group in
642 So you can for example change the size for a bunch of images without the
643 need to manually change each of them.
644 Joining an existing group can also be done using the context menu of the
645 image by checking the name of the desired group.
648 \begin_layout Standard
649 \begin_inset VSpace bigskip
655 \begin_layout Standard
656 This is an example image in PDF format
660 \begin_layout Plain Layout
661 Image formats are explained in section
666 \begin_inset CommandInset ref
668 reference "sec:Image-Formats"
677 within a separate, horizontally centered paragraph:
680 \begin_layout Standard
682 \begin_inset Graphics
683 filename clipart/2D-intensity-plot.pdf
692 \begin_layout Standard
693 This is the same image like the one above but in draft mode:
696 \begin_layout Standard
698 \begin_inset Graphics
699 filename clipart/2D-intensity-plot.pdf
709 \begin_layout Standard
710 \begin_inset Newpage newpage
716 \begin_layout Section
718 \begin_inset CommandInset label
720 name "sec:Figure-Floats"
725 \begin_inset Index idx
728 \begin_layout Plain Layout
735 \begin_inset Index idx
738 \begin_layout Plain Layout
747 \begin_layout Standard
748 For general explanations about floats, have a look at section
753 \begin_inset CommandInset ref
755 reference "sec:FloatIntroduction"
762 \begin_layout Standard
766 arg "float-insert figure"
771 Insert\SpecialChar menuseparator
772 Float\SpecialChar menuseparator
775 inserts a float with a caption that has the label
776 \begin_inset Quotes eld
784 \begin_inset Quotes erd
787 (# is the actual number).
788 You can insert the image above the caption, like in Figure
793 \begin_inset CommandInset ref
795 reference "fig:A-star-in"
799 or below the caption, like in Figure
804 \begin_inset CommandInset ref
806 reference "fig:A-3D-object"
811 More about caption placement is described in section
816 \begin_inset CommandInset ref
818 reference "sec:Caption-Placement"
825 \begin_layout Standard
826 \begin_inset Float figure
833 \begin_layout Plain Layout
835 \begin_inset Graphics
836 filename clipart/Star-structure.pdf
847 \begin_layout Plain Layout
848 \begin_inset Caption Standard
850 \begin_layout Plain Layout
851 \begin_inset CommandInset label
870 \begin_layout Standard
871 \begin_inset Float figure
878 \begin_layout Plain Layout
879 \begin_inset Caption Standard
881 \begin_layout Plain Layout
882 \begin_inset CommandInset label
884 name "fig:A-3D-object"
896 \begin_layout Plain Layout
898 \begin_inset Graphics
899 filename clipart/3D-structure-distort.pdf
915 \begin_layout Standard
916 \begin_inset Index idx
919 \begin_layout Plain Layout
920 References ! to Figures
930 \begin_inset CommandInset ref
932 reference "fig:A-star-in"
937 \begin_inset CommandInset ref
939 reference "fig:A-3D-object"
943 are examples of referenced figures.
944 Figures can be referenced in the text by referencing their label.
945 To do this insert a label in the caption using the menu
947 Insert\SpecialChar menuseparator
950 or the toolbar button
957 You can now refer to the label using the menu
959 Insert\SpecialChar menuseparator
966 or the toolbar button
969 arg "dialog-show-new-inset ref"
973 It is important to use references to floats, rather than using vague references
975 \begin_inset Quotes eld
979 \begin_inset Quotes erd
982 , because \SpecialChar LaTeX
983 will reposition the floats in the final document and it might
985 \begin_inset Quotes eld
989 \begin_inset Quotes erd
993 \begin_inset Newline newline
996 Referencing is explained in detail in section
1001 \begin_inset CommandInset ref
1003 reference "sec:Referencing-Floats"
1010 \begin_layout Standard
1011 Normally only one image is inserted to a figure float, but sometimes you
1012 might want to use two images with separate subcaptions.
1013 This can be done by inserting image floats into existing image floats.
1014 Note that only the main caption of the float is added to the List of Figures.
1016 \begin_inset space ~
1020 \begin_inset CommandInset ref
1022 reference "fig:Two-distorted-images"
1026 is an example of a figure float with two images set side by side.
1027 You can also set the images one below the other.
1029 \begin_inset space ~
1033 \begin_inset CommandInset ref
1035 reference "fig:Pink-object"
1040 \begin_inset CommandInset ref
1042 reference "fig:A-star"
1049 \begin_layout Standard
1050 \begin_inset Float figure
1057 \begin_layout Plain Layout
1058 \begin_inset space \hfill{}
1062 \begin_inset Float figure
1069 \begin_layout Plain Layout
1070 \begin_inset Caption Standard
1072 \begin_layout Plain Layout
1073 \begin_inset CommandInset label
1075 name "fig:Pink-object"
1087 \begin_layout Plain Layout
1088 \begin_inset Graphics
1089 filename clipart/3D-structure-distort.pdf
1102 \begin_inset space \hfill{}
1106 \begin_inset Float figure
1113 \begin_layout Plain Layout
1114 \begin_inset Caption Standard
1116 \begin_layout Plain Layout
1117 \begin_inset CommandInset label
1131 \begin_layout Plain Layout
1132 \begin_inset Graphics
1133 filename clipart/Star-structure.pdf
1146 \begin_inset space \hfill{}
1152 \begin_layout Plain Layout
1153 \begin_inset Caption Standard
1155 \begin_layout Plain Layout
1156 \begin_inset CommandInset label
1158 name "fig:Two-distorted-images"
1162 Two distorted images.
1163 Both images are in the image settings group named
1164 \begin_inset Quotes eld
1168 \begin_inset Quotes erd
1184 \begin_layout Standard
1185 \begin_inset Newpage newpage
1191 \begin_layout Section
1193 \begin_inset CommandInset label
1195 name "sec:Image-Formats"
1200 \begin_inset Index idx
1203 \begin_layout Plain Layout
1210 \begin_inset Index idx
1213 \begin_layout Plain Layout
1214 Figures ! Image Formats
1222 \begin_layout Standard
1223 You can insert images in any known file format.
1224 But as explained in appendix
1225 \begin_inset space ~
1229 \begin_inset CommandInset ref
1231 reference "cha:Output-File-Formats"
1235 , each output document format allows only a few image formats.
1237 uses therefore the program
1241 in the background to convert the images to the right format.
1242 To increase your work flow by avoiding these conversions in the background,
1243 you could choose to use only the image formats that can directly be embedded
1244 in the output file format.
1245 The output file formats are explained in appendix
1246 \begin_inset space ~
1250 \begin_inset CommandInset ref
1252 reference "cha:Output-File-Formats"
1259 \begin_layout Standard
1260 Similar to fonts there are two types of image formats:
1263 \begin_layout Description
1265 \begin_inset space ~
1268 images consist of pixel values, often in a compressed form.
1269 They are therefore not fully scalable and look pixelated in large zooms.
1270 Well-known bitmap image formats are
1271 \begin_inset Quotes eld
1274 Graphics Interchange Format
1275 \begin_inset Quotes erd
1278 (GIF, file extension
1279 \begin_inset Quotes eld
1287 \begin_inset Quotes erd
1291 \begin_inset Index idx
1294 \begin_layout Plain Layout
1299 \begin_layout Plain Layout
1310 \begin_layout Plain Layout
1323 \begin_inset Quotes eld
1326 Portable Network Graphics
1327 \begin_inset Quotes erd
1330 (PNG, file extension
1331 \begin_inset Quotes eld
1339 \begin_inset Quotes erd
1343 \begin_inset Index idx
1346 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1362 \begin_layout Plain Layout
1375 \begin_inset Quotes eld
1378 Joint Photographic Experts Group
1379 \begin_inset Quotes erd
1382 (JPG, file extension
1383 \begin_inset Quotes eld
1391 \begin_inset Quotes erd
1395 \begin_inset Quotes eld
1403 \begin_inset Quotes erd
1407 \begin_inset Index idx
1410 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1426 \begin_layout Plain Layout
1441 \begin_layout Description
1443 \begin_inset space ~
1446 images consist of vectors and can therefore be scaled to any size without
1448 The scaling ability is necessary if you want to create presentations, because
1449 presentations are always scaled by the video projector.
1450 Scaling is also useful for online documents to let the user zoom into diagrams.
1451 \begin_inset Newline newline
1454 Well-known scalable image formats are
1455 \begin_inset Quotes eld
1458 Scalable Vector Graphics
1459 \begin_inset Quotes erd
1462 (SVG, file extension
1463 \begin_inset Quotes eld
1471 \begin_inset Quotes erd
1475 \begin_inset Index idx
1478 \begin_layout Plain Layout
1483 \begin_layout Plain Layout
1494 \begin_layout Plain Layout
1507 \begin_inset Quotes eld
1510 Encapsulated PostScript
1511 \begin_inset Quotes erd
1514 (EPS, file extension
1515 \begin_inset Quotes eld
1523 \begin_inset Quotes erd
1527 \begin_inset Index idx
1530 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1546 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1562 Portable Document Format
1563 \begin_inset Quotes erd
1566 (PDF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1589 \begin_inset Quotes eld
1593 \begin_inset Quotes erd
1596 (WMF, file extension
1597 \begin_inset Quotes eld
1605 \begin_inset Quotes erd
1609 \begin_inset Index idx
1612 \begin_layout Plain Layout
1617 \begin_layout Plain Layout
1628 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 , because you can convert any bitmap image to a PDF or EPS-image and the
1650 result will still be a bitmap image.
1651 In such cases only a header with the image properties is added to the original
1656 \begin_layout Plain Layout
1657 In the case of PDF, the original image is additionally compressed.
1663 The PDF-files generated by
1667 are for example bitmap images.
1670 \begin_layout Standard
1671 Normally it is not possible to convert a bitmap image into a scalable one,
1673 Only the image formats PDF and EPS can directly be embedded to PDF and
1674 PostScript output files, respectively.
1675 SVG and WMF-images are recalculated to bitmaps when the output file is
1676 generated because there is currently no adequate WMF/SVG
1677 \begin_inset Formula $\to$
1680 PDF/EPS converter available.
1683 \begin_layout Chapter
1685 \begin_inset Index idx
1688 \begin_layout Plain Layout
1697 \begin_layout Section
1699 \begin_inset Index idx
1702 \begin_layout Plain Layout
1703 Table ! Introduction
1711 \begin_layout Standard
1712 You can insert a table using either the toolbar button
1715 arg "tabular-insert"
1720 Insert\SpecialChar menuseparator
1724 The toolbar button offers you a graphical selection: move the mouse to
1725 set the column/row number of the table that should be created and then
1726 press a mouse button.
1727 When you use the menu to create a table, a dialog will appear, asking you
1728 for the number of rows and columns
1729 \change_inserted -712698321 1554289643
1730 , and you can select a specific (border) style
1733 \change_deleted -712698321 1554289644
1735 \begin_inset Newline newline
1739 \change_inserted -712698321 1554289645
1743 \begin_layout Standard
1744 The default table has lines around any cell and the first row appears separated
1745 from the rest of the table.
1746 This separation occurs due to a double line: The cells of the first row
1747 have a line below them and the cells of the second row have a line above
1749 Here is an example table:
1752 \begin_layout Standard
1754 \begin_inset Tabular
1755 <lyxtabular version="3" rows="4" columns="4">
1756 <features tabularvalignment="middle">
1757 <column alignment="center" valignment="top">
1758 <column alignment="center" valignment="top">
1759 <column alignment="center" valignment="top">
1760 <column alignment="center" valignment="top">
1762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1765 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" bottomline="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" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1877 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1895 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1924 \begin_layout Plain Layout
1930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1933 \begin_layout Plain Layout
1939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1942 \begin_layout Plain Layout
1956 \begin_layout Standard
1958 \change_inserted -712698321 1554289664
1959 This corresponds to the
1960 \begin_inset Quotes eld
1964 \begin_inset Quotes erd
1967 table style listed in the style selection.
1970 \begin_layout Standard
1972 \change_inserted -712698321 1554289664
1973 Other available styles include:
1976 \begin_layout Itemize
1978 \change_inserted -712698321 1554289664
1980 \begin_inset Quotes eld
1984 \begin_inset Quotes erd
1987 which looks line the above table, but without the first row being separated
1991 \begin_layout Itemize
1993 \change_inserted -712698321 1554289664
1994 a border-less table with no lines at all,
1997 \begin_layout Itemize
1999 \change_inserted -712698321 1554289664
2001 \begin_inset Quotes eld
2005 \begin_inset Quotes erd
2008 as often used in professional publishing with horizontal lines only and
2009 bold top/bottom lines (see
2019 \change_inserted 630872221 1622640694
2020 It is also possible to have an horizontal (thin) Footline above the last
2026 \begin_layout Standard
2028 \change_inserted -712698321 1554289664
2029 The default style used in the dialog as well as the style used by the toolbar
2030 button can be changed in
2032 Document\SpecialChar menuseparator
2033 Settings\SpecialChar menuseparator
2037 So if the default style above is not the one you need, you should alter
2041 \begin_layout Section
2043 \begin_inset Index idx
2046 \begin_layout Plain Layout
2055 \begin_layout Standard
2056 You can alter a table by clicking on it with the right mouse button, which
2057 brings up the context menu.
2058 Under the menu entry
2062 you can adjust the settings of that cell and row/column respectively where
2063 the cursor is currently placed.
2066 More\SpecialChar menuseparator
2069 opens the table dialog where you can adjust more things.
2070 Most of the dialog options also work on selections.
2071 This means if you select more cells, columns or rows, the action is done
2072 for the whole selection.
2073 Note that there is a difference between selecting the
2077 of the cell, and the cell itself.
2078 \begin_inset Newline newline
2081 With the dialog option
2084 \begin_inset space ~
2089 every change you make in the dialog is directly applied.
2090 If you move the cursor to another table cell the dialog will then also
2091 be updated with the parameters of the new cell.
2092 If you change length values in the dialog you must press
2096 to get the change applied.
2097 \begin_inset Newline newline
2100 You can alter tables with the following tabs of the table dialog:
2103 \begin_layout Description
2105 \begin_inset space ~
2108 Settings Here you can set the table width
2109 \begin_inset Index idx
2112 \begin_layout Plain Layout
2118 , and the horizontal alignment and the width of the current column.
2122 \begin_inset space ~
2126 \begin_inset space ~
2131 is described in section
2132 \begin_inset space ~
2136 \begin_inset CommandInset ref
2138 reference "subsec:Special-Cell-Alignment"
2143 When you have set a width you can also adjust the vertical alignment of
2145 A given width will allow the cell to have line breaks and multiple paragraphs
2147 \begin_inset space \thinspace{}
2151 \begin_inset CommandInset ref
2153 reference "subsec:Multiple-Lines-in"
2158 If you set no width, the column is as wide as the content of its widest
2160 \begin_inset Newline newline
2163 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2165 \begin_inset space \thinspace{}
2169 \begin_inset CommandInset ref
2171 reference "subsec:Multicolumns"
2175 or the cells of one column as multirow cell, see sec.
2176 \begin_inset space \thinspace{}
2180 \begin_inset CommandInset ref
2182 reference "subsec:Multirows"
2187 \begin_inset Newline newline
2190 The rotate check boxes rotate the current cell, a selection, or the whole
2191 table counter-clockwise by 90
2192 \begin_inset space \thinspace{}
2196 The rotation is not shown within \SpecialChar LyX
2197 , only in the output.
2198 For more information see sec.
2199 \begin_inset space \thinspace{}
2203 \begin_inset CommandInset ref
2205 reference "sec:Rotated-Table-Cells"
2210 \begin_inset Newline newline
2214 \begin_inset Note Greyedout
2217 \begin_layout Plain Layout
2222 Not all DVI-viewers are able to display rotations.
2228 \begin_inset Newline newline
2231 The table-wide vertical alignment is used for tables within text lines:
2232 \begin_inset Newline newline
2235 A line with tables with different alignments:
2236 \begin_inset Tabular
2237 <lyxtabular version="3" rows="2" columns="2">
2238 <features tabularvalignment="top">
2239 <column alignment="center" valignment="top" width="0pt">
2240 <column alignment="center" valignment="top">
2242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2245 \begin_layout Plain Layout
2251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2254 \begin_layout Plain Layout
2271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2274 \begin_layout Plain Layout
2289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2292 \begin_layout Plain Layout
2304 \begin_inset Tabular
2305 <lyxtabular version="3" rows="2" columns="2">
2306 <features tabularvalignment="middle">
2307 <column alignment="center" valignment="top">
2308 <column alignment="center" valignment="top">
2310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2313 \begin_layout Plain Layout
2319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2322 \begin_layout Plain Layout
2339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2342 \begin_layout Plain Layout
2357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2360 \begin_layout Plain Layout
2372 \begin_inset Tabular
2373 <lyxtabular version="3" rows="2" columns="2">
2374 <features tabularvalignment="bottom">
2375 <column alignment="center" valignment="top" width="0pt">
2376 <column alignment="center" valignment="top">
2378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2381 \begin_layout Plain Layout
2387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2390 \begin_layout Plain Layout
2407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2410 \begin_layout Plain Layout
2425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2428 \begin_layout Plain Layout
2440 \begin_inset Newline newline
2443 It is also possible to enter a \SpecialChar LaTeX
2444 -argument which is needed for special table
2445 formattings, see sec.
2446 \begin_inset space \thinspace{}
2450 \begin_inset CommandInset ref
2452 reference "subsec:Multicolumn-Calculations"
2457 \begin_inset CommandInset ref
2459 reference "sec:Colored-Tables"
2466 \begin_layout Description
2467 Borders In this tab you can add and delete border lines for the current
2469 \begin_inset Newline newline
2472 Using the style option
2476 will convert the table to a formal table as described in sec.
2477 \begin_inset space \thinspace{}
2481 \begin_inset CommandInset ref
2483 reference "sec:Formal-Tables"
2488 \begin_inset Newline newline
2491 You can also add space here to table rows as described in sec.
2492 \begin_inset space \thinspace{}
2496 \begin_inset CommandInset ref
2498 reference "subsec:Row-Spacing"
2505 \begin_layout Description
2507 \begin_inset space ~
2510 table This tab is to make a table a multi-page table that can run over several
2513 \begin_inset space ~
2517 \begin_inset CommandInset ref
2519 reference "sec:Multi-page-Tables"
2524 \begin_inset CommandInset ref
2526 reference "sec:Special-Longtable-Issues"
2530 describe the multi-page table features in detail.
2533 \begin_layout Section
2535 \begin_inset Index idx
2538 \begin_layout Plain Layout
2547 \begin_layout Standard
2548 The table toolbar is an alternative to the table dialog to be able to alter
2550 It should normally appear at the bottom of \SpecialChar LyX
2551 's main window when the cursor
2553 You can alternatively switch it on to appear always, by right-clicking
2558 \begin_layout Standard
2559 The toolbar has the following icons:
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2566 arg "tabular-feature append-row"
2569 adds a row below the current cell or selection
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "tabular-feature append-column"
2579 adds a column right beside the current cell or selection
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "tabular-feature delete-row"
2589 deletes the current row or selection
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "tabular-feature delete-column"
2599 deletes the current column or selection
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "tabular-feature move-row-up"
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "tabular-feature move-column-left"
2619 moves the column to the left
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "tabular-feature move-row-down"
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "tabular-feature move-column-right"
2639 moves the column to the right
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "tabular-feature toggle-line-top"
2649 adds a line at the top of the current cell / row or of a selection
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "tabular-feature toggle-line-bottom"
2659 adds a line at the bottom of the current cell / row or of a selection
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2666 arg "tabular-feature toggle-line-left"
2669 adds a line at the left side of the current cell / row or of a selection
2672 \begin_layout Labeling
2673 \labelwidthstring 00.00.0000
2676 arg "tabular-feature toggle-line-right"
2679 adds a line at the right side of the current cell / row or of a selection
2680 \change_inserted -712698321 1554289731
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2687 \change_inserted -712698321 1554289910
2690 arg "tabular-feature set-border-lines"
2693 adds a border around the currently selected cells
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2702 arg "tabular-feature set-all-lines"
2705 adds lines around the current or selected cells - if the current cell is
2706 not a multicolumn cell this also affects the current row and column
2709 \begin_layout Labeling
2710 \labelwidthstring 00.00.0000
2713 arg "tabular-feature unset-all-lines"
2716 deletes all lines of the current or selected cells - if the current cell
2717 is not a multicolumn cell this also affects the current row and column
2718 \change_inserted -712698321 1554289920
2722 \begin_layout Labeling
2723 \labelwidthstring 00.00.0000
2725 \change_inserted -712698321 1554292586
2728 arg "tabular-feature reset-formal-default"
2731 If using a formal table, this resets the border to its default (only horizontal
2732 lines in top and bottom rows)
2737 \begin_layout Labeling
2738 \labelwidthstring 00.00.0000
2741 arg "tabular-feature m-align-left"
2744 left-aligns the content of the current cell / column
2747 \begin_layout Labeling
2748 \labelwidthstring 00.00.0000
2751 arg "tabular-feature m-align-center"
2754 centers the content of the current cell / column horizontally
2757 \begin_layout Labeling
2758 \labelwidthstring 00.00.0000
2761 arg "tabular-feature m-align-right"
2764 right-aligns the content of the current cell / column
2767 \begin_layout Labeling
2768 \labelwidthstring 00.00.0000
2771 arg "tabular-feature align-decimal"
2774 aligns the content of the current column at a character
2777 \begin_layout Labeling
2778 \labelwidthstring 00.00.0000
2781 arg "tabular-feature m-valign-top"
2784 aligns the content of the current cell vertically to the top
2787 \begin_layout Labeling
2788 \labelwidthstring 00.00.0000
2791 arg "tabular-feature m-valign-middle"
2794 centers the content of the current cell vertically
2797 \begin_layout Labeling
2798 \labelwidthstring 00.00.0000
2801 arg "tabular-feature m-valign-bottom"
2804 aligns the content of the current cell vertically to the bottom
2807 \begin_layout Labeling
2808 \labelwidthstring 00.00.0000
2811 arg "tabular-feature set-rotate-cell"
2814 rotates the current cell or selection counter-clockwise by 90°
2817 \begin_layout Labeling
2818 \labelwidthstring 00.00.0000
2821 arg "tabular-feature set-rotate-tabular"
2824 rotates the whole table counter-clockwise by 90°
2827 \begin_layout Labeling
2828 \labelwidthstring 00.00.0000
2831 arg "tabular-feature multicolumn"
2834 sets the current cell or selection as a multicolumn
2837 \begin_layout Labeling
2838 \labelwidthstring 00.00.0000
2841 arg "tabular-feature multirow"
2844 sets the current cell or selection as a multirow
2847 \begin_layout Standard
2848 \begin_inset Note Greyedout
2851 \begin_layout Plain Layout
2856 For the output the vertical alignment of the first cell in a row is used
2857 for all following cells in the row.
2865 \begin_layout Section
2867 \begin_inset Index idx
2870 \begin_layout Plain Layout
2879 \begin_layout Standard
2880 In addition to the table dialog and toolbar, the menu
2882 Edit\SpecialChar menuseparator
2885 allows you to add and delete border lines for the current row/column and
2886 to set the current selection as multicolumn.
2887 The menu is only available when the cursor is inside a table.
2890 \begin_layout Section
2892 \begin_inset CommandInset label
2894 name "sec:Table-Floats"
2899 \begin_inset Index idx
2902 \begin_layout Plain Layout
2909 \begin_inset Index idx
2912 \begin_layout Plain Layout
2921 \begin_layout Standard
2922 For general explanations about floats, have a look at section
2923 \begin_inset space ~
2927 \begin_inset CommandInset ref
2929 reference "sec:FloatIntroduction"
2936 \begin_layout Standard
2937 \begin_inset Float table
2944 \begin_layout Plain Layout
2945 \begin_inset Caption Standard
2947 \begin_layout Plain Layout
2948 \begin_inset CommandInset label
2950 name "tab:a table float"
2962 \begin_layout Plain Layout
2964 \begin_inset Tabular
2965 <lyxtabular version="3" rows="3" columns="3">
2966 <features tabularvalignment="middle">
2967 <column alignment="center" valignment="top" width="0pt">
2968 <column alignment="center" valignment="top" width="0pt">
2969 <column alignment="center" valignment="top" width="0pt">
2971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2974 \begin_layout Plain Layout
2989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2992 \begin_layout Plain Layout
3007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3010 \begin_layout Plain Layout
3027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3030 \begin_layout Plain Layout
3045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3048 \begin_layout Plain Layout
3063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Plain Layout
3083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3086 \begin_layout Plain Layout
3096 \begin_inset Formula $\int x^{2}dx$
3104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3107 \begin_layout Plain Layout
3117 \begin_inset Formula $\left[\begin{array}{cc}
3128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3131 \begin_layout Plain Layout
3141 \begin_inset Formula $1+1=2$
3162 \begin_layout Standard
3163 Table floats can be inserted using the menu
3165 Insert\SpecialChar menuseparator
3166 Float\SpecialChar menuseparator
3169 or the toolbar button
3172 arg "float-insert table"
3178 \begin_layout Standard
3179 The float appears as a collapsible box with a caption that has the label
3181 \begin_inset Quotes eld
3185 \begin_inset space ~
3189 \begin_inset Quotes erd
3192 (# is the actual table number).
3193 You can insert tables in the float above or below the caption.
3196 \begin_layout Standard
3198 \begin_inset space ~
3202 \begin_inset CommandInset ref
3204 reference "tab:a table float"
3208 is an example table within a table float.
3211 \begin_layout Standard
3212 Having the caption above the table is the common rule that is unfortunately
3213 not supported in \SpecialChar LaTeX
3214 's standard classes.
3215 This means that, if you are using the document classes
3231 , there will be no space between the caption and the table.
3232 To insert the needed space, add the following option to the load command
3233 of the \SpecialChar LaTeX
3239 \begin_inset Index idx
3242 \begin_layout Plain Layout
3249 in your document preamble:
3253 \begin_layout Plain Layout
3254 For more information have a look at section
3255 \begin_inset space ~
3259 \begin_inset CommandInset ref
3261 reference "sec:Caption-Placement"
3273 \begin_layout Standard
3279 \begin_layout Standard
3284 , which is described in section
3285 \begin_inset space ~
3289 \begin_inset CommandInset ref
3291 reference "sec:Caption-Formatting"
3295 , is used to adjust the caption format.
3298 \begin_layout Standard
3299 \begin_inset Index idx
3302 \begin_layout Plain Layout
3303 References ! to Tables
3308 Tables can be cross-referenced in the text by referencing their label.
3309 To do this insert a label in the caption using the menu
3311 Insert\SpecialChar menuseparator
3314 or the toolbar button
3321 You can now refer to the label using the menu
3323 Insert\SpecialChar menuseparator
3325 \begin_inset space ~
3330 or the toolbar button
3333 arg "dialog-show-new-inset ref"
3337 \begin_inset Newline newline
3340 Referencing is explained in detail in section
3341 \begin_inset space ~
3345 \begin_inset CommandInset ref
3347 reference "sec:Referencing-Floats"
3354 \begin_layout Section
3360 \begin_inset CommandInset label
3362 name "sec:Multi-page-Tables"
3367 \begin_inset Index idx
3370 \begin_layout Plain Layout
3377 \begin_inset Index idx
3380 \begin_layout Plain Layout
3381 Table ! Multi-page Table
3389 \begin_layout Standard
3390 If the table is too long to fit on one page, you can use the option
3393 \begin_inset space ~
3401 \begin_inset space ~
3406 of the table dialog to split the table automatically over more pages.
3407 Doing this enables the following options:
3410 \begin_layout Description
3411 Header: The current row is defined to be a header row that appears on all
3412 pages of the multi-page table; except for the first page, if
3415 \begin_inset space ~
3421 This is therefore called the main header.
3424 \begin_layout Description
3426 \begin_inset space ~
3429 header: The current row is defined to be a header row that appears on the
3430 first page of the multi-page table.
3433 \begin_layout Description
3434 Footer: The current row is defined to be a footer row that appears on all
3435 pages of the multi-page table; except for the last page, if
3438 \begin_inset space ~
3446 \begin_layout Description
3448 \begin_inset space ~
3451 footer: The current row is defined to be a footer row that appears on the
3452 last page of the multi-page table.
3455 \begin_layout Description
3456 Caption: The current row contains the table caption.
3457 The row is reset as single column and a caption is inserted.
3458 More about multi-page table captions is explained in sec.
3459 \begin_inset space \thinspace{}
3463 \begin_inset CommandInset ref
3465 reference "subsec:Multi-page-Table-Captions"
3472 \begin_layout Standard
3473 You can also specify a row where the table is split.
3474 See the following multi-page table to see how it works:
3477 \begin_layout Standard
3479 \begin_inset Tabular
3480 <lyxtabular version="3" rows="69" columns="3">
3481 <features islongtable="true" longtabularalignment="center">
3482 <column alignment="left" valignment="top" width="0cm">
3483 <column alignment="left" valignment="top" width="0pt">
3484 <column alignment="center" valignment="top" width="0pt">
3485 <row endfirsthead="true">
3486 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3489 \begin_layout Plain Layout
3492 Example Phone List (ignore the names)
3497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3500 \begin_layout Plain Layout
3506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3509 \begin_layout Plain Layout
3516 <row endfirsthead="true">
3517 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3520 \begin_layout Plain Layout
3528 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3531 \begin_layout Plain Layout
3537 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3540 \begin_layout Plain Layout
3549 <row endhead="true">
3550 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3580 <row endhead="true">
3581 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3613 <row endfoot="true">
3614 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3617 \begin_layout Plain Layout
3618 continued on next page
3623 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4173 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" usebox="none">
4184 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4204 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" usebox="none">
4215 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4235 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" usebox="none">
4246 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" usebox="none">
4277 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" usebox="none">
4308 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" usebox="none">
4339 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" usebox="none">
4370 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" usebox="none">
4401 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" usebox="none">
4432 \begin_layout Plain Layout
4438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" usebox="none">
4463 \begin_layout Plain Layout
4469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4483 \begin_layout Plain Layout
4491 <cell alignment="center" valignment="top" usebox="none">
4494 \begin_layout Plain Layout
4500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4503 \begin_layout Plain Layout
4511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4514 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" usebox="none">
4525 \begin_layout Plain Layout
4531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4534 \begin_layout Plain Layout
4542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4545 \begin_layout Plain Layout
4553 <cell alignment="center" valignment="top" usebox="none">
4556 \begin_layout Plain Layout
4562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4576 \begin_layout Plain Layout
4584 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4587 \begin_layout Plain Layout
4593 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4607 \begin_layout Plain Layout
4613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5163 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" usebox="none">
5174 \begin_layout Plain Layout
5180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5194 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" usebox="none">
5205 \begin_layout Plain Layout
5211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5225 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" usebox="none">
5236 \begin_layout Plain Layout
5242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5256 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" usebox="none">
5267 \begin_layout Plain Layout
5273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5287 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" usebox="none">
5298 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5318 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" usebox="none">
5329 \begin_layout Plain Layout
5335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5349 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" usebox="none">
5360 \begin_layout Plain Layout
5366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5380 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" usebox="none">
5422 \begin_layout Plain Layout
5428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Plain Layout
5439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" usebox="none">
5453 \begin_layout Plain Layout
5459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5462 \begin_layout Plain Layout
5470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5473 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5493 \begin_layout Plain Layout
5501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5504 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5543 <cell alignment="center" valignment="top" usebox="none">
5546 \begin_layout Plain Layout
5552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5555 \begin_layout Plain Layout
5563 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5566 \begin_layout Plain Layout
5574 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5577 \begin_layout Plain Layout
5583 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5586 \begin_layout Plain Layout
5593 <row endlastfoot="true">
5594 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5597 \begin_layout Plain Layout
5603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5606 \begin_layout Plain Layout
5612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5615 \begin_layout Plain Layout
5630 \begin_layout Plain Layout
5634 addtocounter{table}{-1}
5640 \begin_inset Note Note
5643 \begin_layout Plain Layout
5644 See the first greyed-out note in section
5645 \begin_inset space ~
5649 \begin_inset CommandInset ref
5651 reference "subsec:Multi-page-Table-Captions"
5655 for an explanation of this command.
5663 \begin_layout Subsection
5664 Footnotes in Multi-page tables
5665 \begin_inset CommandInset label
5667 name "subsec:Footnotes-in-Multi-page"
5672 \begin_inset Index idx
5675 \begin_layout Plain Layout
5676 Table ! Multi-page Table ! Footnotes
5684 \begin_layout Standard
5685 Footnotes can be inserted to every Multi-page table cell.
5686 They appear at the bottom of the page where the table cell with the footnote
5689 \begin_inset space ~
5693 \begin_inset CommandInset ref
5695 reference "tab:DiffCaptions"
5699 has for example a footnote.
5702 \begin_layout Subsection
5703 Multi-page Table Alignment
5704 \begin_inset Index idx
5707 \begin_layout Plain Layout
5708 Table ! Multi-page Table ! Alignment
5716 \begin_layout Standard
5717 The horizontal alignment of multi-page tables can be set in the table settings
5719 For left- and right-alignment the table will be directly at the page border.
5720 To add space between the table and the border one has to set the alignment
5721 to center and change the value of the \SpecialChar LaTeX
5734 by inserting this line as \SpecialChar TeX
5735 Code before the multi-page table:
5738 \begin_layout Standard
5748 \begin_layout Standard
5749 The value can have any of the units listed in Table
5750 \begin_inset space ~
5754 \begin_inset CommandInset ref
5756 reference "tab:Units"
5767 controls the horizontal distance from the left page border to the multi-page
5774 the distance from the right side.
5775 The default value for both lengths is
5781 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5785 \begin_layout Standard
5786 The following multi-page table was centered and
5802 \begin_layout Plain Layout
5818 \begin_layout Standard
5819 \begin_inset Tabular
5820 <lyxtabular version="3" rows="5" columns="5">
5821 <features islongtable="true" longtabularalignment="center">
5822 <column alignment="center" valignment="top">
5823 <column alignment="center" valignment="top" width="0pt">
5824 <column alignment="center" valignment="top">
5825 <column alignment="center" valignment="top">
5826 <column alignment="center" valignment="top">
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5867 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5896 \begin_layout Plain Layout
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Plain Layout
5911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5914 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Plain Layout
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5943 \begin_layout Plain Layout
5949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5952 \begin_layout Plain Layout
5958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5961 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5981 \begin_layout Plain Layout
5987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5990 \begin_layout Plain Layout
5996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5999 \begin_layout Plain Layout
6005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6008 \begin_layout Plain Layout
6016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6019 \begin_layout Plain Layout
6025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6028 \begin_layout Plain Layout
6034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6037 \begin_layout Plain Layout
6043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6046 \begin_layout Plain Layout
6052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6055 \begin_layout Plain Layout
6070 \begin_layout Plain Layout
6087 \begin_layout Plain Layout
6091 addtocounter{table}{-1}
6097 \begin_inset Note Note
6100 \begin_layout Plain Layout
6101 See the first greyed-out note in section
6102 \begin_inset space ~
6106 \begin_inset CommandInset ref
6108 reference "subsec:Multi-page-Table-Captions"
6112 for an explanation of this command.
6120 \begin_layout Subsection
6121 Multi-page Table Captions
6122 \begin_inset Index idx
6125 \begin_layout Plain Layout
6126 Table ! Multi-page Table ! Captions
6132 \begin_inset CommandInset label
6134 name "subsec:Multi-page-Table-Captions"
6141 \begin_layout Standard
6142 A multi-page table cannot be put into a table float because floats can only
6144 But the caption environment of floats can also be used for multi-page tables
6145 when you use the multi-page table option
6149 as described in sec.
6150 \begin_inset space \thinspace{}
6154 \begin_inset CommandInset ref
6156 reference "sec:Multi-page-Tables"
6161 Only one table row should contain a caption, either a header or a footer
6165 \begin_layout Standard
6166 Here is a short multi-page table to see how it works:
6169 \begin_layout Standard
6170 \begin_inset Tabular
6171 <lyxtabular version="3" rows="6" columns="5">
6172 <features islongtable="true" longtabularalignment="center">
6173 <column alignment="center" valignment="top">
6174 <column alignment="center" valignment="top">
6175 <column alignment="center" valignment="top">
6176 <column alignment="center" valignment="top">
6177 <column alignment="center" valignment="top">
6178 <row endfirsthead="true" caption="true">
6179 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6182 \begin_layout Plain Layout
6183 \begin_inset Caption Standard
6185 \begin_layout Plain Layout
6186 Multi-page table with caption
6187 \begin_inset Argument 1
6190 \begin_layout Plain Layout
6206 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6209 \begin_layout Plain Layout
6215 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6227 \begin_layout Plain Layout
6233 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6236 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6274 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6283 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6321 \begin_layout Plain Layout
6327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6330 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6350 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Plain Layout
6365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6368 \begin_layout Plain Layout
6374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6377 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6397 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6406 \begin_layout Plain Layout
6412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6415 \begin_layout Plain Layout
6421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6424 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6435 \begin_layout Plain Layout
6441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6444 \begin_layout Plain Layout
6450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6453 \begin_layout Plain Layout
6459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6462 \begin_layout Plain Layout
6468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6471 \begin_layout Plain Layout
6485 \begin_layout Standard
6486 \begin_inset VSpace medskip
6490 \begin_inset Note Greyedout
6493 \begin_layout Plain Layout
6497 \begin_inset space ~
6502 The table number is increased for every multi-page table, even if you did
6503 not set a caption for it.
6504 For this reason you could have the case that e.
6505 \begin_inset space \thinspace{}
6509 \begin_inset space \space{}
6513 \begin_inset space ~
6517 \begin_inset space ~
6520 2.1 in the list of tables if there are two multi-page tables without captions.
6521 To avoid this you can add the following command in \SpecialChar TeX
6522 Code after every multi-page
6523 table without a caption:
6526 \begin_layout Plain Layout
6531 addtocounter{table}{-1}
6534 \begin_layout Plain Layout
6535 This is not needed when none of your multi-page tables has a caption and
6536 you add the following code to the document preamble:
6539 \begin_layout Plain Layout
6549 \begin_inset Newline newline
6560 addtocounter{table}{-1}}
6568 \begin_layout Standard
6569 \begin_inset Note Greyedout
6572 \begin_layout Plain Layout
6576 \begin_inset space ~
6586 \begin_inset Index idx
6589 \begin_layout Plain Layout
6591 -packages ! hyperref
6604 dialog to link cross-references, the link to a multi-page table caption
6605 will always point to the beginning of the document.
6613 \begin_layout Subsubsection
6614 References to multi-page tables
6615 \begin_inset Index idx
6618 \begin_layout Plain Layout
6619 Table ! Multi-page Table ! References
6627 \begin_layout Standard
6628 \begin_inset Tabular
6629 <lyxtabular version="3" rows="6" columns="5">
6630 <features islongtable="true" longtabularalignment="center">
6631 <column alignment="center" valignment="top">
6632 <column alignment="center" valignment="top">
6633 <column alignment="center" valignment="top">
6634 <column alignment="center" valignment="top">
6635 <column alignment="center" valignment="top">
6636 <row endfirsthead="true" caption="true">
6637 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6640 \begin_layout Plain Layout
6641 \begin_inset Caption Standard
6643 \begin_layout Plain Layout
6644 Referenced multi-page table
6645 \begin_inset CommandInset label
6647 name "tab:Referenced-multi-page-table"
6661 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6664 \begin_layout Plain Layout
6670 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6691 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6702 \begin_layout Plain Layout
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6738 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6749 \begin_layout Plain Layout
6755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6758 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6785 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6796 \begin_layout Plain Layout
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6814 \begin_layout Plain Layout
6820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6823 \begin_layout Plain Layout
6829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6832 \begin_layout Plain Layout
6840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6843 \begin_layout Plain Layout
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Plain Layout
6858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6861 \begin_layout Plain Layout
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6870 \begin_layout Plain Layout
6876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6879 \begin_layout Plain Layout
6887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6890 \begin_layout Plain Layout
6896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6899 \begin_layout Plain Layout
6905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6908 \begin_layout Plain Layout
6914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6917 \begin_layout Plain Layout
6923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6926 \begin_layout Plain Layout
6940 \begin_layout Standard
6941 To reference a multi-page table, insert a label into the caption.
6944 \begin_layout Standard
6945 This is a reference to Table
6946 \begin_inset space ~
6950 \begin_inset CommandInset ref
6952 reference "tab:Referenced-multi-page-table"
6959 \begin_layout Standard
6960 The caption layout can be set together with all other captions of your document
6961 using the \SpecialChar LaTeX
6967 \begin_inset Index idx
6970 \begin_layout Plain Layout
6978 \begin_inset space ~
6982 \begin_inset CommandInset ref
6984 reference "sec:Caption-Formatting"
6991 \begin_layout Subsubsection
6993 \begin_inset Index idx
6996 \begin_layout Plain Layout
6997 Table ! Multi-page Table ! Caption Width
7005 \begin_layout Standard
7006 The maximal width of caption lines is defined by the length
7013 Its default value is 4
7014 \begin_inset space \thinspace{}
7018 To change it add the following command to your document preamble or as
7020 Code into your document before the multi-page table that should be affected
7023 \begin_layout Standard
7033 \begin_layout Standard
7038 can have one of the units listed in appendix
7039 \begin_inset space ~
7043 \begin_inset CommandInset ref
7045 reference "cha:Units-available-in"
7052 \begin_layout Standard
7053 The following tables show the difference:
7056 \begin_layout Standard
7057 \begin_inset Tabular
7058 <lyxtabular version="3" rows="6" columns="5">
7059 <features islongtable="true" longtabularalignment="center">
7060 <column alignment="center" valignment="top">
7061 <column alignment="center" valignment="top">
7062 <column alignment="center" valignment="top">
7063 <column alignment="center" valignment="top">
7064 <column alignment="center" valignment="top">
7065 <row endfirsthead="true" caption="true">
7066 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7069 \begin_layout Plain Layout
7070 \begin_inset Caption Standard
7072 \begin_layout Plain Layout
7073 Long full title with default width long full title with default width long
7074 full title with default width
7075 \begin_inset Argument 1
7078 \begin_layout Plain Layout
7079 caption with default width
7094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7124 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7171 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7218 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7229 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7238 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7247 \begin_layout Plain Layout
7253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7256 \begin_layout Plain Layout
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7265 \begin_layout Plain Layout
7273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7276 \begin_layout Plain Layout
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7285 \begin_layout Plain Layout
7291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7294 \begin_layout Plain Layout
7300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7303 \begin_layout Plain Layout
7309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7312 \begin_layout Plain Layout
7320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7323 \begin_layout Plain Layout
7329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7332 \begin_layout Plain Layout
7338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7341 \begin_layout Plain Layout
7347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7350 \begin_layout Plain Layout
7356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7359 \begin_layout Plain Layout
7373 \begin_layout Standard
7377 \begin_layout Plain Layout
7389 \begin_inset Tabular
7390 <lyxtabular version="3" rows="6" columns="5">
7391 <features islongtable="true" longtabularalignment="center">
7392 <column alignment="center" valignment="top">
7393 <column alignment="center" valignment="top">
7394 <column alignment="center" valignment="top">
7395 <column alignment="center" valignment="top">
7396 <column alignment="center" valignment="top">
7397 <row endfirsthead="true" caption="true">
7398 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7401 \begin_layout Plain Layout
7402 \begin_inset Caption Standard
7404 \begin_layout Plain Layout
7405 Long full title with width set to 5
7406 \begin_inset space \thinspace{}
7409 cm long full title with width set to 5
7410 \begin_inset space \thinspace{}
7413 cm long full title with width set to 5
7414 \begin_inset space \thinspace{}
7418 \begin_inset Argument 1
7421 \begin_layout Plain Layout
7423 \begin_inset space \thinspace{}
7427 \begin_inset space \thinspace{}
7431 \begin_inset space \thinspace{}
7449 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7461 \begin_layout Plain Layout
7467 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7470 \begin_layout Plain Layout
7476 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7479 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7490 \begin_layout Plain Layout
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Plain Layout
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7508 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7526 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7537 \begin_layout Plain Layout
7543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7555 \begin_layout Plain Layout
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7564 \begin_layout Plain Layout
7570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7573 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7584 \begin_layout Plain Layout
7590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7593 \begin_layout Plain Layout
7599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7602 \begin_layout Plain Layout
7608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7611 \begin_layout Plain Layout
7617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7620 \begin_layout Plain Layout
7628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7631 \begin_layout Plain Layout
7637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7640 \begin_layout Plain Layout
7646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7649 \begin_layout Plain Layout
7655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7658 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7667 \begin_layout Plain Layout
7675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7678 \begin_layout Plain Layout
7684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7687 \begin_layout Plain Layout
7693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7696 \begin_layout Plain Layout
7702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7705 \begin_layout Plain Layout
7711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7714 \begin_layout Plain Layout
7728 \begin_layout Standard
7732 \begin_layout Plain Layout
7746 \begin_layout Standard
7747 \begin_inset Note Greyedout
7750 \begin_layout Plain Layout
7755 When the \SpecialChar LaTeX
7761 \begin_inset Index idx
7764 \begin_layout Plain Layout
7771 is used, as in this document, the full page width is used for the caption
7772 when you use the default value of 4
7773 \begin_inset space \thinspace{}
7783 To get in this case exactly a 4
7784 \begin_inset space \thinspace{}
7787 in wide caption, you can either use a value slightly different from 4.0
7788 \begin_inset space \thinspace{}
7792 \begin_inset space \thinspace{}
7796 \begin_inset space \space{}
7800 \begin_inset space \thinspace{}
7803 in, or the \SpecialChar LaTeX
7808 captionsetup{width=value}
7810 that is provided by the
7822 \begin_layout Subsubsection
7823 Different Captions for Table Pages
7824 \begin_inset Index idx
7827 \begin_layout Plain Layout
7828 Table ! Multi-page Table ! Different Captions for Pages
7836 \begin_layout Standard
7837 When the table captions for the following pages should differ from the one
7838 of the first table page, mark a empty row as header which contains a caption.
7839 Then right-click on the caption and select in the context menu
7842 \begin_inset space ~
7849 \begin_inset space ~
7853 \begin_inset CommandInset ref
7855 reference "tab:DiffCaptions"
7859 is an example of a multi-page table with different heading where the second
7860 caption does not include the table number.
7863 \begin_layout Standard
7865 \begin_inset Tabular
7866 <lyxtabular version="3" rows="59" columns="3">
7867 <features islongtable="true" longtabularalignment="center">
7868 <column alignment="left" valignment="top" width="0cm">
7869 <column alignment="left" valignment="top" width="0pt">
7870 <column alignment="center" valignment="top" width="0pt">
7871 <row endfirsthead="true" caption="true">
7872 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7875 \begin_layout Plain Layout
7876 \begin_inset Caption Standard
7878 \begin_layout Plain Layout
7880 \begin_inset CommandInset label
7882 name "tab:DiffCaptions"
7887 \begin_inset Argument 1
7890 \begin_layout Plain Layout
7906 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Plain Layout
7915 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7918 \begin_layout Plain Layout
7925 <row endfirsthead="true">
7926 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7929 \begin_layout Plain Layout
7932 Example Phone List (ignore the names)
7937 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7940 \begin_layout Plain Layout
7946 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7949 \begin_layout Plain Layout
7956 <row endfirsthead="true">
7957 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7960 \begin_layout Plain Layout
7968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7971 \begin_layout Plain Layout
7977 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7980 \begin_layout Plain Layout
7989 <row endhead="true" caption="true">
7990 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7993 \begin_layout Plain Layout
7994 \begin_inset Caption Unnumbered
7996 \begin_layout Plain Layout
7997 Continued Example Phone List
8007 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
8010 \begin_layout Plain Layout
8016 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8019 \begin_layout Plain Layout
8026 <row endhead="true">
8027 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8030 \begin_layout Plain Layout
8038 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8041 \begin_layout Plain Layout
8047 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Plain Layout
8057 <row endhead="true">
8058 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8069 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8072 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8081 \begin_layout Plain Layout
8090 <row endfoot="true">
8091 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8094 \begin_layout Plain Layout
8095 continued on next page
8100 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8103 \begin_layout Plain Layout
8109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8131 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8134 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8165 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8196 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8227 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8258 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8289 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8320 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8351 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8382 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8413 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8422 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8444 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8453 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8475 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8484 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8506 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8515 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8537 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8546 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8557 \begin_layout Plain Layout
8566 \begin_layout Plain Layout
8577 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8580 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8608 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8611 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8639 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8642 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8662 \begin_layout Plain Layout
8670 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8673 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8693 \begin_layout Plain Layout
8701 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8704 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8724 \begin_layout Plain Layout
8732 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8735 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8755 \begin_layout Plain Layout
8763 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8766 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8786 \begin_layout Plain Layout
8794 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8797 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8817 \begin_layout Plain Layout
8825 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8828 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8848 \begin_layout Plain Layout
8856 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8859 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8879 \begin_layout Plain Layout
8887 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8890 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8910 \begin_layout Plain Layout
8918 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8921 \begin_layout Plain Layout
8927 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8941 \begin_layout Plain Layout
8949 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8952 \begin_layout Plain Layout
8958 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8961 \begin_layout Plain Layout
8969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8972 \begin_layout Plain Layout
8980 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8983 \begin_layout Plain Layout
8989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8992 \begin_layout Plain Layout
9000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9003 \begin_layout Plain Layout
9011 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9014 \begin_layout Plain Layout
9020 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9023 \begin_layout Plain Layout
9031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9034 \begin_layout Plain Layout
9042 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9045 \begin_layout Plain Layout
9051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9054 \begin_layout Plain Layout
9062 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9065 \begin_layout Plain Layout
9073 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9076 \begin_layout Plain Layout
9082 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9085 \begin_layout Plain Layout
9093 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9096 \begin_layout Plain Layout
9102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9105 \begin_layout Plain Layout
9111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9133 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9136 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9164 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9167 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9195 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9198 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9226 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9229 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9257 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9260 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9288 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9291 \begin_layout Plain Layout
9297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9311 \begin_layout Plain Layout
9319 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9322 \begin_layout Plain Layout
9328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9342 \begin_layout Plain Layout
9350 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9353 \begin_layout Plain Layout
9359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9373 \begin_layout Plain Layout
9381 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9384 \begin_layout Plain Layout
9390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9404 \begin_layout Plain Layout
9412 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9415 \begin_layout Plain Layout
9421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9435 \begin_layout Plain Layout
9443 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9446 \begin_layout Plain Layout
9452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9466 \begin_layout Plain Layout
9474 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9477 \begin_layout Plain Layout
9483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9497 \begin_layout Plain Layout
9505 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9508 \begin_layout Plain Layout
9514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9528 \begin_layout Plain Layout
9536 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9539 \begin_layout Plain Layout
9545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9559 \begin_layout Plain Layout
9567 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9570 \begin_layout Plain Layout
9576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9579 \begin_layout Plain Layout
9587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9590 \begin_layout Plain Layout
9598 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9601 \begin_layout Plain Layout
9607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9610 \begin_layout Plain Layout
9618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9621 \begin_layout Plain Layout
9629 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9632 \begin_layout Plain Layout
9638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9641 \begin_layout Plain Layout
9649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9652 \begin_layout Plain Layout
9660 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9663 \begin_layout Plain Layout
9669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9672 \begin_layout Plain Layout
9680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9683 \begin_layout Plain Layout
9691 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9694 \begin_layout Plain Layout
9700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9703 \begin_layout Plain Layout
9711 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9714 \begin_layout Plain Layout
9722 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9725 \begin_layout Plain Layout
9731 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9734 \begin_layout Plain Layout
9748 \begin_layout Section
9749 Special Multi-page Table Issues
9750 \begin_inset CommandInset label
9752 name "sec:Special-Longtable-Issues"
9759 \begin_layout Subsection
9760 Multi-page Table Calculation
9761 \begin_inset Index idx
9764 \begin_layout Plain Layout
9765 Table ! Multi-page Table ! Calculation
9773 \begin_layout Standard
9775 calculates the height of table pages and their page breaks using so called
9777 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9779 The default value was historically set to only 20
9780 \begin_inset space ~
9784 If you are using multi-page tables with many pages this may slow down the
9785 creation of your document.
9786 You can safely increase the chunk size to values of 100
9787 \begin_inset space \thinspace{}
9791 \begin_inset space \thinspace{}
9794 1000 by adding this command line to your document preamble:
9797 \begin_layout Standard
9802 setcounter{LTchunksize}{100}
9805 \begin_layout Subsection
9806 Floats and Multi-page Tables
9807 \begin_inset Index idx
9810 \begin_layout Plain Layout
9811 Table ! Multi-page Table ! Floats
9819 \begin_layout Standard
9820 There might be problems when a float appears on the same page where a multi-page
9822 To avoid such a situation, insert a
9823 \begin_inset Quotes eld
9827 \begin_inset Quotes erd
9832 Insert\SpecialChar menuseparator
9833 Formatting\SpecialChar menuseparator
9835 \begin_inset space ~
9840 ) before your multi-page table.
9843 \begin_layout Subsection
9845 \begin_inset Index idx
9848 \begin_layout Plain Layout
9849 Table ! Multi-page Table ! Forced Page Breaks
9857 \begin_layout Standard
9858 By default tables are only broken between rows.
9859 If you have a cell with multiples lines and want to have a page break within
9860 the cell, insert the new line command
9861 \begin_inset Quotes eld
9873 \begin_inset Quotes erd
9877 Code at the point of the cell where it can be broken.
9886 command you have to insert in \SpecialChar TeX
9888 \begin_inset Quotes eld
9896 \begin_inset Quotes erd
9899 characters as the number of the following table columns.
9904 is the character to separate table cells.
9905 Write in \SpecialChar TeX
9910 the content of the corresponding following cell and delete the content
9912 \begin_inset Newline newline
9923 command, insert as many
9927 characters as the number of table columns before the current column.
9929 \begin_inset space ~
9933 \begin_inset CommandInset ref
9935 reference "tab:ForcedPagebreak"
9939 the cell that should be broken is in the second column followed by another
9941 Therefore the following command was inserted in the cell as \SpecialChar TeX
9944 \begin_inset Quotes eld
9952 \begin_inset Quotes erd
9958 \begin_layout Standard
9968 \begin_inset Newline newline
9974 \begin_layout Standard
9976 \begin_inset Quotes eld
9980 \begin_inset Quotes erd
9983 in the third column of the row was deleted.
9990 is only needed when a page break should definitely occur at this position,
9991 otherwise it would be a conditional break.
9992 If your footer row of the multi-page table has for a certain reason no
9993 upper line but you would have a horizontal line where the cell is broken,
9994 use this command instead:
9997 \begin_layout Standard
10005 \begin_inset Newline newline
10013 \begin_layout Standard
10014 When the cell to be broken is in the last column, the command
10017 \begin_layout Standard
10027 \begin_layout Standard
10028 must be inserted as \SpecialChar TeX
10029 Code at the beginning of the cell.
10030 This ensures that the part of the cell that will be displayed on the new
10031 page appears with the full width.
10034 \begin_layout Standard
10036 \begin_inset Tabular
10037 <lyxtabular version="3" rows="38" columns="3">
10038 <features islongtable="true" longtabularalignment="center">
10039 <column alignment="left" valignment="top" width="0cm">
10040 <column alignment="left" valignment="top" width="3cm">
10041 <column alignment="center" valignment="top" width="0pt">
10042 <row endfirsthead="true" caption="true">
10043 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10046 \begin_layout Plain Layout
10047 \begin_inset Caption Standard
10049 \begin_layout Plain Layout
10050 Table with forced page break in table cell
10051 \begin_inset CommandInset label
10053 name "tab:ForcedPagebreak"
10058 \begin_inset Argument 1
10061 \begin_layout Plain Layout
10062 Table with forced page break in table cell
10077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10096 <row endfirsthead="true">
10097 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10100 \begin_layout Plain Layout
10103 Example Phone List (ignore the names)
10108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10127 <row endfirsthead="true">
10128 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10160 <row endhead="true" caption="true">
10161 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10164 \begin_layout Plain Layout
10165 \begin_inset Caption Unnumbered
10167 \begin_layout Plain Layout
10168 Continued Example Phone List
10178 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10181 \begin_layout Plain Layout
10187 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10190 \begin_layout Plain Layout
10197 <row endhead="true">
10198 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10209 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10212 \begin_layout Plain Layout
10218 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10221 \begin_layout Plain Layout
10228 <row endhead="true">
10229 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10232 \begin_layout Plain Layout
10240 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10243 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10252 \begin_layout Plain Layout
10261 <row endfoot="true">
10262 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10265 \begin_layout Plain Layout
10266 continued on next page
10271 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10274 \begin_layout Plain Layout
10280 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10294 \begin_layout Plain Layout
10302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10305 \begin_layout Plain Layout
10311 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10325 \begin_layout Plain Layout
10333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10336 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10356 \begin_layout Plain Layout
10364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10367 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10387 \begin_layout Plain Layout
10395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10398 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10418 \begin_layout Plain Layout
10426 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10429 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10449 \begin_layout Plain Layout
10457 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10460 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10480 \begin_layout Plain Layout
10488 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10491 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10511 \begin_layout Plain Layout
10519 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10522 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10542 \begin_layout Plain Layout
10550 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10553 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10573 \begin_layout Plain Layout
10581 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10604 \begin_layout Plain Layout
10612 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10635 \begin_layout Plain Layout
10643 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10666 \begin_layout Plain Layout
10674 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10697 \begin_layout Plain Layout
10705 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10728 \begin_layout Plain Layout
10736 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10759 \begin_layout Plain Layout
10767 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10790 \begin_layout Plain Layout
10798 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10821 \begin_layout Plain Layout
10829 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10838 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10841 \begin_layout Plain Layout
10849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10852 \begin_layout Plain Layout
10860 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10863 \begin_layout Plain Layout
10869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10872 \begin_layout Plain Layout
10880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10883 \begin_layout Plain Layout
10891 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10894 \begin_layout Plain Layout
10900 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10903 \begin_layout Plain Layout
10911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10914 \begin_layout Plain Layout
10922 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10925 \begin_layout Plain Layout
10931 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10934 \begin_layout Plain Layout
10942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10945 \begin_layout Plain Layout
10953 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10956 \begin_layout Plain Layout
10962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10965 \begin_layout Plain Layout
10973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10976 \begin_layout Plain Layout
10984 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
10989 Fürst von Montecompatri, 11.
10990 Fürst von Sulmona und Vivaro, 10.
10991 Fürst von Rossano, 5.
10992 Herzog von Canemorte, 11.
10993 Herzog von Palombara, 5.
10994 Herzog von Castelchiodato,
10998 \begin_layout Plain Layout
11009 \begin_layout Plain Layout
11017 Herzog von Poggionativo, 11.
11018 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
11019 Graf von Valinfreda, 11.
11020 Baron von Cropalati, 11.
11021 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
11026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11040 \begin_layout Plain Layout
11048 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11051 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11071 \begin_layout Plain Layout
11079 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11082 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11102 \begin_layout Plain Layout
11110 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11113 \begin_layout Plain Layout
11119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11122 \begin_layout Plain Layout
11130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11133 \begin_layout Plain Layout
11141 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11144 \begin_layout Plain Layout
11150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11153 \begin_layout Plain Layout
11161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11164 \begin_layout Plain Layout
11172 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11175 \begin_layout Plain Layout
11181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11184 \begin_layout Plain Layout
11192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11195 \begin_layout Plain Layout
11203 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11206 \begin_layout Plain Layout
11212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11215 \begin_layout Plain Layout
11223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11234 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11237 \begin_layout Plain Layout
11243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11246 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11257 \begin_layout Plain Layout
11265 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11268 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11277 \begin_layout Plain Layout
11291 \begin_layout Section
11292 Multiple Lines, Columns and Rows
11295 \begin_layout Subsection
11296 Multiple Lines in Table Cells
11297 \begin_inset CommandInset label
11299 name "subsec:Multiple-Lines-in"
11304 \begin_inset Index idx
11307 \begin_layout Plain Layout
11308 Multiple Lines in Table Cells
11314 \begin_inset Index idx
11317 \begin_layout Plain Layout
11326 \begin_layout Standard
11328 \begin_inset Float table
11335 \begin_layout Plain Layout
11336 \begin_inset Caption Standard
11338 \begin_layout Plain Layout
11339 \begin_inset CommandInset label
11341 name "tab:Table-with-multiple"
11345 Table with multiple lines in cells
11353 \begin_layout Plain Layout
11355 \begin_inset Tabular
11356 <lyxtabular version="3" rows="3" columns="3">
11357 <features tabularvalignment="middle">
11358 <column alignment="center" valignment="middle" width="2.5cm">
11359 <column alignment="center" valignment="middle">
11360 <column alignment="center" valignment="middle">
11362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11365 \begin_layout Plain Layout
11367 \begin_inset Newline linebreak
11375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11378 \begin_layout Plain Layout
11384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11387 \begin_layout Plain Layout
11395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11398 \begin_layout Plain Layout
11404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11416 \begin_layout Plain Layout
11424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11427 \begin_layout Plain Layout
11433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11445 \begin_layout Plain Layout
11464 \begin_layout Standard
11465 Setting a fixed width for a column enables you to enter text as a paragraph
11466 with multiple lines and hyphenation.
11469 \begin_layout Standard
11471 \begin_inset space ~
11475 \begin_inset CommandInset ref
11477 reference "tab:Table-with-multiple"
11481 , create a 3×3 table, mark the first cell and right-click on it.
11482 In the appearing table dialog we set a cell width of 2.5
11483 \begin_inset space \thinspace{}
11486 cm and choose centered for the vertical and horizontal alignment.
11487 The vertical alignment is used for all cells of the row.
11488 As our text is smaller than 2.5
11489 \begin_inset space \thinspace{}
11492 cm, only one line will appear.
11493 To get two lines, a justified line break (shortcut
11496 arg "newline-insert linebreak"
11500 If the text is wider than the set cell width, it will automatically be
11501 broken to several lines.
11504 \begin_layout Standard
11505 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11506 by \SpecialChar LaTeX
11507 if it is the first entry.
11508 Therefore you need to insert something to prevent the word not being the
11510 So add a horizontal space of 0
11511 \begin_inset space \thinspace{}
11514 pt before the word.
11515 As the space is zero, it doesn't change the output.
11517 \begin_inset space ~
11521 \begin_inset CommandInset ref
11523 reference "tab:Table-with-and"
11530 \begin_layout Standard
11531 \begin_inset Float table
11538 \begin_layout Plain Layout
11539 \begin_inset Caption Standard
11541 \begin_layout Plain Layout
11542 \begin_inset CommandInset label
11544 name "tab:Table-with-and"
11548 Table with and without hyphenation
11556 \begin_layout Plain Layout
11557 \begin_inset space \hfill{}
11561 \begin_inset Tabular
11562 <lyxtabular version="3" rows="3" columns="3">
11563 <features tabularvalignment="middle">
11564 <column alignment="center" valignment="middle" width="2.5cm">
11565 <column alignment="center" valignment="middle">
11566 <column alignment="center" valignment="middle">
11568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11572 verylongtablecellword
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11589 \begin_layout Plain Layout
11597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11600 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11609 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11618 \begin_layout Plain Layout
11626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11629 \begin_layout Plain Layout
11635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11638 \begin_layout Plain Layout
11644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11647 \begin_layout Plain Layout
11659 \begin_inset space \hfill{}
11663 \begin_inset Tabular
11664 <lyxtabular version="3" rows="3" columns="3">
11665 <features tabularvalignment="middle">
11666 <column alignment="center" valignment="middle" width="2.5cm">
11667 <column alignment="center" valignment="middle">
11668 <column alignment="center" valignment="middle">
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11673 \begin_layout Plain Layout
11674 \begin_inset space \hspace{}
11678 verylongtablecellword
11683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11695 \begin_layout Plain Layout
11703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11706 \begin_layout Plain Layout
11712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11715 \begin_layout Plain Layout
11721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11724 \begin_layout Plain Layout
11732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11744 \begin_layout Plain Layout
11750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11753 \begin_layout Plain Layout
11765 \begin_inset space \hfill{}
11776 \begin_layout Subsection
11778 \begin_inset CommandInset label
11780 name "subsec:Multicolumns"
11785 \begin_inset Index idx
11788 \begin_layout Plain Layout
11795 \begin_inset Index idx
11798 \begin_layout Plain Layout
11799 Table ! Multicolumns
11807 \begin_layout Subsubsection
11811 \begin_layout Standard
11812 To merge cells over multiple columns, select as many cells within a row
11813 as you want to merge and use either the table-toolbar button
11816 arg "tabular-feature multicolumn"
11821 Edit\SpecialChar menuseparator
11822 Table\SpecialChar menuseparator
11825 , or right click on the marked cells and choose
11829 in the context menu.
11832 \begin_layout Standard
11833 Multicolumns have their own cell settings.
11834 That means changing cell borders, cell alignment, and the width only affects
11836 Here is an example table with a multicolumn cell in the first row and one
11837 in the last row without the upper border:
11840 \begin_layout Standard
11842 \begin_inset Tabular
11843 <lyxtabular version="3" rows="3" columns="4">
11844 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11845 <column alignment="center" valignment="top" width="0pt">
11846 <column alignment="center" valignment="middle">
11847 <column alignment="center" valignment="top" width="0in">
11848 <column alignment="center" valignment="top" width="0pt">
11850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11853 \begin_layout Plain Layout
11859 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11862 \begin_layout Plain Layout
11868 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11871 \begin_layout Plain Layout
11877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11880 \begin_layout Plain Layout
11888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11891 \begin_layout Plain Layout
11906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11909 \begin_layout Plain Layout
11915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11918 \begin_layout Plain Layout
11924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11927 \begin_layout Plain Layout
11935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11938 \begin_layout Plain Layout
11944 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11979 \begin_layout Subsubsection
11980 Multicolumn Calculations
11981 \begin_inset CommandInset label
11983 name "subsec:Multicolumn-Calculations"
11988 \begin_inset Index idx
11991 \begin_layout Plain Layout
11992 Multicolumns ! Calculations
12000 \begin_layout Standard
12002 supports multicolumns directly, but we have to take account of the cell
12003 width of the columns spanned by the multicolumn cell.
12006 \begin_layout Standard
12007 \begin_inset Float table
12014 \begin_layout Plain Layout
12015 \begin_inset Caption Standard
12017 \begin_layout Plain Layout
12018 \begin_inset CommandInset label
12020 name "tab:Table-with-centered"
12024 Table with centered multicolumn text above two columns that have exactly
12025 half the width of the multicolumn cell
12026 \begin_inset Argument 1
12029 \begin_layout Plain Layout
12030 Perfect multicolumn table
12043 \begin_layout Plain Layout
12045 \begin_inset Tabular
12046 <lyxtabular version="3" rows="3" columns="3">
12047 <features tabularvalignment="middle">
12048 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
12049 <column alignment="center" valignment="middle">
12050 <column alignment="center" valignment="top">
12052 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
12055 \begin_layout Plain Layout
12056 multiple lines multicolumn
12061 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12064 \begin_layout Plain Layout
12070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12073 \begin_layout Plain Layout
12081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12084 \begin_layout Plain Layout
12090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12093 \begin_layout Plain Layout
12099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12102 \begin_layout Plain Layout
12110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12113 \begin_layout Plain Layout
12119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12122 \begin_layout Plain Layout
12128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12131 \begin_layout Plain Layout
12150 \begin_layout Standard
12151 To create for example Table
12152 \begin_inset space ~
12156 \begin_inset CommandInset ref
12158 reference "tab:Table-with-centered"
12162 , mark the first two cells in the first row of a 3×3 table and right-click
12164 Now choose for this cell
12173 \begin_inset space \thinspace{}
12176 cm in the table dialog.
12177 The merged columns should have exactly half the width of the multicolumn
12178 cell, so that you would set a width of 1.25
12179 \begin_inset space \thinspace{}
12182 cm for the first column.
12183 The second column has then automatically a width of 1.25
12184 \begin_inset space \thinspace{}
12187 cm (multicolumn width - width of first column).
12188 This was done for Table
12189 \begin_inset space ~
12193 \begin_inset CommandInset ref
12195 reference "tab:Table-without-half"
12202 \begin_layout Standard
12203 \begin_inset Float table
12210 \begin_layout Plain Layout
12211 \begin_inset Caption Standard
12213 \begin_layout Plain Layout
12214 \begin_inset CommandInset label
12216 name "tab:Table-without-half"
12220 Table where the spanned table columns are not exactly half the width of
12221 the multicolumn cell
12222 \begin_inset Argument 1
12225 \begin_layout Plain Layout
12226 Imperfect multicolumn table
12239 \begin_layout Plain Layout
12241 \begin_inset Tabular
12242 <lyxtabular version="3" rows="3" columns="3">
12243 <features tabularvalignment="middle">
12244 <column alignment="center" valignment="top" width="1.25cm">
12245 <column alignment="center" valignment="top">
12246 <column alignment="center" valignment="top">
12248 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12251 \begin_layout Plain Layout
12252 multiple lines multicolumn
12257 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12269 \begin_layout Plain Layout
12277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12280 \begin_layout Plain Layout
12286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12289 \begin_layout Plain Layout
12295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12298 \begin_layout Plain Layout
12306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12309 \begin_layout Plain Layout
12315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12318 \begin_layout Plain Layout
12324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12327 \begin_layout Plain Layout
12346 \begin_layout Standard
12347 You can see that the first column is not half the width of the multicolumn
12348 cell, it is a bit bigger.
12349 The reason is that the specified width of a cell
12350 \begin_inset Formula $W_{g}$
12353 is not its total width
12354 \begin_inset Formula $W_{\mathrm{tot}}$
12357 because a cell is always a bit larger than specified.
12359 \begin_inset space ~
12363 \begin_inset CommandInset ref
12365 reference "cha:Explanation-of-Equation"
12369 explains this in detail.
12372 \begin_layout Standard
12374 \begin_inset Formula $W_{g\,n}$
12377 which the user needs to set when
12381 columns are spanned can be calculated, so that each column has a total
12383 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12387 \begin_inset Formula
12389 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12397 \begin_layout Standard
12398 In our case we have
12399 \begin_inset Formula $n=2$
12403 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12406 cm and the default values for the lengths, so that equation
12407 \begin_inset CommandInset ref
12414 \begin_inset Formula
12416 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12424 \begin_layout Standard
12425 To enable calculations in \SpecialChar LaTeX
12426 , the \SpecialChar LaTeX
12431 must be loaded with the document preamble line
12432 \begin_inset Index idx
12435 \begin_layout Plain Layout
12445 \begin_layout Standard
12453 \begin_layout Standard
12455 does not allow you to calculate lengths in the
12459 field of the table dialog.
12460 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12463 Here is an overview about the arguments:
12466 \begin_layout Itemize
12471 creates cell with a fixed width, its text is vertically top-aligned
12474 \begin_layout Itemize
12479 creates cell with a fixed width, its text is vertically centered
12482 \begin_layout Itemize
12487 creates cell with a fixed width, its text is vertically bottom-aligned
12490 \begin_layout Standard
12491 By entering a \SpecialChar LaTeX
12492 -argument, all cell settings set in the table dialog are overwritt
12496 \begin_layout Standard
12497 \begin_inset Note Greyedout
12500 \begin_layout Plain Layout
12505 Due to a bug, \SpecialChar LyX
12506 shows the overwritten settings anyway.
12514 \begin_layout Standard
12515 As the text should be horizontally centered, the command
12522 You can now enter the following \SpecialChar LaTeX
12523 -argument for the first spanned column:
12526 \begin_layout Standard
12531 centering}m{1.25cm-6.2pt}
12534 \begin_layout Standard
12539 means, that the commands inside the braces are applied before the cell
12543 \begin_layout Standard
12544 Although we have chosen centered alignment for the text of the multicolumn
12545 cell, it is still left aligned.
12546 This is because \SpecialChar LyX
12547 only applies the alignment to single columns.
12548 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12552 \begin_layout Standard
12560 \begin_layout Subsection
12562 \begin_inset CommandInset label
12564 name "subsec:Multirows"
12569 \begin_inset Index idx
12572 \begin_layout Plain Layout
12579 \begin_inset Index idx
12582 \begin_layout Plain Layout
12591 \begin_layout Standard
12592 To merge cells over multiple rows, select as many cells within a column
12593 as you want to merge and use either the table-toolbar button
12596 arg "tabular-feature multirow"
12601 Edit\SpecialChar menuseparator
12602 Table\SpecialChar menuseparator
12605 , or right click on the marked cells and choose
12609 in the context menu.
12612 \begin_layout Standard
12613 Here is an example table with a multirow in the first column:
12616 \begin_layout Standard
12618 \begin_inset Tabular
12619 <lyxtabular version="3" rows="3" columns="3">
12620 <features tabularvalignment="middle">
12621 <column alignment="center" valignment="top" width="0pt">
12622 <column alignment="center" valignment="top">
12623 <column alignment="center" valignment="top">
12625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12628 \begin_layout Plain Layout
12634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12637 \begin_layout Plain Layout
12643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12646 \begin_layout Plain Layout
12654 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12657 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12666 \begin_layout Plain Layout
12672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12675 \begin_layout Plain Layout
12683 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12695 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12718 \begin_layout Standard
12719 The width of multirow cells is set by setting the width and alignment for
12725 shifts the content of the multirow up/down if the offset is positive/negative.
12728 \begin_layout Standard
12729 If the column of a multirow cell has no explicit width, the multirow cell
12730 inherits the alignment of the column.
12731 Otherwise it is by default left-aligned.
12732 To override the default, renew the command
12741 \begin_layout Standard
12753 \begin_layout Standard
12754 in the document preamble.
12755 Then all entries of multirow cells in the document are centered.
12756 If centering is only needed for several tables, you can renew the command
12757 in a \SpecialChar TeX
12758 Code box just before the table instead of the preamble.
12759 If the text should be right-aligned, replace
12772 To return to left-alignment
12781 \begin_layout Standard
12782 This is an example table with a right-aligned multirow cell that has a vertical
12784 \begin_inset space \thinspace{}
12788 \begin_inset space \thinspace{}
12794 \begin_layout Standard
12800 \begin_layout Plain Layout
12814 \begin_inset Tabular
12815 <lyxtabular version="3" rows="4" columns="3">
12816 <features tabularvalignment="middle">
12817 <column alignment="center" valignment="top" width="3cm">
12818 <column alignment="center" valignment="top">
12819 <column alignment="center" valignment="top">
12821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12833 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12842 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12853 \begin_layout Plain Layout
12859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12862 \begin_layout Plain Layout
12868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12871 \begin_layout Plain Layout
12879 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12882 \begin_layout Plain Layout
12888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12891 \begin_layout Plain Layout
12897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12900 \begin_layout Plain Layout
12908 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12911 \begin_layout Plain Layout
12917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12920 \begin_layout Plain Layout
12926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12929 \begin_layout Plain Layout
12944 \begin_layout Plain Layout
12960 \begin_layout Standard
12961 To start a new line in a multirow you can use a forced line break (shortcut
12965 arg "newline-insert newline"
12968 ) but this will not respect the cell lines as demonstrated in this table:
12971 \begin_layout Standard
12974 \begin_inset Tabular
12975 <lyxtabular version="3" rows="3" columns="2">
12976 <features tabularvalignment="middle">
12977 <column alignment="left" valignment="middle" width="2cm">
12978 <column alignment="center" valignment="top">
12980 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12983 \begin_layout Plain Layout
12985 \begin_inset Newline newline
12989 \begin_inset Newline newline
12997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13000 \begin_layout Plain Layout
13008 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
13011 \begin_layout Plain Layout
13017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13020 \begin_layout Plain Layout
13028 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13031 \begin_layout Plain Layout
13037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13040 \begin_layout Plain Layout
13054 \begin_layout Standard
13055 Therefore be careful with forced line breaks.
13058 \begin_layout Subsection
13059 Cells with diagonal line(s)
13062 \begin_layout Standard
13063 To tell the reader what is meant by column and row headings in a table,
13064 it is helpful to split the first cell of the table by one or two diagonal
13066 This can be achieved by loading the \SpecialChar LaTeX
13072 \begin_inset Index idx
13075 \begin_layout Plain Layout
13077 -packages ! picinpar
13082 in the document preamble.
13083 The package provides the command
13089 that is inserted as \SpecialChar TeX
13090 Code and that can take 2 or 3
13091 \begin_inset space ~
13097 \begin_layout Standard
13102 diagbox[options]{lower left}{upper right}
13105 \begin_layout Standard
13110 diagbox[options]{lower left}{upper left}{upper right}
13113 \begin_layout Standard
13114 The first scheme divides the cell by a single diagonal line and the arguments
13115 are placed below and above this line.
13116 The second scheme divides the cell by 2
13117 \begin_inset space ~
13123 \begin_layout Standard
13127 \begin_layout Plain Layout
13137 \begin_inset Note Note
13140 \begin_layout Plain Layout
13141 The following section will only be displayed when the \SpecialChar LaTeX
13154 \begin_layout Standard
13155 Here is an example table where
13161 is used in the 2-argument scheme in the first cell:
13162 \begin_inset VSpace medskip
13168 \begin_layout Standard
13170 \begin_inset Tabular
13171 <lyxtabular version="3" rows="4" columns="4">
13172 <features tabularvalignment="middle">
13173 <column alignment="center" valignment="top">
13174 <column alignment="center" valignment="top">
13175 <column alignment="center" valignment="top">
13176 <column alignment="center" valignment="top">
13178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13181 \begin_layout Plain Layout
13185 \begin_layout Plain Layout
13198 \begin_layout Plain Layout
13209 \begin_layout Plain Layout
13221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13224 \begin_layout Plain Layout
13230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13233 \begin_layout Plain Layout
13239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13242 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13253 \begin_layout Plain Layout
13259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13262 \begin_layout Plain Layout
13268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13271 \begin_layout Plain Layout
13277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13280 \begin_layout Plain Layout
13288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13291 \begin_layout Plain Layout
13297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13300 \begin_layout Plain Layout
13306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13309 \begin_layout Plain Layout
13315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13318 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13338 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13347 \begin_layout Plain Layout
13353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13356 \begin_layout Plain Layout
13368 \begin_inset VSpace medskip
13374 \begin_layout Standard
13375 The 3-argument scheme is for example useful for cross-tables of sports leagues
13379 \begin_layout Standard
13382 \begin_inset Tabular
13383 <lyxtabular version="3" rows="4" columns="4">
13384 <features tabularvalignment="middle">
13385 <column alignment="center" valignment="top" width="0pt">
13386 <column alignment="center" valignment="top">
13387 <column alignment="center" valignment="top">
13388 <column alignment="center" valignment="top">
13390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13393 \begin_layout Plain Layout
13397 \begin_layout Plain Layout
13410 \begin_layout Plain Layout
13421 \begin_layout Plain Layout
13432 \begin_layout Plain Layout
13444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13456 \begin_layout Plain Layout
13462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13465 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13476 \begin_layout Plain Layout
13482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13485 \begin_layout Plain Layout
13491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13494 \begin_layout Plain Layout
13500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13503 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13523 \begin_layout Plain Layout
13529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13532 \begin_layout Plain Layout
13538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13541 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13552 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13570 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13579 \begin_layout Plain Layout
13593 \begin_layout Standard
13594 For larger cross-tables one might use split cells in 2 or every corner of
13595 the table like in this example:
13598 \begin_layout Standard
13601 \begin_inset Tabular
13602 <lyxtabular version="3" rows="5" columns="5">
13603 <features tabularvalignment="middle">
13604 <column alignment="center" valignment="top" width="0pt">
13605 <column alignment="center" valignment="top">
13606 <column alignment="center" valignment="top">
13607 <column alignment="center" valignment="top">
13608 <column alignment="center" valignment="top">
13610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13613 \begin_layout Plain Layout
13617 \begin_layout Plain Layout
13630 \begin_layout Plain Layout
13641 \begin_layout Plain Layout
13652 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13667 \begin_layout Plain Layout
13673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13676 \begin_layout Plain Layout
13682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13685 \begin_layout Plain Layout
13691 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13694 \begin_layout Plain Layout
13698 \begin_layout Plain Layout
13711 \begin_layout Plain Layout
13722 \begin_layout Plain Layout
13733 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13759 \begin_layout Plain Layout
13765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13768 \begin_layout Plain Layout
13774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13777 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13786 \begin_layout Plain Layout
13794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13797 \begin_layout Plain Layout
13803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13806 \begin_layout Plain Layout
13812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13815 \begin_layout Plain Layout
13821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13824 \begin_layout Plain Layout
13830 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13833 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13853 \begin_layout Plain Layout
13859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13862 \begin_layout Plain Layout
13868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13871 \begin_layout Plain Layout
13877 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13880 \begin_layout Plain Layout
13888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13891 \begin_layout Plain Layout
13895 \begin_layout Plain Layout
13908 \begin_layout Plain Layout
13919 \begin_layout Plain Layout
13930 \begin_layout Plain Layout
13942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13945 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13963 \begin_layout Plain Layout
13969 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13972 \begin_layout Plain Layout
13976 \begin_layout Plain Layout
13989 \begin_layout Plain Layout
14000 \begin_layout Plain Layout
14011 \begin_layout Plain Layout
14031 \begin_layout Standard
14032 To rotate the diagonal lines, the command option
14057 and represent a point of a compass.
14062 is for example the south-west corner.
14063 Thus in the lower left cell of the above table the command
14066 \begin_layout Standard
14071 diagbox[dir=SW]{Team home}{Result}{Team away}
14074 \begin_layout Standard
14076 If no direction is given, it will be NW.
14079 \begin_layout Standard
14080 The necessary width of split cells is automatically calculated.
14081 Thus if you set a fixed column width smaller than the calculated one, the
14082 cell's content will protrude the cell borders:
14085 \begin_layout Standard
14088 \begin_inset Tabular
14089 <lyxtabular version="3" rows="2" columns="2">
14090 <features tabularvalignment="middle">
14091 <column alignment="center" valignment="top" width="3cm">
14092 <column alignment="center" valignment="top">
14094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14097 \begin_layout Plain Layout
14101 \begin_layout Plain Layout
14114 \begin_layout Plain Layout
14125 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14140 \begin_layout Plain Layout
14148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14160 \begin_layout Plain Layout
14174 \begin_layout Standard
14175 If you need a certain width for columns with a split cell, use the command
14180 (replace '3cm' by the width you need).
14181 In the following table the width of the first column is set to 4
14182 \begin_inset space \thinspace{}
14193 \begin_inset space \thinspace{}
14197 \begin_inset space \thinspace{}
14202 tabcolsep is necessary because the overall width is the width for the text
14203 (in this case the 4
14204 \begin_inset space \thinspace{}
14207 cm) plus two times the separation of the text and the cell border.
14208 The calculation of the width cannot be done in the command option of
14214 so one needs to create a new length which can be used later.
14215 This is done with the \SpecialChar TeX
14219 \begin_layout Standard
14227 \begin_inset Newline newline
14239 \begin_layout Standard
14243 \begin_layout Plain Layout
14252 \begin_layout Plain Layout
14268 \begin_layout Standard
14269 To enable calculations in \SpecialChar LaTeX
14270 one needs to load the package
14275 \begin_inset Index idx
14278 \begin_layout Plain Layout
14285 in the document preamble.
14288 \begin_layout Standard
14289 In this table you can now use the command
14292 \begin_layout Standard
14302 \begin_layout Standard
14306 \begin_layout Standard
14309 \begin_inset Tabular
14310 <lyxtabular version="3" rows="2" columns="2">
14311 <features tabularvalignment="middle">
14312 <column alignment="center" valignment="top" width="4cm">
14313 <column alignment="center" valignment="top">
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Plain Layout
14322 \begin_layout Plain Layout
14337 \begin_layout Plain Layout
14348 \begin_layout Plain Layout
14360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14363 \begin_layout Plain Layout
14371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14374 \begin_layout Plain Layout
14380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14383 \begin_layout Plain Layout
14397 \begin_layout Standard
14398 Note that the split cell needs to be the widest one in the column.
14399 Otherwise the length of the diagonal line cannot be calculated correctly
14400 like in this table:
14403 \begin_layout Standard
14406 \begin_inset Tabular
14407 <lyxtabular version="3" rows="2" columns="2">
14408 <features tabularvalignment="middle">
14409 <column alignment="center" valignment="top" width="0pt">
14410 <column alignment="center" valignment="top">
14412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14415 \begin_layout Plain Layout
14419 \begin_layout Plain Layout
14432 \begin_layout Plain Layout
14443 \begin_layout Plain Layout
14455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14458 \begin_layout Plain Layout
14466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14469 \begin_layout Plain Layout
14475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14478 \begin_layout Plain Layout
14492 \begin_layout Standard
14493 In this case use the
14504 It is then not necessary to add 2
14506 tabcolsep because the cell width is now the width of the column.
14507 In this table a width of 3
14508 \begin_inset space \thinspace{}
14514 \begin_layout Standard
14517 \begin_inset Tabular
14518 <lyxtabular version="3" rows="2" columns="2">
14519 <features tabularvalignment="middle">
14520 <column alignment="center" valignment="top" width="0pt">
14521 <column alignment="center" valignment="top">
14523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14526 \begin_layout Plain Layout
14530 \begin_layout Plain Layout
14534 diagbox[width=3cm]{
14543 \begin_layout Plain Layout
14554 \begin_layout Plain Layout
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14569 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14603 \begin_layout Standard
14604 For multiple text lines in split cells one needs some extra height to fit
14605 the text to the cell.
14606 This can be achieved with the
14616 (replace '3cm' by the height you need).
14617 In the following table the command
14620 \begin_layout Standard
14625 diagbox[width=3cm,height=1.4cm]{A
14636 \begin_layout Standard
14637 is used in the first cell.
14646 creates hereby the line break.
14650 \begin_layout Plain Layout
14651 Breaking lines with
14655 is only possible when the column has a fixed width.
14663 \begin_layout Standard
14666 \begin_inset Tabular
14667 <lyxtabular version="3" rows="2" columns="2">
14668 <features tabularvalignment="middle">
14669 <column alignment="center" valignment="top">
14670 <column alignment="center" valignment="top">
14672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14675 \begin_layout Plain Layout
14679 \begin_layout Plain Layout
14683 diagbox[width=3cm,height=1.4cm]{
14692 \begin_layout Plain Layout
14707 \begin_layout Plain Layout
14718 \begin_layout Plain Layout
14733 \begin_layout Plain Layout
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14748 \begin_layout Plain Layout
14756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14759 \begin_layout Plain Layout
14765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14768 \begin_layout Plain Layout
14782 \begin_layout Standard
14786 \begin_layout Plain Layout
14796 \begin_inset Note Note
14799 \begin_layout Plain Layout
14800 The following will be displayed when the \SpecialChar LaTeX
14813 \begin_layout Standard
14814 You need to install the \SpecialChar LaTeX
14819 to see the following part of this section in the output.
14822 \begin_layout Standard
14826 \begin_layout Plain Layout
14838 \begin_layout Standard
14839 For more info about the \SpecialChar LaTeX
14844 , see its documentation,
14845 \begin_inset CommandInset citation
14855 \begin_layout Section
14857 \begin_inset CommandInset label
14859 name "sec:Formal-Tables"
14864 \begin_inset Index idx
14867 \begin_layout Plain Layout
14876 \begin_layout Standard
14877 Tables are often typeset in books similar to Table
14878 \begin_inset space ~
14882 \begin_inset CommandInset ref
14884 reference "tab:Example-booktabs-table"
14889 This kind of tables is called
14890 \begin_inset Quotes eld
14898 \begin_inset Quotes erd
14902 To make a table a formal table
14903 \change_inserted -712698321 1554290084
14904 , select the table style
14905 \begin_inset Quotes eld
14909 \change_deleted 630872221 1622707670
14911 \change_inserted 630872221 1622707670
14914 \change_inserted -712698321 1554290084
14916 \begin_inset Quotes erd
14919 in the Table Creation dialog or
14929 tab of the table dialog
14930 \change_inserted -712698321 1554290131
14931 (if you additionally check the option
14933 Use Default Formal Style
14935 , the border lines are adapted to a sensible default)
14940 \begin_layout Standard
14941 \begin_inset Float table
14948 \begin_layout Plain Layout
14949 \begin_inset Caption Standard
14951 \begin_layout Plain Layout
14952 \begin_inset CommandInset label
14954 name "tab:Example-booktabs-table"
14959 \change_deleted -712698321 1554292310
14961 \change_inserted -712698321 1554292311
14972 \begin_layout Plain Layout
14974 \begin_inset Tabular
14975 <lyxtabular version="3" rows="8" columns="4">
14976 <features booktabs="true" tabularvalignment="middle">
14977 <column alignment="center" valignment="top">
14978 <column alignment="center" valignment="top" width="0pt">
14979 <column alignment="center" valignment="top" width="0pt">
14980 <column alignment="center" valignment="top">
14982 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14985 \begin_layout Plain Layout
14991 <cell alignment="center" valignment="top" topline="true" usebox="none">
14994 \begin_layout Plain Layout
14996 \begin_inset space \thinspace{}
15004 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15007 \begin_layout Plain Layout
15009 \begin_inset space \thinspace{}
15017 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15020 \begin_layout Plain Layout
15028 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15031 \begin_layout Plain Layout
15033 \change_deleted -712698321 1554290161
15037 \begin_layout Plain Layout
15050 \begin_layout Plain Layout
15061 Detector thickness in µm
15066 <cell alignment="center" valignment="top" usebox="none">
15069 \begin_layout Plain Layout
15075 <cell alignment="center" valignment="top" usebox="none">
15078 \begin_layout Plain Layout
15084 <cell alignment="center" valignment="top" usebox="none">
15087 \begin_layout Plain Layout
15095 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
15098 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" topline="true" toplinertrim="true" usebox="none">
15107 \begin_layout Plain Layout
15113 <cell alignment="center" valignment="top" topline="true" toplineltrim="true" usebox="none">
15116 \begin_layout Plain Layout
15122 <cell alignment="center" valignment="top" topline="true" usebox="none">
15125 \begin_layout Plain Layout
15132 <row topspace="default">
15133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15136 \begin_layout Plain Layout
15137 Spatial resolution in µm
15142 <cell alignment="center" valignment="top" usebox="none">
15145 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15160 <cell alignment="center" valignment="top" usebox="none">
15163 \begin_layout Plain Layout
15170 <row topspace="default">
15171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15174 \begin_layout Plain Layout
15176 \begin_inset Formula $f_{\mathrm{max}}$
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15193 <cell alignment="center" valignment="top" usebox="none">
15196 \begin_layout Plain Layout
15202 <cell alignment="center" valignment="top" usebox="none">
15205 \begin_layout Plain Layout
15212 <row topspace="default">
15213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15216 \begin_layout Plain Layout
15218 \change_deleted -712698321 1554290260
15222 \begin_layout Plain Layout
15226 cmidrule[2pt](l{10pt}){1-1}
15233 LSF-spatial resolution
15238 <cell alignment="center" valignment="top" usebox="none">
15241 \begin_layout Plain Layout
15247 <cell alignment="center" valignment="top" usebox="none">
15250 \begin_layout Plain Layout
15256 <cell alignment="center" valignment="top" usebox="none">
15259 \begin_layout Plain Layout
15267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15270 \begin_layout Plain Layout
15276 <cell alignment="center" valignment="top" usebox="none">
15279 \begin_layout Plain Layout
15285 <cell alignment="center" valignment="top" usebox="none">
15288 \begin_layout Plain Layout
15294 <cell alignment="center" valignment="top" usebox="none">
15297 \begin_layout Plain Layout
15305 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15308 \begin_layout Plain Layout
15314 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15317 \begin_layout Plain Layout
15323 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15326 \begin_layout Plain Layout
15332 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15335 \begin_layout Plain Layout
15354 \begin_layout Standard
15355 Spaces to table rows can be added using the
15359 tab of the table dialog as described in section
15360 \begin_inset space ~
15364 \begin_inset CommandInset ref
15366 reference "subsec:Row-Spacing"
15373 \begin_layout Standard
15374 Unlike normal tables, formal tables have no vertical table lines.
15375 The horizontal table lines can be set as for normal tables but they appear
15376 with different widths in the output:
15377 \begin_inset Newline newline
15380 The first and the last table line have a default width of 0.08
15381 \begin_inset space \thinspace{}
15384 em while the other lines have a default width of 0.05
15385 \begin_inset space \thinspace{}
15391 \begin_layout Standard
15392 The default widths can be changed with the following preamble lines
15395 \begin_layout Standard
15405 \begin_inset Newline newline
15417 \begin_layout Standard
15418 This example is for the first line, the so called
15423 If you want to change the width for the last line, replace
15432 To change the width for the other lines replace
15441 You can use all units listed in appendix
15442 \begin_inset space ~
15446 \begin_inset CommandInset ref
15448 reference "cha:Units-available-in"
15455 \begin_layout Standard
15457 \change_deleted -712698321 1554290929
15458 Lines that do not span all table columns can be created by setting a table
15459 line for multicolumn cells.
15461 will then internally use the command
15467 to create this line.
15469 \change_inserted -712698321 1554291959
15471 \begin_inset space ~
15475 \begin_inset CommandInset ref
15477 reference "tab:Example-booktabs-table"
15481 , formal tables often use shortened lines to group columns.
15482 This can be done in the borders widget of the table dialog.
15483 With formal tables, the top and bottom borders have to small offset lines
15484 to the left and the right.
15485 Clicking on these will trim the line respectively.
15490 \begin_layout Standard
15492 \change_inserted -712698321 1554291403
15493 If you need to adjust the length of the trimming or the height of the rules,
15494 you have to resort to \SpecialChar TeX
15496 The respective command (which is also used for the trimmed mid rules) is
15502 \begin_layout Standard
15507 cmidrule[height](trim){startcol-endcol}
15510 \begin_layout Standard
15512 \change_deleted -712698321 1554292020
15519 are currently not supported by \SpecialChar LyX
15520 so you have to use \SpecialChar TeX
15529 s can manually be created by inserting the command as \SpecialChar TeX
15531 cell entry of the first cell of a row.
15532 The line is then drawn in the output above the current row.
15537 \begin_layout Standard
15538 The default for the optional
15543 \begin_inset space \thinspace{}
15551 is the number of the column where the line starts and
15555 the column number where the line ends.
15560 always needs to be specified, also when the line should span only one column.
15561 The optional parameter
15578 Using for example the parameter
15582 means that the line is trimmed from its left end by 2
15583 \begin_inset space \thinspace{}
15587 If you don't specify the
15591 the line is trimmed by the default of 0.5
15592 \begin_inset space \thinspace{}
15596 \change_inserted -712698321 1554291561
15597 (this is what is done if you use trimming from the dialog)
15600 \change_inserted -712698321 1554292039
15604 \begin_layout Standard
15606 \change_inserted -712698321 1554292207
15617 is currently not supported by \SpecialChar LyX
15618 , and neither are the
15623 If you need this you can manually insert a
15629 with the respective settings as \SpecialChar TeX
15630 Code as the first cell entry of the first
15632 The line is then drawn in the output above the current row.
15634 \begin_inset space ~
15638 \begin_inset CommandInset ref
15640 reference "tab:Special-booktabs-table"
15644 exemplifies this (in the sixth row).
15649 \begin_layout Standard
15651 \change_deleted -712698321 1554291078
15652 \begin_inset VSpace bigskip
15656 \begin_inset space ~
15660 \begin_inset CommandInset ref
15662 reference "tab:Example-booktabs-table"
15666 was created using the commands
15669 \begin_layout Standard
15671 \change_deleted -712698321 1554291077
15681 \begin_layout Standard
15683 \change_deleted -712698321 1554291077
15684 at the beginning of the second row and
15687 \begin_layout Standard
15689 \change_deleted -712698321 1554291077
15694 cmidrule[2pt](l{10pt}){1-1}
15697 \begin_layout Standard
15699 \change_deleted -712698321 1554291077
15705 \begin_layout Standard
15707 \change_deleted -712698321 1554292212
15708 \begin_inset VSpace bigskip
15716 \begin_layout Standard
15718 \change_inserted -712698321 1554291573
15721 might want to have overlapping
15728 \change_deleted -712698321 1554296804
15730 \change_inserted -712698321 1554296808
15731 exemplified as well
15734 \begin_inset space ~
15738 \begin_inset CommandInset ref
15740 reference "tab:Special-booktabs-table"
15745 \change_inserted -712698321 1554291601
15746 , even though this is considered bad style (so only use it if you really
15750 This can be achieved with the \SpecialChar TeX
15754 \begin_layout Standard
15762 \begin_layout Standard
15763 The command that was used for the second row of Table
15764 \begin_inset space ~
15768 \begin_inset CommandInset ref
15770 reference "tab:Special-booktabs-table"
15777 \begin_layout Standard
15779 \change_deleted -712698321 1554291798
15795 \begin_layout Standard
15796 The command for the sixth row is
15799 \begin_layout Standard
15801 \change_deleted -712698321 1554291810
15815 \begin_layout Standard
15816 \begin_inset VSpace bigskip
15822 \begin_layout Standard
15823 If you are in any way not satisfied with the border line spacing, you can
15824 use the following command to produce lines that span over all table columns
15829 \begin_layout Standard
15834 specialrule{width}{space above}{space below}
15837 \begin_layout Standard
15838 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15845 \begin_inset CommandInset citation
15853 \begin_inset Index idx
15856 \begin_layout Plain Layout
15858 -packages ! booktabs
15866 \begin_layout Standard
15867 \begin_inset Float table
15874 \begin_layout Plain Layout
15875 \begin_inset Caption Standard
15877 \begin_layout Plain Layout
15878 \begin_inset CommandInset label
15880 name "tab:Special-booktabs-table"
15885 \change_inserted -712698321 1554292295
15887 \change_deleted -712698321 1554292304
15889 \change_inserted -712698321 1554292305
15891 \change_deleted -712698321 1554292300
15902 \begin_layout Plain Layout
15904 \begin_inset Tabular
15905 <lyxtabular version="3" rows="8" columns="4">
15906 <features booktabs="true" tabularvalignment="middle">
15907 <column alignment="center" valignment="top">
15908 <column alignment="center" valignment="top" width="0pt">
15909 <column alignment="center" valignment="top" width="0pt">
15910 <column alignment="center" valignment="top" width="0pt">
15912 <cell alignment="center" valignment="top" topline="true" usebox="none">
15915 \begin_layout Plain Layout
15921 <cell alignment="center" valignment="top" topline="true" bottomline="true" bottomlinertrim="true" usebox="none">
15924 \begin_layout Plain Layout
15926 \begin_inset space \thinspace{}
15934 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15937 \begin_layout Plain Layout
15939 \begin_inset space \thinspace{}
15947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15950 \begin_layout Plain Layout
15958 <cell alignment="center" valignment="top" usebox="none">
15961 \begin_layout Plain Layout
15963 \change_deleted -712698321 1554291732
15967 \begin_layout Plain Layout
15980 \begin_layout Plain Layout
15995 \begin_layout Plain Layout
16008 \begin_layout Plain Layout
16017 Detector thickness in µm
16022 <cell alignment="center" valignment="top" usebox="none">
16025 \begin_layout Plain Layout
16031 <cell alignment="center" valignment="top" topline="true" toplineltrim="true" usebox="none">
16034 \begin_layout Plain Layout
16040 <cell alignment="center" valignment="top" topline="true" usebox="none">
16043 \begin_layout Plain Layout
16051 <cell alignment="center" valignment="top" topline="true" usebox="none">
16054 \begin_layout Plain Layout
16060 <cell alignment="center" valignment="top" topline="true" usebox="none">
16063 \begin_layout Plain Layout
16069 <cell alignment="center" valignment="top" topline="true" usebox="none">
16072 \begin_layout Plain Layout
16078 <cell alignment="center" valignment="top" topline="true" usebox="none">
16081 \begin_layout Plain Layout
16088 <row topspace="default">
16089 <cell alignment="center" valignment="top" usebox="none">
16092 \begin_layout Plain Layout
16093 Spatial resolution in µm
16098 <cell alignment="center" valignment="top" usebox="none">
16101 \begin_layout Plain Layout
16107 <cell alignment="center" valignment="top" usebox="none">
16110 \begin_layout Plain Layout
16116 <cell alignment="center" valignment="top" usebox="none">
16119 \begin_layout Plain Layout
16126 <row topspace="default">
16127 <cell alignment="center" valignment="top" usebox="none">
16130 \begin_layout Plain Layout
16132 \begin_inset Formula $f_{\mathrm{max}}$
16140 <cell alignment="center" valignment="top" usebox="none">
16143 \begin_layout Plain Layout
16149 <cell alignment="center" valignment="top" usebox="none">
16152 \begin_layout Plain Layout
16158 <cell alignment="center" valignment="top" usebox="none">
16161 \begin_layout Plain Layout
16169 <cell alignment="center" valignment="top" topline="true" usebox="none">
16172 \begin_layout Plain Layout
16176 \begin_layout Plain Layout
16189 \begin_layout Plain Layout
16194 \change_inserted -712698321 1554291896
16202 LSF-spatial resolution
16207 <cell alignment="center" valignment="top" topline="true" usebox="none">
16210 \begin_layout Plain Layout
16216 <cell alignment="center" valignment="top" topline="true" usebox="none">
16219 \begin_layout Plain Layout
16225 <cell alignment="center" valignment="top" topline="true" usebox="none">
16228 \begin_layout Plain Layout
16236 <cell alignment="center" valignment="top" usebox="none">
16239 \begin_layout Plain Layout
16245 <cell alignment="center" valignment="top" usebox="none">
16248 \begin_layout Plain Layout
16254 <cell alignment="center" valignment="top" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" usebox="none">
16266 \begin_layout Plain Layout
16274 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16277 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16286 \begin_layout Plain Layout
16292 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16295 \begin_layout Plain Layout
16301 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16304 \begin_layout Plain Layout
16323 \begin_layout Section
16324 Vertical Table Alignment
16325 \begin_inset Index idx
16328 \begin_layout Plain Layout
16337 \begin_layout Standard
16338 To align tables vertically in a text line, the table must be inside a box.
16339 The box can then be vertically aligned as described in section
16340 \begin_inset space ~
16344 \begin_inset CommandInset ref
16346 reference "sec:Box-Dialog"
16353 \begin_layout Standard
16354 In the following example the tables are inside a minipage
16358 \begin_layout Plain Layout
16359 Minipages are described in section
16360 \begin_inset space ~
16364 \begin_inset CommandInset ref
16366 reference "sec:Minipages"
16375 box that has a width of 15
16376 \begin_inset space \thinspace{}
16382 \begin_layout Itemize
16384 \begin_inset Box Frameless
16394 height_special "totalheight"
16399 backgroundcolor "none"
16402 \begin_layout Plain Layout
16403 \begin_inset Tabular
16404 <lyxtabular version="3" rows="3" columns="3">
16405 <features tabularvalignment="middle">
16406 <column alignment="center" valignment="top">
16407 <column alignment="center" valignment="top">
16408 <column alignment="center" valignment="top">
16410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16413 \begin_layout Plain Layout
16419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16422 \begin_layout Plain Layout
16428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16431 \begin_layout Plain Layout
16439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16442 \begin_layout Plain Layout
16448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16451 \begin_layout Plain Layout
16457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16460 \begin_layout Plain Layout
16468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16471 \begin_layout Plain Layout
16477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16480 \begin_layout Plain Layout
16486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16489 \begin_layout Plain Layout
16509 \begin_layout Plain Layout
16521 \begin_inset Box Frameless
16531 height_special "totalheight"
16536 backgroundcolor "none"
16539 \begin_layout Plain Layout
16540 \begin_inset Tabular
16541 <lyxtabular version="3" rows="3" columns="3">
16542 <features tabularvalignment="middle">
16543 <column alignment="center" valignment="top">
16544 <column alignment="center" valignment="top">
16545 <column alignment="center" valignment="top">
16547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16550 \begin_layout Plain Layout
16556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16568 \begin_layout Plain Layout
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16588 \begin_layout Plain Layout
16594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16597 \begin_layout Plain Layout
16605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16617 \begin_layout Plain Layout
16623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16626 \begin_layout Plain Layout
16646 \begin_layout Plain Layout
16656 \begin_layout Itemize
16658 \begin_inset Box Frameless
16668 height_special "totalheight"
16673 backgroundcolor "none"
16676 \begin_layout Plain Layout
16677 \begin_inset Tabular
16678 <lyxtabular version="3" rows="3" columns="3">
16679 <features tabularvalignment="middle">
16680 <column alignment="center" valignment="top">
16681 <column alignment="center" valignment="top">
16682 <column alignment="center" valignment="top">
16684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16687 \begin_layout Plain Layout
16693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16696 \begin_layout Plain Layout
16702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16705 \begin_layout Plain Layout
16713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16716 \begin_layout Plain Layout
16722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16725 \begin_layout Plain Layout
16731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16734 \begin_layout Plain Layout
16742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16745 \begin_layout Plain Layout
16751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16754 \begin_layout Plain Layout
16760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16763 \begin_layout Plain Layout
16782 \begin_layout Itemize
16784 \begin_inset Box Frameless
16794 height_special "totalheight"
16799 backgroundcolor "none"
16802 \begin_layout Plain Layout
16803 \begin_inset Tabular
16804 <lyxtabular version="3" rows="3" columns="3">
16805 <features tabularvalignment="middle">
16806 <column alignment="center" valignment="top">
16807 <column alignment="center" valignment="top">
16808 <column alignment="center" valignment="top">
16810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16813 \begin_layout Plain Layout
16819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16822 \begin_layout Plain Layout
16828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16831 \begin_layout Plain Layout
16839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16842 \begin_layout Plain Layout
16848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16851 \begin_layout Plain Layout
16857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16860 \begin_layout Plain Layout
16868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16871 \begin_layout Plain Layout
16877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16880 \begin_layout Plain Layout
16886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16889 \begin_layout Plain Layout
16909 \begin_layout Plain Layout
16921 \begin_inset Box Frameless
16931 height_special "totalheight"
16936 backgroundcolor "none"
16939 \begin_layout Plain Layout
16940 \begin_inset Tabular
16941 <lyxtabular version="3" rows="3" columns="3">
16942 <features tabularvalignment="middle">
16943 <column alignment="center" valignment="top">
16944 <column alignment="center" valignment="top">
16945 <column alignment="center" valignment="top">
16947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16950 \begin_layout Plain Layout
16956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16959 \begin_layout Plain Layout
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16968 \begin_layout Plain Layout
16976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16979 \begin_layout Plain Layout
16985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16988 \begin_layout Plain Layout
16994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16997 \begin_layout Plain Layout
17005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17008 \begin_layout Plain Layout
17014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17017 \begin_layout Plain Layout
17023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17026 \begin_layout Plain Layout
17046 \begin_layout Plain Layout
17056 \begin_layout Standard
17057 As you will see, the content of the first and last table row is not correctly
17059 To get this alignment, the minipage box must be set into a raisebox.
17063 \begin_layout Plain Layout
17064 Raiseboxes are described in section
17065 \begin_inset space ~
17069 \begin_inset CommandInset ref
17071 reference "subsec:Vertical-Alignment"
17080 In the example above the second table in the first item is aligned using
17081 the \SpecialChar TeX
17085 \begin_layout Standard
17095 \begin_layout Standard
17097 After the box the closing brace
17101 is inserted as \SpecialChar TeX
17103 For the second table in the last item the command
17106 \begin_layout Standard
17116 \begin_layout Standard
17120 \begin_layout Standard
17121 \begin_inset Note Greyedout
17124 \begin_layout Plain Layout
17129 The alignment of the table row content to the surrounding text line is
17131 The required value for the
17137 command for this alignment depends on the document font, the font size,
17138 and the table line thickness.
17146 \begin_layout Section
17148 \begin_inset CommandInset label
17150 name "sec:Colored-Tables"
17155 \begin_inset Index idx
17158 \begin_layout Plain Layout
17167 \begin_layout Subsection
17169 \begin_inset Index idx
17172 \begin_layout Plain Layout
17173 Table Color ! for Cells
17179 \begin_inset Index idx
17182 \begin_layout Plain Layout
17183 Color ! for Table Cells
17191 \begin_layout Standard
17192 \begin_inset Float table
17199 \begin_layout Plain Layout
17200 \begin_inset Caption Standard
17202 \begin_layout Plain Layout
17203 \begin_inset CommandInset label
17205 name "tab:Table-colored-without"
17209 Table colored without using the package
17214 \begin_inset Argument 1
17217 \begin_layout Plain Layout
17218 Table without colortbl
17231 \begin_layout Plain Layout
17233 \begin_inset Tabular
17234 <lyxtabular version="3" rows="3" columns="3">
17235 <features tabularvalignment="middle">
17236 <column alignment="center" valignment="top">
17237 <column alignment="center" valignment="top">
17238 <column alignment="center" valignment="top">
17240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17243 \begin_layout Plain Layout
17251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17254 \begin_layout Plain Layout
17262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17265 \begin_layout Plain Layout
17275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17278 \begin_layout Plain Layout
17286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17289 \begin_layout Plain Layout
17297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17300 \begin_layout Plain Layout
17310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17313 \begin_layout Plain Layout
17321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17324 \begin_layout Plain Layout
17332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17335 \begin_layout Plain Layout
17356 \begin_layout Standard
17357 If you only need colored text, mark the cells and choose a color in the
17361 \begin_inset space ~
17366 dialog (toolbar button
17369 arg "dialog-show character"
17373 This was used to create Table
17374 \begin_inset space ~
17378 \begin_inset CommandInset ref
17380 reference "tab:Table-colored-without"
17385 In any other case you have to use the \SpecialChar LaTeX
17391 \begin_inset Index idx
17394 \begin_layout Plain Layout
17396 -packages ! colortbl
17404 \begin_layout Standard
17408 \begin_layout Plain Layout
17418 \begin_inset Note Note
17421 \begin_layout Plain Layout
17422 The following section part will only be displayed when the \SpecialChar LaTeX
17435 \begin_layout Standard
17436 To create colored tables,
17440 must be loaded in the preamble with the line
17443 \begin_layout Standard
17448 usepackage{colortbl}
17451 \begin_layout Standard
17452 The color of a column is adjusted with the command
17455 \begin_layout Standard
17460 columncolor{name of color}
17463 \begin_layout Standard
17469 More about the command
17473 is contained in section
17474 \begin_inset space ~
17478 \begin_inset CommandInset ref
17480 reference "subsec:Multicolumn-Calculations"
17487 \begin_layout Standard
17488 The following color names are predefined:
17491 \begin_layout Standard
17525 \begin_layout Standard
17526 \begin_inset VSpace medskip
17532 \begin_layout Standard
17533 If you add the option
17536 \begin_layout Standard
17542 \begin_layout Standard
17543 to the document class options in the document settings, you can additionally
17545 \begin_inset space ~
17549 These colors are listed in appendix
17550 \begin_inset space ~
17554 \begin_inset CommandInset ref
17556 reference "chap:List-of-dvips-colornames"
17561 One of these colors,
17565 , is used as example in Table
17566 \begin_inset space ~
17570 \begin_inset CommandInset ref
17572 reference "tab:Table-colored-using"
17579 \begin_layout Standard
17580 \begin_inset VSpace medskip
17586 \begin_layout Standard
17587 You can also define your own color with the command
17590 \begin_layout Standard
17595 definecolor{color name}{color model}{color values}
17598 \begin_layout Standard
17599 The color model can be
17602 \begin_layout Labeling
17603 \labelwidthstring 00.00.0000
17604 cmyk: cyan, magenta, yellow, black
17607 \begin_layout Labeling
17608 \labelwidthstring 00.00.0000
17609 rgb: red, green blue
17612 \begin_layout Labeling
17613 \labelwidthstring 00.00.0000
17617 \begin_layout Standard
17618 and the color values are comma separated numbers between 0 and 1 describing
17619 the factor for the corresponding color of the color model.
17622 \begin_layout Standard
17624 \begin_inset space \thinspace{}
17628 \begin_inset space \space{}
17635 " in the preamble with
17638 \begin_layout Standard
17643 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17646 \begin_layout Standard
17654 \begin_layout Standard
17659 definecolor{lightgray}{gray}{0.8}
17662 \begin_layout Standard
17663 \begin_inset VSpace medskip
17669 \begin_layout Standard
17670 Lines are colored with the command
17673 \begin_layout Standard
17678 rowcolor{name of color}
17681 \begin_layout Standard
17682 and cells are colored with the command
17685 \begin_layout Standard
17690 cellcolor{name of color}
17693 \begin_layout Standard
17694 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17698 \begin_layout Standard
17699 To color characters in the table, mark the cells and use the
17702 \begin_inset space ~
17708 If a cell contains \SpecialChar TeX
17709 Code mark only the characters, otherwise the colored
17711 Code will cause \SpecialChar LaTeX
17715 \begin_layout Standard
17716 \begin_inset Note Greyedout
17719 \begin_layout Plain Layout
17724 Not all DVI-viewers are able to display self-defined colors.
17732 \begin_layout Standard
17733 \begin_inset VSpace bigskip
17739 \begin_layout Standard
17741 \begin_inset space ~
17745 \begin_inset CommandInset ref
17747 reference "tab:Table-colored-using"
17751 do the following: The color of the first column should be
17759 \begin_layout Standard
17764 columncolor{darkgreen}
17769 \begin_layout Standard
17770 as \SpecialChar LaTeX
17771 -argument for this column.
17772 The first row should be light blue, therefore the \SpecialChar TeX
17776 \begin_layout Standard
17784 \begin_layout Standard
17785 is inserted to the first cell of this row.
17786 Note that this overwrites the column color for the first cell.
17787 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17792 \begin_layout Standard
17800 \begin_layout Standard
17801 The characters could now be colored using the menu
17803 Edit\SpecialChar menuseparator
17805 \begin_inset space ~
17813 \begin_layout Standard
17814 \begin_inset Float table
17821 \begin_layout Plain Layout
17822 \begin_inset Caption Standard
17824 \begin_layout Plain Layout
17825 \begin_inset CommandInset label
17827 name "tab:Table-colored-using"
17831 Table colored using the package
17836 \begin_inset Argument 1
17839 \begin_layout Plain Layout
17840 Table with colortbl
17853 \begin_layout Plain Layout
17855 \begin_inset Tabular
17856 <lyxtabular version="3" rows="3" columns="3">
17857 <features tabularvalignment="middle">
17858 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17859 <column alignment="center" valignment="top">
17860 <column alignment="center" valignment="top">
17862 <cell alignment="center" valignment="top" usebox="none">
17865 \begin_layout Plain Layout
17869 \begin_layout Plain Layout
17885 <cell alignment="center" valignment="top" usebox="none">
17888 \begin_layout Plain Layout
17896 <cell alignment="center" valignment="top" usebox="none">
17899 \begin_layout Plain Layout
17909 <cell alignment="center" valignment="top" usebox="none">
17912 \begin_layout Plain Layout
17920 <cell alignment="center" valignment="top" usebox="none">
17923 \begin_layout Plain Layout
17931 <cell alignment="center" valignment="top" usebox="none">
17934 \begin_layout Plain Layout
17944 <cell alignment="center" valignment="top" usebox="none">
17947 \begin_layout Plain Layout
17955 <cell alignment="center" valignment="top" usebox="none">
17958 \begin_layout Plain Layout
17966 <cell alignment="center" valignment="top" usebox="none">
17969 \begin_layout Plain Layout
17973 \begin_layout Plain Layout
18002 \begin_layout Standard
18006 \begin_layout Plain Layout
18016 \begin_inset Note Note
18019 \begin_layout Plain Layout
18020 The following will be displayed when the \SpecialChar LaTeX
18033 \begin_layout Standard
18034 You need to install the package
18038 to see the content of this section in the output.
18041 \begin_layout Standard
18045 \begin_layout Plain Layout
18057 \begin_layout Subsection
18059 \begin_inset Index idx
18062 \begin_layout Plain Layout
18063 Table Color ! for Rows
18069 \begin_inset Index idx
18072 \begin_layout Plain Layout
18073 Color ! for Table Rows
18081 \begin_layout Standard
18082 In case every second table row needs to be colored there is an alternative
18083 to the method described in the previous section: One loads the package
18089 \begin_inset Index idx
18092 \begin_layout Plain Layout
18098 \begin_layout Plain Layout
18112 in the document preamble with the command
18115 \begin_layout Standard
18120 usepackage[table]{xcolor}
18123 \begin_layout Standard
18128 automatically loads also the package
18133 \begin_inset Index idx
18136 \begin_layout Plain Layout
18138 -packages ! colortbl
18147 must be installed in your \SpecialChar LaTeX
18148 -distribution, otherwise you get \SpecialChar LaTeX
18152 \begin_layout Standard
18156 \begin_layout Plain Layout
18166 \begin_inset Note Note
18169 \begin_layout Plain Layout
18170 The following section part will only be displayed when the \SpecialChar LaTeX
18183 \begin_layout Standard
18184 The table rows are colored with the command
18187 \begin_layout Standard
18192 rowcolors[commands]{row number}{odd row color}{even row color}
18195 \begin_layout Standard
18196 that is either inserted in the document preamble or as \SpecialChar TeX
18198 first table to be colored.
18200 \begin_inset space ~
18203 number is the number of the first row which should be colored according
18204 to the odd row color.
18205 commands can be additional commands that are executed before every table
18207 So for example the command
18210 \begin_layout Standard
18215 rowcolors{1}{white}{lightgray}
18218 \begin_layout Standard
18219 leads to the coloring scheme of Table
18220 \begin_inset space ~
18224 \begin_inset CommandInset ref
18226 reference "tab:Table-rowcolors"
18234 \begin_layout Standard
18241 hline]{1}{lightgray}{cyan}
18244 \begin_layout Standard
18245 leads to the coloring scheme of Table
18246 \begin_inset space ~
18250 \begin_inset CommandInset ref
18252 reference "tab:Table-rowcolors-2"
18258 \begin_inset space ~
18262 \begin_inset space ~
18266 \begin_inset space ~
18270 \begin_inset space ~
18273 color are left empty, no color will be used so that the command
18276 \begin_layout Standard
18284 \begin_layout Standard
18285 deletes all colors.
18292 affects all tables following that command.
18295 \begin_layout Standard
18299 \begin_layout Plain Layout
18303 rowcolors{1}{white}{lightgray}
18311 \begin_layout Standard
18312 \begin_inset Float table
18319 \begin_layout Plain Layout
18320 \begin_inset Caption Standard
18322 \begin_layout Plain Layout
18323 \begin_inset CommandInset label
18325 name "tab:Table-rowcolors"
18329 Table where every second row is colored light gray.
18337 \begin_layout Plain Layout
18339 \begin_inset Tabular
18340 <lyxtabular version="3" rows="4" columns="3">
18341 <features tabularvalignment="middle">
18342 <column alignment="center" valignment="top">
18343 <column alignment="center" valignment="top" width="0pt">
18344 <column alignment="center" valignment="top" width="0pt">
18346 <cell alignment="center" valignment="top" usebox="none">
18349 \begin_layout Plain Layout
18355 <cell alignment="center" valignment="top" usebox="none">
18358 \begin_layout Plain Layout
18364 <cell alignment="center" valignment="top" usebox="none">
18367 \begin_layout Plain Layout
18375 <cell alignment="center" valignment="top" usebox="none">
18378 \begin_layout Plain Layout
18384 <cell alignment="center" valignment="top" usebox="none">
18387 \begin_layout Plain Layout
18393 <cell alignment="center" valignment="top" usebox="none">
18396 \begin_layout Plain Layout
18404 <cell alignment="center" valignment="top" usebox="none">
18407 \begin_layout Plain Layout
18413 <cell alignment="center" valignment="top" usebox="none">
18416 \begin_layout Plain Layout
18422 <cell alignment="center" valignment="top" usebox="none">
18425 \begin_layout Plain Layout
18433 <cell alignment="center" valignment="top" usebox="none">
18436 \begin_layout Plain Layout
18442 <cell alignment="center" valignment="top" usebox="none">
18445 \begin_layout Plain Layout
18451 <cell alignment="center" valignment="top" usebox="none">
18454 \begin_layout Plain Layout
18473 \begin_layout Standard
18477 \begin_layout Plain Layout
18483 hline]{1}{lightgray}{cyan}
18491 \begin_layout Standard
18492 \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-rowcolors-2"
18509 Table where every second row is colored cyan and at which there is a line
18518 \begin_layout Plain Layout
18520 \begin_inset Tabular
18521 <lyxtabular version="3" rows="4" columns="3">
18522 <features tabularvalignment="middle">
18523 <column alignment="center" valignment="top">
18524 <column alignment="center" valignment="top">
18525 <column alignment="center" valignment="top" width="0pt">
18527 <cell alignment="center" valignment="top" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" usebox="none">
18539 \begin_layout Plain Layout
18545 <cell alignment="center" valignment="top" usebox="none">
18548 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" usebox="none">
18559 \begin_layout Plain Layout
18565 <cell alignment="center" valignment="top" usebox="none">
18568 \begin_layout Plain Layout
18574 <cell alignment="center" valignment="top" usebox="none">
18577 \begin_layout Plain Layout
18585 <cell alignment="center" valignment="top" usebox="none">
18588 \begin_layout Plain Layout
18594 <cell alignment="center" valignment="top" usebox="none">
18597 \begin_layout Plain Layout
18603 <cell alignment="center" valignment="top" usebox="none">
18606 \begin_layout Plain Layout
18614 <cell alignment="center" valignment="top" usebox="none">
18617 \begin_layout Plain Layout
18623 <cell alignment="center" valignment="top" usebox="none">
18626 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" usebox="none">
18635 \begin_layout Plain Layout
18654 \begin_layout Standard
18658 \begin_layout Plain Layout
18668 \begin_inset Note Note
18671 \begin_layout Plain Layout
18672 turns off the row coloring
18680 \begin_layout Standard
18684 \begin_layout Plain Layout
18694 \begin_inset Note Note
18697 \begin_layout Plain Layout
18698 The following will be displayed when the \SpecialChar LaTeX
18711 \begin_layout Standard
18712 You need to install the package
18716 to see the content of this section in the output.
18719 \begin_layout Standard
18723 \begin_layout Plain Layout
18735 \begin_layout Subsection
18737 \begin_inset Index idx
18740 \begin_layout Plain Layout
18741 Table Color ! for Lines
18747 \begin_inset Index idx
18750 \begin_layout Plain Layout
18751 Color ! for Table Lines
18759 \begin_layout Standard
18760 As described in section
18761 \begin_inset space ~
18765 \begin_inset CommandInset ref
18767 reference "subsec:Line-Thickness"
18771 , the line thickness for all lines in a table can be adjusted with the length
18780 \begin_inset space \thinspace{}
18783 pt for all tables of this section.
18787 \begin_layout Plain Layout
18793 arrayrulewidth}{1.5pt}
18801 \begin_layout Standard
18802 To color vertical lines for example with green, create the following column
18803 format in the document preamble, according to the description in section
18804 \begin_inset space ~
18808 \begin_inset CommandInset ref
18810 reference "subsec:Customized-Format"
18817 \begin_layout Standard
18822 newcolumntype{W}{!{
18829 \begin_layout Standard
18831 \begin_inset space ~
18835 \begin_inset CommandInset ref
18837 reference "tab:Table-with-vertical-colored"
18841 the \SpecialChar LaTeX
18846 was used for the last column and
18850 for the other columns.
18853 \begin_layout Standard
18854 If you want to have several colors, define more column formats.
18857 \begin_layout Standard
18858 \begin_inset Float table
18865 \begin_layout Plain Layout
18866 \begin_inset Caption Standard
18868 \begin_layout Plain Layout
18869 \begin_inset CommandInset label
18871 name "tab:Table-with-vertical-colored"
18875 Table with colored vertical lines
18883 \begin_layout Plain Layout
18885 \begin_inset Tabular
18886 <lyxtabular version="3" rows="3" columns="3">
18887 <features tabularvalignment="middle">
18888 <column alignment="center" valignment="top" special="Wc">
18889 <column alignment="center" valignment="top" special="Wc">
18890 <column alignment="center" valignment="top" special="WcW">
18892 <cell alignment="center" valignment="top" topline="true" usebox="none">
18895 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" topline="true" usebox="none">
18904 \begin_layout Plain Layout
18910 <cell alignment="center" valignment="top" topline="true" usebox="none">
18913 \begin_layout Plain Layout
18921 <cell alignment="center" valignment="top" topline="true" usebox="none">
18924 \begin_layout Plain Layout
18930 <cell alignment="center" valignment="top" topline="true" usebox="none">
18933 \begin_layout Plain Layout
18939 <cell alignment="center" valignment="top" topline="true" usebox="none">
18942 \begin_layout Plain Layout
18950 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18953 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18962 \begin_layout Plain Layout
18968 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18971 \begin_layout Plain Layout
18990 \begin_layout Standard
18991 \begin_inset VSpace bigskip
18994 To color all horizontal lines for example with red, as in Table
18995 \begin_inset space ~
18999 \begin_inset CommandInset ref
19001 reference "tab:Table-with-horizontal-colored"
19005 , insert these commands in \SpecialChar TeX
19006 code before the table or table float:
19009 \begin_layout Standard
19019 \begin_inset Newline newline
19027 \begin_inset Newline newline
19031 \begin_inset Phantom HPhantom
19034 \begin_layout Plain Layout
19037 \begin_inset space ~
19047 arrayrulecolor{red}
19051 arrayrulecolor{black}}
19054 \begin_layout Standard
19058 \begin_layout Plain Layout
19069 \begin_layout Plain Layout
19078 \begin_layout Plain Layout
19082 arrayrulecolor{red}
19086 arrayrulecolor{black}}
19092 \begin_inset Float table
19099 \begin_layout Plain Layout
19100 \begin_inset Caption Standard
19102 \begin_layout Plain Layout
19103 \begin_inset CommandInset label
19105 name "tab:Table-with-horizontal-colored"
19109 Table with colored horizontal lines
19117 \begin_layout Plain Layout
19119 \begin_inset Tabular
19120 <lyxtabular version="3" rows="3" columns="3">
19121 <features tabularvalignment="middle">
19122 <column alignment="center" valignment="top">
19123 <column alignment="center" valignment="top">
19124 <column alignment="center" valignment="top">
19126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19129 \begin_layout Plain Layout
19135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19138 \begin_layout Plain Layout
19144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19147 \begin_layout Plain Layout
19155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19158 \begin_layout Plain Layout
19164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19167 \begin_layout Plain Layout
19173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19176 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19187 \begin_layout Plain Layout
19193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19196 \begin_layout Plain Layout
19202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19205 \begin_layout Plain Layout
19224 \begin_layout Standard
19225 To return to the default line color black, insert this command in \SpecialChar TeX
19227 after the table or table float:
19230 \begin_layout Standard
19242 \begin_layout Standard
19244 \begin_inset space ~
19248 \begin_inset CommandInset ref
19250 reference "tab:Table-with-colored"
19254 is an example with colored vertical and horizontal lines.
19257 \begin_layout Standard
19258 \begin_inset Float table
19265 \begin_layout Plain Layout
19266 \begin_inset Caption Standard
19268 \begin_layout Plain Layout
19269 \begin_inset CommandInset label
19271 name "tab:Table-with-colored"
19275 Table with colored lines
19283 \begin_layout Plain Layout
19285 \begin_inset Tabular
19286 <lyxtabular version="3" rows="3" columns="3">
19287 <features tabularvalignment="middle">
19288 <column alignment="center" valignment="top" special="Wc">
19289 <column alignment="center" valignment="top" special="Wc">
19290 <column alignment="center" valignment="top" special="WcW">
19292 <cell alignment="center" valignment="top" topline="true" usebox="none">
19295 \begin_layout Plain Layout
19301 <cell alignment="center" valignment="top" topline="true" usebox="none">
19304 \begin_layout Plain Layout
19310 <cell alignment="center" valignment="top" topline="true" usebox="none">
19313 \begin_layout Plain Layout
19321 <cell alignment="center" valignment="top" topline="true" usebox="none">
19324 \begin_layout Plain Layout
19330 <cell alignment="center" valignment="top" topline="true" usebox="none">
19333 \begin_layout Plain Layout
19339 <cell alignment="center" valignment="top" topline="true" usebox="none">
19342 \begin_layout Plain Layout
19349 <row topspace="default">
19350 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19353 \begin_layout Plain Layout
19359 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19362 \begin_layout Plain Layout
19368 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19371 \begin_layout Plain Layout
19390 \begin_layout Standard
19394 \begin_layout Plain Layout
19410 \begin_layout Standard
19414 \begin_layout Plain Layout
19420 arrayrulewidth}{1.2pt}
19428 \begin_layout Standard
19429 To color only some of the table lines another strategy is necessary.
19430 To color all following horizontal lines, insert this command as \SpecialChar TeX
19432 last thing in the row that should be above the first colored line:
19435 \begin_layout Standard
19444 arrayrulecolor{blue}%
19447 \begin_layout Standard
19448 To go back to black lines, add this command as first thing in the row that
19449 is above the black lines:
19452 \begin_layout Standard
19457 arrayrulecolor{black}
19460 \begin_layout Standard
19461 With this one can color table lines like in Table
19462 \begin_inset space ~
19466 \begin_inset CommandInset ref
19468 reference "tab:Table-with-different-hor"
19473 However, with this method it is not possible to color the line above the
19474 first row of a table.
19477 \begin_layout Standard
19478 \begin_inset Float table
19485 \begin_layout Plain Layout
19486 \begin_inset Caption Standard
19488 \begin_layout Plain Layout
19489 \begin_inset CommandInset label
19491 name "tab:Table-with-different-hor"
19495 Table with different horizontal line colors.
19503 \begin_layout Plain Layout
19505 \begin_inset Tabular
19506 <lyxtabular version="3" rows="6" columns="7">
19507 <features tabularvalignment="middle">
19508 <column alignment="center" valignment="top">
19509 <column alignment="center" valignment="top">
19510 <column alignment="center" valignment="top">
19511 <column alignment="center" valignment="top">
19512 <column alignment="center" valignment="top">
19513 <column alignment="center" valignment="top">
19514 <column alignment="center" valignment="top">
19516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19519 \begin_layout Plain Layout
19525 <cell alignment="center" valignment="top" topline="true" usebox="none">
19528 \begin_layout Plain Layout
19534 <cell alignment="center" valignment="top" topline="true" usebox="none">
19537 \begin_layout Plain Layout
19543 <cell alignment="center" valignment="top" topline="true" usebox="none">
19546 \begin_layout Plain Layout
19552 <cell alignment="center" valignment="top" topline="true" usebox="none">
19555 \begin_layout Plain Layout
19561 <cell alignment="center" valignment="top" topline="true" usebox="none">
19564 \begin_layout Plain Layout
19570 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19573 \begin_layout Plain Layout
19577 \begin_layout Plain Layout
19585 arrayrulecolor{blue}%
19597 <cell alignment="center" valignment="top" usebox="none">
19600 \begin_layout Plain Layout
19606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19609 \begin_layout Plain Layout
19615 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19618 \begin_layout Plain Layout
19624 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19627 \begin_layout Plain Layout
19633 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19636 \begin_layout Plain Layout
19642 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19645 \begin_layout Plain Layout
19651 <cell alignment="center" valignment="top" usebox="none">
19654 \begin_layout Plain Layout
19662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19665 \begin_layout Plain Layout
19669 \begin_layout Plain Layout
19673 arrayrulecolor{black}
19683 <cell alignment="center" valignment="top" usebox="none">
19686 \begin_layout Plain Layout
19692 <cell alignment="center" valignment="top" usebox="none">
19695 \begin_layout Plain Layout
19701 <cell alignment="center" valignment="top" usebox="none">
19704 \begin_layout Plain Layout
19710 <cell alignment="center" valignment="top" usebox="none">
19713 \begin_layout Plain Layout
19719 <cell alignment="center" valignment="top" usebox="none">
19722 \begin_layout Plain Layout
19728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19731 \begin_layout Plain Layout
19739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19742 \begin_layout Plain Layout
19748 <cell alignment="center" valignment="top" usebox="none">
19751 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" usebox="none">
19760 \begin_layout Plain Layout
19766 <cell alignment="center" valignment="top" usebox="none">
19769 \begin_layout Plain Layout
19775 <cell alignment="center" valignment="top" usebox="none">
19778 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" usebox="none">
19787 \begin_layout Plain Layout
19793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19796 \begin_layout Plain Layout
19800 \begin_layout Plain Layout
19808 arrayrulecolor{green}%
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19823 \begin_layout Plain Layout
19829 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19832 \begin_layout Plain Layout
19838 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19841 \begin_layout Plain Layout
19847 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19850 \begin_layout Plain Layout
19856 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19859 \begin_layout Plain Layout
19865 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19868 \begin_layout Plain Layout
19874 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19877 \begin_layout Plain Layout
19885 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19888 \begin_layout Plain Layout
19892 \begin_layout Plain Layout
19896 arrayrulecolor{black}
19906 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19909 \begin_layout Plain Layout
19915 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19918 \begin_layout Plain Layout
19924 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19927 \begin_layout Plain Layout
19933 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19936 \begin_layout Plain Layout
19942 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19945 \begin_layout Plain Layout
19951 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19954 \begin_layout Plain Layout
19958 \begin_layout Plain Layout
19966 arrayrulecolor{blue}%
19989 \begin_layout Standard
19990 To change the color of vertical lines within a row, like in Table
19991 \begin_inset space ~
19995 \begin_inset CommandInset ref
19997 reference "tab:Table-with-different-ver"
20001 , one needs to use multicolumns.
20002 At first one needs to remove all vertical lines that don't run along the
20004 Now one colors all lines using the command
20007 \begin_layout Standard
20016 arrayrulecolor{blue}%
20019 \begin_layout Standard
20021 Finally one inserts this command as \SpecialChar TeX
20022 code to every cell in the row where
20023 one needs a vertical line in a different color:
20026 \begin_layout Standard
20042 \begin_layout Standard
20043 This adds a vertical line to both sides of the cell.
20044 The left one will be green, the right one red.
20045 If no color change is necessary one can omit the
20051 command in the above command.
20052 To get for example a black left line and a blue right line you can write:
20055 \begin_layout Standard
20067 \begin_layout Standard
20068 because the color blue was already set for all lines.
20073 creates hereby the vertical line while
20086 To set vertical lines without changing any color use
20089 \begin_layout Standard
20094 multicolumn{1}{|c|}{
20097 \begin_layout Standard
20098 After this command insert the cell content the normal way and end the cell
20099 with a closing brace
20103 in \SpecialChar TeX
20107 \begin_layout Standard
20108 \begin_inset Float table
20115 \begin_layout Plain Layout
20116 \begin_inset Caption Standard
20118 \begin_layout Plain Layout
20119 \begin_inset CommandInset label
20121 name "tab:Table-with-different-ver"
20125 Table with different vertical line colors in one row.
20133 \begin_layout Plain Layout
20135 \begin_inset Tabular
20136 <lyxtabular version="3" rows="5" columns="7">
20137 <features tabularvalignment="middle">
20138 <column alignment="center" valignment="top">
20139 <column alignment="center" valignment="top">
20140 <column alignment="center" valignment="top">
20141 <column alignment="center" valignment="top">
20142 <column alignment="center" valignment="top">
20143 <column alignment="center" valignment="top">
20144 <column alignment="center" valignment="top">
20146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20149 \begin_layout Plain Layout
20155 <cell alignment="center" valignment="top" topline="true" usebox="none">
20158 \begin_layout Plain Layout
20164 <cell alignment="center" valignment="top" topline="true" usebox="none">
20167 \begin_layout Plain Layout
20173 <cell alignment="center" valignment="top" topline="true" usebox="none">
20176 \begin_layout Plain Layout
20182 <cell alignment="center" valignment="top" topline="true" usebox="none">
20185 \begin_layout Plain Layout
20191 <cell alignment="center" valignment="top" topline="true" usebox="none">
20194 \begin_layout Plain Layout
20200 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
20203 \begin_layout Plain Layout
20207 \begin_layout Plain Layout
20215 arrayrulecolor{red}%
20227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20230 \begin_layout Plain Layout
20234 \begin_layout Plain Layout
20251 \begin_layout Plain Layout
20263 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20266 \begin_layout Plain Layout
20272 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20275 \begin_layout Plain Layout
20281 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20284 \begin_layout Plain Layout
20290 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20293 \begin_layout Plain Layout
20299 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20302 \begin_layout Plain Layout
20306 \begin_layout Plain Layout
20310 multicolumn{1}{c|}{
20319 \begin_layout Plain Layout
20331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20334 \begin_layout Plain Layout
20338 \begin_layout Plain Layout
20355 \begin_layout Plain Layout
20369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20372 \begin_layout Plain Layout
20376 \begin_layout Plain Layout
20380 arrayrulecolor{black}
20390 <cell alignment="center" valignment="top" usebox="none">
20393 \begin_layout Plain Layout
20399 <cell alignment="center" valignment="top" usebox="none">
20402 \begin_layout Plain Layout
20408 <cell alignment="center" valignment="top" usebox="none">
20411 \begin_layout Plain Layout
20417 <cell alignment="center" valignment="top" usebox="none">
20420 \begin_layout Plain Layout
20426 <cell alignment="center" valignment="top" usebox="none">
20429 \begin_layout Plain Layout
20435 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20438 \begin_layout Plain Layout
20442 \begin_layout Plain Layout
20450 arrayrulecolor{magenta}%
20462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20465 \begin_layout Plain Layout
20469 \begin_layout Plain Layout
20473 multicolumn{1}{|c!{
20486 \begin_layout Plain Layout
20498 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20501 \begin_layout Plain Layout
20505 \begin_layout Plain Layout
20522 \begin_layout Plain Layout
20534 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20537 \begin_layout Plain Layout
20541 \begin_layout Plain Layout
20558 \begin_layout Plain Layout
20570 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20573 \begin_layout Plain Layout
20577 \begin_layout Plain Layout
20594 \begin_layout Plain Layout
20606 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20609 \begin_layout Plain Layout
20613 \begin_layout Plain Layout
20630 \begin_layout Plain Layout
20642 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20645 \begin_layout Plain Layout
20649 \begin_layout Plain Layout
20666 \begin_layout Plain Layout
20678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20681 \begin_layout Plain Layout
20685 \begin_layout Plain Layout
20689 multicolumn{1}{c|}{
20698 \begin_layout Plain Layout
20712 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20715 \begin_layout Plain Layout
20719 \begin_layout Plain Layout
20723 arrayrulecolor{black}
20733 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20736 \begin_layout Plain Layout
20742 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20745 \begin_layout Plain Layout
20751 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20754 \begin_layout Plain Layout
20760 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20763 \begin_layout Plain Layout
20769 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20772 \begin_layout Plain Layout
20778 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20781 \begin_layout Plain Layout
20800 \begin_layout Standard
20804 \begin_layout Plain Layout
20810 arrayrulewidth}{0.4pt}
20818 \begin_layout Section
20819 Rotated Table Cells
20820 \begin_inset CommandInset label
20822 name "sec:Rotated-Table-Cells"
20827 \begin_inset Index idx
20830 \begin_layout Plain Layout
20831 Table ! Rotated Cells
20837 \begin_inset Index idx
20840 \begin_layout Plain Layout
20849 \begin_layout Standard
20850 \begin_inset Note Greyedout
20853 \begin_layout Plain Layout
20858 Not all DVI-viewers are able to display rotations.
20866 \begin_layout Standard
20868 \begin_inset space ~
20872 \begin_inset CommandInset ref
20874 reference "tab:Table-with-rotated"
20881 is an example where 3
20882 \begin_inset space ~
20885 cells were rotated by 45
20886 \begin_inset space \thinspace{}
20892 \begin_layout Standard
20893 \begin_inset Float table
20900 \begin_layout Plain Layout
20901 \begin_inset Caption Standard
20903 \begin_layout Plain Layout
20904 \begin_inset CommandInset label
20906 name "tab:Table-with-rotated"
20910 Table with rotated cells in the first row.
20918 \begin_layout Plain Layout
20921 \begin_inset Tabular
20922 <lyxtabular version="3" rows="2" columns="3">
20923 <features tabularvalignment="middle">
20924 <column alignment="center" valignment="top" width="0pt">
20925 <column alignment="center" valignment="top" width="0pt">
20926 <column alignment="center" valignment="top" width="0pt">
20928 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20931 \begin_layout Plain Layout
20937 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20940 \begin_layout Plain Layout
20946 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20949 \begin_layout Plain Layout
20957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20960 \begin_layout Plain Layout
20966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20969 \begin_layout Plain Layout
20975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20978 \begin_layout Plain Layout
20997 \begin_layout Standard
20998 \begin_inset Note Greyedout
21001 \begin_layout Plain Layout
21006 Line breaks (shortcut
21009 arg "newline-insert newline"
21012 ) are not allowed in rotated cells.
21020 \begin_layout Standard
21021 If you want to rotate table cells containing line breaks, you have to put
21022 the cell content into a minipage or a parbox.
21026 \begin_layout Plain Layout
21027 For more about these boxes see sec.
21028 \begin_inset space \thinspace{}
21032 \begin_inset CommandInset ref
21034 reference "sec:Minipages"
21039 \begin_inset CommandInset ref
21041 reference "sec:Parboxes"
21050 If you rotate this cell by 90
21051 \begin_inset space \thinspace{}
21054 ° the width of the box is the height of the cell.
21055 To avoid to estimate a suitable box width one can use a minipage with a
21057 Such a box is inserted by loading the module
21060 \begin_inset space ~
21065 in the document settings.
21066 Then one can use the menu
21068 Insert\SpecialChar menuseparator
21070 \begin_inset space ~
21073 Insets\SpecialChar menuseparator
21075 \begin_inset space ~
21081 \begin_inset space ~
21086 \begin_inset space ~
21090 \begin_inset CommandInset ref
21092 reference "tab:Table-with-rotated-multi"
21096 is an example for a rotated multiline cell where a variable width minipage
21100 \begin_layout Standard
21101 \begin_inset Float table
21108 \begin_layout Plain Layout
21109 \begin_inset Caption Standard
21111 \begin_layout Plain Layout
21112 \begin_inset CommandInset label
21114 name "tab:Table-with-rotated-multi"
21118 Table with rotated multiline cell.
21126 \begin_layout Plain Layout
21129 \begin_inset Tabular
21130 <lyxtabular version="3" rows="2" columns="3">
21131 <features tabularvalignment="middle">
21132 <column alignment="center" valignment="top">
21133 <column alignment="center" valignment="top" width="0pt">
21134 <column alignment="center" valignment="top">
21136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21139 \begin_layout Plain Layout
21145 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
21148 \begin_layout Plain Layout
21149 \begin_inset Flex Minipage (Var. Width)
21152 \begin_layout Plain Layout
21154 \begin_inset Newline newline
21158 \begin_inset space ~
21171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21174 \begin_layout Plain Layout
21182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21185 \begin_layout Plain Layout
21191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21194 \begin_layout Plain Layout
21200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21203 \begin_layout Plain Layout
21222 \begin_layout Section
21223 Table Width Calculation
21224 \begin_inset CommandInset label
21226 name "sec:Table-Width-Calculation"
21233 \begin_layout Standard
21234 For wide tables it is sometimes difficult to assure that the table does
21235 not protrude over the page margin.
21236 Setting a fixed width for every column of the table is the solution, but
21237 what amount of space is needed for each column?
21240 \begin_layout Standard
21242 \begin_inset Formula $W_{\mathrm{table}}$
21245 can be calculated: Every column has the width of the specified column width
21247 \begin_inset Formula $W_{\mathrm{column}}$
21250 (that the content of the column can consume) plus two times the separation
21251 between the column content and the column border (\SpecialChar LaTeX
21259 \begin_inset space \thinspace{}
21262 pt) plus the width of a border line (\SpecialChar LaTeX
21270 \begin_inset space \thinspace{}
21274 \begin_inset Formula $n$
21278 \begin_inset space ~
21281 columns have the same width, the table width is
21282 \begin_inset Formula
21284 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
21292 \begin_layout Standard
21293 The available width for a table is the space between the page margins or
21294 the width of a text column (for a two-column document) (\SpecialChar LaTeX
21302 If all table columns should have the same width and
21303 \begin_inset Formula $W_{\mathrm{table}}$
21307 \begin_inset space \thinspace{}
21313 \begin_inset Formula $W_{\mathrm{column}}$
21316 can easily be calculated.
21319 \begin_layout Standard
21320 To be able to perform calculations you need to load the \SpecialChar LaTeX
21326 \begin_inset Index idx
21329 \begin_layout Plain Layout
21336 in the document preamble.
21337 To set the width in the table dialog you have to use the field
21343 The command scheme for this field is the same that is explained in section
21344 \begin_inset space ~
21348 \begin_inset CommandInset ref
21350 reference "subsec:Multicolumn-Calculations"
21356 \begin_inset space \thinspace{}
21359 columns with an uniform width and centered text, enter there for each column
21363 \begin_layout Standard
21370 columnwidth-62.4pt)/5}
21373 \begin_layout Standard
21375 \begin_inset space \thinspace{}
21378 columns where 2 should have 0.75
21379 \begin_inset space ~
21382 times the width than the 3 others, the calculation is
21383 \begin_inset Formula
21385 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
21386 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
21387 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
21388 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21396 \begin_layout Standard
21397 In the table therefore the command
21400 \begin_layout Standard
21407 columnwidth-62.4pt)/
21412 \begin_layout Standard
21413 is used for the wider columns and
21416 \begin_layout Standard
21423 columnwidth-62.4pt)/
21430 \begin_layout Standard
21431 for the smaller ones:
21434 \begin_layout Standard
21435 \begin_inset Tabular
21436 <lyxtabular version="3" rows="2" columns="5">
21437 <features tabularvalignment="middle">
21438 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21439 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21440 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21441 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21442 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21447 \begin_layout Plain Layout
21453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21456 \begin_layout Plain Layout
21462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21465 \begin_layout Plain Layout
21471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21474 \begin_layout Plain Layout
21480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21483 \begin_layout Plain Layout
21491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21494 \begin_layout Plain Layout
21495 111111 1111111 111111 111111111 11111 11111 1111
21500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21503 \begin_layout Plain Layout
21509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21512 \begin_layout Plain Layout
21513 2222 22222 222222 222222222 2222222 22 22222
21518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21521 \begin_layout Plain Layout
21527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21530 \begin_layout Plain Layout
21531 333333 333333 333333 33333 3333333 333
21544 \begin_layout Section
21545 Table Customization
21546 \begin_inset Index idx
21549 \begin_layout Plain Layout
21550 Table Customization
21556 \begin_inset Index idx
21559 \begin_layout Plain Layout
21560 Table ! Customization
21568 \begin_layout Subsection
21570 \begin_inset CommandInset label
21572 name "subsec:Row-Spacing"
21577 \begin_inset Index idx
21580 \begin_layout Plain Layout
21581 Table Customization ! Row Spacing
21589 \begin_layout Standard
21590 You can add vertical space to table rows in the
21594 tab of the table dialog.
21595 You find there three possibilities:
21598 \begin_layout Description
21600 \begin_inset space ~
21604 \begin_inset space ~
21607 row will add space above the characters of the table row.
21608 If the table is a formal table
21612 \begin_layout Plain Layout
21613 Formal tables are explained in section
21614 \begin_inset space ~
21618 \begin_inset CommandInset ref
21620 reference "sec:Formal-Tables"
21630 will insert as default 0.5
21631 \begin_inset space \thinspace{}
21635 For normal tables the inserted space will unfortunately destroy the vertical
21636 table lines as in the following table:
21637 \begin_inset VSpace medskip
21641 \begin_inset Newline newline
21645 \begin_inset space \hspace*{}
21650 \begin_inset space \hfill{}
21654 \begin_inset Tabular
21655 <lyxtabular version="3" rows="3" columns="1">
21656 <features tabularvalignment="middle">
21657 <column alignment="center" valignment="top">
21659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21662 \begin_layout Plain Layout
21669 <row topspace="3mm">
21670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21673 \begin_layout Plain Layout
21675 \begin_inset space \thinspace{}
21678 mm space top of row
21685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21688 \begin_layout Plain Layout
21700 \begin_inset space \hfill{}
21704 \begin_inset space \hspace*{}
21709 \begin_inset VSpace medskip
21713 \begin_inset Newline newline
21716 So inserting space in the top of row for normal tables is only useful when
21717 you don't have vertical lines.
21720 \begin_layout Description
21722 \begin_inset space ~
21726 \begin_inset space ~
21729 row will add space below the characters of the table row.
21730 If the table is a formal table \SpecialChar LyX
21731 will insert as default 0.5
21732 \begin_inset space \thinspace{}
21735 em space, for normal tables the default size is 2
21736 \begin_inset space \thinspace{}
21742 \begin_layout Description
21744 \begin_inset space ~
21747 rows adds space between the current and the following row.
21748 If the table is a formal table \SpecialChar LyX
21749 will insert as default 0.5
21750 \begin_inset space \thinspace{}
21754 For normal tables the inserted space will unfortunately destroy the vertical
21755 table lines as in the following table:
21756 \begin_inset VSpace medskip
21760 \begin_inset Newline newline
21764 \begin_inset space \hspace*{}
21769 \begin_inset space \hfill{}
21773 \begin_inset Tabular
21774 <lyxtabular version="3" rows="3" columns="1">
21775 <features tabularvalignment="middle">
21776 <column alignment="center" valignment="top">
21778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21781 \begin_layout Plain Layout
21788 <row interlinespace="3mm">
21789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21792 \begin_layout Plain Layout
21793 \begin_inset Formula $\downarrow$
21797 \begin_inset space \thinspace{}
21800 mm space between row
21801 \begin_inset Formula $\downarrow$
21811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21814 \begin_layout Plain Layout
21815 \begin_inset Formula $\uparrow$
21819 \begin_inset space \thinspace{}
21822 mm space between row
21823 \begin_inset Formula $\uparrow$
21837 \begin_inset space \hfill{}
21841 \begin_inset space \hspace*{}
21846 \begin_inset VSpace medskip
21850 \begin_inset Newline newline
21853 So inserting space between rows for normal tables is only useful when you
21854 don't have vertical lines.
21857 \begin_layout Standard
21858 \begin_inset VSpace bigskip
21861 When you want to add extra height to all cells of all tables, you can do
21862 this with the following preamble lines:
21865 \begin_layout Standard
21870 @ifundefined{extrarowheight}
21871 \begin_inset Newline newline
21875 \begin_inset Phantom HPhantom
21878 \begin_layout Plain Layout
21881 \begin_inset space ~
21891 usepackage{array}}{}
21892 \begin_inset Newline newline
21899 extrarowheight}{height}
21902 \begin_inset Note Note
21905 \begin_layout Plain Layout
21910 will be loaded automatically by \SpecialChar LyX
21911 when you use self defined table formats.
21912 To avoid that it is loaded twice the command
21918 is used in the above command.
21926 \begin_layout Standard
21931 can have one of the units listed in appendix
21932 \begin_inset space ~
21936 \begin_inset CommandInset ref
21938 reference "cha:Units-available-in"
21943 But this has the disadvantage that the cell texts are no longer exactly
21944 vertically centered.
21947 \begin_layout Standard
21948 If you are using font sizes larger than the normal size, the table borders
21949 are often too close to the letters.
21950 This can be corrected by inserting the command
21956 in \SpecialChar TeX
21957 Code at the beginning of a table row.
21959 \begin_inset space ~
21963 \begin_inset CommandInset ref
21965 reference "tab:Vertical-alignment-of"
21969 illustrates the effect.
21972 \begin_layout Standard
21974 \begin_inset Float table
21981 \begin_layout Plain Layout
21982 \begin_inset Caption Standard
21984 \begin_layout Plain Layout
21985 \begin_inset CommandInset label
21987 name "tab:Vertical-alignment-of"
21991 Vertical alignment of text with large font sizes.
21999 \begin_layout Plain Layout
22000 \begin_inset space \hfill{}
22004 \begin_inset Float table
22011 \begin_layout Plain Layout
22012 \begin_inset Caption Standard
22014 \begin_layout Plain Layout
22023 \begin_layout Plain Layout
22026 \begin_inset Tabular
22027 <lyxtabular version="3" rows="6" columns="1">
22028 <features tabularvalignment="middle">
22029 <column alignment="left" valignment="top">
22031 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22034 \begin_layout Plain Layout
22042 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22045 \begin_layout Plain Layout
22055 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22058 \begin_layout Plain Layout
22068 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22071 \begin_layout Plain Layout
22081 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22084 \begin_layout Plain Layout
22094 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22097 \begin_layout Plain Layout
22116 \begin_inset space \hfill{}
22120 \begin_inset Float table
22127 \begin_layout Plain Layout
22128 \begin_inset Caption Standard
22130 \begin_layout Plain Layout
22131 Table using the command
22145 \begin_layout Plain Layout
22148 \begin_inset Tabular
22149 <lyxtabular version="3" rows="6" columns="1">
22150 <features tabularvalignment="middle">
22151 <column alignment="left" valignment="top">
22153 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22156 \begin_layout Plain Layout
22164 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22167 \begin_layout Plain Layout
22173 \begin_layout Plain Layout
22189 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22192 \begin_layout Plain Layout
22198 \begin_layout Plain Layout
22214 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22217 \begin_layout Plain Layout
22223 \begin_layout Plain Layout
22239 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22242 \begin_layout Plain Layout
22248 \begin_layout Plain Layout
22264 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22267 \begin_layout Plain Layout
22273 \begin_layout Plain Layout
22300 \begin_inset space \hfill{}
22311 \begin_layout Subsection
22312 Special Cell Alignment
22313 \begin_inset CommandInset label
22315 name "subsec:Special-Cell-Alignment"
22320 \begin_inset Index idx
22323 \begin_layout Plain Layout
22324 Table Customization ! Special Cell Alignment
22332 \begin_layout Standard
22333 Sometimes it looks better when the cell entries of a column are aligned
22334 with a special character, e.
22335 \begin_inset space \thinspace{}
22339 \begin_inset space \space{}
22342 with the decimal separator as in Table
22343 \begin_inset space ~
22347 \begin_inset CommandInset ref
22349 reference "tab:Table-cells-align"
22354 This alignment is achieved by setting the cursor into the column and then
22355 either pressing the toolbar button
22358 arg "tabular-feature align-decimal"
22361 or setting the alignment in the table settings to
22364 \begin_inset space ~
22368 \begin_inset space ~
22374 The alignment character can be a character of your choice and is specified
22375 in the table settings.
22378 \begin_layout Standard
22379 \begin_inset Float table
22386 \begin_layout Plain Layout
22387 \begin_inset Caption Standard
22389 \begin_layout Plain Layout
22390 \begin_inset CommandInset label
22392 name "tab:Table-cells-align"
22396 Table cells of a column aligned with the decimal separator.
22404 \begin_layout Plain Layout
22406 \begin_inset Tabular
22407 <lyxtabular version="3" rows="4" columns="1">
22408 <features booktabs="true" tabularvalignment="middle">
22409 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22411 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22414 \begin_layout Plain Layout
22422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22425 \begin_layout Plain Layout
22433 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22436 \begin_layout Plain Layout
22444 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22447 \begin_layout Plain Layout
22466 \begin_layout Standard
22467 \begin_inset Float table
22474 \begin_layout Plain Layout
22475 \begin_inset Caption Standard
22477 \begin_layout Plain Layout
22478 \begin_inset CommandInset label
22480 name "tab:Table-align-operator"
22484 Table cells of a column aligned with the operators.
22492 \begin_layout Plain Layout
22494 \begin_inset Tabular
22495 <lyxtabular version="3" rows="4" columns="2">
22496 <features booktabs="true" tabularvalignment="middle">
22497 <column alignment="right" valignment="top" width="0pt">
22498 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22500 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22503 \begin_layout Plain Layout
22509 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22512 \begin_layout Plain Layout
22520 <cell alignment="center" valignment="top" usebox="none">
22523 \begin_layout Plain Layout
22524 \begin_inset Formula $12\,+$
22532 <cell alignment="center" valignment="top" usebox="none">
22535 \begin_layout Plain Layout
22536 \begin_inset Formula $\,6$
22546 <cell alignment="center" valignment="top" usebox="none">
22549 \begin_layout Plain Layout
22550 \begin_inset Formula $0\,-$
22558 <cell alignment="center" valignment="top" usebox="none">
22561 \begin_layout Plain Layout
22562 \begin_inset Formula $\,68$
22572 <cell alignment="center" valignment="top" usebox="none">
22575 \begin_layout Plain Layout
22576 \begin_inset Formula $-123\,/$
22584 <cell alignment="center" valignment="top" usebox="none">
22587 \begin_layout Plain Layout
22588 \begin_inset Formula $\,0$
22609 \begin_layout Standard
22610 For alignments at characters in formulas this method does not work because
22611 the field to specify the alignment character does not allow formulas.
22612 In this case one need to use the method from Table
22613 \begin_inset space ~
22617 \begin_inset CommandInset ref
22619 reference "tab:Table-align-operator"
22624 This table was created with a 4×2 table.
22625 The heading is a centered multicolumn.
22626 The first column is right-aligned and contains the first part including
22628 The second column is left aligned and contains the rest.
22629 A small space was added at the beginning of each cell of the second column
22630 to get the space that is usually around operators.
22631 To omit the space that is normally between two table columns, the following
22633 -argument was used for the second column:
22636 \begin_layout Standard
22642 \begin_layout Standard
22644 \begin_inset space ~
22648 \begin_inset CommandInset ref
22650 reference "tab:Several-table-cell"
22654 shows some example alignments.
22655 For the alignment with the relation sign, a small space was added like
22656 for the second column of Table
22657 \begin_inset space ~
22661 \begin_inset CommandInset ref
22663 reference "tab:Table-align-operator"
22670 \begin_layout Standard
22671 \begin_inset Float table
22678 \begin_layout Plain Layout
22679 \begin_inset Caption Standard
22681 \begin_layout Plain Layout
22682 \begin_inset CommandInset label
22684 name "tab:Several-table-cell"
22688 Several table cell alignments.
22696 \begin_layout Plain Layout
22698 \begin_inset Tabular
22699 <lyxtabular version="3" rows="4" columns="6">
22700 <features tabularvalignment="middle">
22701 <column alignment="right" valignment="top">
22702 <column alignment="left" valignment="top" special="@{}l">
22703 <column alignment="right" valignment="top">
22704 <column alignment="left" valignment="top" special="@{}l">
22705 <column alignment="right" valignment="top">
22706 <column alignment="left" valignment="top" special="@{}l">
22708 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22711 \begin_layout Plain Layout
22717 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22720 \begin_layout Plain Layout
22726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22729 \begin_layout Plain Layout
22735 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22738 \begin_layout Plain Layout
22744 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22747 \begin_layout Plain Layout
22753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22756 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22776 \begin_layout Plain Layout
22778 \begin_inset space \thinspace{}
22786 <cell alignment="center" valignment="top" usebox="none">
22789 \begin_layout Plain Layout
22790 \begin_inset Formula $10\cdot$
22798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22801 \begin_layout Plain Layout
22802 \begin_inset Formula $10^{\mbox{-}17}$
22810 <cell alignment="center" valignment="top" usebox="none">
22813 \begin_layout Plain Layout
22814 \begin_inset Formula $\Gamma(t)\propto$
22822 <cell alignment="center" valignment="top" usebox="none">
22825 \begin_layout Plain Layout
22826 \begin_inset Formula $\:\Upsilon(t)$
22836 <cell alignment="center" valignment="top" usebox="none">
22839 \begin_layout Plain Layout
22845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22848 \begin_layout Plain Layout
22850 \begin_inset space \thinspace{}
22858 <cell alignment="center" valignment="top" usebox="none">
22861 \begin_layout Plain Layout
22862 \begin_inset Formula $5.78\cdot$
22870 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22873 \begin_layout Plain Layout
22874 \begin_inset Formula $10^{7}$
22882 <cell alignment="center" valignment="top" usebox="none">
22885 \begin_layout Plain Layout
22886 \begin_inset Formula $A\ne$
22894 <cell alignment="center" valignment="top" usebox="none">
22897 \begin_layout Plain Layout
22898 \begin_inset Formula $\:B_{\mathrm{red}}$
22908 <cell alignment="center" valignment="top" usebox="none">
22911 \begin_layout Plain Layout
22917 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22920 \begin_layout Plain Layout
22922 \begin_inset space \thinspace{}
22930 <cell alignment="center" valignment="top" usebox="none">
22933 \begin_layout Plain Layout
22935 \begin_inset Formula $33.5\cdot$
22943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22946 \begin_layout Plain Layout
22947 \begin_inset Formula $10^{4}$
22955 <cell alignment="center" valignment="top" usebox="none">
22958 \begin_layout Plain Layout
22959 \begin_inset Formula $\sin(\alpha)\ge$
22967 <cell alignment="center" valignment="top" usebox="none">
22970 \begin_layout Plain Layout
22971 \begin_inset Formula $\:\sin(\beta)$
22992 \begin_layout Subsection
22993 Customized Cell/Column Format
22994 \begin_inset CommandInset label
22996 name "subsec:Customized-Format"
23001 \begin_inset Index idx
23004 \begin_layout Plain Layout
23005 Table Customization ! Cell/Column Format
23013 \begin_layout Standard
23014 Calculating the required width for normal columns as described in section
23015 \begin_inset space ~
23019 \begin_inset CommandInset ref
23021 reference "sec:Table-Width-Calculation"
23025 or for spanned columns as described in section
23026 \begin_inset space ~
23030 \begin_inset CommandInset ref
23032 reference "subsec:Multicolumn-Calculations"
23036 is very annoying if you have several tables where a calculation is necessary.
23037 To make life easier, you can define a cell/column format in the preamble,
23038 that can be used in all tables of the document.
23039 The format is defined with the command
23042 \begin_layout Standard
23047 newcolumntype{name of format}[number of arguments]{commands}
23050 \begin_layout Standard
23051 The format name may only consist of one letter.
23076 are predefined and cannot be used.
23077 But all letters are allowed as capitals.
23080 \begin_layout Standard
23081 \begin_inset VSpace medskip
23087 \begin_layout Standard
23088 For vertically and horizontally centered multicolumn cells with a fixed
23089 width you can define the cell format
23092 \begin_layout Standard
23097 newcolumntype{M}[1]{>{
23104 \begin_layout Standard
23111 avoids the problem of hyphenating the first word, as described in section
23112 \begin_inset space ~
23116 \begin_inset CommandInset ref
23118 reference "subsec:Multiple-Lines-in"
23123 Now you can simply enter
23126 \begin_layout Standard
23132 \begin_layout Standard
23138 in the table dialog to create a multicolumn.
23141 \begin_layout Standard
23142 \begin_inset VSpace bigskip
23148 \begin_layout Standard
23149 For cells spanned by a multicolumn cell, you can define the format
23152 \begin_layout Standard
23157 newcolumntype{S}[2]{>{
23162 \begin_inset Newline newline
23166 \begin_inset Phantom HPhantom
23169 \begin_layout Plain Layout
23183 arrayrulewidth)*(1-#2))/#2}}
23186 \begin_layout Standard
23187 This format uses equation
23188 \begin_inset CommandInset ref
23194 to calculate the required width so that each spanned cell has the same
23198 \begin_layout Standard
23202 \begin_layout Standard
23205 S{width of multicolumn cell}{number of spanned columns}
23208 \begin_layout Standard
23209 as \SpecialChar LaTeX
23210 -argument of the column.
23213 \begin_layout Standard
23214 \begin_inset VSpace bigskip
23220 \begin_layout Standard
23221 For colored columns, you can define
23224 \begin_layout Standard
23229 newcolumntype{K}[1]{>{
23236 \begin_layout Standard
23238 \begin_inset Quotes eld
23242 \begin_inset Quotes erd
23245 at the end creates a column with a flexible width whose text is horizontally
23250 \begin_layout Standard
23256 \begin_layout Standard
23257 as \SpecialChar LaTeX
23261 \begin_layout Standard
23262 \begin_inset VSpace bigskip
23268 \begin_layout Standard
23270 \begin_inset space ~
23274 \begin_inset CommandInset ref
23276 reference "tab:Table-using-user-defined"
23280 use the \SpecialChar LaTeX
23284 \begin_layout Standard
23290 \begin_layout Standard
23291 for the first column and the multicolumn,
23294 \begin_layout Standard
23300 \begin_layout Standard
23301 for the last column, and
23304 \begin_layout Standard
23310 \begin_layout Standard
23311 for the cells in the second column.
23314 \begin_layout Standard
23315 \begin_inset Float table
23322 \begin_layout Plain Layout
23323 \begin_inset Caption Standard
23325 \begin_layout Plain Layout
23326 \begin_inset CommandInset label
23328 name "tab:Table-using-user-defined"
23332 Table using user-defined table formats
23340 \begin_layout Plain Layout
23342 \begin_inset Tabular
23343 <lyxtabular version="3" rows="3" columns="4">
23344 <features tabularvalignment="middle">
23345 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
23346 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
23347 <column alignment="center" valignment="middle">
23348 <column alignment="center" valignment="middle" special="K{red}">
23350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23353 \begin_layout Plain Layout
23354 verylongtablecellword
23359 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
23362 \begin_layout Plain Layout
23363 multiple lines multicolumn
23368 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23371 \begin_layout Plain Layout
23377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23380 \begin_layout Plain Layout
23388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23391 \begin_layout Plain Layout
23397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23400 \begin_layout Plain Layout
23406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23409 \begin_layout Plain Layout
23415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23418 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23429 \begin_layout Plain Layout
23435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23438 \begin_layout Plain Layout
23444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23447 \begin_layout Plain Layout
23453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23456 \begin_layout Plain Layout
23475 \begin_layout Subsection
23477 \begin_inset CommandInset label
23479 name "subsec:Line-Thickness"
23484 \begin_inset Index idx
23487 \begin_layout Plain Layout
23488 Table Customization ! Line Thickness
23496 \begin_layout Standard
23497 The line thickness for all lines in a table can be adjusted with the length
23505 To set for example a line thickness of 1.5
23506 \begin_inset space \thinspace{}
23510 \begin_inset space ~
23514 \begin_inset CommandInset ref
23516 reference "tab:Table-with-1.5"
23520 , insert the command
23523 \begin_layout Standard
23530 arrayrulewidth}{1.5pt}
23533 \begin_layout Standard
23534 in \SpecialChar TeX
23535 Code before the table or table float.
23536 The changed thickness is valid for all subsequent tables.
23537 To use the default value again, set
23544 \begin_inset space \thinspace{}
23547 pt in \SpecialChar TeX
23548 Code after the table or table float.
23551 \begin_layout Standard
23555 \begin_layout Plain Layout
23561 arrayrulewidth}{1.5pt}
23567 \begin_inset Float table
23574 \begin_layout Plain Layout
23575 \begin_inset Caption Standard
23577 \begin_layout Plain Layout
23578 \begin_inset CommandInset label
23580 name "tab:Table-with-1.5"
23585 \begin_inset space \thinspace{}
23596 \begin_layout Plain Layout
23598 \begin_inset Tabular
23599 <lyxtabular version="3" rows="3" columns="3">
23600 <features tabularvalignment="middle">
23601 <column alignment="center" valignment="top">
23602 <column alignment="center" valignment="top">
23603 <column alignment="center" valignment="top">
23605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23608 \begin_layout Plain Layout
23614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23617 \begin_layout Plain Layout
23623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23626 \begin_layout Plain Layout
23634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23637 \begin_layout Plain Layout
23643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23646 \begin_layout Plain Layout
23652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23655 \begin_layout Plain Layout
23663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23666 \begin_layout Plain Layout
23672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23675 \begin_layout Plain Layout
23681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23684 \begin_layout Plain Layout
23704 \begin_layout Plain Layout
23710 arrayrulewidth}{0.4pt}
23718 \begin_layout Standard
23719 \begin_inset VSpace bigskip
23722 To set the line thickness to 1.5
23723 \begin_inset space \thinspace{}
23726 pt only for horizontal lines, as in Table
23727 \begin_inset space ~
23731 \begin_inset CommandInset ref
23733 reference "tab:Table-with-horizontal"
23737 , insert these commands in \SpecialChar TeX
23738 Code before the table or table float:
23741 \begin_layout Standard
23751 \begin_inset Newline newline
23759 \begin_inset Newline newline
23768 arrayrulewidth 1.5pt}
23769 \begin_inset Newline newline
23780 arrayrulewidth 0.4pt}}
23783 \begin_layout Standard
23784 To return to the default line thickness, insert this command in \SpecialChar TeX
23786 the table or table float:
23789 \begin_layout Standard
23801 \begin_layout Standard
23805 \begin_layout Plain Layout
23816 \begin_layout Plain Layout
23825 \begin_layout Plain Layout
23833 arrayrulewidth 1.5pt}
23836 \begin_layout Plain Layout
23846 arrayrulewidth 0.4pt}}
23852 \begin_inset Float table
23859 \begin_layout Plain Layout
23860 \begin_inset Caption Standard
23862 \begin_layout Plain Layout
23863 \begin_inset CommandInset label
23865 name "tab:Table-with-horizontal"
23870 \begin_inset space \thinspace{}
23873 pt thick horizontal lines
23881 \begin_layout Plain Layout
23883 \begin_inset Tabular
23884 <lyxtabular version="3" rows="3" columns="3">
23885 <features tabularvalignment="middle">
23886 <column alignment="center" valignment="top">
23887 <column alignment="center" valignment="top">
23888 <column alignment="center" valignment="top">
23890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23893 \begin_layout Plain Layout
23899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23902 \begin_layout Plain Layout
23908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23911 \begin_layout Plain Layout
23919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23922 \begin_layout Plain Layout
23928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23931 \begin_layout Plain Layout
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23940 \begin_layout Plain Layout
23948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23951 \begin_layout Plain Layout
23957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23960 \begin_layout Plain Layout
23966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23969 \begin_layout Plain Layout
23989 \begin_layout Plain Layout
24005 \begin_layout Standard
24006 \begin_inset VSpace bigskip
24009 To set the line thickness to 1.5
24010 \begin_inset space \thinspace{}
24013 pt only for vertical lines, create the following column format in the document
24014 preamble, according to the description in section
24015 \begin_inset space ~
24019 \begin_inset CommandInset ref
24021 reference "subsec:Customized-Format"
24028 \begin_layout Standard
24033 newcolumntype{V}{!{
24035 vrule width 1.5pt}}
24038 \begin_layout Standard
24040 \begin_inset space ~
24044 \begin_inset CommandInset ref
24046 reference "tab:Table-with-vertical"
24050 the \SpecialChar LaTeX
24054 \begin_layout Standard
24060 \begin_layout Standard
24061 was used for the last column and
24064 \begin_layout Standard
24070 \begin_layout Standard
24071 for the other columns.
24074 \begin_layout Standard
24075 \begin_inset Float table
24082 \begin_layout Plain Layout
24083 \begin_inset Caption Standard
24085 \begin_layout Plain Layout
24086 \begin_inset CommandInset label
24088 name "tab:Table-with-vertical"
24093 \begin_inset space \thinspace{}
24096 pt thick vertical lines
24104 \begin_layout Plain Layout
24106 \begin_inset Tabular
24107 <lyxtabular version="3" rows="3" columns="3">
24108 <features tabularvalignment="middle">
24109 <column alignment="center" valignment="top" special="Vc">
24110 <column alignment="center" valignment="top" special="Vc">
24111 <column alignment="center" valignment="top" special="VcV">
24113 <cell alignment="center" valignment="top" topline="true" usebox="none">
24116 \begin_layout Plain Layout
24122 <cell alignment="center" valignment="top" topline="true" usebox="none">
24125 \begin_layout Plain Layout
24131 <cell alignment="center" valignment="top" topline="true" usebox="none">
24134 \begin_layout Plain Layout
24142 <cell alignment="center" valignment="top" topline="true" usebox="none">
24145 \begin_layout Plain Layout
24151 <cell alignment="center" valignment="top" topline="true" usebox="none">
24154 \begin_layout Plain Layout
24160 <cell alignment="center" valignment="top" topline="true" usebox="none">
24163 \begin_layout Plain Layout
24171 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24174 \begin_layout Plain Layout
24180 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24183 \begin_layout Plain Layout
24189 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24192 \begin_layout Plain Layout
24211 \begin_layout Subsection
24213 \begin_inset Index idx
24216 \begin_layout Plain Layout
24217 Table Customization ! Dashed Lines
24225 \begin_layout Standard
24229 \begin_layout Plain Layout
24239 \begin_inset Note Note
24242 \begin_layout Plain Layout
24243 The following section will only be displayed when the \SpecialChar LaTeX
24256 \begin_layout Standard
24257 \begin_inset Float table
24264 \begin_layout Plain Layout
24265 \begin_inset Caption Standard
24267 \begin_layout Plain Layout
24268 \begin_inset CommandInset label
24270 name "tab:Table-with-dashed"
24274 Table with dashed lines
24282 \begin_layout Plain Layout
24284 \begin_inset Tabular
24285 <lyxtabular version="3" rows="5" columns="5">
24286 <features tabularvalignment="middle">
24287 <column alignment="center" valignment="top">
24288 <column alignment="center" valignment="top">
24289 <column alignment="center" valignment="top" special=":c">
24290 <column alignment="center" valignment="top">
24291 <column alignment="center" valignment="top">
24293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24296 \begin_layout Plain Layout
24302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24305 \begin_layout Plain Layout
24311 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24314 \begin_layout Plain Layout
24320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24323 \begin_layout Plain Layout
24329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24332 \begin_layout Plain Layout
24340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24343 \begin_layout Plain Layout
24349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24352 \begin_layout Plain Layout
24358 <cell alignment="center" valignment="top" topline="true" usebox="none">
24361 \begin_layout Plain Layout
24367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24370 \begin_layout Plain Layout
24376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24379 \begin_layout Plain Layout
24387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24390 \begin_layout Plain Layout
24394 \begin_layout Plain Layout
24408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24411 \begin_layout Plain Layout
24417 <cell alignment="center" valignment="top" usebox="none">
24420 \begin_layout Plain Layout
24426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24429 \begin_layout Plain Layout
24435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24438 \begin_layout Plain Layout
24446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24449 \begin_layout Plain Layout
24453 \begin_layout Plain Layout
24467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24470 \begin_layout Plain Layout
24476 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24479 \begin_layout Plain Layout
24485 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24488 \begin_layout Plain Layout
24494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24497 \begin_layout Plain Layout
24505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24508 \begin_layout Plain Layout
24514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24517 \begin_layout Plain Layout
24523 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24526 \begin_layout Plain Layout
24532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24535 \begin_layout Plain Layout
24541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24544 \begin_layout Plain Layout
24563 \begin_layout Standard
24565 does not natively support dashed lines, so you have to use \SpecialChar TeX
24567 As a prerequisite the \SpecialChar LaTeX
24573 \begin_inset Index idx
24576 \begin_layout Plain Layout
24578 -packages ! arydshln
24583 must be loaded in the document preamble with the command
24586 \begin_layout Standard
24591 usepackage{arydshln}
24594 \begin_layout Standard
24595 To make a vertical line dashed, enter the colon
24596 \begin_inset Quotes eld
24600 \begin_inset Quotes erd
24603 together with the character for the horizontal alignment as \SpecialChar LaTeX
24605 the table cell dialog.
24608 \begin_layout Standard
24609 For a horizontal dashed line add the command
24612 \begin_layout Standard
24620 \begin_layout Standard
24621 in \SpecialChar TeX
24622 Code as first element of the first cell in the table row.
24625 \begin_layout Standard
24626 For dashed multicolumn lines use the command
24629 \begin_layout Standard
24634 cdashline{line number
24639 \begin_layout Standard
24640 in \SpecialChar TeX
24641 Code as the first element of the first cell in the table row.
24642 If you have for example a multicolumn spanning columns 2 to 4 and you want
24643 to have a dashed line above, add the command
24646 \begin_layout Standard
24654 \begin_layout Standard
24655 as the first element of the first cell in the row of the multicolumn.
24658 \begin_layout Standard
24659 \begin_inset VSpace bigskip
24665 \begin_layout Standard
24667 \begin_inset space ~
24671 \begin_inset CommandInset ref
24673 reference "tab:Table-with-dashed"
24678 \begin_inset Quotes eld
24686 \begin_inset Quotes erd
24689 as \SpecialChar LaTeX
24690 argument of the third column.
24691 The \SpecialChar TeX
24698 was inserted in the first cell of the third row and the \SpecialChar TeX
24700 \begin_inset Newline newline
24709 was inserted in the first cell of the fourth row.
24712 \begin_layout Standard
24713 \begin_inset VSpace bigskip
24719 \begin_layout Standard
24720 Tables with dashed lines can also be colored as shown by Table
24721 \begin_inset space ~
24725 \begin_inset CommandInset ref
24727 reference "tab:Colored-table-with"
24734 \begin_layout Standard
24738 \begin_layout Plain Layout
24744 arrayrulewidth}{1pt}
24750 \begin_inset Note Note
24753 \begin_layout Plain Layout
24754 thicker lines for better visualization of the line color
24762 \begin_layout Standard
24766 \begin_layout Plain Layout
24770 dashgapcolor{green}
24776 \begin_inset Note Note
24779 \begin_layout Plain Layout
24780 color gaps between dashes green
24788 \begin_layout Standard
24792 \begin_layout Plain Layout
24803 \begin_layout Plain Layout
24812 \begin_layout Plain Layout
24816 arrayrulecolor{red}
24820 arrayrulecolor{black}}
24826 \begin_inset Note Note
24829 \begin_layout Plain Layout
24830 color horizontal, dashed lines red
24838 \begin_layout Standard
24842 \begin_layout Plain Layout
24853 \begin_layout Plain Layout
24862 \begin_layout Plain Layout
24866 arrayrulecolor{yellow}
24870 arrayrulecolor{black}}
24876 \begin_inset Note Note
24879 \begin_layout Plain Layout
24880 color partial horizontal, dashed lines yellow
24888 \begin_layout Standard
24889 \begin_inset Float table
24896 \begin_layout Plain Layout
24897 \begin_inset Caption Standard
24899 \begin_layout Plain Layout
24900 \begin_inset CommandInset label
24902 name "tab:Colored-table-with"
24906 Colored table with dashed lines
24914 \begin_layout Plain Layout
24916 \begin_inset Tabular
24917 <lyxtabular version="3" rows="5" columns="5">
24918 <features tabularvalignment="middle">
24919 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24920 <column alignment="center" valignment="top" width="0pt">
24921 <column alignment="center" valignment="top" width="0pt" special=":c">
24922 <column alignment="center" valignment="top">
24923 <column alignment="center" valignment="top">
24925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24928 \begin_layout Plain Layout
24934 <cell alignment="center" valignment="top" topline="true" usebox="none">
24937 \begin_layout Plain Layout
24943 <cell alignment="center" valignment="top" topline="true" usebox="none">
24946 \begin_layout Plain Layout
24952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24955 \begin_layout Plain Layout
24961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24964 \begin_layout Plain Layout
24972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24975 \begin_layout Plain Layout
24981 <cell alignment="center" valignment="top" topline="true" usebox="none">
24984 \begin_layout Plain Layout
24990 <cell alignment="center" valignment="top" topline="true" usebox="none">
24993 \begin_layout Plain Layout
24999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25002 \begin_layout Plain Layout
25008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25011 \begin_layout Plain Layout
25019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
25022 \begin_layout Plain Layout
25026 \begin_layout Plain Layout
25039 \begin_layout Plain Layout
25053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
25056 \begin_layout Plain Layout
25062 <cell alignment="center" valignment="top" usebox="none">
25065 \begin_layout Plain Layout
25071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
25074 \begin_layout Plain Layout
25080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
25083 \begin_layout Plain Layout
25091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25094 \begin_layout Plain Layout
25098 \begin_layout Plain Layout
25112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25115 \begin_layout Plain Layout
25121 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
25124 \begin_layout Plain Layout
25130 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
25133 \begin_layout Plain Layout
25139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25142 \begin_layout Plain Layout
25150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25153 \begin_layout Plain Layout
25159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25162 \begin_layout Plain Layout
25168 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
25171 \begin_layout Plain Layout
25177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25180 \begin_layout Plain Layout
25186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25189 \begin_layout Plain Layout
25193 \begin_layout Plain Layout
25220 \begin_layout Standard
25224 \begin_layout Plain Layout
25238 \begin_inset Note Note
25241 \begin_layout Plain Layout
25250 \begin_layout Standard
25254 \begin_layout Plain Layout
25268 \begin_inset Note Note
25271 \begin_layout Plain Layout
25280 \begin_layout Standard
25284 \begin_layout Plain Layout
25294 \begin_inset Note Note
25297 \begin_layout Plain Layout
25306 \begin_layout Standard
25310 \begin_layout Plain Layout
25316 arrayrulewidth}{0.4pt}
25322 \begin_inset Note Note
25325 \begin_layout Plain Layout
25334 \begin_layout Standard
25335 The coloring of lines, columns and lines works as decribed in section
25336 \begin_inset space ~
25340 \begin_inset CommandInset ref
25342 reference "sec:Colored-Tables"
25347 Coloring horizontal lines works analogically as described there as well,
25348 one only needs to replace in the commands
25372 ; so one uses the command
25375 \begin_layout Standard
25385 \begin_inset Newline newline
25393 \begin_inset Newline newline
25397 \begin_inset Phantom HPhantom
25400 \begin_layout Plain Layout
25401 \begin_inset space ~
25411 arrayrulecolor{red}
25415 arrayrulecolor{black}}
25418 \begin_layout Standard
25428 \begin_layout Standard
25438 \begin_inset Newline newline
25446 \begin_inset Newline newline
25450 \begin_inset Phantom HPhantom
25453 \begin_layout Plain Layout
25454 \begin_inset space ~
25464 arrayrulecolor{red}
25468 arrayrulecolor{black}}
25471 \begin_layout Standard
25472 To get back the black line color, one needs to insert the following commands
25473 as \SpecialChar TeX
25474 Code behind the table:
25477 \begin_layout Standard
25485 \begin_layout Standard
25497 \begin_layout Standard
25505 \begin_layout Standard
25517 \begin_layout Standard
25518 To color the gaps between the dashes the command
25521 \begin_layout Standard
25526 dashgapcolor{color}
25529 \begin_layout Standard
25530 can be used in front of a table as \SpecialChar TeX
25532 color is hereby the name of a defined color.
25536 \begin_layout Standard
25544 \begin_layout Standard
25545 unsets the changes made by
25554 \begin_layout Standard
25555 \begin_inset Note Greyedout
25558 \begin_layout Plain Layout
25564 : If there are multiple commands in a cell, the command of
25568 needs to be the first one in the cell.
25574 \begin_inset space ~
25578 \begin_inset CommandInset ref
25580 reference "tab:Colored-table-with"
25604 \begin_layout Standard
25605 \begin_inset Note Greyedout
25608 \begin_layout Plain Layout
25614 The \SpecialChar LaTeX
25619 must be loaded in the document preamble before the \SpecialChar LaTeX
25625 \begin_inset Index idx
25628 \begin_layout Plain Layout
25630 -packages ! colortbl
25643 \begin_layout Standard
25647 \begin_layout Plain Layout
25657 \begin_inset Note Note
25660 \begin_layout Plain Layout
25661 The following will be displayed when the \SpecialChar LaTeX
25674 \begin_layout Standard
25675 You need to install the package
25679 to see the content of this section in the output.
25682 \begin_layout Standard
25686 \begin_layout Plain Layout
25698 \begin_layout Standard
25699 For more information about dashed lines see the documentation of
25704 \begin_inset CommandInset citation
25714 \begin_layout Chapter
25716 \begin_inset CommandInset label
25723 \begin_inset Index idx
25726 \begin_layout Plain Layout
25735 \begin_layout Section
25737 \begin_inset CommandInset label
25739 name "sec:FloatIntroduction"
25744 \begin_inset Index idx
25747 \begin_layout Plain Layout
25748 Floats ! Introduction
25756 \begin_layout Standard
25757 A float is a block of text associated with some sort of label, which doesn't
25758 have a fixed location.
25760 \begin_inset Quotes eld
25764 \begin_inset Quotes erd
25767 forward or backward a page or two, to wherever it fits best.
25775 \begin_inset space ~
25780 are also floats because they can float to the next page when there are
25781 too many notes on the page.
25784 \begin_layout Standard
25785 Floats allow a high quality layout.
25786 Images and tables can be spread evenly among the pages to avoid white space
25787 and pages without text.
25788 As the floating often destroys the context between the text and the image/table
25789 , every float can be referenced in the text.
25790 Floats are therefore numbered.
25791 Referencing is described in section
25792 \begin_inset space ~
25796 \begin_inset CommandInset ref
25798 reference "sec:Referencing-Floats"
25805 \begin_layout Standard
25806 To insert a float, use the menu
25808 Insert\SpecialChar menuseparator
25814 arg "float-insert figure"
25820 arg "float-insert table"
25828 inset, a box with a label.
25829 The label will automatically be translated to the document language in
25831 After the label you can insert the caption text.
25832 The image or table is inserted above or below the caption in a separate
25833 paragraph within the float.
25834 More about the caption placement is contained in section
25835 \begin_inset space ~
25839 \begin_inset CommandInset ref
25841 reference "sec:Caption-Placement"
25846 To keep your \SpecialChar LyX
25847 document readable, you can open and close the float box by
25848 left-clicking on the box label.
25849 A closed float box looks like this:
25850 \begin_inset Graphics
25851 filename clipart/float.png
25853 scaleBeforeRotation
25857 – a gray button with a red label.
25860 \begin_layout Standard
25861 It is recommended that you insert floats as separate standard paragraphs
25862 to avoid possible \SpecialChar LaTeX
25863 -errors that can occur when the surrounding text is specially
25867 \begin_layout Standard
25868 Existing figures or tables can be put into a float by highlighting them
25869 and then pressing the corresponding toolbar button for a new float.
25872 \begin_layout Section
25876 \begin_layout Standard
25877 Besides figure and table floats that are described in sections
25878 \begin_inset space ~
25882 \begin_inset CommandInset ref
25884 reference "sec:Figure-Floats"
25889 \begin_inset CommandInset ref
25891 reference "sec:Table-Floats"
25895 respectively, \SpecialChar LyX
25896 offers the float types
25905 The latter are explained in sec.
25906 \begin_inset space \thinspace{}
25910 \begin_inset CommandInset ref
25912 reference "sec:Wrap-Floats"
25919 \begin_layout Subsection
25921 \begin_inset Index idx
25924 \begin_layout Plain Layout
25925 Floats ! Algorithms
25933 \begin_layout Standard
25934 \begin_inset Float algorithm
25941 \begin_layout Plain Layout
25942 \begin_inset Caption Standard
25944 \begin_layout Plain Layout
25945 \begin_inset CommandInset label
25947 name "alg:Example-Algorithm-float"
25951 Example Algorithm float
25959 \begin_layout LyX-Code
25961 \begin_inset Newline newline
25964 Sum := Sum + A(I); /* comment */
25965 \begin_inset Newline newline
25969 \begin_inset VSpace -4mm
25980 \begin_layout Standard
25981 This float type is inserted with the menu
25983 Insert\SpecialChar menuseparator
25984 Float\SpecialChar menuseparator
25988 It is used for program codes and descriptions of algorithms and can be
25989 seen as an alternative to program code listings that are explained in chapter
25990 \begin_inset space ~
25994 \begin_inset CommandInset ref
25996 reference "cha:Program-Code-Listings"
26001 A possible environment for algorithms is the
26006 , described in \SpecialChar LyX
26013 \begin_inset space ~
26017 \begin_inset CommandInset ref
26019 reference "alg:Example-Algorithm-float"
26023 is an example of an algorithm float where -4
26024 \begin_inset space \thinspace{}
26027 mm vertical space was added at the end of the float to have the bottom rule
26028 exactly below the last text line.
26031 \begin_layout Standard
26032 The float label is not automatically translated into the document language.
26033 If your document is not in English, you have to do this manually by adding
26034 the following line to the document preamble
26039 \begin_layout Standard
26044 floatname{algorithm}{your
26045 \begin_inset space ~
26051 \begin_layout Standard
26055 \begin_inset space ~
26061 \begin_inset Quotes eld
26069 \begin_inset Quotes erd
26075 \begin_layout Standard
26076 To insert the list of algorithms you can use the menu
26078 Insert\SpecialChar menuseparator
26080 \begin_inset space \thinspace{}
26084 \begin_inset space \thinspace{}
26087 TOC\SpecialChar menuseparator
26090 when your document has the same language as \SpecialChar LyX
26092 In other cases use this command in \SpecialChar TeX
26096 \begin_layout Standard
26101 listof{algorithm}{your
26102 \begin_inset space ~
26108 \begin_layout Standard
26112 \begin_inset space ~
26118 \begin_inset Quotes eld
26126 \begin_inset Quotes erd
26132 \begin_layout Standard
26133 Algorithm floats are not by default numbered in the scheme
26134 \begin_inset Quotes eld
26138 \begin_inset Quotes erd
26141 as is the case for table and figure floats in many document-classes.
26142 To number algorithm floats in the same scheme, add this command to your
26146 \begin_layout Standard
26151 numberwithin{algorithm}{chapter}
26154 \begin_layout Standard
26155 To be able to use the command
26164 \begin_inset space ~
26169 in the document settings the option
26172 \begin_inset space ~
26176 \begin_inset space ~
26180 \begin_inset space ~
26188 \begin_layout Section
26190 \begin_inset Index idx
26193 \begin_layout Plain Layout
26202 \begin_layout Standard
26203 Floats are usually numbered either independently from the sections the floats
26204 are in, or in the scheme
26205 \begin_inset Quotes eld
26209 \begin_inset Quotes erd
26213 \begin_inset Quotes eld
26217 \begin_inset Quotes erd
26221 This depends on the document class used.
26224 \begin_layout Standard
26225 To change section-independent numbering, you can use this command in the
26229 \begin_layout Standard
26241 \begin_layout Standard
26248 is the command that prints the table number.
26249 For figure floats, the command would be
26262 in the command above prints the table number as a small roman number.
26265 \begin_layout Standard
26266 To change the numbering scheme for example to
26267 \begin_inset Quotes eld
26271 \begin_inset Quotes erd
26274 , use this command in the preamble:
26277 \begin_layout Standard
26282 numberwithin{table}{subsection}
26285 \begin_layout Standard
26286 To be able to use the command
26295 \begin_inset space ~
26300 in the document settings the option
26303 \begin_inset space ~
26307 \begin_inset space ~
26311 \begin_inset space ~
26319 \begin_layout Standard
26320 Please also have a look at section
26321 \begin_inset space ~
26325 \begin_inset CommandInset ref
26327 reference "subsec:Footnote-Numbering"
26331 for the details and important notes about the numbering commands.
26334 \begin_layout Section
26336 \begin_inset CommandInset label
26338 name "sec:Referencing-Floats"
26343 \begin_inset Index idx
26346 \begin_layout Plain Layout
26347 Floats ! References
26353 \begin_inset Index idx
26356 \begin_layout Plain Layout
26357 References ! to Floats
26365 \begin_layout Standard
26366 To reference a float, insert a label into its caption using the menu
26368 Insert\SpecialChar menuseparator
26371 or the toolbar button
26378 A grey label box like this one:
26379 \begin_inset Graphics
26380 filename clipart/label.png
26381 scaleBeforeRotation
26385 will be inserted and the label window pops up asking for the label text.
26387 offers as text the first words of the caption with a prefix.
26388 The prefix depends on the float type, e.
26389 \begin_inset space \thinspace{}
26393 \begin_inset space \space{}
26396 for figure floats the prefix will be "
26403 \begin_layout Standard
26404 The label is used as anchor and name for the reference.
26405 You can refer to the label using the menu
26407 Insert\SpecialChar menuseparator
26410 or the toolbar button
26413 arg "dialog-show-new-inset ref"
26417 The cross-reference window appears showing all labels of the document.
26418 If you have multiple \SpecialChar LyX
26419 documents opened, choose the one you are working
26420 on from the drop-list at the top of the dialog.
26421 You can now sort the labels alphabetically and then choose one.
26422 A grey cross-reference box like this one:
26423 \begin_inset Graphics
26424 filename clipart/reference.png
26425 scaleBeforeRotation
26430 At the position of the cross-reference box the float number will appear
26434 \begin_layout Standard
26435 It is recommended that you use a protected space between the cross-reference
26436 name and its number to avoid line breaks between them.
26437 If a cross-reference refers to a non-existing label, you will see two question
26438 marks in the output instead of the reference.
26441 \begin_layout Standard
26442 You can change labels at any time by clicking on the label box.
26443 References to the changed label will automatically update their links to
26444 the new label text.
26447 \begin_layout Standard
26451 \begin_inset space ~
26455 \begin_inset space ~
26460 in the cross-reference window sets the cursor before the referred label.
26461 The button text changes then to Go
26462 \begin_inset space ~
26465 Back and you can use it to set the cursor back to the cross-reference.
26468 \begin_layout Subsection
26469 Cross-Reference Formats
26470 \begin_inset CommandInset label
26472 name "subsec:Cross-Reference-Formats"
26477 \begin_inset Index idx
26480 \begin_layout Plain Layout
26481 References ! Formats
26489 \begin_layout Standard
26490 There are six varieties of cross-references:
26493 \begin_layout Description
26494 <reference>: prints the float number, this is the default:
26495 \begin_inset CommandInset ref
26497 reference "fig:Two-distorted-images"
26504 \begin_layout Description
26505 (<reference>): prints the float number within two parentheses, this is the
26506 style normally used to reference formulas, especially when the reference
26508 \begin_inset Quotes eld
26512 \begin_inset Quotes erd
26516 \begin_inset CommandInset ref
26525 \begin_layout Description
26526 <page>: prints the page number: Page
26527 \begin_inset space ~
26531 \begin_inset CommandInset ref
26532 LatexCommand pageref
26533 reference "fig:Two-distorted-images"
26540 \begin_layout Description
26542 \begin_inset space ~
26546 \begin_inset space ~
26549 <page>: prints the text "on page" and the page number:
26550 \begin_inset CommandInset ref
26551 LatexCommand vpageref
26552 reference "fig:Two-distorted-images"
26559 \begin_layout Description
26561 \begin_inset space ~
26565 \begin_inset space ~
26569 \begin_inset space ~
26572 <page>: prints the float number, the text "on page", and the page number:
26574 \begin_inset CommandInset ref
26576 reference "fig:Two-distorted-images"
26583 \begin_layout Description
26585 \begin_inset space ~
26588 reference: prints a self-defined cross-reference format.
26589 \begin_inset Newline newline
26593 \begin_inset Note Greyedout
26596 \begin_layout Plain Layout
26601 This feature is only available when you have the \SpecialChar LaTeX
26611 \begin_inset Index idx
26614 \begin_layout Plain Layout
26616 -packages ! prettyref
26622 \begin_inset Index idx
26625 \begin_layout Plain Layout
26627 -packages ! refstyle
26638 \begin_inset Newline newline
26641 You can select which \SpecialChar LaTeX
26642 -package should be used for this feature by setting
26645 Use refstyle (not prettyref) for cross-references
26649 Document\SpecialChar menuseparator
26650 Settings\SpecialChar menuseparator
26654 The format is specified by adding the command
26666 (refstyle) to the preamble of the document.
26667 For example redefining all references to figures (which have the label
26669 \begin_inset Quotes eld
26677 \begin_inset Quotes erd
26680 ) can be done with this command
26681 \begin_inset Newline newline
26688 newref{fig}{refcmd={Image on page
26693 \begin_inset Newline newline
26696 For more information about the format, have a look at the package documentations
26698 \begin_inset CommandInset citation
26700 key "prettyref,refstyle"
26706 \begin_inset Newline newline
26717 are only available if you use the \SpecialChar LaTeX
26732 \begin_inset space \thinspace{}
26736 \begin_inset space \space{}
26740 \begin_inset Quotes eld
26744 \begin_inset Quotes erd
26751 outputs the name capitalized, e.
26752 \begin_inset space \thinspace{}
26756 \begin_inset space \space{}
26760 \begin_inset Quotes eld
26764 \begin_inset Quotes erd
26768 Both options can be combined to get e.
26769 \begin_inset space \thinspace{}
26773 \begin_inset space \space{}
26777 \begin_inset Quotes eld
26781 \begin_inset Quotes erd
26787 \begin_layout Description
26789 \begin_inset space ~
26792 reference: prints the caption of the reference:
26793 \begin_inset CommandInset ref
26794 LatexCommand nameref
26795 reference "fig:Two-distorted-images"
26802 \begin_layout Description
26804 \begin_inset space ~
26807 only: prints only the \SpecialChar LaTeX
26808 label for the reference:
26809 \begin_inset CommandInset ref
26810 LatexCommand labelonly
26811 reference "fig:Two-distorted-images"
26819 \begin_inset Newline newline
26822 This allows to use the label for commands in \SpecialChar TeX
26828 one can omit the prefix of the label name:
26829 \begin_inset CommandInset ref
26830 LatexCommand labelonly
26831 reference "fig:Two-distorted-images"
26841 \begin_layout Standard
26846 will not print the page number if the label is on the previous, the same,
26849 \begin_inset space \thinspace{}
26853 \begin_inset space \space{}
26857 \begin_inset Quotes eld
26865 \begin_inset Quotes erd
26871 <reference> on page <page>
26873 will not print anything about the page if the label is on the same page.
26876 \begin_layout Standard
26877 The number and current page of the part of the document referred to in the
26878 output is automatically calculated by \SpecialChar LaTeX
26880 The varieties are adjusted in the field
26884 of the cross-reference window that appears when you click on the cross-referenc
26888 \begin_layout Standard
26889 \begin_inset Note Greyedout
26892 \begin_layout Plain Layout
26897 It is recommended to use the \SpecialChar LaTeX
26903 \begin_inset Index idx
26906 \begin_layout Plain Layout
26908 -packages ! refstyle
26918 \begin_inset Index idx
26921 \begin_layout Plain Layout
26923 -packages ! prettyref
26928 does not know all of \SpecialChar LyX
26929 's possible label shortcuts
26933 \begin_layout Plain Layout
26934 \begin_inset Quotes eld
26938 \begin_inset Quotes erd
26941 is for example \SpecialChar LyX
26942 's shortcut for labels in figure captions.
26947 and is not internationalized.
26955 \begin_layout Subsection
26956 Automatic Reference Naming
26957 \begin_inset Index idx
26960 \begin_layout Plain Layout
26961 References ! Automatic Reference Naming
26969 \begin_layout Standard
26970 The \SpecialChar LaTeX
26976 \begin_inset Index idx
26979 \begin_layout Plain Layout
26981 -packages ! hyperref
26986 , that is enabled in the
26994 dialog, provides a very useful feature that cross-references automatically
26995 include the name of the referenced floats (or text parts like
27000 So you will save having to write e.
27001 \begin_inset space \thinspace{}
27005 \begin_inset space \space{}
27009 \begin_inset Quotes eld
27013 \begin_inset Quotes erd
27016 before every reference to a figure.
27017 To use this feature, enable
27021 and insert this line to the \SpecialChar LaTeX
27025 \begin_layout Standard
27041 \begin_layout Standard
27042 When you prefer other reference names than the default ones, for example
27043 you want instead of
27044 \begin_inset Quotes eld
27048 \begin_inset Quotes erd
27052 \begin_inset Quotes eld
27056 \begin_inset space \thinspace{}
27060 \begin_inset Quotes eld
27063 , you can redefine the name by inserting this in the preamble:
27066 \begin_layout Standard
27077 sectionautorefname}
27078 \begin_inset Newline newline
27082 \begin_inset Phantom HPhantom
27085 \begin_layout Plain Layout
27088 \begin_inset space ~
27101 \begin_layout Standard
27102 When you are using another document language than English, replace
27103 \begin_inset Newline newline
27118 , where *** is the name of the language used.
27121 \begin_layout Standard
27122 To get automatic names, but not for certain reference types, for example
27123 not for equations, use this preamble code:
27126 \begin_layout Standard
27137 equationautorefname}[1]{}}
27140 \begin_layout Standard
27141 More about this topic can be found in
27146 \begin_inset CommandInset citation
27156 \begin_layout Standard
27157 \begin_inset Note Greyedout
27160 \begin_layout Plain Layout
27165 Automatic reference naming cannot be used when you use cross-references
27169 \begin_inset space ~
27174 style, as described in section
27175 \begin_inset space ~
27179 \begin_inset CommandInset ref
27181 reference "subsec:Cross-Reference-Formats"
27193 \begin_layout Standard
27198 manual is an example where automatic reference naming is used.
27201 \begin_layout Subsection
27203 \begin_inset CommandInset label
27205 name "subsec:Reference-Position"
27210 \begin_inset Index idx
27213 \begin_layout Plain Layout
27214 References ! Reference Position
27222 \begin_layout Standard
27228 \begin_inset Index idx
27231 \begin_layout Plain Layout
27233 -packages ! hyperref
27246 dialog to link cross-references in the output, you will see that clicking
27247 on an image float reference jumps to the image label.
27248 The caption will be the first text part on the screen, so that you cannot
27249 see the image without scrolling.
27250 This is because the reference link anchor is placed at the position of
27252 With the use of the package
27257 \begin_inset Index idx
27260 \begin_layout Plain Layout
27267 , which is part of the \SpecialChar LaTeX
27273 \begin_inset Index idx
27276 \begin_layout Plain Layout
27278 -packages ! oberdiek
27283 , the link anchor is placed at the beginning of a float.
27284 To use this feature for figure floats, load
27288 in the document preamble with the line
27291 \begin_layout Standard
27296 usepackage[figure]{hypcap}
27299 \begin_layout Standard
27304 for all float types but this is not recommended for stability reasons.
27305 For more information, have a look at
27310 \begin_inset CommandInset citation
27320 \begin_layout Standard
27321 \begin_inset Note Greyedout
27324 \begin_layout Plain Layout
27333 has no effect on references to subfigures.
27341 \begin_layout Section
27343 \change_deleted -712698321 1526031763
27345 \change_inserted -712698321 1526031765
27349 \begin_inset CommandInset label
27351 name "sec:Float-Settings"
27356 \begin_inset Index idx
27359 \begin_layout Plain Layout
27361 \change_deleted -712698321 1526031841
27363 \change_inserted -712698321 1526031842
27374 \begin_layout Standard
27376 \change_inserted -712698321 1526033385
27377 Float Settings can be adjusted at two places in \SpecialChar LyX
27379 \change_inserted 630872221 1622709604
27381 \change_deleted 630872221 1622709603
27383 \change_inserted -712698321 1526033385
27386 Document\SpecialChar menuseparator
27387 Settings\SpecialChar ldots
27388 \SpecialChar menuseparator
27391 , you can set some options that are used by default for all floats of the
27392 document (placement on page and alignment of contents), unless you modify
27393 the local settings of a float.
27398 \begin_layout Standard
27400 \change_inserted -712698321 1526032513
27401 The latter can be done by
27402 \change_deleted -712698321 1526032513
27404 \change_inserted -712698321 1526032513
27407 ight-clicking on a float-box and clicking on
27410 \change_inserted -712698321 1526033387
27417 \change_inserted -712698321 1526032520
27420 opens a dialog where you can
27421 \change_inserted -712698321 1526032584
27422 , now only for the given float,
27425 \change_inserted -712698321 1526033452
27429 \change_deleted -712698321 1526033439
27430 options that \SpecialChar LaTeX
27431 uses for positioning the float
27432 \change_inserted -712698321 1526033493
27433 and alignment options, and adapt some other options that are only available
27438 \change_inserted -712698321 1526032658
27439 All these options, both for
27441 Document\SpecialChar menuseparator
27442 Settings\SpecialChar menuseparator
27449 , are described in turn.
27450 \change_deleted -712698321 1526031652
27452 \begin_inset Newline newline
27458 \begin_inset space ~
27463 is only useful for two-column documents: If you select it, the float will
27464 span both columns on the page instead of being confined to just one.
27465 \begin_inset Newline newline
27471 \begin_inset space ~
27476 is used to rotate floats, see section
27477 \begin_inset CommandInset ref
27479 reference "sec:Rotated-Floats"
27488 \begin_layout Subsection
27490 \change_inserted -712698321 1526031775
27492 \begin_inset CommandInset label
27494 name "sec:Float-Placement"
27499 \begin_inset Index idx
27502 \begin_layout Plain Layout
27504 \change_inserted -712698321 1526031775
27517 \begin_layout Standard
27519 \change_inserted -712698321 1526032697
27522 Document\SpecialChar menuseparator
27523 Settings\SpecialChar menuseparator
27531 \change_deleted -712698321 1526032811
27532 You can use one or more of the following options in the float dialog to
27534 \change_inserted -712698321 1526032812
27538 \change_inserted -712698321 1526033558
27539 algorithm that \SpecialChar LaTeX
27540 uses for positioning floats on the page, either
27543 \change_inserted -712698321 1526033535
27546 Document\SpecialChar menuseparator
27547 Settings\SpecialChar menuseparator
27553 \change_inserted -712698321 1526033570
27564 By default, this is set to
27567 \change_inserted -712698321 1526033604
27574 Document\SpecialChar menuseparator
27575 Settings\SpecialChar menuseparator
27578 (meaning that the default placement algorithm of the document class is
27587 dialog (meaning that the settings in
27589 Document\SpecialChar menuseparator
27590 Settings\SpecialChar menuseparator
27593 are used, which are the Class Defaults by default).
27594 If you want to change this,
27595 \change_deleted -712698321 1526033009
27597 \change_inserted -712698321 1526033535
27601 \change_deleted -712698321 1526031920
27603 \change_inserted -712698321 1526033535
27606 Placement Settings:
27611 \change_inserted -712698321 1526033535
27615 \change_deleted -712698321 1526031908
27617 \begin_inset space ~
27621 \begin_inset space ~
27625 \change_inserted -712698321 1526033535
27628 This allows you to select one or more from
27633 \begin_layout Description
27635 \begin_inset space ~
27639 \begin_inset space ~
27642 possible try to place the float on the position where it has been inserted
27643 \change_inserted 630872221 1622713522
27647 \begin_layout Description
27649 \change_inserted 630872221 1622713704
27651 \begin_inset space ~
27654 definitely forces the placement of the float on the position where it has
27660 \begin_layout Description
27662 \begin_inset space ~
27666 \begin_inset space ~
27669 page try to place the float at the top of the current page
27672 \begin_layout Description
27674 \begin_inset space ~
27678 \begin_inset space ~
27681 page try to place the float at the bottom of the current page
27684 \begin_layout Description
27686 \begin_inset space ~
27690 \begin_inset space ~
27693 floats try to place the float on its own page
27696 \begin_layout Standard
27697 The order of the above option is
27701 used by \SpecialChar LaTeX
27703 That means, if you use the default placement, \SpecialChar LaTeX
27707 \begin_inset space ~
27711 \begin_inset space ~
27719 \begin_inset space ~
27723 \begin_inset space ~
27728 , and then the others.
27729 If you do not use the default, \SpecialChar LaTeX
27730 will try only the checked options but in
27733 \begin_inset space ~
27736 placements is possible the procedure is internally repeated trying to put
27737 the float on the following page.
27740 \begin_layout Standard
27741 By default, each option has its own rules:
27744 \begin_layout Labeling
27745 \labelwidthstring 00.00.0000
27749 \begin_inset space ~
27753 \begin_inset space ~
27758 only floats occupying less than 70
27759 \begin_inset space \thinspace{}
27762 % of the page can be placed at the top of a page (
27771 \begin_layout Labeling
27772 \labelwidthstring 00.00.0000
27776 \begin_inset space ~
27780 \begin_inset space ~
27785 : only floats occupying less than 30
27786 \begin_inset space \thinspace{}
27789 % of the page can be placed at the bottom of a page.
27799 \begin_layout Labeling
27800 \labelwidthstring 00.00.0000
27804 \begin_inset space ~
27808 \begin_inset space ~
27813 : only if more than 50
27814 \begin_inset space \thinspace{}
27817 % of the page is occupied by floats, several floats can be set together
27828 \begin_layout Standard
27829 If you don't like these rules, you can ignore them by using the additional
27833 \begin_inset space ~
27838 \begin_inset space ~
27844 \begin_inset Newline newline
27847 You can also redefine the rules with \SpecialChar LaTeX
27848 -commands that are given in parentheses
27849 after the rules description above.
27850 To increase for example the often too small default of the bottom-rule
27852 \begin_inset space \thinspace{}
27855 % of the page, add this line to your document preamble:
27858 \begin_layout Standard
27865 bottomfraction}{0.5}
27868 \begin_layout Standard
27869 Sometimes you might need, under all circumstances, a float to be placed
27870 exactly at the position where it is inserted.
27871 For this case you can use the option
27874 \begin_inset space ~
27880 Use this option very rarely and only if the document is almost ready to
27881 be printed, because the float is then no longer able to
27882 \begin_inset Quotes eld
27886 \begin_inset Quotes erd
27889 when you change your document and this will often destroy the page layout.
27892 \begin_layout Standard
27893 There are no placement options for text wrap floats, because they are always
27894 surrounded by the text of a certain paragraph.
27895 \begin_inset VSpace bigskip
27901 \begin_layout Standard
27902 Sometimes you have the problem that a float is placed at the top of a page
27903 while its corresponding section starts at the middle of the page, so that
27904 the reader could think the float is part of the previous section.
27905 To avoid this the \SpecialChar LaTeX
27913 It suppresses a given float placement for the page where it is inserted
27914 and can therefore be used to avoid floats being set before a section starts.
27915 To get this, add these commands to your document preamble:
27918 \begin_layout Standard
27928 \begin_inset Newline newline
27942 \begin_layout Standard
27943 You can define the same for all section headings, like chapters and subsections.
27944 This definition is not recommended to be used for small text parts like
27945 subsubsections because \SpecialChar LaTeX
27946 may then have problems finding a suitable placement.
27949 \begin_layout Standard
27950 \begin_inset VSpace bigskip
27953 In some cases it is required to have all figures/tables at the end of the
27955 For this purpose the \SpecialChar LaTeX
27961 \begin_inset Index idx
27964 \begin_layout Plain Layout
27966 -packages ! endfloat
27972 It puts all figure and table floats at the end of the document into their
27974 At the original float position a text hint like
27975 \begin_inset Quotes eld
27981 \begin_inset space ~
27987 \begin_inset Quotes erd
27991 The endfloat-package is loaded in the preamble with the line
27994 \begin_layout Standard
27999 usepackage[options]{endfloat}
28002 \begin_layout Standard
28003 There are various package options to format the created figure/table sections.
28004 For more information we refer you to the
28009 \begin_inset CommandInset citation
28017 \begin_inset Newline newline
28021 \begin_inset Note Greyedout
28024 \begin_layout Plain Layout
28029 doesn't provide an automatic translation for the text hint, you have to
28030 do this manually, see section
28031 \begin_inset space ~
28035 \begin_inset CommandInset citation
28048 \begin_inset Newline newline
28052 \begin_inset Note Greyedout
28055 \begin_layout Plain Layout
28060 There is currently a bug in
28064 when the caption contains a German
28065 \begin_inset Quotes eld
28069 \begin_inset Quotes erd
28073 Use in this case the command
28074 \begin_inset Quotes eld
28084 \begin_inset Quotes erd
28087 in \SpecialChar TeX
28089 \begin_inset Quotes eld
28093 \begin_inset Quotes erd
28104 \begin_layout Standard
28105 \begin_inset VSpace bigskip
28108 For more details about float placements, have a look at \SpecialChar LaTeX
28110 \begin_inset CommandInset citation
28112 key "latexcompanion,latexguide,latexbook"
28118 \change_inserted -712698321 1526030561
28122 \begin_layout Subsection
28124 \change_inserted -712698321 1526031989
28125 Alignment of Float Contents
28128 \begin_layout Standard
28130 \change_inserted -712698321 1526032316
28131 In this list of options, you can define how the contents of a float (or
28132 all floats by default, if selected from
28134 Document\SpecialChar menuseparator
28142 means that the alignment of the class, or the default alignment of \SpecialChar LaTeX
28149 (only visible in the
28155 Document\SpecialChar menuseparator
28158 ) takes the setting specified in
28160 Document\SpecialChar menuseparator
28161 Settings\SpecialChar menuseparator
28165 The other three options,
28177 , are self-explanatory.
28178 If one of these is selected in
28180 Document\SpecialChar menuseparator
28181 Settings\SpecialChar menuseparator
28184 , all floats of the document will have this setting by default (so it is
28185 fairly easy, for instance, to center all floats).
28190 \begin_layout Subsection
28192 \change_inserted -712698321 1526030571
28193 Other Float Options
28196 \begin_layout Standard
28198 \change_inserted -712698321 1526035716
28199 These two options are only visible in the local
28205 Document\SpecialChar menuseparator
28211 \begin_layout Standard
28213 \change_inserted -712698321 1526033931
28217 \begin_inset space ~
28222 is useful for two-column documents: If you select it, the float will span
28223 both columns on the page instead of being confined to just one.
28226 \begin_layout Standard
28228 \change_inserted -712698321 1526030572
28232 \begin_inset space ~
28237 is used to rotate floats, see section
28238 \begin_inset CommandInset ref
28240 reference "sec:Rotated-Floats"
28249 \begin_layout Section
28251 \begin_inset CommandInset label
28253 name "sec:Rotated-Floats"
28258 \begin_inset Index idx
28261 \begin_layout Plain Layout
28270 \begin_layout Standard
28271 Especially for wide tables you might have floats rotated.
28272 To rotate a whole float including the caption, right-click on the float-box
28276 \begin_inset space ~
28284 \begin_layout Standard
28285 Rotated floats are always placed on a page of their own (or column of their
28286 own; in case you have a multi-column document).
28287 You can let them span several columns using the float settings option
28290 \begin_inset space ~
28296 Floats are rotated so that you can read them from the outside margin.
28297 To force a certain rotation direction for all pages, you can add either
28306 to the document class options.
28309 \begin_layout Standard
28310 Referencing rotated floats is the same as for normal floats, the caption
28311 format is also the same: Table
28312 \begin_inset space ~
28316 \begin_inset CommandInset ref
28318 reference "tab:Rotated-table"
28322 is an example of a rotated table float.
28325 \begin_layout Standard
28326 \begin_inset Note Greyedout
28329 \begin_layout Plain Layout
28334 Not all DVI-viewers are able to display rotated floats.
28342 \begin_layout Standard
28343 \begin_inset Float table
28350 \begin_layout Plain Layout
28351 \begin_inset Caption Standard
28353 \begin_layout Plain Layout
28354 \begin_inset CommandInset label
28356 name "tab:Rotated-table"
28368 \begin_layout Plain Layout
28370 \begin_inset Tabular
28371 <lyxtabular version="3" rows="1" columns="5">
28372 <features tabularvalignment="middle">
28373 <column alignment="center" valignment="top">
28374 <column alignment="center" valignment="top">
28375 <column alignment="center" valignment="top">
28376 <column alignment="center" valignment="top">
28377 <column alignment="center" valignment="top">
28379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28382 \begin_layout Plain Layout
28388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28391 \begin_layout Plain Layout
28397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28400 \begin_layout Plain Layout
28406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28409 \begin_layout Plain Layout
28415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28418 \begin_layout Plain Layout
28437 \begin_layout Section
28439 \begin_inset Index idx
28442 \begin_layout Plain Layout
28451 \begin_layout Standard
28452 Subfloats are for example used when a figure consists of several images.
28453 They are created by inserting a float into an existing float.
28454 The placement of the subfloats can be controlled in the same way as for
28455 paragraphs as shown in table
28456 \begin_inset space ~
28460 \begin_inset CommandInset ref
28462 reference "tab:Two-subtables-side"
28467 \begin_inset CommandInset ref
28469 reference "tab:Two-subtables-upon"
28476 \begin_layout Standard
28477 Referencing subfloats works as for normal floats: Table
28478 \begin_inset space ~
28482 \begin_inset CommandInset ref
28484 reference "tab:This-is-subtable-a"
28489 \begin_inset CommandInset ref
28491 reference "tab:This-is-subtable-b"
28495 are subtables of table
28496 \begin_inset space ~
28500 \begin_inset CommandInset ref
28502 reference "tab:Two-subtables-side"
28509 \begin_layout Standard
28510 \begin_inset Float table
28517 \begin_layout Plain Layout
28518 \begin_inset Caption Standard
28520 \begin_layout Plain Layout
28521 \begin_inset CommandInset label
28523 name "tab:Two-subtables-side"
28527 Two subtables placed side by side.
28535 \begin_layout Plain Layout
28537 \begin_inset space \hfill{}
28541 \begin_inset Float table
28548 \begin_layout Plain Layout
28549 \begin_inset Caption Standard
28551 \begin_layout Plain Layout
28552 \begin_inset CommandInset label
28554 name "tab:This-is-subtable-a"
28558 This is subtable a.
28566 \begin_layout Plain Layout
28568 \begin_inset Tabular
28569 <lyxtabular version="3" rows="1" columns="5">
28570 <features tabularvalignment="middle">
28571 <column alignment="center" valignment="top">
28572 <column alignment="center" valignment="top">
28573 <column alignment="center" valignment="top">
28574 <column alignment="center" valignment="top">
28575 <column alignment="center" valignment="top">
28577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28580 \begin_layout Plain Layout
28586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28589 \begin_layout Plain Layout
28595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28598 \begin_layout Plain Layout
28604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28607 \begin_layout Plain Layout
28613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28616 \begin_layout Plain Layout
28633 \begin_inset space \hfill{}
28637 \begin_inset Float table
28644 \begin_layout Plain Layout
28645 \begin_inset Caption Standard
28647 \begin_layout Plain Layout
28648 \begin_inset CommandInset label
28650 name "tab:This-is-subtable-b"
28654 This is subtable b.
28662 \begin_layout Plain Layout
28664 \begin_inset Tabular
28665 <lyxtabular version="3" rows="1" columns="5">
28666 <features tabularvalignment="middle">
28667 <column alignment="center" valignment="top">
28668 <column alignment="center" valignment="top">
28669 <column alignment="center" valignment="top">
28670 <column alignment="center" valignment="top">
28671 <column alignment="center" valignment="top">
28673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28676 \begin_layout Plain Layout
28682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28685 \begin_layout Plain Layout
28691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28694 \begin_layout Plain Layout
28700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28703 \begin_layout Plain Layout
28709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28712 \begin_layout Plain Layout
28729 \begin_inset space \hfill{}
28740 \begin_layout Standard
28741 \begin_inset Float table
28748 \begin_layout Plain Layout
28749 \begin_inset Caption Standard
28751 \begin_layout Plain Layout
28752 \begin_inset CommandInset label
28754 name "tab:Two-subtables-upon"
28758 Two subtables placed one above the other.
28759 (a) table with 4 cells, (b) table with 5 cells.
28767 \begin_layout Plain Layout
28769 \begin_inset Float table
28776 \begin_layout Plain Layout
28777 \begin_inset Caption Standard
28779 \begin_layout Plain Layout
28788 \begin_layout Plain Layout
28790 \begin_inset Tabular
28791 <lyxtabular version="3" rows="1" columns="4">
28792 <features tabularvalignment="middle">
28793 <column alignment="center" valignment="top">
28794 <column alignment="center" valignment="top">
28795 <column alignment="center" valignment="top">
28796 <column alignment="center" valignment="top">
28798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28801 \begin_layout Plain Layout
28807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28810 \begin_layout Plain Layout
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" rightline="true" usebox="none">
28828 \begin_layout Plain Layout
28847 \begin_layout Plain Layout
28849 \begin_inset Float table
28856 \begin_layout Plain Layout
28857 \begin_inset Caption Standard
28859 \begin_layout Plain Layout
28868 \begin_layout Plain Layout
28870 \begin_inset Tabular
28871 <lyxtabular version="3" rows="1" columns="5">
28872 <features tabularvalignment="middle">
28873 <column alignment="center" valignment="top">
28874 <column alignment="center" valignment="top">
28875 <column alignment="center" valignment="top">
28876 <column alignment="center" valignment="top">
28877 <column alignment="center" valignment="top">
28879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28882 \begin_layout Plain Layout
28888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28891 \begin_layout Plain Layout
28897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28900 \begin_layout Plain Layout
28906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28909 \begin_layout Plain Layout
28915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28918 \begin_layout Plain Layout
28942 \begin_layout Section
28943 Floats Side by Side
28944 \begin_inset Index idx
28947 \begin_layout Plain Layout
28948 Floats ! Side by side
28956 \begin_layout Standard
28957 To place floats side by side, as in Figures
28958 \begin_inset space ~
28962 \begin_inset CommandInset ref
28964 reference "fig:Float-left"
28969 \begin_inset CommandInset ref
28971 reference "fig:Float-right"
28980 In it two minipage boxes are inserted.
28984 \begin_layout Plain Layout
28985 Minipages are explained in section
28986 \begin_inset space ~
28990 \begin_inset CommandInset ref
28992 reference "sec:Minipages"
29001 The width is set to 45
29002 \begin_inset space \thinspace{}
29006 \begin_inset space \thinspace{}
29009 column% and the box alignment to
29014 The minipage boxes contain the image and the caption in the same way as
29015 they are in a float.
29016 The only difference is that the image unit
29019 \begin_inset space ~
29023 \begin_inset space ~
29028 is now calculated according to the width of the minipage boxes.
29031 \begin_layout Standard
29032 \begin_inset Float figure
29039 \begin_layout Plain Layout
29040 \begin_inset Box Frameless
29050 height_special "totalheight"
29055 backgroundcolor "none"
29058 \begin_layout Plain Layout
29060 \begin_inset Graphics
29061 filename clipart/2D-intensity-plot.pdf
29063 scaleBeforeRotation
29070 \begin_layout Plain Layout
29071 \begin_inset Caption Standard
29073 \begin_layout Plain Layout
29074 \begin_inset CommandInset label
29076 name "fig:Float-left"
29080 Float on the left side.
29091 \begin_inset space \hfill{}
29095 \begin_inset Box Frameless
29105 height_special "totalheight"
29110 backgroundcolor "none"
29113 \begin_layout Plain Layout
29115 \begin_inset Graphics
29116 filename clipart/Star-structure.pdf
29118 scaleBeforeRotation
29125 \begin_layout Plain Layout
29126 \begin_inset Caption Standard
29128 \begin_layout Plain Layout
29129 \begin_inset CommandInset label
29131 name "fig:Float-right"
29135 Float on the right side.
29153 \begin_layout Standard
29154 An alternative and simpler solution is to use the module
29156 Variable-width Minipages
29159 \begin_inset space \thinspace{}
29163 \begin_inset CommandInset ref
29165 reference "sec:Minipages"
29170 Variable-width minipages adapt automatically to the width of the figures
29172 They do not require an explicit width to be given, and they improve the
29173 horizontal alignment of the figures.
29174 The LyX example file
29176 varwidth-floats-side-by-side
29178 gives examples of how to do this.
29181 \begin_layout Section
29183 \begin_inset Index idx
29186 \begin_layout Plain Layout
29187 Caption ! Formatting
29193 \begin_inset Index idx
29196 \begin_layout Plain Layout
29197 Floats ! Caption Formatting
29203 \begin_inset CommandInset label
29205 name "sec:Caption-Formatting"
29212 \begin_layout Standard
29217 environment is the default paragraph environment for
29222 On the \SpecialChar LyX
29223 screen captions appear as a label, e.
29224 \begin_inset space \thinspace{}
29228 \begin_inset space \space{}
29232 \begin_inset Quotes eld
29240 \begin_inset Quotes erd
29243 followed by the caption text.
29245 \begin_inset Quotes eld
29249 \begin_inset Quotes erd
29252 is the actual reference number.
29253 By default the label and the number are in the same font as the caption
29254 text and a colon follows the number to divide the label from the text.
29255 This caption format is suitable for many but not all documents.
29259 \begin_layout Standard
29260 To change the default caption format, load the \SpecialChar LaTeX
29266 \begin_inset Index idx
29269 \begin_layout Plain Layout
29271 -packages ! caption
29276 in the document preamble with this line:
29279 \begin_layout Standard
29284 usepackage[format definition]{caption}
29287 \begin_layout Standard
29288 To have for example the label and the number in sans-serif, bold font and
29289 the table captions always above the table as in this document, use the
29293 \begin_layout Standard
29298 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
29301 \begin_layout Standard
29302 You can also define different caption formats for the different float types.
29303 In this case load the
29307 package without format specific options and define the different formats
29308 with the help of the command
29311 \begin_layout Standard
29316 captionsetup[float type]{format definition}
29319 \begin_layout Standard
29320 in the document preamble.
29321 For example the caption formats of Figure
29322 \begin_inset space ~
29326 \begin_inset CommandInset ref
29328 reference "fig:This-is-an-fig"
29333 \begin_inset space ~
29337 \begin_inset CommandInset ref
29339 reference "tab:This-is-an-tab"
29343 can be created using these commands in the document preamble:
29346 \begin_layout Standard
29351 usepackage[tableposition=top]{caption}
29354 \begin_inset Newline newline
29361 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
29362 \begin_inset Newline newline
29366 \begin_inset Phantom HPhantom
29369 \begin_layout Plain Layout
29374 captionsetup[figure]{
29380 \begin_inset Newline newline
29385 captionsetup[table]{labelfont={bf,sf}}
29388 \begin_layout Standard
29389 \begin_inset Note Greyedout
29392 \begin_layout Plain Layout
29401 has no effect when a
29406 \begin_inset Index idx
29409 \begin_layout Plain Layout
29411 -packages ! KOMA-Script
29416 document class is used.
29417 In this case the document class option
29419 captions=tableheading
29429 \begin_layout Standard
29430 For more information about the package
29434 we refer to its documentation
29435 \begin_inset CommandInset citation
29445 \begin_layout Standard
29446 To change the label name from e.
29447 \begin_inset space \thinspace{}
29451 \begin_inset space \space{}
29455 \begin_inset Quotes eld
29459 \begin_inset Quotes erd
29463 \begin_inset Quotes eld
29467 \begin_inset Quotes erd
29470 use this preamble command:
29473 \begin_layout Standard
29480 fnum@figure}{Image~
29485 \begin_layout Standard
29492 inserts the figure number and
29495 \begin_inset Quotes eld
29501 \begin_inset Quotes erd
29504 creates a protected space.
29507 \begin_layout Standard
29508 \begin_inset VSpace bigskip
29516 \begin_inset Index idx
29519 \begin_layout Plain Layout
29521 -packages ! KOMA-Script
29528 article (KOMA-Script)
29536 letter (KOMA-Script)
29540 report (KOMA-Script)
29543 \begin_inset space \thinspace{}
29546 ), you can alternatively to the
29554 's built-in command
29561 For example, to have the caption label in bold, add this command to your
29565 \begin_layout Standard
29570 setkomafont{captionlabel}{
29575 \begin_layout Standard
29576 For more information about
29587 \begin_inset CommandInset citation
29597 \begin_layout Standard
29601 \begin_layout Plain Layout
29605 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
29612 \begin_inset Note Note
29615 \begin_layout Plain Layout
29616 The caption format is changed only for this example.
29624 \begin_layout Standard
29625 \begin_inset Float figure
29632 \begin_layout Plain Layout
29634 \begin_inset Graphics
29635 filename clipart/2D-intensity-plot.pdf
29636 scaleBeforeRotation
29643 \begin_layout Plain Layout
29644 \begin_inset Caption Standard
29646 \begin_layout Plain Layout
29647 \begin_inset CommandInset label
29649 name "fig:This-is-an-fig"
29653 This is an example figure caption that is longer than one line to show the
29654 different caption format.
29655 Here a self-defined caption format is used.
29668 \begin_layout Standard
29672 \begin_layout Plain Layout
29676 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
29685 \begin_layout Standard
29686 \begin_inset Float table
29693 \begin_layout Plain Layout
29694 \begin_inset Caption Standard
29696 \begin_layout Plain Layout
29697 \begin_inset CommandInset label
29699 name "tab:This-is-an-tab"
29703 This is an example table caption that is longer than one line to show the
29704 different caption format.
29705 Here the standard caption format for tables in this document is used.
29713 \begin_layout Plain Layout
29715 \begin_inset Tabular
29716 <lyxtabular version="3" rows="1" columns="5">
29717 <features tabularvalignment="middle">
29718 <column alignment="center" valignment="top">
29719 <column alignment="center" valignment="top">
29720 <column alignment="center" valignment="top">
29721 <column alignment="center" valignment="top">
29722 <column alignment="center" valignment="top">
29724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29727 \begin_layout Plain Layout
29733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29736 \begin_layout Plain Layout
29742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29745 \begin_layout Plain Layout
29751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29754 \begin_layout Plain Layout
29760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29763 \begin_layout Plain Layout
29782 \begin_layout Section
29784 \begin_inset Index idx
29787 \begin_layout Plain Layout
29788 Caption ! Placement
29794 \begin_inset Index idx
29797 \begin_layout Plain Layout
29798 Floats ! Caption Placement
29804 \begin_inset CommandInset label
29806 name "sec:Caption-Placement"
29813 \begin_layout Standard
29814 The common caption placement rule is:
29817 \begin_layout Description
29818 Figure: Caption is set below the figure
29821 \begin_layout Description
29822 Table: Caption is set above the table
29825 \begin_layout Standard
29826 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29829 That means if you are using the document classes
29845 there will be no space between the caption and the table.
29846 To insert the necessary space, load the \SpecialChar LaTeX
29852 \begin_inset Index idx
29855 \begin_layout Plain Layout
29857 -packages ! caption
29862 in your document preamble with the option
29866 \begin_layout Plain Layout
29868 \begin_inset space ~
29872 \begin_inset CommandInset ref
29874 reference "sec:Caption-Formatting"
29878 for more information of the package
29890 \begin_layout Standard
29896 \begin_layout Standard
29902 \begin_inset Index idx
29905 \begin_layout Plain Layout
29907 -packages ! KOMA-Script
29914 article (KOMA-Script)
29922 letter (KOMA-Script)
29926 report (KOMA-Script)
29929 \begin_inset space \thinspace{}
29932 ), you can alternatively to the
29936 package set the document class option
29940 \begin_layout Plain Layout
29941 That option is used in this document.
29949 \begin_layout Standard
29952 captions=tableheading
29955 \begin_layout Standard
29956 In documents with a KOMA-Script document class you can also right-click
29957 on a caption and mark in the context menu if this should be a caption above
29958 or below the table/figure.
29959 This way you can override the document-wide caption placement for certain
29962 \begin_inset space ~
29966 \begin_inset CommandInset ref
29968 reference "tab:A-caption-marked"
29972 is an example where the caption is marked a being below the table while
29974 For comparison the caption in Table
29975 \begin_inset space ~
29979 \begin_inset CommandInset ref
29981 reference "tab:A-standard-table"
29988 \begin_layout Standard
29989 \begin_inset Float table
29996 \begin_layout Plain Layout
29997 \begin_inset Caption Below
29999 \begin_layout Plain Layout
30000 \begin_inset CommandInset label
30002 name "tab:A-caption-marked"
30006 A caption marked as being below the table.
30014 \begin_layout Plain Layout
30016 \begin_inset Tabular
30017 <lyxtabular version="3" rows="3" columns="3">
30018 <features tabularvalignment="middle">
30019 <column alignment="center" valignment="top" width="0pt">
30020 <column alignment="center" valignment="top" width="0pt">
30021 <column alignment="center" valignment="top" width="0pt">
30023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30026 \begin_layout Plain Layout
30032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30035 \begin_layout Plain Layout
30041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30044 \begin_layout Plain Layout
30052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30055 \begin_layout Plain Layout
30061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30064 \begin_layout Plain Layout
30070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30073 \begin_layout Plain Layout
30081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30084 \begin_layout Plain Layout
30085 \begin_inset Formula $\int x^{2}dx$
30093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30096 \begin_layout Plain Layout
30097 \begin_inset Formula $\left[\begin{array}{cc}
30100 \end{array}\right]$
30108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30111 \begin_layout Plain Layout
30112 \begin_inset Formula $1+1=2$
30133 \begin_layout Standard
30134 \begin_inset Float table
30141 \begin_layout Plain Layout
30142 \begin_inset Caption Standard
30144 \begin_layout Plain Layout
30145 \begin_inset CommandInset label
30147 name "tab:A-standard-table"
30151 A standard table caption.
30159 \begin_layout Plain Layout
30161 \begin_inset Tabular
30162 <lyxtabular version="3" rows="3" columns="3">
30163 <features tabularvalignment="middle">
30164 <column alignment="center" valignment="top" width="0pt">
30165 <column alignment="center" valignment="top" width="0pt">
30166 <column alignment="center" valignment="top" width="0pt">
30168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30171 \begin_layout Plain Layout
30177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30180 \begin_layout Plain Layout
30186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30189 \begin_layout Plain Layout
30197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30200 \begin_layout Plain Layout
30206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30209 \begin_layout Plain Layout
30215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30218 \begin_layout Plain Layout
30226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30229 \begin_layout Plain Layout
30230 \begin_inset Formula $\int x^{2}dx$
30238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30241 \begin_layout Plain Layout
30242 \begin_inset Formula $\left[\begin{array}{cc}
30245 \end{array}\right]$
30253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30256 \begin_layout Plain Layout
30257 \begin_inset Formula $1+1=2$
30278 \begin_layout Standard
30279 \begin_inset VSpace bigskip
30282 It is also possible to set the caption beside a figure or table.
30283 To get this the \SpecialChar LaTeX
30289 \begin_inset Index idx
30292 \begin_layout Plain Layout
30294 -packages ! sidecap
30299 has to be loaded in the document preamble with the line
30302 \begin_layout Standard
30307 usepackage[option]{sidecap}
30310 \begin_layout Standard
30311 If you set no option, the caption is placed on the side of the outer page
30312 margin – to the right on odd pages, to the left on even pages.
30313 You can change the placement to inner margin with the option
30318 To force the placement always to the right or left, use the option
30329 \begin_layout Standard
30333 \begin_layout Plain Layout
30343 \begin_inset Note Note
30346 \begin_layout Plain Layout
30347 The following section will only be displayed when the \SpecialChar LaTeX
30360 \begin_layout Standard
30361 To place in \SpecialChar LyX
30362 the caption of a float on the side, it is necessary to add
30363 these commands to the document preamble:
30366 \begin_layout Standard
30368 \begin_inset CommandInset line
30379 \begin_layout Standard
30386 TabBesBeg}[1][1.0]{%
30387 \begin_inset Newline newline
30391 \begin_inset Phantom HPhantom
30394 \begin_layout Plain Layout
30395 \begin_inset space ~
30410 \begin_inset Newline newline
30414 \begin_inset Phantom HPhantom
30417 \begin_layout Plain Layout
30420 \begin_inset space ~
30435 \begin_inset Newline newline
30439 \begin_inset Phantom HPhantom
30442 \begin_layout Plain Layout
30445 \begin_inset space ~
30455 renewenvironment{table}[1]{
30457 begin{SCtable}[#1]##1}{
30462 \begin_layout Standard
30470 \begin_inset Newline newline
30474 \begin_inset Phantom HPhantom
30477 \begin_layout Plain Layout
30478 \begin_inset space ~
30493 \begin_inset Newline newline
30497 \begin_inset Phantom HPhantom
30500 \begin_layout Plain Layout
30501 \begin_inset space ~
30518 \begin_layout Standard
30525 FigBesBeg}[1][1.0]{%
30526 \begin_inset Newline newline
30530 \begin_inset Phantom HPhantom
30533 \begin_layout Plain Layout
30534 \begin_inset space ~
30549 \begin_inset Newline newline
30553 \begin_inset Phantom HPhantom
30556 \begin_layout Plain Layout
30557 \begin_inset space ~
30572 \begin_inset Newline newline
30576 \begin_inset Phantom HPhantom
30579 \begin_layout Plain Layout
30580 \begin_inset space ~
30590 renewenvironment{figure}[1]{
30592 begin{SCfigure}[#1]##1}{
30597 \begin_layout Standard
30605 \begin_inset Newline newline
30609 \begin_inset Phantom HPhantom
30612 \begin_layout Plain Layout
30613 \begin_inset space ~
30628 \begin_inset Newline newline
30632 \begin_inset Phantom HPhantom
30635 \begin_layout Plain Layout
30636 \begin_inset space ~
30653 \begin_layout Standard
30655 \begin_inset CommandInset line
30666 \begin_layout Standard
30667 The commands allow you to redefine the floats so that the caption is set
30669 For figure floats use the command
30672 \begin_layout Standard
30680 \begin_layout Standard
30681 in \SpecialChar TeX
30682 Code before the float.
30683 And insert the command
30686 \begin_layout Standard
30694 \begin_layout Standard
30695 in \SpecialChar TeX
30696 Code at the point where you want to get back to the original float definitio
30700 \begin_layout Standard
30701 For table floats use the corresponding commands
30704 \begin_layout Standard
30718 \begin_layout Standard
30720 \begin_inset space ~
30724 \begin_inset CommandInset ref
30726 reference "fig:cap-beside-fig"
30731 \begin_inset space ~
30735 \begin_inset CommandInset ref
30737 reference "tab:cap-beside-tab"
30741 are examples where the caption is set beside.
30744 \begin_layout Standard
30745 You can see in the examples that the caption text appears at the top of
30746 the floats for table floats and at the bottom for figure floats.
30747 To change this, you can use the command
30750 \begin_layout Standard
30755 sidecaptionvpos{float type}{placement}
30758 \begin_layout Standard
30759 in the document preamble or in \SpecialChar TeX
30760 Code before the float.
30761 The float type is either
30769 , the placement can be
30770 \begin_inset Quotes eld
30778 \begin_inset Quotes erd
30782 \begin_inset Quotes eld
30790 \begin_inset Quotes erd
30794 \begin_inset Quotes eld
30802 \begin_inset Quotes erd
30806 To have for example the caption of figure floats vertically centered, use
30810 \begin_layout Standard
30815 sidecaptionvpos{figure}{c}
30818 \begin_layout Standard
30819 This was used for Figure
30820 \begin_inset space ~
30824 \begin_inset CommandInset ref
30826 reference "fig:cap-beside-fig-2"
30833 \begin_layout Standard
30834 \begin_inset VSpace medskip
30840 \begin_layout Standard
30841 The default caption width is the width of the image/table.
30842 For thin image/tables, like in Table
30843 \begin_inset space ~
30847 \begin_inset CommandInset ref
30849 reference "tab:cap-beside-tab"
30853 , this leads to captions that are too thin.
30854 You can increase the width by specifying a factor that will be multiplied
30855 with the image/table width to get the caption width.
30856 The caption width will automatically be recalculated in case it would protrude
30857 over the page or column margin due to the specified width.
30862 can either be given as optional argument for
30871 \begin_layout Standard
30879 \begin_layout Standard
30880 or in the definition of
30890 with another value.
30891 If you do the latter, your factor will be the default if
30897 is used without an argument.
30899 \begin_inset space ~
30903 \begin_inset CommandInset ref
30905 reference "tab:cap-beside-tab-wider"
30909 the factor 5 was used.
30912 \begin_layout Standard
30913 \begin_inset Note Greyedout
30916 \begin_layout Plain Layout
30921 For floats with captions set beside, you cannot use the float placement
30925 \begin_inset space ~
30930 because it is not supported by
30942 \begin_layout Standard
30943 \begin_inset VSpace medskip
30946 For more information about the package
30950 we refer to its documentation
30951 \begin_inset CommandInset citation
30961 \begin_layout Standard
30962 \begin_inset Note Greyedout
30965 \begin_layout Plain Layout
30970 The \SpecialChar LaTeX
30976 \begin_inset Index idx
30979 \begin_layout Plain Layout
30986 , described in section
30987 \begin_inset space ~
30991 \begin_inset CommandInset ref
30993 reference "subsec:Reference-Position"
30997 , has no effect on floats with the caption set beside.
31005 \begin_layout Standard
31009 \begin_layout Plain Layout
31021 \begin_layout Standard
31022 \begin_inset Float figure
31029 \begin_layout Plain Layout
31030 \begin_inset Graphics
31031 filename clipart/3D-structure-distort.pdf
31033 scaleBeforeRotation
31040 \begin_layout Plain Layout
31041 \begin_inset Caption Standard
31043 \begin_layout Plain Layout
31044 \begin_inset CommandInset label
31046 name "fig:cap-beside-fig"
31050 This is a caption beside a figure.
31063 \begin_layout Standard
31067 \begin_layout Plain Layout
31079 \begin_layout Standard
31083 \begin_layout Plain Layout
31095 \begin_layout Standard
31096 \begin_inset Float table
31103 \begin_layout Plain Layout
31104 \begin_inset Caption Standard
31106 \begin_layout Plain Layout
31107 \begin_inset CommandInset label
31109 name "tab:cap-beside-tab"
31113 This is a caption beside a table.
31121 \begin_layout Plain Layout
31122 \begin_inset Tabular
31123 <lyxtabular version="3" rows="4" columns="5">
31124 <features tabularvalignment="middle">
31125 <column alignment="center" valignment="top">
31126 <column alignment="center" valignment="top">
31127 <column alignment="center" valignment="top">
31128 <column alignment="center" valignment="top">
31129 <column alignment="center" valignment="top">
31131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31134 \begin_layout Plain Layout
31140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31143 \begin_layout Plain Layout
31149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31152 \begin_layout Plain Layout
31158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31161 \begin_layout Plain Layout
31167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31170 \begin_layout Plain Layout
31178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31181 \begin_layout Plain Layout
31187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31190 \begin_layout Plain Layout
31196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31199 \begin_layout Plain Layout
31205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31208 \begin_layout Plain Layout
31214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31217 \begin_layout Plain Layout
31225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31228 \begin_layout Plain Layout
31234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31237 \begin_layout Plain Layout
31243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31246 \begin_layout Plain Layout
31252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31255 \begin_layout Plain Layout
31261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31264 \begin_layout Plain Layout
31272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31275 \begin_layout Plain Layout
31281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31284 \begin_layout Plain Layout
31290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31293 \begin_layout Plain Layout
31299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31302 \begin_layout Plain Layout
31308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31311 \begin_layout Plain Layout
31330 \begin_layout Standard
31334 \begin_layout Plain Layout
31346 \begin_layout Standard
31350 \begin_layout Plain Layout
31363 \begin_layout Plain Layout
31367 sidecaptionvpos{figure}{c}
31373 \begin_inset Float figure
31380 \begin_layout Plain Layout
31381 \begin_inset Graphics
31382 filename clipart/3D-structure-distort.pdf
31384 scaleBeforeRotation
31391 \begin_layout Plain Layout
31392 \begin_inset Caption Standard
31394 \begin_layout Plain Layout
31395 \begin_inset CommandInset label
31397 name "fig:cap-beside-fig-2"
31401 This is a vertically centered caption beside a figure.
31414 \begin_layout Standard
31418 \begin_layout Plain Layout
31430 \begin_layout Standard
31434 \begin_layout Plain Layout
31446 \begin_layout Standard
31447 \begin_inset Float table
31454 \begin_layout Plain Layout
31455 \begin_inset Caption Standard
31457 \begin_layout Plain Layout
31458 \begin_inset CommandInset label
31460 name "tab:cap-beside-tab-wider"
31464 This caption is wider than the one in Table
31465 \begin_inset space ~
31469 \begin_inset CommandInset ref
31471 reference "tab:cap-beside-tab"
31483 \begin_layout Plain Layout
31484 \begin_inset Tabular
31485 <lyxtabular version="3" rows="4" columns="5">
31486 <features tabularvalignment="middle">
31487 <column alignment="center" valignment="top">
31488 <column alignment="center" valignment="top">
31489 <column alignment="center" valignment="top">
31490 <column alignment="center" valignment="top">
31491 <column alignment="center" valignment="top">
31493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31496 \begin_layout Plain Layout
31502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31505 \begin_layout Plain Layout
31511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31514 \begin_layout Plain Layout
31520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31523 \begin_layout Plain Layout
31529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31532 \begin_layout Plain Layout
31540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31543 \begin_layout Plain Layout
31549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31552 \begin_layout Plain Layout
31558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31561 \begin_layout Plain Layout
31567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31570 \begin_layout Plain Layout
31576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31579 \begin_layout Plain Layout
31587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31590 \begin_layout Plain Layout
31596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31599 \begin_layout Plain Layout
31605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31608 \begin_layout Plain Layout
31614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31617 \begin_layout Plain Layout
31623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31626 \begin_layout Plain Layout
31634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31637 \begin_layout Plain Layout
31643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31646 \begin_layout Plain Layout
31652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31655 \begin_layout Plain Layout
31661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31664 \begin_layout Plain Layout
31670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31673 \begin_layout Plain Layout
31692 \begin_layout Standard
31696 \begin_layout Plain Layout
31708 \begin_layout Standard
31712 \begin_layout Plain Layout
31722 \begin_inset Note Note
31725 \begin_layout Plain Layout
31726 The following will be displayed when the \SpecialChar LaTeX
31739 \begin_layout Standard
31740 You need to install the \SpecialChar LaTeX
31745 to see the following part of this section in the output.
31748 \begin_layout Standard
31752 \begin_layout Plain Layout
31764 \begin_layout Section
31766 \begin_inset Index idx
31769 \begin_layout Plain Layout
31770 Floats ! Float Lists
31778 \begin_layout Standard
31779 Similar to the table of contents where the sections of the document are
31780 listed, there are listings for all float types, like the figures of the
31782 You can insert them via the
31784 Insert\SpecialChar menuseparator
31786 \begin_inset space ~
31790 \begin_inset space ~
31798 \begin_layout Standard
31799 The list entries are the float captions or its short title, the float number,
31800 and the page number where they appear in the document.
31803 \begin_layout Standard
31804 You can find the list of figures and tables at the end of this document.
31807 \begin_layout Chapter
31811 \begin_layout Section
31814 \begin_inset Index idx
31817 \begin_layout Plain Layout
31818 Notes ! \SpecialChar LyX
31827 \begin_layout Standard
31828 Notes are inserted with the toolbar button
31836 Insert\SpecialChar menuseparator
31840 There are three types of notes:
31843 \begin_layout Description
31846 \begin_inset space ~
31849 Note This note type is for internal notes that won't appear in the output.
31850 Its note-box looks like this:
31851 \begin_inset Newline newline
31855 \begin_inset Newline newline
31859 \begin_inset Graphics
31860 filename clipart/LyXNoteImage.png
31862 scaleBeforeRotation
31867 \begin_inset Note Note
31870 \begin_layout Plain Layout
31871 This is text in a note box that doesn't appear in the output.
31879 \begin_layout Description
31880 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31882 when you export the document to \SpecialChar LaTeX
31885 File\SpecialChar menuseparator
31886 Export\SpecialChar menuseparator
31888 \begin_inset space ~
31891 (pdflatex) / (plain)
31894 Its note-box looks like this:
31895 \begin_inset Newline newline
31899 \begin_inset Newline newline
31903 \begin_inset Graphics
31904 filename clipart/CommentNoteImage.png
31906 scaleBeforeRotation
31911 \begin_inset Note Comment
31914 \begin_layout Plain Layout
31915 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31924 \begin_layout Description
31926 \begin_inset space ~
31929 Out This note will appear in the output as grey text.
31930 Its note-box looks like this:
31931 \begin_inset Newline newline
31935 \begin_inset Newline newline
31939 \begin_inset Graphics
31940 filename clipart/GreyedOutNoteImage.png
31942 scaleBeforeRotation
31947 \begin_inset Newline newline
31954 \begin_layout Plain Layout
31958 renewenvironment{lyxgreyedout}
31961 \begin_layout Plain Layout
31965 textcolor[gray]{0.8}
31975 \begin_inset Note Greyedout
31978 \begin_layout Plain Layout
31979 This is text of a comment that appears grey in the output.
31988 \begin_layout Plain Layout
31992 renewenvironment{lyxgreyedout}
31995 \begin_layout Plain Layout
32009 \begin_inset Note Note
32012 \begin_layout Plain Layout
32013 The greyed out note is here redefined to show it with the original \SpecialChar LyX
32015 because greyed out notes are redefined in the preamble of this document,
32016 as described below, to have blue text.
32022 \begin_inset Newline newline
32026 \begin_inset Newline newline
32029 As you can see in the example, the first line of greyed out notes is a bit
32030 indented and greyed out notes can have footnotes.
32033 \begin_layout Standard
32034 \begin_inset VSpace bigskip
32037 When you use the toolbar button
32047 \begin_inset space ~
32053 You can switch between the three note types by right-clicking on the note-box.
32058 If you want to turn existing text into a note, mark it and click on the
32072 To change a note to text, press the backspace key when the cursor is in
32073 the first position of a note, or press the delete key when the cursor is
32074 in the very last position of the note, respectively.
32077 \begin_layout Standard
32078 \begin_inset VSpace bigskip
32081 You can change the text color of the greyed out notes in the menu
32083 Document\SpecialChar menuseparator
32084 Settings\SpecialChar menuseparator
32090 \begin_layout Section
32092 \begin_inset CommandInset label
32094 name "sec:Footnotes"
32099 \begin_inset Index idx
32102 \begin_layout Plain Layout
32109 \begin_inset Index idx
32112 \begin_layout Plain Layout
32121 \begin_layout Standard
32122 Footnotes can be inserted using the toolbar button
32125 arg "footnote-insert"
32130 Insert\SpecialChar menuseparator
32134 You will then see the following footnote-box:
32135 \begin_inset Graphics
32136 filename clipart/footnote.png
32138 scaleBeforeRotation
32146 where you can enter the footnote text.
32147 If you want to turn existing text into a footnote, mark it and click on
32173 key when the cursor is in the first position of a
32185 key when the cursor is in the very last position of the
32196 \begin_layout Standard
32197 Here is an example footnote:
32205 \begin_layout Plain Layout
32206 \begin_inset CommandInset label
32208 name "foot:This-is-an"
32212 This is an example footnote.
32225 \begin_layout Plain Layout
32229 newcounter{MyRepeatFoot}
32232 \begin_layout Plain Layout
32236 setcounter{MyRepeatFoot}{
32246 \begin_layout Standard
32247 The footnote will appear in the output as a superscript number at the text
32248 position where the footnote box is placed.
32249 The footnote text is placed at the bottom of the current page.
32250 The footnote number is calculated by \SpecialChar LaTeX
32251 ; the numbers are consecutive.
32252 Whether the footnote number is reset for every chapter depends on your
32256 \begin_layout Standard
32257 Footnotes can be referenced like floats: Insert a label into the footnote
32258 and cross-reference this label in the text as described in section
32259 \begin_inset space ~
32263 \begin_inset CommandInset ref
32265 reference "sec:Referencing-Floats"
32270 \begin_inset Newline newline
32273 This is a cross-reference of Footnote
32274 \begin_inset space ~
32278 \begin_inset CommandInset ref
32280 reference "foot:This-is-an"
32287 \begin_layout Standard
32288 \begin_inset VSpace defskip
32291 Footnotes in title environments are usually not numbered with symbols and
32292 they cannot contain several paragraphs.
32293 See for example the footnote in the titling of this document.
32296 \begin_layout Standard
32297 Footnotes in multi-page tables are described in section
32298 \begin_inset space ~
32302 \begin_inset CommandInset ref
32304 reference "subsec:Footnotes-in-Multi-page"
32311 \begin_layout Standard
32312 \begin_inset VSpace defskip
32318 \begin_layout Standard
32319 Footnotes in minipage boxes are printed, but inside the box and with a different
32320 numbering because a minipage box is like a page inside a page.
32321 (For more about minipages, see section
32322 \begin_inset space ~
32326 \begin_inset CommandInset ref
32328 reference "sec:Minipages"
32332 .) To get a footnote in the minipage that is output at the bottom of the
32333 page like normal footnotes use this method: Instead of the footnote the
32340 is inserted as \SpecialChar TeX
32342 The text of the footnote is entered as an argument of the \SpecialChar TeX
32350 after the minipage.
32351 \begin_inset Newline newline
32354 This was done for the following minipage with the command
32357 \begin_layout Standard
32364 Footnote outside the minipage.
32369 \begin_layout Standard
32370 \begin_inset Box Frameless
32380 height_special "totalheight"
32385 backgroundcolor "none"
32388 \begin_layout Plain Layout
32389 This an example text in a minipage.
32393 \begin_layout Plain Layout
32394 Footnote in the minipage.
32402 \begin_layout Plain Layout
32403 This an example text in a minipage.
32407 \begin_layout Plain Layout
32424 \begin_layout Standard
32428 \begin_layout Plain Layout
32437 Footnote outside the minipage.
32441 \begin_layout Plain Layout
32451 \begin_layout Standard
32452 \begin_inset VSpace defskip
32458 \begin_layout Standard
32459 To refer to the same footnote several times without printing the footnote
32460 text every time, use the command
32464 footnotemark[number]
32466 in \SpecialChar TeX
32468 \begin_inset Newline newline
32471 As you do not know the number of the repeating footnote while you are writing
32472 the text, you have to store its number.
32473 For the following footnote mark example, these commands were inserted in
32475 code after Footnote
32476 \begin_inset space ~
32480 \begin_inset CommandInset ref
32482 reference "foot:This-is-an"
32486 to store the footnote number:
32489 \begin_layout Standard
32494 newcounter{MyRepeatFoot}
32495 \begin_inset Newline newline
32500 setcounter{MyRepeatFoot}{
32505 \begin_layout Standard
32506 The footnote mark was then created with this command:
32509 \begin_layout Standard
32519 \begin_layout Standard
32520 Here is a repeated footnote:
32528 \begin_layout Plain Layout
32542 \begin_layout Standard
32543 If you want to repeat the previous footnote, you can omit the storage of
32544 the footnote number and just use this command instead:
32547 \begin_layout Standard
32557 \begin_layout Standard
32558 Here is another repeated footnote:
32566 \begin_layout Plain Layout
32580 \begin_layout Subsection
32582 \begin_inset CommandInset label
32584 name "subsec:Footnote-Numbering"
32589 \begin_inset Index idx
32592 \begin_layout Plain Layout
32593 Footnotes ! Numbering
32601 \begin_layout Standard
32602 To reset the footnote number back to 1 after each section
32604 , add this command to your document preamble:
32607 \begin_layout Standard
32612 @addtoreset{footnote}{section}
32615 \begin_layout Standard
32616 \begin_inset VSpace bigskip
32619 The following preamble command changes the footnote numbering style to small
32623 \begin_layout Standard
32635 \begin_layout Standard
32639 \begin_layout Plain Layout
32652 This is a footnote with roman numbering:
32656 \begin_layout Plain Layout
32657 This is an example footnote with roman numbering.
32665 \begin_layout Standard
32666 To change the numbering style to capital roman numerals replace in the command
32681 \begin_inset Quotes eld
32685 \begin_inset Quotes erd
32688 footnotes with capital or small Latin letters use
32702 \begin_inset Quotes eld
32706 \begin_inset Quotes erd
32709 footnotes with symbols use
32718 \begin_layout Standard
32719 \begin_inset Note Greyedout
32722 \begin_layout Plain Layout
32727 You can only number 26 footnotes with Latin letters, because this numbering
32728 is limited to single letters.
32734 \begin_inset Newline newline
32738 \begin_inset Note Greyedout
32741 \begin_layout Plain Layout
32746 You can only number 9 footnotes with symbols.
32754 \begin_layout Standard
32755 To return to the default numbering style after you have changed to another
32768 in the command above.
32772 \begin_layout Plain Layout
32788 \begin_layout Standard
32789 \begin_inset VSpace bigskip
32795 \begin_layout Standard
32796 If you want to have footnotes numbered in the scheme
32797 \begin_inset Quotes eld
32801 \begin_inset Quotes erd
32804 , add the following command to your document preamble:
32807 \begin_layout Standard
32812 numberwithin{footnote}{chapter}
32815 \begin_layout Standard
32816 To be able to use the command
32825 \begin_inset space ~
32830 in the document settings the option
32833 \begin_inset space ~
32837 \begin_inset space ~
32841 \begin_inset space ~
32849 \begin_layout Standard
32853 \begin_layout Plain Layout
32857 numberwithin{footnote}{chapter}
32862 This is another example footnote:
32868 \begin_layout Plain Layout
32869 This is a footnote numbered in the scheme
32870 \begin_inset Quotes eld
32874 \begin_inset Quotes erd
32888 \begin_layout Plain Layout
32904 \begin_layout Standard
32905 \begin_inset Note Greyedout
32908 \begin_layout Plain Layout
32919 always prints out the footnote number as arabic number; previous redefinitions
32920 to get non-arabic numbers are overwritten.
32928 \begin_layout Standard
32929 So to get for example the scheme
32930 \begin_inset Quotes eld
32936 \begin_inset Quotes erd
32939 , use this command instead of
32948 \begin_layout Standard
32962 \begin_layout Subsection
32964 \begin_inset Index idx
32967 \begin_layout Plain Layout
32968 Footnotes ! Placement
32976 \begin_layout Standard
32977 If you have several footnotes in one page, they appear without vertical
32978 space between them at the bottom of the page.
32979 To make them more readable you can e.
32980 \begin_inset space \thinspace{}
32984 \begin_inset space \space{}
32988 \begin_inset space \thinspace{}
32991 mm space with the following preamble command:
32994 \begin_layout Standard
33004 \begin_inset Newline newline
33018 \begin_layout Standard
33019 \begin_inset VSpace bigskip
33022 In a two-column document the footnotes appear at the bottom of every column,
33024 \begin_inset space ~
33028 \begin_inset CommandInset ref
33030 reference "fig:Standard-footnote-placement"
33035 If the footnotes should only appear at the bottom of the right column,
33037 \begin_inset space ~
33041 \begin_inset CommandInset ref
33043 reference "fig:Footnote-placement-in"
33047 , use the \SpecialChar LaTeX
33053 \begin_inset Index idx
33056 \begin_layout Plain Layout
33058 -packages ! ftnright
33063 with this command in the document preamble:
33066 \begin_layout Standard
33071 usepackage{ftnright}
33074 \begin_layout Standard
33075 \begin_inset Float figure
33082 \begin_layout Plain Layout
33085 \begin_inset Box Boxed
33095 height_special "totalheight"
33100 backgroundcolor "none"
33103 \begin_layout Plain Layout
33104 \begin_inset Graphics
33105 filename clipart/without_fntright.pdf
33107 scaleBeforeRotation
33119 \begin_layout Plain Layout
33120 \begin_inset Caption Standard
33122 \begin_layout Plain Layout
33123 \begin_inset CommandInset label
33125 name "fig:Standard-footnote-placement"
33129 Standard footnote placement in two-column documents.
33142 \begin_layout Standard
33143 \begin_inset Float figure
33150 \begin_layout Plain Layout
33153 \begin_inset Box Boxed
33163 height_special "totalheight"
33168 backgroundcolor "none"
33171 \begin_layout Plain Layout
33172 \begin_inset Graphics
33173 filename clipart/with_fntright.pdf
33175 scaleBeforeRotation
33187 \begin_layout Plain Layout
33188 \begin_inset Caption Standard
33190 \begin_layout Plain Layout
33191 \begin_inset CommandInset label
33193 name "fig:Footnote-placement-in"
33197 Footnote placement in two-column documents when the \SpecialChar LaTeX
33215 \begin_layout Standard
33216 \begin_inset VSpace bigskip
33219 In some scientific literature it is usual to collect the footnotes and print
33220 them in a separate paragraph at the end of a section, as in Figure
33221 \begin_inset space ~
33225 \begin_inset CommandInset ref
33227 reference "fig:Endnotes"
33232 They are then called
33233 \begin_inset Quotes eld
33237 \begin_inset Quotes erd
33241 \begin_inset Index idx
33244 \begin_layout Plain Layout
33250 To use endnotes instead of footnotes in your document, load in the menu
33253 Document\SpecialChar menuseparator
33254 Settings\SpecialChar menuseparator
33260 \begin_inset space ~
33264 \begin_inset space ~
33270 To insert the collected footnotes, insert the command
33273 \begin_layout Standard
33281 \begin_layout Standard
33282 in \SpecialChar TeX
33283 Code at the end of a section or chapter.
33286 \begin_layout Standard
33287 \begin_inset Float figure
33294 \begin_layout Plain Layout
33297 \begin_inset Box Boxed
33307 height_special "totalheight"
33312 backgroundcolor "none"
33315 \begin_layout Plain Layout
33316 \begin_inset Graphics
33317 filename clipart/endnotes.pdf
33319 scaleBeforeRotation
33331 \begin_layout Plain Layout
33332 \begin_inset Caption Standard
33334 \begin_layout Plain Layout
33335 \begin_inset CommandInset label
33337 name "fig:Endnotes"
33341 Endnotes – footnotes are printed in a separate paragraph at the end of sections
33355 \begin_layout Standard
33356 \begin_inset VSpace medskip
33359 The paragraph heading for the endnotes isn't automatically translated into
33360 the document language, this must be done manually.
33361 The following preamble command translates the default English
33362 \begin_inset Quotes eld
33366 \begin_inset Quotes erd
33370 \begin_inset Quotes eld
33374 \begin_inset Quotes erd
33380 \begin_layout Standard
33387 notesname}{Anmerkungen}
33390 \begin_layout Standard
33391 \begin_inset VSpace medskip
33394 The numbering of endnotes can be changed like the footnote numbering as
33395 described in section
33396 \begin_inset space ~
33400 \begin_inset CommandInset ref
33402 reference "subsec:Footnote-Numbering"
33406 ; just replace the command
33419 To reset the endnote number use the command
33425 as described in section
33426 \begin_inset space ~
33430 \begin_inset CommandInset ref
33432 reference "subsec:Footnote-Numbering"
33436 and replace the command parameter
33447 \begin_layout Standard
33448 For endnotes there is the command
33452 endnotemark[number]
33454 similar to the command
33460 , that is described in section
33461 \begin_inset space ~
33465 \begin_inset CommandInset ref
33467 reference "sec:Footnotes"
33474 \begin_layout Standard
33475 \begin_inset VSpace bigskip
33478 Footnotes can also be placed in the page margin and the footnote text alignment
33479 can be changed, see the \SpecialChar LaTeX
33485 \begin_inset Index idx
33488 \begin_layout Plain Layout
33490 -packages ! footmisc
33496 \begin_inset CommandInset citation
33503 for more information about this.
33506 \begin_layout Standard
33507 For various further footnote formatting issues have a look at \SpecialChar LaTeX
33509 \begin_inset CommandInset citation
33511 key "latexcompanion,latexguide,latexbook"
33522 \begin_inset Index idx
33525 \begin_layout Plain Layout
33527 -packages ! KOMA-Script
33532 document class, you can adjust all footnote settings using class-specific
33534 \begin_inset CommandInset citation
33544 \begin_layout Section
33546 \begin_inset Index idx
33549 \begin_layout Plain Layout
33550 Notes ! Margin Notes
33558 \begin_layout Standard
33559 Margin notes look and behave in \SpecialChar LyX
33561 They are inserted via the menu
33563 Insert\SpecialChar menuseparator
33565 \begin_inset space ~
33570 or the toolbar button
33573 arg "marginalnote-insert"
33587 \begin_inset Quotes eld
33591 \begin_inset Quotes erd
33594 appears where you can enter the text of the margin note.
33597 \begin_layout Standard
33598 At the side is an example margin note.
33603 \begin_inset Marginal
33606 \begin_layout Plain Layout
33607 This is a margin note.
33615 \begin_layout Standard
33616 Margin notes appear at the right side in single-sided documents.
33617 In double-sided documents they appear in the outer margin – left on even
33618 pages, right on odd pages.
33619 The text of margin notes is aligned opposite to the outer margin – right-aligne
33620 d when the note appears in the left margin.
33621 The first line of the margin note is placed at the position of the text
33622 line where it is inserted in the document.
33625 \begin_layout Standard
33626 \begin_inset VSpace bigskip
33629 To place the margin note in the inner margin, add the command
33632 \begin_layout Standard
33640 \begin_layout Standard
33641 in \SpecialChar TeX
33642 Code before a margin note.
33643 The new placement is valid for all subsequent margin notes.
33648 \begin_layout Plain Layout
33658 \begin_inset Marginal
33661 \begin_layout Plain Layout
33662 This is a margin note in the inner margin.
33670 \begin_inset Newline newline
33676 \begin_inset Note Greyedout
33679 \begin_layout Plain Layout
33684 There is often not enough space in the inner margin so that the notes are
33685 not correctly displayed in the output.
33693 \begin_layout Standard
33694 To return to the default placement insert the command
33697 \begin_layout Standard
33705 \begin_layout Standard
33706 in \SpecialChar TeX
33711 \begin_layout Plain Layout
33721 \begin_inset Note Greyedout
33724 \begin_layout Plain Layout
33729 The command is ignored when it is within a paragraph where also the command
33744 \begin_layout Standard
33745 \begin_inset VSpace bigskip
33752 \begin_inset Marginal
33755 \begin_layout Plain Layout
33756 AVeryLongMarginParWord that isn't hyphenated.
33764 Similar to the case described in section
33765 \begin_inset space ~
33769 \begin_inset CommandInset ref
33771 reference "subsec:Multiple-Lines-in"
33775 , long words cannot be hyphenated when they are the first word in a margin
33777 To avoid this, insert 0
33778 \begin_inset space \thinspace{}
33781 pt horizontal space before the word
33786 \begin_inset Marginal
33789 \begin_layout Plain Layout
33790 \begin_inset space \hspace*{}
33794 AVeryLongMarginParWord that is hyphenated.
33802 \begin_layout Standard
33803 \begin_inset VSpace bigskip
33809 \begin_layout Standard
33810 \begin_inset Note Greyedout
33813 \begin_layout Plain Layout
33818 Margin notes can normally not be used inside tables, floats, and footnotes.
33826 \begin_layout Standard
33827 \begin_inset VSpace bigskip
33833 \begin_layout Standard
33837 \begin_layout Plain Layout
33847 \begin_inset Note Note
33850 \begin_layout Plain Layout
33851 The following section will only be displayed when the \SpecialChar LaTeX
33864 \begin_layout Standard
33865 This restriction can be evaded by using the \SpecialChar LaTeX
33871 \begin_inset Index idx
33874 \begin_layout Plain Layout
33876 -packages ! marginnote
33882 By adding these two lines to your document preamble, the command used by
33884 for margin notes is redefined to use the command provided by the
33891 \begin_layout Standard
33896 usepackage{marginnote}
33897 \begin_inset Newline newline
33909 \begin_layout Standard
33910 This is also used in this document because
33914 has another useful feature: You can set a vertical offset for the note.
33915 This is often needed when too many margin notes are too close together
33916 or for a better page layout.
33917 The offset is set in \SpecialChar LyX
33918 as \SpecialChar TeX
33919 Code directly after the margin note in the scheme
33922 \begin_layout Standard
33928 \begin_layout Standard
33929 where the offset is a length with one of the units listed in Table
33930 \begin_inset space ~
33934 \begin_inset CommandInset ref
33936 reference "tab:Units"
33941 A negative value shifts the note up, a positive value shifts it down.
33945 For example the margin note beside this text line is shifted up 1.5
33946 \begin_inset space \thinspace{}
33949 cm with the \SpecialChar TeX
33951 \begin_inset Quotes eld
33961 \begin_inset Quotes erd
33965 \begin_inset Marginal
33968 \begin_layout Plain Layout
33969 This margin note is shifted up 1.5
33970 \begin_inset space \thinspace{}
33973 cm from its original position.
33985 \begin_layout Plain Layout
33995 \begin_layout Standard
33996 \begin_inset VSpace medskip
34003 you can also change the alignment of the text in the margin note.
34004 For example the commands
34007 \begin_layout Standard
34014 raggedleftmarginnote}{
34017 \begin_inset Newline newline
34024 raggedrightmarginnote}{
34029 \begin_layout Standard
34030 set the alignment to centered.
34035 raggedleftmarginnote
34037 denotes margin notes that appear at the left side.
34044 \begin_layout Plain Layout
34050 raggedleftmarginnote}{
34055 \begin_layout Plain Layout
34061 raggedrightmarginnote}{
34069 \begin_inset Marginal
34072 \begin_layout Plain Layout
34073 The text of this margin note is centered.
34084 \begin_layout Standard
34091 raggedleftmarginnote}{
34094 \begin_inset Newline newline
34101 raggedrightmarginnote}{
34110 \begin_layout Plain Layout
34116 raggedleftmarginnote}{
34121 \begin_layout Plain Layout
34127 raggedrightmarginnote}{
34137 \begin_layout Standard
34138 \begin_inset VSpace medskip
34141 For the other features of
34145 refer to its documentation
34146 \begin_inset CommandInset citation
34156 \begin_layout Standard
34157 \begin_inset VSpace bigskip
34160 You can adjust the layout of margin notes by changing its definition.
34161 To create for example a header for all margin notes with the underlined,
34162 sans-serif, and bold header text
34163 \begin_inset Quotes eld
34175 \begin_inset Quotes erd
34178 , add this to your document preamble:
34181 \begin_layout Standard
34191 \begin_inset Newline newline
34201 \begin_inset Newline newline
34205 \begin_inset Phantom HPhantom
34208 \begin_layout Plain Layout
34211 \begin_inset space ~
34227 underbar{Attention!}}}%
34228 \begin_inset Newline newline
34232 \begin_inset Phantom HPhantom
34235 \begin_layout Plain Layout
34238 \begin_inset space ~
34255 \begin_layout Standard
34262 \begin_layout Plain Layout
34273 \begin_layout Plain Layout
34284 \begin_layout Plain Layout
34292 underbar{Attention!}}}%
34295 \begin_layout Plain Layout
34309 \begin_inset Marginal
34312 \begin_layout Plain Layout
34313 This is a margin note with a defined heading.
34325 \begin_layout Plain Layout
34339 \begin_layout Plain Layout
34356 \begin_inset Note Note
34359 \begin_layout Plain Layout
34360 The margin note format is changed only for this example.
34368 \begin_layout Standard
34372 \begin_layout Plain Layout
34382 \begin_inset Note Note
34385 \begin_layout Plain Layout
34386 The following will be displayed when the \SpecialChar LaTeX
34399 \begin_layout Standard
34400 You need to install the \SpecialChar LaTeX
34405 to see the following part of this section in the output.
34408 \begin_layout Standard
34412 \begin_layout Plain Layout
34424 \begin_layout Chapter
34428 \begin_layout Section
34430 \begin_inset Index idx
34433 \begin_layout Plain Layout
34434 Boxes ! Introduction
34442 \begin_layout Standard
34443 Boxes are used to format a block of text.
34444 Boxes can be used to write documents with multiple languages, see section
34445 \begin_inset space ~
34449 \begin_inset CommandInset ref
34451 reference "sec:Minipages"
34455 , to frame texts, see section
34456 \begin_inset space ~
34460 \begin_inset CommandInset ref
34462 reference "sec:Decoration"
34466 , to prevent words from being hyphenated, see section
34467 \begin_inset space ~
34471 \begin_inset CommandInset ref
34473 reference "sec:Prevent-Hyphenation"
34477 , to align text, see section
34478 \begin_inset space ~
34482 \begin_inset CommandInset ref
34484 reference "subsec:Vertical-Alignment"
34488 , or to set the background color of texts, see section
34489 \begin_inset space ~
34493 \begin_inset CommandInset ref
34495 reference "sec:Colored-Boxes"
34502 \begin_layout Standard
34503 Boxes can be inserted with the menu
34505 Insert\SpecialChar menuseparator
34508 or the toolbar button
34511 arg "box-insert Frameless"
34515 A grey box with the label
34520 \begin_inset Graphics
34521 filename clipart/BoxInsetDefault.png
34523 scaleBeforeRotation
34528 The box type can be specified by right-clicking on the box and selecting
34534 The box dialog offers the
34537 \begin_inset space ~
34559 is the default for new boxes and is explained in section
34560 \begin_inset space ~
34564 \begin_inset CommandInset ref
34566 reference "sec:Minipages"
34574 is described in section
34575 \begin_inset space ~
34579 \begin_inset CommandInset ref
34581 reference "sec:Parboxes"
34590 \begin_inset CommandInset ref
34592 reference "sec:Prevent-Hyphenation"
34599 \begin_layout Standard
34600 Boxes are not numbered and can therefore not be referenced like floats or
34604 \begin_layout Standard
34605 \begin_inset Note Greyedout
34608 \begin_layout Plain Layout
34613 Boxes must not be the item in an
34629 \begin_layout Standard
34630 \begin_inset Note Greyedout
34633 \begin_layout Plain Layout
34638 For an unknown reason you can only set the
34641 \begin_inset space ~
34650 when you use a framed box.
34654 \begin_inset space ~
34659 type and without frames are explained in section
34660 \begin_inset space ~
34664 \begin_inset CommandInset ref
34666 reference "sec:Prevent-Hyphenation"
34678 \begin_layout Section
34680 \begin_inset CommandInset label
34682 name "sec:Box-Dialog"
34687 \begin_inset Index idx
34690 \begin_layout Plain Layout
34699 \begin_layout Subsection
34701 \begin_inset Index idx
34704 \begin_layout Plain Layout
34713 \begin_layout Standard
34714 In the box dialog you can adjust the box geometry in the fields
34723 The available units for the geometry are explained in Table
34724 \begin_inset space ~
34728 \begin_inset CommandInset ref
34730 reference "tab:Units"
34739 offers the following additional sizes:
34742 \begin_layout Description
34743 Depth This is the plain text
34744 \begin_inset Quotes eld
34748 \begin_inset Quotes erd
34752 It ignores the total depth when there are multiple text lines in the box:
34753 \begin_inset Newline newline
34757 \begin_inset Newline newline
34761 \begin_inset Newline newline
34765 \begin_inset Box Boxed
34775 height_special "depth"
34780 backgroundcolor "none"
34783 \begin_layout Plain Layout
34785 Box height set to 1
34786 \begin_inset space \thinspace{}
34795 \begin_inset Newline newline
34799 \begin_inset Newline newline
34805 \begin_layout Description
34806 Height This is the height of the text that is inside the box.
34808 \begin_inset space \thinspace{}
34812 \begin_inset space \space{}
34815 2 for this size will set the box height to 2
34816 \begin_inset space ~
34819 times the text height:
34820 \begin_inset Box Boxed
34830 height_special "height"
34835 backgroundcolor "none"
34838 \begin_layout Plain Layout
34840 Box height set to 2
34841 \begin_inset space \thinspace{}
34852 \begin_layout Description
34854 \begin_inset space ~
34857 Height This is the Height
34858 \begin_inset space \thinspace{}
34862 \begin_inset space \thinspace{}
34866 \begin_inset Box Boxed
34876 height_special "totalheight"
34881 backgroundcolor "none"
34884 \begin_layout Plain Layout
34886 Box height set to 1
34887 \begin_inset space \thinspace{}
34891 \begin_inset space ~
34902 \begin_layout Description
34903 Width This sets the width of the box as height:
34904 \begin_inset Box Boxed
34914 height_special "width"
34919 backgroundcolor "none"
34922 \begin_layout Plain Layout
34924 Box height set to 1
34925 \begin_inset space \thinspace{}
34936 \begin_layout Subsection
34938 \begin_inset Index idx
34941 \begin_layout Plain Layout
34950 \begin_layout Standard
34951 When you have chosen an
34954 \begin_inset space ~
34959 , the vertical box alignment can be:
34962 \begin_layout Description
34963 Top This is an example text line.
34965 \begin_inset Box Boxed
34975 height_special "totalheight"
34980 backgroundcolor "none"
34983 \begin_layout Plain Layout
34985 This box is top-aligned.
34990 This is an example text line.
34993 \begin_layout Description
34994 Middle This is an example text line.
34996 \begin_inset Box Boxed
35006 height_special "totalheight"
35011 backgroundcolor "none"
35014 \begin_layout Plain Layout
35016 This box is middle-aligned.
35021 This is an example text line.
35024 \begin_layout Description
35025 Bottom This is an example text line.
35027 \begin_inset Box Boxed
35037 height_special "totalheight"
35042 backgroundcolor "none"
35045 \begin_layout Plain Layout
35047 This box is bottom-aligned.
35052 This is an example text line.
35055 \begin_layout Standard
35056 \begin_inset Note Greyedout
35059 \begin_layout Plain Layout
35064 The vertical box alignment can be lost in the output when you have two
35065 boxes in a line and one has e.
35066 \begin_inset space \thinspace{}
35070 \begin_inset space \space{}
35073 a shadow and the other one not.
35081 \begin_layout Standard
35082 The horizontal box alignment can be set via \SpecialChar LyX
35083 's paragraph dialog when you
35084 set the box into its own paragraph.
35087 \begin_layout Standard
35088 \begin_inset VSpace bigskip
35091 When you have chosen an
35094 \begin_inset space ~
35099 , the box content can be aligned vertically to:
35102 \begin_layout Description
35103 top This is an example text line.
35105 \begin_inset Box Boxed
35115 height_special "totalheight"
35120 backgroundcolor "none"
35123 \begin_layout Plain Layout
35125 This box text is top-aligned.
35130 This is an example text line.
35133 \begin_layout Description
35134 middle This is an example text line.
35136 \begin_inset Box Boxed
35146 height_special "totalheight"
35151 backgroundcolor "none"
35154 \begin_layout Plain Layout
35156 This box text is middle-aligned.
35161 This is an example text line.
35164 \begin_layout Description
35165 bottom This is an example text line.
35167 \begin_inset Box Boxed
35177 height_special "totalheight"
35182 backgroundcolor "none"
35185 \begin_layout Plain Layout
35187 This box text is bottom-aligned.
35192 This is an example text line.
35195 \begin_layout Description
35196 stretch This is an example text line.
35198 \begin_inset Box Boxed
35208 height_special "totalheight"
35213 backgroundcolor "none"
35216 \begin_layout Plain Layout
35221 \begin_layout Plain Layout
35226 \begin_layout Plain Layout
35233 This is an example text line.
35236 \begin_layout Standard
35237 To stretch the box content, it must consist of more than one paragraph.
35238 In the example above every text line is in an own paragraph.
35241 \begin_layout Standard
35242 \begin_inset VSpace bigskip
35245 To align the box content horizontally you can use \SpecialChar LyX
35246 's paragraph dialog when
35250 \begin_inset space ~
35258 \begin_layout Standard
35260 \begin_inset Box Boxed
35270 height_special "totalheight"
35275 backgroundcolor "none"
35278 \begin_layout Plain Layout
35283 \begin_layout Plain Layout
35288 \begin_layout Plain Layout
35298 \begin_layout Standard
35299 If you have not set an
35302 \begin_inset space ~
35307 , you can align the box content horizontally in the box dialog.
35310 \begin_layout Standard
35312 \begin_inset Box Boxed
35322 height_special "totalheight"
35327 backgroundcolor "none"
35330 \begin_layout Plain Layout
35331 This box text is horizontally stretched.
35339 \begin_layout Subsection
35341 \begin_inset CommandInset label
35343 name "sec:Decoration"
35348 \begin_inset Index idx
35351 \begin_layout Plain Layout
35360 \begin_layout Standard
35361 The type of the box can be specified in the box dialog in the drop-down
35367 The following types are possible:
35370 \begin_layout Description
35372 \begin_inset space ~
35375 frame Nothing is drawn.
35378 \begin_layout Description
35380 \begin_inset space ~
35384 \begin_inset space ~
35387 frame This draws a rectangular frame around the box.
35388 The frame line thickness can be specified.
35390 \begin_inset Box Boxed
35400 height_special "totalheight"
35405 backgroundcolor "none"
35408 \begin_layout Plain Layout
35418 \begin_layout Description
35420 \begin_inset space ~
35424 \begin_inset space ~
35427 thin This draws an oval frame around the box.
35428 The frame line thickness has the size 0.4
35429 \begin_inset space \thinspace{}
35434 \begin_inset Box ovalbox
35444 height_special "totalheight"
35449 backgroundcolor "none"
35452 \begin_layout Plain Layout
35462 \begin_layout Description
35464 \begin_inset space ~
35468 \begin_inset space ~
35471 thick This draws an oval frame around the box.
35472 The frame line thickness has the size 0.8
35473 \begin_inset space \thinspace{}
35478 \begin_inset Box Ovalbox
35488 height_special "totalheight"
35493 backgroundcolor "none"
35496 \begin_layout Plain Layout
35506 \begin_layout Description
35508 \begin_inset space ~
35511 shadow This draws a rectangular frame with a shadow around the box.
35512 The frame line thickness and the shadow can be specified.
35514 \begin_inset Box Shadowbox
35524 height_special "totalheight"
35529 backgroundcolor "none"
35532 \begin_layout Plain Layout
35542 \begin_layout Description
35544 \begin_inset space ~
35547 background This draws a box with a red background.
35548 Unlike colored boxes
35552 \begin_layout Plain Layout
35554 \begin_inset space \thinspace{}
35558 \begin_inset CommandInset ref
35560 reference "sec:Colored-Boxes"
35569 , it always uses the whole column width and the box is set as its own paragraph.
35571 \begin_inset Box Shaded
35581 height_special "totalheight"
35586 backgroundcolor "none"
35589 \begin_layout Plain Layout
35590 Shaded background box
35598 \begin_layout Description
35600 \begin_inset space ~
35604 \begin_inset space ~
35607 frame This draws a double-line rectangular frame around the box.
35608 The line thickness of the inner frame is 0.75
35609 \begin_inset space \thinspace{}
35613 \begin_inset space ~
35616 thickness, the thickness of the outer frame is 1.5
35617 \begin_inset space \thinspace{}
35621 \begin_inset space ~
35625 The distance between the lines is 1.5
35626 \begin_inset space \thinspace{}
35630 \begin_inset space ~
35634 \begin_inset space \thinspace{}
35638 \begin_inset space \thinspace{}
35642 \begin_inset space \thinspace{}
35647 \begin_inset Box Doublebox
35657 height_special "totalheight"
35662 backgroundcolor "none"
35665 \begin_layout Plain Layout
35667 Double rectangular box
35675 \begin_layout Standard
35676 \begin_inset VSpace bigskip
35680 's box label will reflect the different frame types.
35681 To be able to use all types, the \SpecialChar LaTeX
35687 \begin_inset Index idx
35690 \begin_layout Plain Layout
35692 -packages ! fancybox
35700 \begin_layout Standard
35701 \begin_inset VSpace bigskip
35704 When you use the decoration
35706 simple rectangular frame
35708 and no inner box, you can allow page breaks within a box.
35709 Note that then, unlike other framed boxes, the frame always uses the whole
35710 column width and the box is set as its own paragraph:
35711 \begin_inset Box Framed
35721 height_special "totalheight"
35726 backgroundcolor "none"
35729 \begin_layout Plain Layout
35730 Allow page break box
35738 \begin_layout Section
35740 \begin_inset Index idx
35743 \begin_layout Plain Layout
35744 Boxes ! Customization
35752 \begin_layout Standard
35753 The diameter of the round corners of the oval boxes can be set with the
35764 \begin_layout Standard
35772 \begin_layout Standard
35773 sets the diameter to 1
35774 \begin_inset space \thinspace{}
35781 \begin_layout Standard
35789 \begin_layout Standard
35790 sets the diameter to
35793 \begin_inset space \thinspace{}
35797 \begin_inset space \thinspace{}
35800 minimum(width and height of box)
35812 \begin_layout Standard
35816 \begin_layout Plain Layout
35826 \begin_inset Box Ovalbox
35836 height_special "totalheight"
35841 backgroundcolor "none"
35844 \begin_layout Plain Layout
35853 \begin_inset space \thinspace{}
35857 \begin_inset space \thinspace{}
35861 \begin_inset space \thinspace{}
35873 \begin_layout Plain Layout
35885 \begin_layout Standard
35886 \begin_inset VSpace bigskip
35892 \begin_layout Standard
35893 The default background color red of
35897 boxes can either be changed locally with the command
35901 definecolor{shadecolor}
35903 or globally with the menu
35905 Tools\SpecialChar menuseparator
35906 Preferences\SpecialChar menuseparator
35907 Colors\SpecialChar menuseparator
35909 \begin_inset space ~
35921 command is explained in section
35922 \begin_inset space ~
35926 \begin_inset CommandInset ref
35928 reference "sec:Colored-Tables"
35936 \begin_layout Plain Layout
35943 requires the \SpecialChar LaTeX
35948 in the preamble, see section
35949 \begin_inset space ~
35953 \begin_inset CommandInset ref
35955 reference "sec:Colored-Boxes"
35964 For example the appearance of the following shaded background box is set
35965 with the \SpecialChar TeX
35969 \begin_layout Standard
35974 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35977 \begin_layout Standard
35981 \begin_layout Plain Layout
35985 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35991 \begin_inset Box Shaded
36001 height_special "totalheight"
36006 backgroundcolor "none"
36009 \begin_layout Plain Layout
36012 This is yellow text in a
36022 box with dark green background.
36031 \begin_layout Plain Layout
36035 definecolor{shadecolor}{rgb}{1,0,0}
36043 \begin_layout Standard
36044 \begin_inset VSpace bigskip
36047 Manually changed sizes and colors are valid for all boxes following the
36048 commands that change them.
36051 \begin_layout Section
36053 \begin_inset CommandInset label
36055 name "sec:Minipages"
36060 \begin_inset Index idx
36063 \begin_layout Plain Layout
36072 \begin_layout Standard
36073 Minipages are treated by \SpecialChar LaTeX
36074 as pages within pages and can therefore for example
36075 have their own footnotes.
36078 \begin_layout Standard
36079 Minipages are useful when you write documents with different languages.
36082 \begin_layout Standard
36083 Below are two example minipages side by side.
36084 Their width is set to 45
36085 \begin_inset space \thinspace{}
36088 col% and they are separated by a horizontal fill, that was inserted via
36091 Insert\SpecialChar menuseparator
36093 \begin_inset space ~
36096 Formatting\SpecialChar menuseparator
36098 \begin_inset space ~
36104 \begin_inset Newpage newpage
36110 \begin_layout Standard
36111 \begin_inset Box Frameless
36121 height_special "totalheight"
36126 backgroundcolor "none"
36129 \begin_layout Plain Layout
36132 Dies ist ein deutscher Text.
36133 Dies ist ein deutscher Text.
36134 Dies ist ein deutscher Text.
36135 Dies ist ein deutscher Text.
36136 Dies ist ein deutscher Text.
36137 Dies ist ein deutscher Text.
36138 Dies ist ein deutscher Text.
36139 Dies ist ein deutscher Text.
36140 Dies ist ein deutscher Text.
36141 Dies ist ein deutscher Text.
36142 Dies ist ein deutscher Text.
36143 Dies ist ein deutscher Text.
36144 Dies ist ein deutscher Text
36148 \begin_layout Plain Layout
36151 Dies ist eine deutsche Fußnote.
36157 Dies ist ein deutscher Text.
36158 Dies ist ein deutscher Text.
36164 \begin_inset space \hfill{}
36168 \begin_inset Box Frameless
36178 height_special "totalheight"
36183 backgroundcolor "none"
36186 \begin_layout Plain Layout
36187 This is an English Text.
36188 This is an English Text.
36189 This is an English Text.
36190 This is an English Text.
36191 This is an English Text.
36192 This is an English Text.
36193 This is an English Text.
36194 This is an English Text.
36195 This is an English Text.
36196 This is an English Text.
36197 This is an English Text.
36198 This is an English Text.
36199 This is an English Text.
36200 This is an English Text.
36201 This is an English Text.
36202 This is an English Text.
36206 \begin_layout Plain Layout
36207 This is an English footnote.
36212 This is an English Text.
36220 \begin_layout Standard
36221 \begin_inset VSpace bigskip
36224 The document-wide paragraph settings are ignored within minipages.
36225 That means that there will be no space between paragraphs in minipages
36226 although you set it to e.
36227 \begin_inset space \thinspace{}
36231 \begin_inset space \space{}
36238 in the document settings.
36241 \begin_layout Standard
36242 Minipages can also be used to set a background color for text parts, see
36244 \begin_inset space ~
36248 \begin_inset CommandInset ref
36250 reference "sec:Colored-Boxes"
36257 \begin_layout Standard
36258 \begin_inset Note Greyedout
36261 \begin_layout Plain Layout
36266 You cannot have floats or margin notes inside minipages but minipages can
36267 be used inside tables, floats, and other boxes.
36275 \begin_layout Standard
36276 \begin_inset VSpace bigskip
36282 \begin_layout Standard
36284 has also basic support for minipages whose size is automatically determined
36285 by the width of their contents, via the module
36287 Variable-width Minipages
36290 The \SpecialChar LyX
36293 varwidth-floats-side-by-side
36295 gives examples of variable-width minipages used for placing two floats
36299 \begin_layout Section
36301 \begin_inset CommandInset label
36303 name "sec:Parboxes"
36308 \begin_inset Index idx
36311 \begin_layout Plain Layout
36320 \begin_layout Standard
36321 Parboxes are very similar to minipages with the difference that they cannot
36325 \begin_layout Standard
36327 \begin_inset Box Frameless
36337 height_special "totalheight"
36342 backgroundcolor "none"
36345 \begin_layout Plain Layout
36346 This a text within a parbox.
36347 This a text within a parbox.
36350 \begin_layout Plain Layout
36351 This footnote won't appear:
36355 \begin_layout Plain Layout
36356 This footnote is inside a parbox and will therefore not appear.
36369 \begin_layout Section
36370 Boxes for Words and Characters
36371 \begin_inset Index idx
36374 \begin_layout Plain Layout
36375 Boxes ! for Characters
36383 \begin_layout Subsection
36384 Prevent Hyphenation
36385 \begin_inset CommandInset label
36387 name "sec:Prevent-Hyphenation"
36392 \begin_inset Index idx
36395 \begin_layout Plain Layout
36396 Boxes ! to Prevent Hyphenation
36404 \begin_layout Standard
36405 You can use the box type
36409 to prevent words or text from being hyphenated.
36410 \begin_inset Newline newline
36413 Here is an example text:
36416 \begin_layout Standard
36417 This line is an example to show how you can prevent the hyphenation of
36418 \begin_inset Quotes eld
36422 \begin_inset Quotes erd
36428 \begin_layout Standard
36429 To prevent the hyphenation of the word
36430 \begin_inset Quotes eld
36434 \begin_inset Quotes erd
36437 , put the word into a box, set the
36440 \begin_inset space ~
36449 and use no explicit width.
36452 \begin_layout Standard
36453 This is the result:
36456 \begin_layout Standard
36457 This line is an example to show how you can prevent the hyphenation of
36458 \begin_inset Box Frameless
36468 height_special "totalheight"
36473 backgroundcolor "none"
36476 \begin_layout Plain Layout
36477 \begin_inset Quotes eld
36481 \begin_inset Quotes erd
36492 \begin_layout Standard
36493 You can alternatively set the command
36494 \begin_inset Quotes eld
36504 \begin_inset Quotes grd
36507 as \SpecialChar TeX
36508 Code directly before the word:
36511 \begin_layout Standard
36512 This line is an example to show how you can prevent the hyphenation of
36513 \begin_inset Quotes eld
36520 \begin_layout Plain Layout
36530 \begin_inset Quotes erd
36536 \begin_layout Standard
36537 Of course the word now protrudes over the side margin.
36538 To avoid this, add via the menu
36540 Insert\SpecialChar menuseparator
36541 Formatting\SpecialChar menuseparator
36543 \begin_inset space ~
36547 \begin_inset space ~
36555 arg "newline-insert newline"
36558 ) a line break before the word:
36561 \begin_layout Standard
36562 This line is an example to show how you can prevent the hyphenation of
36563 \begin_inset Newline newline
36567 \begin_inset Box Frameless
36577 height_special "totalheight"
36582 backgroundcolor "none"
36585 \begin_layout Plain Layout
36586 \begin_inset Quotes eld
36590 \begin_inset Quotes erd
36601 \begin_layout Subsection
36603 \begin_inset CommandInset label
36605 name "subsec:Vertical-Alignment"
36610 \begin_inset Index idx
36613 \begin_layout Plain Layout
36614 Boxes ! for Vertical Alignment
36620 \begin_inset Index idx
36623 \begin_layout Plain Layout
36632 \begin_layout Standard
36633 With the help of the command
36639 you can align words, characters or other boxes vertically relative to the
36647 is used with the following scheme:
36650 \begin_layout Standard
36655 raisebox{lift}[height][depth]{box content}
36658 \begin_layout Standard
36659 The lift can be a positive value to raise the box or a negative value to
36663 \begin_layout Standard
36664 To align for example the word
36665 \begin_inset Quotes eld
36669 \begin_inset Quotes erd
36672 so that the bottom of the
36673 \begin_inset Quotes eld
36677 \begin_inset Quotes erd
36681 \begin_inset Quotes eld
36685 \begin_inset Quotes erd
36688 is at the baseline, insert the command
36691 \begin_layout Standard
36701 \begin_layout Standard
36702 in \SpecialChar TeX
36703 Code before the word.
36704 After the word insert a closing brace
36705 \begin_inset Quotes eld
36713 \begin_inset Quotes erd
36716 in \SpecialChar TeX
36718 \begin_inset Newline newline
36721 This is the result:
36724 \begin_layout Standard
36725 This is a text line with the word
36729 \begin_layout Plain Layout
36741 \begin_inset Quotes eld
36745 \begin_inset Quotes erd
36752 \begin_layout Plain Layout
36762 \begin_layout Standard
36763 \begin_inset VSpace bigskip
36766 When you raise or lower characters in a line, the line distance will be
36770 \begin_layout Standard
36771 This is a text line with the word
36775 \begin_layout Plain Layout
36787 \begin_inset Quotes eld
36791 \begin_inset Quotes erd
36798 \begin_layout Plain Layout
36806 \begin_inset Newline newline
36809 This is a text line with the word
36813 \begin_layout Plain Layout
36823 \begin_inset Quotes eld
36827 \begin_inset Quotes erd
36834 \begin_layout Plain Layout
36844 \begin_layout Standard
36845 If you want to prevent this for a certain reason, set the box height to
36850 \begin_layout Standard
36860 \begin_layout Standard
36861 This is a text line with the word
36865 \begin_layout Plain Layout
36877 \begin_inset Quotes eld
36881 \begin_inset Quotes erd
36888 \begin_layout Plain Layout
36896 \begin_inset Newline newline
36900 \begin_inset Newline newline
36903 This is a text line with the word
36907 \begin_layout Plain Layout
36911 raisebox{0.5cm}[0pt]{
36917 \begin_inset Quotes eld
36921 \begin_inset Quotes erd
36928 \begin_layout Plain Layout
36938 \begin_layout Section
36940 \begin_inset CommandInset label
36942 name "sec:Colored-Boxes"
36947 \begin_inset Index idx
36950 \begin_layout Plain Layout
36959 \begin_layout Standard
36960 To color the background of a box just select the color you like in the box
36962 This is for example a box with orange background:
36963 \begin_inset Box Frameless
36973 height_special "totalheight"
36978 backgroundcolor "orange"
36981 \begin_layout Plain Layout
36982 Box with orange background
36990 \begin_layout Standard
36991 If you use the decoration
36994 \begin_inset space ~
36998 \begin_inset space ~
37003 you can set a frame color.
37004 In this case you must also specify a background color (LyX sets white as
37006 Here is an example:
37007 \begin_inset Box Boxed
37017 height_special "totalheight"
37022 backgroundcolor "yellow"
37025 \begin_layout Plain Layout
37026 Box with teal frame color and yellow background color
37034 \begin_layout Standard
37035 \begin_inset VSpace bigskip
37038 Of course you can also have colored text inside a colored box:
37039 \begin_inset Newline newline
37043 \begin_inset Box Boxed
37053 height_special "totalheight"
37058 backgroundcolor "magenta"
37061 \begin_layout Plain Layout
37064 This is colored text within a colored, framed box
37072 \begin_layout Standard
37073 \begin_inset VSpace bigskip
37079 \begin_layout Standard
37080 If you need another color than the predefined ones, you can define your
37081 own color as described in section
37082 \begin_inset space ~
37086 \begin_inset CommandInset ref
37088 reference "sec:Colored-Tables"
37093 To use your own color you must typeset the box by using TeX code:
37096 \begin_layout Standard
37097 Colored boxes without frame are created with the command
37104 It has the following scheme:
37107 \begin_layout Standard
37112 colorbox{color}{box content}
37115 \begin_layout Standard
37116 The box content can also be a box and colored boxes can also be within other
37119 \begin_inset space \thinspace{}
37123 \begin_inset space \space{}
37126 a darkgreen background for a word, insert the command
37129 \begin_layout Standard
37134 colorbox{darkgreen}{
37137 \begin_layout Standard
37138 before the word in \SpecialChar TeX
37140 After the word insert a closing brace
37141 \begin_inset Quotes eld
37149 \begin_inset Quotes erd
37152 in \SpecialChar TeX
37154 \begin_inset Newline newline
37157 This is the result:
37160 \begin_layout Standard
37161 This is a line where the word
37165 \begin_layout Plain Layout
37169 colorbox{darkgreen}{
37175 \begin_inset Quotes eld
37179 \begin_inset Quotes erd
37186 \begin_layout Plain Layout
37193 has a darkgreen background.
37196 \begin_layout Standard
37197 Framed, colored boxes are created with the command
37204 It has the following scheme:
37207 \begin_layout Standard
37212 fcolorbox{frame color}{box color}{box content}
37215 \begin_layout Section
37216 Rotated and Scaled Boxes
37219 \begin_layout Standard
37220 To use the boxes described in this section, the module
37224 must be loaded in the document settings.
37227 \begin_layout Standard
37228 \begin_inset Note Greyedout
37231 \begin_layout Plain Layout
37236 Not all DVI viewers are able to display rotated or scaled material.
37244 \begin_layout Standard
37245 \begin_inset Note Greyedout
37248 \begin_layout Plain Layout
37253 Floats are not allowed inside a rotated or scaled box.
37261 \begin_layout Subsection
37263 \begin_inset Index idx
37266 \begin_layout Plain Layout
37273 \begin_inset Index idx
37276 \begin_layout Plain Layout
37285 \begin_layout Standard
37286 To rotate material, you can put it into a
37291 Such a box is inserted via the menu
37293 Insert\SpecialChar menuseparator
37294 Custom Insets\SpecialChar menuseparator
37300 \begin_layout Standard
37301 The rotation origin can be specified via the inset
37307 Insert\SpecialChar menuseparator
37315 The following positions are possible:
37335 (top), along with meaningful combinations of the four base positions.
37340 means that the rotation origin is at the top left corner of the box.
37341 When no rotation origin is specified, the position
37346 The rotation angle is a number that can be negative that specifies the
37348 The rotation direction is counterclockwise.
37351 \begin_layout Standard
37352 In the following example
37356 was inserted to the
37364 was inserted to the
37371 \begin_layout Standard
37373 \begin_inset Flex Rotatebox
37376 \begin_layout Plain Layout
37377 \begin_inset Argument 1
37380 \begin_layout Plain Layout
37387 \begin_inset Argument 2
37390 \begin_layout Plain Layout
37404 \begin_layout Standard
37405 The box content can also be another box or an inline formula:
37408 \begin_layout Standard
37410 \begin_inset Flex Rotatebox
37413 \begin_layout Plain Layout
37414 \begin_inset Argument 1
37417 \begin_layout Plain Layout
37424 \begin_inset Argument 2
37427 \begin_layout Plain Layout
37434 \begin_inset Box Doublebox
37444 height_special "totalheight"
37449 backgroundcolor "none"
37452 \begin_layout Plain Layout
37464 \begin_inset Flex Rotatebox
37467 \begin_layout Plain Layout
37468 \begin_inset Argument 1
37471 \begin_layout Plain Layout
37478 \begin_inset Argument 2
37481 \begin_layout Plain Layout
37488 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37499 \begin_layout Standard
37500 or an image or table:
37503 \begin_layout Standard
37505 \begin_inset Flex Rotatebox
37508 \begin_layout Plain Layout
37509 \begin_inset Argument 1
37512 \begin_layout Plain Layout
37519 \begin_inset Argument 2
37522 \begin_layout Plain Layout
37529 \begin_inset Graphics
37530 filename clipart/Star-structure.pdf
37541 with a rotated image
37542 \begin_inset Flex Rotatebox
37545 \begin_layout Plain Layout
37546 \begin_inset Argument 2
37549 \begin_layout Plain Layout
37556 \begin_inset Tabular
37557 <lyxtabular version="3" rows="2" columns="2">
37558 <features tabularvalignment="middle">
37559 <column alignment="center" valignment="top">
37560 <column alignment="center" valignment="top">
37562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37565 \begin_layout Plain Layout
37571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37574 \begin_layout Plain Layout
37582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37585 \begin_layout Plain Layout
37591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37594 \begin_layout Plain Layout
37611 \begin_inset Index idx
37614 \begin_layout Plain Layout
37621 \begin_inset Index idx
37624 \begin_layout Plain Layout
37625 Table Customization ! Rotating
37633 \begin_layout Standard
37634 \begin_inset Note Greyedout
37637 \begin_layout Plain Layout
37646 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
37648 errors when viewing/exporting the document.
37656 \begin_layout Subsection
37658 \begin_inset Index idx
37661 \begin_layout Plain Layout
37668 \begin_inset Index idx
37671 \begin_layout Plain Layout
37680 \begin_layout Standard
37681 To scale material put it into a
37686 Such a box is inserted via the menu
37688 Insert\SpecialChar menuseparator
37689 Custom Insets\SpecialChar menuseparator
37695 \begin_layout Standard
37700 inset has the mandatory inset
37704 and the optional inset
37708 (inserted via the menu
37710 Insert\SpecialChar menuseparator
37714 Input there the horizontal and vertical scale factor, respectively.
37719 inset is used, the horizontal factor will also be used as the vertical
37723 \begin_layout Standard
37724 To get for example the double text size, compared to the document text size,
37735 \begin_inset Flex Scalebox
37738 \begin_layout Plain Layout
37739 \begin_inset Argument 1
37742 \begin_layout Plain Layout
37756 \begin_layout Standard
37774 \begin_inset Flex Scalebox
37777 \begin_layout Plain Layout
37778 \begin_inset Argument 1
37781 \begin_layout Plain Layout
37788 \begin_inset Argument 2
37791 \begin_layout Plain Layout
37805 \begin_layout Standard
37806 If the scaling factor is negative, the box content will be mirrored.
37823 can be used to create mirror writing:
37824 \begin_inset Flex Scalebox
37827 \begin_layout Plain Layout
37828 \begin_inset Argument 1
37831 \begin_layout Plain Layout
37838 \begin_inset Argument 2
37841 \begin_layout Plain Layout
37855 \begin_layout Standard
37873 \begin_inset Flex Scalebox
37876 \begin_layout Plain Layout
37877 \begin_inset Argument 1
37880 \begin_layout Plain Layout
37887 \begin_inset Argument 2
37890 \begin_layout Plain Layout
37904 \begin_layout Standard
37911 Insert\SpecialChar menuseparator
37912 Custom Insets\SpecialChar menuseparator
37938 \begin_layout Standard
37939 \begin_inset Note Greyedout
37942 \begin_layout Plain Layout
37951 inset is empty or contains other characters than numbers you will get LaTeX
37952 errors when viewing/exporting the document.
37960 \begin_layout Standard
37961 \begin_inset VSpace bigskip
37970 Insert\SpecialChar menuseparator
37971 Custom Insets\SpecialChar menuseparator
37974 ) is used to scale the content to a defined width and height.
37979 inset has the mandatory inset
37983 and the optional inset
37987 (inserted via the menu
37989 Insert\SpecialChar menuseparator
37993 Input there the width and height, respectively, as value with a unit.
37995 \begin_inset CommandInset ref
37997 reference "tab:Units"
38001 lists the possible units.
38002 If there is an exclamation mark
38006 in one of the two insets, the size is set so that the aspect ratio of the
38007 box content is kept.
38012 inset is used an exclamation mark will internally be used for the height.
38015 \begin_layout Standard
38033 \begin_inset Flex Resizebox
38036 \begin_layout Plain Layout
38037 \begin_inset Argument 1
38040 \begin_layout Plain Layout
38047 \begin_inset Argument 2
38050 \begin_layout Plain Layout
38062 \begin_inset Newline newline
38086 \begin_inset Flex Resizebox
38089 \begin_layout Plain Layout
38090 \begin_inset Argument 1
38093 \begin_layout Plain Layout
38100 \begin_inset Argument 2
38103 \begin_layout Plain Layout
38117 \begin_layout Standard
38118 \begin_inset Note Greyedout
38121 \begin_layout Plain Layout
38130 inset is empty or contains an invalid unit you will get LaTeX errors when
38131 viewing/exporting the document.
38139 \begin_layout Standard
38140 \begin_inset VSpace bigskip
38146 \begin_layout Standard
38147 The boxes can be combined in any order.
38156 which is in turn inside a
38163 \begin_layout Standard
38166 \begin_inset Flex Rotatebox
38169 \begin_layout Plain Layout
38170 \begin_inset Argument 1
38173 \begin_layout Plain Layout
38180 \begin_inset Argument 2
38183 \begin_layout Plain Layout
38190 \begin_inset Flex Resizebox
38193 \begin_layout Plain Layout
38194 \begin_inset Argument 1
38197 \begin_layout Plain Layout
38204 \begin_inset Flex Reflectbox
38207 \begin_layout Plain Layout
38226 \begin_layout Standard
38228 Images, tables, and inline formulas are allowed as box content:
38231 \begin_layout Standard
38234 \begin_inset Flex Resizebox
38237 \begin_layout Plain Layout
38238 \begin_inset Argument 1
38241 \begin_layout Plain Layout
38248 \begin_inset Flex Reflectbox
38251 \begin_layout Plain Layout
38252 \begin_inset Graphics
38253 filename clipart/Star-structure.pdf
38270 \begin_inset Flex Resizebox
38273 \begin_layout Plain Layout
38274 \begin_inset Argument 1
38277 \begin_layout Plain Layout
38284 \begin_inset Flex Reflectbox
38287 \begin_layout Plain Layout
38288 \begin_inset Tabular
38289 <lyxtabular version="3" rows="2" columns="2">
38290 <features tabularvalignment="middle">
38291 <column alignment="center" valignment="top">
38292 <column alignment="center" valignment="top">
38294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38297 \begin_layout Plain Layout
38303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38306 \begin_layout Plain Layout
38314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38317 \begin_layout Plain Layout
38323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38326 \begin_layout Plain Layout
38348 \begin_inset Flex Resizebox
38351 \begin_layout Plain Layout
38352 \begin_inset Argument 1
38355 \begin_layout Plain Layout
38362 \begin_inset Flex Reflectbox
38365 \begin_layout Plain Layout
38366 \begin_inset Formula $\int A\,\mathrm{d}x=B$
38380 \begin_inset Index idx
38383 \begin_layout Plain Layout
38390 \begin_inset Index idx
38393 \begin_layout Plain Layout
38394 Table Customization ! Scaling
38402 \begin_layout Standard
38403 When the global formula style
38407 is used in the document
38411 \begin_layout Plain Layout
38413 \begin_inset Quotes eld
38417 \begin_inset Quotes erd
38420 is added to the document class options.
38425 , display style formulas can also be scaled.
38428 \begin_layout Chapter
38429 Objects Surrounded by Text
38430 \begin_inset Index idx
38433 \begin_layout Plain Layout
38442 \begin_layout Section
38444 \begin_inset CommandInset label
38446 name "sec:Wrap-Floats"
38451 \begin_inset Index idx
38454 \begin_layout Plain Layout
38455 Floats ! Wrap Floats
38461 \begin_inset Index idx
38464 \begin_layout Plain Layout
38465 Surrounded by text ! Wrap Floats
38473 \begin_layout Standard
38474 \begin_inset Wrap figure
38481 \begin_layout Plain Layout
38482 \begin_inset Graphics
38483 filename clipart/2D-intensity-plot.pdf
38485 scaleBeforeRotation
38486 rotateOrigin center
38493 \begin_layout Plain Layout
38494 \begin_inset Caption Standard
38496 \begin_layout Plain Layout
38497 \begin_inset CommandInset label
38499 name "fig:This-is-a"
38503 This is a figure wrap float.
38513 This float type is used if you want to wrap text around a figure or table
38514 so that it only occupies some fraction of the column width.
38515 It can be inserted using the menu
38517 Insert\SpecialChar menuseparator
38518 Floats\SpecialChar menuseparator
38520 \begin_inset space ~
38524 \begin_inset space ~
38532 \begin_inset space ~
38536 \begin_inset space ~
38541 if the \SpecialChar LaTeX
38547 \begin_inset Index idx
38550 \begin_layout Plain Layout
38552 -packages ! wrapfig
38561 \begin_layout Plain Layout
38562 Installing a \SpecialChar LaTeX
38563 -package is explained it in the
38567 \begin_inset space ~
38577 The settings of the float can be modified by right-clicking on the float
38579 The mandatory settings are the float
38592 that specifies how much the float is set into the paragraph
38593 \begin_inset space \thinspace{}
38597 \begin_inset space \thinspace{}
38600 page margin, and the
38603 \begin_inset space ~
38608 that specifies how many text lines the float will approximately need.
38609 The line span is often hard to approximate; so it is better only to use
38610 it when you encounter float placement problems.
38611 You can furthermore decide if \SpecialChar LaTeX
38612 is allowed to let the float float within
38613 the paragraph or to surrounding paragraphs.
38615 \begin_inset space ~
38619 \begin_inset CommandInset ref
38621 reference "fig:This-is-a"
38625 is an example text wrap float with a width of 40
38626 \begin_inset space \thinspace{}
38630 \begin_inset space \thinspace{}
38633 cm overhang, set to the left.
38636 \begin_layout Standard
38637 \begin_inset Note Greyedout
38640 \begin_layout Plain Layout
38646 \begin_inset space ~
38649 wrap float floats are fragile! E.
38650 \begin_inset space \thinspace{}
38654 \begin_inset space \space{}
38657 having a figure too close to the bottom of the page can mess things up in
38658 such a way that the float does not appear in the output or that it is placed
38659 over some other text.
38667 \begin_layout Standard
38668 In general, the following applies for wrap floats:
38671 \begin_layout Itemize
38672 They should not be placed in paragraphs that run over a page break.
38673 That means that wrap floats are better inserted in their exact place when
38674 the document is almost finished and you are able to estimate where page
38675 breaks will appear.
38678 \begin_layout Itemize
38679 They should either be placed in their own paragraph before the paragraph
38680 where they should wrap into or within a paragraph.
38683 \begin_layout Itemize
38684 In consecutive paragraphs they may cause troubles, so ensure that there
38685 is a text paragraph between them as separator.
38688 \begin_layout Itemize
38689 They are not allowed in section headings or tables.
38692 \begin_layout Itemize
38693 Their numbering and referencing works as described in chap.
38694 \begin_inset space \thinspace{}
38698 \begin_inset CommandInset ref
38700 reference "chap:Floats"
38707 \begin_layout Section
38708 Surrounded Fixed Objects
38709 \begin_inset Index idx
38712 \begin_layout Plain Layout
38713 Surrounded by text ! Fixed objects
38721 \begin_layout Standard
38722 The wrap floats described in sec.
38723 \begin_inset space \thinspace{}
38727 \begin_inset CommandInset ref
38729 reference "sec:Wrap-Floats"
38733 have these positions in the paragraph:
38736 \begin_layout Standard
38739 \begin_inset Tabular
38740 <lyxtabular version="3" rows="2" columns="2">
38741 <features tabularvalignment="middle">
38742 <column alignment="center" valignment="top">
38743 <column alignment="center" valignment="top">
38745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38748 \begin_layout Plain Layout
38751 arg "dialog-show-new-inset graphics"
38759 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38762 \begin_layout Plain Layout
38770 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38773 \begin_layout Plain Layout
38779 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38782 \begin_layout Plain Layout
38794 \begin_inset Tabular
38795 <lyxtabular version="3" rows="2" columns="2">
38796 <features tabularvalignment="middle">
38797 <column alignment="center" valignment="top">
38798 <column alignment="center" valignment="top">
38800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38803 \begin_layout Plain Layout
38809 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38812 \begin_layout Plain Layout
38815 arg "dialog-show-new-inset graphics"
38825 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38828 \begin_layout Plain Layout
38834 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38837 \begin_layout Plain Layout
38851 \begin_layout Standard
38852 To get an object exactly at the position where it is inserted, for example
38853 to get one of these positions:
38854 \begin_inset VSpace defskip
38860 \begin_layout Standard
38863 \begin_inset Tabular
38864 <lyxtabular version="3" rows="2" columns="2">
38865 <features tabularvalignment="middle">
38866 <column alignment="center" valignment="top">
38867 <column alignment="center" valignment="top">
38869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38872 \begin_layout Plain Layout
38878 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38881 \begin_layout Plain Layout
38889 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38892 \begin_layout Plain Layout
38895 arg "dialog-show-new-inset graphics"
38903 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38906 \begin_layout Plain Layout
38918 \begin_inset Tabular
38919 <lyxtabular version="3" rows="2" columns="2">
38920 <features tabularvalignment="middle">
38921 <column alignment="center" valignment="top">
38922 <column alignment="center" valignment="top">
38924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38927 \begin_layout Plain Layout
38933 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38936 \begin_layout Plain Layout
38944 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38947 \begin_layout Plain Layout
38953 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38956 \begin_layout Plain Layout
38959 arg "dialog-show-new-inset graphics"
38973 \begin_inset Tabular
38974 <lyxtabular version="3" rows="2" columns="3">
38975 <features tabularvalignment="middle">
38976 <column alignment="center" valignment="top">
38977 <column alignment="center" valignment="top">
38978 <column alignment="center" valignment="top">
38980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38983 \begin_layout Plain Layout
38989 <cell alignment="center" valignment="top" topline="true" usebox="none">
38992 \begin_layout Plain Layout
38995 arg "dialog-show-new-inset graphics"
39003 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
39006 \begin_layout Plain Layout
39014 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
39017 \begin_layout Plain Layout
39023 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
39026 \begin_layout Plain Layout
39032 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
39035 \begin_layout Plain Layout
39047 \begin_inset Tabular
39048 <lyxtabular version="3" rows="2" columns="3">
39049 <features tabularvalignment="middle">
39050 <column alignment="center" valignment="top">
39051 <column alignment="center" valignment="top">
39052 <column alignment="center" valignment="top">
39054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39057 \begin_layout Plain Layout
39063 <cell alignment="center" valignment="top" topline="true" usebox="none">
39066 \begin_layout Plain Layout
39072 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
39075 \begin_layout Plain Layout
39083 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
39086 \begin_layout Plain Layout
39092 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
39095 \begin_layout Plain Layout
39098 arg "dialog-show-new-inset graphics"
39106 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
39109 \begin_layout Plain Layout
39123 \begin_layout Standard
39126 \begin_inset Tabular
39127 <lyxtabular version="3" rows="3" columns="2">
39128 <features tabularvalignment="middle">
39129 <column alignment="center" valignment="top">
39130 <column alignment="center" valignment="top">
39132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39135 \begin_layout Plain Layout
39141 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
39144 \begin_layout Plain Layout
39152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
39155 \begin_layout Plain Layout
39158 arg "dialog-show-new-inset graphics"
39166 <cell alignment="center" valignment="top" rightline="true" usebox="none">
39169 \begin_layout Plain Layout
39177 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
39180 \begin_layout Plain Layout
39186 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
39189 \begin_layout Plain Layout
39201 \begin_inset Tabular
39202 <lyxtabular version="3" rows="3" columns="3">
39203 <features tabularvalignment="middle">
39204 <column alignment="center" valignment="top">
39205 <column alignment="center" valignment="top">
39206 <column alignment="center" valignment="top">
39208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39211 \begin_layout Plain Layout
39217 <cell alignment="center" valignment="top" topline="true" usebox="none">
39220 \begin_layout Plain Layout
39226 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
39229 \begin_layout Plain Layout
39237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
39240 \begin_layout Plain Layout
39246 <cell alignment="center" valignment="top" usebox="none">
39249 \begin_layout Plain Layout
39252 arg "dialog-show-new-inset graphics"
39260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
39263 \begin_layout Plain Layout
39271 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
39274 \begin_layout Plain Layout
39280 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
39283 \begin_layout Plain Layout
39289 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
39292 \begin_layout Plain Layout
39304 \begin_inset Tabular
39305 <lyxtabular version="3" rows="3" columns="2">
39306 <features tabularvalignment="middle">
39307 <column alignment="center" valignment="top">
39308 <column alignment="center" valignment="top">
39310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39313 \begin_layout Plain Layout
39319 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
39322 \begin_layout Plain Layout
39330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
39333 \begin_layout Plain Layout
39339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
39342 \begin_layout Plain Layout
39345 arg "dialog-show-new-inset graphics"
39355 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
39358 \begin_layout Plain Layout
39364 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
39367 \begin_layout Plain Layout
39381 \begin_layout Standard
39383 you can use the \SpecialChar LaTeX
39389 \begin_inset Index idx
39392 \begin_layout Plain Layout
39394 -packages ! picinpar
39400 Here is an example:
39403 \begin_layout Standard
39407 \begin_layout Plain Layout
39417 \begin_inset Note Note
39420 \begin_layout Plain Layout
39421 The following section will only be displayed when the \SpecialChar LaTeX
39434 \begin_layout Standard
39438 \begin_layout Plain Layout
39442 begin{window}[2,c,{
39448 \begin_inset Graphics
39449 filename clipart/2D-intensity-plot.pdf
39452 scaleBeforeRotation
39453 rotateOrigin center
39461 \begin_layout Plain Layout
39466 \begin_layout Plain Layout
39475 It was in the spring of the year 1894 that all London was interested, and
39476 the fashionable world dismayed, by the murder of the Honourable Ronald
39477 Adair under most unusual and inexplicable circumstances.
39478 The public has already learned those particulars of the crime which
39484 \begin_layout Plain Layout
39495 came out in the police investigation, but a good deal was suppressed upon
39496 that occasion, since the case for the prosecution was so overwhelmingly
39497 strong that it was not necessary to bring forward all the facts.
39498 Only now, at the end of nearly ten years, am I allowed to supply those
39499 missing links which make up the whole of that remarkable chain.
39505 \begin_layout Plain Layout
39517 \begin_layout Standard
39521 \begin_layout Plain Layout
39530 Footnote of the paragraph with the fixed object.
39534 \begin_layout Plain Layout
39544 \begin_layout Standard
39545 Surrounded fixed objects are used to let text float around them, at which
39546 the object's position in the paragraph can be determined by the number
39548 In contrary to floats is it not possible to have a numbered caption.
39551 \begin_layout Standard
39552 A fixed object is inserted by adding the command
39555 \begin_layout Standard
39560 begin{window}[2,c,{
39563 \begin_layout Standard
39564 as \SpecialChar TeX
39565 Code at the beginning of the paragraph.
39566 The first parameter in the bracket, here '2', defines the number of lines
39567 above the object, the second, here 'c', the position of the object.
39568 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
39569 Behind the command you insert the object.
39570 In this example an image with a width of 40
39571 \begin_inset space \thinspace{}
39574 % of the text column width was inserted.
39575 The object can also be a table, a box or an equation.
39576 Behind the object the command
39579 \begin_layout Standard
39582 },description text]
39583 \begin_inset Newline newline
39589 \begin_layout Standard
39592 \begin_inset Quotes eld
39600 \begin_inset Quotes erd
39603 is in the second line.
39604 The description text is optional.
39605 The text surrounding the object must be in the same paragraph as the object,
39606 so it must begin directly after the
39611 At the end of the paragraph insert the command:
39614 \begin_layout Standard
39622 \begin_layout Standard
39623 Within a paragraph with a fixed object, you cannot insert footnotes in the
39625 You have to use instead the command
39631 inside the paragraph and outside the command
39637 as described in sec.
39638 \begin_inset space \thinspace{}
39642 \begin_inset CommandInset ref
39644 reference "sec:Footnotes"
39651 \begin_layout Standard
39655 \begin_layout Plain Layout
39665 \begin_inset Note Note
39668 \begin_layout Plain Layout
39669 The following will be displayed when the \SpecialChar LaTeX
39682 \begin_layout Standard
39683 You need to install the \SpecialChar LaTeX
39688 to see the following part of this section in the output.
39691 \begin_layout Standard
39695 \begin_layout Plain Layout
39707 \begin_layout Section
39709 \begin_inset Index idx
39712 \begin_layout Plain Layout
39719 \begin_inset Index idx
39722 \begin_layout Plain Layout
39723 Surrounded by text ! Initials
39731 \begin_layout Standard
39732 To use initials, you must have the \SpecialChar LaTeX
39738 \begin_inset Index idx
39741 \begin_layout Plain Layout
39743 -packages ! lettrine
39748 installed and use the module
39752 in your document (menu
39754 Document\SpecialChar menuseparator
39755 Settings\SpecialChar menuseparator
39759 To insert an initial, use the style
39764 This style has a mandatory and two optional arguments.
39765 The arguments are inserted via the
39770 The mandatory argument
39774 contains the letter(s) that is the initial, the argument
39777 \begin_inset space ~
39781 \begin_inset space ~
39786 contains the rest of the word or text of the initial letter(s).
39791 contains parameters to modify the initial.
39792 For more information about the possible parameters see the documentation
39798 \begin_inset CommandInset citation
39806 The style itself contains the text that is surrounding the initial.
39807 The usual style is hereby that the word whose first letter is the initial,
39815 \begin_layout Standard
39816 Here are some examples:
39819 \begin_layout Standard
39823 \begin_layout Plain Layout
39833 \begin_inset Note Note
39836 \begin_layout Plain Layout
39837 The following section will only be displayed when the \SpecialChar LaTeX
39850 \begin_layout Enumerate
39851 No optional argument, the initial is the letter 'I' in the math font
39852 \begin_inset Formula $\mathfrak{Fraktur}$
39859 \begin_layout Initial
39860 \begin_inset Argument 2
39863 \begin_layout Plain Layout
39864 \begin_inset Formula $\mathfrak{I}$
39873 \begin_inset Argument 3
39876 \begin_layout Plain Layout
39882 was in the spring of the year 1894 that all London was interested, and
39883 the fashionable world dismayed, by the murder of the Honourable Ronald
39884 Adair under most unusual and inexplicable circumstances.
39885 The public has already learned those particulars of the crime which came
39886 out in the police investigation, but a good deal was suppressed upon that
39887 occasion, since the case for the prosecution was so overwhelmingly strong
39888 that it was not necessary to bring forward all the facts.
39889 \begin_inset Newpage newpage
39896 \begin_layout Enumerate
39897 Only one line is surrounding the initial, which is formed by two letters
39898 in standard font and no text is printed in small caps:
39902 \begin_layout Initial
39903 \begin_inset Argument 1
39906 \begin_layout Plain Layout
39913 \begin_inset Argument 2
39916 \begin_layout Plain Layout
39922 was in the spring of the year 1894 that all London was interested, and
39923 the fashionable world dismayed, by the murder of the Honourable Ronald
39924 Adair under most unusual and inexplicable circumstances.
39925 The public has already learned those particulars of the crime which came
39926 out in the police investigation, but a good deal was suppressed upon that
39927 occasion, since the case for the prosecution was so overwhelmingly strong
39928 that it was not necessary to bring forward all the facts.
39932 \begin_layout Enumerate
39933 Magenta, hanging initial over 3
39934 \begin_inset space ~
39937 lines in the math font
39938 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39942 \begin_inset Quotes eld
39945 t was in the spring
39946 \begin_inset Quotes erd
39953 ; to color the initial, you must insert this command before the initial:
39954 \begin_inset Newline newline
39968 \begin_inset Newline newline
39976 \begin_inset Quotes eld
39980 \begin_inset Quotes erd
39984 \begin_inset Quotes eld
39988 \begin_inset Quotes erd
39992 \begin_inset Quotes eld
39996 \begin_inset Quotes erd
40000 \begin_inset Quotes eld
40004 \begin_inset Quotes erd
40008 \begin_inset Quotes eld
40012 \begin_inset Quotes erd
40016 \begin_inset Quotes eld
40020 \begin_inset Quotes erd
40024 \begin_inset Quotes eld
40028 \begin_inset Quotes erd
40032 \begin_inset Quotes eld
40036 \begin_inset Quotes erd
40039 , and add this command to the document preamble:
40040 \begin_inset Newline newline
40047 @ifundefined{textcolor}
40048 \begin_inset Newline newline
40052 \begin_inset space ~
40057 usepackage{color}}{}
40061 \begin_layout Standard
40065 \begin_layout Plain Layout
40079 \begin_inset Note Note
40082 \begin_layout Plain Layout
40083 makes the initial magenta
40091 \begin_layout Initial
40092 \begin_inset Argument 1
40095 \begin_layout Plain Layout
40096 lines=3, lhang=0.33, loversize=0.25
40102 \begin_inset Argument 2
40105 \begin_layout Plain Layout
40106 \begin_inset Formula $\mathcal{I}$
40115 \begin_inset Argument 3
40118 \begin_layout Plain Layout
40119 t was in the spring
40124 of the year 1894 that all London was interested, and the fashionable world
40125 dismayed, by the murder of the Honourable Ronald Adair under most unusual
40126 and inexplicable circumstances.
40127 The public has already learned those particulars of the crime which came
40128 out in the police investigation, but a good deal was suppressed upon that
40129 occasion, since the case for the prosecution was so overwhelmingly strong
40130 that it was not necessary to bring forward all the facts.
40134 \begin_layout Standard
40138 \begin_layout Plain Layout
40148 \begin_inset Note Note
40151 \begin_layout Plain Layout
40152 The following will be displayed when the \SpecialChar LaTeX
40165 \begin_layout Standard
40166 You need to install the \SpecialChar LaTeX
40171 to see the following part of this section in the output.
40174 \begin_layout Standard
40178 \begin_layout Plain Layout
40190 \begin_layout Chapter
40191 External Document Parts
40192 \begin_inset Index idx
40195 \begin_layout Plain Layout
40196 External Document Parts
40204 \begin_layout Standard
40207 Insert\SpecialChar menuseparator
40210 you can insert external material into your document.
40214 \begin_layout Description
40216 \begin_inset space ~
40219 Document Another \SpecialChar LyX
40220 document; its content is directly inserted to your document.
40223 \begin_layout Description
40225 \begin_inset space ~
40228 Text A text document; each line is inserted in your document as a separate
40232 \begin_layout Description
40234 \begin_inset space ~
40238 \begin_inset space ~
40242 \begin_inset space ~
40245 Lines A text document; text lines are inserted in your document continuously
40246 but an empty text line creates a new paragraph.
40249 \begin_layout Description
40251 \begin_inset space ~
40254 Material Files in various formats.
40257 \begin_layout Description
40259 \begin_inset space ~
40262 Document \SpecialChar LyX
40263 or \SpecialChar LaTeX
40267 \begin_layout Section
40269 \begin_inset Index idx
40272 \begin_layout Plain Layout
40273 External Document Parts ! External Material
40281 \begin_layout Standard
40282 The external material feature allows you to insert files into your document
40283 without converting them to a format that can be read by the document output
40286 takes care of the necessary conversions.
40287 This is similar to images that can be inserted in various image formats
40288 in \SpecialChar LyX
40290 When you have enabled Instant Preview in \SpecialChar LyX
40291 's preferences under
40294 \begin_inset space ~
40298 \begin_inset space ~
40301 feel\SpecialChar menuseparator
40304 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
40308 \begin_layout Standard
40309 External material can be inserted via the
40313 dialog that is accessible with the menu
40315 Insert\SpecialChar menuseparator
40316 File\SpecialChar menuseparator
40318 \begin_inset space ~
40324 Currently the following file types (
40331 \begin_layout Description
40333 \begin_inset space ~
40336 diagram This template supports chess position diagrams made with the program
40340 \begin_inset CommandInset href
40343 target "https://en.wikipedia.org/wiki/XBoard"
40353 \begin_layout Description
40355 \begin_inset space ~
40358 diagram This template supports diagrams created with the program
40361 \begin_inset CommandInset href
40364 target "https://en.wikipedia.org/wiki/Dia_(software)"
40374 \begin_layout Description
40376 \begin_inset space ~
40379 figure This template supports specific scalable images derived from scalable
40380 vector graphics (SVG), in which the contained text is replaced by a version
40381 typeset by \SpecialChar LaTeX
40382 (and hence in the current document font).
40383 It relies on a feature of the program
40386 \begin_inset CommandInset href
40389 target "https://inkscape.org/"
40396 which creates a special PDF or EPS and \SpecialChar LaTeX
40397 file from a given SVG file (in
40402 itself, the feature is available via the option
40404 Omit text in PDF and create LaTeX file
40406 when saving a drawing as PDF or EPS).
40407 The benefit of such files is a uniform text style throughout the whole
40409 \begin_inset Newline newline
40412 The external template reads SVG files and uses a converter program to generate
40413 the respective PDF\SpecialChar breakableslash
40414 EPS and \SpecialChar LaTeX
40423 on the fly, so you don't have to export those files yourself.
40424 If you prefer the latter and want use given
40440 files instead, simply input the respective
40453 \begin_inset space ~
40457 \begin_inset CommandInset ref
40459 reference "sec:Child-Documents"
40463 ) rather than using this template.
40464 \begin_inset Newline newline
40467 You can use \SpecialChar TeX
40468 code commands such as
40481 \begin_inset space \space{}
40484 in the text of the SVG.
40485 The size of the font will be taken from the settings of the \SpecialChar LyX
40488 \begin_inset CommandInset citation
40495 for more information and examples.
40498 \begin_layout Description
40500 \begin_inset space ~
40504 \begin_inset space ~
40507 music This template is used for music notation typeset with the program
40508 \begin_inset Newline linebreak
40514 \begin_inset CommandInset href
40517 target "https://en.wikipedia.org/wiki/LilyPond"
40525 For \SpecialChar LyX
40526 's extended support for LilyPond have a look at \SpecialChar LyX
40534 \begin_layout Description
40536 \begin_inset space ~
40539 pages With this template you can insert PDF documents to your document.
40540 To specify the range of pages that should be included, use the option
40550 LaTeX and LyX options
40553 The argument of this option is a comma separated list, containing page
40554 numbers (insert as option
40558 ), ranges of page numbers (
40562 ) or any combination.
40563 To insert empty pages use {}.
40565 \begin_inset space \thinspace{}
40569 \begin_inset space ~
40574 pages={3,{},8-11,15}
40576 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
40577 Page ranges are specified in the syntax
40586 This selects all pages from
40599 defaults to the first page; omitting
40603 defaults to the last page of the document.
40604 The last page can also be selected with the keyword
40609 (This is only permitted in a page range.) So
40613 will insert all pages of the document and
40617 will insert all pages in reverse order.
40618 If the pages option is not specified, only the first page of the PDF is
40620 \begin_inset Newline newline
40627 inserts the pages with their original size, if this option is not given,
40628 the pages will be resized to fith the width of the page of your document.
40633 you can specify the width and height of the input pages and their rotation.
40634 If another width than 100
40635 \begin_inset space \thinspace{}
40638 Scale% is used, the option
40642 will be overwritten.
40643 For more info and possible options, have a look into the documentation
40644 of the \SpecialChar LaTeX
40650 \begin_inset CommandInset citation
40658 \begin_inset Index idx
40661 \begin_layout Plain Layout
40663 -packages ! pdfpages
40669 \begin_inset Newline newline
40672 To use this template in a
40676 presentation you need to first insert an
40680 environment and in a subsequent paragraph a \SpecialChar TeX
40681 Code box containing the command
40686 setbeamertemplate{background canvas}{}
40689 Then you can insert as many paragraphs containing the PDFPages template
40691 Behind the included PDF pages you can resume the Beamer presentation by
40692 beginning a new frame or by starting a new section.
40693 To avoid stray blank pages prior to the PDF pages, make sure to use the
40698 alignment for the paragraph containing the template.
40699 \begin_inset Newline newline
40702 Here is an included PDF which is rotated by -5°:
40703 \begin_inset External
40705 filename clipart/Abstract.pdf
40706 extra LaTeX "noautoscale, pages=-"
40708 rotateOrigin bottomleft
40715 \begin_layout Description
40717 \begin_inset space ~
40720 image This can be used for bitmap images.
40721 The image can be treated in the
40725 dialog like the images that are usually included via the
40729 dialog as described in section
40730 \begin_inset space ~
40734 \begin_inset CommandInset ref
40736 reference "sec:Graphics-Dialog"
40741 Here is an inserted raster image:
40742 \begin_inset External
40743 template RasterImage
40744 filename clipart/ToolbarEnvBox.png
40751 \begin_layout Description
40752 Spreadsheet With this template you can insert spreadsheets
40753 \begin_inset space \thinspace{}
40757 \begin_inset space \thinspace{}
40760 tables in the format of
40763 \begin_inset CommandInset href
40766 target "https://en.wikipedia.org/wiki/Gnumeric"
40774 \begin_inset CommandInset href
40776 name "OpenDocument"
40777 target "https://en.wikipedia.org/wiki/OpenDocument"
40783 \begin_inset CommandInset href
40785 name "Microsoft Office XML"
40786 target "https://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
40792 \begin_inset CommandInset href
40794 name "Office Open XML"
40795 target "https://en.wikipedia.org/wiki/Office_Open_XML"
40801 For this feature \SpecialChar LyX
40802 must have found the program
40806 during its configuration.
40807 This program is part of Gnumeric, so that you must have Gnumeric installed,
40808 also if you don't have tables in the Gnumeric format.
40809 For examples and possible limitations have a look at \SpecialChar LyX
40817 \begin_layout Description
40819 \begin_inset space ~
40822 graphics This can be used for vector graphics.
40823 The image can be treated in the
40827 dialog like the images that are usually included via the
40831 dialog as described in section
40832 \begin_inset space ~
40836 \begin_inset CommandInset ref
40838 reference "sec:Graphics-Dialog"
40843 Here is an inserted vector graphics:
40844 \begin_inset External
40845 template VectorGraphics
40846 filename clipart/SVG-Drawing.svg
40855 \begin_layout Description
40857 \begin_inset space ~
40860 figure This template supports images created with the program
40861 \begin_inset CommandInset href
40864 target "https://en.wikipedia.org/wiki/Xfig"
40872 \begin_layout Standard
40873 When you use the option
40885 dialog, only the path to the inserted file is shown in the output.
40886 \begin_inset Newline newline
40889 External material is displayed in \SpecialChar LyX
40890 either as a box like this:
40891 \begin_inset Graphics
40892 filename clipart/ExternalMaterial.png
40894 scaleBeforeRotation
40898 or as image, depending on the option
40904 LaTeX and LyX options
40909 \begin_layout Standard
40916 manual explains how you can define your own templates.
40919 \begin_layout Section
40921 \begin_inset CommandInset label
40923 name "sec:Child-Documents"
40928 \begin_inset Index idx
40931 \begin_layout Plain Layout
40932 External Document Parts ! Child Documents
40938 \begin_inset Index idx
40941 \begin_layout Plain Layout
40950 \begin_layout Standard
40951 Child documents are used if you have a long document consisting of several
40952 larger parts or sections.
40953 For maintenance it is often useful and sometimes even required to split
40954 the document into several files that can be revised separately.
40955 The different documents are then the so called
40956 \begin_inset Quotes eld
40960 \begin_inset Quotes erd
40963 , and a master document connects them to print the full document or parts
40965 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40967 the bibliography, and labels for cross-references.
40970 \begin_layout Standard
40971 To be able to work on child documents without the need to open their master,
40972 specify in the child document the master in the menu
40974 Document\SpecialChar menuseparator
40975 Settings\SpecialChar menuseparator
40977 \begin_inset space ~
40983 This master document will then be used in the background by \SpecialChar LyX
40985 the child document.
40988 \begin_layout Standard
40989 Included documents are displayed in \SpecialChar LyX
40990 as a box like this:
40991 \begin_inset Graphics
40992 filename clipart/ChildDocument.png
40994 scaleBeforeRotation
40998 To include child documents in a master document use the menu
41000 Insert\SpecialChar menuseparator
41001 File\SpecialChar menuseparator
41003 \begin_inset space ~
41009 A dialog pops up where you can choose between four include methods:
41012 \begin_layout Description
41013 Include You can include \SpecialChar LyX
41014 and \SpecialChar LaTeX
41024 dialog, the included document will be opened in \SpecialChar LyX
41025 in a new file tab so that
41027 \begin_inset Newline newline
41033 \begin_layout Standard
41034 Here is a child document inserted using
41039 \begin_inset CommandInset include
41040 LatexCommand include
41041 filename "DummyDocument1.lyx"
41049 \begin_layout Standard
41050 The section numbering includes the sections of the included files in the
41051 order they are inserted in the master document.
41052 The included example document has for example a subsection that is numbered
41053 as a subsection of this section.
41054 Labels of included documents can be referenced: Subsection
41055 \begin_inset space ~
41059 \begin_inset CommandInset ref
41061 reference "subsec:External-Subsection-1"
41068 \begin_layout Standard
41069 The preamble of the child document is ignored; only the preamble of the
41070 master document is used.
41071 Branches in child documents will be ignored by the master document when
41072 the master document does not have a branch with the same name.
41073 Included documents are inserted starting on a new page and ending with
41077 \begin_layout Standard
41078 \begin_inset Note Greyedout
41081 \begin_layout Plain Layout
41086 If you have included a \SpecialChar LyX
41087 or \SpecialChar LaTeX
41088 file, you are warned when you export/view the
41089 document in case the child document uses another document class than the
41090 master document as this will lead to unexpected outputs.
41098 \begin_layout Description
41099 Input This method is very similar to the Include method.
41100 The differences are:
41104 \begin_layout Itemize
41105 Input files don't start with a new page and don't end with a page break.
41108 \begin_layout Itemize
41109 Input files can be previewed in \SpecialChar LyX
41113 \begin_inset space ~
41118 is enabled in \SpecialChar LyX
41119 's preferences under
41122 \begin_inset space ~
41126 \begin_inset space ~
41129 feel\SpecialChar menuseparator
41135 \begin_layout Itemize
41136 You cannot exclude Input files via the menu
41138 Document\SpecialChar menuseparator
41139 Settings\SpecialChar menuseparator
41146 \begin_layout Standard
41147 Here is a child document inserted using
41152 \begin_inset CommandInset include
41154 filename "DummyDocument2.lyx"
41162 \begin_layout Description
41163 Verbatim With this method any text file can be included.
41164 The file is shown in the output with its source code; no command used in
41165 the text is invoked.
41166 You can use the option
41168 Mark spaces in output
41170 that displays the character
41171 \begin_inset Quotes eld
41178 \begin_layout Plain Layout
41188 \begin_inset Quotes erd
41191 for every space character in the source code.
41192 The difference from the method via the menu
41194 Insert\SpecialChar menuseparator
41195 File\SpecialChar menuseparator
41197 \begin_inset space ~
41202 is that the document content is not shown in \SpecialChar LyX
41206 \begin_layout Standard
41207 Here is a child document inserted as Verbatim:
41208 \begin_inset CommandInset include
41209 LatexCommand verbatiminput
41210 filename "DummyTextDocument.txt"
41216 \begin_inset VSpace bigskip
41219 Here is a child document inserted as Verbatim using the
41221 Mark spaces in output
41224 \begin_inset CommandInset include
41225 LatexCommand verbatiminput*
41226 filename "DummyTextDocument.txt"
41234 \begin_layout Standard
41235 \begin_inset VSpace bigskip
41241 \begin_layout Standard
41242 \begin_inset Note Greyedout
41245 \begin_layout Plain Layout
41250 As you can see in the examples above, the text of the documents included
41255 is not broken at the end of the document lines.
41263 \begin_layout Description
41264 Listings This type is described in chapter
41265 \begin_inset space ~
41269 \begin_inset CommandInset ref
41271 reference "cha:Program-Code-Listings"
41278 \begin_layout Standard
41279 \begin_inset Note Greyedout
41282 \begin_layout Plain Layout
41287 Including the same document twice in a document using different methods
41288 could cause \SpecialChar LaTeX
41297 \begin_layout Standard
41298 If you want to view/export only selected children of your master document,
41299 either because you want to save compiling time or because you want to distribut
41300 e single chapters of the book you are just writing, you can exclude children
41302 This is done via the menu
41304 Document\SpecialChar menuseparator
41305 Settings\SpecialChar menuseparator
41309 You can exclude\SpecialChar breakableslash
41310 include children by double-clicking on the
41314 column of the respective child document in the list (note that this only
41315 works for documents embedded via
41316 \begin_inset Quotes eld
41320 \begin_inset Quotes erd
41324 \begin_inset Quotes eld
41328 \begin_inset Quotes erd
41333 \change_inserted -712698321 1584102244
41337 \begin_layout Standard
41339 \change_inserted -712698321 1584102427
41342 Global Counters & References
41344 you can set how page numbers, references, section counters etc.
41348 \begin_layout Itemize
41350 \change_inserted -712698321 1584102377
41356 \change_deleted -712698321 1584102385
41359 Maintain counters and references
41364 will assure that all page numbers, references etc.
41365 \begin_inset space ~
41368 are correct as if the whole document was
41369 \change_deleted -712698321 1584108508
41371 \change_inserted -712698321 1584108509
41375 This is useful if you want the selected sub-documents to look exactly as
41376 in the context of the whole document.
41377 However, \SpecialChar LyX
41378 needs to process the whole document in the background for this
41380 \change_inserted -712698321 1584102406
41381 , which can take a long time
41385 \change_deleted -712698321 1584103026
41387 \change_inserted -712698321 1584102447
41391 \begin_layout Itemize
41393 \change_inserted -712698321 1584102489
41402 \change_inserted -712698321 1584103270
41403 only compiles the master and the included documents.
41404 Thus the counters will differ from the complete document, and references
41405 to excluded child documents will not be resolved.
41407 \change_deleted -712698321 1584102517
41409 \change_inserted -712698321 1584102518
41412 f you want to save compile time and if counters and references do not need
41414 \change_deleted -712698321 1584102523
41415 disable this checkbox
41416 \change_inserted -712698321 1584102546
41417 use this option as this is the fastest one
41420 \change_inserted -712698321 1584102550
41424 \begin_layout Itemize
41426 \change_inserted -712698321 1584109486
41431 is somewhat in-between the above two.
41432 If this is selected, \SpecialChar LyX
41433 will compile the whole document at the first output,
41434 which sets up counters and references correctly.
41435 In subsequent outputs, it will compile the whole document only if a change
41436 has been made in an excluded child document.
41437 As long as you only edit the included files, this approach is as fast as
41438 the second one, while giving you more or less correct counters and references.
41439 They are only more or less correct since the change of size of included
41440 documents obviously also changes the pagination of excluded documents,
41441 but this change cannot be tracked with this method.
41446 \begin_layout Standard
41447 Alternatively, you can put each included file into a branch.
41451 \begin_layout Plain Layout
41452 Branches are described in section
41456 of the \SpecialChar LyX
41466 By enabling\SpecialChar breakableslash
41467 disabling branches you can decide which included files will
41468 appear in the output.
41469 This has the advantage that it also works with Input'ed sub-documents.
41470 However, counters and references will not be maintained with this approach.
41473 \begin_layout Chapter
41474 Program Code Listings
41475 \begin_inset CommandInset label
41477 name "cha:Program-Code-Listings"
41482 \begin_inset Index idx
41485 \begin_layout Plain Layout
41492 \begin_inset Index idx
41495 \begin_layout Plain Layout
41502 \begin_inset Index idx
41505 \begin_layout Plain Layout
41514 \begin_layout Standard
41515 To include and typeset program code you can use the
41519 inset that can be inserted via the menu
41521 Insert\SpecialChar menuseparator
41525 The \SpecialChar LaTeX
41531 \begin_inset Index idx
41534 \begin_layout Plain Layout
41536 -packages ! listings
41546 \begin_inset Index idx
41549 \begin_layout Plain Layout
41556 provide a powerful and flexible way to insert program source code into
41558 One can only use one of these packages in a document.
41563 is used by default.
41566 \begin_layout Standard
41567 \begin_inset Note Note
41570 \begin_layout Plain Layout
41576 does NOT want to encourage users to add the
41580 option to converter definitions.
41581 It works, but it is a huge security risk.
41582 There is an active discussion about how to handle this.
41583 Once that's been resolved, this can be updated appropriately.
41586 \begin_layout Plain Layout
41590 \begin_layout Plain Layout
41595 , you need to select it as the syntax highlighting package in the document
41605 requires also additionally the module
41617 \begin_layout Plain Layout
41618 Under \SpecialChar LyX
41623 is already installed.
41632 for the \SpecialChar LaTeX
41634 If you want for example view or export your document as the format
41637 \begin_inset space ~
41642 , go to the \SpecialChar LyX
41643 preferences and there to the section
41646 \begin_inset space ~
41649 Handling\SpecialChar menuseparator
41653 There go to the entry
41656 \begin_inset space ~
41660 \begin_inset space ~
41665 and look at the field
41670 There you see by default the content
41671 \begin_inset Newline newline
41679 \begin_inset Newline newline
41683 \begin_inset Newline newline
41688 pdflatex $$i -shell-escape
41689 \begin_inset Newline newline
41698 button and subsequently
41707 The same can be done for the output formats
41710 \begin_inset space ~
41718 \begin_inset space ~
41731 \begin_layout Standard
41732 Right-clicking on a listings inset opens the context menu containing where
41733 you can set the listings format.
41736 \begin_layout Standard
41737 By default, a listing starts a new paragraph in the output.
41738 The placement option
41741 \begin_inset space ~
41746 prints the listing inline like this:
41747 \begin_inset listings
41748 lstparams "language={C++}"
41752 \begin_layout Plain Layout
41760 \begin_inset Newline newline
41767 creates a listings float where you can specify the placement options
41768 \begin_inset Quotes eld
41776 \begin_inset Quotes erd
41780 \begin_inset Quotes eld
41788 \begin_inset Quotes erd
41792 \begin_inset Quotes eld
41800 \begin_inset Quotes erd
41804 \begin_inset Quotes eld
41812 \begin_inset Quotes erd
41815 corresponding to the float placement options described in section
41816 \begin_inset space ~
41820 \begin_inset CommandInset ref
41822 reference "sec:Float-Settings"
41827 The placement options can be mixed and are inserted without any separation,
41829 \begin_inset space \thinspace{}
41833 \begin_inset space \space{}
41837 \begin_inset Quotes eld
41845 \begin_inset Quotes erd
41850 \begin_inset Quotes eld
41854 \begin_inset Quotes erd
41857 has sometimes no effect, but you don't need to use the
41861 option in this case as also non-float listings can have captions and be
41865 \begin_layout Standard
41866 You can add captions to listings that are not inline with the menu
41868 Insert\SpecialChar menuseparator
41872 Listings can be referenced like floats: Listing
41873 \begin_inset space ~
41877 \begin_inset CommandInset ref
41879 reference "lst:Example-Listing"
41884 A list of listings which contains all listings with captions can be created
41887 Insert\SpecialChar menuseparator
41889 \begin_inset space ~
41893 \begin_inset space ~
41896 TOC\SpecialChar menuseparator
41900 The list entries are the listing caption and the listing number.
41903 \begin_layout Standard
41904 \begin_inset listings
41905 lstparams "language=Python"
41909 \begin_layout Plain Layout
41911 \begin_inset Caption Standard
41913 \begin_layout Plain Layout
41914 \begin_inset CommandInset label
41916 name "lst:Example-Listing"
41920 Example Listing float
41925 # Example listing float
41928 \begin_layout Plain Layout
41933 \begin_layout Plain Layout
41935 'this is a python function'
41938 \begin_layout Plain Layout
41948 \begin_layout Standard
41949 \begin_inset Note Greyedout
41952 \begin_layout Plain Layout
41961 package places captions before the listing by default.
41962 \begin_inset Newline newline
41969 package places them after the listing by default if it is floating.
41970 If it is not floating, caption will be typeset before the listing if it
41971 is inserted to its first line, otherwise it will be typeset after the listing.
41972 If you want to force the placement in every case before the listing, you
41973 have to add the following lines as last thing to the preamble:
41974 \begin_inset Newline newline
41981 @ifundefined{newfloat}
41982 \begin_inset Newline newline
41986 \begin_inset Phantom HPhantom
41989 \begin_layout Plain Layout
41992 \begin_inset space ~
42002 usepackage{float}}{}
42003 \begin_inset Newline newline
42008 floatstyle{plaintop}
42011 \begin_inset Note Note
42014 \begin_layout Plain Layout
42019 will be loaded automatically by \SpecialChar LyX
42020 when you use special document-wide float
42021 placement settings.
42022 To avoid that it is loaded twice the command
42028 is used in the above command.
42041 \begin_layout Standard
42042 When you have set a programming language in the listings dialog, the keywords
42043 of this language will be recognized and specially typeset in the output.
42044 In the example listings the Python keyword
42045 \begin_inset Quotes eld
42049 \begin_inset Quotes erd
42052 is recognized and printed bold in the output.
42055 \begin_layout Standard
42056 \begin_inset Note Greyedout
42059 \begin_layout Plain Layout
42064 If you don't get bold keywords when using typewriter fonts, your
42068 font probably doesn't provide a bold shape.
42069 In this case select a different one in the menu
42071 Document\SpecialChar menuseparator
42072 Settings\SpecialChar menuseparator
42084 provide bold shapes.)
42092 \begin_layout Standard
42096 \begin_inset space ~
42101 of the listings dialog you can specify the line numbering style.
42102 You can insert a number to specify which lines are numbered in the field
42109 \begin_inset space \thinspace{}
42113 \begin_inset space \space{}
42117 \begin_inset Quotes eld
42121 \begin_inset Quotes erd
42124 , only every 3rd line will be numbered.
42127 \begin_layout Standard
42128 You can furthermore specify a range of lines; only these will then appear
42132 Extended character table
42134 is only meaningful for the
42138 package and should be used when you use national characters like the German
42139 umlauts in the listing.
42140 \begin_inset Newline newline
42143 Here is an example listing with left line numbering, step
42144 \begin_inset Quotes eld
42148 \begin_inset Quotes erd
42152 \begin_inset Quotes eld
42156 \begin_inset Quotes erd
42160 \begin_inset Quotes eld
42163 Extended character table
42164 \begin_inset Quotes erd
42168 \begin_inset Quotes eld
42172 \begin_inset space ~
42176 \begin_inset space ~
42180 \begin_inset Quotes erd
42184 \begin_inset space \thinspace{}
42188 \begin_inset space \thinspace{}
42194 \begin_layout Standard
42195 \begin_inset listings
42196 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
42200 \begin_layout Plain Layout
42205 \begin_layout Plain Layout
42207 'this is a python function'
42210 \begin_layout Plain Layout
42215 \begin_layout Plain Layout
42220 \begin_layout Plain Layout
42222 'This is a German word: Tschüß'
42225 \begin_layout Plain Layout
42230 \begin_layout Plain Layout
42235 \begin_layout Plain Layout
42237 'this is a python function'
42240 \begin_layout Plain Layout
42250 \begin_layout Standard
42251 When you have tabulators in your listing, you can specify the number of
42252 characters that are spanned by a tabulator in the field
42255 \begin_inset space ~
42263 \begin_layout Standard
42264 \begin_inset Note Greyedout
42267 \begin_layout Plain Layout
42272 Due to a bug in the
42276 package the line numbering is shifted by a line by every previous listing.
42277 That's the reason why the lines 2 and 5 are numbered in the above listing
42278 and not the lines 3 and 6.
42286 \begin_layout Standard
42287 \begin_inset VSpace bigskip
42293 \begin_layout Standard
42294 It is also possible to print lines from a file as listing.
42295 To do this, use the menu
42297 Insert\SpecialChar menuseparator
42298 File\SpecialChar menuseparator
42301 and choose the type
42309 \begin_layout Plain Layout
42310 The other child document types are described in section
42311 \begin_inset space ~
42315 \begin_inset CommandInset ref
42317 reference "sec:Child-Documents"
42326 In the child document dialog you can specify the listing parameters in
42328 To show a list of all available parameters, type in a question mark
42329 \begin_inset Quotes eld
42333 \begin_inset Quotes erd
42339 \begin_layout Standard
42340 To reference child document listings, write a label text into the corresponding
42341 field of the child document dialog.
42342 The label can then be referenced using the menu
42344 Insert\SpecialChar menuseparator
42350 \begin_layout Standard
42352 \begin_inset space ~
42356 \begin_inset CommandInset ref
42358 reference "lst:file-listing"
42362 is an example for a listing of a file; there the lines 10
42363 \begin_inset space \thinspace{}
42367 \begin_inset space \thinspace{}
42370 15 of this \SpecialChar LyX
42374 \begin_layout Standard
42375 \begin_inset CommandInset include
42376 LatexCommand lstinputlisting
42377 filename "EmbeddedObjects.lyx"
42378 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
42386 \begin_layout Standard
42387 \begin_inset VSpace bigskip
42393 \begin_layout Standard
42394 Inserting a formula into a listing can be done the following way:
42397 \begin_layout Enumerate
42398 Open the listings dialog and add
42399 \begin_inset Newline newline
42407 \begin_inset Newline newline
42410 to the field of the
42417 \begin_layout Enumerate
42418 Create a formula outside the listing
42421 \begin_layout Enumerate
42422 Copy the content of the formula (not the formula inset) to the clipboard
42432 \begin_layout Enumerate
42433 In the listing write
42434 \begin_inset Quotes eld
42442 \begin_inset Quotes erd
42445 and copy from the clipboard between the dollar-signs (shortcut
42454 \begin_layout Standard
42455 \begin_inset listings
42456 lstparams "language=Python,mathescape=true"
42460 \begin_layout Plain Layout
42462 \begin_inset Caption Standard
42464 \begin_layout Plain Layout
42465 Example Listing float containing a formula
42470 # Example listing float
42473 \begin_layout Plain Layout
42478 \begin_layout Plain Layout
42491 \begin_layout Plain Layout
42501 \begin_layout Standard
42502 \begin_inset VSpace bigskip
42508 \begin_layout Standard
42509 Global listings settings can be set in the
42511 Document\SpecialChar menuseparator
42512 Settings\SpecialChar menuseparator
42516 To get there a list of available options, type in a question mark
42517 \begin_inset Quotes eld
42521 \begin_inset Quotes erd
42527 \begin_layout Standard
42528 For more information about the
42536 packages, we refer to their documentation
42537 \begin_inset CommandInset citation
42539 key "listings,minted"
42547 \begin_layout Standard
42548 \begin_inset Newpage newpage
42554 \begin_layout Chapter
42556 Units available in \SpecialChar LyX
42558 \begin_inset Index idx
42561 \begin_layout Plain Layout
42568 \begin_inset CommandInset label
42570 name "cha:Units-available-in"
42577 \begin_layout Standard
42578 To understand the units described in this documentation, Table
42579 \begin_inset space ~
42583 \begin_inset CommandInset ref
42585 reference "tab:Units"
42589 explains all units available in \SpecialChar LyX
42593 \begin_layout Standard
42594 \begin_inset Float table
42601 \begin_layout Plain Layout
42602 \begin_inset Caption Standard
42604 \begin_layout Plain Layout
42605 \begin_inset CommandInset label
42619 \begin_layout Plain Layout
42620 \begin_inset VSpace medskip
42626 \begin_layout Plain Layout
42628 \begin_inset Tabular
42629 <lyxtabular version="3" rows="21" columns="3">
42630 <features tabularvalignment="middle">
42631 <column alignment="center" valignment="top">
42632 <column alignment="center" valignment="middle" width="50col%">
42633 <column alignment="center" valignment="top">
42635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42638 \begin_layout Plain Layout
42644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42647 \begin_layout Plain Layout
42653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42656 \begin_layout Plain Layout
42665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42668 \begin_layout Plain Layout
42674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42677 \begin_layout Plain Layout
42679 \begin_inset space \thinspace{}
42683 \begin_inset space \thinspace{}
42691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42694 \begin_layout Plain Layout
42702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42705 \begin_layout Plain Layout
42711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42714 \begin_layout Plain Layout
42716 \begin_inset space \thinspace{}
42720 \begin_inset space \thinspace{}
42728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42731 \begin_layout Plain Layout
42739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42742 \begin_layout Plain Layout
42748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42751 \begin_layout Plain Layout
42757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42760 \begin_layout Plain Layout
42768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42771 \begin_layout Plain Layout
42777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42780 \begin_layout Plain Layout
42782 \begin_inset space \thinspace{}
42786 \begin_inset Formula $\approx$
42790 \begin_inset space \thinspace{}
42798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42801 \begin_layout Plain Layout
42809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42812 \begin_layout Plain Layout
42818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42821 \begin_layout Plain Layout
42831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42834 \begin_layout Plain Layout
42842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42845 \begin_layout Plain Layout
42851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42854 \begin_layout Plain Layout
42864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42867 \begin_layout Plain Layout
42875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42878 \begin_layout Plain Layout
42884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42887 \begin_layout Plain Layout
42893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42896 \begin_layout Plain Layout
42904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42907 \begin_layout Plain Layout
42913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42916 \begin_layout Plain Layout
42922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42925 \begin_layout Plain Layout
42933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42936 \begin_layout Plain Layout
42942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42945 \begin_layout Plain Layout
42947 \begin_inset space \thinspace{}
42951 \begin_inset space \thinspace{}
42959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42962 \begin_layout Plain Layout
42970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42973 \begin_layout Plain Layout
42979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42982 \begin_layout Plain Layout
42984 \begin_inset space \thinspace{}
42988 \begin_inset space \thinspace{}
42996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42999 \begin_layout Plain Layout
43007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43010 \begin_layout Plain Layout
43016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43019 \begin_layout Plain Layout
43021 \begin_inset space \thinspace{}
43025 \begin_inset space \thinspace{}
43033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43036 \begin_layout Plain Layout
43044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43047 \begin_layout Plain Layout
43053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43056 \begin_layout Plain Layout
43057 scaled point (65536
43058 \begin_inset space \thinspace{}
43062 \begin_inset space \thinspace{}
43070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43073 \begin_layout Plain Layout
43081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43084 \begin_layout Plain Layout
43090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43093 \begin_layout Plain Layout
43099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43102 \begin_layout Plain Layout
43112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43115 \begin_layout Plain Layout
43121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43124 \begin_layout Plain Layout
43125 % of height between baselines of two subsequent text lines
43130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43133 \begin_layout Plain Layout
43143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43146 \begin_layout Plain Layout
43152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43155 \begin_layout Plain Layout
43161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43164 \begin_layout Plain Layout
43174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43177 \begin_layout Plain Layout
43183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43186 \begin_layout Plain Layout
43192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43195 \begin_layout Plain Layout
43205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43208 \begin_layout Plain Layout
43214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43217 \begin_layout Plain Layout
43223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43226 \begin_layout Plain Layout
43236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43239 \begin_layout Plain Layout
43245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43248 \begin_layout Plain Layout
43249 % of original image width
43254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43257 \begin_layout Plain Layout
43265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43268 \begin_layout Plain Layout
43274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
43277 \begin_layout Plain Layout
43283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
43286 \begin_layout Plain Layout
43296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
43299 \begin_layout Plain Layout
43305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
43308 \begin_layout Plain Layout
43314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
43317 \begin_layout Plain Layout
43338 \begin_layout Chapter
43339 Output File Formats with Graphics
43340 \begin_inset CommandInset label
43342 name "cha:Output-File-Formats"
43349 \begin_layout Section
43351 \begin_inset Index idx
43354 \begin_layout Plain Layout
43361 \begin_inset Index idx
43364 \begin_layout Plain Layout
43369 \begin_layout Plain Layout
43380 \begin_layout Plain Layout
43395 \begin_layout Standard
43396 This file type has the extension
43397 \begin_inset Quotes eld
43405 \begin_inset Quotes erd
43410 \begin_inset Quotes eld
43414 \begin_inset Quotes erd
43417 (DVI), because it is completely portable; you can move them from one machine
43418 to another without needing to do any sort of conversion.
43419 At the time when this file-format was developed, this was no matter of
43421 DVIs are used for quick previews and as pre-stage for other output formats,
43425 \begin_layout Standard
43426 \begin_inset Note Greyedout
43429 \begin_layout Plain Layout
43434 DVI-files do not contain images; they will only be a linked.
43439 So don't forget this, if you move your
43443 file to another computer.
43444 This property can also slow down your computer when you view the DVI, because
43445 the DVI-viewer has to convert the image in the background to make it visible
43446 when you scroll in the DVI.
43447 So it is recommended that you use PDF for files with many images.
43450 \begin_layout Standard
43451 You can export your document to DVI by using the menu
43453 File\SpecialChar menuseparator
43454 Export\SpecialChar menuseparator
43458 You can view your document as DVI via the
43465 \begin_layout Section
43467 \begin_inset Index idx
43470 \begin_layout Plain Layout
43471 File Formats ! PostScript
43477 \begin_inset Index idx
43480 \begin_layout Plain Layout
43485 \begin_layout Plain Layout
43496 \begin_layout Plain Layout
43511 \begin_layout Standard
43512 This file type has the extension
43513 \begin_inset Quotes eld
43521 \begin_inset Quotes erd
43525 PostScript was developed by the company
43529 as a printer language.
43530 The file therefore contains commands that the printer uses to print the
43532 PostScript can be seen as a
43533 \begin_inset Quotes eld
43536 programming language
43537 \begin_inset Quotes erd
43540 ; you can calculate with it and draw diagrams and images.
43544 \begin_layout Plain Layout
43545 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
43552 \begin_inset CommandInset citation
43564 Due to this ability, the files are often bigger than PDFs.
43567 \begin_layout Standard
43568 PostScript can only contain images in the format
43569 \begin_inset Quotes eld
43572 Encapsulated PostScript
43573 \begin_inset Quotes erd
43576 (EPS, file extension
43577 \begin_inset Quotes eld
43585 \begin_inset Quotes erd
43589 As \SpecialChar LyX
43590 allows you to use any known image format in your document, it has to
43591 convert images in the background to EPS.
43593 \begin_inset space ~
43597 \begin_inset space ~
43600 images in your document, \SpecialChar LyX
43602 \begin_inset space ~
43605 conversions whenever you view or export your document.
43606 This will slow down your work flow with \SpecialChar LyX
43608 So if you plan to use PostScript, you can insert your images directly as
43609 EPS to avoid this problem.
43612 \begin_layout Standard
43613 You can export your document to PostScript using the menu
43615 File\SpecialChar menuseparator
43616 Export\SpecialChar menuseparator
43620 You can view your document as PostScript via the
43627 \begin_layout Section
43629 \begin_inset Index idx
43632 \begin_layout Plain Layout
43639 \begin_inset Index idx
43642 \begin_layout Plain Layout
43651 \begin_layout Standard
43652 This file type has the extension
43653 \begin_inset Quotes eld
43661 \begin_inset Quotes erd
43666 \begin_inset Quotes eld
43669 Portable Document Format
43670 \begin_inset Quotes erd
43673 (PDF) was developed by
43677 as a derivative of PostScript.
43678 It is more compressed and it uses fewer commands than PostScript.
43680 \begin_inset Quotes eld
43684 \begin_inset Quotes erd
43687 implies, it can be processed at any computer system and the printed output
43688 looks exactly the same.
43691 \begin_layout Standard
43692 PDF can contain images in its own PDF format, in the format
43693 \begin_inset Quotes eld
43696 Joint Photographic Experts Group
43697 \begin_inset Quotes erd
43700 (JPG, file extension
43701 \begin_inset Quotes eld
43709 \begin_inset Quotes erd
43713 \begin_inset Quotes eld
43721 \begin_inset Quotes erd
43724 ), and in the format
43725 \begin_inset Quotes eld
43728 Portable Network Graphics
43729 \begin_inset Quotes erd
43732 (PNG, file extension
43733 \begin_inset Quotes eld
43741 \begin_inset Quotes erd
43745 Nevertheless you can use any other image format, because \SpecialChar LyX
43747 in the background to one of these formats.
43748 But as described in the section about PostScript, the image conversion
43749 will slow down your work flow.
43750 So it is recommended that you use images in one of the three mentioned
43754 \begin_layout Standard
43755 You can export your document to PDF via the menu
43757 File\SpecialChar menuseparator
43760 in three different ways:
43763 \begin_layout Description
43765 \begin_inset space ~
43768 (ps2pdf) This uses the program
43772 that creates a PDF from a PostScript-version of your file.
43773 The PostScript-version is produced by the program
43777 which uses a DVI-version as intermediate step.
43778 So this export variant consists of three conversions.
43781 \begin_layout Description
43783 \begin_inset space ~
43786 (dvipdfm) This uses the program
43790 that converts your file in the background to DVI and in a second step to
43794 \begin_layout Description
43796 \begin_inset space ~
43799 (pdflatex) This uses the program
43803 that converts your file directly to PDF.
43806 \begin_layout Standard
43807 It is recommended that you use
43810 \begin_inset space ~
43819 supports all features of actual PDF-versions, is quick and works stable.
43824 is not under development and therefore a bit outdated.
43827 \begin_layout Standard
43828 You can view your document as PDF via the
43832 menu or by using a toolbar button.
43835 \begin_layout Chapter
43836 List of dvips color names
43837 \begin_inset CommandInset label
43839 name "chap:List-of-dvips-colornames"
43846 \begin_layout Standard
43847 \begin_inset Tabular
43848 <lyxtabular version="3" rows="17" columns="4">
43849 <features tabularvalignment="middle">
43850 <column alignment="left" valignment="top" width="0pt">
43851 <column alignment="left" valignment="top" width="0pt">
43852 <column alignment="left" valignment="top" width="0pt">
43853 <column alignment="left" valignment="top" width="0pt">
43855 <cell alignment="left" valignment="top" usebox="none">
43858 \begin_layout Plain Layout
43862 \begin_layout Plain Layout
43875 \begin_layout Plain Layout
43886 \begin_layout Plain Layout
43898 <cell alignment="left" valignment="top" usebox="none">
43901 \begin_layout Plain Layout
43905 \begin_layout Plain Layout
43918 \begin_layout Plain Layout
43929 \begin_layout Plain Layout
43941 <cell alignment="left" valignment="top" usebox="none">
43944 \begin_layout Plain Layout
43948 \begin_layout Plain Layout
43961 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43984 <cell alignment="left" valignment="top" usebox="none">
43987 \begin_layout Plain Layout
43991 \begin_layout Plain Layout
44004 \begin_layout Plain Layout
44015 \begin_layout Plain Layout
44029 <cell alignment="center" valignment="top" usebox="none">
44032 \begin_layout Plain Layout
44036 \begin_layout Plain Layout
44049 \begin_layout Plain Layout
44057 \begin_inset Phantom Phantom
44060 \begin_layout Plain Layout
44070 \begin_layout Plain Layout
44082 <cell alignment="center" valignment="top" usebox="none">
44085 \begin_layout Plain Layout
44089 \begin_layout Plain Layout
44102 \begin_layout Plain Layout
44110 \begin_inset Phantom Phantom
44113 \begin_layout Plain Layout
44123 \begin_layout Plain Layout
44135 <cell alignment="center" valignment="top" usebox="none">
44138 \begin_layout Plain Layout
44142 \begin_layout Plain Layout
44155 \begin_layout Plain Layout
44163 \begin_inset Phantom Phantom
44166 \begin_layout Plain Layout
44176 \begin_layout Plain Layout
44188 <cell alignment="center" valignment="top" usebox="none">
44191 \begin_layout Plain Layout
44195 \begin_layout Plain Layout
44208 \begin_layout Plain Layout
44216 \begin_inset Phantom Phantom
44219 \begin_layout Plain Layout
44229 \begin_layout Plain Layout
44243 <cell alignment="left" valignment="top" usebox="none">
44246 \begin_layout Plain Layout
44250 \begin_layout Plain Layout
44263 \begin_layout Plain Layout
44271 \begin_inset Phantom Phantom
44274 \begin_layout Plain Layout
44284 \begin_layout Plain Layout
44296 <cell alignment="left" valignment="top" usebox="none">
44299 \begin_layout Plain Layout
44303 \begin_layout Plain Layout
44316 \begin_layout Plain Layout
44324 \begin_inset Phantom Phantom
44327 \begin_layout Plain Layout
44337 \begin_layout Plain Layout
44349 <cell alignment="left" valignment="top" usebox="none">
44352 \begin_layout Plain Layout
44356 \begin_layout Plain Layout
44369 \begin_layout Plain Layout
44377 \begin_inset Phantom Phantom
44380 \begin_layout Plain Layout
44390 \begin_layout Plain Layout
44402 <cell alignment="left" valignment="top" usebox="none">
44405 \begin_layout Plain Layout
44409 \begin_layout Plain Layout
44422 \begin_layout Plain Layout
44430 \begin_inset Phantom Phantom
44433 \begin_layout Plain Layout
44443 \begin_layout Plain Layout
44457 <cell alignment="left" valignment="top" usebox="none">
44460 \begin_layout Plain Layout
44464 \begin_layout Plain Layout
44477 \begin_layout Plain Layout
44485 \begin_inset Phantom Phantom
44488 \begin_layout Plain Layout
44498 \begin_layout Plain Layout
44510 <cell alignment="left" valignment="top" usebox="none">
44513 \begin_layout Plain Layout
44517 \begin_layout Plain Layout
44530 \begin_layout Plain Layout
44538 \begin_inset Phantom Phantom
44541 \begin_layout Plain Layout
44551 \begin_layout Plain Layout
44563 <cell alignment="left" valignment="top" usebox="none">
44566 \begin_layout Plain Layout
44570 \begin_layout Plain Layout
44583 \begin_layout Plain Layout
44591 \begin_inset Phantom Phantom
44594 \begin_layout Plain Layout
44604 \begin_layout Plain Layout
44616 <cell alignment="left" valignment="top" usebox="none">
44619 \begin_layout Plain Layout
44623 \begin_layout Plain Layout
44636 \begin_layout Plain Layout
44644 \begin_inset Phantom Phantom
44647 \begin_layout Plain Layout
44657 \begin_layout Plain Layout
44671 <cell alignment="left" valignment="top" usebox="none">
44674 \begin_layout Plain Layout
44678 \begin_layout Plain Layout
44691 \begin_layout Plain Layout
44699 \begin_inset Phantom Phantom
44702 \begin_layout Plain Layout
44712 \begin_layout Plain Layout
44724 <cell alignment="left" valignment="top" usebox="none">
44727 \begin_layout Plain Layout
44731 \begin_layout Plain Layout
44744 \begin_layout Plain Layout
44752 \begin_inset Phantom Phantom
44755 \begin_layout Plain Layout
44765 \begin_layout Plain Layout
44777 <cell alignment="left" valignment="top" usebox="none">
44780 \begin_layout Plain Layout
44784 \begin_layout Plain Layout
44797 \begin_layout Plain Layout
44805 \begin_inset Phantom Phantom
44808 \begin_layout Plain Layout
44818 \begin_layout Plain Layout
44830 <cell alignment="left" valignment="top" usebox="none">
44833 \begin_layout Plain Layout
44837 \begin_layout Plain Layout
44850 \begin_layout Plain Layout
44858 \begin_inset Phantom Phantom
44861 \begin_layout Plain Layout
44871 \begin_layout Plain Layout
44885 <cell alignment="left" valignment="top" usebox="none">
44888 \begin_layout Plain Layout
44892 \begin_layout Plain Layout
44905 \begin_layout Plain Layout
44913 \begin_inset Phantom Phantom
44916 \begin_layout Plain Layout
44926 \begin_layout Plain Layout
44938 <cell alignment="left" valignment="top" usebox="none">
44941 \begin_layout Plain Layout
44945 \begin_layout Plain Layout
44958 \begin_layout Plain Layout
44966 \begin_inset Phantom Phantom
44969 \begin_layout Plain Layout
44979 \begin_layout Plain Layout
44991 <cell alignment="left" valignment="top" usebox="none">
44994 \begin_layout Plain Layout
44998 \begin_layout Plain Layout
45011 \begin_layout Plain Layout
45019 \begin_inset Phantom Phantom
45022 \begin_layout Plain Layout
45032 \begin_layout Plain Layout
45044 <cell alignment="left" valignment="top" usebox="none">
45047 \begin_layout Plain Layout
45051 \begin_layout Plain Layout
45064 \begin_layout Plain Layout
45072 \begin_inset Phantom Phantom
45075 \begin_layout Plain Layout
45085 \begin_layout Plain Layout
45099 <cell alignment="center" valignment="top" usebox="none">
45102 \begin_layout Plain Layout
45106 \begin_layout Plain Layout
45119 \begin_layout Plain Layout
45127 \begin_inset Phantom Phantom
45130 \begin_layout Plain Layout
45140 \begin_layout Plain Layout
45152 <cell alignment="center" valignment="top" usebox="none">
45155 \begin_layout Plain Layout
45159 \begin_layout Plain Layout
45172 \begin_layout Plain Layout
45180 \begin_inset Phantom Phantom
45183 \begin_layout Plain Layout
45193 \begin_layout Plain Layout
45205 <cell alignment="center" valignment="top" usebox="none">
45208 \begin_layout Plain Layout
45212 \begin_layout Plain Layout
45225 \begin_layout Plain Layout
45233 \begin_inset Phantom Phantom
45236 \begin_layout Plain Layout
45246 \begin_layout Plain Layout
45258 <cell alignment="center" valignment="top" usebox="none">
45261 \begin_layout Plain Layout
45265 \begin_layout Plain Layout
45278 \begin_layout Plain Layout
45286 \begin_inset Phantom Phantom
45289 \begin_layout Plain Layout
45299 \begin_layout Plain Layout
45313 <cell alignment="left" valignment="top" usebox="none">
45316 \begin_layout Plain Layout
45320 \begin_layout Plain Layout
45333 \begin_layout Plain Layout
45341 \begin_inset Phantom Phantom
45344 \begin_layout Plain Layout
45354 \begin_layout Plain Layout
45366 <cell alignment="left" valignment="top" usebox="none">
45369 \begin_layout Plain Layout
45373 \begin_layout Plain Layout
45386 \begin_layout Plain Layout
45394 \begin_inset Phantom Phantom
45397 \begin_layout Plain Layout
45407 \begin_layout Plain Layout
45419 <cell alignment="left" valignment="top" usebox="none">
45422 \begin_layout Plain Layout
45426 \begin_layout Plain Layout
45439 \begin_layout Plain Layout
45447 \begin_inset Phantom Phantom
45450 \begin_layout Plain Layout
45460 \begin_layout Plain Layout
45472 <cell alignment="left" valignment="top" usebox="none">
45475 \begin_layout Plain Layout
45479 \begin_layout Plain Layout
45492 \begin_layout Plain Layout
45500 \begin_inset Phantom Phantom
45503 \begin_layout Plain Layout
45513 \begin_layout Plain Layout
45527 <cell alignment="left" valignment="top" usebox="none">
45530 \begin_layout Plain Layout
45534 \begin_layout Plain Layout
45547 \begin_layout Plain Layout
45555 \begin_inset Phantom Phantom
45558 \begin_layout Plain Layout
45568 \begin_layout Plain Layout
45580 <cell alignment="left" valignment="top" usebox="none">
45583 \begin_layout Plain Layout
45587 \begin_layout Plain Layout
45600 \begin_layout Plain Layout
45608 \begin_inset Phantom Phantom
45611 \begin_layout Plain Layout
45621 \begin_layout Plain Layout
45633 <cell alignment="left" valignment="top" usebox="none">
45636 \begin_layout Plain Layout
45640 \begin_layout Plain Layout
45653 \begin_layout Plain Layout
45661 \begin_inset Phantom Phantom
45664 \begin_layout Plain Layout
45674 \begin_layout Plain Layout
45686 <cell alignment="left" valignment="top" usebox="none">
45689 \begin_layout Plain Layout
45693 \begin_layout Plain Layout
45706 \begin_layout Plain Layout
45714 \begin_inset Phantom Phantom
45717 \begin_layout Plain Layout
45727 \begin_layout Plain Layout
45741 <cell alignment="left" valignment="top" usebox="none">
45744 \begin_layout Plain Layout
45748 \begin_layout Plain Layout
45761 \begin_layout Plain Layout
45769 \begin_inset Phantom Phantom
45772 \begin_layout Plain Layout
45782 \begin_layout Plain Layout
45794 <cell alignment="left" valignment="top" usebox="none">
45797 \begin_layout Plain Layout
45801 \begin_layout Plain Layout
45814 \begin_layout Plain Layout
45822 \begin_inset Phantom Phantom
45825 \begin_layout Plain Layout
45835 \begin_layout Plain Layout
45847 <cell alignment="left" valignment="top" usebox="none">
45850 \begin_layout Plain Layout
45854 \begin_layout Plain Layout
45867 \begin_layout Plain Layout
45875 \begin_inset Phantom Phantom
45878 \begin_layout Plain Layout
45888 \begin_layout Plain Layout
45900 <cell alignment="left" valignment="top" usebox="none">
45903 \begin_layout Plain Layout
45907 \begin_layout Plain Layout
45920 \begin_layout Plain Layout
45928 \begin_inset Phantom Phantom
45931 \begin_layout Plain Layout
45941 \begin_layout Plain Layout
45955 <cell alignment="left" valignment="top" usebox="none">
45958 \begin_layout Plain Layout
45962 \begin_layout Plain Layout
45975 \begin_layout Plain Layout
45983 \begin_inset Phantom Phantom
45986 \begin_layout Plain Layout
45996 \begin_layout Plain Layout
46008 <cell alignment="left" valignment="top" usebox="none">
46011 \begin_layout Plain Layout
46015 \begin_layout Plain Layout
46028 \begin_layout Plain Layout
46036 \begin_inset Phantom Phantom
46039 \begin_layout Plain Layout
46049 \begin_layout Plain Layout
46061 <cell alignment="left" valignment="top" usebox="none">
46064 \begin_layout Plain Layout
46068 \begin_layout Plain Layout
46081 \begin_layout Plain Layout
46089 \begin_inset Phantom Phantom
46092 \begin_layout Plain Layout
46102 \begin_layout Plain Layout
46114 <cell alignment="left" valignment="top" usebox="none">
46117 \begin_layout Plain Layout
46121 \begin_layout Plain Layout
46134 \begin_layout Plain Layout
46142 \begin_inset Phantom Phantom
46145 \begin_layout Plain Layout
46155 \begin_layout Plain Layout
46169 <cell alignment="left" valignment="top" usebox="none">
46172 \begin_layout Plain Layout
46176 \begin_layout Plain Layout
46189 \begin_layout Plain Layout
46197 \begin_inset Phantom Phantom
46200 \begin_layout Plain Layout
46210 \begin_layout Plain Layout
46222 <cell alignment="left" valignment="top" usebox="none">
46225 \begin_layout Plain Layout
46229 \begin_layout Plain Layout
46242 \begin_layout Plain Layout
46250 \begin_inset Phantom Phantom
46253 \begin_layout Plain Layout
46263 \begin_layout Plain Layout
46275 <cell alignment="left" valignment="top" usebox="none">
46278 \begin_layout Plain Layout
46282 \begin_layout Plain Layout
46295 \begin_layout Plain Layout
46303 \begin_inset Phantom Phantom
46306 \begin_layout Plain Layout
46316 \begin_layout Plain Layout
46328 <cell alignment="left" valignment="top" usebox="none">
46331 \begin_layout Plain Layout
46335 \begin_layout Plain Layout
46348 \begin_layout Plain Layout
46356 \begin_inset Phantom Phantom
46359 \begin_layout Plain Layout
46369 \begin_layout Plain Layout
46383 <cell alignment="left" valignment="top" usebox="none">
46386 \begin_layout Plain Layout
46390 \begin_layout Plain Layout
46403 \begin_layout Plain Layout
46411 \begin_inset Phantom Phantom
46414 \begin_layout Plain Layout
46424 \begin_layout Plain Layout
46436 <cell alignment="left" valignment="top" usebox="none">
46439 \begin_layout Plain Layout
46443 \begin_layout Plain Layout
46456 \begin_layout Plain Layout
46464 \begin_inset Phantom Phantom
46467 \begin_layout Plain Layout
46477 \begin_layout Plain Layout
46489 <cell alignment="left" valignment="top" usebox="none">
46492 \begin_layout Plain Layout
46496 \begin_layout Plain Layout
46509 \begin_layout Plain Layout
46517 \begin_inset Phantom Phantom
46520 \begin_layout Plain Layout
46530 \begin_layout Plain Layout
46542 <cell alignment="left" valignment="top" usebox="none">
46545 \begin_layout Plain Layout
46549 \begin_layout Plain Layout
46562 \begin_layout Plain Layout
46570 \begin_inset Phantom Phantom
46573 \begin_layout Plain Layout
46583 \begin_layout Plain Layout
46597 <cell alignment="left" valignment="top" usebox="none">
46600 \begin_layout Plain Layout
46604 \begin_layout Plain Layout
46617 \begin_layout Plain Layout
46625 \begin_inset Phantom Phantom
46628 \begin_layout Plain Layout
46638 \begin_layout Plain Layout
46650 <cell alignment="left" valignment="top" usebox="none">
46653 \begin_layout Plain Layout
46657 \begin_layout Plain Layout
46670 \begin_layout Plain Layout
46678 \begin_inset Phantom Phantom
46681 \begin_layout Plain Layout
46691 \begin_layout Plain Layout
46703 <cell alignment="left" valignment="top" usebox="none">
46706 \begin_layout Plain Layout
46710 \begin_layout Plain Layout
46723 \begin_layout Plain Layout
46731 \begin_inset Phantom Phantom
46734 \begin_layout Plain Layout
46744 \begin_layout Plain Layout
46756 <cell alignment="left" valignment="top" usebox="none">
46759 \begin_layout Plain Layout
46763 \begin_layout Plain Layout
46776 \begin_layout Plain Layout
46784 \begin_inset Phantom Phantom
46787 \begin_layout Plain Layout
46797 \begin_layout Plain Layout
46811 <cell alignment="left" valignment="top" usebox="none">
46814 \begin_layout Plain Layout
46818 \begin_layout Plain Layout
46831 \begin_layout Plain Layout
46839 \begin_inset Phantom Phantom
46842 \begin_layout Plain Layout
46852 \begin_layout Plain Layout
46864 <cell alignment="left" valignment="top" usebox="none">
46867 \begin_layout Plain Layout
46871 \begin_layout Plain Layout
46884 \begin_layout Plain Layout
46892 \begin_inset Phantom Phantom
46895 \begin_layout Plain Layout
46905 \begin_layout Plain Layout
46917 <cell alignment="left" valignment="top" usebox="none">
46920 \begin_layout Plain Layout
46924 \begin_layout Plain Layout
46937 \begin_layout Plain Layout
46945 \begin_inset Phantom Phantom
46948 \begin_layout Plain Layout
46958 \begin_layout Plain Layout
46970 <cell alignment="left" valignment="top" usebox="none">
46973 \begin_layout Plain Layout
46977 \begin_layout Plain Layout
46990 \begin_layout Plain Layout
46998 \begin_inset Phantom Phantom
47001 \begin_layout Plain Layout
47011 \begin_layout Plain Layout
47025 <cell alignment="left" valignment="top" usebox="none">
47028 \begin_layout Plain Layout
47032 \begin_layout Plain Layout
47045 \begin_layout Plain Layout
47053 \begin_inset Phantom Phantom
47056 \begin_layout Plain Layout
47066 \begin_layout Plain Layout
47078 <cell alignment="left" valignment="top" usebox="none">
47081 \begin_layout Plain Layout
47085 \begin_layout Plain Layout
47098 \begin_layout Plain Layout
47106 \begin_inset Phantom Phantom
47109 \begin_layout Plain Layout
47119 \begin_layout Plain Layout
47131 <cell alignment="left" valignment="top" usebox="none">
47134 \begin_layout Plain Layout
47138 \begin_layout Plain Layout
47151 \begin_layout Plain Layout
47159 \begin_inset Phantom Phantom
47162 \begin_layout Plain Layout
47172 \begin_layout Plain Layout
47184 <cell alignment="left" valignment="top" usebox="none">
47187 \begin_layout Plain Layout
47191 \begin_layout Plain Layout
47204 \begin_layout Plain Layout
47212 \begin_inset Phantom Phantom
47215 \begin_layout Plain Layout
47225 \begin_layout Plain Layout
47239 <cell alignment="left" valignment="top" usebox="none">
47242 \begin_layout Plain Layout
47246 \begin_layout Plain Layout
47259 \begin_layout Plain Layout
47267 \begin_inset Phantom Phantom
47270 \begin_layout Plain Layout
47280 \begin_layout Plain Layout
47292 <cell alignment="left" valignment="top" usebox="none">
47295 \begin_layout Plain Layout
47301 <cell alignment="left" valignment="top" usebox="none">
47304 \begin_layout Plain Layout
47310 <cell alignment="left" valignment="top" usebox="none">
47313 \begin_layout Plain Layout
47327 \begin_layout Chapter
47328 Explanation of Equation
47329 \begin_inset space ~
47333 \begin_inset CommandInset ref
47340 \begin_inset CommandInset label
47342 name "cha:Explanation-of-Equation"
47349 \begin_layout Standard
47350 We can calculate the total width of
47355 \begin_inset Formula $W_{\mathrm{tot\,n}}$
47359 \begin_inset Formula
47361 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
47367 \begin_inset Formula $W_{g\,n}$
47370 is the given width of all cells,
47376 is the \SpecialChar LaTeX
47377 -length between the cell text and the cell border (its default value
47379 \begin_inset space \thinspace{}
47389 is the thickness of the cell border line, the default is 0.4
47390 \begin_inset space \thinspace{}
47396 \begin_layout Standard
47398 \begin_inset space ~
47402 \begin_inset CommandInset ref
47404 reference "eq:Wtot_n"
47408 , the total width of a multicolumn
47409 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
47413 \begin_inset Formula
47415 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
47423 \begin_layout Standard
47424 By setting equation
47425 \begin_inset space ~
47429 \begin_inset CommandInset ref
47431 reference "eq:Wtot_n"
47436 \begin_inset CommandInset ref
47438 reference "eq:Wtot_mult"
47442 equal we can calculate the needed given width
47443 \begin_inset Formula $W_{g\,n}$
47450 columns are spanned, so that each column has a total width of
47451 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
47455 \begin_inset Formula
47457 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
47465 \begin_layout Bibliography
47466 \begin_inset CommandInset bibitem
47467 LatexCommand bibitem
47468 key "latexcompanion"
47473 Frank Mittelbach and Michel Goossens:
47475 The \SpecialChar LaTeX
47476 Companion Second Edition.
47479 Addison-Wesley, 2004
47482 \begin_layout Bibliography
47483 \begin_inset CommandInset bibitem
47484 LatexCommand bibitem
47490 Helmut Kopka and Patrick W.
47493 A Guide to \SpecialChar LaTeX
47497 Addison-Wesley, 2003
47500 \begin_layout Bibliography
47501 \begin_inset CommandInset bibitem
47502 LatexCommand bibitem
47511 : A Document Preparation System.
47514 Addison-Wesley, second edition, 1994
47517 \begin_layout Bibliography
47518 \begin_inset CommandInset bibitem
47519 LatexCommand bibitem
47525 Documentation of the \SpecialChar LaTeX
47529 \begin_inset CommandInset href
47532 target "https://www.ctan.org/tex-archive/macros/latex/contrib//arydshln/arydshln.pdf"
47540 \begin_inset Index idx
47543 \begin_layout Plain Layout
47545 -packages ! arydshln
47553 \begin_layout Bibliography
47554 \begin_inset CommandInset bibitem
47555 LatexCommand bibitem
47561 Documentation of the \SpecialChar LaTeX
47565 \begin_inset CommandInset href
47568 target "https://www.ctan.org/tex-archive/macros/latex/contrib//booktabs/booktabs.pdf"
47576 \begin_inset Index idx
47579 \begin_layout Plain Layout
47581 -packages ! booktabs
47589 \begin_layout Bibliography
47590 \begin_inset CommandInset bibitem
47591 LatexCommand bibitem
47597 Documentation of the \SpecialChar LaTeX
47601 \begin_inset CommandInset href
47604 target "https://www.ctan.org/tex-archive/macros/latex/contrib/caption/caption-eng.pdf"
47612 \begin_inset Index idx
47615 \begin_layout Plain Layout
47617 -packages ! caption
47625 \begin_layout Bibliography
47626 \begin_inset CommandInset bibitem
47627 LatexCommand bibitem
47633 Documentation of the \SpecialChar LaTeX
47637 \begin_inset CommandInset href
47640 target "https://www.ctan.org/tex-archive/macros/latex/contrib//diagbox/diagbox.pdf"
47648 \begin_inset Index idx
47651 \begin_layout Plain Layout
47653 -packages ! diagbox
47661 \begin_layout Bibliography
47662 \begin_inset CommandInset bibitem
47663 LatexCommand bibitem
47669 Documentation of the \SpecialChar LaTeX
47673 \begin_inset CommandInset href
47676 target "https://www.ctan.org/tex-archive/macros/latex/contrib//endfloat/endfloat.pdf"
47684 \begin_inset Index idx
47687 \begin_layout Plain Layout
47689 -packages ! endfloat
47697 \begin_layout Bibliography
47698 \begin_inset CommandInset bibitem
47699 LatexCommand bibitem
47705 Documentation of the \SpecialChar LaTeX
47709 \begin_inset CommandInset href
47712 target "https://www.ctan.org/tex-archive/macros/latex/contrib//footmisc/footmisc.pdf"
47720 \begin_inset Index idx
47723 \begin_layout Plain Layout
47725 -packages ! footmisc
47733 \begin_layout Bibliography
47734 \begin_inset CommandInset bibitem
47735 LatexCommand bibitem
47741 Documentation of the \SpecialChar LaTeX
47745 \begin_inset CommandInset href
47748 target "https://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
47756 \begin_inset Index idx
47759 \begin_layout Plain Layout
47761 -packages ! hyperref
47769 \begin_layout Bibliography
47770 \begin_inset CommandInset bibitem
47771 LatexCommand bibitem
47777 Documentation of the \SpecialChar LaTeX
47781 \begin_inset CommandInset href
47784 target "https://www.ctan.org/tex-archive/macros/latex/contrib//hyperref/hyperref.pdf"
47792 \begin_inset Index idx
47795 \begin_layout Plain Layout
47797 -packages ! hyperref
47805 \begin_layout Bibliography
47806 \begin_inset CommandInset bibitem
47807 LatexCommand bibitem
47813 Documentation of the \SpecialChar LaTeX
47817 \begin_inset CommandInset href
47820 target "https://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
47828 \begin_inset Index idx
47831 \begin_layout Plain Layout
47833 -packages ! KOMA-Script
47841 \begin_layout Bibliography
47842 \begin_inset CommandInset bibitem
47843 LatexCommand bibitem
47849 Documentation of the \SpecialChar LaTeX
47853 \begin_inset CommandInset href
47856 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/lettrine.pdf"
47864 \begin_inset CommandInset href
47867 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/demo.pdf"
47873 \begin_inset Index idx
47876 \begin_layout Plain Layout
47878 -packages ! lettrine
47886 \begin_layout Bibliography
47887 \begin_inset CommandInset bibitem
47888 LatexCommand bibitem
47894 Documentation of the \SpecialChar LaTeX
47898 \begin_inset CommandInset href
47901 target "https://www.ctan.org/tex-archive/macros/latex/contrib//listings/listings.pdf"
47909 \begin_inset Index idx
47912 \begin_layout Plain Layout
47914 -packages ! listings
47922 \begin_layout Bibliography
47923 \begin_inset CommandInset bibitem
47924 LatexCommand bibitem
47930 Documentation of the \SpecialChar LaTeX
47934 \begin_inset CommandInset href
47937 target "https://www.ctan.org/tex-archive/macros/latex/contrib//minted/minted.pdf"
47945 \begin_inset Index idx
47948 \begin_layout Plain Layout
47958 \begin_layout Bibliography
47959 \begin_inset CommandInset bibitem
47960 LatexCommand bibitem
47966 Documentation of the \SpecialChar LaTeX
47970 \begin_inset CommandInset href
47973 target "https://www.ctan.org/tex-archive/macros/latex/contrib//marginnote/marginnote.pdf"
47981 \begin_inset Index idx
47984 \begin_layout Plain Layout
47986 -packages ! marginnote
47994 \begin_layout Bibliography
47995 \begin_inset CommandInset bibitem
47996 LatexCommand bibitem
48002 Documentation of the \SpecialChar LaTeX
48006 \begin_inset CommandInset href
48009 target "https://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
48017 \begin_inset Index idx
48020 \begin_layout Plain Layout
48022 -packages ! pdfpages
48030 \begin_layout Bibliography
48031 \begin_inset CommandInset bibitem
48032 LatexCommand bibitem
48038 Documentation of the \SpecialChar LaTeX
48042 \begin_inset CommandInset href
48045 target "https://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
48053 \begin_inset Index idx
48056 \begin_layout Plain Layout
48058 -packages ! prettyref
48066 \begin_layout Bibliography
48067 \begin_inset CommandInset bibitem
48068 LatexCommand bibitem
48074 Web page of the \SpecialChar LaTeX
48078 \begin_inset CommandInset href
48081 target "http://tug.org/PSTricks/"
48089 \begin_inset Index idx
48092 \begin_layout Plain Layout
48094 -packages ! PSTricks
48102 \begin_layout Bibliography
48103 \begin_inset CommandInset bibitem
48104 LatexCommand bibitem
48110 Documentation of the \SpecialChar LaTeX
48114 \begin_inset CommandInset href
48117 target "https://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
48125 \begin_inset Index idx
48128 \begin_layout Plain Layout
48130 -packages ! refstyle
48138 \begin_layout Bibliography
48139 \begin_inset CommandInset bibitem
48140 LatexCommand bibitem
48146 Documentation of the \SpecialChar LaTeX
48150 \begin_inset CommandInset href
48153 target "https://www.ctan.org/tex-archive/macros/latex/contrib//sidecap/sidecap.pdf"
48161 \begin_inset Index idx
48164 \begin_layout Plain Layout
48166 -packages ! sidecap
48174 \begin_layout Bibliography
48175 \begin_inset CommandInset bibitem
48176 LatexCommand bibitem
48182 Documentation of the option
48183 \begin_inset CommandInset href
48185 name "Omit text in PDF"
48186 target "https://www.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
48194 \begin_inset CommandInset href
48197 target "https://inkscape.org"
48205 \begin_layout Standard
48206 \begin_inset CommandInset index_print
48207 LatexCommand printindex