1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \use_dash_ligatures true
177 \default_output_format pdf2
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \use_package amsmath 2
201 \use_package amssymb 2
202 \use_package cancel 0
204 \use_package mathdots 1
205 \use_package mathtools 0
206 \use_package mhchem 1
207 \use_package stackrel 0
208 \use_package stmaryrd 0
209 \use_package undertilde 0
211 \cite_engine_type default
215 \paperorientation portrait
220 \notefontcolor #0000ff
227 \paragraph_separation skip
230 \math_numbering_side default
231 \quotes_style english
235 \paperpagestyle default
236 \tracking_changes false
237 \output_changes false
240 \html_be_strict false
247 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
251 by the \SpecialChar LyX
256 \begin_layout Plain Layout
258 If you have comments or error corrections, please send them to the \SpecialChar LyX
261 \begin_inset CommandInset href
263 name "lyx-docs@lists.lyx.org"
264 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
276 \begin_inset Note Note
279 \begin_layout Plain Layout
286 \begin_inset Newline newline
290 \begin_inset Newline newline
298 \begin_layout Standard
299 \begin_inset CommandInset toc
300 LatexCommand tableofcontents
307 \begin_layout Standard
308 \begin_inset Note Note
311 \begin_layout Plain Layout
312 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
323 diagbox, lettrine, marginnote, picinpar
330 If they are not installed you can export the document anyway but the sections
331 where the packages are required won't appear in the output.
334 \begin_layout Plain Layout
335 The latest PDF-version of this document can be found here:
336 \begin_inset Newline newline
341 http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
349 \begin_layout Chapter
351 \begin_inset Index idx
354 \begin_layout Plain Layout
361 \begin_inset Index idx
364 \begin_layout Plain Layout
369 \begin_layout Plain Layout
380 \begin_layout Plain Layout
395 \begin_layout Section
397 \begin_inset Index idx
400 \begin_layout Plain Layout
401 Figures ! Graphics Dialog
407 \begin_inset CommandInset label
409 name "sec:Graphics-Dialog"
416 \begin_layout Standard
417 To insert an image into your document, place the cursor at the text position
418 you want and click on the toolbar icon
421 arg "dialog-show-new-inset graphics"
426 Insert\SpecialChar menuseparator
430 Then a dialog will appear to choose the file to load.
431 The image will appear in the output exactly at the position where it is
435 \begin_layout Standard
436 The graphics dialog can be called at any time by clicking on an image.
437 This dialog has three tabs:
440 \begin_layout Description
445 Here you can choose an image file and adjust its appearance in the output.
446 The available units for the image size are explained in appendix
451 \begin_inset CommandInset ref
453 reference "cha:Units-available-in"
458 \begin_inset Newline newline
462 \begin_inset Index idx
465 \begin_layout Plain Layout
471 You can rotate images counter-clockwise by setting a rotation angle and
473 The image will also be rotated inside \SpecialChar LyX
475 \begin_inset Newline newline
479 \begin_inset Index idx
482 \begin_layout Plain Layout
488 Images can be scaled by using a percentage value or by setting the width
489 and height explicitly.
490 If you set only the width or only the height, the other size will be determined
492 If you set both, then the image will be transformed to the given size,
493 possibly distorting it.
494 To prevent the image from distortion, use the option
496 Maintain aspect ratio
499 The image will then be scaled so that its width and height don't exceed
500 the specified dimensions.
501 \begin_inset Newline newline
504 Images can be opened in a program of your choice by right-clicking on it
505 and choosing the entry
514 The program can be set for every image format in the file format settings
519 \begin_layout Description
524 Alternatively to the usage of scaling units it is possible to set image
525 coordinates to adjust the height and width of the image in the output.
526 The coordinates can also be calculated automatically by pressing the button
556 will only print the image region within the given coordinates.
557 Normally you don't need to worry about image coordinates and can ignore
561 \begin_layout Description
578 In this tab you can modify the appearance of the image within \SpecialChar LyX
579 and \SpecialChar LaTeX
581 can specify additional \SpecialChar LaTeX
583 \begin_inset Newline newline
594 makes the image appear in the output only as a frame with the size of the
596 \begin_inset Newline newline
607 you can define or join an image settings group.
608 \begin_inset Index idx
611 \begin_layout Plain Layout
612 Figures ! Settings grouping
617 Images within such a group share their settings, so adjusting one image
618 of the group automatically also adjusts all other images of the group in
620 So you can for example change the size for a bunch of images without the
621 need to manually change each of them.
622 Joining an existing group can also be done using the context menu of the
623 image by checking the name of the desired group.
626 \begin_layout Standard
627 \begin_inset VSpace bigskip
633 \begin_layout Standard
634 This is an example image in PDF format
638 \begin_layout Plain Layout
639 Image formats are explained in section
644 \begin_inset CommandInset ref
646 reference "sec:Image-Formats"
655 within a separate, horizontally centered paragraph:
658 \begin_layout Standard
660 \begin_inset Graphics
661 filename clipart/2D-intensity-plot.pdf
670 \begin_layout Standard
671 This is the same image like the one above but in draft mode:
674 \begin_layout Standard
676 \begin_inset Graphics
677 filename clipart/2D-intensity-plot.pdf
687 \begin_layout Standard
688 \begin_inset Newpage newpage
694 \begin_layout Section
696 \begin_inset CommandInset label
698 name "sec:Figure-Floats"
703 \begin_inset Index idx
706 \begin_layout Plain Layout
713 \begin_inset Index idx
716 \begin_layout Plain Layout
725 \begin_layout Standard
726 For general explanations about floats, have a look at section
731 \begin_inset CommandInset ref
733 reference "sec:FloatIntroduction"
740 \begin_layout Standard
744 arg "float-insert figure"
749 Insert\SpecialChar menuseparator
750 Float\SpecialChar menuseparator
753 inserts a float with a caption that has the label
754 \begin_inset Quotes eld
762 \begin_inset Quotes erd
765 (# is the actual number).
766 You can insert the image above the caption, like in Figure
771 \begin_inset CommandInset ref
773 reference "fig:A-star-structure"
777 or below the caption, like in Figure
782 \begin_inset CommandInset ref
784 reference "fig:A-3D-object"
789 More about caption placement is described in section
794 \begin_inset CommandInset ref
796 reference "sec:Caption-Placement"
803 \begin_layout Standard
804 \begin_inset Float figure
809 \begin_layout Plain Layout
811 \begin_inset Graphics
812 filename clipart/Star-structure.pdf
822 \begin_layout Plain Layout
823 \begin_inset Caption Standard
825 \begin_layout Plain Layout
826 \begin_inset CommandInset label
828 name "fig:A-star-structure"
832 A star structure in a float.
845 \begin_layout Standard
846 \begin_inset Float figure
851 \begin_layout Plain Layout
852 \begin_inset Caption Standard
854 \begin_layout Plain Layout
855 \begin_inset CommandInset label
857 name "fig:A-3D-object"
869 \begin_layout Plain Layout
871 \begin_inset Graphics
872 filename clipart/3D-structure-distort.pdf
887 \begin_layout Standard
888 \begin_inset Index idx
891 \begin_layout Plain Layout
892 References ! to Figures
902 \begin_inset CommandInset ref
904 reference "fig:A-star-structure"
909 \begin_inset CommandInset ref
911 reference "fig:A-3D-object"
915 are examples of referenced figures.
916 Figures can be referenced in the text by referencing their label.
917 To do this insert a label in the caption using the menu
919 Insert\SpecialChar menuseparator
922 or the toolbar button
929 You can now refer to the label using the menu
931 Insert\SpecialChar menuseparator
938 or the toolbar button
941 arg "dialog-show-new-inset ref"
945 It is important to use references to floats, rather than using vague references
947 \begin_inset Quotes eld
951 \begin_inset Quotes erd
954 , because \SpecialChar LaTeX
955 will reposition the floats in the final document and it might
957 \begin_inset Quotes eld
961 \begin_inset Quotes erd
965 \begin_inset Newline newline
968 Referencing is explained in detail in section
973 \begin_inset CommandInset ref
975 reference "sec:Referencing-Floats"
982 \begin_layout Standard
983 Normally only one image is inserted to a figure float, but sometimes you
984 might want to use two images with separate subcaptions.
985 This can be done by inserting image floats into existing image floats.
986 Note that only the main caption of the float is added to the List of Figures.
992 \begin_inset CommandInset ref
994 reference "fig:Two-distorted-images"
998 is an example of a figure float with two images set side by side.
999 You can also set the images one below the other.
1001 \begin_inset space ~
1005 \begin_inset CommandInset ref
1007 reference "fig:Pink-object"
1012 \begin_inset CommandInset ref
1014 reference "fig:A-star"
1021 \begin_layout Standard
1022 \begin_inset Float figure
1027 \begin_layout Plain Layout
1028 \begin_inset space \hfill{}
1032 \begin_inset Float figure
1037 \begin_layout Plain Layout
1038 \begin_inset Caption Standard
1040 \begin_layout Plain Layout
1041 \begin_inset CommandInset label
1043 name "fig:Pink-object"
1055 \begin_layout Plain Layout
1056 \begin_inset Graphics
1057 filename clipart/3D-structure-distort.pdf
1070 \begin_inset space \hfill{}
1074 \begin_inset Float figure
1079 \begin_layout Plain Layout
1080 \begin_inset Caption Standard
1082 \begin_layout Plain Layout
1083 \begin_inset CommandInset label
1097 \begin_layout Plain Layout
1098 \begin_inset Graphics
1099 filename clipart/Star-structure.pdf
1112 \begin_inset space \hfill{}
1118 \begin_layout Plain Layout
1119 \begin_inset Caption Standard
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Two-distorted-images"
1128 Two distorted images.
1129 Both images are in the image settings group named
1130 \begin_inset Quotes eld
1134 \begin_inset Quotes erd
1150 \begin_layout Standard
1151 \begin_inset Newpage newpage
1157 \begin_layout Section
1159 \begin_inset CommandInset label
1161 name "sec:Image-Formats"
1166 \begin_inset Index idx
1169 \begin_layout Plain Layout
1176 \begin_inset Index idx
1179 \begin_layout Plain Layout
1180 Figures ! Image Formats
1188 \begin_layout Standard
1189 You can insert images in any known file format.
1190 But as explained in appendix
1191 \begin_inset space ~
1195 \begin_inset CommandInset ref
1197 reference "cha:Output-File-Formats"
1201 , each output document format allows only a few image formats.
1203 uses therefore the program
1207 in the background to convert the images to the right format.
1208 To increase your work flow by avoiding these conversions in the background,
1209 you could choose to use only the image formats that can directly be embedded
1210 in the output file format.
1211 The output file formats are explained in appendix
1212 \begin_inset space ~
1216 \begin_inset CommandInset ref
1218 reference "cha:Output-File-Formats"
1225 \begin_layout Standard
1226 Similar to fonts there are two types of image formats:
1229 \begin_layout Description
1231 \begin_inset space ~
1234 images consist of pixel values, often in a compressed form.
1235 They are therefore not fully scalable and look pixelated in large zooms.
1236 Well-known bitmap image formats are
1237 \begin_inset Quotes eld
1240 Graphics Interchange Format
1241 \begin_inset Quotes erd
1244 (GIF, file extension
1245 \begin_inset Quotes eld
1253 \begin_inset Quotes erd
1257 \begin_inset Index idx
1260 \begin_layout Plain Layout
1265 \begin_layout Plain Layout
1276 \begin_layout Plain Layout
1289 \begin_inset Quotes eld
1292 Portable Network Graphics
1293 \begin_inset Quotes erd
1296 (PNG, file extension
1297 \begin_inset Quotes eld
1305 \begin_inset Quotes erd
1309 \begin_inset Index idx
1312 \begin_layout Plain Layout
1317 \begin_layout Plain Layout
1328 \begin_layout Plain Layout
1341 \begin_inset Quotes eld
1344 Joint Photographic Experts Group
1345 \begin_inset Quotes erd
1348 (JPG, file extension
1349 \begin_inset Quotes eld
1357 \begin_inset Quotes erd
1361 \begin_inset Quotes eld
1369 \begin_inset Quotes erd
1373 \begin_inset Index idx
1376 \begin_layout Plain Layout
1381 \begin_layout Plain Layout
1392 \begin_layout Plain Layout
1407 \begin_layout Description
1409 \begin_inset space ~
1412 images consist of vectors and can therefore be scaled to any size without
1414 The scaling ability is necessary if you want to create presentations, because
1415 presentations are always scaled by the video projector.
1416 Scaling is also useful for online documents to let the user zoom into diagrams.
1417 \begin_inset Newline newline
1420 Well-known scalable image formats are
1421 \begin_inset Quotes eld
1424 Scalable Vector Graphics
1425 \begin_inset Quotes erd
1428 (SVG, file extension
1429 \begin_inset Quotes eld
1437 \begin_inset Quotes erd
1441 \begin_inset Index idx
1444 \begin_layout Plain Layout
1449 \begin_layout Plain Layout
1460 \begin_layout Plain Layout
1473 \begin_inset Quotes eld
1476 Encapsulated PostScript
1477 \begin_inset Quotes erd
1480 (EPS, file extension
1481 \begin_inset Quotes eld
1489 \begin_inset Quotes erd
1493 \begin_inset Index idx
1496 \begin_layout Plain Layout
1501 \begin_layout Plain Layout
1512 \begin_layout Plain Layout
1525 \begin_inset Quotes eld
1528 Portable Document Format
1529 \begin_inset Quotes erd
1532 (PDF, file extension
1533 \begin_inset Quotes eld
1541 \begin_inset Quotes erd
1545 \begin_inset Index idx
1548 \begin_layout Plain Layout
1555 \begin_inset Quotes eld
1559 \begin_inset Quotes erd
1562 (WMF, file extension
1563 \begin_inset Quotes eld
1571 \begin_inset Quotes erd
1575 \begin_inset Index idx
1578 \begin_layout Plain Layout
1583 \begin_layout Plain Layout
1594 \begin_layout Plain Layout
1608 \begin_inset Quotes eld
1612 \begin_inset Quotes erd
1615 , because you can convert any bitmap image to a PDF or EPS-image and the
1616 result will still be a bitmap image.
1617 In such cases only a header with the image properties is added to the original
1622 \begin_layout Plain Layout
1623 In the case of PDF, the original image is additionally compressed.
1629 The PDF-files generated by
1633 are for example bitmap images.
1636 \begin_layout Standard
1637 Normally it is not possible to convert a bitmap image into a scalable one,
1639 Only the image formats PDF and EPS can directly be embedded to PDF and
1640 PostScript output files, respectively.
1641 SVG and WMF-images are recalculated to bitmaps when the output file is
1642 generated because there is currently no adequate WMF/SVG
1643 \begin_inset Formula $\to$
1646 PDF/EPS converter available.
1649 \begin_layout Chapter
1651 \begin_inset Index idx
1654 \begin_layout Plain Layout
1663 \begin_layout Section
1665 \begin_inset Index idx
1668 \begin_layout Plain Layout
1669 Table ! Introduction
1677 \begin_layout Standard
1678 You can insert a table using either the toolbar button
1681 arg "tabular-insert"
1686 Insert\SpecialChar menuseparator
1690 The toolbar button offers you a graphical selection: move the mouse to
1691 set the column/row number of the table that should be created and then
1692 press a mouse button.
1693 When you use the menu to create a table, a dialog will appear, asking you
1694 for the number of rows and columns.
1695 \begin_inset Newline newline
1698 The default table has lines around any cell and the first row appears separated
1699 from the rest of the table.
1700 This separation occurs due to a double line: The cells of the first row
1701 have a line below them and the cells of the second row have a line above
1703 Here is an example table:
1706 \begin_layout Standard
1708 \begin_inset Tabular
1709 <lyxtabular version="3" rows="4" columns="4">
1710 <features tabularvalignment="middle">
1711 <column alignment="center" valignment="top">
1712 <column alignment="center" valignment="top">
1713 <column alignment="center" valignment="top">
1714 <column alignment="center" valignment="top">
1716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1719 \begin_layout Plain Layout
1725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1728 \begin_layout Plain Layout
1743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1746 \begin_layout Plain Layout
1752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1755 \begin_layout Plain Layout
1763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1766 \begin_layout Plain Layout
1781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1784 \begin_layout Plain Layout
1790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1793 \begin_layout Plain Layout
1799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1802 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1813 \begin_layout Plain Layout
1828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1831 \begin_layout Plain Layout
1837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1840 \begin_layout Plain Layout
1846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1849 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1860 \begin_layout Plain Layout
1875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1878 \begin_layout Plain Layout
1884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1887 \begin_layout Plain Layout
1893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1896 \begin_layout Plain Layout
1910 \begin_layout Section
1912 \begin_inset Index idx
1915 \begin_layout Plain Layout
1924 \begin_layout Standard
1925 You can alter a table by clicking on it with the right mouse button, which
1926 brings up the context menu.
1927 Under the menu entry
1931 you can adjust the settings of that cell and row/column respectively where
1932 the cursor is currently placed.
1935 More\SpecialChar menuseparator
1938 opens the table dialog where you can adjust more things.
1939 Most of the dialog options also work on selections.
1940 This means if you select more cells, columns or rows, the action is done
1941 for the whole selection.
1942 Note that there is a difference between selecting the
1946 of the cell, and the cell itself.
1947 \begin_inset Newline newline
1950 With the dialog option
1953 \begin_inset space ~
1958 every change you make in the dialog is directly applied.
1959 If you move the cursor to another table cell the dialog will then also
1960 be updated with the parameters of the new cell.
1961 If you change length values in the dialog you must press
1965 to get the change applied.
1966 \begin_inset Newline newline
1969 You can alter tables with the following tabs of the table dialog:
1972 \begin_layout Description
1974 \begin_inset space ~
1977 Settings Here you can set the table width
1978 \begin_inset Index idx
1981 \begin_layout Plain Layout
1987 , and the horizontal alignment and the width of the current column.
1991 \begin_inset space ~
1995 \begin_inset space ~
2000 is described in section
2001 \begin_inset space ~
2005 \begin_inset CommandInset ref
2007 reference "subsec:Special-Cell-Alignment"
2012 When you have set a width you can also adjust the vertical alignment of
2014 A given width will allow the cell to have line breaks and multiple paragraphs
2016 \begin_inset space \thinspace{}
2020 \begin_inset CommandInset ref
2022 reference "subsec:Multiple-Lines-in"
2027 If you set no width, the column is as wide as the content of its widest
2029 \begin_inset Newline newline
2032 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2034 \begin_inset space \thinspace{}
2038 \begin_inset CommandInset ref
2040 reference "subsec:Multicolumns"
2044 or the cells of one column as multirow cell, see sec.
2045 \begin_inset space \thinspace{}
2049 \begin_inset CommandInset ref
2051 reference "subsec:Multirows"
2056 \begin_inset Newline newline
2059 The rotate check boxes rotate the current cell, a selection, or the whole
2060 table counter-clockwise by 90
2061 \begin_inset space \thinspace{}
2065 The rotation is not shown within \SpecialChar LyX
2066 , only in the output.
2067 For more information see sec.
2068 \begin_inset space \thinspace{}
2072 \begin_inset CommandInset ref
2074 reference "sec:Rotated-Table-Cells"
2079 \begin_inset Newline newline
2083 \begin_inset Note Greyedout
2086 \begin_layout Plain Layout
2091 Not all DVI-viewers are able to display rotations.
2097 \begin_inset Newline newline
2100 The table-wide vertical alignment is used for tables within text lines:
2101 \begin_inset Newline newline
2104 A line with tables with different alignments:
2105 \begin_inset Tabular
2106 <lyxtabular version="3" rows="2" columns="2">
2107 <features tabularvalignment="top">
2108 <column alignment="center" valignment="top" width="0pt">
2109 <column alignment="center" valignment="top">
2111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2114 \begin_layout Plain Layout
2120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2123 \begin_layout Plain Layout
2140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2143 \begin_layout Plain Layout
2158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2161 \begin_layout Plain Layout
2173 \begin_inset Tabular
2174 <lyxtabular version="3" rows="2" columns="2">
2175 <features tabularvalignment="middle">
2176 <column alignment="center" valignment="top">
2177 <column alignment="center" valignment="top">
2179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2182 \begin_layout Plain Layout
2188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2191 \begin_layout Plain Layout
2208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2211 \begin_layout Plain Layout
2226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2229 \begin_layout Plain Layout
2241 \begin_inset Tabular
2242 <lyxtabular version="3" rows="2" columns="2">
2243 <features tabularvalignment="bottom">
2244 <column alignment="center" valignment="top" width="0pt">
2245 <column alignment="center" valignment="top">
2247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2250 \begin_layout Plain Layout
2256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2259 \begin_layout Plain Layout
2276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2279 \begin_layout Plain Layout
2294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2297 \begin_layout Plain Layout
2309 \begin_inset Newline newline
2312 It is also possible to enter a \SpecialChar LaTeX
2313 -argument which is needed for special table
2314 formattings, see sec.
2315 \begin_inset space \thinspace{}
2319 \begin_inset CommandInset ref
2321 reference "subsec:Multicolumn-Calculations"
2326 \begin_inset CommandInset ref
2328 reference "sec:Colored-Tables"
2335 \begin_layout Description
2336 Borders In this tab you can add and delete border lines for the current
2338 \begin_inset Newline newline
2341 Using the style option
2345 will convert the table to a formal table as described in sec.
2346 \begin_inset space \thinspace{}
2350 \begin_inset CommandInset ref
2352 reference "sec:Formal-Tables"
2357 \begin_inset Newline newline
2360 You can also add space here to table rows as described in sec.
2361 \begin_inset space \thinspace{}
2365 \begin_inset CommandInset ref
2367 reference "subsec:Row-Spacing"
2374 \begin_layout Description
2376 \begin_inset space ~
2379 table This tab is to make a table a multi-page table that can run over several
2382 \begin_inset space ~
2386 \begin_inset CommandInset ref
2388 reference "sec:Multi-page-Tables"
2393 \begin_inset CommandInset ref
2395 reference "sec:Special-Longtable-Issues"
2399 describe the multi-page table features in detail.
2402 \begin_layout Section
2404 \begin_inset Index idx
2407 \begin_layout Plain Layout
2416 \begin_layout Standard
2417 The table toolbar is an alternative to the table dialog to be able to alter
2419 It should normally appear at the bottom of \SpecialChar LyX
2420 's main window when the cursor
2422 You can alternatively switch it on to appear always, by right-clicking
2427 \begin_layout Standard
2428 The toolbar has the following icons:
2431 \begin_layout Labeling
2432 \labelwidthstring 00.00.0000
2435 arg "tabular-feature append-row"
2438 adds a row below the current cell or selection
2441 \begin_layout Labeling
2442 \labelwidthstring 00.00.0000
2445 arg "tabular-feature append-column"
2448 adds a column right beside the current cell or selection
2451 \begin_layout Labeling
2452 \labelwidthstring 00.00.0000
2455 arg "tabular-feature delete-row"
2458 deletes the current row or selection
2461 \begin_layout Labeling
2462 \labelwidthstring 00.00.0000
2465 arg "tabular-feature delete-column"
2468 deletes the current column or selection
2471 \begin_layout Labeling
2472 \labelwidthstring 00.00.0000
2475 arg "tabular-feature move-row-up"
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2485 arg "tabular-feature move-column-left"
2488 moves the column to the left
2491 \begin_layout Labeling
2492 \labelwidthstring 00.00.0000
2495 arg "tabular-feature move-row-down"
2501 \begin_layout Labeling
2502 \labelwidthstring 00.00.0000
2505 arg "tabular-feature move-column-right"
2508 moves the column to the right
2511 \begin_layout Labeling
2512 \labelwidthstring 00.00.0000
2515 arg "tabular-feature toggle-line-top"
2518 adds a line at the top of the current cell / row or of a selection
2521 \begin_layout Labeling
2522 \labelwidthstring 00.00.0000
2525 arg "tabular-feature toggle-line-bottom"
2528 adds a line at the bottom of the current cell / row or of a selection
2531 \begin_layout Labeling
2532 \labelwidthstring 00.00.0000
2535 arg "tabular-feature toggle-line-left"
2538 adds a line at the left side of the current cell / row or of a selection
2541 \begin_layout Labeling
2542 \labelwidthstring 00.00.0000
2545 arg "tabular-feature toggle-line-right"
2548 adds a line at the right side of the current cell / row or of a selection
2551 \begin_layout Labeling
2552 \labelwidthstring 00.00.0000
2555 arg "tabular-feature set-all-lines"
2558 adds lines around the current or selected cells - if the current cell no
2559 multicolumn cell this also affects the current row and column
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2566 arg "tabular-feature unset-all-lines"
2569 deletes all lines of the current or selected cells - if the current cell
2570 no multicolumn cell this also affects the current row and column
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2577 arg "tabular-feature m-align-left"
2580 left-aligns the content of the current cell / column
2583 \begin_layout Labeling
2584 \labelwidthstring 00.00.0000
2587 arg "tabular-feature m-align-center"
2590 centers the content of the current cell / column horizontally
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2597 arg "tabular-feature m-align-right"
2600 right-aligns the content of the current cell / column
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2607 arg "tabular-feature align-decimal"
2610 aligns the content of the current column at a character
2613 \begin_layout Labeling
2614 \labelwidthstring 00.00.0000
2617 arg "tabular-feature m-valign-top"
2620 aligns the content of the current cell vertically to the top
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2627 arg "tabular-feature m-valign-middle"
2630 centers the content of the current cell vertically
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2637 arg "tabular-feature m-valign-bottom"
2640 aligns the content of the current cell vertically to the bottom
2643 \begin_layout Labeling
2644 \labelwidthstring 00.00.0000
2647 arg "tabular-feature set-rotate-cell"
2650 rotates the current cell or selection counter-clockwise by 90°
2653 \begin_layout Labeling
2654 \labelwidthstring 00.00.0000
2657 arg "tabular-feature set-rotate-tabular"
2660 rotates the whole table counter-clockwise by 90°
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "tabular-feature multicolumn"
2670 sets the current cell or selection as a multicolumn
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2677 arg "tabular-feature multirow"
2680 sets the current cell or selection as a multirow
2683 \begin_layout Standard
2684 \begin_inset Note Greyedout
2687 \begin_layout Plain Layout
2692 For the output the vertical alignment of the first cell in a row is used
2693 for all following cells in the row.
2701 \begin_layout Section
2703 \begin_inset Index idx
2706 \begin_layout Plain Layout
2715 \begin_layout Standard
2716 In addition to the table dialog and toolbar, the menu
2718 Edit\SpecialChar menuseparator
2721 allows you to add and delete border lines for the current row/column and
2722 to set the current selection as multicolumn.
2723 The menu is only available when the cursor is inside a table.
2726 \begin_layout Section
2728 \begin_inset CommandInset label
2730 name "sec:Table-Floats"
2735 \begin_inset Index idx
2738 \begin_layout Plain Layout
2745 \begin_inset Index idx
2748 \begin_layout Plain Layout
2757 \begin_layout Standard
2758 For general explanations about floats, have a look at section
2759 \begin_inset space ~
2763 \begin_inset CommandInset ref
2765 reference "sec:FloatIntroduction"
2772 \begin_layout Standard
2773 \begin_inset Float table
2779 \begin_layout Plain Layout
2780 \begin_inset Caption Standard
2782 \begin_layout Plain Layout
2783 \begin_inset CommandInset label
2785 name "tab:a table float"
2797 \begin_layout Plain Layout
2799 \begin_inset Tabular
2800 <lyxtabular version="3" rows="3" columns="3">
2801 <features tabularvalignment="middle">
2802 <column alignment="center" valignment="top" width="0pt">
2803 <column alignment="center" valignment="top" width="0pt">
2804 <column alignment="center" valignment="top" width="0pt">
2806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2809 \begin_layout Plain Layout
2824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2827 \begin_layout Plain Layout
2842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2845 \begin_layout Plain Layout
2862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2865 \begin_layout Plain Layout
2880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2883 \begin_layout Plain Layout
2898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2901 \begin_layout Plain Layout
2918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2921 \begin_layout Plain Layout
2931 \begin_inset Formula $\int x^{2}dx$
2939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2942 \begin_layout Plain Layout
2952 \begin_inset Formula $\left[\begin{array}{cc}
2963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2966 \begin_layout Plain Layout
2976 \begin_inset Formula $1+1=2$
2997 \begin_layout Standard
2998 Table floats can be inserted using the menu
3000 Insert\SpecialChar menuseparator
3001 Float\SpecialChar menuseparator
3004 or the toolbar button
3007 arg "float-insert table"
3013 \begin_layout Standard
3014 The float appears as a collapsible box with a caption that has the label
3016 \begin_inset Quotes eld
3020 \begin_inset space ~
3024 \begin_inset Quotes erd
3027 (# is the actual table number).
3028 You can insert tables in the float above or below the caption.
3031 \begin_layout Standard
3033 \begin_inset space ~
3037 \begin_inset CommandInset ref
3039 reference "tab:a table float"
3043 is an example table within a table float.
3046 \begin_layout Standard
3047 Having the caption above the table is the common rule that is unfortunately
3048 not supported in \SpecialChar LaTeX
3049 's standard classes.
3050 This means that, if you are using the document classes
3066 , there will be no space between the caption and the table.
3067 To insert the needed space, add the following option to the load command
3068 of the \SpecialChar LaTeX
3074 \begin_inset Index idx
3077 \begin_layout Plain Layout
3084 in your document preamble:
3088 \begin_layout Plain Layout
3089 For more information have a look at section
3090 \begin_inset space ~
3094 \begin_inset CommandInset ref
3096 reference "sec:Caption-Placement"
3108 \begin_layout Standard
3114 \begin_layout Standard
3119 , which is described in section
3120 \begin_inset space ~
3124 \begin_inset CommandInset ref
3126 reference "sec:Caption-Formatting"
3130 , is used to adjust the caption format.
3133 \begin_layout Standard
3134 \begin_inset Index idx
3137 \begin_layout Plain Layout
3138 References ! to Tables
3143 Tables can be cross-referenced in the text by referencing their label.
3144 To do this insert a label in the caption using the menu
3146 Insert\SpecialChar menuseparator
3149 or the toolbar button
3156 You can now refer to the label using the menu
3158 Insert\SpecialChar menuseparator
3160 \begin_inset space ~
3165 or the toolbar button
3168 arg "dialog-show-new-inset ref"
3172 \begin_inset Newline newline
3175 Referencing is explained in detail in section
3176 \begin_inset space ~
3180 \begin_inset CommandInset ref
3182 reference "sec:Referencing-Floats"
3189 \begin_layout Section
3195 \begin_inset CommandInset label
3197 name "sec:Multi-page-Tables"
3202 \begin_inset Index idx
3205 \begin_layout Plain Layout
3212 \begin_inset Index idx
3215 \begin_layout Plain Layout
3216 Table ! Multi-page Table
3224 \begin_layout Standard
3225 If the table is too long to fit on one page, you can use the option
3228 \begin_inset space ~
3236 \begin_inset space ~
3241 of the table dialog to split the table automatically over more pages.
3242 Doing this enables the following options:
3245 \begin_layout Description
3246 Header: The current row is defined to be a header row that appears on all
3247 pages of the multi-page table; except for the first page, if
3250 \begin_inset space ~
3256 This is therefore called the main header.
3259 \begin_layout Description
3261 \begin_inset space ~
3264 header: The current row is defined to be a header row that appears on the
3265 first page of the multi-page table.
3268 \begin_layout Description
3269 Footer: The current row is defined to be a footer row that appears on all
3270 pages of the multi-page table; except for the last page, if
3273 \begin_inset space ~
3281 \begin_layout Description
3283 \begin_inset space ~
3286 footer: The current row is defined to be a footer row that appears on the
3287 last page of the multi-page table.
3290 \begin_layout Description
3291 Caption: The current row contains the table caption.
3292 The row is reset as single column and a caption is inserted.
3293 More about multi-page table captions is explained in sec.
3294 \begin_inset space \thinspace{}
3298 \begin_inset CommandInset ref
3300 reference "subsec:Multi-page-Table-Captions"
3307 \begin_layout Standard
3308 You can also specify a row where the table is split.
3309 See the following multi-page table to see how it works:
3312 \begin_layout Standard
3314 \begin_inset Tabular
3315 <lyxtabular version="3" rows="69" columns="3">
3316 <features islongtable="true" longtabularalignment="center">
3317 <column alignment="left" valignment="top" width="0cm">
3318 <column alignment="left" valignment="top" width="0pt">
3319 <column alignment="center" valignment="top" width="0pt">
3320 <row endfirsthead="true">
3321 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3324 \begin_layout Plain Layout
3327 Example Phone List (ignore the names)
3332 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3335 \begin_layout Plain Layout
3341 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Plain Layout
3351 <row endfirsthead="true">
3352 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3355 \begin_layout Plain Layout
3363 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3366 \begin_layout Plain Layout
3372 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Plain Layout
3384 <row endhead="true">
3385 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3388 \begin_layout Plain Layout
3396 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3399 \begin_layout Plain Layout
3405 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3408 \begin_layout Plain Layout
3415 <row endhead="true">
3416 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3419 \begin_layout Plain Layout
3427 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3430 \begin_layout Plain Layout
3436 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3439 \begin_layout Plain Layout
3448 <row endfoot="true">
3449 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3452 \begin_layout Plain Layout
3453 continued on next page
3458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3461 \begin_layout Plain Layout
3467 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3470 \begin_layout Plain Layout
3478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3481 \begin_layout Plain Layout
3489 <cell alignment="center" valignment="top" usebox="none">
3492 \begin_layout Plain Layout
3498 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3501 \begin_layout Plain Layout
3509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3512 \begin_layout Plain Layout
3520 <cell alignment="center" valignment="top" usebox="none">
3523 \begin_layout Plain Layout
3529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3532 \begin_layout Plain Layout
3540 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3543 \begin_layout Plain Layout
3551 <cell alignment="center" valignment="top" usebox="none">
3554 \begin_layout Plain Layout
3560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3563 \begin_layout Plain Layout
3571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3574 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" usebox="none">
3585 \begin_layout Plain Layout
3591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3594 \begin_layout Plain Layout
3602 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3605 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" usebox="none">
3616 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3625 \begin_layout Plain Layout
3633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3636 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" usebox="none">
3647 \begin_layout Plain Layout
3653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3656 \begin_layout Plain Layout
3664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3667 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" usebox="none">
3678 \begin_layout Plain Layout
3684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3687 \begin_layout Plain Layout
3695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3698 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" usebox="none">
3709 \begin_layout Plain Layout
3715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3718 \begin_layout Plain Layout
3726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3729 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" usebox="none">
3740 \begin_layout Plain Layout
3746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3749 \begin_layout Plain Layout
3757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3760 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" usebox="none">
3771 \begin_layout Plain Layout
3777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3780 \begin_layout Plain Layout
3788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3791 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" usebox="none">
3802 \begin_layout Plain Layout
3808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3811 \begin_layout Plain Layout
3819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3822 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" usebox="none">
3833 \begin_layout Plain Layout
3839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3842 \begin_layout Plain Layout
3850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3853 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" usebox="none">
3864 \begin_layout Plain Layout
3870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3873 \begin_layout Plain Layout
3881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3884 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" usebox="none">
3895 \begin_layout Plain Layout
3901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3904 \begin_layout Plain Layout
3912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3915 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" usebox="none">
3926 \begin_layout Plain Layout
3932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3935 \begin_layout Plain Layout
3943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3946 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" usebox="none">
3957 \begin_layout Plain Layout
3963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3966 \begin_layout Plain Layout
3974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3977 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" usebox="none">
3988 \begin_layout Plain Layout
3994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3997 \begin_layout Plain Layout
4005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4008 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" usebox="none">
4019 \begin_layout Plain Layout
4025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4028 \begin_layout Plain Layout
4036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4039 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" usebox="none">
4050 \begin_layout Plain Layout
4056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4059 \begin_layout Plain Layout
4067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4070 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" usebox="none">
4081 \begin_layout Plain Layout
4087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4090 \begin_layout Plain Layout
4098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4101 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" usebox="none">
4112 \begin_layout Plain Layout
4118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4121 \begin_layout Plain Layout
4129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4132 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" usebox="none">
4143 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4152 \begin_layout Plain Layout
4160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4163 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" usebox="none">
4174 \begin_layout Plain Layout
4180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4183 \begin_layout Plain Layout
4191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4194 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" usebox="none">
4205 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4214 \begin_layout Plain Layout
4222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4225 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" usebox="none">
4236 \begin_layout Plain Layout
4242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" usebox="none">
4267 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" usebox="none">
4298 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" usebox="none">
4329 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" usebox="none">
4360 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" usebox="none">
4391 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4422 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4442 \begin_layout Plain Layout
4448 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4451 \begin_layout Plain Layout
4457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4460 \begin_layout Plain Layout
4468 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4471 \begin_layout Plain Layout
4479 <cell alignment="center" valignment="top" usebox="none">
4482 \begin_layout Plain Layout
4488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Plain Layout
4499 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4502 \begin_layout Plain Layout
4510 <cell alignment="center" valignment="top" usebox="none">
4513 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4522 \begin_layout Plain Layout
4530 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4533 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" usebox="none">
4544 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4553 \begin_layout Plain Layout
4561 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4564 \begin_layout Plain Layout
4572 <cell alignment="center" valignment="top" usebox="none">
4575 \begin_layout Plain Layout
4581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4584 \begin_layout Plain Layout
4592 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4595 \begin_layout Plain Layout
4603 <cell alignment="center" valignment="top" usebox="none">
4606 \begin_layout Plain Layout
4612 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4615 \begin_layout Plain Layout
4623 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4626 \begin_layout Plain Layout
4634 <cell alignment="center" valignment="top" usebox="none">
4637 \begin_layout Plain Layout
4643 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4646 \begin_layout Plain Layout
4654 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4657 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" usebox="none">
4668 \begin_layout Plain Layout
4674 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4677 \begin_layout Plain Layout
4685 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4688 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" usebox="none">
4699 \begin_layout Plain Layout
4705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4708 \begin_layout Plain Layout
4716 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4719 \begin_layout Plain Layout
4727 <cell alignment="center" valignment="top" usebox="none">
4730 \begin_layout Plain Layout
4736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4739 \begin_layout Plain Layout
4747 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4750 \begin_layout Plain Layout
4758 <cell alignment="center" valignment="top" usebox="none">
4761 \begin_layout Plain Layout
4767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4770 \begin_layout Plain Layout
4778 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4781 \begin_layout Plain Layout
4789 <cell alignment="center" valignment="top" usebox="none">
4792 \begin_layout Plain Layout
4798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4801 \begin_layout Plain Layout
4809 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4812 \begin_layout Plain Layout
4820 <cell alignment="center" valignment="top" usebox="none">
4823 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4832 \begin_layout Plain Layout
4840 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4843 \begin_layout Plain Layout
4851 <cell alignment="center" valignment="top" usebox="none">
4854 \begin_layout Plain Layout
4860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4863 \begin_layout Plain Layout
4871 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4874 \begin_layout Plain Layout
4882 <cell alignment="center" valignment="top" usebox="none">
4885 \begin_layout Plain Layout
4891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4894 \begin_layout Plain Layout
4902 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4905 \begin_layout Plain Layout
4913 <cell alignment="center" valignment="top" usebox="none">
4916 \begin_layout Plain Layout
4922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4925 \begin_layout Plain Layout
4933 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4936 \begin_layout Plain Layout
4944 <cell alignment="center" valignment="top" usebox="none">
4947 \begin_layout Plain Layout
4953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4956 \begin_layout Plain Layout
4964 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4967 \begin_layout Plain Layout
4975 <cell alignment="center" valignment="top" usebox="none">
4978 \begin_layout Plain Layout
4984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4987 \begin_layout Plain Layout
4995 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4998 \begin_layout Plain Layout
5006 <cell alignment="center" valignment="top" usebox="none">
5009 \begin_layout Plain Layout
5015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5018 \begin_layout Plain Layout
5026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5029 \begin_layout Plain Layout
5037 <cell alignment="center" valignment="top" usebox="none">
5040 \begin_layout Plain Layout
5046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5049 \begin_layout Plain Layout
5057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5060 \begin_layout Plain Layout
5068 <cell alignment="center" valignment="top" usebox="none">
5071 \begin_layout Plain Layout
5077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5080 \begin_layout Plain Layout
5088 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5091 \begin_layout Plain Layout
5099 <cell alignment="center" valignment="top" usebox="none">
5102 \begin_layout Plain Layout
5108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5111 \begin_layout Plain Layout
5119 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5122 \begin_layout Plain Layout
5130 <cell alignment="center" valignment="top" usebox="none">
5133 \begin_layout Plain Layout
5139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5142 \begin_layout Plain Layout
5150 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5153 \begin_layout Plain Layout
5161 <cell alignment="center" valignment="top" usebox="none">
5164 \begin_layout Plain Layout
5170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5173 \begin_layout Plain Layout
5181 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5184 \begin_layout Plain Layout
5192 <cell alignment="center" valignment="top" usebox="none">
5195 \begin_layout Plain Layout
5201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5204 \begin_layout Plain Layout
5212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5215 \begin_layout Plain Layout
5223 <cell alignment="center" valignment="top" usebox="none">
5226 \begin_layout Plain Layout
5232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5235 \begin_layout Plain Layout
5243 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5246 \begin_layout Plain Layout
5254 <cell alignment="center" valignment="top" usebox="none">
5257 \begin_layout Plain Layout
5263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5266 \begin_layout Plain Layout
5274 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5277 \begin_layout Plain Layout
5285 <cell alignment="center" valignment="top" usebox="none">
5288 \begin_layout Plain Layout
5294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5297 \begin_layout Plain Layout
5305 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5308 \begin_layout Plain Layout
5316 <cell alignment="center" valignment="top" usebox="none">
5319 \begin_layout Plain Layout
5325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5328 \begin_layout Plain Layout
5336 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5339 \begin_layout Plain Layout
5347 <cell alignment="center" valignment="top" usebox="none">
5350 \begin_layout Plain Layout
5356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5359 \begin_layout Plain Layout
5367 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5370 \begin_layout Plain Layout
5378 <cell alignment="center" valignment="top" usebox="none">
5381 \begin_layout Plain Layout
5387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5390 \begin_layout Plain Layout
5398 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5401 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5421 \begin_layout Plain Layout
5428 <row endlastfoot="true">
5429 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5432 \begin_layout Plain Layout
5438 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5450 \begin_layout Plain Layout
5465 \begin_layout Plain Layout
5469 addtocounter{table}{-1}
5475 \begin_inset Note Note
5478 \begin_layout Plain Layout
5479 See the first greyed-out note in section
5480 \begin_inset space ~
5484 \begin_inset CommandInset ref
5486 reference "subsec:Multi-page-Table-Captions"
5490 for an explanation of this command.
5498 \begin_layout Subsection
5499 Footnotes in Multi-page tables
5500 \begin_inset CommandInset label
5502 name "subsec:Footnotes-in-Multi-page"
5507 \begin_inset Index idx
5510 \begin_layout Plain Layout
5511 Table ! Multi-page Table ! Footnotes
5519 \begin_layout Standard
5520 Footnotes can be inserted to every Multi-page table cell.
5521 They appear at the bottom of the page where the table cell with the footnote
5524 \begin_inset space ~
5528 \begin_inset CommandInset ref
5530 reference "tab:DiffCaptions"
5534 has for example a footnote.
5537 \begin_layout Subsection
5538 Multi-page Table Alignment
5539 \begin_inset Index idx
5542 \begin_layout Plain Layout
5543 Table ! Multi-page Table ! Alignment
5551 \begin_layout Standard
5552 The horizontal alignment of multi-page tables can be set in the table settings
5554 For left- and right-alignment the table will be directly at the page border.
5555 To add space between the table and the border one has to set the alignment
5556 to center and change the value of the \SpecialChar LaTeX
5569 by inserting this line as \SpecialChar TeX
5570 Code before the multi-page table:
5573 \begin_layout Standard
5583 \begin_layout Standard
5584 The value can have any of the units listed in Table
5585 \begin_inset space ~
5589 \begin_inset CommandInset ref
5591 reference "tab:Units"
5602 controls the horizontal distance from the left page border to the multi-page
5609 the distance from the right side.
5610 The default value for both lengths is
5616 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5620 \begin_layout Standard
5621 The following multi-page table was centered and
5637 \begin_layout Plain Layout
5653 \begin_layout Standard
5654 \begin_inset Tabular
5655 <lyxtabular version="3" rows="5" columns="5">
5656 <features islongtable="true" longtabularalignment="center">
5657 <column alignment="center" valignment="top">
5658 <column alignment="center" valignment="top" width="0pt">
5659 <column alignment="center" valignment="top">
5660 <column alignment="center" valignment="top">
5661 <column alignment="center" valignment="top">
5663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5666 \begin_layout Plain Layout
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Plain Layout
5681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5684 \begin_layout Plain Layout
5690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5693 \begin_layout Plain Layout
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5702 \begin_layout Plain Layout
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Plain Layout
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Plain Layout
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Plain Layout
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5740 \begin_layout Plain Layout
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5749 \begin_layout Plain Layout
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Plain Layout
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Plain Layout
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5796 \begin_layout Plain Layout
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5843 \begin_layout Plain Layout
5851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5854 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5890 \begin_layout Plain Layout
5905 \begin_layout Plain Layout
5922 \begin_layout Plain Layout
5926 addtocounter{table}{-1}
5932 \begin_inset Note Note
5935 \begin_layout Plain Layout
5936 See the first greyed-out note in section
5937 \begin_inset space ~
5941 \begin_inset CommandInset ref
5943 reference "subsec:Multi-page-Table-Captions"
5947 for an explanation of this command.
5955 \begin_layout Subsection
5956 Multi-page Table Captions
5957 \begin_inset Index idx
5960 \begin_layout Plain Layout
5961 Table ! Multi-page Table ! Captions
5967 \begin_inset CommandInset label
5969 name "subsec:Multi-page-Table-Captions"
5976 \begin_layout Standard
5977 A multi-page table cannot be put into a table float because floats can only
5979 But the caption environment of floats can also be used for multi-page tables
5980 when you use the multi-page table option
5984 as described in sec.
5985 \begin_inset space \thinspace{}
5989 \begin_inset CommandInset ref
5991 reference "sec:Multi-page-Tables"
5996 Only one table row should contain a caption, either a header or a footer
6000 \begin_layout Standard
6001 Here is a short multi-page table to see how it works:
6004 \begin_layout Standard
6005 \begin_inset Tabular
6006 <lyxtabular version="3" rows="6" columns="5">
6007 <features islongtable="true" longtabularalignment="center">
6008 <column alignment="center" valignment="top">
6009 <column alignment="center" valignment="top">
6010 <column alignment="center" valignment="top">
6011 <column alignment="center" valignment="top">
6012 <column alignment="center" valignment="top">
6013 <row endfirsthead="true" caption="true">
6014 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6017 \begin_layout Plain Layout
6018 \begin_inset Caption Standard
6020 \begin_layout Plain Layout
6021 Multi-page table with caption
6022 \begin_inset Argument 1
6025 \begin_layout Plain Layout
6041 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6044 \begin_layout Plain Layout
6050 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6053 \begin_layout Plain Layout
6059 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6062 \begin_layout Plain Layout
6068 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6071 \begin_layout Plain Layout
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Plain Layout
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6091 \begin_layout Plain Layout
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Plain Layout
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Plain Layout
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6118 \begin_layout Plain Layout
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Plain Layout
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Plain Layout
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Plain Layout
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Plain Layout
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6165 \begin_layout Plain Layout
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Plain Layout
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Plain Layout
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Plain Layout
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6212 \begin_layout Plain Layout
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6259 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6297 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6306 \begin_layout Plain Layout
6320 \begin_layout Standard
6321 \begin_inset VSpace medskip
6325 \begin_inset Note Greyedout
6328 \begin_layout Plain Layout
6332 \begin_inset space ~
6337 The table number is increased for every multi-page table, even if you did
6338 not set a caption for it.
6339 For this reason you could have the case that e.
6340 \begin_inset space \thinspace{}
6344 \begin_inset space \space{}
6348 \begin_inset space ~
6352 \begin_inset space ~
6355 2.1 in the list of tables if there are two multi-page tables without captions.
6356 To avoid this you can add the following command in \SpecialChar TeX
6357 Code after every multi-page
6358 table without a caption:
6361 \begin_layout Plain Layout
6366 addtocounter{table}{-1}
6369 \begin_layout Plain Layout
6370 This is not needed when none of your multi-page tables has a caption and
6371 you add the following code to the document preamble:
6374 \begin_layout Plain Layout
6384 \begin_inset Newline newline
6395 addtocounter{table}{-1}}
6403 \begin_layout Standard
6404 \begin_inset Note Greyedout
6407 \begin_layout Plain Layout
6411 \begin_inset space ~
6421 \begin_inset Index idx
6424 \begin_layout Plain Layout
6426 -packages ! hyperref
6439 dialog to link cross-references, the link to a multi-page table caption
6440 will always point to the beginning of the document.
6448 \begin_layout Subsubsection
6449 References to multi-page tables
6450 \begin_inset Index idx
6453 \begin_layout Plain Layout
6454 Table ! Multi-page Table ! References
6462 \begin_layout Standard
6463 \begin_inset Tabular
6464 <lyxtabular version="3" rows="6" columns="5">
6465 <features islongtable="true" longtabularalignment="center">
6466 <column alignment="center" valignment="top">
6467 <column alignment="center" valignment="top">
6468 <column alignment="center" valignment="top">
6469 <column alignment="center" valignment="top">
6470 <column alignment="center" valignment="top">
6471 <row endfirsthead="true" caption="true">
6472 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6475 \begin_layout Plain Layout
6476 \begin_inset Caption Standard
6478 \begin_layout Plain Layout
6479 Referenced multi-page table
6480 \begin_inset CommandInset label
6482 name "tab:Referenced-multi-page-table"
6496 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6499 \begin_layout Plain Layout
6505 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6508 \begin_layout Plain Layout
6514 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6517 \begin_layout Plain Layout
6523 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6526 \begin_layout Plain Layout
6534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6537 \begin_layout Plain Layout
6543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6546 \begin_layout Plain Layout
6552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6555 \begin_layout Plain Layout
6561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6564 \begin_layout Plain Layout
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6573 \begin_layout Plain Layout
6581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6584 \begin_layout Plain Layout
6590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6593 \begin_layout Plain Layout
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6602 \begin_layout Plain Layout
6608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6611 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6620 \begin_layout Plain Layout
6628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6631 \begin_layout Plain Layout
6637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6640 \begin_layout Plain Layout
6646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6649 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6658 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6667 \begin_layout Plain Layout
6675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6678 \begin_layout Plain Layout
6684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6687 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6696 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6714 \begin_layout Plain Layout
6722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6761 \begin_layout Plain Layout
6775 \begin_layout Standard
6776 To reference a multi-page table, insert a label into the caption.
6779 \begin_layout Standard
6780 This is a reference to Table
6781 \begin_inset space ~
6785 \begin_inset CommandInset ref
6787 reference "tab:Referenced-multi-page-table"
6794 \begin_layout Standard
6795 The caption layout can be set together with all other captions of your document
6796 using the \SpecialChar LaTeX
6802 \begin_inset Index idx
6805 \begin_layout Plain Layout
6813 \begin_inset space ~
6817 \begin_inset CommandInset ref
6819 reference "sec:Caption-Formatting"
6826 \begin_layout Subsubsection
6828 \begin_inset Index idx
6831 \begin_layout Plain Layout
6832 Table ! Multi-page Table ! Caption Width
6840 \begin_layout Standard
6841 The maximal width of caption lines is defined by the length
6848 Its default value is 4
6849 \begin_inset space \thinspace{}
6853 To change it add the following command to your document preamble or as
6855 Code into your document before the multi-page table that should be affected
6858 \begin_layout Standard
6868 \begin_layout Standard
6873 can have one of the units listed in appendix
6874 \begin_inset space ~
6878 \begin_inset CommandInset ref
6880 reference "cha:Units-available-in"
6887 \begin_layout Standard
6888 The following tables show the difference:
6891 \begin_layout Standard
6892 \begin_inset Tabular
6893 <lyxtabular version="3" rows="6" columns="5">
6894 <features islongtable="true" longtabularalignment="center">
6895 <column alignment="center" valignment="top">
6896 <column alignment="center" valignment="top">
6897 <column alignment="center" valignment="top">
6898 <column alignment="center" valignment="top">
6899 <column alignment="center" valignment="top">
6900 <row endfirsthead="true" caption="true">
6901 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6904 \begin_layout Plain Layout
6905 \begin_inset Caption Standard
6907 \begin_layout Plain Layout
6908 Long full title with default width long full title with default width long
6909 full title with default width
6910 \begin_inset Argument 1
6913 \begin_layout Plain Layout
6914 caption with default width
6929 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6932 \begin_layout Plain Layout
6938 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6941 \begin_layout Plain Layout
6947 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6950 \begin_layout Plain Layout
6956 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6959 \begin_layout Plain Layout
6967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6970 \begin_layout Plain Layout
6976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6979 \begin_layout Plain Layout
6985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6988 \begin_layout Plain Layout
6994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6997 \begin_layout Plain Layout
7003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7006 \begin_layout Plain Layout
7014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7017 \begin_layout Plain Layout
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Plain Layout
7032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7035 \begin_layout Plain Layout
7041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7044 \begin_layout Plain Layout
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7053 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7064 \begin_layout Plain Layout
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7082 \begin_layout Plain Layout
7088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7100 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7111 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7147 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7158 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7176 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7194 \begin_layout Plain Layout
7208 \begin_layout Standard
7212 \begin_layout Plain Layout
7224 \begin_inset Tabular
7225 <lyxtabular version="3" rows="6" columns="5">
7226 <features islongtable="true" longtabularalignment="center">
7227 <column alignment="center" valignment="top">
7228 <column alignment="center" valignment="top">
7229 <column alignment="center" valignment="top">
7230 <column alignment="center" valignment="top">
7231 <column alignment="center" valignment="top">
7232 <row endfirsthead="true" caption="true">
7233 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7236 \begin_layout Plain Layout
7237 \begin_inset Caption Standard
7239 \begin_layout Plain Layout
7240 Long full title with width set to 5
7241 \begin_inset space \thinspace{}
7244 cm long full title with width set to 5
7245 \begin_inset space \thinspace{}
7248 cm long full title with width set to 5
7249 \begin_inset space \thinspace{}
7253 \begin_inset Argument 1
7256 \begin_layout Plain Layout
7258 \begin_inset space \thinspace{}
7262 \begin_inset space \thinspace{}
7266 \begin_inset space \thinspace{}
7284 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7287 \begin_layout Plain Layout
7293 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7296 \begin_layout Plain Layout
7302 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7305 \begin_layout Plain Layout
7311 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7314 \begin_layout Plain Layout
7322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7325 \begin_layout Plain Layout
7331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7334 \begin_layout Plain Layout
7340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7343 \begin_layout Plain Layout
7349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7352 \begin_layout Plain Layout
7358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7361 \begin_layout Plain Layout
7369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7372 \begin_layout Plain Layout
7378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7381 \begin_layout Plain Layout
7387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7390 \begin_layout Plain Layout
7396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7399 \begin_layout Plain Layout
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7408 \begin_layout Plain Layout
7416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7419 \begin_layout Plain Layout
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7428 \begin_layout Plain Layout
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7437 \begin_layout Plain Layout
7443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7446 \begin_layout Plain Layout
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7455 \begin_layout Plain Layout
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7475 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7484 \begin_layout Plain Layout
7490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7502 \begin_layout Plain Layout
7510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7522 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7531 \begin_layout Plain Layout
7537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7540 \begin_layout Plain Layout
7546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7549 \begin_layout Plain Layout
7563 \begin_layout Standard
7567 \begin_layout Plain Layout
7581 \begin_layout Standard
7582 \begin_inset Note Greyedout
7585 \begin_layout Plain Layout
7590 When the \SpecialChar LaTeX
7596 \begin_inset Index idx
7599 \begin_layout Plain Layout
7606 is used, as in this document, the full page width is used for the caption
7607 when you use the default value of 4
7608 \begin_inset space \thinspace{}
7618 To get in this case exactly a 4
7619 \begin_inset space \thinspace{}
7622 in wide caption, you can either use a value slightly different from 4.0
7623 \begin_inset space \thinspace{}
7627 \begin_inset space \thinspace{}
7631 \begin_inset space \space{}
7635 \begin_inset space \thinspace{}
7638 in, or the \SpecialChar LaTeX
7643 captionsetup{width=value}
7645 that is provided by the
7657 \begin_layout Subsubsection
7658 Different Captions for Table Pages
7659 \begin_inset Index idx
7662 \begin_layout Plain Layout
7663 Table ! Multi-page Table ! Different Captions for Pages
7671 \begin_layout Standard
7672 When the table captions for the following pages should differ from the one
7673 of the first table page, mark a empty row as header which contains a caption.
7674 Then right-click on the caption and select in the context menu
7677 \begin_inset space ~
7684 \begin_inset space ~
7688 \begin_inset CommandInset ref
7690 reference "tab:DiffCaptions"
7694 is an example of a multi-page table with different heading where the second
7695 caption does not include the table number.
7698 \begin_layout Standard
7700 \begin_inset Tabular
7701 <lyxtabular version="3" rows="59" columns="3">
7702 <features islongtable="true" longtabularalignment="center">
7703 <column alignment="left" valignment="top" width="0cm">
7704 <column alignment="left" valignment="top" width="0pt">
7705 <column alignment="center" valignment="top" width="0pt">
7706 <row endfirsthead="true" caption="true">
7707 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7710 \begin_layout Plain Layout
7711 \begin_inset Caption Standard
7713 \begin_layout Plain Layout
7715 \begin_inset CommandInset label
7717 name "tab:DiffCaptions"
7722 \begin_inset Argument 1
7725 \begin_layout Plain Layout
7741 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7744 \begin_layout Plain Layout
7750 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7753 \begin_layout Plain Layout
7760 <row endfirsthead="true">
7761 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7764 \begin_layout Plain Layout
7767 Example Phone List (ignore the names)
7772 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7775 \begin_layout Plain Layout
7781 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7784 \begin_layout Plain Layout
7791 <row endfirsthead="true">
7792 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7795 \begin_layout Plain Layout
7803 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7806 \begin_layout Plain Layout
7812 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7815 \begin_layout Plain Layout
7824 <row endhead="true" caption="true">
7825 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7828 \begin_layout Plain Layout
7829 \begin_inset Caption Unnumbered
7831 \begin_layout Plain Layout
7832 Continued Example Phone List
7842 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7845 \begin_layout Plain Layout
7851 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7854 \begin_layout Plain Layout
7861 <row endhead="true">
7862 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7865 \begin_layout Plain Layout
7873 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7876 \begin_layout Plain Layout
7882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7885 \begin_layout Plain Layout
7892 <row endhead="true">
7893 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7896 \begin_layout Plain Layout
7904 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7907 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7916 \begin_layout Plain Layout
7925 <row endfoot="true">
7926 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7929 \begin_layout Plain Layout
7930 continued on next page
7935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7938 \begin_layout Plain Layout
7944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7947 \begin_layout Plain Layout
7955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7958 \begin_layout Plain Layout
7966 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7969 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7978 \begin_layout Plain Layout
7986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7989 \begin_layout Plain Layout
7997 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8000 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8009 \begin_layout Plain Layout
8017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8020 \begin_layout Plain Layout
8028 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8031 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8040 \begin_layout Plain Layout
8048 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8051 \begin_layout Plain Layout
8059 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8062 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8071 \begin_layout Plain Layout
8079 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8082 \begin_layout Plain Layout
8090 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8093 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8102 \begin_layout Plain Layout
8110 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8113 \begin_layout Plain Layout
8121 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8124 \begin_layout Plain Layout
8130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8133 \begin_layout Plain Layout
8141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8144 \begin_layout Plain Layout
8152 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8155 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8164 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8175 \begin_layout Plain Layout
8183 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8186 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8195 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8206 \begin_layout Plain Layout
8214 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8217 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8226 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8237 \begin_layout Plain Layout
8245 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8248 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8257 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8268 \begin_layout Plain Layout
8276 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8279 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8288 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8299 \begin_layout Plain Layout
8307 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8310 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8319 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8330 \begin_layout Plain Layout
8338 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8341 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8350 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8361 \begin_layout Plain Layout
8369 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8372 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8381 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8392 \begin_layout Plain Layout
8401 \begin_layout Plain Layout
8412 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8415 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8424 \begin_layout Plain Layout
8432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8435 \begin_layout Plain Layout
8443 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8446 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8455 \begin_layout Plain Layout
8463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8466 \begin_layout Plain Layout
8474 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8477 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8486 \begin_layout Plain Layout
8494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8497 \begin_layout Plain Layout
8505 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8508 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8517 \begin_layout Plain Layout
8525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8528 \begin_layout Plain Layout
8536 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8539 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8548 \begin_layout Plain Layout
8556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8559 \begin_layout Plain Layout
8567 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8570 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8579 \begin_layout Plain Layout
8587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8590 \begin_layout Plain Layout
8598 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8601 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8610 \begin_layout Plain Layout
8618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8621 \begin_layout Plain Layout
8629 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8632 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8641 \begin_layout Plain Layout
8649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8652 \begin_layout Plain Layout
8660 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8663 \begin_layout Plain Layout
8669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8672 \begin_layout Plain Layout
8680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8683 \begin_layout Plain Layout
8691 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8694 \begin_layout Plain Layout
8700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8703 \begin_layout Plain Layout
8711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8714 \begin_layout Plain Layout
8722 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8725 \begin_layout Plain Layout
8731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8734 \begin_layout Plain Layout
8742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8745 \begin_layout Plain Layout
8753 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8756 \begin_layout Plain Layout
8762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8765 \begin_layout Plain Layout
8773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8776 \begin_layout Plain Layout
8784 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8787 \begin_layout Plain Layout
8793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8796 \begin_layout Plain Layout
8804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8807 \begin_layout Plain Layout
8815 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8818 \begin_layout Plain Layout
8824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8827 \begin_layout Plain Layout
8835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8838 \begin_layout Plain Layout
8846 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8849 \begin_layout Plain Layout
8855 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8858 \begin_layout Plain Layout
8866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8869 \begin_layout Plain Layout
8877 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8880 \begin_layout Plain Layout
8886 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8889 \begin_layout Plain Layout
8897 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8900 \begin_layout Plain Layout
8908 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8911 \begin_layout Plain Layout
8917 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8920 \begin_layout Plain Layout
8928 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8931 \begin_layout Plain Layout
8937 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8940 \begin_layout Plain Layout
8946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8949 \begin_layout Plain Layout
8957 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8960 \begin_layout Plain Layout
8968 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8980 \begin_layout Plain Layout
8988 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8991 \begin_layout Plain Layout
8999 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9002 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9011 \begin_layout Plain Layout
9019 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9022 \begin_layout Plain Layout
9030 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9033 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9042 \begin_layout Plain Layout
9050 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9053 \begin_layout Plain Layout
9061 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9064 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9073 \begin_layout Plain Layout
9081 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9084 \begin_layout Plain Layout
9092 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9095 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9104 \begin_layout Plain Layout
9112 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9115 \begin_layout Plain Layout
9123 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9126 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9135 \begin_layout Plain Layout
9143 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9146 \begin_layout Plain Layout
9154 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9157 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9166 \begin_layout Plain Layout
9174 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9177 \begin_layout Plain Layout
9185 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9188 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9197 \begin_layout Plain Layout
9205 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9208 \begin_layout Plain Layout
9216 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9219 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9228 \begin_layout Plain Layout
9236 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9239 \begin_layout Plain Layout
9247 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9250 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9259 \begin_layout Plain Layout
9267 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9270 \begin_layout Plain Layout
9278 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9281 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9290 \begin_layout Plain Layout
9298 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9301 \begin_layout Plain Layout
9309 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9312 \begin_layout Plain Layout
9318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9321 \begin_layout Plain Layout
9329 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9332 \begin_layout Plain Layout
9340 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9343 \begin_layout Plain Layout
9349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9352 \begin_layout Plain Layout
9360 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9363 \begin_layout Plain Layout
9371 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9374 \begin_layout Plain Layout
9380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9383 \begin_layout Plain Layout
9391 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9394 \begin_layout Plain Layout
9402 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9405 \begin_layout Plain Layout
9411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9414 \begin_layout Plain Layout
9422 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9425 \begin_layout Plain Layout
9433 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9436 \begin_layout Plain Layout
9442 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9445 \begin_layout Plain Layout
9453 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9456 \begin_layout Plain Layout
9464 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9467 \begin_layout Plain Layout
9473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9476 \begin_layout Plain Layout
9484 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9487 \begin_layout Plain Layout
9495 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9498 \begin_layout Plain Layout
9504 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9507 \begin_layout Plain Layout
9515 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9518 \begin_layout Plain Layout
9526 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9529 \begin_layout Plain Layout
9535 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9538 \begin_layout Plain Layout
9546 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9549 \begin_layout Plain Layout
9557 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9560 \begin_layout Plain Layout
9566 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9569 \begin_layout Plain Layout
9583 \begin_layout Section
9584 Special Multi-page Table Issues
9585 \begin_inset CommandInset label
9587 name "sec:Special-Longtable-Issues"
9594 \begin_layout Subsection
9595 Multi-page Table Calculation
9596 \begin_inset Index idx
9599 \begin_layout Plain Layout
9600 Table ! Multi-page Table ! Calculation
9608 \begin_layout Standard
9610 calculates the height of table pages and their page breaks using so called
9612 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9614 The default value was historically set to only 20
9615 \begin_inset space ~
9619 If you are using multi-page tables with many pages this may slow down the
9620 creation of your document.
9621 You can safely increase the chunk size to values of 100
9622 \begin_inset space \thinspace{}
9626 \begin_inset space \thinspace{}
9629 1000 by adding this command line to your document preamble:
9632 \begin_layout Standard
9637 setcounter{LTchunksize}{100}
9640 \begin_layout Subsection
9641 Floats and Multi-page Tables
9642 \begin_inset Index idx
9645 \begin_layout Plain Layout
9646 Table ! Multi-page Table ! Floats
9654 \begin_layout Standard
9655 There might be problems when a float appears on the same page where a multi-page
9657 To avoid such a situation, insert a
9658 \begin_inset Quotes eld
9662 \begin_inset Quotes erd
9667 Insert\SpecialChar menuseparator
9668 Formatting\SpecialChar menuseparator
9670 \begin_inset space ~
9675 ) before your multi-page table.
9678 \begin_layout Subsection
9680 \begin_inset Index idx
9683 \begin_layout Plain Layout
9684 Table ! Multi-page Table ! Forced Page Breaks
9692 \begin_layout Standard
9693 By default tables are only broken between rows.
9694 If you have a cell with multiples lines and want to have a page break within
9695 the cell, insert the new line command
9696 \begin_inset Quotes eld
9708 \begin_inset Quotes erd
9712 Code at the point of the cell where it can be broken.
9721 command you have to insert in \SpecialChar TeX
9723 \begin_inset Quotes eld
9731 \begin_inset Quotes erd
9734 characters as the number of the following table columns.
9739 is the character to separate table cells.
9740 Write in \SpecialChar TeX
9745 the content of the corresponding following cell and delete the content
9747 \begin_inset Newline newline
9758 command, insert as many
9762 characters as the number of table columns before the current column.
9764 \begin_inset space ~
9768 \begin_inset CommandInset ref
9770 reference "tab:ForcedPagebreak"
9774 the cell that should be broken is in the second column followed by another
9776 Therefore the following command was inserted in the cell as \SpecialChar TeX
9779 \begin_inset Quotes eld
9787 \begin_inset Quotes erd
9793 \begin_layout Standard
9803 \begin_inset Newline newline
9809 \begin_layout Standard
9811 \begin_inset Quotes eld
9815 \begin_inset Quotes erd
9818 in the third column of the row was deleted.
9825 is only needed when a page break should definitely occur at this position,
9826 otherwise it would be a conditional break.
9827 If your footer row of the multi-page table has for a certain reason no
9828 upper line but you would have a horizontal line where the cell is broken,
9829 use this command instead:
9832 \begin_layout Standard
9840 \begin_inset Newline newline
9848 \begin_layout Standard
9849 When the cell to be broken is in the last column, the command
9852 \begin_layout Standard
9862 \begin_layout Standard
9863 must be inserted as \SpecialChar TeX
9864 Code at the beginning of the cell.
9865 This ensures that the part of the cell that will be displayed on the new
9866 page appears with the full width.
9869 \begin_layout Standard
9871 \begin_inset Tabular
9872 <lyxtabular version="3" rows="38" columns="3">
9873 <features islongtable="true" longtabularalignment="center">
9874 <column alignment="left" valignment="top" width="0cm">
9875 <column alignment="left" valignment="top" width="3cm">
9876 <column alignment="center" valignment="top" width="0pt">
9877 <row endfirsthead="true" caption="true">
9878 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9881 \begin_layout Plain Layout
9882 \begin_inset Caption Standard
9884 \begin_layout Plain Layout
9885 Table with forced page break in table cell
9886 \begin_inset CommandInset label
9888 name "tab:ForcedPagebreak"
9893 \begin_inset Argument 1
9896 \begin_layout Plain Layout
9897 Table with forced page break in table cell
9912 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9915 \begin_layout Plain Layout
9921 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9924 \begin_layout Plain Layout
9931 <row endfirsthead="true">
9932 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9938 Example Phone List (ignore the names)
9943 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9946 \begin_layout Plain Layout
9952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9955 \begin_layout Plain Layout
9962 <row endfirsthead="true">
9963 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9966 \begin_layout Plain Layout
9974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9977 \begin_layout Plain Layout
9983 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9986 \begin_layout Plain Layout
9995 <row endhead="true" caption="true">
9996 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9999 \begin_layout Plain Layout
10000 \begin_inset Caption Unnumbered
10002 \begin_layout Plain Layout
10003 Continued Example Phone List
10013 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10022 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10025 \begin_layout Plain Layout
10032 <row endhead="true">
10033 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10036 \begin_layout Plain Layout
10044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10047 \begin_layout Plain Layout
10053 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10063 <row endhead="true">
10064 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10067 \begin_layout Plain Layout
10075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10078 \begin_layout Plain Layout
10084 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10087 \begin_layout Plain Layout
10096 <row endfoot="true">
10097 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10100 \begin_layout Plain Layout
10101 continued on next page
10106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10109 \begin_layout Plain Layout
10115 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10118 \begin_layout Plain Layout
10126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10129 \begin_layout Plain Layout
10137 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10140 \begin_layout Plain Layout
10146 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10160 \begin_layout Plain Layout
10168 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10177 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10191 \begin_layout Plain Layout
10199 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10222 \begin_layout Plain Layout
10230 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10253 \begin_layout Plain Layout
10261 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10284 \begin_layout Plain Layout
10292 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10315 \begin_layout Plain Layout
10323 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10346 \begin_layout Plain Layout
10354 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10377 \begin_layout Plain Layout
10385 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10408 \begin_layout Plain Layout
10416 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10439 \begin_layout Plain Layout
10447 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10470 \begin_layout Plain Layout
10478 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10501 \begin_layout Plain Layout
10509 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10532 \begin_layout Plain Layout
10540 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10563 \begin_layout Plain Layout
10571 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10594 \begin_layout Plain Layout
10602 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10625 \begin_layout Plain Layout
10633 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10656 \begin_layout Plain Layout
10664 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10687 \begin_layout Plain Layout
10695 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10718 \begin_layout Plain Layout
10726 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10749 \begin_layout Plain Layout
10757 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10780 \begin_layout Plain Layout
10788 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10811 \begin_layout Plain Layout
10819 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10824 Fürst von Montecompatri, 11.
10825 Fürst von Sulmona und Vivaro, 10.
10826 Fürst von Rossano, 5.
10827 Herzog von Canemorte, 11.
10828 Herzog von Palombara, 5.
10829 Herzog von Castelchiodato,
10833 \begin_layout Plain Layout
10844 \begin_layout Plain Layout
10852 Herzog von Poggionativo, 11.
10853 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10854 Graf von Valinfreda, 11.
10855 Baron von Cropalati, 11.
10856 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10864 \begin_layout Plain Layout
10872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10875 \begin_layout Plain Layout
10883 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10886 \begin_layout Plain Layout
10892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10906 \begin_layout Plain Layout
10914 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10945 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10976 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10979 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10999 \begin_layout Plain Layout
11007 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11030 \begin_layout Plain Layout
11038 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11061 \begin_layout Plain Layout
11069 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11072 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11092 \begin_layout Plain Layout
11100 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11103 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11112 \begin_layout Plain Layout
11126 \begin_layout Section
11127 Multiple Lines, Columns and Rows
11130 \begin_layout Subsection
11131 Multiple Lines in Table Cells
11132 \begin_inset CommandInset label
11134 name "subsec:Multiple-Lines-in"
11139 \begin_inset Index idx
11142 \begin_layout Plain Layout
11143 Multiple Lines in Table Cells
11149 \begin_inset Index idx
11152 \begin_layout Plain Layout
11161 \begin_layout Standard
11163 \begin_inset Float table
11169 \begin_layout Plain Layout
11170 \begin_inset Caption Standard
11172 \begin_layout Plain Layout
11173 \begin_inset CommandInset label
11175 name "tab:Table-with-multiple"
11179 Table with multiple lines in cells
11187 \begin_layout Plain Layout
11189 \begin_inset Tabular
11190 <lyxtabular version="3" rows="3" columns="3">
11191 <features tabularvalignment="middle">
11192 <column alignment="center" valignment="middle" width="2.5cm">
11193 <column alignment="center" valignment="middle">
11194 <column alignment="center" valignment="middle">
11196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11199 \begin_layout Plain Layout
11201 \begin_inset Newline linebreak
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11212 \begin_layout Plain Layout
11218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11221 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11250 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11261 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11270 \begin_layout Plain Layout
11276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11279 \begin_layout Plain Layout
11298 \begin_layout Standard
11299 Setting a fixed width for a column enables you to enter text as a paragraph
11300 with multiple lines and hyphenation.
11303 \begin_layout Standard
11305 \begin_inset space ~
11309 \begin_inset CommandInset ref
11311 reference "tab:Table-with-multiple"
11315 , create a 3×3 table, mark the first cell and right-click on it.
11316 In the appearing table dialog we set a cell width of 2.5
11317 \begin_inset space \thinspace{}
11320 cm and choose centered for the vertical and horizontal alignment.
11321 The vertical alignment is used for all cells of the row.
11322 As our text is smaller than 2.5
11323 \begin_inset space \thinspace{}
11326 cm, only one line will appear.
11327 To get two lines, a justified line break (shortcut
11330 arg "newline-insert linebreak"
11334 If the text is wider than the set cell width, it will automatically be
11335 broken to several lines.
11338 \begin_layout Standard
11339 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11340 by \SpecialChar LaTeX
11341 if it is the first entry.
11342 Therefore you need to insert something to prevent the word not being the
11344 So add a horizontal space of 0
11345 \begin_inset space \thinspace{}
11348 pt before the word.
11349 As the space is zero, it doesn't change the output.
11351 \begin_inset space ~
11355 \begin_inset CommandInset ref
11357 reference "tab:Table-with-and"
11364 \begin_layout Standard
11365 \begin_inset Float table
11371 \begin_layout Plain Layout
11372 \begin_inset Caption Standard
11374 \begin_layout Plain Layout
11375 \begin_inset CommandInset label
11377 name "tab:Table-with-and"
11381 Table with and without hyphenation
11389 \begin_layout Plain Layout
11390 \begin_inset space \hfill{}
11394 \begin_inset Tabular
11395 <lyxtabular version="3" rows="3" columns="3">
11396 <features tabularvalignment="middle">
11397 <column alignment="center" valignment="middle" width="2.5cm">
11398 <column alignment="center" valignment="middle">
11399 <column alignment="center" valignment="middle">
11401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11404 \begin_layout Plain Layout
11405 verylongtablecellword
11410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11413 \begin_layout Plain Layout
11419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11422 \begin_layout Plain Layout
11430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11433 \begin_layout Plain Layout
11439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11442 \begin_layout Plain Layout
11448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11451 \begin_layout Plain Layout
11459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11462 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11471 \begin_layout Plain Layout
11477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11480 \begin_layout Plain Layout
11492 \begin_inset space \hfill{}
11496 \begin_inset Tabular
11497 <lyxtabular version="3" rows="3" columns="3">
11498 <features tabularvalignment="middle">
11499 <column alignment="center" valignment="middle" width="2.5cm">
11500 <column alignment="center" valignment="middle">
11501 <column alignment="center" valignment="middle">
11503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11507 \begin_inset space \hspace{}
11511 verylongtablecellword
11516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11519 \begin_layout Plain Layout
11525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11528 \begin_layout Plain Layout
11536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11539 \begin_layout Plain Layout
11545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11548 \begin_layout Plain Layout
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11557 \begin_layout Plain Layout
11565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11568 \begin_layout Plain Layout
11574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11577 \begin_layout Plain Layout
11583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11586 \begin_layout Plain Layout
11598 \begin_inset space \hfill{}
11609 \begin_layout Subsection
11611 \begin_inset CommandInset label
11613 name "subsec:Multicolumns"
11618 \begin_inset Index idx
11621 \begin_layout Plain Layout
11628 \begin_inset Index idx
11631 \begin_layout Plain Layout
11632 Table ! Multicolumns
11640 \begin_layout Subsubsection
11644 \begin_layout Standard
11645 To merge cells over multiple columns, select as many cells within a row
11646 as you want to merge and use either the table-toolbar button
11649 arg "tabular-feature multicolumn"
11654 Edit\SpecialChar menuseparator
11655 Table\SpecialChar menuseparator
11658 , or right click on the marked cells and choose
11662 in the context menu.
11665 \begin_layout Standard
11666 Multicolumns have their own cell settings.
11667 That means changing cell borders, cell alignment, and the width only affects
11669 Here is an example table with a multicolumn cell in the first row and one
11670 in the last row without the upper border:
11673 \begin_layout Standard
11675 \begin_inset Tabular
11676 <lyxtabular version="3" rows="3" columns="4">
11677 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11678 <column alignment="center" valignment="top" width="0pt">
11679 <column alignment="center" valignment="middle">
11680 <column alignment="center" valignment="top" width="0in">
11681 <column alignment="center" valignment="top" width="0pt">
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11695 \begin_layout Plain Layout
11701 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11704 \begin_layout Plain Layout
11710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11713 \begin_layout Plain Layout
11721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11724 \begin_layout Plain Layout
11739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11742 \begin_layout Plain Layout
11748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11751 \begin_layout Plain Layout
11757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11760 \begin_layout Plain Layout
11768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11771 \begin_layout Plain Layout
11777 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11780 \begin_layout Plain Layout
11786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11789 \begin_layout Plain Layout
11795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11798 \begin_layout Plain Layout
11812 \begin_layout Subsubsection
11813 Multicolumn Calculations
11814 \begin_inset CommandInset label
11816 name "subsec:Multicolumn-Calculations"
11821 \begin_inset Index idx
11824 \begin_layout Plain Layout
11825 Multicolumns ! Calculations
11833 \begin_layout Standard
11835 supports multicolumns directly, but we have to take account of the cell
11836 width of the columns spanned by the multicolumn cell.
11839 \begin_layout Standard
11840 \begin_inset Float table
11846 \begin_layout Plain Layout
11847 \begin_inset Caption Standard
11849 \begin_layout Plain Layout
11850 \begin_inset CommandInset label
11852 name "tab:Table-with-centered"
11856 Table with centered multicolumn text above two columns that have exactly
11857 half the width of the multicolumn cell
11858 \begin_inset Argument 1
11861 \begin_layout Plain Layout
11862 Perfect multicolumn table
11875 \begin_layout Plain Layout
11877 \begin_inset Tabular
11878 <lyxtabular version="3" rows="3" columns="3">
11879 <features tabularvalignment="middle">
11880 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11881 <column alignment="center" valignment="middle">
11882 <column alignment="center" valignment="top">
11884 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11887 \begin_layout Plain Layout
11888 multiple lines multicolumn
11893 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11896 \begin_layout Plain Layout
11902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11905 \begin_layout Plain Layout
11913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11916 \begin_layout Plain Layout
11922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11925 \begin_layout Plain Layout
11931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11934 \begin_layout Plain Layout
11942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11945 \begin_layout Plain Layout
11951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11954 \begin_layout Plain Layout
11960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11963 \begin_layout Plain Layout
11982 \begin_layout Standard
11983 To create for example Table
11984 \begin_inset space ~
11988 \begin_inset CommandInset ref
11990 reference "tab:Table-with-centered"
11994 , mark the first two cells in the first row of a 3×3 table and right-click
11996 Now choose for this cell
12005 \begin_inset space \thinspace{}
12008 cm in the table dialog.
12009 The merged columns should have exactly half the width of the multicolumn
12010 cell, so that you would set a width of 1.25
12011 \begin_inset space \thinspace{}
12014 cm for the first column.
12015 The second column has then automatically a width of 1.25
12016 \begin_inset space \thinspace{}
12019 cm (multicolumn width - width of first column).
12020 This was done for Table
12021 \begin_inset space ~
12025 \begin_inset CommandInset ref
12027 reference "tab:Table-without-half"
12034 \begin_layout Standard
12035 \begin_inset Float table
12040 \begin_layout Plain Layout
12041 \begin_inset Caption Standard
12043 \begin_layout Plain Layout
12044 \begin_inset CommandInset label
12046 name "tab:Table-without-half"
12050 Table where the spanned table columns are not exactly half the width of
12051 the multicolumn cell
12052 \begin_inset Argument 1
12055 \begin_layout Plain Layout
12056 Imperfect multicolumn table
12069 \begin_layout Plain Layout
12071 \begin_inset Tabular
12072 <lyxtabular version="3" rows="3" columns="3">
12073 <features tabularvalignment="middle">
12074 <column alignment="center" valignment="top" width="1.25cm">
12075 <column alignment="center" valignment="top">
12076 <column alignment="center" valignment="top">
12078 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12081 \begin_layout Plain Layout
12082 multiple lines multicolumn
12087 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12090 \begin_layout Plain Layout
12096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12099 \begin_layout Plain Layout
12107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12110 \begin_layout Plain Layout
12116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12119 \begin_layout Plain Layout
12125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12128 \begin_layout Plain Layout
12136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12139 \begin_layout Plain Layout
12145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12148 \begin_layout Plain Layout
12154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12157 \begin_layout Plain Layout
12176 \begin_layout Standard
12177 You can see that the first column is not half the width of the multicolumn
12178 cell, it is a bit bigger.
12179 The reason is that the specified width of a cell
12180 \begin_inset Formula $W_{g}$
12183 is not its total width
12184 \begin_inset Formula $W_{\mathrm{tot}}$
12187 because a cell is always a bit larger than specified.
12189 \begin_inset space ~
12193 \begin_inset CommandInset ref
12195 reference "cha:Explanation-of-Equation"
12199 explains this in detail.
12202 \begin_layout Standard
12204 \begin_inset Formula $W_{g\,n}$
12207 which the user needs to set when
12211 columns are spanned can be calculated, so that each column has a total
12213 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12217 \begin_inset Formula
12219 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12227 \begin_layout Standard
12228 In our case we have
12229 \begin_inset Formula $n=2$
12233 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12236 cm and the default values for the lengths, so that equation
12237 \begin_inset CommandInset ref
12244 \begin_inset Formula
12246 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12254 \begin_layout Standard
12255 To enable calculations in \SpecialChar LaTeX
12256 , the \SpecialChar LaTeX
12261 must be loaded with the document preamble line
12262 \begin_inset Index idx
12265 \begin_layout Plain Layout
12275 \begin_layout Standard
12283 \begin_layout Standard
12285 does not allow you to calculate lengths in the
12289 field of the table dialog.
12290 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12293 Here is an overview about the arguments:
12296 \begin_layout Itemize
12301 creates cell with a fixed width, its text is vertically top-aligned
12304 \begin_layout Itemize
12309 creates cell with a fixed width, its text is vertically centered
12312 \begin_layout Itemize
12317 creates cell with a fixed width, its text is vertically bottom-aligned
12320 \begin_layout Standard
12321 By entering a \SpecialChar LaTeX
12322 -argument, all cell settings set in the table dialog are overwritt
12326 \begin_layout Standard
12327 \begin_inset Note Greyedout
12330 \begin_layout Plain Layout
12335 Due to a bug, \SpecialChar LyX
12336 shows the overwritten settings anyway.
12344 \begin_layout Standard
12345 As the text should be horizontally centered, the command
12352 You can now enter the following \SpecialChar LaTeX
12353 -argument for the first spanned column:
12356 \begin_layout Standard
12361 centering}m{1.25cm-6.2pt}
12364 \begin_layout Standard
12369 means, that the commands inside the braces are applied before the cell
12373 \begin_layout Standard
12374 Although we have chosen centered alignment for the text of the multicolumn
12375 cell, it is still left aligned.
12376 This is because \SpecialChar LyX
12377 only applies the alignment to single columns.
12378 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12382 \begin_layout Standard
12390 \begin_layout Subsection
12392 \begin_inset CommandInset label
12394 name "subsec:Multirows"
12399 \begin_inset Index idx
12402 \begin_layout Plain Layout
12409 \begin_inset Index idx
12412 \begin_layout Plain Layout
12421 \begin_layout Standard
12422 To merge cells over multiple rows, select as many cells within a column
12423 as you want to merge and use either the table-toolbar button
12426 arg "tabular-feature multirow"
12431 Edit\SpecialChar menuseparator
12432 Table\SpecialChar menuseparator
12435 , or right click on the marked cells and choose
12439 in the context menu.
12442 \begin_layout Standard
12443 Here is an example table with a multirow in the first column:
12446 \begin_layout Standard
12448 \begin_inset Tabular
12449 <lyxtabular version="3" rows="3" columns="3">
12450 <features tabularvalignment="middle">
12451 <column alignment="center" valignment="top" width="0pt">
12452 <column alignment="center" valignment="top">
12453 <column alignment="center" valignment="top">
12455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12458 \begin_layout Plain Layout
12464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12467 \begin_layout Plain Layout
12473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12476 \begin_layout Plain Layout
12484 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12487 \begin_layout Plain Layout
12493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12496 \begin_layout Plain Layout
12502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12505 \begin_layout Plain Layout
12513 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12516 \begin_layout Plain Layout
12522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12525 \begin_layout Plain Layout
12531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12534 \begin_layout Plain Layout
12548 \begin_layout Standard
12549 The width of multirow cells is set by setting the width and alignment for
12555 shifts the content of the multirow up/down if the offset is positive/negative.
12558 \begin_layout Standard
12559 If the column of a multirow cell has no explicit width, the multirow cell
12560 inherits the alignment of the column.
12561 Otherwise it is by default left-aligned.
12562 To override the default, renew the command
12571 \begin_layout Standard
12583 \begin_layout Standard
12584 in the document preamble.
12585 Then all entries of multirow cells in the document are centered.
12586 If centering is only needed for several tables, you can renew the command
12587 in a \SpecialChar TeX
12588 Code box just before the table instead of the preamble.
12589 If the text should be right-aligned, replace
12602 To return to left-alignment
12611 \begin_layout Standard
12612 This is an example table with a right-aligned multirow cell that has a vertical
12614 \begin_inset space \thinspace{}
12618 \begin_inset space \thinspace{}
12624 \begin_layout Standard
12630 \begin_layout Plain Layout
12644 \begin_inset Tabular
12645 <lyxtabular version="3" rows="4" columns="3">
12646 <features tabularvalignment="middle">
12647 <column alignment="center" valignment="top" width="3cm">
12648 <column alignment="center" valignment="top">
12649 <column alignment="center" valignment="top">
12651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12654 \begin_layout Plain Layout
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12663 \begin_layout Plain Layout
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12672 \begin_layout Plain Layout
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Plain Layout
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12701 \begin_layout Plain Layout
12709 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12712 \begin_layout Plain Layout
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12730 \begin_layout Plain Layout
12738 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12759 \begin_layout Plain Layout
12774 \begin_layout Plain Layout
12790 \begin_layout Standard
12791 To start a new line in a multirow you can use a forced line break (shortcut
12795 arg "newline-insert newline"
12798 ) but this will not respect the cell lines as demonstrated in this table:
12801 \begin_layout Standard
12804 \begin_inset Tabular
12805 <lyxtabular version="3" rows="3" columns="2">
12806 <features tabularvalignment="middle">
12807 <column alignment="left" valignment="middle" width="2cm">
12808 <column alignment="center" valignment="top">
12810 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12813 \begin_layout Plain Layout
12815 \begin_inset Newline newline
12819 \begin_inset Newline newline
12827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12830 \begin_layout Plain Layout
12838 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12841 \begin_layout Plain Layout
12847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12850 \begin_layout Plain Layout
12858 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12861 \begin_layout Plain Layout
12867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12870 \begin_layout Plain Layout
12884 \begin_layout Standard
12885 Therefore be careful with forced line breaks.
12888 \begin_layout Subsection
12889 Cells with diagonal line(s)
12892 \begin_layout Standard
12893 To tell the reader what is meant by column and row headings in a table,
12894 it is helpful to split the first cell of the table by one or two diagonal
12896 This can be achieved by loading the \SpecialChar LaTeX
12902 \begin_inset Index idx
12905 \begin_layout Plain Layout
12907 -packages ! picinpar
12912 in the document preamble.
12913 The package provides the command
12919 that is inserted as \SpecialChar TeX
12920 Code and that can take 2 or 3
12921 \begin_inset space ~
12927 \begin_layout Standard
12932 diagbox[options]{lower left}{upper right}
12935 \begin_layout Standard
12940 diagbox[options]{lower left}{upper left}{upper right}
12943 \begin_layout Standard
12944 The first scheme divides the cell by a single diagonal line and the arguments
12945 are placed below and above this line.
12946 The second scheme divides the cell by 2
12947 \begin_inset space ~
12953 \begin_layout Standard
12957 \begin_layout Plain Layout
12967 \begin_inset Note Note
12970 \begin_layout Plain Layout
12971 The following section will only be displayed when the \SpecialChar LaTeX
12984 \begin_layout Standard
12985 Here is an example table where
12991 is used in the 2-argument scheme in the first cell:
12992 \begin_inset VSpace medskip
12998 \begin_layout Standard
13000 \begin_inset Tabular
13001 <lyxtabular version="3" rows="4" columns="4">
13002 <features tabularvalignment="middle">
13003 <column alignment="center" valignment="top">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13006 <column alignment="center" valignment="top">
13008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13011 \begin_layout Plain Layout
13015 \begin_layout Plain Layout
13028 \begin_layout Plain Layout
13039 \begin_layout Plain Layout
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13054 \begin_layout Plain Layout
13060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13063 \begin_layout Plain Layout
13069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13072 \begin_layout Plain Layout
13080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13083 \begin_layout Plain Layout
13089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13092 \begin_layout Plain Layout
13098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13101 \begin_layout Plain Layout
13107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13110 \begin_layout Plain Layout
13118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13121 \begin_layout Plain Layout
13127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13130 \begin_layout Plain Layout
13136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13139 \begin_layout Plain Layout
13145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13148 \begin_layout Plain Layout
13156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13159 \begin_layout Plain Layout
13165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13168 \begin_layout Plain Layout
13174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13177 \begin_layout Plain Layout
13183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13186 \begin_layout Plain Layout
13198 \begin_inset VSpace medskip
13204 \begin_layout Standard
13205 The 3-argument scheme is for example useful for cross-tables of sports leagues
13209 \begin_layout Standard
13212 \begin_inset Tabular
13213 <lyxtabular version="3" rows="4" columns="4">
13214 <features tabularvalignment="middle">
13215 <column alignment="center" valignment="top" width="0pt">
13216 <column alignment="center" valignment="top">
13217 <column alignment="center" valignment="top">
13218 <column alignment="center" valignment="top">
13220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13223 \begin_layout Plain Layout
13227 \begin_layout Plain Layout
13240 \begin_layout Plain Layout
13251 \begin_layout Plain Layout
13262 \begin_layout Plain Layout
13274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13277 \begin_layout Plain Layout
13283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13286 \begin_layout Plain Layout
13292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13295 \begin_layout Plain Layout
13303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13306 \begin_layout Plain Layout
13312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13315 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13324 \begin_layout Plain Layout
13330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13333 \begin_layout Plain Layout
13341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13344 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Plain Layout
13368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13371 \begin_layout Plain Layout
13379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13382 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13400 \begin_layout Plain Layout
13406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13409 \begin_layout Plain Layout
13423 \begin_layout Standard
13424 For larger cross-tables one might use split cells in 2 or every corner of
13425 the table like in this example:
13428 \begin_layout Standard
13431 \begin_inset Tabular
13432 <lyxtabular version="3" rows="5" columns="5">
13433 <features tabularvalignment="middle">
13434 <column alignment="center" valignment="top" width="0pt">
13435 <column alignment="center" valignment="top">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13438 <column alignment="center" valignment="top">
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13447 \begin_layout Plain Layout
13460 \begin_layout Plain Layout
13471 \begin_layout Plain Layout
13482 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13497 \begin_layout Plain Layout
13503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13506 \begin_layout Plain Layout
13512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13515 \begin_layout Plain Layout
13521 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13524 \begin_layout Plain Layout
13528 \begin_layout Plain Layout
13541 \begin_layout Plain Layout
13552 \begin_layout Plain Layout
13563 \begin_layout Plain Layout
13577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13580 \begin_layout Plain Layout
13586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13589 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13607 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13616 \begin_layout Plain Layout
13624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13627 \begin_layout Plain Layout
13633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13636 \begin_layout Plain Layout
13642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13645 \begin_layout Plain Layout
13651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13654 \begin_layout Plain Layout
13660 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13663 \begin_layout Plain Layout
13671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13674 \begin_layout Plain Layout
13680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13683 \begin_layout Plain Layout
13689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13692 \begin_layout Plain Layout
13698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13701 \begin_layout Plain Layout
13707 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13710 \begin_layout Plain Layout
13718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13721 \begin_layout Plain Layout
13725 \begin_layout Plain Layout
13738 \begin_layout Plain Layout
13749 \begin_layout Plain Layout
13760 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13775 \begin_layout Plain Layout
13781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13784 \begin_layout Plain Layout
13790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13793 \begin_layout Plain Layout
13799 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13802 \begin_layout Plain Layout
13806 \begin_layout Plain Layout
13819 \begin_layout Plain Layout
13830 \begin_layout Plain Layout
13841 \begin_layout Plain Layout
13861 \begin_layout Standard
13862 To rotate the diagonal lines, the command option
13887 and represent a point of a compass.
13892 is for example the south-west corner.
13893 Thus in the lower left cell of the above table the command
13896 \begin_layout Standard
13901 diagbox[dir=SW]{Team home}{Result}{Team away}
13904 \begin_layout Standard
13906 If no direction is given, it will be NW.
13909 \begin_layout Standard
13910 The necessary width of split cells is automatically calculated.
13911 Thus if you set a fixed column width smaller than the calculated one, the
13912 cell's content will protrude the cell borders:
13915 \begin_layout Standard
13918 \begin_inset Tabular
13919 <lyxtabular version="3" rows="2" columns="2">
13920 <features tabularvalignment="middle">
13921 <column alignment="center" valignment="top" width="3cm">
13922 <column alignment="center" valignment="top">
13924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13927 \begin_layout Plain Layout
13931 \begin_layout Plain Layout
13944 \begin_layout Plain Layout
13955 \begin_layout Plain Layout
13967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13970 \begin_layout Plain Layout
13978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13981 \begin_layout Plain Layout
13987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13990 \begin_layout Plain Layout
14004 \begin_layout Standard
14005 If you need a certain width for columns with a split cell, use the command
14010 (replace '3cm' by the width you need).
14011 In the following table the width of the first column is set to 4
14012 \begin_inset space \thinspace{}
14023 \begin_inset space \thinspace{}
14027 \begin_inset space \thinspace{}
14032 tabcolsep is necessary because the overall width is the width for the text
14033 (in this case the 4
14034 \begin_inset space \thinspace{}
14037 cm) plus two times the separation of the text and the cell border.
14038 The calculation of the width cannot be done in the command option of
14044 so one needs to create a new length which can be used later.
14045 This is done with the \SpecialChar TeX
14049 \begin_layout Standard
14057 \begin_inset Newline newline
14069 \begin_layout Standard
14073 \begin_layout Plain Layout
14082 \begin_layout Plain Layout
14098 \begin_layout Standard
14099 To enable calculations in \SpecialChar LaTeX
14100 one needs to load the package
14105 \begin_inset Index idx
14108 \begin_layout Plain Layout
14115 in the document preamble.
14118 \begin_layout Standard
14119 In this table you can now use the command
14122 \begin_layout Standard
14132 \begin_layout Standard
14136 \begin_layout Standard
14139 \begin_inset Tabular
14140 <lyxtabular version="3" rows="2" columns="2">
14141 <features tabularvalignment="middle">
14142 <column alignment="center" valignment="top" width="4cm">
14143 <column alignment="center" valignment="top">
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14148 \begin_layout Plain Layout
14152 \begin_layout Plain Layout
14167 \begin_layout Plain Layout
14178 \begin_layout Plain Layout
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14193 \begin_layout Plain Layout
14201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14204 \begin_layout Plain Layout
14210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14213 \begin_layout Plain Layout
14227 \begin_layout Standard
14228 Note that the split cell needs to be the widest one in the column.
14229 Otherwise the length of the diagonal line cannot be calculated correctly
14230 like in this table:
14233 \begin_layout Standard
14236 \begin_inset Tabular
14237 <lyxtabular version="3" rows="2" columns="2">
14238 <features tabularvalignment="middle">
14239 <column alignment="center" valignment="top" width="0pt">
14240 <column alignment="center" valignment="top">
14242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14245 \begin_layout Plain Layout
14249 \begin_layout Plain Layout
14262 \begin_layout Plain Layout
14273 \begin_layout Plain Layout
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14288 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14299 \begin_layout Plain Layout
14305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14308 \begin_layout Plain Layout
14322 \begin_layout Standard
14323 In this case use the
14334 It is then not necessary to add 2
14336 tabcolsep because the cell width is now the width of the column.
14337 In this table a width of 3
14338 \begin_inset space \thinspace{}
14344 \begin_layout Standard
14347 \begin_inset Tabular
14348 <lyxtabular version="3" rows="2" columns="2">
14349 <features tabularvalignment="middle">
14350 <column alignment="center" valignment="top" width="0pt">
14351 <column alignment="center" valignment="top">
14353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14356 \begin_layout Plain Layout
14360 \begin_layout Plain Layout
14364 diagbox[width=3cm]{
14373 \begin_layout Plain Layout
14384 \begin_layout Plain Layout
14396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14399 \begin_layout Plain Layout
14407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14410 \begin_layout Plain Layout
14416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14419 \begin_layout Plain Layout
14433 \begin_layout Standard
14434 For multiple text lines in split cells one needs some extra height to fit
14435 the text to the cell.
14436 This can be achieved with the
14446 (replace '3cm' by the height you need).
14447 In the following table the command
14450 \begin_layout Standard
14455 diagbox[width=3cm,height=1.4cm]{A
14466 \begin_layout Standard
14467 is used in the first cell.
14476 creates hereby the line break.
14480 \begin_layout Plain Layout
14481 Breaking lines with
14485 is only possible when the column has a fixed width.
14493 \begin_layout Standard
14496 \begin_inset Tabular
14497 <lyxtabular version="3" rows="2" columns="2">
14498 <features tabularvalignment="middle">
14499 <column alignment="center" valignment="top">
14500 <column alignment="center" valignment="top">
14502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14505 \begin_layout Plain Layout
14509 \begin_layout Plain Layout
14513 diagbox[width=3cm,height=1.4cm]{
14522 \begin_layout Plain Layout
14537 \begin_layout Plain Layout
14548 \begin_layout Plain Layout
14563 \begin_layout Plain Layout
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14578 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14589 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14598 \begin_layout Plain Layout
14612 \begin_layout Standard
14616 \begin_layout Plain Layout
14626 \begin_inset Note Note
14629 \begin_layout Plain Layout
14630 The following will be displayed when the \SpecialChar LaTeX
14643 \begin_layout Standard
14644 You need to install the \SpecialChar LaTeX
14649 to see the following part of this section in the output.
14652 \begin_layout Standard
14656 \begin_layout Plain Layout
14668 \begin_layout Standard
14669 For more info about the \SpecialChar LaTeX
14674 , see its documentation,
14675 \begin_inset CommandInset citation
14685 \begin_layout Section
14687 \begin_inset CommandInset label
14689 name "sec:Formal-Tables"
14694 \begin_inset Index idx
14697 \begin_layout Plain Layout
14706 \begin_layout Standard
14707 Tables are often typeset in books similar to Table
14708 \begin_inset space ~
14712 \begin_inset CommandInset ref
14714 reference "tab:Example-booktabs-table"
14719 This kind of tables is called
14720 \begin_inset Quotes eld
14728 \begin_inset Quotes erd
14732 To make a table a formal table use the option
14740 tab of the table dialog.
14743 \begin_layout Standard
14744 \begin_inset Float table
14750 \begin_layout Plain Layout
14751 \begin_inset Caption Standard
14753 \begin_layout Plain Layout
14754 \begin_inset CommandInset label
14756 name "tab:Example-booktabs-table"
14760 Example booktabs-table
14768 \begin_layout Plain Layout
14770 \begin_inset Tabular
14771 <lyxtabular version="3" rows="8" columns="4">
14772 <features booktabs="true" tabularvalignment="middle">
14773 <column alignment="center" valignment="top">
14774 <column alignment="center" valignment="top">
14775 <column alignment="center" valignment="top">
14776 <column alignment="center" valignment="top">
14778 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14781 \begin_layout Plain Layout
14787 <cell alignment="center" valignment="top" topline="true" usebox="none">
14790 \begin_layout Plain Layout
14792 \begin_inset space \thinspace{}
14800 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14803 \begin_layout Plain Layout
14805 \begin_inset space \thinspace{}
14813 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14816 \begin_layout Plain Layout
14824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14827 \begin_layout Plain Layout
14831 \begin_layout Plain Layout
14844 \begin_layout Plain Layout
14853 Detector thickness in µm
14858 <cell alignment="center" valignment="top" usebox="none">
14861 \begin_layout Plain Layout
14867 <cell alignment="center" valignment="top" usebox="none">
14870 \begin_layout Plain Layout
14876 <cell alignment="center" valignment="top" usebox="none">
14879 \begin_layout Plain Layout
14887 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14890 \begin_layout Plain Layout
14896 <cell alignment="center" valignment="top" topline="true" usebox="none">
14899 \begin_layout Plain Layout
14905 <cell alignment="center" valignment="top" topline="true" usebox="none">
14908 \begin_layout Plain Layout
14914 <cell alignment="center" valignment="top" topline="true" usebox="none">
14917 \begin_layout Plain Layout
14924 <row topspace="default">
14925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14928 \begin_layout Plain Layout
14929 Spatial resolution in µm
14934 <cell alignment="center" valignment="top" usebox="none">
14937 \begin_layout Plain Layout
14943 <cell alignment="center" valignment="top" usebox="none">
14946 \begin_layout Plain Layout
14952 <cell alignment="center" valignment="top" usebox="none">
14955 \begin_layout Plain Layout
14962 <row topspace="default">
14963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14966 \begin_layout Plain Layout
14968 \begin_inset Formula $f_{\mathrm{max}}$
14976 <cell alignment="center" valignment="top" usebox="none">
14979 \begin_layout Plain Layout
14985 <cell alignment="center" valignment="top" usebox="none">
14988 \begin_layout Plain Layout
14994 <cell alignment="center" valignment="top" usebox="none">
14997 \begin_layout Plain Layout
15004 <row topspace="default">
15005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15008 \begin_layout Plain Layout
15012 \begin_layout Plain Layout
15016 cmidrule[2pt](l{10pt}){1-1}
15021 LSF-spatial resolution
15026 <cell alignment="center" valignment="top" usebox="none">
15029 \begin_layout Plain Layout
15035 <cell alignment="center" valignment="top" usebox="none">
15038 \begin_layout Plain Layout
15044 <cell alignment="center" valignment="top" usebox="none">
15047 \begin_layout Plain Layout
15055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15058 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15073 <cell alignment="center" valignment="top" usebox="none">
15076 \begin_layout Plain Layout
15082 <cell alignment="center" valignment="top" usebox="none">
15085 \begin_layout Plain Layout
15093 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15096 \begin_layout Plain Layout
15102 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15105 \begin_layout Plain Layout
15111 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15114 \begin_layout Plain Layout
15120 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15123 \begin_layout Plain Layout
15142 \begin_layout Standard
15143 Spaces to table rows can be added using the
15147 tab of the table dialog as described in section
15148 \begin_inset space ~
15152 \begin_inset CommandInset ref
15154 reference "subsec:Row-Spacing"
15161 \begin_layout Standard
15162 Unlike normal tables, formal tables have no vertical table lines.
15163 The horizontal table lines can be set as for normal tables but they appear
15164 with different widths in the output:
15165 \begin_inset Newline newline
15168 The first and the last table line have a default width of 0.08
15169 \begin_inset space \thinspace{}
15172 em while the other lines have a default width of 0.05
15173 \begin_inset space \thinspace{}
15179 \begin_layout Standard
15180 The default widths can be changed with the following preamble lines
15183 \begin_layout Standard
15193 \begin_inset Newline newline
15205 \begin_layout Standard
15206 This example is for the first line, the so called
15211 If you want to change the width for the last line, replace
15220 To change the width for the other lines replace
15229 You can use all units listed in appendix
15230 \begin_inset space ~
15234 \begin_inset CommandInset ref
15236 reference "cha:Units-available-in"
15243 \begin_layout Standard
15244 Lines that do not span all table columns can be created by setting a table
15245 line for multicolumn cells.
15247 will then internally use the command
15253 to create this line.
15257 \begin_layout Standard
15262 cmidrule[height](trim){startcol-endcol}
15265 \begin_layout Standard
15272 are currently not supported by \SpecialChar LyX
15273 so you have to use \SpecialChar TeX
15282 s can manually be created by inserting the command as \SpecialChar TeX
15284 cell entry of the first cell of a row.
15285 The line is then drawn in the output above the current row.
15288 \begin_layout Standard
15289 The default for the optional
15294 \begin_inset space \thinspace{}
15302 is the number of the column where the line starts and
15306 the column number where the line ends.
15311 always needs to be specified, also when the line should span only one column.
15312 The optional parameter
15329 Using for example the parameter
15333 means that the line is trimmed from its left end by 2
15334 \begin_inset space \thinspace{}
15338 If you don't specify the
15342 the line is trimmed by the default of 0.5
15343 \begin_inset space \thinspace{}
15349 \begin_layout Standard
15350 \begin_inset VSpace bigskip
15354 \begin_inset space ~
15358 \begin_inset CommandInset ref
15360 reference "tab:Example-booktabs-table"
15364 was created using the commands
15367 \begin_layout Standard
15377 \begin_layout Standard
15378 at the beginning of the second row and
15381 \begin_layout Standard
15386 cmidrule[2pt](l{10pt}){1-1}
15389 \begin_layout Standard
15393 \begin_layout Standard
15394 \begin_inset VSpace bigskip
15400 \begin_layout Standard
15401 You might want to have overlapping
15408 \begin_inset space ~
15412 \begin_inset CommandInset ref
15414 reference "tab:Special-booktabs-table"
15419 This can be achieved with the \SpecialChar TeX
15423 \begin_layout Standard
15431 \begin_layout Standard
15432 The command that was used for the second row of Table
15433 \begin_inset space ~
15437 \begin_inset CommandInset ref
15439 reference "tab:Special-booktabs-table"
15446 \begin_layout Standard
15460 \begin_layout Standard
15461 The command for the sixth row is
15464 \begin_layout Standard
15476 \begin_layout Standard
15477 \begin_inset VSpace bigskip
15483 \begin_layout Standard
15484 If you are in any way not satisfied with the border line spacing, you can
15485 use the following command to produce lines that span over all table columns
15490 \begin_layout Standard
15495 specialrule{width}{space above}{space below}
15498 \begin_layout Standard
15499 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15506 \begin_inset CommandInset citation
15514 \begin_inset Index idx
15517 \begin_layout Plain Layout
15519 -packages ! booktabs
15527 \begin_layout Standard
15528 \begin_inset Float table
15534 \begin_layout Plain Layout
15535 \begin_inset Caption Standard
15537 \begin_layout Plain Layout
15538 \begin_inset CommandInset label
15540 name "tab:Special-booktabs-table"
15544 Special booktabs-table
15552 \begin_layout Plain Layout
15554 \begin_inset Tabular
15555 <lyxtabular version="3" rows="8" columns="4">
15556 <features booktabs="true" tabularvalignment="middle">
15557 <column alignment="center" valignment="top">
15558 <column alignment="center" valignment="top">
15559 <column alignment="center" valignment="top">
15560 <column alignment="center" valignment="top">
15562 <cell alignment="center" valignment="top" topline="true" usebox="none">
15565 \begin_layout Plain Layout
15571 <cell alignment="center" valignment="top" topline="true" usebox="none">
15574 \begin_layout Plain Layout
15576 \begin_inset space \thinspace{}
15584 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15587 \begin_layout Plain Layout
15589 \begin_inset space \thinspace{}
15597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15600 \begin_layout Plain Layout
15608 <cell alignment="center" valignment="top" usebox="none">
15611 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15628 \begin_layout Plain Layout
15641 \begin_layout Plain Layout
15654 \begin_layout Plain Layout
15663 Detector thickness in µm
15668 <cell alignment="center" valignment="top" usebox="none">
15671 \begin_layout Plain Layout
15677 <cell alignment="center" valignment="top" usebox="none">
15680 \begin_layout Plain Layout
15686 <cell alignment="center" valignment="top" usebox="none">
15689 \begin_layout Plain Layout
15697 <cell alignment="center" valignment="top" topline="true" usebox="none">
15700 \begin_layout Plain Layout
15706 <cell alignment="center" valignment="top" topline="true" usebox="none">
15709 \begin_layout Plain Layout
15715 <cell alignment="center" valignment="top" topline="true" usebox="none">
15718 \begin_layout Plain Layout
15724 <cell alignment="center" valignment="top" topline="true" usebox="none">
15727 \begin_layout Plain Layout
15734 <row topspace="default">
15735 <cell alignment="center" valignment="top" usebox="none">
15738 \begin_layout Plain Layout
15739 Spatial resolution in µm
15744 <cell alignment="center" valignment="top" usebox="none">
15747 \begin_layout Plain Layout
15753 <cell alignment="center" valignment="top" usebox="none">
15756 \begin_layout Plain Layout
15762 <cell alignment="center" valignment="top" usebox="none">
15765 \begin_layout Plain Layout
15772 <row topspace="default">
15773 <cell alignment="center" valignment="top" usebox="none">
15776 \begin_layout Plain Layout
15778 \begin_inset Formula $f_{\mathrm{max}}$
15786 <cell alignment="center" valignment="top" usebox="none">
15789 \begin_layout Plain Layout
15795 <cell alignment="center" valignment="top" usebox="none">
15798 \begin_layout Plain Layout
15804 <cell alignment="center" valignment="top" usebox="none">
15807 \begin_layout Plain Layout
15815 <cell alignment="center" valignment="top" topline="true" usebox="none">
15818 \begin_layout Plain Layout
15822 \begin_layout Plain Layout
15835 \begin_layout Plain Layout
15844 LSF-spatial resolution
15849 <cell alignment="center" valignment="top" topline="true" usebox="none">
15852 \begin_layout Plain Layout
15858 <cell alignment="center" valignment="top" topline="true" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15878 <cell alignment="center" valignment="top" usebox="none">
15881 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" usebox="none">
15890 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" usebox="none">
15908 \begin_layout Plain Layout
15916 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15919 \begin_layout Plain Layout
15925 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15943 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15946 \begin_layout Plain Layout
15965 \begin_layout Section
15966 Vertical Table Alignment
15967 \begin_inset Index idx
15970 \begin_layout Plain Layout
15979 \begin_layout Standard
15980 To align tables vertically in a text line, the table must be inside a box.
15981 The box can then be vertically aligned as described in section
15982 \begin_inset space ~
15986 \begin_inset CommandInset ref
15988 reference "sec:Box-Dialog"
15995 \begin_layout Standard
15996 In the following example the tables are inside a minipage
16000 \begin_layout Plain Layout
16001 Minipages are described in section
16002 \begin_inset space ~
16006 \begin_inset CommandInset ref
16008 reference "sec:Minipages"
16017 box that has a width of 15
16018 \begin_inset space \thinspace{}
16024 \begin_layout Itemize
16026 \begin_inset Box Frameless
16036 height_special "totalheight"
16041 backgroundcolor "none"
16044 \begin_layout Plain Layout
16045 \begin_inset Tabular
16046 <lyxtabular version="3" rows="3" columns="3">
16047 <features tabularvalignment="middle">
16048 <column alignment="center" valignment="top">
16049 <column alignment="center" valignment="top">
16050 <column alignment="center" valignment="top">
16052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16055 \begin_layout Plain Layout
16061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16064 \begin_layout Plain Layout
16070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16073 \begin_layout Plain Layout
16081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16084 \begin_layout Plain Layout
16090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16093 \begin_layout Plain Layout
16099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16102 \begin_layout Plain Layout
16110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16113 \begin_layout Plain Layout
16119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16122 \begin_layout Plain Layout
16128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16131 \begin_layout Plain Layout
16151 \begin_layout Plain Layout
16163 \begin_inset Box Frameless
16173 height_special "totalheight"
16178 backgroundcolor "none"
16181 \begin_layout Plain Layout
16182 \begin_inset Tabular
16183 <lyxtabular version="3" rows="3" columns="3">
16184 <features tabularvalignment="middle">
16185 <column alignment="center" valignment="top">
16186 <column alignment="center" valignment="top">
16187 <column alignment="center" valignment="top">
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16192 \begin_layout Plain Layout
16198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16201 \begin_layout Plain Layout
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Plain Layout
16218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16221 \begin_layout Plain Layout
16227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16230 \begin_layout Plain Layout
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Plain Layout
16247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16250 \begin_layout Plain Layout
16256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16259 \begin_layout Plain Layout
16265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16268 \begin_layout Plain Layout
16288 \begin_layout Plain Layout
16298 \begin_layout Itemize
16300 \begin_inset Box Frameless
16310 height_special "totalheight"
16315 backgroundcolor "none"
16318 \begin_layout Plain Layout
16319 \begin_inset Tabular
16320 <lyxtabular version="3" rows="3" columns="3">
16321 <features tabularvalignment="middle">
16322 <column alignment="center" valignment="top">
16323 <column alignment="center" valignment="top">
16324 <column alignment="center" valignment="top">
16326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16329 \begin_layout Plain Layout
16335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16338 \begin_layout Plain Layout
16344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16347 \begin_layout Plain Layout
16355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16358 \begin_layout Plain Layout
16364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16367 \begin_layout Plain Layout
16373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16376 \begin_layout Plain Layout
16384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16387 \begin_layout Plain Layout
16393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16396 \begin_layout Plain Layout
16402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16405 \begin_layout Plain Layout
16424 \begin_layout Itemize
16426 \begin_inset Box Frameless
16436 height_special "totalheight"
16441 backgroundcolor "none"
16444 \begin_layout Plain Layout
16445 \begin_inset Tabular
16446 <lyxtabular version="3" rows="3" columns="3">
16447 <features tabularvalignment="middle">
16448 <column alignment="center" valignment="top">
16449 <column alignment="center" valignment="top">
16450 <column alignment="center" valignment="top">
16452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16455 \begin_layout Plain Layout
16461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16464 \begin_layout Plain Layout
16470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16473 \begin_layout Plain Layout
16481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16484 \begin_layout Plain Layout
16490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16493 \begin_layout Plain Layout
16499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16502 \begin_layout Plain Layout
16510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16513 \begin_layout Plain Layout
16519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16522 \begin_layout Plain Layout
16528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16531 \begin_layout Plain Layout
16551 \begin_layout Plain Layout
16563 \begin_inset Box Frameless
16573 height_special "totalheight"
16578 backgroundcolor "none"
16581 \begin_layout Plain Layout
16582 \begin_inset Tabular
16583 <lyxtabular version="3" rows="3" columns="3">
16584 <features tabularvalignment="middle">
16585 <column alignment="center" valignment="top">
16586 <column alignment="center" valignment="top">
16587 <column alignment="center" valignment="top">
16589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16592 \begin_layout Plain Layout
16598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16601 \begin_layout Plain Layout
16607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16610 \begin_layout Plain Layout
16618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16621 \begin_layout Plain Layout
16627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16630 \begin_layout Plain Layout
16636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16639 \begin_layout Plain Layout
16647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16650 \begin_layout Plain Layout
16656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16659 \begin_layout Plain Layout
16665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16668 \begin_layout Plain Layout
16688 \begin_layout Plain Layout
16698 \begin_layout Standard
16699 As you will see, the content of the first and last table row is not correctly
16701 To get this alignment, the minipage box must be set into a raisebox.
16705 \begin_layout Plain Layout
16706 Raiseboxes are described in section
16707 \begin_inset space ~
16711 \begin_inset CommandInset ref
16713 reference "subsec:Vertical-Alignment"
16722 In the example above the second table in the first item is aligned using
16723 the \SpecialChar TeX
16727 \begin_layout Standard
16737 \begin_layout Standard
16739 After the box the closing brace
16743 is inserted as \SpecialChar TeX
16745 For the second table in the last item the command
16748 \begin_layout Standard
16758 \begin_layout Standard
16762 \begin_layout Standard
16763 \begin_inset Note Greyedout
16766 \begin_layout Plain Layout
16771 The alignment of the table row content to the surrounding text line is
16773 The required value for the
16779 command for this alignment depends on the document font, the font size,
16780 and the table line thickness.
16788 \begin_layout Section
16790 \begin_inset CommandInset label
16792 name "sec:Colored-Tables"
16797 \begin_inset Index idx
16800 \begin_layout Plain Layout
16809 \begin_layout Subsection
16811 \begin_inset Index idx
16814 \begin_layout Plain Layout
16815 Table Color ! for Cells
16821 \begin_inset Index idx
16824 \begin_layout Plain Layout
16825 Color ! for Table Cells
16833 \begin_layout Standard
16834 \begin_inset Float table
16840 \begin_layout Plain Layout
16841 \begin_inset Caption Standard
16843 \begin_layout Plain Layout
16844 \begin_inset CommandInset label
16846 name "tab:Table-colored-without"
16850 Table colored without using the package
16855 \begin_inset Argument 1
16858 \begin_layout Plain Layout
16859 Table without colortbl
16872 \begin_layout Plain Layout
16874 \begin_inset Tabular
16875 <lyxtabular version="3" rows="3" columns="3">
16876 <features tabularvalignment="middle">
16877 <column alignment="center" valignment="top">
16878 <column alignment="center" valignment="top">
16879 <column alignment="center" valignment="top">
16881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16884 \begin_layout Plain Layout
16892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16895 \begin_layout Plain Layout
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16906 \begin_layout Plain Layout
16916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16919 \begin_layout Plain Layout
16927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16930 \begin_layout Plain Layout
16938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16941 \begin_layout Plain Layout
16951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16954 \begin_layout Plain Layout
16962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16965 \begin_layout Plain Layout
16973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16976 \begin_layout Plain Layout
16997 \begin_layout Standard
16998 If you only need colored text, mark the cells and choose a color in the
17002 \begin_inset space ~
17007 dialog (toolbar button
17010 arg "dialog-show character"
17014 This was used to create Table
17015 \begin_inset space ~
17019 \begin_inset CommandInset ref
17021 reference "tab:Table-colored-without"
17026 In any other case you have to use the \SpecialChar LaTeX
17032 \begin_inset Index idx
17035 \begin_layout Plain Layout
17037 -packages ! colortbl
17045 \begin_layout Standard
17049 \begin_layout Plain Layout
17059 \begin_inset Note Note
17062 \begin_layout Plain Layout
17063 The following section part will only be displayed when the \SpecialChar LaTeX
17076 \begin_layout Standard
17077 To create colored tables,
17081 must be loaded in the preamble with the line
17084 \begin_layout Standard
17089 usepackage{colortbl}
17092 \begin_layout Standard
17093 The color of a column is adjusted with the command
17096 \begin_layout Standard
17101 columncolor{name of color}
17104 \begin_layout Standard
17110 More about the command
17114 is contained in section
17115 \begin_inset space ~
17119 \begin_inset CommandInset ref
17121 reference "subsec:Multicolumn-Calculations"
17128 \begin_layout Standard
17129 The following color names are predefined:
17132 \begin_layout Standard
17166 \begin_layout Standard
17167 \begin_inset VSpace medskip
17173 \begin_layout Standard
17174 If you add the option
17177 \begin_layout Standard
17183 \begin_layout Standard
17184 to the document class options in the document settings, you can additionally
17186 \begin_inset space ~
17190 These colors are listed in appendix
17191 \begin_inset space ~
17195 \begin_inset CommandInset ref
17197 reference "chap:List-of-dvips-colornames"
17202 One of these colors,
17206 , is used as example in Table
17207 \begin_inset space ~
17211 \begin_inset CommandInset ref
17213 reference "tab:Table-colored-using"
17220 \begin_layout Standard
17221 \begin_inset VSpace medskip
17227 \begin_layout Standard
17228 You can also define your own color with the command
17231 \begin_layout Standard
17236 definecolor{color name}{color model}{color values}
17239 \begin_layout Standard
17240 The color model can be
17243 \begin_layout Labeling
17244 \labelwidthstring 00.00.0000
17245 cmyk: cyan, magenta, yellow, black
17248 \begin_layout Labeling
17249 \labelwidthstring 00.00.0000
17250 rgb: red, green blue
17253 \begin_layout Labeling
17254 \labelwidthstring 00.00.0000
17258 \begin_layout Standard
17259 and the color values are comma separated numbers between 0 and 1 describing
17260 the factor for the corresponding color of the color model.
17263 \begin_layout Standard
17265 \begin_inset space \thinspace{}
17269 \begin_inset space \space{}
17276 " in the preamble with
17279 \begin_layout Standard
17284 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17287 \begin_layout Standard
17295 \begin_layout Standard
17300 definecolor{lightgray}{gray}{0.8}
17303 \begin_layout Standard
17304 \begin_inset VSpace medskip
17310 \begin_layout Standard
17311 Lines are colored with the command
17314 \begin_layout Standard
17319 rowcolor{name of color}
17322 \begin_layout Standard
17323 and cells are colored with the command
17326 \begin_layout Standard
17331 cellcolor{name of color}
17334 \begin_layout Standard
17335 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17339 \begin_layout Standard
17340 To color characters in the table, mark the cells and use the
17343 \begin_inset space ~
17349 If a cell contains \SpecialChar TeX
17350 Code mark only the characters, otherwise the colored
17352 Code will cause \SpecialChar LaTeX
17356 \begin_layout Standard
17357 \begin_inset Note Greyedout
17360 \begin_layout Plain Layout
17365 Not all DVI-viewers are able to display self-defined colors.
17373 \begin_layout Standard
17374 \begin_inset VSpace bigskip
17380 \begin_layout Standard
17382 \begin_inset space ~
17386 \begin_inset CommandInset ref
17388 reference "tab:Table-colored-using"
17392 do the following: The color of the first column should be
17400 \begin_layout Standard
17405 columncolor{darkgreen}
17410 \begin_layout Standard
17411 as \SpecialChar LaTeX
17412 -argument for this column.
17413 The first row should be light blue, therefore the \SpecialChar TeX
17417 \begin_layout Standard
17425 \begin_layout Standard
17426 is inserted to the first cell of this row.
17427 Note that this overwrites the column color for the first cell.
17428 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17433 \begin_layout Standard
17441 \begin_layout Standard
17442 The characters could now be colored using the menu
17444 Edit\SpecialChar menuseparator
17446 \begin_inset space ~
17454 \begin_layout Standard
17455 \begin_inset Float table
17461 \begin_layout Plain Layout
17462 \begin_inset Caption Standard
17464 \begin_layout Plain Layout
17465 \begin_inset CommandInset label
17467 name "tab:Table-colored-using"
17471 Table colored using the package
17476 \begin_inset Argument 1
17479 \begin_layout Plain Layout
17480 Table with colortbl
17493 \begin_layout Plain Layout
17495 \begin_inset Tabular
17496 <lyxtabular version="3" rows="3" columns="3">
17497 <features tabularvalignment="middle">
17498 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17499 <column alignment="center" valignment="top">
17500 <column alignment="center" valignment="top">
17502 <cell alignment="center" valignment="top" usebox="none">
17505 \begin_layout Plain Layout
17509 \begin_layout Plain Layout
17525 <cell alignment="center" valignment="top" usebox="none">
17528 \begin_layout Plain Layout
17536 <cell alignment="center" valignment="top" usebox="none">
17539 \begin_layout Plain Layout
17549 <cell alignment="center" valignment="top" usebox="none">
17552 \begin_layout Plain Layout
17560 <cell alignment="center" valignment="top" usebox="none">
17563 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17584 <cell alignment="center" valignment="top" usebox="none">
17587 \begin_layout Plain Layout
17595 <cell alignment="center" valignment="top" usebox="none">
17598 \begin_layout Plain Layout
17606 <cell alignment="center" valignment="top" usebox="none">
17609 \begin_layout Plain Layout
17613 \begin_layout Plain Layout
17642 \begin_layout Standard
17646 \begin_layout Plain Layout
17656 \begin_inset Note Note
17659 \begin_layout Plain Layout
17660 The following will be displayed when the \SpecialChar LaTeX
17673 \begin_layout Standard
17674 You need to install the package
17678 to see the content of this section in the output.
17681 \begin_layout Standard
17685 \begin_layout Plain Layout
17697 \begin_layout Subsection
17699 \begin_inset Index idx
17702 \begin_layout Plain Layout
17703 Table Color ! for Rows
17709 \begin_inset Index idx
17712 \begin_layout Plain Layout
17713 Color ! for Table Rows
17721 \begin_layout Standard
17722 In case every second table row needs to be colored there is an alternative
17723 to the method described in the previous section: One loads the package
17729 \begin_inset Index idx
17732 \begin_layout Plain Layout
17738 \begin_layout Plain Layout
17752 in the document preamble with the command
17755 \begin_layout Standard
17760 usepackage[table]{xcolor}
17763 \begin_layout Standard
17768 automatically loads also the package
17773 \begin_inset Index idx
17776 \begin_layout Plain Layout
17778 -packages ! colortbl
17787 must be installed in your \SpecialChar LaTeX
17788 -distribution, otherwise you get \SpecialChar LaTeX
17792 \begin_layout Standard
17796 \begin_layout Plain Layout
17806 \begin_inset Note Note
17809 \begin_layout Plain Layout
17810 The following section part will only be displayed when the \SpecialChar LaTeX
17823 \begin_layout Standard
17824 The table rows are colored with the command
17827 \begin_layout Standard
17832 rowcolors[commands]{row number}{odd row color}{even row color}
17835 \begin_layout Standard
17836 that is either inserted in the document preamble or as \SpecialChar TeX
17838 first table to be colored.
17840 \begin_inset space ~
17843 number is the number of the first row which should be colored according
17844 to the odd row color.
17845 commands can be additional commands that are executed before every table
17847 So for example the command
17850 \begin_layout Standard
17855 rowcolors{1}{white}{lightgray}
17858 \begin_layout Standard
17859 leads to the coloring scheme of Table
17860 \begin_inset space ~
17864 \begin_inset CommandInset ref
17866 reference "tab:Table-rowcolors"
17874 \begin_layout Standard
17881 hline]{1}{lightgray}{cyan}
17884 \begin_layout Standard
17885 leads to the coloring scheme of Table
17886 \begin_inset space ~
17890 \begin_inset CommandInset ref
17892 reference "tab:Table-rowcolors-2"
17898 \begin_inset space ~
17902 \begin_inset space ~
17906 \begin_inset space ~
17910 \begin_inset space ~
17913 color are left empty, no color will be used so that the command
17916 \begin_layout Standard
17924 \begin_layout Standard
17925 deletes all colors.
17932 affects all tables following that command.
17935 \begin_layout Standard
17939 \begin_layout Plain Layout
17943 rowcolors{1}{white}{lightgray}
17951 \begin_layout Standard
17952 \begin_inset Float table
17958 \begin_layout Plain Layout
17959 \begin_inset Caption Standard
17961 \begin_layout Plain Layout
17962 \begin_inset CommandInset label
17964 name "tab:Table-rowcolors"
17968 Table where every second row is colored light gray.
17976 \begin_layout Plain Layout
17978 \begin_inset Tabular
17979 <lyxtabular version="3" rows="4" columns="3">
17980 <features tabularvalignment="middle">
17981 <column alignment="center" valignment="top">
17982 <column alignment="center" valignment="top" width="0pt">
17983 <column alignment="center" valignment="top" width="0pt">
17985 <cell alignment="center" valignment="top" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" usebox="none">
17997 \begin_layout Plain Layout
18003 <cell alignment="center" valignment="top" usebox="none">
18006 \begin_layout Plain Layout
18014 <cell alignment="center" valignment="top" usebox="none">
18017 \begin_layout Plain Layout
18023 <cell alignment="center" valignment="top" usebox="none">
18026 \begin_layout Plain Layout
18032 <cell alignment="center" valignment="top" usebox="none">
18035 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" usebox="none">
18046 \begin_layout Plain Layout
18052 <cell alignment="center" valignment="top" usebox="none">
18055 \begin_layout Plain Layout
18061 <cell alignment="center" valignment="top" usebox="none">
18064 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" usebox="none">
18075 \begin_layout Plain Layout
18081 <cell alignment="center" valignment="top" usebox="none">
18084 \begin_layout Plain Layout
18090 <cell alignment="center" valignment="top" usebox="none">
18093 \begin_layout Plain Layout
18112 \begin_layout Standard
18116 \begin_layout Plain Layout
18122 hline]{1}{lightgray}{cyan}
18130 \begin_layout Standard
18131 \begin_inset Float table
18137 \begin_layout Plain Layout
18138 \begin_inset Caption Standard
18140 \begin_layout Plain Layout
18141 \begin_inset CommandInset label
18143 name "tab:Table-rowcolors-2"
18147 Table where every second row is colored cyan and at which there is a line
18156 \begin_layout Plain Layout
18158 \begin_inset Tabular
18159 <lyxtabular version="3" rows="4" columns="3">
18160 <features tabularvalignment="middle">
18161 <column alignment="center" valignment="top">
18162 <column alignment="center" valignment="top">
18163 <column alignment="center" valignment="top" width="0pt">
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" usebox="none">
18186 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" usebox="none">
18206 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" usebox="none">
18215 \begin_layout Plain Layout
18223 <cell alignment="center" valignment="top" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" usebox="none">
18235 \begin_layout Plain Layout
18241 <cell alignment="center" valignment="top" usebox="none">
18244 \begin_layout Plain Layout
18252 <cell alignment="center" valignment="top" usebox="none">
18255 \begin_layout Plain Layout
18261 <cell alignment="center" valignment="top" usebox="none">
18264 \begin_layout Plain Layout
18270 <cell alignment="center" valignment="top" usebox="none">
18273 \begin_layout Plain Layout
18292 \begin_layout Standard
18296 \begin_layout Plain Layout
18306 \begin_inset Note Note
18309 \begin_layout Plain Layout
18310 turns off the row coloring
18318 \begin_layout Standard
18322 \begin_layout Plain Layout
18332 \begin_inset Note Note
18335 \begin_layout Plain Layout
18336 The following will be displayed when the \SpecialChar LaTeX
18349 \begin_layout Standard
18350 You need to install the package
18354 to see the content of this section in the output.
18357 \begin_layout Standard
18361 \begin_layout Plain Layout
18373 \begin_layout Subsection
18375 \begin_inset Index idx
18378 \begin_layout Plain Layout
18379 Table Color ! for Lines
18385 \begin_inset Index idx
18388 \begin_layout Plain Layout
18389 Color ! for Table Lines
18397 \begin_layout Standard
18398 As described in section
18399 \begin_inset space ~
18403 \begin_inset CommandInset ref
18405 reference "subsec:Line-Thickness"
18409 , the line thickness for all lines in a table can be adjusted with the length
18418 \begin_inset space \thinspace{}
18421 pt for all tables of this section.
18425 \begin_layout Plain Layout
18431 arrayrulewidth}{1.5pt}
18439 \begin_layout Standard
18440 To color vertical lines for example with green, create the following column
18441 format in the document preamble, according to the description in section
18442 \begin_inset space ~
18446 \begin_inset CommandInset ref
18448 reference "subsec:Customized-Format"
18455 \begin_layout Standard
18460 newcolumntype{W}{!{
18467 \begin_layout Standard
18469 \begin_inset space ~
18473 \begin_inset CommandInset ref
18475 reference "tab:Table-with-vertical-colored"
18479 the \SpecialChar LaTeX
18484 was used for the last column and
18488 for the other columns.
18491 \begin_layout Standard
18492 If you want to have several colors, define more column formats.
18495 \begin_layout Standard
18496 \begin_inset Float table
18502 \begin_layout Plain Layout
18503 \begin_inset Caption Standard
18505 \begin_layout Plain Layout
18506 \begin_inset CommandInset label
18508 name "tab:Table-with-vertical-colored"
18512 Table with colored vertical lines
18520 \begin_layout Plain Layout
18522 \begin_inset Tabular
18523 <lyxtabular version="3" rows="3" columns="3">
18524 <features tabularvalignment="middle">
18525 <column alignment="center" valignment="top" special="Wc">
18526 <column alignment="center" valignment="top" special="Wc">
18527 <column alignment="center" valignment="top" special="WcW">
18529 <cell alignment="center" valignment="top" topline="true" usebox="none">
18532 \begin_layout Plain Layout
18538 <cell alignment="center" valignment="top" topline="true" usebox="none">
18541 \begin_layout Plain Layout
18547 <cell alignment="center" valignment="top" topline="true" usebox="none">
18550 \begin_layout Plain Layout
18558 <cell alignment="center" valignment="top" topline="true" usebox="none">
18561 \begin_layout Plain Layout
18567 <cell alignment="center" valignment="top" topline="true" usebox="none">
18570 \begin_layout Plain Layout
18576 <cell alignment="center" valignment="top" topline="true" usebox="none">
18579 \begin_layout Plain Layout
18587 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18590 \begin_layout Plain Layout
18596 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18599 \begin_layout Plain Layout
18605 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18608 \begin_layout Plain Layout
18627 \begin_layout Standard
18628 \begin_inset VSpace bigskip
18631 To color all horizontal lines for example with red, as in Table
18632 \begin_inset space ~
18636 \begin_inset CommandInset ref
18638 reference "tab:Table-with-horizontal-colored"
18642 , insert these commands in \SpecialChar TeX
18643 code before the table or table float:
18646 \begin_layout Standard
18656 \begin_inset Newline newline
18664 \begin_inset Newline newline
18668 \begin_inset Phantom HPhantom
18671 \begin_layout Plain Layout
18674 \begin_inset space ~
18684 arrayrulecolor{red}
18688 arrayrulecolor{black}}
18691 \begin_layout Standard
18695 \begin_layout Plain Layout
18706 \begin_layout Plain Layout
18715 \begin_layout Plain Layout
18719 arrayrulecolor{red}
18723 arrayrulecolor{black}}
18729 \begin_inset Float table
18735 \begin_layout Plain Layout
18736 \begin_inset Caption Standard
18738 \begin_layout Plain Layout
18739 \begin_inset CommandInset label
18741 name "tab:Table-with-horizontal-colored"
18745 Table with colored horizontal lines
18753 \begin_layout Plain Layout
18755 \begin_inset Tabular
18756 <lyxtabular version="3" rows="3" columns="3">
18757 <features tabularvalignment="middle">
18758 <column alignment="center" valignment="top">
18759 <column alignment="center" valignment="top">
18760 <column alignment="center" valignment="top">
18762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18765 \begin_layout Plain Layout
18771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18774 \begin_layout Plain Layout
18780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18783 \begin_layout Plain Layout
18791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18794 \begin_layout Plain Layout
18800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18803 \begin_layout Plain Layout
18809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18812 \begin_layout Plain Layout
18820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18823 \begin_layout Plain Layout
18829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18832 \begin_layout Plain Layout
18838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18841 \begin_layout Plain Layout
18860 \begin_layout Standard
18861 To return to the default line color black, insert this command in \SpecialChar TeX
18863 after the table or table float:
18866 \begin_layout Standard
18878 \begin_layout Standard
18880 \begin_inset space ~
18884 \begin_inset CommandInset ref
18886 reference "tab:Table-with-colored"
18890 is an example with colored vertical and horizontal lines.
18893 \begin_layout Standard
18894 \begin_inset Float table
18900 \begin_layout Plain Layout
18901 \begin_inset Caption Standard
18903 \begin_layout Plain Layout
18904 \begin_inset CommandInset label
18906 name "tab:Table-with-colored"
18910 Table with colored lines
18918 \begin_layout Plain Layout
18920 \begin_inset Tabular
18921 <lyxtabular version="3" rows="3" columns="3">
18922 <features tabularvalignment="middle">
18923 <column alignment="center" valignment="top" special="Wc">
18924 <column alignment="center" valignment="top" special="Wc">
18925 <column alignment="center" valignment="top" special="WcW">
18927 <cell alignment="center" valignment="top" topline="true" usebox="none">
18930 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" topline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" topline="true" usebox="none">
18948 \begin_layout Plain Layout
18956 <cell alignment="center" valignment="top" topline="true" usebox="none">
18959 \begin_layout Plain Layout
18965 <cell alignment="center" valignment="top" topline="true" usebox="none">
18968 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" usebox="none">
18977 \begin_layout Plain Layout
18984 <row topspace="default">
18985 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18988 \begin_layout Plain Layout
18994 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18997 \begin_layout Plain Layout
19003 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19006 \begin_layout Plain Layout
19025 \begin_layout Standard
19029 \begin_layout Plain Layout
19045 \begin_layout Standard
19049 \begin_layout Plain Layout
19055 arrayrulewidth}{1.2pt}
19063 \begin_layout Standard
19064 To color only some of the table lines another strategy is necessary.
19065 To color all following horizontal lines, insert this command as \SpecialChar TeX
19067 last thing in the row that should be above the first colored line:
19070 \begin_layout Standard
19079 arrayrulecolor{blue}%
19082 \begin_layout Standard
19083 To go back to black lines, add this command as first thing in the row that
19084 is above the black lines:
19087 \begin_layout Standard
19092 arrayrulecolor{black}
19095 \begin_layout Standard
19096 With this one can color table lines like in Table
19097 \begin_inset space ~
19101 \begin_inset CommandInset ref
19103 reference "tab:Table-with-different-hor"
19108 However, with this method it is not possible to color the line above the
19109 first row of a table.
19112 \begin_layout Standard
19113 \begin_inset Float table
19118 \begin_layout Plain Layout
19119 \begin_inset Caption Standard
19121 \begin_layout Plain Layout
19122 \begin_inset CommandInset label
19124 name "tab:Table-with-different-hor"
19128 Table with different horizontal line colors.
19136 \begin_layout Plain Layout
19138 \begin_inset Tabular
19139 <lyxtabular version="3" rows="6" columns="7">
19140 <features tabularvalignment="middle">
19141 <column alignment="center" valignment="top">
19142 <column alignment="center" valignment="top">
19143 <column alignment="center" valignment="top">
19144 <column alignment="center" valignment="top">
19145 <column alignment="center" valignment="top">
19146 <column alignment="center" valignment="top">
19147 <column alignment="center" valignment="top">
19149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19152 \begin_layout Plain Layout
19158 <cell alignment="center" valignment="top" topline="true" usebox="none">
19161 \begin_layout Plain Layout
19167 <cell alignment="center" valignment="top" topline="true" usebox="none">
19170 \begin_layout Plain Layout
19176 <cell alignment="center" valignment="top" topline="true" usebox="none">
19179 \begin_layout Plain Layout
19185 <cell alignment="center" valignment="top" topline="true" usebox="none">
19188 \begin_layout Plain Layout
19194 <cell alignment="center" valignment="top" topline="true" usebox="none">
19197 \begin_layout Plain Layout
19203 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19206 \begin_layout Plain Layout
19210 \begin_layout Plain Layout
19218 arrayrulecolor{blue}%
19230 <cell alignment="center" valignment="top" usebox="none">
19233 \begin_layout Plain Layout
19239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19242 \begin_layout Plain Layout
19248 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19251 \begin_layout Plain Layout
19257 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19260 \begin_layout Plain Layout
19266 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19269 \begin_layout Plain Layout
19275 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19278 \begin_layout Plain Layout
19284 <cell alignment="center" valignment="top" usebox="none">
19287 \begin_layout Plain Layout
19295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19298 \begin_layout Plain Layout
19302 \begin_layout Plain Layout
19306 arrayrulecolor{black}
19316 <cell alignment="center" valignment="top" usebox="none">
19319 \begin_layout Plain Layout
19325 <cell alignment="center" valignment="top" usebox="none">
19328 \begin_layout Plain Layout
19334 <cell alignment="center" valignment="top" usebox="none">
19337 \begin_layout Plain Layout
19343 <cell alignment="center" valignment="top" usebox="none">
19346 \begin_layout Plain Layout
19352 <cell alignment="center" valignment="top" usebox="none">
19355 \begin_layout Plain Layout
19361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19364 \begin_layout Plain Layout
19372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19375 \begin_layout Plain Layout
19381 <cell alignment="center" valignment="top" usebox="none">
19384 \begin_layout Plain Layout
19390 <cell alignment="center" valignment="top" usebox="none">
19393 \begin_layout Plain Layout
19399 <cell alignment="center" valignment="top" usebox="none">
19402 \begin_layout Plain Layout
19408 <cell alignment="center" valignment="top" usebox="none">
19411 \begin_layout Plain Layout
19417 <cell alignment="center" valignment="top" usebox="none">
19420 \begin_layout Plain Layout
19426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19429 \begin_layout Plain Layout
19433 \begin_layout Plain Layout
19441 arrayrulecolor{green}%
19453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19456 \begin_layout Plain Layout
19462 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19465 \begin_layout Plain Layout
19471 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19474 \begin_layout Plain Layout
19480 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19483 \begin_layout Plain Layout
19489 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19492 \begin_layout Plain Layout
19498 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19501 \begin_layout Plain Layout
19507 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19510 \begin_layout Plain Layout
19518 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19521 \begin_layout Plain Layout
19525 \begin_layout Plain Layout
19529 arrayrulecolor{black}
19539 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19542 \begin_layout Plain Layout
19548 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19551 \begin_layout Plain Layout
19557 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19560 \begin_layout Plain Layout
19566 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19569 \begin_layout Plain Layout
19575 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19578 \begin_layout Plain Layout
19584 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19587 \begin_layout Plain Layout
19591 \begin_layout Plain Layout
19599 arrayrulecolor{blue}%
19622 \begin_layout Standard
19623 To change the color of vertical lines within a row, like in Table
19624 \begin_inset space ~
19628 \begin_inset CommandInset ref
19630 reference "tab:Table-with-different-ver"
19634 , one needs to use multicolumns.
19635 At first one needs to remove all vertical lines that don't run along the
19637 Now one colors all lines using the command
19640 \begin_layout Standard
19649 arrayrulecolor{blue}%
19652 \begin_layout Standard
19654 Finally one inserts this command as \SpecialChar TeX
19655 code to every cell in the row where
19656 one needs a vertical line in a different color:
19659 \begin_layout Standard
19675 \begin_layout Standard
19676 This adds a vertical line to both sides of the cell.
19677 The left one will be green, the right one red.
19678 If no color change is necessary one can omit the
19684 command in the above command.
19685 To get for example a black left line and a blue right line you can write:
19688 \begin_layout Standard
19700 \begin_layout Standard
19701 because the color blue was already set for all lines.
19706 creates hereby the vertical line while
19719 To set vertical lines without changing any color use
19722 \begin_layout Standard
19727 multicolumn{1}{|c|}{
19730 \begin_layout Standard
19731 After this command insert the cell content the normal way and end the cell
19732 with a closing brace
19736 in \SpecialChar TeX
19740 \begin_layout Standard
19741 \begin_inset Float table
19746 \begin_layout Plain Layout
19747 \begin_inset Caption Standard
19749 \begin_layout Plain Layout
19750 \begin_inset CommandInset label
19752 name "tab:Table-with-different-ver"
19756 Table with different vertical line colors in one row.
19764 \begin_layout Plain Layout
19766 \begin_inset Tabular
19767 <lyxtabular version="3" rows="5" columns="7">
19768 <features tabularvalignment="middle">
19769 <column alignment="center" valignment="top">
19770 <column alignment="center" valignment="top">
19771 <column alignment="center" valignment="top">
19772 <column alignment="center" valignment="top">
19773 <column alignment="center" valignment="top">
19774 <column alignment="center" valignment="top">
19775 <column alignment="center" valignment="top">
19777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19780 \begin_layout Plain Layout
19786 <cell alignment="center" valignment="top" topline="true" usebox="none">
19789 \begin_layout Plain Layout
19795 <cell alignment="center" valignment="top" topline="true" usebox="none">
19798 \begin_layout Plain Layout
19804 <cell alignment="center" valignment="top" topline="true" usebox="none">
19807 \begin_layout Plain Layout
19813 <cell alignment="center" valignment="top" topline="true" usebox="none">
19816 \begin_layout Plain Layout
19822 <cell alignment="center" valignment="top" topline="true" usebox="none">
19825 \begin_layout Plain Layout
19831 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19834 \begin_layout Plain Layout
19838 \begin_layout Plain Layout
19846 arrayrulecolor{red}%
19858 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19861 \begin_layout Plain Layout
19865 \begin_layout Plain Layout
19882 \begin_layout Plain Layout
19894 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19897 \begin_layout Plain Layout
19903 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19906 \begin_layout Plain Layout
19912 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19915 \begin_layout Plain Layout
19921 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19924 \begin_layout Plain Layout
19930 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19933 \begin_layout Plain Layout
19937 \begin_layout Plain Layout
19941 multicolumn{1}{c|}{
19950 \begin_layout Plain Layout
19962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19965 \begin_layout Plain Layout
19969 \begin_layout Plain Layout
19986 \begin_layout Plain Layout
20000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20003 \begin_layout Plain Layout
20007 \begin_layout Plain Layout
20011 arrayrulecolor{black}
20021 <cell alignment="center" valignment="top" usebox="none">
20024 \begin_layout Plain Layout
20030 <cell alignment="center" valignment="top" usebox="none">
20033 \begin_layout Plain Layout
20039 <cell alignment="center" valignment="top" usebox="none">
20042 \begin_layout Plain Layout
20048 <cell alignment="center" valignment="top" usebox="none">
20051 \begin_layout Plain Layout
20057 <cell alignment="center" valignment="top" usebox="none">
20060 \begin_layout Plain Layout
20066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20069 \begin_layout Plain Layout
20073 \begin_layout Plain Layout
20081 arrayrulecolor{magenta}%
20093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20096 \begin_layout Plain Layout
20100 \begin_layout Plain Layout
20104 multicolumn{1}{|c!{
20117 \begin_layout Plain Layout
20129 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20132 \begin_layout Plain Layout
20136 \begin_layout Plain Layout
20153 \begin_layout Plain Layout
20165 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20168 \begin_layout Plain Layout
20172 \begin_layout Plain Layout
20189 \begin_layout Plain Layout
20201 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20204 \begin_layout Plain Layout
20208 \begin_layout Plain Layout
20225 \begin_layout Plain Layout
20237 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20240 \begin_layout Plain Layout
20244 \begin_layout Plain Layout
20261 \begin_layout Plain Layout
20273 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20276 \begin_layout Plain Layout
20280 \begin_layout Plain Layout
20297 \begin_layout Plain Layout
20309 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20312 \begin_layout Plain Layout
20316 \begin_layout Plain Layout
20320 multicolumn{1}{c|}{
20329 \begin_layout Plain Layout
20343 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20346 \begin_layout Plain Layout
20350 \begin_layout Plain Layout
20354 arrayrulecolor{black}
20364 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20367 \begin_layout Plain Layout
20373 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20376 \begin_layout Plain Layout
20382 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20385 \begin_layout Plain Layout
20391 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20394 \begin_layout Plain Layout
20400 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20403 \begin_layout Plain Layout
20409 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20412 \begin_layout Plain Layout
20431 \begin_layout Standard
20435 \begin_layout Plain Layout
20441 arrayrulewidth}{0.4pt}
20449 \begin_layout Section
20450 Rotated Table Cells
20451 \begin_inset CommandInset label
20453 name "sec:Rotated-Table-Cells"
20458 \begin_inset Index idx
20461 \begin_layout Plain Layout
20462 Table ! Rotated Cells
20468 \begin_inset Index idx
20471 \begin_layout Plain Layout
20480 \begin_layout Standard
20481 \begin_inset Note Greyedout
20484 \begin_layout Plain Layout
20489 Not all DVI-viewers are able to display rotations.
20497 \begin_layout Standard
20499 \begin_inset space ~
20503 \begin_inset CommandInset ref
20505 reference "tab:Table-with-rotated-multi"
20509 is an example where 3
20510 \begin_inset space ~
20513 cells were rotated by 45
20514 \begin_inset space \thinspace{}
20520 \begin_layout Standard
20521 \begin_inset Float table
20527 \begin_layout Plain Layout
20528 \begin_inset Caption Standard
20530 \begin_layout Plain Layout
20531 \begin_inset CommandInset label
20533 name "tab:Table-with-rotated"
20537 Table with rotated cells in the first row.
20545 \begin_layout Plain Layout
20548 \begin_inset Tabular
20549 <lyxtabular version="3" rows="2" columns="3">
20550 <features tabularvalignment="middle">
20551 <column alignment="center" valignment="top" width="0pt">
20552 <column alignment="center" valignment="top" width="0pt">
20553 <column alignment="center" valignment="top" width="0pt">
20555 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20558 \begin_layout Plain Layout
20564 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20567 \begin_layout Plain Layout
20573 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20576 \begin_layout Plain Layout
20584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20587 \begin_layout Plain Layout
20593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20596 \begin_layout Plain Layout
20602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20605 \begin_layout Plain Layout
20624 \begin_layout Standard
20625 \begin_inset Note Greyedout
20628 \begin_layout Plain Layout
20633 Line breaks (shortcut
20636 arg "newline-insert newline"
20639 ) are not allowed in rotated cells.
20647 \begin_layout Standard
20648 If you want to rotate table cells containing line breaks, you have to put
20649 the cell content into a minipage or a parbox.
20653 \begin_layout Plain Layout
20654 For more about these boxes see sec.
20655 \begin_inset space \thinspace{}
20659 \begin_inset CommandInset ref
20661 reference "sec:Minipages"
20666 \begin_inset CommandInset ref
20668 reference "sec:Parboxes"
20677 If you rotate this cell by 90
20678 \begin_inset space \thinspace{}
20681 ° the width of the box is the height of the cell.
20683 \begin_inset space ~
20687 \begin_inset CommandInset ref
20689 reference "tab:Table-with-rotated-multi"
20693 is an example for a rotated multiline cell where the box width was set
20695 \begin_inset space \thinspace{}
20701 \begin_layout Standard
20702 \begin_inset Float table
20707 \begin_layout Plain Layout
20708 \begin_inset Caption Standard
20710 \begin_layout Plain Layout
20711 \begin_inset CommandInset label
20713 name "tab:Table-with-rotated-multi"
20717 Table with rotated multiline cell.
20725 \begin_layout Plain Layout
20728 \begin_inset Tabular
20729 <lyxtabular version="3" rows="2" columns="3">
20730 <features tabularvalignment="middle">
20731 <column alignment="center" valignment="top">
20732 <column alignment="center" valignment="top" width="0pt">
20733 <column alignment="center" valignment="top">
20735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20738 \begin_layout Plain Layout
20744 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20747 \begin_layout Plain Layout
20748 \begin_inset Box Frameless
20758 height_special "totalheight"
20763 backgroundcolor "none"
20766 \begin_layout Plain Layout
20768 \begin_inset Newline newline
20781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20784 \begin_layout Plain Layout
20792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20795 \begin_layout Plain Layout
20801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20804 \begin_layout Plain Layout
20810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20813 \begin_layout Plain Layout
20832 \begin_layout Section
20833 Table Width Calculation
20834 \begin_inset CommandInset label
20836 name "sec:Table-Width-Calculation"
20843 \begin_layout Standard
20844 For wide tables it is sometimes difficult to assure that the table does
20845 not protrude over the page margin.
20846 Setting a fixed width for every column of the table is the solution, but
20847 what amount of space is needed for each column?
20850 \begin_layout Standard
20852 \begin_inset Formula $W_{\mathrm{table}}$
20855 can be calculated: Every column has the width of the specified column width
20857 \begin_inset Formula $W_{\mathrm{column}}$
20860 (that the content of the column can consume) plus two times the separation
20861 between the column content and the column border (\SpecialChar LaTeX
20869 \begin_inset space \thinspace{}
20872 pt) plus the width of a border line (\SpecialChar LaTeX
20880 \begin_inset space \thinspace{}
20884 \begin_inset Formula $n$
20888 \begin_inset space ~
20891 columns have the same width, the table width is
20892 \begin_inset Formula
20894 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20902 \begin_layout Standard
20903 The available width for a table is the space between the page margins or
20904 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20912 If all table columns should have the same width and
20913 \begin_inset Formula $W_{\mathrm{table}}$
20917 \begin_inset space \thinspace{}
20923 \begin_inset Formula $W_{\mathrm{column}}$
20926 can easily be calculated.
20929 \begin_layout Standard
20930 To be able to perform calculations you need to load the \SpecialChar LaTeX
20936 \begin_inset Index idx
20939 \begin_layout Plain Layout
20946 in the document preamble.
20947 To set the width in the table dialog you have to use the field
20953 The command scheme for this field is the same that is explained in section
20954 \begin_inset space ~
20958 \begin_inset CommandInset ref
20960 reference "subsec:Multicolumn-Calculations"
20966 \begin_inset space \thinspace{}
20969 columns with an uniform width and centered text, enter there for each column
20973 \begin_layout Standard
20980 columnwidth-62.4pt)/5}
20983 \begin_layout Standard
20985 \begin_inset space \thinspace{}
20988 columns where 2 should have 0.75
20989 \begin_inset space ~
20992 times the width than the 3 others, the calculation is
20993 \begin_inset Formula
20995 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
20996 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
20997 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
20998 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21006 \begin_layout Standard
21007 In the table therefore the command
21010 \begin_layout Standard
21017 columnwidth-62.4pt)/
21022 \begin_layout Standard
21023 is used for the wider columns and
21026 \begin_layout Standard
21033 columnwidth-62.4pt)/
21040 \begin_layout Standard
21041 for the smaller ones:
21044 \begin_layout Standard
21045 \begin_inset Tabular
21046 <lyxtabular version="3" rows="2" columns="5">
21047 <features tabularvalignment="middle">
21048 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21049 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21050 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21051 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21052 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21057 \begin_layout Plain Layout
21063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21066 \begin_layout Plain Layout
21072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21075 \begin_layout Plain Layout
21081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21084 \begin_layout Plain Layout
21090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21093 \begin_layout Plain Layout
21101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21104 \begin_layout Plain Layout
21105 111111 1111111 111111 111111111 11111 11111 1111
21110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21113 \begin_layout Plain Layout
21119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21122 \begin_layout Plain Layout
21123 2222 22222 222222 222222222 2222222 22 22222
21128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21131 \begin_layout Plain Layout
21137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21140 \begin_layout Plain Layout
21141 333333 333333 333333 33333 3333333 333
21154 \begin_layout Section
21155 Table Customization
21156 \begin_inset Index idx
21159 \begin_layout Plain Layout
21160 Table Customization
21166 \begin_inset Index idx
21169 \begin_layout Plain Layout
21170 Table ! Customization
21178 \begin_layout Subsection
21180 \begin_inset CommandInset label
21182 name "subsec:Row-Spacing"
21187 \begin_inset Index idx
21190 \begin_layout Plain Layout
21191 Table Customization ! Row Spacing
21199 \begin_layout Standard
21200 You can add vertical space to table rows in the
21204 tab of the table dialog.
21205 You find there three possibilities:
21208 \begin_layout Description
21210 \begin_inset space ~
21214 \begin_inset space ~
21217 row will add space above the characters of the table row.
21218 If the table is a formal table
21222 \begin_layout Plain Layout
21223 Formal tables are explained in section
21224 \begin_inset space ~
21228 \begin_inset CommandInset ref
21230 reference "sec:Formal-Tables"
21240 will insert as default 0.5
21241 \begin_inset space \thinspace{}
21245 For normal tables the inserted space will unfortunately destroy the vertical
21246 table lines as in the following table:
21247 \begin_inset VSpace medskip
21251 \begin_inset Newline newline
21255 \begin_inset space \hspace*{}
21260 \begin_inset space \hfill{}
21264 \begin_inset Tabular
21265 <lyxtabular version="3" rows="3" columns="1">
21266 <features tabularvalignment="middle">
21267 <column alignment="center" valignment="top">
21269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21272 \begin_layout Plain Layout
21279 <row topspace="3mm">
21280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21283 \begin_layout Plain Layout
21285 \begin_inset space \thinspace{}
21288 mm space top of row
21295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21298 \begin_layout Plain Layout
21310 \begin_inset space \hfill{}
21314 \begin_inset space \hspace*{}
21319 \begin_inset VSpace medskip
21323 \begin_inset Newline newline
21326 So inserting space in the top of row for normal tables is only useful when
21327 you don't have vertical lines.
21330 \begin_layout Description
21332 \begin_inset space ~
21336 \begin_inset space ~
21339 row will add space below the characters of the table row.
21340 If the table is a formal table \SpecialChar LyX
21341 will insert as default 0.5
21342 \begin_inset space \thinspace{}
21345 em space, for normal tables the default size is 2
21346 \begin_inset space \thinspace{}
21352 \begin_layout Description
21354 \begin_inset space ~
21357 rows adds space between the current and the following row.
21358 If the table is a formal table \SpecialChar LyX
21359 will insert as default 0.5
21360 \begin_inset space \thinspace{}
21364 For normal tables the inserted space will unfortunately destroy the vertical
21365 table lines as in the following table:
21366 \begin_inset VSpace medskip
21370 \begin_inset Newline newline
21374 \begin_inset space \hspace*{}
21379 \begin_inset space \hfill{}
21383 \begin_inset Tabular
21384 <lyxtabular version="3" rows="3" columns="1">
21385 <features tabularvalignment="middle">
21386 <column alignment="center" valignment="top">
21388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21391 \begin_layout Plain Layout
21398 <row interlinespace="3mm">
21399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21402 \begin_layout Plain Layout
21403 \begin_inset Formula $\downarrow$
21407 \begin_inset space \thinspace{}
21410 mm space between row
21411 \begin_inset Formula $\downarrow$
21421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21424 \begin_layout Plain Layout
21425 \begin_inset Formula $\uparrow$
21429 \begin_inset space \thinspace{}
21432 mm space between row
21433 \begin_inset Formula $\uparrow$
21447 \begin_inset space \hfill{}
21451 \begin_inset space \hspace*{}
21456 \begin_inset VSpace medskip
21460 \begin_inset Newline newline
21463 So inserting space between rows for normal tables is only useful when you
21464 don't have vertical lines.
21467 \begin_layout Standard
21468 \begin_inset VSpace bigskip
21471 When you want to add extra height to all cells of all tables, you can do
21472 this with the following preamble lines:
21475 \begin_layout Standard
21480 @ifundefined{extrarowheight}
21481 \begin_inset Newline newline
21485 \begin_inset Phantom HPhantom
21488 \begin_layout Plain Layout
21491 \begin_inset space ~
21501 usepackage{array}}{}
21502 \begin_inset Newline newline
21509 extrarowheight}{height}
21512 \begin_inset Note Note
21515 \begin_layout Plain Layout
21520 will be loaded automatically by \SpecialChar LyX
21521 when you use self defined table formats.
21522 To avoid that it is loaded twice the command
21528 is used in the above command.
21536 \begin_layout Standard
21541 can have one of the units listed in appendix
21542 \begin_inset space ~
21546 \begin_inset CommandInset ref
21548 reference "cha:Units-available-in"
21553 But this has the disadvantage that the cell texts are no longer exactly
21554 vertically centered.
21557 \begin_layout Standard
21558 If you are using font sizes larger than the normal size, the table borders
21559 are often too close to the letters.
21560 This can be corrected by inserting the command
21566 in \SpecialChar TeX
21567 Code at the beginning of a table row.
21569 \begin_inset space ~
21573 \begin_inset CommandInset ref
21575 reference "tab:Vertical-alignment-of"
21579 illustrates the effect.
21582 \begin_layout Standard
21584 \begin_inset Float table
21590 \begin_layout Plain Layout
21591 \begin_inset Caption Standard
21593 \begin_layout Plain Layout
21594 \begin_inset CommandInset label
21596 name "tab:Vertical-alignment-of"
21600 Vertical alignment of text with large font sizes.
21608 \begin_layout Plain Layout
21609 \begin_inset space \hfill{}
21613 \begin_inset Float table
21618 \begin_layout Plain Layout
21619 \begin_inset Caption Standard
21621 \begin_layout Plain Layout
21630 \begin_layout Plain Layout
21633 \begin_inset Tabular
21634 <lyxtabular version="3" rows="6" columns="1">
21635 <features tabularvalignment="middle">
21636 <column alignment="left" valignment="top">
21638 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21641 \begin_layout Plain Layout
21649 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21652 \begin_layout Plain Layout
21662 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21665 \begin_layout Plain Layout
21675 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21678 \begin_layout Plain Layout
21688 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21691 \begin_layout Plain Layout
21701 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21704 \begin_layout Plain Layout
21723 \begin_inset space \hfill{}
21727 \begin_inset Float table
21732 \begin_layout Plain Layout
21733 \begin_inset Caption Standard
21735 \begin_layout Plain Layout
21736 Table using the command
21750 \begin_layout Plain Layout
21753 \begin_inset Tabular
21754 <lyxtabular version="3" rows="6" columns="1">
21755 <features tabularvalignment="middle">
21756 <column alignment="left" valignment="top">
21758 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21761 \begin_layout Plain Layout
21769 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21772 \begin_layout Plain Layout
21778 \begin_layout Plain Layout
21794 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21797 \begin_layout Plain Layout
21803 \begin_layout Plain Layout
21819 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21822 \begin_layout Plain Layout
21828 \begin_layout Plain Layout
21844 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 \begin_layout Plain Layout
21869 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 \begin_layout Plain Layout
21905 \begin_inset space \hfill{}
21916 \begin_layout Subsection
21917 Special Cell Alignment
21918 \begin_inset CommandInset label
21920 name "subsec:Special-Cell-Alignment"
21925 \begin_inset Index idx
21928 \begin_layout Plain Layout
21929 Table Customization ! Special Cell Alignment
21937 \begin_layout Standard
21938 Sometimes it looks better when the cell entries of a column are aligned
21939 with a special character, e.
21940 \begin_inset space \thinspace{}
21944 \begin_inset space \space{}
21947 with the decimal separator as in Table
21948 \begin_inset space ~
21952 \begin_inset CommandInset ref
21954 reference "tab:Table-cells-align"
21959 This alignment is achieved by setting the cursor into the column and then
21960 either pressing the toolbar button
21963 arg "tabular-feature align-decimal"
21966 or setting the alignment in the table settings to
21969 \begin_inset space ~
21973 \begin_inset space ~
21979 The alignment character can be a character of your choice and is specified
21980 in the table settings.
21983 \begin_layout Standard
21984 \begin_inset Float table
21990 \begin_layout Plain Layout
21991 \begin_inset Caption Standard
21993 \begin_layout Plain Layout
21994 \begin_inset CommandInset label
21996 name "tab:Table-cells-align"
22000 Table cells of a column aligned with the decimal separator.
22008 \begin_layout Plain Layout
22010 \begin_inset Tabular
22011 <lyxtabular version="3" rows="4" columns="1">
22012 <features booktabs="true" tabularvalignment="middle">
22013 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22018 \begin_layout Plain Layout
22026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22029 \begin_layout Plain Layout
22037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22040 \begin_layout Plain Layout
22048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22051 \begin_layout Plain Layout
22070 \begin_layout Standard
22071 \begin_inset Float table
22077 \begin_layout Plain Layout
22078 \begin_inset Caption Standard
22080 \begin_layout Plain Layout
22081 \begin_inset CommandInset label
22083 name "tab:Table-align-operator"
22087 Table cells of a column aligned with the operators.
22095 \begin_layout Plain Layout
22097 \begin_inset Tabular
22098 <lyxtabular version="3" rows="4" columns="2">
22099 <features booktabs="true" tabularvalignment="middle">
22100 <column alignment="right" valignment="top" width="0pt">
22101 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22106 \begin_layout Plain Layout
22112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22115 \begin_layout Plain Layout
22123 <cell alignment="center" valignment="top" usebox="none">
22126 \begin_layout Plain Layout
22127 \begin_inset Formula $12\,+$
22135 <cell alignment="center" valignment="top" usebox="none">
22138 \begin_layout Plain Layout
22139 \begin_inset Formula $\,6$
22149 <cell alignment="center" valignment="top" usebox="none">
22152 \begin_layout Plain Layout
22153 \begin_inset Formula $0\,-$
22161 <cell alignment="center" valignment="top" usebox="none">
22164 \begin_layout Plain Layout
22165 \begin_inset Formula $\,68$
22175 <cell alignment="center" valignment="top" usebox="none">
22178 \begin_layout Plain Layout
22179 \begin_inset Formula $-123\,/$
22187 <cell alignment="center" valignment="top" usebox="none">
22190 \begin_layout Plain Layout
22191 \begin_inset Formula $\,0$
22212 \begin_layout Standard
22213 For alignments at characters in formulas this method does not work because
22214 the field to specify the alignment character does not allow formulas.
22215 In this case one need to use the method from Table
22216 \begin_inset space ~
22220 \begin_inset CommandInset ref
22222 reference "tab:Table-align-operator"
22227 This table was created with a 4×2 table.
22228 The heading is a centered multicolumn.
22229 The first column is right-aligned and contains the first part including
22231 The second column is left aligned and contains the rest.
22232 A small space was added at the beginning of each cell of the second column
22233 to get the space that is usually around operators.
22234 To omit the space that is normally between two table columns, the following
22236 -argument was used for the second column:
22239 \begin_layout Standard
22245 \begin_layout Standard
22247 \begin_inset space ~
22251 \begin_inset CommandInset ref
22253 reference "tab:Several-table-cell"
22257 shows some example alignments.
22258 For the alignment with the relation sign, a small space was added like
22259 for the second column of Table
22260 \begin_inset space ~
22264 \begin_inset CommandInset ref
22266 reference "tab:Table-align-operator"
22273 \begin_layout Standard
22274 \begin_inset Float table
22280 \begin_layout Plain Layout
22281 \begin_inset Caption Standard
22283 \begin_layout Plain Layout
22284 \begin_inset CommandInset label
22286 name "tab:Several-table-cell"
22290 Several table cell alignments.
22298 \begin_layout Plain Layout
22300 \begin_inset Tabular
22301 <lyxtabular version="3" rows="4" columns="6">
22302 <features tabularvalignment="middle">
22303 <column alignment="right" valignment="top">
22304 <column alignment="left" valignment="top" special="@{}l">
22305 <column alignment="right" valignment="top">
22306 <column alignment="left" valignment="top" special="@{}l">
22307 <column alignment="right" valignment="top">
22308 <column alignment="left" valignment="top" special="@{}l">
22310 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22313 \begin_layout Plain Layout
22319 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22322 \begin_layout Plain Layout
22328 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22331 \begin_layout Plain Layout
22337 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22340 \begin_layout Plain Layout
22346 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22349 \begin_layout Plain Layout
22355 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22358 \begin_layout Plain Layout
22366 <cell alignment="center" valignment="top" usebox="none">
22369 \begin_layout Plain Layout
22375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22378 \begin_layout Plain Layout
22380 \begin_inset space \thinspace{}
22388 <cell alignment="center" valignment="top" usebox="none">
22391 \begin_layout Plain Layout
22392 \begin_inset Formula $10\cdot$
22400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22403 \begin_layout Plain Layout
22404 \begin_inset Formula $10^{\mbox{-}17}$
22412 <cell alignment="center" valignment="top" usebox="none">
22415 \begin_layout Plain Layout
22416 \begin_inset Formula $\Gamma(t)\propto$
22424 <cell alignment="center" valignment="top" usebox="none">
22427 \begin_layout Plain Layout
22428 \begin_inset Formula $\:\Upsilon(t)$
22438 <cell alignment="center" valignment="top" usebox="none">
22441 \begin_layout Plain Layout
22447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22450 \begin_layout Plain Layout
22452 \begin_inset space \thinspace{}
22460 <cell alignment="center" valignment="top" usebox="none">
22463 \begin_layout Plain Layout
22464 \begin_inset Formula $5.78\cdot$
22472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22475 \begin_layout Plain Layout
22476 \begin_inset Formula $10^{7}$
22484 <cell alignment="center" valignment="top" usebox="none">
22487 \begin_layout Plain Layout
22488 \begin_inset Formula $A\ne$
22496 <cell alignment="center" valignment="top" usebox="none">
22499 \begin_layout Plain Layout
22500 \begin_inset Formula $\:B_{\mathrm{red}}$
22510 <cell alignment="center" valignment="top" usebox="none">
22513 \begin_layout Plain Layout
22519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22522 \begin_layout Plain Layout
22524 \begin_inset space \thinspace{}
22532 <cell alignment="center" valignment="top" usebox="none">
22535 \begin_layout Plain Layout
22537 \begin_inset Formula $33.5\cdot$
22545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22548 \begin_layout Plain Layout
22549 \begin_inset Formula $10^{4}$
22557 <cell alignment="center" valignment="top" usebox="none">
22560 \begin_layout Plain Layout
22561 \begin_inset Formula $\sin(\alpha)\ge$
22569 <cell alignment="center" valignment="top" usebox="none">
22572 \begin_layout Plain Layout
22573 \begin_inset Formula $\:\sin(\beta)$
22594 \begin_layout Subsection
22595 Customized Cell/Column Format
22596 \begin_inset CommandInset label
22598 name "subsec:Customized-Format"
22603 \begin_inset Index idx
22606 \begin_layout Plain Layout
22607 Table Customization ! Cell/Column Format
22615 \begin_layout Standard
22616 Calculating the required width for normal columns as described in section
22617 \begin_inset space ~
22621 \begin_inset CommandInset ref
22623 reference "sec:Table-Width-Calculation"
22627 or for spanned columns as described in section
22628 \begin_inset space ~
22632 \begin_inset CommandInset ref
22634 reference "subsec:Multicolumn-Calculations"
22638 is very annoying if you have several tables where a calculation is necessary.
22639 To make life easier, you can define a cell/column format in the preamble,
22640 that can be used in all tables of the document.
22641 The format is defined with the command
22644 \begin_layout Standard
22649 newcolumntype{name of format}[number of arguments]{commands}
22652 \begin_layout Standard
22653 The format name may only consist of one letter.
22678 are predefined and cannot be used.
22679 But all letters are allowed as capitals.
22682 \begin_layout Standard
22683 \begin_inset VSpace medskip
22689 \begin_layout Standard
22690 For vertically and horizontally centered multicolumn cells with a fixed
22691 width you can define the cell format
22694 \begin_layout Standard
22699 newcolumntype{M}[1]{>{
22706 \begin_layout Standard
22713 avoids the problem of hyphenating the first word, as described in section
22714 \begin_inset space ~
22718 \begin_inset CommandInset ref
22720 reference "subsec:Multiple-Lines-in"
22725 Now you can simply enter
22728 \begin_layout Standard
22734 \begin_layout Standard
22740 in the table dialog to create a multicolumn.
22743 \begin_layout Standard
22744 \begin_inset VSpace bigskip
22750 \begin_layout Standard
22751 For cells spanned by a multicolumn cell, you can define the format
22754 \begin_layout Standard
22759 newcolumntype{S}[2]{>{
22764 \begin_inset Newline newline
22768 \begin_inset Phantom HPhantom
22771 \begin_layout Plain Layout
22785 arrayrulewidth)*(1-#2))/#2}}
22788 \begin_layout Standard
22789 This format uses equation
22790 \begin_inset CommandInset ref
22796 to calculate the required width so that each spanned cell has the same
22800 \begin_layout Standard
22804 \begin_layout Standard
22807 S{width of multicolumn cell}{number of spanned columns}
22810 \begin_layout Standard
22811 as \SpecialChar LaTeX
22812 -argument of the column.
22815 \begin_layout Standard
22816 \begin_inset VSpace bigskip
22822 \begin_layout Standard
22823 For colored columns, you can define
22826 \begin_layout Standard
22831 newcolumntype{K}[1]{>{
22838 \begin_layout Standard
22840 \begin_inset Quotes eld
22844 \begin_inset Quotes erd
22847 at the end creates a column with a flexible width whose text is horizontally
22852 \begin_layout Standard
22858 \begin_layout Standard
22859 as \SpecialChar LaTeX
22863 \begin_layout Standard
22864 \begin_inset VSpace bigskip
22870 \begin_layout Standard
22872 \begin_inset space ~
22876 \begin_inset CommandInset ref
22878 reference "tab:Table-using-user-defined"
22882 use the \SpecialChar LaTeX
22886 \begin_layout Standard
22892 \begin_layout Standard
22893 for the first column and the multicolumn,
22896 \begin_layout Standard
22902 \begin_layout Standard
22903 for the last column, and
22906 \begin_layout Standard
22912 \begin_layout Standard
22913 for the cells in the second column.
22916 \begin_layout Standard
22917 \begin_inset Float table
22923 \begin_layout Plain Layout
22924 \begin_inset Caption Standard
22926 \begin_layout Plain Layout
22927 \begin_inset CommandInset label
22929 name "tab:Table-using-user-defined"
22933 Table using user-defined table formats
22941 \begin_layout Plain Layout
22943 \begin_inset Tabular
22944 <lyxtabular version="3" rows="3" columns="4">
22945 <features tabularvalignment="middle">
22946 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22947 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22948 <column alignment="center" valignment="middle">
22949 <column alignment="center" valignment="middle" special="K{red}">
22951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22954 \begin_layout Plain Layout
22955 verylongtablecellword
22960 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22963 \begin_layout Plain Layout
22964 multiple lines multicolumn
22969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22972 \begin_layout Plain Layout
22978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22981 \begin_layout Plain Layout
22989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22992 \begin_layout Plain Layout
22998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23001 \begin_layout Plain Layout
23007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23010 \begin_layout Plain Layout
23016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23019 \begin_layout Plain Layout
23027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23030 \begin_layout Plain Layout
23036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23039 \begin_layout Plain Layout
23045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23048 \begin_layout Plain Layout
23054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23057 \begin_layout Plain Layout
23076 \begin_layout Subsection
23078 \begin_inset CommandInset label
23080 name "subsec:Line-Thickness"
23085 \begin_inset Index idx
23088 \begin_layout Plain Layout
23089 Table Customization ! Line Thickness
23097 \begin_layout Standard
23098 The line thickness for all lines in a table can be adjusted with the length
23106 To set for example a line thickness of 1.5
23107 \begin_inset space \thinspace{}
23111 \begin_inset space ~
23115 \begin_inset CommandInset ref
23117 reference "tab:Table-with-1.5"
23121 , insert the command
23124 \begin_layout Standard
23131 arrayrulewidth}{1.5pt}
23134 \begin_layout Standard
23135 in \SpecialChar TeX
23136 Code before the table or table float.
23137 The changed thickness is valid for all subsequent tables.
23138 To use the default value again, set
23145 \begin_inset space \thinspace{}
23148 pt in \SpecialChar TeX
23149 Code after the table or table float.
23152 \begin_layout Standard
23156 \begin_layout Plain Layout
23162 arrayrulewidth}{1.5pt}
23168 \begin_inset Float table
23173 \begin_layout Plain Layout
23174 \begin_inset Caption Standard
23176 \begin_layout Plain Layout
23177 \begin_inset CommandInset label
23179 name "tab:Table-with-1.5"
23184 \begin_inset space \thinspace{}
23195 \begin_layout Plain Layout
23197 \begin_inset Tabular
23198 <lyxtabular version="3" rows="3" columns="3">
23199 <features tabularvalignment="middle">
23200 <column alignment="center" valignment="top">
23201 <column alignment="center" valignment="top">
23202 <column alignment="center" valignment="top">
23204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23207 \begin_layout Plain Layout
23213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23216 \begin_layout Plain Layout
23222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23225 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23236 \begin_layout Plain Layout
23242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23245 \begin_layout Plain Layout
23251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23254 \begin_layout Plain Layout
23262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23265 \begin_layout Plain Layout
23271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23274 \begin_layout Plain Layout
23280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23283 \begin_layout Plain Layout
23303 \begin_layout Plain Layout
23309 arrayrulewidth}{0.4pt}
23317 \begin_layout Standard
23318 \begin_inset VSpace bigskip
23321 To set the line thickness to 1.5
23322 \begin_inset space \thinspace{}
23325 pt only for horizontal lines, as in Table
23326 \begin_inset space ~
23330 \begin_inset CommandInset ref
23332 reference "tab:Table-with-horizontal"
23336 , insert these commands in \SpecialChar TeX
23337 Code before the table or table float:
23340 \begin_layout Standard
23350 \begin_inset Newline newline
23358 \begin_inset Newline newline
23367 arrayrulewidth 1.5pt}
23368 \begin_inset Newline newline
23379 arrayrulewidth 0.4pt}}
23382 \begin_layout Standard
23383 To return to the default line thickness, insert this command in \SpecialChar TeX
23385 the table or table float:
23388 \begin_layout Standard
23400 \begin_layout Standard
23404 \begin_layout Plain Layout
23415 \begin_layout Plain Layout
23424 \begin_layout Plain Layout
23432 arrayrulewidth 1.5pt}
23435 \begin_layout Plain Layout
23445 arrayrulewidth 0.4pt}}
23451 \begin_inset Float table
23456 \begin_layout Plain Layout
23457 \begin_inset Caption Standard
23459 \begin_layout Plain Layout
23460 \begin_inset CommandInset label
23462 name "tab:Table-with-horizontal"
23467 \begin_inset space \thinspace{}
23470 pt thick horizontal lines
23478 \begin_layout Plain Layout
23480 \begin_inset Tabular
23481 <lyxtabular version="3" rows="3" columns="3">
23482 <features tabularvalignment="middle">
23483 <column alignment="center" valignment="top">
23484 <column alignment="center" valignment="top">
23485 <column alignment="center" valignment="top">
23487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23490 \begin_layout Plain Layout
23496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23499 \begin_layout Plain Layout
23505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23508 \begin_layout Plain Layout
23516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23519 \begin_layout Plain Layout
23525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23528 \begin_layout Plain Layout
23534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23537 \begin_layout Plain Layout
23545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23548 \begin_layout Plain Layout
23554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23557 \begin_layout Plain Layout
23563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23566 \begin_layout Plain Layout
23586 \begin_layout Plain Layout
23602 \begin_layout Standard
23603 \begin_inset VSpace bigskip
23606 To set the line thickness to 1.5
23607 \begin_inset space \thinspace{}
23610 pt only for vertical lines, create the following column format in the document
23611 preamble, according to the description in section
23612 \begin_inset space ~
23616 \begin_inset CommandInset ref
23618 reference "subsec:Customized-Format"
23625 \begin_layout Standard
23630 newcolumntype{V}{!{
23632 vrule width 1.5pt}}
23635 \begin_layout Standard
23637 \begin_inset space ~
23641 \begin_inset CommandInset ref
23643 reference "tab:Table-with-vertical"
23647 the \SpecialChar LaTeX
23651 \begin_layout Standard
23657 \begin_layout Standard
23658 was used for the last column and
23661 \begin_layout Standard
23667 \begin_layout Standard
23668 for the other columns.
23671 \begin_layout Standard
23672 \begin_inset Float table
23677 \begin_layout Plain Layout
23678 \begin_inset Caption Standard
23680 \begin_layout Plain Layout
23681 \begin_inset CommandInset label
23683 name "tab:Table-with-vertical"
23688 \begin_inset space \thinspace{}
23691 pt thick vertical lines
23699 \begin_layout Plain Layout
23701 \begin_inset Tabular
23702 <lyxtabular version="3" rows="3" columns="3">
23703 <features tabularvalignment="middle">
23704 <column alignment="center" valignment="top" special="Vc">
23705 <column alignment="center" valignment="top" special="Vc">
23706 <column alignment="center" valignment="top" special="VcV">
23708 <cell alignment="center" valignment="top" topline="true" usebox="none">
23711 \begin_layout Plain Layout
23717 <cell alignment="center" valignment="top" topline="true" usebox="none">
23720 \begin_layout Plain Layout
23726 <cell alignment="center" valignment="top" topline="true" usebox="none">
23729 \begin_layout Plain Layout
23737 <cell alignment="center" valignment="top" topline="true" usebox="none">
23740 \begin_layout Plain Layout
23746 <cell alignment="center" valignment="top" topline="true" usebox="none">
23749 \begin_layout Plain Layout
23755 <cell alignment="center" valignment="top" topline="true" usebox="none">
23758 \begin_layout Plain Layout
23766 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23769 \begin_layout Plain Layout
23775 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23778 \begin_layout Plain Layout
23784 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23787 \begin_layout Plain Layout
23806 \begin_layout Subsection
23808 \begin_inset Index idx
23811 \begin_layout Plain Layout
23812 Table Customization ! Dashed Lines
23820 \begin_layout Standard
23824 \begin_layout Plain Layout
23834 \begin_inset Note Note
23837 \begin_layout Plain Layout
23838 The following section will only be displayed when the \SpecialChar LaTeX
23851 \begin_layout Standard
23852 \begin_inset Float table
23858 \begin_layout Plain Layout
23859 \begin_inset Caption Standard
23861 \begin_layout Plain Layout
23862 \begin_inset CommandInset label
23864 name "tab:Table-with-dashed"
23868 Table with dashed lines
23876 \begin_layout Plain Layout
23878 \begin_inset Tabular
23879 <lyxtabular version="3" rows="5" columns="5">
23880 <features tabularvalignment="middle">
23881 <column alignment="center" valignment="top">
23882 <column alignment="center" valignment="top">
23883 <column alignment="center" valignment="top" special=":c">
23884 <column alignment="center" valignment="top">
23885 <column alignment="center" valignment="top">
23887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23890 \begin_layout Plain Layout
23896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23899 \begin_layout Plain Layout
23905 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23908 \begin_layout Plain Layout
23914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23917 \begin_layout Plain Layout
23923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23926 \begin_layout Plain Layout
23934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23937 \begin_layout Plain Layout
23943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23946 \begin_layout Plain Layout
23952 <cell alignment="center" valignment="top" topline="true" usebox="none">
23955 \begin_layout Plain Layout
23961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23964 \begin_layout Plain Layout
23970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23973 \begin_layout Plain Layout
23981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23984 \begin_layout Plain Layout
23988 \begin_layout Plain Layout
24002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24005 \begin_layout Plain Layout
24011 <cell alignment="center" valignment="top" usebox="none">
24014 \begin_layout Plain Layout
24020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24023 \begin_layout Plain Layout
24029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24032 \begin_layout Plain Layout
24040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24043 \begin_layout Plain Layout
24047 \begin_layout Plain Layout
24061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24064 \begin_layout Plain Layout
24070 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24073 \begin_layout Plain Layout
24079 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24082 \begin_layout Plain Layout
24088 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24091 \begin_layout Plain Layout
24099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24102 \begin_layout Plain Layout
24108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24111 \begin_layout Plain Layout
24117 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24120 \begin_layout Plain Layout
24126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24129 \begin_layout Plain Layout
24135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24138 \begin_layout Plain Layout
24157 \begin_layout Standard
24159 does not natively support dashed lines, so you have to use \SpecialChar TeX
24161 As a prerequisite the \SpecialChar LaTeX
24167 \begin_inset Index idx
24170 \begin_layout Plain Layout
24172 -packages ! arydshln
24177 must be loaded in the document preamble with the command
24180 \begin_layout Standard
24185 usepackage{arydshln}
24188 \begin_layout Standard
24189 To make a vertical line dashed, enter the colon
24190 \begin_inset Quotes eld
24194 \begin_inset Quotes erd
24197 together with the character for the horizontal alignment as \SpecialChar LaTeX
24199 the table cell dialog.
24202 \begin_layout Standard
24203 For a horizontal dashed line add the command
24206 \begin_layout Standard
24214 \begin_layout Standard
24215 in \SpecialChar TeX
24216 Code as first element of the first cell in the table row.
24219 \begin_layout Standard
24220 For dashed multicolumn lines use the command
24223 \begin_layout Standard
24228 cdashline{line number
24233 \begin_layout Standard
24234 in \SpecialChar TeX
24235 Code as the first element of the first cell in the table row.
24236 If you have for example a multicolumn spanning columns 2 to 4 and you want
24237 to have a dashed line above, add the command
24240 \begin_layout Standard
24248 \begin_layout Standard
24249 as the first element of the first cell in the row of the multicolumn.
24252 \begin_layout Standard
24253 \begin_inset VSpace bigskip
24259 \begin_layout Standard
24261 \begin_inset space ~
24265 \begin_inset CommandInset ref
24267 reference "tab:Table-with-dashed"
24272 \begin_inset Quotes eld
24280 \begin_inset Quotes erd
24283 as \SpecialChar LaTeX
24284 argument of the third column.
24285 The \SpecialChar TeX
24292 was inserted in the first cell of the third row and the \SpecialChar TeX
24294 \begin_inset Newline newline
24303 was inserted in the first cell of the fourth row.
24306 \begin_layout Standard
24307 \begin_inset VSpace bigskip
24313 \begin_layout Standard
24314 Tables with dashed lines can also be colored as shown by Table
24315 \begin_inset space ~
24319 \begin_inset CommandInset ref
24321 reference "tab:Colored-table-with"
24328 \begin_layout Standard
24332 \begin_layout Plain Layout
24338 arrayrulewidth}{1pt}
24344 \begin_inset Note Note
24347 \begin_layout Plain Layout
24348 thicker lines for better visualization of the line color
24356 \begin_layout Standard
24360 \begin_layout Plain Layout
24364 dashgapcolor{green}
24370 \begin_inset Note Note
24373 \begin_layout Plain Layout
24374 color gaps between dashes green
24382 \begin_layout Standard
24386 \begin_layout Plain Layout
24397 \begin_layout Plain Layout
24406 \begin_layout Plain Layout
24410 arrayrulecolor{red}
24414 arrayrulecolor{black}}
24420 \begin_inset Note Note
24423 \begin_layout Plain Layout
24424 color horizontal, dashed lines red
24432 \begin_layout Standard
24436 \begin_layout Plain Layout
24447 \begin_layout Plain Layout
24456 \begin_layout Plain Layout
24460 arrayrulecolor{yellow}
24464 arrayrulecolor{black}}
24470 \begin_inset Note Note
24473 \begin_layout Plain Layout
24474 color partial horizontal, dashed lines yellow
24482 \begin_layout Standard
24483 \begin_inset Float table
24489 \begin_layout Plain Layout
24490 \begin_inset Caption Standard
24492 \begin_layout Plain Layout
24493 \begin_inset CommandInset label
24495 name "tab:Colored-table-with"
24499 Colored table with dashed lines
24507 \begin_layout Plain Layout
24509 \begin_inset Tabular
24510 <lyxtabular version="3" rows="5" columns="5">
24511 <features tabularvalignment="middle">
24512 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24513 <column alignment="center" valignment="top" width="0pt">
24514 <column alignment="center" valignment="top" width="0pt" special=":c">
24515 <column alignment="center" valignment="top">
24516 <column alignment="center" valignment="top">
24518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24521 \begin_layout Plain Layout
24527 <cell alignment="center" valignment="top" topline="true" usebox="none">
24530 \begin_layout Plain Layout
24536 <cell alignment="center" valignment="top" topline="true" usebox="none">
24539 \begin_layout Plain Layout
24545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24548 \begin_layout Plain Layout
24554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24557 \begin_layout Plain Layout
24565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24568 \begin_layout Plain Layout
24574 <cell alignment="center" valignment="top" topline="true" usebox="none">
24577 \begin_layout Plain Layout
24583 <cell alignment="center" valignment="top" topline="true" usebox="none">
24586 \begin_layout Plain Layout
24592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24595 \begin_layout Plain Layout
24601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24604 \begin_layout Plain Layout
24612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24615 \begin_layout Plain Layout
24619 \begin_layout Plain Layout
24632 \begin_layout Plain Layout
24646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24649 \begin_layout Plain Layout
24655 <cell alignment="center" valignment="top" usebox="none">
24658 \begin_layout Plain Layout
24664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24667 \begin_layout Plain Layout
24673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24676 \begin_layout Plain Layout
24684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24687 \begin_layout Plain Layout
24691 \begin_layout Plain Layout
24705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24708 \begin_layout Plain Layout
24714 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24717 \begin_layout Plain Layout
24723 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24726 \begin_layout Plain Layout
24732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24735 \begin_layout Plain Layout
24743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24746 \begin_layout Plain Layout
24752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24755 \begin_layout Plain Layout
24761 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24764 \begin_layout Plain Layout
24770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24773 \begin_layout Plain Layout
24779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24782 \begin_layout Plain Layout
24786 \begin_layout Plain Layout
24813 \begin_layout Standard
24817 \begin_layout Plain Layout
24831 \begin_inset Note Note
24834 \begin_layout Plain Layout
24843 \begin_layout Standard
24847 \begin_layout Plain Layout
24861 \begin_inset Note Note
24864 \begin_layout Plain Layout
24873 \begin_layout Standard
24877 \begin_layout Plain Layout
24887 \begin_inset Note Note
24890 \begin_layout Plain Layout
24899 \begin_layout Standard
24903 \begin_layout Plain Layout
24909 arrayrulewidth}{0.4pt}
24915 \begin_inset Note Note
24918 \begin_layout Plain Layout
24927 \begin_layout Standard
24928 The coloring of lines, columns and lines works as decribed in section
24929 \begin_inset space ~
24933 \begin_inset CommandInset ref
24935 reference "sec:Colored-Tables"
24940 Coloring horizontal lines works analogically as described there as well,
24941 one only needs to replace in the commands
24965 ; so one uses the command
24968 \begin_layout Standard
24978 \begin_inset Newline newline
24986 \begin_inset Newline newline
24990 \begin_inset Phantom HPhantom
24993 \begin_layout Plain Layout
24994 \begin_inset space ~
25004 arrayrulecolor{red}
25008 arrayrulecolor{black}}
25011 \begin_layout Standard
25021 \begin_layout Standard
25031 \begin_inset Newline newline
25039 \begin_inset Newline newline
25043 \begin_inset Phantom HPhantom
25046 \begin_layout Plain Layout
25047 \begin_inset space ~
25057 arrayrulecolor{red}
25061 arrayrulecolor{black}}
25064 \begin_layout Standard
25065 To get back the black line color, one needs to insert the following commands
25066 as \SpecialChar TeX
25067 Code behind the table:
25070 \begin_layout Standard
25078 \begin_layout Standard
25090 \begin_layout Standard
25098 \begin_layout Standard
25110 \begin_layout Standard
25111 To color the gaps between the dashes the command
25114 \begin_layout Standard
25119 dashgapcolor{color}
25122 \begin_layout Standard
25123 can be used in front of a table as \SpecialChar TeX
25125 color is hereby the name of a defined color.
25129 \begin_layout Standard
25137 \begin_layout Standard
25138 unsets the changes made by
25147 \begin_layout Standard
25148 \begin_inset Note Greyedout
25151 \begin_layout Plain Layout
25157 : If there are multiple commands in a cell, the command of
25161 needs to be the first one in the cell.
25167 \begin_inset space ~
25171 \begin_inset CommandInset ref
25173 reference "tab:Colored-table-with"
25197 \begin_layout Standard
25198 \begin_inset Note Greyedout
25201 \begin_layout Plain Layout
25207 The \SpecialChar LaTeX
25212 must be loaded in the document preamble before the \SpecialChar LaTeX
25218 \begin_inset Index idx
25221 \begin_layout Plain Layout
25223 -packages ! colortbl
25236 \begin_layout Standard
25240 \begin_layout Plain Layout
25250 \begin_inset Note Note
25253 \begin_layout Plain Layout
25254 The following will be displayed when the \SpecialChar LaTeX
25267 \begin_layout Standard
25268 You need to install the package
25272 to see the content of this section in the output.
25275 \begin_layout Standard
25279 \begin_layout Plain Layout
25291 \begin_layout Standard
25292 For more information about dashed lines see the documentation of
25297 \begin_inset CommandInset citation
25307 \begin_layout Chapter
25309 \begin_inset CommandInset label
25316 \begin_inset Index idx
25319 \begin_layout Plain Layout
25328 \begin_layout Section
25330 \begin_inset CommandInset label
25332 name "sec:FloatIntroduction"
25337 \begin_inset Index idx
25340 \begin_layout Plain Layout
25341 Floats ! Introduction
25349 \begin_layout Standard
25350 A float is a block of text associated with some sort of label, which doesn't
25351 have a fixed location.
25353 \begin_inset Quotes eld
25357 \begin_inset Quotes erd
25360 forward or backward a page or two, to wherever it fits best.
25368 \begin_inset space ~
25373 are also floats because they can float to the next page when there are
25374 too many notes on the page.
25377 \begin_layout Standard
25378 Floats allow a high quality layout.
25379 Images and tables can be spread evenly among the pages to avoid white space
25380 and pages without text.
25381 As the floating often destroys the context between the text and the image/table
25382 , every float can be referenced in the text.
25383 Floats are therefore numbered.
25384 Referencing is described in section
25385 \begin_inset space ~
25389 \begin_inset CommandInset ref
25391 reference "sec:Referencing-Floats"
25398 \begin_layout Standard
25399 To insert a float, use the menu
25401 Insert\SpecialChar menuseparator
25407 arg "float-insert figure"
25413 arg "float-insert table"
25421 inset, a box with a label.
25422 The label will automatically be translated to the document language in
25424 After the label you can insert the caption text.
25425 The image or table is inserted above or below the caption in a separate
25426 paragraph within the float.
25427 More about the caption placement is contained in section
25428 \begin_inset space ~
25432 \begin_inset CommandInset ref
25434 reference "sec:Caption-Placement"
25439 To keep your \SpecialChar LyX
25440 document readable, you can open and close the float box by
25441 left-clicking on the box label.
25442 A closed float box looks like this:
25443 \begin_inset Graphics
25444 filename clipart/float.png
25446 scaleBeforeRotation
25450 – a gray button with a red label.
25453 \begin_layout Standard
25454 It is recommended that you insert floats as separate standard paragraphs
25455 to avoid possible \SpecialChar LaTeX
25456 -errors that can occur when the surrounding text is specially
25460 \begin_layout Standard
25461 Existing figures or tables can be put into a float by highlighting them
25462 and then pressing the corresponding toolbar button for a new float.
25465 \begin_layout Section
25469 \begin_layout Standard
25470 Besides figure and table floats that are described in sections
25471 \begin_inset space ~
25475 \begin_inset CommandInset ref
25477 reference "sec:Figure-Floats"
25482 \begin_inset CommandInset ref
25484 reference "sec:Table-Floats"
25488 respectively, \SpecialChar LyX
25489 offers the float types
25498 The latter are explained in sec.
25499 \begin_inset space \thinspace{}
25503 \begin_inset CommandInset ref
25505 reference "sec:Wrap-Floats"
25512 \begin_layout Subsection
25514 \begin_inset Index idx
25517 \begin_layout Plain Layout
25518 Floats ! Algorithms
25526 \begin_layout Standard
25527 \begin_inset Float algorithm
25533 \begin_layout Plain Layout
25534 \begin_inset Caption Standard
25536 \begin_layout Plain Layout
25537 \begin_inset CommandInset label
25539 name "alg:Example-Algorithm-float"
25543 Example Algorithm float
25551 \begin_layout LyX-Code
25553 \begin_inset Newline newline
25556 Sum:= Sum + A(I); /*comment*/
25557 \begin_inset Newline newline
25561 \begin_inset VSpace -4mm
25572 \begin_layout Standard
25573 This float type is inserted with the menu
25575 Insert\SpecialChar menuseparator
25576 Float\SpecialChar menuseparator
25580 It is used for program codes and descriptions of algorithms and can be
25581 seen as an alternative to program code listings that are explained in chapter
25582 \begin_inset space ~
25586 \begin_inset CommandInset ref
25588 reference "cha:Program-Code-Listings"
25593 A possible environment for algorithms is the
25598 , described in \SpecialChar LyX
25605 \begin_inset space ~
25609 \begin_inset CommandInset ref
25611 reference "alg:Example-Algorithm-float"
25615 is an example of an algorithm float where -4
25616 \begin_inset space \thinspace{}
25619 mm vertical space was added at the end of the float to have the bottom rule
25620 exactly below the last text line.
25623 \begin_layout Standard
25624 The float label is not automatically translated into the document language.
25625 If your document is not in English, you have to do this manually by adding
25626 the following line to the document preamble
25631 \begin_layout Standard
25636 floatname{algorithm}{your
25637 \begin_inset space ~
25643 \begin_layout Standard
25647 \begin_inset space ~
25653 \begin_inset Quotes eld
25661 \begin_inset Quotes erd
25667 \begin_layout Standard
25668 To insert the list of algorithms you can use the menu
25670 Insert\SpecialChar menuseparator
25672 \begin_inset space \thinspace{}
25676 \begin_inset space \thinspace{}
25679 TOC\SpecialChar menuseparator
25682 when your document has the same language as \SpecialChar LyX
25684 In other cases use this command in \SpecialChar TeX
25688 \begin_layout Standard
25693 listof{algorithm}{your
25694 \begin_inset space ~
25700 \begin_layout Standard
25704 \begin_inset space ~
25710 \begin_inset Quotes eld
25718 \begin_inset Quotes erd
25724 \begin_layout Standard
25725 Algorithm floats are not by default numbered in the scheme
25726 \begin_inset Quotes eld
25730 \begin_inset Quotes erd
25733 as is the case for table and figure floats in many document-classes.
25734 To number algorithm floats in the same scheme, add this command to your
25738 \begin_layout Standard
25743 numberwithin{algorithm}{chapter}
25746 \begin_layout Standard
25747 To be able to use the command
25756 \begin_inset space ~
25761 in the document settings the option
25764 \begin_inset space ~
25768 \begin_inset space ~
25772 \begin_inset space ~
25780 \begin_layout Section
25782 \begin_inset Index idx
25785 \begin_layout Plain Layout
25794 \begin_layout Standard
25795 Floats are usually numbered either independently from the sections the floats
25796 are in, or in the scheme
25797 \begin_inset Quotes eld
25801 \begin_inset Quotes erd
25805 \begin_inset Quotes eld
25809 \begin_inset Quotes erd
25813 This depends on the document class used.
25816 \begin_layout Standard
25817 To change section-independent numbering, you can use this command in the
25821 \begin_layout Standard
25833 \begin_layout Standard
25840 is the command that prints the table number.
25841 For figure floats, the command would be
25854 in the command above prints the table number as a small roman number.
25857 \begin_layout Standard
25858 To change the numbering scheme for example to
25859 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25866 , use this command in the preamble:
25869 \begin_layout Standard
25874 numberwithin{table}{subsection}
25877 \begin_layout Standard
25878 To be able to use the command
25887 \begin_inset space ~
25892 in the document settings the option
25895 \begin_inset space ~
25899 \begin_inset space ~
25903 \begin_inset space ~
25911 \begin_layout Standard
25912 Please also have a look at section
25913 \begin_inset space ~
25917 \begin_inset CommandInset ref
25919 reference "subsec:Footnote-Numbering"
25923 for the details and important notes about the numbering commands.
25926 \begin_layout Section
25928 \begin_inset CommandInset label
25930 name "sec:Referencing-Floats"
25935 \begin_inset Index idx
25938 \begin_layout Plain Layout
25939 Floats ! References
25945 \begin_inset Index idx
25948 \begin_layout Plain Layout
25949 References ! to Floats
25957 \begin_layout Standard
25958 To reference a float, insert a label into its caption using the menu
25960 Insert\SpecialChar menuseparator
25963 or the toolbar button
25970 A grey label box like this one:
25971 \begin_inset Graphics
25972 filename clipart/label.png
25973 scaleBeforeRotation
25977 will be inserted and the label window pops up asking for the label text.
25979 offers as text the first words of the caption with a prefix.
25980 The prefix depends on the float type, e.
25981 \begin_inset space \thinspace{}
25985 \begin_inset space \space{}
25988 for figure floats the prefix will be "
25995 \begin_layout Standard
25996 The label is used as anchor and name for the reference.
25997 You can refer to the label using the menu
25999 Insert\SpecialChar menuseparator
26002 or the toolbar button
26005 arg "dialog-show-new-inset ref"
26009 The cross-reference window appears showing all labels of the document.
26010 If you have multiple \SpecialChar LyX
26011 documents opened, choose the one you are working
26012 on from the drop-list at the top of the dialog.
26013 You can now sort the labels alphabetically and then choose one.
26014 A grey cross-reference box like this one:
26015 \begin_inset Graphics
26016 filename clipart/reference.png
26017 scaleBeforeRotation
26022 At the position of the cross-reference box the float number will appear
26026 \begin_layout Standard
26027 It is recommended that you use a protected space between the cross-reference
26028 name and its number to avoid line breaks between them.
26029 If a cross-reference refers to a non-existing label, you will see two question
26030 marks in the output instead of the reference.
26033 \begin_layout Standard
26034 You can change labels at any time by clicking on the label box.
26035 References to the changed label will automatically update their links to
26036 the new label text.
26039 \begin_layout Standard
26043 \begin_inset space ~
26047 \begin_inset space ~
26052 in the cross-reference window sets the cursor before the referred label.
26053 The button text changes then to Go
26054 \begin_inset space ~
26057 Back and you can use it to set the cursor back to the cross-reference.
26060 \begin_layout Subsection
26061 Cross-Reference Formats
26062 \begin_inset CommandInset label
26064 name "subsec:Cross-Reference-Formats"
26069 \begin_inset Index idx
26072 \begin_layout Plain Layout
26073 References ! Formats
26081 \begin_layout Standard
26082 There are six varieties of cross-references:
26085 \begin_layout Description
26086 <reference>: prints the float number, this is the default:
26087 \begin_inset CommandInset ref
26089 reference "fig:Two-distorted-images"
26096 \begin_layout Description
26097 (<reference>): prints the float number within two parentheses, this is the
26098 style normally used to reference formulas, especially when the reference
26100 \begin_inset Quotes eld
26104 \begin_inset Quotes erd
26108 \begin_inset CommandInset ref
26117 \begin_layout Description
26118 <page>: prints the page number: Page
26119 \begin_inset space ~
26123 \begin_inset CommandInset ref
26124 LatexCommand pageref
26125 reference "fig:Two-distorted-images"
26132 \begin_layout Description
26134 \begin_inset space ~
26138 \begin_inset space ~
26141 <page>: prints the text "on page" and the page number:
26142 \begin_inset CommandInset ref
26143 LatexCommand vpageref
26144 reference "fig:Two-distorted-images"
26151 \begin_layout Description
26153 \begin_inset space ~
26157 \begin_inset space ~
26161 \begin_inset space ~
26164 <page>: prints the float number, the text "on page", and the page number:
26166 \begin_inset CommandInset ref
26168 reference "fig:Two-distorted-images"
26175 \begin_layout Description
26177 \begin_inset space ~
26180 reference: prints a self-defined cross-reference format.
26181 \begin_inset Newline newline
26185 \begin_inset Note Greyedout
26188 \begin_layout Plain Layout
26193 This feature is only available when you have the \SpecialChar LaTeX
26203 \begin_inset Index idx
26206 \begin_layout Plain Layout
26208 -packages ! prettyref
26214 \begin_inset Index idx
26217 \begin_layout Plain Layout
26219 -packages ! refstyle
26230 \begin_inset Newline newline
26233 You can select which \SpecialChar LaTeX
26234 -package should be used for this feature by setting
26237 Use refstyle (not prettyref) for cross-references
26241 Document\SpecialChar menuseparator
26242 Settings\SpecialChar menuseparator
26246 The format is specified by adding the command
26258 (refstyle) to the preamble of the document.
26259 For example redefining all references to figures (which have the label
26261 \begin_inset Quotes eld
26269 \begin_inset Quotes erd
26272 ) can be done with this command
26273 \begin_inset Newline newline
26280 newref{fig}{refcmd={Image on page
26285 \begin_inset Newline newline
26288 For more information about the format, have a look at the package documentations
26290 \begin_inset CommandInset citation
26292 key "prettyref,refstyle"
26298 \begin_inset Newline newline
26309 are only available if you use the \SpecialChar LaTeX
26324 \begin_inset space \thinspace{}
26328 \begin_inset space \space{}
26332 \begin_inset Quotes eld
26336 \begin_inset Quotes erd
26343 outputs the name capitalized, e.
26344 \begin_inset space \thinspace{}
26348 \begin_inset space \space{}
26352 \begin_inset Quotes eld
26356 \begin_inset Quotes erd
26360 Both options can be combined to get e.
26361 \begin_inset space \thinspace{}
26365 \begin_inset space \space{}
26369 \begin_inset Quotes eld
26373 \begin_inset Quotes erd
26379 \begin_layout Description
26381 \begin_inset space ~
26384 reference: prints the caption of the reference:
26385 \begin_inset CommandInset ref
26386 LatexCommand nameref
26387 reference "fig:Two-distorted-images"
26394 \begin_layout Description
26396 \begin_inset space ~
26399 only: prints only the \SpecialChar LaTeX
26400 label for the reference:
26401 \begin_inset CommandInset ref
26402 LatexCommand labelonly
26403 reference "fig:Two-distorted-images"
26411 \begin_inset Newline newline
26414 This allows to use the label for commands in \SpecialChar TeX
26420 one can omit the prefix of the label name:
26421 \begin_inset CommandInset ref
26422 LatexCommand labelonly
26423 reference "fig:Two-distorted-images"
26433 \begin_layout Standard
26438 will not print the page number if the label is on the previous, the same,
26441 \begin_inset space \thinspace{}
26445 \begin_inset space \space{}
26449 \begin_inset Quotes eld
26457 \begin_inset Quotes erd
26463 <reference> on page <page>
26465 will not print anything about the page if the label is on the same page.
26468 \begin_layout Standard
26469 The number and current page of the part of the document referred to in the
26470 output is automatically calculated by \SpecialChar LaTeX
26472 The varieties are adjusted in the field
26476 of the cross-reference window that appears when you click on the cross-referenc
26480 \begin_layout Standard
26481 \begin_inset Note Greyedout
26484 \begin_layout Plain Layout
26489 It is recommended to use the \SpecialChar LaTeX
26495 \begin_inset Index idx
26498 \begin_layout Plain Layout
26500 -packages ! refstyle
26510 \begin_inset Index idx
26513 \begin_layout Plain Layout
26515 -packages ! prettyref
26520 does not know all of \SpecialChar LyX
26521 's possible label shortcuts
26525 \begin_layout Plain Layout
26526 \begin_inset Quotes eld
26530 \begin_inset Quotes erd
26533 is for example \SpecialChar LyX
26534 's shortcut for labels in figure captions.
26539 and is not internationalized.
26547 \begin_layout Subsection
26548 Automatic Reference Naming
26549 \begin_inset Index idx
26552 \begin_layout Plain Layout
26553 References ! Automatic Reference Naming
26561 \begin_layout Standard
26562 The \SpecialChar LaTeX
26568 \begin_inset Index idx
26571 \begin_layout Plain Layout
26573 -packages ! hyperref
26578 , that is enabled in the
26586 dialog, provides a very useful feature that cross-references automatically
26587 include the name of the referenced floats (or text parts like
26592 So you will save having to write e.
26593 \begin_inset space \thinspace{}
26597 \begin_inset space \space{}
26601 \begin_inset Quotes eld
26605 \begin_inset Quotes erd
26608 before every reference to a figure.
26609 To use this feature, enable
26613 and insert this line to the \SpecialChar LaTeX
26617 \begin_layout Standard
26633 \begin_layout Standard
26634 When you prefer other reference names than the default ones, for example
26635 you want instead of
26636 \begin_inset Quotes eld
26640 \begin_inset Quotes erd
26644 \begin_inset Quotes eld
26648 \begin_inset space \thinspace{}
26652 \begin_inset Quotes eld
26655 , you can redefine the name by inserting this in the preamble:
26658 \begin_layout Standard
26669 sectionautorefname}
26670 \begin_inset Newline newline
26674 \begin_inset Phantom HPhantom
26677 \begin_layout Plain Layout
26680 \begin_inset space ~
26693 \begin_layout Standard
26694 When you are using another document language than English, replace
26695 \begin_inset Newline newline
26710 , where *** is the name of the language used.
26713 \begin_layout Standard
26714 To get automatic names, but not for certain reference types, for example
26715 not for equations, use this preamble code:
26718 \begin_layout Standard
26729 equationautorefname}[1]{}}
26732 \begin_layout Standard
26733 More about this topic can be found in
26738 \begin_inset CommandInset citation
26748 \begin_layout Standard
26749 \begin_inset Note Greyedout
26752 \begin_layout Plain Layout
26757 Automatic reference naming cannot be used when you use cross-references
26761 \begin_inset space ~
26766 style, as described in section
26767 \begin_inset space ~
26771 \begin_inset CommandInset ref
26773 reference "subsec:Cross-Reference-Formats"
26785 \begin_layout Standard
26790 manual is an example where automatic reference naming is used.
26793 \begin_layout Subsection
26795 \begin_inset CommandInset label
26797 name "subsec:Reference-Position"
26802 \begin_inset Index idx
26805 \begin_layout Plain Layout
26806 References ! Reference Position
26814 \begin_layout Standard
26820 \begin_inset Index idx
26823 \begin_layout Plain Layout
26825 -packages ! hyperref
26838 dialog to link cross-references in the output, you will see that clicking
26839 on an image float reference jumps to the image label.
26840 The caption will be the first text part on the screen, so that you cannot
26841 see the image without scrolling.
26842 This is because the reference link anchor is placed at the position of
26844 With the use of the package
26849 \begin_inset Index idx
26852 \begin_layout Plain Layout
26859 , which is part of the \SpecialChar LaTeX
26865 \begin_inset Index idx
26868 \begin_layout Plain Layout
26870 -packages ! oberdiek
26875 , the link anchor is placed at the beginning of a float.
26876 To use this feature for figure floats, load
26880 in the document preamble with the line
26883 \begin_layout Standard
26888 usepackage[figure]{hypcap}
26891 \begin_layout Standard
26896 for all float types but this is not recommended for stability reasons.
26897 For more information, have a look at
26902 \begin_inset CommandInset citation
26912 \begin_layout Standard
26913 \begin_inset Note Greyedout
26916 \begin_layout Plain Layout
26925 has no effect on references to subfigures.
26933 \begin_layout Section
26935 \begin_inset CommandInset label
26937 name "sec:Float-Placement"
26942 \begin_inset Index idx
26945 \begin_layout Plain Layout
26954 \begin_layout Standard
26955 Right-clicking on a float-box and clicking on
26959 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26961 positioning the float.
26962 \begin_inset Newline newline
26968 \begin_inset space ~
26973 is only useful for two-column documents: If you select it, the float will
26974 span both columns on the page instead of being confined to just one.
26975 \begin_inset Newline newline
26981 \begin_inset space ~
26986 is used to rotate floats, see section
26987 \begin_inset CommandInset ref
26989 reference "sec:Rotated-Floats"
26996 \begin_layout Standard
26997 You can use one or more of the following options in the float dialog to
26998 set the placement for a particular float when you uncheck the option
27001 \begin_inset space ~
27005 \begin_inset space ~
27013 \begin_layout Description
27015 \begin_inset space ~
27019 \begin_inset space ~
27022 possible try to place the float on the position where it has been inserted
27025 \begin_layout Description
27027 \begin_inset space ~
27031 \begin_inset space ~
27034 page try to place the float at the top of the current page
27037 \begin_layout Description
27039 \begin_inset space ~
27043 \begin_inset space ~
27046 page try to place the float at the bottom of the current page
27049 \begin_layout Description
27051 \begin_inset space ~
27055 \begin_inset space ~
27058 floats try to place the float on its own page
27061 \begin_layout Standard
27062 The order of the above option is
27066 used by \SpecialChar LaTeX
27068 That means, if you use the default placement, \SpecialChar LaTeX
27072 \begin_inset space ~
27076 \begin_inset space ~
27084 \begin_inset space ~
27088 \begin_inset space ~
27093 , and then the others.
27094 If you do not use the default, \SpecialChar LaTeX
27095 will try only the checked options but in
27098 \begin_inset space ~
27101 placements is possible the procedure is internally repeated trying to put
27102 the float on the following page.
27105 \begin_layout Standard
27106 By default, each option has its own rules:
27109 \begin_layout Labeling
27110 \labelwidthstring 00.00.0000
27114 \begin_inset space ~
27118 \begin_inset space ~
27123 only floats occupying less than 70
27124 \begin_inset space \thinspace{}
27127 % of the page can be placed at the top of a page (
27136 \begin_layout Labeling
27137 \labelwidthstring 00.00.0000
27141 \begin_inset space ~
27145 \begin_inset space ~
27150 : only floats occupying less than 30
27151 \begin_inset space \thinspace{}
27154 % of the page can be placed at the bottom of a page.
27164 \begin_layout Labeling
27165 \labelwidthstring 00.00.0000
27169 \begin_inset space ~
27173 \begin_inset space ~
27178 : only if more than 50
27179 \begin_inset space \thinspace{}
27182 % of the page is occupied by floats, several floats can be set together
27193 \begin_layout Standard
27194 If you don't like these rules, you can ignore them by using the additional
27198 \begin_inset space ~
27203 \begin_inset space ~
27209 \begin_inset Newline newline
27212 You can also redefine the rules with \SpecialChar LaTeX
27213 -commands that are given in parentheses
27214 after the rules description above.
27215 To increase for example the often too small default of the bottom-rule
27217 \begin_inset space \thinspace{}
27220 % of the page, add this line to your document preamble:
27223 \begin_layout Standard
27230 bottomfraction}{0.5}
27233 \begin_layout Standard
27234 Sometimes you might need, under all circumstances, a float to be placed
27235 exactly at the position where it is inserted.
27236 For this case you can use the option
27239 \begin_inset space ~
27245 Use this option very rarely and only if the document is almost ready to
27246 be printed, because the float is then no longer able to
27247 \begin_inset Quotes eld
27251 \begin_inset Quotes erd
27254 when you change your document and this will often destroy the page layout.
27257 \begin_layout Standard
27258 There are no placement options for text wrap floats, because they are always
27259 surrounded by the text of a certain paragraph.
27260 \begin_inset VSpace bigskip
27266 \begin_layout Standard
27267 Sometimes you have the problem that a float is placed at the top of a page
27268 while its corresponding section starts at the middle of the page, so that
27269 the reader could think the float is part of the previous section.
27270 To avoid this the \SpecialChar LaTeX
27278 It suppresses a given float placement for the page where it is inserted
27279 and can therefore be used to avoid floats being set before a section starts.
27280 To get this, add these commands to your document preamble:
27283 \begin_layout Standard
27293 \begin_inset Newline newline
27307 \begin_layout Standard
27308 You can define the same for all section headings, like chapters and subsections.
27309 This definition is not recommended to be used for small text parts like
27310 subsubsections because \SpecialChar LaTeX
27311 may then have problems finding a suitable placement.
27314 \begin_layout Standard
27315 \begin_inset VSpace bigskip
27318 In some cases it is required to have all figures/tables at the end of the
27320 For this purpose the \SpecialChar LaTeX
27326 \begin_inset Index idx
27329 \begin_layout Plain Layout
27331 -packages ! endfloat
27337 It puts all figure and table floats at the end of the document into their
27339 At the original float position a text hint like
27340 \begin_inset Quotes eld
27346 \begin_inset space ~
27352 \begin_inset Quotes erd
27356 The endfloat-package is loaded in the preamble with the line
27359 \begin_layout Standard
27364 usepackage[options]{endfloat}
27367 \begin_layout Standard
27368 There are various package options to format the created figure/table sections.
27369 For more information we refer you to the
27374 \begin_inset CommandInset citation
27382 \begin_inset Newline newline
27386 \begin_inset Note Greyedout
27389 \begin_layout Plain Layout
27394 doesn't provide an automatic translation for the text hint, you have to
27395 do this manually, see section
27396 \begin_inset space ~
27400 \begin_inset CommandInset citation
27413 \begin_inset Newline newline
27417 \begin_inset Note Greyedout
27420 \begin_layout Plain Layout
27425 There is currently a bug in
27429 when the caption contains a German
27430 \begin_inset Quotes eld
27434 \begin_inset Quotes erd
27438 Use in this case the command
27439 \begin_inset Quotes eld
27449 \begin_inset Quotes erd
27452 in \SpecialChar TeX
27454 \begin_inset Quotes eld
27458 \begin_inset Quotes erd
27469 \begin_layout Standard
27470 \begin_inset VSpace bigskip
27473 For more details about float placements, have a look at \SpecialChar LaTeX
27475 \begin_inset CommandInset citation
27477 key "latexcompanion,latexguide,latexbook"
27485 \begin_layout Section
27487 \begin_inset CommandInset label
27489 name "sec:Rotated-Floats"
27494 \begin_inset Index idx
27497 \begin_layout Plain Layout
27506 \begin_layout Standard
27507 Especially for wide tables you might have floats rotated.
27508 To rotate a whole float including the caption, right-click on the float-box
27512 \begin_inset space ~
27520 \begin_layout Standard
27521 Rotated floats are always placed on a page of their own (or column of their
27522 own; in case you have a multi-column document).
27523 You can let them span several columns using the float settings option
27526 \begin_inset space ~
27532 Floats are rotated so that you can read them from the outside margin.
27533 To force a certain rotation direction for all pages, you can add either
27542 to the document class options.
27545 \begin_layout Standard
27546 Referencing rotated floats is the same as for normal floats, the caption
27547 format is also the same: Table
27548 \begin_inset space ~
27552 \begin_inset CommandInset ref
27554 reference "tab:Rotated-table"
27558 is an example of a rotated table float.
27561 \begin_layout Standard
27562 \begin_inset Note Greyedout
27565 \begin_layout Plain Layout
27570 Not all DVI-viewers are able to display rotated floats.
27578 \begin_layout Standard
27579 \begin_inset Float table
27584 \begin_layout Plain Layout
27585 \begin_inset Caption Standard
27587 \begin_layout Plain Layout
27588 \begin_inset CommandInset label
27590 name "tab:Rotated-table"
27602 \begin_layout Plain Layout
27604 \begin_inset Tabular
27605 <lyxtabular version="3" rows="1" columns="5">
27606 <features tabularvalignment="middle">
27607 <column alignment="center" valignment="top">
27608 <column alignment="center" valignment="top">
27609 <column alignment="center" valignment="top">
27610 <column alignment="center" valignment="top">
27611 <column alignment="center" valignment="top">
27613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27616 \begin_layout Plain Layout
27622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27625 \begin_layout Plain Layout
27631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27634 \begin_layout Plain Layout
27640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27643 \begin_layout Plain Layout
27649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27652 \begin_layout Plain Layout
27671 \begin_layout Section
27673 \begin_inset Index idx
27676 \begin_layout Plain Layout
27685 \begin_layout Standard
27686 Subfloats are for example used when a figure consists of several images.
27687 They are created by inserting a float into an existing float.
27688 The placement of the subfloats can be controlled in the same way as for
27689 paragraphs as shown in table
27690 \begin_inset space ~
27694 \begin_inset CommandInset ref
27696 reference "tab:Two-subtables-side"
27701 \begin_inset CommandInset ref
27703 reference "tab:Two-subtables-upon"
27710 \begin_layout Standard
27711 Referencing subfloats works as for normal floats: Table
27712 \begin_inset space ~
27716 \begin_inset CommandInset ref
27718 reference "tab:This-is-subtable-a"
27723 \begin_inset CommandInset ref
27725 reference "tab:This-is-subtable-b"
27729 are subtables of table
27730 \begin_inset space ~
27734 \begin_inset CommandInset ref
27736 reference "tab:Two-subtables-side"
27743 \begin_layout Standard
27744 \begin_inset Float table
27749 \begin_layout Plain Layout
27750 \begin_inset Caption Standard
27752 \begin_layout Plain Layout
27753 \begin_inset CommandInset label
27755 name "tab:Two-subtables-side"
27759 Two subtables placed side by side.
27767 \begin_layout Plain Layout
27769 \begin_inset space \hfill{}
27773 \begin_inset Float table
27778 \begin_layout Plain Layout
27779 \begin_inset Caption Standard
27781 \begin_layout Plain Layout
27782 \begin_inset CommandInset label
27784 name "tab:This-is-subtable-a"
27788 This is subtable a.
27796 \begin_layout Plain Layout
27798 \begin_inset Tabular
27799 <lyxtabular version="3" rows="1" columns="5">
27800 <features tabularvalignment="middle">
27801 <column alignment="center" valignment="top">
27802 <column alignment="center" valignment="top">
27803 <column alignment="center" valignment="top">
27804 <column alignment="center" valignment="top">
27805 <column alignment="center" valignment="top">
27807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27810 \begin_layout Plain Layout
27816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27819 \begin_layout Plain Layout
27825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27828 \begin_layout Plain Layout
27834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27837 \begin_layout Plain Layout
27843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27846 \begin_layout Plain Layout
27863 \begin_inset space \hfill{}
27867 \begin_inset Float table
27872 \begin_layout Plain Layout
27873 \begin_inset Caption Standard
27875 \begin_layout Plain Layout
27876 \begin_inset CommandInset label
27878 name "tab:This-is-subtable-b"
27882 This is subtable b.
27890 \begin_layout Plain Layout
27892 \begin_inset Tabular
27893 <lyxtabular version="3" rows="1" columns="5">
27894 <features tabularvalignment="middle">
27895 <column alignment="center" valignment="top">
27896 <column alignment="center" valignment="top">
27897 <column alignment="center" valignment="top">
27898 <column alignment="center" valignment="top">
27899 <column alignment="center" valignment="top">
27901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27904 \begin_layout Plain Layout
27910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27913 \begin_layout Plain Layout
27919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27922 \begin_layout Plain Layout
27928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27931 \begin_layout Plain Layout
27937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27940 \begin_layout Plain Layout
27957 \begin_inset space \hfill{}
27968 \begin_layout Standard
27969 \begin_inset Float table
27974 \begin_layout Plain Layout
27975 \begin_inset Caption Standard
27977 \begin_layout Plain Layout
27978 \begin_inset CommandInset label
27980 name "tab:Two-subtables-upon"
27984 Two subtables placed one above the other.
27985 (a) table with 4 cells, (b) table with 5 cells.
27993 \begin_layout Plain Layout
27995 \begin_inset Float table
28000 \begin_layout Plain Layout
28001 \begin_inset Caption Standard
28003 \begin_layout Plain Layout
28012 \begin_layout Plain Layout
28014 \begin_inset Tabular
28015 <lyxtabular version="3" rows="1" columns="4">
28016 <features tabularvalignment="middle">
28017 <column alignment="center" valignment="top">
28018 <column alignment="center" valignment="top">
28019 <column alignment="center" valignment="top">
28020 <column alignment="center" valignment="top">
28022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28025 \begin_layout Plain Layout
28031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28034 \begin_layout Plain Layout
28040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28043 \begin_layout Plain Layout
28049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28052 \begin_layout Plain Layout
28071 \begin_layout Plain Layout
28073 \begin_inset Float table
28078 \begin_layout Plain Layout
28079 \begin_inset Caption Standard
28081 \begin_layout Plain Layout
28090 \begin_layout Plain Layout
28092 \begin_inset Tabular
28093 <lyxtabular version="3" rows="1" columns="5">
28094 <features tabularvalignment="middle">
28095 <column alignment="center" valignment="top">
28096 <column alignment="center" valignment="top">
28097 <column alignment="center" valignment="top">
28098 <column alignment="center" valignment="top">
28099 <column alignment="center" valignment="top">
28101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28104 \begin_layout Plain Layout
28110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28113 \begin_layout Plain Layout
28119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28122 \begin_layout Plain Layout
28128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28131 \begin_layout Plain Layout
28137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28140 \begin_layout Plain Layout
28164 \begin_layout Section
28165 Floats Side by Side
28166 \begin_inset Index idx
28169 \begin_layout Plain Layout
28170 Floats ! Side by side
28178 \begin_layout Standard
28179 To place floats side by side, as in Figures
28180 \begin_inset space ~
28184 \begin_inset CommandInset ref
28186 reference "fig:Float-left"
28191 \begin_inset CommandInset ref
28193 reference "fig:Float-right"
28202 In it two minipage boxes are inserted.
28206 \begin_layout Plain Layout
28207 Minipages are explained in section
28208 \begin_inset space ~
28212 \begin_inset CommandInset ref
28214 reference "sec:Minipages"
28223 The width is set to 45
28224 \begin_inset space \thinspace{}
28228 \begin_inset space \thinspace{}
28231 column% and the box alignment to
28236 The minipage boxes contain the image and the caption in the same way as
28237 they are in a float.
28238 The only difference is that the image unit
28241 \begin_inset space ~
28245 \begin_inset space ~
28250 is now calculated according to the width of the minipage boxes.
28253 \begin_layout Standard
28254 \begin_inset Float figure
28259 \begin_layout Plain Layout
28260 \begin_inset Box Frameless
28270 height_special "totalheight"
28275 backgroundcolor "none"
28278 \begin_layout Plain Layout
28280 \begin_inset Graphics
28281 filename clipart/2D-intensity-plot.pdf
28283 scaleBeforeRotation
28290 \begin_layout Plain Layout
28291 \begin_inset Caption Standard
28293 \begin_layout Plain Layout
28294 \begin_inset CommandInset label
28296 name "fig:Float-left"
28300 Float on the left side.
28311 \begin_inset space \hfill{}
28315 \begin_inset Box Frameless
28325 height_special "totalheight"
28330 backgroundcolor "none"
28333 \begin_layout Plain Layout
28335 \begin_inset Graphics
28336 filename clipart/Star-structure.pdf
28338 scaleBeforeRotation
28345 \begin_layout Plain Layout
28346 \begin_inset Caption Standard
28348 \begin_layout Plain Layout
28349 \begin_inset CommandInset label
28351 name "fig:Float-right"
28355 Float on the right side.
28373 \begin_layout Standard
28374 An alternative and simpler solution is to use the module
28376 Variable-width Minipages
28379 \begin_inset space \thinspace{}
28383 \begin_inset CommandInset ref
28385 reference "sec:Minipages"
28390 Variable-width minipages adapt automatically to the width of the figures
28392 They do not require an explicit width to be given, and they improve the
28393 horizontal alignment of the figures.
28394 The LyX example file
28396 varwidth-floats-side-by-side
28398 gives examples of how to do this.
28401 \begin_layout Section
28403 \begin_inset Index idx
28406 \begin_layout Plain Layout
28407 Caption ! Formatting
28413 \begin_inset Index idx
28416 \begin_layout Plain Layout
28417 Floats ! Caption Formatting
28423 \begin_inset CommandInset label
28425 name "sec:Caption-Formatting"
28432 \begin_layout Standard
28437 environment is the default paragraph environment for
28442 On the \SpecialChar LyX
28443 screen captions appear as a label, e.
28444 \begin_inset space \thinspace{}
28448 \begin_inset space \space{}
28452 \begin_inset Quotes eld
28460 \begin_inset Quotes erd
28463 followed by the caption text.
28465 \begin_inset Quotes eld
28469 \begin_inset Quotes erd
28472 is the actual reference number.
28473 By default the label and the number are in the same font as the caption
28474 text and a colon follows the number to divide the label from the text.
28475 This caption format is suitable for many but not all documents.
28479 \begin_layout Standard
28480 To change the default caption format, load the \SpecialChar LaTeX
28486 \begin_inset Index idx
28489 \begin_layout Plain Layout
28491 -packages ! caption
28496 in the document preamble with this line:
28499 \begin_layout Standard
28504 usepackage[format definition]{caption}
28507 \begin_layout Standard
28508 To have for example the label and the number in sans-serif, bold font and
28509 the table captions always above the table as in this document, use the
28513 \begin_layout Standard
28518 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28521 \begin_layout Standard
28522 You can also define different caption formats for the different float types.
28523 In this case load the
28527 package without format specific options and define the different formats
28528 with the help of the command
28531 \begin_layout Standard
28536 captionsetup[float type]{format definition}
28539 \begin_layout Standard
28540 in the document preamble.
28541 For example the caption formats of Figure
28542 \begin_inset space ~
28546 \begin_inset CommandInset ref
28548 reference "fig:This-is-an-fig"
28553 \begin_inset space ~
28557 \begin_inset CommandInset ref
28559 reference "tab:This-is-an-tab"
28563 can be created using these commands in the document preamble:
28566 \begin_layout Standard
28571 usepackage[tableposition=top]{caption}
28574 \begin_inset Newline newline
28581 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28582 \begin_inset Newline newline
28586 \begin_inset Phantom HPhantom
28589 \begin_layout Plain Layout
28594 captionsetup[figure]{
28600 \begin_inset Newline newline
28605 captionsetup[table]{labelfont={bf,sf}}
28608 \begin_layout Standard
28609 \begin_inset Note Greyedout
28612 \begin_layout Plain Layout
28621 has no effect when a
28626 \begin_inset Index idx
28629 \begin_layout Plain Layout
28631 -packages ! KOMA-Script
28636 document class is used.
28637 In this case the document class option
28639 captions=tableheading
28649 \begin_layout Standard
28650 For more information about the package
28654 we refer to its documentation
28655 \begin_inset CommandInset citation
28665 \begin_layout Standard
28666 To change the label name from e.
28667 \begin_inset space \thinspace{}
28671 \begin_inset space \space{}
28675 \begin_inset Quotes eld
28679 \begin_inset Quotes erd
28683 \begin_inset Quotes eld
28687 \begin_inset Quotes erd
28690 use this preamble command:
28693 \begin_layout Standard
28700 fnum@figure}{Image~
28705 \begin_layout Standard
28712 inserts the figure number and
28715 \begin_inset Quotes eld
28721 \begin_inset Quotes erd
28724 creates a protected space.
28727 \begin_layout Standard
28728 \begin_inset VSpace bigskip
28736 \begin_inset Index idx
28739 \begin_layout Plain Layout
28741 -packages ! KOMA-Script
28748 article (KOMA-Script)
28756 letter (KOMA-Script)
28760 report (KOMA-Script)
28763 \begin_inset space \thinspace{}
28766 ), you can alternatively to the
28774 's built-in command
28781 For example, to have the caption label in bold, add this command to your
28785 \begin_layout Standard
28790 setkomafont{captionlabel}{
28795 \begin_layout Standard
28796 For more information about
28807 \begin_inset CommandInset citation
28817 \begin_layout Standard
28821 \begin_layout Plain Layout
28825 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28832 \begin_inset Note Note
28835 \begin_layout Plain Layout
28836 The caption format is changed only for this example.
28844 \begin_layout Standard
28845 \begin_inset Float figure
28851 \begin_layout Plain Layout
28853 \begin_inset Graphics
28854 filename clipart/2D-intensity-plot.pdf
28855 scaleBeforeRotation
28862 \begin_layout Plain Layout
28863 \begin_inset Caption Standard
28865 \begin_layout Plain Layout
28866 \begin_inset CommandInset label
28868 name "fig:This-is-an-fig"
28872 This is an example figure caption that is longer than one line to show the
28873 different caption format.
28874 Here a self-defined caption format is used.
28887 \begin_layout Standard
28891 \begin_layout Plain Layout
28895 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28904 \begin_layout Standard
28905 \begin_inset Float table
28911 \begin_layout Plain Layout
28912 \begin_inset Caption Standard
28914 \begin_layout Plain Layout
28915 \begin_inset CommandInset label
28917 name "tab:This-is-an-tab"
28921 This is an example table caption that is longer than one line to show the
28922 different caption format.
28923 Here the standard caption format for tables in this document is used.
28931 \begin_layout Plain Layout
28933 \begin_inset Tabular
28934 <lyxtabular version="3" rows="1" columns="5">
28935 <features tabularvalignment="middle">
28936 <column alignment="center" valignment="top">
28937 <column alignment="center" valignment="top">
28938 <column alignment="center" valignment="top">
28939 <column alignment="center" valignment="top">
28940 <column alignment="center" valignment="top">
28942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28945 \begin_layout Plain Layout
28951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28954 \begin_layout Plain Layout
28960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28963 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28981 \begin_layout Plain Layout
29000 \begin_layout Section
29002 \begin_inset Index idx
29005 \begin_layout Plain Layout
29006 Caption ! Placement
29012 \begin_inset Index idx
29015 \begin_layout Plain Layout
29016 Floats ! Caption Placement
29022 \begin_inset CommandInset label
29024 name "sec:Caption-Placement"
29031 \begin_layout Standard
29032 The common caption placement rule is:
29035 \begin_layout Description
29036 Figure: Caption is set below the figure
29039 \begin_layout Description
29040 Table: Caption is set above the table
29043 \begin_layout Standard
29044 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29047 That means if you are using the document classes
29063 there will be no space between the caption and the table.
29064 To insert the necessary space, load the \SpecialChar LaTeX
29070 \begin_inset Index idx
29073 \begin_layout Plain Layout
29075 -packages ! caption
29080 in your document preamble with the option
29084 \begin_layout Plain Layout
29086 \begin_inset space ~
29090 \begin_inset CommandInset ref
29092 reference "sec:Caption-Formatting"
29096 for more information of the package
29108 \begin_layout Standard
29114 \begin_layout Standard
29120 \begin_inset Index idx
29123 \begin_layout Plain Layout
29125 -packages ! KOMA-Script
29132 article (KOMA-Script)
29140 letter (KOMA-Script)
29144 report (KOMA-Script)
29147 \begin_inset space \thinspace{}
29150 ), you can alternatively to the
29154 package set the document class option
29158 \begin_layout Plain Layout
29159 That option is used in this document.
29167 \begin_layout Standard
29170 captions=tableheading
29173 \begin_layout Standard
29174 In documents with a KOMA-Script document class you can also right-click
29175 on a caption and mark in the context menu if this should be a caption above
29176 or below the table/figure.
29177 This way you can override the document-wide caption placement for certain
29180 \begin_inset space ~
29184 \begin_inset CommandInset ref
29186 reference "tab:A-caption-marked"
29190 is an example where the caption is marked a being below the table while
29192 For comparison the caption in Table
29193 \begin_inset space ~
29197 \begin_inset CommandInset ref
29199 reference "tab:A-standard-table"
29206 \begin_layout Standard
29207 \begin_inset Float table
29212 \begin_layout Plain Layout
29213 \begin_inset Caption Below
29215 \begin_layout Plain Layout
29216 \begin_inset CommandInset label
29218 name "tab:A-caption-marked"
29222 A caption marked as being below the table.
29230 \begin_layout Plain Layout
29232 \begin_inset Tabular
29233 <lyxtabular version="3" rows="3" columns="3">
29234 <features tabularvalignment="middle">
29235 <column alignment="center" valignment="top" width="0pt">
29236 <column alignment="center" valignment="top" width="0pt">
29237 <column alignment="center" valignment="top" width="0pt">
29239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29242 \begin_layout Plain Layout
29248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29251 \begin_layout Plain Layout
29257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29260 \begin_layout Plain Layout
29268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29271 \begin_layout Plain Layout
29277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29280 \begin_layout Plain Layout
29286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29289 \begin_layout Plain Layout
29297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29300 \begin_layout Plain Layout
29301 \begin_inset Formula $\int x^{2}dx$
29309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29312 \begin_layout Plain Layout
29313 \begin_inset Formula $\left[\begin{array}{cc}
29316 \end{array}\right]$
29324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29327 \begin_layout Plain Layout
29328 \begin_inset Formula $1+1=2$
29349 \begin_layout Standard
29350 \begin_inset Float table
29355 \begin_layout Plain Layout
29356 \begin_inset Caption Standard
29358 \begin_layout Plain Layout
29359 \begin_inset CommandInset label
29361 name "tab:A-standard-table"
29365 A standard table caption.
29373 \begin_layout Plain Layout
29375 \begin_inset Tabular
29376 <lyxtabular version="3" rows="3" columns="3">
29377 <features tabularvalignment="middle">
29378 <column alignment="center" valignment="top" width="0pt">
29379 <column alignment="center" valignment="top" width="0pt">
29380 <column alignment="center" valignment="top" width="0pt">
29382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29385 \begin_layout Plain Layout
29391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29394 \begin_layout Plain Layout
29400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29403 \begin_layout Plain Layout
29411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29414 \begin_layout Plain Layout
29420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29423 \begin_layout Plain Layout
29429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29432 \begin_layout Plain Layout
29440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29443 \begin_layout Plain Layout
29444 \begin_inset Formula $\int x^{2}dx$
29452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29455 \begin_layout Plain Layout
29456 \begin_inset Formula $\left[\begin{array}{cc}
29459 \end{array}\right]$
29467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29470 \begin_layout Plain Layout
29471 \begin_inset Formula $1+1=2$
29492 \begin_layout Standard
29493 \begin_inset VSpace bigskip
29496 It is also possible to set the caption beside a figure or table.
29497 To get this the \SpecialChar LaTeX
29503 \begin_inset Index idx
29506 \begin_layout Plain Layout
29508 -packages ! sidecap
29513 has to be loaded in the document preamble with the line
29516 \begin_layout Standard
29521 usepackage[option]{sidecap}
29524 \begin_layout Standard
29525 If you set no option, the caption is placed on the side of the outer page
29526 margin – to the right on odd pages, to the left on even pages.
29527 You can change the placement to inner margin with the option
29532 To force the placement always to the right or left, use the option
29543 \begin_layout Standard
29547 \begin_layout Plain Layout
29557 \begin_inset Note Note
29560 \begin_layout Plain Layout
29561 The following section will only be displayed when the \SpecialChar LaTeX
29574 \begin_layout Standard
29575 To place in \SpecialChar LyX
29576 the caption of a float on the side, it is necessary to add
29577 these commands to the document preamble:
29580 \begin_layout Standard
29582 \begin_inset CommandInset line
29593 \begin_layout Standard
29600 TabBesBeg}[1][1.0]{%
29601 \begin_inset Newline newline
29605 \begin_inset Phantom HPhantom
29608 \begin_layout Plain Layout
29609 \begin_inset space ~
29624 \begin_inset Newline newline
29628 \begin_inset Phantom HPhantom
29631 \begin_layout Plain Layout
29634 \begin_inset space ~
29649 \begin_inset Newline newline
29653 \begin_inset Phantom HPhantom
29656 \begin_layout Plain Layout
29659 \begin_inset space ~
29669 renewenvironment{table}[1]{
29671 begin{SCtable}[#1]##1}{
29676 \begin_layout Standard
29684 \begin_inset Newline newline
29688 \begin_inset Phantom HPhantom
29691 \begin_layout Plain Layout
29692 \begin_inset space ~
29707 \begin_inset Newline newline
29711 \begin_inset Phantom HPhantom
29714 \begin_layout Plain Layout
29715 \begin_inset space ~
29732 \begin_layout Standard
29739 FigBesBeg}[1][1.0]{%
29740 \begin_inset Newline newline
29744 \begin_inset Phantom HPhantom
29747 \begin_layout Plain Layout
29748 \begin_inset space ~
29763 \begin_inset Newline newline
29767 \begin_inset Phantom HPhantom
29770 \begin_layout Plain Layout
29771 \begin_inset space ~
29786 \begin_inset Newline newline
29790 \begin_inset Phantom HPhantom
29793 \begin_layout Plain Layout
29794 \begin_inset space ~
29804 renewenvironment{figure}[1]{
29806 begin{SCfigure}[#1]##1}{
29811 \begin_layout Standard
29819 \begin_inset Newline newline
29823 \begin_inset Phantom HPhantom
29826 \begin_layout Plain Layout
29827 \begin_inset space ~
29842 \begin_inset Newline newline
29846 \begin_inset Phantom HPhantom
29849 \begin_layout Plain Layout
29850 \begin_inset space ~
29867 \begin_layout Standard
29869 \begin_inset CommandInset line
29880 \begin_layout Standard
29881 The commands allow you to redefine the floats so that the caption is set
29883 For figure floats use the command
29886 \begin_layout Standard
29894 \begin_layout Standard
29895 in \SpecialChar TeX
29896 Code before the float.
29897 And insert the command
29900 \begin_layout Standard
29908 \begin_layout Standard
29909 in \SpecialChar TeX
29910 Code at the point where you want to get back to the original float definitio
29914 \begin_layout Standard
29915 For table floats use the corresponding commands
29918 \begin_layout Standard
29932 \begin_layout Standard
29934 \begin_inset space ~
29938 \begin_inset CommandInset ref
29940 reference "fig:cap-beside-fig"
29945 \begin_inset space ~
29949 \begin_inset CommandInset ref
29951 reference "tab:cap-beside-tab"
29955 are examples where the caption is set beside.
29958 \begin_layout Standard
29959 You can see in the examples that the caption text appears at the top of
29960 the floats for table floats and at the bottom for figure floats.
29961 To change this, you can use the command
29964 \begin_layout Standard
29969 sidecaptionvpos{float type}{placement}
29972 \begin_layout Standard
29973 in the document preamble or in \SpecialChar TeX
29974 Code before the float.
29975 The float type is either
29983 , the placement can be
29984 \begin_inset Quotes eld
29992 \begin_inset Quotes erd
29996 \begin_inset Quotes eld
30004 \begin_inset Quotes erd
30008 \begin_inset Quotes eld
30016 \begin_inset Quotes erd
30020 To have for example the caption of figure floats vertically centered, use
30024 \begin_layout Standard
30029 sidecaptionvpos{figure}{c}
30032 \begin_layout Standard
30033 This was used for Figure
30034 \begin_inset space ~
30038 \begin_inset CommandInset ref
30040 reference "fig:cap-beside-fig-2"
30047 \begin_layout Standard
30048 \begin_inset VSpace medskip
30054 \begin_layout Standard
30055 The default caption width is the width of the image/table.
30056 For thin image/tables, like in Table
30057 \begin_inset space ~
30061 \begin_inset CommandInset ref
30063 reference "tab:cap-beside-tab"
30067 , this leads to captions that are too thin.
30068 You can increase the width by specifying a factor that will be multiplied
30069 with the image/table width to get the caption width.
30070 The caption width will automatically be recalculated in case it would protrude
30071 over the page or column margin due to the specified width.
30076 can either be given as optional argument for
30085 \begin_layout Standard
30093 \begin_layout Standard
30094 or in the definition of
30104 with another value.
30105 If you do the latter, your factor will be the default if
30111 is used without an argument.
30113 \begin_inset space ~
30117 \begin_inset CommandInset ref
30119 reference "tab:cap-beside-tab-wider"
30123 the factor 5 was used.
30126 \begin_layout Standard
30127 \begin_inset Note Greyedout
30130 \begin_layout Plain Layout
30135 For floats with captions set beside, you cannot use the float placement
30139 \begin_inset space ~
30144 because it is not supported by
30156 \begin_layout Standard
30157 \begin_inset VSpace medskip
30160 For more information about the package
30164 we refer to its documentation
30165 \begin_inset CommandInset citation
30175 \begin_layout Standard
30176 \begin_inset Note Greyedout
30179 \begin_layout Plain Layout
30184 The \SpecialChar LaTeX
30190 \begin_inset Index idx
30193 \begin_layout Plain Layout
30200 , described in section
30201 \begin_inset space ~
30205 \begin_inset CommandInset ref
30207 reference "subsec:Reference-Position"
30211 , has no effect on floats with the caption set beside.
30219 \begin_layout Standard
30223 \begin_layout Plain Layout
30235 \begin_layout Standard
30236 \begin_inset Float figure
30241 \begin_layout Plain Layout
30242 \begin_inset Graphics
30243 filename clipart/3D-structure-distort.pdf
30245 scaleBeforeRotation
30252 \begin_layout Plain Layout
30253 \begin_inset Caption Standard
30255 \begin_layout Plain Layout
30256 \begin_inset CommandInset label
30258 name "fig:cap-beside-fig"
30262 This is a caption beside a figure.
30275 \begin_layout Standard
30279 \begin_layout Plain Layout
30291 \begin_layout Standard
30295 \begin_layout Plain Layout
30307 \begin_layout Standard
30308 \begin_inset Float table
30313 \begin_layout Plain Layout
30314 \begin_inset Caption Standard
30316 \begin_layout Plain Layout
30317 \begin_inset CommandInset label
30319 name "tab:cap-beside-tab"
30323 This is a caption beside a table.
30331 \begin_layout Plain Layout
30332 \begin_inset Tabular
30333 <lyxtabular version="3" rows="4" columns="5">
30334 <features tabularvalignment="middle">
30335 <column alignment="center" valignment="top">
30336 <column alignment="center" valignment="top">
30337 <column alignment="center" valignment="top">
30338 <column alignment="center" valignment="top">
30339 <column alignment="center" valignment="top">
30341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30344 \begin_layout Plain Layout
30350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30353 \begin_layout Plain Layout
30359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30362 \begin_layout Plain Layout
30368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30371 \begin_layout Plain Layout
30377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30380 \begin_layout Plain Layout
30388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30391 \begin_layout Plain Layout
30397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30400 \begin_layout Plain Layout
30406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30409 \begin_layout Plain Layout
30415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30418 \begin_layout Plain Layout
30424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30427 \begin_layout Plain Layout
30435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30438 \begin_layout Plain Layout
30444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30447 \begin_layout Plain Layout
30453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30456 \begin_layout Plain Layout
30462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30465 \begin_layout Plain Layout
30471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30474 \begin_layout Plain Layout
30482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30485 \begin_layout Plain Layout
30491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30494 \begin_layout Plain Layout
30500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30503 \begin_layout Plain Layout
30509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30512 \begin_layout Plain Layout
30518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30521 \begin_layout Plain Layout
30540 \begin_layout Standard
30544 \begin_layout Plain Layout
30556 \begin_layout Standard
30560 \begin_layout Plain Layout
30573 \begin_layout Plain Layout
30577 sidecaptionvpos{figure}{c}
30583 \begin_inset Float figure
30588 \begin_layout Plain Layout
30589 \begin_inset Graphics
30590 filename clipart/3D-structure-distort.pdf
30592 scaleBeforeRotation
30599 \begin_layout Plain Layout
30600 \begin_inset Caption Standard
30602 \begin_layout Plain Layout
30603 \begin_inset CommandInset label
30605 name "fig:cap-beside-fig-2"
30609 This is a vertically centered caption beside a figure.
30622 \begin_layout Standard
30626 \begin_layout Plain Layout
30638 \begin_layout Standard
30642 \begin_layout Plain Layout
30654 \begin_layout Standard
30655 \begin_inset Float table
30660 \begin_layout Plain Layout
30661 \begin_inset Caption Standard
30663 \begin_layout Plain Layout
30664 \begin_inset CommandInset label
30666 name "tab:cap-beside-tab-wider"
30670 This caption is wider than the one in Table
30671 \begin_inset space ~
30675 \begin_inset CommandInset ref
30677 reference "tab:cap-beside-tab"
30689 \begin_layout Plain Layout
30690 \begin_inset Tabular
30691 <lyxtabular version="3" rows="4" columns="5">
30692 <features tabularvalignment="middle">
30693 <column alignment="center" valignment="top">
30694 <column alignment="center" valignment="top">
30695 <column alignment="center" valignment="top">
30696 <column alignment="center" valignment="top">
30697 <column alignment="center" valignment="top">
30699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30702 \begin_layout Plain Layout
30708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30711 \begin_layout Plain Layout
30717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30720 \begin_layout Plain Layout
30726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30729 \begin_layout Plain Layout
30735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30738 \begin_layout Plain Layout
30746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30749 \begin_layout Plain Layout
30755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30758 \begin_layout Plain Layout
30764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30767 \begin_layout Plain Layout
30773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30776 \begin_layout Plain Layout
30782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30785 \begin_layout Plain Layout
30793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30796 \begin_layout Plain Layout
30802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30805 \begin_layout Plain Layout
30811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30814 \begin_layout Plain Layout
30820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30823 \begin_layout Plain Layout
30829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30832 \begin_layout Plain Layout
30840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30843 \begin_layout Plain Layout
30849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30852 \begin_layout Plain Layout
30858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30861 \begin_layout Plain Layout
30867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30870 \begin_layout Plain Layout
30876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30879 \begin_layout Plain Layout
30898 \begin_layout Standard
30902 \begin_layout Plain Layout
30914 \begin_layout Standard
30918 \begin_layout Plain Layout
30928 \begin_inset Note Note
30931 \begin_layout Plain Layout
30932 The following will be displayed when the \SpecialChar LaTeX
30945 \begin_layout Standard
30946 You need to install the \SpecialChar LaTeX
30951 to see the following part of this section in the output.
30954 \begin_layout Standard
30958 \begin_layout Plain Layout
30970 \begin_layout Section
30972 \begin_inset Index idx
30975 \begin_layout Plain Layout
30976 Floats ! Float Lists
30984 \begin_layout Standard
30985 Similar to the table of contents where the sections of the document are
30986 listed, there are listings for all float types, like the figures of the
30988 You can insert them via the
30990 Insert\SpecialChar menuseparator
30992 \begin_inset space ~
30996 \begin_inset space ~
31004 \begin_layout Standard
31005 The list entries are the float captions or its short title, the float number,
31006 and the page number where they appear in the document.
31009 \begin_layout Standard
31010 You can find the list of figures and tables at the end of this document.
31013 \begin_layout Chapter
31017 \begin_layout Section
31020 \begin_inset Index idx
31023 \begin_layout Plain Layout
31024 Notes ! \SpecialChar LyX
31033 \begin_layout Standard
31034 Notes are inserted with the toolbar button
31042 Insert\SpecialChar menuseparator
31046 There are three types of notes:
31049 \begin_layout Description
31052 \begin_inset space ~
31055 Note This note type is for internal notes that won't appear in the output.
31056 Its note-box looks like this:
31057 \begin_inset Newline newline
31061 \begin_inset Newline newline
31065 \begin_inset Graphics
31066 filename clipart/LyXNoteImage.png
31068 scaleBeforeRotation
31073 \begin_inset Note Note
31076 \begin_layout Plain Layout
31077 This is text in a note box that doesn't appear in the output.
31085 \begin_layout Description
31086 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31088 when you export the document to \SpecialChar LaTeX
31091 File\SpecialChar menuseparator
31092 Export\SpecialChar menuseparator
31094 \begin_inset space ~
31097 (pdflatex) / (plain)
31100 Its note-box looks like this:
31101 \begin_inset Newline newline
31105 \begin_inset Newline newline
31109 \begin_inset Graphics
31110 filename clipart/CommentNoteImage.png
31112 scaleBeforeRotation
31117 \begin_inset Note Comment
31120 \begin_layout Plain Layout
31121 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31130 \begin_layout Description
31132 \begin_inset space ~
31135 Out This note will appear in the output as grey text.
31136 Its note-box looks like this:
31137 \begin_inset Newline newline
31141 \begin_inset Newline newline
31145 \begin_inset Graphics
31146 filename clipart/GreyedOutNoteImage.png
31148 scaleBeforeRotation
31153 \begin_inset Newline newline
31160 \begin_layout Plain Layout
31164 renewenvironment{lyxgreyedout}
31167 \begin_layout Plain Layout
31171 textcolor[gray]{0.8}
31181 \begin_inset Note Greyedout
31184 \begin_layout Plain Layout
31185 This is text of a comment that appears grey in the output.
31194 \begin_layout Plain Layout
31198 renewenvironment{lyxgreyedout}
31201 \begin_layout Plain Layout
31215 \begin_inset Note Note
31218 \begin_layout Plain Layout
31219 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31221 because greyed out notes are redefined in the preamble of this document,
31222 as described below, to have blue text.
31228 \begin_inset Newline newline
31232 \begin_inset Newline newline
31235 As you can see in the example, the first line of greyed out notes is a bit
31236 indented and greyed out notes can have footnotes.
31239 \begin_layout Standard
31240 \begin_inset VSpace bigskip
31243 When you use the toolbar button
31253 \begin_inset space ~
31259 You can switch between the three note types by right-clicking on the note-box.
31264 If you want to turn existing text into a note, mark it and click on the
31278 To change a note to text, press the backspace key when the cursor is in
31279 the first position of a note, or press the delete key when the cursor is
31280 in the very last position of the note, respectively.
31283 \begin_layout Standard
31284 \begin_inset VSpace bigskip
31287 You can change the text color of the greyed out notes in the menu
31289 Document\SpecialChar menuseparator
31290 Settings\SpecialChar menuseparator
31296 \begin_layout Section
31298 \begin_inset CommandInset label
31300 name "sec:Footnotes"
31305 \begin_inset Index idx
31308 \begin_layout Plain Layout
31315 \begin_inset Index idx
31318 \begin_layout Plain Layout
31327 \begin_layout Standard
31328 Footnotes can be inserted using the toolbar button
31331 arg "footnote-insert"
31336 Insert\SpecialChar menuseparator
31340 You will then see the following footnote-box:
31341 \begin_inset Graphics
31342 filename clipart/footnote.png
31344 scaleBeforeRotation
31352 where you can enter the footnote text.
31353 If you want to turn existing text into a footnote, mark it and click on
31379 key when the cursor is in the first position of a
31391 key when the cursor is in the very last position of the
31402 \begin_layout Standard
31403 Here is an example footnote:
31411 \begin_layout Plain Layout
31412 \begin_inset CommandInset label
31414 name "foot:This-is-an"
31418 This is an example footnote.
31431 \begin_layout Plain Layout
31435 newcounter{MyRepeatFoot}
31438 \begin_layout Plain Layout
31442 setcounter{MyRepeatFoot}{
31452 \begin_layout Standard
31453 The footnote will appear in the output as a superscript number at the text
31454 position where the footnote box is placed.
31455 The footnote text is placed at the bottom of the current page.
31456 The footnote number is calculated by \SpecialChar LaTeX
31457 ; the numbers are consecutive.
31458 Whether the footnote number is reset for every chapter depends on your
31462 \begin_layout Standard
31463 Footnotes can be referenced like floats: Insert a label into the footnote
31464 and cross-reference this label in the text as described in section
31465 \begin_inset space ~
31469 \begin_inset CommandInset ref
31471 reference "sec:Referencing-Floats"
31476 \begin_inset Newline newline
31479 This is a cross-reference of Footnote
31480 \begin_inset space ~
31484 \begin_inset CommandInset ref
31486 reference "foot:This-is-an"
31493 \begin_layout Standard
31494 \begin_inset VSpace defskip
31497 Footnotes in title environments are usually not numbered with symbols and
31498 they cannot contain several paragraphs.
31499 See for example the footnote in the titling of this document.
31502 \begin_layout Standard
31503 \begin_inset VSpace defskip
31506 Footnotes in tables are not printed by \SpecialChar LaTeX
31507 due to technical reasons.
31508 However there exists another method to print them: Instead of the footnote
31515 is inserted as \SpecialChar TeX
31517 The text of the footnote is entered as an argument of the \SpecialChar TeX
31526 \begin_inset Newline newline
31529 This was done for the following table with the command
31532 \begin_layout Standard
31539 Printed table footnote.
31544 \begin_layout Standard
31545 \begin_inset Tabular
31546 <lyxtabular version="3" rows="2" columns="1">
31547 <features tabularvalignment="middle">
31548 <column alignment="center" valignment="top">
31550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31553 \begin_layout Plain Layout
31554 This an example text.
31558 \begin_layout Plain Layout
31559 This footnote will not be printed!
31571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31574 \begin_layout Plain Layout
31575 This an example text.
31579 \begin_layout Plain Layout
31602 \begin_layout Plain Layout
31611 Printed table footnote.
31615 \begin_layout Plain Layout
31625 \begin_layout Standard
31626 Footnotes in multi-page tables are described in section
31627 \begin_inset space ~
31631 \begin_inset CommandInset ref
31633 reference "subsec:Footnotes-in-Multi-page"
31640 \begin_layout Standard
31641 Footnotes in minipage boxes are printed, but inside the box and with a different
31642 numbering because a minipage box is like a page inside a page.
31643 (For more about minipages, see section
31644 \begin_inset space ~
31648 \begin_inset CommandInset ref
31650 reference "sec:Minipages"
31654 .) To get a footnote in the minipage that is output at the bottom of the
31655 page like normal footnotes, also use the method of
31670 \begin_layout Standard
31671 \begin_inset Box Frameless
31681 height_special "totalheight"
31686 backgroundcolor "none"
31689 \begin_layout Plain Layout
31690 This an example text in a minipage.
31694 \begin_layout Plain Layout
31695 Footnote in the minipage.
31703 \begin_layout Plain Layout
31704 This an example text in a minipage.
31708 \begin_layout Plain Layout
31725 \begin_layout Standard
31729 \begin_layout Plain Layout
31738 Footnote outside the minipage.
31742 \begin_layout Plain Layout
31752 \begin_layout Standard
31753 \begin_inset VSpace defskip
31759 \begin_layout Standard
31760 To refer to the same footnote several times without printing the footnote
31761 text every time, use the command
31765 footnotemark[number]
31767 in \SpecialChar TeX
31769 \begin_inset Newline newline
31772 As you do not know the number of the repeating footnote while you are writing
31773 the text, you have to store its number.
31774 For the following footnote mark example, these commands were inserted in
31776 code after Footnote
31777 \begin_inset space ~
31781 \begin_inset CommandInset ref
31783 reference "foot:This-is-an"
31787 to store the footnote number:
31790 \begin_layout Standard
31795 newcounter{MyRepeatFoot}
31796 \begin_inset Newline newline
31801 setcounter{MyRepeatFoot}{
31806 \begin_layout Standard
31807 The footnote mark was then created with this command:
31810 \begin_layout Standard
31820 \begin_layout Standard
31821 Here is a repeated footnote:
31829 \begin_layout Plain Layout
31843 \begin_layout Standard
31844 If you want to repeat the previous footnote, you can omit the storage of
31845 the footnote number and just use this command instead:
31848 \begin_layout Standard
31858 \begin_layout Standard
31859 Here is another repeated footnote:
31867 \begin_layout Plain Layout
31881 \begin_layout Subsection
31883 \begin_inset CommandInset label
31885 name "subsec:Footnote-Numbering"
31890 \begin_inset Index idx
31893 \begin_layout Plain Layout
31894 Footnotes ! Numbering
31902 \begin_layout Standard
31903 To reset the footnote number back to 1 after each section
31905 , add this command to your document preamble:
31908 \begin_layout Standard
31913 @addtoreset{footnote}{section}
31916 \begin_layout Standard
31917 \begin_inset VSpace bigskip
31920 The following preamble command changes the footnote numbering style to small
31924 \begin_layout Standard
31936 \begin_layout Standard
31940 \begin_layout Plain Layout
31953 This is a footnote with roman numbering:
31957 \begin_layout Plain Layout
31958 This is an example footnote with roman numbering.
31966 \begin_layout Standard
31967 To change the numbering style to capital roman numerals replace in the command
31982 \begin_inset Quotes eld
31986 \begin_inset Quotes erd
31989 footnotes with capital or small Latin letters use
32003 \begin_inset Quotes eld
32007 \begin_inset Quotes erd
32010 footnotes with symbols use
32019 \begin_layout Standard
32020 \begin_inset Note Greyedout
32023 \begin_layout Plain Layout
32028 You can only number 26 footnotes with Latin letters, because this numbering
32029 is limited to single letters.
32035 \begin_inset Newline newline
32039 \begin_inset Note Greyedout
32042 \begin_layout Plain Layout
32047 You can only number 9 footnotes with symbols.
32055 \begin_layout Standard
32056 To return to the default numbering style after you have changed to another
32069 in the command above.
32073 \begin_layout Plain Layout
32089 \begin_layout Standard
32090 \begin_inset VSpace bigskip
32096 \begin_layout Standard
32097 If you want to have footnotes numbered in the scheme
32098 \begin_inset Quotes eld
32102 \begin_inset Quotes erd
32105 , add the following command to your document preamble:
32108 \begin_layout Standard
32113 numberwithin{footnote}{chapter}
32116 \begin_layout Standard
32117 To be able to use the command
32126 \begin_inset space ~
32131 in the document settings the option
32134 \begin_inset space ~
32138 \begin_inset space ~
32142 \begin_inset space ~
32150 \begin_layout Standard
32154 \begin_layout Plain Layout
32158 numberwithin{footnote}{chapter}
32163 This is another example footnote:
32169 \begin_layout Plain Layout
32170 This is a footnote numbered in the scheme
32171 \begin_inset Quotes eld
32175 \begin_inset Quotes erd
32189 \begin_layout Plain Layout
32205 \begin_layout Standard
32206 \begin_inset Note Greyedout
32209 \begin_layout Plain Layout
32220 always prints out the footnote number as arabic number; previous redefinitions
32221 to get non-arabic numbers are overwritten.
32229 \begin_layout Standard
32230 So to get for example the scheme
32231 \begin_inset Quotes eld
32237 \begin_inset Quotes erd
32240 , use this command instead of
32249 \begin_layout Standard
32263 \begin_layout Subsection
32265 \begin_inset Index idx
32268 \begin_layout Plain Layout
32269 Footnotes ! Placement
32277 \begin_layout Standard
32278 If you have several footnotes in one page, they appear without vertical
32279 space between them at the bottom of the page.
32280 To make them more readable you can e.
32281 \begin_inset space \thinspace{}
32285 \begin_inset space \space{}
32289 \begin_inset space \thinspace{}
32292 mm space with the following preamble command:
32295 \begin_layout Standard
32305 \begin_inset Newline newline
32319 \begin_layout Standard
32320 \begin_inset VSpace bigskip
32323 In a two-column document the footnotes appear at the bottom of every column,
32325 \begin_inset space ~
32329 \begin_inset CommandInset ref
32331 reference "fig:Standard-footnote-placement"
32336 If the footnotes should only appear at the bottom of the right column,
32338 \begin_inset space ~
32342 \begin_inset CommandInset ref
32344 reference "fig:Footnote-placement-in"
32348 , use the \SpecialChar LaTeX
32354 \begin_inset Index idx
32357 \begin_layout Plain Layout
32359 -packages ! ftnright
32364 with this command in the document preamble:
32367 \begin_layout Standard
32372 usepackage{ftnright}
32375 \begin_layout Standard
32376 \begin_inset Float figure
32382 \begin_layout Plain Layout
32385 \begin_inset Box Boxed
32395 height_special "totalheight"
32400 backgroundcolor "none"
32403 \begin_layout Plain Layout
32404 \begin_inset Graphics
32405 filename clipart/without_fntright.pdf
32407 scaleBeforeRotation
32419 \begin_layout Plain Layout
32420 \begin_inset Caption Standard
32422 \begin_layout Plain Layout
32423 \begin_inset CommandInset label
32425 name "fig:Standard-footnote-placement"
32429 Standard footnote placement in two-column documents.
32442 \begin_layout Standard
32443 \begin_inset Float figure
32449 \begin_layout Plain Layout
32452 \begin_inset Box Boxed
32462 height_special "totalheight"
32467 backgroundcolor "none"
32470 \begin_layout Plain Layout
32471 \begin_inset Graphics
32472 filename clipart/with_fntright.pdf
32474 scaleBeforeRotation
32486 \begin_layout Plain Layout
32487 \begin_inset Caption Standard
32489 \begin_layout Plain Layout
32490 \begin_inset CommandInset label
32492 name "fig:Footnote-placement-in"
32496 Footnote placement in two-column documents when the \SpecialChar LaTeX
32514 \begin_layout Standard
32515 \begin_inset VSpace bigskip
32518 In some scientific literature it is usual to collect the footnotes and print
32519 them in a separate paragraph at the end of a section, as in Figure
32520 \begin_inset space ~
32524 \begin_inset CommandInset ref
32526 reference "fig:Endnotes"
32531 They are then called
32532 \begin_inset Quotes eld
32536 \begin_inset Quotes erd
32540 \begin_inset Index idx
32543 \begin_layout Plain Layout
32549 To use endnotes instead of footnotes in your document, load in the menu
32552 Document\SpecialChar menuseparator
32553 Settings\SpecialChar menuseparator
32559 \begin_inset space ~
32563 \begin_inset space ~
32569 To insert the collected footnotes, insert the command
32572 \begin_layout Standard
32580 \begin_layout Standard
32581 in \SpecialChar TeX
32582 Code at the end of a section or chapter.
32585 \begin_layout Standard
32586 \begin_inset Float figure
32591 \begin_layout Plain Layout
32594 \begin_inset Box Boxed
32604 height_special "totalheight"
32609 backgroundcolor "none"
32612 \begin_layout Plain Layout
32613 \begin_inset Graphics
32614 filename clipart/endnotes.pdf
32616 scaleBeforeRotation
32628 \begin_layout Plain Layout
32629 \begin_inset Caption Standard
32631 \begin_layout Plain Layout
32632 \begin_inset CommandInset label
32634 name "fig:Endnotes"
32638 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32652 \begin_layout Standard
32653 \begin_inset VSpace medskip
32656 The paragraph heading for the endnotes isn't automatically translated into
32657 the document language, this must be done manually.
32658 The following preamble command translates the default English
32659 \begin_inset Quotes eld
32663 \begin_inset Quotes erd
32667 \begin_inset Quotes eld
32671 \begin_inset Quotes erd
32677 \begin_layout Standard
32684 notesname}{Anmerkungen}
32687 \begin_layout Standard
32688 \begin_inset VSpace medskip
32691 The numbering of endnotes can be changed like the footnote numbering as
32692 described in section
32693 \begin_inset space ~
32697 \begin_inset CommandInset ref
32699 reference "subsec:Footnote-Numbering"
32703 ; just replace the command
32716 To reset the endnote number use the command
32722 as described in section
32723 \begin_inset space ~
32727 \begin_inset CommandInset ref
32729 reference "subsec:Footnote-Numbering"
32733 and replace the command parameter
32744 \begin_layout Standard
32745 For endnotes there is the command
32749 endnotemark[number]
32751 similar to the command
32757 , that is described in section
32758 \begin_inset space ~
32762 \begin_inset CommandInset ref
32764 reference "sec:Footnotes"
32771 \begin_layout Standard
32772 \begin_inset VSpace bigskip
32775 Footnotes can also be placed in the page margin and the footnote text alignment
32776 can be changed, see the \SpecialChar LaTeX
32782 \begin_inset Index idx
32785 \begin_layout Plain Layout
32787 -packages ! footmisc
32793 \begin_inset CommandInset citation
32800 for more information about this.
32803 \begin_layout Standard
32804 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32806 \begin_inset CommandInset citation
32808 key "latexcompanion,latexguide,latexbook"
32819 \begin_inset Index idx
32822 \begin_layout Plain Layout
32824 -packages ! KOMA-Script
32829 document class, you can adjust all footnote settings using class-specific
32831 \begin_inset CommandInset citation
32841 \begin_layout Section
32843 \begin_inset Index idx
32846 \begin_layout Plain Layout
32847 Notes ! Margin Notes
32855 \begin_layout Standard
32856 Margin notes look and behave in \SpecialChar LyX
32858 They are inserted via the menu
32860 Insert\SpecialChar menuseparator
32862 \begin_inset space ~
32867 or the toolbar button
32870 arg "marginalnote-insert"
32884 \begin_inset Quotes eld
32888 \begin_inset Quotes erd
32891 appears where you can enter the text of the margin note.
32894 \begin_layout Standard
32895 At the side is an example margin note.
32900 \begin_inset Marginal
32903 \begin_layout Plain Layout
32904 This is a margin note.
32912 \begin_layout Standard
32913 Margin notes appear at the right side in single-sided documents.
32914 In double-sided documents they appear in the outer margin – left on even
32915 pages, right on odd pages.
32916 The text of margin notes is aligned opposite to the outer margin – right-aligne
32917 d when the note appears in the left margin.
32918 The first line of the margin note is placed at the position of the text
32919 line where it is inserted in the document.
32922 \begin_layout Standard
32923 \begin_inset VSpace bigskip
32926 To place the margin note in the inner margin, add the command
32929 \begin_layout Standard
32937 \begin_layout Standard
32938 in \SpecialChar TeX
32939 Code before a margin note.
32940 The new placement is valid for all subsequent margin notes.
32945 \begin_layout Plain Layout
32955 \begin_inset Marginal
32958 \begin_layout Plain Layout
32959 This is a margin note in the inner margin.
32967 \begin_inset Newline newline
32973 \begin_inset Note Greyedout
32976 \begin_layout Plain Layout
32981 There is often not enough space in the inner margin so that the notes are
32982 not correctly displayed in the output.
32990 \begin_layout Standard
32991 To return to the default placement insert the command
32994 \begin_layout Standard
33002 \begin_layout Standard
33003 in \SpecialChar TeX
33008 \begin_layout Plain Layout
33018 \begin_inset Note Greyedout
33021 \begin_layout Plain Layout
33026 The command is ignored when it is within a paragraph where also the command
33041 \begin_layout Standard
33042 \begin_inset VSpace bigskip
33049 \begin_inset Marginal
33052 \begin_layout Plain Layout
33053 AVeryLongMarginParWord that isn't hyphenated.
33061 Similar to the case described in section
33062 \begin_inset space ~
33066 \begin_inset CommandInset ref
33068 reference "subsec:Multiple-Lines-in"
33072 , long words cannot be hyphenated when they are the first word in a margin
33074 To avoid this, insert 0
33075 \begin_inset space \thinspace{}
33078 pt horizontal space before the word
33083 \begin_inset Marginal
33086 \begin_layout Plain Layout
33087 \begin_inset space \hspace*{}
33091 AVeryLongMarginParWord that is hyphenated.
33099 \begin_layout Standard
33100 \begin_inset VSpace bigskip
33106 \begin_layout Standard
33107 \begin_inset Note Greyedout
33110 \begin_layout Plain Layout
33115 Margin notes can normally not be used inside tables, floats, and footnotes.
33123 \begin_layout Standard
33124 \begin_inset VSpace bigskip
33130 \begin_layout Standard
33134 \begin_layout Plain Layout
33144 \begin_inset Note Note
33147 \begin_layout Plain Layout
33148 The following section will only be displayed when the \SpecialChar LaTeX
33161 \begin_layout Standard
33162 This restriction can be evaded by using the \SpecialChar LaTeX
33168 \begin_inset Index idx
33171 \begin_layout Plain Layout
33173 -packages ! marginnote
33179 By adding these two lines to your document preamble, the command used by
33181 for margin notes is redefined to use the command provided by the
33188 \begin_layout Standard
33193 usepackage{marginnote}
33194 \begin_inset Newline newline
33206 \begin_layout Standard
33207 This is also used in this document because
33211 has another useful feature: You can set a vertical offset for the note.
33212 This is often needed when too many margin notes are too close together
33213 or for a better page layout.
33214 The offset is set in \SpecialChar LyX
33215 as \SpecialChar TeX
33216 Code directly after the margin note in the scheme
33219 \begin_layout Standard
33225 \begin_layout Standard
33226 where the offset is a length with one of the units listed in Table
33227 \begin_inset space ~
33231 \begin_inset CommandInset ref
33233 reference "tab:Units"
33238 A negative value shifts the note up, a positive value shifts it down.
33242 For example the margin note beside this text line is shifted up 1.5
33243 \begin_inset space \thinspace{}
33246 cm with the \SpecialChar TeX
33248 \begin_inset Quotes eld
33258 \begin_inset Quotes erd
33262 \begin_inset Marginal
33265 \begin_layout Plain Layout
33266 This margin note is shifted up 1.5
33267 \begin_inset space \thinspace{}
33270 cm from its original position.
33282 \begin_layout Plain Layout
33292 \begin_layout Standard
33293 \begin_inset VSpace medskip
33300 you can also change the alignment of the text in the margin note.
33301 For example the commands
33304 \begin_layout Standard
33311 raggedleftmarginnote}{
33314 \begin_inset Newline newline
33321 raggedrightmarginnote}{
33326 \begin_layout Standard
33327 set the alignment to centered.
33332 raggedleftmarginnote
33334 denotes margin notes that appear at the left side.
33341 \begin_layout Plain Layout
33347 raggedleftmarginnote}{
33352 \begin_layout Plain Layout
33358 raggedrightmarginnote}{
33366 \begin_inset Marginal
33369 \begin_layout Plain Layout
33370 The text of this margin note is centered.
33381 \begin_layout Standard
33388 raggedleftmarginnote}{
33391 \begin_inset Newline newline
33398 raggedrightmarginnote}{
33407 \begin_layout Plain Layout
33413 raggedleftmarginnote}{
33418 \begin_layout Plain Layout
33424 raggedrightmarginnote}{
33434 \begin_layout Standard
33435 \begin_inset VSpace medskip
33438 For the other features of
33442 refer to its documentation
33443 \begin_inset CommandInset citation
33453 \begin_layout Standard
33454 \begin_inset VSpace bigskip
33457 You can adjust the layout of margin notes by changing its definition.
33458 To create for example a header for all margin notes with the underlined,
33459 sans-serif, and bold header text
33460 \begin_inset Quotes eld
33472 \begin_inset Quotes erd
33475 , add this to your document preamble:
33478 \begin_layout Standard
33488 \begin_inset Newline newline
33498 \begin_inset Newline newline
33502 \begin_inset Phantom HPhantom
33505 \begin_layout Plain Layout
33508 \begin_inset space ~
33524 underbar{Attention!}}}%
33525 \begin_inset Newline newline
33529 \begin_inset Phantom HPhantom
33532 \begin_layout Plain Layout
33535 \begin_inset space ~
33552 \begin_layout Standard
33559 \begin_layout Plain Layout
33570 \begin_layout Plain Layout
33581 \begin_layout Plain Layout
33589 underbar{Attention!}}}%
33592 \begin_layout Plain Layout
33606 \begin_inset Marginal
33609 \begin_layout Plain Layout
33610 This is a margin note with a defined heading.
33622 \begin_layout Plain Layout
33636 \begin_layout Plain Layout
33653 \begin_inset Note Note
33656 \begin_layout Plain Layout
33657 The margin note format is changed only for this example.
33665 \begin_layout Standard
33669 \begin_layout Plain Layout
33679 \begin_inset Note Note
33682 \begin_layout Plain Layout
33683 The following will be displayed when the \SpecialChar LaTeX
33696 \begin_layout Standard
33697 You need to install the \SpecialChar LaTeX
33702 to see the following part of this section in the output.
33705 \begin_layout Standard
33709 \begin_layout Plain Layout
33721 \begin_layout Chapter
33725 \begin_layout Section
33727 \begin_inset Index idx
33730 \begin_layout Plain Layout
33731 Boxes ! Introduction
33739 \begin_layout Standard
33740 Boxes are used to format a block of text.
33741 Boxes can be used to write documents with multiple languages, see section
33742 \begin_inset space ~
33746 \begin_inset CommandInset ref
33748 reference "sec:Minipages"
33752 , to frame texts, see section
33753 \begin_inset space ~
33757 \begin_inset CommandInset ref
33759 reference "sec:Decoration"
33763 , to prevent words from being hyphenated, see section
33764 \begin_inset space ~
33768 \begin_inset CommandInset ref
33770 reference "sec:Prevent-Hyphenation"
33774 , to align text, see section
33775 \begin_inset space ~
33779 \begin_inset CommandInset ref
33781 reference "subsec:Vertical-Alignment"
33785 , or to set the background color of texts, see section
33786 \begin_inset space ~
33790 \begin_inset CommandInset ref
33792 reference "sec:Colored-Boxes"
33799 \begin_layout Standard
33800 Boxes can be inserted with the menu
33802 Insert\SpecialChar menuseparator
33805 or the toolbar button
33808 arg "box-insert Frameless"
33812 A grey box with the label
33817 \begin_inset Graphics
33818 filename clipart/BoxInsetDefault.png
33820 scaleBeforeRotation
33825 The box type can be specified by right-clicking on the box and selecting
33831 The box dialog offers the
33834 \begin_inset space ~
33856 is the default for new boxes and is explained in section
33857 \begin_inset space ~
33861 \begin_inset CommandInset ref
33863 reference "sec:Minipages"
33871 is described in section
33872 \begin_inset space ~
33876 \begin_inset CommandInset ref
33878 reference "sec:Parboxes"
33887 \begin_inset CommandInset ref
33889 reference "sec:Prevent-Hyphenation"
33896 \begin_layout Standard
33897 Boxes are not numbered and can therefore not be referenced like floats or
33901 \begin_layout Standard
33902 \begin_inset Note Greyedout
33905 \begin_layout Plain Layout
33910 Boxes must not be the item in an
33926 \begin_layout Standard
33927 \begin_inset Note Greyedout
33930 \begin_layout Plain Layout
33935 For an unknown reason you can only set the
33938 \begin_inset space ~
33947 when you use a framed box.
33951 \begin_inset space ~
33956 type and without frames are explained in section
33957 \begin_inset space ~
33961 \begin_inset CommandInset ref
33963 reference "sec:Prevent-Hyphenation"
33975 \begin_layout Section
33977 \begin_inset CommandInset label
33979 name "sec:Box-Dialog"
33984 \begin_inset Index idx
33987 \begin_layout Plain Layout
33996 \begin_layout Subsection
33998 \begin_inset Index idx
34001 \begin_layout Plain Layout
34010 \begin_layout Standard
34011 In the box dialog you can adjust the box geometry in the fields
34020 The available units for the geometry are explained in Table
34021 \begin_inset space ~
34025 \begin_inset CommandInset ref
34027 reference "tab:Units"
34036 offers the following additional sizes:
34039 \begin_layout Description
34040 Depth This is the plain text
34041 \begin_inset Quotes eld
34045 \begin_inset Quotes erd
34049 It ignores the total depth when there are multiple text lines in the box:
34050 \begin_inset Newline newline
34054 \begin_inset Newline newline
34058 \begin_inset Newline newline
34062 \begin_inset Box Boxed
34072 height_special "depth"
34077 backgroundcolor "none"
34080 \begin_layout Plain Layout
34082 Box height set to 1
34083 \begin_inset space \thinspace{}
34092 \begin_inset Newline newline
34096 \begin_inset Newline newline
34102 \begin_layout Description
34103 Height This is the height of the text that is inside the box.
34105 \begin_inset space \thinspace{}
34109 \begin_inset space \space{}
34112 2 for this size will set the box height to 2
34113 \begin_inset space ~
34116 times the text height:
34117 \begin_inset Box Boxed
34127 height_special "height"
34132 backgroundcolor "none"
34135 \begin_layout Plain Layout
34137 Box height set to 2
34138 \begin_inset space \thinspace{}
34149 \begin_layout Description
34151 \begin_inset space ~
34154 Height This is the Height
34155 \begin_inset space \thinspace{}
34159 \begin_inset space \thinspace{}
34163 \begin_inset Box Boxed
34173 height_special "totalheight"
34178 backgroundcolor "none"
34181 \begin_layout Plain Layout
34183 Box height set to 1
34184 \begin_inset space \thinspace{}
34188 \begin_inset space ~
34199 \begin_layout Description
34200 Width This sets the width of the box as height:
34201 \begin_inset Box Boxed
34211 height_special "width"
34216 backgroundcolor "none"
34219 \begin_layout Plain Layout
34221 Box height set to 1
34222 \begin_inset space \thinspace{}
34233 \begin_layout Subsection
34235 \begin_inset Index idx
34238 \begin_layout Plain Layout
34247 \begin_layout Standard
34248 When you have chosen an
34251 \begin_inset space ~
34256 , the vertical box alignment can be:
34259 \begin_layout Description
34260 Top This is an example text line.
34262 \begin_inset Box Boxed
34272 height_special "totalheight"
34277 backgroundcolor "none"
34280 \begin_layout Plain Layout
34282 This box is top-aligned.
34287 This is an example text line.
34290 \begin_layout Description
34291 Middle This is an example text line.
34293 \begin_inset Box Boxed
34303 height_special "totalheight"
34308 backgroundcolor "none"
34311 \begin_layout Plain Layout
34313 This box is middle-aligned.
34318 This is an example text line.
34321 \begin_layout Description
34322 Bottom This is an example text line.
34324 \begin_inset Box Boxed
34334 height_special "totalheight"
34339 backgroundcolor "none"
34342 \begin_layout Plain Layout
34344 This box is bottom-aligned.
34349 This is an example text line.
34352 \begin_layout Standard
34353 \begin_inset Note Greyedout
34356 \begin_layout Plain Layout
34361 The vertical box alignment can be lost in the output when you have two
34362 boxes in a line and one has e.
34363 \begin_inset space \thinspace{}
34367 \begin_inset space \space{}
34370 a shadow and the other one not.
34378 \begin_layout Standard
34379 The horizontal box alignment can be set via \SpecialChar LyX
34380 's paragraph dialog when you
34381 set the box into its own paragraph.
34384 \begin_layout Standard
34385 \begin_inset VSpace bigskip
34388 When you have chosen an
34391 \begin_inset space ~
34396 , the box content can be aligned vertically to:
34399 \begin_layout Description
34400 top This is an example text line.
34402 \begin_inset Box Boxed
34412 height_special "totalheight"
34417 backgroundcolor "none"
34420 \begin_layout Plain Layout
34422 This box text is top-aligned.
34427 This is an example text line.
34430 \begin_layout Description
34431 middle This is an example text line.
34433 \begin_inset Box Boxed
34443 height_special "totalheight"
34448 backgroundcolor "none"
34451 \begin_layout Plain Layout
34453 This box text is middle-aligned.
34458 This is an example text line.
34461 \begin_layout Description
34462 bottom This is an example text line.
34464 \begin_inset Box Boxed
34474 height_special "totalheight"
34479 backgroundcolor "none"
34482 \begin_layout Plain Layout
34484 This box text is bottom-aligned.
34489 This is an example text line.
34492 \begin_layout Description
34493 stretch This is an example text line.
34495 \begin_inset Box Boxed
34505 height_special "totalheight"
34510 backgroundcolor "none"
34513 \begin_layout Plain Layout
34518 \begin_layout Plain Layout
34523 \begin_layout Plain Layout
34530 This is an example text line.
34533 \begin_layout Standard
34534 To stretch the box content, it must consist of more than one paragraph.
34535 In the example above every text line is in an own paragraph.
34538 \begin_layout Standard
34539 \begin_inset VSpace bigskip
34542 To align the box content horizontally you can use \SpecialChar LyX
34543 's paragraph dialog when
34547 \begin_inset space ~
34555 \begin_layout Standard
34557 \begin_inset Box Boxed
34567 height_special "totalheight"
34572 backgroundcolor "none"
34575 \begin_layout Plain Layout
34580 \begin_layout Plain Layout
34585 \begin_layout Plain Layout
34595 \begin_layout Standard
34596 If you have not set an
34599 \begin_inset space ~
34604 , you can align the box content horizontally in the box dialog.
34607 \begin_layout Standard
34609 \begin_inset Box Boxed
34619 height_special "totalheight"
34624 backgroundcolor "none"
34627 \begin_layout Plain Layout
34628 This box text is horizontally stretched.
34636 \begin_layout Subsection
34638 \begin_inset CommandInset label
34640 name "sec:Decoration"
34645 \begin_inset Index idx
34648 \begin_layout Plain Layout
34657 \begin_layout Standard
34658 The type of the box can be specified in the box dialog in the drop-down
34664 The following types are possible:
34667 \begin_layout Description
34669 \begin_inset space ~
34672 frame Nothing is drawn.
34675 \begin_layout Description
34677 \begin_inset space ~
34681 \begin_inset space ~
34684 frame This draws a rectangular frame around the box.
34685 The frame line thickness can be specified.
34687 \begin_inset Box Boxed
34697 height_special "totalheight"
34702 backgroundcolor "none"
34705 \begin_layout Plain Layout
34715 \begin_layout Description
34717 \begin_inset space ~
34721 \begin_inset space ~
34724 thin This draws an oval frame around the box.
34725 The frame line thickness has the size 0.4
34726 \begin_inset space \thinspace{}
34731 \begin_inset Box ovalbox
34741 height_special "totalheight"
34746 backgroundcolor "none"
34749 \begin_layout Plain Layout
34759 \begin_layout Description
34761 \begin_inset space ~
34765 \begin_inset space ~
34768 thick This draws an oval frame around the box.
34769 The frame line thickness has the size 0.8
34770 \begin_inset space \thinspace{}
34775 \begin_inset Box Ovalbox
34785 height_special "totalheight"
34790 backgroundcolor "none"
34793 \begin_layout Plain Layout
34803 \begin_layout Description
34805 \begin_inset space ~
34808 shadow This draws a rectangular frame with a shadow around the box.
34809 The frame line thickness and the shadow can be specified.
34811 \begin_inset Box Shadowbox
34821 height_special "totalheight"
34826 backgroundcolor "none"
34829 \begin_layout Plain Layout
34839 \begin_layout Description
34841 \begin_inset space ~
34844 background This draws a box with a red background.
34845 Unlike colored boxes
34849 \begin_layout Plain Layout
34851 \begin_inset space \thinspace{}
34855 \begin_inset CommandInset ref
34857 reference "sec:Colored-Boxes"
34866 , it always uses the whole column width and the box is set as its own paragraph.
34868 \begin_inset Box Shaded
34878 height_special "totalheight"
34883 backgroundcolor "none"
34886 \begin_layout Plain Layout
34887 Shaded background box
34895 \begin_layout Description
34897 \begin_inset space ~
34901 \begin_inset space ~
34904 frame This draws a double-line rectangular frame around the box.
34905 The line thickness of the inner frame is 0.75
34906 \begin_inset space \thinspace{}
34910 \begin_inset space ~
34913 thickness, the thickness of the outer frame is 1.5
34914 \begin_inset space \thinspace{}
34918 \begin_inset space ~
34922 The distance between the lines is 1.5
34923 \begin_inset space \thinspace{}
34927 \begin_inset space ~
34931 \begin_inset space \thinspace{}
34935 \begin_inset space \thinspace{}
34939 \begin_inset space \thinspace{}
34944 \begin_inset Box Doublebox
34954 height_special "totalheight"
34959 backgroundcolor "none"
34962 \begin_layout Plain Layout
34964 Double rectangular box
34972 \begin_layout Standard
34973 \begin_inset VSpace bigskip
34977 's box label will reflect the different frame types.
34978 To be able to use all types, the \SpecialChar LaTeX
34984 \begin_inset Index idx
34987 \begin_layout Plain Layout
34989 -packages ! fancybox
34997 \begin_layout Standard
34998 \begin_inset VSpace bigskip
35001 When you use the decoration
35003 simple rectangular frame
35005 and no inner box, you can allow page breaks within a box.
35006 Note that then, unlike other framed boxes, the frame always uses the whole
35007 column width and the box is set as its own paragraph:
35008 \begin_inset Box Framed
35018 height_special "totalheight"
35023 backgroundcolor "none"
35026 \begin_layout Plain Layout
35027 Allow page break box
35035 \begin_layout Section
35037 \begin_inset Index idx
35040 \begin_layout Plain Layout
35041 Boxes ! Customization
35049 \begin_layout Standard
35050 The diameter of the round corners of the oval boxes can be set with the
35061 \begin_layout Standard
35069 \begin_layout Standard
35070 sets the diameter to 1
35071 \begin_inset space \thinspace{}
35078 \begin_layout Standard
35086 \begin_layout Standard
35087 sets the diameter to
35090 \begin_inset space \thinspace{}
35094 \begin_inset space \thinspace{}
35097 minimum(width and height of box)
35109 \begin_layout Standard
35113 \begin_layout Plain Layout
35123 \begin_inset Box Ovalbox
35133 height_special "totalheight"
35138 backgroundcolor "none"
35141 \begin_layout Plain Layout
35150 \begin_inset space \thinspace{}
35154 \begin_inset space \thinspace{}
35158 \begin_inset space \thinspace{}
35170 \begin_layout Plain Layout
35182 \begin_layout Standard
35183 \begin_inset VSpace bigskip
35189 \begin_layout Standard
35190 The default background color red of
35194 boxes can either be changed locally with the command
35198 definecolor{shadecolor}
35200 or globally with the menu
35202 Tools\SpecialChar menuseparator
35203 Preferences\SpecialChar menuseparator
35204 Colors\SpecialChar menuseparator
35206 \begin_inset space ~
35218 command is explained in section
35219 \begin_inset space ~
35223 \begin_inset CommandInset ref
35225 reference "sec:Colored-Tables"
35233 \begin_layout Plain Layout
35240 requires the \SpecialChar LaTeX
35245 in the preamble, see section
35246 \begin_inset space ~
35250 \begin_inset CommandInset ref
35252 reference "sec:Colored-Boxes"
35261 For example the appearance of the following shaded background box is set
35262 with the \SpecialChar TeX
35266 \begin_layout Standard
35271 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35274 \begin_layout Standard
35278 \begin_layout Plain Layout
35282 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35288 \begin_inset Box Shaded
35298 height_special "totalheight"
35303 backgroundcolor "none"
35306 \begin_layout Plain Layout
35309 This is yellow text in a
35319 box with dark green background.
35328 \begin_layout Plain Layout
35332 definecolor{shadecolor}{rgb}{1,0,0}
35340 \begin_layout Standard
35341 \begin_inset VSpace bigskip
35344 Manually changed sizes and colors are valid for all boxes following the
35345 commands that change them.
35348 \begin_layout Section
35350 \begin_inset CommandInset label
35352 name "sec:Minipages"
35357 \begin_inset Index idx
35360 \begin_layout Plain Layout
35369 \begin_layout Standard
35370 Minipages are treated by \SpecialChar LaTeX
35371 as pages within pages and can therefore for example
35372 have their own footnotes.
35375 \begin_layout Standard
35376 Minipages are useful when you write documents with different languages.
35379 \begin_layout Standard
35380 Below are two example minipages side by side.
35381 Their width is set to 45
35382 \begin_inset space \thinspace{}
35385 col% and they are separated by a horizontal fill, that was inserted via
35388 Insert\SpecialChar menuseparator
35390 \begin_inset space ~
35393 Formatting\SpecialChar menuseparator
35395 \begin_inset space ~
35401 \begin_inset Newpage newpage
35407 \begin_layout Standard
35408 \begin_inset Box Frameless
35418 height_special "totalheight"
35423 backgroundcolor "none"
35426 \begin_layout Plain Layout
35429 Dies ist ein deutscher Text.
35430 Dies ist ein deutscher Text.
35431 Dies ist ein deutscher Text.
35432 Dies ist ein deutscher Text.
35433 Dies ist ein deutscher Text.
35434 Dies ist ein deutscher Text.
35435 Dies ist ein deutscher Text.
35436 Dies ist ein deutscher Text.
35437 Dies ist ein deutscher Text.
35438 Dies ist ein deutscher Text.
35439 Dies ist ein deutscher Text.
35440 Dies ist ein deutscher Text.
35441 Dies ist ein deutscher Text
35445 \begin_layout Plain Layout
35448 Dies ist eine deutsche Fußnote.
35454 Dies ist ein deutscher Text.
35455 Dies ist ein deutscher Text.
35461 \begin_inset space \hfill{}
35465 \begin_inset Box Frameless
35475 height_special "totalheight"
35480 backgroundcolor "none"
35483 \begin_layout Plain Layout
35484 This is an English Text.
35485 This is an English Text.
35486 This is an English Text.
35487 This is an English Text.
35488 This is an English Text.
35489 This is an English Text.
35490 This is an English Text.
35491 This is an English Text.
35492 This is an English Text.
35493 This is an English Text.
35494 This is an English Text.
35495 This is an English Text.
35496 This is an English Text.
35497 This is an English Text.
35498 This is an English Text.
35499 This is an English Text.
35503 \begin_layout Plain Layout
35504 This is an English footnote.
35509 This is an English Text.
35517 \begin_layout Standard
35518 \begin_inset VSpace bigskip
35521 The document-wide paragraph settings are ignored within minipages.
35522 That means that there will be no space between paragraphs in minipages
35523 although you set it to e.
35524 \begin_inset space \thinspace{}
35528 \begin_inset space \space{}
35535 in the document settings.
35538 \begin_layout Standard
35539 Minipages can also be used to set a background color for text parts, see
35541 \begin_inset space ~
35545 \begin_inset CommandInset ref
35547 reference "sec:Colored-Boxes"
35554 \begin_layout Standard
35555 \begin_inset Note Greyedout
35558 \begin_layout Plain Layout
35563 You cannot have floats or margin notes inside minipages but minipages can
35564 be used inside tables, floats, and other boxes.
35572 \begin_layout Standard
35573 \begin_inset VSpace bigskip
35579 \begin_layout Standard
35581 has also basic support for minipages whose size is automatically determined
35582 by the width of their contents, via the module
35584 Variable-width Minipages
35587 The \SpecialChar LyX
35590 varwidth-floats-side-by-side
35592 gives examples of variable-width minipages used for placing two floats
35596 \begin_layout Section
35598 \begin_inset CommandInset label
35600 name "sec:Parboxes"
35605 \begin_inset Index idx
35608 \begin_layout Plain Layout
35617 \begin_layout Standard
35618 Parboxes are very similar to minipages with the difference that they cannot
35622 \begin_layout Standard
35624 \begin_inset Box Frameless
35634 height_special "totalheight"
35639 backgroundcolor "none"
35642 \begin_layout Plain Layout
35643 This a text within a parbox.
35644 This a text within a parbox.
35647 \begin_layout Plain Layout
35648 This footnote won't appear:
35652 \begin_layout Plain Layout
35653 This footnote is inside a parbox and will therefore not appear.
35666 \begin_layout Section
35667 Boxes for Words and Characters
35668 \begin_inset Index idx
35671 \begin_layout Plain Layout
35672 Boxes ! for Characters
35680 \begin_layout Subsection
35681 Prevent Hyphenation
35682 \begin_inset CommandInset label
35684 name "sec:Prevent-Hyphenation"
35689 \begin_inset Index idx
35692 \begin_layout Plain Layout
35693 Boxes ! to Prevent Hyphenation
35701 \begin_layout Standard
35702 You can use the box type
35706 to prevent words or text from being hyphenated.
35707 \begin_inset Newline newline
35710 Here is an example text:
35713 \begin_layout Standard
35714 This line is an example to show how you can prevent the hyphenation of
35715 \begin_inset Quotes eld
35719 \begin_inset Quotes erd
35725 \begin_layout Standard
35726 To prevent the hyphenation of the word
35727 \begin_inset Quotes eld
35731 \begin_inset Quotes erd
35734 , put the word into a box, set the
35737 \begin_inset space ~
35746 and use no explicit width.
35749 \begin_layout Standard
35750 This is the result:
35753 \begin_layout Standard
35754 This line is an example to show how you can prevent the hyphenation of
35755 \begin_inset Box Frameless
35765 height_special "totalheight"
35770 backgroundcolor "none"
35773 \begin_layout Plain Layout
35774 \begin_inset Quotes eld
35778 \begin_inset Quotes erd
35789 \begin_layout Standard
35790 You can alternatively set the command
35791 \begin_inset Quotes eld
35801 \begin_inset Quotes grd
35804 as \SpecialChar TeX
35805 Code directly before the word:
35808 \begin_layout Standard
35809 This line is an example to show how you can prevent the hyphenation of
35810 \begin_inset Quotes eld
35817 \begin_layout Plain Layout
35827 \begin_inset Quotes erd
35833 \begin_layout Standard
35834 Of course the word now protrudes over the side margin.
35835 To avoid this, add via the menu
35837 Insert\SpecialChar menuseparator
35838 Formatting\SpecialChar menuseparator
35840 \begin_inset space ~
35844 \begin_inset space ~
35852 arg "newline-insert newline"
35855 ) a line break before the word:
35858 \begin_layout Standard
35859 This line is an example to show how you can prevent the hyphenation of
35860 \begin_inset Newline newline
35864 \begin_inset Box Frameless
35874 height_special "totalheight"
35879 backgroundcolor "none"
35882 \begin_layout Plain Layout
35883 \begin_inset Quotes eld
35887 \begin_inset Quotes erd
35898 \begin_layout Subsection
35900 \begin_inset CommandInset label
35902 name "subsec:Vertical-Alignment"
35907 \begin_inset Index idx
35910 \begin_layout Plain Layout
35911 Boxes ! for Vertical Alignment
35917 \begin_inset Index idx
35920 \begin_layout Plain Layout
35929 \begin_layout Standard
35930 With the help of the command
35936 you can align words, characters or other boxes vertically relative to the
35944 is used with the following scheme:
35947 \begin_layout Standard
35952 raisebox{lift}[height][depth]{box content}
35955 \begin_layout Standard
35956 The lift can be a positive value to raise the box or a negative value to
35960 \begin_layout Standard
35961 To align for example the word
35962 \begin_inset Quotes eld
35966 \begin_inset Quotes erd
35969 so that the bottom of the
35970 \begin_inset Quotes eld
35974 \begin_inset Quotes erd
35978 \begin_inset Quotes eld
35982 \begin_inset Quotes erd
35985 is at the baseline, insert the command
35988 \begin_layout Standard
35998 \begin_layout Standard
35999 in \SpecialChar TeX
36000 Code before the word.
36001 After the word insert a closing brace
36002 \begin_inset Quotes eld
36010 \begin_inset Quotes erd
36013 in \SpecialChar TeX
36015 \begin_inset Newline newline
36018 This is the result:
36021 \begin_layout Standard
36022 This is a text line with the word
36026 \begin_layout Plain Layout
36038 \begin_inset Quotes eld
36042 \begin_inset Quotes erd
36049 \begin_layout Plain Layout
36059 \begin_layout Standard
36060 \begin_inset VSpace bigskip
36063 When you raise or lower characters in a line, the line distance will be
36067 \begin_layout Standard
36068 This is a text line with the word
36072 \begin_layout Plain Layout
36084 \begin_inset Quotes eld
36088 \begin_inset Quotes erd
36095 \begin_layout Plain Layout
36103 \begin_inset Newline newline
36106 This is a text line with the word
36110 \begin_layout Plain Layout
36120 \begin_inset Quotes eld
36124 \begin_inset Quotes erd
36131 \begin_layout Plain Layout
36141 \begin_layout Standard
36142 If you want to prevent this for a certain reason, set the box height to
36147 \begin_layout Standard
36157 \begin_layout Standard
36158 This is a text line with the word
36162 \begin_layout Plain Layout
36174 \begin_inset Quotes eld
36178 \begin_inset Quotes erd
36185 \begin_layout Plain Layout
36193 \begin_inset Newline newline
36197 \begin_inset Newline newline
36200 This is a text line with the word
36204 \begin_layout Plain Layout
36208 raisebox{0.5cm}[0pt]{
36214 \begin_inset Quotes eld
36218 \begin_inset Quotes erd
36225 \begin_layout Plain Layout
36235 \begin_layout Section
36237 \begin_inset CommandInset label
36239 name "sec:Colored-Boxes"
36244 \begin_inset Index idx
36247 \begin_layout Plain Layout
36256 \begin_layout Standard
36257 To color the background of a box just select the color you like in the box
36259 This is for example a box with orange background:
36260 \begin_inset Box Frameless
36270 height_special "totalheight"
36275 backgroundcolor "orange"
36278 \begin_layout Plain Layout
36279 Box with orange background
36287 \begin_layout Standard
36288 If you use the decoration
36291 \begin_inset space ~
36295 \begin_inset space ~
36300 you can set a frame color.
36301 In this case you must also specify a background color (LyX sets white as
36303 Here is an example:
36304 \begin_inset Box Boxed
36314 height_special "totalheight"
36319 backgroundcolor "yellow"
36322 \begin_layout Plain Layout
36323 Box with teal frame color and yellow background color
36331 \begin_layout Standard
36332 \begin_inset VSpace bigskip
36335 Of course you can also have colored text inside a colored box:
36336 \begin_inset Newline newline
36340 \begin_inset Box Boxed
36350 height_special "totalheight"
36355 backgroundcolor "magenta"
36358 \begin_layout Plain Layout
36361 This is colored text within a colored, framed box
36369 \begin_layout Standard
36370 \begin_inset VSpace bigskip
36376 \begin_layout Standard
36377 If you need another color than the predefined ones, you can define your
36378 own color as described in section
36379 \begin_inset space ~
36383 \begin_inset CommandInset ref
36385 reference "sec:Colored-Tables"
36390 To use your own color you must typeset the box by using TeX code:
36393 \begin_layout Standard
36394 Colored boxes without frame are created with the command
36401 It has the following scheme:
36404 \begin_layout Standard
36409 colorbox{color}{box content}
36412 \begin_layout Standard
36413 The box content can also be a box and colored boxes can also be within other
36416 \begin_inset space \thinspace{}
36420 \begin_inset space \space{}
36423 a darkgreen background for a word, insert the command
36426 \begin_layout Standard
36431 colorbox{darkgreen}{
36434 \begin_layout Standard
36435 before the word in \SpecialChar TeX
36437 After the word insert a closing brace
36438 \begin_inset Quotes eld
36446 \begin_inset Quotes erd
36449 in \SpecialChar TeX
36451 \begin_inset Newline newline
36454 This is the result:
36457 \begin_layout Standard
36458 This is a line where the word
36462 \begin_layout Plain Layout
36466 colorbox{darkgreen}{
36472 \begin_inset Quotes eld
36476 \begin_inset Quotes erd
36483 \begin_layout Plain Layout
36490 has a darkgreen background.
36493 \begin_layout Standard
36494 Framed, colored boxes are created with the command
36501 It has the following scheme:
36504 \begin_layout Standard
36509 fcolorbox{frame color}{box color}{box content}
36512 \begin_layout Section
36513 Rotated and Scaled Boxes
36516 \begin_layout Standard
36517 To use the boxes described in this section, the module
36521 must be loaded in the document settings.
36524 \begin_layout Standard
36525 \begin_inset Note Greyedout
36528 \begin_layout Plain Layout
36533 Not all DVI viewers are able to display rotated or scaled material.
36541 \begin_layout Standard
36542 \begin_inset Note Greyedout
36545 \begin_layout Plain Layout
36550 Floats are not allowed inside a rotated or scaled box.
36558 \begin_layout Subsection
36560 \begin_inset Index idx
36563 \begin_layout Plain Layout
36570 \begin_inset Index idx
36573 \begin_layout Plain Layout
36582 \begin_layout Standard
36583 To rotate material, you can put it into a
36588 Such a box is inserted via the menu
36590 Insert\SpecialChar menuseparator
36591 Custom Insets\SpecialChar menuseparator
36597 \begin_layout Standard
36598 The rotation origin can be specified via the inset
36604 Insert\SpecialChar menuseparator
36612 The following positions are possible:
36632 (top), along with meaningful combinations of the four base positions.
36637 means that the rotation origin is at the top left corner of the box.
36638 When no rotation origin is specified, the position
36643 The rotation angle is a number that can be negative that specifies the
36645 The rotation direction is counterclockwise.
36648 \begin_layout Standard
36649 In the following example
36653 was inserted to the
36661 was inserted to the
36668 \begin_layout Standard
36670 \begin_inset Flex Rotatebox
36673 \begin_layout Plain Layout
36674 \begin_inset Argument 1
36677 \begin_layout Plain Layout
36684 \begin_inset Argument 2
36687 \begin_layout Plain Layout
36701 \begin_layout Standard
36702 The box content can also be another box or an inline formula:
36705 \begin_layout Standard
36707 \begin_inset Flex Rotatebox
36710 \begin_layout Plain Layout
36711 \begin_inset Argument 1
36714 \begin_layout Plain Layout
36721 \begin_inset Argument 2
36724 \begin_layout Plain Layout
36731 \begin_inset Box Doublebox
36741 height_special "totalheight"
36746 backgroundcolor "none"
36749 \begin_layout Plain Layout
36761 \begin_inset Flex Rotatebox
36764 \begin_layout Plain Layout
36765 \begin_inset Argument 1
36768 \begin_layout Plain Layout
36775 \begin_inset Argument 2
36778 \begin_layout Plain Layout
36785 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36796 \begin_layout Standard
36797 or an image or table:
36800 \begin_layout Standard
36802 \begin_inset Flex Rotatebox
36805 \begin_layout Plain Layout
36806 \begin_inset Argument 1
36809 \begin_layout Plain Layout
36816 \begin_inset Argument 2
36819 \begin_layout Plain Layout
36826 \begin_inset Graphics
36827 filename clipart/platypus.eps
36838 with a rotated image
36839 \begin_inset Flex Rotatebox
36842 \begin_layout Plain Layout
36843 \begin_inset Argument 2
36846 \begin_layout Plain Layout
36853 \begin_inset Tabular
36854 <lyxtabular version="3" rows="2" columns="2">
36855 <features tabularvalignment="middle">
36856 <column alignment="center" valignment="top">
36857 <column alignment="center" valignment="top">
36859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36862 \begin_layout Plain Layout
36868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36871 \begin_layout Plain Layout
36879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36882 \begin_layout Plain Layout
36888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36891 \begin_layout Plain Layout
36908 \begin_inset Index idx
36911 \begin_layout Plain Layout
36918 \begin_inset Index idx
36921 \begin_layout Plain Layout
36922 Table Customization ! Rotating
36930 \begin_layout Standard
36931 \begin_inset Note Greyedout
36934 \begin_layout Plain Layout
36943 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36945 errors when viewing/exporting the document.
36953 \begin_layout Subsection
36955 \begin_inset Index idx
36958 \begin_layout Plain Layout
36965 \begin_inset Index idx
36968 \begin_layout Plain Layout
36977 \begin_layout Standard
36978 To scale material put it into a
36983 Such a box is inserted via the menu
36985 Insert\SpecialChar menuseparator
36986 Custom Insets\SpecialChar menuseparator
36992 \begin_layout Standard
36997 inset has the mandatory inset
37001 and the optional inset
37005 (inserted via the menu
37007 Insert\SpecialChar menuseparator
37011 Input there the horizontal and vertical scale factor, respectively.
37016 inset is used, the horizontal factor will also be used as the vertical
37020 \begin_layout Standard
37021 To get for example the double text size, compared to the document text size,
37032 \begin_inset Flex Scalebox
37035 \begin_layout Plain Layout
37036 \begin_inset Argument 1
37039 \begin_layout Plain Layout
37053 \begin_layout Standard
37071 \begin_inset Flex Scalebox
37074 \begin_layout Plain Layout
37075 \begin_inset Argument 1
37078 \begin_layout Plain Layout
37085 \begin_inset Argument 2
37088 \begin_layout Plain Layout
37102 \begin_layout Standard
37103 If the scaling factor is negative, the box content will be mirrored.
37120 can be used to create mirror writing:
37121 \begin_inset Flex Scalebox
37124 \begin_layout Plain Layout
37125 \begin_inset Argument 1
37128 \begin_layout Plain Layout
37135 \begin_inset Argument 2
37138 \begin_layout Plain Layout
37152 \begin_layout Standard
37170 \begin_inset Flex Scalebox
37173 \begin_layout Plain Layout
37174 \begin_inset Argument 1
37177 \begin_layout Plain Layout
37184 \begin_inset Argument 2
37187 \begin_layout Plain Layout
37201 \begin_layout Standard
37208 Insert\SpecialChar menuseparator
37209 Custom Insets\SpecialChar menuseparator
37235 \begin_layout Standard
37236 \begin_inset Note Greyedout
37239 \begin_layout Plain Layout
37248 inset is empty or contains other characters than numbers you will get LaTeX
37249 errors when viewing/exporting the document.
37257 \begin_layout Standard
37258 \begin_inset VSpace bigskip
37267 Insert\SpecialChar menuseparator
37268 Custom Insets\SpecialChar menuseparator
37271 ) is used to scale the content to a defined width and height.
37276 inset has the mandatory inset
37280 and the optional inset
37284 (inserted via the menu
37286 Insert\SpecialChar menuseparator
37290 Input there the width and height, respectively, as value with a unit.
37292 \begin_inset CommandInset ref
37294 reference "tab:Units"
37298 lists the possible units.
37299 If there is an exclamation mark
37303 in of of the two insets, the size is set so that the aspect ratio of the
37304 box content is kept.
37309 inset is used an exclamation mark will internally be used for the height.
37312 \begin_layout Standard
37330 \begin_inset Flex Resizebox
37333 \begin_layout Plain Layout
37334 \begin_inset Argument 1
37337 \begin_layout Plain Layout
37344 \begin_inset Argument 2
37347 \begin_layout Plain Layout
37359 \begin_inset Newline newline
37383 \begin_inset Flex Resizebox
37386 \begin_layout Plain Layout
37387 \begin_inset Argument 1
37390 \begin_layout Plain Layout
37397 \begin_inset Argument 2
37400 \begin_layout Plain Layout
37414 \begin_layout Standard
37415 \begin_inset Note Greyedout
37418 \begin_layout Plain Layout
37427 inset is empty or contains an invalid unit you will get LaTeX errors when
37428 viewing/exporting the document.
37436 \begin_layout Standard
37437 \begin_inset VSpace bigskip
37443 \begin_layout Standard
37444 The boxes can be combined in any order.
37453 which is in turn inside a
37460 \begin_layout Standard
37463 \begin_inset Flex Rotatebox
37466 \begin_layout Plain Layout
37467 \begin_inset Argument 1
37470 \begin_layout Plain Layout
37477 \begin_inset Argument 2
37480 \begin_layout Plain Layout
37487 \begin_inset Flex Resizebox
37490 \begin_layout Plain Layout
37491 \begin_inset Argument 1
37494 \begin_layout Plain Layout
37501 \begin_inset Flex Reflectbox
37504 \begin_layout Plain Layout
37523 \begin_layout Standard
37525 Images, tables, and inline formulas are allowed as box content:
37528 \begin_layout Standard
37531 \begin_inset Flex Resizebox
37534 \begin_layout Plain Layout
37535 \begin_inset Argument 1
37538 \begin_layout Plain Layout
37545 \begin_inset Flex Reflectbox
37548 \begin_layout Plain Layout
37549 \begin_inset Graphics
37550 filename clipart/platypus.eps
37567 \begin_inset Flex Resizebox
37570 \begin_layout Plain Layout
37571 \begin_inset Argument 1
37574 \begin_layout Plain Layout
37581 \begin_inset Flex Reflectbox
37584 \begin_layout Plain Layout
37585 \begin_inset Tabular
37586 <lyxtabular version="3" rows="2" columns="2">
37587 <features tabularvalignment="middle">
37588 <column alignment="center" valignment="top">
37589 <column alignment="center" valignment="top">
37591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37594 \begin_layout Plain Layout
37600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37603 \begin_layout Plain Layout
37611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37614 \begin_layout Plain Layout
37620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37623 \begin_layout Plain Layout
37645 \begin_inset Flex Resizebox
37648 \begin_layout Plain Layout
37649 \begin_inset Argument 1
37652 \begin_layout Plain Layout
37659 \begin_inset Flex Reflectbox
37662 \begin_layout Plain Layout
37663 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37677 \begin_inset Index idx
37680 \begin_layout Plain Layout
37687 \begin_inset Index idx
37690 \begin_layout Plain Layout
37691 Table Customization ! Scaling
37699 \begin_layout Standard
37700 When the global formula style
37704 is used in the document
37708 \begin_layout Plain Layout
37710 \begin_inset Quotes eld
37714 \begin_inset Quotes erd
37717 is added to the document class options.
37722 , display style formulas can also be scaled.
37725 \begin_layout Chapter
37726 Objects Surrounded by Text
37727 \begin_inset Index idx
37730 \begin_layout Plain Layout
37739 \begin_layout Section
37741 \begin_inset CommandInset label
37743 name "sec:Wrap-Floats"
37748 \begin_inset Index idx
37751 \begin_layout Plain Layout
37752 Floats ! Wrap Floats
37758 \begin_inset Index idx
37761 \begin_layout Plain Layout
37762 Surrounded by text ! Wrap Floats
37770 \begin_layout Standard
37771 \begin_inset Wrap figure
37778 \begin_layout Plain Layout
37779 \begin_inset Graphics
37780 filename clipart/mobius.eps
37782 scaleBeforeRotation
37783 rotateOrigin center
37790 \begin_layout Plain Layout
37791 \begin_inset Caption Standard
37793 \begin_layout Plain Layout
37794 \begin_inset CommandInset label
37796 name "fig:This-is-a"
37800 This is a figure wrap float.
37810 This float type is used if you want to wrap text around a figure or table
37811 so that it only occupies some fraction of the column width.
37812 It can be inserted using the menu
37814 Insert\SpecialChar menuseparator
37815 Floats\SpecialChar menuseparator
37817 \begin_inset space ~
37821 \begin_inset space ~
37829 \begin_inset space ~
37833 \begin_inset space ~
37838 if the \SpecialChar LaTeX
37844 \begin_inset Index idx
37847 \begin_layout Plain Layout
37849 -packages ! wrapfig
37858 \begin_layout Plain Layout
37859 Installing a \SpecialChar LaTeX
37860 -package is explained it in the
37864 \begin_inset space ~
37874 The settings of the float can be modified by right-clicking on the float
37876 The mandatory settings are the float
37889 that specifies how much the float is set into the paragraph
37890 \begin_inset space \thinspace{}
37894 \begin_inset space \thinspace{}
37897 page margin, and the
37900 \begin_inset space ~
37905 that specifies how many text lines the float will approximately need.
37906 The line span is often hard to approximate; so it is better only to use
37907 it when you encounter float placement problems.
37908 You can furthermore decide if \SpecialChar LaTeX
37909 is allowed to let the float float within
37910 the paragraph or to surrounding paragraphs.
37912 \begin_inset space ~
37916 \begin_inset CommandInset ref
37918 reference "fig:This-is-a"
37922 is an example text wrap float with a width of 40
37923 \begin_inset space \thinspace{}
37927 \begin_inset space \thinspace{}
37930 cm overhang, set to the left.
37933 \begin_layout Standard
37934 \begin_inset Note Greyedout
37937 \begin_layout Plain Layout
37943 \begin_inset space ~
37946 wrap float floats are fragile! E.
37947 \begin_inset space \thinspace{}
37951 \begin_inset space \space{}
37954 having a figure too close to the bottom of the page can mess things up in
37955 such a way that the float does not appear in the output or that it is placed
37956 over some other text.
37964 \begin_layout Standard
37965 In general, the following applies for wrap floats:
37968 \begin_layout Itemize
37969 They should not be placed in paragraphs that run over a page break.
37970 That means that wrap floats are better inserted in their exact place when
37971 the document is almost finished and you are able to estimate where page
37972 breaks will appear.
37975 \begin_layout Itemize
37976 They should either be placed in their own paragraph before the paragraph
37977 where they should wrap into or within a paragraph.
37980 \begin_layout Itemize
37981 In consecutive paragraphs they may cause troubles, so ensure that there
37982 is a text paragraph between them as separator.
37985 \begin_layout Itemize
37986 They are not allowed in section headings or tables.
37989 \begin_layout Itemize
37990 Their numbering and referencing works as described in chap.
37991 \begin_inset space \thinspace{}
37995 \begin_inset CommandInset ref
37997 reference "chap:Floats"
38004 \begin_layout Section
38005 Surrounded Fixed Objects
38006 \begin_inset Index idx
38009 \begin_layout Plain Layout
38010 Surrounded by text ! Fixed objects
38018 \begin_layout Standard
38019 The wrap floats described in sec.
38020 \begin_inset space \thinspace{}
38024 \begin_inset CommandInset ref
38026 reference "sec:Wrap-Floats"
38030 have these positions in the paragraph:
38033 \begin_layout Standard
38036 \begin_inset Tabular
38037 <lyxtabular version="3" rows="2" columns="2">
38038 <features tabularvalignment="middle">
38039 <column alignment="center" valignment="top">
38040 <column alignment="center" valignment="top">
38042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38045 \begin_layout Plain Layout
38048 arg "dialog-show-new-inset graphics"
38056 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38059 \begin_layout Plain Layout
38067 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38070 \begin_layout Plain Layout
38076 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38079 \begin_layout Plain Layout
38091 \begin_inset Tabular
38092 <lyxtabular version="3" rows="2" columns="2">
38093 <features tabularvalignment="middle">
38094 <column alignment="center" valignment="top">
38095 <column alignment="center" valignment="top">
38097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38100 \begin_layout Plain Layout
38106 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38109 \begin_layout Plain Layout
38112 arg "dialog-show-new-inset graphics"
38122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38125 \begin_layout Plain Layout
38131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38134 \begin_layout Plain Layout
38148 \begin_layout Standard
38149 To get an object exactly at the position where it is inserted, for example
38150 to get one of these positions:
38151 \begin_inset VSpace defskip
38157 \begin_layout Standard
38160 \begin_inset Tabular
38161 <lyxtabular version="3" rows="2" columns="2">
38162 <features tabularvalignment="middle">
38163 <column alignment="center" valignment="top">
38164 <column alignment="center" valignment="top">
38166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38169 \begin_layout Plain Layout
38175 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38178 \begin_layout Plain Layout
38186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38189 \begin_layout Plain Layout
38192 arg "dialog-show-new-inset graphics"
38200 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38203 \begin_layout Plain Layout
38215 \begin_inset Tabular
38216 <lyxtabular version="3" rows="2" columns="2">
38217 <features tabularvalignment="middle">
38218 <column alignment="center" valignment="top">
38219 <column alignment="center" valignment="top">
38221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38224 \begin_layout Plain Layout
38230 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38233 \begin_layout Plain Layout
38241 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38244 \begin_layout Plain Layout
38250 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38253 \begin_layout Plain Layout
38256 arg "dialog-show-new-inset graphics"
38270 \begin_inset Tabular
38271 <lyxtabular version="3" rows="2" columns="3">
38272 <features tabularvalignment="middle">
38273 <column alignment="center" valignment="top">
38274 <column alignment="center" valignment="top">
38275 <column alignment="center" valignment="top">
38277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38280 \begin_layout Plain Layout
38286 <cell alignment="center" valignment="top" topline="true" usebox="none">
38289 \begin_layout Plain Layout
38292 arg "dialog-show-new-inset graphics"
38300 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38303 \begin_layout Plain Layout
38311 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38314 \begin_layout Plain Layout
38320 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38323 \begin_layout Plain Layout
38329 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38332 \begin_layout Plain Layout
38344 \begin_inset Tabular
38345 <lyxtabular version="3" rows="2" columns="3">
38346 <features tabularvalignment="middle">
38347 <column alignment="center" valignment="top">
38348 <column alignment="center" valignment="top">
38349 <column alignment="center" valignment="top">
38351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38354 \begin_layout Plain Layout
38360 <cell alignment="center" valignment="top" topline="true" usebox="none">
38363 \begin_layout Plain Layout
38369 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38372 \begin_layout Plain Layout
38380 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38383 \begin_layout Plain Layout
38389 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38392 \begin_layout Plain Layout
38395 arg "dialog-show-new-inset graphics"
38403 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38406 \begin_layout Plain Layout
38420 \begin_layout Standard
38423 \begin_inset Tabular
38424 <lyxtabular version="3" rows="3" columns="2">
38425 <features tabularvalignment="middle">
38426 <column alignment="center" valignment="top">
38427 <column alignment="center" valignment="top">
38429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38432 \begin_layout Plain Layout
38438 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38441 \begin_layout Plain Layout
38449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38452 \begin_layout Plain Layout
38455 arg "dialog-show-new-inset graphics"
38463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38466 \begin_layout Plain Layout
38474 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38477 \begin_layout Plain Layout
38483 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38486 \begin_layout Plain Layout
38498 \begin_inset Tabular
38499 <lyxtabular version="3" rows="3" columns="3">
38500 <features tabularvalignment="middle">
38501 <column alignment="center" valignment="top">
38502 <column alignment="center" valignment="top">
38503 <column alignment="center" valignment="top">
38505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38508 \begin_layout Plain Layout
38514 <cell alignment="center" valignment="top" topline="true" usebox="none">
38517 \begin_layout Plain Layout
38523 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38526 \begin_layout Plain Layout
38534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38537 \begin_layout Plain Layout
38543 <cell alignment="center" valignment="top" usebox="none">
38546 \begin_layout Plain Layout
38549 arg "dialog-show-new-inset graphics"
38557 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38560 \begin_layout Plain Layout
38568 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38571 \begin_layout Plain Layout
38577 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38580 \begin_layout Plain Layout
38586 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38589 \begin_layout Plain Layout
38601 \begin_inset Tabular
38602 <lyxtabular version="3" rows="3" columns="2">
38603 <features tabularvalignment="middle">
38604 <column alignment="center" valignment="top">
38605 <column alignment="center" valignment="top">
38607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38610 \begin_layout Plain Layout
38616 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38619 \begin_layout Plain Layout
38627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38630 \begin_layout Plain Layout
38636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38639 \begin_layout Plain Layout
38642 arg "dialog-show-new-inset graphics"
38652 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38655 \begin_layout Plain Layout
38661 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38664 \begin_layout Plain Layout
38678 \begin_layout Standard
38680 you can use the \SpecialChar LaTeX
38686 \begin_inset Index idx
38689 \begin_layout Plain Layout
38691 -packages ! picinpar
38697 Here is an example:
38700 \begin_layout Standard
38704 \begin_layout Plain Layout
38714 \begin_inset Note Note
38717 \begin_layout Plain Layout
38718 The following section will only be displayed when the \SpecialChar LaTeX
38731 \begin_layout Standard
38735 \begin_layout Plain Layout
38739 begin{window}[2,c,{
38745 \begin_inset Graphics
38746 filename clipart/mobius.eps
38749 scaleBeforeRotation
38750 rotateOrigin center
38758 \begin_layout Plain Layout
38763 \begin_layout Plain Layout
38772 It was in the spring of the year 1894 that all London was interested, and
38773 the fashionable world dismayed, by the murder of the Honourable Ronald
38774 Adair under most unusual and inexplicable circumstances.
38775 The public has already learned those particulars of the crime which
38781 \begin_layout Plain Layout
38792 came out in the police investigation, but a good deal was suppressed upon
38793 that occasion, since the case for the prosecution was so overwhelmingly
38794 strong that it was not necessary to bring forward all the facts.
38795 Only now, at the end of nearly ten years, am I allowed to supply those
38796 missing links which make up the whole of that remarkable chain.
38802 \begin_layout Plain Layout
38814 \begin_layout Standard
38818 \begin_layout Plain Layout
38827 Footnote of the paragraph with the fixed object.
38831 \begin_layout Plain Layout
38841 \begin_layout Standard
38842 Surrounded fixed objects are used to let text float around them, at which
38843 the object's position in the paragraph can be determined by the number
38845 In contrary to floats is it not possible to have a numbered caption.
38848 \begin_layout Standard
38849 A fixed object is inserted by adding the command
38852 \begin_layout Standard
38857 begin{window}[2,c,{
38860 \begin_layout Standard
38861 as \SpecialChar TeX
38862 Code at the beginning of the paragraph.
38863 The first parameter in the bracket, here '2', defines the number of lines
38864 above the object, the second, here 'c', the position of the object.
38865 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38866 Behind the command you insert the object.
38867 In this example an image with a width of 40
38868 \begin_inset space \thinspace{}
38871 % of the text column width was inserted.
38872 The object can also be a table, a box or an equation.
38873 Behind the object the command
38876 \begin_layout Standard
38879 },description text]
38880 \begin_inset Newline newline
38886 \begin_layout Standard
38889 \begin_inset Quotes eld
38897 \begin_inset Quotes erd
38900 is in the second line.
38901 The description text is optional.
38902 The text surrounding the object must be in the same paragraph as the object,
38903 so it must begin directly after the
38908 At the end of the paragraph insert the command:
38911 \begin_layout Standard
38919 \begin_layout Standard
38920 Within a paragraph with a fixed object, you cannot insert footnotes in the
38922 You have to use instead the command
38928 inside the paragraph and outside the command
38934 as described in sec.
38935 \begin_inset space \thinspace{}
38939 \begin_inset CommandInset ref
38941 reference "sec:Footnotes"
38948 \begin_layout Standard
38952 \begin_layout Plain Layout
38962 \begin_inset Note Note
38965 \begin_layout Plain Layout
38966 The following will be displayed when the \SpecialChar LaTeX
38979 \begin_layout Standard
38980 You need to install the \SpecialChar LaTeX
38985 to see the following part of this section in the output.
38988 \begin_layout Standard
38992 \begin_layout Plain Layout
39004 \begin_layout Section
39006 \begin_inset Index idx
39009 \begin_layout Plain Layout
39016 \begin_inset Index idx
39019 \begin_layout Plain Layout
39020 Surrounded by text ! Initials
39028 \begin_layout Standard
39029 To use initials, you must have the \SpecialChar LaTeX
39035 \begin_inset Index idx
39038 \begin_layout Plain Layout
39040 -packages ! lettrine
39045 installed and use the module
39049 in your document (menu
39051 Document\SpecialChar menuseparator
39052 Settings\SpecialChar menuseparator
39056 To insert an initial, use the style
39061 This style has a mandatory and two optional arguments.
39062 The arguments are inserted via the
39067 The mandatory argument
39071 contains the letter(s) that is the initial, the argument
39074 \begin_inset space ~
39078 \begin_inset space ~
39083 contains the rest of the word or text of the initial letter(s).
39088 contains parameters to modify the initial.
39089 For more information about the possible parameters see the documentation
39095 \begin_inset CommandInset citation
39103 The style itself contains the text that is surrounding the initial.
39104 The usual style is hereby that the word whose first letter is the initial,
39112 \begin_layout Standard
39113 Here are some examples:
39116 \begin_layout Standard
39120 \begin_layout Plain Layout
39130 \begin_inset Note Note
39133 \begin_layout Plain Layout
39134 The following section will only be displayed when the \SpecialChar LaTeX
39147 \begin_layout Enumerate
39148 No optional argument, the initial is the letter 'I' in the math font
39149 \begin_inset Formula $\mathfrak{Fraktur}$
39156 \begin_layout Initial
39157 \begin_inset Argument 2
39160 \begin_layout Plain Layout
39161 \begin_inset Formula $\mathfrak{I}$
39170 \begin_inset Argument 3
39173 \begin_layout Plain Layout
39179 was in the spring of the year 1894 that all London was interested, and
39180 the fashionable world dismayed, by the murder of the Honourable Ronald
39181 Adair under most unusual and inexplicable circumstances.
39182 The public has already learned those particulars of the crime which came
39183 out in the police investigation, but a good deal was suppressed upon that
39184 occasion, since the case for the prosecution was so overwhelmingly strong
39185 that it was not necessary to bring forward all the facts.
39186 \begin_inset Newpage newpage
39193 \begin_layout Enumerate
39194 Only one line is surrounding the initial, which is formed by two letters
39195 in standard font and no text is printed in small caps:
39199 \begin_layout Initial
39200 \begin_inset Argument 1
39203 \begin_layout Plain Layout
39210 \begin_inset Argument 2
39213 \begin_layout Plain Layout
39219 was in the spring of the year 1894 that all London was interested, and
39220 the fashionable world dismayed, by the murder of the Honourable Ronald
39221 Adair under most unusual and inexplicable circumstances.
39222 The public has already learned those particulars of the crime which came
39223 out in the police investigation, but a good deal was suppressed upon that
39224 occasion, since the case for the prosecution was so overwhelmingly strong
39225 that it was not necessary to bring forward all the facts.
39229 \begin_layout Enumerate
39230 Magenta, hanging initial over 3
39231 \begin_inset space ~
39234 lines in the math font
39235 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39239 \begin_inset Quotes eld
39242 t was in the spring
39243 \begin_inset Quotes erd
39250 ; to color the initial, you must insert this command before the initial:
39251 \begin_inset Newline newline
39265 \begin_inset Newline newline
39273 \begin_inset Quotes eld
39277 \begin_inset Quotes erd
39281 \begin_inset Quotes eld
39285 \begin_inset Quotes erd
39289 \begin_inset Quotes eld
39293 \begin_inset Quotes erd
39297 \begin_inset Quotes eld
39301 \begin_inset Quotes erd
39305 \begin_inset Quotes eld
39309 \begin_inset Quotes erd
39313 \begin_inset Quotes eld
39317 \begin_inset Quotes erd
39321 \begin_inset Quotes eld
39325 \begin_inset Quotes erd
39329 \begin_inset Quotes eld
39333 \begin_inset Quotes erd
39336 , and add this command to the document preamble:
39337 \begin_inset Newline newline
39344 @ifundefined{textcolor}
39345 \begin_inset Newline newline
39349 \begin_inset space ~
39354 usepackage{color}}{}
39358 \begin_layout Standard
39362 \begin_layout Plain Layout
39376 \begin_inset Note Note
39379 \begin_layout Plain Layout
39380 makes the initial magenta
39388 \begin_layout Initial
39389 \begin_inset Argument 1
39392 \begin_layout Plain Layout
39393 lines=3, lhang=0.33, loversize=0.25
39399 \begin_inset Argument 2
39402 \begin_layout Plain Layout
39403 \begin_inset Formula $\mathcal{I}$
39412 \begin_inset Argument 3
39415 \begin_layout Plain Layout
39416 t was in the spring
39421 of the year 1894 that all London was interested, and the fashionable world
39422 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39423 and inexplicable circumstances.
39424 The public has already learned those particulars of the crime which came
39425 out in the police investigation, but a good deal was suppressed upon that
39426 occasion, since the case for the prosecution was so overwhelmingly strong
39427 that it was not necessary to bring forward all the facts.
39431 \begin_layout Standard
39435 \begin_layout Plain Layout
39445 \begin_inset Note Note
39448 \begin_layout Plain Layout
39449 The following will be displayed when the \SpecialChar LaTeX
39462 \begin_layout Standard
39463 You need to install the \SpecialChar LaTeX
39468 to see the following part of this section in the output.
39471 \begin_layout Standard
39475 \begin_layout Plain Layout
39487 \begin_layout Chapter
39488 External Document Parts
39489 \begin_inset Index idx
39492 \begin_layout Plain Layout
39493 External Document Parts
39501 \begin_layout Standard
39504 Insert\SpecialChar menuseparator
39507 you can insert external material into your document.
39511 \begin_layout Description
39513 \begin_inset space ~
39516 Document Another \SpecialChar LyX
39517 document; its content is directly inserted to your document.
39520 \begin_layout Description
39522 \begin_inset space ~
39525 Text A text document; each line is inserted in your document as a separate
39529 \begin_layout Description
39531 \begin_inset space ~
39535 \begin_inset space ~
39539 \begin_inset space ~
39542 Lines A text document; text lines are inserted in your document continuously
39543 but an empty text line creates a new paragraph.
39546 \begin_layout Description
39548 \begin_inset space ~
39551 Material Files in various formats.
39554 \begin_layout Description
39556 \begin_inset space ~
39559 Document \SpecialChar LyX
39560 or \SpecialChar LaTeX
39564 \begin_layout Section
39566 \begin_inset Index idx
39569 \begin_layout Plain Layout
39570 External Document Parts ! External Material
39578 \begin_layout Standard
39579 The external material feature allows you to insert files into your document
39580 without converting them to a format that can be read by the document output
39583 takes care of the necessary conversions.
39584 This is similar to images that can be inserted in various image formats
39585 in \SpecialChar LyX
39587 When you have enabled Instant Preview in \SpecialChar LyX
39588 's preferences under
39591 \begin_inset space ~
39595 \begin_inset space ~
39598 feel\SpecialChar menuseparator
39601 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39605 \begin_layout Standard
39606 External material can be inserted via the
39610 dialog that is accessible with the menu
39612 Insert\SpecialChar menuseparator
39613 File\SpecialChar menuseparator
39615 \begin_inset space ~
39621 Currently the following file types (
39628 \begin_layout Description
39630 \begin_inset space ~
39633 diagram This template supports chess position diagrams made with the program
39637 \begin_inset CommandInset href
39640 target "http://en.wikipedia.org/wiki/XBoard"
39650 \begin_layout Description
39652 \begin_inset space ~
39655 diagram This template supports diagrams created with the program
39658 \begin_inset CommandInset href
39661 target "http://en.wikipedia.org/wiki/Dia_(software)"
39671 \begin_layout Description
39672 Spreadsheet With this template you can insert spreadsheets
39673 \begin_inset space \thinspace{}
39677 \begin_inset space \thinspace{}
39680 tables in the format of
39683 \begin_inset CommandInset href
39686 target "http://en.wikipedia.org/wiki/Gnumeric"
39694 \begin_inset CommandInset href
39696 name "OpenDocument"
39697 target "http://en.wikipedia.org/wiki/OpenDocument"
39703 \begin_inset CommandInset href
39705 name "Microsoft Office XML"
39706 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39712 \begin_inset CommandInset href
39714 name "Office Open XML"
39715 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39721 For this feature \SpecialChar LyX
39722 must have found the program
39726 during its configuration.
39727 This program is part of Gnumeric, so that you must have Gnumeric installed,
39728 also if you don't have tables in the Gnumeric format.
39729 For examples and possible limitations have a look at \SpecialChar LyX
39737 \begin_layout Description
39739 \begin_inset space ~
39743 \begin_inset space ~
39746 music This template is used for music notation typeset with the program
39747 \begin_inset Newline linebreak
39753 \begin_inset CommandInset href
39756 target "http://en.wikipedia.org/wiki/LilyPond"
39764 For \SpecialChar LyX
39765 's extended support for LilyPond have a look at \SpecialChar LyX
39773 \begin_layout Description
39775 \begin_inset space ~
39778 pages With this template you can insert PDF documents to your document.
39779 To specify the range of pages that should be included, use the option
39789 LaTeX and LyX options
39792 The argument of this option is a comma separated list, containing page
39793 numbers (insert as option
39797 ), ranges of page numbers (
39801 ) or any combination.
39802 To insert empty pages use {}.
39804 \begin_inset space \thinspace{}
39808 \begin_inset space ~
39813 pages={3,{},8-11,15}
39815 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39816 Page ranges are specified in the syntax
39825 This selects all pages from
39838 defaults to the first page; omitting
39842 defaults to the last page of the document.
39843 The last page can also be selected with the keyword
39848 (This is only permitted in a page range.) So
39852 will insert all pages of the document and
39856 will insert all pages in reverse order.
39857 If the pages option is not specified, only the first page of the PDF is
39859 \begin_inset Newline newline
39866 inserts the pages with their original size, if this option is not given,
39867 the pages will be resized to fith the width of the page of your document.
39872 you can specify the width and height of the input pages and their rotation.
39873 If another width than 100
39874 \begin_inset space \thinspace{}
39877 Scale% is used, the option
39881 will be overwritten.
39882 For more info and possible options, have a look into the documentation
39883 of the \SpecialChar LaTeX
39889 \begin_inset CommandInset citation
39897 \begin_inset Index idx
39900 \begin_layout Plain Layout
39902 -packages ! pdfpages
39908 \begin_inset Newline newline
39911 To use this template in a
39915 presentation you need to first insert an
39919 environment and in a subsequent paragraph a \SpecialChar TeX
39920 Code box containing the command
39925 setbeamertemplate{background canvas}{}
39928 Then you can insert as many paragraphs containing the PDFPages template
39930 Behind the included PDF pages you can resume the Beamer presentation by
39931 beginning a new frame or by starting a new section.
39932 To avoid stray blank pages prior to the PDF pages, make sure to use the
39937 alignment for the paragraph containing the template.
39938 \begin_inset Newline newline
39941 Here is an included PDF which is rotated by -5°:
39942 \begin_inset External
39944 filename clipart/Abstract.pdf
39945 extra LaTeX "noautoscale, pages=-"
39947 rotateOrigin bottomleft
39954 \begin_layout Description
39956 \begin_inset space ~
39959 image This can be used for bitmap images.
39960 The image can be treated in the
39964 dialog like the images that are usually included via the
39968 dialog as described in section
39969 \begin_inset space ~
39973 \begin_inset CommandInset ref
39975 reference "sec:Graphics-Dialog"
39980 Here is an inserted raster image:
39981 \begin_inset External
39982 template RasterImage
39983 filename clipart/ToolbarEnvBox.png
39990 \begin_layout Description
39992 \begin_inset space ~
39995 graphics This can be used for vector graphics.
39996 The image can be treated in the
40000 dialog like the images that are usually included via the
40004 dialog as described in section
40005 \begin_inset space ~
40009 \begin_inset CommandInset ref
40011 reference "sec:Graphics-Dialog"
40016 Here is an inserted vector graphics:
40017 \begin_inset External
40018 template VectorGraphics
40019 filename clipart/SVG-Drawing.svg
40028 \begin_layout Description
40030 \begin_inset space ~
40033 figure This template supports images created with the program
40034 \begin_inset CommandInset href
40037 target "http://en.wikipedia.org/wiki/Xfig"
40045 \begin_layout Description
40047 \begin_inset space ~
40050 figure This experimental template supports vector graphics (SVG) images
40051 that contain text written in \SpecialChar LaTeX
40053 It relies on the option
40055 Omit text in PDF and create LaTeX file
40057 when saving a drawing as PDF with the program
40062 \begin_inset CommandInset citation
40070 This allows to include SVG documents in which \SpecialChar LaTeX
40071 will typeset the text.
40072 The benefit of such SVGs is a uniform text style throughout the whole document.
40073 \begin_inset Newline newline
40076 One can use \SpecialChar TeX
40090 \begin_inset space \space{}
40093 in the text of the SVG.
40094 The size of the font will be taken from the settings of the \SpecialChar LyX
40097 \begin_inset CommandInset citation
40104 for more information and examples.
40105 \begin_inset Newline newline
40108 Note that while the image text takes into account the surrounding font,
40109 its preview in \SpecialChar LyX
40111 Wrapping the external inset in a preview inset (menu
40113 Insert\SpecialChar menuseparator
40116 ) gives a better result.
40117 \begin_inset Newline newline
40120 The template works very similarly to Xfig support.
40122 will extract the text in the image into a separate \SpecialChar TeX
40124 PDF file for the rest.
40127 \begin_layout Standard
40128 \begin_inset Float table
40134 \begin_layout Plain Layout
40135 \begin_inset Caption Standard
40137 \begin_layout Plain Layout
40138 \begin_inset CommandInset label
40140 name "tab:Comparison-of-the"
40144 Comparison of the date input methods.
40152 \begin_layout Plain Layout
40154 \begin_inset Tabular
40155 <lyxtabular version="3" rows="4" columns="3">
40156 <features tabularvalignment="middle">
40157 <column alignment="center" valignment="top">
40158 <column alignment="center" valignment="top">
40159 <column alignment="center" valignment="top">
40161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40164 \begin_layout Plain Layout
40170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40173 \begin_layout Plain Layout
40176 Insert\SpecialChar menuseparator
40182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40185 \begin_layout Plain Layout
40197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40200 \begin_layout Plain Layout
40207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40210 \begin_layout Plain Layout
40216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40219 \begin_layout Plain Layout
40220 as \SpecialChar TeX
40228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40231 \begin_layout Plain Layout
40238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40241 \begin_layout Plain Layout
40247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40250 \begin_layout Plain Layout
40258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40261 \begin_layout Plain Layout
40267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40270 \begin_layout Plain Layout
40276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40279 \begin_layout Plain Layout
40298 \begin_layout Standard
40299 When you use the option
40311 dialog, only the path to the inserted file is shown in the output.
40312 \begin_inset Newline newline
40315 External material is displayed in \SpecialChar LyX
40316 either as a box like this:
40317 \begin_inset Graphics
40318 filename clipart/ExternalMaterial.png
40320 scaleBeforeRotation
40324 or as image, depending on the option
40330 LaTeX and LyX options
40335 \begin_layout Standard
40342 manual explains how you can define your own templates.
40345 \begin_layout Section
40347 \begin_inset CommandInset label
40349 name "sec:Child-Documents"
40354 \begin_inset Index idx
40357 \begin_layout Plain Layout
40358 External Document Parts ! Child Documents
40364 \begin_inset Index idx
40367 \begin_layout Plain Layout
40376 \begin_layout Standard
40377 Child documents are used if you have a long document consisting of several
40378 larger parts or sections.
40379 For maintenance it is often useful and sometimes even required to split
40380 the document into several files that can be revised separately.
40381 The different documents are then the so called
40382 \begin_inset Quotes eld
40386 \begin_inset Quotes erd
40389 , and a master document connects them to print the full document or parts
40391 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40393 the bibliography, and labels for cross-references.
40396 \begin_layout Standard
40397 To be able to work on child documents without the need to open their master,
40398 specify in the child document the master in the menu
40400 Document\SpecialChar menuseparator
40401 Settings\SpecialChar menuseparator
40403 \begin_inset space ~
40409 This master document will then be used in the background by \SpecialChar LyX
40411 the child document.
40414 \begin_layout Standard
40415 Included documents are displayed in \SpecialChar LyX
40416 as a box like this:
40417 \begin_inset Graphics
40418 filename clipart/ChildDocument.png
40420 scaleBeforeRotation
40424 To include child documents in a master document use the menu
40426 Insert\SpecialChar menuseparator
40427 File\SpecialChar menuseparator
40429 \begin_inset space ~
40435 A dialog pops up where you can choose between four include methods:
40438 \begin_layout Description
40439 Include You can include \SpecialChar LyX
40440 and \SpecialChar LaTeX
40450 dialog, the included document will be opened in \SpecialChar LyX
40451 in a new file tab so that
40453 \begin_inset Newline newline
40459 \begin_layout Standard
40460 Here is a child document inserted using
40465 \begin_inset CommandInset include
40466 LatexCommand include
40467 filename "DummyDocument1.lyx"
40474 \begin_layout Standard
40475 The section numbering includes the sections of the included files in the
40476 order they are inserted in the master document.
40477 The included example document has for example a subsection that is numbered
40478 as a subsection of this section.
40479 Labels of included documents can be referenced: Subsection
40480 \begin_inset space ~
40484 \begin_inset CommandInset ref
40486 reference "subsec:External-Subsection-1"
40493 \begin_layout Standard
40494 The preamble of the child document is ignored; only the preamble of the
40495 master document is used.
40496 Branches in child documents will be ignored by the master document when
40497 the master document does not have a branch with the same name.
40498 Included documents are inserted starting on a new page and ending with
40502 \begin_layout Standard
40503 \begin_inset Note Greyedout
40506 \begin_layout Plain Layout
40511 If you have included a \SpecialChar LyX
40512 or \SpecialChar LaTeX
40513 file, you are warned when you export/view the
40514 document in case the child document uses another document class than the
40515 master document as this will lead to unexpected outputs.
40523 \begin_layout Description
40524 Input This method is very similar to the Include method.
40525 The differences are:
40529 \begin_layout Itemize
40530 Input files don't start with a new page and don't end with a page break.
40533 \begin_layout Itemize
40534 Input files can be previewed in \SpecialChar LyX
40538 \begin_inset space ~
40543 is enabled in \SpecialChar LyX
40544 's preferences under
40547 \begin_inset space ~
40551 \begin_inset space ~
40554 feel\SpecialChar menuseparator
40560 \begin_layout Itemize
40561 You cannot exclude Input files via the menu
40563 Document\SpecialChar menuseparator
40564 Settings\SpecialChar menuseparator
40571 \begin_layout Standard
40572 Here is a child document inserted using
40577 \begin_inset CommandInset include
40579 filename "DummyDocument2.lyx"
40586 \begin_layout Description
40587 Verbatim With this method any text file can be included.
40588 The file is shown in the output with its source code; no command used in
40589 the text is invoked.
40590 You can use the option
40592 Mark spaces in output
40594 that displays the character
40595 \begin_inset Quotes eld
40602 \begin_layout Plain Layout
40612 \begin_inset Quotes erd
40615 for every space character in the source code.
40616 The difference from the method via the menu
40618 Insert\SpecialChar menuseparator
40619 File\SpecialChar menuseparator
40621 \begin_inset space ~
40626 is that the document content is not shown in \SpecialChar LyX
40630 \begin_layout Standard
40631 Here is a child document inserted as Verbatim:
40632 \begin_inset CommandInset include
40633 LatexCommand verbatiminput
40634 filename "DummyTextDocument.txt"
40639 \begin_inset VSpace bigskip
40642 Here is a child document inserted as Verbatim using the
40644 Mark spaces in output
40647 \begin_inset CommandInset include
40648 LatexCommand verbatiminput*
40649 filename "DummyTextDocument.txt"
40656 \begin_layout Standard
40657 \begin_inset VSpace bigskip
40663 \begin_layout Standard
40664 \begin_inset Note Greyedout
40667 \begin_layout Plain Layout
40672 As you can see in the examples above, the text of the documents included
40677 is not broken at the end of the document lines.
40685 \begin_layout Description
40686 Listings This type is described in chapter
40687 \begin_inset space ~
40691 \begin_inset CommandInset ref
40693 reference "cha:Program-Code-Listings"
40700 \begin_layout Standard
40701 \begin_inset Note Greyedout
40704 \begin_layout Plain Layout
40709 Including the same document twice in a document using different methods
40710 could cause \SpecialChar LaTeX
40719 \begin_layout Standard
40720 If you want to view/export only selected children of your master document,
40721 either because you want to save compiling time or because you want to distribut
40722 e single chapters of the book you are just writing, you can exclude children
40724 This is done via the menu
40726 Document\SpecialChar menuseparator
40727 Settings\SpecialChar menuseparator
40731 You can exclude\SpecialChar breakableslash
40732 include children by double-clicking on the
40736 column of the respective child document in the list (note that this only
40737 works for documents embedded via
40738 \begin_inset Quotes eld
40742 \begin_inset Quotes erd
40746 \begin_inset Quotes eld
40750 \begin_inset Quotes erd
40756 Maintain counters and references
40758 is enabled, \SpecialChar LyX
40759 will assure that all page numbers, references etc.
40760 \begin_inset space ~
40763 are correct as if the whole document was processed.
40764 This is useful if you want the selected sub-documents to look exactly as
40765 in the context of the whole document.
40766 However, \SpecialChar LyX
40767 needs to process the whole document in the background for this
40769 So if you want to save compile time and if counters and references do not
40770 need to be correct, disable this checkbox.
40773 \begin_layout Standard
40774 Alternatively, you can put each included file into a branch.
40778 \begin_layout Plain Layout
40779 Branches are described in section
40783 of the \SpecialChar LyX
40793 By enabling\SpecialChar breakableslash
40794 disabling branches you can decide which included files will
40795 appear in the output.
40796 This has the advantage that it also works with Input'ed sub-documents.
40797 However, counters and references will not be maintained with this approach.
40800 \begin_layout Chapter
40801 Program Code Listings
40802 \begin_inset CommandInset label
40804 name "cha:Program-Code-Listings"
40809 \begin_inset Index idx
40812 \begin_layout Plain Layout
40819 \begin_inset Index idx
40822 \begin_layout Plain Layout
40829 \begin_inset Index idx
40832 \begin_layout Plain Layout
40841 \begin_layout Standard
40842 To include and typeset program code you can use the
40846 inset that can be inserted via the menu
40848 Insert\SpecialChar menuseparator
40852 The \SpecialChar LaTeX
40858 \begin_inset Index idx
40861 \begin_layout Plain Layout
40863 -packages ! listings
40873 \begin_inset Index idx
40876 \begin_layout Plain Layout
40883 provide a powerful and flexible way to insert program source code into
40885 One can only use one of these packages in a document.
40890 is used by default.
40893 \begin_layout Standard
40894 \begin_inset Note Note
40897 \begin_layout Plain Layout
40903 does NOT want to encourage users to add the
40907 option to converter definitions.
40908 It works, but it is a huge security risk.
40909 There is an active discussion about how to handle this.
40910 Once that's been resolved, this can be updated appropriately.
40913 \begin_layout Plain Layout
40917 \begin_layout Plain Layout
40922 , you need to select it as the syntax highlighting package in the document
40932 requires also additionally the module
40944 \begin_layout Plain Layout
40945 Under \SpecialChar LyX
40950 is already installed.
40959 for the \SpecialChar LaTeX
40961 If you want for example view or export your document as the format
40964 \begin_inset space ~
40969 , go to the \SpecialChar LyX
40970 preferences and there to the section
40973 \begin_inset space ~
40976 Handling\SpecialChar menuseparator
40980 There go to the entry
40983 \begin_inset space ~
40987 \begin_inset space ~
40992 and look at the field
40997 There you see by default the content
40998 \begin_inset Newline newline
41006 \begin_inset Newline newline
41010 \begin_inset Newline newline
41015 pdflatex $$i -shell-escape
41016 \begin_inset Newline newline
41025 button and subsequently
41034 The same can be done for the output formats
41037 \begin_inset space ~
41045 \begin_inset space ~
41058 \begin_layout Standard
41059 Right-clicking on a listings inset opens the context menu containing where
41060 you can set the listings format.
41063 \begin_layout Standard
41064 By default, a listing starts a new paragraph in the output.
41065 The placement option
41068 \begin_inset space ~
41073 prints the listing inline like this:
41074 \begin_inset listings
41075 lstparams "language={C++}"
41079 \begin_layout Plain Layout
41087 \begin_inset Newline newline
41094 creates a listings float where you can specify the placement options
41095 \begin_inset Quotes eld
41103 \begin_inset Quotes erd
41107 \begin_inset Quotes eld
41115 \begin_inset Quotes erd
41119 \begin_inset Quotes eld
41127 \begin_inset Quotes erd
41131 \begin_inset Quotes eld
41139 \begin_inset Quotes erd
41142 corresponding to the float placement options described in section
41143 \begin_inset space ~
41147 \begin_inset CommandInset ref
41149 reference "sec:Float-Placement"
41154 The placement options can be mixed and are inserted without any separation,
41156 \begin_inset space \thinspace{}
41160 \begin_inset space \space{}
41164 \begin_inset Quotes eld
41172 \begin_inset Quotes erd
41177 \begin_inset Quotes eld
41181 \begin_inset Quotes erd
41184 has sometimes no effect, but you don't need to use the
41188 option in this case as also non-float listings can have captions and be
41192 \begin_layout Standard
41193 You can add captions to listings that are not inline with the menu
41195 Insert\SpecialChar menuseparator
41199 Listings can be referenced like floats: Listing
41200 \begin_inset space ~
41204 \begin_inset CommandInset ref
41206 reference "lst:Example-Listing"
41211 A list of listings which contains all listings with captions can be created
41214 Insert\SpecialChar menuseparator
41216 \begin_inset space ~
41220 \begin_inset space ~
41223 TOC\SpecialChar menuseparator
41227 The list entries are the listing caption and the listing number.
41230 \begin_layout Standard
41231 \begin_inset listings
41232 lstparams "language=Python"
41236 \begin_layout Plain Layout
41238 \begin_inset Caption Standard
41240 \begin_layout Plain Layout
41241 \begin_inset CommandInset label
41243 name "lst:Example-Listing"
41247 Example Listing float
41252 # Example listing float
41255 \begin_layout Plain Layout
41260 \begin_layout Plain Layout
41262 'this is a python function'
41265 \begin_layout Plain Layout
41275 \begin_layout Standard
41276 \begin_inset Note Greyedout
41279 \begin_layout Plain Layout
41288 package places captions before the listing by default.
41289 \begin_inset Newline newline
41296 package places them after the listing by default if it is floating.
41297 If tit is not floating caption will be typeset before the listing if it
41298 is inserted to its first line, otherwise it will be typeset after the listing.
41299 If you want to force the placement in avery case before the listing, you
41300 have to add the following lines as last thing to the preamble:
41301 \begin_inset Newline newline
41308 @ifundefined{newfloat}
41309 \begin_inset Newline newline
41313 \begin_inset Phantom HPhantom
41316 \begin_layout Plain Layout
41319 \begin_inset space ~
41329 usepackage{float}}{}
41330 \begin_inset Newline newline
41335 floatstyle{plaintop}
41338 \begin_inset Note Note
41341 \begin_layout Plain Layout
41346 will be loaded automatically by \SpecialChar LyX
41347 when you use special document-wide float
41348 placement settings.
41349 To avoid that it is loaded twice the command
41355 is used in the above command.
41368 \begin_layout Standard
41369 When you have set a programming language in the listings dialog, the keywords
41370 of this language will be recognized and specially typeset in the output.
41371 In the example listings the Python keyword
41372 \begin_inset Quotes eld
41376 \begin_inset Quotes erd
41379 is recognized and printed bold in the output.
41382 \begin_layout Standard
41383 \begin_inset Note Greyedout
41386 \begin_layout Plain Layout
41391 If you don't get bold keywords when using typewriter fonts, your
41395 font probably doesn't provide a bold shape.
41396 In this case select a different one in the menu
41398 Document\SpecialChar menuseparator
41399 Settings\SpecialChar menuseparator
41411 provide bold shapes.)
41419 \begin_layout Standard
41423 \begin_inset space ~
41428 of the listings dialog you can specify the line numbering style.
41429 You can insert a number to specify which lines are numbered in the field
41436 \begin_inset space \thinspace{}
41440 \begin_inset space \space{}
41444 \begin_inset Quotes eld
41448 \begin_inset Quotes erd
41451 , only every 3rd line will be numbered.
41454 \begin_layout Standard
41455 You can furthermore specify a range of lines; only these will then appear
41459 Extended character table
41461 is only meaningful for the
41465 package and should be used when you use national characters like the German
41466 umlauts in the listing.
41467 \begin_inset Newline newline
41470 Here is an example listing with left line numbering, step
41471 \begin_inset Quotes eld
41475 \begin_inset Quotes erd
41479 \begin_inset Quotes eld
41483 \begin_inset Quotes erd
41487 \begin_inset Quotes eld
41490 Extended character table
41491 \begin_inset Quotes erd
41495 \begin_inset Quotes eld
41499 \begin_inset space ~
41503 \begin_inset space ~
41507 \begin_inset Quotes erd
41511 \begin_inset space \thinspace{}
41515 \begin_inset space \thinspace{}
41521 \begin_layout Standard
41522 \begin_inset listings
41523 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41527 \begin_layout Plain Layout
41532 \begin_layout Plain Layout
41534 'this is a python function'
41537 \begin_layout Plain Layout
41542 \begin_layout Plain Layout
41547 \begin_layout Plain Layout
41549 'This is a German word: Tschüß'
41552 \begin_layout Plain Layout
41557 \begin_layout Plain Layout
41562 \begin_layout Plain Layout
41564 'this is a python function'
41567 \begin_layout Plain Layout
41577 \begin_layout Standard
41578 When you have tabulators in your listing, you can specify the number of
41579 characters that are spanned by a tabulator in the field
41582 \begin_inset space ~
41590 \begin_layout Standard
41591 \begin_inset Note Greyedout
41594 \begin_layout Plain Layout
41599 Due to a bug in the
41603 package the line numbering is shifted by a line by every previous listing.
41604 That's the reason why the lines 2 and 5 are numbered in the above listing
41605 and not the lines 3 and 6.
41613 \begin_layout Standard
41614 \begin_inset VSpace bigskip
41620 \begin_layout Standard
41621 It is also possible to print lines from a file as listing.
41622 To do this, use the menu
41624 Insert\SpecialChar menuseparator
41625 File\SpecialChar menuseparator
41628 and choose the type
41636 \begin_layout Plain Layout
41637 The other child document types are described in section
41638 \begin_inset space ~
41642 \begin_inset CommandInset ref
41644 reference "sec:Child-Documents"
41653 In the child document dialog you can specify the listing parameters in
41655 To show a list of all available parameters, type in a question mark
41656 \begin_inset Quotes eld
41660 \begin_inset Quotes erd
41666 \begin_layout Standard
41667 To reference child document listings, write a label text into the corresponding
41668 field of the child document dialog.
41669 The label can then be referenced using the menu
41671 Insert\SpecialChar menuseparator
41677 \begin_layout Standard
41679 \begin_inset space ~
41683 \begin_inset CommandInset ref
41685 reference "lst:file-listing"
41689 is an example for a listing of a file; there the lines 10
41690 \begin_inset space \thinspace{}
41694 \begin_inset space \thinspace{}
41697 15 of this \SpecialChar LyX
41701 \begin_layout Standard
41702 \begin_inset CommandInset include
41703 LatexCommand lstinputlisting
41704 filename "EmbeddedObjects.lyx"
41705 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41712 \begin_layout Standard
41713 \begin_inset VSpace bigskip
41719 \begin_layout Standard
41720 Inserting a formula into a listing can be done the following way:
41723 \begin_layout Enumerate
41724 Open the listings dialog and add
41725 \begin_inset Newline newline
41733 \begin_inset Newline newline
41736 to the field of the
41743 \begin_layout Enumerate
41744 Create a formula outside the listing
41747 \begin_layout Enumerate
41748 Copy the content of the formula (not the formula inset) to the clipboard
41758 \begin_layout Enumerate
41759 In the listing write
41760 \begin_inset Quotes eld
41768 \begin_inset Quotes erd
41771 and copy from the clipboard between the dollar-signs (shortcut
41780 \begin_layout Standard
41781 \begin_inset listings
41782 lstparams "language=Python,mathescape=true"
41786 \begin_layout Plain Layout
41788 \begin_inset Caption Standard
41790 \begin_layout Plain Layout
41791 Example Listing float containing a formula
41796 # Example listing float
41799 \begin_layout Plain Layout
41804 \begin_layout Plain Layout
41817 \begin_layout Plain Layout
41827 \begin_layout Standard
41828 \begin_inset VSpace bigskip
41834 \begin_layout Standard
41835 Global listings settings can be set in the
41837 Document\SpecialChar menuseparator
41838 Settings\SpecialChar menuseparator
41842 To get there a list of available options, type in a question mark
41843 \begin_inset Quotes eld
41847 \begin_inset Quotes erd
41853 \begin_layout Standard
41854 For more information about the
41862 packages, we refer to their documentation
41863 \begin_inset CommandInset citation
41865 key "listings,minted"
41873 \begin_layout Standard
41874 \begin_inset Newpage newpage
41880 \begin_layout Chapter
41882 Units available in \SpecialChar LyX
41884 \begin_inset Index idx
41887 \begin_layout Plain Layout
41894 \begin_inset CommandInset label
41896 name "cha:Units-available-in"
41903 \begin_layout Standard
41904 To understand the units described in this documentation, Table
41905 \begin_inset space ~
41909 \begin_inset CommandInset ref
41911 reference "tab:Units"
41915 explains all units available in \SpecialChar LyX
41919 \begin_layout Standard
41920 \begin_inset Float table
41926 \begin_layout Plain Layout
41927 \begin_inset Caption Standard
41929 \begin_layout Plain Layout
41930 \begin_inset CommandInset label
41944 \begin_layout Plain Layout
41945 \begin_inset VSpace medskip
41951 \begin_layout Plain Layout
41953 \begin_inset Tabular
41954 <lyxtabular version="3" rows="20" columns="3">
41955 <features tabularvalignment="middle">
41956 <column alignment="center" valignment="top">
41957 <column alignment="center" valignment="top">
41958 <column alignment="center" valignment="top">
41960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41963 \begin_layout Plain Layout
41969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41972 \begin_layout Plain Layout
41978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41981 \begin_layout Plain Layout
41990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41993 \begin_layout Plain Layout
41999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42002 \begin_layout Plain Layout
42008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42011 \begin_layout Plain Layout
42019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42022 \begin_layout Plain Layout
42028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42031 \begin_layout Plain Layout
42037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42040 \begin_layout Plain Layout
42048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42051 \begin_layout Plain Layout
42057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42060 \begin_layout Plain Layout
42066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42069 \begin_layout Plain Layout
42077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42080 \begin_layout Plain Layout
42086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42089 \begin_layout Plain Layout
42091 \begin_inset space \thinspace{}
42095 \begin_inset space \thinspace{}
42103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42106 \begin_layout Plain Layout
42114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42117 \begin_layout Plain Layout
42123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42126 \begin_layout Plain Layout
42128 \begin_inset space \thinspace{}
42132 \begin_inset space \thinspace{}
42140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42143 \begin_layout Plain Layout
42151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42154 \begin_layout Plain Layout
42160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42163 \begin_layout Plain Layout
42164 scaled point (65536
42165 \begin_inset space \thinspace{}
42169 \begin_inset space \thinspace{}
42177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42180 \begin_layout Plain Layout
42188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42191 \begin_layout Plain Layout
42197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42200 \begin_layout Plain Layout
42202 \begin_inset space \thinspace{}
42206 \begin_inset space \thinspace{}
42214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42217 \begin_layout Plain Layout
42225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42228 \begin_layout Plain Layout
42234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42237 \begin_layout Plain Layout
42239 \begin_inset space \thinspace{}
42243 \begin_inset Formula $\approx$
42247 \begin_inset space \thinspace{}
42255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42258 \begin_layout Plain Layout
42266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42269 \begin_layout Plain Layout
42275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42278 \begin_layout Plain Layout
42280 \begin_inset space \thinspace{}
42284 \begin_inset space \thinspace{}
42292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42295 \begin_layout Plain Layout
42303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42306 \begin_layout Plain Layout
42312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42315 \begin_layout Plain Layout
42316 % of original image width
42321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42324 \begin_layout Plain Layout
42332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42335 \begin_layout Plain Layout
42341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42344 \begin_layout Plain Layout
42350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42353 \begin_layout Plain Layout
42363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42366 \begin_layout Plain Layout
42372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42375 \begin_layout Plain Layout
42381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42384 \begin_layout Plain Layout
42394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42397 \begin_layout Plain Layout
42403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42406 \begin_layout Plain Layout
42412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42415 \begin_layout Plain Layout
42425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42428 \begin_layout Plain Layout
42434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42437 \begin_layout Plain Layout
42443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42446 \begin_layout Plain Layout
42456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42459 \begin_layout Plain Layout
42465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42468 \begin_layout Plain Layout
42474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42477 \begin_layout Plain Layout
42487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42490 \begin_layout Plain Layout
42496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42499 \begin_layout Plain Layout
42505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42508 \begin_layout Plain Layout
42518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42521 \begin_layout Plain Layout
42527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42530 \begin_layout Plain Layout
42540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42543 \begin_layout Plain Layout
42551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42554 \begin_layout Plain Layout
42560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42563 \begin_layout Plain Layout
42573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42576 \begin_layout Plain Layout
42584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42587 \begin_layout Plain Layout
42593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42596 \begin_layout Plain Layout
42598 \begin_inset space \thinspace{}
42602 \begin_inset space \thinspace{}
42610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42613 \begin_layout Plain Layout
42632 \begin_layout Chapter
42633 Output File Formats with Graphics
42634 \begin_inset CommandInset label
42636 name "cha:Output-File-Formats"
42643 \begin_layout Section
42645 \begin_inset Index idx
42648 \begin_layout Plain Layout
42655 \begin_inset Index idx
42658 \begin_layout Plain Layout
42663 \begin_layout Plain Layout
42674 \begin_layout Plain Layout
42689 \begin_layout Standard
42690 This file type has the extension
42691 \begin_inset Quotes eld
42699 \begin_inset Quotes erd
42704 \begin_inset Quotes eld
42708 \begin_inset Quotes erd
42711 (DVI), because it is completely portable; you can move them from one machine
42712 to another without needing to do any sort of conversion.
42713 At the time when this file-format was developed, this was no matter of
42715 DVIs are used for quick previews and as pre-stage for other output formats,
42719 \begin_layout Standard
42720 \begin_inset Note Greyedout
42723 \begin_layout Plain Layout
42728 DVI-files do not contain images; they will only be a linked.
42733 So don't forget this, if you move your
42737 file to another computer.
42738 This property can also slow down your computer when you view the DVI, because
42739 the DVI-viewer has to convert the image in the background to make it visible
42740 when you scroll in the DVI.
42741 So it is recommended that you use PDF for files with many images.
42744 \begin_layout Standard
42745 You can export your document to DVI by using the menu
42747 File\SpecialChar menuseparator
42748 Export\SpecialChar menuseparator
42752 You can view your document as DVI via the
42759 \begin_layout Section
42761 \begin_inset Index idx
42764 \begin_layout Plain Layout
42765 File Formats ! PostScript
42771 \begin_inset Index idx
42774 \begin_layout Plain Layout
42779 \begin_layout Plain Layout
42790 \begin_layout Plain Layout
42805 \begin_layout Standard
42806 This file type has the extension
42807 \begin_inset Quotes eld
42815 \begin_inset Quotes erd
42819 PostScript was developed by the company
42823 as a printer language.
42824 The file therefore contains commands that the printer uses to print the
42826 PostScript can be seen as a
42827 \begin_inset Quotes eld
42830 programming language
42831 \begin_inset Quotes erd
42834 ; you can calculate with it and draw diagrams and images.
42838 \begin_layout Plain Layout
42839 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42846 \begin_inset CommandInset citation
42858 Due to this ability, the files are often bigger than PDFs.
42861 \begin_layout Standard
42862 PostScript can only contain images in the format
42863 \begin_inset Quotes eld
42866 Encapsulated PostScript
42867 \begin_inset Quotes erd
42870 (EPS, file extension
42871 \begin_inset Quotes eld
42879 \begin_inset Quotes erd
42883 As \SpecialChar LyX
42884 allows you to use any known image format in your document, it has to
42885 convert images in the background to EPS.
42887 \begin_inset space ~
42891 \begin_inset space ~
42894 images in your document, \SpecialChar LyX
42896 \begin_inset space ~
42899 conversions whenever you view or export your document.
42900 This will slow down your work flow with \SpecialChar LyX
42902 So if you plan to use PostScript, you can insert your images directly as
42903 EPS to avoid this problem.
42906 \begin_layout Standard
42907 You can export your document to PostScript using the menu
42909 File\SpecialChar menuseparator
42910 Export\SpecialChar menuseparator
42914 You can view your document as PostScript via the
42921 \begin_layout Section
42923 \begin_inset Index idx
42926 \begin_layout Plain Layout
42933 \begin_inset Index idx
42936 \begin_layout Plain Layout
42945 \begin_layout Standard
42946 This file type has the extension
42947 \begin_inset Quotes eld
42955 \begin_inset Quotes erd
42960 \begin_inset Quotes eld
42963 Portable Document Format
42964 \begin_inset Quotes erd
42967 (PDF) was developed by
42971 as a derivative of PostScript.
42972 It is more compressed and it uses fewer commands than PostScript.
42974 \begin_inset Quotes eld
42978 \begin_inset Quotes erd
42981 implies, it can be processed at any computer system and the printed output
42982 looks exactly the same.
42985 \begin_layout Standard
42986 PDF can contain images in its own PDF format, in the format
42987 \begin_inset Quotes eld
42990 Joint Photographic Experts Group
42991 \begin_inset Quotes erd
42994 (JPG, file extension
42995 \begin_inset Quotes eld
43003 \begin_inset Quotes erd
43007 \begin_inset Quotes eld
43015 \begin_inset Quotes erd
43018 ), and in the format
43019 \begin_inset Quotes eld
43022 Portable Network Graphics
43023 \begin_inset Quotes erd
43026 (PNG, file extension
43027 \begin_inset Quotes eld
43035 \begin_inset Quotes erd
43039 Nevertheless you can use any other image format, because \SpecialChar LyX
43041 in the background to one of these formats.
43042 But as described in the section about PostScript, the image conversion
43043 will slow down your work flow.
43044 So it is recommended that you use images in one of the three mentioned
43048 \begin_layout Standard
43049 You can export your document to PDF via the menu
43051 File\SpecialChar menuseparator
43054 in three different ways:
43057 \begin_layout Description
43059 \begin_inset space ~
43062 (ps2pdf) This uses the program
43066 that creates a PDF from a PostScript-version of your file.
43067 The PostScript-version is produced by the program
43071 which uses a DVI-version as intermediate step.
43072 So this export variant consists of three conversions.
43075 \begin_layout Description
43077 \begin_inset space ~
43080 (dvipdfm) This uses the program
43084 that converts your file in the background to DVI and in a second step to
43088 \begin_layout Description
43090 \begin_inset space ~
43093 (pdflatex) This uses the program
43097 that converts your file directly to PDF.
43100 \begin_layout Standard
43101 It is recommended that you use
43104 \begin_inset space ~
43113 supports all features of actual PDF-versions, is quick and works stable.
43118 is not under development and therefore a bit outdated.
43121 \begin_layout Standard
43122 You can view your document as PDF via the
43126 menu or by using a toolbar button.
43129 \begin_layout Chapter
43130 List of dvips color names
43131 \begin_inset CommandInset label
43133 name "chap:List-of-dvips-colornames"
43140 \begin_layout Standard
43141 \begin_inset Tabular
43142 <lyxtabular version="3" rows="17" columns="4">
43143 <features tabularvalignment="middle">
43144 <column alignment="left" valignment="top" width="0pt">
43145 <column alignment="left" valignment="top" width="0pt">
43146 <column alignment="left" valignment="top" width="0pt">
43147 <column alignment="left" valignment="top" width="0pt">
43149 <cell alignment="left" valignment="top" usebox="none">
43152 \begin_layout Plain Layout
43156 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43180 \begin_layout Plain Layout
43192 <cell alignment="left" valignment="top" usebox="none">
43195 \begin_layout Plain Layout
43199 \begin_layout Plain Layout
43212 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43235 <cell alignment="left" valignment="top" usebox="none">
43238 \begin_layout Plain Layout
43242 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43266 \begin_layout Plain Layout
43278 <cell alignment="left" valignment="top" usebox="none">
43281 \begin_layout Plain Layout
43285 \begin_layout Plain Layout
43298 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43323 <cell alignment="center" valignment="top" usebox="none">
43326 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43351 \begin_inset Phantom Phantom
43354 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43376 <cell alignment="center" valignment="top" usebox="none">
43379 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43396 \begin_layout Plain Layout
43404 \begin_inset Phantom Phantom
43407 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43429 <cell alignment="center" valignment="top" usebox="none">
43432 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43449 \begin_layout Plain Layout
43457 \begin_inset Phantom Phantom
43460 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43482 <cell alignment="center" valignment="top" usebox="none">
43485 \begin_layout Plain Layout
43489 \begin_layout Plain Layout
43502 \begin_layout Plain Layout
43510 \begin_inset Phantom Phantom
43513 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43537 <cell alignment="left" valignment="top" usebox="none">
43540 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43565 \begin_inset Phantom Phantom
43568 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43590 <cell alignment="left" valignment="top" usebox="none">
43593 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43610 \begin_layout Plain Layout
43618 \begin_inset Phantom Phantom
43621 \begin_layout Plain Layout
43631 \begin_layout Plain Layout
43643 <cell alignment="left" valignment="top" usebox="none">
43646 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43663 \begin_layout Plain Layout
43671 \begin_inset Phantom Phantom
43674 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43696 <cell alignment="left" valignment="top" usebox="none">
43699 \begin_layout Plain Layout
43703 \begin_layout Plain Layout
43716 \begin_layout Plain Layout
43724 \begin_inset Phantom Phantom
43727 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43751 <cell alignment="left" valignment="top" usebox="none">
43754 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43779 \begin_inset Phantom Phantom
43782 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43804 <cell alignment="left" valignment="top" usebox="none">
43807 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43824 \begin_layout Plain Layout
43832 \begin_inset Phantom Phantom
43835 \begin_layout Plain Layout
43845 \begin_layout Plain Layout
43857 <cell alignment="left" valignment="top" usebox="none">
43860 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43877 \begin_layout Plain Layout
43885 \begin_inset Phantom Phantom
43888 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43910 <cell alignment="left" valignment="top" usebox="none">
43913 \begin_layout Plain Layout
43917 \begin_layout Plain Layout
43930 \begin_layout Plain Layout
43938 \begin_inset Phantom Phantom
43941 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43965 <cell alignment="left" valignment="top" usebox="none">
43968 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43993 \begin_inset Phantom Phantom
43996 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44018 <cell alignment="left" valignment="top" usebox="none">
44021 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44038 \begin_layout Plain Layout
44046 \begin_inset Phantom Phantom
44049 \begin_layout Plain Layout
44059 \begin_layout Plain Layout
44071 <cell alignment="left" valignment="top" usebox="none">
44074 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44091 \begin_layout Plain Layout
44099 \begin_inset Phantom Phantom
44102 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44124 <cell alignment="left" valignment="top" usebox="none">
44127 \begin_layout Plain Layout
44131 \begin_layout Plain Layout
44144 \begin_layout Plain Layout
44152 \begin_inset Phantom Phantom
44155 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44179 <cell alignment="left" valignment="top" usebox="none">
44182 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44207 \begin_inset Phantom Phantom
44210 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44232 <cell alignment="left" valignment="top" usebox="none">
44235 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44252 \begin_layout Plain Layout
44260 \begin_inset Phantom Phantom
44263 \begin_layout Plain Layout
44273 \begin_layout Plain Layout
44285 <cell alignment="left" valignment="top" usebox="none">
44288 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44305 \begin_layout Plain Layout
44313 \begin_inset Phantom Phantom
44316 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44338 <cell alignment="left" valignment="top" usebox="none">
44341 \begin_layout Plain Layout
44345 \begin_layout Plain Layout
44358 \begin_layout Plain Layout
44366 \begin_inset Phantom Phantom
44369 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44393 <cell alignment="center" valignment="top" usebox="none">
44396 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44421 \begin_inset Phantom Phantom
44424 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44446 <cell alignment="center" valignment="top" usebox="none">
44449 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44466 \begin_layout Plain Layout
44474 \begin_inset Phantom Phantom
44477 \begin_layout Plain Layout
44487 \begin_layout Plain Layout
44499 <cell alignment="center" valignment="top" usebox="none">
44502 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44519 \begin_layout Plain Layout
44527 \begin_inset Phantom Phantom
44530 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44552 <cell alignment="center" valignment="top" usebox="none">
44555 \begin_layout Plain Layout
44559 \begin_layout Plain Layout
44572 \begin_layout Plain Layout
44580 \begin_inset Phantom Phantom
44583 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44607 <cell alignment="left" valignment="top" usebox="none">
44610 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44635 \begin_inset Phantom Phantom
44638 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44660 <cell alignment="left" valignment="top" usebox="none">
44663 \begin_layout Plain Layout
44667 \begin_layout Plain Layout
44680 \begin_layout Plain Layout
44688 \begin_inset Phantom Phantom
44691 \begin_layout Plain Layout
44701 \begin_layout Plain Layout
44713 <cell alignment="left" valignment="top" usebox="none">
44716 \begin_layout Plain Layout
44720 \begin_layout Plain Layout
44733 \begin_layout Plain Layout
44741 \begin_inset Phantom Phantom
44744 \begin_layout Plain Layout
44754 \begin_layout Plain Layout
44766 <cell alignment="left" valignment="top" usebox="none">
44769 \begin_layout Plain Layout
44773 \begin_layout Plain Layout
44786 \begin_layout Plain Layout
44794 \begin_inset Phantom Phantom
44797 \begin_layout Plain Layout
44807 \begin_layout Plain Layout
44821 <cell alignment="left" valignment="top" usebox="none">
44824 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44841 \begin_layout Plain Layout
44849 \begin_inset Phantom Phantom
44852 \begin_layout Plain Layout
44862 \begin_layout Plain Layout
44874 <cell alignment="left" valignment="top" usebox="none">
44877 \begin_layout Plain Layout
44881 \begin_layout Plain Layout
44894 \begin_layout Plain Layout
44902 \begin_inset Phantom Phantom
44905 \begin_layout Plain Layout
44915 \begin_layout Plain Layout
44927 <cell alignment="left" valignment="top" usebox="none">
44930 \begin_layout Plain Layout
44934 \begin_layout Plain Layout
44947 \begin_layout Plain Layout
44955 \begin_inset Phantom Phantom
44958 \begin_layout Plain Layout
44968 \begin_layout Plain Layout
44980 <cell alignment="left" valignment="top" usebox="none">
44983 \begin_layout Plain Layout
44987 \begin_layout Plain Layout
45000 \begin_layout Plain Layout
45008 \begin_inset Phantom Phantom
45011 \begin_layout Plain Layout
45021 \begin_layout Plain Layout
45035 <cell alignment="left" valignment="top" usebox="none">
45038 \begin_layout Plain Layout
45042 \begin_layout Plain Layout
45055 \begin_layout Plain Layout
45063 \begin_inset Phantom Phantom
45066 \begin_layout Plain Layout
45076 \begin_layout Plain Layout
45088 <cell alignment="left" valignment="top" usebox="none">
45091 \begin_layout Plain Layout
45095 \begin_layout Plain Layout
45108 \begin_layout Plain Layout
45116 \begin_inset Phantom Phantom
45119 \begin_layout Plain Layout
45129 \begin_layout Plain Layout
45141 <cell alignment="left" valignment="top" usebox="none">
45144 \begin_layout Plain Layout
45148 \begin_layout Plain Layout
45161 \begin_layout Plain Layout
45169 \begin_inset Phantom Phantom
45172 \begin_layout Plain Layout
45182 \begin_layout Plain Layout
45194 <cell alignment="left" valignment="top" usebox="none">
45197 \begin_layout Plain Layout
45201 \begin_layout Plain Layout
45214 \begin_layout Plain Layout
45222 \begin_inset Phantom Phantom
45225 \begin_layout Plain Layout
45235 \begin_layout Plain Layout
45249 <cell alignment="left" valignment="top" usebox="none">
45252 \begin_layout Plain Layout
45256 \begin_layout Plain Layout
45269 \begin_layout Plain Layout
45277 \begin_inset Phantom Phantom
45280 \begin_layout Plain Layout
45290 \begin_layout Plain Layout
45302 <cell alignment="left" valignment="top" usebox="none">
45305 \begin_layout Plain Layout
45309 \begin_layout Plain Layout
45322 \begin_layout Plain Layout
45330 \begin_inset Phantom Phantom
45333 \begin_layout Plain Layout
45343 \begin_layout Plain Layout
45355 <cell alignment="left" valignment="top" usebox="none">
45358 \begin_layout Plain Layout
45362 \begin_layout Plain Layout
45375 \begin_layout Plain Layout
45383 \begin_inset Phantom Phantom
45386 \begin_layout Plain Layout
45396 \begin_layout Plain Layout
45408 <cell alignment="left" valignment="top" usebox="none">
45411 \begin_layout Plain Layout
45415 \begin_layout Plain Layout
45428 \begin_layout Plain Layout
45436 \begin_inset Phantom Phantom
45439 \begin_layout Plain Layout
45449 \begin_layout Plain Layout
45463 <cell alignment="left" valignment="top" usebox="none">
45466 \begin_layout Plain Layout
45470 \begin_layout Plain Layout
45483 \begin_layout Plain Layout
45491 \begin_inset Phantom Phantom
45494 \begin_layout Plain Layout
45504 \begin_layout Plain Layout
45516 <cell alignment="left" valignment="top" usebox="none">
45519 \begin_layout Plain Layout
45523 \begin_layout Plain Layout
45536 \begin_layout Plain Layout
45544 \begin_inset Phantom Phantom
45547 \begin_layout Plain Layout
45557 \begin_layout Plain Layout
45569 <cell alignment="left" valignment="top" usebox="none">
45572 \begin_layout Plain Layout
45576 \begin_layout Plain Layout
45589 \begin_layout Plain Layout
45597 \begin_inset Phantom Phantom
45600 \begin_layout Plain Layout
45610 \begin_layout Plain Layout
45622 <cell alignment="left" valignment="top" usebox="none">
45625 \begin_layout Plain Layout
45629 \begin_layout Plain Layout
45642 \begin_layout Plain Layout
45650 \begin_inset Phantom Phantom
45653 \begin_layout Plain Layout
45663 \begin_layout Plain Layout
45677 <cell alignment="left" valignment="top" usebox="none">
45680 \begin_layout Plain Layout
45684 \begin_layout Plain Layout
45697 \begin_layout Plain Layout
45705 \begin_inset Phantom Phantom
45708 \begin_layout Plain Layout
45718 \begin_layout Plain Layout
45730 <cell alignment="left" valignment="top" usebox="none">
45733 \begin_layout Plain Layout
45737 \begin_layout Plain Layout
45750 \begin_layout Plain Layout
45758 \begin_inset Phantom Phantom
45761 \begin_layout Plain Layout
45771 \begin_layout Plain Layout
45783 <cell alignment="left" valignment="top" usebox="none">
45786 \begin_layout Plain Layout
45790 \begin_layout Plain Layout
45803 \begin_layout Plain Layout
45811 \begin_inset Phantom Phantom
45814 \begin_layout Plain Layout
45824 \begin_layout Plain Layout
45836 <cell alignment="left" valignment="top" usebox="none">
45839 \begin_layout Plain Layout
45843 \begin_layout Plain Layout
45856 \begin_layout Plain Layout
45864 \begin_inset Phantom Phantom
45867 \begin_layout Plain Layout
45877 \begin_layout Plain Layout
45891 <cell alignment="left" valignment="top" usebox="none">
45894 \begin_layout Plain Layout
45898 \begin_layout Plain Layout
45911 \begin_layout Plain Layout
45919 \begin_inset Phantom Phantom
45922 \begin_layout Plain Layout
45932 \begin_layout Plain Layout
45944 <cell alignment="left" valignment="top" usebox="none">
45947 \begin_layout Plain Layout
45951 \begin_layout Plain Layout
45964 \begin_layout Plain Layout
45972 \begin_inset Phantom Phantom
45975 \begin_layout Plain Layout
45985 \begin_layout Plain Layout
45997 <cell alignment="left" valignment="top" usebox="none">
46000 \begin_layout Plain Layout
46004 \begin_layout Plain Layout
46017 \begin_layout Plain Layout
46025 \begin_inset Phantom Phantom
46028 \begin_layout Plain Layout
46038 \begin_layout Plain Layout
46050 <cell alignment="left" valignment="top" usebox="none">
46053 \begin_layout Plain Layout
46057 \begin_layout Plain Layout
46070 \begin_layout Plain Layout
46078 \begin_inset Phantom Phantom
46081 \begin_layout Plain Layout
46091 \begin_layout Plain Layout
46105 <cell alignment="left" valignment="top" usebox="none">
46108 \begin_layout Plain Layout
46112 \begin_layout Plain Layout
46125 \begin_layout Plain Layout
46133 \begin_inset Phantom Phantom
46136 \begin_layout Plain Layout
46146 \begin_layout Plain Layout
46158 <cell alignment="left" valignment="top" usebox="none">
46161 \begin_layout Plain Layout
46165 \begin_layout Plain Layout
46178 \begin_layout Plain Layout
46186 \begin_inset Phantom Phantom
46189 \begin_layout Plain Layout
46199 \begin_layout Plain Layout
46211 <cell alignment="left" valignment="top" usebox="none">
46214 \begin_layout Plain Layout
46218 \begin_layout Plain Layout
46231 \begin_layout Plain Layout
46239 \begin_inset Phantom Phantom
46242 \begin_layout Plain Layout
46252 \begin_layout Plain Layout
46264 <cell alignment="left" valignment="top" usebox="none">
46267 \begin_layout Plain Layout
46271 \begin_layout Plain Layout
46284 \begin_layout Plain Layout
46292 \begin_inset Phantom Phantom
46295 \begin_layout Plain Layout
46305 \begin_layout Plain Layout
46319 <cell alignment="left" valignment="top" usebox="none">
46322 \begin_layout Plain Layout
46326 \begin_layout Plain Layout
46339 \begin_layout Plain Layout
46347 \begin_inset Phantom Phantom
46350 \begin_layout Plain Layout
46360 \begin_layout Plain Layout
46372 <cell alignment="left" valignment="top" usebox="none">
46375 \begin_layout Plain Layout
46379 \begin_layout Plain Layout
46392 \begin_layout Plain Layout
46400 \begin_inset Phantom Phantom
46403 \begin_layout Plain Layout
46413 \begin_layout Plain Layout
46425 <cell alignment="left" valignment="top" usebox="none">
46428 \begin_layout Plain Layout
46432 \begin_layout Plain Layout
46445 \begin_layout Plain Layout
46453 \begin_inset Phantom Phantom
46456 \begin_layout Plain Layout
46466 \begin_layout Plain Layout
46478 <cell alignment="left" valignment="top" usebox="none">
46481 \begin_layout Plain Layout
46485 \begin_layout Plain Layout
46498 \begin_layout Plain Layout
46506 \begin_inset Phantom Phantom
46509 \begin_layout Plain Layout
46519 \begin_layout Plain Layout
46533 <cell alignment="left" valignment="top" usebox="none">
46536 \begin_layout Plain Layout
46540 \begin_layout Plain Layout
46553 \begin_layout Plain Layout
46561 \begin_inset Phantom Phantom
46564 \begin_layout Plain Layout
46574 \begin_layout Plain Layout
46586 <cell alignment="left" valignment="top" usebox="none">
46589 \begin_layout Plain Layout
46595 <cell alignment="left" valignment="top" usebox="none">
46598 \begin_layout Plain Layout
46604 <cell alignment="left" valignment="top" usebox="none">
46607 \begin_layout Plain Layout
46621 \begin_layout Chapter
46622 Explanation of Equation
46623 \begin_inset space ~
46627 \begin_inset CommandInset ref
46634 \begin_inset CommandInset label
46636 name "cha:Explanation-of-Equation"
46643 \begin_layout Standard
46644 We can calculate the total width of
46649 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46653 \begin_inset Formula
46655 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46661 \begin_inset Formula $W_{g\,n}$
46664 is the given width of all cells,
46670 is the \SpecialChar LaTeX
46671 -length between the cell text and the cell border (its default value
46673 \begin_inset space \thinspace{}
46683 is the thickness of the cell border line, the default is 0.4
46684 \begin_inset space \thinspace{}
46690 \begin_layout Standard
46692 \begin_inset space ~
46696 \begin_inset CommandInset ref
46698 reference "eq:Wtot_n"
46702 , the total width of a multicolumn
46703 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46707 \begin_inset Formula
46709 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46717 \begin_layout Standard
46718 By setting equation
46719 \begin_inset space ~
46723 \begin_inset CommandInset ref
46725 reference "eq:Wtot_n"
46730 \begin_inset CommandInset ref
46732 reference "eq:Wtot_mult"
46736 equal we can calculate the needed given width
46737 \begin_inset Formula $W_{g\,n}$
46744 columns are spanned, so that each column has a total width of
46745 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46749 \begin_inset Formula
46751 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46759 \begin_layout Bibliography
46760 \begin_inset CommandInset bibitem
46761 LatexCommand bibitem
46762 key "latexcompanion"
46767 Frank Mittelbach and Michel Goossens:
46769 The \SpecialChar LaTeX
46770 Companion Second Edition.
46773 Addison-Wesley, 2004
46776 \begin_layout Bibliography
46777 \begin_inset CommandInset bibitem
46778 LatexCommand bibitem
46784 Helmut Kopka and Patrick W.
46787 A Guide to \SpecialChar LaTeX
46791 Addison-Wesley, 2003
46794 \begin_layout Bibliography
46795 \begin_inset CommandInset bibitem
46796 LatexCommand bibitem
46805 : A Document Preparation System.
46808 Addison-Wesley, second edition, 1994
46811 \begin_layout Bibliography
46812 \begin_inset CommandInset bibitem
46813 LatexCommand bibitem
46819 Documentation of the \SpecialChar LaTeX
46823 \begin_inset CommandInset href
46826 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46834 \begin_inset Index idx
46837 \begin_layout Plain Layout
46839 -packages ! arydshln
46847 \begin_layout Bibliography
46848 \begin_inset CommandInset bibitem
46849 LatexCommand bibitem
46855 Documentation of the \SpecialChar LaTeX
46859 \begin_inset CommandInset href
46862 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46870 \begin_inset Index idx
46873 \begin_layout Plain Layout
46875 -packages ! booktabs
46883 \begin_layout Bibliography
46884 \begin_inset CommandInset bibitem
46885 LatexCommand bibitem
46891 Documentation of the \SpecialChar LaTeX
46895 \begin_inset CommandInset href
46898 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46906 \begin_inset Index idx
46909 \begin_layout Plain Layout
46911 -packages ! caption
46919 \begin_layout Bibliography
46920 \begin_inset CommandInset bibitem
46921 LatexCommand bibitem
46927 Documentation of the \SpecialChar LaTeX
46931 \begin_inset CommandInset href
46934 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46942 \begin_inset Index idx
46945 \begin_layout Plain Layout
46947 -packages ! diagbox
46955 \begin_layout Bibliography
46956 \begin_inset CommandInset bibitem
46957 LatexCommand bibitem
46963 Documentation of the \SpecialChar LaTeX
46967 \begin_inset CommandInset href
46970 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46978 \begin_inset Index idx
46981 \begin_layout Plain Layout
46983 -packages ! endfloat
46991 \begin_layout Bibliography
46992 \begin_inset CommandInset bibitem
46993 LatexCommand bibitem
46999 Documentation of the \SpecialChar LaTeX
47003 \begin_inset CommandInset href
47006 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
47014 \begin_inset Index idx
47017 \begin_layout Plain Layout
47019 -packages ! footmisc
47027 \begin_layout Bibliography
47028 \begin_inset CommandInset bibitem
47029 LatexCommand bibitem
47035 Documentation of the \SpecialChar LaTeX
47039 \begin_inset CommandInset href
47042 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
47050 \begin_inset Index idx
47053 \begin_layout Plain Layout
47055 -packages ! hyperref
47063 \begin_layout Bibliography
47064 \begin_inset CommandInset bibitem
47065 LatexCommand bibitem
47071 Documentation of the \SpecialChar LaTeX
47075 \begin_inset CommandInset href
47078 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
47086 \begin_inset Index idx
47089 \begin_layout Plain Layout
47091 -packages ! hyperref
47099 \begin_layout Bibliography
47100 \begin_inset CommandInset bibitem
47101 LatexCommand bibitem
47107 Documentation of the \SpecialChar LaTeX
47111 \begin_inset CommandInset href
47114 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
47122 \begin_inset Index idx
47125 \begin_layout Plain Layout
47127 -packages ! KOMA-Script
47135 \begin_layout Bibliography
47136 \begin_inset CommandInset bibitem
47137 LatexCommand bibitem
47143 Documentation of the \SpecialChar LaTeX
47147 \begin_inset CommandInset href
47150 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
47158 \begin_inset CommandInset href
47161 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
47167 \begin_inset Index idx
47170 \begin_layout Plain Layout
47172 -packages ! lettrine
47180 \begin_layout Bibliography
47181 \begin_inset CommandInset bibitem
47182 LatexCommand bibitem
47188 Documentation of the \SpecialChar LaTeX
47192 \begin_inset CommandInset href
47195 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
47203 \begin_inset Index idx
47206 \begin_layout Plain Layout
47208 -packages ! listings
47216 \begin_layout Bibliography
47217 \begin_inset CommandInset bibitem
47218 LatexCommand bibitem
47224 Documentation of the \SpecialChar LaTeX
47228 \begin_inset CommandInset href
47231 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
47239 \begin_inset Index idx
47242 \begin_layout Plain Layout
47252 \begin_layout Bibliography
47253 \begin_inset CommandInset bibitem
47254 LatexCommand bibitem
47260 Documentation of the \SpecialChar LaTeX
47264 \begin_inset CommandInset href
47267 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
47275 \begin_inset Index idx
47278 \begin_layout Plain Layout
47280 -packages ! marginnote
47288 \begin_layout Bibliography
47289 \begin_inset CommandInset bibitem
47290 LatexCommand bibitem
47296 Documentation of the \SpecialChar LaTeX
47300 \begin_inset CommandInset href
47303 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47311 \begin_inset Index idx
47314 \begin_layout Plain Layout
47316 -packages ! pdfpages
47324 \begin_layout Bibliography
47325 \begin_inset CommandInset bibitem
47326 LatexCommand bibitem
47332 Documentation of the \SpecialChar LaTeX
47336 \begin_inset CommandInset href
47339 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47347 \begin_inset Index idx
47350 \begin_layout Plain Layout
47352 -packages ! prettyref
47360 \begin_layout Bibliography
47361 \begin_inset CommandInset bibitem
47362 LatexCommand bibitem
47368 Web page of the \SpecialChar LaTeX
47372 \begin_inset CommandInset href
47375 target "http://tug.org/PSTricks/"
47383 \begin_inset Index idx
47386 \begin_layout Plain Layout
47388 -packages ! PSTricks
47396 \begin_layout Bibliography
47397 \begin_inset CommandInset bibitem
47398 LatexCommand bibitem
47404 Documentation of the \SpecialChar LaTeX
47408 \begin_inset CommandInset href
47411 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47419 \begin_inset Index idx
47422 \begin_layout Plain Layout
47424 -packages ! refstyle
47432 \begin_layout Bibliography
47433 \begin_inset CommandInset bibitem
47434 LatexCommand bibitem
47440 Documentation of the \SpecialChar LaTeX
47444 \begin_inset CommandInset href
47447 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47455 \begin_inset Index idx
47458 \begin_layout Plain Layout
47460 -packages ! sidecap
47468 \begin_layout Bibliography
47469 \begin_inset CommandInset bibitem
47470 LatexCommand bibitem
47476 Documentation of the option
47477 \begin_inset CommandInset href
47479 name "Omit text in PDF"
47480 target "http://tug.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47488 \begin_inset CommandInset href
47491 target "https://inkscape.org"
47499 \begin_layout Standard
47500 \begin_inset CommandInset index_print
47501 LatexCommand printindex