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 1
201 \use_package amssymb 1
202 \use_package cancel 1
204 \use_package mathdots 1
205 \use_package mathtools 1
206 \use_package mhchem 1
207 \use_package stackrel 1
208 \use_package stmaryrd 1
209 \use_package undertilde 1
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-in"
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
823 \begin_layout Plain Layout
824 \begin_inset Caption Standard
826 \begin_layout Plain Layout
827 \begin_inset CommandInset label
846 \begin_layout Standard
847 \begin_inset Float figure
852 \begin_layout Plain Layout
853 \begin_inset Caption Standard
855 \begin_layout Plain Layout
856 \begin_inset CommandInset label
858 name "fig:A-3D-object"
870 \begin_layout Plain Layout
872 \begin_inset Graphics
873 filename clipart/3D-structure-distort.pdf
889 \begin_layout Standard
890 \begin_inset Index idx
893 \begin_layout Plain Layout
894 References ! to Figures
904 \begin_inset CommandInset ref
906 reference "fig:A-star-in"
911 \begin_inset CommandInset ref
913 reference "fig:A-3D-object"
917 are examples of referenced figures.
918 Figures can be referenced in the text by referencing their label.
919 To do this insert a label in the caption using the menu
921 Insert\SpecialChar menuseparator
924 or the toolbar button
931 You can now refer to the label using the menu
933 Insert\SpecialChar menuseparator
940 or the toolbar button
943 arg "dialog-show-new-inset ref"
947 It is important to use references to floats, rather than using vague references
949 \begin_inset Quotes eld
953 \begin_inset Quotes erd
956 , because \SpecialChar LaTeX
957 will reposition the floats in the final document and it might
959 \begin_inset Quotes eld
963 \begin_inset Quotes erd
967 \begin_inset Newline newline
970 Referencing is explained in detail in section
975 \begin_inset CommandInset ref
977 reference "sec:Referencing-Floats"
984 \begin_layout Standard
985 Normally only one image is inserted to a figure float, but sometimes you
986 might want to use two images with separate subcaptions.
987 This can be done by inserting image floats into existing image floats.
988 Note that only the main caption of the float is added to the List of Figures.
994 \begin_inset CommandInset ref
996 reference "fig:Two-distorted-images"
1000 is an example of a figure float with two images set side by side.
1001 You can also set the images one below the other.
1003 \begin_inset space ~
1007 \begin_inset CommandInset ref
1009 reference "fig:Pink-object"
1014 \begin_inset CommandInset ref
1016 reference "fig:A-star"
1023 \begin_layout Standard
1024 \begin_inset Float figure
1029 \begin_layout Plain Layout
1030 \begin_inset space \hfill{}
1034 \begin_inset Float figure
1039 \begin_layout Plain Layout
1040 \begin_inset Caption Standard
1042 \begin_layout Plain Layout
1043 \begin_inset CommandInset label
1045 name "fig:Pink-object"
1057 \begin_layout Plain Layout
1058 \begin_inset Graphics
1059 filename clipart/3D-structure-distort.pdf
1072 \begin_inset space \hfill{}
1076 \begin_inset Float figure
1081 \begin_layout Plain Layout
1082 \begin_inset Caption Standard
1084 \begin_layout Plain Layout
1085 \begin_inset CommandInset label
1099 \begin_layout Plain Layout
1100 \begin_inset Graphics
1101 filename clipart/Star-structure.pdf
1114 \begin_inset space \hfill{}
1120 \begin_layout Plain Layout
1121 \begin_inset Caption Standard
1123 \begin_layout Plain Layout
1124 \begin_inset CommandInset label
1126 name "fig:Two-distorted-images"
1130 Two distorted images.
1131 Both images are in the image settings group named
1132 \begin_inset Quotes eld
1136 \begin_inset Quotes erd
1152 \begin_layout Standard
1153 \begin_inset Newpage newpage
1159 \begin_layout Section
1161 \begin_inset CommandInset label
1163 name "sec:Image-Formats"
1168 \begin_inset Index idx
1171 \begin_layout Plain Layout
1178 \begin_inset Index idx
1181 \begin_layout Plain Layout
1182 Figures ! Image Formats
1190 \begin_layout Standard
1191 You can insert images in any known file format.
1192 But as explained in appendix
1193 \begin_inset space ~
1197 \begin_inset CommandInset ref
1199 reference "cha:Output-File-Formats"
1203 , each output document format allows only a few image formats.
1205 uses therefore the program
1209 in the background to convert the images to the right format.
1210 To increase your work flow by avoiding these conversions in the background,
1211 you could choose to use only the image formats that can directly be embedded
1212 in the output file format.
1213 The output file formats are explained in appendix
1214 \begin_inset space ~
1218 \begin_inset CommandInset ref
1220 reference "cha:Output-File-Formats"
1227 \begin_layout Standard
1228 Similar to fonts there are two types of image formats:
1231 \begin_layout Description
1233 \begin_inset space ~
1236 images consist of pixel values, often in a compressed form.
1237 They are therefore not fully scalable and look pixelated in large zooms.
1238 Well-known bitmap image formats are
1239 \begin_inset Quotes eld
1242 Graphics Interchange Format
1243 \begin_inset Quotes erd
1246 (GIF, file extension
1247 \begin_inset Quotes eld
1255 \begin_inset Quotes erd
1259 \begin_inset Index idx
1262 \begin_layout Plain Layout
1267 \begin_layout Plain Layout
1278 \begin_layout Plain Layout
1291 \begin_inset Quotes eld
1294 Portable Network Graphics
1295 \begin_inset Quotes erd
1298 (PNG, file extension
1299 \begin_inset Quotes eld
1307 \begin_inset Quotes erd
1311 \begin_inset Index idx
1314 \begin_layout Plain Layout
1319 \begin_layout Plain Layout
1330 \begin_layout Plain Layout
1343 \begin_inset Quotes eld
1346 Joint Photographic Experts Group
1347 \begin_inset Quotes erd
1350 (JPG, file extension
1351 \begin_inset Quotes eld
1359 \begin_inset Quotes erd
1363 \begin_inset Quotes eld
1371 \begin_inset Quotes erd
1375 \begin_inset Index idx
1378 \begin_layout Plain Layout
1383 \begin_layout Plain Layout
1394 \begin_layout Plain Layout
1409 \begin_layout Description
1411 \begin_inset space ~
1414 images consist of vectors and can therefore be scaled to any size without
1416 The scaling ability is necessary if you want to create presentations, because
1417 presentations are always scaled by the video projector.
1418 Scaling is also useful for online documents to let the user zoom into diagrams.
1419 \begin_inset Newline newline
1422 Well-known scalable image formats are
1423 \begin_inset Quotes eld
1426 Scalable Vector Graphics
1427 \begin_inset Quotes erd
1430 (SVG, file extension
1431 \begin_inset Quotes eld
1439 \begin_inset Quotes erd
1443 \begin_inset Index idx
1446 \begin_layout Plain Layout
1451 \begin_layout Plain Layout
1462 \begin_layout Plain Layout
1475 \begin_inset Quotes eld
1478 Encapsulated PostScript
1479 \begin_inset Quotes erd
1482 (EPS, file extension
1483 \begin_inset Quotes eld
1491 \begin_inset Quotes erd
1495 \begin_inset Index idx
1498 \begin_layout Plain Layout
1503 \begin_layout Plain Layout
1514 \begin_layout Plain Layout
1527 \begin_inset Quotes eld
1530 Portable Document Format
1531 \begin_inset Quotes erd
1534 (PDF, file extension
1535 \begin_inset Quotes eld
1543 \begin_inset Quotes erd
1547 \begin_inset Index idx
1550 \begin_layout Plain Layout
1557 \begin_inset Quotes eld
1561 \begin_inset Quotes erd
1564 (WMF, file extension
1565 \begin_inset Quotes eld
1573 \begin_inset Quotes erd
1577 \begin_inset Index idx
1580 \begin_layout Plain Layout
1585 \begin_layout Plain Layout
1596 \begin_layout Plain Layout
1610 \begin_inset Quotes eld
1614 \begin_inset Quotes erd
1617 , because you can convert any bitmap image to a PDF or EPS-image and the
1618 result will still be a bitmap image.
1619 In such cases only a header with the image properties is added to the original
1624 \begin_layout Plain Layout
1625 In the case of PDF, the original image is additionally compressed.
1631 The PDF-files generated by
1635 are for example bitmap images.
1638 \begin_layout Standard
1639 Normally it is not possible to convert a bitmap image into a scalable one,
1641 Only the image formats PDF and EPS can directly be embedded to PDF and
1642 PostScript output files, respectively.
1643 SVG and WMF-images are recalculated to bitmaps when the output file is
1644 generated because there is currently no adequate WMF/SVG
1645 \begin_inset Formula $\to$
1648 PDF/EPS converter available.
1651 \begin_layout Chapter
1653 \begin_inset Index idx
1656 \begin_layout Plain Layout
1665 \begin_layout Section
1667 \begin_inset Index idx
1670 \begin_layout Plain Layout
1671 Table ! Introduction
1679 \begin_layout Standard
1680 You can insert a table using either the toolbar button
1683 arg "tabular-insert"
1688 Insert\SpecialChar menuseparator
1692 The toolbar button offers you a graphical selection: move the mouse to
1693 set the column/row number of the table that should be created and then
1694 press a mouse button.
1695 When you use the menu to create a table, a dialog will appear, asking you
1696 for the number of rows and columns.
1697 \begin_inset Newline newline
1700 The default table has lines around any cell and the first row appears separated
1701 from the rest of the table.
1702 This separation occurs due to a double line: The cells of the first row
1703 have a line below them and the cells of the second row have a line above
1705 Here is an example table:
1708 \begin_layout Standard
1710 \begin_inset Tabular
1711 <lyxtabular version="3" rows="4" columns="4">
1712 <features tabularvalignment="middle">
1713 <column alignment="center" valignment="top">
1714 <column alignment="center" valignment="top">
1715 <column alignment="center" valignment="top">
1716 <column alignment="center" valignment="top">
1718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1721 \begin_layout Plain Layout
1727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1730 \begin_layout Plain Layout
1745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1748 \begin_layout Plain Layout
1754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1757 \begin_layout Plain Layout
1765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1768 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1795 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1804 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1851 \begin_layout Plain Layout
1859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1862 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1898 \begin_layout Plain Layout
1912 \begin_layout Section
1914 \begin_inset Index idx
1917 \begin_layout Plain Layout
1926 \begin_layout Standard
1927 You can alter a table by clicking on it with the right mouse button, which
1928 brings up the context menu.
1929 Under the menu entry
1933 you can adjust the settings of that cell and row/column respectively where
1934 the cursor is currently placed.
1937 More\SpecialChar menuseparator
1940 opens the table dialog where you can adjust more things.
1941 Most of the dialog options also work on selections.
1942 This means if you select more cells, columns or rows, the action is done
1943 for the whole selection.
1944 Note that there is a difference between selecting the
1948 of the cell, and the cell itself.
1949 \begin_inset Newline newline
1952 With the dialog option
1955 \begin_inset space ~
1960 every change you make in the dialog is directly applied.
1961 If you move the cursor to another table cell the dialog will then also
1962 be updated with the parameters of the new cell.
1963 If you change length values in the dialog you must press
1967 to get the change applied.
1968 \begin_inset Newline newline
1971 You can alter tables with the following tabs of the table dialog:
1974 \begin_layout Description
1976 \begin_inset space ~
1979 Settings Here you can set the table width
1980 \begin_inset Index idx
1983 \begin_layout Plain Layout
1989 , and the horizontal alignment and the width of the current column.
1993 \begin_inset space ~
1997 \begin_inset space ~
2002 is described in section
2003 \begin_inset space ~
2007 \begin_inset CommandInset ref
2009 reference "subsec:Special-Cell-Alignment"
2014 When you have set a width you can also adjust the vertical alignment of
2016 A given width will allow the cell to have line breaks and multiple paragraphs
2018 \begin_inset space \thinspace{}
2022 \begin_inset CommandInset ref
2024 reference "subsec:Multiple-Lines-in"
2029 If you set no width, the column is as wide as the content of its widest
2031 \begin_inset Newline newline
2034 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2036 \begin_inset space \thinspace{}
2040 \begin_inset CommandInset ref
2042 reference "subsec:Multicolumns"
2046 or the cells of one column as multirow cell, see sec.
2047 \begin_inset space \thinspace{}
2051 \begin_inset CommandInset ref
2053 reference "subsec:Multirows"
2058 \begin_inset Newline newline
2061 The rotate check boxes rotate the current cell, a selection, or the whole
2062 table counter-clockwise by 90
2063 \begin_inset space \thinspace{}
2067 The rotation is not shown within \SpecialChar LyX
2068 , only in the output.
2069 For more information see sec.
2070 \begin_inset space \thinspace{}
2074 \begin_inset CommandInset ref
2076 reference "sec:Rotated-Table-Cells"
2081 \begin_inset Newline newline
2085 \begin_inset Note Greyedout
2088 \begin_layout Plain Layout
2093 Not all DVI-viewers are able to display rotations.
2099 \begin_inset Newline newline
2102 The table-wide vertical alignment is used for tables within text lines:
2103 \begin_inset Newline newline
2106 A line with tables with different alignments:
2107 \begin_inset Tabular
2108 <lyxtabular version="3" rows="2" columns="2">
2109 <features tabularvalignment="top">
2110 <column alignment="center" valignment="top" width="0pt">
2111 <column alignment="center" valignment="top">
2113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2116 \begin_layout Plain Layout
2122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2125 \begin_layout Plain Layout
2142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2145 \begin_layout Plain Layout
2160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2163 \begin_layout Plain Layout
2175 \begin_inset Tabular
2176 <lyxtabular version="3" rows="2" columns="2">
2177 <features tabularvalignment="middle">
2178 <column alignment="center" valignment="top">
2179 <column alignment="center" valignment="top">
2181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2184 \begin_layout Plain Layout
2190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2193 \begin_layout Plain Layout
2210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2213 \begin_layout Plain Layout
2228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2231 \begin_layout Plain Layout
2243 \begin_inset Tabular
2244 <lyxtabular version="3" rows="2" columns="2">
2245 <features tabularvalignment="bottom">
2246 <column alignment="center" valignment="top" width="0pt">
2247 <column alignment="center" valignment="top">
2249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2252 \begin_layout Plain Layout
2258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2261 \begin_layout Plain Layout
2278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2281 \begin_layout Plain Layout
2296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2299 \begin_layout Plain Layout
2311 \begin_inset Newline newline
2314 It is also possible to enter a \SpecialChar LaTeX
2315 -argument which is needed for special table
2316 formattings, see sec.
2317 \begin_inset space \thinspace{}
2321 \begin_inset CommandInset ref
2323 reference "subsec:Multicolumn-Calculations"
2328 \begin_inset CommandInset ref
2330 reference "sec:Colored-Tables"
2337 \begin_layout Description
2338 Borders In this tab you can add and delete border lines for the current
2340 \begin_inset Newline newline
2343 Using the style option
2347 will convert the table to a formal table as described in sec.
2348 \begin_inset space \thinspace{}
2352 \begin_inset CommandInset ref
2354 reference "sec:Formal-Tables"
2359 \begin_inset Newline newline
2362 You can also add space here to table rows as described in sec.
2363 \begin_inset space \thinspace{}
2367 \begin_inset CommandInset ref
2369 reference "subsec:Row-Spacing"
2376 \begin_layout Description
2378 \begin_inset space ~
2381 table This tab is to make a table a multi-page table that can run over several
2384 \begin_inset space ~
2388 \begin_inset CommandInset ref
2390 reference "sec:Multi-page-Tables"
2395 \begin_inset CommandInset ref
2397 reference "sec:Special-Longtable-Issues"
2401 describe the multi-page table features in detail.
2404 \begin_layout Section
2406 \begin_inset Index idx
2409 \begin_layout Plain Layout
2418 \begin_layout Standard
2419 The table toolbar is an alternative to the table dialog to be able to alter
2421 It should normally appear at the bottom of \SpecialChar LyX
2422 's main window when the cursor
2424 You can alternatively switch it on to appear always, by right-clicking
2429 \begin_layout Standard
2430 The toolbar has the following icons:
2433 \begin_layout Labeling
2434 \labelwidthstring 00.00.0000
2437 arg "tabular-feature append-row"
2440 adds a row below the current cell or selection
2443 \begin_layout Labeling
2444 \labelwidthstring 00.00.0000
2447 arg "tabular-feature append-column"
2450 adds a column right beside the current cell or selection
2453 \begin_layout Labeling
2454 \labelwidthstring 00.00.0000
2457 arg "tabular-feature delete-row"
2460 deletes the current row or selection
2463 \begin_layout Labeling
2464 \labelwidthstring 00.00.0000
2467 arg "tabular-feature delete-column"
2470 deletes the current column or selection
2473 \begin_layout Labeling
2474 \labelwidthstring 00.00.0000
2477 arg "tabular-feature move-row-up"
2483 \begin_layout Labeling
2484 \labelwidthstring 00.00.0000
2487 arg "tabular-feature move-column-left"
2490 moves the column to the left
2493 \begin_layout Labeling
2494 \labelwidthstring 00.00.0000
2497 arg "tabular-feature move-row-down"
2503 \begin_layout Labeling
2504 \labelwidthstring 00.00.0000
2507 arg "tabular-feature move-column-right"
2510 moves the column to the right
2513 \begin_layout Labeling
2514 \labelwidthstring 00.00.0000
2517 arg "tabular-feature toggle-line-top"
2520 adds a line at the top of the current cell / row or of a selection
2523 \begin_layout Labeling
2524 \labelwidthstring 00.00.0000
2527 arg "tabular-feature toggle-line-bottom"
2530 adds a line at the bottom of the current cell / row or of a selection
2533 \begin_layout Labeling
2534 \labelwidthstring 00.00.0000
2537 arg "tabular-feature toggle-line-left"
2540 adds a line at the left side of the current cell / row or of a selection
2543 \begin_layout Labeling
2544 \labelwidthstring 00.00.0000
2547 arg "tabular-feature toggle-line-right"
2550 adds a line at the right side of the current cell / row or of a selection
2553 \begin_layout Labeling
2554 \labelwidthstring 00.00.0000
2557 arg "tabular-feature set-all-lines"
2560 adds lines around the current or selected cells - if the current cell no
2561 multicolumn cell this also affects the current row and column
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2568 arg "tabular-feature unset-all-lines"
2571 deletes all lines of the current or selected cells - if the current cell
2572 no multicolumn cell this also affects the current row and column
2575 \begin_layout Labeling
2576 \labelwidthstring 00.00.0000
2579 arg "tabular-feature m-align-left"
2582 left-aligns the content of the current cell / column
2585 \begin_layout Labeling
2586 \labelwidthstring 00.00.0000
2589 arg "tabular-feature m-align-center"
2592 centers the content of the current cell / column horizontally
2595 \begin_layout Labeling
2596 \labelwidthstring 00.00.0000
2599 arg "tabular-feature m-align-right"
2602 right-aligns the content of the current cell / column
2605 \begin_layout Labeling
2606 \labelwidthstring 00.00.0000
2609 arg "tabular-feature align-decimal"
2612 aligns the content of the current column at a character
2615 \begin_layout Labeling
2616 \labelwidthstring 00.00.0000
2619 arg "tabular-feature m-valign-top"
2622 aligns the content of the current cell vertically to the top
2625 \begin_layout Labeling
2626 \labelwidthstring 00.00.0000
2629 arg "tabular-feature m-valign-middle"
2632 centers the content of the current cell vertically
2635 \begin_layout Labeling
2636 \labelwidthstring 00.00.0000
2639 arg "tabular-feature m-valign-bottom"
2642 aligns the content of the current cell vertically to the bottom
2645 \begin_layout Labeling
2646 \labelwidthstring 00.00.0000
2649 arg "tabular-feature set-rotate-cell"
2652 rotates the current cell or selection counter-clockwise by 90°
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2659 arg "tabular-feature set-rotate-tabular"
2662 rotates the whole table counter-clockwise by 90°
2665 \begin_layout Labeling
2666 \labelwidthstring 00.00.0000
2669 arg "tabular-feature multicolumn"
2672 sets the current cell or selection as a multicolumn
2675 \begin_layout Labeling
2676 \labelwidthstring 00.00.0000
2679 arg "tabular-feature multirow"
2682 sets the current cell or selection as a multirow
2685 \begin_layout Standard
2686 \begin_inset Note Greyedout
2689 \begin_layout Plain Layout
2694 For the output the vertical alignment of the first cell in a row is used
2695 for all following cells in the row.
2703 \begin_layout Section
2705 \begin_inset Index idx
2708 \begin_layout Plain Layout
2717 \begin_layout Standard
2718 In addition to the table dialog and toolbar, the menu
2720 Edit\SpecialChar menuseparator
2723 allows you to add and delete border lines for the current row/column and
2724 to set the current selection as multicolumn.
2725 The menu is only available when the cursor is inside a table.
2728 \begin_layout Section
2730 \begin_inset CommandInset label
2732 name "sec:Table-Floats"
2737 \begin_inset Index idx
2740 \begin_layout Plain Layout
2747 \begin_inset Index idx
2750 \begin_layout Plain Layout
2759 \begin_layout Standard
2760 For general explanations about floats, have a look at section
2761 \begin_inset space ~
2765 \begin_inset CommandInset ref
2767 reference "sec:FloatIntroduction"
2774 \begin_layout Standard
2775 \begin_inset Float table
2781 \begin_layout Plain Layout
2782 \begin_inset Caption Standard
2784 \begin_layout Plain Layout
2785 \begin_inset CommandInset label
2787 name "tab:a table float"
2799 \begin_layout Plain Layout
2801 \begin_inset Tabular
2802 <lyxtabular version="3" rows="3" columns="3">
2803 <features tabularvalignment="middle">
2804 <column alignment="center" valignment="top" width="0pt">
2805 <column alignment="center" valignment="top" width="0pt">
2806 <column alignment="center" valignment="top" width="0pt">
2808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2811 \begin_layout Plain Layout
2826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2829 \begin_layout Plain Layout
2844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2847 \begin_layout Plain Layout
2864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2867 \begin_layout Plain Layout
2882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2885 \begin_layout Plain Layout
2900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2903 \begin_layout Plain Layout
2920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2923 \begin_layout Plain Layout
2933 \begin_inset Formula $\int x^{2}dx$
2941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2944 \begin_layout Plain Layout
2954 \begin_inset Formula $\left[\begin{array}{cc}
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2968 \begin_layout Plain Layout
2978 \begin_inset Formula $1+1=2$
2999 \begin_layout Standard
3000 Table floats can be inserted using the menu
3002 Insert\SpecialChar menuseparator
3003 Float\SpecialChar menuseparator
3006 or the toolbar button
3009 arg "float-insert table"
3015 \begin_layout Standard
3016 The float appears as a collapsible box with a caption that has the label
3018 \begin_inset Quotes eld
3022 \begin_inset space ~
3026 \begin_inset Quotes erd
3029 (# is the actual table number).
3030 You can insert tables in the float above or below the caption.
3033 \begin_layout Standard
3035 \begin_inset space ~
3039 \begin_inset CommandInset ref
3041 reference "tab:a table float"
3045 is an example table within a table float.
3048 \begin_layout Standard
3049 Having the caption above the table is the common rule that is unfortunately
3050 not supported in \SpecialChar LaTeX
3051 's standard classes.
3052 This means that, if you are using the document classes
3068 , there will be no space between the caption and the table.
3069 To insert the needed space, add the following option to the load command
3070 of the \SpecialChar LaTeX
3076 \begin_inset Index idx
3079 \begin_layout Plain Layout
3086 in your document preamble:
3090 \begin_layout Plain Layout
3091 For more information have a look at section
3092 \begin_inset space ~
3096 \begin_inset CommandInset ref
3098 reference "sec:Caption-Placement"
3110 \begin_layout Standard
3116 \begin_layout Standard
3121 , which is described in section
3122 \begin_inset space ~
3126 \begin_inset CommandInset ref
3128 reference "sec:Caption-Formatting"
3132 , is used to adjust the caption format.
3135 \begin_layout Standard
3136 \begin_inset Index idx
3139 \begin_layout Plain Layout
3140 References ! to Tables
3145 Tables can be cross-referenced in the text by referencing their label.
3146 To do this insert a label in the caption using the menu
3148 Insert\SpecialChar menuseparator
3151 or the toolbar button
3158 You can now refer to the label using the menu
3160 Insert\SpecialChar menuseparator
3162 \begin_inset space ~
3167 or the toolbar button
3170 arg "dialog-show-new-inset ref"
3174 \begin_inset Newline newline
3177 Referencing is explained in detail in section
3178 \begin_inset space ~
3182 \begin_inset CommandInset ref
3184 reference "sec:Referencing-Floats"
3191 \begin_layout Section
3197 \begin_inset CommandInset label
3199 name "sec:Multi-page-Tables"
3204 \begin_inset Index idx
3207 \begin_layout Plain Layout
3214 \begin_inset Index idx
3217 \begin_layout Plain Layout
3218 Table ! Multi-page Table
3226 \begin_layout Standard
3227 If the table is too long to fit on one page, you can use the option
3230 \begin_inset space ~
3238 \begin_inset space ~
3243 of the table dialog to split the table automatically over more pages.
3244 Doing this enables the following options:
3247 \begin_layout Description
3248 Header: The current row is defined to be a header row that appears on all
3249 pages of the multi-page table; except for the first page, if
3252 \begin_inset space ~
3258 This is therefore called the main header.
3261 \begin_layout Description
3263 \begin_inset space ~
3266 header: The current row is defined to be a header row that appears on the
3267 first page of the multi-page table.
3270 \begin_layout Description
3271 Footer: The current row is defined to be a footer row that appears on all
3272 pages of the multi-page table; except for the last page, if
3275 \begin_inset space ~
3283 \begin_layout Description
3285 \begin_inset space ~
3288 footer: The current row is defined to be a footer row that appears on the
3289 last page of the multi-page table.
3292 \begin_layout Description
3293 Caption: The current row contains the table caption.
3294 The row is reset as single column and a caption is inserted.
3295 More about multi-page table captions is explained in sec.
3296 \begin_inset space \thinspace{}
3300 \begin_inset CommandInset ref
3302 reference "subsec:Multi-page-Table-Captions"
3309 \begin_layout Standard
3310 You can also specify a row where the table is split.
3311 See the following multi-page table to see how it works:
3314 \begin_layout Standard
3316 \begin_inset Tabular
3317 <lyxtabular version="3" rows="69" columns="3">
3318 <features islongtable="true" longtabularalignment="center">
3319 <column alignment="left" valignment="top" width="0cm">
3320 <column alignment="left" valignment="top" width="0pt">
3321 <column alignment="center" valignment="top" width="0pt">
3322 <row endfirsthead="true">
3323 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3326 \begin_layout Plain Layout
3329 Example Phone List (ignore the names)
3334 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3337 \begin_layout Plain Layout
3343 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3346 \begin_layout Plain Layout
3353 <row endfirsthead="true">
3354 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3357 \begin_layout Plain Layout
3365 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3368 \begin_layout Plain Layout
3374 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3377 \begin_layout Plain Layout
3386 <row endhead="true">
3387 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3390 \begin_layout Plain Layout
3398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3401 \begin_layout Plain Layout
3407 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3410 \begin_layout Plain Layout
3417 <row endhead="true">
3418 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3421 \begin_layout Plain Layout
3429 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3432 \begin_layout Plain Layout
3438 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3441 \begin_layout Plain Layout
3450 <row endfoot="true">
3451 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3454 \begin_layout Plain Layout
3455 continued on next page
3460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3463 \begin_layout Plain Layout
3469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" usebox="none">
3494 \begin_layout Plain Layout
3500 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3503 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" usebox="none">
3525 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" usebox="none">
3556 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" usebox="none">
3587 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" usebox="none">
3618 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" usebox="none">
3649 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" usebox="none">
3680 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" usebox="none">
3711 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" usebox="none">
3742 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" usebox="none">
3773 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" usebox="none">
3804 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" usebox="none">
3835 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" usebox="none">
3866 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" usebox="none">
3897 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" usebox="none">
3928 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" usebox="none">
3959 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" usebox="none">
3990 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" usebox="none">
4021 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" usebox="none">
4052 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" usebox="none">
4083 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" usebox="none">
4114 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" usebox="none">
4145 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4165 \begin_layout Plain Layout
4173 <cell alignment="center" valignment="top" usebox="none">
4176 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4185 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4196 \begin_layout Plain Layout
4204 <cell alignment="center" valignment="top" usebox="none">
4207 \begin_layout Plain Layout
4213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4216 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4227 \begin_layout Plain Layout
4235 <cell alignment="center" valignment="top" usebox="none">
4238 \begin_layout Plain Layout
4244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4247 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4258 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" usebox="none">
4269 \begin_layout Plain Layout
4275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4278 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" usebox="none">
4300 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4309 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4320 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" usebox="none">
4331 \begin_layout Plain Layout
4337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4340 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" usebox="none">
4362 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4371 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4382 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" usebox="none">
4393 \begin_layout Plain Layout
4399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4402 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4413 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4424 \begin_layout Plain Layout
4430 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4433 \begin_layout Plain Layout
4441 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4444 \begin_layout Plain Layout
4450 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4453 \begin_layout Plain Layout
4459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell alignment="center" valignment="top" usebox="none">
4484 \begin_layout Plain Layout
4490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4493 \begin_layout Plain Layout
4501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="center" valignment="top" usebox="none">
4515 \begin_layout Plain Layout
4521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="center" valignment="top" usebox="none">
4546 \begin_layout Plain Layout
4552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="center" valignment="top" usebox="none">
4577 \begin_layout Plain Layout
4583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="center" valignment="top" usebox="none">
4608 \begin_layout Plain Layout
4614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="center" valignment="top" usebox="none">
4639 \begin_layout Plain Layout
4645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="center" valignment="top" usebox="none">
4670 \begin_layout Plain Layout
4676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="center" valignment="top" usebox="none">
4701 \begin_layout Plain Layout
4707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="center" valignment="top" usebox="none">
4732 \begin_layout Plain Layout
4738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="center" valignment="top" usebox="none">
4763 \begin_layout Plain Layout
4769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="center" valignment="top" usebox="none">
4794 \begin_layout Plain Layout
4800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="center" valignment="top" usebox="none">
4825 \begin_layout Plain Layout
4831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="center" valignment="top" usebox="none">
4856 \begin_layout Plain Layout
4862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="center" valignment="top" usebox="none">
4887 \begin_layout Plain Layout
4893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="center" valignment="top" usebox="none">
4918 \begin_layout Plain Layout
4924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="center" valignment="top" usebox="none">
4949 \begin_layout Plain Layout
4955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="center" valignment="top" usebox="none">
4980 \begin_layout Plain Layout
4986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="center" valignment="top" usebox="none">
5011 \begin_layout Plain Layout
5017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="center" valignment="top" usebox="none">
5042 \begin_layout Plain Layout
5048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="center" valignment="top" usebox="none">
5073 \begin_layout Plain Layout
5079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="center" valignment="top" usebox="none">
5104 \begin_layout Plain Layout
5110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="center" valignment="top" usebox="none">
5135 \begin_layout Plain Layout
5141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5144 \begin_layout Plain Layout
5152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5155 \begin_layout Plain Layout
5163 <cell alignment="center" valignment="top" usebox="none">
5166 \begin_layout Plain Layout
5172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5175 \begin_layout Plain Layout
5183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5186 \begin_layout Plain Layout
5194 <cell alignment="center" valignment="top" usebox="none">
5197 \begin_layout Plain Layout
5203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5206 \begin_layout Plain Layout
5214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5217 \begin_layout Plain Layout
5225 <cell alignment="center" valignment="top" usebox="none">
5228 \begin_layout Plain Layout
5234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5237 \begin_layout Plain Layout
5245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5248 \begin_layout Plain Layout
5256 <cell alignment="center" valignment="top" usebox="none">
5259 \begin_layout Plain Layout
5265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5268 \begin_layout Plain Layout
5276 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5279 \begin_layout Plain Layout
5287 <cell alignment="center" valignment="top" usebox="none">
5290 \begin_layout Plain Layout
5296 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5299 \begin_layout Plain Layout
5307 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5310 \begin_layout Plain Layout
5318 <cell alignment="center" valignment="top" usebox="none">
5321 \begin_layout Plain Layout
5327 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5330 \begin_layout Plain Layout
5338 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5341 \begin_layout Plain Layout
5349 <cell alignment="center" valignment="top" usebox="none">
5352 \begin_layout Plain Layout
5358 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5361 \begin_layout Plain Layout
5369 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5372 \begin_layout Plain Layout
5380 <cell alignment="center" valignment="top" usebox="none">
5383 \begin_layout Plain Layout
5389 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5392 \begin_layout Plain Layout
5400 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5411 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5414 \begin_layout Plain Layout
5420 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5423 \begin_layout Plain Layout
5430 <row endlastfoot="true">
5431 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5434 \begin_layout Plain Layout
5440 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5443 \begin_layout Plain Layout
5449 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5452 \begin_layout Plain Layout
5467 \begin_layout Plain Layout
5471 addtocounter{table}{-1}
5477 \begin_inset Note Note
5480 \begin_layout Plain Layout
5481 See the first greyed-out note in section
5482 \begin_inset space ~
5486 \begin_inset CommandInset ref
5488 reference "subsec:Multi-page-Table-Captions"
5492 for an explanation of this command.
5500 \begin_layout Subsection
5501 Footnotes in Multi-page tables
5502 \begin_inset CommandInset label
5504 name "subsec:Footnotes-in-Multi-page"
5509 \begin_inset Index idx
5512 \begin_layout Plain Layout
5513 Table ! Multi-page Table ! Footnotes
5521 \begin_layout Standard
5522 Footnotes can be inserted to every Multi-page table cell.
5523 They appear at the bottom of the page where the table cell with the footnote
5526 \begin_inset space ~
5530 \begin_inset CommandInset ref
5532 reference "tab:DiffCaptions"
5536 has for example a footnote.
5539 \begin_layout Subsection
5540 Multi-page Table Alignment
5541 \begin_inset Index idx
5544 \begin_layout Plain Layout
5545 Table ! Multi-page Table ! Alignment
5553 \begin_layout Standard
5554 The horizontal alignment of multi-page tables can be set in the table settings
5556 For left- and right-alignment the table will be directly at the page border.
5557 To add space between the table and the border one has to set the alignment
5558 to center and change the value of the \SpecialChar LaTeX
5571 by inserting this line as \SpecialChar TeX
5572 Code before the multi-page table:
5575 \begin_layout Standard
5585 \begin_layout Standard
5586 The value can have any of the units listed in Table
5587 \begin_inset space ~
5591 \begin_inset CommandInset ref
5593 reference "tab:Units"
5604 controls the horizontal distance from the left page border to the multi-page
5611 the distance from the right side.
5612 The default value for both lengths is
5618 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5622 \begin_layout Standard
5623 The following multi-page table was centered and
5639 \begin_layout Plain Layout
5655 \begin_layout Standard
5656 \begin_inset Tabular
5657 <lyxtabular version="3" rows="5" columns="5">
5658 <features islongtable="true" longtabularalignment="center">
5659 <column alignment="center" valignment="top">
5660 <column alignment="center" valignment="top" width="0pt">
5661 <column alignment="center" valignment="top">
5662 <column alignment="center" valignment="top">
5663 <column alignment="center" valignment="top">
5665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5668 \begin_layout Plain Layout
5674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5677 \begin_layout Plain Layout
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5686 \begin_layout Plain Layout
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Plain Layout
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5704 \begin_layout Plain Layout
5712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5715 \begin_layout Plain Layout
5721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5724 \begin_layout Plain Layout
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Plain Layout
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Plain Layout
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5751 \begin_layout Plain Layout
5759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5762 \begin_layout Plain Layout
5768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5907 \begin_layout Plain Layout
5924 \begin_layout Plain Layout
5928 addtocounter{table}{-1}
5934 \begin_inset Note Note
5937 \begin_layout Plain Layout
5938 See the first greyed-out note in section
5939 \begin_inset space ~
5943 \begin_inset CommandInset ref
5945 reference "subsec:Multi-page-Table-Captions"
5949 for an explanation of this command.
5957 \begin_layout Subsection
5958 Multi-page Table Captions
5959 \begin_inset Index idx
5962 \begin_layout Plain Layout
5963 Table ! Multi-page Table ! Captions
5969 \begin_inset CommandInset label
5971 name "subsec:Multi-page-Table-Captions"
5978 \begin_layout Standard
5979 A multi-page table cannot be put into a table float because floats can only
5981 But the caption environment of floats can also be used for multi-page tables
5982 when you use the multi-page table option
5986 as described in sec.
5987 \begin_inset space \thinspace{}
5991 \begin_inset CommandInset ref
5993 reference "sec:Multi-page-Tables"
5998 Only one table row should contain a caption, either a header or a footer
6002 \begin_layout Standard
6003 Here is a short multi-page table to see how it works:
6006 \begin_layout Standard
6007 \begin_inset Tabular
6008 <lyxtabular version="3" rows="6" columns="5">
6009 <features islongtable="true" longtabularalignment="center">
6010 <column alignment="center" valignment="top">
6011 <column alignment="center" valignment="top">
6012 <column alignment="center" valignment="top">
6013 <column alignment="center" valignment="top">
6014 <column alignment="center" valignment="top">
6015 <row endfirsthead="true" caption="true">
6016 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6019 \begin_layout Plain Layout
6020 \begin_inset Caption Standard
6022 \begin_layout Plain Layout
6023 Multi-page table with caption
6024 \begin_inset Argument 1
6027 \begin_layout Plain Layout
6043 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6046 \begin_layout Plain Layout
6052 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6055 \begin_layout Plain Layout
6061 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6064 \begin_layout Plain Layout
6070 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6073 \begin_layout Plain Layout
6081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6084 \begin_layout Plain Layout
6090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6093 \begin_layout Plain Layout
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Plain Layout
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Plain Layout
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6120 \begin_layout Plain Layout
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6131 \begin_layout Plain Layout
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Plain Layout
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Plain Layout
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6167 \begin_layout Plain Layout
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6178 \begin_layout Plain Layout
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Plain Layout
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Plain Layout
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6214 \begin_layout Plain Layout
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6225 \begin_layout Plain Layout
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Plain Layout
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6252 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6261 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6299 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6308 \begin_layout Plain Layout
6322 \begin_layout Standard
6323 \begin_inset VSpace medskip
6327 \begin_inset Note Greyedout
6330 \begin_layout Plain Layout
6334 \begin_inset space ~
6339 The table number is increased for every multi-page table, even if you did
6340 not set a caption for it.
6341 For this reason you could have the case that e.
6342 \begin_inset space \thinspace{}
6346 \begin_inset space \space{}
6350 \begin_inset space ~
6354 \begin_inset space ~
6357 2.1 in the list of tables if there are two multi-page tables without captions.
6358 To avoid this you can add the following command in \SpecialChar TeX
6359 Code after every multi-page
6360 table without a caption:
6363 \begin_layout Plain Layout
6368 addtocounter{table}{-1}
6371 \begin_layout Plain Layout
6372 This is not needed when none of your multi-page tables has a caption and
6373 you add the following code to the document preamble:
6376 \begin_layout Plain Layout
6386 \begin_inset Newline newline
6397 addtocounter{table}{-1}}
6405 \begin_layout Standard
6406 \begin_inset Note Greyedout
6409 \begin_layout Plain Layout
6413 \begin_inset space ~
6423 \begin_inset Index idx
6426 \begin_layout Plain Layout
6428 -packages ! hyperref
6441 dialog to link cross-references, the link to a multi-page table caption
6442 will always point to the beginning of the document.
6450 \begin_layout Subsubsection
6451 References to multi-page tables
6452 \begin_inset Index idx
6455 \begin_layout Plain Layout
6456 Table ! Multi-page Table ! References
6464 \begin_layout Standard
6465 \begin_inset Tabular
6466 <lyxtabular version="3" rows="6" columns="5">
6467 <features islongtable="true" longtabularalignment="center">
6468 <column alignment="center" valignment="top">
6469 <column alignment="center" valignment="top">
6470 <column alignment="center" valignment="top">
6471 <column alignment="center" valignment="top">
6472 <column alignment="center" valignment="top">
6473 <row endfirsthead="true" caption="true">
6474 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6477 \begin_layout Plain Layout
6478 \begin_inset Caption Standard
6480 \begin_layout Plain Layout
6481 Referenced multi-page table
6482 \begin_inset CommandInset label
6484 name "tab:Referenced-multi-page-table"
6498 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6501 \begin_layout Plain Layout
6507 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6510 \begin_layout Plain Layout
6516 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6519 \begin_layout Plain Layout
6525 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6528 \begin_layout Plain Layout
6536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6539 \begin_layout Plain Layout
6545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6548 \begin_layout Plain Layout
6554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6557 \begin_layout Plain Layout
6563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6566 \begin_layout Plain Layout
6572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6575 \begin_layout Plain Layout
6583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6586 \begin_layout Plain Layout
6592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6595 \begin_layout Plain Layout
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6604 \begin_layout Plain Layout
6610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6613 \begin_layout Plain Layout
6619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6622 \begin_layout Plain Layout
6630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6633 \begin_layout Plain Layout
6639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6642 \begin_layout Plain Layout
6648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6651 \begin_layout Plain Layout
6657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6660 \begin_layout Plain Layout
6666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6669 \begin_layout Plain Layout
6677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6680 \begin_layout Plain Layout
6686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6689 \begin_layout Plain Layout
6695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6698 \begin_layout Plain Layout
6704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6707 \begin_layout Plain Layout
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6716 \begin_layout Plain Layout
6724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6727 \begin_layout Plain Layout
6733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6736 \begin_layout Plain Layout
6742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6745 \begin_layout Plain Layout
6751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6754 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6763 \begin_layout Plain Layout
6777 \begin_layout Standard
6778 To reference a multi-page table, insert a label into the caption.
6781 \begin_layout Standard
6782 This is a reference to Table
6783 \begin_inset space ~
6787 \begin_inset CommandInset ref
6789 reference "tab:Referenced-multi-page-table"
6796 \begin_layout Standard
6797 The caption layout can be set together with all other captions of your document
6798 using the \SpecialChar LaTeX
6804 \begin_inset Index idx
6807 \begin_layout Plain Layout
6815 \begin_inset space ~
6819 \begin_inset CommandInset ref
6821 reference "sec:Caption-Formatting"
6828 \begin_layout Subsubsection
6830 \begin_inset Index idx
6833 \begin_layout Plain Layout
6834 Table ! Multi-page Table ! Caption Width
6842 \begin_layout Standard
6843 The maximal width of caption lines is defined by the length
6850 Its default value is 4
6851 \begin_inset space \thinspace{}
6855 To change it add the following command to your document preamble or as
6857 Code into your document before the multi-page table that should be affected
6860 \begin_layout Standard
6870 \begin_layout Standard
6875 can have one of the units listed in appendix
6876 \begin_inset space ~
6880 \begin_inset CommandInset ref
6882 reference "cha:Units-available-in"
6889 \begin_layout Standard
6890 The following tables show the difference:
6893 \begin_layout Standard
6894 \begin_inset Tabular
6895 <lyxtabular version="3" rows="6" columns="5">
6896 <features islongtable="true" longtabularalignment="center">
6897 <column alignment="center" valignment="top">
6898 <column alignment="center" valignment="top">
6899 <column alignment="center" valignment="top">
6900 <column alignment="center" valignment="top">
6901 <column alignment="center" valignment="top">
6902 <row endfirsthead="true" caption="true">
6903 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6906 \begin_layout Plain Layout
6907 \begin_inset Caption Standard
6909 \begin_layout Plain Layout
6910 Long full title with default width long full title with default width long
6911 full title with default width
6912 \begin_inset Argument 1
6915 \begin_layout Plain Layout
6916 caption with default width
6931 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6934 \begin_layout Plain Layout
6940 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6943 \begin_layout Plain Layout
6949 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6952 \begin_layout Plain Layout
6958 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6961 \begin_layout Plain Layout
6969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6981 \begin_layout Plain Layout
6987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6990 \begin_layout Plain Layout
6996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6999 \begin_layout Plain Layout
7005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7008 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7037 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7046 \begin_layout Plain Layout
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7055 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7084 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7093 \begin_layout Plain Layout
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7102 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7131 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7140 \begin_layout Plain Layout
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7149 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7178 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7187 \begin_layout Plain Layout
7193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7196 \begin_layout Plain Layout
7210 \begin_layout Standard
7214 \begin_layout Plain Layout
7226 \begin_inset Tabular
7227 <lyxtabular version="3" rows="6" columns="5">
7228 <features islongtable="true" longtabularalignment="center">
7229 <column alignment="center" valignment="top">
7230 <column alignment="center" valignment="top">
7231 <column alignment="center" valignment="top">
7232 <column alignment="center" valignment="top">
7233 <column alignment="center" valignment="top">
7234 <row endfirsthead="true" caption="true">
7235 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7238 \begin_layout Plain Layout
7239 \begin_inset Caption Standard
7241 \begin_layout Plain Layout
7242 Long full title with width set to 5
7243 \begin_inset space \thinspace{}
7246 cm long full title with width set to 5
7247 \begin_inset space \thinspace{}
7250 cm long full title with width set to 5
7251 \begin_inset space \thinspace{}
7255 \begin_inset Argument 1
7258 \begin_layout Plain Layout
7260 \begin_inset space \thinspace{}
7264 \begin_inset space \thinspace{}
7268 \begin_inset space \thinspace{}
7286 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7289 \begin_layout Plain Layout
7295 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7298 \begin_layout Plain Layout
7304 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7307 \begin_layout Plain Layout
7313 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7316 \begin_layout Plain Layout
7324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7336 \begin_layout Plain Layout
7342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7345 \begin_layout Plain Layout
7351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7354 \begin_layout Plain Layout
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7363 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7383 \begin_layout Plain Layout
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7392 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7401 \begin_layout Plain Layout
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7410 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7448 \begin_layout Plain Layout
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7457 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7477 \begin_layout Plain Layout
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7486 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7504 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7533 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7551 \begin_layout Plain Layout
7565 \begin_layout Standard
7569 \begin_layout Plain Layout
7583 \begin_layout Standard
7584 \begin_inset Note Greyedout
7587 \begin_layout Plain Layout
7592 When the \SpecialChar LaTeX
7598 \begin_inset Index idx
7601 \begin_layout Plain Layout
7608 is used, as in this document, the full page width is used for the caption
7609 when you use the default value of 4
7610 \begin_inset space \thinspace{}
7620 To get in this case exactly a 4
7621 \begin_inset space \thinspace{}
7624 in wide caption, you can either use a value slightly different from 4.0
7625 \begin_inset space \thinspace{}
7629 \begin_inset space \thinspace{}
7633 \begin_inset space \space{}
7637 \begin_inset space \thinspace{}
7640 in, or the \SpecialChar LaTeX
7645 captionsetup{width=value}
7647 that is provided by the
7659 \begin_layout Subsubsection
7660 Different Captions for Table Pages
7661 \begin_inset Index idx
7664 \begin_layout Plain Layout
7665 Table ! Multi-page Table ! Different Captions for Pages
7673 \begin_layout Standard
7674 When the table captions for the following pages should differ from the one
7675 of the first table page, mark a empty row as header which contains a caption.
7676 Then right-click on the caption and select in the context menu
7679 \begin_inset space ~
7686 \begin_inset space ~
7690 \begin_inset CommandInset ref
7692 reference "tab:DiffCaptions"
7696 is an example of a multi-page table with different heading where the second
7697 caption does not include the table number.
7700 \begin_layout Standard
7702 \begin_inset Tabular
7703 <lyxtabular version="3" rows="59" columns="3">
7704 <features islongtable="true" longtabularalignment="center">
7705 <column alignment="left" valignment="top" width="0cm">
7706 <column alignment="left" valignment="top" width="0pt">
7707 <column alignment="center" valignment="top" width="0pt">
7708 <row endfirsthead="true" caption="true">
7709 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7712 \begin_layout Plain Layout
7713 \begin_inset Caption Standard
7715 \begin_layout Plain Layout
7717 \begin_inset CommandInset label
7719 name "tab:DiffCaptions"
7724 \begin_inset Argument 1
7727 \begin_layout Plain Layout
7743 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7746 \begin_layout Plain Layout
7752 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7755 \begin_layout Plain Layout
7762 <row endfirsthead="true">
7763 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7766 \begin_layout Plain Layout
7769 Example Phone List (ignore the names)
7774 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7777 \begin_layout Plain Layout
7783 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7786 \begin_layout Plain Layout
7793 <row endfirsthead="true">
7794 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7797 \begin_layout Plain Layout
7805 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7808 \begin_layout Plain Layout
7814 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7817 \begin_layout Plain Layout
7826 <row endhead="true" caption="true">
7827 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7830 \begin_layout Plain Layout
7831 \begin_inset Caption Unnumbered
7833 \begin_layout Plain Layout
7834 Continued Example Phone List
7844 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7847 \begin_layout Plain Layout
7853 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7856 \begin_layout Plain Layout
7863 <row endhead="true">
7864 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7867 \begin_layout Plain Layout
7875 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7878 \begin_layout Plain Layout
7884 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7887 \begin_layout Plain Layout
7894 <row endhead="true">
7895 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7898 \begin_layout Plain Layout
7906 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7909 \begin_layout Plain Layout
7915 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7918 \begin_layout Plain Layout
7927 <row endfoot="true">
7928 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7931 \begin_layout Plain Layout
7932 continued on next page
7937 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7940 \begin_layout Plain Layout
7946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7949 \begin_layout Plain Layout
7957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7960 \begin_layout Plain Layout
7968 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7971 \begin_layout Plain Layout
7977 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7980 \begin_layout Plain Layout
7988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7991 \begin_layout Plain Layout
7999 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8002 \begin_layout Plain Layout
8008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8011 \begin_layout Plain Layout
8019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8022 \begin_layout Plain Layout
8030 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8033 \begin_layout Plain Layout
8039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8042 \begin_layout Plain Layout
8050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8053 \begin_layout Plain Layout
8061 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8064 \begin_layout Plain Layout
8070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8073 \begin_layout Plain Layout
8081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8084 \begin_layout Plain Layout
8092 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8095 \begin_layout Plain Layout
8101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8104 \begin_layout Plain Layout
8112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8115 \begin_layout Plain Layout
8123 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8126 \begin_layout Plain Layout
8132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8135 \begin_layout Plain Layout
8143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8146 \begin_layout Plain Layout
8154 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8157 \begin_layout Plain Layout
8163 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8166 \begin_layout Plain Layout
8174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8177 \begin_layout Plain Layout
8185 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8188 \begin_layout Plain Layout
8194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8197 \begin_layout Plain Layout
8205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8208 \begin_layout Plain Layout
8216 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8219 \begin_layout Plain Layout
8225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8228 \begin_layout Plain Layout
8236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8239 \begin_layout Plain Layout
8247 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8250 \begin_layout Plain Layout
8256 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8259 \begin_layout Plain Layout
8267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8270 \begin_layout Plain Layout
8278 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8281 \begin_layout Plain Layout
8287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8290 \begin_layout Plain Layout
8298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8301 \begin_layout Plain Layout
8309 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8312 \begin_layout Plain Layout
8318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8321 \begin_layout Plain Layout
8329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8332 \begin_layout Plain Layout
8340 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8343 \begin_layout Plain Layout
8349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8352 \begin_layout Plain Layout
8360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8363 \begin_layout Plain Layout
8371 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8374 \begin_layout Plain Layout
8380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8383 \begin_layout Plain Layout
8391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8394 \begin_layout Plain Layout
8403 \begin_layout Plain Layout
8414 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8417 \begin_layout Plain Layout
8423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8426 \begin_layout Plain Layout
8434 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8437 \begin_layout Plain Layout
8445 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8448 \begin_layout Plain Layout
8454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8457 \begin_layout Plain Layout
8465 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8468 \begin_layout Plain Layout
8476 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8479 \begin_layout Plain Layout
8485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8488 \begin_layout Plain Layout
8496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8499 \begin_layout Plain Layout
8507 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8510 \begin_layout Plain Layout
8516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8519 \begin_layout Plain Layout
8527 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8530 \begin_layout Plain Layout
8538 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8541 \begin_layout Plain Layout
8547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8550 \begin_layout Plain Layout
8558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8561 \begin_layout Plain Layout
8569 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8572 \begin_layout Plain Layout
8578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8581 \begin_layout Plain Layout
8589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8592 \begin_layout Plain Layout
8600 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8603 \begin_layout Plain Layout
8609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8612 \begin_layout Plain Layout
8620 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8623 \begin_layout Plain Layout
8631 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8634 \begin_layout Plain Layout
8640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8643 \begin_layout Plain Layout
8651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8654 \begin_layout Plain Layout
8662 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8665 \begin_layout Plain Layout
8671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8674 \begin_layout Plain Layout
8682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8685 \begin_layout Plain Layout
8693 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8696 \begin_layout Plain Layout
8702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8724 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8727 \begin_layout Plain Layout
8733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8736 \begin_layout Plain Layout
8744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8747 \begin_layout Plain Layout
8755 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8758 \begin_layout Plain Layout
8764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8767 \begin_layout Plain Layout
8775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8778 \begin_layout Plain Layout
8786 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8789 \begin_layout Plain Layout
8795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8798 \begin_layout Plain Layout
8806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8809 \begin_layout Plain Layout
8817 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8820 \begin_layout Plain Layout
8826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8829 \begin_layout Plain Layout
8837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8840 \begin_layout Plain Layout
8848 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8851 \begin_layout Plain Layout
8857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8860 \begin_layout Plain Layout
8868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8871 \begin_layout Plain Layout
8879 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8882 \begin_layout Plain Layout
8888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8891 \begin_layout Plain Layout
8899 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8902 \begin_layout Plain Layout
8910 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8913 \begin_layout Plain Layout
8919 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8922 \begin_layout Plain Layout
8930 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8933 \begin_layout Plain Layout
8939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8942 \begin_layout Plain Layout
8948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8951 \begin_layout Plain Layout
8959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8962 \begin_layout Plain Layout
8970 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8973 \begin_layout Plain Layout
8979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8982 \begin_layout Plain Layout
8990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8993 \begin_layout Plain Layout
9001 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9004 \begin_layout Plain Layout
9010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9013 \begin_layout Plain Layout
9021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9024 \begin_layout Plain Layout
9032 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9035 \begin_layout Plain Layout
9041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9044 \begin_layout Plain Layout
9052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9055 \begin_layout Plain Layout
9063 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9066 \begin_layout Plain Layout
9072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9075 \begin_layout Plain Layout
9083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9086 \begin_layout Plain Layout
9094 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9097 \begin_layout Plain Layout
9103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9106 \begin_layout Plain Layout
9114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9117 \begin_layout Plain Layout
9125 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9128 \begin_layout Plain Layout
9134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9137 \begin_layout Plain Layout
9145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9148 \begin_layout Plain Layout
9156 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9159 \begin_layout Plain Layout
9165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9168 \begin_layout Plain Layout
9176 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9179 \begin_layout Plain Layout
9187 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9190 \begin_layout Plain Layout
9196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9199 \begin_layout Plain Layout
9207 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9210 \begin_layout Plain Layout
9218 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9221 \begin_layout Plain Layout
9227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9230 \begin_layout Plain Layout
9238 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9241 \begin_layout Plain Layout
9249 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9252 \begin_layout Plain Layout
9258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9261 \begin_layout Plain Layout
9269 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9272 \begin_layout Plain Layout
9280 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9283 \begin_layout Plain Layout
9289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9292 \begin_layout Plain Layout
9300 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9303 \begin_layout Plain Layout
9311 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9314 \begin_layout Plain Layout
9320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9323 \begin_layout Plain Layout
9331 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9334 \begin_layout Plain Layout
9342 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9345 \begin_layout Plain Layout
9351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9354 \begin_layout Plain Layout
9362 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9365 \begin_layout Plain Layout
9373 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9376 \begin_layout Plain Layout
9382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9385 \begin_layout Plain Layout
9393 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9396 \begin_layout Plain Layout
9404 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9407 \begin_layout Plain Layout
9413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9416 \begin_layout Plain Layout
9424 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9427 \begin_layout Plain Layout
9435 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9438 \begin_layout Plain Layout
9444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9447 \begin_layout Plain Layout
9455 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9458 \begin_layout Plain Layout
9466 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9469 \begin_layout Plain Layout
9475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9478 \begin_layout Plain Layout
9486 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9489 \begin_layout Plain Layout
9497 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9500 \begin_layout Plain Layout
9506 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9509 \begin_layout Plain Layout
9517 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9520 \begin_layout Plain Layout
9528 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9531 \begin_layout Plain Layout
9537 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9540 \begin_layout Plain Layout
9548 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9551 \begin_layout Plain Layout
9559 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9562 \begin_layout Plain Layout
9568 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9571 \begin_layout Plain Layout
9585 \begin_layout Section
9586 Special Multi-page Table Issues
9587 \begin_inset CommandInset label
9589 name "sec:Special-Longtable-Issues"
9596 \begin_layout Subsection
9597 Multi-page Table Calculation
9598 \begin_inset Index idx
9601 \begin_layout Plain Layout
9602 Table ! Multi-page Table ! Calculation
9610 \begin_layout Standard
9612 calculates the height of table pages and their page breaks using so called
9614 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9616 The default value was historically set to only 20
9617 \begin_inset space ~
9621 If you are using multi-page tables with many pages this may slow down the
9622 creation of your document.
9623 You can safely increase the chunk size to values of 100
9624 \begin_inset space \thinspace{}
9628 \begin_inset space \thinspace{}
9631 1000 by adding this command line to your document preamble:
9634 \begin_layout Standard
9639 setcounter{LTchunksize}{100}
9642 \begin_layout Subsection
9643 Floats and Multi-page Tables
9644 \begin_inset Index idx
9647 \begin_layout Plain Layout
9648 Table ! Multi-page Table ! Floats
9656 \begin_layout Standard
9657 There might be problems when a float appears on the same page where a multi-page
9659 To avoid such a situation, insert a
9660 \begin_inset Quotes eld
9664 \begin_inset Quotes erd
9669 Insert\SpecialChar menuseparator
9670 Formatting\SpecialChar menuseparator
9672 \begin_inset space ~
9677 ) before your multi-page table.
9680 \begin_layout Subsection
9682 \begin_inset Index idx
9685 \begin_layout Plain Layout
9686 Table ! Multi-page Table ! Forced Page Breaks
9694 \begin_layout Standard
9695 By default tables are only broken between rows.
9696 If you have a cell with multiples lines and want to have a page break within
9697 the cell, insert the new line command
9698 \begin_inset Quotes eld
9710 \begin_inset Quotes erd
9714 Code at the point of the cell where it can be broken.
9723 command you have to insert in \SpecialChar TeX
9725 \begin_inset Quotes eld
9733 \begin_inset Quotes erd
9736 characters as the number of the following table columns.
9741 is the character to separate table cells.
9742 Write in \SpecialChar TeX
9747 the content of the corresponding following cell and delete the content
9749 \begin_inset Newline newline
9760 command, insert as many
9764 characters as the number of table columns before the current column.
9766 \begin_inset space ~
9770 \begin_inset CommandInset ref
9772 reference "tab:ForcedPagebreak"
9776 the cell that should be broken is in the second column followed by another
9778 Therefore the following command was inserted in the cell as \SpecialChar TeX
9781 \begin_inset Quotes eld
9789 \begin_inset Quotes erd
9795 \begin_layout Standard
9805 \begin_inset Newline newline
9811 \begin_layout Standard
9813 \begin_inset Quotes eld
9817 \begin_inset Quotes erd
9820 in the third column of the row was deleted.
9827 is only needed when a page break should definitely occur at this position,
9828 otherwise it would be a conditional break.
9829 If your footer row of the multi-page table has for a certain reason no
9830 upper line but you would have a horizontal line where the cell is broken,
9831 use this command instead:
9834 \begin_layout Standard
9842 \begin_inset Newline newline
9850 \begin_layout Standard
9851 When the cell to be broken is in the last column, the command
9854 \begin_layout Standard
9864 \begin_layout Standard
9865 must be inserted as \SpecialChar TeX
9866 Code at the beginning of the cell.
9867 This ensures that the part of the cell that will be displayed on the new
9868 page appears with the full width.
9871 \begin_layout Standard
9873 \begin_inset Tabular
9874 <lyxtabular version="3" rows="38" columns="3">
9875 <features islongtable="true" longtabularalignment="center">
9876 <column alignment="left" valignment="top" width="0cm">
9877 <column alignment="left" valignment="top" width="3cm">
9878 <column alignment="center" valignment="top" width="0pt">
9879 <row endfirsthead="true" caption="true">
9880 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9883 \begin_layout Plain Layout
9884 \begin_inset Caption Standard
9886 \begin_layout Plain Layout
9887 Table with forced page break in table cell
9888 \begin_inset CommandInset label
9890 name "tab:ForcedPagebreak"
9895 \begin_inset Argument 1
9898 \begin_layout Plain Layout
9899 Table with forced page break in table cell
9914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9917 \begin_layout Plain Layout
9923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9926 \begin_layout Plain Layout
9933 <row endfirsthead="true">
9934 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9937 \begin_layout Plain Layout
9940 Example Phone List (ignore the names)
9945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9954 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9964 <row endfirsthead="true">
9965 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9968 \begin_layout Plain Layout
9976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9979 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9988 \begin_layout Plain Layout
9997 <row endhead="true" caption="true">
9998 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10001 \begin_layout Plain Layout
10002 \begin_inset Caption Unnumbered
10004 \begin_layout Plain Layout
10005 Continued Example Phone List
10015 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10018 \begin_layout Plain Layout
10024 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10027 \begin_layout Plain Layout
10034 <row endhead="true">
10035 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10038 \begin_layout Plain Layout
10046 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10049 \begin_layout Plain Layout
10055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10065 <row endhead="true">
10066 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10098 <row endfoot="true">
10099 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10102 \begin_layout Plain Layout
10103 continued on next page
10108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10503 \begin_layout Plain Layout
10511 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10514 \begin_layout Plain Layout
10520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10523 \begin_layout Plain Layout
10531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10534 \begin_layout Plain Layout
10542 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10545 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10565 \begin_layout Plain Layout
10573 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10596 \begin_layout Plain Layout
10604 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10627 \begin_layout Plain Layout
10635 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10658 \begin_layout Plain Layout
10666 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10689 \begin_layout Plain Layout
10697 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10720 \begin_layout Plain Layout
10728 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10751 \begin_layout Plain Layout
10759 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10782 \begin_layout Plain Layout
10790 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10802 \begin_layout Plain Layout
10810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10813 \begin_layout Plain Layout
10821 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10824 \begin_layout Plain Layout
10826 Fürst von Montecompatri, 11.
10827 Fürst von Sulmona und Vivaro, 10.
10828 Fürst von Rossano, 5.
10829 Herzog von Canemorte, 11.
10830 Herzog von Palombara, 5.
10831 Herzog von Castelchiodato,
10835 \begin_layout Plain Layout
10846 \begin_layout Plain Layout
10854 Herzog von Poggionativo, 11.
10855 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10856 Graf von Valinfreda, 11.
10857 Baron von Cropalati, 11.
10858 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10863 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10866 \begin_layout Plain Layout
10874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10877 \begin_layout Plain Layout
10885 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10888 \begin_layout Plain Layout
10894 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10897 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10908 \begin_layout Plain Layout
10916 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10919 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10928 \begin_layout Plain Layout
10936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10947 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10950 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10959 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11001 \begin_layout Plain Layout
11009 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11012 \begin_layout Plain Layout
11018 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11021 \begin_layout Plain Layout
11029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11032 \begin_layout Plain Layout
11040 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11043 \begin_layout Plain Layout
11049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11052 \begin_layout Plain Layout
11060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11063 \begin_layout Plain Layout
11071 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11074 \begin_layout Plain Layout
11080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11083 \begin_layout Plain Layout
11091 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11094 \begin_layout Plain Layout
11102 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11105 \begin_layout Plain Layout
11111 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11114 \begin_layout Plain Layout
11128 \begin_layout Section
11129 Multiple Lines, Columns and Rows
11132 \begin_layout Subsection
11133 Multiple Lines in Table Cells
11134 \begin_inset CommandInset label
11136 name "subsec:Multiple-Lines-in"
11141 \begin_inset Index idx
11144 \begin_layout Plain Layout
11145 Multiple Lines in Table Cells
11151 \begin_inset Index idx
11154 \begin_layout Plain Layout
11163 \begin_layout Standard
11165 \begin_inset Float table
11171 \begin_layout Plain Layout
11172 \begin_inset Caption Standard
11174 \begin_layout Plain Layout
11175 \begin_inset CommandInset label
11177 name "tab:Table-with-multiple"
11181 Table with multiple lines in cells
11189 \begin_layout Plain Layout
11191 \begin_inset Tabular
11192 <lyxtabular version="3" rows="3" columns="3">
11193 <features tabularvalignment="middle">
11194 <column alignment="center" valignment="middle" width="2.5cm">
11195 <column alignment="center" valignment="middle">
11196 <column alignment="center" valignment="middle">
11198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11201 \begin_layout Plain Layout
11203 \begin_inset Newline linebreak
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11214 \begin_layout Plain Layout
11220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11223 \begin_layout Plain Layout
11231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11234 \begin_layout Plain Layout
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11252 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11263 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11281 \begin_layout Plain Layout
11300 \begin_layout Standard
11301 Setting a fixed width for a column enables you to enter text as a paragraph
11302 with multiple lines and hyphenation.
11305 \begin_layout Standard
11307 \begin_inset space ~
11311 \begin_inset CommandInset ref
11313 reference "tab:Table-with-multiple"
11317 , create a 3×3 table, mark the first cell and right-click on it.
11318 In the appearing table dialog we set a cell width of 2.5
11319 \begin_inset space \thinspace{}
11322 cm and choose centered for the vertical and horizontal alignment.
11323 The vertical alignment is used for all cells of the row.
11324 As our text is smaller than 2.5
11325 \begin_inset space \thinspace{}
11328 cm, only one line will appear.
11329 To get two lines, a justified line break (shortcut
11332 arg "newline-insert linebreak"
11336 If the text is wider than the set cell width, it will automatically be
11337 broken to several lines.
11340 \begin_layout Standard
11341 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11342 by \SpecialChar LaTeX
11343 if it is the first entry.
11344 Therefore you need to insert something to prevent the word not being the
11346 So add a horizontal space of 0
11347 \begin_inset space \thinspace{}
11350 pt before the word.
11351 As the space is zero, it doesn't change the output.
11353 \begin_inset space ~
11357 \begin_inset CommandInset ref
11359 reference "tab:Table-with-and"
11366 \begin_layout Standard
11367 \begin_inset Float table
11373 \begin_layout Plain Layout
11374 \begin_inset Caption Standard
11376 \begin_layout Plain Layout
11377 \begin_inset CommandInset label
11379 name "tab:Table-with-and"
11383 Table with and without hyphenation
11391 \begin_layout Plain Layout
11392 \begin_inset space \hfill{}
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="3" columns="3">
11398 <features tabularvalignment="middle">
11399 <column alignment="center" valignment="middle" width="2.5cm">
11400 <column alignment="center" valignment="middle">
11401 <column alignment="center" valignment="middle">
11403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11406 \begin_layout Plain Layout
11407 verylongtablecellword
11412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11415 \begin_layout Plain Layout
11421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11424 \begin_layout Plain Layout
11432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11435 \begin_layout Plain Layout
11441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11444 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11453 \begin_layout Plain Layout
11461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11464 \begin_layout Plain Layout
11470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11473 \begin_layout Plain Layout
11479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11482 \begin_layout Plain Layout
11494 \begin_inset space \hfill{}
11498 \begin_inset Tabular
11499 <lyxtabular version="3" rows="3" columns="3">
11500 <features tabularvalignment="middle">
11501 <column alignment="center" valignment="middle" width="2.5cm">
11502 <column alignment="center" valignment="middle">
11503 <column alignment="center" valignment="middle">
11505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11508 \begin_layout Plain Layout
11509 \begin_inset space \hspace{}
11513 verylongtablecellword
11518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11521 \begin_layout Plain Layout
11527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11530 \begin_layout Plain Layout
11538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11541 \begin_layout Plain Layout
11547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11550 \begin_layout Plain Layout
11556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11559 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11570 \begin_layout Plain Layout
11576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11579 \begin_layout Plain Layout
11585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11588 \begin_layout Plain Layout
11600 \begin_inset space \hfill{}
11611 \begin_layout Subsection
11613 \begin_inset CommandInset label
11615 name "subsec:Multicolumns"
11620 \begin_inset Index idx
11623 \begin_layout Plain Layout
11630 \begin_inset Index idx
11633 \begin_layout Plain Layout
11634 Table ! Multicolumns
11642 \begin_layout Subsubsection
11646 \begin_layout Standard
11647 To merge cells over multiple columns, select as many cells within a row
11648 as you want to merge and use either the table-toolbar button
11651 arg "tabular-feature multicolumn"
11656 Edit\SpecialChar menuseparator
11657 Table\SpecialChar menuseparator
11660 , or right click on the marked cells and choose
11664 in the context menu.
11667 \begin_layout Standard
11668 Multicolumns have their own cell settings.
11669 That means changing cell borders, cell alignment, and the width only affects
11671 Here is an example table with a multicolumn cell in the first row and one
11672 in the last row without the upper border:
11675 \begin_layout Standard
11677 \begin_inset Tabular
11678 <lyxtabular version="3" rows="3" columns="4">
11679 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11680 <column alignment="center" valignment="top" width="0pt">
11681 <column alignment="center" valignment="middle">
11682 <column alignment="center" valignment="top" width="0in">
11683 <column alignment="center" valignment="top" width="0pt">
11685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11688 \begin_layout Plain Layout
11694 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11697 \begin_layout Plain Layout
11703 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11706 \begin_layout Plain Layout
11712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11715 \begin_layout Plain Layout
11723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11744 \begin_layout Plain Layout
11750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11753 \begin_layout Plain Layout
11759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11762 \begin_layout Plain Layout
11770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11773 \begin_layout Plain Layout
11779 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11791 \begin_layout Plain Layout
11797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11800 \begin_layout Plain Layout
11814 \begin_layout Subsubsection
11815 Multicolumn Calculations
11816 \begin_inset CommandInset label
11818 name "subsec:Multicolumn-Calculations"
11823 \begin_inset Index idx
11826 \begin_layout Plain Layout
11827 Multicolumns ! Calculations
11835 \begin_layout Standard
11837 supports multicolumns directly, but we have to take account of the cell
11838 width of the columns spanned by the multicolumn cell.
11841 \begin_layout Standard
11842 \begin_inset Float table
11848 \begin_layout Plain Layout
11849 \begin_inset Caption Standard
11851 \begin_layout Plain Layout
11852 \begin_inset CommandInset label
11854 name "tab:Table-with-centered"
11858 Table with centered multicolumn text above two columns that have exactly
11859 half the width of the multicolumn cell
11860 \begin_inset Argument 1
11863 \begin_layout Plain Layout
11864 Perfect multicolumn table
11877 \begin_layout Plain Layout
11879 \begin_inset Tabular
11880 <lyxtabular version="3" rows="3" columns="3">
11881 <features tabularvalignment="middle">
11882 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11883 <column alignment="center" valignment="middle">
11884 <column alignment="center" valignment="top">
11886 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11889 \begin_layout Plain Layout
11890 multiple lines multicolumn
11895 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11898 \begin_layout Plain Layout
11904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11907 \begin_layout Plain Layout
11915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11918 \begin_layout Plain Layout
11924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11936 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11984 \begin_layout Standard
11985 To create for example Table
11986 \begin_inset space ~
11990 \begin_inset CommandInset ref
11992 reference "tab:Table-with-centered"
11996 , mark the first two cells in the first row of a 3×3 table and right-click
11998 Now choose for this cell
12007 \begin_inset space \thinspace{}
12010 cm in the table dialog.
12011 The merged columns should have exactly half the width of the multicolumn
12012 cell, so that you would set a width of 1.25
12013 \begin_inset space \thinspace{}
12016 cm for the first column.
12017 The second column has then automatically a width of 1.25
12018 \begin_inset space \thinspace{}
12021 cm (multicolumn width - width of first column).
12022 This was done for Table
12023 \begin_inset space ~
12027 \begin_inset CommandInset ref
12029 reference "tab:Table-without-half"
12036 \begin_layout Standard
12037 \begin_inset Float table
12042 \begin_layout Plain Layout
12043 \begin_inset Caption Standard
12045 \begin_layout Plain Layout
12046 \begin_inset CommandInset label
12048 name "tab:Table-without-half"
12052 Table where the spanned table columns are not exactly half the width of
12053 the multicolumn cell
12054 \begin_inset Argument 1
12057 \begin_layout Plain Layout
12058 Imperfect multicolumn table
12071 \begin_layout Plain Layout
12073 \begin_inset Tabular
12074 <lyxtabular version="3" rows="3" columns="3">
12075 <features tabularvalignment="middle">
12076 <column alignment="center" valignment="top" width="1.25cm">
12077 <column alignment="center" valignment="top">
12078 <column alignment="center" valignment="top">
12080 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12083 \begin_layout Plain Layout
12084 multiple lines multicolumn
12089 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12092 \begin_layout Plain Layout
12098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12101 \begin_layout Plain Layout
12109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12112 \begin_layout Plain Layout
12118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12121 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12130 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12141 \begin_layout Plain Layout
12147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12150 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12159 \begin_layout Plain Layout
12178 \begin_layout Standard
12179 You can see that the first column is not half the width of the multicolumn
12180 cell, it is a bit bigger.
12181 The reason is that the specified width of a cell
12182 \begin_inset Formula $W_{g}$
12185 is not its total width
12186 \begin_inset Formula $W_{\mathrm{tot}}$
12189 because a cell is always a bit larger than specified.
12191 \begin_inset space ~
12195 \begin_inset CommandInset ref
12197 reference "cha:Explanation-of-Equation"
12201 explains this in detail.
12204 \begin_layout Standard
12206 \begin_inset Formula $W_{g\,n}$
12209 which the user needs to set when
12213 columns are spanned can be calculated, so that each column has a total
12215 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12219 \begin_inset Formula
12221 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12229 \begin_layout Standard
12230 In our case we have
12231 \begin_inset Formula $n=2$
12235 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12238 cm and the default values for the lengths, so that equation
12239 \begin_inset CommandInset ref
12246 \begin_inset Formula
12248 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12256 \begin_layout Standard
12257 To enable calculations in \SpecialChar LaTeX
12258 , the \SpecialChar LaTeX
12263 must be loaded with the document preamble line
12264 \begin_inset Index idx
12267 \begin_layout Plain Layout
12277 \begin_layout Standard
12285 \begin_layout Standard
12287 does not allow you to calculate lengths in the
12291 field of the table dialog.
12292 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12295 Here is an overview about the arguments:
12298 \begin_layout Itemize
12303 creates cell with a fixed width, its text is vertically top-aligned
12306 \begin_layout Itemize
12311 creates cell with a fixed width, its text is vertically centered
12314 \begin_layout Itemize
12319 creates cell with a fixed width, its text is vertically bottom-aligned
12322 \begin_layout Standard
12323 By entering a \SpecialChar LaTeX
12324 -argument, all cell settings set in the table dialog are overwritt
12328 \begin_layout Standard
12329 \begin_inset Note Greyedout
12332 \begin_layout Plain Layout
12337 Due to a bug, \SpecialChar LyX
12338 shows the overwritten settings anyway.
12346 \begin_layout Standard
12347 As the text should be horizontally centered, the command
12354 You can now enter the following \SpecialChar LaTeX
12355 -argument for the first spanned column:
12358 \begin_layout Standard
12363 centering}m{1.25cm-6.2pt}
12366 \begin_layout Standard
12371 means, that the commands inside the braces are applied before the cell
12375 \begin_layout Standard
12376 Although we have chosen centered alignment for the text of the multicolumn
12377 cell, it is still left aligned.
12378 This is because \SpecialChar LyX
12379 only applies the alignment to single columns.
12380 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12384 \begin_layout Standard
12392 \begin_layout Subsection
12394 \begin_inset CommandInset label
12396 name "subsec:Multirows"
12401 \begin_inset Index idx
12404 \begin_layout Plain Layout
12411 \begin_inset Index idx
12414 \begin_layout Plain Layout
12423 \begin_layout Standard
12424 To merge cells over multiple rows, select as many cells within a column
12425 as you want to merge and use either the table-toolbar button
12428 arg "tabular-feature multirow"
12433 Edit\SpecialChar menuseparator
12434 Table\SpecialChar menuseparator
12437 , or right click on the marked cells and choose
12441 in the context menu.
12444 \begin_layout Standard
12445 Here is an example table with a multirow in the first column:
12448 \begin_layout Standard
12450 \begin_inset Tabular
12451 <lyxtabular version="3" rows="3" columns="3">
12452 <features tabularvalignment="middle">
12453 <column alignment="center" valignment="top" width="0pt">
12454 <column alignment="center" valignment="top">
12455 <column alignment="center" valignment="top">
12457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12460 \begin_layout Plain Layout
12466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12469 \begin_layout Plain Layout
12475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12478 \begin_layout Plain Layout
12486 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12489 \begin_layout Plain Layout
12495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12498 \begin_layout Plain Layout
12504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12507 \begin_layout Plain Layout
12515 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12518 \begin_layout Plain Layout
12524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12527 \begin_layout Plain Layout
12533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12536 \begin_layout Plain Layout
12550 \begin_layout Standard
12551 The width of multirow cells is set by setting the width and alignment for
12557 shifts the content of the multirow up/down if the offset is positive/negative.
12560 \begin_layout Standard
12561 If the column of a multirow cell has no explicit width, the multirow cell
12562 inherits the alignment of the column.
12563 Otherwise it is by default left-aligned.
12564 To override the default, renew the command
12573 \begin_layout Standard
12585 \begin_layout Standard
12586 in the document preamble.
12587 Then all entries of multirow cells in the document are centered.
12588 If centering is only needed for several tables, you can renew the command
12589 in a \SpecialChar TeX
12590 Code box just before the table instead of the preamble.
12591 If the text should be right-aligned, replace
12604 To return to left-alignment
12613 \begin_layout Standard
12614 This is an example table with a right-aligned multirow cell that has a vertical
12616 \begin_inset space \thinspace{}
12620 \begin_inset space \thinspace{}
12626 \begin_layout Standard
12632 \begin_layout Plain Layout
12646 \begin_inset Tabular
12647 <lyxtabular version="3" rows="4" columns="3">
12648 <features tabularvalignment="middle">
12649 <column alignment="center" valignment="top" width="3cm">
12650 <column alignment="center" valignment="top">
12651 <column alignment="center" valignment="top">
12653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12656 \begin_layout Plain Layout
12662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12665 \begin_layout Plain Layout
12671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12674 \begin_layout Plain Layout
12682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12685 \begin_layout Plain Layout
12691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12694 \begin_layout Plain Layout
12700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12703 \begin_layout Plain Layout
12711 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12714 \begin_layout Plain Layout
12720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12723 \begin_layout Plain Layout
12729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12732 \begin_layout Plain Layout
12740 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12743 \begin_layout Plain Layout
12749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12752 \begin_layout Plain Layout
12758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12761 \begin_layout Plain Layout
12776 \begin_layout Plain Layout
12792 \begin_layout Standard
12793 To start a new line in a multirow you can use a forced line break (shortcut
12797 arg "newline-insert newline"
12800 ) but this will not respect the cell lines as demonstrated in this table:
12803 \begin_layout Standard
12806 \begin_inset Tabular
12807 <lyxtabular version="3" rows="3" columns="2">
12808 <features tabularvalignment="middle">
12809 <column alignment="left" valignment="middle" width="2cm">
12810 <column alignment="center" valignment="top">
12812 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12815 \begin_layout Plain Layout
12817 \begin_inset Newline newline
12821 \begin_inset Newline newline
12829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12832 \begin_layout Plain Layout
12840 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12843 \begin_layout Plain Layout
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12852 \begin_layout Plain Layout
12860 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12863 \begin_layout Plain Layout
12869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12872 \begin_layout Plain Layout
12886 \begin_layout Standard
12887 Therefore be careful with forced line breaks.
12890 \begin_layout Subsection
12891 Cells with diagonal line(s)
12894 \begin_layout Standard
12895 To tell the reader what is meant by column and row headings in a table,
12896 it is helpful to split the first cell of the table by one or two diagonal
12898 This can be achieved by loading the \SpecialChar LaTeX
12904 \begin_inset Index idx
12907 \begin_layout Plain Layout
12909 -packages ! picinpar
12914 in the document preamble.
12915 The package provides the command
12921 that is inserted as \SpecialChar TeX
12922 Code and that can take 2 or 3
12923 \begin_inset space ~
12929 \begin_layout Standard
12934 diagbox[options]{lower left}{upper right}
12937 \begin_layout Standard
12942 diagbox[options]{lower left}{upper left}{upper right}
12945 \begin_layout Standard
12946 The first scheme divides the cell by a single diagonal line and the arguments
12947 are placed below and above this line.
12948 The second scheme divides the cell by 2
12949 \begin_inset space ~
12955 \begin_layout Standard
12959 \begin_layout Plain Layout
12969 \begin_inset Note Note
12972 \begin_layout Plain Layout
12973 The following section will only be displayed when the \SpecialChar LaTeX
12986 \begin_layout Standard
12987 Here is an example table where
12993 is used in the 2-argument scheme in the first cell:
12994 \begin_inset VSpace medskip
13000 \begin_layout Standard
13002 \begin_inset Tabular
13003 <lyxtabular version="3" rows="4" columns="4">
13004 <features tabularvalignment="middle">
13005 <column alignment="center" valignment="top">
13006 <column alignment="center" valignment="top">
13007 <column alignment="center" valignment="top">
13008 <column alignment="center" valignment="top">
13010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13013 \begin_layout Plain Layout
13017 \begin_layout Plain Layout
13030 \begin_layout Plain Layout
13041 \begin_layout Plain Layout
13053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13056 \begin_layout Plain Layout
13062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13065 \begin_layout Plain Layout
13071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13074 \begin_layout Plain Layout
13082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13085 \begin_layout Plain Layout
13091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13094 \begin_layout Plain Layout
13100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13103 \begin_layout Plain Layout
13109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13112 \begin_layout Plain Layout
13120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13123 \begin_layout Plain Layout
13129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13132 \begin_layout Plain Layout
13138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13141 \begin_layout Plain Layout
13147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13150 \begin_layout Plain Layout
13158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13161 \begin_layout Plain Layout
13167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13170 \begin_layout Plain Layout
13176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13179 \begin_layout Plain Layout
13185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13188 \begin_layout Plain Layout
13200 \begin_inset VSpace medskip
13206 \begin_layout Standard
13207 The 3-argument scheme is for example useful for cross-tables of sports leagues
13211 \begin_layout Standard
13214 \begin_inset Tabular
13215 <lyxtabular version="3" rows="4" columns="4">
13216 <features tabularvalignment="middle">
13217 <column alignment="center" valignment="top" width="0pt">
13218 <column alignment="center" valignment="top">
13219 <column alignment="center" valignment="top">
13220 <column alignment="center" valignment="top">
13222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13225 \begin_layout Plain Layout
13229 \begin_layout Plain Layout
13242 \begin_layout Plain Layout
13253 \begin_layout Plain Layout
13264 \begin_layout Plain Layout
13276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13279 \begin_layout Plain Layout
13285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13288 \begin_layout Plain Layout
13294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13297 \begin_layout Plain Layout
13305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13308 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13317 \begin_layout Plain Layout
13323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13326 \begin_layout Plain Layout
13332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13335 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13355 \begin_layout Plain Layout
13361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13364 \begin_layout Plain Layout
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13373 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13393 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13402 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13411 \begin_layout Plain Layout
13425 \begin_layout Standard
13426 For larger cross-tables one might use split cells in 2 or every corner of
13427 the table like in this example:
13430 \begin_layout Standard
13433 \begin_inset Tabular
13434 <lyxtabular version="3" rows="5" columns="5">
13435 <features tabularvalignment="middle">
13436 <column alignment="center" valignment="top" width="0pt">
13437 <column alignment="center" valignment="top">
13438 <column alignment="center" valignment="top">
13439 <column alignment="center" valignment="top">
13440 <column alignment="center" valignment="top">
13442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13445 \begin_layout Plain Layout
13449 \begin_layout Plain Layout
13462 \begin_layout Plain Layout
13473 \begin_layout Plain Layout
13484 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13499 \begin_layout Plain Layout
13505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13508 \begin_layout Plain Layout
13514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13517 \begin_layout Plain Layout
13523 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13526 \begin_layout Plain Layout
13530 \begin_layout Plain Layout
13543 \begin_layout Plain Layout
13554 \begin_layout Plain Layout
13565 \begin_layout Plain Layout
13579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13582 \begin_layout Plain Layout
13588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13591 \begin_layout Plain Layout
13597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13600 \begin_layout Plain Layout
13606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13609 \begin_layout Plain Layout
13615 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13618 \begin_layout Plain Layout
13626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13629 \begin_layout Plain Layout
13635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13638 \begin_layout Plain Layout
13644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13647 \begin_layout Plain Layout
13653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13656 \begin_layout Plain Layout
13662 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13665 \begin_layout Plain Layout
13673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13676 \begin_layout Plain Layout
13682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13685 \begin_layout Plain Layout
13691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13694 \begin_layout Plain Layout
13700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13703 \begin_layout Plain Layout
13709 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13712 \begin_layout Plain Layout
13720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13723 \begin_layout Plain Layout
13727 \begin_layout Plain Layout
13740 \begin_layout Plain Layout
13751 \begin_layout Plain Layout
13762 \begin_layout Plain Layout
13774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13777 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13795 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13804 \begin_layout Plain Layout
13808 \begin_layout Plain Layout
13821 \begin_layout Plain Layout
13832 \begin_layout Plain Layout
13843 \begin_layout Plain Layout
13863 \begin_layout Standard
13864 To rotate the diagonal lines, the command option
13889 and represent a point of a compass.
13894 is for example the south-west corner.
13895 Thus in the lower left cell of the above table the command
13898 \begin_layout Standard
13903 diagbox[dir=SW]{Team home}{Result}{Team away}
13906 \begin_layout Standard
13908 If no direction is given, it will be NW.
13911 \begin_layout Standard
13912 The necessary width of split cells is automatically calculated.
13913 Thus if you set a fixed column width smaller than the calculated one, the
13914 cell's content will protrude the cell borders:
13917 \begin_layout Standard
13920 \begin_inset Tabular
13921 <lyxtabular version="3" rows="2" columns="2">
13922 <features tabularvalignment="middle">
13923 <column alignment="center" valignment="top" width="3cm">
13924 <column alignment="center" valignment="top">
13926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13929 \begin_layout Plain Layout
13933 \begin_layout Plain Layout
13946 \begin_layout Plain Layout
13957 \begin_layout Plain Layout
13969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13972 \begin_layout Plain Layout
13980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13992 \begin_layout Plain Layout
14006 \begin_layout Standard
14007 If you need a certain width for columns with a split cell, use the command
14012 (replace '3cm' by the width you need).
14013 In the following table the width of the first column is set to 4
14014 \begin_inset space \thinspace{}
14025 \begin_inset space \thinspace{}
14029 \begin_inset space \thinspace{}
14034 tabcolsep is necessary because the overall width is the width for the text
14035 (in this case the 4
14036 \begin_inset space \thinspace{}
14039 cm) plus two times the separation of the text and the cell border.
14040 The calculation of the width cannot be done in the command option of
14046 so one needs to create a new length which can be used later.
14047 This is done with the \SpecialChar TeX
14051 \begin_layout Standard
14059 \begin_inset Newline newline
14071 \begin_layout Standard
14075 \begin_layout Plain Layout
14084 \begin_layout Plain Layout
14100 \begin_layout Standard
14101 To enable calculations in \SpecialChar LaTeX
14102 one needs to load the package
14107 \begin_inset Index idx
14110 \begin_layout Plain Layout
14117 in the document preamble.
14120 \begin_layout Standard
14121 In this table you can now use the command
14124 \begin_layout Standard
14134 \begin_layout Standard
14138 \begin_layout Standard
14141 \begin_inset Tabular
14142 <lyxtabular version="3" rows="2" columns="2">
14143 <features tabularvalignment="middle">
14144 <column alignment="center" valignment="top" width="4cm">
14145 <column alignment="center" valignment="top">
14147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14150 \begin_layout Plain Layout
14154 \begin_layout Plain Layout
14169 \begin_layout Plain Layout
14180 \begin_layout Plain Layout
14192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14195 \begin_layout Plain Layout
14203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14206 \begin_layout Plain Layout
14212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14215 \begin_layout Plain Layout
14229 \begin_layout Standard
14230 Note that the split cell needs to be the widest one in the column.
14231 Otherwise the length of the diagonal line cannot be calculated correctly
14232 like in this table:
14235 \begin_layout Standard
14238 \begin_inset Tabular
14239 <lyxtabular version="3" rows="2" columns="2">
14240 <features tabularvalignment="middle">
14241 <column alignment="center" valignment="top" width="0pt">
14242 <column alignment="center" valignment="top">
14244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14247 \begin_layout Plain Layout
14251 \begin_layout Plain Layout
14264 \begin_layout Plain Layout
14275 \begin_layout Plain Layout
14287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14290 \begin_layout Plain Layout
14298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14301 \begin_layout Plain Layout
14307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14310 \begin_layout Plain Layout
14324 \begin_layout Standard
14325 In this case use the
14336 It is then not necessary to add 2
14338 tabcolsep because the cell width is now the width of the column.
14339 In this table a width of 3
14340 \begin_inset space \thinspace{}
14346 \begin_layout Standard
14349 \begin_inset Tabular
14350 <lyxtabular version="3" rows="2" columns="2">
14351 <features tabularvalignment="middle">
14352 <column alignment="center" valignment="top" width="0pt">
14353 <column alignment="center" valignment="top">
14355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14358 \begin_layout Plain Layout
14362 \begin_layout Plain Layout
14366 diagbox[width=3cm]{
14375 \begin_layout Plain Layout
14386 \begin_layout Plain Layout
14398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14401 \begin_layout Plain Layout
14409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14412 \begin_layout Plain Layout
14418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14421 \begin_layout Plain Layout
14435 \begin_layout Standard
14436 For multiple text lines in split cells one needs some extra height to fit
14437 the text to the cell.
14438 This can be achieved with the
14448 (replace '3cm' by the height you need).
14449 In the following table the command
14452 \begin_layout Standard
14457 diagbox[width=3cm,height=1.4cm]{A
14468 \begin_layout Standard
14469 is used in the first cell.
14478 creates hereby the line break.
14482 \begin_layout Plain Layout
14483 Breaking lines with
14487 is only possible when the column has a fixed width.
14495 \begin_layout Standard
14498 \begin_inset Tabular
14499 <lyxtabular version="3" rows="2" columns="2">
14500 <features tabularvalignment="middle">
14501 <column alignment="center" valignment="top">
14502 <column alignment="center" valignment="top">
14504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14507 \begin_layout Plain Layout
14511 \begin_layout Plain Layout
14515 diagbox[width=3cm,height=1.4cm]{
14524 \begin_layout Plain Layout
14539 \begin_layout Plain Layout
14550 \begin_layout Plain Layout
14565 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14580 \begin_layout Plain Layout
14588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14591 \begin_layout Plain Layout
14597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14600 \begin_layout Plain Layout
14614 \begin_layout Standard
14618 \begin_layout Plain Layout
14628 \begin_inset Note Note
14631 \begin_layout Plain Layout
14632 The following will be displayed when the \SpecialChar LaTeX
14645 \begin_layout Standard
14646 You need to install the \SpecialChar LaTeX
14651 to see the following part of this section in the output.
14654 \begin_layout Standard
14658 \begin_layout Plain Layout
14670 \begin_layout Standard
14671 For more info about the \SpecialChar LaTeX
14676 , see its documentation,
14677 \begin_inset CommandInset citation
14687 \begin_layout Section
14689 \begin_inset CommandInset label
14691 name "sec:Formal-Tables"
14696 \begin_inset Index idx
14699 \begin_layout Plain Layout
14708 \begin_layout Standard
14709 Tables are often typeset in books similar to Table
14710 \begin_inset space ~
14714 \begin_inset CommandInset ref
14716 reference "tab:Example-booktabs-table"
14721 This kind of tables is called
14722 \begin_inset Quotes eld
14730 \begin_inset Quotes erd
14734 To make a table a formal table use the option
14742 tab of the table dialog.
14745 \begin_layout Standard
14746 \begin_inset Float table
14752 \begin_layout Plain Layout
14753 \begin_inset Caption Standard
14755 \begin_layout Plain Layout
14756 \begin_inset CommandInset label
14758 name "tab:Example-booktabs-table"
14762 Example booktabs-table
14770 \begin_layout Plain Layout
14772 \begin_inset Tabular
14773 <lyxtabular version="3" rows="8" columns="4">
14774 <features booktabs="true" tabularvalignment="middle">
14775 <column alignment="center" valignment="top">
14776 <column alignment="center" valignment="top">
14777 <column alignment="center" valignment="top">
14778 <column alignment="center" valignment="top">
14780 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14783 \begin_layout Plain Layout
14789 <cell alignment="center" valignment="top" topline="true" usebox="none">
14792 \begin_layout Plain Layout
14794 \begin_inset space \thinspace{}
14802 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14805 \begin_layout Plain Layout
14807 \begin_inset space \thinspace{}
14815 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14818 \begin_layout Plain Layout
14826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14829 \begin_layout Plain Layout
14833 \begin_layout Plain Layout
14846 \begin_layout Plain Layout
14855 Detector thickness in µm
14860 <cell alignment="center" valignment="top" usebox="none">
14863 \begin_layout Plain Layout
14869 <cell alignment="center" valignment="top" usebox="none">
14872 \begin_layout Plain Layout
14878 <cell alignment="center" valignment="top" usebox="none">
14881 \begin_layout Plain Layout
14889 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14892 \begin_layout Plain Layout
14898 <cell alignment="center" valignment="top" topline="true" usebox="none">
14901 \begin_layout Plain Layout
14907 <cell alignment="center" valignment="top" topline="true" usebox="none">
14910 \begin_layout Plain Layout
14916 <cell alignment="center" valignment="top" topline="true" usebox="none">
14919 \begin_layout Plain Layout
14926 <row topspace="default">
14927 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14930 \begin_layout Plain Layout
14931 Spatial resolution in µm
14936 <cell alignment="center" valignment="top" usebox="none">
14939 \begin_layout Plain Layout
14945 <cell alignment="center" valignment="top" usebox="none">
14948 \begin_layout Plain Layout
14954 <cell alignment="center" valignment="top" usebox="none">
14957 \begin_layout Plain Layout
14964 <row topspace="default">
14965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14968 \begin_layout Plain Layout
14970 \begin_inset Formula $f_{\mathrm{max}}$
14978 <cell alignment="center" valignment="top" usebox="none">
14981 \begin_layout Plain Layout
14987 <cell alignment="center" valignment="top" usebox="none">
14990 \begin_layout Plain Layout
14996 <cell alignment="center" valignment="top" usebox="none">
14999 \begin_layout Plain Layout
15006 <row topspace="default">
15007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15010 \begin_layout Plain Layout
15014 \begin_layout Plain Layout
15018 cmidrule[2pt](l{10pt}){1-1}
15023 LSF-spatial resolution
15028 <cell alignment="center" valignment="top" usebox="none">
15031 \begin_layout Plain Layout
15037 <cell alignment="center" valignment="top" usebox="none">
15040 \begin_layout Plain Layout
15046 <cell alignment="center" valignment="top" usebox="none">
15049 \begin_layout Plain Layout
15057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15060 \begin_layout Plain Layout
15066 <cell alignment="center" valignment="top" usebox="none">
15069 \begin_layout Plain Layout
15075 <cell alignment="center" valignment="top" usebox="none">
15078 \begin_layout Plain Layout
15084 <cell alignment="center" valignment="top" usebox="none">
15087 \begin_layout Plain Layout
15095 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15098 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15107 \begin_layout Plain Layout
15113 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15116 \begin_layout Plain Layout
15122 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15125 \begin_layout Plain Layout
15144 \begin_layout Standard
15145 Spaces to table rows can be added using the
15149 tab of the table dialog as described in section
15150 \begin_inset space ~
15154 \begin_inset CommandInset ref
15156 reference "subsec:Row-Spacing"
15163 \begin_layout Standard
15164 Unlike normal tables, formal tables have no vertical table lines.
15165 The horizontal table lines can be set as for normal tables but they appear
15166 with different widths in the output:
15167 \begin_inset Newline newline
15170 The first and the last table line have a default width of 0.08
15171 \begin_inset space \thinspace{}
15174 em while the other lines have a default width of 0.05
15175 \begin_inset space \thinspace{}
15181 \begin_layout Standard
15182 The default widths can be changed with the following preamble lines
15185 \begin_layout Standard
15195 \begin_inset Newline newline
15207 \begin_layout Standard
15208 This example is for the first line, the so called
15213 If you want to change the width for the last line, replace
15222 To change the width for the other lines replace
15231 You can use all units listed in appendix
15232 \begin_inset space ~
15236 \begin_inset CommandInset ref
15238 reference "cha:Units-available-in"
15245 \begin_layout Standard
15246 Lines that do not span all table columns can be created by setting a table
15247 line for multicolumn cells.
15249 will then internally use the command
15255 to create this line.
15259 \begin_layout Standard
15264 cmidrule[height](trim){startcol-endcol}
15267 \begin_layout Standard
15274 are currently not supported by \SpecialChar LyX
15275 so you have to use \SpecialChar TeX
15284 s can manually be created by inserting the command as \SpecialChar TeX
15286 cell entry of the first cell of a row.
15287 The line is then drawn in the output above the current row.
15290 \begin_layout Standard
15291 The default for the optional
15296 \begin_inset space \thinspace{}
15304 is the number of the column where the line starts and
15308 the column number where the line ends.
15313 always needs to be specified, also when the line should span only one column.
15314 The optional parameter
15331 Using for example the parameter
15335 means that the line is trimmed from its left end by 2
15336 \begin_inset space \thinspace{}
15340 If you don't specify the
15344 the line is trimmed by the default of 0.5
15345 \begin_inset space \thinspace{}
15351 \begin_layout Standard
15352 \begin_inset VSpace bigskip
15356 \begin_inset space ~
15360 \begin_inset CommandInset ref
15362 reference "tab:Example-booktabs-table"
15366 was created using the commands
15369 \begin_layout Standard
15379 \begin_layout Standard
15380 at the beginning of the second row and
15383 \begin_layout Standard
15388 cmidrule[2pt](l{10pt}){1-1}
15391 \begin_layout Standard
15395 \begin_layout Standard
15396 \begin_inset VSpace bigskip
15402 \begin_layout Standard
15403 You might want to have overlapping
15410 \begin_inset space ~
15414 \begin_inset CommandInset ref
15416 reference "tab:Special-booktabs-table"
15421 This can be achieved with the \SpecialChar TeX
15425 \begin_layout Standard
15433 \begin_layout Standard
15434 The command that was used for the second row of Table
15435 \begin_inset space ~
15439 \begin_inset CommandInset ref
15441 reference "tab:Special-booktabs-table"
15448 \begin_layout Standard
15462 \begin_layout Standard
15463 The command for the sixth row is
15466 \begin_layout Standard
15478 \begin_layout Standard
15479 \begin_inset VSpace bigskip
15485 \begin_layout Standard
15486 If you are in any way not satisfied with the border line spacing, you can
15487 use the following command to produce lines that span over all table columns
15492 \begin_layout Standard
15497 specialrule{width}{space above}{space below}
15500 \begin_layout Standard
15501 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15508 \begin_inset CommandInset citation
15516 \begin_inset Index idx
15519 \begin_layout Plain Layout
15521 -packages ! booktabs
15529 \begin_layout Standard
15530 \begin_inset Float table
15536 \begin_layout Plain Layout
15537 \begin_inset Caption Standard
15539 \begin_layout Plain Layout
15540 \begin_inset CommandInset label
15542 name "tab:Special-booktabs-table"
15546 Special booktabs-table
15554 \begin_layout Plain Layout
15556 \begin_inset Tabular
15557 <lyxtabular version="3" rows="8" columns="4">
15558 <features booktabs="true" tabularvalignment="middle">
15559 <column alignment="center" valignment="top">
15560 <column alignment="center" valignment="top">
15561 <column alignment="center" valignment="top">
15562 <column alignment="center" valignment="top">
15564 <cell alignment="center" valignment="top" topline="true" usebox="none">
15567 \begin_layout Plain Layout
15573 <cell alignment="center" valignment="top" topline="true" usebox="none">
15576 \begin_layout Plain Layout
15578 \begin_inset space \thinspace{}
15586 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15589 \begin_layout Plain Layout
15591 \begin_inset space \thinspace{}
15599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15602 \begin_layout Plain Layout
15610 <cell alignment="center" valignment="top" usebox="none">
15613 \begin_layout Plain Layout
15617 \begin_layout Plain Layout
15630 \begin_layout Plain Layout
15643 \begin_layout Plain Layout
15656 \begin_layout Plain Layout
15665 Detector thickness in µm
15670 <cell alignment="center" valignment="top" usebox="none">
15673 \begin_layout Plain Layout
15679 <cell alignment="center" valignment="top" usebox="none">
15682 \begin_layout Plain Layout
15688 <cell alignment="center" valignment="top" usebox="none">
15691 \begin_layout Plain Layout
15699 <cell alignment="center" valignment="top" topline="true" usebox="none">
15702 \begin_layout Plain Layout
15708 <cell alignment="center" valignment="top" topline="true" usebox="none">
15711 \begin_layout Plain Layout
15717 <cell alignment="center" valignment="top" topline="true" usebox="none">
15720 \begin_layout Plain Layout
15726 <cell alignment="center" valignment="top" topline="true" usebox="none">
15729 \begin_layout Plain Layout
15736 <row topspace="default">
15737 <cell alignment="center" valignment="top" usebox="none">
15740 \begin_layout Plain Layout
15741 Spatial resolution in µm
15746 <cell alignment="center" valignment="top" usebox="none">
15749 \begin_layout Plain Layout
15755 <cell alignment="center" valignment="top" usebox="none">
15758 \begin_layout Plain Layout
15764 <cell alignment="center" valignment="top" usebox="none">
15767 \begin_layout Plain Layout
15774 <row topspace="default">
15775 <cell alignment="center" valignment="top" usebox="none">
15778 \begin_layout Plain Layout
15780 \begin_inset Formula $f_{\mathrm{max}}$
15788 <cell alignment="center" valignment="top" usebox="none">
15791 \begin_layout Plain Layout
15797 <cell alignment="center" valignment="top" usebox="none">
15800 \begin_layout Plain Layout
15806 <cell alignment="center" valignment="top" usebox="none">
15809 \begin_layout Plain Layout
15817 <cell alignment="center" valignment="top" topline="true" usebox="none">
15820 \begin_layout Plain Layout
15824 \begin_layout Plain Layout
15837 \begin_layout Plain Layout
15846 LSF-spatial resolution
15851 <cell alignment="center" valignment="top" topline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" usebox="none">
15872 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" usebox="none">
15901 \begin_layout Plain Layout
15907 <cell alignment="center" valignment="top" usebox="none">
15910 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15939 \begin_layout Plain Layout
15945 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15948 \begin_layout Plain Layout
15967 \begin_layout Section
15968 Vertical Table Alignment
15969 \begin_inset Index idx
15972 \begin_layout Plain Layout
15981 \begin_layout Standard
15982 To align tables vertically in a text line, the table must be inside a box.
15983 The box can then be vertically aligned as described in section
15984 \begin_inset space ~
15988 \begin_inset CommandInset ref
15990 reference "sec:Box-Dialog"
15997 \begin_layout Standard
15998 In the following example the tables are inside a minipage
16002 \begin_layout Plain Layout
16003 Minipages are described in section
16004 \begin_inset space ~
16008 \begin_inset CommandInset ref
16010 reference "sec:Minipages"
16019 box that has a width of 15
16020 \begin_inset space \thinspace{}
16026 \begin_layout Itemize
16028 \begin_inset Box Frameless
16038 height_special "totalheight"
16043 backgroundcolor "none"
16046 \begin_layout Plain Layout
16047 \begin_inset Tabular
16048 <lyxtabular version="3" rows="3" columns="3">
16049 <features tabularvalignment="middle">
16050 <column alignment="center" valignment="top">
16051 <column alignment="center" valignment="top">
16052 <column alignment="center" valignment="top">
16054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16057 \begin_layout Plain Layout
16063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16066 \begin_layout Plain Layout
16072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16075 \begin_layout Plain Layout
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16086 \begin_layout Plain Layout
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16095 \begin_layout Plain Layout
16101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16104 \begin_layout Plain Layout
16112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16115 \begin_layout Plain Layout
16121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16124 \begin_layout Plain Layout
16130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16133 \begin_layout Plain Layout
16153 \begin_layout Plain Layout
16165 \begin_inset Box Frameless
16175 height_special "totalheight"
16180 backgroundcolor "none"
16183 \begin_layout Plain Layout
16184 \begin_inset Tabular
16185 <lyxtabular version="3" rows="3" columns="3">
16186 <features tabularvalignment="middle">
16187 <column alignment="center" valignment="top">
16188 <column alignment="center" valignment="top">
16189 <column alignment="center" valignment="top">
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16203 \begin_layout Plain Layout
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16232 \begin_layout Plain Layout
16238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16241 \begin_layout Plain Layout
16249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16252 \begin_layout Plain Layout
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16270 \begin_layout Plain Layout
16290 \begin_layout Plain Layout
16300 \begin_layout Itemize
16302 \begin_inset Box Frameless
16312 height_special "totalheight"
16317 backgroundcolor "none"
16320 \begin_layout Plain Layout
16321 \begin_inset Tabular
16322 <lyxtabular version="3" rows="3" columns="3">
16323 <features tabularvalignment="middle">
16324 <column alignment="center" valignment="top">
16325 <column alignment="center" valignment="top">
16326 <column alignment="center" valignment="top">
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16340 \begin_layout Plain Layout
16346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16349 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16369 \begin_layout Plain Layout
16375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16378 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16398 \begin_layout Plain Layout
16404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16407 \begin_layout Plain Layout
16426 \begin_layout Itemize
16428 \begin_inset Box Frameless
16438 height_special "totalheight"
16443 backgroundcolor "none"
16446 \begin_layout Plain Layout
16447 \begin_inset Tabular
16448 <lyxtabular version="3" rows="3" columns="3">
16449 <features tabularvalignment="middle">
16450 <column alignment="center" valignment="top">
16451 <column alignment="center" valignment="top">
16452 <column alignment="center" valignment="top">
16454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16457 \begin_layout Plain Layout
16463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16466 \begin_layout Plain Layout
16472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16475 \begin_layout Plain Layout
16483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16486 \begin_layout Plain Layout
16492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16495 \begin_layout Plain Layout
16501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16504 \begin_layout Plain Layout
16512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16515 \begin_layout Plain Layout
16521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16533 \begin_layout Plain Layout
16553 \begin_layout Plain Layout
16565 \begin_inset Box Frameless
16575 height_special "totalheight"
16580 backgroundcolor "none"
16583 \begin_layout Plain Layout
16584 \begin_inset Tabular
16585 <lyxtabular version="3" rows="3" columns="3">
16586 <features tabularvalignment="middle">
16587 <column alignment="center" valignment="top">
16588 <column alignment="center" valignment="top">
16589 <column alignment="center" valignment="top">
16591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16594 \begin_layout Plain Layout
16600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16603 \begin_layout Plain Layout
16609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16612 \begin_layout Plain Layout
16620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16623 \begin_layout Plain Layout
16629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16632 \begin_layout Plain Layout
16638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16641 \begin_layout Plain Layout
16649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16652 \begin_layout Plain Layout
16658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16661 \begin_layout Plain Layout
16667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16670 \begin_layout Plain Layout
16690 \begin_layout Plain Layout
16700 \begin_layout Standard
16701 As you will see, the content of the first and last table row is not correctly
16703 To get this alignment, the minipage box must be set into a raisebox.
16707 \begin_layout Plain Layout
16708 Raiseboxes are described in section
16709 \begin_inset space ~
16713 \begin_inset CommandInset ref
16715 reference "subsec:Vertical-Alignment"
16724 In the example above the second table in the first item is aligned using
16725 the \SpecialChar TeX
16729 \begin_layout Standard
16739 \begin_layout Standard
16741 After the box the closing brace
16745 is inserted as \SpecialChar TeX
16747 For the second table in the last item the command
16750 \begin_layout Standard
16760 \begin_layout Standard
16764 \begin_layout Standard
16765 \begin_inset Note Greyedout
16768 \begin_layout Plain Layout
16773 The alignment of the table row content to the surrounding text line is
16775 The required value for the
16781 command for this alignment depends on the document font, the font size,
16782 and the table line thickness.
16790 \begin_layout Section
16792 \begin_inset CommandInset label
16794 name "sec:Colored-Tables"
16799 \begin_inset Index idx
16802 \begin_layout Plain Layout
16811 \begin_layout Subsection
16813 \begin_inset Index idx
16816 \begin_layout Plain Layout
16817 Table Color ! for Cells
16823 \begin_inset Index idx
16826 \begin_layout Plain Layout
16827 Color ! for Table Cells
16835 \begin_layout Standard
16836 \begin_inset Float table
16842 \begin_layout Plain Layout
16843 \begin_inset Caption Standard
16845 \begin_layout Plain Layout
16846 \begin_inset CommandInset label
16848 name "tab:Table-colored-without"
16852 Table colored without using the package
16857 \begin_inset Argument 1
16860 \begin_layout Plain Layout
16861 Table without colortbl
16874 \begin_layout Plain Layout
16876 \begin_inset Tabular
16877 <lyxtabular version="3" rows="3" columns="3">
16878 <features tabularvalignment="middle">
16879 <column alignment="center" valignment="top">
16880 <column alignment="center" valignment="top">
16881 <column alignment="center" valignment="top">
16883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16886 \begin_layout Plain Layout
16894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16897 \begin_layout Plain Layout
16905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16908 \begin_layout Plain Layout
16918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16921 \begin_layout Plain Layout
16929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16932 \begin_layout Plain Layout
16940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16943 \begin_layout Plain Layout
16953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16956 \begin_layout Plain Layout
16964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16967 \begin_layout Plain Layout
16975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16978 \begin_layout Plain Layout
16999 \begin_layout Standard
17000 If you only need colored text, mark the cells and choose a color in the
17004 \begin_inset space ~
17009 dialog (toolbar button
17012 arg "dialog-show character"
17016 This was used to create Table
17017 \begin_inset space ~
17021 \begin_inset CommandInset ref
17023 reference "tab:Table-colored-without"
17028 In any other case you have to use the \SpecialChar LaTeX
17034 \begin_inset Index idx
17037 \begin_layout Plain Layout
17039 -packages ! colortbl
17047 \begin_layout Standard
17051 \begin_layout Plain Layout
17061 \begin_inset Note Note
17064 \begin_layout Plain Layout
17065 The following section part will only be displayed when the \SpecialChar LaTeX
17078 \begin_layout Standard
17079 To create colored tables,
17083 must be loaded in the preamble with the line
17086 \begin_layout Standard
17091 usepackage{colortbl}
17094 \begin_layout Standard
17095 The color of a column is adjusted with the command
17098 \begin_layout Standard
17103 columncolor{name of color}
17106 \begin_layout Standard
17112 More about the command
17116 is contained in section
17117 \begin_inset space ~
17121 \begin_inset CommandInset ref
17123 reference "subsec:Multicolumn-Calculations"
17130 \begin_layout Standard
17131 The following color names are predefined:
17134 \begin_layout Standard
17168 \begin_layout Standard
17169 \begin_inset VSpace medskip
17175 \begin_layout Standard
17176 If you add the option
17179 \begin_layout Standard
17185 \begin_layout Standard
17186 to the document class options in the document settings, you can additionally
17188 \begin_inset space ~
17192 These colors are listed in appendix
17193 \begin_inset space ~
17197 \begin_inset CommandInset ref
17199 reference "chap:List-of-dvips-colornames"
17204 One of these colors,
17208 , is used as example in Table
17209 \begin_inset space ~
17213 \begin_inset CommandInset ref
17215 reference "tab:Table-colored-using"
17222 \begin_layout Standard
17223 \begin_inset VSpace medskip
17229 \begin_layout Standard
17230 You can also define your own color with the command
17233 \begin_layout Standard
17238 definecolor{color name}{color model}{color values}
17241 \begin_layout Standard
17242 The color model can be
17245 \begin_layout Labeling
17246 \labelwidthstring 00.00.0000
17247 cmyk: cyan, magenta, yellow, black
17250 \begin_layout Labeling
17251 \labelwidthstring 00.00.0000
17252 rgb: red, green blue
17255 \begin_layout Labeling
17256 \labelwidthstring 00.00.0000
17260 \begin_layout Standard
17261 and the color values are comma separated numbers between 0 and 1 describing
17262 the factor for the corresponding color of the color model.
17265 \begin_layout Standard
17267 \begin_inset space \thinspace{}
17271 \begin_inset space \space{}
17278 " in the preamble with
17281 \begin_layout Standard
17286 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17289 \begin_layout Standard
17297 \begin_layout Standard
17302 definecolor{lightgray}{gray}{0.8}
17305 \begin_layout Standard
17306 \begin_inset VSpace medskip
17312 \begin_layout Standard
17313 Lines are colored with the command
17316 \begin_layout Standard
17321 rowcolor{name of color}
17324 \begin_layout Standard
17325 and cells are colored with the command
17328 \begin_layout Standard
17333 cellcolor{name of color}
17336 \begin_layout Standard
17337 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17341 \begin_layout Standard
17342 To color characters in the table, mark the cells and use the
17345 \begin_inset space ~
17351 If a cell contains \SpecialChar TeX
17352 Code mark only the characters, otherwise the colored
17354 Code will cause \SpecialChar LaTeX
17358 \begin_layout Standard
17359 \begin_inset Note Greyedout
17362 \begin_layout Plain Layout
17367 Not all DVI-viewers are able to display self-defined colors.
17375 \begin_layout Standard
17376 \begin_inset VSpace bigskip
17382 \begin_layout Standard
17384 \begin_inset space ~
17388 \begin_inset CommandInset ref
17390 reference "tab:Table-colored-using"
17394 do the following: The color of the first column should be
17402 \begin_layout Standard
17407 columncolor{darkgreen}
17412 \begin_layout Standard
17413 as \SpecialChar LaTeX
17414 -argument for this column.
17415 The first row should be light blue, therefore the \SpecialChar TeX
17419 \begin_layout Standard
17427 \begin_layout Standard
17428 is inserted to the first cell of this row.
17429 Note that this overwrites the column color for the first cell.
17430 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17435 \begin_layout Standard
17443 \begin_layout Standard
17444 The characters could now be colored using the menu
17446 Edit\SpecialChar menuseparator
17448 \begin_inset space ~
17456 \begin_layout Standard
17457 \begin_inset Float table
17463 \begin_layout Plain Layout
17464 \begin_inset Caption Standard
17466 \begin_layout Plain Layout
17467 \begin_inset CommandInset label
17469 name "tab:Table-colored-using"
17473 Table colored using the package
17478 \begin_inset Argument 1
17481 \begin_layout Plain Layout
17482 Table with colortbl
17495 \begin_layout Plain Layout
17497 \begin_inset Tabular
17498 <lyxtabular version="3" rows="3" columns="3">
17499 <features tabularvalignment="middle">
17500 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17501 <column alignment="center" valignment="top">
17502 <column alignment="center" valignment="top">
17504 <cell alignment="center" valignment="top" usebox="none">
17507 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17527 <cell alignment="center" valignment="top" usebox="none">
17530 \begin_layout Plain Layout
17538 <cell alignment="center" valignment="top" usebox="none">
17541 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" usebox="none">
17554 \begin_layout Plain Layout
17562 <cell alignment="center" valignment="top" usebox="none">
17565 \begin_layout Plain Layout
17573 <cell alignment="center" valignment="top" usebox="none">
17576 \begin_layout Plain Layout
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17597 <cell alignment="center" valignment="top" usebox="none">
17600 \begin_layout Plain Layout
17608 <cell alignment="center" valignment="top" usebox="none">
17611 \begin_layout Plain Layout
17615 \begin_layout Plain Layout
17644 \begin_layout Standard
17648 \begin_layout Plain Layout
17658 \begin_inset Note Note
17661 \begin_layout Plain Layout
17662 The following will be displayed when the \SpecialChar LaTeX
17675 \begin_layout Standard
17676 You need to install the package
17680 to see the content of this section in the output.
17683 \begin_layout Standard
17687 \begin_layout Plain Layout
17699 \begin_layout Subsection
17701 \begin_inset Index idx
17704 \begin_layout Plain Layout
17705 Table Color ! for Rows
17711 \begin_inset Index idx
17714 \begin_layout Plain Layout
17715 Color ! for Table Rows
17723 \begin_layout Standard
17724 In case every second table row needs to be colored there is an alternative
17725 to the method described in the previous section: One loads the package
17731 \begin_inset Index idx
17734 \begin_layout Plain Layout
17740 \begin_layout Plain Layout
17754 in the document preamble with the command
17757 \begin_layout Standard
17762 usepackage[table]{xcolor}
17765 \begin_layout Standard
17770 automatically loads also the package
17775 \begin_inset Index idx
17778 \begin_layout Plain Layout
17780 -packages ! colortbl
17789 must be installed in your \SpecialChar LaTeX
17790 -distribution, otherwise you get \SpecialChar LaTeX
17794 \begin_layout Standard
17798 \begin_layout Plain Layout
17808 \begin_inset Note Note
17811 \begin_layout Plain Layout
17812 The following section part will only be displayed when the \SpecialChar LaTeX
17825 \begin_layout Standard
17826 The table rows are colored with the command
17829 \begin_layout Standard
17834 rowcolors[commands]{row number}{odd row color}{even row color}
17837 \begin_layout Standard
17838 that is either inserted in the document preamble or as \SpecialChar TeX
17840 first table to be colored.
17842 \begin_inset space ~
17845 number is the number of the first row which should be colored according
17846 to the odd row color.
17847 commands can be additional commands that are executed before every table
17849 So for example the command
17852 \begin_layout Standard
17857 rowcolors{1}{white}{lightgray}
17860 \begin_layout Standard
17861 leads to the coloring scheme of Table
17862 \begin_inset space ~
17866 \begin_inset CommandInset ref
17868 reference "tab:Table-rowcolors"
17876 \begin_layout Standard
17883 hline]{1}{lightgray}{cyan}
17886 \begin_layout Standard
17887 leads to the coloring scheme of Table
17888 \begin_inset space ~
17892 \begin_inset CommandInset ref
17894 reference "tab:Table-rowcolors-2"
17900 \begin_inset space ~
17904 \begin_inset space ~
17908 \begin_inset space ~
17912 \begin_inset space ~
17915 color are left empty, no color will be used so that the command
17918 \begin_layout Standard
17926 \begin_layout Standard
17927 deletes all colors.
17934 affects all tables following that command.
17937 \begin_layout Standard
17941 \begin_layout Plain Layout
17945 rowcolors{1}{white}{lightgray}
17953 \begin_layout Standard
17954 \begin_inset Float table
17960 \begin_layout Plain Layout
17961 \begin_inset Caption Standard
17963 \begin_layout Plain Layout
17964 \begin_inset CommandInset label
17966 name "tab:Table-rowcolors"
17970 Table where every second row is colored light gray.
17978 \begin_layout Plain Layout
17980 \begin_inset Tabular
17981 <lyxtabular version="3" rows="4" columns="3">
17982 <features tabularvalignment="middle">
17983 <column alignment="center" valignment="top">
17984 <column alignment="center" valignment="top" width="0pt">
17985 <column alignment="center" valignment="top" width="0pt">
17987 <cell alignment="center" valignment="top" usebox="none">
17990 \begin_layout Plain Layout
17996 <cell alignment="center" valignment="top" usebox="none">
17999 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" usebox="none">
18008 \begin_layout Plain Layout
18016 <cell alignment="center" valignment="top" usebox="none">
18019 \begin_layout Plain Layout
18025 <cell alignment="center" valignment="top" usebox="none">
18028 \begin_layout Plain Layout
18034 <cell alignment="center" valignment="top" usebox="none">
18037 \begin_layout Plain Layout
18045 <cell alignment="center" valignment="top" usebox="none">
18048 \begin_layout Plain Layout
18054 <cell alignment="center" valignment="top" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" usebox="none">
18066 \begin_layout Plain Layout
18074 <cell alignment="center" valignment="top" usebox="none">
18077 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18114 \begin_layout Standard
18118 \begin_layout Plain Layout
18124 hline]{1}{lightgray}{cyan}
18132 \begin_layout Standard
18133 \begin_inset Float table
18139 \begin_layout Plain Layout
18140 \begin_inset Caption Standard
18142 \begin_layout Plain Layout
18143 \begin_inset CommandInset label
18145 name "tab:Table-rowcolors-2"
18149 Table where every second row is colored cyan and at which there is a line
18158 \begin_layout Plain Layout
18160 \begin_inset Tabular
18161 <lyxtabular version="3" rows="4" columns="3">
18162 <features tabularvalignment="middle">
18163 <column alignment="center" valignment="top">
18164 <column alignment="center" valignment="top">
18165 <column alignment="center" valignment="top" width="0pt">
18167 <cell alignment="center" valignment="top" usebox="none">
18170 \begin_layout Plain Layout
18176 <cell alignment="center" valignment="top" usebox="none">
18179 \begin_layout Plain Layout
18185 <cell alignment="center" valignment="top" usebox="none">
18188 \begin_layout Plain Layout
18196 <cell alignment="center" valignment="top" usebox="none">
18199 \begin_layout Plain Layout
18205 <cell alignment="center" valignment="top" usebox="none">
18208 \begin_layout Plain Layout
18214 <cell alignment="center" valignment="top" usebox="none">
18217 \begin_layout Plain Layout
18225 <cell alignment="center" valignment="top" usebox="none">
18228 \begin_layout Plain Layout
18234 <cell alignment="center" valignment="top" usebox="none">
18237 \begin_layout Plain Layout
18243 <cell alignment="center" valignment="top" usebox="none">
18246 \begin_layout Plain Layout
18254 <cell alignment="center" valignment="top" usebox="none">
18257 \begin_layout Plain Layout
18263 <cell alignment="center" valignment="top" usebox="none">
18266 \begin_layout Plain Layout
18272 <cell alignment="center" valignment="top" usebox="none">
18275 \begin_layout Plain Layout
18294 \begin_layout Standard
18298 \begin_layout Plain Layout
18308 \begin_inset Note Note
18311 \begin_layout Plain Layout
18312 turns off the row coloring
18320 \begin_layout Standard
18324 \begin_layout Plain Layout
18334 \begin_inset Note Note
18337 \begin_layout Plain Layout
18338 The following will be displayed when the \SpecialChar LaTeX
18351 \begin_layout Standard
18352 You need to install the package
18356 to see the content of this section in the output.
18359 \begin_layout Standard
18363 \begin_layout Plain Layout
18375 \begin_layout Subsection
18377 \begin_inset Index idx
18380 \begin_layout Plain Layout
18381 Table Color ! for Lines
18387 \begin_inset Index idx
18390 \begin_layout Plain Layout
18391 Color ! for Table Lines
18399 \begin_layout Standard
18400 As described in section
18401 \begin_inset space ~
18405 \begin_inset CommandInset ref
18407 reference "subsec:Line-Thickness"
18411 , the line thickness for all lines in a table can be adjusted with the length
18420 \begin_inset space \thinspace{}
18423 pt for all tables of this section.
18427 \begin_layout Plain Layout
18433 arrayrulewidth}{1.5pt}
18441 \begin_layout Standard
18442 To color vertical lines for example with green, create the following column
18443 format in the document preamble, according to the description in section
18444 \begin_inset space ~
18448 \begin_inset CommandInset ref
18450 reference "subsec:Customized-Format"
18457 \begin_layout Standard
18462 newcolumntype{W}{!{
18469 \begin_layout Standard
18471 \begin_inset space ~
18475 \begin_inset CommandInset ref
18477 reference "tab:Table-with-vertical-colored"
18481 the \SpecialChar LaTeX
18486 was used for the last column and
18490 for the other columns.
18493 \begin_layout Standard
18494 If you want to have several colors, define more column formats.
18497 \begin_layout Standard
18498 \begin_inset Float table
18504 \begin_layout Plain Layout
18505 \begin_inset Caption Standard
18507 \begin_layout Plain Layout
18508 \begin_inset CommandInset label
18510 name "tab:Table-with-vertical-colored"
18514 Table with colored vertical lines
18522 \begin_layout Plain Layout
18524 \begin_inset Tabular
18525 <lyxtabular version="3" rows="3" columns="3">
18526 <features tabularvalignment="middle">
18527 <column alignment="center" valignment="top" special="Wc">
18528 <column alignment="center" valignment="top" special="Wc">
18529 <column alignment="center" valignment="top" special="WcW">
18531 <cell alignment="center" valignment="top" topline="true" usebox="none">
18534 \begin_layout Plain Layout
18540 <cell alignment="center" valignment="top" topline="true" usebox="none">
18543 \begin_layout Plain Layout
18549 <cell alignment="center" valignment="top" topline="true" usebox="none">
18552 \begin_layout Plain Layout
18560 <cell alignment="center" valignment="top" topline="true" usebox="none">
18563 \begin_layout Plain Layout
18569 <cell alignment="center" valignment="top" topline="true" usebox="none">
18572 \begin_layout Plain Layout
18578 <cell alignment="center" valignment="top" topline="true" usebox="none">
18581 \begin_layout Plain Layout
18589 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18592 \begin_layout Plain Layout
18598 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18601 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18610 \begin_layout Plain Layout
18629 \begin_layout Standard
18630 \begin_inset VSpace bigskip
18633 To color all horizontal lines for example with red, as in Table
18634 \begin_inset space ~
18638 \begin_inset CommandInset ref
18640 reference "tab:Table-with-horizontal-colored"
18644 , insert these commands in \SpecialChar TeX
18645 code before the table or table float:
18648 \begin_layout Standard
18658 \begin_inset Newline newline
18666 \begin_inset Newline newline
18670 \begin_inset Phantom HPhantom
18673 \begin_layout Plain Layout
18676 \begin_inset space ~
18686 arrayrulecolor{red}
18690 arrayrulecolor{black}}
18693 \begin_layout Standard
18697 \begin_layout Plain Layout
18708 \begin_layout Plain Layout
18717 \begin_layout Plain Layout
18721 arrayrulecolor{red}
18725 arrayrulecolor{black}}
18731 \begin_inset Float table
18737 \begin_layout Plain Layout
18738 \begin_inset Caption Standard
18740 \begin_layout Plain Layout
18741 \begin_inset CommandInset label
18743 name "tab:Table-with-horizontal-colored"
18747 Table with colored horizontal lines
18755 \begin_layout Plain Layout
18757 \begin_inset Tabular
18758 <lyxtabular version="3" rows="3" columns="3">
18759 <features tabularvalignment="middle">
18760 <column alignment="center" valignment="top">
18761 <column alignment="center" valignment="top">
18762 <column alignment="center" valignment="top">
18764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18767 \begin_layout Plain Layout
18773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18776 \begin_layout Plain Layout
18782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18785 \begin_layout Plain Layout
18793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18796 \begin_layout Plain Layout
18802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18805 \begin_layout Plain Layout
18811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18814 \begin_layout Plain Layout
18822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18825 \begin_layout Plain Layout
18831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18834 \begin_layout Plain Layout
18840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18843 \begin_layout Plain Layout
18862 \begin_layout Standard
18863 To return to the default line color black, insert this command in \SpecialChar TeX
18865 after the table or table float:
18868 \begin_layout Standard
18880 \begin_layout Standard
18882 \begin_inset space ~
18886 \begin_inset CommandInset ref
18888 reference "tab:Table-with-colored"
18892 is an example with colored vertical and horizontal lines.
18895 \begin_layout Standard
18896 \begin_inset Float table
18902 \begin_layout Plain Layout
18903 \begin_inset Caption Standard
18905 \begin_layout Plain Layout
18906 \begin_inset CommandInset label
18908 name "tab:Table-with-colored"
18912 Table with colored lines
18920 \begin_layout Plain Layout
18922 \begin_inset Tabular
18923 <lyxtabular version="3" rows="3" columns="3">
18924 <features tabularvalignment="middle">
18925 <column alignment="center" valignment="top" special="Wc">
18926 <column alignment="center" valignment="top" special="Wc">
18927 <column alignment="center" valignment="top" special="WcW">
18929 <cell alignment="center" valignment="top" topline="true" usebox="none">
18932 \begin_layout Plain Layout
18938 <cell alignment="center" valignment="top" topline="true" usebox="none">
18941 \begin_layout Plain Layout
18947 <cell alignment="center" valignment="top" topline="true" usebox="none">
18950 \begin_layout Plain Layout
18958 <cell alignment="center" valignment="top" topline="true" usebox="none">
18961 \begin_layout Plain Layout
18967 <cell alignment="center" valignment="top" topline="true" usebox="none">
18970 \begin_layout Plain Layout
18976 <cell alignment="center" valignment="top" topline="true" usebox="none">
18979 \begin_layout Plain Layout
18986 <row topspace="default">
18987 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18990 \begin_layout Plain Layout
18996 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19008 \begin_layout Plain Layout
19027 \begin_layout Standard
19031 \begin_layout Plain Layout
19047 \begin_layout Standard
19051 \begin_layout Plain Layout
19057 arrayrulewidth}{1.2pt}
19065 \begin_layout Standard
19066 To color only some of the table lines another strategy is necessary.
19067 To color all following horizontal lines, insert this command as \SpecialChar TeX
19069 last thing in the row that should be above the first colored line:
19072 \begin_layout Standard
19081 arrayrulecolor{blue}%
19084 \begin_layout Standard
19085 To go back to black lines, add this command as first thing in the row that
19086 is above the black lines:
19089 \begin_layout Standard
19094 arrayrulecolor{black}
19097 \begin_layout Standard
19098 With this one can color table lines like in Table
19099 \begin_inset space ~
19103 \begin_inset CommandInset ref
19105 reference "tab:Table-with-different-hor"
19110 However, with this method it is not possible to color the line above the
19111 first row of a table.
19114 \begin_layout Standard
19115 \begin_inset Float table
19120 \begin_layout Plain Layout
19121 \begin_inset Caption Standard
19123 \begin_layout Plain Layout
19124 \begin_inset CommandInset label
19126 name "tab:Table-with-different-hor"
19130 Table with different horizontal line colors.
19138 \begin_layout Plain Layout
19140 \begin_inset Tabular
19141 <lyxtabular version="3" rows="6" columns="7">
19142 <features tabularvalignment="middle">
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">
19148 <column alignment="center" valignment="top">
19149 <column alignment="center" valignment="top">
19151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19154 \begin_layout Plain Layout
19160 <cell alignment="center" valignment="top" topline="true" usebox="none">
19163 \begin_layout Plain Layout
19169 <cell alignment="center" valignment="top" topline="true" usebox="none">
19172 \begin_layout Plain Layout
19178 <cell alignment="center" valignment="top" topline="true" usebox="none">
19181 \begin_layout Plain Layout
19187 <cell alignment="center" valignment="top" topline="true" usebox="none">
19190 \begin_layout Plain Layout
19196 <cell alignment="center" valignment="top" topline="true" usebox="none">
19199 \begin_layout Plain Layout
19205 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19208 \begin_layout Plain Layout
19212 \begin_layout Plain Layout
19220 arrayrulecolor{blue}%
19232 <cell alignment="center" valignment="top" usebox="none">
19235 \begin_layout Plain Layout
19241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19244 \begin_layout Plain Layout
19250 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19253 \begin_layout Plain Layout
19259 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19262 \begin_layout Plain Layout
19268 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19271 \begin_layout Plain Layout
19277 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19280 \begin_layout Plain Layout
19286 <cell alignment="center" valignment="top" usebox="none">
19289 \begin_layout Plain Layout
19297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19300 \begin_layout Plain Layout
19304 \begin_layout Plain Layout
19308 arrayrulecolor{black}
19318 <cell alignment="center" valignment="top" usebox="none">
19321 \begin_layout Plain Layout
19327 <cell alignment="center" valignment="top" usebox="none">
19330 \begin_layout Plain Layout
19336 <cell alignment="center" valignment="top" usebox="none">
19339 \begin_layout Plain Layout
19345 <cell alignment="center" valignment="top" usebox="none">
19348 \begin_layout Plain Layout
19354 <cell alignment="center" valignment="top" usebox="none">
19357 \begin_layout Plain Layout
19363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19366 \begin_layout Plain Layout
19374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19377 \begin_layout Plain Layout
19383 <cell alignment="center" valignment="top" usebox="none">
19386 \begin_layout Plain Layout
19392 <cell alignment="center" valignment="top" usebox="none">
19395 \begin_layout Plain Layout
19401 <cell alignment="center" valignment="top" usebox="none">
19404 \begin_layout Plain Layout
19410 <cell alignment="center" valignment="top" usebox="none">
19413 \begin_layout Plain Layout
19419 <cell alignment="center" valignment="top" usebox="none">
19422 \begin_layout Plain Layout
19428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19431 \begin_layout Plain Layout
19435 \begin_layout Plain Layout
19443 arrayrulecolor{green}%
19455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19458 \begin_layout Plain Layout
19464 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19467 \begin_layout Plain Layout
19473 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19476 \begin_layout Plain Layout
19482 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19485 \begin_layout Plain Layout
19491 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19494 \begin_layout Plain Layout
19500 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19503 \begin_layout Plain Layout
19509 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19512 \begin_layout Plain Layout
19520 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19523 \begin_layout Plain Layout
19527 \begin_layout Plain Layout
19531 arrayrulecolor{black}
19541 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19544 \begin_layout Plain Layout
19550 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19553 \begin_layout Plain Layout
19559 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19562 \begin_layout Plain Layout
19568 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19571 \begin_layout Plain Layout
19577 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19580 \begin_layout Plain Layout
19586 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19589 \begin_layout Plain Layout
19593 \begin_layout Plain Layout
19601 arrayrulecolor{blue}%
19624 \begin_layout Standard
19625 To change the color of vertical lines within a row, like in Table
19626 \begin_inset space ~
19630 \begin_inset CommandInset ref
19632 reference "tab:Table-with-different-ver"
19636 , one needs to use multicolumns.
19637 At first one needs to remove all vertical lines that don't run along the
19639 Now one colors all lines using the command
19642 \begin_layout Standard
19651 arrayrulecolor{blue}%
19654 \begin_layout Standard
19656 Finally one inserts this command as \SpecialChar TeX
19657 code to every cell in the row where
19658 one needs a vertical line in a different color:
19661 \begin_layout Standard
19677 \begin_layout Standard
19678 This adds a vertical line to both sides of the cell.
19679 The left one will be green, the right one red.
19680 If no color change is necessary one can omit the
19686 command in the above command.
19687 To get for example a black left line and a blue right line you can write:
19690 \begin_layout Standard
19702 \begin_layout Standard
19703 because the color blue was already set for all lines.
19708 creates hereby the vertical line while
19721 To set vertical lines without changing any color use
19724 \begin_layout Standard
19729 multicolumn{1}{|c|}{
19732 \begin_layout Standard
19733 After this command insert the cell content the normal way and end the cell
19734 with a closing brace
19738 in \SpecialChar TeX
19742 \begin_layout Standard
19743 \begin_inset Float table
19748 \begin_layout Plain Layout
19749 \begin_inset Caption Standard
19751 \begin_layout Plain Layout
19752 \begin_inset CommandInset label
19754 name "tab:Table-with-different-ver"
19758 Table with different vertical line colors in one row.
19766 \begin_layout Plain Layout
19768 \begin_inset Tabular
19769 <lyxtabular version="3" rows="5" columns="7">
19770 <features tabularvalignment="middle">
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">
19776 <column alignment="center" valignment="top">
19777 <column alignment="center" valignment="top">
19779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19782 \begin_layout Plain Layout
19788 <cell alignment="center" valignment="top" topline="true" usebox="none">
19791 \begin_layout Plain Layout
19797 <cell alignment="center" valignment="top" topline="true" usebox="none">
19800 \begin_layout Plain Layout
19806 <cell alignment="center" valignment="top" topline="true" usebox="none">
19809 \begin_layout Plain Layout
19815 <cell alignment="center" valignment="top" topline="true" usebox="none">
19818 \begin_layout Plain Layout
19824 <cell alignment="center" valignment="top" topline="true" usebox="none">
19827 \begin_layout Plain Layout
19833 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19836 \begin_layout Plain Layout
19840 \begin_layout Plain Layout
19848 arrayrulecolor{red}%
19860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19863 \begin_layout Plain Layout
19867 \begin_layout Plain Layout
19884 \begin_layout Plain Layout
19896 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19899 \begin_layout Plain Layout
19905 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19908 \begin_layout Plain Layout
19914 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19917 \begin_layout Plain Layout
19923 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19926 \begin_layout Plain Layout
19932 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19935 \begin_layout Plain Layout
19939 \begin_layout Plain Layout
19943 multicolumn{1}{c|}{
19952 \begin_layout Plain Layout
19964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19967 \begin_layout Plain Layout
19971 \begin_layout Plain Layout
19988 \begin_layout Plain Layout
20002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20005 \begin_layout Plain Layout
20009 \begin_layout Plain Layout
20013 arrayrulecolor{black}
20023 <cell alignment="center" valignment="top" usebox="none">
20026 \begin_layout Plain Layout
20032 <cell alignment="center" valignment="top" usebox="none">
20035 \begin_layout Plain Layout
20041 <cell alignment="center" valignment="top" usebox="none">
20044 \begin_layout Plain Layout
20050 <cell alignment="center" valignment="top" usebox="none">
20053 \begin_layout Plain Layout
20059 <cell alignment="center" valignment="top" usebox="none">
20062 \begin_layout Plain Layout
20068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20071 \begin_layout Plain Layout
20075 \begin_layout Plain Layout
20083 arrayrulecolor{magenta}%
20095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20098 \begin_layout Plain Layout
20102 \begin_layout Plain Layout
20106 multicolumn{1}{|c!{
20119 \begin_layout Plain Layout
20131 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20134 \begin_layout Plain Layout
20138 \begin_layout Plain Layout
20155 \begin_layout Plain Layout
20167 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20170 \begin_layout Plain Layout
20174 \begin_layout Plain Layout
20191 \begin_layout Plain Layout
20203 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20206 \begin_layout Plain Layout
20210 \begin_layout Plain Layout
20227 \begin_layout Plain Layout
20239 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20242 \begin_layout Plain Layout
20246 \begin_layout Plain Layout
20263 \begin_layout Plain Layout
20275 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20278 \begin_layout Plain Layout
20282 \begin_layout Plain Layout
20299 \begin_layout Plain Layout
20311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20314 \begin_layout Plain Layout
20318 \begin_layout Plain Layout
20322 multicolumn{1}{c|}{
20331 \begin_layout Plain Layout
20345 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20348 \begin_layout Plain Layout
20352 \begin_layout Plain Layout
20356 arrayrulecolor{black}
20366 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20369 \begin_layout Plain Layout
20375 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20378 \begin_layout Plain Layout
20384 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20387 \begin_layout Plain Layout
20393 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20396 \begin_layout Plain Layout
20402 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20405 \begin_layout Plain Layout
20411 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20414 \begin_layout Plain Layout
20433 \begin_layout Standard
20437 \begin_layout Plain Layout
20443 arrayrulewidth}{0.4pt}
20451 \begin_layout Section
20452 Rotated Table Cells
20453 \begin_inset CommandInset label
20455 name "sec:Rotated-Table-Cells"
20460 \begin_inset Index idx
20463 \begin_layout Plain Layout
20464 Table ! Rotated Cells
20470 \begin_inset Index idx
20473 \begin_layout Plain Layout
20482 \begin_layout Standard
20483 \begin_inset Note Greyedout
20486 \begin_layout Plain Layout
20491 Not all DVI-viewers are able to display rotations.
20499 \begin_layout Standard
20501 \begin_inset space ~
20505 \begin_inset CommandInset ref
20507 reference "tab:Table-with-rotated"
20514 is an example where 3
20515 \begin_inset space ~
20518 cells were rotated by 45
20519 \begin_inset space \thinspace{}
20525 \begin_layout Standard
20526 \begin_inset Float table
20532 \begin_layout Plain Layout
20533 \begin_inset Caption Standard
20535 \begin_layout Plain Layout
20536 \begin_inset CommandInset label
20538 name "tab:Table-with-rotated"
20542 Table with rotated cells in the first row.
20550 \begin_layout Plain Layout
20553 \begin_inset Tabular
20554 <lyxtabular version="3" rows="2" columns="3">
20555 <features tabularvalignment="middle">
20556 <column alignment="center" valignment="top" width="0pt">
20557 <column alignment="center" valignment="top" width="0pt">
20558 <column alignment="center" valignment="top" width="0pt">
20560 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20563 \begin_layout Plain Layout
20569 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20572 \begin_layout Plain Layout
20578 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20581 \begin_layout Plain Layout
20589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20592 \begin_layout Plain Layout
20598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20601 \begin_layout Plain Layout
20607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20610 \begin_layout Plain Layout
20629 \begin_layout Standard
20630 \begin_inset Note Greyedout
20633 \begin_layout Plain Layout
20638 Line breaks (shortcut
20641 arg "newline-insert newline"
20644 ) are not allowed in rotated cells.
20652 \begin_layout Standard
20653 If you want to rotate table cells containing line breaks, you have to put
20654 the cell content into a minipage or a parbox.
20658 \begin_layout Plain Layout
20659 For more about these boxes see sec.
20660 \begin_inset space \thinspace{}
20664 \begin_inset CommandInset ref
20666 reference "sec:Minipages"
20671 \begin_inset CommandInset ref
20673 reference "sec:Parboxes"
20682 If you rotate this cell by 90
20683 \begin_inset space \thinspace{}
20686 ° the width of the box is the height of the cell.
20688 \begin_inset space ~
20692 \begin_inset CommandInset ref
20694 reference "tab:Table-with-rotated-multi"
20698 is an example for a rotated multiline cell where the box width was set
20700 \begin_inset space \thinspace{}
20706 \begin_layout Standard
20707 \begin_inset Float table
20712 \begin_layout Plain Layout
20713 \begin_inset Caption Standard
20715 \begin_layout Plain Layout
20716 \begin_inset CommandInset label
20718 name "tab:Table-with-rotated-multi"
20722 Table with rotated multiline cell.
20730 \begin_layout Plain Layout
20733 \begin_inset Tabular
20734 <lyxtabular version="3" rows="2" columns="3">
20735 <features tabularvalignment="middle">
20736 <column alignment="center" valignment="top">
20737 <column alignment="center" valignment="top" width="0pt">
20738 <column alignment="center" valignment="top">
20740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20743 \begin_layout Plain Layout
20749 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20752 \begin_layout Plain Layout
20753 \begin_inset Box Frameless
20763 height_special "totalheight"
20768 backgroundcolor "none"
20771 \begin_layout Plain Layout
20773 \begin_inset Newline newline
20786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20789 \begin_layout Plain Layout
20797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20800 \begin_layout Plain Layout
20806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20809 \begin_layout Plain Layout
20815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20818 \begin_layout Plain Layout
20837 \begin_layout Section
20838 Table Width Calculation
20839 \begin_inset CommandInset label
20841 name "sec:Table-Width-Calculation"
20848 \begin_layout Standard
20849 For wide tables it is sometimes difficult to assure that the table does
20850 not protrude over the page margin.
20851 Setting a fixed width for every column of the table is the solution, but
20852 what amount of space is needed for each column?
20855 \begin_layout Standard
20857 \begin_inset Formula $W_{\mathrm{table}}$
20860 can be calculated: Every column has the width of the specified column width
20862 \begin_inset Formula $W_{\mathrm{column}}$
20865 (that the content of the column can consume) plus two times the separation
20866 between the column content and the column border (\SpecialChar LaTeX
20874 \begin_inset space \thinspace{}
20877 pt) plus the width of a border line (\SpecialChar LaTeX
20885 \begin_inset space \thinspace{}
20889 \begin_inset Formula $n$
20893 \begin_inset space ~
20896 columns have the same width, the table width is
20897 \begin_inset Formula
20899 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20907 \begin_layout Standard
20908 The available width for a table is the space between the page margins or
20909 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20917 If all table columns should have the same width and
20918 \begin_inset Formula $W_{\mathrm{table}}$
20922 \begin_inset space \thinspace{}
20928 \begin_inset Formula $W_{\mathrm{column}}$
20931 can easily be calculated.
20934 \begin_layout Standard
20935 To be able to perform calculations you need to load the \SpecialChar LaTeX
20941 \begin_inset Index idx
20944 \begin_layout Plain Layout
20951 in the document preamble.
20952 To set the width in the table dialog you have to use the field
20958 The command scheme for this field is the same that is explained in section
20959 \begin_inset space ~
20963 \begin_inset CommandInset ref
20965 reference "subsec:Multicolumn-Calculations"
20971 \begin_inset space \thinspace{}
20974 columns with an uniform width and centered text, enter there for each column
20978 \begin_layout Standard
20985 columnwidth-62.4pt)/5}
20988 \begin_layout Standard
20990 \begin_inset space \thinspace{}
20993 columns where 2 should have 0.75
20994 \begin_inset space ~
20997 times the width than the 3 others, the calculation is
20998 \begin_inset Formula
21000 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
21001 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
21002 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
21003 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21011 \begin_layout Standard
21012 In the table therefore the command
21015 \begin_layout Standard
21022 columnwidth-62.4pt)/
21027 \begin_layout Standard
21028 is used for the wider columns and
21031 \begin_layout Standard
21038 columnwidth-62.4pt)/
21045 \begin_layout Standard
21046 for the smaller ones:
21049 \begin_layout Standard
21050 \begin_inset Tabular
21051 <lyxtabular version="3" rows="2" columns="5">
21052 <features tabularvalignment="middle">
21053 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21054 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21055 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21056 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21057 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21062 \begin_layout Plain Layout
21068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21071 \begin_layout Plain Layout
21077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21080 \begin_layout Plain Layout
21086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21089 \begin_layout Plain Layout
21095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21098 \begin_layout Plain Layout
21106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21109 \begin_layout Plain Layout
21110 111111 1111111 111111 111111111 11111 11111 1111
21115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21118 \begin_layout Plain Layout
21124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21127 \begin_layout Plain Layout
21128 2222 22222 222222 222222222 2222222 22 22222
21133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21136 \begin_layout Plain Layout
21142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21145 \begin_layout Plain Layout
21146 333333 333333 333333 33333 3333333 333
21159 \begin_layout Section
21160 Table Customization
21161 \begin_inset Index idx
21164 \begin_layout Plain Layout
21165 Table Customization
21171 \begin_inset Index idx
21174 \begin_layout Plain Layout
21175 Table ! Customization
21183 \begin_layout Subsection
21185 \begin_inset CommandInset label
21187 name "subsec:Row-Spacing"
21192 \begin_inset Index idx
21195 \begin_layout Plain Layout
21196 Table Customization ! Row Spacing
21204 \begin_layout Standard
21205 You can add vertical space to table rows in the
21209 tab of the table dialog.
21210 You find there three possibilities:
21213 \begin_layout Description
21215 \begin_inset space ~
21219 \begin_inset space ~
21222 row will add space above the characters of the table row.
21223 If the table is a formal table
21227 \begin_layout Plain Layout
21228 Formal tables are explained in section
21229 \begin_inset space ~
21233 \begin_inset CommandInset ref
21235 reference "sec:Formal-Tables"
21245 will insert as default 0.5
21246 \begin_inset space \thinspace{}
21250 For normal tables the inserted space will unfortunately destroy the vertical
21251 table lines as in the following table:
21252 \begin_inset VSpace medskip
21256 \begin_inset Newline newline
21260 \begin_inset space \hspace*{}
21265 \begin_inset space \hfill{}
21269 \begin_inset Tabular
21270 <lyxtabular version="3" rows="3" columns="1">
21271 <features tabularvalignment="middle">
21272 <column alignment="center" valignment="top">
21274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21277 \begin_layout Plain Layout
21284 <row topspace="3mm">
21285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21288 \begin_layout Plain Layout
21290 \begin_inset space \thinspace{}
21293 mm space top of row
21300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21303 \begin_layout Plain Layout
21315 \begin_inset space \hfill{}
21319 \begin_inset space \hspace*{}
21324 \begin_inset VSpace medskip
21328 \begin_inset Newline newline
21331 So inserting space in the top of row for normal tables is only useful when
21332 you don't have vertical lines.
21335 \begin_layout Description
21337 \begin_inset space ~
21341 \begin_inset space ~
21344 row will add space below the characters of the table row.
21345 If the table is a formal table \SpecialChar LyX
21346 will insert as default 0.5
21347 \begin_inset space \thinspace{}
21350 em space, for normal tables the default size is 2
21351 \begin_inset space \thinspace{}
21357 \begin_layout Description
21359 \begin_inset space ~
21362 rows adds space between the current and the following row.
21363 If the table is a formal table \SpecialChar LyX
21364 will insert as default 0.5
21365 \begin_inset space \thinspace{}
21369 For normal tables the inserted space will unfortunately destroy the vertical
21370 table lines as in the following table:
21371 \begin_inset VSpace medskip
21375 \begin_inset Newline newline
21379 \begin_inset space \hspace*{}
21384 \begin_inset space \hfill{}
21388 \begin_inset Tabular
21389 <lyxtabular version="3" rows="3" columns="1">
21390 <features tabularvalignment="middle">
21391 <column alignment="center" valignment="top">
21393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21396 \begin_layout Plain Layout
21403 <row interlinespace="3mm">
21404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21407 \begin_layout Plain Layout
21408 \begin_inset Formula $\downarrow$
21412 \begin_inset space \thinspace{}
21415 mm space between row
21416 \begin_inset Formula $\downarrow$
21426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21429 \begin_layout Plain Layout
21430 \begin_inset Formula $\uparrow$
21434 \begin_inset space \thinspace{}
21437 mm space between row
21438 \begin_inset Formula $\uparrow$
21452 \begin_inset space \hfill{}
21456 \begin_inset space \hspace*{}
21461 \begin_inset VSpace medskip
21465 \begin_inset Newline newline
21468 So inserting space between rows for normal tables is only useful when you
21469 don't have vertical lines.
21472 \begin_layout Standard
21473 \begin_inset VSpace bigskip
21476 When you want to add extra height to all cells of all tables, you can do
21477 this with the following preamble lines:
21480 \begin_layout Standard
21485 @ifundefined{extrarowheight}
21486 \begin_inset Newline newline
21490 \begin_inset Phantom HPhantom
21493 \begin_layout Plain Layout
21496 \begin_inset space ~
21506 usepackage{array}}{}
21507 \begin_inset Newline newline
21514 extrarowheight}{height}
21517 \begin_inset Note Note
21520 \begin_layout Plain Layout
21525 will be loaded automatically by \SpecialChar LyX
21526 when you use self defined table formats.
21527 To avoid that it is loaded twice the command
21533 is used in the above command.
21541 \begin_layout Standard
21546 can have one of the units listed in appendix
21547 \begin_inset space ~
21551 \begin_inset CommandInset ref
21553 reference "cha:Units-available-in"
21558 But this has the disadvantage that the cell texts are no longer exactly
21559 vertically centered.
21562 \begin_layout Standard
21563 If you are using font sizes larger than the normal size, the table borders
21564 are often too close to the letters.
21565 This can be corrected by inserting the command
21571 in \SpecialChar TeX
21572 Code at the beginning of a table row.
21574 \begin_inset space ~
21578 \begin_inset CommandInset ref
21580 reference "tab:Vertical-alignment-of"
21584 illustrates the effect.
21587 \begin_layout Standard
21589 \begin_inset Float table
21595 \begin_layout Plain Layout
21596 \begin_inset Caption Standard
21598 \begin_layout Plain Layout
21599 \begin_inset CommandInset label
21601 name "tab:Vertical-alignment-of"
21605 Vertical alignment of text with large font sizes.
21613 \begin_layout Plain Layout
21614 \begin_inset space \hfill{}
21618 \begin_inset Float table
21623 \begin_layout Plain Layout
21624 \begin_inset Caption Standard
21626 \begin_layout Plain Layout
21635 \begin_layout Plain Layout
21638 \begin_inset Tabular
21639 <lyxtabular version="3" rows="6" columns="1">
21640 <features tabularvalignment="middle">
21641 <column alignment="left" valignment="top">
21643 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21646 \begin_layout Plain Layout
21654 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21657 \begin_layout Plain Layout
21667 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21670 \begin_layout Plain Layout
21680 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21683 \begin_layout Plain Layout
21693 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21696 \begin_layout Plain Layout
21706 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21709 \begin_layout Plain Layout
21728 \begin_inset space \hfill{}
21732 \begin_inset Float table
21737 \begin_layout Plain Layout
21738 \begin_inset Caption Standard
21740 \begin_layout Plain Layout
21741 Table using the command
21755 \begin_layout Plain Layout
21758 \begin_inset Tabular
21759 <lyxtabular version="3" rows="6" columns="1">
21760 <features tabularvalignment="middle">
21761 <column alignment="left" valignment="top">
21763 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21766 \begin_layout Plain Layout
21774 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21777 \begin_layout Plain Layout
21783 \begin_layout Plain Layout
21799 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21802 \begin_layout Plain Layout
21808 \begin_layout Plain Layout
21824 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21827 \begin_layout Plain Layout
21833 \begin_layout Plain Layout
21849 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21852 \begin_layout Plain Layout
21858 \begin_layout Plain Layout
21874 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21877 \begin_layout Plain Layout
21883 \begin_layout Plain Layout
21910 \begin_inset space \hfill{}
21921 \begin_layout Subsection
21922 Special Cell Alignment
21923 \begin_inset CommandInset label
21925 name "subsec:Special-Cell-Alignment"
21930 \begin_inset Index idx
21933 \begin_layout Plain Layout
21934 Table Customization ! Special Cell Alignment
21942 \begin_layout Standard
21943 Sometimes it looks better when the cell entries of a column are aligned
21944 with a special character, e.
21945 \begin_inset space \thinspace{}
21949 \begin_inset space \space{}
21952 with the decimal separator as in Table
21953 \begin_inset space ~
21957 \begin_inset CommandInset ref
21959 reference "tab:Table-cells-align"
21964 This alignment is achieved by setting the cursor into the column and then
21965 either pressing the toolbar button
21968 arg "tabular-feature align-decimal"
21971 or setting the alignment in the table settings to
21974 \begin_inset space ~
21978 \begin_inset space ~
21984 The alignment character can be a character of your choice and is specified
21985 in the table settings.
21988 \begin_layout Standard
21989 \begin_inset Float table
21995 \begin_layout Plain Layout
21996 \begin_inset Caption Standard
21998 \begin_layout Plain Layout
21999 \begin_inset CommandInset label
22001 name "tab:Table-cells-align"
22005 Table cells of a column aligned with the decimal separator.
22013 \begin_layout Plain Layout
22015 \begin_inset Tabular
22016 <lyxtabular version="3" rows="4" columns="1">
22017 <features booktabs="true" tabularvalignment="middle">
22018 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22023 \begin_layout Plain Layout
22031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22034 \begin_layout Plain Layout
22042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22045 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22056 \begin_layout Plain Layout
22075 \begin_layout Standard
22076 \begin_inset Float table
22082 \begin_layout Plain Layout
22083 \begin_inset Caption Standard
22085 \begin_layout Plain Layout
22086 \begin_inset CommandInset label
22088 name "tab:Table-align-operator"
22092 Table cells of a column aligned with the operators.
22100 \begin_layout Plain Layout
22102 \begin_inset Tabular
22103 <lyxtabular version="3" rows="4" columns="2">
22104 <features booktabs="true" tabularvalignment="middle">
22105 <column alignment="right" valignment="top" width="0pt">
22106 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22108 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22111 \begin_layout Plain Layout
22117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22120 \begin_layout Plain Layout
22128 <cell alignment="center" valignment="top" usebox="none">
22131 \begin_layout Plain Layout
22132 \begin_inset Formula $12\,+$
22140 <cell alignment="center" valignment="top" usebox="none">
22143 \begin_layout Plain Layout
22144 \begin_inset Formula $\,6$
22154 <cell alignment="center" valignment="top" usebox="none">
22157 \begin_layout Plain Layout
22158 \begin_inset Formula $0\,-$
22166 <cell alignment="center" valignment="top" usebox="none">
22169 \begin_layout Plain Layout
22170 \begin_inset Formula $\,68$
22180 <cell alignment="center" valignment="top" usebox="none">
22183 \begin_layout Plain Layout
22184 \begin_inset Formula $-123\,/$
22192 <cell alignment="center" valignment="top" usebox="none">
22195 \begin_layout Plain Layout
22196 \begin_inset Formula $\,0$
22217 \begin_layout Standard
22218 For alignments at characters in formulas this method does not work because
22219 the field to specify the alignment character does not allow formulas.
22220 In this case one need to use the method from Table
22221 \begin_inset space ~
22225 \begin_inset CommandInset ref
22227 reference "tab:Table-align-operator"
22232 This table was created with a 4×2 table.
22233 The heading is a centered multicolumn.
22234 The first column is right-aligned and contains the first part including
22236 The second column is left aligned and contains the rest.
22237 A small space was added at the beginning of each cell of the second column
22238 to get the space that is usually around operators.
22239 To omit the space that is normally between two table columns, the following
22241 -argument was used for the second column:
22244 \begin_layout Standard
22250 \begin_layout Standard
22252 \begin_inset space ~
22256 \begin_inset CommandInset ref
22258 reference "tab:Several-table-cell"
22262 shows some example alignments.
22263 For the alignment with the relation sign, a small space was added like
22264 for the second column of Table
22265 \begin_inset space ~
22269 \begin_inset CommandInset ref
22271 reference "tab:Table-align-operator"
22278 \begin_layout Standard
22279 \begin_inset Float table
22285 \begin_layout Plain Layout
22286 \begin_inset Caption Standard
22288 \begin_layout Plain Layout
22289 \begin_inset CommandInset label
22291 name "tab:Several-table-cell"
22295 Several table cell alignments.
22303 \begin_layout Plain Layout
22305 \begin_inset Tabular
22306 <lyxtabular version="3" rows="4" columns="6">
22307 <features tabularvalignment="middle">
22308 <column alignment="right" valignment="top">
22309 <column alignment="left" valignment="top" special="@{}l">
22310 <column alignment="right" valignment="top">
22311 <column alignment="left" valignment="top" special="@{}l">
22312 <column alignment="right" valignment="top">
22313 <column alignment="left" valignment="top" special="@{}l">
22315 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22318 \begin_layout Plain Layout
22324 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22327 \begin_layout Plain Layout
22333 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22336 \begin_layout Plain Layout
22342 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22345 \begin_layout Plain Layout
22351 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22354 \begin_layout Plain Layout
22360 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22363 \begin_layout Plain Layout
22371 <cell alignment="center" valignment="top" usebox="none">
22374 \begin_layout Plain Layout
22380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22383 \begin_layout Plain Layout
22385 \begin_inset space \thinspace{}
22393 <cell alignment="center" valignment="top" usebox="none">
22396 \begin_layout Plain Layout
22397 \begin_inset Formula $10\cdot$
22405 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22408 \begin_layout Plain Layout
22409 \begin_inset Formula $10^{\mbox{-}17}$
22417 <cell alignment="center" valignment="top" usebox="none">
22420 \begin_layout Plain Layout
22421 \begin_inset Formula $\Gamma(t)\propto$
22429 <cell alignment="center" valignment="top" usebox="none">
22432 \begin_layout Plain Layout
22433 \begin_inset Formula $\:\Upsilon(t)$
22443 <cell alignment="center" valignment="top" usebox="none">
22446 \begin_layout Plain Layout
22452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22455 \begin_layout Plain Layout
22457 \begin_inset space \thinspace{}
22465 <cell alignment="center" valignment="top" usebox="none">
22468 \begin_layout Plain Layout
22469 \begin_inset Formula $5.78\cdot$
22477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22480 \begin_layout Plain Layout
22481 \begin_inset Formula $10^{7}$
22489 <cell alignment="center" valignment="top" usebox="none">
22492 \begin_layout Plain Layout
22493 \begin_inset Formula $A\ne$
22501 <cell alignment="center" valignment="top" usebox="none">
22504 \begin_layout Plain Layout
22505 \begin_inset Formula $\:B_{\mathrm{red}}$
22515 <cell alignment="center" valignment="top" usebox="none">
22518 \begin_layout Plain Layout
22524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22527 \begin_layout Plain Layout
22529 \begin_inset space \thinspace{}
22537 <cell alignment="center" valignment="top" usebox="none">
22540 \begin_layout Plain Layout
22542 \begin_inset Formula $33.5\cdot$
22550 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22553 \begin_layout Plain Layout
22554 \begin_inset Formula $10^{4}$
22562 <cell alignment="center" valignment="top" usebox="none">
22565 \begin_layout Plain Layout
22566 \begin_inset Formula $\sin(\alpha)\ge$
22574 <cell alignment="center" valignment="top" usebox="none">
22577 \begin_layout Plain Layout
22578 \begin_inset Formula $\:\sin(\beta)$
22599 \begin_layout Subsection
22600 Customized Cell/Column Format
22601 \begin_inset CommandInset label
22603 name "subsec:Customized-Format"
22608 \begin_inset Index idx
22611 \begin_layout Plain Layout
22612 Table Customization ! Cell/Column Format
22620 \begin_layout Standard
22621 Calculating the required width for normal columns as described in section
22622 \begin_inset space ~
22626 \begin_inset CommandInset ref
22628 reference "sec:Table-Width-Calculation"
22632 or for spanned columns as described in section
22633 \begin_inset space ~
22637 \begin_inset CommandInset ref
22639 reference "subsec:Multicolumn-Calculations"
22643 is very annoying if you have several tables where a calculation is necessary.
22644 To make life easier, you can define a cell/column format in the preamble,
22645 that can be used in all tables of the document.
22646 The format is defined with the command
22649 \begin_layout Standard
22654 newcolumntype{name of format}[number of arguments]{commands}
22657 \begin_layout Standard
22658 The format name may only consist of one letter.
22683 are predefined and cannot be used.
22684 But all letters are allowed as capitals.
22687 \begin_layout Standard
22688 \begin_inset VSpace medskip
22694 \begin_layout Standard
22695 For vertically and horizontally centered multicolumn cells with a fixed
22696 width you can define the cell format
22699 \begin_layout Standard
22704 newcolumntype{M}[1]{>{
22711 \begin_layout Standard
22718 avoids the problem of hyphenating the first word, as described in section
22719 \begin_inset space ~
22723 \begin_inset CommandInset ref
22725 reference "subsec:Multiple-Lines-in"
22730 Now you can simply enter
22733 \begin_layout Standard
22739 \begin_layout Standard
22745 in the table dialog to create a multicolumn.
22748 \begin_layout Standard
22749 \begin_inset VSpace bigskip
22755 \begin_layout Standard
22756 For cells spanned by a multicolumn cell, you can define the format
22759 \begin_layout Standard
22764 newcolumntype{S}[2]{>{
22769 \begin_inset Newline newline
22773 \begin_inset Phantom HPhantom
22776 \begin_layout Plain Layout
22790 arrayrulewidth)*(1-#2))/#2}}
22793 \begin_layout Standard
22794 This format uses equation
22795 \begin_inset CommandInset ref
22801 to calculate the required width so that each spanned cell has the same
22805 \begin_layout Standard
22809 \begin_layout Standard
22812 S{width of multicolumn cell}{number of spanned columns}
22815 \begin_layout Standard
22816 as \SpecialChar LaTeX
22817 -argument of the column.
22820 \begin_layout Standard
22821 \begin_inset VSpace bigskip
22827 \begin_layout Standard
22828 For colored columns, you can define
22831 \begin_layout Standard
22836 newcolumntype{K}[1]{>{
22843 \begin_layout Standard
22845 \begin_inset Quotes eld
22849 \begin_inset Quotes erd
22852 at the end creates a column with a flexible width whose text is horizontally
22857 \begin_layout Standard
22863 \begin_layout Standard
22864 as \SpecialChar LaTeX
22868 \begin_layout Standard
22869 \begin_inset VSpace bigskip
22875 \begin_layout Standard
22877 \begin_inset space ~
22881 \begin_inset CommandInset ref
22883 reference "tab:Table-using-user-defined"
22887 use the \SpecialChar LaTeX
22891 \begin_layout Standard
22897 \begin_layout Standard
22898 for the first column and the multicolumn,
22901 \begin_layout Standard
22907 \begin_layout Standard
22908 for the last column, and
22911 \begin_layout Standard
22917 \begin_layout Standard
22918 for the cells in the second column.
22921 \begin_layout Standard
22922 \begin_inset Float table
22928 \begin_layout Plain Layout
22929 \begin_inset Caption Standard
22931 \begin_layout Plain Layout
22932 \begin_inset CommandInset label
22934 name "tab:Table-using-user-defined"
22938 Table using user-defined table formats
22946 \begin_layout Plain Layout
22948 \begin_inset Tabular
22949 <lyxtabular version="3" rows="3" columns="4">
22950 <features tabularvalignment="middle">
22951 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22952 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22953 <column alignment="center" valignment="middle">
22954 <column alignment="center" valignment="middle" special="K{red}">
22956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22959 \begin_layout Plain Layout
22960 verylongtablecellword
22965 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22968 \begin_layout Plain Layout
22969 multiple lines multicolumn
22974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22977 \begin_layout Plain Layout
22983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22986 \begin_layout Plain Layout
22994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22997 \begin_layout Plain Layout
23003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23006 \begin_layout Plain Layout
23012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23015 \begin_layout Plain Layout
23021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23024 \begin_layout Plain Layout
23032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23035 \begin_layout Plain Layout
23041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23044 \begin_layout Plain Layout
23050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23053 \begin_layout Plain Layout
23059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23062 \begin_layout Plain Layout
23081 \begin_layout Subsection
23083 \begin_inset CommandInset label
23085 name "subsec:Line-Thickness"
23090 \begin_inset Index idx
23093 \begin_layout Plain Layout
23094 Table Customization ! Line Thickness
23102 \begin_layout Standard
23103 The line thickness for all lines in a table can be adjusted with the length
23111 To set for example a line thickness of 1.5
23112 \begin_inset space \thinspace{}
23116 \begin_inset space ~
23120 \begin_inset CommandInset ref
23122 reference "tab:Table-with-1.5"
23126 , insert the command
23129 \begin_layout Standard
23136 arrayrulewidth}{1.5pt}
23139 \begin_layout Standard
23140 in \SpecialChar TeX
23141 Code before the table or table float.
23142 The changed thickness is valid for all subsequent tables.
23143 To use the default value again, set
23150 \begin_inset space \thinspace{}
23153 pt in \SpecialChar TeX
23154 Code after the table or table float.
23157 \begin_layout Standard
23161 \begin_layout Plain Layout
23167 arrayrulewidth}{1.5pt}
23173 \begin_inset Float table
23178 \begin_layout Plain Layout
23179 \begin_inset Caption Standard
23181 \begin_layout Plain Layout
23182 \begin_inset CommandInset label
23184 name "tab:Table-with-1.5"
23189 \begin_inset space \thinspace{}
23200 \begin_layout Plain Layout
23202 \begin_inset Tabular
23203 <lyxtabular version="3" rows="3" columns="3">
23204 <features tabularvalignment="middle">
23205 <column alignment="center" valignment="top">
23206 <column alignment="center" valignment="top">
23207 <column alignment="center" valignment="top">
23209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23212 \begin_layout Plain Layout
23218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23221 \begin_layout Plain Layout
23227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23230 \begin_layout Plain Layout
23238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23241 \begin_layout Plain Layout
23247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23250 \begin_layout Plain Layout
23256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23259 \begin_layout Plain Layout
23267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23270 \begin_layout Plain Layout
23276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23279 \begin_layout Plain Layout
23285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23288 \begin_layout Plain Layout
23308 \begin_layout Plain Layout
23314 arrayrulewidth}{0.4pt}
23322 \begin_layout Standard
23323 \begin_inset VSpace bigskip
23326 To set the line thickness to 1.5
23327 \begin_inset space \thinspace{}
23330 pt only for horizontal lines, as in Table
23331 \begin_inset space ~
23335 \begin_inset CommandInset ref
23337 reference "tab:Table-with-horizontal"
23341 , insert these commands in \SpecialChar TeX
23342 Code before the table or table float:
23345 \begin_layout Standard
23355 \begin_inset Newline newline
23363 \begin_inset Newline newline
23372 arrayrulewidth 1.5pt}
23373 \begin_inset Newline newline
23384 arrayrulewidth 0.4pt}}
23387 \begin_layout Standard
23388 To return to the default line thickness, insert this command in \SpecialChar TeX
23390 the table or table float:
23393 \begin_layout Standard
23405 \begin_layout Standard
23409 \begin_layout Plain Layout
23420 \begin_layout Plain Layout
23429 \begin_layout Plain Layout
23437 arrayrulewidth 1.5pt}
23440 \begin_layout Plain Layout
23450 arrayrulewidth 0.4pt}}
23456 \begin_inset Float table
23461 \begin_layout Plain Layout
23462 \begin_inset Caption Standard
23464 \begin_layout Plain Layout
23465 \begin_inset CommandInset label
23467 name "tab:Table-with-horizontal"
23472 \begin_inset space \thinspace{}
23475 pt thick horizontal lines
23483 \begin_layout Plain Layout
23485 \begin_inset Tabular
23486 <lyxtabular version="3" rows="3" columns="3">
23487 <features tabularvalignment="middle">
23488 <column alignment="center" valignment="top">
23489 <column alignment="center" valignment="top">
23490 <column alignment="center" valignment="top">
23492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23495 \begin_layout Plain Layout
23501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23504 \begin_layout Plain Layout
23510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23513 \begin_layout Plain Layout
23521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23524 \begin_layout Plain Layout
23530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23533 \begin_layout Plain Layout
23539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23542 \begin_layout Plain Layout
23550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23553 \begin_layout Plain Layout
23559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23562 \begin_layout Plain Layout
23568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23571 \begin_layout Plain Layout
23591 \begin_layout Plain Layout
23607 \begin_layout Standard
23608 \begin_inset VSpace bigskip
23611 To set the line thickness to 1.5
23612 \begin_inset space \thinspace{}
23615 pt only for vertical lines, create the following column format in the document
23616 preamble, according to the description in section
23617 \begin_inset space ~
23621 \begin_inset CommandInset ref
23623 reference "subsec:Customized-Format"
23630 \begin_layout Standard
23635 newcolumntype{V}{!{
23637 vrule width 1.5pt}}
23640 \begin_layout Standard
23642 \begin_inset space ~
23646 \begin_inset CommandInset ref
23648 reference "tab:Table-with-vertical"
23652 the \SpecialChar LaTeX
23656 \begin_layout Standard
23662 \begin_layout Standard
23663 was used for the last column and
23666 \begin_layout Standard
23672 \begin_layout Standard
23673 for the other columns.
23676 \begin_layout Standard
23677 \begin_inset Float table
23682 \begin_layout Plain Layout
23683 \begin_inset Caption Standard
23685 \begin_layout Plain Layout
23686 \begin_inset CommandInset label
23688 name "tab:Table-with-vertical"
23693 \begin_inset space \thinspace{}
23696 pt thick vertical lines
23704 \begin_layout Plain Layout
23706 \begin_inset Tabular
23707 <lyxtabular version="3" rows="3" columns="3">
23708 <features tabularvalignment="middle">
23709 <column alignment="center" valignment="top" special="Vc">
23710 <column alignment="center" valignment="top" special="Vc">
23711 <column alignment="center" valignment="top" special="VcV">
23713 <cell alignment="center" valignment="top" topline="true" usebox="none">
23716 \begin_layout Plain Layout
23722 <cell alignment="center" valignment="top" topline="true" usebox="none">
23725 \begin_layout Plain Layout
23731 <cell alignment="center" valignment="top" topline="true" usebox="none">
23734 \begin_layout Plain Layout
23742 <cell alignment="center" valignment="top" topline="true" usebox="none">
23745 \begin_layout Plain Layout
23751 <cell alignment="center" valignment="top" topline="true" usebox="none">
23754 \begin_layout Plain Layout
23760 <cell alignment="center" valignment="top" topline="true" usebox="none">
23763 \begin_layout Plain Layout
23771 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23774 \begin_layout Plain Layout
23780 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23783 \begin_layout Plain Layout
23789 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23792 \begin_layout Plain Layout
23811 \begin_layout Subsection
23813 \begin_inset Index idx
23816 \begin_layout Plain Layout
23817 Table Customization ! Dashed Lines
23825 \begin_layout Standard
23829 \begin_layout Plain Layout
23839 \begin_inset Note Note
23842 \begin_layout Plain Layout
23843 The following section will only be displayed when the \SpecialChar LaTeX
23856 \begin_layout Standard
23857 \begin_inset Float table
23863 \begin_layout Plain Layout
23864 \begin_inset Caption Standard
23866 \begin_layout Plain Layout
23867 \begin_inset CommandInset label
23869 name "tab:Table-with-dashed"
23873 Table with dashed lines
23881 \begin_layout Plain Layout
23883 \begin_inset Tabular
23884 <lyxtabular version="3" rows="5" columns="5">
23885 <features tabularvalignment="middle">
23886 <column alignment="center" valignment="top">
23887 <column alignment="center" valignment="top">
23888 <column alignment="center" valignment="top" special=":c">
23889 <column alignment="center" valignment="top">
23890 <column alignment="center" valignment="top">
23892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23895 \begin_layout Plain Layout
23901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23904 \begin_layout Plain Layout
23910 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23913 \begin_layout Plain Layout
23919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23922 \begin_layout Plain Layout
23928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23931 \begin_layout Plain Layout
23939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23942 \begin_layout Plain Layout
23948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23951 \begin_layout Plain Layout
23957 <cell alignment="center" valignment="top" topline="true" usebox="none">
23960 \begin_layout Plain Layout
23966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23969 \begin_layout Plain Layout
23975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23978 \begin_layout Plain Layout
23986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23989 \begin_layout Plain Layout
23993 \begin_layout Plain Layout
24007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24010 \begin_layout Plain Layout
24016 <cell alignment="center" valignment="top" usebox="none">
24019 \begin_layout Plain Layout
24025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24028 \begin_layout Plain Layout
24034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24037 \begin_layout Plain Layout
24045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24048 \begin_layout Plain Layout
24052 \begin_layout Plain Layout
24066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24069 \begin_layout Plain Layout
24075 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24078 \begin_layout Plain Layout
24084 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24087 \begin_layout Plain Layout
24093 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24096 \begin_layout Plain Layout
24104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24107 \begin_layout Plain Layout
24113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24116 \begin_layout Plain Layout
24122 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24125 \begin_layout Plain Layout
24131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24134 \begin_layout Plain Layout
24140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24143 \begin_layout Plain Layout
24162 \begin_layout Standard
24164 does not natively support dashed lines, so you have to use \SpecialChar TeX
24166 As a prerequisite the \SpecialChar LaTeX
24172 \begin_inset Index idx
24175 \begin_layout Plain Layout
24177 -packages ! arydshln
24182 must be loaded in the document preamble with the command
24185 \begin_layout Standard
24190 usepackage{arydshln}
24193 \begin_layout Standard
24194 To make a vertical line dashed, enter the colon
24195 \begin_inset Quotes eld
24199 \begin_inset Quotes erd
24202 together with the character for the horizontal alignment as \SpecialChar LaTeX
24204 the table cell dialog.
24207 \begin_layout Standard
24208 For a horizontal dashed line add the command
24211 \begin_layout Standard
24219 \begin_layout Standard
24220 in \SpecialChar TeX
24221 Code as first element of the first cell in the table row.
24224 \begin_layout Standard
24225 For dashed multicolumn lines use the command
24228 \begin_layout Standard
24233 cdashline{line number
24238 \begin_layout Standard
24239 in \SpecialChar TeX
24240 Code as the first element of the first cell in the table row.
24241 If you have for example a multicolumn spanning columns 2 to 4 and you want
24242 to have a dashed line above, add the command
24245 \begin_layout Standard
24253 \begin_layout Standard
24254 as the first element of the first cell in the row of the multicolumn.
24257 \begin_layout Standard
24258 \begin_inset VSpace bigskip
24264 \begin_layout Standard
24266 \begin_inset space ~
24270 \begin_inset CommandInset ref
24272 reference "tab:Table-with-dashed"
24277 \begin_inset Quotes eld
24285 \begin_inset Quotes erd
24288 as \SpecialChar LaTeX
24289 argument of the third column.
24290 The \SpecialChar TeX
24297 was inserted in the first cell of the third row and the \SpecialChar TeX
24299 \begin_inset Newline newline
24308 was inserted in the first cell of the fourth row.
24311 \begin_layout Standard
24312 \begin_inset VSpace bigskip
24318 \begin_layout Standard
24319 Tables with dashed lines can also be colored as shown by Table
24320 \begin_inset space ~
24324 \begin_inset CommandInset ref
24326 reference "tab:Colored-table-with"
24333 \begin_layout Standard
24337 \begin_layout Plain Layout
24343 arrayrulewidth}{1pt}
24349 \begin_inset Note Note
24352 \begin_layout Plain Layout
24353 thicker lines for better visualization of the line color
24361 \begin_layout Standard
24365 \begin_layout Plain Layout
24369 dashgapcolor{green}
24375 \begin_inset Note Note
24378 \begin_layout Plain Layout
24379 color gaps between dashes green
24387 \begin_layout Standard
24391 \begin_layout Plain Layout
24402 \begin_layout Plain Layout
24411 \begin_layout Plain Layout
24415 arrayrulecolor{red}
24419 arrayrulecolor{black}}
24425 \begin_inset Note Note
24428 \begin_layout Plain Layout
24429 color horizontal, dashed lines red
24437 \begin_layout Standard
24441 \begin_layout Plain Layout
24452 \begin_layout Plain Layout
24461 \begin_layout Plain Layout
24465 arrayrulecolor{yellow}
24469 arrayrulecolor{black}}
24475 \begin_inset Note Note
24478 \begin_layout Plain Layout
24479 color partial horizontal, dashed lines yellow
24487 \begin_layout Standard
24488 \begin_inset Float table
24494 \begin_layout Plain Layout
24495 \begin_inset Caption Standard
24497 \begin_layout Plain Layout
24498 \begin_inset CommandInset label
24500 name "tab:Colored-table-with"
24504 Colored table with dashed lines
24512 \begin_layout Plain Layout
24514 \begin_inset Tabular
24515 <lyxtabular version="3" rows="5" columns="5">
24516 <features tabularvalignment="middle">
24517 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24518 <column alignment="center" valignment="top" width="0pt">
24519 <column alignment="center" valignment="top" width="0pt" special=":c">
24520 <column alignment="center" valignment="top">
24521 <column alignment="center" valignment="top">
24523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24526 \begin_layout Plain Layout
24532 <cell alignment="center" valignment="top" topline="true" usebox="none">
24535 \begin_layout Plain Layout
24541 <cell alignment="center" valignment="top" topline="true" usebox="none">
24544 \begin_layout Plain Layout
24550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24553 \begin_layout Plain Layout
24559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24562 \begin_layout Plain Layout
24570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24573 \begin_layout Plain Layout
24579 <cell alignment="center" valignment="top" topline="true" usebox="none">
24582 \begin_layout Plain Layout
24588 <cell alignment="center" valignment="top" topline="true" usebox="none">
24591 \begin_layout Plain Layout
24597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24600 \begin_layout Plain Layout
24606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24609 \begin_layout Plain Layout
24617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24620 \begin_layout Plain Layout
24624 \begin_layout Plain Layout
24637 \begin_layout Plain Layout
24651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24654 \begin_layout Plain Layout
24660 <cell alignment="center" valignment="top" usebox="none">
24663 \begin_layout Plain Layout
24669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24672 \begin_layout Plain Layout
24678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24681 \begin_layout Plain Layout
24689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24692 \begin_layout Plain Layout
24696 \begin_layout Plain Layout
24710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24713 \begin_layout Plain Layout
24719 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24722 \begin_layout Plain Layout
24728 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24731 \begin_layout Plain Layout
24737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24740 \begin_layout Plain Layout
24748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24751 \begin_layout Plain Layout
24757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24760 \begin_layout Plain Layout
24766 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24769 \begin_layout Plain Layout
24775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24778 \begin_layout Plain Layout
24784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24787 \begin_layout Plain Layout
24791 \begin_layout Plain Layout
24818 \begin_layout Standard
24822 \begin_layout Plain Layout
24836 \begin_inset Note Note
24839 \begin_layout Plain Layout
24848 \begin_layout Standard
24852 \begin_layout Plain Layout
24866 \begin_inset Note Note
24869 \begin_layout Plain Layout
24878 \begin_layout Standard
24882 \begin_layout Plain Layout
24892 \begin_inset Note Note
24895 \begin_layout Plain Layout
24904 \begin_layout Standard
24908 \begin_layout Plain Layout
24914 arrayrulewidth}{0.4pt}
24920 \begin_inset Note Note
24923 \begin_layout Plain Layout
24932 \begin_layout Standard
24933 The coloring of lines, columns and lines works as decribed in section
24934 \begin_inset space ~
24938 \begin_inset CommandInset ref
24940 reference "sec:Colored-Tables"
24945 Coloring horizontal lines works analogically as described there as well,
24946 one only needs to replace in the commands
24970 ; so one uses the command
24973 \begin_layout Standard
24983 \begin_inset Newline newline
24991 \begin_inset Newline newline
24995 \begin_inset Phantom HPhantom
24998 \begin_layout Plain Layout
24999 \begin_inset space ~
25009 arrayrulecolor{red}
25013 arrayrulecolor{black}}
25016 \begin_layout Standard
25026 \begin_layout Standard
25036 \begin_inset Newline newline
25044 \begin_inset Newline newline
25048 \begin_inset Phantom HPhantom
25051 \begin_layout Plain Layout
25052 \begin_inset space ~
25062 arrayrulecolor{red}
25066 arrayrulecolor{black}}
25069 \begin_layout Standard
25070 To get back the black line color, one needs to insert the following commands
25071 as \SpecialChar TeX
25072 Code behind the table:
25075 \begin_layout Standard
25083 \begin_layout Standard
25095 \begin_layout Standard
25103 \begin_layout Standard
25115 \begin_layout Standard
25116 To color the gaps between the dashes the command
25119 \begin_layout Standard
25124 dashgapcolor{color}
25127 \begin_layout Standard
25128 can be used in front of a table as \SpecialChar TeX
25130 color is hereby the name of a defined color.
25134 \begin_layout Standard
25142 \begin_layout Standard
25143 unsets the changes made by
25152 \begin_layout Standard
25153 \begin_inset Note Greyedout
25156 \begin_layout Plain Layout
25162 : If there are multiple commands in a cell, the command of
25166 needs to be the first one in the cell.
25172 \begin_inset space ~
25176 \begin_inset CommandInset ref
25178 reference "tab:Colored-table-with"
25202 \begin_layout Standard
25203 \begin_inset Note Greyedout
25206 \begin_layout Plain Layout
25212 The \SpecialChar LaTeX
25217 must be loaded in the document preamble before the \SpecialChar LaTeX
25223 \begin_inset Index idx
25226 \begin_layout Plain Layout
25228 -packages ! colortbl
25241 \begin_layout Standard
25245 \begin_layout Plain Layout
25255 \begin_inset Note Note
25258 \begin_layout Plain Layout
25259 The following will be displayed when the \SpecialChar LaTeX
25272 \begin_layout Standard
25273 You need to install the package
25277 to see the content of this section in the output.
25280 \begin_layout Standard
25284 \begin_layout Plain Layout
25296 \begin_layout Standard
25297 For more information about dashed lines see the documentation of
25302 \begin_inset CommandInset citation
25312 \begin_layout Chapter
25314 \begin_inset CommandInset label
25321 \begin_inset Index idx
25324 \begin_layout Plain Layout
25333 \begin_layout Section
25335 \begin_inset CommandInset label
25337 name "sec:FloatIntroduction"
25342 \begin_inset Index idx
25345 \begin_layout Plain Layout
25346 Floats ! Introduction
25354 \begin_layout Standard
25355 A float is a block of text associated with some sort of label, which doesn't
25356 have a fixed location.
25358 \begin_inset Quotes eld
25362 \begin_inset Quotes erd
25365 forward or backward a page or two, to wherever it fits best.
25373 \begin_inset space ~
25378 are also floats because they can float to the next page when there are
25379 too many notes on the page.
25382 \begin_layout Standard
25383 Floats allow a high quality layout.
25384 Images and tables can be spread evenly among the pages to avoid white space
25385 and pages without text.
25386 As the floating often destroys the context between the text and the image/table
25387 , every float can be referenced in the text.
25388 Floats are therefore numbered.
25389 Referencing is described in section
25390 \begin_inset space ~
25394 \begin_inset CommandInset ref
25396 reference "sec:Referencing-Floats"
25403 \begin_layout Standard
25404 To insert a float, use the menu
25406 Insert\SpecialChar menuseparator
25412 arg "float-insert figure"
25418 arg "float-insert table"
25426 inset, a box with a label.
25427 The label will automatically be translated to the document language in
25429 After the label you can insert the caption text.
25430 The image or table is inserted above or below the caption in a separate
25431 paragraph within the float.
25432 More about the caption placement is contained in section
25433 \begin_inset space ~
25437 \begin_inset CommandInset ref
25439 reference "sec:Caption-Placement"
25444 To keep your \SpecialChar LyX
25445 document readable, you can open and close the float box by
25446 left-clicking on the box label.
25447 A closed float box looks like this:
25448 \begin_inset Graphics
25449 filename clipart/float.png
25451 scaleBeforeRotation
25455 – a gray button with a red label.
25458 \begin_layout Standard
25459 It is recommended that you insert floats as separate standard paragraphs
25460 to avoid possible \SpecialChar LaTeX
25461 -errors that can occur when the surrounding text is specially
25465 \begin_layout Standard
25466 Existing figures or tables can be put into a float by highlighting them
25467 and then pressing the corresponding toolbar button for a new float.
25470 \begin_layout Section
25474 \begin_layout Standard
25475 Besides figure and table floats that are described in sections
25476 \begin_inset space ~
25480 \begin_inset CommandInset ref
25482 reference "sec:Figure-Floats"
25487 \begin_inset CommandInset ref
25489 reference "sec:Table-Floats"
25493 respectively, \SpecialChar LyX
25494 offers the float types
25503 The latter are explained in sec.
25504 \begin_inset space \thinspace{}
25508 \begin_inset CommandInset ref
25510 reference "sec:Wrap-Floats"
25517 \begin_layout Subsection
25519 \begin_inset Index idx
25522 \begin_layout Plain Layout
25523 Floats ! Algorithms
25531 \begin_layout Standard
25532 \begin_inset Float algorithm
25538 \begin_layout Plain Layout
25539 \begin_inset Caption Standard
25541 \begin_layout Plain Layout
25542 \begin_inset CommandInset label
25544 name "alg:Example-Algorithm-float"
25548 Example Algorithm float
25556 \begin_layout LyX-Code
25558 \begin_inset Newline newline
25561 Sum:= Sum + A(I); /*comment*/
25562 \begin_inset Newline newline
25566 \begin_inset VSpace -4mm
25577 \begin_layout Standard
25578 This float type is inserted with the menu
25580 Insert\SpecialChar menuseparator
25581 Float\SpecialChar menuseparator
25585 It is used for program codes and descriptions of algorithms and can be
25586 seen as an alternative to program code listings that are explained in chapter
25587 \begin_inset space ~
25591 \begin_inset CommandInset ref
25593 reference "cha:Program-Code-Listings"
25598 A possible environment for algorithms is the
25603 , described in \SpecialChar LyX
25610 \begin_inset space ~
25614 \begin_inset CommandInset ref
25616 reference "alg:Example-Algorithm-float"
25620 is an example of an algorithm float where -4
25621 \begin_inset space \thinspace{}
25624 mm vertical space was added at the end of the float to have the bottom rule
25625 exactly below the last text line.
25628 \begin_layout Standard
25629 The float label is not automatically translated into the document language.
25630 If your document is not in English, you have to do this manually by adding
25631 the following line to the document preamble
25636 \begin_layout Standard
25641 floatname{algorithm}{your
25642 \begin_inset space ~
25648 \begin_layout Standard
25652 \begin_inset space ~
25658 \begin_inset Quotes eld
25666 \begin_inset Quotes erd
25672 \begin_layout Standard
25673 To insert the list of algorithms you can use the menu
25675 Insert\SpecialChar menuseparator
25677 \begin_inset space \thinspace{}
25681 \begin_inset space \thinspace{}
25684 TOC\SpecialChar menuseparator
25687 when your document has the same language as \SpecialChar LyX
25689 In other cases use this command in \SpecialChar TeX
25693 \begin_layout Standard
25698 listof{algorithm}{your
25699 \begin_inset space ~
25705 \begin_layout Standard
25709 \begin_inset space ~
25715 \begin_inset Quotes eld
25723 \begin_inset Quotes erd
25729 \begin_layout Standard
25730 Algorithm floats are not by default numbered in the scheme
25731 \begin_inset Quotes eld
25735 \begin_inset Quotes erd
25738 as is the case for table and figure floats in many document-classes.
25739 To number algorithm floats in the same scheme, add this command to your
25743 \begin_layout Standard
25748 numberwithin{algorithm}{chapter}
25751 \begin_layout Standard
25752 To be able to use the command
25761 \begin_inset space ~
25766 in the document settings the option
25769 \begin_inset space ~
25773 \begin_inset space ~
25777 \begin_inset space ~
25785 \begin_layout Section
25787 \begin_inset Index idx
25790 \begin_layout Plain Layout
25799 \begin_layout Standard
25800 Floats are usually numbered either independently from the sections the floats
25801 are in, or in the scheme
25802 \begin_inset Quotes eld
25806 \begin_inset Quotes erd
25810 \begin_inset Quotes eld
25814 \begin_inset Quotes erd
25818 This depends on the document class used.
25821 \begin_layout Standard
25822 To change section-independent numbering, you can use this command in the
25826 \begin_layout Standard
25838 \begin_layout Standard
25845 is the command that prints the table number.
25846 For figure floats, the command would be
25859 in the command above prints the table number as a small roman number.
25862 \begin_layout Standard
25863 To change the numbering scheme for example to
25864 \begin_inset Quotes eld
25868 \begin_inset Quotes erd
25871 , use this command in the preamble:
25874 \begin_layout Standard
25879 numberwithin{table}{subsection}
25882 \begin_layout Standard
25883 To be able to use the command
25892 \begin_inset space ~
25897 in the document settings the option
25900 \begin_inset space ~
25904 \begin_inset space ~
25908 \begin_inset space ~
25916 \begin_layout Standard
25917 Please also have a look at section
25918 \begin_inset space ~
25922 \begin_inset CommandInset ref
25924 reference "subsec:Footnote-Numbering"
25928 for the details and important notes about the numbering commands.
25931 \begin_layout Section
25933 \begin_inset CommandInset label
25935 name "sec:Referencing-Floats"
25940 \begin_inset Index idx
25943 \begin_layout Plain Layout
25944 Floats ! References
25950 \begin_inset Index idx
25953 \begin_layout Plain Layout
25954 References ! to Floats
25962 \begin_layout Standard
25963 To reference a float, insert a label into its caption using the menu
25965 Insert\SpecialChar menuseparator
25968 or the toolbar button
25975 A grey label box like this one:
25976 \begin_inset Graphics
25977 filename clipart/label.png
25978 scaleBeforeRotation
25982 will be inserted and the label window pops up asking for the label text.
25984 offers as text the first words of the caption with a prefix.
25985 The prefix depends on the float type, e.
25986 \begin_inset space \thinspace{}
25990 \begin_inset space \space{}
25993 for figure floats the prefix will be "
26000 \begin_layout Standard
26001 The label is used as anchor and name for the reference.
26002 You can refer to the label using the menu
26004 Insert\SpecialChar menuseparator
26007 or the toolbar button
26010 arg "dialog-show-new-inset ref"
26014 The cross-reference window appears showing all labels of the document.
26015 If you have multiple \SpecialChar LyX
26016 documents opened, choose the one you are working
26017 on from the drop-list at the top of the dialog.
26018 You can now sort the labels alphabetically and then choose one.
26019 A grey cross-reference box like this one:
26020 \begin_inset Graphics
26021 filename clipart/reference.png
26022 scaleBeforeRotation
26027 At the position of the cross-reference box the float number will appear
26031 \begin_layout Standard
26032 It is recommended that you use a protected space between the cross-reference
26033 name and its number to avoid line breaks between them.
26034 If a cross-reference refers to a non-existing label, you will see two question
26035 marks in the output instead of the reference.
26038 \begin_layout Standard
26039 You can change labels at any time by clicking on the label box.
26040 References to the changed label will automatically update their links to
26041 the new label text.
26044 \begin_layout Standard
26048 \begin_inset space ~
26052 \begin_inset space ~
26057 in the cross-reference window sets the cursor before the referred label.
26058 The button text changes then to Go
26059 \begin_inset space ~
26062 Back and you can use it to set the cursor back to the cross-reference.
26065 \begin_layout Subsection
26066 Cross-Reference Formats
26067 \begin_inset CommandInset label
26069 name "subsec:Cross-Reference-Formats"
26074 \begin_inset Index idx
26077 \begin_layout Plain Layout
26078 References ! Formats
26086 \begin_layout Standard
26087 There are six varieties of cross-references:
26090 \begin_layout Description
26091 <reference>: prints the float number, this is the default:
26092 \begin_inset CommandInset ref
26094 reference "fig:Two-distorted-images"
26101 \begin_layout Description
26102 (<reference>): prints the float number within two parentheses, this is the
26103 style normally used to reference formulas, especially when the reference
26105 \begin_inset Quotes eld
26109 \begin_inset Quotes erd
26113 \begin_inset CommandInset ref
26122 \begin_layout Description
26123 <page>: prints the page number: Page
26124 \begin_inset space ~
26128 \begin_inset CommandInset ref
26129 LatexCommand pageref
26130 reference "fig:Two-distorted-images"
26137 \begin_layout Description
26139 \begin_inset space ~
26143 \begin_inset space ~
26146 <page>: prints the text "on page" and the page number:
26147 \begin_inset CommandInset ref
26148 LatexCommand vpageref
26149 reference "fig:Two-distorted-images"
26156 \begin_layout Description
26158 \begin_inset space ~
26162 \begin_inset space ~
26166 \begin_inset space ~
26169 <page>: prints the float number, the text "on page", and the page number:
26171 \begin_inset CommandInset ref
26173 reference "fig:Two-distorted-images"
26180 \begin_layout Description
26182 \begin_inset space ~
26185 reference: prints a self-defined cross-reference format.
26186 \begin_inset Newline newline
26190 \begin_inset Note Greyedout
26193 \begin_layout Plain Layout
26198 This feature is only available when you have the \SpecialChar LaTeX
26208 \begin_inset Index idx
26211 \begin_layout Plain Layout
26213 -packages ! prettyref
26219 \begin_inset Index idx
26222 \begin_layout Plain Layout
26224 -packages ! refstyle
26235 \begin_inset Newline newline
26238 You can select which \SpecialChar LaTeX
26239 -package should be used for this feature by setting
26242 Use refstyle (not prettyref) for cross-references
26246 Document\SpecialChar menuseparator
26247 Settings\SpecialChar menuseparator
26251 The format is specified by adding the command
26263 (refstyle) to the preamble of the document.
26264 For example redefining all references to figures (which have the label
26266 \begin_inset Quotes eld
26274 \begin_inset Quotes erd
26277 ) can be done with this command
26278 \begin_inset Newline newline
26285 newref{fig}{refcmd={Image on page
26290 \begin_inset Newline newline
26293 For more information about the format, have a look at the package documentations
26295 \begin_inset CommandInset citation
26297 key "prettyref,refstyle"
26303 \begin_inset Newline newline
26314 are only available if you use the \SpecialChar LaTeX
26329 \begin_inset space \thinspace{}
26333 \begin_inset space \space{}
26337 \begin_inset Quotes eld
26341 \begin_inset Quotes erd
26348 outputs the name capitalized, e.
26349 \begin_inset space \thinspace{}
26353 \begin_inset space \space{}
26357 \begin_inset Quotes eld
26361 \begin_inset Quotes erd
26365 Both options can be combined to get e.
26366 \begin_inset space \thinspace{}
26370 \begin_inset space \space{}
26374 \begin_inset Quotes eld
26378 \begin_inset Quotes erd
26384 \begin_layout Description
26386 \begin_inset space ~
26389 reference: prints the caption of the reference:
26390 \begin_inset CommandInset ref
26391 LatexCommand nameref
26392 reference "fig:Two-distorted-images"
26399 \begin_layout Description
26401 \begin_inset space ~
26404 only: prints only the \SpecialChar LaTeX
26405 label for the reference:
26406 \begin_inset CommandInset ref
26407 LatexCommand labelonly
26408 reference "fig:Two-distorted-images"
26416 \begin_inset Newline newline
26419 This allows to use the label for commands in \SpecialChar TeX
26425 one can omit the prefix of the label name:
26426 \begin_inset CommandInset ref
26427 LatexCommand labelonly
26428 reference "fig:Two-distorted-images"
26438 \begin_layout Standard
26443 will not print the page number if the label is on the previous, the same,
26446 \begin_inset space \thinspace{}
26450 \begin_inset space \space{}
26454 \begin_inset Quotes eld
26462 \begin_inset Quotes erd
26468 <reference> on page <page>
26470 will not print anything about the page if the label is on the same page.
26473 \begin_layout Standard
26474 The number and current page of the part of the document referred to in the
26475 output is automatically calculated by \SpecialChar LaTeX
26477 The varieties are adjusted in the field
26481 of the cross-reference window that appears when you click on the cross-referenc
26485 \begin_layout Standard
26486 \begin_inset Note Greyedout
26489 \begin_layout Plain Layout
26494 It is recommended to use the \SpecialChar LaTeX
26500 \begin_inset Index idx
26503 \begin_layout Plain Layout
26505 -packages ! refstyle
26515 \begin_inset Index idx
26518 \begin_layout Plain Layout
26520 -packages ! prettyref
26525 does not know all of \SpecialChar LyX
26526 's possible label shortcuts
26530 \begin_layout Plain Layout
26531 \begin_inset Quotes eld
26535 \begin_inset Quotes erd
26538 is for example \SpecialChar LyX
26539 's shortcut for labels in figure captions.
26544 and is not internationalized.
26552 \begin_layout Subsection
26553 Automatic Reference Naming
26554 \begin_inset Index idx
26557 \begin_layout Plain Layout
26558 References ! Automatic Reference Naming
26566 \begin_layout Standard
26567 The \SpecialChar LaTeX
26573 \begin_inset Index idx
26576 \begin_layout Plain Layout
26578 -packages ! hyperref
26583 , that is enabled in the
26591 dialog, provides a very useful feature that cross-references automatically
26592 include the name of the referenced floats (or text parts like
26597 So you will save having to write e.
26598 \begin_inset space \thinspace{}
26602 \begin_inset space \space{}
26606 \begin_inset Quotes eld
26610 \begin_inset Quotes erd
26613 before every reference to a figure.
26614 To use this feature, enable
26618 and insert this line to the \SpecialChar LaTeX
26622 \begin_layout Standard
26638 \begin_layout Standard
26639 When you prefer other reference names than the default ones, for example
26640 you want instead of
26641 \begin_inset Quotes eld
26645 \begin_inset Quotes erd
26649 \begin_inset Quotes eld
26653 \begin_inset space \thinspace{}
26657 \begin_inset Quotes eld
26660 , you can redefine the name by inserting this in the preamble:
26663 \begin_layout Standard
26674 sectionautorefname}
26675 \begin_inset Newline newline
26679 \begin_inset Phantom HPhantom
26682 \begin_layout Plain Layout
26685 \begin_inset space ~
26698 \begin_layout Standard
26699 When you are using another document language than English, replace
26700 \begin_inset Newline newline
26715 , where *** is the name of the language used.
26718 \begin_layout Standard
26719 To get automatic names, but not for certain reference types, for example
26720 not for equations, use this preamble code:
26723 \begin_layout Standard
26734 equationautorefname}[1]{}}
26737 \begin_layout Standard
26738 More about this topic can be found in
26743 \begin_inset CommandInset citation
26753 \begin_layout Standard
26754 \begin_inset Note Greyedout
26757 \begin_layout Plain Layout
26762 Automatic reference naming cannot be used when you use cross-references
26766 \begin_inset space ~
26771 style, as described in section
26772 \begin_inset space ~
26776 \begin_inset CommandInset ref
26778 reference "subsec:Cross-Reference-Formats"
26790 \begin_layout Standard
26795 manual is an example where automatic reference naming is used.
26798 \begin_layout Subsection
26800 \begin_inset CommandInset label
26802 name "subsec:Reference-Position"
26807 \begin_inset Index idx
26810 \begin_layout Plain Layout
26811 References ! Reference Position
26819 \begin_layout Standard
26825 \begin_inset Index idx
26828 \begin_layout Plain Layout
26830 -packages ! hyperref
26843 dialog to link cross-references in the output, you will see that clicking
26844 on an image float reference jumps to the image label.
26845 The caption will be the first text part on the screen, so that you cannot
26846 see the image without scrolling.
26847 This is because the reference link anchor is placed at the position of
26849 With the use of the package
26854 \begin_inset Index idx
26857 \begin_layout Plain Layout
26864 , which is part of the \SpecialChar LaTeX
26870 \begin_inset Index idx
26873 \begin_layout Plain Layout
26875 -packages ! oberdiek
26880 , the link anchor is placed at the beginning of a float.
26881 To use this feature for figure floats, load
26885 in the document preamble with the line
26888 \begin_layout Standard
26893 usepackage[figure]{hypcap}
26896 \begin_layout Standard
26901 for all float types but this is not recommended for stability reasons.
26902 For more information, have a look at
26907 \begin_inset CommandInset citation
26917 \begin_layout Standard
26918 \begin_inset Note Greyedout
26921 \begin_layout Plain Layout
26930 has no effect on references to subfigures.
26938 \begin_layout Section
26940 \begin_inset CommandInset label
26942 name "sec:Float-Placement"
26947 \begin_inset Index idx
26950 \begin_layout Plain Layout
26959 \begin_layout Standard
26960 Right-clicking on a float-box and clicking on
26964 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26966 positioning the float.
26967 \begin_inset Newline newline
26973 \begin_inset space ~
26978 is only useful for two-column documents: If you select it, the float will
26979 span both columns on the page instead of being confined to just one.
26980 \begin_inset Newline newline
26986 \begin_inset space ~
26991 is used to rotate floats, see section
26992 \begin_inset CommandInset ref
26994 reference "sec:Rotated-Floats"
27001 \begin_layout Standard
27002 You can use one or more of the following options in the float dialog to
27003 set the placement for a particular float when you uncheck the option
27006 \begin_inset space ~
27010 \begin_inset space ~
27018 \begin_layout Description
27020 \begin_inset space ~
27024 \begin_inset space ~
27027 possible try to place the float on the position where it has been inserted
27030 \begin_layout Description
27032 \begin_inset space ~
27036 \begin_inset space ~
27039 page try to place the float at the top of the current page
27042 \begin_layout Description
27044 \begin_inset space ~
27048 \begin_inset space ~
27051 page try to place the float at the bottom of the current page
27054 \begin_layout Description
27056 \begin_inset space ~
27060 \begin_inset space ~
27063 floats try to place the float on its own page
27066 \begin_layout Standard
27067 The order of the above option is
27071 used by \SpecialChar LaTeX
27073 That means, if you use the default placement, \SpecialChar LaTeX
27077 \begin_inset space ~
27081 \begin_inset space ~
27089 \begin_inset space ~
27093 \begin_inset space ~
27098 , and then the others.
27099 If you do not use the default, \SpecialChar LaTeX
27100 will try only the checked options but in
27103 \begin_inset space ~
27106 placements is possible the procedure is internally repeated trying to put
27107 the float on the following page.
27110 \begin_layout Standard
27111 By default, each option has its own rules:
27114 \begin_layout Labeling
27115 \labelwidthstring 00.00.0000
27119 \begin_inset space ~
27123 \begin_inset space ~
27128 only floats occupying less than 70
27129 \begin_inset space \thinspace{}
27132 % of the page can be placed at the top of a page (
27141 \begin_layout Labeling
27142 \labelwidthstring 00.00.0000
27146 \begin_inset space ~
27150 \begin_inset space ~
27155 : only floats occupying less than 30
27156 \begin_inset space \thinspace{}
27159 % of the page can be placed at the bottom of a page.
27169 \begin_layout Labeling
27170 \labelwidthstring 00.00.0000
27174 \begin_inset space ~
27178 \begin_inset space ~
27183 : only if more than 50
27184 \begin_inset space \thinspace{}
27187 % of the page is occupied by floats, several floats can be set together
27198 \begin_layout Standard
27199 If you don't like these rules, you can ignore them by using the additional
27203 \begin_inset space ~
27208 \begin_inset space ~
27214 \begin_inset Newline newline
27217 You can also redefine the rules with \SpecialChar LaTeX
27218 -commands that are given in parentheses
27219 after the rules description above.
27220 To increase for example the often too small default of the bottom-rule
27222 \begin_inset space \thinspace{}
27225 % of the page, add this line to your document preamble:
27228 \begin_layout Standard
27235 bottomfraction}{0.5}
27238 \begin_layout Standard
27239 Sometimes you might need, under all circumstances, a float to be placed
27240 exactly at the position where it is inserted.
27241 For this case you can use the option
27244 \begin_inset space ~
27250 Use this option very rarely and only if the document is almost ready to
27251 be printed, because the float is then no longer able to
27252 \begin_inset Quotes eld
27256 \begin_inset Quotes erd
27259 when you change your document and this will often destroy the page layout.
27262 \begin_layout Standard
27263 There are no placement options for text wrap floats, because they are always
27264 surrounded by the text of a certain paragraph.
27265 \begin_inset VSpace bigskip
27271 \begin_layout Standard
27272 Sometimes you have the problem that a float is placed at the top of a page
27273 while its corresponding section starts at the middle of the page, so that
27274 the reader could think the float is part of the previous section.
27275 To avoid this the \SpecialChar LaTeX
27283 It suppresses a given float placement for the page where it is inserted
27284 and can therefore be used to avoid floats being set before a section starts.
27285 To get this, add these commands to your document preamble:
27288 \begin_layout Standard
27298 \begin_inset Newline newline
27312 \begin_layout Standard
27313 You can define the same for all section headings, like chapters and subsections.
27314 This definition is not recommended to be used for small text parts like
27315 subsubsections because \SpecialChar LaTeX
27316 may then have problems finding a suitable placement.
27319 \begin_layout Standard
27320 \begin_inset VSpace bigskip
27323 In some cases it is required to have all figures/tables at the end of the
27325 For this purpose the \SpecialChar LaTeX
27331 \begin_inset Index idx
27334 \begin_layout Plain Layout
27336 -packages ! endfloat
27342 It puts all figure and table floats at the end of the document into their
27344 At the original float position a text hint like
27345 \begin_inset Quotes eld
27351 \begin_inset space ~
27357 \begin_inset Quotes erd
27361 The endfloat-package is loaded in the preamble with the line
27364 \begin_layout Standard
27369 usepackage[options]{endfloat}
27372 \begin_layout Standard
27373 There are various package options to format the created figure/table sections.
27374 For more information we refer you to the
27379 \begin_inset CommandInset citation
27387 \begin_inset Newline newline
27391 \begin_inset Note Greyedout
27394 \begin_layout Plain Layout
27399 doesn't provide an automatic translation for the text hint, you have to
27400 do this manually, see section
27401 \begin_inset space ~
27405 \begin_inset CommandInset citation
27418 \begin_inset Newline newline
27422 \begin_inset Note Greyedout
27425 \begin_layout Plain Layout
27430 There is currently a bug in
27434 when the caption contains a German
27435 \begin_inset Quotes eld
27439 \begin_inset Quotes erd
27443 Use in this case the command
27444 \begin_inset Quotes eld
27454 \begin_inset Quotes erd
27457 in \SpecialChar TeX
27459 \begin_inset Quotes eld
27463 \begin_inset Quotes erd
27474 \begin_layout Standard
27475 \begin_inset VSpace bigskip
27478 For more details about float placements, have a look at \SpecialChar LaTeX
27480 \begin_inset CommandInset citation
27482 key "latexcompanion,latexguide,latexbook"
27490 \begin_layout Section
27492 \begin_inset CommandInset label
27494 name "sec:Rotated-Floats"
27499 \begin_inset Index idx
27502 \begin_layout Plain Layout
27511 \begin_layout Standard
27512 Especially for wide tables you might have floats rotated.
27513 To rotate a whole float including the caption, right-click on the float-box
27517 \begin_inset space ~
27525 \begin_layout Standard
27526 Rotated floats are always placed on a page of their own (or column of their
27527 own; in case you have a multi-column document).
27528 You can let them span several columns using the float settings option
27531 \begin_inset space ~
27537 Floats are rotated so that you can read them from the outside margin.
27538 To force a certain rotation direction for all pages, you can add either
27547 to the document class options.
27550 \begin_layout Standard
27551 Referencing rotated floats is the same as for normal floats, the caption
27552 format is also the same: Table
27553 \begin_inset space ~
27557 \begin_inset CommandInset ref
27559 reference "tab:Rotated-table"
27563 is an example of a rotated table float.
27566 \begin_layout Standard
27567 \begin_inset Note Greyedout
27570 \begin_layout Plain Layout
27575 Not all DVI-viewers are able to display rotated floats.
27583 \begin_layout Standard
27584 \begin_inset Float table
27589 \begin_layout Plain Layout
27590 \begin_inset Caption Standard
27592 \begin_layout Plain Layout
27593 \begin_inset CommandInset label
27595 name "tab:Rotated-table"
27607 \begin_layout Plain Layout
27609 \begin_inset Tabular
27610 <lyxtabular version="3" rows="1" columns="5">
27611 <features tabularvalignment="middle">
27612 <column alignment="center" valignment="top">
27613 <column alignment="center" valignment="top">
27614 <column alignment="center" valignment="top">
27615 <column alignment="center" valignment="top">
27616 <column alignment="center" valignment="top">
27618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27621 \begin_layout Plain Layout
27627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27630 \begin_layout Plain Layout
27636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27639 \begin_layout Plain Layout
27645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27648 \begin_layout Plain Layout
27654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27657 \begin_layout Plain Layout
27676 \begin_layout Section
27678 \begin_inset Index idx
27681 \begin_layout Plain Layout
27690 \begin_layout Standard
27691 Subfloats are for example used when a figure consists of several images.
27692 They are created by inserting a float into an existing float.
27693 The placement of the subfloats can be controlled in the same way as for
27694 paragraphs as shown in table
27695 \begin_inset space ~
27699 \begin_inset CommandInset ref
27701 reference "tab:Two-subtables-side"
27706 \begin_inset CommandInset ref
27708 reference "tab:Two-subtables-upon"
27715 \begin_layout Standard
27716 Referencing subfloats works as for normal floats: Table
27717 \begin_inset space ~
27721 \begin_inset CommandInset ref
27723 reference "tab:This-is-subtable-a"
27728 \begin_inset CommandInset ref
27730 reference "tab:This-is-subtable-b"
27734 are subtables of table
27735 \begin_inset space ~
27739 \begin_inset CommandInset ref
27741 reference "tab:Two-subtables-side"
27748 \begin_layout Standard
27749 \begin_inset Float table
27754 \begin_layout Plain Layout
27755 \begin_inset Caption Standard
27757 \begin_layout Plain Layout
27758 \begin_inset CommandInset label
27760 name "tab:Two-subtables-side"
27764 Two subtables placed side by side.
27772 \begin_layout Plain Layout
27774 \begin_inset space \hfill{}
27778 \begin_inset Float table
27783 \begin_layout Plain Layout
27784 \begin_inset Caption Standard
27786 \begin_layout Plain Layout
27787 \begin_inset CommandInset label
27789 name "tab:This-is-subtable-a"
27793 This is subtable a.
27801 \begin_layout Plain Layout
27803 \begin_inset Tabular
27804 <lyxtabular version="3" rows="1" columns="5">
27805 <features tabularvalignment="middle">
27806 <column alignment="center" valignment="top">
27807 <column alignment="center" valignment="top">
27808 <column alignment="center" valignment="top">
27809 <column alignment="center" valignment="top">
27810 <column alignment="center" valignment="top">
27812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27815 \begin_layout Plain Layout
27821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27824 \begin_layout Plain Layout
27830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27833 \begin_layout Plain Layout
27839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27842 \begin_layout Plain Layout
27848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27851 \begin_layout Plain Layout
27868 \begin_inset space \hfill{}
27872 \begin_inset Float table
27877 \begin_layout Plain Layout
27878 \begin_inset Caption Standard
27880 \begin_layout Plain Layout
27881 \begin_inset CommandInset label
27883 name "tab:This-is-subtable-b"
27887 This is subtable b.
27895 \begin_layout Plain Layout
27897 \begin_inset Tabular
27898 <lyxtabular version="3" rows="1" columns="5">
27899 <features tabularvalignment="middle">
27900 <column alignment="center" valignment="top">
27901 <column alignment="center" valignment="top">
27902 <column alignment="center" valignment="top">
27903 <column alignment="center" valignment="top">
27904 <column alignment="center" valignment="top">
27906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27909 \begin_layout Plain Layout
27915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27918 \begin_layout Plain Layout
27924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27927 \begin_layout Plain Layout
27933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27936 \begin_layout Plain Layout
27942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27945 \begin_layout Plain Layout
27962 \begin_inset space \hfill{}
27973 \begin_layout Standard
27974 \begin_inset Float table
27979 \begin_layout Plain Layout
27980 \begin_inset Caption Standard
27982 \begin_layout Plain Layout
27983 \begin_inset CommandInset label
27985 name "tab:Two-subtables-upon"
27989 Two subtables placed one above the other.
27990 (a) table with 4 cells, (b) table with 5 cells.
27998 \begin_layout Plain Layout
28000 \begin_inset Float table
28005 \begin_layout Plain Layout
28006 \begin_inset Caption Standard
28008 \begin_layout Plain Layout
28017 \begin_layout Plain Layout
28019 \begin_inset Tabular
28020 <lyxtabular version="3" rows="1" columns="4">
28021 <features tabularvalignment="middle">
28022 <column alignment="center" valignment="top">
28023 <column alignment="center" valignment="top">
28024 <column alignment="center" valignment="top">
28025 <column alignment="center" valignment="top">
28027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28030 \begin_layout Plain Layout
28036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28039 \begin_layout Plain Layout
28045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28048 \begin_layout Plain Layout
28054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28057 \begin_layout Plain Layout
28076 \begin_layout Plain Layout
28078 \begin_inset Float table
28083 \begin_layout Plain Layout
28084 \begin_inset Caption Standard
28086 \begin_layout Plain Layout
28095 \begin_layout Plain Layout
28097 \begin_inset Tabular
28098 <lyxtabular version="3" rows="1" columns="5">
28099 <features tabularvalignment="middle">
28100 <column alignment="center" valignment="top">
28101 <column alignment="center" valignment="top">
28102 <column alignment="center" valignment="top">
28103 <column alignment="center" valignment="top">
28104 <column alignment="center" valignment="top">
28106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28109 \begin_layout Plain Layout
28115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28118 \begin_layout Plain Layout
28124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28127 \begin_layout Plain Layout
28133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28136 \begin_layout Plain Layout
28142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28145 \begin_layout Plain Layout
28169 \begin_layout Section
28170 Floats Side by Side
28171 \begin_inset Index idx
28174 \begin_layout Plain Layout
28175 Floats ! Side by side
28183 \begin_layout Standard
28184 To place floats side by side, as in Figures
28185 \begin_inset space ~
28189 \begin_inset CommandInset ref
28191 reference "fig:Float-left"
28196 \begin_inset CommandInset ref
28198 reference "fig:Float-right"
28207 In it two minipage boxes are inserted.
28211 \begin_layout Plain Layout
28212 Minipages are explained in section
28213 \begin_inset space ~
28217 \begin_inset CommandInset ref
28219 reference "sec:Minipages"
28228 The width is set to 45
28229 \begin_inset space \thinspace{}
28233 \begin_inset space \thinspace{}
28236 column% and the box alignment to
28241 The minipage boxes contain the image and the caption in the same way as
28242 they are in a float.
28243 The only difference is that the image unit
28246 \begin_inset space ~
28250 \begin_inset space ~
28255 is now calculated according to the width of the minipage boxes.
28258 \begin_layout Standard
28259 \begin_inset Float figure
28264 \begin_layout Plain Layout
28265 \begin_inset Box Frameless
28275 height_special "totalheight"
28280 backgroundcolor "none"
28283 \begin_layout Plain Layout
28285 \begin_inset Graphics
28286 filename clipart/2D-intensity-plot.pdf
28288 scaleBeforeRotation
28295 \begin_layout Plain Layout
28296 \begin_inset Caption Standard
28298 \begin_layout Plain Layout
28299 \begin_inset CommandInset label
28301 name "fig:Float-left"
28305 Float on the left side.
28316 \begin_inset space \hfill{}
28320 \begin_inset Box Frameless
28330 height_special "totalheight"
28335 backgroundcolor "none"
28338 \begin_layout Plain Layout
28340 \begin_inset Graphics
28341 filename clipart/Star-structure.pdf
28343 scaleBeforeRotation
28350 \begin_layout Plain Layout
28351 \begin_inset Caption Standard
28353 \begin_layout Plain Layout
28354 \begin_inset CommandInset label
28356 name "fig:Float-right"
28360 Float on the right side.
28378 \begin_layout Standard
28379 An alternative and simpler solution is to use the module
28381 Variable-width Minipages
28384 \begin_inset space \thinspace{}
28388 \begin_inset CommandInset ref
28390 reference "sec:Minipages"
28395 Variable-width minipages adapt automatically to the width of the figures
28397 They do not require an explicit width to be given, and they improve the
28398 horizontal alignment of the figures.
28399 The LyX example file
28401 varwidth-floats-side-by-side
28403 gives examples of how to do this.
28406 \begin_layout Section
28408 \begin_inset Index idx
28411 \begin_layout Plain Layout
28412 Caption ! Formatting
28418 \begin_inset Index idx
28421 \begin_layout Plain Layout
28422 Floats ! Caption Formatting
28428 \begin_inset CommandInset label
28430 name "sec:Caption-Formatting"
28437 \begin_layout Standard
28442 environment is the default paragraph environment for
28447 On the \SpecialChar LyX
28448 screen captions appear as a label, e.
28449 \begin_inset space \thinspace{}
28453 \begin_inset space \space{}
28457 \begin_inset Quotes eld
28465 \begin_inset Quotes erd
28468 followed by the caption text.
28470 \begin_inset Quotes eld
28474 \begin_inset Quotes erd
28477 is the actual reference number.
28478 By default the label and the number are in the same font as the caption
28479 text and a colon follows the number to divide the label from the text.
28480 This caption format is suitable for many but not all documents.
28484 \begin_layout Standard
28485 To change the default caption format, load the \SpecialChar LaTeX
28491 \begin_inset Index idx
28494 \begin_layout Plain Layout
28496 -packages ! caption
28501 in the document preamble with this line:
28504 \begin_layout Standard
28509 usepackage[format definition]{caption}
28512 \begin_layout Standard
28513 To have for example the label and the number in sans-serif, bold font and
28514 the table captions always above the table as in this document, use the
28518 \begin_layout Standard
28523 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28526 \begin_layout Standard
28527 You can also define different caption formats for the different float types.
28528 In this case load the
28532 package without format specific options and define the different formats
28533 with the help of the command
28536 \begin_layout Standard
28541 captionsetup[float type]{format definition}
28544 \begin_layout Standard
28545 in the document preamble.
28546 For example the caption formats of Figure
28547 \begin_inset space ~
28551 \begin_inset CommandInset ref
28553 reference "fig:This-is-an-fig"
28558 \begin_inset space ~
28562 \begin_inset CommandInset ref
28564 reference "tab:This-is-an-tab"
28568 can be created using these commands in the document preamble:
28571 \begin_layout Standard
28576 usepackage[tableposition=top]{caption}
28579 \begin_inset Newline newline
28586 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28587 \begin_inset Newline newline
28591 \begin_inset Phantom HPhantom
28594 \begin_layout Plain Layout
28599 captionsetup[figure]{
28605 \begin_inset Newline newline
28610 captionsetup[table]{labelfont={bf,sf}}
28613 \begin_layout Standard
28614 \begin_inset Note Greyedout
28617 \begin_layout Plain Layout
28626 has no effect when a
28631 \begin_inset Index idx
28634 \begin_layout Plain Layout
28636 -packages ! KOMA-Script
28641 document class is used.
28642 In this case the document class option
28644 captions=tableheading
28654 \begin_layout Standard
28655 For more information about the package
28659 we refer to its documentation
28660 \begin_inset CommandInset citation
28670 \begin_layout Standard
28671 To change the label name from e.
28672 \begin_inset space \thinspace{}
28676 \begin_inset space \space{}
28680 \begin_inset Quotes eld
28684 \begin_inset Quotes erd
28688 \begin_inset Quotes eld
28692 \begin_inset Quotes erd
28695 use this preamble command:
28698 \begin_layout Standard
28705 fnum@figure}{Image~
28710 \begin_layout Standard
28717 inserts the figure number and
28720 \begin_inset Quotes eld
28726 \begin_inset Quotes erd
28729 creates a protected space.
28732 \begin_layout Standard
28733 \begin_inset VSpace bigskip
28741 \begin_inset Index idx
28744 \begin_layout Plain Layout
28746 -packages ! KOMA-Script
28753 article (KOMA-Script)
28761 letter (KOMA-Script)
28765 report (KOMA-Script)
28768 \begin_inset space \thinspace{}
28771 ), you can alternatively to the
28779 's built-in command
28786 For example, to have the caption label in bold, add this command to your
28790 \begin_layout Standard
28795 setkomafont{captionlabel}{
28800 \begin_layout Standard
28801 For more information about
28812 \begin_inset CommandInset citation
28822 \begin_layout Standard
28826 \begin_layout Plain Layout
28830 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28837 \begin_inset Note Note
28840 \begin_layout Plain Layout
28841 The caption format is changed only for this example.
28849 \begin_layout Standard
28850 \begin_inset Float figure
28856 \begin_layout Plain Layout
28858 \begin_inset Graphics
28859 filename clipart/2D-intensity-plot.pdf
28860 scaleBeforeRotation
28867 \begin_layout Plain Layout
28868 \begin_inset Caption Standard
28870 \begin_layout Plain Layout
28871 \begin_inset CommandInset label
28873 name "fig:This-is-an-fig"
28877 This is an example figure caption that is longer than one line to show the
28878 different caption format.
28879 Here a self-defined caption format is used.
28892 \begin_layout Standard
28896 \begin_layout Plain Layout
28900 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28909 \begin_layout Standard
28910 \begin_inset Float table
28916 \begin_layout Plain Layout
28917 \begin_inset Caption Standard
28919 \begin_layout Plain Layout
28920 \begin_inset CommandInset label
28922 name "tab:This-is-an-tab"
28926 This is an example table caption that is longer than one line to show the
28927 different caption format.
28928 Here the standard caption format for tables in this document is used.
28936 \begin_layout Plain Layout
28938 \begin_inset Tabular
28939 <lyxtabular version="3" rows="1" columns="5">
28940 <features tabularvalignment="middle">
28941 <column alignment="center" valignment="top">
28942 <column alignment="center" valignment="top">
28943 <column alignment="center" valignment="top">
28944 <column alignment="center" valignment="top">
28945 <column alignment="center" valignment="top">
28947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28950 \begin_layout Plain Layout
28956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28959 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28977 \begin_layout Plain Layout
28983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28986 \begin_layout Plain Layout
29005 \begin_layout Section
29007 \begin_inset Index idx
29010 \begin_layout Plain Layout
29011 Caption ! Placement
29017 \begin_inset Index idx
29020 \begin_layout Plain Layout
29021 Floats ! Caption Placement
29027 \begin_inset CommandInset label
29029 name "sec:Caption-Placement"
29036 \begin_layout Standard
29037 The common caption placement rule is:
29040 \begin_layout Description
29041 Figure: Caption is set below the figure
29044 \begin_layout Description
29045 Table: Caption is set above the table
29048 \begin_layout Standard
29049 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29052 That means if you are using the document classes
29068 there will be no space between the caption and the table.
29069 To insert the necessary space, load the \SpecialChar LaTeX
29075 \begin_inset Index idx
29078 \begin_layout Plain Layout
29080 -packages ! caption
29085 in your document preamble with the option
29089 \begin_layout Plain Layout
29091 \begin_inset space ~
29095 \begin_inset CommandInset ref
29097 reference "sec:Caption-Formatting"
29101 for more information of the package
29113 \begin_layout Standard
29119 \begin_layout Standard
29125 \begin_inset Index idx
29128 \begin_layout Plain Layout
29130 -packages ! KOMA-Script
29137 article (KOMA-Script)
29145 letter (KOMA-Script)
29149 report (KOMA-Script)
29152 \begin_inset space \thinspace{}
29155 ), you can alternatively to the
29159 package set the document class option
29163 \begin_layout Plain Layout
29164 That option is used in this document.
29172 \begin_layout Standard
29175 captions=tableheading
29178 \begin_layout Standard
29179 In documents with a KOMA-Script document class you can also right-click
29180 on a caption and mark in the context menu if this should be a caption above
29181 or below the table/figure.
29182 This way you can override the document-wide caption placement for certain
29185 \begin_inset space ~
29189 \begin_inset CommandInset ref
29191 reference "tab:A-caption-marked"
29195 is an example where the caption is marked a being below the table while
29197 For comparison the caption in Table
29198 \begin_inset space ~
29202 \begin_inset CommandInset ref
29204 reference "tab:A-standard-table"
29211 \begin_layout Standard
29212 \begin_inset Float table
29217 \begin_layout Plain Layout
29218 \begin_inset Caption Below
29220 \begin_layout Plain Layout
29221 \begin_inset CommandInset label
29223 name "tab:A-caption-marked"
29227 A caption marked as being below the table.
29235 \begin_layout Plain Layout
29237 \begin_inset Tabular
29238 <lyxtabular version="3" rows="3" columns="3">
29239 <features tabularvalignment="middle">
29240 <column alignment="center" valignment="top" width="0pt">
29241 <column alignment="center" valignment="top" width="0pt">
29242 <column alignment="center" valignment="top" width="0pt">
29244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29247 \begin_layout Plain Layout
29253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29256 \begin_layout Plain Layout
29262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29265 \begin_layout Plain Layout
29273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29276 \begin_layout Plain Layout
29282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29285 \begin_layout Plain Layout
29291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29294 \begin_layout Plain Layout
29302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29305 \begin_layout Plain Layout
29306 \begin_inset Formula $\int x^{2}dx$
29314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29317 \begin_layout Plain Layout
29318 \begin_inset Formula $\left[\begin{array}{cc}
29321 \end{array}\right]$
29329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29332 \begin_layout Plain Layout
29333 \begin_inset Formula $1+1=2$
29354 \begin_layout Standard
29355 \begin_inset Float table
29360 \begin_layout Plain Layout
29361 \begin_inset Caption Standard
29363 \begin_layout Plain Layout
29364 \begin_inset CommandInset label
29366 name "tab:A-standard-table"
29370 A standard table caption.
29378 \begin_layout Plain Layout
29380 \begin_inset Tabular
29381 <lyxtabular version="3" rows="3" columns="3">
29382 <features tabularvalignment="middle">
29383 <column alignment="center" valignment="top" width="0pt">
29384 <column alignment="center" valignment="top" width="0pt">
29385 <column alignment="center" valignment="top" width="0pt">
29387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29390 \begin_layout Plain Layout
29396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29399 \begin_layout Plain Layout
29405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29408 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29419 \begin_layout Plain Layout
29425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29428 \begin_layout Plain Layout
29434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29437 \begin_layout Plain Layout
29445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29448 \begin_layout Plain Layout
29449 \begin_inset Formula $\int x^{2}dx$
29457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29460 \begin_layout Plain Layout
29461 \begin_inset Formula $\left[\begin{array}{cc}
29464 \end{array}\right]$
29472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29475 \begin_layout Plain Layout
29476 \begin_inset Formula $1+1=2$
29497 \begin_layout Standard
29498 \begin_inset VSpace bigskip
29501 It is also possible to set the caption beside a figure or table.
29502 To get this the \SpecialChar LaTeX
29508 \begin_inset Index idx
29511 \begin_layout Plain Layout
29513 -packages ! sidecap
29518 has to be loaded in the document preamble with the line
29521 \begin_layout Standard
29526 usepackage[option]{sidecap}
29529 \begin_layout Standard
29530 If you set no option, the caption is placed on the side of the outer page
29531 margin – to the right on odd pages, to the left on even pages.
29532 You can change the placement to inner margin with the option
29537 To force the placement always to the right or left, use the option
29548 \begin_layout Standard
29552 \begin_layout Plain Layout
29562 \begin_inset Note Note
29565 \begin_layout Plain Layout
29566 The following section will only be displayed when the \SpecialChar LaTeX
29579 \begin_layout Standard
29580 To place in \SpecialChar LyX
29581 the caption of a float on the side, it is necessary to add
29582 these commands to the document preamble:
29585 \begin_layout Standard
29587 \begin_inset CommandInset line
29598 \begin_layout Standard
29605 TabBesBeg}[1][1.0]{%
29606 \begin_inset Newline newline
29610 \begin_inset Phantom HPhantom
29613 \begin_layout Plain Layout
29614 \begin_inset space ~
29629 \begin_inset Newline newline
29633 \begin_inset Phantom HPhantom
29636 \begin_layout Plain Layout
29639 \begin_inset space ~
29654 \begin_inset Newline newline
29658 \begin_inset Phantom HPhantom
29661 \begin_layout Plain Layout
29664 \begin_inset space ~
29674 renewenvironment{table}[1]{
29676 begin{SCtable}[#1]##1}{
29681 \begin_layout Standard
29689 \begin_inset Newline newline
29693 \begin_inset Phantom HPhantom
29696 \begin_layout Plain Layout
29697 \begin_inset space ~
29712 \begin_inset Newline newline
29716 \begin_inset Phantom HPhantom
29719 \begin_layout Plain Layout
29720 \begin_inset space ~
29737 \begin_layout Standard
29744 FigBesBeg}[1][1.0]{%
29745 \begin_inset Newline newline
29749 \begin_inset Phantom HPhantom
29752 \begin_layout Plain Layout
29753 \begin_inset space ~
29768 \begin_inset Newline newline
29772 \begin_inset Phantom HPhantom
29775 \begin_layout Plain Layout
29776 \begin_inset space ~
29791 \begin_inset Newline newline
29795 \begin_inset Phantom HPhantom
29798 \begin_layout Plain Layout
29799 \begin_inset space ~
29809 renewenvironment{figure}[1]{
29811 begin{SCfigure}[#1]##1}{
29816 \begin_layout Standard
29824 \begin_inset Newline newline
29828 \begin_inset Phantom HPhantom
29831 \begin_layout Plain Layout
29832 \begin_inset space ~
29847 \begin_inset Newline newline
29851 \begin_inset Phantom HPhantom
29854 \begin_layout Plain Layout
29855 \begin_inset space ~
29872 \begin_layout Standard
29874 \begin_inset CommandInset line
29885 \begin_layout Standard
29886 The commands allow you to redefine the floats so that the caption is set
29888 For figure floats use the command
29891 \begin_layout Standard
29899 \begin_layout Standard
29900 in \SpecialChar TeX
29901 Code before the float.
29902 And insert the command
29905 \begin_layout Standard
29913 \begin_layout Standard
29914 in \SpecialChar TeX
29915 Code at the point where you want to get back to the original float definitio
29919 \begin_layout Standard
29920 For table floats use the corresponding commands
29923 \begin_layout Standard
29937 \begin_layout Standard
29939 \begin_inset space ~
29943 \begin_inset CommandInset ref
29945 reference "fig:cap-beside-fig"
29950 \begin_inset space ~
29954 \begin_inset CommandInset ref
29956 reference "tab:cap-beside-tab"
29960 are examples where the caption is set beside.
29963 \begin_layout Standard
29964 You can see in the examples that the caption text appears at the top of
29965 the floats for table floats and at the bottom for figure floats.
29966 To change this, you can use the command
29969 \begin_layout Standard
29974 sidecaptionvpos{float type}{placement}
29977 \begin_layout Standard
29978 in the document preamble or in \SpecialChar TeX
29979 Code before the float.
29980 The float type is either
29988 , the placement can be
29989 \begin_inset Quotes eld
29997 \begin_inset Quotes erd
30001 \begin_inset Quotes eld
30009 \begin_inset Quotes erd
30013 \begin_inset Quotes eld
30021 \begin_inset Quotes erd
30025 To have for example the caption of figure floats vertically centered, use
30029 \begin_layout Standard
30034 sidecaptionvpos{figure}{c}
30037 \begin_layout Standard
30038 This was used for Figure
30039 \begin_inset space ~
30043 \begin_inset CommandInset ref
30045 reference "fig:cap-beside-fig-2"
30052 \begin_layout Standard
30053 \begin_inset VSpace medskip
30059 \begin_layout Standard
30060 The default caption width is the width of the image/table.
30061 For thin image/tables, like in Table
30062 \begin_inset space ~
30066 \begin_inset CommandInset ref
30068 reference "tab:cap-beside-tab"
30072 , this leads to captions that are too thin.
30073 You can increase the width by specifying a factor that will be multiplied
30074 with the image/table width to get the caption width.
30075 The caption width will automatically be recalculated in case it would protrude
30076 over the page or column margin due to the specified width.
30081 can either be given as optional argument for
30090 \begin_layout Standard
30098 \begin_layout Standard
30099 or in the definition of
30109 with another value.
30110 If you do the latter, your factor will be the default if
30116 is used without an argument.
30118 \begin_inset space ~
30122 \begin_inset CommandInset ref
30124 reference "tab:cap-beside-tab-wider"
30128 the factor 5 was used.
30131 \begin_layout Standard
30132 \begin_inset Note Greyedout
30135 \begin_layout Plain Layout
30140 For floats with captions set beside, you cannot use the float placement
30144 \begin_inset space ~
30149 because it is not supported by
30161 \begin_layout Standard
30162 \begin_inset VSpace medskip
30165 For more information about the package
30169 we refer to its documentation
30170 \begin_inset CommandInset citation
30180 \begin_layout Standard
30181 \begin_inset Note Greyedout
30184 \begin_layout Plain Layout
30189 The \SpecialChar LaTeX
30195 \begin_inset Index idx
30198 \begin_layout Plain Layout
30205 , described in section
30206 \begin_inset space ~
30210 \begin_inset CommandInset ref
30212 reference "subsec:Reference-Position"
30216 , has no effect on floats with the caption set beside.
30224 \begin_layout Standard
30228 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 \begin_inset Float figure
30246 \begin_layout Plain Layout
30247 \begin_inset Graphics
30248 filename clipart/3D-structure-distort.pdf
30250 scaleBeforeRotation
30257 \begin_layout Plain Layout
30258 \begin_inset Caption Standard
30260 \begin_layout Plain Layout
30261 \begin_inset CommandInset label
30263 name "fig:cap-beside-fig"
30267 This is a caption beside a figure.
30280 \begin_layout Standard
30284 \begin_layout Plain Layout
30296 \begin_layout Standard
30300 \begin_layout Plain Layout
30312 \begin_layout Standard
30313 \begin_inset Float table
30318 \begin_layout Plain Layout
30319 \begin_inset Caption Standard
30321 \begin_layout Plain Layout
30322 \begin_inset CommandInset label
30324 name "tab:cap-beside-tab"
30328 This is a caption beside a table.
30336 \begin_layout Plain Layout
30337 \begin_inset Tabular
30338 <lyxtabular version="3" rows="4" columns="5">
30339 <features tabularvalignment="middle">
30340 <column alignment="center" valignment="top">
30341 <column alignment="center" valignment="top">
30342 <column alignment="center" valignment="top">
30343 <column alignment="center" valignment="top">
30344 <column alignment="center" valignment="top">
30346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30349 \begin_layout Plain Layout
30355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30358 \begin_layout Plain Layout
30364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30367 \begin_layout Plain Layout
30373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30376 \begin_layout Plain Layout
30382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30385 \begin_layout Plain Layout
30393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30396 \begin_layout Plain Layout
30402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30405 \begin_layout Plain Layout
30411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30414 \begin_layout Plain Layout
30420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30423 \begin_layout Plain Layout
30429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30432 \begin_layout Plain Layout
30440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30443 \begin_layout Plain Layout
30449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30452 \begin_layout Plain Layout
30458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30461 \begin_layout Plain Layout
30467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30470 \begin_layout Plain Layout
30476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30479 \begin_layout Plain Layout
30487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30490 \begin_layout Plain Layout
30496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30499 \begin_layout Plain Layout
30505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30508 \begin_layout Plain Layout
30514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30517 \begin_layout Plain Layout
30523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30526 \begin_layout Plain Layout
30545 \begin_layout Standard
30549 \begin_layout Plain Layout
30561 \begin_layout Standard
30565 \begin_layout Plain Layout
30578 \begin_layout Plain Layout
30582 sidecaptionvpos{figure}{c}
30588 \begin_inset Float figure
30593 \begin_layout Plain Layout
30594 \begin_inset Graphics
30595 filename clipart/3D-structure-distort.pdf
30597 scaleBeforeRotation
30604 \begin_layout Plain Layout
30605 \begin_inset Caption Standard
30607 \begin_layout Plain Layout
30608 \begin_inset CommandInset label
30610 name "fig:cap-beside-fig-2"
30614 This is a vertically centered caption beside a figure.
30627 \begin_layout Standard
30631 \begin_layout Plain Layout
30643 \begin_layout Standard
30647 \begin_layout Plain Layout
30659 \begin_layout Standard
30660 \begin_inset Float table
30665 \begin_layout Plain Layout
30666 \begin_inset Caption Standard
30668 \begin_layout Plain Layout
30669 \begin_inset CommandInset label
30671 name "tab:cap-beside-tab-wider"
30675 This caption is wider than the one in Table
30676 \begin_inset space ~
30680 \begin_inset CommandInset ref
30682 reference "tab:cap-beside-tab"
30694 \begin_layout Plain Layout
30695 \begin_inset Tabular
30696 <lyxtabular version="3" rows="4" columns="5">
30697 <features tabularvalignment="middle">
30698 <column alignment="center" valignment="top">
30699 <column alignment="center" valignment="top">
30700 <column alignment="center" valignment="top">
30701 <column alignment="center" valignment="top">
30702 <column alignment="center" valignment="top">
30704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30707 \begin_layout Plain Layout
30713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30716 \begin_layout Plain Layout
30722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30725 \begin_layout Plain Layout
30731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30734 \begin_layout Plain Layout
30740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30743 \begin_layout Plain Layout
30751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30754 \begin_layout Plain Layout
30760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30763 \begin_layout Plain Layout
30769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30772 \begin_layout Plain Layout
30778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30781 \begin_layout Plain Layout
30787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30790 \begin_layout Plain Layout
30798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30801 \begin_layout Plain Layout
30807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30810 \begin_layout Plain Layout
30816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30819 \begin_layout Plain Layout
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30828 \begin_layout Plain Layout
30834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30837 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30848 \begin_layout Plain Layout
30854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30857 \begin_layout Plain Layout
30863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30866 \begin_layout Plain Layout
30872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30875 \begin_layout Plain Layout
30881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30884 \begin_layout Plain Layout
30903 \begin_layout Standard
30907 \begin_layout Plain Layout
30919 \begin_layout Standard
30923 \begin_layout Plain Layout
30933 \begin_inset Note Note
30936 \begin_layout Plain Layout
30937 The following will be displayed when the \SpecialChar LaTeX
30950 \begin_layout Standard
30951 You need to install the \SpecialChar LaTeX
30956 to see the following part of this section in the output.
30959 \begin_layout Standard
30963 \begin_layout Plain Layout
30975 \begin_layout Section
30977 \begin_inset Index idx
30980 \begin_layout Plain Layout
30981 Floats ! Float Lists
30989 \begin_layout Standard
30990 Similar to the table of contents where the sections of the document are
30991 listed, there are listings for all float types, like the figures of the
30993 You can insert them via the
30995 Insert\SpecialChar menuseparator
30997 \begin_inset space ~
31001 \begin_inset space ~
31009 \begin_layout Standard
31010 The list entries are the float captions or its short title, the float number,
31011 and the page number where they appear in the document.
31014 \begin_layout Standard
31015 You can find the list of figures and tables at the end of this document.
31018 \begin_layout Chapter
31022 \begin_layout Section
31025 \begin_inset Index idx
31028 \begin_layout Plain Layout
31029 Notes ! \SpecialChar LyX
31038 \begin_layout Standard
31039 Notes are inserted with the toolbar button
31047 Insert\SpecialChar menuseparator
31051 There are three types of notes:
31054 \begin_layout Description
31057 \begin_inset space ~
31060 Note This note type is for internal notes that won't appear in the output.
31061 Its note-box looks like this:
31062 \begin_inset Newline newline
31066 \begin_inset Newline newline
31070 \begin_inset Graphics
31071 filename clipart/LyXNoteImage.png
31073 scaleBeforeRotation
31078 \begin_inset Note Note
31081 \begin_layout Plain Layout
31082 This is text in a note box that doesn't appear in the output.
31090 \begin_layout Description
31091 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31093 when you export the document to \SpecialChar LaTeX
31096 File\SpecialChar menuseparator
31097 Export\SpecialChar menuseparator
31099 \begin_inset space ~
31102 (pdflatex) / (plain)
31105 Its note-box looks like this:
31106 \begin_inset Newline newline
31110 \begin_inset Newline newline
31114 \begin_inset Graphics
31115 filename clipart/CommentNoteImage.png
31117 scaleBeforeRotation
31122 \begin_inset Note Comment
31125 \begin_layout Plain Layout
31126 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31135 \begin_layout Description
31137 \begin_inset space ~
31140 Out This note will appear in the output as grey text.
31141 Its note-box looks like this:
31142 \begin_inset Newline newline
31146 \begin_inset Newline newline
31150 \begin_inset Graphics
31151 filename clipart/GreyedOutNoteImage.png
31153 scaleBeforeRotation
31158 \begin_inset Newline newline
31165 \begin_layout Plain Layout
31169 renewenvironment{lyxgreyedout}
31172 \begin_layout Plain Layout
31176 textcolor[gray]{0.8}
31186 \begin_inset Note Greyedout
31189 \begin_layout Plain Layout
31190 This is text of a comment that appears grey in the output.
31199 \begin_layout Plain Layout
31203 renewenvironment{lyxgreyedout}
31206 \begin_layout Plain Layout
31220 \begin_inset Note Note
31223 \begin_layout Plain Layout
31224 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31226 because greyed out notes are redefined in the preamble of this document,
31227 as described below, to have blue text.
31233 \begin_inset Newline newline
31237 \begin_inset Newline newline
31240 As you can see in the example, the first line of greyed out notes is a bit
31241 indented and greyed out notes can have footnotes.
31244 \begin_layout Standard
31245 \begin_inset VSpace bigskip
31248 When you use the toolbar button
31258 \begin_inset space ~
31264 You can switch between the three note types by right-clicking on the note-box.
31269 If you want to turn existing text into a note, mark it and click on the
31283 To change a note to text, press the backspace key when the cursor is in
31284 the first position of a note, or press the delete key when the cursor is
31285 in the very last position of the note, respectively.
31288 \begin_layout Standard
31289 \begin_inset VSpace bigskip
31292 You can change the text color of the greyed out notes in the menu
31294 Document\SpecialChar menuseparator
31295 Settings\SpecialChar menuseparator
31301 \begin_layout Section
31303 \begin_inset CommandInset label
31305 name "sec:Footnotes"
31310 \begin_inset Index idx
31313 \begin_layout Plain Layout
31320 \begin_inset Index idx
31323 \begin_layout Plain Layout
31332 \begin_layout Standard
31333 Footnotes can be inserted using the toolbar button
31336 arg "footnote-insert"
31341 Insert\SpecialChar menuseparator
31345 You will then see the following footnote-box:
31346 \begin_inset Graphics
31347 filename clipart/footnote.png
31349 scaleBeforeRotation
31357 where you can enter the footnote text.
31358 If you want to turn existing text into a footnote, mark it and click on
31384 key when the cursor is in the first position of a
31396 key when the cursor is in the very last position of the
31407 \begin_layout Standard
31408 Here is an example footnote:
31416 \begin_layout Plain Layout
31417 \begin_inset CommandInset label
31419 name "foot:This-is-an"
31423 This is an example footnote.
31436 \begin_layout Plain Layout
31440 newcounter{MyRepeatFoot}
31443 \begin_layout Plain Layout
31447 setcounter{MyRepeatFoot}{
31457 \begin_layout Standard
31458 The footnote will appear in the output as a superscript number at the text
31459 position where the footnote box is placed.
31460 The footnote text is placed at the bottom of the current page.
31461 The footnote number is calculated by \SpecialChar LaTeX
31462 ; the numbers are consecutive.
31463 Whether the footnote number is reset for every chapter depends on your
31467 \begin_layout Standard
31468 Footnotes can be referenced like floats: Insert a label into the footnote
31469 and cross-reference this label in the text as described in section
31470 \begin_inset space ~
31474 \begin_inset CommandInset ref
31476 reference "sec:Referencing-Floats"
31481 \begin_inset Newline newline
31484 This is a cross-reference of Footnote
31485 \begin_inset space ~
31489 \begin_inset CommandInset ref
31491 reference "foot:This-is-an"
31498 \begin_layout Standard
31499 \begin_inset VSpace defskip
31502 Footnotes in title environments are usually not numbered with symbols and
31503 they cannot contain several paragraphs.
31504 See for example the footnote in the titling of this document.
31507 \begin_layout Standard
31508 Footnotes in multi-page tables are described in section
31509 \begin_inset space ~
31513 \begin_inset CommandInset ref
31515 reference "subsec:Footnotes-in-Multi-page"
31522 \begin_layout Standard
31523 \begin_inset VSpace defskip
31529 \begin_layout Standard
31530 Footnotes in minipage boxes are printed, but inside the box and with a different
31531 numbering because a minipage box is like a page inside a page.
31532 (For more about minipages, see section
31533 \begin_inset space ~
31537 \begin_inset CommandInset ref
31539 reference "sec:Minipages"
31543 .) To get a footnote in the minipage that is output at the bottom of the
31544 page like normal footnotes use this method: Instead of the footnote the
31551 is inserted as \SpecialChar TeX
31553 The text of the footnote is entered as an argument of the \SpecialChar TeX
31561 after the minipage.
31562 \begin_inset Newline newline
31565 This was done for the following minipage with the command
31568 \begin_layout Standard
31575 Footnote outside the minipage.
31580 \begin_layout Standard
31581 \begin_inset Box Frameless
31591 height_special "totalheight"
31596 backgroundcolor "none"
31599 \begin_layout Plain Layout
31600 This an example text in a minipage.
31604 \begin_layout Plain Layout
31605 Footnote in the minipage.
31613 \begin_layout Plain Layout
31614 This an example text in a minipage.
31618 \begin_layout Plain Layout
31635 \begin_layout Standard
31639 \begin_layout Plain Layout
31648 Footnote outside the minipage.
31652 \begin_layout Plain Layout
31662 \begin_layout Standard
31663 \begin_inset VSpace defskip
31669 \begin_layout Standard
31670 To refer to the same footnote several times without printing the footnote
31671 text every time, use the command
31675 footnotemark[number]
31677 in \SpecialChar TeX
31679 \begin_inset Newline newline
31682 As you do not know the number of the repeating footnote while you are writing
31683 the text, you have to store its number.
31684 For the following footnote mark example, these commands were inserted in
31686 code after Footnote
31687 \begin_inset space ~
31691 \begin_inset CommandInset ref
31693 reference "foot:This-is-an"
31697 to store the footnote number:
31700 \begin_layout Standard
31705 newcounter{MyRepeatFoot}
31706 \begin_inset Newline newline
31711 setcounter{MyRepeatFoot}{
31716 \begin_layout Standard
31717 The footnote mark was then created with this command:
31720 \begin_layout Standard
31730 \begin_layout Standard
31731 Here is a repeated footnote:
31739 \begin_layout Plain Layout
31753 \begin_layout Standard
31754 If you want to repeat the previous footnote, you can omit the storage of
31755 the footnote number and just use this command instead:
31758 \begin_layout Standard
31768 \begin_layout Standard
31769 Here is another repeated footnote:
31777 \begin_layout Plain Layout
31791 \begin_layout Subsection
31793 \begin_inset CommandInset label
31795 name "subsec:Footnote-Numbering"
31800 \begin_inset Index idx
31803 \begin_layout Plain Layout
31804 Footnotes ! Numbering
31812 \begin_layout Standard
31813 To reset the footnote number back to 1 after each section
31815 , add this command to your document preamble:
31818 \begin_layout Standard
31823 @addtoreset{footnote}{section}
31826 \begin_layout Standard
31827 \begin_inset VSpace bigskip
31830 The following preamble command changes the footnote numbering style to small
31834 \begin_layout Standard
31846 \begin_layout Standard
31850 \begin_layout Plain Layout
31863 This is a footnote with roman numbering:
31867 \begin_layout Plain Layout
31868 This is an example footnote with roman numbering.
31876 \begin_layout Standard
31877 To change the numbering style to capital roman numerals replace in the command
31892 \begin_inset Quotes eld
31896 \begin_inset Quotes erd
31899 footnotes with capital or small Latin letters use
31913 \begin_inset Quotes eld
31917 \begin_inset Quotes erd
31920 footnotes with symbols use
31929 \begin_layout Standard
31930 \begin_inset Note Greyedout
31933 \begin_layout Plain Layout
31938 You can only number 26 footnotes with Latin letters, because this numbering
31939 is limited to single letters.
31945 \begin_inset Newline newline
31949 \begin_inset Note Greyedout
31952 \begin_layout Plain Layout
31957 You can only number 9 footnotes with symbols.
31965 \begin_layout Standard
31966 To return to the default numbering style after you have changed to another
31979 in the command above.
31983 \begin_layout Plain Layout
31999 \begin_layout Standard
32000 \begin_inset VSpace bigskip
32006 \begin_layout Standard
32007 If you want to have footnotes numbered in the scheme
32008 \begin_inset Quotes eld
32012 \begin_inset Quotes erd
32015 , add the following command to your document preamble:
32018 \begin_layout Standard
32023 numberwithin{footnote}{chapter}
32026 \begin_layout Standard
32027 To be able to use the command
32036 \begin_inset space ~
32041 in the document settings the option
32044 \begin_inset space ~
32048 \begin_inset space ~
32052 \begin_inset space ~
32060 \begin_layout Standard
32064 \begin_layout Plain Layout
32068 numberwithin{footnote}{chapter}
32073 This is another example footnote:
32079 \begin_layout Plain Layout
32080 This is a footnote numbered in the scheme
32081 \begin_inset Quotes eld
32085 \begin_inset Quotes erd
32099 \begin_layout Plain Layout
32115 \begin_layout Standard
32116 \begin_inset Note Greyedout
32119 \begin_layout Plain Layout
32130 always prints out the footnote number as arabic number; previous redefinitions
32131 to get non-arabic numbers are overwritten.
32139 \begin_layout Standard
32140 So to get for example the scheme
32141 \begin_inset Quotes eld
32147 \begin_inset Quotes erd
32150 , use this command instead of
32159 \begin_layout Standard
32173 \begin_layout Subsection
32175 \begin_inset Index idx
32178 \begin_layout Plain Layout
32179 Footnotes ! Placement
32187 \begin_layout Standard
32188 If you have several footnotes in one page, they appear without vertical
32189 space between them at the bottom of the page.
32190 To make them more readable you can e.
32191 \begin_inset space \thinspace{}
32195 \begin_inset space \space{}
32199 \begin_inset space \thinspace{}
32202 mm space with the following preamble command:
32205 \begin_layout Standard
32215 \begin_inset Newline newline
32229 \begin_layout Standard
32230 \begin_inset VSpace bigskip
32233 In a two-column document the footnotes appear at the bottom of every column,
32235 \begin_inset space ~
32239 \begin_inset CommandInset ref
32241 reference "fig:Standard-footnote-placement"
32246 If the footnotes should only appear at the bottom of the right column,
32248 \begin_inset space ~
32252 \begin_inset CommandInset ref
32254 reference "fig:Footnote-placement-in"
32258 , use the \SpecialChar LaTeX
32264 \begin_inset Index idx
32267 \begin_layout Plain Layout
32269 -packages ! ftnright
32274 with this command in the document preamble:
32277 \begin_layout Standard
32282 usepackage{ftnright}
32285 \begin_layout Standard
32286 \begin_inset Float figure
32292 \begin_layout Plain Layout
32295 \begin_inset Box Boxed
32305 height_special "totalheight"
32310 backgroundcolor "none"
32313 \begin_layout Plain Layout
32314 \begin_inset Graphics
32315 filename clipart/without_fntright.pdf
32317 scaleBeforeRotation
32329 \begin_layout Plain Layout
32330 \begin_inset Caption Standard
32332 \begin_layout Plain Layout
32333 \begin_inset CommandInset label
32335 name "fig:Standard-footnote-placement"
32339 Standard footnote placement in two-column documents.
32352 \begin_layout Standard
32353 \begin_inset Float figure
32359 \begin_layout Plain Layout
32362 \begin_inset Box Boxed
32372 height_special "totalheight"
32377 backgroundcolor "none"
32380 \begin_layout Plain Layout
32381 \begin_inset Graphics
32382 filename clipart/with_fntright.pdf
32384 scaleBeforeRotation
32396 \begin_layout Plain Layout
32397 \begin_inset Caption Standard
32399 \begin_layout Plain Layout
32400 \begin_inset CommandInset label
32402 name "fig:Footnote-placement-in"
32406 Footnote placement in two-column documents when the \SpecialChar LaTeX
32424 \begin_layout Standard
32425 \begin_inset VSpace bigskip
32428 In some scientific literature it is usual to collect the footnotes and print
32429 them in a separate paragraph at the end of a section, as in Figure
32430 \begin_inset space ~
32434 \begin_inset CommandInset ref
32436 reference "fig:Endnotes"
32441 They are then called
32442 \begin_inset Quotes eld
32446 \begin_inset Quotes erd
32450 \begin_inset Index idx
32453 \begin_layout Plain Layout
32459 To use endnotes instead of footnotes in your document, load in the menu
32462 Document\SpecialChar menuseparator
32463 Settings\SpecialChar menuseparator
32469 \begin_inset space ~
32473 \begin_inset space ~
32479 To insert the collected footnotes, insert the command
32482 \begin_layout Standard
32490 \begin_layout Standard
32491 in \SpecialChar TeX
32492 Code at the end of a section or chapter.
32495 \begin_layout Standard
32496 \begin_inset Float figure
32501 \begin_layout Plain Layout
32504 \begin_inset Box Boxed
32514 height_special "totalheight"
32519 backgroundcolor "none"
32522 \begin_layout Plain Layout
32523 \begin_inset Graphics
32524 filename clipart/endnotes.pdf
32526 scaleBeforeRotation
32538 \begin_layout Plain Layout
32539 \begin_inset Caption Standard
32541 \begin_layout Plain Layout
32542 \begin_inset CommandInset label
32544 name "fig:Endnotes"
32548 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32562 \begin_layout Standard
32563 \begin_inset VSpace medskip
32566 The paragraph heading for the endnotes isn't automatically translated into
32567 the document language, this must be done manually.
32568 The following preamble command translates the default English
32569 \begin_inset Quotes eld
32573 \begin_inset Quotes erd
32577 \begin_inset Quotes eld
32581 \begin_inset Quotes erd
32587 \begin_layout Standard
32594 notesname}{Anmerkungen}
32597 \begin_layout Standard
32598 \begin_inset VSpace medskip
32601 The numbering of endnotes can be changed like the footnote numbering as
32602 described in section
32603 \begin_inset space ~
32607 \begin_inset CommandInset ref
32609 reference "subsec:Footnote-Numbering"
32613 ; just replace the command
32626 To reset the endnote number use the command
32632 as described in section
32633 \begin_inset space ~
32637 \begin_inset CommandInset ref
32639 reference "subsec:Footnote-Numbering"
32643 and replace the command parameter
32654 \begin_layout Standard
32655 For endnotes there is the command
32659 endnotemark[number]
32661 similar to the command
32667 , that is described in section
32668 \begin_inset space ~
32672 \begin_inset CommandInset ref
32674 reference "sec:Footnotes"
32681 \begin_layout Standard
32682 \begin_inset VSpace bigskip
32685 Footnotes can also be placed in the page margin and the footnote text alignment
32686 can be changed, see the \SpecialChar LaTeX
32692 \begin_inset Index idx
32695 \begin_layout Plain Layout
32697 -packages ! footmisc
32703 \begin_inset CommandInset citation
32710 for more information about this.
32713 \begin_layout Standard
32714 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32716 \begin_inset CommandInset citation
32718 key "latexcompanion,latexguide,latexbook"
32729 \begin_inset Index idx
32732 \begin_layout Plain Layout
32734 -packages ! KOMA-Script
32739 document class, you can adjust all footnote settings using class-specific
32741 \begin_inset CommandInset citation
32751 \begin_layout Section
32753 \begin_inset Index idx
32756 \begin_layout Plain Layout
32757 Notes ! Margin Notes
32765 \begin_layout Standard
32766 Margin notes look and behave in \SpecialChar LyX
32768 They are inserted via the menu
32770 Insert\SpecialChar menuseparator
32772 \begin_inset space ~
32777 or the toolbar button
32780 arg "marginalnote-insert"
32794 \begin_inset Quotes eld
32798 \begin_inset Quotes erd
32801 appears where you can enter the text of the margin note.
32804 \begin_layout Standard
32805 At the side is an example margin note.
32810 \begin_inset Marginal
32813 \begin_layout Plain Layout
32814 This is a margin note.
32822 \begin_layout Standard
32823 Margin notes appear at the right side in single-sided documents.
32824 In double-sided documents they appear in the outer margin – left on even
32825 pages, right on odd pages.
32826 The text of margin notes is aligned opposite to the outer margin – right-aligne
32827 d when the note appears in the left margin.
32828 The first line of the margin note is placed at the position of the text
32829 line where it is inserted in the document.
32832 \begin_layout Standard
32833 \begin_inset VSpace bigskip
32836 To place the margin note in the inner margin, add the command
32839 \begin_layout Standard
32847 \begin_layout Standard
32848 in \SpecialChar TeX
32849 Code before a margin note.
32850 The new placement is valid for all subsequent margin notes.
32855 \begin_layout Plain Layout
32865 \begin_inset Marginal
32868 \begin_layout Plain Layout
32869 This is a margin note in the inner margin.
32877 \begin_inset Newline newline
32883 \begin_inset Note Greyedout
32886 \begin_layout Plain Layout
32891 There is often not enough space in the inner margin so that the notes are
32892 not correctly displayed in the output.
32900 \begin_layout Standard
32901 To return to the default placement insert the command
32904 \begin_layout Standard
32912 \begin_layout Standard
32913 in \SpecialChar TeX
32918 \begin_layout Plain Layout
32928 \begin_inset Note Greyedout
32931 \begin_layout Plain Layout
32936 The command is ignored when it is within a paragraph where also the command
32951 \begin_layout Standard
32952 \begin_inset VSpace bigskip
32959 \begin_inset Marginal
32962 \begin_layout Plain Layout
32963 AVeryLongMarginParWord that isn't hyphenated.
32971 Similar to the case described in section
32972 \begin_inset space ~
32976 \begin_inset CommandInset ref
32978 reference "subsec:Multiple-Lines-in"
32982 , long words cannot be hyphenated when they are the first word in a margin
32984 To avoid this, insert 0
32985 \begin_inset space \thinspace{}
32988 pt horizontal space before the word
32993 \begin_inset Marginal
32996 \begin_layout Plain Layout
32997 \begin_inset space \hspace*{}
33001 AVeryLongMarginParWord that is hyphenated.
33009 \begin_layout Standard
33010 \begin_inset VSpace bigskip
33016 \begin_layout Standard
33017 \begin_inset Note Greyedout
33020 \begin_layout Plain Layout
33025 Margin notes can normally not be used inside tables, floats, and footnotes.
33033 \begin_layout Standard
33034 \begin_inset VSpace bigskip
33040 \begin_layout Standard
33044 \begin_layout Plain Layout
33054 \begin_inset Note Note
33057 \begin_layout Plain Layout
33058 The following section will only be displayed when the \SpecialChar LaTeX
33071 \begin_layout Standard
33072 This restriction can be evaded by using the \SpecialChar LaTeX
33078 \begin_inset Index idx
33081 \begin_layout Plain Layout
33083 -packages ! marginnote
33089 By adding these two lines to your document preamble, the command used by
33091 for margin notes is redefined to use the command provided by the
33098 \begin_layout Standard
33103 usepackage{marginnote}
33104 \begin_inset Newline newline
33116 \begin_layout Standard
33117 This is also used in this document because
33121 has another useful feature: You can set a vertical offset for the note.
33122 This is often needed when too many margin notes are too close together
33123 or for a better page layout.
33124 The offset is set in \SpecialChar LyX
33125 as \SpecialChar TeX
33126 Code directly after the margin note in the scheme
33129 \begin_layout Standard
33135 \begin_layout Standard
33136 where the offset is a length with one of the units listed in Table
33137 \begin_inset space ~
33141 \begin_inset CommandInset ref
33143 reference "tab:Units"
33148 A negative value shifts the note up, a positive value shifts it down.
33152 For example the margin note beside this text line is shifted up 1.5
33153 \begin_inset space \thinspace{}
33156 cm with the \SpecialChar TeX
33158 \begin_inset Quotes eld
33168 \begin_inset Quotes erd
33172 \begin_inset Marginal
33175 \begin_layout Plain Layout
33176 This margin note is shifted up 1.5
33177 \begin_inset space \thinspace{}
33180 cm from its original position.
33192 \begin_layout Plain Layout
33202 \begin_layout Standard
33203 \begin_inset VSpace medskip
33210 you can also change the alignment of the text in the margin note.
33211 For example the commands
33214 \begin_layout Standard
33221 raggedleftmarginnote}{
33224 \begin_inset Newline newline
33231 raggedrightmarginnote}{
33236 \begin_layout Standard
33237 set the alignment to centered.
33242 raggedleftmarginnote
33244 denotes margin notes that appear at the left side.
33251 \begin_layout Plain Layout
33257 raggedleftmarginnote}{
33262 \begin_layout Plain Layout
33268 raggedrightmarginnote}{
33276 \begin_inset Marginal
33279 \begin_layout Plain Layout
33280 The text of this margin note is centered.
33291 \begin_layout Standard
33298 raggedleftmarginnote}{
33301 \begin_inset Newline newline
33308 raggedrightmarginnote}{
33317 \begin_layout Plain Layout
33323 raggedleftmarginnote}{
33328 \begin_layout Plain Layout
33334 raggedrightmarginnote}{
33344 \begin_layout Standard
33345 \begin_inset VSpace medskip
33348 For the other features of
33352 refer to its documentation
33353 \begin_inset CommandInset citation
33363 \begin_layout Standard
33364 \begin_inset VSpace bigskip
33367 You can adjust the layout of margin notes by changing its definition.
33368 To create for example a header for all margin notes with the underlined,
33369 sans-serif, and bold header text
33370 \begin_inset Quotes eld
33382 \begin_inset Quotes erd
33385 , add this to your document preamble:
33388 \begin_layout Standard
33398 \begin_inset Newline newline
33408 \begin_inset Newline newline
33412 \begin_inset Phantom HPhantom
33415 \begin_layout Plain Layout
33418 \begin_inset space ~
33434 underbar{Attention!}}}%
33435 \begin_inset Newline newline
33439 \begin_inset Phantom HPhantom
33442 \begin_layout Plain Layout
33445 \begin_inset space ~
33462 \begin_layout Standard
33469 \begin_layout Plain Layout
33480 \begin_layout Plain Layout
33491 \begin_layout Plain Layout
33499 underbar{Attention!}}}%
33502 \begin_layout Plain Layout
33516 \begin_inset Marginal
33519 \begin_layout Plain Layout
33520 This is a margin note with a defined heading.
33532 \begin_layout Plain Layout
33546 \begin_layout Plain Layout
33563 \begin_inset Note Note
33566 \begin_layout Plain Layout
33567 The margin note format is changed only for this example.
33575 \begin_layout Standard
33579 \begin_layout Plain Layout
33589 \begin_inset Note Note
33592 \begin_layout Plain Layout
33593 The following will be displayed when the \SpecialChar LaTeX
33606 \begin_layout Standard
33607 You need to install the \SpecialChar LaTeX
33612 to see the following part of this section in the output.
33615 \begin_layout Standard
33619 \begin_layout Plain Layout
33631 \begin_layout Chapter
33635 \begin_layout Section
33637 \begin_inset Index idx
33640 \begin_layout Plain Layout
33641 Boxes ! Introduction
33649 \begin_layout Standard
33650 Boxes are used to format a block of text.
33651 Boxes can be used to write documents with multiple languages, see section
33652 \begin_inset space ~
33656 \begin_inset CommandInset ref
33658 reference "sec:Minipages"
33662 , to frame texts, see section
33663 \begin_inset space ~
33667 \begin_inset CommandInset ref
33669 reference "sec:Decoration"
33673 , to prevent words from being hyphenated, see section
33674 \begin_inset space ~
33678 \begin_inset CommandInset ref
33680 reference "sec:Prevent-Hyphenation"
33684 , to align text, see section
33685 \begin_inset space ~
33689 \begin_inset CommandInset ref
33691 reference "subsec:Vertical-Alignment"
33695 , or to set the background color of texts, see section
33696 \begin_inset space ~
33700 \begin_inset CommandInset ref
33702 reference "sec:Colored-Boxes"
33709 \begin_layout Standard
33710 Boxes can be inserted with the menu
33712 Insert\SpecialChar menuseparator
33715 or the toolbar button
33718 arg "box-insert Frameless"
33722 A grey box with the label
33727 \begin_inset Graphics
33728 filename clipart/BoxInsetDefault.png
33730 scaleBeforeRotation
33735 The box type can be specified by right-clicking on the box and selecting
33741 The box dialog offers the
33744 \begin_inset space ~
33766 is the default for new boxes and is explained in section
33767 \begin_inset space ~
33771 \begin_inset CommandInset ref
33773 reference "sec:Minipages"
33781 is described in section
33782 \begin_inset space ~
33786 \begin_inset CommandInset ref
33788 reference "sec:Parboxes"
33797 \begin_inset CommandInset ref
33799 reference "sec:Prevent-Hyphenation"
33806 \begin_layout Standard
33807 Boxes are not numbered and can therefore not be referenced like floats or
33811 \begin_layout Standard
33812 \begin_inset Note Greyedout
33815 \begin_layout Plain Layout
33820 Boxes must not be the item in an
33836 \begin_layout Standard
33837 \begin_inset Note Greyedout
33840 \begin_layout Plain Layout
33845 For an unknown reason you can only set the
33848 \begin_inset space ~
33857 when you use a framed box.
33861 \begin_inset space ~
33866 type and without frames are explained in section
33867 \begin_inset space ~
33871 \begin_inset CommandInset ref
33873 reference "sec:Prevent-Hyphenation"
33885 \begin_layout Section
33887 \begin_inset CommandInset label
33889 name "sec:Box-Dialog"
33894 \begin_inset Index idx
33897 \begin_layout Plain Layout
33906 \begin_layout Subsection
33908 \begin_inset Index idx
33911 \begin_layout Plain Layout
33920 \begin_layout Standard
33921 In the box dialog you can adjust the box geometry in the fields
33930 The available units for the geometry are explained in Table
33931 \begin_inset space ~
33935 \begin_inset CommandInset ref
33937 reference "tab:Units"
33946 offers the following additional sizes:
33949 \begin_layout Description
33950 Depth This is the plain text
33951 \begin_inset Quotes eld
33955 \begin_inset Quotes erd
33959 It ignores the total depth when there are multiple text lines in the box:
33960 \begin_inset Newline newline
33964 \begin_inset Newline newline
33968 \begin_inset Newline newline
33972 \begin_inset Box Boxed
33982 height_special "depth"
33987 backgroundcolor "none"
33990 \begin_layout Plain Layout
33992 Box height set to 1
33993 \begin_inset space \thinspace{}
34002 \begin_inset Newline newline
34006 \begin_inset Newline newline
34012 \begin_layout Description
34013 Height This is the height of the text that is inside the box.
34015 \begin_inset space \thinspace{}
34019 \begin_inset space \space{}
34022 2 for this size will set the box height to 2
34023 \begin_inset space ~
34026 times the text height:
34027 \begin_inset Box Boxed
34037 height_special "height"
34042 backgroundcolor "none"
34045 \begin_layout Plain Layout
34047 Box height set to 2
34048 \begin_inset space \thinspace{}
34059 \begin_layout Description
34061 \begin_inset space ~
34064 Height This is the Height
34065 \begin_inset space \thinspace{}
34069 \begin_inset space \thinspace{}
34073 \begin_inset Box Boxed
34083 height_special "totalheight"
34088 backgroundcolor "none"
34091 \begin_layout Plain Layout
34093 Box height set to 1
34094 \begin_inset space \thinspace{}
34098 \begin_inset space ~
34109 \begin_layout Description
34110 Width This sets the width of the box as height:
34111 \begin_inset Box Boxed
34121 height_special "width"
34126 backgroundcolor "none"
34129 \begin_layout Plain Layout
34131 Box height set to 1
34132 \begin_inset space \thinspace{}
34143 \begin_layout Subsection
34145 \begin_inset Index idx
34148 \begin_layout Plain Layout
34157 \begin_layout Standard
34158 When you have chosen an
34161 \begin_inset space ~
34166 , the vertical box alignment can be:
34169 \begin_layout Description
34170 Top This is an example text line.
34172 \begin_inset Box Boxed
34182 height_special "totalheight"
34187 backgroundcolor "none"
34190 \begin_layout Plain Layout
34192 This box is top-aligned.
34197 This is an example text line.
34200 \begin_layout Description
34201 Middle This is an example text line.
34203 \begin_inset Box Boxed
34213 height_special "totalheight"
34218 backgroundcolor "none"
34221 \begin_layout Plain Layout
34223 This box is middle-aligned.
34228 This is an example text line.
34231 \begin_layout Description
34232 Bottom This is an example text line.
34234 \begin_inset Box Boxed
34244 height_special "totalheight"
34249 backgroundcolor "none"
34252 \begin_layout Plain Layout
34254 This box is bottom-aligned.
34259 This is an example text line.
34262 \begin_layout Standard
34263 \begin_inset Note Greyedout
34266 \begin_layout Plain Layout
34271 The vertical box alignment can be lost in the output when you have two
34272 boxes in a line and one has e.
34273 \begin_inset space \thinspace{}
34277 \begin_inset space \space{}
34280 a shadow and the other one not.
34288 \begin_layout Standard
34289 The horizontal box alignment can be set via \SpecialChar LyX
34290 's paragraph dialog when you
34291 set the box into its own paragraph.
34294 \begin_layout Standard
34295 \begin_inset VSpace bigskip
34298 When you have chosen an
34301 \begin_inset space ~
34306 , the box content can be aligned vertically to:
34309 \begin_layout Description
34310 top This is an example text line.
34312 \begin_inset Box Boxed
34322 height_special "totalheight"
34327 backgroundcolor "none"
34330 \begin_layout Plain Layout
34332 This box text is top-aligned.
34337 This is an example text line.
34340 \begin_layout Description
34341 middle This is an example text line.
34343 \begin_inset Box Boxed
34353 height_special "totalheight"
34358 backgroundcolor "none"
34361 \begin_layout Plain Layout
34363 This box text is middle-aligned.
34368 This is an example text line.
34371 \begin_layout Description
34372 bottom This is an example text line.
34374 \begin_inset Box Boxed
34384 height_special "totalheight"
34389 backgroundcolor "none"
34392 \begin_layout Plain Layout
34394 This box text is bottom-aligned.
34399 This is an example text line.
34402 \begin_layout Description
34403 stretch This is an example text line.
34405 \begin_inset Box Boxed
34415 height_special "totalheight"
34420 backgroundcolor "none"
34423 \begin_layout Plain Layout
34428 \begin_layout Plain Layout
34433 \begin_layout Plain Layout
34440 This is an example text line.
34443 \begin_layout Standard
34444 To stretch the box content, it must consist of more than one paragraph.
34445 In the example above every text line is in an own paragraph.
34448 \begin_layout Standard
34449 \begin_inset VSpace bigskip
34452 To align the box content horizontally you can use \SpecialChar LyX
34453 's paragraph dialog when
34457 \begin_inset space ~
34465 \begin_layout Standard
34467 \begin_inset Box Boxed
34477 height_special "totalheight"
34482 backgroundcolor "none"
34485 \begin_layout Plain Layout
34490 \begin_layout Plain Layout
34495 \begin_layout Plain Layout
34505 \begin_layout Standard
34506 If you have not set an
34509 \begin_inset space ~
34514 , you can align the box content horizontally in the box dialog.
34517 \begin_layout Standard
34519 \begin_inset Box Boxed
34529 height_special "totalheight"
34534 backgroundcolor "none"
34537 \begin_layout Plain Layout
34538 This box text is horizontally stretched.
34546 \begin_layout Subsection
34548 \begin_inset CommandInset label
34550 name "sec:Decoration"
34555 \begin_inset Index idx
34558 \begin_layout Plain Layout
34567 \begin_layout Standard
34568 The type of the box can be specified in the box dialog in the drop-down
34574 The following types are possible:
34577 \begin_layout Description
34579 \begin_inset space ~
34582 frame Nothing is drawn.
34585 \begin_layout Description
34587 \begin_inset space ~
34591 \begin_inset space ~
34594 frame This draws a rectangular frame around the box.
34595 The frame line thickness can be specified.
34597 \begin_inset Box Boxed
34607 height_special "totalheight"
34612 backgroundcolor "none"
34615 \begin_layout Plain Layout
34625 \begin_layout Description
34627 \begin_inset space ~
34631 \begin_inset space ~
34634 thin This draws an oval frame around the box.
34635 The frame line thickness has the size 0.4
34636 \begin_inset space \thinspace{}
34641 \begin_inset Box ovalbox
34651 height_special "totalheight"
34656 backgroundcolor "none"
34659 \begin_layout Plain Layout
34669 \begin_layout Description
34671 \begin_inset space ~
34675 \begin_inset space ~
34678 thick This draws an oval frame around the box.
34679 The frame line thickness has the size 0.8
34680 \begin_inset space \thinspace{}
34685 \begin_inset Box Ovalbox
34695 height_special "totalheight"
34700 backgroundcolor "none"
34703 \begin_layout Plain Layout
34713 \begin_layout Description
34715 \begin_inset space ~
34718 shadow This draws a rectangular frame with a shadow around the box.
34719 The frame line thickness and the shadow can be specified.
34721 \begin_inset Box Shadowbox
34731 height_special "totalheight"
34736 backgroundcolor "none"
34739 \begin_layout Plain Layout
34749 \begin_layout Description
34751 \begin_inset space ~
34754 background This draws a box with a red background.
34755 Unlike colored boxes
34759 \begin_layout Plain Layout
34761 \begin_inset space \thinspace{}
34765 \begin_inset CommandInset ref
34767 reference "sec:Colored-Boxes"
34776 , it always uses the whole column width and the box is set as its own paragraph.
34778 \begin_inset Box Shaded
34788 height_special "totalheight"
34793 backgroundcolor "none"
34796 \begin_layout Plain Layout
34797 Shaded background box
34805 \begin_layout Description
34807 \begin_inset space ~
34811 \begin_inset space ~
34814 frame This draws a double-line rectangular frame around the box.
34815 The line thickness of the inner frame is 0.75
34816 \begin_inset space \thinspace{}
34820 \begin_inset space ~
34823 thickness, the thickness of the outer frame is 1.5
34824 \begin_inset space \thinspace{}
34828 \begin_inset space ~
34832 The distance between the lines is 1.5
34833 \begin_inset space \thinspace{}
34837 \begin_inset space ~
34841 \begin_inset space \thinspace{}
34845 \begin_inset space \thinspace{}
34849 \begin_inset space \thinspace{}
34854 \begin_inset Box Doublebox
34864 height_special "totalheight"
34869 backgroundcolor "none"
34872 \begin_layout Plain Layout
34874 Double rectangular box
34882 \begin_layout Standard
34883 \begin_inset VSpace bigskip
34887 's box label will reflect the different frame types.
34888 To be able to use all types, the \SpecialChar LaTeX
34894 \begin_inset Index idx
34897 \begin_layout Plain Layout
34899 -packages ! fancybox
34907 \begin_layout Standard
34908 \begin_inset VSpace bigskip
34911 When you use the decoration
34913 simple rectangular frame
34915 and no inner box, you can allow page breaks within a box.
34916 Note that then, unlike other framed boxes, the frame always uses the whole
34917 column width and the box is set as its own paragraph:
34918 \begin_inset Box Framed
34928 height_special "totalheight"
34933 backgroundcolor "none"
34936 \begin_layout Plain Layout
34937 Allow page break box
34945 \begin_layout Section
34947 \begin_inset Index idx
34950 \begin_layout Plain Layout
34951 Boxes ! Customization
34959 \begin_layout Standard
34960 The diameter of the round corners of the oval boxes can be set with the
34971 \begin_layout Standard
34979 \begin_layout Standard
34980 sets the diameter to 1
34981 \begin_inset space \thinspace{}
34988 \begin_layout Standard
34996 \begin_layout Standard
34997 sets the diameter to
35000 \begin_inset space \thinspace{}
35004 \begin_inset space \thinspace{}
35007 minimum(width and height of box)
35019 \begin_layout Standard
35023 \begin_layout Plain Layout
35033 \begin_inset Box Ovalbox
35043 height_special "totalheight"
35048 backgroundcolor "none"
35051 \begin_layout Plain Layout
35060 \begin_inset space \thinspace{}
35064 \begin_inset space \thinspace{}
35068 \begin_inset space \thinspace{}
35080 \begin_layout Plain Layout
35092 \begin_layout Standard
35093 \begin_inset VSpace bigskip
35099 \begin_layout Standard
35100 The default background color red of
35104 boxes can either be changed locally with the command
35108 definecolor{shadecolor}
35110 or globally with the menu
35112 Tools\SpecialChar menuseparator
35113 Preferences\SpecialChar menuseparator
35114 Colors\SpecialChar menuseparator
35116 \begin_inset space ~
35128 command is explained in section
35129 \begin_inset space ~
35133 \begin_inset CommandInset ref
35135 reference "sec:Colored-Tables"
35143 \begin_layout Plain Layout
35150 requires the \SpecialChar LaTeX
35155 in the preamble, see section
35156 \begin_inset space ~
35160 \begin_inset CommandInset ref
35162 reference "sec:Colored-Boxes"
35171 For example the appearance of the following shaded background box is set
35172 with the \SpecialChar TeX
35176 \begin_layout Standard
35181 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35184 \begin_layout Standard
35188 \begin_layout Plain Layout
35192 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35198 \begin_inset Box Shaded
35208 height_special "totalheight"
35213 backgroundcolor "none"
35216 \begin_layout Plain Layout
35219 This is yellow text in a
35229 box with dark green background.
35238 \begin_layout Plain Layout
35242 definecolor{shadecolor}{rgb}{1,0,0}
35250 \begin_layout Standard
35251 \begin_inset VSpace bigskip
35254 Manually changed sizes and colors are valid for all boxes following the
35255 commands that change them.
35258 \begin_layout Section
35260 \begin_inset CommandInset label
35262 name "sec:Minipages"
35267 \begin_inset Index idx
35270 \begin_layout Plain Layout
35279 \begin_layout Standard
35280 Minipages are treated by \SpecialChar LaTeX
35281 as pages within pages and can therefore for example
35282 have their own footnotes.
35285 \begin_layout Standard
35286 Minipages are useful when you write documents with different languages.
35289 \begin_layout Standard
35290 Below are two example minipages side by side.
35291 Their width is set to 45
35292 \begin_inset space \thinspace{}
35295 col% and they are separated by a horizontal fill, that was inserted via
35298 Insert\SpecialChar menuseparator
35300 \begin_inset space ~
35303 Formatting\SpecialChar menuseparator
35305 \begin_inset space ~
35311 \begin_inset Newpage newpage
35317 \begin_layout Standard
35318 \begin_inset Box Frameless
35328 height_special "totalheight"
35333 backgroundcolor "none"
35336 \begin_layout Plain Layout
35339 Dies ist ein deutscher Text.
35340 Dies ist ein deutscher Text.
35341 Dies ist ein deutscher Text.
35342 Dies ist ein deutscher Text.
35343 Dies ist ein deutscher Text.
35344 Dies ist ein deutscher Text.
35345 Dies ist ein deutscher Text.
35346 Dies ist ein deutscher Text.
35347 Dies ist ein deutscher Text.
35348 Dies ist ein deutscher Text.
35349 Dies ist ein deutscher Text.
35350 Dies ist ein deutscher Text.
35351 Dies ist ein deutscher Text
35355 \begin_layout Plain Layout
35358 Dies ist eine deutsche Fußnote.
35364 Dies ist ein deutscher Text.
35365 Dies ist ein deutscher Text.
35371 \begin_inset space \hfill{}
35375 \begin_inset Box Frameless
35385 height_special "totalheight"
35390 backgroundcolor "none"
35393 \begin_layout Plain Layout
35394 This is an English Text.
35395 This is an English Text.
35396 This is an English Text.
35397 This is an English Text.
35398 This is an English Text.
35399 This is an English Text.
35400 This is an English Text.
35401 This is an English Text.
35402 This is an English Text.
35403 This is an English Text.
35404 This is an English Text.
35405 This is an English Text.
35406 This is an English Text.
35407 This is an English Text.
35408 This is an English Text.
35409 This is an English Text.
35413 \begin_layout Plain Layout
35414 This is an English footnote.
35419 This is an English Text.
35427 \begin_layout Standard
35428 \begin_inset VSpace bigskip
35431 The document-wide paragraph settings are ignored within minipages.
35432 That means that there will be no space between paragraphs in minipages
35433 although you set it to e.
35434 \begin_inset space \thinspace{}
35438 \begin_inset space \space{}
35445 in the document settings.
35448 \begin_layout Standard
35449 Minipages can also be used to set a background color for text parts, see
35451 \begin_inset space ~
35455 \begin_inset CommandInset ref
35457 reference "sec:Colored-Boxes"
35464 \begin_layout Standard
35465 \begin_inset Note Greyedout
35468 \begin_layout Plain Layout
35473 You cannot have floats or margin notes inside minipages but minipages can
35474 be used inside tables, floats, and other boxes.
35482 \begin_layout Standard
35483 \begin_inset VSpace bigskip
35489 \begin_layout Standard
35491 has also basic support for minipages whose size is automatically determined
35492 by the width of their contents, via the module
35494 Variable-width Minipages
35497 The \SpecialChar LyX
35500 varwidth-floats-side-by-side
35502 gives examples of variable-width minipages used for placing two floats
35506 \begin_layout Section
35508 \begin_inset CommandInset label
35510 name "sec:Parboxes"
35515 \begin_inset Index idx
35518 \begin_layout Plain Layout
35527 \begin_layout Standard
35528 Parboxes are very similar to minipages with the difference that they cannot
35532 \begin_layout Standard
35534 \begin_inset Box Frameless
35544 height_special "totalheight"
35549 backgroundcolor "none"
35552 \begin_layout Plain Layout
35553 This a text within a parbox.
35554 This a text within a parbox.
35557 \begin_layout Plain Layout
35558 This footnote won't appear:
35562 \begin_layout Plain Layout
35563 This footnote is inside a parbox and will therefore not appear.
35576 \begin_layout Section
35577 Boxes for Words and Characters
35578 \begin_inset Index idx
35581 \begin_layout Plain Layout
35582 Boxes ! for Characters
35590 \begin_layout Subsection
35591 Prevent Hyphenation
35592 \begin_inset CommandInset label
35594 name "sec:Prevent-Hyphenation"
35599 \begin_inset Index idx
35602 \begin_layout Plain Layout
35603 Boxes ! to Prevent Hyphenation
35611 \begin_layout Standard
35612 You can use the box type
35616 to prevent words or text from being hyphenated.
35617 \begin_inset Newline newline
35620 Here is an example text:
35623 \begin_layout Standard
35624 This line is an example to show how you can prevent the hyphenation of
35625 \begin_inset Quotes eld
35629 \begin_inset Quotes erd
35635 \begin_layout Standard
35636 To prevent the hyphenation of the word
35637 \begin_inset Quotes eld
35641 \begin_inset Quotes erd
35644 , put the word into a box, set the
35647 \begin_inset space ~
35656 and use no explicit width.
35659 \begin_layout Standard
35660 This is the result:
35663 \begin_layout Standard
35664 This line is an example to show how you can prevent the hyphenation of
35665 \begin_inset Box Frameless
35675 height_special "totalheight"
35680 backgroundcolor "none"
35683 \begin_layout Plain Layout
35684 \begin_inset Quotes eld
35688 \begin_inset Quotes erd
35699 \begin_layout Standard
35700 You can alternatively set the command
35701 \begin_inset Quotes eld
35711 \begin_inset Quotes grd
35714 as \SpecialChar TeX
35715 Code directly before the word:
35718 \begin_layout Standard
35719 This line is an example to show how you can prevent the hyphenation of
35720 \begin_inset Quotes eld
35727 \begin_layout Plain Layout
35737 \begin_inset Quotes erd
35743 \begin_layout Standard
35744 Of course the word now protrudes over the side margin.
35745 To avoid this, add via the menu
35747 Insert\SpecialChar menuseparator
35748 Formatting\SpecialChar menuseparator
35750 \begin_inset space ~
35754 \begin_inset space ~
35762 arg "newline-insert newline"
35765 ) a line break before the word:
35768 \begin_layout Standard
35769 This line is an example to show how you can prevent the hyphenation of
35770 \begin_inset Newline newline
35774 \begin_inset Box Frameless
35784 height_special "totalheight"
35789 backgroundcolor "none"
35792 \begin_layout Plain Layout
35793 \begin_inset Quotes eld
35797 \begin_inset Quotes erd
35808 \begin_layout Subsection
35810 \begin_inset CommandInset label
35812 name "subsec:Vertical-Alignment"
35817 \begin_inset Index idx
35820 \begin_layout Plain Layout
35821 Boxes ! for Vertical Alignment
35827 \begin_inset Index idx
35830 \begin_layout Plain Layout
35839 \begin_layout Standard
35840 With the help of the command
35846 you can align words, characters or other boxes vertically relative to the
35854 is used with the following scheme:
35857 \begin_layout Standard
35862 raisebox{lift}[height][depth]{box content}
35865 \begin_layout Standard
35866 The lift can be a positive value to raise the box or a negative value to
35870 \begin_layout Standard
35871 To align for example the word
35872 \begin_inset Quotes eld
35876 \begin_inset Quotes erd
35879 so that the bottom of the
35880 \begin_inset Quotes eld
35884 \begin_inset Quotes erd
35888 \begin_inset Quotes eld
35892 \begin_inset Quotes erd
35895 is at the baseline, insert the command
35898 \begin_layout Standard
35908 \begin_layout Standard
35909 in \SpecialChar TeX
35910 Code before the word.
35911 After the word insert a closing brace
35912 \begin_inset Quotes eld
35920 \begin_inset Quotes erd
35923 in \SpecialChar TeX
35925 \begin_inset Newline newline
35928 This is the result:
35931 \begin_layout Standard
35932 This is a text line with the word
35936 \begin_layout Plain Layout
35948 \begin_inset Quotes eld
35952 \begin_inset Quotes erd
35959 \begin_layout Plain Layout
35969 \begin_layout Standard
35970 \begin_inset VSpace bigskip
35973 When you raise or lower characters in a line, the line distance will be
35977 \begin_layout Standard
35978 This is a text line with the word
35982 \begin_layout Plain Layout
35994 \begin_inset Quotes eld
35998 \begin_inset Quotes erd
36005 \begin_layout Plain Layout
36013 \begin_inset Newline newline
36016 This is a text line with the word
36020 \begin_layout Plain Layout
36030 \begin_inset Quotes eld
36034 \begin_inset Quotes erd
36041 \begin_layout Plain Layout
36051 \begin_layout Standard
36052 If you want to prevent this for a certain reason, set the box height to
36057 \begin_layout Standard
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
36107 \begin_inset Newline newline
36110 This is a text line with the word
36114 \begin_layout Plain Layout
36118 raisebox{0.5cm}[0pt]{
36124 \begin_inset Quotes eld
36128 \begin_inset Quotes erd
36135 \begin_layout Plain Layout
36145 \begin_layout Section
36147 \begin_inset CommandInset label
36149 name "sec:Colored-Boxes"
36154 \begin_inset Index idx
36157 \begin_layout Plain Layout
36166 \begin_layout Standard
36167 To color the background of a box just select the color you like in the box
36169 This is for example a box with orange background:
36170 \begin_inset Box Frameless
36180 height_special "totalheight"
36185 backgroundcolor "orange"
36188 \begin_layout Plain Layout
36189 Box with orange background
36197 \begin_layout Standard
36198 If you use the decoration
36201 \begin_inset space ~
36205 \begin_inset space ~
36210 you can set a frame color.
36211 In this case you must also specify a background color (LyX sets white as
36213 Here is an example:
36214 \begin_inset Box Boxed
36224 height_special "totalheight"
36229 backgroundcolor "yellow"
36232 \begin_layout Plain Layout
36233 Box with teal frame color and yellow background color
36241 \begin_layout Standard
36242 \begin_inset VSpace bigskip
36245 Of course you can also have colored text inside a colored box:
36246 \begin_inset Newline newline
36250 \begin_inset Box Boxed
36260 height_special "totalheight"
36265 backgroundcolor "magenta"
36268 \begin_layout Plain Layout
36271 This is colored text within a colored, framed box
36279 \begin_layout Standard
36280 \begin_inset VSpace bigskip
36286 \begin_layout Standard
36287 If you need another color than the predefined ones, you can define your
36288 own color as described in section
36289 \begin_inset space ~
36293 \begin_inset CommandInset ref
36295 reference "sec:Colored-Tables"
36300 To use your own color you must typeset the box by using TeX code:
36303 \begin_layout Standard
36304 Colored boxes without frame are created with the command
36311 It has the following scheme:
36314 \begin_layout Standard
36319 colorbox{color}{box content}
36322 \begin_layout Standard
36323 The box content can also be a box and colored boxes can also be within other
36326 \begin_inset space \thinspace{}
36330 \begin_inset space \space{}
36333 a darkgreen background for a word, insert the command
36336 \begin_layout Standard
36341 colorbox{darkgreen}{
36344 \begin_layout Standard
36345 before the word in \SpecialChar TeX
36347 After the word insert a closing brace
36348 \begin_inset Quotes eld
36356 \begin_inset Quotes erd
36359 in \SpecialChar TeX
36361 \begin_inset Newline newline
36364 This is the result:
36367 \begin_layout Standard
36368 This is a line where the word
36372 \begin_layout Plain Layout
36376 colorbox{darkgreen}{
36382 \begin_inset Quotes eld
36386 \begin_inset Quotes erd
36393 \begin_layout Plain Layout
36400 has a darkgreen background.
36403 \begin_layout Standard
36404 Framed, colored boxes are created with the command
36411 It has the following scheme:
36414 \begin_layout Standard
36419 fcolorbox{frame color}{box color}{box content}
36422 \begin_layout Section
36423 Rotated and Scaled Boxes
36426 \begin_layout Standard
36427 To use the boxes described in this section, the module
36431 must be loaded in the document settings.
36434 \begin_layout Standard
36435 \begin_inset Note Greyedout
36438 \begin_layout Plain Layout
36443 Not all DVI viewers are able to display rotated or scaled material.
36451 \begin_layout Standard
36452 \begin_inset Note Greyedout
36455 \begin_layout Plain Layout
36460 Floats are not allowed inside a rotated or scaled box.
36468 \begin_layout Subsection
36470 \begin_inset Index idx
36473 \begin_layout Plain Layout
36480 \begin_inset Index idx
36483 \begin_layout Plain Layout
36492 \begin_layout Standard
36493 To rotate material, you can put it into a
36498 Such a box is inserted via the menu
36500 Insert\SpecialChar menuseparator
36501 Custom Insets\SpecialChar menuseparator
36507 \begin_layout Standard
36508 The rotation origin can be specified via the inset
36514 Insert\SpecialChar menuseparator
36522 The following positions are possible:
36542 (top), along with meaningful combinations of the four base positions.
36547 means that the rotation origin is at the top left corner of the box.
36548 When no rotation origin is specified, the position
36553 The rotation angle is a number that can be negative that specifies the
36555 The rotation direction is counterclockwise.
36558 \begin_layout Standard
36559 In the following example
36563 was inserted to the
36571 was inserted to the
36578 \begin_layout Standard
36580 \begin_inset Flex Rotatebox
36583 \begin_layout Plain Layout
36584 \begin_inset Argument 1
36587 \begin_layout Plain Layout
36594 \begin_inset Argument 2
36597 \begin_layout Plain Layout
36611 \begin_layout Standard
36612 The box content can also be another box or an inline formula:
36615 \begin_layout Standard
36617 \begin_inset Flex Rotatebox
36620 \begin_layout Plain Layout
36621 \begin_inset Argument 1
36624 \begin_layout Plain Layout
36631 \begin_inset Argument 2
36634 \begin_layout Plain Layout
36641 \begin_inset Box Doublebox
36651 height_special "totalheight"
36656 backgroundcolor "none"
36659 \begin_layout Plain Layout
36671 \begin_inset Flex Rotatebox
36674 \begin_layout Plain Layout
36675 \begin_inset Argument 1
36678 \begin_layout Plain Layout
36685 \begin_inset Argument 2
36688 \begin_layout Plain Layout
36695 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36706 \begin_layout Standard
36707 or an image or table:
36710 \begin_layout Standard
36712 \begin_inset Flex Rotatebox
36715 \begin_layout Plain Layout
36716 \begin_inset Argument 1
36719 \begin_layout Plain Layout
36726 \begin_inset Argument 2
36729 \begin_layout Plain Layout
36736 \begin_inset Graphics
36737 filename clipart/Star-structure.pdf
36748 with a rotated image
36749 \begin_inset Flex Rotatebox
36752 \begin_layout Plain Layout
36753 \begin_inset Argument 2
36756 \begin_layout Plain Layout
36763 \begin_inset Tabular
36764 <lyxtabular version="3" rows="2" columns="2">
36765 <features tabularvalignment="middle">
36766 <column alignment="center" valignment="top">
36767 <column alignment="center" valignment="top">
36769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36772 \begin_layout Plain Layout
36778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36781 \begin_layout Plain Layout
36789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36792 \begin_layout Plain Layout
36798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36801 \begin_layout Plain Layout
36818 \begin_inset Index idx
36821 \begin_layout Plain Layout
36828 \begin_inset Index idx
36831 \begin_layout Plain Layout
36832 Table Customization ! Rotating
36840 \begin_layout Standard
36841 \begin_inset Note Greyedout
36844 \begin_layout Plain Layout
36853 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36855 errors when viewing/exporting the document.
36863 \begin_layout Subsection
36865 \begin_inset Index idx
36868 \begin_layout Plain Layout
36875 \begin_inset Index idx
36878 \begin_layout Plain Layout
36887 \begin_layout Standard
36888 To scale material put it into a
36893 Such a box is inserted via the menu
36895 Insert\SpecialChar menuseparator
36896 Custom Insets\SpecialChar menuseparator
36902 \begin_layout Standard
36907 inset has the mandatory inset
36911 and the optional inset
36915 (inserted via the menu
36917 Insert\SpecialChar menuseparator
36921 Input there the horizontal and vertical scale factor, respectively.
36926 inset is used, the horizontal factor will also be used as the vertical
36930 \begin_layout Standard
36931 To get for example the double text size, compared to the document text size,
36942 \begin_inset Flex Scalebox
36945 \begin_layout Plain Layout
36946 \begin_inset Argument 1
36949 \begin_layout Plain Layout
36963 \begin_layout Standard
36981 \begin_inset Flex Scalebox
36984 \begin_layout Plain Layout
36985 \begin_inset Argument 1
36988 \begin_layout Plain Layout
36995 \begin_inset Argument 2
36998 \begin_layout Plain Layout
37012 \begin_layout Standard
37013 If the scaling factor is negative, the box content will be mirrored.
37030 can be used to create mirror writing:
37031 \begin_inset Flex Scalebox
37034 \begin_layout Plain Layout
37035 \begin_inset Argument 1
37038 \begin_layout Plain Layout
37045 \begin_inset Argument 2
37048 \begin_layout Plain Layout
37062 \begin_layout Standard
37080 \begin_inset Flex Scalebox
37083 \begin_layout Plain Layout
37084 \begin_inset Argument 1
37087 \begin_layout Plain Layout
37094 \begin_inset Argument 2
37097 \begin_layout Plain Layout
37111 \begin_layout Standard
37118 Insert\SpecialChar menuseparator
37119 Custom Insets\SpecialChar menuseparator
37145 \begin_layout Standard
37146 \begin_inset Note Greyedout
37149 \begin_layout Plain Layout
37158 inset is empty or contains other characters than numbers you will get LaTeX
37159 errors when viewing/exporting the document.
37167 \begin_layout Standard
37168 \begin_inset VSpace bigskip
37177 Insert\SpecialChar menuseparator
37178 Custom Insets\SpecialChar menuseparator
37181 ) is used to scale the content to a defined width and height.
37186 inset has the mandatory inset
37190 and the optional inset
37194 (inserted via the menu
37196 Insert\SpecialChar menuseparator
37200 Input there the width and height, respectively, as value with a unit.
37202 \begin_inset CommandInset ref
37204 reference "tab:Units"
37208 lists the possible units.
37209 If there is an exclamation mark
37213 in of of the two insets, the size is set so that the aspect ratio of the
37214 box content is kept.
37219 inset is used an exclamation mark will internally be used for the height.
37222 \begin_layout Standard
37240 \begin_inset Flex Resizebox
37243 \begin_layout Plain Layout
37244 \begin_inset Argument 1
37247 \begin_layout Plain Layout
37254 \begin_inset Argument 2
37257 \begin_layout Plain Layout
37269 \begin_inset Newline newline
37293 \begin_inset Flex Resizebox
37296 \begin_layout Plain Layout
37297 \begin_inset Argument 1
37300 \begin_layout Plain Layout
37307 \begin_inset Argument 2
37310 \begin_layout Plain Layout
37324 \begin_layout Standard
37325 \begin_inset Note Greyedout
37328 \begin_layout Plain Layout
37337 inset is empty or contains an invalid unit you will get LaTeX errors when
37338 viewing/exporting the document.
37346 \begin_layout Standard
37347 \begin_inset VSpace bigskip
37353 \begin_layout Standard
37354 The boxes can be combined in any order.
37363 which is in turn inside a
37370 \begin_layout Standard
37373 \begin_inset Flex Rotatebox
37376 \begin_layout Plain Layout
37377 \begin_inset Argument 1
37380 \begin_layout Plain Layout
37387 \begin_inset Argument 2
37390 \begin_layout Plain Layout
37397 \begin_inset Flex Resizebox
37400 \begin_layout Plain Layout
37401 \begin_inset Argument 1
37404 \begin_layout Plain Layout
37411 \begin_inset Flex Reflectbox
37414 \begin_layout Plain Layout
37433 \begin_layout Standard
37435 Images, tables, and inline formulas are allowed as box content:
37438 \begin_layout Standard
37441 \begin_inset Flex Resizebox
37444 \begin_layout Plain Layout
37445 \begin_inset Argument 1
37448 \begin_layout Plain Layout
37455 \begin_inset Flex Reflectbox
37458 \begin_layout Plain Layout
37459 \begin_inset Graphics
37460 filename clipart/Star-structure.pdf
37477 \begin_inset Flex Resizebox
37480 \begin_layout Plain Layout
37481 \begin_inset Argument 1
37484 \begin_layout Plain Layout
37491 \begin_inset Flex Reflectbox
37494 \begin_layout Plain Layout
37495 \begin_inset Tabular
37496 <lyxtabular version="3" rows="2" columns="2">
37497 <features tabularvalignment="middle">
37498 <column alignment="center" valignment="top">
37499 <column alignment="center" valignment="top">
37501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37504 \begin_layout Plain Layout
37510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37513 \begin_layout Plain Layout
37521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37524 \begin_layout Plain Layout
37530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37533 \begin_layout Plain Layout
37555 \begin_inset Flex Resizebox
37558 \begin_layout Plain Layout
37559 \begin_inset Argument 1
37562 \begin_layout Plain Layout
37569 \begin_inset Flex Reflectbox
37572 \begin_layout Plain Layout
37573 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37587 \begin_inset Index idx
37590 \begin_layout Plain Layout
37597 \begin_inset Index idx
37600 \begin_layout Plain Layout
37601 Table Customization ! Scaling
37609 \begin_layout Standard
37610 When the global formula style
37614 is used in the document
37618 \begin_layout Plain Layout
37620 \begin_inset Quotes eld
37624 \begin_inset Quotes erd
37627 is added to the document class options.
37632 , display style formulas can also be scaled.
37635 \begin_layout Chapter
37636 Objects Surrounded by Text
37637 \begin_inset Index idx
37640 \begin_layout Plain Layout
37649 \begin_layout Section
37651 \begin_inset CommandInset label
37653 name "sec:Wrap-Floats"
37658 \begin_inset Index idx
37661 \begin_layout Plain Layout
37662 Floats ! Wrap Floats
37668 \begin_inset Index idx
37671 \begin_layout Plain Layout
37672 Surrounded by text ! Wrap Floats
37680 \begin_layout Standard
37681 \begin_inset Wrap figure
37688 \begin_layout Plain Layout
37689 \begin_inset Graphics
37690 filename clipart/2D-intensity-plot.pdf
37692 scaleBeforeRotation
37693 rotateOrigin center
37700 \begin_layout Plain Layout
37701 \begin_inset Caption Standard
37703 \begin_layout Plain Layout
37704 \begin_inset CommandInset label
37706 name "fig:This-is-a"
37710 This is a figure wrap float.
37720 This float type is used if you want to wrap text around a figure or table
37721 so that it only occupies some fraction of the column width.
37722 It can be inserted using the menu
37724 Insert\SpecialChar menuseparator
37725 Floats\SpecialChar menuseparator
37727 \begin_inset space ~
37731 \begin_inset space ~
37739 \begin_inset space ~
37743 \begin_inset space ~
37748 if the \SpecialChar LaTeX
37754 \begin_inset Index idx
37757 \begin_layout Plain Layout
37759 -packages ! wrapfig
37768 \begin_layout Plain Layout
37769 Installing a \SpecialChar LaTeX
37770 -package is explained it in the
37774 \begin_inset space ~
37784 The settings of the float can be modified by right-clicking on the float
37786 The mandatory settings are the float
37799 that specifies how much the float is set into the paragraph
37800 \begin_inset space \thinspace{}
37804 \begin_inset space \thinspace{}
37807 page margin, and the
37810 \begin_inset space ~
37815 that specifies how many text lines the float will approximately need.
37816 The line span is often hard to approximate; so it is better only to use
37817 it when you encounter float placement problems.
37818 You can furthermore decide if \SpecialChar LaTeX
37819 is allowed to let the float float within
37820 the paragraph or to surrounding paragraphs.
37822 \begin_inset space ~
37826 \begin_inset CommandInset ref
37828 reference "fig:This-is-a"
37832 is an example text wrap float with a width of 40
37833 \begin_inset space \thinspace{}
37837 \begin_inset space \thinspace{}
37840 cm overhang, set to the left.
37843 \begin_layout Standard
37844 \begin_inset Note Greyedout
37847 \begin_layout Plain Layout
37853 \begin_inset space ~
37856 wrap float floats are fragile! E.
37857 \begin_inset space \thinspace{}
37861 \begin_inset space \space{}
37864 having a figure too close to the bottom of the page can mess things up in
37865 such a way that the float does not appear in the output or that it is placed
37866 over some other text.
37874 \begin_layout Standard
37875 In general, the following applies for wrap floats:
37878 \begin_layout Itemize
37879 They should not be placed in paragraphs that run over a page break.
37880 That means that wrap floats are better inserted in their exact place when
37881 the document is almost finished and you are able to estimate where page
37882 breaks will appear.
37885 \begin_layout Itemize
37886 They should either be placed in their own paragraph before the paragraph
37887 where they should wrap into or within a paragraph.
37890 \begin_layout Itemize
37891 In consecutive paragraphs they may cause troubles, so ensure that there
37892 is a text paragraph between them as separator.
37895 \begin_layout Itemize
37896 They are not allowed in section headings or tables.
37899 \begin_layout Itemize
37900 Their numbering and referencing works as described in chap.
37901 \begin_inset space \thinspace{}
37905 \begin_inset CommandInset ref
37907 reference "chap:Floats"
37914 \begin_layout Section
37915 Surrounded Fixed Objects
37916 \begin_inset Index idx
37919 \begin_layout Plain Layout
37920 Surrounded by text ! Fixed objects
37928 \begin_layout Standard
37929 The wrap floats described in sec.
37930 \begin_inset space \thinspace{}
37934 \begin_inset CommandInset ref
37936 reference "sec:Wrap-Floats"
37940 have these positions in the paragraph:
37943 \begin_layout Standard
37946 \begin_inset Tabular
37947 <lyxtabular version="3" rows="2" columns="2">
37948 <features tabularvalignment="middle">
37949 <column alignment="center" valignment="top">
37950 <column alignment="center" valignment="top">
37952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37955 \begin_layout Plain Layout
37958 arg "dialog-show-new-inset graphics"
37966 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37969 \begin_layout Plain Layout
37977 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37980 \begin_layout Plain Layout
37986 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37989 \begin_layout Plain Layout
38001 \begin_inset Tabular
38002 <lyxtabular version="3" rows="2" columns="2">
38003 <features tabularvalignment="middle">
38004 <column alignment="center" valignment="top">
38005 <column alignment="center" valignment="top">
38007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38010 \begin_layout Plain Layout
38016 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38019 \begin_layout Plain Layout
38022 arg "dialog-show-new-inset graphics"
38032 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38035 \begin_layout Plain Layout
38041 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38044 \begin_layout Plain Layout
38058 \begin_layout Standard
38059 To get an object exactly at the position where it is inserted, for example
38060 to get one of these positions:
38061 \begin_inset VSpace defskip
38067 \begin_layout Standard
38070 \begin_inset Tabular
38071 <lyxtabular version="3" rows="2" columns="2">
38072 <features tabularvalignment="middle">
38073 <column alignment="center" valignment="top">
38074 <column alignment="center" valignment="top">
38076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38079 \begin_layout Plain Layout
38085 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38088 \begin_layout Plain Layout
38096 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38099 \begin_layout Plain Layout
38102 arg "dialog-show-new-inset graphics"
38110 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38113 \begin_layout Plain Layout
38125 \begin_inset Tabular
38126 <lyxtabular version="3" rows="2" columns="2">
38127 <features tabularvalignment="middle">
38128 <column alignment="center" valignment="top">
38129 <column alignment="center" valignment="top">
38131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38134 \begin_layout Plain Layout
38140 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38143 \begin_layout Plain Layout
38151 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38154 \begin_layout Plain Layout
38160 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38163 \begin_layout Plain Layout
38166 arg "dialog-show-new-inset graphics"
38180 \begin_inset Tabular
38181 <lyxtabular version="3" rows="2" columns="3">
38182 <features tabularvalignment="middle">
38183 <column alignment="center" valignment="top">
38184 <column alignment="center" valignment="top">
38185 <column alignment="center" valignment="top">
38187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38190 \begin_layout Plain Layout
38196 <cell alignment="center" valignment="top" topline="true" usebox="none">
38199 \begin_layout Plain Layout
38202 arg "dialog-show-new-inset graphics"
38210 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38213 \begin_layout Plain Layout
38221 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38224 \begin_layout Plain Layout
38230 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38233 \begin_layout Plain Layout
38239 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38242 \begin_layout Plain Layout
38254 \begin_inset Tabular
38255 <lyxtabular version="3" rows="2" columns="3">
38256 <features tabularvalignment="middle">
38257 <column alignment="center" valignment="top">
38258 <column alignment="center" valignment="top">
38259 <column alignment="center" valignment="top">
38261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38264 \begin_layout Plain Layout
38270 <cell alignment="center" valignment="top" topline="true" usebox="none">
38273 \begin_layout Plain Layout
38279 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38282 \begin_layout Plain Layout
38290 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38293 \begin_layout Plain Layout
38299 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38302 \begin_layout Plain Layout
38305 arg "dialog-show-new-inset graphics"
38313 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38316 \begin_layout Plain Layout
38330 \begin_layout Standard
38333 \begin_inset Tabular
38334 <lyxtabular version="3" rows="3" columns="2">
38335 <features tabularvalignment="middle">
38336 <column alignment="center" valignment="top">
38337 <column alignment="center" valignment="top">
38339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38342 \begin_layout Plain Layout
38348 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38351 \begin_layout Plain Layout
38359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38362 \begin_layout Plain Layout
38365 arg "dialog-show-new-inset graphics"
38373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38376 \begin_layout Plain Layout
38384 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38387 \begin_layout Plain Layout
38393 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38396 \begin_layout Plain Layout
38408 \begin_inset Tabular
38409 <lyxtabular version="3" rows="3" columns="3">
38410 <features tabularvalignment="middle">
38411 <column alignment="center" valignment="top">
38412 <column alignment="center" valignment="top">
38413 <column alignment="center" valignment="top">
38415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38418 \begin_layout Plain Layout
38424 <cell alignment="center" valignment="top" topline="true" usebox="none">
38427 \begin_layout Plain Layout
38433 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38436 \begin_layout Plain Layout
38444 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38447 \begin_layout Plain Layout
38453 <cell alignment="center" valignment="top" usebox="none">
38456 \begin_layout Plain Layout
38459 arg "dialog-show-new-inset graphics"
38467 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38470 \begin_layout Plain Layout
38478 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38481 \begin_layout Plain Layout
38487 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38490 \begin_layout Plain Layout
38496 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38499 \begin_layout Plain Layout
38511 \begin_inset Tabular
38512 <lyxtabular version="3" rows="3" columns="2">
38513 <features tabularvalignment="middle">
38514 <column alignment="center" valignment="top">
38515 <column alignment="center" valignment="top">
38517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38520 \begin_layout Plain Layout
38526 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38529 \begin_layout Plain Layout
38537 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38540 \begin_layout Plain Layout
38546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38549 \begin_layout Plain Layout
38552 arg "dialog-show-new-inset graphics"
38562 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38565 \begin_layout Plain Layout
38571 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38574 \begin_layout Plain Layout
38588 \begin_layout Standard
38590 you can use the \SpecialChar LaTeX
38596 \begin_inset Index idx
38599 \begin_layout Plain Layout
38601 -packages ! picinpar
38607 Here is an example:
38610 \begin_layout Standard
38614 \begin_layout Plain Layout
38624 \begin_inset Note Note
38627 \begin_layout Plain Layout
38628 The following section will only be displayed when the \SpecialChar LaTeX
38641 \begin_layout Standard
38645 \begin_layout Plain Layout
38649 begin{window}[2,c,{
38655 \begin_inset Graphics
38656 filename clipart/2D-intensity-plot.pdf
38659 scaleBeforeRotation
38660 rotateOrigin center
38668 \begin_layout Plain Layout
38673 \begin_layout Plain Layout
38682 It was in the spring of the year 1894 that all London was interested, and
38683 the fashionable world dismayed, by the murder of the Honourable Ronald
38684 Adair under most unusual and inexplicable circumstances.
38685 The public has already learned those particulars of the crime which
38691 \begin_layout Plain Layout
38702 came out in the police investigation, but a good deal was suppressed upon
38703 that occasion, since the case for the prosecution was so overwhelmingly
38704 strong that it was not necessary to bring forward all the facts.
38705 Only now, at the end of nearly ten years, am I allowed to supply those
38706 missing links which make up the whole of that remarkable chain.
38712 \begin_layout Plain Layout
38724 \begin_layout Standard
38728 \begin_layout Plain Layout
38737 Footnote of the paragraph with the fixed object.
38741 \begin_layout Plain Layout
38751 \begin_layout Standard
38752 Surrounded fixed objects are used to let text float around them, at which
38753 the object's position in the paragraph can be determined by the number
38755 In contrary to floats is it not possible to have a numbered caption.
38758 \begin_layout Standard
38759 A fixed object is inserted by adding the command
38762 \begin_layout Standard
38767 begin{window}[2,c,{
38770 \begin_layout Standard
38771 as \SpecialChar TeX
38772 Code at the beginning of the paragraph.
38773 The first parameter in the bracket, here '2', defines the number of lines
38774 above the object, the second, here 'c', the position of the object.
38775 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38776 Behind the command you insert the object.
38777 In this example an image with a width of 40
38778 \begin_inset space \thinspace{}
38781 % of the text column width was inserted.
38782 The object can also be a table, a box or an equation.
38783 Behind the object the command
38786 \begin_layout Standard
38789 },description text]
38790 \begin_inset Newline newline
38796 \begin_layout Standard
38799 \begin_inset Quotes eld
38807 \begin_inset Quotes erd
38810 is in the second line.
38811 The description text is optional.
38812 The text surrounding the object must be in the same paragraph as the object,
38813 so it must begin directly after the
38818 At the end of the paragraph insert the command:
38821 \begin_layout Standard
38829 \begin_layout Standard
38830 Within a paragraph with a fixed object, you cannot insert footnotes in the
38832 You have to use instead the command
38838 inside the paragraph and outside the command
38844 as described in sec.
38845 \begin_inset space \thinspace{}
38849 \begin_inset CommandInset ref
38851 reference "sec:Footnotes"
38858 \begin_layout Standard
38862 \begin_layout Plain Layout
38872 \begin_inset Note Note
38875 \begin_layout Plain Layout
38876 The following will be displayed when the \SpecialChar LaTeX
38889 \begin_layout Standard
38890 You need to install the \SpecialChar LaTeX
38895 to see the following part of this section in the output.
38898 \begin_layout Standard
38902 \begin_layout Plain Layout
38914 \begin_layout Section
38916 \begin_inset Index idx
38919 \begin_layout Plain Layout
38926 \begin_inset Index idx
38929 \begin_layout Plain Layout
38930 Surrounded by text ! Initials
38938 \begin_layout Standard
38939 To use initials, you must have the \SpecialChar LaTeX
38945 \begin_inset Index idx
38948 \begin_layout Plain Layout
38950 -packages ! lettrine
38955 installed and use the module
38959 in your document (menu
38961 Document\SpecialChar menuseparator
38962 Settings\SpecialChar menuseparator
38966 To insert an initial, use the style
38971 This style has a mandatory and two optional arguments.
38972 The arguments are inserted via the
38977 The mandatory argument
38981 contains the letter(s) that is the initial, the argument
38984 \begin_inset space ~
38988 \begin_inset space ~
38993 contains the rest of the word or text of the initial letter(s).
38998 contains parameters to modify the initial.
38999 For more information about the possible parameters see the documentation
39005 \begin_inset CommandInset citation
39013 The style itself contains the text that is surrounding the initial.
39014 The usual style is hereby that the word whose first letter is the initial,
39022 \begin_layout Standard
39023 Here are some examples:
39026 \begin_layout Standard
39030 \begin_layout Plain Layout
39040 \begin_inset Note Note
39043 \begin_layout Plain Layout
39044 The following section will only be displayed when the \SpecialChar LaTeX
39057 \begin_layout Enumerate
39058 No optional argument, the initial is the letter 'I' in the math font
39059 \begin_inset Formula $\mathfrak{Fraktur}$
39066 \begin_layout Initial
39067 \begin_inset Argument 2
39070 \begin_layout Plain Layout
39071 \begin_inset Formula $\mathfrak{I}$
39080 \begin_inset Argument 3
39083 \begin_layout Plain Layout
39089 was in the spring of the year 1894 that all London was interested, and
39090 the fashionable world dismayed, by the murder of the Honourable Ronald
39091 Adair under most unusual and inexplicable circumstances.
39092 The public has already learned those particulars of the crime which came
39093 out in the police investigation, but a good deal was suppressed upon that
39094 occasion, since the case for the prosecution was so overwhelmingly strong
39095 that it was not necessary to bring forward all the facts.
39096 \begin_inset Newpage newpage
39103 \begin_layout Enumerate
39104 Only one line is surrounding the initial, which is formed by two letters
39105 in standard font and no text is printed in small caps:
39109 \begin_layout Initial
39110 \begin_inset Argument 1
39113 \begin_layout Plain Layout
39120 \begin_inset Argument 2
39123 \begin_layout Plain Layout
39129 was in the spring of the year 1894 that all London was interested, and
39130 the fashionable world dismayed, by the murder of the Honourable Ronald
39131 Adair under most unusual and inexplicable circumstances.
39132 The public has already learned those particulars of the crime which came
39133 out in the police investigation, but a good deal was suppressed upon that
39134 occasion, since the case for the prosecution was so overwhelmingly strong
39135 that it was not necessary to bring forward all the facts.
39139 \begin_layout Enumerate
39140 Magenta, hanging initial over 3
39141 \begin_inset space ~
39144 lines in the math font
39145 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39149 \begin_inset Quotes eld
39152 t was in the spring
39153 \begin_inset Quotes erd
39160 ; to color the initial, you must insert this command before the initial:
39161 \begin_inset Newline newline
39175 \begin_inset Newline newline
39183 \begin_inset Quotes eld
39187 \begin_inset Quotes erd
39191 \begin_inset Quotes eld
39195 \begin_inset Quotes erd
39199 \begin_inset Quotes eld
39203 \begin_inset Quotes erd
39207 \begin_inset Quotes eld
39211 \begin_inset Quotes erd
39215 \begin_inset Quotes eld
39219 \begin_inset Quotes erd
39223 \begin_inset Quotes eld
39227 \begin_inset Quotes erd
39231 \begin_inset Quotes eld
39235 \begin_inset Quotes erd
39239 \begin_inset Quotes eld
39243 \begin_inset Quotes erd
39246 , and add this command to the document preamble:
39247 \begin_inset Newline newline
39254 @ifundefined{textcolor}
39255 \begin_inset Newline newline
39259 \begin_inset space ~
39264 usepackage{color}}{}
39268 \begin_layout Standard
39272 \begin_layout Plain Layout
39286 \begin_inset Note Note
39289 \begin_layout Plain Layout
39290 makes the initial magenta
39298 \begin_layout Initial
39299 \begin_inset Argument 1
39302 \begin_layout Plain Layout
39303 lines=3, lhang=0.33, loversize=0.25
39309 \begin_inset Argument 2
39312 \begin_layout Plain Layout
39313 \begin_inset Formula $\mathcal{I}$
39322 \begin_inset Argument 3
39325 \begin_layout Plain Layout
39326 t was in the spring
39331 of the year 1894 that all London was interested, and the fashionable world
39332 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39333 and inexplicable circumstances.
39334 The public has already learned those particulars of the crime which came
39335 out in the police investigation, but a good deal was suppressed upon that
39336 occasion, since the case for the prosecution was so overwhelmingly strong
39337 that it was not necessary to bring forward all the facts.
39341 \begin_layout Standard
39345 \begin_layout Plain Layout
39355 \begin_inset Note Note
39358 \begin_layout Plain Layout
39359 The following will be displayed when the \SpecialChar LaTeX
39372 \begin_layout Standard
39373 You need to install the \SpecialChar LaTeX
39378 to see the following part of this section in the output.
39381 \begin_layout Standard
39385 \begin_layout Plain Layout
39397 \begin_layout Chapter
39398 External Document Parts
39399 \begin_inset Index idx
39402 \begin_layout Plain Layout
39403 External Document Parts
39411 \begin_layout Standard
39414 Insert\SpecialChar menuseparator
39417 you can insert external material into your document.
39421 \begin_layout Description
39423 \begin_inset space ~
39426 Document Another \SpecialChar LyX
39427 document; its content is directly inserted to your document.
39430 \begin_layout Description
39432 \begin_inset space ~
39435 Text A text document; each line is inserted in your document as a separate
39439 \begin_layout Description
39441 \begin_inset space ~
39445 \begin_inset space ~
39449 \begin_inset space ~
39452 Lines A text document; text lines are inserted in your document continuously
39453 but an empty text line creates a new paragraph.
39456 \begin_layout Description
39458 \begin_inset space ~
39461 Material Files in various formats.
39464 \begin_layout Description
39466 \begin_inset space ~
39469 Document \SpecialChar LyX
39470 or \SpecialChar LaTeX
39474 \begin_layout Section
39476 \begin_inset Index idx
39479 \begin_layout Plain Layout
39480 External Document Parts ! External Material
39488 \begin_layout Standard
39489 The external material feature allows you to insert files into your document
39490 without converting them to a format that can be read by the document output
39493 takes care of the necessary conversions.
39494 This is similar to images that can be inserted in various image formats
39495 in \SpecialChar LyX
39497 When you have enabled Instant Preview in \SpecialChar LyX
39498 's preferences under
39501 \begin_inset space ~
39505 \begin_inset space ~
39508 feel\SpecialChar menuseparator
39511 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39515 \begin_layout Standard
39516 External material can be inserted via the
39520 dialog that is accessible with the menu
39522 Insert\SpecialChar menuseparator
39523 File\SpecialChar menuseparator
39525 \begin_inset space ~
39531 Currently the following file types (
39538 \begin_layout Description
39540 \begin_inset space ~
39543 diagram This template supports chess position diagrams made with the program
39547 \begin_inset CommandInset href
39550 target "http://en.wikipedia.org/wiki/XBoard"
39560 \begin_layout Description
39562 \begin_inset space ~
39565 diagram This template supports diagrams created with the program
39568 \begin_inset CommandInset href
39571 target "http://en.wikipedia.org/wiki/Dia_(software)"
39581 \begin_layout Description
39583 \begin_inset space ~
39586 figure This template supports specific scalable images derived from scalable
39587 vector graphics (SVG), in which the contained text is replaced by a version
39588 typeset by \SpecialChar LaTeX
39589 (and hence in the current document font).
39590 It relies on a feature of the program
39593 \begin_inset CommandInset href
39596 target "https://inkscape.org/"
39603 which creates a special PDF or EPS and \SpecialChar LaTeX
39604 file from a given SVG file (in
39609 itself, the feature is available via the option
39611 Omit text in PDF and create LaTeX file
39613 when saving a drawing as PDF or EPS).
39614 The benefit of such files is a uniform text style throughout the whole
39616 \begin_inset Newline newline
39619 The external template reads SVG files and uses a converter program to generate
39620 the respective PDF\SpecialChar breakableslash
39621 EPS and \SpecialChar LaTeX
39630 on the fly, so you don't have to export those files yourself.
39631 If you prefer the latter and want use given
39647 files instead, simply input the respective
39660 \begin_inset space ~
39664 \begin_inset CommandInset ref
39666 reference "sec:Child-Documents"
39670 ) rather than using this template.
39671 \begin_inset Newline newline
39674 You can use \SpecialChar TeX
39675 code commands such as
39688 \begin_inset space \space{}
39691 in the text of the SVG.
39692 The size of the font will be taken from the settings of the \SpecialChar LyX
39695 \begin_inset CommandInset citation
39702 for more information and examples.
39705 \begin_layout Description
39707 \begin_inset space ~
39711 \begin_inset space ~
39714 music This template is used for music notation typeset with the program
39715 \begin_inset Newline linebreak
39721 \begin_inset CommandInset href
39724 target "http://en.wikipedia.org/wiki/LilyPond"
39732 For \SpecialChar LyX
39733 's extended support for LilyPond have a look at \SpecialChar LyX
39741 \begin_layout Description
39743 \begin_inset space ~
39746 pages With this template you can insert PDF documents to your document.
39747 To specify the range of pages that should be included, use the option
39757 LaTeX and LyX options
39760 The argument of this option is a comma separated list, containing page
39761 numbers (insert as option
39765 ), ranges of page numbers (
39769 ) or any combination.
39770 To insert empty pages use {}.
39772 \begin_inset space \thinspace{}
39776 \begin_inset space ~
39781 pages={3,{},8-11,15}
39783 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39784 Page ranges are specified in the syntax
39793 This selects all pages from
39806 defaults to the first page; omitting
39810 defaults to the last page of the document.
39811 The last page can also be selected with the keyword
39816 (This is only permitted in a page range.) So
39820 will insert all pages of the document and
39824 will insert all pages in reverse order.
39825 If the pages option is not specified, only the first page of the PDF is
39827 \begin_inset Newline newline
39834 inserts the pages with their original size, if this option is not given,
39835 the pages will be resized to fith the width of the page of your document.
39840 you can specify the width and height of the input pages and their rotation.
39841 If another width than 100
39842 \begin_inset space \thinspace{}
39845 Scale% is used, the option
39849 will be overwritten.
39850 For more info and possible options, have a look into the documentation
39851 of the \SpecialChar LaTeX
39857 \begin_inset CommandInset citation
39865 \begin_inset Index idx
39868 \begin_layout Plain Layout
39870 -packages ! pdfpages
39876 \begin_inset Newline newline
39879 To use this template in a
39883 presentation you need to first insert an
39887 environment and in a subsequent paragraph a \SpecialChar TeX
39888 Code box containing the command
39893 setbeamertemplate{background canvas}{}
39896 Then you can insert as many paragraphs containing the PDFPages template
39898 Behind the included PDF pages you can resume the Beamer presentation by
39899 beginning a new frame or by starting a new section.
39900 To avoid stray blank pages prior to the PDF pages, make sure to use the
39905 alignment for the paragraph containing the template.
39906 \begin_inset Newline newline
39909 Here is an included PDF which is rotated by -5°:
39910 \begin_inset External
39912 filename clipart/Abstract.pdf
39913 extra LaTeX "noautoscale, pages=-"
39915 rotateOrigin bottomleft
39922 \begin_layout Description
39924 \begin_inset space ~
39927 image This can be used for bitmap images.
39928 The image can be treated in the
39932 dialog like the images that are usually included via the
39936 dialog as described in section
39937 \begin_inset space ~
39941 \begin_inset CommandInset ref
39943 reference "sec:Graphics-Dialog"
39948 Here is an inserted raster image:
39949 \begin_inset External
39950 template RasterImage
39951 filename clipart/ToolbarEnvBox.png
39958 \begin_layout Description
39959 Spreadsheet With this template you can insert spreadsheets
39960 \begin_inset space \thinspace{}
39964 \begin_inset space \thinspace{}
39967 tables in the format of
39970 \begin_inset CommandInset href
39973 target "http://en.wikipedia.org/wiki/Gnumeric"
39981 \begin_inset CommandInset href
39983 name "OpenDocument"
39984 target "http://en.wikipedia.org/wiki/OpenDocument"
39990 \begin_inset CommandInset href
39992 name "Microsoft Office XML"
39993 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39999 \begin_inset CommandInset href
40001 name "Office Open XML"
40002 target "http://en.wikipedia.org/wiki/Office_Open_XML"
40008 For this feature \SpecialChar LyX
40009 must have found the program
40013 during its configuration.
40014 This program is part of Gnumeric, so that you must have Gnumeric installed,
40015 also if you don't have tables in the Gnumeric format.
40016 For examples and possible limitations have a look at \SpecialChar LyX
40024 \begin_layout Description
40026 \begin_inset space ~
40029 graphics This can be used for vector graphics.
40030 The image can be treated in the
40034 dialog like the images that are usually included via the
40038 dialog as described in section
40039 \begin_inset space ~
40043 \begin_inset CommandInset ref
40045 reference "sec:Graphics-Dialog"
40050 Here is an inserted vector graphics:
40051 \begin_inset External
40052 template VectorGraphics
40053 filename clipart/SVG-Drawing.svg
40062 \begin_layout Description
40064 \begin_inset space ~
40067 figure This template supports images created with the program
40068 \begin_inset CommandInset href
40071 target "http://en.wikipedia.org/wiki/Xfig"
40079 \begin_layout Standard
40080 When you use the option
40092 dialog, only the path to the inserted file is shown in the output.
40093 \begin_inset Newline newline
40096 External material is displayed in \SpecialChar LyX
40097 either as a box like this:
40098 \begin_inset Graphics
40099 filename clipart/ExternalMaterial.png
40101 scaleBeforeRotation
40105 or as image, depending on the option
40111 LaTeX and LyX options
40116 \begin_layout Standard
40123 manual explains how you can define your own templates.
40126 \begin_layout Section
40128 \begin_inset CommandInset label
40130 name "sec:Child-Documents"
40135 \begin_inset Index idx
40138 \begin_layout Plain Layout
40139 External Document Parts ! Child Documents
40145 \begin_inset Index idx
40148 \begin_layout Plain Layout
40157 \begin_layout Standard
40158 Child documents are used if you have a long document consisting of several
40159 larger parts or sections.
40160 For maintenance it is often useful and sometimes even required to split
40161 the document into several files that can be revised separately.
40162 The different documents are then the so called
40163 \begin_inset Quotes eld
40167 \begin_inset Quotes erd
40170 , and a master document connects them to print the full document or parts
40172 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40174 the bibliography, and labels for cross-references.
40177 \begin_layout Standard
40178 To be able to work on child documents without the need to open their master,
40179 specify in the child document the master in the menu
40181 Document\SpecialChar menuseparator
40182 Settings\SpecialChar menuseparator
40184 \begin_inset space ~
40190 This master document will then be used in the background by \SpecialChar LyX
40192 the child document.
40195 \begin_layout Standard
40196 Included documents are displayed in \SpecialChar LyX
40197 as a box like this:
40198 \begin_inset Graphics
40199 filename clipart/ChildDocument.png
40201 scaleBeforeRotation
40205 To include child documents in a master document use the menu
40207 Insert\SpecialChar menuseparator
40208 File\SpecialChar menuseparator
40210 \begin_inset space ~
40216 A dialog pops up where you can choose between four include methods:
40219 \begin_layout Description
40220 Include You can include \SpecialChar LyX
40221 and \SpecialChar LaTeX
40231 dialog, the included document will be opened in \SpecialChar LyX
40232 in a new file tab so that
40234 \begin_inset Newline newline
40240 \begin_layout Standard
40241 Here is a child document inserted using
40246 \begin_inset CommandInset include
40247 LatexCommand include
40248 filename "DummyDocument1.lyx"
40255 \begin_layout Standard
40256 The section numbering includes the sections of the included files in the
40257 order they are inserted in the master document.
40258 The included example document has for example a subsection that is numbered
40259 as a subsection of this section.
40260 Labels of included documents can be referenced: Subsection
40261 \begin_inset space ~
40265 \begin_inset CommandInset ref
40267 reference "subsec:External-Subsection-1"
40274 \begin_layout Standard
40275 The preamble of the child document is ignored; only the preamble of the
40276 master document is used.
40277 Branches in child documents will be ignored by the master document when
40278 the master document does not have a branch with the same name.
40279 Included documents are inserted starting on a new page and ending with
40283 \begin_layout Standard
40284 \begin_inset Note Greyedout
40287 \begin_layout Plain Layout
40292 If you have included a \SpecialChar LyX
40293 or \SpecialChar LaTeX
40294 file, you are warned when you export/view the
40295 document in case the child document uses another document class than the
40296 master document as this will lead to unexpected outputs.
40304 \begin_layout Description
40305 Input This method is very similar to the Include method.
40306 The differences are:
40310 \begin_layout Itemize
40311 Input files don't start with a new page and don't end with a page break.
40314 \begin_layout Itemize
40315 Input files can be previewed in \SpecialChar LyX
40319 \begin_inset space ~
40324 is enabled in \SpecialChar LyX
40325 's preferences under
40328 \begin_inset space ~
40332 \begin_inset space ~
40335 feel\SpecialChar menuseparator
40341 \begin_layout Itemize
40342 You cannot exclude Input files via the menu
40344 Document\SpecialChar menuseparator
40345 Settings\SpecialChar menuseparator
40352 \begin_layout Standard
40353 Here is a child document inserted using
40358 \begin_inset CommandInset include
40360 filename "DummyDocument2.lyx"
40367 \begin_layout Description
40368 Verbatim With this method any text file can be included.
40369 The file is shown in the output with its source code; no command used in
40370 the text is invoked.
40371 You can use the option
40373 Mark spaces in output
40375 that displays the character
40376 \begin_inset Quotes eld
40383 \begin_layout Plain Layout
40393 \begin_inset Quotes erd
40396 for every space character in the source code.
40397 The difference from the method via the menu
40399 Insert\SpecialChar menuseparator
40400 File\SpecialChar menuseparator
40402 \begin_inset space ~
40407 is that the document content is not shown in \SpecialChar LyX
40411 \begin_layout Standard
40412 Here is a child document inserted as Verbatim:
40413 \begin_inset CommandInset include
40414 LatexCommand verbatiminput
40415 filename "DummyTextDocument.txt"
40420 \begin_inset VSpace bigskip
40423 Here is a child document inserted as Verbatim using the
40425 Mark spaces in output
40428 \begin_inset CommandInset include
40429 LatexCommand verbatiminput*
40430 filename "DummyTextDocument.txt"
40437 \begin_layout Standard
40438 \begin_inset VSpace bigskip
40444 \begin_layout Standard
40445 \begin_inset Note Greyedout
40448 \begin_layout Plain Layout
40453 As you can see in the examples above, the text of the documents included
40458 is not broken at the end of the document lines.
40466 \begin_layout Description
40467 Listings This type is described in chapter
40468 \begin_inset space ~
40472 \begin_inset CommandInset ref
40474 reference "cha:Program-Code-Listings"
40481 \begin_layout Standard
40482 \begin_inset Note Greyedout
40485 \begin_layout Plain Layout
40490 Including the same document twice in a document using different methods
40491 could cause \SpecialChar LaTeX
40500 \begin_layout Standard
40501 If you want to view/export only selected children of your master document,
40502 either because you want to save compiling time or because you want to distribut
40503 e single chapters of the book you are just writing, you can exclude children
40505 This is done via the menu
40507 Document\SpecialChar menuseparator
40508 Settings\SpecialChar menuseparator
40512 You can exclude\SpecialChar breakableslash
40513 include children by double-clicking on the
40517 column of the respective child document in the list (note that this only
40518 works for documents embedded via
40519 \begin_inset Quotes eld
40523 \begin_inset Quotes erd
40527 \begin_inset Quotes eld
40531 \begin_inset Quotes erd
40537 Maintain counters and references
40539 is enabled, \SpecialChar LyX
40540 will assure that all page numbers, references etc.
40541 \begin_inset space ~
40544 are correct as if the whole document was processed.
40545 This is useful if you want the selected sub-documents to look exactly as
40546 in the context of the whole document.
40547 However, \SpecialChar LyX
40548 needs to process the whole document in the background for this
40550 So if you want to save compile time and if counters and references do not
40551 need to be correct, disable this checkbox.
40554 \begin_layout Standard
40555 Alternatively, you can put each included file into a branch.
40559 \begin_layout Plain Layout
40560 Branches are described in section
40564 of the \SpecialChar LyX
40574 By enabling\SpecialChar breakableslash
40575 disabling branches you can decide which included files will
40576 appear in the output.
40577 This has the advantage that it also works with Input'ed sub-documents.
40578 However, counters and references will not be maintained with this approach.
40581 \begin_layout Chapter
40582 Program Code Listings
40583 \begin_inset CommandInset label
40585 name "cha:Program-Code-Listings"
40590 \begin_inset Index idx
40593 \begin_layout Plain Layout
40600 \begin_inset Index idx
40603 \begin_layout Plain Layout
40610 \begin_inset Index idx
40613 \begin_layout Plain Layout
40622 \begin_layout Standard
40623 To include and typeset program code you can use the
40627 inset that can be inserted via the menu
40629 Insert\SpecialChar menuseparator
40633 The \SpecialChar LaTeX
40639 \begin_inset Index idx
40642 \begin_layout Plain Layout
40644 -packages ! listings
40654 \begin_inset Index idx
40657 \begin_layout Plain Layout
40664 provide a powerful and flexible way to insert program source code into
40666 One can only use one of these packages in a document.
40671 is used by default.
40674 \begin_layout Standard
40675 \begin_inset Note Note
40678 \begin_layout Plain Layout
40684 does NOT want to encourage users to add the
40688 option to converter definitions.
40689 It works, but it is a huge security risk.
40690 There is an active discussion about how to handle this.
40691 Once that's been resolved, this can be updated appropriately.
40694 \begin_layout Plain Layout
40698 \begin_layout Plain Layout
40703 , you need to select it as the syntax highlighting package in the document
40713 requires also additionally the module
40725 \begin_layout Plain Layout
40726 Under \SpecialChar LyX
40731 is already installed.
40740 for the \SpecialChar LaTeX
40742 If you want for example view or export your document as the format
40745 \begin_inset space ~
40750 , go to the \SpecialChar LyX
40751 preferences and there to the section
40754 \begin_inset space ~
40757 Handling\SpecialChar menuseparator
40761 There go to the entry
40764 \begin_inset space ~
40768 \begin_inset space ~
40773 and look at the field
40778 There you see by default the content
40779 \begin_inset Newline newline
40787 \begin_inset Newline newline
40791 \begin_inset Newline newline
40796 pdflatex $$i -shell-escape
40797 \begin_inset Newline newline
40806 button and subsequently
40815 The same can be done for the output formats
40818 \begin_inset space ~
40826 \begin_inset space ~
40839 \begin_layout Standard
40840 Right-clicking on a listings inset opens the context menu containing where
40841 you can set the listings format.
40844 \begin_layout Standard
40845 By default, a listing starts a new paragraph in the output.
40846 The placement option
40849 \begin_inset space ~
40854 prints the listing inline like this:
40855 \begin_inset listings
40856 lstparams "language={C++}"
40860 \begin_layout Plain Layout
40868 \begin_inset Newline newline
40875 creates a listings float where you can specify the placement options
40876 \begin_inset Quotes eld
40884 \begin_inset Quotes erd
40888 \begin_inset Quotes eld
40896 \begin_inset Quotes erd
40900 \begin_inset Quotes eld
40908 \begin_inset Quotes erd
40912 \begin_inset Quotes eld
40920 \begin_inset Quotes erd
40923 corresponding to the float placement options described in section
40924 \begin_inset space ~
40928 \begin_inset CommandInset ref
40930 reference "sec:Float-Placement"
40935 The placement options can be mixed and are inserted without any separation,
40937 \begin_inset space \thinspace{}
40941 \begin_inset space \space{}
40945 \begin_inset Quotes eld
40953 \begin_inset Quotes erd
40958 \begin_inset Quotes eld
40962 \begin_inset Quotes erd
40965 has sometimes no effect, but you don't need to use the
40969 option in this case as also non-float listings can have captions and be
40973 \begin_layout Standard
40974 You can add captions to listings that are not inline with the menu
40976 Insert\SpecialChar menuseparator
40980 Listings can be referenced like floats: Listing
40981 \begin_inset space ~
40985 \begin_inset CommandInset ref
40987 reference "lst:Example-Listing"
40992 A list of listings which contains all listings with captions can be created
40995 Insert\SpecialChar menuseparator
40997 \begin_inset space ~
41001 \begin_inset space ~
41004 TOC\SpecialChar menuseparator
41008 The list entries are the listing caption and the listing number.
41011 \begin_layout Standard
41012 \begin_inset listings
41013 lstparams "language=Python"
41017 \begin_layout Plain Layout
41019 \begin_inset Caption Standard
41021 \begin_layout Plain Layout
41022 \begin_inset CommandInset label
41024 name "lst:Example-Listing"
41028 Example Listing float
41033 # Example listing float
41036 \begin_layout Plain Layout
41041 \begin_layout Plain Layout
41043 'this is a python function'
41046 \begin_layout Plain Layout
41056 \begin_layout Standard
41057 \begin_inset Note Greyedout
41060 \begin_layout Plain Layout
41069 package places captions before the listing by default.
41070 \begin_inset Newline newline
41077 package places them after the listing by default if it is floating.
41078 If tit is not floating caption will be typeset before the listing if it
41079 is inserted to its first line, otherwise it will be typeset after the listing.
41080 If you want to force the placement in avery case before the listing, you
41081 have to add the following lines as last thing to the preamble:
41082 \begin_inset Newline newline
41089 @ifundefined{newfloat}
41090 \begin_inset Newline newline
41094 \begin_inset Phantom HPhantom
41097 \begin_layout Plain Layout
41100 \begin_inset space ~
41110 usepackage{float}}{}
41111 \begin_inset Newline newline
41116 floatstyle{plaintop}
41119 \begin_inset Note Note
41122 \begin_layout Plain Layout
41127 will be loaded automatically by \SpecialChar LyX
41128 when you use special document-wide float
41129 placement settings.
41130 To avoid that it is loaded twice the command
41136 is used in the above command.
41149 \begin_layout Standard
41150 When you have set a programming language in the listings dialog, the keywords
41151 of this language will be recognized and specially typeset in the output.
41152 In the example listings the Python keyword
41153 \begin_inset Quotes eld
41157 \begin_inset Quotes erd
41160 is recognized and printed bold in the output.
41163 \begin_layout Standard
41164 \begin_inset Note Greyedout
41167 \begin_layout Plain Layout
41172 If you don't get bold keywords when using typewriter fonts, your
41176 font probably doesn't provide a bold shape.
41177 In this case select a different one in the menu
41179 Document\SpecialChar menuseparator
41180 Settings\SpecialChar menuseparator
41192 provide bold shapes.)
41200 \begin_layout Standard
41204 \begin_inset space ~
41209 of the listings dialog you can specify the line numbering style.
41210 You can insert a number to specify which lines are numbered in the field
41217 \begin_inset space \thinspace{}
41221 \begin_inset space \space{}
41225 \begin_inset Quotes eld
41229 \begin_inset Quotes erd
41232 , only every 3rd line will be numbered.
41235 \begin_layout Standard
41236 You can furthermore specify a range of lines; only these will then appear
41240 Extended character table
41242 is only meaningful for the
41246 package and should be used when you use national characters like the German
41247 umlauts in the listing.
41248 \begin_inset Newline newline
41251 Here is an example listing with left line numbering, step
41252 \begin_inset Quotes eld
41256 \begin_inset Quotes erd
41260 \begin_inset Quotes eld
41264 \begin_inset Quotes erd
41268 \begin_inset Quotes eld
41271 Extended character table
41272 \begin_inset Quotes erd
41276 \begin_inset Quotes eld
41280 \begin_inset space ~
41284 \begin_inset space ~
41288 \begin_inset Quotes erd
41292 \begin_inset space \thinspace{}
41296 \begin_inset space \thinspace{}
41302 \begin_layout Standard
41303 \begin_inset listings
41304 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41308 \begin_layout Plain Layout
41313 \begin_layout Plain Layout
41315 'this is a python function'
41318 \begin_layout Plain Layout
41323 \begin_layout Plain Layout
41328 \begin_layout Plain Layout
41330 'This is a German word: Tschüß'
41333 \begin_layout Plain Layout
41338 \begin_layout Plain Layout
41343 \begin_layout Plain Layout
41345 'this is a python function'
41348 \begin_layout Plain Layout
41358 \begin_layout Standard
41359 When you have tabulators in your listing, you can specify the number of
41360 characters that are spanned by a tabulator in the field
41363 \begin_inset space ~
41371 \begin_layout Standard
41372 \begin_inset Note Greyedout
41375 \begin_layout Plain Layout
41380 Due to a bug in the
41384 package the line numbering is shifted by a line by every previous listing.
41385 That's the reason why the lines 2 and 5 are numbered in the above listing
41386 and not the lines 3 and 6.
41394 \begin_layout Standard
41395 \begin_inset VSpace bigskip
41401 \begin_layout Standard
41402 It is also possible to print lines from a file as listing.
41403 To do this, use the menu
41405 Insert\SpecialChar menuseparator
41406 File\SpecialChar menuseparator
41409 and choose the type
41417 \begin_layout Plain Layout
41418 The other child document types are described in section
41419 \begin_inset space ~
41423 \begin_inset CommandInset ref
41425 reference "sec:Child-Documents"
41434 In the child document dialog you can specify the listing parameters in
41436 To show a list of all available parameters, type in a question mark
41437 \begin_inset Quotes eld
41441 \begin_inset Quotes erd
41447 \begin_layout Standard
41448 To reference child document listings, write a label text into the corresponding
41449 field of the child document dialog.
41450 The label can then be referenced using the menu
41452 Insert\SpecialChar menuseparator
41458 \begin_layout Standard
41460 \begin_inset space ~
41464 \begin_inset CommandInset ref
41466 reference "lst:file-listing"
41470 is an example for a listing of a file; there the lines 10
41471 \begin_inset space \thinspace{}
41475 \begin_inset space \thinspace{}
41478 15 of this \SpecialChar LyX
41482 \begin_layout Standard
41483 \begin_inset CommandInset include
41484 LatexCommand lstinputlisting
41485 filename "EmbeddedObjects.lyx"
41486 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41493 \begin_layout Standard
41494 \begin_inset VSpace bigskip
41500 \begin_layout Standard
41501 Inserting a formula into a listing can be done the following way:
41504 \begin_layout Enumerate
41505 Open the listings dialog and add
41506 \begin_inset Newline newline
41514 \begin_inset Newline newline
41517 to the field of the
41524 \begin_layout Enumerate
41525 Create a formula outside the listing
41528 \begin_layout Enumerate
41529 Copy the content of the formula (not the formula inset) to the clipboard
41539 \begin_layout Enumerate
41540 In the listing write
41541 \begin_inset Quotes eld
41549 \begin_inset Quotes erd
41552 and copy from the clipboard between the dollar-signs (shortcut
41561 \begin_layout Standard
41562 \begin_inset listings
41563 lstparams "language=Python,mathescape=true"
41567 \begin_layout Plain Layout
41569 \begin_inset Caption Standard
41571 \begin_layout Plain Layout
41572 Example Listing float containing a formula
41577 # Example listing float
41580 \begin_layout Plain Layout
41585 \begin_layout Plain Layout
41598 \begin_layout Plain Layout
41608 \begin_layout Standard
41609 \begin_inset VSpace bigskip
41615 \begin_layout Standard
41616 Global listings settings can be set in the
41618 Document\SpecialChar menuseparator
41619 Settings\SpecialChar menuseparator
41623 To get there a list of available options, type in a question mark
41624 \begin_inset Quotes eld
41628 \begin_inset Quotes erd
41634 \begin_layout Standard
41635 For more information about the
41643 packages, we refer to their documentation
41644 \begin_inset CommandInset citation
41646 key "listings,minted"
41654 \begin_layout Standard
41655 \begin_inset Newpage newpage
41661 \begin_layout Chapter
41663 Units available in \SpecialChar LyX
41665 \begin_inset Index idx
41668 \begin_layout Plain Layout
41675 \begin_inset CommandInset label
41677 name "cha:Units-available-in"
41684 \begin_layout Standard
41685 To understand the units described in this documentation, Table
41686 \begin_inset space ~
41690 \begin_inset CommandInset ref
41692 reference "tab:Units"
41696 explains all units available in \SpecialChar LyX
41700 \begin_layout Standard
41701 \begin_inset Float table
41707 \begin_layout Plain Layout
41708 \begin_inset Caption Standard
41710 \begin_layout Plain Layout
41711 \begin_inset CommandInset label
41725 \begin_layout Plain Layout
41726 \begin_inset VSpace medskip
41732 \begin_layout Plain Layout
41734 \begin_inset Tabular
41735 <lyxtabular version="3" rows="21" columns="3">
41736 <features tabularvalignment="middle">
41737 <column alignment="center" valignment="top">
41738 <column alignment="center" valignment="middle" width="50col%">
41739 <column alignment="center" valignment="top">
41741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41744 \begin_layout Plain Layout
41750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41753 \begin_layout Plain Layout
41759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41762 \begin_layout Plain Layout
41771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41774 \begin_layout Plain Layout
41780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41783 \begin_layout Plain Layout
41785 \begin_inset space \thinspace{}
41789 \begin_inset space \thinspace{}
41797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41800 \begin_layout Plain Layout
41808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41811 \begin_layout Plain Layout
41817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41820 \begin_layout Plain Layout
41822 \begin_inset space \thinspace{}
41826 \begin_inset space \thinspace{}
41834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41837 \begin_layout Plain Layout
41845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41848 \begin_layout Plain Layout
41854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41857 \begin_layout Plain Layout
41863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41866 \begin_layout Plain Layout
41874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41877 \begin_layout Plain Layout
41883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41886 \begin_layout Plain Layout
41888 \begin_inset space \thinspace{}
41892 \begin_inset Formula $\approx$
41896 \begin_inset space \thinspace{}
41904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41907 \begin_layout Plain Layout
41915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41918 \begin_layout Plain Layout
41924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41927 \begin_layout Plain Layout
41937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41940 \begin_layout Plain Layout
41948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41951 \begin_layout Plain Layout
41957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41960 \begin_layout Plain Layout
41970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41973 \begin_layout Plain Layout
41981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41984 \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" rightline="true" usebox="none">
42002 \begin_layout Plain Layout
42010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42013 \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" rightline="true" usebox="none">
42031 \begin_layout Plain Layout
42039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42042 \begin_layout Plain Layout
42048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42051 \begin_layout Plain Layout
42053 \begin_inset space \thinspace{}
42057 \begin_inset space \thinspace{}
42065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42068 \begin_layout Plain Layout
42076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42079 \begin_layout Plain Layout
42085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42088 \begin_layout Plain Layout
42090 \begin_inset space \thinspace{}
42094 \begin_inset space \thinspace{}
42102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42105 \begin_layout Plain Layout
42113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42116 \begin_layout Plain Layout
42122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42125 \begin_layout Plain Layout
42127 \begin_inset space \thinspace{}
42131 \begin_inset space \thinspace{}
42139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42142 \begin_layout Plain Layout
42150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42153 \begin_layout Plain Layout
42159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42162 \begin_layout Plain Layout
42163 scaled point (65536
42164 \begin_inset space \thinspace{}
42168 \begin_inset space \thinspace{}
42176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42179 \begin_layout Plain Layout
42187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42190 \begin_layout Plain Layout
42196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42199 \begin_layout Plain Layout
42205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42208 \begin_layout Plain Layout
42218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42221 \begin_layout Plain Layout
42227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42230 \begin_layout Plain Layout
42231 % of height between baselines of two subsequent text lines
42236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42239 \begin_layout Plain Layout
42249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42252 \begin_layout Plain Layout
42258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42261 \begin_layout Plain Layout
42267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42270 \begin_layout Plain Layout
42280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42283 \begin_layout Plain Layout
42289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42292 \begin_layout Plain Layout
42298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42301 \begin_layout Plain Layout
42311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42314 \begin_layout Plain Layout
42320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42323 \begin_layout Plain Layout
42329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42332 \begin_layout Plain Layout
42342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42345 \begin_layout Plain Layout
42351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42354 \begin_layout Plain Layout
42355 % of original image width
42360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42363 \begin_layout Plain Layout
42371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42374 \begin_layout Plain Layout
42380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42383 \begin_layout Plain Layout
42389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42392 \begin_layout Plain Layout
42402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42405 \begin_layout Plain Layout
42411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42414 \begin_layout Plain Layout
42420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42423 \begin_layout Plain Layout
42444 \begin_layout Chapter
42445 Output File Formats with Graphics
42446 \begin_inset CommandInset label
42448 name "cha:Output-File-Formats"
42455 \begin_layout Section
42457 \begin_inset Index idx
42460 \begin_layout Plain Layout
42467 \begin_inset Index idx
42470 \begin_layout Plain Layout
42475 \begin_layout Plain Layout
42486 \begin_layout Plain Layout
42501 \begin_layout Standard
42502 This file type has the extension
42503 \begin_inset Quotes eld
42511 \begin_inset Quotes erd
42516 \begin_inset Quotes eld
42520 \begin_inset Quotes erd
42523 (DVI), because it is completely portable; you can move them from one machine
42524 to another without needing to do any sort of conversion.
42525 At the time when this file-format was developed, this was no matter of
42527 DVIs are used for quick previews and as pre-stage for other output formats,
42531 \begin_layout Standard
42532 \begin_inset Note Greyedout
42535 \begin_layout Plain Layout
42540 DVI-files do not contain images; they will only be a linked.
42545 So don't forget this, if you move your
42549 file to another computer.
42550 This property can also slow down your computer when you view the DVI, because
42551 the DVI-viewer has to convert the image in the background to make it visible
42552 when you scroll in the DVI.
42553 So it is recommended that you use PDF for files with many images.
42556 \begin_layout Standard
42557 You can export your document to DVI by using the menu
42559 File\SpecialChar menuseparator
42560 Export\SpecialChar menuseparator
42564 You can view your document as DVI via the
42571 \begin_layout Section
42573 \begin_inset Index idx
42576 \begin_layout Plain Layout
42577 File Formats ! PostScript
42583 \begin_inset Index idx
42586 \begin_layout Plain Layout
42591 \begin_layout Plain Layout
42602 \begin_layout Plain Layout
42617 \begin_layout Standard
42618 This file type has the extension
42619 \begin_inset Quotes eld
42627 \begin_inset Quotes erd
42631 PostScript was developed by the company
42635 as a printer language.
42636 The file therefore contains commands that the printer uses to print the
42638 PostScript can be seen as a
42639 \begin_inset Quotes eld
42642 programming language
42643 \begin_inset Quotes erd
42646 ; you can calculate with it and draw diagrams and images.
42650 \begin_layout Plain Layout
42651 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42658 \begin_inset CommandInset citation
42670 Due to this ability, the files are often bigger than PDFs.
42673 \begin_layout Standard
42674 PostScript can only contain images in the format
42675 \begin_inset Quotes eld
42678 Encapsulated PostScript
42679 \begin_inset Quotes erd
42682 (EPS, file extension
42683 \begin_inset Quotes eld
42691 \begin_inset Quotes erd
42695 As \SpecialChar LyX
42696 allows you to use any known image format in your document, it has to
42697 convert images in the background to EPS.
42699 \begin_inset space ~
42703 \begin_inset space ~
42706 images in your document, \SpecialChar LyX
42708 \begin_inset space ~
42711 conversions whenever you view or export your document.
42712 This will slow down your work flow with \SpecialChar LyX
42714 So if you plan to use PostScript, you can insert your images directly as
42715 EPS to avoid this problem.
42718 \begin_layout Standard
42719 You can export your document to PostScript using the menu
42721 File\SpecialChar menuseparator
42722 Export\SpecialChar menuseparator
42726 You can view your document as PostScript via the
42733 \begin_layout Section
42735 \begin_inset Index idx
42738 \begin_layout Plain Layout
42745 \begin_inset Index idx
42748 \begin_layout Plain Layout
42757 \begin_layout Standard
42758 This file type has the extension
42759 \begin_inset Quotes eld
42767 \begin_inset Quotes erd
42772 \begin_inset Quotes eld
42775 Portable Document Format
42776 \begin_inset Quotes erd
42779 (PDF) was developed by
42783 as a derivative of PostScript.
42784 It is more compressed and it uses fewer commands than PostScript.
42786 \begin_inset Quotes eld
42790 \begin_inset Quotes erd
42793 implies, it can be processed at any computer system and the printed output
42794 looks exactly the same.
42797 \begin_layout Standard
42798 PDF can contain images in its own PDF format, in the format
42799 \begin_inset Quotes eld
42802 Joint Photographic Experts Group
42803 \begin_inset Quotes erd
42806 (JPG, file extension
42807 \begin_inset Quotes eld
42815 \begin_inset Quotes erd
42819 \begin_inset Quotes eld
42827 \begin_inset Quotes erd
42830 ), and in the format
42831 \begin_inset Quotes eld
42834 Portable Network Graphics
42835 \begin_inset Quotes erd
42838 (PNG, file extension
42839 \begin_inset Quotes eld
42847 \begin_inset Quotes erd
42851 Nevertheless you can use any other image format, because \SpecialChar LyX
42853 in the background to one of these formats.
42854 But as described in the section about PostScript, the image conversion
42855 will slow down your work flow.
42856 So it is recommended that you use images in one of the three mentioned
42860 \begin_layout Standard
42861 You can export your document to PDF via the menu
42863 File\SpecialChar menuseparator
42866 in three different ways:
42869 \begin_layout Description
42871 \begin_inset space ~
42874 (ps2pdf) This uses the program
42878 that creates a PDF from a PostScript-version of your file.
42879 The PostScript-version is produced by the program
42883 which uses a DVI-version as intermediate step.
42884 So this export variant consists of three conversions.
42887 \begin_layout Description
42889 \begin_inset space ~
42892 (dvipdfm) This uses the program
42896 that converts your file in the background to DVI and in a second step to
42900 \begin_layout Description
42902 \begin_inset space ~
42905 (pdflatex) This uses the program
42909 that converts your file directly to PDF.
42912 \begin_layout Standard
42913 It is recommended that you use
42916 \begin_inset space ~
42925 supports all features of actual PDF-versions, is quick and works stable.
42930 is not under development and therefore a bit outdated.
42933 \begin_layout Standard
42934 You can view your document as PDF via the
42938 menu or by using a toolbar button.
42941 \begin_layout Chapter
42942 List of dvips color names
42943 \begin_inset CommandInset label
42945 name "chap:List-of-dvips-colornames"
42952 \begin_layout Standard
42953 \begin_inset Tabular
42954 <lyxtabular version="3" rows="17" columns="4">
42955 <features tabularvalignment="middle">
42956 <column alignment="left" valignment="top" width="0pt">
42957 <column alignment="left" valignment="top" width="0pt">
42958 <column alignment="left" valignment="top" width="0pt">
42959 <column alignment="left" valignment="top" width="0pt">
42961 <cell alignment="left" valignment="top" usebox="none">
42964 \begin_layout Plain Layout
42968 \begin_layout Plain Layout
42981 \begin_layout Plain Layout
42992 \begin_layout Plain Layout
43004 <cell alignment="left" valignment="top" usebox="none">
43007 \begin_layout Plain Layout
43011 \begin_layout Plain Layout
43024 \begin_layout Plain Layout
43035 \begin_layout Plain Layout
43047 <cell alignment="left" valignment="top" usebox="none">
43050 \begin_layout Plain Layout
43054 \begin_layout Plain Layout
43067 \begin_layout Plain Layout
43078 \begin_layout Plain Layout
43090 <cell alignment="left" valignment="top" usebox="none">
43093 \begin_layout Plain Layout
43097 \begin_layout Plain Layout
43110 \begin_layout Plain Layout
43121 \begin_layout Plain Layout
43135 <cell alignment="center" valignment="top" usebox="none">
43138 \begin_layout Plain Layout
43142 \begin_layout Plain Layout
43155 \begin_layout Plain Layout
43163 \begin_inset Phantom Phantom
43166 \begin_layout Plain Layout
43176 \begin_layout Plain Layout
43188 <cell alignment="center" valignment="top" usebox="none">
43191 \begin_layout Plain Layout
43195 \begin_layout Plain Layout
43208 \begin_layout Plain Layout
43216 \begin_inset Phantom Phantom
43219 \begin_layout Plain Layout
43229 \begin_layout Plain Layout
43241 <cell alignment="center" valignment="top" usebox="none">
43244 \begin_layout Plain Layout
43248 \begin_layout Plain Layout
43261 \begin_layout Plain Layout
43269 \begin_inset Phantom Phantom
43272 \begin_layout Plain Layout
43282 \begin_layout Plain Layout
43294 <cell alignment="center" valignment="top" usebox="none">
43297 \begin_layout Plain Layout
43301 \begin_layout Plain Layout
43314 \begin_layout Plain Layout
43322 \begin_inset Phantom Phantom
43325 \begin_layout Plain Layout
43335 \begin_layout Plain Layout
43349 <cell alignment="left" valignment="top" usebox="none">
43352 \begin_layout Plain Layout
43356 \begin_layout Plain Layout
43369 \begin_layout Plain Layout
43377 \begin_inset Phantom Phantom
43380 \begin_layout Plain Layout
43390 \begin_layout Plain Layout
43402 <cell alignment="left" valignment="top" usebox="none">
43405 \begin_layout Plain Layout
43409 \begin_layout Plain Layout
43422 \begin_layout Plain Layout
43430 \begin_inset Phantom Phantom
43433 \begin_layout Plain Layout
43443 \begin_layout Plain Layout
43455 <cell alignment="left" valignment="top" usebox="none">
43458 \begin_layout Plain Layout
43462 \begin_layout Plain Layout
43475 \begin_layout Plain Layout
43483 \begin_inset Phantom Phantom
43486 \begin_layout Plain Layout
43496 \begin_layout Plain Layout
43508 <cell alignment="left" valignment="top" usebox="none">
43511 \begin_layout Plain Layout
43515 \begin_layout Plain Layout
43528 \begin_layout Plain Layout
43536 \begin_inset Phantom Phantom
43539 \begin_layout Plain Layout
43549 \begin_layout Plain Layout
43563 <cell alignment="left" valignment="top" usebox="none">
43566 \begin_layout Plain Layout
43570 \begin_layout Plain Layout
43583 \begin_layout Plain Layout
43591 \begin_inset Phantom Phantom
43594 \begin_layout Plain Layout
43604 \begin_layout Plain Layout
43616 <cell alignment="left" valignment="top" usebox="none">
43619 \begin_layout Plain Layout
43623 \begin_layout Plain Layout
43636 \begin_layout Plain Layout
43644 \begin_inset Phantom Phantom
43647 \begin_layout Plain Layout
43657 \begin_layout Plain Layout
43669 <cell alignment="left" valignment="top" usebox="none">
43672 \begin_layout Plain Layout
43676 \begin_layout Plain Layout
43689 \begin_layout Plain Layout
43697 \begin_inset Phantom Phantom
43700 \begin_layout Plain Layout
43710 \begin_layout Plain Layout
43722 <cell alignment="left" valignment="top" usebox="none">
43725 \begin_layout Plain Layout
43729 \begin_layout Plain Layout
43742 \begin_layout Plain Layout
43750 \begin_inset Phantom Phantom
43753 \begin_layout Plain Layout
43763 \begin_layout Plain Layout
43777 <cell alignment="left" valignment="top" usebox="none">
43780 \begin_layout Plain Layout
43784 \begin_layout Plain Layout
43797 \begin_layout Plain Layout
43805 \begin_inset Phantom Phantom
43808 \begin_layout Plain Layout
43818 \begin_layout Plain Layout
43830 <cell alignment="left" valignment="top" usebox="none">
43833 \begin_layout Plain Layout
43837 \begin_layout Plain Layout
43850 \begin_layout Plain Layout
43858 \begin_inset Phantom Phantom
43861 \begin_layout Plain Layout
43871 \begin_layout Plain Layout
43883 <cell alignment="left" valignment="top" usebox="none">
43886 \begin_layout Plain Layout
43890 \begin_layout Plain Layout
43903 \begin_layout Plain Layout
43911 \begin_inset Phantom Phantom
43914 \begin_layout Plain Layout
43924 \begin_layout Plain Layout
43936 <cell alignment="left" valignment="top" usebox="none">
43939 \begin_layout Plain Layout
43943 \begin_layout Plain Layout
43956 \begin_layout Plain Layout
43964 \begin_inset Phantom Phantom
43967 \begin_layout Plain Layout
43977 \begin_layout Plain Layout
43991 <cell alignment="left" valignment="top" usebox="none">
43994 \begin_layout Plain Layout
43998 \begin_layout Plain Layout
44011 \begin_layout Plain Layout
44019 \begin_inset Phantom Phantom
44022 \begin_layout Plain Layout
44032 \begin_layout Plain Layout
44044 <cell alignment="left" valignment="top" usebox="none">
44047 \begin_layout Plain Layout
44051 \begin_layout Plain Layout
44064 \begin_layout Plain Layout
44072 \begin_inset Phantom Phantom
44075 \begin_layout Plain Layout
44085 \begin_layout Plain Layout
44097 <cell alignment="left" valignment="top" usebox="none">
44100 \begin_layout Plain Layout
44104 \begin_layout Plain Layout
44117 \begin_layout Plain Layout
44125 \begin_inset Phantom Phantom
44128 \begin_layout Plain Layout
44138 \begin_layout Plain Layout
44150 <cell alignment="left" valignment="top" usebox="none">
44153 \begin_layout Plain Layout
44157 \begin_layout Plain Layout
44170 \begin_layout Plain Layout
44178 \begin_inset Phantom Phantom
44181 \begin_layout Plain Layout
44191 \begin_layout Plain Layout
44205 <cell alignment="center" valignment="top" usebox="none">
44208 \begin_layout Plain Layout
44212 \begin_layout Plain Layout
44225 \begin_layout Plain Layout
44233 \begin_inset Phantom Phantom
44236 \begin_layout Plain Layout
44246 \begin_layout Plain Layout
44258 <cell alignment="center" valignment="top" usebox="none">
44261 \begin_layout Plain Layout
44265 \begin_layout Plain Layout
44278 \begin_layout Plain Layout
44286 \begin_inset Phantom Phantom
44289 \begin_layout Plain Layout
44299 \begin_layout Plain Layout
44311 <cell alignment="center" valignment="top" usebox="none">
44314 \begin_layout Plain Layout
44318 \begin_layout Plain Layout
44331 \begin_layout Plain Layout
44339 \begin_inset Phantom Phantom
44342 \begin_layout Plain Layout
44352 \begin_layout Plain Layout
44364 <cell alignment="center" valignment="top" usebox="none">
44367 \begin_layout Plain Layout
44371 \begin_layout Plain Layout
44384 \begin_layout Plain Layout
44392 \begin_inset Phantom Phantom
44395 \begin_layout Plain Layout
44405 \begin_layout Plain Layout
44419 <cell alignment="left" valignment="top" usebox="none">
44422 \begin_layout Plain Layout
44426 \begin_layout Plain Layout
44439 \begin_layout Plain Layout
44447 \begin_inset Phantom Phantom
44450 \begin_layout Plain Layout
44460 \begin_layout Plain Layout
44472 <cell alignment="left" valignment="top" usebox="none">
44475 \begin_layout Plain Layout
44479 \begin_layout Plain Layout
44492 \begin_layout Plain Layout
44500 \begin_inset Phantom Phantom
44503 \begin_layout Plain Layout
44513 \begin_layout Plain Layout
44525 <cell alignment="left" valignment="top" usebox="none">
44528 \begin_layout Plain Layout
44532 \begin_layout Plain Layout
44545 \begin_layout Plain Layout
44553 \begin_inset Phantom Phantom
44556 \begin_layout Plain Layout
44566 \begin_layout Plain Layout
44578 <cell alignment="left" valignment="top" usebox="none">
44581 \begin_layout Plain Layout
44585 \begin_layout Plain Layout
44598 \begin_layout Plain Layout
44606 \begin_inset Phantom Phantom
44609 \begin_layout Plain Layout
44619 \begin_layout Plain Layout
44633 <cell alignment="left" valignment="top" usebox="none">
44636 \begin_layout Plain Layout
44640 \begin_layout Plain Layout
44653 \begin_layout Plain Layout
44661 \begin_inset Phantom Phantom
44664 \begin_layout Plain Layout
44674 \begin_layout Plain Layout
44686 <cell alignment="left" valignment="top" usebox="none">
44689 \begin_layout Plain Layout
44693 \begin_layout Plain Layout
44706 \begin_layout Plain Layout
44714 \begin_inset Phantom Phantom
44717 \begin_layout Plain Layout
44727 \begin_layout Plain Layout
44739 <cell alignment="left" valignment="top" usebox="none">
44742 \begin_layout Plain Layout
44746 \begin_layout Plain Layout
44759 \begin_layout Plain Layout
44767 \begin_inset Phantom Phantom
44770 \begin_layout Plain Layout
44780 \begin_layout Plain Layout
44792 <cell alignment="left" valignment="top" usebox="none">
44795 \begin_layout Plain Layout
44799 \begin_layout Plain Layout
44812 \begin_layout Plain Layout
44820 \begin_inset Phantom Phantom
44823 \begin_layout Plain Layout
44833 \begin_layout Plain Layout
44847 <cell alignment="left" valignment="top" usebox="none">
44850 \begin_layout Plain Layout
44854 \begin_layout Plain Layout
44867 \begin_layout Plain Layout
44875 \begin_inset Phantom Phantom
44878 \begin_layout Plain Layout
44888 \begin_layout Plain Layout
44900 <cell alignment="left" valignment="top" usebox="none">
44903 \begin_layout Plain Layout
44907 \begin_layout Plain Layout
44920 \begin_layout Plain Layout
44928 \begin_inset Phantom Phantom
44931 \begin_layout Plain Layout
44941 \begin_layout Plain Layout
44953 <cell alignment="left" valignment="top" usebox="none">
44956 \begin_layout Plain Layout
44960 \begin_layout Plain Layout
44973 \begin_layout Plain Layout
44981 \begin_inset Phantom Phantom
44984 \begin_layout Plain Layout
44994 \begin_layout Plain Layout
45006 <cell alignment="left" valignment="top" usebox="none">
45009 \begin_layout Plain Layout
45013 \begin_layout Plain Layout
45026 \begin_layout Plain Layout
45034 \begin_inset Phantom Phantom
45037 \begin_layout Plain Layout
45047 \begin_layout Plain Layout
45061 <cell alignment="left" valignment="top" usebox="none">
45064 \begin_layout Plain Layout
45068 \begin_layout Plain Layout
45081 \begin_layout Plain Layout
45089 \begin_inset Phantom Phantom
45092 \begin_layout Plain Layout
45102 \begin_layout Plain Layout
45114 <cell alignment="left" valignment="top" usebox="none">
45117 \begin_layout Plain Layout
45121 \begin_layout Plain Layout
45134 \begin_layout Plain Layout
45142 \begin_inset Phantom Phantom
45145 \begin_layout Plain Layout
45155 \begin_layout Plain Layout
45167 <cell alignment="left" valignment="top" usebox="none">
45170 \begin_layout Plain Layout
45174 \begin_layout Plain Layout
45187 \begin_layout Plain Layout
45195 \begin_inset Phantom Phantom
45198 \begin_layout Plain Layout
45208 \begin_layout Plain Layout
45220 <cell alignment="left" valignment="top" usebox="none">
45223 \begin_layout Plain Layout
45227 \begin_layout Plain Layout
45240 \begin_layout Plain Layout
45248 \begin_inset Phantom Phantom
45251 \begin_layout Plain Layout
45261 \begin_layout Plain Layout
45275 <cell alignment="left" valignment="top" usebox="none">
45278 \begin_layout Plain Layout
45282 \begin_layout Plain Layout
45295 \begin_layout Plain Layout
45303 \begin_inset Phantom Phantom
45306 \begin_layout Plain Layout
45316 \begin_layout Plain Layout
45328 <cell alignment="left" valignment="top" usebox="none">
45331 \begin_layout Plain Layout
45335 \begin_layout Plain Layout
45348 \begin_layout Plain Layout
45356 \begin_inset Phantom Phantom
45359 \begin_layout Plain Layout
45369 \begin_layout Plain Layout
45381 <cell alignment="left" valignment="top" usebox="none">
45384 \begin_layout Plain Layout
45388 \begin_layout Plain Layout
45401 \begin_layout Plain Layout
45409 \begin_inset Phantom Phantom
45412 \begin_layout Plain Layout
45422 \begin_layout Plain Layout
45434 <cell alignment="left" valignment="top" usebox="none">
45437 \begin_layout Plain Layout
45441 \begin_layout Plain Layout
45454 \begin_layout Plain Layout
45462 \begin_inset Phantom Phantom
45465 \begin_layout Plain Layout
45475 \begin_layout Plain Layout
45489 <cell alignment="left" valignment="top" usebox="none">
45492 \begin_layout Plain Layout
45496 \begin_layout Plain Layout
45509 \begin_layout Plain Layout
45517 \begin_inset Phantom Phantom
45520 \begin_layout Plain Layout
45530 \begin_layout Plain Layout
45542 <cell alignment="left" valignment="top" usebox="none">
45545 \begin_layout Plain Layout
45549 \begin_layout Plain Layout
45562 \begin_layout Plain Layout
45570 \begin_inset Phantom Phantom
45573 \begin_layout Plain Layout
45583 \begin_layout Plain Layout
45595 <cell alignment="left" valignment="top" usebox="none">
45598 \begin_layout Plain Layout
45602 \begin_layout Plain Layout
45615 \begin_layout Plain Layout
45623 \begin_inset Phantom Phantom
45626 \begin_layout Plain Layout
45636 \begin_layout Plain Layout
45648 <cell alignment="left" valignment="top" usebox="none">
45651 \begin_layout Plain Layout
45655 \begin_layout Plain Layout
45668 \begin_layout Plain Layout
45676 \begin_inset Phantom Phantom
45679 \begin_layout Plain Layout
45689 \begin_layout Plain Layout
45703 <cell alignment="left" valignment="top" usebox="none">
45706 \begin_layout Plain Layout
45710 \begin_layout Plain Layout
45723 \begin_layout Plain Layout
45731 \begin_inset Phantom Phantom
45734 \begin_layout Plain Layout
45744 \begin_layout Plain Layout
45756 <cell alignment="left" valignment="top" usebox="none">
45759 \begin_layout Plain Layout
45763 \begin_layout Plain Layout
45776 \begin_layout Plain Layout
45784 \begin_inset Phantom Phantom
45787 \begin_layout Plain Layout
45797 \begin_layout Plain Layout
45809 <cell alignment="left" valignment="top" usebox="none">
45812 \begin_layout Plain Layout
45816 \begin_layout Plain Layout
45829 \begin_layout Plain Layout
45837 \begin_inset Phantom Phantom
45840 \begin_layout Plain Layout
45850 \begin_layout Plain Layout
45862 <cell alignment="left" valignment="top" usebox="none">
45865 \begin_layout Plain Layout
45869 \begin_layout Plain Layout
45882 \begin_layout Plain Layout
45890 \begin_inset Phantom Phantom
45893 \begin_layout Plain Layout
45903 \begin_layout Plain Layout
45917 <cell alignment="left" valignment="top" usebox="none">
45920 \begin_layout Plain Layout
45924 \begin_layout Plain Layout
45937 \begin_layout Plain Layout
45945 \begin_inset Phantom Phantom
45948 \begin_layout Plain Layout
45958 \begin_layout Plain Layout
45970 <cell alignment="left" valignment="top" usebox="none">
45973 \begin_layout Plain Layout
45977 \begin_layout Plain Layout
45990 \begin_layout Plain Layout
45998 \begin_inset Phantom Phantom
46001 \begin_layout Plain Layout
46011 \begin_layout Plain Layout
46023 <cell alignment="left" valignment="top" usebox="none">
46026 \begin_layout Plain Layout
46030 \begin_layout Plain Layout
46043 \begin_layout Plain Layout
46051 \begin_inset Phantom Phantom
46054 \begin_layout Plain Layout
46064 \begin_layout Plain Layout
46076 <cell alignment="left" valignment="top" usebox="none">
46079 \begin_layout Plain Layout
46083 \begin_layout Plain Layout
46096 \begin_layout Plain Layout
46104 \begin_inset Phantom Phantom
46107 \begin_layout Plain Layout
46117 \begin_layout Plain Layout
46131 <cell alignment="left" valignment="top" usebox="none">
46134 \begin_layout Plain Layout
46138 \begin_layout Plain Layout
46151 \begin_layout Plain Layout
46159 \begin_inset Phantom Phantom
46162 \begin_layout Plain Layout
46172 \begin_layout Plain Layout
46184 <cell alignment="left" valignment="top" usebox="none">
46187 \begin_layout Plain Layout
46191 \begin_layout Plain Layout
46204 \begin_layout Plain Layout
46212 \begin_inset Phantom Phantom
46215 \begin_layout Plain Layout
46225 \begin_layout Plain Layout
46237 <cell alignment="left" valignment="top" usebox="none">
46240 \begin_layout Plain Layout
46244 \begin_layout Plain Layout
46257 \begin_layout Plain Layout
46265 \begin_inset Phantom Phantom
46268 \begin_layout Plain Layout
46278 \begin_layout Plain Layout
46290 <cell alignment="left" valignment="top" usebox="none">
46293 \begin_layout Plain Layout
46297 \begin_layout Plain Layout
46310 \begin_layout Plain Layout
46318 \begin_inset Phantom Phantom
46321 \begin_layout Plain Layout
46331 \begin_layout Plain Layout
46345 <cell alignment="left" valignment="top" usebox="none">
46348 \begin_layout Plain Layout
46352 \begin_layout Plain Layout
46365 \begin_layout Plain Layout
46373 \begin_inset Phantom Phantom
46376 \begin_layout Plain Layout
46386 \begin_layout Plain Layout
46398 <cell alignment="left" valignment="top" usebox="none">
46401 \begin_layout Plain Layout
46407 <cell alignment="left" valignment="top" usebox="none">
46410 \begin_layout Plain Layout
46416 <cell alignment="left" valignment="top" usebox="none">
46419 \begin_layout Plain Layout
46433 \begin_layout Chapter
46434 Explanation of Equation
46435 \begin_inset space ~
46439 \begin_inset CommandInset ref
46446 \begin_inset CommandInset label
46448 name "cha:Explanation-of-Equation"
46455 \begin_layout Standard
46456 We can calculate the total width of
46461 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46465 \begin_inset Formula
46467 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46473 \begin_inset Formula $W_{g\,n}$
46476 is the given width of all cells,
46482 is the \SpecialChar LaTeX
46483 -length between the cell text and the cell border (its default value
46485 \begin_inset space \thinspace{}
46495 is the thickness of the cell border line, the default is 0.4
46496 \begin_inset space \thinspace{}
46502 \begin_layout Standard
46504 \begin_inset space ~
46508 \begin_inset CommandInset ref
46510 reference "eq:Wtot_n"
46514 , the total width of a multicolumn
46515 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46519 \begin_inset Formula
46521 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46529 \begin_layout Standard
46530 By setting equation
46531 \begin_inset space ~
46535 \begin_inset CommandInset ref
46537 reference "eq:Wtot_n"
46542 \begin_inset CommandInset ref
46544 reference "eq:Wtot_mult"
46548 equal we can calculate the needed given width
46549 \begin_inset Formula $W_{g\,n}$
46556 columns are spanned, so that each column has a total width of
46557 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46561 \begin_inset Formula
46563 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46571 \begin_layout Bibliography
46572 \begin_inset CommandInset bibitem
46573 LatexCommand bibitem
46574 key "latexcompanion"
46579 Frank Mittelbach and Michel Goossens:
46581 The \SpecialChar LaTeX
46582 Companion Second Edition.
46585 Addison-Wesley, 2004
46588 \begin_layout Bibliography
46589 \begin_inset CommandInset bibitem
46590 LatexCommand bibitem
46596 Helmut Kopka and Patrick W.
46599 A Guide to \SpecialChar LaTeX
46603 Addison-Wesley, 2003
46606 \begin_layout Bibliography
46607 \begin_inset CommandInset bibitem
46608 LatexCommand bibitem
46617 : A Document Preparation System.
46620 Addison-Wesley, second edition, 1994
46623 \begin_layout Bibliography
46624 \begin_inset CommandInset bibitem
46625 LatexCommand bibitem
46631 Documentation of the \SpecialChar LaTeX
46635 \begin_inset CommandInset href
46638 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46646 \begin_inset Index idx
46649 \begin_layout Plain Layout
46651 -packages ! arydshln
46659 \begin_layout Bibliography
46660 \begin_inset CommandInset bibitem
46661 LatexCommand bibitem
46667 Documentation of the \SpecialChar LaTeX
46671 \begin_inset CommandInset href
46674 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46682 \begin_inset Index idx
46685 \begin_layout Plain Layout
46687 -packages ! booktabs
46695 \begin_layout Bibliography
46696 \begin_inset CommandInset bibitem
46697 LatexCommand bibitem
46703 Documentation of the \SpecialChar LaTeX
46707 \begin_inset CommandInset href
46710 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46718 \begin_inset Index idx
46721 \begin_layout Plain Layout
46723 -packages ! caption
46731 \begin_layout Bibliography
46732 \begin_inset CommandInset bibitem
46733 LatexCommand bibitem
46739 Documentation of the \SpecialChar LaTeX
46743 \begin_inset CommandInset href
46746 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46754 \begin_inset Index idx
46757 \begin_layout Plain Layout
46759 -packages ! diagbox
46767 \begin_layout Bibliography
46768 \begin_inset CommandInset bibitem
46769 LatexCommand bibitem
46775 Documentation of the \SpecialChar LaTeX
46779 \begin_inset CommandInset href
46782 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46790 \begin_inset Index idx
46793 \begin_layout Plain Layout
46795 -packages ! endfloat
46803 \begin_layout Bibliography
46804 \begin_inset CommandInset bibitem
46805 LatexCommand bibitem
46811 Documentation of the \SpecialChar LaTeX
46815 \begin_inset CommandInset href
46818 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46826 \begin_inset Index idx
46829 \begin_layout Plain Layout
46831 -packages ! footmisc
46839 \begin_layout Bibliography
46840 \begin_inset CommandInset bibitem
46841 LatexCommand bibitem
46847 Documentation of the \SpecialChar LaTeX
46851 \begin_inset CommandInset href
46854 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46862 \begin_inset Index idx
46865 \begin_layout Plain Layout
46867 -packages ! hyperref
46875 \begin_layout Bibliography
46876 \begin_inset CommandInset bibitem
46877 LatexCommand bibitem
46883 Documentation of the \SpecialChar LaTeX
46887 \begin_inset CommandInset href
46890 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46898 \begin_inset Index idx
46901 \begin_layout Plain Layout
46903 -packages ! hyperref
46911 \begin_layout Bibliography
46912 \begin_inset CommandInset bibitem
46913 LatexCommand bibitem
46919 Documentation of the \SpecialChar LaTeX
46923 \begin_inset CommandInset href
46926 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46934 \begin_inset Index idx
46937 \begin_layout Plain Layout
46939 -packages ! KOMA-Script
46947 \begin_layout Bibliography
46948 \begin_inset CommandInset bibitem
46949 LatexCommand bibitem
46955 Documentation of the \SpecialChar LaTeX
46959 \begin_inset CommandInset href
46962 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46970 \begin_inset CommandInset href
46973 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46979 \begin_inset Index idx
46982 \begin_layout Plain Layout
46984 -packages ! lettrine
46992 \begin_layout Bibliography
46993 \begin_inset CommandInset bibitem
46994 LatexCommand bibitem
47000 Documentation of the \SpecialChar LaTeX
47004 \begin_inset CommandInset href
47007 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
47015 \begin_inset Index idx
47018 \begin_layout Plain Layout
47020 -packages ! listings
47028 \begin_layout Bibliography
47029 \begin_inset CommandInset bibitem
47030 LatexCommand bibitem
47036 Documentation of the \SpecialChar LaTeX
47040 \begin_inset CommandInset href
47043 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
47051 \begin_inset Index idx
47054 \begin_layout Plain Layout
47064 \begin_layout Bibliography
47065 \begin_inset CommandInset bibitem
47066 LatexCommand bibitem
47072 Documentation of the \SpecialChar LaTeX
47076 \begin_inset CommandInset href
47079 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
47087 \begin_inset Index idx
47090 \begin_layout Plain Layout
47092 -packages ! marginnote
47100 \begin_layout Bibliography
47101 \begin_inset CommandInset bibitem
47102 LatexCommand bibitem
47108 Documentation of the \SpecialChar LaTeX
47112 \begin_inset CommandInset href
47115 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47123 \begin_inset Index idx
47126 \begin_layout Plain Layout
47128 -packages ! pdfpages
47136 \begin_layout Bibliography
47137 \begin_inset CommandInset bibitem
47138 LatexCommand bibitem
47144 Documentation of the \SpecialChar LaTeX
47148 \begin_inset CommandInset href
47151 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47159 \begin_inset Index idx
47162 \begin_layout Plain Layout
47164 -packages ! prettyref
47172 \begin_layout Bibliography
47173 \begin_inset CommandInset bibitem
47174 LatexCommand bibitem
47180 Web page of the \SpecialChar LaTeX
47184 \begin_inset CommandInset href
47187 target "http://tug.org/PSTricks/"
47195 \begin_inset Index idx
47198 \begin_layout Plain Layout
47200 -packages ! PSTricks
47208 \begin_layout Bibliography
47209 \begin_inset CommandInset bibitem
47210 LatexCommand bibitem
47216 Documentation of the \SpecialChar LaTeX
47220 \begin_inset CommandInset href
47223 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47231 \begin_inset Index idx
47234 \begin_layout Plain Layout
47236 -packages ! refstyle
47244 \begin_layout Bibliography
47245 \begin_inset CommandInset bibitem
47246 LatexCommand bibitem
47252 Documentation of the \SpecialChar LaTeX
47256 \begin_inset CommandInset href
47259 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47267 \begin_inset Index idx
47270 \begin_layout Plain Layout
47272 -packages ! sidecap
47280 \begin_layout Bibliography
47281 \begin_inset CommandInset bibitem
47282 LatexCommand bibitem
47288 Documentation of the option
47289 \begin_inset CommandInset href
47291 name "Omit text in PDF"
47292 target "http://tug.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47300 \begin_inset CommandInset href
47303 target "https://inkscape.org"
47311 \begin_layout Standard
47312 \begin_inset CommandInset index_print
47313 LatexCommand printindex