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 are numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
160 \maintain_unincluded_children false
162 \language_package default
165 \font_roman "lmodern" "default"
166 \font_sans "lmss" "default"
167 \font_typewriter "lmtt" "default"
168 \font_math "auto" "auto"
169 \font_default_family default
170 \use_non_tex_fonts false
173 \font_sf_scale 100 100
174 \font_tt_scale 100 100
176 \use_dash_ligatures true
178 \default_output_format pdf2
180 \bibtex_command default
181 \index_command default
185 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
186 \pdf_author "LyX Team, Uwe Stöhr"
187 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
188 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
190 \pdf_bookmarksnumbered true
191 \pdf_bookmarksopen true
192 \pdf_bookmarksopenlevel 1
193 \pdf_breaklinks false
197 \pdf_pdfusetitle false
198 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
201 \use_package amsmath 1
202 \use_package amssymb 1
203 \use_package cancel 1
205 \use_package mathdots 1
206 \use_package mathtools 1
207 \use_package mhchem 1
208 \use_package stackrel 1
209 \use_package stmaryrd 1
210 \use_package undertilde 1
212 \cite_engine_type default
216 \paperorientation portrait
221 \notefontcolor #0000ff
228 \paragraph_separation skip
231 \math_numbering_side default
232 \quotes_style english
236 \paperpagestyle default
237 \tracking_changes true
238 \output_changes false
241 \html_be_strict false
242 \author -712698321 "Jürgen Spitzmüller"
249 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
253 by the \SpecialChar LyX
258 \begin_layout Plain Layout
260 If you have comments or error corrections, please send them to the \SpecialChar LyX
263 \begin_inset CommandInset href
265 name "lyx-docs@lists.lyx.org"
266 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
278 \begin_inset Note Note
281 \begin_layout Plain Layout
288 \begin_inset Newline newline
292 \begin_inset Newline newline
300 \begin_layout Standard
301 \begin_inset CommandInset toc
302 LatexCommand tableofcontents
309 \begin_layout Standard
310 \begin_inset Note Note
313 \begin_layout Plain Layout
314 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
325 diagbox, lettrine, marginnote, picinpar
332 If they are not installed you can export the document anyway but the sections
333 where the packages are required won't appear in the output.
336 \begin_layout Plain Layout
337 The latest PDF-version of this document can be found here:
338 \begin_inset Newline newline
343 https://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
351 \begin_layout Chapter
353 \begin_inset Index idx
356 \begin_layout Plain Layout
363 \begin_inset Index idx
366 \begin_layout Plain Layout
371 \begin_layout Plain Layout
382 \begin_layout Plain Layout
397 \begin_layout Section
399 \begin_inset Index idx
402 \begin_layout Plain Layout
403 Figures ! Graphics Dialog
409 \begin_inset CommandInset label
411 name "sec:Graphics-Dialog"
418 \begin_layout Standard
419 To insert an image into your document, place the cursor at the text position
420 you want and click on the toolbar icon
423 arg "dialog-show-new-inset graphics"
428 Insert\SpecialChar menuseparator
432 Then a dialog will appear to choose the file to load.
433 The image will appear in the output exactly at the position where it is
437 \begin_layout Standard
438 The graphics dialog can be called at any time by clicking on an image.
439 This dialog has three tabs:
442 \begin_layout Description
447 Here you can choose an image file and adjust its appearance in the output.
448 The available units for the image size are explained in appendix
453 \begin_inset CommandInset ref
455 reference "cha:Units-available-in"
460 \begin_inset Newline newline
464 \begin_inset Index idx
467 \begin_layout Plain Layout
473 You can rotate images counter-clockwise by setting a rotation angle and
475 The image will also be rotated inside \SpecialChar LyX
477 \begin_inset Newline newline
481 \begin_inset Index idx
484 \begin_layout Plain Layout
490 Images can be scaled by using a percentage value or by setting the width
491 and height explicitly.
492 If you set only the width or only the height, the other size will be determined
494 If you set both, then the image will be transformed to the given size,
495 possibly distorting it.
496 To prevent the image from distortion, use the option
498 Maintain aspect ratio
501 The image will then be scaled so that its width and height don't exceed
502 the specified dimensions.
503 \begin_inset Newline newline
506 Images can be opened in a program of your choice by right-clicking on it
507 and choosing the entry
516 The program can be set for every image format in the file format settings
521 \begin_layout Description
526 Alternatively to the usage of scaling units it is possible to set image
527 coordinates to adjust the height and width of the image in the output.
528 The coordinates can also be calculated automatically by pressing the button
558 will only print the image region within the given coordinates.
559 Normally you don't need to worry about image coordinates and can ignore
563 \begin_layout Description
580 In this tab you can modify the appearance of the image within \SpecialChar LyX
581 and \SpecialChar LaTeX
583 can specify additional \SpecialChar LaTeX
585 \begin_inset Newline newline
596 makes the image appear in the output only as a frame with the size of the
598 \begin_inset Newline newline
609 you can define or join an image settings group.
610 \begin_inset Index idx
613 \begin_layout Plain Layout
614 Figures ! Settings grouping
619 Images within such a group share their settings, so adjusting one image
620 of the group automatically also adjusts all other images of the group in
622 So you can for example change the size for a bunch of images without the
623 need to manually change each of them.
624 Joining an existing group can also be done using the context menu of the
625 image by checking the name of the desired group.
628 \begin_layout Standard
629 \begin_inset VSpace bigskip
635 \begin_layout Standard
636 This is an example image in PDF format
640 \begin_layout Plain Layout
641 Image formats are explained in section
646 \begin_inset CommandInset ref
648 reference "sec:Image-Formats"
657 within a separate, horizontally centered paragraph:
660 \begin_layout Standard
662 \begin_inset Graphics
663 filename clipart/2D-intensity-plot.pdf
672 \begin_layout Standard
673 This is the same image like the one above but in draft mode:
676 \begin_layout Standard
678 \begin_inset Graphics
679 filename clipart/2D-intensity-plot.pdf
689 \begin_layout Standard
690 \begin_inset Newpage newpage
696 \begin_layout Section
698 \begin_inset CommandInset label
700 name "sec:Figure-Floats"
705 \begin_inset Index idx
708 \begin_layout Plain Layout
715 \begin_inset Index idx
718 \begin_layout Plain Layout
727 \begin_layout Standard
728 For general explanations about floats, have a look at section
733 \begin_inset CommandInset ref
735 reference "sec:FloatIntroduction"
742 \begin_layout Standard
746 arg "float-insert figure"
751 Insert\SpecialChar menuseparator
752 Float\SpecialChar menuseparator
755 inserts a float with a caption that has the label
756 \begin_inset Quotes eld
764 \begin_inset Quotes erd
767 (# is the actual number).
768 You can insert the image above the caption, like in Figure
773 \begin_inset CommandInset ref
775 reference "fig:A-star-in"
779 or below the caption, like in Figure
784 \begin_inset CommandInset ref
786 reference "fig:A-3D-object"
791 More about caption placement is described in section
796 \begin_inset CommandInset ref
798 reference "sec:Caption-Placement"
805 \begin_layout Standard
806 \begin_inset Float figure
811 \begin_layout Plain Layout
813 \begin_inset Graphics
814 filename clipart/Star-structure.pdf
825 \begin_layout Plain Layout
826 \begin_inset Caption Standard
828 \begin_layout Plain Layout
829 \begin_inset CommandInset label
848 \begin_layout Standard
849 \begin_inset Float figure
854 \begin_layout Plain Layout
855 \begin_inset Caption Standard
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
860 name "fig:A-3D-object"
872 \begin_layout Plain Layout
874 \begin_inset Graphics
875 filename clipart/3D-structure-distort.pdf
891 \begin_layout Standard
892 \begin_inset Index idx
895 \begin_layout Plain Layout
896 References ! to Figures
906 \begin_inset CommandInset ref
908 reference "fig:A-star-in"
913 \begin_inset CommandInset ref
915 reference "fig:A-3D-object"
919 are examples of referenced figures.
920 Figures can be referenced in the text by referencing their label.
921 To do this insert a label in the caption using the menu
923 Insert\SpecialChar menuseparator
926 or the toolbar button
933 You can now refer to the label using the menu
935 Insert\SpecialChar menuseparator
942 or the toolbar button
945 arg "dialog-show-new-inset ref"
949 It is important to use references to floats, rather than using vague references
951 \begin_inset Quotes eld
955 \begin_inset Quotes erd
958 , because \SpecialChar LaTeX
959 will reposition the floats in the final document and it might
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
969 \begin_inset Newline newline
972 Referencing is explained in detail in section
977 \begin_inset CommandInset ref
979 reference "sec:Referencing-Floats"
986 \begin_layout Standard
987 Normally only one image is inserted to a figure float, but sometimes you
988 might want to use two images with separate subcaptions.
989 This can be done by inserting image floats into existing image floats.
990 Note that only the main caption of the float is added to the List of Figures.
996 \begin_inset CommandInset ref
998 reference "fig:Two-distorted-images"
1002 is an example of a figure float with two images set side by side.
1003 You can also set the images one below the other.
1005 \begin_inset space ~
1009 \begin_inset CommandInset ref
1011 reference "fig:Pink-object"
1016 \begin_inset CommandInset ref
1018 reference "fig:A-star"
1025 \begin_layout Standard
1026 \begin_inset Float figure
1031 \begin_layout Plain Layout
1032 \begin_inset space \hfill{}
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset Caption Standard
1044 \begin_layout Plain Layout
1045 \begin_inset CommandInset label
1047 name "fig:Pink-object"
1059 \begin_layout Plain Layout
1060 \begin_inset Graphics
1061 filename clipart/3D-structure-distort.pdf
1074 \begin_inset space \hfill{}
1078 \begin_inset Float figure
1083 \begin_layout Plain Layout
1084 \begin_inset Caption Standard
1086 \begin_layout Plain Layout
1087 \begin_inset CommandInset label
1101 \begin_layout Plain Layout
1102 \begin_inset Graphics
1103 filename clipart/Star-structure.pdf
1116 \begin_inset space \hfill{}
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Two-distorted-images"
1132 Two distorted images.
1133 Both images are in the image settings group named
1134 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1154 \begin_layout Standard
1155 \begin_inset Newpage newpage
1161 \begin_layout Section
1163 \begin_inset CommandInset label
1165 name "sec:Image-Formats"
1170 \begin_inset Index idx
1173 \begin_layout Plain Layout
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1184 Figures ! Image Formats
1192 \begin_layout Standard
1193 You can insert images in any known file format.
1194 But as explained in appendix
1195 \begin_inset space ~
1199 \begin_inset CommandInset ref
1201 reference "cha:Output-File-Formats"
1205 , each output document format allows only a few image formats.
1207 uses therefore the program
1211 in the background to convert the images to the right format.
1212 To increase your work flow by avoiding these conversions in the background,
1213 you could choose to use only the image formats that can directly be embedded
1214 in the output file format.
1215 The output file formats are explained in appendix
1216 \begin_inset space ~
1220 \begin_inset CommandInset ref
1222 reference "cha:Output-File-Formats"
1229 \begin_layout Standard
1230 Similar to fonts there are two types of image formats:
1233 \begin_layout Description
1235 \begin_inset space ~
1238 images consist of pixel values, often in a compressed form.
1239 They are therefore not fully scalable and look pixelated in large zooms.
1240 Well-known bitmap image formats are
1241 \begin_inset Quotes eld
1244 Graphics Interchange Format
1245 \begin_inset Quotes erd
1248 (GIF, file extension
1249 \begin_inset Quotes eld
1257 \begin_inset Quotes erd
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1269 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1293 \begin_inset Quotes eld
1296 Portable Network Graphics
1297 \begin_inset Quotes erd
1300 (PNG, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1313 \begin_inset Index idx
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Joint Photographic Experts Group
1349 \begin_inset Quotes erd
1352 (JPG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Index idx
1380 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1411 \begin_layout Description
1413 \begin_inset space ~
1416 images consist of vectors and can therefore be scaled to any size without
1418 The scaling ability is necessary if you want to create presentations, because
1419 presentations are always scaled by the video projector.
1420 Scaling is also useful for online documents to let the user zoom into diagrams.
1421 \begin_inset Newline newline
1424 Well-known scalable image formats are
1425 \begin_inset Quotes eld
1428 Scalable Vector Graphics
1429 \begin_inset Quotes erd
1432 (SVG, file extension
1433 \begin_inset Quotes eld
1441 \begin_inset Quotes erd
1445 \begin_inset Index idx
1448 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1477 \begin_inset Quotes eld
1480 Encapsulated PostScript
1481 \begin_inset Quotes erd
1484 (EPS, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1497 \begin_inset Index idx
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Portable Document Format
1533 \begin_inset Quotes erd
1536 (PDF, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1549 \begin_inset Index idx
1552 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1566 (WMF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 , because you can convert any bitmap image to a PDF or EPS-image and the
1620 result will still be a bitmap image.
1621 In such cases only a header with the image properties is added to the original
1626 \begin_layout Plain Layout
1627 In the case of PDF, the original image is additionally compressed.
1633 The PDF-files generated by
1637 are for example bitmap images.
1640 \begin_layout Standard
1641 Normally it is not possible to convert a bitmap image into a scalable one,
1643 Only the image formats PDF and EPS can directly be embedded to PDF and
1644 PostScript output files, respectively.
1645 SVG and WMF-images are recalculated to bitmaps when the output file is
1646 generated because there is currently no adequate WMF/SVG
1647 \begin_inset Formula $\to$
1650 PDF/EPS converter available.
1653 \begin_layout Chapter
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1667 \begin_layout Section
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1673 Table ! Introduction
1681 \begin_layout Standard
1682 You can insert a table using either the toolbar button
1685 arg "tabular-insert"
1690 Insert\SpecialChar menuseparator
1694 The toolbar button offers you a graphical selection: move the mouse to
1695 set the column/row number of the table that should be created and then
1696 press a mouse button.
1697 When you use the menu to create a table, a dialog will appear, asking you
1698 for the number of rows and columns.
1699 \begin_inset Newline newline
1702 The default table has lines around any cell and the first row appears separated
1703 from the rest of the table.
1704 This separation occurs due to a double line: The cells of the first row
1705 have a line below them and the cells of the second row have a line above
1707 Here is an example table:
1710 \begin_layout Standard
1712 \begin_inset Tabular
1713 <lyxtabular version="3" rows="4" columns="4">
1714 <features tabularvalignment="middle">
1715 <column alignment="center" valignment="top">
1716 <column alignment="center" valignment="top">
1717 <column alignment="center" valignment="top">
1718 <column alignment="center" valignment="top">
1720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1723 \begin_layout Plain Layout
1729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1732 \begin_layout Plain Layout
1747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1750 \begin_layout Plain Layout
1756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1759 \begin_layout Plain Layout
1767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1770 \begin_layout Plain Layout
1785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1788 \begin_layout Plain Layout
1794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1797 \begin_layout Plain Layout
1803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1806 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1817 \begin_layout Plain Layout
1832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1835 \begin_layout Plain Layout
1841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1844 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1853 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1864 \begin_layout Plain Layout
1879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1882 \begin_layout Plain Layout
1888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1891 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1900 \begin_layout Plain Layout
1914 \begin_layout Section
1916 \begin_inset Index idx
1919 \begin_layout Plain Layout
1928 \begin_layout Standard
1929 You can alter a table by clicking on it with the right mouse button, which
1930 brings up the context menu.
1931 Under the menu entry
1935 you can adjust the settings of that cell and row/column respectively where
1936 the cursor is currently placed.
1939 More\SpecialChar menuseparator
1942 opens the table dialog where you can adjust more things.
1943 Most of the dialog options also work on selections.
1944 This means if you select more cells, columns or rows, the action is done
1945 for the whole selection.
1946 Note that there is a difference between selecting the
1950 of the cell, and the cell itself.
1951 \begin_inset Newline newline
1954 With the dialog option
1957 \begin_inset space ~
1962 every change you make in the dialog is directly applied.
1963 If you move the cursor to another table cell the dialog will then also
1964 be updated with the parameters of the new cell.
1965 If you change length values in the dialog you must press
1969 to get the change applied.
1970 \begin_inset Newline newline
1973 You can alter tables with the following tabs of the table dialog:
1976 \begin_layout Description
1978 \begin_inset space ~
1981 Settings Here you can set the table width
1982 \begin_inset Index idx
1985 \begin_layout Plain Layout
1991 , and the horizontal alignment and the width of the current column.
1995 \begin_inset space ~
1999 \begin_inset space ~
2004 is described in section
2005 \begin_inset space ~
2009 \begin_inset CommandInset ref
2011 reference "subsec:Special-Cell-Alignment"
2016 When you have set a width you can also adjust the vertical alignment of
2018 A given width will allow the cell to have line breaks and multiple paragraphs
2020 \begin_inset space \thinspace{}
2024 \begin_inset CommandInset ref
2026 reference "subsec:Multiple-Lines-in"
2031 If you set no width, the column is as wide as the content of its widest
2033 \begin_inset Newline newline
2036 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2038 \begin_inset space \thinspace{}
2042 \begin_inset CommandInset ref
2044 reference "subsec:Multicolumns"
2048 or the cells of one column as multirow cell, see sec.
2049 \begin_inset space \thinspace{}
2053 \begin_inset CommandInset ref
2055 reference "subsec:Multirows"
2060 \begin_inset Newline newline
2063 The rotate check boxes rotate the current cell, a selection, or the whole
2064 table counter-clockwise by 90
2065 \begin_inset space \thinspace{}
2069 The rotation is not shown within \SpecialChar LyX
2070 , only in the output.
2071 For more information see sec.
2072 \begin_inset space \thinspace{}
2076 \begin_inset CommandInset ref
2078 reference "sec:Rotated-Table-Cells"
2083 \begin_inset Newline newline
2087 \begin_inset Note Greyedout
2090 \begin_layout Plain Layout
2095 Not all DVI-viewers are able to display rotations.
2101 \begin_inset Newline newline
2104 The table-wide vertical alignment is used for tables within text lines:
2105 \begin_inset Newline newline
2108 A line with tables with different alignments:
2109 \begin_inset Tabular
2110 <lyxtabular version="3" rows="2" columns="2">
2111 <features tabularvalignment="top">
2112 <column alignment="center" valignment="top" width="0pt">
2113 <column alignment="center" valignment="top">
2115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2118 \begin_layout Plain Layout
2124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2127 \begin_layout Plain Layout
2144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2147 \begin_layout Plain Layout
2162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2165 \begin_layout Plain Layout
2177 \begin_inset Tabular
2178 <lyxtabular version="3" rows="2" columns="2">
2179 <features tabularvalignment="middle">
2180 <column alignment="center" valignment="top">
2181 <column alignment="center" valignment="top">
2183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2186 \begin_layout Plain Layout
2192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2195 \begin_layout Plain Layout
2212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2215 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2233 \begin_layout Plain Layout
2245 \begin_inset Tabular
2246 <lyxtabular version="3" rows="2" columns="2">
2247 <features tabularvalignment="bottom">
2248 <column alignment="center" valignment="top" width="0pt">
2249 <column alignment="center" valignment="top">
2251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2254 \begin_layout Plain Layout
2260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2263 \begin_layout Plain Layout
2280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2283 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2301 \begin_layout Plain Layout
2313 \begin_inset Newline newline
2316 It is also possible to enter a \SpecialChar LaTeX
2317 -argument which is needed for special table
2318 formattings, see sec.
2319 \begin_inset space \thinspace{}
2323 \begin_inset CommandInset ref
2325 reference "subsec:Multicolumn-Calculations"
2330 \begin_inset CommandInset ref
2332 reference "sec:Colored-Tables"
2339 \begin_layout Description
2340 Borders In this tab you can add and delete border lines for the current
2342 \begin_inset Newline newline
2345 Using the style option
2349 will convert the table to a formal table as described in sec.
2350 \begin_inset space \thinspace{}
2354 \begin_inset CommandInset ref
2356 reference "sec:Formal-Tables"
2361 \begin_inset Newline newline
2364 You can also add space here to table rows as described in sec.
2365 \begin_inset space \thinspace{}
2369 \begin_inset CommandInset ref
2371 reference "subsec:Row-Spacing"
2378 \begin_layout Description
2380 \begin_inset space ~
2383 table This tab is to make a table a multi-page table that can run over several
2386 \begin_inset space ~
2390 \begin_inset CommandInset ref
2392 reference "sec:Multi-page-Tables"
2397 \begin_inset CommandInset ref
2399 reference "sec:Special-Longtable-Issues"
2403 describe the multi-page table features in detail.
2406 \begin_layout Section
2408 \begin_inset Index idx
2411 \begin_layout Plain Layout
2420 \begin_layout Standard
2421 The table toolbar is an alternative to the table dialog to be able to alter
2423 It should normally appear at the bottom of \SpecialChar LyX
2424 's main window when the cursor
2426 You can alternatively switch it on to appear always, by right-clicking
2431 \begin_layout Standard
2432 The toolbar has the following icons:
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2439 arg "tabular-feature append-row"
2442 adds a row below the current cell or selection
2445 \begin_layout Labeling
2446 \labelwidthstring 00.00.0000
2449 arg "tabular-feature append-column"
2452 adds a column right beside the current cell or selection
2455 \begin_layout Labeling
2456 \labelwidthstring 00.00.0000
2459 arg "tabular-feature delete-row"
2462 deletes the current row or selection
2465 \begin_layout Labeling
2466 \labelwidthstring 00.00.0000
2469 arg "tabular-feature delete-column"
2472 deletes the current column or selection
2475 \begin_layout Labeling
2476 \labelwidthstring 00.00.0000
2479 arg "tabular-feature move-row-up"
2485 \begin_layout Labeling
2486 \labelwidthstring 00.00.0000
2489 arg "tabular-feature move-column-left"
2492 moves the column to the left
2495 \begin_layout Labeling
2496 \labelwidthstring 00.00.0000
2499 arg "tabular-feature move-row-down"
2505 \begin_layout Labeling
2506 \labelwidthstring 00.00.0000
2509 arg "tabular-feature move-column-right"
2512 moves the column to the right
2515 \begin_layout Labeling
2516 \labelwidthstring 00.00.0000
2519 arg "tabular-feature toggle-line-top"
2522 adds a line at the top of the current cell / row or of a selection
2525 \begin_layout Labeling
2526 \labelwidthstring 00.00.0000
2529 arg "tabular-feature toggle-line-bottom"
2532 adds a line at the bottom of the current cell / row or of a selection
2535 \begin_layout Labeling
2536 \labelwidthstring 00.00.0000
2539 arg "tabular-feature toggle-line-left"
2542 adds a line at the left side of the current cell / row or of a selection
2545 \begin_layout Labeling
2546 \labelwidthstring 00.00.0000
2549 arg "tabular-feature toggle-line-right"
2552 adds a line at the right side of the current cell / row or of a selection
2555 \begin_layout Labeling
2556 \labelwidthstring 00.00.0000
2559 arg "tabular-feature set-all-lines"
2562 adds lines around the current or selected cells - if the current cell is
2563 not a multicolumn cell this also affects the current row and column
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2570 arg "tabular-feature unset-all-lines"
2573 deletes all lines of the current or selected cells - if the current cell
2574 is not a multicolumn cell this also affects the current row and column
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "tabular-feature m-align-left"
2584 left-aligns the content of the current cell / column
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2591 arg "tabular-feature m-align-center"
2594 centers the content of the current cell / column horizontally
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2601 arg "tabular-feature m-align-right"
2604 right-aligns the content of the current cell / column
2607 \begin_layout Labeling
2608 \labelwidthstring 00.00.0000
2611 arg "tabular-feature align-decimal"
2614 aligns the content of the current column at a character
2617 \begin_layout Labeling
2618 \labelwidthstring 00.00.0000
2621 arg "tabular-feature m-valign-top"
2624 aligns the content of the current cell vertically to the top
2627 \begin_layout Labeling
2628 \labelwidthstring 00.00.0000
2631 arg "tabular-feature m-valign-middle"
2634 centers the content of the current cell vertically
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2641 arg "tabular-feature m-valign-bottom"
2644 aligns the content of the current cell vertically to the bottom
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2651 arg "tabular-feature set-rotate-cell"
2654 rotates the current cell or selection counter-clockwise by 90°
2657 \begin_layout Labeling
2658 \labelwidthstring 00.00.0000
2661 arg "tabular-feature set-rotate-tabular"
2664 rotates the whole table counter-clockwise by 90°
2667 \begin_layout Labeling
2668 \labelwidthstring 00.00.0000
2671 arg "tabular-feature multicolumn"
2674 sets the current cell or selection as a multicolumn
2677 \begin_layout Labeling
2678 \labelwidthstring 00.00.0000
2681 arg "tabular-feature multirow"
2684 sets the current cell or selection as a multirow
2687 \begin_layout Standard
2688 \begin_inset Note Greyedout
2691 \begin_layout Plain Layout
2696 For the output the vertical alignment of the first cell in a row is used
2697 for all following cells in the row.
2705 \begin_layout Section
2707 \begin_inset Index idx
2710 \begin_layout Plain Layout
2719 \begin_layout Standard
2720 In addition to the table dialog and toolbar, the menu
2722 Edit\SpecialChar menuseparator
2725 allows you to add and delete border lines for the current row/column and
2726 to set the current selection as multicolumn.
2727 The menu is only available when the cursor is inside a table.
2730 \begin_layout Section
2732 \begin_inset CommandInset label
2734 name "sec:Table-Floats"
2739 \begin_inset Index idx
2742 \begin_layout Plain Layout
2749 \begin_inset Index idx
2752 \begin_layout Plain Layout
2761 \begin_layout Standard
2762 For general explanations about floats, have a look at section
2763 \begin_inset space ~
2767 \begin_inset CommandInset ref
2769 reference "sec:FloatIntroduction"
2776 \begin_layout Standard
2777 \begin_inset Float table
2783 \begin_layout Plain Layout
2784 \begin_inset Caption Standard
2786 \begin_layout Plain Layout
2787 \begin_inset CommandInset label
2789 name "tab:a table float"
2801 \begin_layout Plain Layout
2803 \begin_inset Tabular
2804 <lyxtabular version="3" rows="3" columns="3">
2805 <features tabularvalignment="middle">
2806 <column alignment="center" valignment="top" width="0pt">
2807 <column alignment="center" valignment="top" width="0pt">
2808 <column alignment="center" valignment="top" width="0pt">
2810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2813 \begin_layout Plain Layout
2828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2831 \begin_layout Plain Layout
2846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Plain Layout
2866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2869 \begin_layout Plain Layout
2884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2887 \begin_layout Plain Layout
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2905 \begin_layout Plain Layout
2922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2925 \begin_layout Plain Layout
2935 \begin_inset Formula $\int x^{2}dx$
2943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2946 \begin_layout Plain Layout
2956 \begin_inset Formula $\left[\begin{array}{cc}
2967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2970 \begin_layout Plain Layout
2980 \begin_inset Formula $1+1=2$
3001 \begin_layout Standard
3002 Table floats can be inserted using the menu
3004 Insert\SpecialChar menuseparator
3005 Float\SpecialChar menuseparator
3008 or the toolbar button
3011 arg "float-insert table"
3017 \begin_layout Standard
3018 The float appears as a collapsible box with a caption that has the label
3020 \begin_inset Quotes eld
3024 \begin_inset space ~
3028 \begin_inset Quotes erd
3031 (# is the actual table number).
3032 You can insert tables in the float above or below the caption.
3035 \begin_layout Standard
3037 \begin_inset space ~
3041 \begin_inset CommandInset ref
3043 reference "tab:a table float"
3047 is an example table within a table float.
3050 \begin_layout Standard
3051 Having the caption above the table is the common rule that is unfortunately
3052 not supported in \SpecialChar LaTeX
3053 's standard classes.
3054 This means that, if you are using the document classes
3070 , there will be no space between the caption and the table.
3071 To insert the needed space, add the following option to the load command
3072 of the \SpecialChar LaTeX
3078 \begin_inset Index idx
3081 \begin_layout Plain Layout
3088 in your document preamble:
3092 \begin_layout Plain Layout
3093 For more information have a look at section
3094 \begin_inset space ~
3098 \begin_inset CommandInset ref
3100 reference "sec:Caption-Placement"
3112 \begin_layout Standard
3118 \begin_layout Standard
3123 , which is described in section
3124 \begin_inset space ~
3128 \begin_inset CommandInset ref
3130 reference "sec:Caption-Formatting"
3134 , is used to adjust the caption format.
3137 \begin_layout Standard
3138 \begin_inset Index idx
3141 \begin_layout Plain Layout
3142 References ! to Tables
3147 Tables can be cross-referenced in the text by referencing their label.
3148 To do this insert a label in the caption using the menu
3150 Insert\SpecialChar menuseparator
3153 or the toolbar button
3160 You can now refer to the label using the menu
3162 Insert\SpecialChar menuseparator
3164 \begin_inset space ~
3169 or the toolbar button
3172 arg "dialog-show-new-inset ref"
3176 \begin_inset Newline newline
3179 Referencing is explained in detail in section
3180 \begin_inset space ~
3184 \begin_inset CommandInset ref
3186 reference "sec:Referencing-Floats"
3193 \begin_layout Section
3199 \begin_inset CommandInset label
3201 name "sec:Multi-page-Tables"
3206 \begin_inset Index idx
3209 \begin_layout Plain Layout
3216 \begin_inset Index idx
3219 \begin_layout Plain Layout
3220 Table ! Multi-page Table
3228 \begin_layout Standard
3229 If the table is too long to fit on one page, you can use the option
3232 \begin_inset space ~
3240 \begin_inset space ~
3245 of the table dialog to split the table automatically over more pages.
3246 Doing this enables the following options:
3249 \begin_layout Description
3250 Header: The current row is defined to be a header row that appears on all
3251 pages of the multi-page table; except for the first page, if
3254 \begin_inset space ~
3260 This is therefore called the main header.
3263 \begin_layout Description
3265 \begin_inset space ~
3268 header: The current row is defined to be a header row that appears on the
3269 first page of the multi-page table.
3272 \begin_layout Description
3273 Footer: The current row is defined to be a footer row that appears on all
3274 pages of the multi-page table; except for the last page, if
3277 \begin_inset space ~
3285 \begin_layout Description
3287 \begin_inset space ~
3290 footer: The current row is defined to be a footer row that appears on the
3291 last page of the multi-page table.
3294 \begin_layout Description
3295 Caption: The current row contains the table caption.
3296 The row is reset as single column and a caption is inserted.
3297 More about multi-page table captions is explained in sec.
3298 \begin_inset space \thinspace{}
3302 \begin_inset CommandInset ref
3304 reference "subsec:Multi-page-Table-Captions"
3311 \begin_layout Standard
3312 You can also specify a row where the table is split.
3313 See the following multi-page table to see how it works:
3316 \begin_layout Standard
3318 \begin_inset Tabular
3319 <lyxtabular version="3" rows="69" columns="3">
3320 <features islongtable="true" longtabularalignment="center">
3321 <column alignment="left" valignment="top" width="0cm">
3322 <column alignment="left" valignment="top" width="0pt">
3323 <column alignment="center" valignment="top" width="0pt">
3324 <row endfirsthead="true">
3325 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3328 \begin_layout Plain Layout
3331 Example Phone List (ignore the names)
3336 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3339 \begin_layout Plain Layout
3345 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3348 \begin_layout Plain Layout
3355 <row endfirsthead="true">
3356 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3359 \begin_layout Plain Layout
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3370 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Plain Layout
3388 <row endhead="true">
3389 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3392 \begin_layout Plain Layout
3400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3403 \begin_layout Plain Layout
3409 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3412 \begin_layout Plain Layout
3419 <row endhead="true">
3420 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3423 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3434 \begin_layout Plain Layout
3440 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3443 \begin_layout Plain Layout
3452 <row endfoot="true">
3453 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3457 continued on next page
3462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3465 \begin_layout Plain Layout
3471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3474 \begin_layout Plain Layout
3482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3485 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" usebox="none">
3496 \begin_layout Plain Layout
3502 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3505 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" usebox="none">
3527 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" usebox="none">
3558 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3567 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" usebox="none">
3589 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" usebox="none">
3620 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" usebox="none">
3651 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" usebox="none">
3682 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" usebox="none">
3713 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" usebox="none">
3744 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" usebox="none">
3775 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" usebox="none">
3806 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" usebox="none">
3837 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" usebox="none">
3868 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" usebox="none">
3899 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" usebox="none">
3930 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" usebox="none">
3961 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" usebox="none">
4054 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" usebox="none">
4085 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" usebox="none">
4116 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" usebox="none">
4147 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4187 \begin_layout Plain Layout
4195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4198 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" usebox="none">
4209 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4218 \begin_layout Plain Layout
4226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4229 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" usebox="none">
4240 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4260 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" usebox="none">
4271 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4291 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" usebox="none">
4302 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" usebox="none">
4333 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4353 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" usebox="none">
4364 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4384 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" usebox="none">
4395 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4415 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4426 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4455 \begin_layout Plain Layout
4461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4464 \begin_layout Plain Layout
4472 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" usebox="none">
4486 \begin_layout Plain Layout
4492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4495 \begin_layout Plain Layout
4503 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" usebox="none">
4517 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4526 \begin_layout Plain Layout
4534 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" usebox="none">
4548 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4557 \begin_layout Plain Layout
4565 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" usebox="none">
4579 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" usebox="none">
4610 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" usebox="none">
4641 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" usebox="none">
4672 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" usebox="none">
4703 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" usebox="none">
4734 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" usebox="none">
4765 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" usebox="none">
4796 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" usebox="none">
4827 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" usebox="none">
4858 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" usebox="none">
4889 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" usebox="none">
4920 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" usebox="none">
4951 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" usebox="none">
4982 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" usebox="none">
5013 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" usebox="none">
5044 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" usebox="none">
5075 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" usebox="none">
5106 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" usebox="none">
5137 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5146 \begin_layout Plain Layout
5154 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Plain Layout
5185 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5188 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" usebox="none">
5199 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5208 \begin_layout Plain Layout
5216 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5219 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" usebox="none">
5230 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5239 \begin_layout Plain Layout
5247 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5250 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" usebox="none">
5261 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5270 \begin_layout Plain Layout
5278 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5281 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" usebox="none">
5292 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5301 \begin_layout Plain Layout
5309 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5312 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" usebox="none">
5323 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5332 \begin_layout Plain Layout
5340 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5343 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" usebox="none">
5354 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5363 \begin_layout Plain Layout
5371 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5394 \begin_layout Plain Layout
5402 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5405 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5416 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5425 \begin_layout Plain Layout
5432 <row endlastfoot="true">
5433 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5436 \begin_layout Plain Layout
5442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5445 \begin_layout Plain Layout
5451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5454 \begin_layout Plain Layout
5469 \begin_layout Plain Layout
5473 addtocounter{table}{-1}
5479 \begin_inset Note Note
5482 \begin_layout Plain Layout
5483 See the first greyed-out note in section
5484 \begin_inset space ~
5488 \begin_inset CommandInset ref
5490 reference "subsec:Multi-page-Table-Captions"
5494 for an explanation of this command.
5502 \begin_layout Subsection
5503 Footnotes in Multi-page tables
5504 \begin_inset CommandInset label
5506 name "subsec:Footnotes-in-Multi-page"
5511 \begin_inset Index idx
5514 \begin_layout Plain Layout
5515 Table ! Multi-page Table ! Footnotes
5523 \begin_layout Standard
5524 Footnotes can be inserted to every Multi-page table cell.
5525 They appear at the bottom of the page where the table cell with the footnote
5528 \begin_inset space ~
5532 \begin_inset CommandInset ref
5534 reference "tab:DiffCaptions"
5538 has for example a footnote.
5541 \begin_layout Subsection
5542 Multi-page Table Alignment
5543 \begin_inset Index idx
5546 \begin_layout Plain Layout
5547 Table ! Multi-page Table ! Alignment
5555 \begin_layout Standard
5556 The horizontal alignment of multi-page tables can be set in the table settings
5558 For left- and right-alignment the table will be directly at the page border.
5559 To add space between the table and the border one has to set the alignment
5560 to center and change the value of the \SpecialChar LaTeX
5573 by inserting this line as \SpecialChar TeX
5574 Code before the multi-page table:
5577 \begin_layout Standard
5587 \begin_layout Standard
5588 The value can have any of the units listed in Table
5589 \begin_inset space ~
5593 \begin_inset CommandInset ref
5595 reference "tab:Units"
5606 controls the horizontal distance from the left page border to the multi-page
5613 the distance from the right side.
5614 The default value for both lengths is
5620 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5624 \begin_layout Standard
5625 The following multi-page table was centered and
5641 \begin_layout Plain Layout
5657 \begin_layout Standard
5658 \begin_inset Tabular
5659 <lyxtabular version="3" rows="5" columns="5">
5660 <features islongtable="true" longtabularalignment="center">
5661 <column alignment="center" valignment="top">
5662 <column alignment="center" valignment="top" width="0pt">
5663 <column alignment="center" valignment="top">
5664 <column alignment="center" valignment="top">
5665 <column alignment="center" valignment="top">
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5670 \begin_layout Plain Layout
5676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5679 \begin_layout Plain Layout
5685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_layout Plain Layout
5694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5697 \begin_layout Plain Layout
5703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5706 \begin_layout Plain Layout
5714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5717 \begin_layout Plain Layout
5723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_layout Plain Layout
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5735 \begin_layout Plain Layout
5741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5744 \begin_layout Plain Layout
5750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5753 \begin_layout Plain Layout
5761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5764 \begin_layout Plain Layout
5770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5773 \begin_layout Plain Layout
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5782 \begin_layout Plain Layout
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5791 \begin_layout Plain Layout
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5800 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5820 \begin_layout Plain Layout
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5829 \begin_layout Plain Layout
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5838 \begin_layout Plain Layout
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5847 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5867 \begin_layout Plain Layout
5873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5876 \begin_layout Plain Layout
5882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5885 \begin_layout Plain Layout
5891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5894 \begin_layout Plain Layout
5909 \begin_layout Plain Layout
5926 \begin_layout Plain Layout
5930 addtocounter{table}{-1}
5936 \begin_inset Note Note
5939 \begin_layout Plain Layout
5940 See the first greyed-out note in section
5941 \begin_inset space ~
5945 \begin_inset CommandInset ref
5947 reference "subsec:Multi-page-Table-Captions"
5951 for an explanation of this command.
5959 \begin_layout Subsection
5960 Multi-page Table Captions
5961 \begin_inset Index idx
5964 \begin_layout Plain Layout
5965 Table ! Multi-page Table ! Captions
5971 \begin_inset CommandInset label
5973 name "subsec:Multi-page-Table-Captions"
5980 \begin_layout Standard
5981 A multi-page table cannot be put into a table float because floats can only
5983 But the caption environment of floats can also be used for multi-page tables
5984 when you use the multi-page table option
5988 as described in sec.
5989 \begin_inset space \thinspace{}
5993 \begin_inset CommandInset ref
5995 reference "sec:Multi-page-Tables"
6000 Only one table row should contain a caption, either a header or a footer
6004 \begin_layout Standard
6005 Here is a short multi-page table to see how it works:
6008 \begin_layout Standard
6009 \begin_inset Tabular
6010 <lyxtabular version="3" rows="6" columns="5">
6011 <features islongtable="true" longtabularalignment="center">
6012 <column alignment="center" valignment="top">
6013 <column alignment="center" valignment="top">
6014 <column alignment="center" valignment="top">
6015 <column alignment="center" valignment="top">
6016 <column alignment="center" valignment="top">
6017 <row endfirsthead="true" caption="true">
6018 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6021 \begin_layout Plain Layout
6022 \begin_inset Caption Standard
6024 \begin_layout Plain Layout
6025 Multi-page table with caption
6026 \begin_inset Argument 1
6029 \begin_layout Plain Layout
6045 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6048 \begin_layout Plain Layout
6054 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6057 \begin_layout Plain Layout
6063 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6066 \begin_layout Plain Layout
6072 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Plain Layout
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Plain Layout
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Plain Layout
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Plain Layout
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Plain Layout
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6122 \begin_layout Plain Layout
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Plain Layout
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Plain Layout
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Plain Layout
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Plain Layout
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6169 \begin_layout Plain Layout
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Plain Layout
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Plain Layout
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Plain Layout
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Plain Layout
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_layout Plain Layout
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Plain Layout
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Plain Layout
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6245 \begin_layout Plain Layout
6251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6254 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6263 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6274 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6292 \begin_layout Plain Layout
6298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6301 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6310 \begin_layout Plain Layout
6324 \begin_layout Standard
6325 \begin_inset VSpace medskip
6329 \begin_inset Note Greyedout
6332 \begin_layout Plain Layout
6336 \begin_inset space ~
6341 The table number is increased for every multi-page table, even if you did
6342 not set a caption for it.
6343 For this reason you could have the case that e.
6344 \begin_inset space \thinspace{}
6348 \begin_inset space \space{}
6352 \begin_inset space ~
6356 \begin_inset space ~
6359 2.1 in the list of tables if there are two multi-page tables without captions.
6360 To avoid this you can add the following command in \SpecialChar TeX
6361 Code after every multi-page
6362 table without a caption:
6365 \begin_layout Plain Layout
6370 addtocounter{table}{-1}
6373 \begin_layout Plain Layout
6374 This is not needed when none of your multi-page tables has a caption and
6375 you add the following code to the document preamble:
6378 \begin_layout Plain Layout
6388 \begin_inset Newline newline
6399 addtocounter{table}{-1}}
6407 \begin_layout Standard
6408 \begin_inset Note Greyedout
6411 \begin_layout Plain Layout
6415 \begin_inset space ~
6425 \begin_inset Index idx
6428 \begin_layout Plain Layout
6430 -packages ! hyperref
6443 dialog to link cross-references, the link to a multi-page table caption
6444 will always point to the beginning of the document.
6452 \begin_layout Subsubsection
6453 References to multi-page tables
6454 \begin_inset Index idx
6457 \begin_layout Plain Layout
6458 Table ! Multi-page Table ! References
6466 \begin_layout Standard
6467 \begin_inset Tabular
6468 <lyxtabular version="3" rows="6" columns="5">
6469 <features islongtable="true" longtabularalignment="center">
6470 <column alignment="center" valignment="top">
6471 <column alignment="center" valignment="top">
6472 <column alignment="center" valignment="top">
6473 <column alignment="center" valignment="top">
6474 <column alignment="center" valignment="top">
6475 <row endfirsthead="true" caption="true">
6476 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6479 \begin_layout Plain Layout
6480 \begin_inset Caption Standard
6482 \begin_layout Plain Layout
6483 Referenced multi-page table
6484 \begin_inset CommandInset label
6486 name "tab:Referenced-multi-page-table"
6500 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6503 \begin_layout Plain Layout
6509 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6512 \begin_layout Plain Layout
6518 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6521 \begin_layout Plain Layout
6527 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6530 \begin_layout Plain Layout
6538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6541 \begin_layout Plain Layout
6547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6550 \begin_layout Plain Layout
6556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6559 \begin_layout Plain Layout
6565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6568 \begin_layout Plain Layout
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6577 \begin_layout Plain Layout
6585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6588 \begin_layout Plain Layout
6594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6615 \begin_layout Plain Layout
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6624 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6662 \begin_layout Plain Layout
6668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6671 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6709 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6718 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6756 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6765 \begin_layout Plain Layout
6779 \begin_layout Standard
6780 To reference a multi-page table, insert a label into the caption.
6783 \begin_layout Standard
6784 This is a reference to Table
6785 \begin_inset space ~
6789 \begin_inset CommandInset ref
6791 reference "tab:Referenced-multi-page-table"
6798 \begin_layout Standard
6799 The caption layout can be set together with all other captions of your document
6800 using the \SpecialChar LaTeX
6806 \begin_inset Index idx
6809 \begin_layout Plain Layout
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "sec:Caption-Formatting"
6830 \begin_layout Subsubsection
6832 \begin_inset Index idx
6835 \begin_layout Plain Layout
6836 Table ! Multi-page Table ! Caption Width
6844 \begin_layout Standard
6845 The maximal width of caption lines is defined by the length
6852 Its default value is 4
6853 \begin_inset space \thinspace{}
6857 To change it add the following command to your document preamble or as
6859 Code into your document before the multi-page table that should be affected
6862 \begin_layout Standard
6872 \begin_layout Standard
6877 can have one of the units listed in appendix
6878 \begin_inset space ~
6882 \begin_inset CommandInset ref
6884 reference "cha:Units-available-in"
6891 \begin_layout Standard
6892 The following tables show the difference:
6895 \begin_layout Standard
6896 \begin_inset Tabular
6897 <lyxtabular version="3" rows="6" columns="5">
6898 <features islongtable="true" longtabularalignment="center">
6899 <column alignment="center" valignment="top">
6900 <column alignment="center" valignment="top">
6901 <column alignment="center" valignment="top">
6902 <column alignment="center" valignment="top">
6903 <column alignment="center" valignment="top">
6904 <row endfirsthead="true" caption="true">
6905 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6908 \begin_layout Plain Layout
6909 \begin_inset Caption Standard
6911 \begin_layout Plain Layout
6912 Long full title with default width long full title with default width long
6913 full title with default width
6914 \begin_inset Argument 1
6917 \begin_layout Plain Layout
6918 caption with default width
6933 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6936 \begin_layout Plain Layout
6942 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6945 \begin_layout Plain Layout
6951 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Plain Layout
6971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7010 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7057 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7104 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7151 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7198 \begin_layout Plain Layout
7212 \begin_layout Standard
7216 \begin_layout Plain Layout
7228 \begin_inset Tabular
7229 <lyxtabular version="3" rows="6" columns="5">
7230 <features islongtable="true" longtabularalignment="center">
7231 <column alignment="center" valignment="top">
7232 <column alignment="center" valignment="top">
7233 <column alignment="center" valignment="top">
7234 <column alignment="center" valignment="top">
7235 <column alignment="center" valignment="top">
7236 <row endfirsthead="true" caption="true">
7237 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7240 \begin_layout Plain Layout
7241 \begin_inset Caption Standard
7243 \begin_layout Plain Layout
7244 Long full title with width set to 5
7245 \begin_inset space \thinspace{}
7248 cm long full title with width set to 5
7249 \begin_inset space \thinspace{}
7252 cm long full title with width set to 5
7253 \begin_inset space \thinspace{}
7257 \begin_inset Argument 1
7260 \begin_layout Plain Layout
7262 \begin_inset space \thinspace{}
7266 \begin_inset space \thinspace{}
7270 \begin_inset space \thinspace{}
7288 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7291 \begin_layout Plain Layout
7297 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7300 \begin_layout Plain Layout
7306 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7318 \begin_layout Plain Layout
7326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7329 \begin_layout Plain Layout
7335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7338 \begin_layout Plain Layout
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7365 \begin_layout Plain Layout
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7376 \begin_layout Plain Layout
7382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7385 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7412 \begin_layout Plain Layout
7420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7423 \begin_layout Plain Layout
7429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7432 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Plain Layout
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Plain Layout
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7479 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7506 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7526 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7535 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Plain Layout
7567 \begin_layout Standard
7571 \begin_layout Plain Layout
7585 \begin_layout Standard
7586 \begin_inset Note Greyedout
7589 \begin_layout Plain Layout
7594 When the \SpecialChar LaTeX
7600 \begin_inset Index idx
7603 \begin_layout Plain Layout
7610 is used, as in this document, the full page width is used for the caption
7611 when you use the default value of 4
7612 \begin_inset space \thinspace{}
7622 To get in this case exactly a 4
7623 \begin_inset space \thinspace{}
7626 in wide caption, you can either use a value slightly different from 4.0
7627 \begin_inset space \thinspace{}
7631 \begin_inset space \thinspace{}
7635 \begin_inset space \space{}
7639 \begin_inset space \thinspace{}
7642 in, or the \SpecialChar LaTeX
7647 captionsetup{width=value}
7649 that is provided by the
7661 \begin_layout Subsubsection
7662 Different Captions for Table Pages
7663 \begin_inset Index idx
7666 \begin_layout Plain Layout
7667 Table ! Multi-page Table ! Different Captions for Pages
7675 \begin_layout Standard
7676 When the table captions for the following pages should differ from the one
7677 of the first table page, mark a empty row as header which contains a caption.
7678 Then right-click on the caption and select in the context menu
7681 \begin_inset space ~
7688 \begin_inset space ~
7692 \begin_inset CommandInset ref
7694 reference "tab:DiffCaptions"
7698 is an example of a multi-page table with different heading where the second
7699 caption does not include the table number.
7702 \begin_layout Standard
7704 \begin_inset Tabular
7705 <lyxtabular version="3" rows="59" columns="3">
7706 <features islongtable="true" longtabularalignment="center">
7707 <column alignment="left" valignment="top" width="0cm">
7708 <column alignment="left" valignment="top" width="0pt">
7709 <column alignment="center" valignment="top" width="0pt">
7710 <row endfirsthead="true" caption="true">
7711 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7714 \begin_layout Plain Layout
7715 \begin_inset Caption Standard
7717 \begin_layout Plain Layout
7719 \begin_inset CommandInset label
7721 name "tab:DiffCaptions"
7726 \begin_inset Argument 1
7729 \begin_layout Plain Layout
7745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7748 \begin_layout Plain Layout
7754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7757 \begin_layout Plain Layout
7764 <row endfirsthead="true">
7765 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Plain Layout
7771 Example Phone List (ignore the names)
7776 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7779 \begin_layout Plain Layout
7785 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7788 \begin_layout Plain Layout
7795 <row endfirsthead="true">
7796 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7799 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7810 \begin_layout Plain Layout
7816 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7819 \begin_layout Plain Layout
7828 <row endhead="true" caption="true">
7829 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7832 \begin_layout Plain Layout
7833 \begin_inset Caption Unnumbered
7835 \begin_layout Plain Layout
7836 Continued Example Phone List
7846 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7849 \begin_layout Plain Layout
7855 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Plain Layout
7865 <row endhead="true">
7866 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7869 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7880 \begin_layout Plain Layout
7886 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Plain Layout
7896 <row endhead="true">
7897 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7900 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7911 \begin_layout Plain Layout
7917 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Plain Layout
7929 <row endfoot="true">
7930 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7933 \begin_layout Plain Layout
7934 continued on next page
7939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7942 \begin_layout Plain Layout
7948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Plain Layout
7959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7962 \begin_layout Plain Layout
7970 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
8001 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8032 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8063 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8094 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8106 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8117 \begin_layout Plain Layout
8125 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8137 \begin_layout Plain Layout
8145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8148 \begin_layout Plain Layout
8156 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8168 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8199 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8230 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8261 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8292 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8323 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8354 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8385 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8396 \begin_layout Plain Layout
8405 \begin_layout Plain Layout
8416 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8419 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8540 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8571 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8602 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8633 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8664 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8695 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8726 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8757 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8788 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8819 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8850 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8881 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8912 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8935 \begin_layout Plain Layout
8941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8944 \begin_layout Plain Layout
8950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8953 \begin_layout Plain Layout
8961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8964 \begin_layout Plain Layout
8972 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9003 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9034 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9065 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9096 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9127 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9158 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9189 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9220 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9251 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9282 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9294 \begin_layout Plain Layout
9302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9305 \begin_layout Plain Layout
9313 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9325 \begin_layout Plain Layout
9333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9336 \begin_layout Plain Layout
9344 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9356 \begin_layout Plain Layout
9364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9367 \begin_layout Plain Layout
9375 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9387 \begin_layout Plain Layout
9395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9398 \begin_layout Plain Layout
9406 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9418 \begin_layout Plain Layout
9426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9429 \begin_layout Plain Layout
9437 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9449 \begin_layout Plain Layout
9457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9460 \begin_layout Plain Layout
9468 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9480 \begin_layout Plain Layout
9488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9491 \begin_layout Plain Layout
9499 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9511 \begin_layout Plain Layout
9519 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9522 \begin_layout Plain Layout
9530 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9542 \begin_layout Plain Layout
9550 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9553 \begin_layout Plain Layout
9561 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9570 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9573 \begin_layout Plain Layout
9587 \begin_layout Section
9588 Special Multi-page Table Issues
9589 \begin_inset CommandInset label
9591 name "sec:Special-Longtable-Issues"
9598 \begin_layout Subsection
9599 Multi-page Table Calculation
9600 \begin_inset Index idx
9603 \begin_layout Plain Layout
9604 Table ! Multi-page Table ! Calculation
9612 \begin_layout Standard
9614 calculates the height of table pages and their page breaks using so called
9616 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9618 The default value was historically set to only 20
9619 \begin_inset space ~
9623 If you are using multi-page tables with many pages this may slow down the
9624 creation of your document.
9625 You can safely increase the chunk size to values of 100
9626 \begin_inset space \thinspace{}
9630 \begin_inset space \thinspace{}
9633 1000 by adding this command line to your document preamble:
9636 \begin_layout Standard
9641 setcounter{LTchunksize}{100}
9644 \begin_layout Subsection
9645 Floats and Multi-page Tables
9646 \begin_inset Index idx
9649 \begin_layout Plain Layout
9650 Table ! Multi-page Table ! Floats
9658 \begin_layout Standard
9659 There might be problems when a float appears on the same page where a multi-page
9661 To avoid such a situation, insert a
9662 \begin_inset Quotes eld
9666 \begin_inset Quotes erd
9671 Insert\SpecialChar menuseparator
9672 Formatting\SpecialChar menuseparator
9674 \begin_inset space ~
9679 ) before your multi-page table.
9682 \begin_layout Subsection
9684 \begin_inset Index idx
9687 \begin_layout Plain Layout
9688 Table ! Multi-page Table ! Forced Page Breaks
9696 \begin_layout Standard
9697 By default tables are only broken between rows.
9698 If you have a cell with multiples lines and want to have a page break within
9699 the cell, insert the new line command
9700 \begin_inset Quotes eld
9712 \begin_inset Quotes erd
9716 Code at the point of the cell where it can be broken.
9725 command you have to insert in \SpecialChar TeX
9727 \begin_inset Quotes eld
9735 \begin_inset Quotes erd
9738 characters as the number of the following table columns.
9743 is the character to separate table cells.
9744 Write in \SpecialChar TeX
9749 the content of the corresponding following cell and delete the content
9751 \begin_inset Newline newline
9762 command, insert as many
9766 characters as the number of table columns before the current column.
9768 \begin_inset space ~
9772 \begin_inset CommandInset ref
9774 reference "tab:ForcedPagebreak"
9778 the cell that should be broken is in the second column followed by another
9780 Therefore the following command was inserted in the cell as \SpecialChar TeX
9783 \begin_inset Quotes eld
9791 \begin_inset Quotes erd
9797 \begin_layout Standard
9807 \begin_inset Newline newline
9813 \begin_layout Standard
9815 \begin_inset Quotes eld
9819 \begin_inset Quotes erd
9822 in the third column of the row was deleted.
9829 is only needed when a page break should definitely occur at this position,
9830 otherwise it would be a conditional break.
9831 If your footer row of the multi-page table has for a certain reason no
9832 upper line but you would have a horizontal line where the cell is broken,
9833 use this command instead:
9836 \begin_layout Standard
9844 \begin_inset Newline newline
9852 \begin_layout Standard
9853 When the cell to be broken is in the last column, the command
9856 \begin_layout Standard
9866 \begin_layout Standard
9867 must be inserted as \SpecialChar TeX
9868 Code at the beginning of the cell.
9869 This ensures that the part of the cell that will be displayed on the new
9870 page appears with the full width.
9873 \begin_layout Standard
9875 \begin_inset Tabular
9876 <lyxtabular version="3" rows="38" columns="3">
9877 <features islongtable="true" longtabularalignment="center">
9878 <column alignment="left" valignment="top" width="0cm">
9879 <column alignment="left" valignment="top" width="3cm">
9880 <column alignment="center" valignment="top" width="0pt">
9881 <row endfirsthead="true" caption="true">
9882 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9885 \begin_layout Plain Layout
9886 \begin_inset Caption Standard
9888 \begin_layout Plain Layout
9889 Table with forced page break in table cell
9890 \begin_inset CommandInset label
9892 name "tab:ForcedPagebreak"
9897 \begin_inset Argument 1
9900 \begin_layout Plain Layout
9901 Table with forced page break in table cell
9916 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9919 \begin_layout Plain Layout
9925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9928 \begin_layout Plain Layout
9935 <row endfirsthead="true">
9936 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9939 \begin_layout Plain Layout
9942 Example Phone List (ignore the names)
9947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9950 \begin_layout Plain Layout
9956 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9959 \begin_layout Plain Layout
9966 <row endfirsthead="true">
9967 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9970 \begin_layout Plain Layout
9978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9981 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9990 \begin_layout Plain Layout
9999 <row endhead="true" caption="true">
10000 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10003 \begin_layout Plain Layout
10004 \begin_inset Caption Unnumbered
10006 \begin_layout Plain Layout
10007 Continued Example Phone List
10017 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10020 \begin_layout Plain Layout
10026 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10029 \begin_layout Plain Layout
10036 <row endhead="true">
10037 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10040 \begin_layout Plain Layout
10048 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10051 \begin_layout Plain Layout
10057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10060 \begin_layout Plain Layout
10067 <row endhead="true">
10068 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10071 \begin_layout Plain Layout
10079 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10082 \begin_layout Plain Layout
10088 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10091 \begin_layout Plain Layout
10100 <row endfoot="true">
10101 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10104 \begin_layout Plain Layout
10105 continued on next page
10110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10113 \begin_layout Plain Layout
10119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10122 \begin_layout Plain Layout
10130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10133 \begin_layout Plain Layout
10141 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10144 \begin_layout Plain Layout
10150 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10164 \begin_layout Plain Layout
10172 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10175 \begin_layout Plain Layout
10181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10184 \begin_layout Plain Layout
10192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10195 \begin_layout Plain Layout
10203 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10206 \begin_layout Plain Layout
10212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10215 \begin_layout Plain Layout
10223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10226 \begin_layout Plain Layout
10234 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10237 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10246 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10257 \begin_layout Plain Layout
10265 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10268 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10277 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10288 \begin_layout Plain Layout
10296 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10299 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10308 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10319 \begin_layout Plain Layout
10327 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10330 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10339 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10350 \begin_layout Plain Layout
10358 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10361 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10370 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10381 \begin_layout Plain Layout
10389 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10392 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10401 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10412 \begin_layout Plain Layout
10420 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10423 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10432 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10443 \begin_layout Plain Layout
10451 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10454 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10463 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10474 \begin_layout Plain Layout
10482 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10485 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10494 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10505 \begin_layout Plain Layout
10513 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10516 \begin_layout Plain Layout
10522 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10525 \begin_layout Plain Layout
10533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10536 \begin_layout Plain Layout
10544 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10547 \begin_layout Plain Layout
10553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10556 \begin_layout Plain Layout
10564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10567 \begin_layout Plain Layout
10575 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10578 \begin_layout Plain Layout
10584 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10587 \begin_layout Plain Layout
10595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10598 \begin_layout Plain Layout
10606 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10609 \begin_layout Plain Layout
10615 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10618 \begin_layout Plain Layout
10626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10629 \begin_layout Plain Layout
10637 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10640 \begin_layout Plain Layout
10646 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10649 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10660 \begin_layout Plain Layout
10668 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10671 \begin_layout Plain Layout
10677 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10680 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10691 \begin_layout Plain Layout
10699 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10702 \begin_layout Plain Layout
10708 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10711 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10722 \begin_layout Plain Layout
10730 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10733 \begin_layout Plain Layout
10739 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10742 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10753 \begin_layout Plain Layout
10761 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10764 \begin_layout Plain Layout
10770 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10773 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10784 \begin_layout Plain Layout
10792 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10795 \begin_layout Plain Layout
10801 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10804 \begin_layout Plain Layout
10812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10815 \begin_layout Plain Layout
10823 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10826 \begin_layout Plain Layout
10828 Fürst von Montecompatri, 11.
10829 Fürst von Sulmona und Vivaro, 10.
10830 Fürst von Rossano, 5.
10831 Herzog von Canemorte, 11.
10832 Herzog von Palombara, 5.
10833 Herzog von Castelchiodato,
10837 \begin_layout Plain Layout
10848 \begin_layout Plain Layout
10856 Herzog von Poggionativo, 11.
10857 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10858 Graf von Valinfreda, 11.
10859 Baron von Cropalati, 11.
10860 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10868 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10896 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10899 \begin_layout Plain Layout
10907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10910 \begin_layout Plain Layout
10918 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10921 \begin_layout Plain Layout
10927 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10930 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10961 \begin_layout Plain Layout
10969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10972 \begin_layout Plain Layout
10980 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10983 \begin_layout Plain Layout
10989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10992 \begin_layout Plain Layout
11000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11003 \begin_layout Plain Layout
11011 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11014 \begin_layout Plain Layout
11020 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11023 \begin_layout Plain Layout
11031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11034 \begin_layout Plain Layout
11042 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11045 \begin_layout Plain Layout
11051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11054 \begin_layout Plain Layout
11062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11065 \begin_layout Plain Layout
11073 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11076 \begin_layout Plain Layout
11082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11085 \begin_layout Plain Layout
11093 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11096 \begin_layout Plain Layout
11104 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11107 \begin_layout Plain Layout
11113 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11116 \begin_layout Plain Layout
11130 \begin_layout Section
11131 Multiple Lines, Columns and Rows
11134 \begin_layout Subsection
11135 Multiple Lines in Table Cells
11136 \begin_inset CommandInset label
11138 name "subsec:Multiple-Lines-in"
11143 \begin_inset Index idx
11146 \begin_layout Plain Layout
11147 Multiple Lines in Table Cells
11153 \begin_inset Index idx
11156 \begin_layout Plain Layout
11165 \begin_layout Standard
11167 \begin_inset Float table
11173 \begin_layout Plain Layout
11174 \begin_inset Caption Standard
11176 \begin_layout Plain Layout
11177 \begin_inset CommandInset label
11179 name "tab:Table-with-multiple"
11183 Table with multiple lines in cells
11191 \begin_layout Plain Layout
11193 \begin_inset Tabular
11194 <lyxtabular version="3" rows="3" columns="3">
11195 <features tabularvalignment="middle">
11196 <column alignment="center" valignment="middle" width="2.5cm">
11197 <column alignment="center" valignment="middle">
11198 <column alignment="center" valignment="middle">
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11205 \begin_inset Newline linebreak
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11216 \begin_layout Plain Layout
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11225 \begin_layout Plain Layout
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11254 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11283 \begin_layout Plain Layout
11302 \begin_layout Standard
11303 Setting a fixed width for a column enables you to enter text as a paragraph
11304 with multiple lines and hyphenation.
11307 \begin_layout Standard
11309 \begin_inset space ~
11313 \begin_inset CommandInset ref
11315 reference "tab:Table-with-multiple"
11319 , create a 3×3 table, mark the first cell and right-click on it.
11320 In the appearing table dialog we set a cell width of 2.5
11321 \begin_inset space \thinspace{}
11324 cm and choose centered for the vertical and horizontal alignment.
11325 The vertical alignment is used for all cells of the row.
11326 As our text is smaller than 2.5
11327 \begin_inset space \thinspace{}
11330 cm, only one line will appear.
11331 To get two lines, a justified line break (shortcut
11334 arg "newline-insert linebreak"
11338 If the text is wider than the set cell width, it will automatically be
11339 broken to several lines.
11342 \begin_layout Standard
11343 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11344 by \SpecialChar LaTeX
11345 if it is the first entry.
11346 Therefore you need to insert something to prevent the word not being the
11348 So add a horizontal space of 0
11349 \begin_inset space \thinspace{}
11352 pt before the word.
11353 As the space is zero, it doesn't change the output.
11355 \begin_inset space ~
11359 \begin_inset CommandInset ref
11361 reference "tab:Table-with-and"
11368 \begin_layout Standard
11369 \begin_inset Float table
11375 \begin_layout Plain Layout
11376 \begin_inset Caption Standard
11378 \begin_layout Plain Layout
11379 \begin_inset CommandInset label
11381 name "tab:Table-with-and"
11385 Table with and without hyphenation
11393 \begin_layout Plain Layout
11394 \begin_inset space \hfill{}
11398 \begin_inset Tabular
11399 <lyxtabular version="3" rows="3" columns="3">
11400 <features tabularvalignment="middle">
11401 <column alignment="center" valignment="middle" width="2.5cm">
11402 <column alignment="center" valignment="middle">
11403 <column alignment="center" valignment="middle">
11405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11408 \begin_layout Plain Layout
11409 verylongtablecellword
11414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11417 \begin_layout Plain Layout
11423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11426 \begin_layout Plain Layout
11434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11437 \begin_layout Plain Layout
11443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11446 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11475 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11484 \begin_layout Plain Layout
11496 \begin_inset space \hfill{}
11500 \begin_inset Tabular
11501 <lyxtabular version="3" rows="3" columns="3">
11502 <features tabularvalignment="middle">
11503 <column alignment="center" valignment="middle" width="2.5cm">
11504 <column alignment="center" valignment="middle">
11505 <column alignment="center" valignment="middle">
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11511 \begin_inset space \hspace{}
11515 verylongtablecellword
11520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11523 \begin_layout Plain Layout
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11552 \begin_layout Plain Layout
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11561 \begin_layout Plain Layout
11569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11572 \begin_layout Plain Layout
11578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11581 \begin_layout Plain Layout
11587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11590 \begin_layout Plain Layout
11602 \begin_inset space \hfill{}
11613 \begin_layout Subsection
11615 \begin_inset CommandInset label
11617 name "subsec:Multicolumns"
11622 \begin_inset Index idx
11625 \begin_layout Plain Layout
11632 \begin_inset Index idx
11635 \begin_layout Plain Layout
11636 Table ! Multicolumns
11644 \begin_layout Subsubsection
11648 \begin_layout Standard
11649 To merge cells over multiple columns, select as many cells within a row
11650 as you want to merge and use either the table-toolbar button
11653 arg "tabular-feature multicolumn"
11658 Edit\SpecialChar menuseparator
11659 Table\SpecialChar menuseparator
11662 , or right click on the marked cells and choose
11666 in the context menu.
11669 \begin_layout Standard
11670 Multicolumns have their own cell settings.
11671 That means changing cell borders, cell alignment, and the width only affects
11673 Here is an example table with a multicolumn cell in the first row and one
11674 in the last row without the upper border:
11677 \begin_layout Standard
11679 \begin_inset Tabular
11680 <lyxtabular version="3" rows="3" columns="4">
11681 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11682 <column alignment="center" valignment="top" width="0pt">
11683 <column alignment="center" valignment="middle">
11684 <column alignment="center" valignment="top" width="0in">
11685 <column alignment="center" valignment="top" width="0pt">
11687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11690 \begin_layout Plain Layout
11696 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11699 \begin_layout Plain Layout
11705 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11708 \begin_layout Plain Layout
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11717 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11746 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11764 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11775 \begin_layout Plain Layout
11781 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11784 \begin_layout Plain Layout
11790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11793 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11802 \begin_layout Plain Layout
11816 \begin_layout Subsubsection
11817 Multicolumn Calculations
11818 \begin_inset CommandInset label
11820 name "subsec:Multicolumn-Calculations"
11825 \begin_inset Index idx
11828 \begin_layout Plain Layout
11829 Multicolumns ! Calculations
11837 \begin_layout Standard
11839 supports multicolumns directly, but we have to take account of the cell
11840 width of the columns spanned by the multicolumn cell.
11843 \begin_layout Standard
11844 \begin_inset Float table
11850 \begin_layout Plain Layout
11851 \begin_inset Caption Standard
11853 \begin_layout Plain Layout
11854 \begin_inset CommandInset label
11856 name "tab:Table-with-centered"
11860 Table with centered multicolumn text above two columns that have exactly
11861 half the width of the multicolumn cell
11862 \begin_inset Argument 1
11865 \begin_layout Plain Layout
11866 Perfect multicolumn table
11879 \begin_layout Plain Layout
11881 \begin_inset Tabular
11882 <lyxtabular version="3" rows="3" columns="3">
11883 <features tabularvalignment="middle">
11884 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11885 <column alignment="center" valignment="middle">
11886 <column alignment="center" valignment="top">
11888 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11891 \begin_layout Plain Layout
11892 multiple lines multicolumn
11897 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11900 \begin_layout Plain Layout
11906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11909 \begin_layout Plain Layout
11917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11920 \begin_layout Plain Layout
11926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11929 \begin_layout Plain Layout
11935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11938 \begin_layout Plain Layout
11946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11949 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11958 \begin_layout Plain Layout
11964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11967 \begin_layout Plain Layout
11986 \begin_layout Standard
11987 To create for example Table
11988 \begin_inset space ~
11992 \begin_inset CommandInset ref
11994 reference "tab:Table-with-centered"
11998 , mark the first two cells in the first row of a 3×3 table and right-click
12000 Now choose for this cell
12009 \begin_inset space \thinspace{}
12012 cm in the table dialog.
12013 The merged columns should have exactly half the width of the multicolumn
12014 cell, so that you would set a width of 1.25
12015 \begin_inset space \thinspace{}
12018 cm for the first column.
12019 The second column has then automatically a width of 1.25
12020 \begin_inset space \thinspace{}
12023 cm (multicolumn width - width of first column).
12024 This was done for Table
12025 \begin_inset space ~
12029 \begin_inset CommandInset ref
12031 reference "tab:Table-without-half"
12038 \begin_layout Standard
12039 \begin_inset Float table
12044 \begin_layout Plain Layout
12045 \begin_inset Caption Standard
12047 \begin_layout Plain Layout
12048 \begin_inset CommandInset label
12050 name "tab:Table-without-half"
12054 Table where the spanned table columns are not exactly half the width of
12055 the multicolumn cell
12056 \begin_inset Argument 1
12059 \begin_layout Plain Layout
12060 Imperfect multicolumn table
12073 \begin_layout Plain Layout
12075 \begin_inset Tabular
12076 <lyxtabular version="3" rows="3" columns="3">
12077 <features tabularvalignment="middle">
12078 <column alignment="center" valignment="top" width="1.25cm">
12079 <column alignment="center" valignment="top">
12080 <column alignment="center" valignment="top">
12082 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12085 \begin_layout Plain Layout
12086 multiple lines multicolumn
12091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12094 \begin_layout Plain Layout
12100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12103 \begin_layout Plain Layout
12111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12114 \begin_layout Plain Layout
12120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12123 \begin_layout Plain Layout
12129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12132 \begin_layout Plain Layout
12140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12161 \begin_layout Plain Layout
12180 \begin_layout Standard
12181 You can see that the first column is not half the width of the multicolumn
12182 cell, it is a bit bigger.
12183 The reason is that the specified width of a cell
12184 \begin_inset Formula $W_{g}$
12187 is not its total width
12188 \begin_inset Formula $W_{\mathrm{tot}}$
12191 because a cell is always a bit larger than specified.
12193 \begin_inset space ~
12197 \begin_inset CommandInset ref
12199 reference "cha:Explanation-of-Equation"
12203 explains this in detail.
12206 \begin_layout Standard
12208 \begin_inset Formula $W_{g\,n}$
12211 which the user needs to set when
12215 columns are spanned can be calculated, so that each column has a total
12217 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12221 \begin_inset Formula
12223 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12231 \begin_layout Standard
12232 In our case we have
12233 \begin_inset Formula $n=2$
12237 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12240 cm and the default values for the lengths, so that equation
12241 \begin_inset CommandInset ref
12248 \begin_inset Formula
12250 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12258 \begin_layout Standard
12259 To enable calculations in \SpecialChar LaTeX
12260 , the \SpecialChar LaTeX
12265 must be loaded with the document preamble line
12266 \begin_inset Index idx
12269 \begin_layout Plain Layout
12279 \begin_layout Standard
12287 \begin_layout Standard
12289 does not allow you to calculate lengths in the
12293 field of the table dialog.
12294 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12297 Here is an overview about the arguments:
12300 \begin_layout Itemize
12305 creates cell with a fixed width, its text is vertically top-aligned
12308 \begin_layout Itemize
12313 creates cell with a fixed width, its text is vertically centered
12316 \begin_layout Itemize
12321 creates cell with a fixed width, its text is vertically bottom-aligned
12324 \begin_layout Standard
12325 By entering a \SpecialChar LaTeX
12326 -argument, all cell settings set in the table dialog are overwritt
12330 \begin_layout Standard
12331 \begin_inset Note Greyedout
12334 \begin_layout Plain Layout
12339 Due to a bug, \SpecialChar LyX
12340 shows the overwritten settings anyway.
12348 \begin_layout Standard
12349 As the text should be horizontally centered, the command
12356 You can now enter the following \SpecialChar LaTeX
12357 -argument for the first spanned column:
12360 \begin_layout Standard
12365 centering}m{1.25cm-6.2pt}
12368 \begin_layout Standard
12373 means, that the commands inside the braces are applied before the cell
12377 \begin_layout Standard
12378 Although we have chosen centered alignment for the text of the multicolumn
12379 cell, it is still left aligned.
12380 This is because \SpecialChar LyX
12381 only applies the alignment to single columns.
12382 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12386 \begin_layout Standard
12394 \begin_layout Subsection
12396 \begin_inset CommandInset label
12398 name "subsec:Multirows"
12403 \begin_inset Index idx
12406 \begin_layout Plain Layout
12413 \begin_inset Index idx
12416 \begin_layout Plain Layout
12425 \begin_layout Standard
12426 To merge cells over multiple rows, select as many cells within a column
12427 as you want to merge and use either the table-toolbar button
12430 arg "tabular-feature multirow"
12435 Edit\SpecialChar menuseparator
12436 Table\SpecialChar menuseparator
12439 , or right click on the marked cells and choose
12443 in the context menu.
12446 \begin_layout Standard
12447 Here is an example table with a multirow in the first column:
12450 \begin_layout Standard
12452 \begin_inset Tabular
12453 <lyxtabular version="3" rows="3" columns="3">
12454 <features tabularvalignment="middle">
12455 <column alignment="center" valignment="top" width="0pt">
12456 <column alignment="center" valignment="top">
12457 <column alignment="center" valignment="top">
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Plain Layout
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12471 \begin_layout Plain Layout
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12480 \begin_layout Plain Layout
12488 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12500 \begin_layout Plain Layout
12506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12509 \begin_layout Plain Layout
12517 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12529 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12538 \begin_layout Plain Layout
12552 \begin_layout Standard
12553 The width of multirow cells is set by setting the width and alignment for
12559 shifts the content of the multirow up/down if the offset is positive/negative.
12562 \begin_layout Standard
12563 If the column of a multirow cell has no explicit width, the multirow cell
12564 inherits the alignment of the column.
12565 Otherwise it is by default left-aligned.
12566 To override the default, renew the command
12575 \begin_layout Standard
12587 \begin_layout Standard
12588 in the document preamble.
12589 Then all entries of multirow cells in the document are centered.
12590 If centering is only needed for several tables, you can renew the command
12591 in a \SpecialChar TeX
12592 Code box just before the table instead of the preamble.
12593 If the text should be right-aligned, replace
12606 To return to left-alignment
12615 \begin_layout Standard
12616 This is an example table with a right-aligned multirow cell that has a vertical
12618 \begin_inset space \thinspace{}
12622 \begin_inset space \thinspace{}
12628 \begin_layout Standard
12634 \begin_layout Plain Layout
12648 \begin_inset Tabular
12649 <lyxtabular version="3" rows="4" columns="3">
12650 <features tabularvalignment="middle">
12651 <column alignment="center" valignment="top" width="3cm">
12652 <column alignment="center" valignment="top">
12653 <column alignment="center" valignment="top">
12655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12667 \begin_layout Plain Layout
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12676 \begin_layout Plain Layout
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12705 \begin_layout Plain Layout
12713 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12734 \begin_layout Plain Layout
12742 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12763 \begin_layout Plain Layout
12778 \begin_layout Plain Layout
12794 \begin_layout Standard
12795 To start a new line in a multirow you can use a forced line break (shortcut
12799 arg "newline-insert newline"
12802 ) but this will not respect the cell lines as demonstrated in this table:
12805 \begin_layout Standard
12808 \begin_inset Tabular
12809 <lyxtabular version="3" rows="3" columns="2">
12810 <features tabularvalignment="middle">
12811 <column alignment="left" valignment="middle" width="2cm">
12812 <column alignment="center" valignment="top">
12814 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12817 \begin_layout Plain Layout
12819 \begin_inset Newline newline
12823 \begin_inset Newline newline
12831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12834 \begin_layout Plain Layout
12842 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12845 \begin_layout Plain Layout
12851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12854 \begin_layout Plain Layout
12862 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12874 \begin_layout Plain Layout
12888 \begin_layout Standard
12889 Therefore be careful with forced line breaks.
12892 \begin_layout Subsection
12893 Cells with diagonal line(s)
12896 \begin_layout Standard
12897 To tell the reader what is meant by column and row headings in a table,
12898 it is helpful to split the first cell of the table by one or two diagonal
12900 This can be achieved by loading the \SpecialChar LaTeX
12906 \begin_inset Index idx
12909 \begin_layout Plain Layout
12911 -packages ! picinpar
12916 in the document preamble.
12917 The package provides the command
12923 that is inserted as \SpecialChar TeX
12924 Code and that can take 2 or 3
12925 \begin_inset space ~
12931 \begin_layout Standard
12936 diagbox[options]{lower left}{upper right}
12939 \begin_layout Standard
12944 diagbox[options]{lower left}{upper left}{upper right}
12947 \begin_layout Standard
12948 The first scheme divides the cell by a single diagonal line and the arguments
12949 are placed below and above this line.
12950 The second scheme divides the cell by 2
12951 \begin_inset space ~
12957 \begin_layout Standard
12961 \begin_layout Plain Layout
12971 \begin_inset Note Note
12974 \begin_layout Plain Layout
12975 The following section will only be displayed when the \SpecialChar LaTeX
12988 \begin_layout Standard
12989 Here is an example table where
12995 is used in the 2-argument scheme in the first cell:
12996 \begin_inset VSpace medskip
13002 \begin_layout Standard
13004 \begin_inset Tabular
13005 <lyxtabular version="3" rows="4" columns="4">
13006 <features tabularvalignment="middle">
13007 <column alignment="center" valignment="top">
13008 <column alignment="center" valignment="top">
13009 <column alignment="center" valignment="top">
13010 <column alignment="center" valignment="top">
13012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13015 \begin_layout Plain Layout
13019 \begin_layout Plain Layout
13032 \begin_layout Plain Layout
13043 \begin_layout Plain Layout
13055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13058 \begin_layout Plain Layout
13064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13067 \begin_layout Plain Layout
13073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13076 \begin_layout Plain Layout
13084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13087 \begin_layout Plain Layout
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13096 \begin_layout Plain Layout
13102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13105 \begin_layout Plain Layout
13111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13114 \begin_layout Plain Layout
13122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13125 \begin_layout Plain Layout
13131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13134 \begin_layout Plain Layout
13140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13143 \begin_layout Plain Layout
13149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13152 \begin_layout Plain Layout
13160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13163 \begin_layout Plain Layout
13169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13172 \begin_layout Plain Layout
13178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13181 \begin_layout Plain Layout
13187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13190 \begin_layout Plain Layout
13202 \begin_inset VSpace medskip
13208 \begin_layout Standard
13209 The 3-argument scheme is for example useful for cross-tables of sports leagues
13213 \begin_layout Standard
13216 \begin_inset Tabular
13217 <lyxtabular version="3" rows="4" columns="4">
13218 <features tabularvalignment="middle">
13219 <column alignment="center" valignment="top" width="0pt">
13220 <column alignment="center" valignment="top">
13221 <column alignment="center" valignment="top">
13222 <column alignment="center" valignment="top">
13224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13227 \begin_layout Plain Layout
13231 \begin_layout Plain Layout
13244 \begin_layout Plain Layout
13255 \begin_layout Plain Layout
13266 \begin_layout Plain Layout
13278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13281 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13290 \begin_layout Plain Layout
13296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13299 \begin_layout Plain Layout
13307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13310 \begin_layout Plain Layout
13316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13319 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13337 \begin_layout Plain Layout
13345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13348 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13375 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13413 \begin_layout Plain Layout
13427 \begin_layout Standard
13428 For larger cross-tables one might use split cells in 2 or every corner of
13429 the table like in this example:
13432 \begin_layout Standard
13435 \begin_inset Tabular
13436 <lyxtabular version="3" rows="5" columns="5">
13437 <features tabularvalignment="middle">
13438 <column alignment="center" valignment="top" width="0pt">
13439 <column alignment="center" valignment="top">
13440 <column alignment="center" valignment="top">
13441 <column alignment="center" valignment="top">
13442 <column alignment="center" valignment="top">
13444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13451 \begin_layout Plain Layout
13464 \begin_layout Plain Layout
13475 \begin_layout Plain Layout
13486 \begin_layout Plain Layout
13498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13501 \begin_layout Plain Layout
13507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13510 \begin_layout Plain Layout
13516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13519 \begin_layout Plain Layout
13525 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13528 \begin_layout Plain Layout
13532 \begin_layout Plain Layout
13545 \begin_layout Plain Layout
13556 \begin_layout Plain Layout
13567 \begin_layout Plain Layout
13581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13584 \begin_layout Plain Layout
13590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13593 \begin_layout Plain Layout
13599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13602 \begin_layout Plain Layout
13608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13611 \begin_layout Plain Layout
13617 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13620 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13696 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13729 \begin_layout Plain Layout
13742 \begin_layout Plain Layout
13753 \begin_layout Plain Layout
13764 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13788 \begin_layout Plain Layout
13794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13797 \begin_layout Plain Layout
13803 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13806 \begin_layout Plain Layout
13810 \begin_layout Plain Layout
13823 \begin_layout Plain Layout
13834 \begin_layout Plain Layout
13845 \begin_layout Plain Layout
13865 \begin_layout Standard
13866 To rotate the diagonal lines, the command option
13891 and represent a point of a compass.
13896 is for example the south-west corner.
13897 Thus in the lower left cell of the above table the command
13900 \begin_layout Standard
13905 diagbox[dir=SW]{Team home}{Result}{Team away}
13908 \begin_layout Standard
13910 If no direction is given, it will be NW.
13913 \begin_layout Standard
13914 The necessary width of split cells is automatically calculated.
13915 Thus if you set a fixed column width smaller than the calculated one, the
13916 cell's content will protrude the cell borders:
13919 \begin_layout Standard
13922 \begin_inset Tabular
13923 <lyxtabular version="3" rows="2" columns="2">
13924 <features tabularvalignment="middle">
13925 <column alignment="center" valignment="top" width="3cm">
13926 <column alignment="center" valignment="top">
13928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13931 \begin_layout Plain Layout
13935 \begin_layout Plain Layout
13948 \begin_layout Plain Layout
13959 \begin_layout Plain Layout
13971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13974 \begin_layout Plain Layout
13982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13985 \begin_layout Plain Layout
13991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13994 \begin_layout Plain Layout
14008 \begin_layout Standard
14009 If you need a certain width for columns with a split cell, use the command
14014 (replace '3cm' by the width you need).
14015 In the following table the width of the first column is set to 4
14016 \begin_inset space \thinspace{}
14027 \begin_inset space \thinspace{}
14031 \begin_inset space \thinspace{}
14036 tabcolsep is necessary because the overall width is the width for the text
14037 (in this case the 4
14038 \begin_inset space \thinspace{}
14041 cm) plus two times the separation of the text and the cell border.
14042 The calculation of the width cannot be done in the command option of
14048 so one needs to create a new length which can be used later.
14049 This is done with the \SpecialChar TeX
14053 \begin_layout Standard
14061 \begin_inset Newline newline
14073 \begin_layout Standard
14077 \begin_layout Plain Layout
14086 \begin_layout Plain Layout
14102 \begin_layout Standard
14103 To enable calculations in \SpecialChar LaTeX
14104 one needs to load the package
14109 \begin_inset Index idx
14112 \begin_layout Plain Layout
14119 in the document preamble.
14122 \begin_layout Standard
14123 In this table you can now use the command
14126 \begin_layout Standard
14136 \begin_layout Standard
14140 \begin_layout Standard
14143 \begin_inset Tabular
14144 <lyxtabular version="3" rows="2" columns="2">
14145 <features tabularvalignment="middle">
14146 <column alignment="center" valignment="top" width="4cm">
14147 <column alignment="center" valignment="top">
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14156 \begin_layout Plain Layout
14171 \begin_layout Plain Layout
14182 \begin_layout Plain Layout
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14197 \begin_layout Plain Layout
14205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14208 \begin_layout Plain Layout
14214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14217 \begin_layout Plain Layout
14231 \begin_layout Standard
14232 Note that the split cell needs to be the widest one in the column.
14233 Otherwise the length of the diagonal line cannot be calculated correctly
14234 like in this table:
14237 \begin_layout Standard
14240 \begin_inset Tabular
14241 <lyxtabular version="3" rows="2" columns="2">
14242 <features tabularvalignment="middle">
14243 <column alignment="center" valignment="top" width="0pt">
14244 <column alignment="center" valignment="top">
14246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14249 \begin_layout Plain Layout
14253 \begin_layout Plain Layout
14266 \begin_layout Plain Layout
14277 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14292 \begin_layout Plain Layout
14300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14303 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14312 \begin_layout Plain Layout
14326 \begin_layout Standard
14327 In this case use the
14338 It is then not necessary to add 2
14340 tabcolsep because the cell width is now the width of the column.
14341 In this table a width of 3
14342 \begin_inset space \thinspace{}
14348 \begin_layout Standard
14351 \begin_inset Tabular
14352 <lyxtabular version="3" rows="2" columns="2">
14353 <features tabularvalignment="middle">
14354 <column alignment="center" valignment="top" width="0pt">
14355 <column alignment="center" valignment="top">
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Plain Layout
14364 \begin_layout Plain Layout
14368 diagbox[width=3cm]{
14377 \begin_layout Plain Layout
14388 \begin_layout Plain Layout
14400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14403 \begin_layout Plain Layout
14411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14414 \begin_layout Plain Layout
14420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14423 \begin_layout Plain Layout
14437 \begin_layout Standard
14438 For multiple text lines in split cells one needs some extra height to fit
14439 the text to the cell.
14440 This can be achieved with the
14450 (replace '3cm' by the height you need).
14451 In the following table the command
14454 \begin_layout Standard
14459 diagbox[width=3cm,height=1.4cm]{A
14470 \begin_layout Standard
14471 is used in the first cell.
14480 creates hereby the line break.
14484 \begin_layout Plain Layout
14485 Breaking lines with
14489 is only possible when the column has a fixed width.
14497 \begin_layout Standard
14500 \begin_inset Tabular
14501 <lyxtabular version="3" rows="2" columns="2">
14502 <features tabularvalignment="middle">
14503 <column alignment="center" valignment="top">
14504 <column alignment="center" valignment="top">
14506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14509 \begin_layout Plain Layout
14513 \begin_layout Plain Layout
14517 diagbox[width=3cm,height=1.4cm]{
14526 \begin_layout Plain Layout
14541 \begin_layout Plain Layout
14552 \begin_layout Plain Layout
14567 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14582 \begin_layout Plain Layout
14590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14593 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Plain Layout
14616 \begin_layout Standard
14620 \begin_layout Plain Layout
14630 \begin_inset Note Note
14633 \begin_layout Plain Layout
14634 The following will be displayed when the \SpecialChar LaTeX
14647 \begin_layout Standard
14648 You need to install the \SpecialChar LaTeX
14653 to see the following part of this section in the output.
14656 \begin_layout Standard
14660 \begin_layout Plain Layout
14672 \begin_layout Standard
14673 For more info about the \SpecialChar LaTeX
14678 , see its documentation,
14679 \begin_inset CommandInset citation
14689 \begin_layout Section
14691 \begin_inset CommandInset label
14693 name "sec:Formal-Tables"
14698 \begin_inset Index idx
14701 \begin_layout Plain Layout
14710 \begin_layout Standard
14711 Tables are often typeset in books similar to Table
14712 \begin_inset space ~
14716 \begin_inset CommandInset ref
14718 reference "tab:Example-booktabs-table"
14723 This kind of tables is called
14724 \begin_inset Quotes eld
14732 \begin_inset Quotes erd
14736 To make a table a formal table use the option
14744 tab of the table dialog.
14747 \begin_layout Standard
14748 \begin_inset Float table
14754 \begin_layout Plain Layout
14755 \begin_inset Caption Standard
14757 \begin_layout Plain Layout
14758 \begin_inset CommandInset label
14760 name "tab:Example-booktabs-table"
14764 Example booktabs-table
14772 \begin_layout Plain Layout
14774 \begin_inset Tabular
14775 <lyxtabular version="3" rows="8" columns="4">
14776 <features booktabs="true" tabularvalignment="middle">
14777 <column alignment="center" valignment="top">
14778 <column alignment="center" valignment="top">
14779 <column alignment="center" valignment="top">
14780 <column alignment="center" valignment="top">
14782 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14785 \begin_layout Plain Layout
14791 <cell alignment="center" valignment="top" topline="true" usebox="none">
14794 \begin_layout Plain Layout
14796 \begin_inset space \thinspace{}
14804 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14807 \begin_layout Plain Layout
14809 \begin_inset space \thinspace{}
14817 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14820 \begin_layout Plain Layout
14828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14831 \begin_layout Plain Layout
14835 \begin_layout Plain Layout
14848 \begin_layout Plain Layout
14857 Detector thickness in µm
14862 <cell alignment="center" valignment="top" usebox="none">
14865 \begin_layout Plain Layout
14871 <cell alignment="center" valignment="top" usebox="none">
14874 \begin_layout Plain Layout
14880 <cell alignment="center" valignment="top" usebox="none">
14883 \begin_layout Plain Layout
14891 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14894 \begin_layout Plain Layout
14900 <cell alignment="center" valignment="top" topline="true" usebox="none">
14903 \begin_layout Plain Layout
14909 <cell alignment="center" valignment="top" topline="true" usebox="none">
14912 \begin_layout Plain Layout
14918 <cell alignment="center" valignment="top" topline="true" usebox="none">
14921 \begin_layout Plain Layout
14928 <row topspace="default">
14929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14932 \begin_layout Plain Layout
14933 Spatial resolution in µm
14938 <cell alignment="center" valignment="top" usebox="none">
14941 \begin_layout Plain Layout
14947 <cell alignment="center" valignment="top" usebox="none">
14950 \begin_layout Plain Layout
14956 <cell alignment="center" valignment="top" usebox="none">
14959 \begin_layout Plain Layout
14966 <row topspace="default">
14967 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14970 \begin_layout Plain Layout
14972 \begin_inset Formula $f_{\mathrm{max}}$
14980 <cell alignment="center" valignment="top" usebox="none">
14983 \begin_layout Plain Layout
14989 <cell alignment="center" valignment="top" usebox="none">
14992 \begin_layout Plain Layout
14998 <cell alignment="center" valignment="top" usebox="none">
15001 \begin_layout Plain Layout
15008 <row topspace="default">
15009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15012 \begin_layout Plain Layout
15016 \begin_layout Plain Layout
15020 cmidrule[2pt](l{10pt}){1-1}
15025 LSF-spatial resolution
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15048 <cell alignment="center" valignment="top" usebox="none">
15051 \begin_layout Plain Layout
15059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15062 \begin_layout Plain Layout
15068 <cell alignment="center" valignment="top" usebox="none">
15071 \begin_layout Plain Layout
15077 <cell alignment="center" valignment="top" usebox="none">
15080 \begin_layout Plain Layout
15086 <cell alignment="center" valignment="top" usebox="none">
15089 \begin_layout Plain Layout
15097 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15100 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15109 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15118 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15127 \begin_layout Plain Layout
15146 \begin_layout Standard
15147 Spaces to table rows can be added using the
15151 tab of the table dialog as described in section
15152 \begin_inset space ~
15156 \begin_inset CommandInset ref
15158 reference "subsec:Row-Spacing"
15165 \begin_layout Standard
15166 Unlike normal tables, formal tables have no vertical table lines.
15167 The horizontal table lines can be set as for normal tables but they appear
15168 with different widths in the output:
15169 \begin_inset Newline newline
15172 The first and the last table line have a default width of 0.08
15173 \begin_inset space \thinspace{}
15176 em while the other lines have a default width of 0.05
15177 \begin_inset space \thinspace{}
15183 \begin_layout Standard
15184 The default widths can be changed with the following preamble lines
15187 \begin_layout Standard
15197 \begin_inset Newline newline
15209 \begin_layout Standard
15210 This example is for the first line, the so called
15215 If you want to change the width for the last line, replace
15224 To change the width for the other lines replace
15233 You can use all units listed in appendix
15234 \begin_inset space ~
15238 \begin_inset CommandInset ref
15240 reference "cha:Units-available-in"
15247 \begin_layout Standard
15248 Lines that do not span all table columns can be created by setting a table
15249 line for multicolumn cells.
15251 will then internally use the command
15257 to create this line.
15261 \begin_layout Standard
15266 cmidrule[height](trim){startcol-endcol}
15269 \begin_layout Standard
15276 are currently not supported by \SpecialChar LyX
15277 so you have to use \SpecialChar TeX
15286 s can manually be created by inserting the command as \SpecialChar TeX
15288 cell entry of the first cell of a row.
15289 The line is then drawn in the output above the current row.
15292 \begin_layout Standard
15293 The default for the optional
15298 \begin_inset space \thinspace{}
15306 is the number of the column where the line starts and
15310 the column number where the line ends.
15315 always needs to be specified, also when the line should span only one column.
15316 The optional parameter
15333 Using for example the parameter
15337 means that the line is trimmed from its left end by 2
15338 \begin_inset space \thinspace{}
15342 If you don't specify the
15346 the line is trimmed by the default of 0.5
15347 \begin_inset space \thinspace{}
15353 \begin_layout Standard
15354 \begin_inset VSpace bigskip
15358 \begin_inset space ~
15362 \begin_inset CommandInset ref
15364 reference "tab:Example-booktabs-table"
15368 was created using the commands
15371 \begin_layout Standard
15381 \begin_layout Standard
15382 at the beginning of the second row and
15385 \begin_layout Standard
15390 cmidrule[2pt](l{10pt}){1-1}
15393 \begin_layout Standard
15397 \begin_layout Standard
15398 \begin_inset VSpace bigskip
15404 \begin_layout Standard
15405 You might want to have overlapping
15412 \begin_inset space ~
15416 \begin_inset CommandInset ref
15418 reference "tab:Special-booktabs-table"
15423 This can be achieved with the \SpecialChar TeX
15427 \begin_layout Standard
15435 \begin_layout Standard
15436 The command that was used for the second row of Table
15437 \begin_inset space ~
15441 \begin_inset CommandInset ref
15443 reference "tab:Special-booktabs-table"
15450 \begin_layout Standard
15464 \begin_layout Standard
15465 The command for the sixth row is
15468 \begin_layout Standard
15480 \begin_layout Standard
15481 \begin_inset VSpace bigskip
15487 \begin_layout Standard
15488 If you are in any way not satisfied with the border line spacing, you can
15489 use the following command to produce lines that span over all table columns
15494 \begin_layout Standard
15499 specialrule{width}{space above}{space below}
15502 \begin_layout Standard
15503 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15510 \begin_inset CommandInset citation
15518 \begin_inset Index idx
15521 \begin_layout Plain Layout
15523 -packages ! booktabs
15531 \begin_layout Standard
15532 \begin_inset Float table
15538 \begin_layout Plain Layout
15539 \begin_inset Caption Standard
15541 \begin_layout Plain Layout
15542 \begin_inset CommandInset label
15544 name "tab:Special-booktabs-table"
15548 Special booktabs-table
15556 \begin_layout Plain Layout
15558 \begin_inset Tabular
15559 <lyxtabular version="3" rows="8" columns="4">
15560 <features booktabs="true" tabularvalignment="middle">
15561 <column alignment="center" valignment="top">
15562 <column alignment="center" valignment="top">
15563 <column alignment="center" valignment="top">
15564 <column alignment="center" valignment="top">
15566 <cell alignment="center" valignment="top" topline="true" usebox="none">
15569 \begin_layout Plain Layout
15575 <cell alignment="center" valignment="top" topline="true" usebox="none">
15578 \begin_layout Plain Layout
15580 \begin_inset space \thinspace{}
15588 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15591 \begin_layout Plain Layout
15593 \begin_inset space \thinspace{}
15601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15604 \begin_layout Plain Layout
15612 <cell alignment="center" valignment="top" usebox="none">
15615 \begin_layout Plain Layout
15619 \begin_layout Plain Layout
15632 \begin_layout Plain Layout
15645 \begin_layout Plain Layout
15658 \begin_layout Plain Layout
15667 Detector thickness in µm
15672 <cell alignment="center" valignment="top" usebox="none">
15675 \begin_layout Plain Layout
15681 <cell alignment="center" valignment="top" usebox="none">
15684 \begin_layout Plain Layout
15690 <cell alignment="center" valignment="top" usebox="none">
15693 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" topline="true" usebox="none">
15704 \begin_layout Plain Layout
15710 <cell alignment="center" valignment="top" topline="true" usebox="none">
15713 \begin_layout Plain Layout
15719 <cell alignment="center" valignment="top" topline="true" usebox="none">
15722 \begin_layout Plain Layout
15728 <cell alignment="center" valignment="top" topline="true" usebox="none">
15731 \begin_layout Plain Layout
15738 <row topspace="default">
15739 <cell alignment="center" valignment="top" usebox="none">
15742 \begin_layout Plain Layout
15743 Spatial resolution in µm
15748 <cell alignment="center" valignment="top" usebox="none">
15751 \begin_layout Plain Layout
15757 <cell alignment="center" valignment="top" usebox="none">
15760 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" usebox="none">
15769 \begin_layout Plain Layout
15776 <row topspace="default">
15777 <cell alignment="center" valignment="top" usebox="none">
15780 \begin_layout Plain Layout
15782 \begin_inset Formula $f_{\mathrm{max}}$
15790 <cell alignment="center" valignment="top" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" usebox="none">
15802 \begin_layout Plain Layout
15808 <cell alignment="center" valignment="top" usebox="none">
15811 \begin_layout Plain Layout
15819 <cell alignment="center" valignment="top" topline="true" usebox="none">
15822 \begin_layout Plain Layout
15826 \begin_layout Plain Layout
15839 \begin_layout Plain Layout
15848 LSF-spatial resolution
15853 <cell alignment="center" valignment="top" topline="true" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15882 <cell alignment="center" valignment="top" usebox="none">
15885 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" usebox="none">
15894 \begin_layout Plain Layout
15900 <cell alignment="center" valignment="top" usebox="none">
15903 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" usebox="none">
15912 \begin_layout Plain Layout
15920 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15923 \begin_layout Plain Layout
15929 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15932 \begin_layout Plain Layout
15938 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15941 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15950 \begin_layout Plain Layout
15969 \begin_layout Section
15970 Vertical Table Alignment
15971 \begin_inset Index idx
15974 \begin_layout Plain Layout
15983 \begin_layout Standard
15984 To align tables vertically in a text line, the table must be inside a box.
15985 The box can then be vertically aligned as described in section
15986 \begin_inset space ~
15990 \begin_inset CommandInset ref
15992 reference "sec:Box-Dialog"
15999 \begin_layout Standard
16000 In the following example the tables are inside a minipage
16004 \begin_layout Plain Layout
16005 Minipages are described in section
16006 \begin_inset space ~
16010 \begin_inset CommandInset ref
16012 reference "sec:Minipages"
16021 box that has a width of 15
16022 \begin_inset space \thinspace{}
16028 \begin_layout Itemize
16030 \begin_inset Box Frameless
16040 height_special "totalheight"
16045 backgroundcolor "none"
16048 \begin_layout Plain Layout
16049 \begin_inset Tabular
16050 <lyxtabular version="3" rows="3" columns="3">
16051 <features tabularvalignment="middle">
16052 <column alignment="center" valignment="top">
16053 <column alignment="center" valignment="top">
16054 <column alignment="center" valignment="top">
16056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16059 \begin_layout Plain Layout
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16068 \begin_layout Plain Layout
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16077 \begin_layout Plain Layout
16085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16088 \begin_layout Plain Layout
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16097 \begin_layout Plain Layout
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Plain Layout
16114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16117 \begin_layout Plain Layout
16123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16126 \begin_layout Plain Layout
16132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Plain Layout
16155 \begin_layout Plain Layout
16167 \begin_inset Box Frameless
16177 height_special "totalheight"
16182 backgroundcolor "none"
16185 \begin_layout Plain Layout
16186 \begin_inset Tabular
16187 <lyxtabular version="3" rows="3" columns="3">
16188 <features tabularvalignment="middle">
16189 <column alignment="center" valignment="top">
16190 <column alignment="center" valignment="top">
16191 <column alignment="center" valignment="top">
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16196 \begin_layout Plain Layout
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16205 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16214 \begin_layout Plain Layout
16222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16225 \begin_layout Plain Layout
16231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16234 \begin_layout Plain Layout
16240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16243 \begin_layout Plain Layout
16251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16254 \begin_layout Plain Layout
16260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16263 \begin_layout Plain Layout
16269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16272 \begin_layout Plain Layout
16292 \begin_layout Plain Layout
16302 \begin_layout Itemize
16304 \begin_inset Box Frameless
16314 height_special "totalheight"
16319 backgroundcolor "none"
16322 \begin_layout Plain Layout
16323 \begin_inset Tabular
16324 <lyxtabular version="3" rows="3" columns="3">
16325 <features tabularvalignment="middle">
16326 <column alignment="center" valignment="top">
16327 <column alignment="center" valignment="top">
16328 <column alignment="center" valignment="top">
16330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16333 \begin_layout Plain Layout
16339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16342 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16351 \begin_layout Plain Layout
16359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16362 \begin_layout Plain Layout
16368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16371 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16380 \begin_layout Plain Layout
16388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16391 \begin_layout Plain Layout
16397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16400 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16409 \begin_layout Plain Layout
16428 \begin_layout Itemize
16430 \begin_inset Box Frameless
16440 height_special "totalheight"
16445 backgroundcolor "none"
16448 \begin_layout Plain Layout
16449 \begin_inset Tabular
16450 <lyxtabular version="3" rows="3" columns="3">
16451 <features tabularvalignment="middle">
16452 <column alignment="center" valignment="top">
16453 <column alignment="center" valignment="top">
16454 <column alignment="center" valignment="top">
16456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16459 \begin_layout Plain Layout
16465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16468 \begin_layout Plain Layout
16474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16477 \begin_layout Plain Layout
16485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16488 \begin_layout Plain Layout
16494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16497 \begin_layout Plain Layout
16503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16506 \begin_layout Plain Layout
16514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16517 \begin_layout Plain Layout
16523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16526 \begin_layout Plain Layout
16532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16555 \begin_layout Plain Layout
16567 \begin_inset Box Frameless
16577 height_special "totalheight"
16582 backgroundcolor "none"
16585 \begin_layout Plain Layout
16586 \begin_inset Tabular
16587 <lyxtabular version="3" rows="3" columns="3">
16588 <features tabularvalignment="middle">
16589 <column alignment="center" valignment="top">
16590 <column alignment="center" valignment="top">
16591 <column alignment="center" valignment="top">
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16605 \begin_layout Plain Layout
16611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16625 \begin_layout Plain Layout
16631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16643 \begin_layout Plain Layout
16651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16654 \begin_layout Plain Layout
16660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16663 \begin_layout Plain Layout
16669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16672 \begin_layout Plain Layout
16692 \begin_layout Plain Layout
16702 \begin_layout Standard
16703 As you will see, the content of the first and last table row is not correctly
16705 To get this alignment, the minipage box must be set into a raisebox.
16709 \begin_layout Plain Layout
16710 Raiseboxes are described in section
16711 \begin_inset space ~
16715 \begin_inset CommandInset ref
16717 reference "subsec:Vertical-Alignment"
16726 In the example above the second table in the first item is aligned using
16727 the \SpecialChar TeX
16731 \begin_layout Standard
16741 \begin_layout Standard
16743 After the box the closing brace
16747 is inserted as \SpecialChar TeX
16749 For the second table in the last item the command
16752 \begin_layout Standard
16762 \begin_layout Standard
16766 \begin_layout Standard
16767 \begin_inset Note Greyedout
16770 \begin_layout Plain Layout
16775 The alignment of the table row content to the surrounding text line is
16777 The required value for the
16783 command for this alignment depends on the document font, the font size,
16784 and the table line thickness.
16792 \begin_layout Section
16794 \begin_inset CommandInset label
16796 name "sec:Colored-Tables"
16801 \begin_inset Index idx
16804 \begin_layout Plain Layout
16813 \begin_layout Subsection
16815 \begin_inset Index idx
16818 \begin_layout Plain Layout
16819 Table Color ! for Cells
16825 \begin_inset Index idx
16828 \begin_layout Plain Layout
16829 Color ! for Table Cells
16837 \begin_layout Standard
16838 \begin_inset Float table
16844 \begin_layout Plain Layout
16845 \begin_inset Caption Standard
16847 \begin_layout Plain Layout
16848 \begin_inset CommandInset label
16850 name "tab:Table-colored-without"
16854 Table colored without using the package
16859 \begin_inset Argument 1
16862 \begin_layout Plain Layout
16863 Table without colortbl
16876 \begin_layout Plain Layout
16878 \begin_inset Tabular
16879 <lyxtabular version="3" rows="3" columns="3">
16880 <features tabularvalignment="middle">
16881 <column alignment="center" valignment="top">
16882 <column alignment="center" valignment="top">
16883 <column alignment="center" valignment="top">
16885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16888 \begin_layout Plain Layout
16896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16899 \begin_layout Plain Layout
16907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16910 \begin_layout Plain Layout
16920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16923 \begin_layout Plain Layout
16931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16934 \begin_layout Plain Layout
16942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16945 \begin_layout Plain Layout
16955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16958 \begin_layout Plain Layout
16966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16969 \begin_layout Plain Layout
16977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
17001 \begin_layout Standard
17002 If you only need colored text, mark the cells and choose a color in the
17006 \begin_inset space ~
17011 dialog (toolbar button
17014 arg "dialog-show character"
17018 This was used to create Table
17019 \begin_inset space ~
17023 \begin_inset CommandInset ref
17025 reference "tab:Table-colored-without"
17030 In any other case you have to use the \SpecialChar LaTeX
17036 \begin_inset Index idx
17039 \begin_layout Plain Layout
17041 -packages ! colortbl
17049 \begin_layout Standard
17053 \begin_layout Plain Layout
17063 \begin_inset Note Note
17066 \begin_layout Plain Layout
17067 The following section part will only be displayed when the \SpecialChar LaTeX
17080 \begin_layout Standard
17081 To create colored tables,
17085 must be loaded in the preamble with the line
17088 \begin_layout Standard
17093 usepackage{colortbl}
17096 \begin_layout Standard
17097 The color of a column is adjusted with the command
17100 \begin_layout Standard
17105 columncolor{name of color}
17108 \begin_layout Standard
17114 More about the command
17118 is contained in section
17119 \begin_inset space ~
17123 \begin_inset CommandInset ref
17125 reference "subsec:Multicolumn-Calculations"
17132 \begin_layout Standard
17133 The following color names are predefined:
17136 \begin_layout Standard
17170 \begin_layout Standard
17171 \begin_inset VSpace medskip
17177 \begin_layout Standard
17178 If you add the option
17181 \begin_layout Standard
17187 \begin_layout Standard
17188 to the document class options in the document settings, you can additionally
17190 \begin_inset space ~
17194 These colors are listed in appendix
17195 \begin_inset space ~
17199 \begin_inset CommandInset ref
17201 reference "chap:List-of-dvips-colornames"
17206 One of these colors,
17210 , is used as example in Table
17211 \begin_inset space ~
17215 \begin_inset CommandInset ref
17217 reference "tab:Table-colored-using"
17224 \begin_layout Standard
17225 \begin_inset VSpace medskip
17231 \begin_layout Standard
17232 You can also define your own color with the command
17235 \begin_layout Standard
17240 definecolor{color name}{color model}{color values}
17243 \begin_layout Standard
17244 The color model can be
17247 \begin_layout Labeling
17248 \labelwidthstring 00.00.0000
17249 cmyk: cyan, magenta, yellow, black
17252 \begin_layout Labeling
17253 \labelwidthstring 00.00.0000
17254 rgb: red, green blue
17257 \begin_layout Labeling
17258 \labelwidthstring 00.00.0000
17262 \begin_layout Standard
17263 and the color values are comma separated numbers between 0 and 1 describing
17264 the factor for the corresponding color of the color model.
17267 \begin_layout Standard
17269 \begin_inset space \thinspace{}
17273 \begin_inset space \space{}
17280 " in the preamble with
17283 \begin_layout Standard
17288 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17291 \begin_layout Standard
17299 \begin_layout Standard
17304 definecolor{lightgray}{gray}{0.8}
17307 \begin_layout Standard
17308 \begin_inset VSpace medskip
17314 \begin_layout Standard
17315 Lines are colored with the command
17318 \begin_layout Standard
17323 rowcolor{name of color}
17326 \begin_layout Standard
17327 and cells are colored with the command
17330 \begin_layout Standard
17335 cellcolor{name of color}
17338 \begin_layout Standard
17339 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17343 \begin_layout Standard
17344 To color characters in the table, mark the cells and use the
17347 \begin_inset space ~
17353 If a cell contains \SpecialChar TeX
17354 Code mark only the characters, otherwise the colored
17356 Code will cause \SpecialChar LaTeX
17360 \begin_layout Standard
17361 \begin_inset Note Greyedout
17364 \begin_layout Plain Layout
17369 Not all DVI-viewers are able to display self-defined colors.
17377 \begin_layout Standard
17378 \begin_inset VSpace bigskip
17384 \begin_layout Standard
17386 \begin_inset space ~
17390 \begin_inset CommandInset ref
17392 reference "tab:Table-colored-using"
17396 do the following: The color of the first column should be
17404 \begin_layout Standard
17409 columncolor{darkgreen}
17414 \begin_layout Standard
17415 as \SpecialChar LaTeX
17416 -argument for this column.
17417 The first row should be light blue, therefore the \SpecialChar TeX
17421 \begin_layout Standard
17429 \begin_layout Standard
17430 is inserted to the first cell of this row.
17431 Note that this overwrites the column color for the first cell.
17432 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17437 \begin_layout Standard
17445 \begin_layout Standard
17446 The characters could now be colored using the menu
17448 Edit\SpecialChar menuseparator
17450 \begin_inset space ~
17458 \begin_layout Standard
17459 \begin_inset Float table
17465 \begin_layout Plain Layout
17466 \begin_inset Caption Standard
17468 \begin_layout Plain Layout
17469 \begin_inset CommandInset label
17471 name "tab:Table-colored-using"
17475 Table colored using the package
17480 \begin_inset Argument 1
17483 \begin_layout Plain Layout
17484 Table with colortbl
17497 \begin_layout Plain Layout
17499 \begin_inset Tabular
17500 <lyxtabular version="3" rows="3" columns="3">
17501 <features tabularvalignment="middle">
17502 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17503 <column alignment="center" valignment="top">
17504 <column alignment="center" valignment="top">
17506 <cell alignment="center" valignment="top" usebox="none">
17509 \begin_layout Plain Layout
17513 \begin_layout Plain Layout
17529 <cell alignment="center" valignment="top" usebox="none">
17532 \begin_layout Plain Layout
17540 <cell alignment="center" valignment="top" usebox="none">
17543 \begin_layout Plain Layout
17553 <cell alignment="center" valignment="top" usebox="none">
17556 \begin_layout Plain Layout
17564 <cell alignment="center" valignment="top" usebox="none">
17567 \begin_layout Plain Layout
17575 <cell alignment="center" valignment="top" usebox="none">
17578 \begin_layout Plain Layout
17588 <cell alignment="center" valignment="top" usebox="none">
17591 \begin_layout Plain Layout
17599 <cell alignment="center" valignment="top" usebox="none">
17602 \begin_layout Plain Layout
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17617 \begin_layout Plain Layout
17646 \begin_layout Standard
17650 \begin_layout Plain Layout
17660 \begin_inset Note Note
17663 \begin_layout Plain Layout
17664 The following will be displayed when the \SpecialChar LaTeX
17677 \begin_layout Standard
17678 You need to install the package
17682 to see the content of this section in the output.
17685 \begin_layout Standard
17689 \begin_layout Plain Layout
17701 \begin_layout Subsection
17703 \begin_inset Index idx
17706 \begin_layout Plain Layout
17707 Table Color ! for Rows
17713 \begin_inset Index idx
17716 \begin_layout Plain Layout
17717 Color ! for Table Rows
17725 \begin_layout Standard
17726 In case every second table row needs to be colored there is an alternative
17727 to the method described in the previous section: One loads the package
17733 \begin_inset Index idx
17736 \begin_layout Plain Layout
17742 \begin_layout Plain Layout
17756 in the document preamble with the command
17759 \begin_layout Standard
17764 usepackage[table]{xcolor}
17767 \begin_layout Standard
17772 automatically loads also the package
17777 \begin_inset Index idx
17780 \begin_layout Plain Layout
17782 -packages ! colortbl
17791 must be installed in your \SpecialChar LaTeX
17792 -distribution, otherwise you get \SpecialChar LaTeX
17796 \begin_layout Standard
17800 \begin_layout Plain Layout
17810 \begin_inset Note Note
17813 \begin_layout Plain Layout
17814 The following section part will only be displayed when the \SpecialChar LaTeX
17827 \begin_layout Standard
17828 The table rows are colored with the command
17831 \begin_layout Standard
17836 rowcolors[commands]{row number}{odd row color}{even row color}
17839 \begin_layout Standard
17840 that is either inserted in the document preamble or as \SpecialChar TeX
17842 first table to be colored.
17844 \begin_inset space ~
17847 number is the number of the first row which should be colored according
17848 to the odd row color.
17849 commands can be additional commands that are executed before every table
17851 So for example the command
17854 \begin_layout Standard
17859 rowcolors{1}{white}{lightgray}
17862 \begin_layout Standard
17863 leads to the coloring scheme of Table
17864 \begin_inset space ~
17868 \begin_inset CommandInset ref
17870 reference "tab:Table-rowcolors"
17878 \begin_layout Standard
17885 hline]{1}{lightgray}{cyan}
17888 \begin_layout Standard
17889 leads to the coloring scheme of Table
17890 \begin_inset space ~
17894 \begin_inset CommandInset ref
17896 reference "tab:Table-rowcolors-2"
17902 \begin_inset space ~
17906 \begin_inset space ~
17910 \begin_inset space ~
17914 \begin_inset space ~
17917 color are left empty, no color will be used so that the command
17920 \begin_layout Standard
17928 \begin_layout Standard
17929 deletes all colors.
17936 affects all tables following that command.
17939 \begin_layout Standard
17943 \begin_layout Plain Layout
17947 rowcolors{1}{white}{lightgray}
17955 \begin_layout Standard
17956 \begin_inset Float table
17962 \begin_layout Plain Layout
17963 \begin_inset Caption Standard
17965 \begin_layout Plain Layout
17966 \begin_inset CommandInset label
17968 name "tab:Table-rowcolors"
17972 Table where every second row is colored light gray.
17980 \begin_layout Plain Layout
17982 \begin_inset Tabular
17983 <lyxtabular version="3" rows="4" columns="3">
17984 <features tabularvalignment="middle">
17985 <column alignment="center" valignment="top">
17986 <column alignment="center" valignment="top" width="0pt">
17987 <column alignment="center" valignment="top" width="0pt">
17989 <cell alignment="center" valignment="top" usebox="none">
17992 \begin_layout Plain Layout
17998 <cell alignment="center" valignment="top" usebox="none">
18001 \begin_layout Plain Layout
18007 <cell alignment="center" valignment="top" usebox="none">
18010 \begin_layout Plain Layout
18018 <cell alignment="center" valignment="top" usebox="none">
18021 \begin_layout Plain Layout
18027 <cell alignment="center" valignment="top" usebox="none">
18030 \begin_layout Plain Layout
18036 <cell alignment="center" valignment="top" usebox="none">
18039 \begin_layout Plain Layout
18047 <cell alignment="center" valignment="top" usebox="none">
18050 \begin_layout Plain Layout
18056 <cell alignment="center" valignment="top" usebox="none">
18059 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" usebox="none">
18068 \begin_layout Plain Layout
18076 <cell alignment="center" valignment="top" usebox="none">
18079 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" usebox="none">
18097 \begin_layout Plain Layout
18116 \begin_layout Standard
18120 \begin_layout Plain Layout
18126 hline]{1}{lightgray}{cyan}
18134 \begin_layout Standard
18135 \begin_inset Float table
18141 \begin_layout Plain Layout
18142 \begin_inset Caption Standard
18144 \begin_layout Plain Layout
18145 \begin_inset CommandInset label
18147 name "tab:Table-rowcolors-2"
18151 Table where every second row is colored cyan and at which there is a line
18160 \begin_layout Plain Layout
18162 \begin_inset Tabular
18163 <lyxtabular version="3" rows="4" columns="3">
18164 <features tabularvalignment="middle">
18165 <column alignment="center" valignment="top">
18166 <column alignment="center" valignment="top">
18167 <column alignment="center" valignment="top" width="0pt">
18169 <cell alignment="center" valignment="top" usebox="none">
18172 \begin_layout Plain Layout
18178 <cell alignment="center" valignment="top" usebox="none">
18181 \begin_layout Plain Layout
18187 <cell alignment="center" valignment="top" usebox="none">
18190 \begin_layout Plain Layout
18198 <cell alignment="center" valignment="top" usebox="none">
18201 \begin_layout Plain Layout
18207 <cell alignment="center" valignment="top" usebox="none">
18210 \begin_layout Plain Layout
18216 <cell alignment="center" valignment="top" usebox="none">
18219 \begin_layout Plain Layout
18227 <cell alignment="center" valignment="top" usebox="none">
18230 \begin_layout Plain Layout
18236 <cell alignment="center" valignment="top" usebox="none">
18239 \begin_layout Plain Layout
18245 <cell alignment="center" valignment="top" usebox="none">
18248 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" usebox="none">
18259 \begin_layout Plain Layout
18265 <cell alignment="center" valignment="top" usebox="none">
18268 \begin_layout Plain Layout
18274 <cell alignment="center" valignment="top" usebox="none">
18277 \begin_layout Plain Layout
18296 \begin_layout Standard
18300 \begin_layout Plain Layout
18310 \begin_inset Note Note
18313 \begin_layout Plain Layout
18314 turns off the row coloring
18322 \begin_layout Standard
18326 \begin_layout Plain Layout
18336 \begin_inset Note Note
18339 \begin_layout Plain Layout
18340 The following will be displayed when the \SpecialChar LaTeX
18353 \begin_layout Standard
18354 You need to install the package
18358 to see the content of this section in the output.
18361 \begin_layout Standard
18365 \begin_layout Plain Layout
18377 \begin_layout Subsection
18379 \begin_inset Index idx
18382 \begin_layout Plain Layout
18383 Table Color ! for Lines
18389 \begin_inset Index idx
18392 \begin_layout Plain Layout
18393 Color ! for Table Lines
18401 \begin_layout Standard
18402 As described in section
18403 \begin_inset space ~
18407 \begin_inset CommandInset ref
18409 reference "subsec:Line-Thickness"
18413 , the line thickness for all lines in a table can be adjusted with the length
18422 \begin_inset space \thinspace{}
18425 pt for all tables of this section.
18429 \begin_layout Plain Layout
18435 arrayrulewidth}{1.5pt}
18443 \begin_layout Standard
18444 To color vertical lines for example with green, create the following column
18445 format in the document preamble, according to the description in section
18446 \begin_inset space ~
18450 \begin_inset CommandInset ref
18452 reference "subsec:Customized-Format"
18459 \begin_layout Standard
18464 newcolumntype{W}{!{
18471 \begin_layout Standard
18473 \begin_inset space ~
18477 \begin_inset CommandInset ref
18479 reference "tab:Table-with-vertical-colored"
18483 the \SpecialChar LaTeX
18488 was used for the last column and
18492 for the other columns.
18495 \begin_layout Standard
18496 If you want to have several colors, define more column formats.
18499 \begin_layout Standard
18500 \begin_inset Float table
18506 \begin_layout Plain Layout
18507 \begin_inset Caption Standard
18509 \begin_layout Plain Layout
18510 \begin_inset CommandInset label
18512 name "tab:Table-with-vertical-colored"
18516 Table with colored vertical lines
18524 \begin_layout Plain Layout
18526 \begin_inset Tabular
18527 <lyxtabular version="3" rows="3" columns="3">
18528 <features tabularvalignment="middle">
18529 <column alignment="center" valignment="top" special="Wc">
18530 <column alignment="center" valignment="top" special="Wc">
18531 <column alignment="center" valignment="top" special="WcW">
18533 <cell alignment="center" valignment="top" topline="true" usebox="none">
18536 \begin_layout Plain Layout
18542 <cell alignment="center" valignment="top" topline="true" usebox="none">
18545 \begin_layout Plain Layout
18551 <cell alignment="center" valignment="top" topline="true" usebox="none">
18554 \begin_layout Plain Layout
18562 <cell alignment="center" valignment="top" topline="true" usebox="none">
18565 \begin_layout Plain Layout
18571 <cell alignment="center" valignment="top" topline="true" usebox="none">
18574 \begin_layout Plain Layout
18580 <cell alignment="center" valignment="top" topline="true" usebox="none">
18583 \begin_layout Plain Layout
18591 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18594 \begin_layout Plain Layout
18600 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18603 \begin_layout Plain Layout
18609 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18612 \begin_layout Plain Layout
18631 \begin_layout Standard
18632 \begin_inset VSpace bigskip
18635 To color all horizontal lines for example with red, as in Table
18636 \begin_inset space ~
18640 \begin_inset CommandInset ref
18642 reference "tab:Table-with-horizontal-colored"
18646 , insert these commands in \SpecialChar TeX
18647 code before the table or table float:
18650 \begin_layout Standard
18660 \begin_inset Newline newline
18668 \begin_inset Newline newline
18672 \begin_inset Phantom HPhantom
18675 \begin_layout Plain Layout
18678 \begin_inset space ~
18688 arrayrulecolor{red}
18692 arrayrulecolor{black}}
18695 \begin_layout Standard
18699 \begin_layout Plain Layout
18710 \begin_layout Plain Layout
18719 \begin_layout Plain Layout
18723 arrayrulecolor{red}
18727 arrayrulecolor{black}}
18733 \begin_inset Float table
18739 \begin_layout Plain Layout
18740 \begin_inset Caption Standard
18742 \begin_layout Plain Layout
18743 \begin_inset CommandInset label
18745 name "tab:Table-with-horizontal-colored"
18749 Table with colored horizontal lines
18757 \begin_layout Plain Layout
18759 \begin_inset Tabular
18760 <lyxtabular version="3" rows="3" columns="3">
18761 <features tabularvalignment="middle">
18762 <column alignment="center" valignment="top">
18763 <column alignment="center" valignment="top">
18764 <column alignment="center" valignment="top">
18766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18769 \begin_layout Plain Layout
18775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18778 \begin_layout Plain Layout
18784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18787 \begin_layout Plain Layout
18795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18798 \begin_layout Plain Layout
18804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18807 \begin_layout Plain Layout
18813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18816 \begin_layout Plain Layout
18824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18827 \begin_layout Plain Layout
18833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18845 \begin_layout Plain Layout
18864 \begin_layout Standard
18865 To return to the default line color black, insert this command in \SpecialChar TeX
18867 after the table or table float:
18870 \begin_layout Standard
18882 \begin_layout Standard
18884 \begin_inset space ~
18888 \begin_inset CommandInset ref
18890 reference "tab:Table-with-colored"
18894 is an example with colored vertical and horizontal lines.
18897 \begin_layout Standard
18898 \begin_inset Float table
18904 \begin_layout Plain Layout
18905 \begin_inset Caption Standard
18907 \begin_layout Plain Layout
18908 \begin_inset CommandInset label
18910 name "tab:Table-with-colored"
18914 Table with colored lines
18922 \begin_layout Plain Layout
18924 \begin_inset Tabular
18925 <lyxtabular version="3" rows="3" columns="3">
18926 <features tabularvalignment="middle">
18927 <column alignment="center" valignment="top" special="Wc">
18928 <column alignment="center" valignment="top" special="Wc">
18929 <column alignment="center" valignment="top" special="WcW">
18931 <cell alignment="center" valignment="top" topline="true" usebox="none">
18934 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" topline="true" usebox="none">
18943 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" topline="true" usebox="none">
18952 \begin_layout Plain Layout
18960 <cell alignment="center" valignment="top" topline="true" usebox="none">
18963 \begin_layout Plain Layout
18969 <cell alignment="center" valignment="top" topline="true" usebox="none">
18972 \begin_layout Plain Layout
18978 <cell alignment="center" valignment="top" topline="true" usebox="none">
18981 \begin_layout Plain Layout
18988 <row topspace="default">
18989 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18992 \begin_layout Plain Layout
18998 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19001 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19010 \begin_layout Plain Layout
19029 \begin_layout Standard
19033 \begin_layout Plain Layout
19049 \begin_layout Standard
19053 \begin_layout Plain Layout
19059 arrayrulewidth}{1.2pt}
19067 \begin_layout Standard
19068 To color only some of the table lines another strategy is necessary.
19069 To color all following horizontal lines, insert this command as \SpecialChar TeX
19071 last thing in the row that should be above the first colored line:
19074 \begin_layout Standard
19083 arrayrulecolor{blue}%
19086 \begin_layout Standard
19087 To go back to black lines, add this command as first thing in the row that
19088 is above the black lines:
19091 \begin_layout Standard
19096 arrayrulecolor{black}
19099 \begin_layout Standard
19100 With this one can color table lines like in Table
19101 \begin_inset space ~
19105 \begin_inset CommandInset ref
19107 reference "tab:Table-with-different-hor"
19112 However, with this method it is not possible to color the line above the
19113 first row of a table.
19116 \begin_layout Standard
19117 \begin_inset Float table
19122 \begin_layout Plain Layout
19123 \begin_inset Caption Standard
19125 \begin_layout Plain Layout
19126 \begin_inset CommandInset label
19128 name "tab:Table-with-different-hor"
19132 Table with different horizontal line colors.
19140 \begin_layout Plain Layout
19142 \begin_inset Tabular
19143 <lyxtabular version="3" rows="6" columns="7">
19144 <features tabularvalignment="middle">
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">
19150 <column alignment="center" valignment="top">
19151 <column alignment="center" valignment="top">
19153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19156 \begin_layout Plain Layout
19162 <cell alignment="center" valignment="top" topline="true" usebox="none">
19165 \begin_layout Plain Layout
19171 <cell alignment="center" valignment="top" topline="true" usebox="none">
19174 \begin_layout Plain Layout
19180 <cell alignment="center" valignment="top" topline="true" usebox="none">
19183 \begin_layout Plain Layout
19189 <cell alignment="center" valignment="top" topline="true" usebox="none">
19192 \begin_layout Plain Layout
19198 <cell alignment="center" valignment="top" topline="true" usebox="none">
19201 \begin_layout Plain Layout
19207 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19210 \begin_layout Plain Layout
19214 \begin_layout Plain Layout
19222 arrayrulecolor{blue}%
19234 <cell alignment="center" valignment="top" usebox="none">
19237 \begin_layout Plain Layout
19243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19246 \begin_layout Plain Layout
19252 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19255 \begin_layout Plain Layout
19261 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19264 \begin_layout Plain Layout
19270 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19273 \begin_layout Plain Layout
19279 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19282 \begin_layout Plain Layout
19288 <cell alignment="center" valignment="top" usebox="none">
19291 \begin_layout Plain Layout
19299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19302 \begin_layout Plain Layout
19306 \begin_layout Plain Layout
19310 arrayrulecolor{black}
19320 <cell alignment="center" valignment="top" usebox="none">
19323 \begin_layout Plain Layout
19329 <cell alignment="center" valignment="top" usebox="none">
19332 \begin_layout Plain Layout
19338 <cell alignment="center" valignment="top" usebox="none">
19341 \begin_layout Plain Layout
19347 <cell alignment="center" valignment="top" usebox="none">
19350 \begin_layout Plain Layout
19356 <cell alignment="center" valignment="top" usebox="none">
19359 \begin_layout Plain Layout
19365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19368 \begin_layout Plain Layout
19376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19379 \begin_layout Plain Layout
19385 <cell alignment="center" valignment="top" usebox="none">
19388 \begin_layout Plain Layout
19394 <cell alignment="center" valignment="top" usebox="none">
19397 \begin_layout Plain Layout
19403 <cell alignment="center" valignment="top" usebox="none">
19406 \begin_layout Plain Layout
19412 <cell alignment="center" valignment="top" usebox="none">
19415 \begin_layout Plain Layout
19421 <cell alignment="center" valignment="top" usebox="none">
19424 \begin_layout Plain Layout
19430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19433 \begin_layout Plain Layout
19437 \begin_layout Plain Layout
19445 arrayrulecolor{green}%
19457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19460 \begin_layout Plain Layout
19466 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19469 \begin_layout Plain Layout
19475 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19478 \begin_layout Plain Layout
19484 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19487 \begin_layout Plain Layout
19493 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19496 \begin_layout Plain Layout
19502 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19505 \begin_layout Plain Layout
19511 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19514 \begin_layout Plain Layout
19522 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19525 \begin_layout Plain Layout
19529 \begin_layout Plain Layout
19533 arrayrulecolor{black}
19543 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19546 \begin_layout Plain Layout
19552 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19555 \begin_layout Plain Layout
19561 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19564 \begin_layout Plain Layout
19570 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19573 \begin_layout Plain Layout
19579 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19582 \begin_layout Plain Layout
19588 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19591 \begin_layout Plain Layout
19595 \begin_layout Plain Layout
19603 arrayrulecolor{blue}%
19626 \begin_layout Standard
19627 To change the color of vertical lines within a row, like in Table
19628 \begin_inset space ~
19632 \begin_inset CommandInset ref
19634 reference "tab:Table-with-different-ver"
19638 , one needs to use multicolumns.
19639 At first one needs to remove all vertical lines that don't run along the
19641 Now one colors all lines using the command
19644 \begin_layout Standard
19653 arrayrulecolor{blue}%
19656 \begin_layout Standard
19658 Finally one inserts this command as \SpecialChar TeX
19659 code to every cell in the row where
19660 one needs a vertical line in a different color:
19663 \begin_layout Standard
19679 \begin_layout Standard
19680 This adds a vertical line to both sides of the cell.
19681 The left one will be green, the right one red.
19682 If no color change is necessary one can omit the
19688 command in the above command.
19689 To get for example a black left line and a blue right line you can write:
19692 \begin_layout Standard
19704 \begin_layout Standard
19705 because the color blue was already set for all lines.
19710 creates hereby the vertical line while
19723 To set vertical lines without changing any color use
19726 \begin_layout Standard
19731 multicolumn{1}{|c|}{
19734 \begin_layout Standard
19735 After this command insert the cell content the normal way and end the cell
19736 with a closing brace
19740 in \SpecialChar TeX
19744 \begin_layout Standard
19745 \begin_inset Float table
19750 \begin_layout Plain Layout
19751 \begin_inset Caption Standard
19753 \begin_layout Plain Layout
19754 \begin_inset CommandInset label
19756 name "tab:Table-with-different-ver"
19760 Table with different vertical line colors in one row.
19768 \begin_layout Plain Layout
19770 \begin_inset Tabular
19771 <lyxtabular version="3" rows="5" columns="7">
19772 <features tabularvalignment="middle">
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">
19778 <column alignment="center" valignment="top">
19779 <column alignment="center" valignment="top">
19781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19784 \begin_layout Plain Layout
19790 <cell alignment="center" valignment="top" topline="true" usebox="none">
19793 \begin_layout Plain Layout
19799 <cell alignment="center" valignment="top" topline="true" usebox="none">
19802 \begin_layout Plain Layout
19808 <cell alignment="center" valignment="top" topline="true" usebox="none">
19811 \begin_layout Plain Layout
19817 <cell alignment="center" valignment="top" topline="true" usebox="none">
19820 \begin_layout Plain Layout
19826 <cell alignment="center" valignment="top" topline="true" usebox="none">
19829 \begin_layout Plain Layout
19835 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19838 \begin_layout Plain Layout
19842 \begin_layout Plain Layout
19850 arrayrulecolor{red}%
19862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19865 \begin_layout Plain Layout
19869 \begin_layout Plain Layout
19886 \begin_layout Plain Layout
19898 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19901 \begin_layout Plain Layout
19907 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19910 \begin_layout Plain Layout
19916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19919 \begin_layout Plain Layout
19925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19928 \begin_layout Plain Layout
19934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19937 \begin_layout Plain Layout
19941 \begin_layout Plain Layout
19945 multicolumn{1}{c|}{
19954 \begin_layout Plain Layout
19966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19969 \begin_layout Plain Layout
19973 \begin_layout Plain Layout
19990 \begin_layout Plain Layout
20004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20007 \begin_layout Plain Layout
20011 \begin_layout Plain Layout
20015 arrayrulecolor{black}
20025 <cell alignment="center" valignment="top" usebox="none">
20028 \begin_layout Plain Layout
20034 <cell alignment="center" valignment="top" usebox="none">
20037 \begin_layout Plain Layout
20043 <cell alignment="center" valignment="top" usebox="none">
20046 \begin_layout Plain Layout
20052 <cell alignment="center" valignment="top" usebox="none">
20055 \begin_layout Plain Layout
20061 <cell alignment="center" valignment="top" usebox="none">
20064 \begin_layout Plain Layout
20070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20073 \begin_layout Plain Layout
20077 \begin_layout Plain Layout
20085 arrayrulecolor{magenta}%
20097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20100 \begin_layout Plain Layout
20104 \begin_layout Plain Layout
20108 multicolumn{1}{|c!{
20121 \begin_layout Plain Layout
20133 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20136 \begin_layout Plain Layout
20140 \begin_layout Plain Layout
20157 \begin_layout Plain Layout
20169 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20172 \begin_layout Plain Layout
20176 \begin_layout Plain Layout
20193 \begin_layout Plain Layout
20205 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20208 \begin_layout Plain Layout
20212 \begin_layout Plain Layout
20229 \begin_layout Plain Layout
20241 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20244 \begin_layout Plain Layout
20248 \begin_layout Plain Layout
20265 \begin_layout Plain Layout
20277 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20280 \begin_layout Plain Layout
20284 \begin_layout Plain Layout
20301 \begin_layout Plain Layout
20313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20316 \begin_layout Plain Layout
20320 \begin_layout Plain Layout
20324 multicolumn{1}{c|}{
20333 \begin_layout Plain Layout
20347 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20350 \begin_layout Plain Layout
20354 \begin_layout Plain Layout
20358 arrayrulecolor{black}
20368 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20371 \begin_layout Plain Layout
20377 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20380 \begin_layout Plain Layout
20386 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20389 \begin_layout Plain Layout
20395 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20398 \begin_layout Plain Layout
20404 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20407 \begin_layout Plain Layout
20413 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20416 \begin_layout Plain Layout
20435 \begin_layout Standard
20439 \begin_layout Plain Layout
20445 arrayrulewidth}{0.4pt}
20453 \begin_layout Section
20454 Rotated Table Cells
20455 \begin_inset CommandInset label
20457 name "sec:Rotated-Table-Cells"
20462 \begin_inset Index idx
20465 \begin_layout Plain Layout
20466 Table ! Rotated Cells
20472 \begin_inset Index idx
20475 \begin_layout Plain Layout
20484 \begin_layout Standard
20485 \begin_inset Note Greyedout
20488 \begin_layout Plain Layout
20493 Not all DVI-viewers are able to display rotations.
20501 \begin_layout Standard
20503 \begin_inset space ~
20507 \begin_inset CommandInset ref
20509 reference "tab:Table-with-rotated"
20516 is an example where 3
20517 \begin_inset space ~
20520 cells were rotated by 45
20521 \begin_inset space \thinspace{}
20527 \begin_layout Standard
20528 \begin_inset Float table
20534 \begin_layout Plain Layout
20535 \begin_inset Caption Standard
20537 \begin_layout Plain Layout
20538 \begin_inset CommandInset label
20540 name "tab:Table-with-rotated"
20544 Table with rotated cells in the first row.
20552 \begin_layout Plain Layout
20555 \begin_inset Tabular
20556 <lyxtabular version="3" rows="2" columns="3">
20557 <features tabularvalignment="middle">
20558 <column alignment="center" valignment="top" width="0pt">
20559 <column alignment="center" valignment="top" width="0pt">
20560 <column alignment="center" valignment="top" width="0pt">
20562 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20565 \begin_layout Plain Layout
20571 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20574 \begin_layout Plain Layout
20580 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20583 \begin_layout Plain Layout
20591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20594 \begin_layout Plain Layout
20600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20603 \begin_layout Plain Layout
20609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20612 \begin_layout Plain Layout
20631 \begin_layout Standard
20632 \begin_inset Note Greyedout
20635 \begin_layout Plain Layout
20640 Line breaks (shortcut
20643 arg "newline-insert newline"
20646 ) are not allowed in rotated cells.
20654 \begin_layout Standard
20655 If you want to rotate table cells containing line breaks, you have to put
20656 the cell content into a minipage or a parbox.
20660 \begin_layout Plain Layout
20661 For more about these boxes see sec.
20662 \begin_inset space \thinspace{}
20666 \begin_inset CommandInset ref
20668 reference "sec:Minipages"
20673 \begin_inset CommandInset ref
20675 reference "sec:Parboxes"
20684 If you rotate this cell by 90
20685 \begin_inset space \thinspace{}
20688 ° the width of the box is the height of the cell.
20689 To avoid to estimate a suitable box width one can use a minipage with a
20691 Such a box is inserted by loading the module
20694 \begin_inset space ~
20699 in the document settings.
20700 Then one can use the menu
20702 Insert\SpecialChar menuseparator
20704 \begin_inset space ~
20707 Insets\SpecialChar menuseparator
20709 \begin_inset space ~
20715 \begin_inset space ~
20720 \begin_inset space ~
20724 \begin_inset CommandInset ref
20726 reference "tab:Table-with-rotated-multi"
20730 is an example for a rotated multiline cell where a variable width minipage
20734 \begin_layout Standard
20735 \begin_inset Float table
20740 \begin_layout Plain Layout
20741 \begin_inset Caption Standard
20743 \begin_layout Plain Layout
20744 \begin_inset CommandInset label
20746 name "tab:Table-with-rotated-multi"
20750 Table with rotated multiline cell.
20758 \begin_layout Plain Layout
20761 \begin_inset Tabular
20762 <lyxtabular version="3" rows="2" columns="3">
20763 <features tabularvalignment="middle">
20764 <column alignment="center" valignment="top">
20765 <column alignment="center" valignment="top" width="0pt">
20766 <column alignment="center" valignment="top">
20768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20771 \begin_layout Plain Layout
20777 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20780 \begin_layout Plain Layout
20781 \begin_inset Flex Minipage (Var. Width)
20784 \begin_layout Plain Layout
20786 \begin_inset Newline newline
20790 \begin_inset space ~
20803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20806 \begin_layout Plain Layout
20814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20817 \begin_layout Plain Layout
20823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20826 \begin_layout Plain Layout
20832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20835 \begin_layout Plain Layout
20854 \begin_layout Section
20855 Table Width Calculation
20856 \begin_inset CommandInset label
20858 name "sec:Table-Width-Calculation"
20865 \begin_layout Standard
20866 For wide tables it is sometimes difficult to assure that the table does
20867 not protrude over the page margin.
20868 Setting a fixed width for every column of the table is the solution, but
20869 what amount of space is needed for each column?
20872 \begin_layout Standard
20874 \begin_inset Formula $W_{\mathrm{table}}$
20877 can be calculated: Every column has the width of the specified column width
20879 \begin_inset Formula $W_{\mathrm{column}}$
20882 (that the content of the column can consume) plus two times the separation
20883 between the column content and the column border (\SpecialChar LaTeX
20891 \begin_inset space \thinspace{}
20894 pt) plus the width of a border line (\SpecialChar LaTeX
20902 \begin_inset space \thinspace{}
20906 \begin_inset Formula $n$
20910 \begin_inset space ~
20913 columns have the same width, the table width is
20914 \begin_inset Formula
20916 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20924 \begin_layout Standard
20925 The available width for a table is the space between the page margins or
20926 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20934 If all table columns should have the same width and
20935 \begin_inset Formula $W_{\mathrm{table}}$
20939 \begin_inset space \thinspace{}
20945 \begin_inset Formula $W_{\mathrm{column}}$
20948 can easily be calculated.
20951 \begin_layout Standard
20952 To be able to perform calculations you need to load the \SpecialChar LaTeX
20958 \begin_inset Index idx
20961 \begin_layout Plain Layout
20968 in the document preamble.
20969 To set the width in the table dialog you have to use the field
20975 The command scheme for this field is the same that is explained in section
20976 \begin_inset space ~
20980 \begin_inset CommandInset ref
20982 reference "subsec:Multicolumn-Calculations"
20988 \begin_inset space \thinspace{}
20991 columns with an uniform width and centered text, enter there for each column
20995 \begin_layout Standard
21002 columnwidth-62.4pt)/5}
21005 \begin_layout Standard
21007 \begin_inset space \thinspace{}
21010 columns where 2 should have 0.75
21011 \begin_inset space ~
21014 times the width than the 3 others, the calculation is
21015 \begin_inset Formula
21017 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
21018 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
21019 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
21020 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21028 \begin_layout Standard
21029 In the table therefore the command
21032 \begin_layout Standard
21039 columnwidth-62.4pt)/
21044 \begin_layout Standard
21045 is used for the wider columns and
21048 \begin_layout Standard
21055 columnwidth-62.4pt)/
21062 \begin_layout Standard
21063 for the smaller ones:
21066 \begin_layout Standard
21067 \begin_inset Tabular
21068 <lyxtabular version="3" rows="2" columns="5">
21069 <features tabularvalignment="middle">
21070 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21071 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21072 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21073 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21074 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21079 \begin_layout Plain Layout
21085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21088 \begin_layout Plain Layout
21094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21097 \begin_layout Plain Layout
21103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21106 \begin_layout Plain Layout
21112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21115 \begin_layout Plain Layout
21123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21126 \begin_layout Plain Layout
21127 111111 1111111 111111 111111111 11111 11111 1111
21132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21135 \begin_layout Plain Layout
21141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21144 \begin_layout Plain Layout
21145 2222 22222 222222 222222222 2222222 22 22222
21150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21153 \begin_layout Plain Layout
21159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21162 \begin_layout Plain Layout
21163 333333 333333 333333 33333 3333333 333
21176 \begin_layout Section
21177 Table Customization
21178 \begin_inset Index idx
21181 \begin_layout Plain Layout
21182 Table Customization
21188 \begin_inset Index idx
21191 \begin_layout Plain Layout
21192 Table ! Customization
21200 \begin_layout Subsection
21202 \begin_inset CommandInset label
21204 name "subsec:Row-Spacing"
21209 \begin_inset Index idx
21212 \begin_layout Plain Layout
21213 Table Customization ! Row Spacing
21221 \begin_layout Standard
21222 You can add vertical space to table rows in the
21226 tab of the table dialog.
21227 You find there three possibilities:
21230 \begin_layout Description
21232 \begin_inset space ~
21236 \begin_inset space ~
21239 row will add space above the characters of the table row.
21240 If the table is a formal table
21244 \begin_layout Plain Layout
21245 Formal tables are explained in section
21246 \begin_inset space ~
21250 \begin_inset CommandInset ref
21252 reference "sec:Formal-Tables"
21262 will insert as default 0.5
21263 \begin_inset space \thinspace{}
21267 For normal tables the inserted space will unfortunately destroy the vertical
21268 table lines as in the following table:
21269 \begin_inset VSpace medskip
21273 \begin_inset Newline newline
21277 \begin_inset space \hspace*{}
21282 \begin_inset space \hfill{}
21286 \begin_inset Tabular
21287 <lyxtabular version="3" rows="3" columns="1">
21288 <features tabularvalignment="middle">
21289 <column alignment="center" valignment="top">
21291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21294 \begin_layout Plain Layout
21301 <row topspace="3mm">
21302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21305 \begin_layout Plain Layout
21307 \begin_inset space \thinspace{}
21310 mm space top of row
21317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21320 \begin_layout Plain Layout
21332 \begin_inset space \hfill{}
21336 \begin_inset space \hspace*{}
21341 \begin_inset VSpace medskip
21345 \begin_inset Newline newline
21348 So inserting space in the top of row for normal tables is only useful when
21349 you don't have vertical lines.
21352 \begin_layout Description
21354 \begin_inset space ~
21358 \begin_inset space ~
21361 row will add space below the characters of the table row.
21362 If the table is a formal table \SpecialChar LyX
21363 will insert as default 0.5
21364 \begin_inset space \thinspace{}
21367 em space, for normal tables the default size is 2
21368 \begin_inset space \thinspace{}
21374 \begin_layout Description
21376 \begin_inset space ~
21379 rows adds space between the current and the following row.
21380 If the table is a formal table \SpecialChar LyX
21381 will insert as default 0.5
21382 \begin_inset space \thinspace{}
21386 For normal tables the inserted space will unfortunately destroy the vertical
21387 table lines as in the following table:
21388 \begin_inset VSpace medskip
21392 \begin_inset Newline newline
21396 \begin_inset space \hspace*{}
21401 \begin_inset space \hfill{}
21405 \begin_inset Tabular
21406 <lyxtabular version="3" rows="3" columns="1">
21407 <features tabularvalignment="middle">
21408 <column alignment="center" valignment="top">
21410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21413 \begin_layout Plain Layout
21420 <row interlinespace="3mm">
21421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21424 \begin_layout Plain Layout
21425 \begin_inset Formula $\downarrow$
21429 \begin_inset space \thinspace{}
21432 mm space between row
21433 \begin_inset Formula $\downarrow$
21443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21446 \begin_layout Plain Layout
21447 \begin_inset Formula $\uparrow$
21451 \begin_inset space \thinspace{}
21454 mm space between row
21455 \begin_inset Formula $\uparrow$
21469 \begin_inset space \hfill{}
21473 \begin_inset space \hspace*{}
21478 \begin_inset VSpace medskip
21482 \begin_inset Newline newline
21485 So inserting space between rows for normal tables is only useful when you
21486 don't have vertical lines.
21489 \begin_layout Standard
21490 \begin_inset VSpace bigskip
21493 When you want to add extra height to all cells of all tables, you can do
21494 this with the following preamble lines:
21497 \begin_layout Standard
21502 @ifundefined{extrarowheight}
21503 \begin_inset Newline newline
21507 \begin_inset Phantom HPhantom
21510 \begin_layout Plain Layout
21513 \begin_inset space ~
21523 usepackage{array}}{}
21524 \begin_inset Newline newline
21531 extrarowheight}{height}
21534 \begin_inset Note Note
21537 \begin_layout Plain Layout
21542 will be loaded automatically by \SpecialChar LyX
21543 when you use self defined table formats.
21544 To avoid that it is loaded twice the command
21550 is used in the above command.
21558 \begin_layout Standard
21563 can have one of the units listed in appendix
21564 \begin_inset space ~
21568 \begin_inset CommandInset ref
21570 reference "cha:Units-available-in"
21575 But this has the disadvantage that the cell texts are no longer exactly
21576 vertically centered.
21579 \begin_layout Standard
21580 If you are using font sizes larger than the normal size, the table borders
21581 are often too close to the letters.
21582 This can be corrected by inserting the command
21588 in \SpecialChar TeX
21589 Code at the beginning of a table row.
21591 \begin_inset space ~
21595 \begin_inset CommandInset ref
21597 reference "tab:Vertical-alignment-of"
21601 illustrates the effect.
21604 \begin_layout Standard
21606 \begin_inset Float table
21612 \begin_layout Plain Layout
21613 \begin_inset Caption Standard
21615 \begin_layout Plain Layout
21616 \begin_inset CommandInset label
21618 name "tab:Vertical-alignment-of"
21622 Vertical alignment of text with large font sizes.
21630 \begin_layout Plain Layout
21631 \begin_inset space \hfill{}
21635 \begin_inset Float table
21640 \begin_layout Plain Layout
21641 \begin_inset Caption Standard
21643 \begin_layout Plain Layout
21652 \begin_layout Plain Layout
21655 \begin_inset Tabular
21656 <lyxtabular version="3" rows="6" columns="1">
21657 <features tabularvalignment="middle">
21658 <column alignment="left" valignment="top">
21660 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21663 \begin_layout Plain Layout
21671 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21674 \begin_layout Plain Layout
21684 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21687 \begin_layout Plain Layout
21697 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21700 \begin_layout Plain Layout
21710 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_layout Plain Layout
21723 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21726 \begin_layout Plain Layout
21745 \begin_inset space \hfill{}
21749 \begin_inset Float table
21754 \begin_layout Plain Layout
21755 \begin_inset Caption Standard
21757 \begin_layout Plain Layout
21758 Table using the command
21772 \begin_layout Plain Layout
21775 \begin_inset Tabular
21776 <lyxtabular version="3" rows="6" columns="1">
21777 <features tabularvalignment="middle">
21778 <column alignment="left" valignment="top">
21780 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21783 \begin_layout Plain Layout
21791 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21794 \begin_layout Plain Layout
21800 \begin_layout Plain Layout
21816 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21819 \begin_layout Plain Layout
21825 \begin_layout Plain Layout
21841 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21844 \begin_layout Plain Layout
21850 \begin_layout Plain Layout
21866 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21869 \begin_layout Plain Layout
21875 \begin_layout Plain Layout
21891 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21894 \begin_layout Plain Layout
21900 \begin_layout Plain Layout
21927 \begin_inset space \hfill{}
21938 \begin_layout Subsection
21939 Special Cell Alignment
21940 \begin_inset CommandInset label
21942 name "subsec:Special-Cell-Alignment"
21947 \begin_inset Index idx
21950 \begin_layout Plain Layout
21951 Table Customization ! Special Cell Alignment
21959 \begin_layout Standard
21960 Sometimes it looks better when the cell entries of a column are aligned
21961 with a special character, e.
21962 \begin_inset space \thinspace{}
21966 \begin_inset space \space{}
21969 with the decimal separator as in Table
21970 \begin_inset space ~
21974 \begin_inset CommandInset ref
21976 reference "tab:Table-cells-align"
21981 This alignment is achieved by setting the cursor into the column and then
21982 either pressing the toolbar button
21985 arg "tabular-feature align-decimal"
21988 or setting the alignment in the table settings to
21991 \begin_inset space ~
21995 \begin_inset space ~
22001 The alignment character can be a character of your choice and is specified
22002 in the table settings.
22005 \begin_layout Standard
22006 \begin_inset Float table
22012 \begin_layout Plain Layout
22013 \begin_inset Caption Standard
22015 \begin_layout Plain Layout
22016 \begin_inset CommandInset label
22018 name "tab:Table-cells-align"
22022 Table cells of a column aligned with the decimal separator.
22030 \begin_layout Plain Layout
22032 \begin_inset Tabular
22033 <lyxtabular version="3" rows="4" columns="1">
22034 <features booktabs="true" tabularvalignment="middle">
22035 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22040 \begin_layout Plain Layout
22048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22051 \begin_layout Plain Layout
22059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22062 \begin_layout Plain Layout
22070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22073 \begin_layout Plain Layout
22092 \begin_layout Standard
22093 \begin_inset Float table
22099 \begin_layout Plain Layout
22100 \begin_inset Caption Standard
22102 \begin_layout Plain Layout
22103 \begin_inset CommandInset label
22105 name "tab:Table-align-operator"
22109 Table cells of a column aligned with the operators.
22117 \begin_layout Plain Layout
22119 \begin_inset Tabular
22120 <lyxtabular version="3" rows="4" columns="2">
22121 <features booktabs="true" tabularvalignment="middle">
22122 <column alignment="right" valignment="top" width="0pt">
22123 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22125 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22128 \begin_layout Plain Layout
22134 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22137 \begin_layout Plain Layout
22145 <cell alignment="center" valignment="top" usebox="none">
22148 \begin_layout Plain Layout
22149 \begin_inset Formula $12\,+$
22157 <cell alignment="center" valignment="top" usebox="none">
22160 \begin_layout Plain Layout
22161 \begin_inset Formula $\,6$
22171 <cell alignment="center" valignment="top" usebox="none">
22174 \begin_layout Plain Layout
22175 \begin_inset Formula $0\,-$
22183 <cell alignment="center" valignment="top" usebox="none">
22186 \begin_layout Plain Layout
22187 \begin_inset Formula $\,68$
22197 <cell alignment="center" valignment="top" usebox="none">
22200 \begin_layout Plain Layout
22201 \begin_inset Formula $-123\,/$
22209 <cell alignment="center" valignment="top" usebox="none">
22212 \begin_layout Plain Layout
22213 \begin_inset Formula $\,0$
22234 \begin_layout Standard
22235 For alignments at characters in formulas this method does not work because
22236 the field to specify the alignment character does not allow formulas.
22237 In this case one need to use the method from Table
22238 \begin_inset space ~
22242 \begin_inset CommandInset ref
22244 reference "tab:Table-align-operator"
22249 This table was created with a 4×2 table.
22250 The heading is a centered multicolumn.
22251 The first column is right-aligned and contains the first part including
22253 The second column is left aligned and contains the rest.
22254 A small space was added at the beginning of each cell of the second column
22255 to get the space that is usually around operators.
22256 To omit the space that is normally between two table columns, the following
22258 -argument was used for the second column:
22261 \begin_layout Standard
22267 \begin_layout Standard
22269 \begin_inset space ~
22273 \begin_inset CommandInset ref
22275 reference "tab:Several-table-cell"
22279 shows some example alignments.
22280 For the alignment with the relation sign, a small space was added like
22281 for the second column of Table
22282 \begin_inset space ~
22286 \begin_inset CommandInset ref
22288 reference "tab:Table-align-operator"
22295 \begin_layout Standard
22296 \begin_inset Float table
22302 \begin_layout Plain Layout
22303 \begin_inset Caption Standard
22305 \begin_layout Plain Layout
22306 \begin_inset CommandInset label
22308 name "tab:Several-table-cell"
22312 Several table cell alignments.
22320 \begin_layout Plain Layout
22322 \begin_inset Tabular
22323 <lyxtabular version="3" rows="4" columns="6">
22324 <features tabularvalignment="middle">
22325 <column alignment="right" valignment="top">
22326 <column alignment="left" valignment="top" special="@{}l">
22327 <column alignment="right" valignment="top">
22328 <column alignment="left" valignment="top" special="@{}l">
22329 <column alignment="right" valignment="top">
22330 <column alignment="left" valignment="top" special="@{}l">
22332 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22335 \begin_layout Plain Layout
22341 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22344 \begin_layout Plain Layout
22350 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22353 \begin_layout Plain Layout
22359 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22362 \begin_layout Plain Layout
22368 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22371 \begin_layout Plain Layout
22377 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22380 \begin_layout Plain Layout
22388 <cell alignment="center" valignment="top" usebox="none">
22391 \begin_layout Plain Layout
22397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22400 \begin_layout Plain Layout
22402 \begin_inset space \thinspace{}
22410 <cell alignment="center" valignment="top" usebox="none">
22413 \begin_layout Plain Layout
22414 \begin_inset Formula $10\cdot$
22422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22425 \begin_layout Plain Layout
22426 \begin_inset Formula $10^{\mbox{-}17}$
22434 <cell alignment="center" valignment="top" usebox="none">
22437 \begin_layout Plain Layout
22438 \begin_inset Formula $\Gamma(t)\propto$
22446 <cell alignment="center" valignment="top" usebox="none">
22449 \begin_layout Plain Layout
22450 \begin_inset Formula $\:\Upsilon(t)$
22460 <cell alignment="center" valignment="top" usebox="none">
22463 \begin_layout Plain Layout
22469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22472 \begin_layout Plain Layout
22474 \begin_inset space \thinspace{}
22482 <cell alignment="center" valignment="top" usebox="none">
22485 \begin_layout Plain Layout
22486 \begin_inset Formula $5.78\cdot$
22494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22497 \begin_layout Plain Layout
22498 \begin_inset Formula $10^{7}$
22506 <cell alignment="center" valignment="top" usebox="none">
22509 \begin_layout Plain Layout
22510 \begin_inset Formula $A\ne$
22518 <cell alignment="center" valignment="top" usebox="none">
22521 \begin_layout Plain Layout
22522 \begin_inset Formula $\:B_{\mathrm{red}}$
22532 <cell alignment="center" valignment="top" usebox="none">
22535 \begin_layout Plain Layout
22541 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22544 \begin_layout Plain Layout
22546 \begin_inset space \thinspace{}
22554 <cell alignment="center" valignment="top" usebox="none">
22557 \begin_layout Plain Layout
22559 \begin_inset Formula $33.5\cdot$
22567 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22570 \begin_layout Plain Layout
22571 \begin_inset Formula $10^{4}$
22579 <cell alignment="center" valignment="top" usebox="none">
22582 \begin_layout Plain Layout
22583 \begin_inset Formula $\sin(\alpha)\ge$
22591 <cell alignment="center" valignment="top" usebox="none">
22594 \begin_layout Plain Layout
22595 \begin_inset Formula $\:\sin(\beta)$
22616 \begin_layout Subsection
22617 Customized Cell/Column Format
22618 \begin_inset CommandInset label
22620 name "subsec:Customized-Format"
22625 \begin_inset Index idx
22628 \begin_layout Plain Layout
22629 Table Customization ! Cell/Column Format
22637 \begin_layout Standard
22638 Calculating the required width for normal columns as described in section
22639 \begin_inset space ~
22643 \begin_inset CommandInset ref
22645 reference "sec:Table-Width-Calculation"
22649 or for spanned columns as described in section
22650 \begin_inset space ~
22654 \begin_inset CommandInset ref
22656 reference "subsec:Multicolumn-Calculations"
22660 is very annoying if you have several tables where a calculation is necessary.
22661 To make life easier, you can define a cell/column format in the preamble,
22662 that can be used in all tables of the document.
22663 The format is defined with the command
22666 \begin_layout Standard
22671 newcolumntype{name of format}[number of arguments]{commands}
22674 \begin_layout Standard
22675 The format name may only consist of one letter.
22700 are predefined and cannot be used.
22701 But all letters are allowed as capitals.
22704 \begin_layout Standard
22705 \begin_inset VSpace medskip
22711 \begin_layout Standard
22712 For vertically and horizontally centered multicolumn cells with a fixed
22713 width you can define the cell format
22716 \begin_layout Standard
22721 newcolumntype{M}[1]{>{
22728 \begin_layout Standard
22735 avoids the problem of hyphenating the first word, as described in section
22736 \begin_inset space ~
22740 \begin_inset CommandInset ref
22742 reference "subsec:Multiple-Lines-in"
22747 Now you can simply enter
22750 \begin_layout Standard
22756 \begin_layout Standard
22762 in the table dialog to create a multicolumn.
22765 \begin_layout Standard
22766 \begin_inset VSpace bigskip
22772 \begin_layout Standard
22773 For cells spanned by a multicolumn cell, you can define the format
22776 \begin_layout Standard
22781 newcolumntype{S}[2]{>{
22786 \begin_inset Newline newline
22790 \begin_inset Phantom HPhantom
22793 \begin_layout Plain Layout
22807 arrayrulewidth)*(1-#2))/#2}}
22810 \begin_layout Standard
22811 This format uses equation
22812 \begin_inset CommandInset ref
22818 to calculate the required width so that each spanned cell has the same
22822 \begin_layout Standard
22826 \begin_layout Standard
22829 S{width of multicolumn cell}{number of spanned columns}
22832 \begin_layout Standard
22833 as \SpecialChar LaTeX
22834 -argument of the column.
22837 \begin_layout Standard
22838 \begin_inset VSpace bigskip
22844 \begin_layout Standard
22845 For colored columns, you can define
22848 \begin_layout Standard
22853 newcolumntype{K}[1]{>{
22860 \begin_layout Standard
22862 \begin_inset Quotes eld
22866 \begin_inset Quotes erd
22869 at the end creates a column with a flexible width whose text is horizontally
22874 \begin_layout Standard
22880 \begin_layout Standard
22881 as \SpecialChar LaTeX
22885 \begin_layout Standard
22886 \begin_inset VSpace bigskip
22892 \begin_layout Standard
22894 \begin_inset space ~
22898 \begin_inset CommandInset ref
22900 reference "tab:Table-using-user-defined"
22904 use the \SpecialChar LaTeX
22908 \begin_layout Standard
22914 \begin_layout Standard
22915 for the first column and the multicolumn,
22918 \begin_layout Standard
22924 \begin_layout Standard
22925 for the last column, and
22928 \begin_layout Standard
22934 \begin_layout Standard
22935 for the cells in the second column.
22938 \begin_layout Standard
22939 \begin_inset Float table
22945 \begin_layout Plain Layout
22946 \begin_inset Caption Standard
22948 \begin_layout Plain Layout
22949 \begin_inset CommandInset label
22951 name "tab:Table-using-user-defined"
22955 Table using user-defined table formats
22963 \begin_layout Plain Layout
22965 \begin_inset Tabular
22966 <lyxtabular version="3" rows="3" columns="4">
22967 <features tabularvalignment="middle">
22968 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22969 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22970 <column alignment="center" valignment="middle">
22971 <column alignment="center" valignment="middle" special="K{red}">
22973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22976 \begin_layout Plain Layout
22977 verylongtablecellword
22982 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22985 \begin_layout Plain Layout
22986 multiple lines multicolumn
22991 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22994 \begin_layout Plain Layout
23000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23003 \begin_layout Plain Layout
23011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23014 \begin_layout Plain Layout
23020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23023 \begin_layout Plain Layout
23029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23032 \begin_layout Plain Layout
23038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23041 \begin_layout Plain Layout
23049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23052 \begin_layout Plain Layout
23058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23061 \begin_layout Plain Layout
23067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23070 \begin_layout Plain Layout
23076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23079 \begin_layout Plain Layout
23098 \begin_layout Subsection
23100 \begin_inset CommandInset label
23102 name "subsec:Line-Thickness"
23107 \begin_inset Index idx
23110 \begin_layout Plain Layout
23111 Table Customization ! Line Thickness
23119 \begin_layout Standard
23120 The line thickness for all lines in a table can be adjusted with the length
23128 To set for example a line thickness of 1.5
23129 \begin_inset space \thinspace{}
23133 \begin_inset space ~
23137 \begin_inset CommandInset ref
23139 reference "tab:Table-with-1.5"
23143 , insert the command
23146 \begin_layout Standard
23153 arrayrulewidth}{1.5pt}
23156 \begin_layout Standard
23157 in \SpecialChar TeX
23158 Code before the table or table float.
23159 The changed thickness is valid for all subsequent tables.
23160 To use the default value again, set
23167 \begin_inset space \thinspace{}
23170 pt in \SpecialChar TeX
23171 Code after the table or table float.
23174 \begin_layout Standard
23178 \begin_layout Plain Layout
23184 arrayrulewidth}{1.5pt}
23190 \begin_inset Float table
23195 \begin_layout Plain Layout
23196 \begin_inset Caption Standard
23198 \begin_layout Plain Layout
23199 \begin_inset CommandInset label
23201 name "tab:Table-with-1.5"
23206 \begin_inset space \thinspace{}
23217 \begin_layout Plain Layout
23219 \begin_inset Tabular
23220 <lyxtabular version="3" rows="3" columns="3">
23221 <features tabularvalignment="middle">
23222 <column alignment="center" valignment="top">
23223 <column alignment="center" valignment="top">
23224 <column alignment="center" valignment="top">
23226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23229 \begin_layout Plain Layout
23235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23238 \begin_layout Plain Layout
23244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23247 \begin_layout Plain Layout
23255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23258 \begin_layout Plain Layout
23264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23267 \begin_layout Plain Layout
23273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23276 \begin_layout Plain Layout
23284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23287 \begin_layout Plain Layout
23293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23296 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23305 \begin_layout Plain Layout
23325 \begin_layout Plain Layout
23331 arrayrulewidth}{0.4pt}
23339 \begin_layout Standard
23340 \begin_inset VSpace bigskip
23343 To set the line thickness to 1.5
23344 \begin_inset space \thinspace{}
23347 pt only for horizontal lines, as in Table
23348 \begin_inset space ~
23352 \begin_inset CommandInset ref
23354 reference "tab:Table-with-horizontal"
23358 , insert these commands in \SpecialChar TeX
23359 Code before the table or table float:
23362 \begin_layout Standard
23372 \begin_inset Newline newline
23380 \begin_inset Newline newline
23389 arrayrulewidth 1.5pt}
23390 \begin_inset Newline newline
23401 arrayrulewidth 0.4pt}}
23404 \begin_layout Standard
23405 To return to the default line thickness, insert this command in \SpecialChar TeX
23407 the table or table float:
23410 \begin_layout Standard
23422 \begin_layout Standard
23426 \begin_layout Plain Layout
23437 \begin_layout Plain Layout
23446 \begin_layout Plain Layout
23454 arrayrulewidth 1.5pt}
23457 \begin_layout Plain Layout
23467 arrayrulewidth 0.4pt}}
23473 \begin_inset Float table
23478 \begin_layout Plain Layout
23479 \begin_inset Caption Standard
23481 \begin_layout Plain Layout
23482 \begin_inset CommandInset label
23484 name "tab:Table-with-horizontal"
23489 \begin_inset space \thinspace{}
23492 pt thick horizontal lines
23500 \begin_layout Plain Layout
23502 \begin_inset Tabular
23503 <lyxtabular version="3" rows="3" columns="3">
23504 <features tabularvalignment="middle">
23505 <column alignment="center" valignment="top">
23506 <column alignment="center" valignment="top">
23507 <column alignment="center" valignment="top">
23509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23512 \begin_layout Plain Layout
23518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23521 \begin_layout Plain Layout
23527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23530 \begin_layout Plain Layout
23538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23541 \begin_layout Plain Layout
23547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23550 \begin_layout Plain Layout
23556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23559 \begin_layout Plain Layout
23567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23570 \begin_layout Plain Layout
23576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23579 \begin_layout Plain Layout
23585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23588 \begin_layout Plain Layout
23608 \begin_layout Plain Layout
23624 \begin_layout Standard
23625 \begin_inset VSpace bigskip
23628 To set the line thickness to 1.5
23629 \begin_inset space \thinspace{}
23632 pt only for vertical lines, create the following column format in the document
23633 preamble, according to the description in section
23634 \begin_inset space ~
23638 \begin_inset CommandInset ref
23640 reference "subsec:Customized-Format"
23647 \begin_layout Standard
23652 newcolumntype{V}{!{
23654 vrule width 1.5pt}}
23657 \begin_layout Standard
23659 \begin_inset space ~
23663 \begin_inset CommandInset ref
23665 reference "tab:Table-with-vertical"
23669 the \SpecialChar LaTeX
23673 \begin_layout Standard
23679 \begin_layout Standard
23680 was used for the last column and
23683 \begin_layout Standard
23689 \begin_layout Standard
23690 for the other columns.
23693 \begin_layout Standard
23694 \begin_inset Float table
23699 \begin_layout Plain Layout
23700 \begin_inset Caption Standard
23702 \begin_layout Plain Layout
23703 \begin_inset CommandInset label
23705 name "tab:Table-with-vertical"
23710 \begin_inset space \thinspace{}
23713 pt thick vertical lines
23721 \begin_layout Plain Layout
23723 \begin_inset Tabular
23724 <lyxtabular version="3" rows="3" columns="3">
23725 <features tabularvalignment="middle">
23726 <column alignment="center" valignment="top" special="Vc">
23727 <column alignment="center" valignment="top" special="Vc">
23728 <column alignment="center" valignment="top" special="VcV">
23730 <cell alignment="center" valignment="top" topline="true" usebox="none">
23733 \begin_layout Plain Layout
23739 <cell alignment="center" valignment="top" topline="true" usebox="none">
23742 \begin_layout Plain Layout
23748 <cell alignment="center" valignment="top" topline="true" usebox="none">
23751 \begin_layout Plain Layout
23759 <cell alignment="center" valignment="top" topline="true" usebox="none">
23762 \begin_layout Plain Layout
23768 <cell alignment="center" valignment="top" topline="true" usebox="none">
23771 \begin_layout Plain Layout
23777 <cell alignment="center" valignment="top" topline="true" usebox="none">
23780 \begin_layout Plain Layout
23788 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23791 \begin_layout Plain Layout
23797 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23800 \begin_layout Plain Layout
23806 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23809 \begin_layout Plain Layout
23828 \begin_layout Subsection
23830 \begin_inset Index idx
23833 \begin_layout Plain Layout
23834 Table Customization ! Dashed Lines
23842 \begin_layout Standard
23846 \begin_layout Plain Layout
23856 \begin_inset Note Note
23859 \begin_layout Plain Layout
23860 The following section will only be displayed when the \SpecialChar LaTeX
23873 \begin_layout Standard
23874 \begin_inset Float table
23880 \begin_layout Plain Layout
23881 \begin_inset Caption Standard
23883 \begin_layout Plain Layout
23884 \begin_inset CommandInset label
23886 name "tab:Table-with-dashed"
23890 Table with dashed lines
23898 \begin_layout Plain Layout
23900 \begin_inset Tabular
23901 <lyxtabular version="3" rows="5" columns="5">
23902 <features tabularvalignment="middle">
23903 <column alignment="center" valignment="top">
23904 <column alignment="center" valignment="top">
23905 <column alignment="center" valignment="top" special=":c">
23906 <column alignment="center" valignment="top">
23907 <column alignment="center" valignment="top">
23909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23912 \begin_layout Plain Layout
23918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23921 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23930 \begin_layout Plain Layout
23936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23939 \begin_layout Plain Layout
23945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23948 \begin_layout Plain Layout
23956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23959 \begin_layout Plain Layout
23965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23968 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" topline="true" usebox="none">
23977 \begin_layout Plain Layout
23983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23986 \begin_layout Plain Layout
23992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23995 \begin_layout Plain Layout
24003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24006 \begin_layout Plain Layout
24010 \begin_layout Plain Layout
24024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24027 \begin_layout Plain Layout
24033 <cell alignment="center" valignment="top" usebox="none">
24036 \begin_layout Plain Layout
24042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24045 \begin_layout Plain Layout
24051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24054 \begin_layout Plain Layout
24062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24065 \begin_layout Plain Layout
24069 \begin_layout Plain Layout
24083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24086 \begin_layout Plain Layout
24092 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24095 \begin_layout Plain Layout
24101 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24104 \begin_layout Plain Layout
24110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24113 \begin_layout Plain Layout
24121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24124 \begin_layout Plain Layout
24130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24133 \begin_layout Plain Layout
24139 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24142 \begin_layout Plain Layout
24148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24151 \begin_layout Plain Layout
24157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24160 \begin_layout Plain Layout
24179 \begin_layout Standard
24181 does not natively support dashed lines, so you have to use \SpecialChar TeX
24183 As a prerequisite the \SpecialChar LaTeX
24189 \begin_inset Index idx
24192 \begin_layout Plain Layout
24194 -packages ! arydshln
24199 must be loaded in the document preamble with the command
24202 \begin_layout Standard
24207 usepackage{arydshln}
24210 \begin_layout Standard
24211 To make a vertical line dashed, enter the colon
24212 \begin_inset Quotes eld
24216 \begin_inset Quotes erd
24219 together with the character for the horizontal alignment as \SpecialChar LaTeX
24221 the table cell dialog.
24224 \begin_layout Standard
24225 For a horizontal dashed line add the command
24228 \begin_layout Standard
24236 \begin_layout Standard
24237 in \SpecialChar TeX
24238 Code as first element of the first cell in the table row.
24241 \begin_layout Standard
24242 For dashed multicolumn lines use the command
24245 \begin_layout Standard
24250 cdashline{line number
24255 \begin_layout Standard
24256 in \SpecialChar TeX
24257 Code as the first element of the first cell in the table row.
24258 If you have for example a multicolumn spanning columns 2 to 4 and you want
24259 to have a dashed line above, add the command
24262 \begin_layout Standard
24270 \begin_layout Standard
24271 as the first element of the first cell in the row of the multicolumn.
24274 \begin_layout Standard
24275 \begin_inset VSpace bigskip
24281 \begin_layout Standard
24283 \begin_inset space ~
24287 \begin_inset CommandInset ref
24289 reference "tab:Table-with-dashed"
24294 \begin_inset Quotes eld
24302 \begin_inset Quotes erd
24305 as \SpecialChar LaTeX
24306 argument of the third column.
24307 The \SpecialChar TeX
24314 was inserted in the first cell of the third row and the \SpecialChar TeX
24316 \begin_inset Newline newline
24325 was inserted in the first cell of the fourth row.
24328 \begin_layout Standard
24329 \begin_inset VSpace bigskip
24335 \begin_layout Standard
24336 Tables with dashed lines can also be colored as shown by Table
24337 \begin_inset space ~
24341 \begin_inset CommandInset ref
24343 reference "tab:Colored-table-with"
24350 \begin_layout Standard
24354 \begin_layout Plain Layout
24360 arrayrulewidth}{1pt}
24366 \begin_inset Note Note
24369 \begin_layout Plain Layout
24370 thicker lines for better visualization of the line color
24378 \begin_layout Standard
24382 \begin_layout Plain Layout
24386 dashgapcolor{green}
24392 \begin_inset Note Note
24395 \begin_layout Plain Layout
24396 color gaps between dashes green
24404 \begin_layout Standard
24408 \begin_layout Plain Layout
24419 \begin_layout Plain Layout
24428 \begin_layout Plain Layout
24432 arrayrulecolor{red}
24436 arrayrulecolor{black}}
24442 \begin_inset Note Note
24445 \begin_layout Plain Layout
24446 color horizontal, dashed lines red
24454 \begin_layout Standard
24458 \begin_layout Plain Layout
24469 \begin_layout Plain Layout
24478 \begin_layout Plain Layout
24482 arrayrulecolor{yellow}
24486 arrayrulecolor{black}}
24492 \begin_inset Note Note
24495 \begin_layout Plain Layout
24496 color partial horizontal, dashed lines yellow
24504 \begin_layout Standard
24505 \begin_inset Float table
24511 \begin_layout Plain Layout
24512 \begin_inset Caption Standard
24514 \begin_layout Plain Layout
24515 \begin_inset CommandInset label
24517 name "tab:Colored-table-with"
24521 Colored table with dashed lines
24529 \begin_layout Plain Layout
24531 \begin_inset Tabular
24532 <lyxtabular version="3" rows="5" columns="5">
24533 <features tabularvalignment="middle">
24534 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24535 <column alignment="center" valignment="top" width="0pt">
24536 <column alignment="center" valignment="top" width="0pt" special=":c">
24537 <column alignment="center" valignment="top">
24538 <column alignment="center" valignment="top">
24540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24543 \begin_layout Plain Layout
24549 <cell alignment="center" valignment="top" topline="true" usebox="none">
24552 \begin_layout Plain Layout
24558 <cell alignment="center" valignment="top" topline="true" usebox="none">
24561 \begin_layout Plain Layout
24567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24570 \begin_layout Plain Layout
24576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24579 \begin_layout Plain Layout
24587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24590 \begin_layout Plain Layout
24596 <cell alignment="center" valignment="top" topline="true" usebox="none">
24599 \begin_layout Plain Layout
24605 <cell alignment="center" valignment="top" topline="true" usebox="none">
24608 \begin_layout Plain Layout
24614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24617 \begin_layout Plain Layout
24623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24626 \begin_layout Plain Layout
24634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24637 \begin_layout Plain Layout
24641 \begin_layout Plain Layout
24654 \begin_layout Plain Layout
24668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24671 \begin_layout Plain Layout
24677 <cell alignment="center" valignment="top" usebox="none">
24680 \begin_layout Plain Layout
24686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24689 \begin_layout Plain Layout
24695 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24698 \begin_layout Plain Layout
24706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24709 \begin_layout Plain Layout
24713 \begin_layout Plain Layout
24727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24730 \begin_layout Plain Layout
24736 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24739 \begin_layout Plain Layout
24745 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24748 \begin_layout Plain Layout
24754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24757 \begin_layout Plain Layout
24765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24768 \begin_layout Plain Layout
24774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24777 \begin_layout Plain Layout
24783 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24786 \begin_layout Plain Layout
24792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24795 \begin_layout Plain Layout
24801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24804 \begin_layout Plain Layout
24808 \begin_layout Plain Layout
24835 \begin_layout Standard
24839 \begin_layout Plain Layout
24853 \begin_inset Note Note
24856 \begin_layout Plain Layout
24865 \begin_layout Standard
24869 \begin_layout Plain Layout
24883 \begin_inset Note Note
24886 \begin_layout Plain Layout
24895 \begin_layout Standard
24899 \begin_layout Plain Layout
24909 \begin_inset Note Note
24912 \begin_layout Plain Layout
24921 \begin_layout Standard
24925 \begin_layout Plain Layout
24931 arrayrulewidth}{0.4pt}
24937 \begin_inset Note Note
24940 \begin_layout Plain Layout
24949 \begin_layout Standard
24950 The coloring of lines, columns and lines works as decribed in section
24951 \begin_inset space ~
24955 \begin_inset CommandInset ref
24957 reference "sec:Colored-Tables"
24962 Coloring horizontal lines works analogically as described there as well,
24963 one only needs to replace in the commands
24987 ; so one uses the command
24990 \begin_layout Standard
25000 \begin_inset Newline newline
25008 \begin_inset Newline newline
25012 \begin_inset Phantom HPhantom
25015 \begin_layout Plain Layout
25016 \begin_inset space ~
25026 arrayrulecolor{red}
25030 arrayrulecolor{black}}
25033 \begin_layout Standard
25043 \begin_layout Standard
25053 \begin_inset Newline newline
25061 \begin_inset Newline newline
25065 \begin_inset Phantom HPhantom
25068 \begin_layout Plain Layout
25069 \begin_inset space ~
25079 arrayrulecolor{red}
25083 arrayrulecolor{black}}
25086 \begin_layout Standard
25087 To get back the black line color, one needs to insert the following commands
25088 as \SpecialChar TeX
25089 Code behind the table:
25092 \begin_layout Standard
25100 \begin_layout Standard
25112 \begin_layout Standard
25120 \begin_layout Standard
25132 \begin_layout Standard
25133 To color the gaps between the dashes the command
25136 \begin_layout Standard
25141 dashgapcolor{color}
25144 \begin_layout Standard
25145 can be used in front of a table as \SpecialChar TeX
25147 color is hereby the name of a defined color.
25151 \begin_layout Standard
25159 \begin_layout Standard
25160 unsets the changes made by
25169 \begin_layout Standard
25170 \begin_inset Note Greyedout
25173 \begin_layout Plain Layout
25179 : If there are multiple commands in a cell, the command of
25183 needs to be the first one in the cell.
25189 \begin_inset space ~
25193 \begin_inset CommandInset ref
25195 reference "tab:Colored-table-with"
25219 \begin_layout Standard
25220 \begin_inset Note Greyedout
25223 \begin_layout Plain Layout
25229 The \SpecialChar LaTeX
25234 must be loaded in the document preamble before the \SpecialChar LaTeX
25240 \begin_inset Index idx
25243 \begin_layout Plain Layout
25245 -packages ! colortbl
25258 \begin_layout Standard
25262 \begin_layout Plain Layout
25272 \begin_inset Note Note
25275 \begin_layout Plain Layout
25276 The following will be displayed when the \SpecialChar LaTeX
25289 \begin_layout Standard
25290 You need to install the package
25294 to see the content of this section in the output.
25297 \begin_layout Standard
25301 \begin_layout Plain Layout
25313 \begin_layout Standard
25314 For more information about dashed lines see the documentation of
25319 \begin_inset CommandInset citation
25329 \begin_layout Chapter
25331 \begin_inset CommandInset label
25338 \begin_inset Index idx
25341 \begin_layout Plain Layout
25350 \begin_layout Section
25352 \begin_inset CommandInset label
25354 name "sec:FloatIntroduction"
25359 \begin_inset Index idx
25362 \begin_layout Plain Layout
25363 Floats ! Introduction
25371 \begin_layout Standard
25372 A float is a block of text associated with some sort of label, which doesn't
25373 have a fixed location.
25375 \begin_inset Quotes eld
25379 \begin_inset Quotes erd
25382 forward or backward a page or two, to wherever it fits best.
25390 \begin_inset space ~
25395 are also floats because they can float to the next page when there are
25396 too many notes on the page.
25399 \begin_layout Standard
25400 Floats allow a high quality layout.
25401 Images and tables can be spread evenly among the pages to avoid white space
25402 and pages without text.
25403 As the floating often destroys the context between the text and the image/table
25404 , every float can be referenced in the text.
25405 Floats are therefore numbered.
25406 Referencing is described in section
25407 \begin_inset space ~
25411 \begin_inset CommandInset ref
25413 reference "sec:Referencing-Floats"
25420 \begin_layout Standard
25421 To insert a float, use the menu
25423 Insert\SpecialChar menuseparator
25429 arg "float-insert figure"
25435 arg "float-insert table"
25443 inset, a box with a label.
25444 The label will automatically be translated to the document language in
25446 After the label you can insert the caption text.
25447 The image or table is inserted above or below the caption in a separate
25448 paragraph within the float.
25449 More about the caption placement is contained in section
25450 \begin_inset space ~
25454 \begin_inset CommandInset ref
25456 reference "sec:Caption-Placement"
25461 To keep your \SpecialChar LyX
25462 document readable, you can open and close the float box by
25463 left-clicking on the box label.
25464 A closed float box looks like this:
25465 \begin_inset Graphics
25466 filename clipart/float.png
25468 scaleBeforeRotation
25472 – a gray button with a red label.
25475 \begin_layout Standard
25476 It is recommended that you insert floats as separate standard paragraphs
25477 to avoid possible \SpecialChar LaTeX
25478 -errors that can occur when the surrounding text is specially
25482 \begin_layout Standard
25483 Existing figures or tables can be put into a float by highlighting them
25484 and then pressing the corresponding toolbar button for a new float.
25487 \begin_layout Section
25491 \begin_layout Standard
25492 Besides figure and table floats that are described in sections
25493 \begin_inset space ~
25497 \begin_inset CommandInset ref
25499 reference "sec:Figure-Floats"
25504 \begin_inset CommandInset ref
25506 reference "sec:Table-Floats"
25510 respectively, \SpecialChar LyX
25511 offers the float types
25520 The latter are explained in sec.
25521 \begin_inset space \thinspace{}
25525 \begin_inset CommandInset ref
25527 reference "sec:Wrap-Floats"
25534 \begin_layout Subsection
25536 \begin_inset Index idx
25539 \begin_layout Plain Layout
25540 Floats ! Algorithms
25548 \begin_layout Standard
25549 \begin_inset Float algorithm
25555 \begin_layout Plain Layout
25556 \begin_inset Caption Standard
25558 \begin_layout Plain Layout
25559 \begin_inset CommandInset label
25561 name "alg:Example-Algorithm-float"
25565 Example Algorithm float
25573 \begin_layout LyX-Code
25575 \begin_inset Newline newline
25578 Sum:= Sum + A(I); /*comment*/
25579 \begin_inset Newline newline
25583 \begin_inset VSpace -4mm
25594 \begin_layout Standard
25595 This float type is inserted with the menu
25597 Insert\SpecialChar menuseparator
25598 Float\SpecialChar menuseparator
25602 It is used for program codes and descriptions of algorithms and can be
25603 seen as an alternative to program code listings that are explained in chapter
25604 \begin_inset space ~
25608 \begin_inset CommandInset ref
25610 reference "cha:Program-Code-Listings"
25615 A possible environment for algorithms is the
25620 , described in \SpecialChar LyX
25627 \begin_inset space ~
25631 \begin_inset CommandInset ref
25633 reference "alg:Example-Algorithm-float"
25637 is an example of an algorithm float where -4
25638 \begin_inset space \thinspace{}
25641 mm vertical space was added at the end of the float to have the bottom rule
25642 exactly below the last text line.
25645 \begin_layout Standard
25646 The float label is not automatically translated into the document language.
25647 If your document is not in English, you have to do this manually by adding
25648 the following line to the document preamble
25653 \begin_layout Standard
25658 floatname{algorithm}{your
25659 \begin_inset space ~
25665 \begin_layout Standard
25669 \begin_inset space ~
25675 \begin_inset Quotes eld
25683 \begin_inset Quotes erd
25689 \begin_layout Standard
25690 To insert the list of algorithms you can use the menu
25692 Insert\SpecialChar menuseparator
25694 \begin_inset space \thinspace{}
25698 \begin_inset space \thinspace{}
25701 TOC\SpecialChar menuseparator
25704 when your document has the same language as \SpecialChar LyX
25706 In other cases use this command in \SpecialChar TeX
25710 \begin_layout Standard
25715 listof{algorithm}{your
25716 \begin_inset space ~
25722 \begin_layout Standard
25726 \begin_inset space ~
25732 \begin_inset Quotes eld
25740 \begin_inset Quotes erd
25746 \begin_layout Standard
25747 Algorithm floats are not by default numbered in the scheme
25748 \begin_inset Quotes eld
25752 \begin_inset Quotes erd
25755 as is the case for table and figure floats in many document-classes.
25756 To number algorithm floats in the same scheme, add this command to your
25760 \begin_layout Standard
25765 numberwithin{algorithm}{chapter}
25768 \begin_layout Standard
25769 To be able to use the command
25778 \begin_inset space ~
25783 in the document settings the option
25786 \begin_inset space ~
25790 \begin_inset space ~
25794 \begin_inset space ~
25802 \begin_layout Section
25804 \begin_inset Index idx
25807 \begin_layout Plain Layout
25816 \begin_layout Standard
25817 Floats are usually numbered either independently from the sections the floats
25818 are in, or in the scheme
25819 \begin_inset Quotes eld
25823 \begin_inset Quotes erd
25827 \begin_inset Quotes eld
25831 \begin_inset Quotes erd
25835 This depends on the document class used.
25838 \begin_layout Standard
25839 To change section-independent numbering, you can use this command in the
25843 \begin_layout Standard
25855 \begin_layout Standard
25862 is the command that prints the table number.
25863 For figure floats, the command would be
25876 in the command above prints the table number as a small roman number.
25879 \begin_layout Standard
25880 To change the numbering scheme for example to
25881 \begin_inset Quotes eld
25885 \begin_inset Quotes erd
25888 , use this command in the preamble:
25891 \begin_layout Standard
25896 numberwithin{table}{subsection}
25899 \begin_layout Standard
25900 To be able to use the command
25909 \begin_inset space ~
25914 in the document settings the option
25917 \begin_inset space ~
25921 \begin_inset space ~
25925 \begin_inset space ~
25933 \begin_layout Standard
25934 Please also have a look at section
25935 \begin_inset space ~
25939 \begin_inset CommandInset ref
25941 reference "subsec:Footnote-Numbering"
25945 for the details and important notes about the numbering commands.
25948 \begin_layout Section
25950 \begin_inset CommandInset label
25952 name "sec:Referencing-Floats"
25957 \begin_inset Index idx
25960 \begin_layout Plain Layout
25961 Floats ! References
25967 \begin_inset Index idx
25970 \begin_layout Plain Layout
25971 References ! to Floats
25979 \begin_layout Standard
25980 To reference a float, insert a label into its caption using the menu
25982 Insert\SpecialChar menuseparator
25985 or the toolbar button
25992 A grey label box like this one:
25993 \begin_inset Graphics
25994 filename clipart/label.png
25995 scaleBeforeRotation
25999 will be inserted and the label window pops up asking for the label text.
26001 offers as text the first words of the caption with a prefix.
26002 The prefix depends on the float type, e.
26003 \begin_inset space \thinspace{}
26007 \begin_inset space \space{}
26010 for figure floats the prefix will be "
26017 \begin_layout Standard
26018 The label is used as anchor and name for the reference.
26019 You can refer to the label using the menu
26021 Insert\SpecialChar menuseparator
26024 or the toolbar button
26027 arg "dialog-show-new-inset ref"
26031 The cross-reference window appears showing all labels of the document.
26032 If you have multiple \SpecialChar LyX
26033 documents opened, choose the one you are working
26034 on from the drop-list at the top of the dialog.
26035 You can now sort the labels alphabetically and then choose one.
26036 A grey cross-reference box like this one:
26037 \begin_inset Graphics
26038 filename clipart/reference.png
26039 scaleBeforeRotation
26044 At the position of the cross-reference box the float number will appear
26048 \begin_layout Standard
26049 It is recommended that you use a protected space between the cross-reference
26050 name and its number to avoid line breaks between them.
26051 If a cross-reference refers to a non-existing label, you will see two question
26052 marks in the output instead of the reference.
26055 \begin_layout Standard
26056 You can change labels at any time by clicking on the label box.
26057 References to the changed label will automatically update their links to
26058 the new label text.
26061 \begin_layout Standard
26065 \begin_inset space ~
26069 \begin_inset space ~
26074 in the cross-reference window sets the cursor before the referred label.
26075 The button text changes then to Go
26076 \begin_inset space ~
26079 Back and you can use it to set the cursor back to the cross-reference.
26082 \begin_layout Subsection
26083 Cross-Reference Formats
26084 \begin_inset CommandInset label
26086 name "subsec:Cross-Reference-Formats"
26091 \begin_inset Index idx
26094 \begin_layout Plain Layout
26095 References ! Formats
26103 \begin_layout Standard
26104 There are six varieties of cross-references:
26107 \begin_layout Description
26108 <reference>: prints the float number, this is the default:
26109 \begin_inset CommandInset ref
26111 reference "fig:Two-distorted-images"
26118 \begin_layout Description
26119 (<reference>): prints the float number within two parentheses, this is the
26120 style normally used to reference formulas, especially when the reference
26122 \begin_inset Quotes eld
26126 \begin_inset Quotes erd
26130 \begin_inset CommandInset ref
26139 \begin_layout Description
26140 <page>: prints the page number: Page
26141 \begin_inset space ~
26145 \begin_inset CommandInset ref
26146 LatexCommand pageref
26147 reference "fig:Two-distorted-images"
26154 \begin_layout Description
26156 \begin_inset space ~
26160 \begin_inset space ~
26163 <page>: prints the text "on page" and the page number:
26164 \begin_inset CommandInset ref
26165 LatexCommand vpageref
26166 reference "fig:Two-distorted-images"
26173 \begin_layout Description
26175 \begin_inset space ~
26179 \begin_inset space ~
26183 \begin_inset space ~
26186 <page>: prints the float number, the text "on page", and the page number:
26188 \begin_inset CommandInset ref
26190 reference "fig:Two-distorted-images"
26197 \begin_layout Description
26199 \begin_inset space ~
26202 reference: prints a self-defined cross-reference format.
26203 \begin_inset Newline newline
26207 \begin_inset Note Greyedout
26210 \begin_layout Plain Layout
26215 This feature is only available when you have the \SpecialChar LaTeX
26225 \begin_inset Index idx
26228 \begin_layout Plain Layout
26230 -packages ! prettyref
26236 \begin_inset Index idx
26239 \begin_layout Plain Layout
26241 -packages ! refstyle
26252 \begin_inset Newline newline
26255 You can select which \SpecialChar LaTeX
26256 -package should be used for this feature by setting
26259 Use refstyle (not prettyref) for cross-references
26263 Document\SpecialChar menuseparator
26264 Settings\SpecialChar menuseparator
26268 The format is specified by adding the command
26280 (refstyle) to the preamble of the document.
26281 For example redefining all references to figures (which have the label
26283 \begin_inset Quotes eld
26291 \begin_inset Quotes erd
26294 ) can be done with this command
26295 \begin_inset Newline newline
26302 newref{fig}{refcmd={Image on page
26307 \begin_inset Newline newline
26310 For more information about the format, have a look at the package documentations
26312 \begin_inset CommandInset citation
26314 key "prettyref,refstyle"
26320 \begin_inset Newline newline
26331 are only available if you use the \SpecialChar LaTeX
26346 \begin_inset space \thinspace{}
26350 \begin_inset space \space{}
26354 \begin_inset Quotes eld
26358 \begin_inset Quotes erd
26365 outputs the name capitalized, e.
26366 \begin_inset space \thinspace{}
26370 \begin_inset space \space{}
26374 \begin_inset Quotes eld
26378 \begin_inset Quotes erd
26382 Both options can be combined to get e.
26383 \begin_inset space \thinspace{}
26387 \begin_inset space \space{}
26391 \begin_inset Quotes eld
26395 \begin_inset Quotes erd
26401 \begin_layout Description
26403 \begin_inset space ~
26406 reference: prints the caption of the reference:
26407 \begin_inset CommandInset ref
26408 LatexCommand nameref
26409 reference "fig:Two-distorted-images"
26416 \begin_layout Description
26418 \begin_inset space ~
26421 only: prints only the \SpecialChar LaTeX
26422 label for the reference:
26423 \begin_inset CommandInset ref
26424 LatexCommand labelonly
26425 reference "fig:Two-distorted-images"
26433 \begin_inset Newline newline
26436 This allows to use the label for commands in \SpecialChar TeX
26442 one can omit the prefix of the label name:
26443 \begin_inset CommandInset ref
26444 LatexCommand labelonly
26445 reference "fig:Two-distorted-images"
26455 \begin_layout Standard
26460 will not print the page number if the label is on the previous, the same,
26463 \begin_inset space \thinspace{}
26467 \begin_inset space \space{}
26471 \begin_inset Quotes eld
26479 \begin_inset Quotes erd
26485 <reference> on page <page>
26487 will not print anything about the page if the label is on the same page.
26490 \begin_layout Standard
26491 The number and current page of the part of the document referred to in the
26492 output is automatically calculated by \SpecialChar LaTeX
26494 The varieties are adjusted in the field
26498 of the cross-reference window that appears when you click on the cross-referenc
26502 \begin_layout Standard
26503 \begin_inset Note Greyedout
26506 \begin_layout Plain Layout
26511 It is recommended to use the \SpecialChar LaTeX
26517 \begin_inset Index idx
26520 \begin_layout Plain Layout
26522 -packages ! refstyle
26532 \begin_inset Index idx
26535 \begin_layout Plain Layout
26537 -packages ! prettyref
26542 does not know all of \SpecialChar LyX
26543 's possible label shortcuts
26547 \begin_layout Plain Layout
26548 \begin_inset Quotes eld
26552 \begin_inset Quotes erd
26555 is for example \SpecialChar LyX
26556 's shortcut for labels in figure captions.
26561 and is not internationalized.
26569 \begin_layout Subsection
26570 Automatic Reference Naming
26571 \begin_inset Index idx
26574 \begin_layout Plain Layout
26575 References ! Automatic Reference Naming
26583 \begin_layout Standard
26584 The \SpecialChar LaTeX
26590 \begin_inset Index idx
26593 \begin_layout Plain Layout
26595 -packages ! hyperref
26600 , that is enabled in the
26608 dialog, provides a very useful feature that cross-references automatically
26609 include the name of the referenced floats (or text parts like
26614 So you will save having to write e.
26615 \begin_inset space \thinspace{}
26619 \begin_inset space \space{}
26623 \begin_inset Quotes eld
26627 \begin_inset Quotes erd
26630 before every reference to a figure.
26631 To use this feature, enable
26635 and insert this line to the \SpecialChar LaTeX
26639 \begin_layout Standard
26655 \begin_layout Standard
26656 When you prefer other reference names than the default ones, for example
26657 you want instead of
26658 \begin_inset Quotes eld
26662 \begin_inset Quotes erd
26666 \begin_inset Quotes eld
26670 \begin_inset space \thinspace{}
26674 \begin_inset Quotes eld
26677 , you can redefine the name by inserting this in the preamble:
26680 \begin_layout Standard
26691 sectionautorefname}
26692 \begin_inset Newline newline
26696 \begin_inset Phantom HPhantom
26699 \begin_layout Plain Layout
26702 \begin_inset space ~
26715 \begin_layout Standard
26716 When you are using another document language than English, replace
26717 \begin_inset Newline newline
26732 , where *** is the name of the language used.
26735 \begin_layout Standard
26736 To get automatic names, but not for certain reference types, for example
26737 not for equations, use this preamble code:
26740 \begin_layout Standard
26751 equationautorefname}[1]{}}
26754 \begin_layout Standard
26755 More about this topic can be found in
26760 \begin_inset CommandInset citation
26770 \begin_layout Standard
26771 \begin_inset Note Greyedout
26774 \begin_layout Plain Layout
26779 Automatic reference naming cannot be used when you use cross-references
26783 \begin_inset space ~
26788 style, as described in section
26789 \begin_inset space ~
26793 \begin_inset CommandInset ref
26795 reference "subsec:Cross-Reference-Formats"
26807 \begin_layout Standard
26812 manual is an example where automatic reference naming is used.
26815 \begin_layout Subsection
26817 \begin_inset CommandInset label
26819 name "subsec:Reference-Position"
26824 \begin_inset Index idx
26827 \begin_layout Plain Layout
26828 References ! Reference Position
26836 \begin_layout Standard
26842 \begin_inset Index idx
26845 \begin_layout Plain Layout
26847 -packages ! hyperref
26860 dialog to link cross-references in the output, you will see that clicking
26861 on an image float reference jumps to the image label.
26862 The caption will be the first text part on the screen, so that you cannot
26863 see the image without scrolling.
26864 This is because the reference link anchor is placed at the position of
26866 With the use of the package
26871 \begin_inset Index idx
26874 \begin_layout Plain Layout
26881 , which is part of the \SpecialChar LaTeX
26887 \begin_inset Index idx
26890 \begin_layout Plain Layout
26892 -packages ! oberdiek
26897 , the link anchor is placed at the beginning of a float.
26898 To use this feature for figure floats, load
26902 in the document preamble with the line
26905 \begin_layout Standard
26910 usepackage[figure]{hypcap}
26913 \begin_layout Standard
26918 for all float types but this is not recommended for stability reasons.
26919 For more information, have a look at
26924 \begin_inset CommandInset citation
26934 \begin_layout Standard
26935 \begin_inset Note Greyedout
26938 \begin_layout Plain Layout
26947 has no effect on references to subfigures.
26955 \begin_layout Section
26957 \change_deleted -712698321 1526031763
26959 \change_inserted -712698321 1526031765
26963 \begin_inset CommandInset label
26965 name "sec:Float-Settings"
26970 \begin_inset Index idx
26973 \begin_layout Plain Layout
26975 \change_deleted -712698321 1526031841
26977 \change_inserted -712698321 1526031842
26988 \begin_layout Standard
26990 \change_inserted -712698321 1526033385
26991 Float Settings can be adjusted at two places in \SpecialChar LyX
26994 Document\SpecialChar menuseparator
26995 Settings\SpecialChar ldots
26996 \SpecialChar menuseparator
26999 , you can set some options that are used by default for all floats of the
27000 document (placement on page and alignment of contents), unless you modify
27001 the local settings of a float.
27006 \begin_layout Standard
27008 \change_inserted -712698321 1526032513
27009 The latter can be done by
27010 \change_deleted -712698321 1526032513
27012 \change_inserted -712698321 1526032513
27015 ight-clicking on a float-box and clicking on
27018 \change_inserted -712698321 1526033387
27025 \change_inserted -712698321 1526032520
27028 opens a dialog where you can
27029 \change_inserted -712698321 1526032584
27030 , now only for the given float,
27033 \change_inserted -712698321 1526033452
27037 \change_deleted -712698321 1526033439
27038 options that \SpecialChar LaTeX
27039 uses for positioning the float
27040 \change_inserted -712698321 1526033493
27041 and alignment options, and adapt some other options that are only available
27046 \change_inserted -712698321 1526032658
27047 All these options, both for
27049 Document\SpecialChar menuseparator
27050 Settings\SpecialChar menuseparator
27057 , are described in turn.
27058 \change_deleted -712698321 1526031652
27060 \begin_inset Newline newline
27066 \begin_inset space ~
27071 is only useful for two-column documents: If you select it, the float will
27072 span both columns on the page instead of being confined to just one.
27073 \begin_inset Newline newline
27079 \begin_inset space ~
27084 is used to rotate floats, see section
27085 \begin_inset CommandInset ref
27087 reference "sec:Rotated-Floats"
27096 \begin_layout Subsection
27098 \change_inserted -712698321 1526031775
27100 \begin_inset CommandInset label
27102 name "sec:Float-Placement"
27107 \begin_inset Index idx
27110 \begin_layout Plain Layout
27112 \change_inserted -712698321 1526031775
27123 \begin_layout Standard
27125 \change_inserted -712698321 1526032697
27128 Document\SpecialChar menuseparator
27129 Settings\SpecialChar menuseparator
27137 \change_deleted -712698321 1526032811
27138 You can use one or more of the following options in the float dialog to
27140 \change_inserted -712698321 1526032812
27144 \change_inserted -712698321 1526033558
27145 algorithm that \SpecialChar LaTeX
27146 uses for positioning floats on the page, either
27149 \change_inserted -712698321 1526033535
27152 Document\SpecialChar menuseparator
27153 Settings\SpecialChar menuseparator
27159 \change_inserted -712698321 1526033570
27170 By default, this is set to
27173 \change_inserted -712698321 1526033604
27180 Document\SpecialChar menuseparator
27181 Settings\SpecialChar menuseparator
27184 (meaning that the default placement algorithm of the document class is
27193 dialog (meaning that the settings in
27195 Document\SpecialChar menuseparator
27196 Settings\SpecialChar menuseparator
27199 are used, which are the Class Defaults by default).
27200 If you want to change this,
27201 \change_deleted -712698321 1526033009
27203 \change_inserted -712698321 1526033535
27207 \change_deleted -712698321 1526031920
27209 \change_inserted -712698321 1526033535
27212 Placement Settings:
27217 \change_inserted -712698321 1526033535
27221 \change_deleted -712698321 1526031908
27223 \begin_inset space ~
27227 \begin_inset space ~
27231 \change_inserted -712698321 1526033535
27234 This allows you to select one or more from
27239 \begin_layout Description
27241 \begin_inset space ~
27245 \begin_inset space ~
27248 possible try to place the float on the position where it has been inserted
27251 \begin_layout Description
27253 \begin_inset space ~
27257 \begin_inset space ~
27260 page try to place the float at the top of the current page
27263 \begin_layout Description
27265 \begin_inset space ~
27269 \begin_inset space ~
27272 page try to place the float at the bottom of the current page
27275 \begin_layout Description
27277 \begin_inset space ~
27281 \begin_inset space ~
27284 floats try to place the float on its own page
27287 \begin_layout Standard
27288 The order of the above option is
27292 used by \SpecialChar LaTeX
27294 That means, if you use the default placement, \SpecialChar LaTeX
27298 \begin_inset space ~
27302 \begin_inset space ~
27310 \begin_inset space ~
27314 \begin_inset space ~
27319 , and then the others.
27320 If you do not use the default, \SpecialChar LaTeX
27321 will try only the checked options but in
27324 \begin_inset space ~
27327 placements is possible the procedure is internally repeated trying to put
27328 the float on the following page.
27331 \begin_layout Standard
27332 By default, each option has its own rules:
27335 \begin_layout Labeling
27336 \labelwidthstring 00.00.0000
27340 \begin_inset space ~
27344 \begin_inset space ~
27349 only floats occupying less than 70
27350 \begin_inset space \thinspace{}
27353 % of the page can be placed at the top of a page (
27362 \begin_layout Labeling
27363 \labelwidthstring 00.00.0000
27367 \begin_inset space ~
27371 \begin_inset space ~
27376 : only floats occupying less than 30
27377 \begin_inset space \thinspace{}
27380 % of the page can be placed at the bottom of a page.
27390 \begin_layout Labeling
27391 \labelwidthstring 00.00.0000
27395 \begin_inset space ~
27399 \begin_inset space ~
27404 : only if more than 50
27405 \begin_inset space \thinspace{}
27408 % of the page is occupied by floats, several floats can be set together
27419 \begin_layout Standard
27420 If you don't like these rules, you can ignore them by using the additional
27424 \begin_inset space ~
27429 \begin_inset space ~
27435 \begin_inset Newline newline
27438 You can also redefine the rules with \SpecialChar LaTeX
27439 -commands that are given in parentheses
27440 after the rules description above.
27441 To increase for example the often too small default of the bottom-rule
27443 \begin_inset space \thinspace{}
27446 % of the page, add this line to your document preamble:
27449 \begin_layout Standard
27456 bottomfraction}{0.5}
27459 \begin_layout Standard
27460 Sometimes you might need, under all circumstances, a float to be placed
27461 exactly at the position where it is inserted.
27462 For this case you can use the option
27465 \begin_inset space ~
27471 Use this option very rarely and only if the document is almost ready to
27472 be printed, because the float is then no longer able to
27473 \begin_inset Quotes eld
27477 \begin_inset Quotes erd
27480 when you change your document and this will often destroy the page layout.
27483 \begin_layout Standard
27484 There are no placement options for text wrap floats, because they are always
27485 surrounded by the text of a certain paragraph.
27486 \begin_inset VSpace bigskip
27492 \begin_layout Standard
27493 Sometimes you have the problem that a float is placed at the top of a page
27494 while its corresponding section starts at the middle of the page, so that
27495 the reader could think the float is part of the previous section.
27496 To avoid this the \SpecialChar LaTeX
27504 It suppresses a given float placement for the page where it is inserted
27505 and can therefore be used to avoid floats being set before a section starts.
27506 To get this, add these commands to your document preamble:
27509 \begin_layout Standard
27519 \begin_inset Newline newline
27533 \begin_layout Standard
27534 You can define the same for all section headings, like chapters and subsections.
27535 This definition is not recommended to be used for small text parts like
27536 subsubsections because \SpecialChar LaTeX
27537 may then have problems finding a suitable placement.
27540 \begin_layout Standard
27541 \begin_inset VSpace bigskip
27544 In some cases it is required to have all figures/tables at the end of the
27546 For this purpose the \SpecialChar LaTeX
27552 \begin_inset Index idx
27555 \begin_layout Plain Layout
27557 -packages ! endfloat
27563 It puts all figure and table floats at the end of the document into their
27565 At the original float position a text hint like
27566 \begin_inset Quotes eld
27572 \begin_inset space ~
27578 \begin_inset Quotes erd
27582 The endfloat-package is loaded in the preamble with the line
27585 \begin_layout Standard
27590 usepackage[options]{endfloat}
27593 \begin_layout Standard
27594 There are various package options to format the created figure/table sections.
27595 For more information we refer you to the
27600 \begin_inset CommandInset citation
27608 \begin_inset Newline newline
27612 \begin_inset Note Greyedout
27615 \begin_layout Plain Layout
27620 doesn't provide an automatic translation for the text hint, you have to
27621 do this manually, see section
27622 \begin_inset space ~
27626 \begin_inset CommandInset citation
27639 \begin_inset Newline newline
27643 \begin_inset Note Greyedout
27646 \begin_layout Plain Layout
27651 There is currently a bug in
27655 when the caption contains a German
27656 \begin_inset Quotes eld
27660 \begin_inset Quotes erd
27664 Use in this case the command
27665 \begin_inset Quotes eld
27675 \begin_inset Quotes erd
27678 in \SpecialChar TeX
27680 \begin_inset Quotes eld
27684 \begin_inset Quotes erd
27695 \begin_layout Standard
27696 \begin_inset VSpace bigskip
27699 For more details about float placements, have a look at \SpecialChar LaTeX
27701 \begin_inset CommandInset citation
27703 key "latexcompanion,latexguide,latexbook"
27709 \change_inserted -712698321 1526030561
27713 \begin_layout Subsection
27715 \change_inserted -712698321 1526031989
27716 Alignment of Float Contents
27719 \begin_layout Standard
27721 \change_inserted -712698321 1526032316
27722 In this list of options, you can define how the contents of a float (or
27723 all floats by default, if selected from
27725 Document\SpecialChar menuseparator
27733 means that the alignment of the class, or the default alignment of \SpecialChar LaTeX
27740 (only visible in the
27746 Document\SpecialChar menuseparator
27749 ) takes the setting specified in
27751 Document\SpecialChar menuseparator
27752 Settings\SpecialChar menuseparator
27756 The other three options,
27768 , are self-explanatory.
27769 If one of these is selected in
27771 Document\SpecialChar menuseparator
27772 Settings\SpecialChar menuseparator
27775 , all floats of the document will have this setting by default (so it is
27776 fairly easy, for instance, to center all floats).
27781 \begin_layout Subsection
27783 \change_inserted -712698321 1526030571
27784 Other Float Options
27787 \begin_layout Standard
27789 \change_inserted -712698321 1526035716
27790 These two options are only visible in the local
27796 Document\SpecialChar menuseparator
27802 \begin_layout Standard
27804 \change_inserted -712698321 1526033931
27808 \begin_inset space ~
27813 is useful for two-column documents: If you select it, the float will span
27814 both columns on the page instead of being confined to just one.
27817 \begin_layout Standard
27819 \change_inserted -712698321 1526030572
27823 \begin_inset space ~
27828 is used to rotate floats, see section
27829 \begin_inset CommandInset ref
27831 reference "sec:Rotated-Floats"
27840 \begin_layout Section
27842 \begin_inset CommandInset label
27844 name "sec:Rotated-Floats"
27849 \begin_inset Index idx
27852 \begin_layout Plain Layout
27861 \begin_layout Standard
27862 Especially for wide tables you might have floats rotated.
27863 To rotate a whole float including the caption, right-click on the float-box
27867 \begin_inset space ~
27875 \begin_layout Standard
27876 Rotated floats are always placed on a page of their own (or column of their
27877 own; in case you have a multi-column document).
27878 You can let them span several columns using the float settings option
27881 \begin_inset space ~
27887 Floats are rotated so that you can read them from the outside margin.
27888 To force a certain rotation direction for all pages, you can add either
27897 to the document class options.
27900 \begin_layout Standard
27901 Referencing rotated floats is the same as for normal floats, the caption
27902 format is also the same: Table
27903 \begin_inset space ~
27907 \begin_inset CommandInset ref
27909 reference "tab:Rotated-table"
27913 is an example of a rotated table float.
27916 \begin_layout Standard
27917 \begin_inset Note Greyedout
27920 \begin_layout Plain Layout
27925 Not all DVI-viewers are able to display rotated floats.
27933 \begin_layout Standard
27934 \begin_inset Float table
27939 \begin_layout Plain Layout
27940 \begin_inset Caption Standard
27942 \begin_layout Plain Layout
27943 \begin_inset CommandInset label
27945 name "tab:Rotated-table"
27957 \begin_layout Plain Layout
27959 \begin_inset Tabular
27960 <lyxtabular version="3" rows="1" columns="5">
27961 <features tabularvalignment="middle">
27962 <column alignment="center" valignment="top">
27963 <column alignment="center" valignment="top">
27964 <column alignment="center" valignment="top">
27965 <column alignment="center" valignment="top">
27966 <column alignment="center" valignment="top">
27968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27971 \begin_layout Plain Layout
27977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27980 \begin_layout Plain Layout
27986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27989 \begin_layout Plain Layout
27995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27998 \begin_layout Plain Layout
28004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28007 \begin_layout Plain Layout
28026 \begin_layout Section
28028 \begin_inset Index idx
28031 \begin_layout Plain Layout
28040 \begin_layout Standard
28041 Subfloats are for example used when a figure consists of several images.
28042 They are created by inserting a float into an existing float.
28043 The placement of the subfloats can be controlled in the same way as for
28044 paragraphs as shown in table
28045 \begin_inset space ~
28049 \begin_inset CommandInset ref
28051 reference "tab:Two-subtables-side"
28056 \begin_inset CommandInset ref
28058 reference "tab:Two-subtables-upon"
28065 \begin_layout Standard
28066 Referencing subfloats works as for normal floats: Table
28067 \begin_inset space ~
28071 \begin_inset CommandInset ref
28073 reference "tab:This-is-subtable-a"
28078 \begin_inset CommandInset ref
28080 reference "tab:This-is-subtable-b"
28084 are subtables of table
28085 \begin_inset space ~
28089 \begin_inset CommandInset ref
28091 reference "tab:Two-subtables-side"
28098 \begin_layout Standard
28099 \begin_inset Float table
28104 \begin_layout Plain Layout
28105 \begin_inset Caption Standard
28107 \begin_layout Plain Layout
28108 \begin_inset CommandInset label
28110 name "tab:Two-subtables-side"
28114 Two subtables placed side by side.
28122 \begin_layout Plain Layout
28124 \begin_inset space \hfill{}
28128 \begin_inset Float table
28133 \begin_layout Plain Layout
28134 \begin_inset Caption Standard
28136 \begin_layout Plain Layout
28137 \begin_inset CommandInset label
28139 name "tab:This-is-subtable-a"
28143 This is subtable a.
28151 \begin_layout Plain Layout
28153 \begin_inset Tabular
28154 <lyxtabular version="3" rows="1" columns="5">
28155 <features tabularvalignment="middle">
28156 <column alignment="center" valignment="top">
28157 <column alignment="center" valignment="top">
28158 <column alignment="center" valignment="top">
28159 <column alignment="center" valignment="top">
28160 <column alignment="center" valignment="top">
28162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28165 \begin_layout Plain Layout
28171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28174 \begin_layout Plain Layout
28180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28183 \begin_layout Plain Layout
28189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28192 \begin_layout Plain Layout
28198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28201 \begin_layout Plain Layout
28218 \begin_inset space \hfill{}
28222 \begin_inset Float table
28227 \begin_layout Plain Layout
28228 \begin_inset Caption Standard
28230 \begin_layout Plain Layout
28231 \begin_inset CommandInset label
28233 name "tab:This-is-subtable-b"
28237 This is subtable b.
28245 \begin_layout Plain Layout
28247 \begin_inset Tabular
28248 <lyxtabular version="3" rows="1" columns="5">
28249 <features tabularvalignment="middle">
28250 <column alignment="center" valignment="top">
28251 <column alignment="center" valignment="top">
28252 <column alignment="center" valignment="top">
28253 <column alignment="center" valignment="top">
28254 <column alignment="center" valignment="top">
28256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28259 \begin_layout Plain Layout
28265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28268 \begin_layout Plain Layout
28274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28277 \begin_layout Plain Layout
28283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28286 \begin_layout Plain Layout
28292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28295 \begin_layout Plain Layout
28312 \begin_inset space \hfill{}
28323 \begin_layout Standard
28324 \begin_inset Float table
28329 \begin_layout Plain Layout
28330 \begin_inset Caption Standard
28332 \begin_layout Plain Layout
28333 \begin_inset CommandInset label
28335 name "tab:Two-subtables-upon"
28339 Two subtables placed one above the other.
28340 (a) table with 4 cells, (b) table with 5 cells.
28348 \begin_layout Plain Layout
28350 \begin_inset Float table
28355 \begin_layout Plain Layout
28356 \begin_inset Caption Standard
28358 \begin_layout Plain Layout
28367 \begin_layout Plain Layout
28369 \begin_inset Tabular
28370 <lyxtabular version="3" rows="1" columns="4">
28371 <features tabularvalignment="middle">
28372 <column alignment="center" valignment="top">
28373 <column alignment="center" valignment="top">
28374 <column alignment="center" valignment="top">
28375 <column alignment="center" valignment="top">
28377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28380 \begin_layout Plain Layout
28386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28389 \begin_layout Plain Layout
28395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28398 \begin_layout Plain Layout
28404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28407 \begin_layout Plain Layout
28426 \begin_layout Plain Layout
28428 \begin_inset Float table
28433 \begin_layout Plain Layout
28434 \begin_inset Caption Standard
28436 \begin_layout Plain Layout
28445 \begin_layout Plain Layout
28447 \begin_inset Tabular
28448 <lyxtabular version="3" rows="1" columns="5">
28449 <features tabularvalignment="middle">
28450 <column alignment="center" valignment="top">
28451 <column alignment="center" valignment="top">
28452 <column alignment="center" valignment="top">
28453 <column alignment="center" valignment="top">
28454 <column alignment="center" valignment="top">
28456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28459 \begin_layout Plain Layout
28465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28468 \begin_layout Plain Layout
28474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28477 \begin_layout Plain Layout
28483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28486 \begin_layout Plain Layout
28492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28495 \begin_layout Plain Layout
28519 \begin_layout Section
28520 Floats Side by Side
28521 \begin_inset Index idx
28524 \begin_layout Plain Layout
28525 Floats ! Side by side
28533 \begin_layout Standard
28534 To place floats side by side, as in Figures
28535 \begin_inset space ~
28539 \begin_inset CommandInset ref
28541 reference "fig:Float-left"
28546 \begin_inset CommandInset ref
28548 reference "fig:Float-right"
28557 In it two minipage boxes are inserted.
28561 \begin_layout Plain Layout
28562 Minipages are explained in section
28563 \begin_inset space ~
28567 \begin_inset CommandInset ref
28569 reference "sec:Minipages"
28578 The width is set to 45
28579 \begin_inset space \thinspace{}
28583 \begin_inset space \thinspace{}
28586 column% and the box alignment to
28591 The minipage boxes contain the image and the caption in the same way as
28592 they are in a float.
28593 The only difference is that the image unit
28596 \begin_inset space ~
28600 \begin_inset space ~
28605 is now calculated according to the width of the minipage boxes.
28608 \begin_layout Standard
28609 \begin_inset Float figure
28614 \begin_layout Plain Layout
28615 \begin_inset Box Frameless
28625 height_special "totalheight"
28630 backgroundcolor "none"
28633 \begin_layout Plain Layout
28635 \begin_inset Graphics
28636 filename clipart/2D-intensity-plot.pdf
28638 scaleBeforeRotation
28645 \begin_layout Plain Layout
28646 \begin_inset Caption Standard
28648 \begin_layout Plain Layout
28649 \begin_inset CommandInset label
28651 name "fig:Float-left"
28655 Float on the left side.
28666 \begin_inset space \hfill{}
28670 \begin_inset Box Frameless
28680 height_special "totalheight"
28685 backgroundcolor "none"
28688 \begin_layout Plain Layout
28690 \begin_inset Graphics
28691 filename clipart/Star-structure.pdf
28693 scaleBeforeRotation
28700 \begin_layout Plain Layout
28701 \begin_inset Caption Standard
28703 \begin_layout Plain Layout
28704 \begin_inset CommandInset label
28706 name "fig:Float-right"
28710 Float on the right side.
28728 \begin_layout Standard
28729 An alternative and simpler solution is to use the module
28731 Variable-width Minipages
28734 \begin_inset space \thinspace{}
28738 \begin_inset CommandInset ref
28740 reference "sec:Minipages"
28745 Variable-width minipages adapt automatically to the width of the figures
28747 They do not require an explicit width to be given, and they improve the
28748 horizontal alignment of the figures.
28749 The LyX example file
28751 varwidth-floats-side-by-side
28753 gives examples of how to do this.
28756 \begin_layout Section
28758 \begin_inset Index idx
28761 \begin_layout Plain Layout
28762 Caption ! Formatting
28768 \begin_inset Index idx
28771 \begin_layout Plain Layout
28772 Floats ! Caption Formatting
28778 \begin_inset CommandInset label
28780 name "sec:Caption-Formatting"
28787 \begin_layout Standard
28792 environment is the default paragraph environment for
28797 On the \SpecialChar LyX
28798 screen captions appear as a label, e.
28799 \begin_inset space \thinspace{}
28803 \begin_inset space \space{}
28807 \begin_inset Quotes eld
28815 \begin_inset Quotes erd
28818 followed by the caption text.
28820 \begin_inset Quotes eld
28824 \begin_inset Quotes erd
28827 is the actual reference number.
28828 By default the label and the number are in the same font as the caption
28829 text and a colon follows the number to divide the label from the text.
28830 This caption format is suitable for many but not all documents.
28834 \begin_layout Standard
28835 To change the default caption format, load the \SpecialChar LaTeX
28841 \begin_inset Index idx
28844 \begin_layout Plain Layout
28846 -packages ! caption
28851 in the document preamble with this line:
28854 \begin_layout Standard
28859 usepackage[format definition]{caption}
28862 \begin_layout Standard
28863 To have for example the label and the number in sans-serif, bold font and
28864 the table captions always above the table as in this document, use the
28868 \begin_layout Standard
28873 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28876 \begin_layout Standard
28877 You can also define different caption formats for the different float types.
28878 In this case load the
28882 package without format specific options and define the different formats
28883 with the help of the command
28886 \begin_layout Standard
28891 captionsetup[float type]{format definition}
28894 \begin_layout Standard
28895 in the document preamble.
28896 For example the caption formats of Figure
28897 \begin_inset space ~
28901 \begin_inset CommandInset ref
28903 reference "fig:This-is-an-fig"
28908 \begin_inset space ~
28912 \begin_inset CommandInset ref
28914 reference "tab:This-is-an-tab"
28918 can be created using these commands in the document preamble:
28921 \begin_layout Standard
28926 usepackage[tableposition=top]{caption}
28929 \begin_inset Newline newline
28936 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28937 \begin_inset Newline newline
28941 \begin_inset Phantom HPhantom
28944 \begin_layout Plain Layout
28949 captionsetup[figure]{
28955 \begin_inset Newline newline
28960 captionsetup[table]{labelfont={bf,sf}}
28963 \begin_layout Standard
28964 \begin_inset Note Greyedout
28967 \begin_layout Plain Layout
28976 has no effect when a
28981 \begin_inset Index idx
28984 \begin_layout Plain Layout
28986 -packages ! KOMA-Script
28991 document class is used.
28992 In this case the document class option
28994 captions=tableheading
29004 \begin_layout Standard
29005 For more information about the package
29009 we refer to its documentation
29010 \begin_inset CommandInset citation
29020 \begin_layout Standard
29021 To change the label name from e.
29022 \begin_inset space \thinspace{}
29026 \begin_inset space \space{}
29030 \begin_inset Quotes eld
29034 \begin_inset Quotes erd
29038 \begin_inset Quotes eld
29042 \begin_inset Quotes erd
29045 use this preamble command:
29048 \begin_layout Standard
29055 fnum@figure}{Image~
29060 \begin_layout Standard
29067 inserts the figure number and
29070 \begin_inset Quotes eld
29076 \begin_inset Quotes erd
29079 creates a protected space.
29082 \begin_layout Standard
29083 \begin_inset VSpace bigskip
29091 \begin_inset Index idx
29094 \begin_layout Plain Layout
29096 -packages ! KOMA-Script
29103 article (KOMA-Script)
29111 letter (KOMA-Script)
29115 report (KOMA-Script)
29118 \begin_inset space \thinspace{}
29121 ), you can alternatively to the
29129 's built-in command
29136 For example, to have the caption label in bold, add this command to your
29140 \begin_layout Standard
29145 setkomafont{captionlabel}{
29150 \begin_layout Standard
29151 For more information about
29162 \begin_inset CommandInset citation
29172 \begin_layout Standard
29176 \begin_layout Plain Layout
29180 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
29187 \begin_inset Note Note
29190 \begin_layout Plain Layout
29191 The caption format is changed only for this example.
29199 \begin_layout Standard
29200 \begin_inset Float figure
29206 \begin_layout Plain Layout
29208 \begin_inset Graphics
29209 filename clipart/2D-intensity-plot.pdf
29210 scaleBeforeRotation
29217 \begin_layout Plain Layout
29218 \begin_inset Caption Standard
29220 \begin_layout Plain Layout
29221 \begin_inset CommandInset label
29223 name "fig:This-is-an-fig"
29227 This is an example figure caption that is longer than one line to show the
29228 different caption format.
29229 Here a self-defined caption format is used.
29242 \begin_layout Standard
29246 \begin_layout Plain Layout
29250 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
29259 \begin_layout Standard
29260 \begin_inset Float table
29266 \begin_layout Plain Layout
29267 \begin_inset Caption Standard
29269 \begin_layout Plain Layout
29270 \begin_inset CommandInset label
29272 name "tab:This-is-an-tab"
29276 This is an example table caption that is longer than one line to show the
29277 different caption format.
29278 Here the standard caption format for tables in this document is used.
29286 \begin_layout Plain Layout
29288 \begin_inset Tabular
29289 <lyxtabular version="3" rows="1" columns="5">
29290 <features tabularvalignment="middle">
29291 <column alignment="center" valignment="top">
29292 <column alignment="center" valignment="top">
29293 <column alignment="center" valignment="top">
29294 <column alignment="center" valignment="top">
29295 <column alignment="center" valignment="top">
29297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29300 \begin_layout Plain Layout
29306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29309 \begin_layout Plain Layout
29315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29318 \begin_layout Plain Layout
29324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29327 \begin_layout Plain Layout
29333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29336 \begin_layout Plain Layout
29355 \begin_layout Section
29357 \begin_inset Index idx
29360 \begin_layout Plain Layout
29361 Caption ! Placement
29367 \begin_inset Index idx
29370 \begin_layout Plain Layout
29371 Floats ! Caption Placement
29377 \begin_inset CommandInset label
29379 name "sec:Caption-Placement"
29386 \begin_layout Standard
29387 The common caption placement rule is:
29390 \begin_layout Description
29391 Figure: Caption is set below the figure
29394 \begin_layout Description
29395 Table: Caption is set above the table
29398 \begin_layout Standard
29399 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29402 That means if you are using the document classes
29418 there will be no space between the caption and the table.
29419 To insert the necessary space, load the \SpecialChar LaTeX
29425 \begin_inset Index idx
29428 \begin_layout Plain Layout
29430 -packages ! caption
29435 in your document preamble with the option
29439 \begin_layout Plain Layout
29441 \begin_inset space ~
29445 \begin_inset CommandInset ref
29447 reference "sec:Caption-Formatting"
29451 for more information of the package
29463 \begin_layout Standard
29469 \begin_layout Standard
29475 \begin_inset Index idx
29478 \begin_layout Plain Layout
29480 -packages ! KOMA-Script
29487 article (KOMA-Script)
29495 letter (KOMA-Script)
29499 report (KOMA-Script)
29502 \begin_inset space \thinspace{}
29505 ), you can alternatively to the
29509 package set the document class option
29513 \begin_layout Plain Layout
29514 That option is used in this document.
29522 \begin_layout Standard
29525 captions=tableheading
29528 \begin_layout Standard
29529 In documents with a KOMA-Script document class you can also right-click
29530 on a caption and mark in the context menu if this should be a caption above
29531 or below the table/figure.
29532 This way you can override the document-wide caption placement for certain
29535 \begin_inset space ~
29539 \begin_inset CommandInset ref
29541 reference "tab:A-caption-marked"
29545 is an example where the caption is marked a being below the table while
29547 For comparison the caption in Table
29548 \begin_inset space ~
29552 \begin_inset CommandInset ref
29554 reference "tab:A-standard-table"
29561 \begin_layout Standard
29562 \begin_inset Float table
29567 \begin_layout Plain Layout
29568 \begin_inset Caption Below
29570 \begin_layout Plain Layout
29571 \begin_inset CommandInset label
29573 name "tab:A-caption-marked"
29577 A caption marked as being below the table.
29585 \begin_layout Plain Layout
29587 \begin_inset Tabular
29588 <lyxtabular version="3" rows="3" columns="3">
29589 <features tabularvalignment="middle">
29590 <column alignment="center" valignment="top" width="0pt">
29591 <column alignment="center" valignment="top" width="0pt">
29592 <column alignment="center" valignment="top" width="0pt">
29594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29597 \begin_layout Plain Layout
29603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29606 \begin_layout Plain Layout
29612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29615 \begin_layout Plain Layout
29623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29626 \begin_layout Plain Layout
29632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29635 \begin_layout Plain Layout
29641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29644 \begin_layout Plain Layout
29652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29655 \begin_layout Plain Layout
29656 \begin_inset Formula $\int x^{2}dx$
29664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29667 \begin_layout Plain Layout
29668 \begin_inset Formula $\left[\begin{array}{cc}
29671 \end{array}\right]$
29679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29682 \begin_layout Plain Layout
29683 \begin_inset Formula $1+1=2$
29704 \begin_layout Standard
29705 \begin_inset Float table
29710 \begin_layout Plain Layout
29711 \begin_inset Caption Standard
29713 \begin_layout Plain Layout
29714 \begin_inset CommandInset label
29716 name "tab:A-standard-table"
29720 A standard table caption.
29728 \begin_layout Plain Layout
29730 \begin_inset Tabular
29731 <lyxtabular version="3" rows="3" columns="3">
29732 <features tabularvalignment="middle">
29733 <column alignment="center" valignment="top" width="0pt">
29734 <column alignment="center" valignment="top" width="0pt">
29735 <column alignment="center" valignment="top" width="0pt">
29737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29740 \begin_layout Plain Layout
29746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29749 \begin_layout Plain Layout
29755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29758 \begin_layout Plain Layout
29766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29769 \begin_layout Plain Layout
29775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29778 \begin_layout Plain Layout
29784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29787 \begin_layout Plain Layout
29795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29798 \begin_layout Plain Layout
29799 \begin_inset Formula $\int x^{2}dx$
29807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29810 \begin_layout Plain Layout
29811 \begin_inset Formula $\left[\begin{array}{cc}
29814 \end{array}\right]$
29822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29825 \begin_layout Plain Layout
29826 \begin_inset Formula $1+1=2$
29847 \begin_layout Standard
29848 \begin_inset VSpace bigskip
29851 It is also possible to set the caption beside a figure or table.
29852 To get this the \SpecialChar LaTeX
29858 \begin_inset Index idx
29861 \begin_layout Plain Layout
29863 -packages ! sidecap
29868 has to be loaded in the document preamble with the line
29871 \begin_layout Standard
29876 usepackage[option]{sidecap}
29879 \begin_layout Standard
29880 If you set no option, the caption is placed on the side of the outer page
29881 margin – to the right on odd pages, to the left on even pages.
29882 You can change the placement to inner margin with the option
29887 To force the placement always to the right or left, use the option
29898 \begin_layout Standard
29902 \begin_layout Plain Layout
29912 \begin_inset Note Note
29915 \begin_layout Plain Layout
29916 The following section will only be displayed when the \SpecialChar LaTeX
29929 \begin_layout Standard
29930 To place in \SpecialChar LyX
29931 the caption of a float on the side, it is necessary to add
29932 these commands to the document preamble:
29935 \begin_layout Standard
29937 \begin_inset CommandInset line
29948 \begin_layout Standard
29955 TabBesBeg}[1][1.0]{%
29956 \begin_inset Newline newline
29960 \begin_inset Phantom HPhantom
29963 \begin_layout Plain Layout
29964 \begin_inset space ~
29979 \begin_inset Newline newline
29983 \begin_inset Phantom HPhantom
29986 \begin_layout Plain Layout
29989 \begin_inset space ~
30004 \begin_inset Newline newline
30008 \begin_inset Phantom HPhantom
30011 \begin_layout Plain Layout
30014 \begin_inset space ~
30024 renewenvironment{table}[1]{
30026 begin{SCtable}[#1]##1}{
30031 \begin_layout Standard
30039 \begin_inset Newline newline
30043 \begin_inset Phantom HPhantom
30046 \begin_layout Plain Layout
30047 \begin_inset space ~
30062 \begin_inset Newline newline
30066 \begin_inset Phantom HPhantom
30069 \begin_layout Plain Layout
30070 \begin_inset space ~
30087 \begin_layout Standard
30094 FigBesBeg}[1][1.0]{%
30095 \begin_inset Newline newline
30099 \begin_inset Phantom HPhantom
30102 \begin_layout Plain Layout
30103 \begin_inset space ~
30118 \begin_inset Newline newline
30122 \begin_inset Phantom HPhantom
30125 \begin_layout Plain Layout
30126 \begin_inset space ~
30141 \begin_inset Newline newline
30145 \begin_inset Phantom HPhantom
30148 \begin_layout Plain Layout
30149 \begin_inset space ~
30159 renewenvironment{figure}[1]{
30161 begin{SCfigure}[#1]##1}{
30166 \begin_layout Standard
30174 \begin_inset Newline newline
30178 \begin_inset Phantom HPhantom
30181 \begin_layout Plain Layout
30182 \begin_inset space ~
30197 \begin_inset Newline newline
30201 \begin_inset Phantom HPhantom
30204 \begin_layout Plain Layout
30205 \begin_inset space ~
30222 \begin_layout Standard
30224 \begin_inset CommandInset line
30235 \begin_layout Standard
30236 The commands allow you to redefine the floats so that the caption is set
30238 For figure floats use the command
30241 \begin_layout Standard
30249 \begin_layout Standard
30250 in \SpecialChar TeX
30251 Code before the float.
30252 And insert the command
30255 \begin_layout Standard
30263 \begin_layout Standard
30264 in \SpecialChar TeX
30265 Code at the point where you want to get back to the original float definitio
30269 \begin_layout Standard
30270 For table floats use the corresponding commands
30273 \begin_layout Standard
30287 \begin_layout Standard
30289 \begin_inset space ~
30293 \begin_inset CommandInset ref
30295 reference "fig:cap-beside-fig"
30300 \begin_inset space ~
30304 \begin_inset CommandInset ref
30306 reference "tab:cap-beside-tab"
30310 are examples where the caption is set beside.
30313 \begin_layout Standard
30314 You can see in the examples that the caption text appears at the top of
30315 the floats for table floats and at the bottom for figure floats.
30316 To change this, you can use the command
30319 \begin_layout Standard
30324 sidecaptionvpos{float type}{placement}
30327 \begin_layout Standard
30328 in the document preamble or in \SpecialChar TeX
30329 Code before the float.
30330 The float type is either
30338 , the placement can be
30339 \begin_inset Quotes eld
30347 \begin_inset Quotes erd
30351 \begin_inset Quotes eld
30359 \begin_inset Quotes erd
30363 \begin_inset Quotes eld
30371 \begin_inset Quotes erd
30375 To have for example the caption of figure floats vertically centered, use
30379 \begin_layout Standard
30384 sidecaptionvpos{figure}{c}
30387 \begin_layout Standard
30388 This was used for Figure
30389 \begin_inset space ~
30393 \begin_inset CommandInset ref
30395 reference "fig:cap-beside-fig-2"
30402 \begin_layout Standard
30403 \begin_inset VSpace medskip
30409 \begin_layout Standard
30410 The default caption width is the width of the image/table.
30411 For thin image/tables, like in Table
30412 \begin_inset space ~
30416 \begin_inset CommandInset ref
30418 reference "tab:cap-beside-tab"
30422 , this leads to captions that are too thin.
30423 You can increase the width by specifying a factor that will be multiplied
30424 with the image/table width to get the caption width.
30425 The caption width will automatically be recalculated in case it would protrude
30426 over the page or column margin due to the specified width.
30431 can either be given as optional argument for
30440 \begin_layout Standard
30448 \begin_layout Standard
30449 or in the definition of
30459 with another value.
30460 If you do the latter, your factor will be the default if
30466 is used without an argument.
30468 \begin_inset space ~
30472 \begin_inset CommandInset ref
30474 reference "tab:cap-beside-tab-wider"
30478 the factor 5 was used.
30481 \begin_layout Standard
30482 \begin_inset Note Greyedout
30485 \begin_layout Plain Layout
30490 For floats with captions set beside, you cannot use the float placement
30494 \begin_inset space ~
30499 because it is not supported by
30511 \begin_layout Standard
30512 \begin_inset VSpace medskip
30515 For more information about the package
30519 we refer to its documentation
30520 \begin_inset CommandInset citation
30530 \begin_layout Standard
30531 \begin_inset Note Greyedout
30534 \begin_layout Plain Layout
30539 The \SpecialChar LaTeX
30545 \begin_inset Index idx
30548 \begin_layout Plain Layout
30555 , described in section
30556 \begin_inset space ~
30560 \begin_inset CommandInset ref
30562 reference "subsec:Reference-Position"
30566 , has no effect on floats with the caption set beside.
30574 \begin_layout Standard
30578 \begin_layout Plain Layout
30590 \begin_layout Standard
30591 \begin_inset Float figure
30596 \begin_layout Plain Layout
30597 \begin_inset Graphics
30598 filename clipart/3D-structure-distort.pdf
30600 scaleBeforeRotation
30607 \begin_layout Plain Layout
30608 \begin_inset Caption Standard
30610 \begin_layout Plain Layout
30611 \begin_inset CommandInset label
30613 name "fig:cap-beside-fig"
30617 This is a caption beside a figure.
30630 \begin_layout Standard
30634 \begin_layout Plain Layout
30646 \begin_layout Standard
30650 \begin_layout Plain Layout
30662 \begin_layout Standard
30663 \begin_inset Float table
30668 \begin_layout Plain Layout
30669 \begin_inset Caption Standard
30671 \begin_layout Plain Layout
30672 \begin_inset CommandInset label
30674 name "tab:cap-beside-tab"
30678 This is a caption beside a table.
30686 \begin_layout Plain Layout
30687 \begin_inset Tabular
30688 <lyxtabular version="3" rows="4" columns="5">
30689 <features tabularvalignment="middle">
30690 <column alignment="center" valignment="top">
30691 <column alignment="center" valignment="top">
30692 <column alignment="center" valignment="top">
30693 <column alignment="center" valignment="top">
30694 <column alignment="center" valignment="top">
30696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30699 \begin_layout Plain Layout
30705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30708 \begin_layout Plain Layout
30714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30717 \begin_layout Plain Layout
30723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30726 \begin_layout Plain Layout
30732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30735 \begin_layout Plain Layout
30743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30746 \begin_layout Plain Layout
30752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30755 \begin_layout Plain Layout
30761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30764 \begin_layout Plain Layout
30770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30773 \begin_layout Plain Layout
30779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30782 \begin_layout Plain Layout
30790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30793 \begin_layout Plain Layout
30799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30802 \begin_layout Plain Layout
30808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30811 \begin_layout Plain Layout
30817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30820 \begin_layout Plain Layout
30826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30829 \begin_layout Plain Layout
30837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30840 \begin_layout Plain Layout
30846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30849 \begin_layout Plain Layout
30855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30858 \begin_layout Plain Layout
30864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30867 \begin_layout Plain Layout
30873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30876 \begin_layout Plain Layout
30895 \begin_layout Standard
30899 \begin_layout Plain Layout
30911 \begin_layout Standard
30915 \begin_layout Plain Layout
30928 \begin_layout Plain Layout
30932 sidecaptionvpos{figure}{c}
30938 \begin_inset Float figure
30943 \begin_layout Plain Layout
30944 \begin_inset Graphics
30945 filename clipart/3D-structure-distort.pdf
30947 scaleBeforeRotation
30954 \begin_layout Plain Layout
30955 \begin_inset Caption Standard
30957 \begin_layout Plain Layout
30958 \begin_inset CommandInset label
30960 name "fig:cap-beside-fig-2"
30964 This is a vertically centered caption beside a figure.
30977 \begin_layout Standard
30981 \begin_layout Plain Layout
30993 \begin_layout Standard
30997 \begin_layout Plain Layout
31009 \begin_layout Standard
31010 \begin_inset Float table
31015 \begin_layout Plain Layout
31016 \begin_inset Caption Standard
31018 \begin_layout Plain Layout
31019 \begin_inset CommandInset label
31021 name "tab:cap-beside-tab-wider"
31025 This caption is wider than the one in Table
31026 \begin_inset space ~
31030 \begin_inset CommandInset ref
31032 reference "tab:cap-beside-tab"
31044 \begin_layout Plain Layout
31045 \begin_inset Tabular
31046 <lyxtabular version="3" rows="4" columns="5">
31047 <features tabularvalignment="middle">
31048 <column alignment="center" valignment="top">
31049 <column alignment="center" valignment="top">
31050 <column alignment="center" valignment="top">
31051 <column alignment="center" valignment="top">
31052 <column alignment="center" valignment="top">
31054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31057 \begin_layout Plain Layout
31063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31066 \begin_layout Plain Layout
31072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31075 \begin_layout Plain Layout
31081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31084 \begin_layout Plain Layout
31090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31093 \begin_layout Plain Layout
31101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31104 \begin_layout Plain Layout
31110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31113 \begin_layout Plain Layout
31119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31122 \begin_layout Plain Layout
31128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31131 \begin_layout Plain Layout
31137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31140 \begin_layout Plain Layout
31148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31151 \begin_layout Plain Layout
31157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31160 \begin_layout Plain Layout
31166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31169 \begin_layout Plain Layout
31175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31178 \begin_layout Plain Layout
31184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31187 \begin_layout Plain Layout
31195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31198 \begin_layout Plain Layout
31204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31207 \begin_layout Plain Layout
31213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31216 \begin_layout Plain Layout
31222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31225 \begin_layout Plain Layout
31231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31234 \begin_layout Plain Layout
31253 \begin_layout Standard
31257 \begin_layout Plain Layout
31269 \begin_layout Standard
31273 \begin_layout Plain Layout
31283 \begin_inset Note Note
31286 \begin_layout Plain Layout
31287 The following will be displayed when the \SpecialChar LaTeX
31300 \begin_layout Standard
31301 You need to install the \SpecialChar LaTeX
31306 to see the following part of this section in the output.
31309 \begin_layout Standard
31313 \begin_layout Plain Layout
31325 \begin_layout Section
31327 \begin_inset Index idx
31330 \begin_layout Plain Layout
31331 Floats ! Float Lists
31339 \begin_layout Standard
31340 Similar to the table of contents where the sections of the document are
31341 listed, there are listings for all float types, like the figures of the
31343 You can insert them via the
31345 Insert\SpecialChar menuseparator
31347 \begin_inset space ~
31351 \begin_inset space ~
31359 \begin_layout Standard
31360 The list entries are the float captions or its short title, the float number,
31361 and the page number where they appear in the document.
31364 \begin_layout Standard
31365 You can find the list of figures and tables at the end of this document.
31368 \begin_layout Chapter
31372 \begin_layout Section
31375 \begin_inset Index idx
31378 \begin_layout Plain Layout
31379 Notes ! \SpecialChar LyX
31388 \begin_layout Standard
31389 Notes are inserted with the toolbar button
31397 Insert\SpecialChar menuseparator
31401 There are three types of notes:
31404 \begin_layout Description
31407 \begin_inset space ~
31410 Note This note type is for internal notes that won't appear in the output.
31411 Its note-box looks like this:
31412 \begin_inset Newline newline
31416 \begin_inset Newline newline
31420 \begin_inset Graphics
31421 filename clipart/LyXNoteImage.png
31423 scaleBeforeRotation
31428 \begin_inset Note Note
31431 \begin_layout Plain Layout
31432 This is text in a note box that doesn't appear in the output.
31440 \begin_layout Description
31441 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31443 when you export the document to \SpecialChar LaTeX
31446 File\SpecialChar menuseparator
31447 Export\SpecialChar menuseparator
31449 \begin_inset space ~
31452 (pdflatex) / (plain)
31455 Its note-box looks like this:
31456 \begin_inset Newline newline
31460 \begin_inset Newline newline
31464 \begin_inset Graphics
31465 filename clipart/CommentNoteImage.png
31467 scaleBeforeRotation
31472 \begin_inset Note Comment
31475 \begin_layout Plain Layout
31476 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31485 \begin_layout Description
31487 \begin_inset space ~
31490 Out This note will appear in the output as grey text.
31491 Its note-box looks like this:
31492 \begin_inset Newline newline
31496 \begin_inset Newline newline
31500 \begin_inset Graphics
31501 filename clipart/GreyedOutNoteImage.png
31503 scaleBeforeRotation
31508 \begin_inset Newline newline
31515 \begin_layout Plain Layout
31519 renewenvironment{lyxgreyedout}
31522 \begin_layout Plain Layout
31526 textcolor[gray]{0.8}
31536 \begin_inset Note Greyedout
31539 \begin_layout Plain Layout
31540 This is text of a comment that appears grey in the output.
31549 \begin_layout Plain Layout
31553 renewenvironment{lyxgreyedout}
31556 \begin_layout Plain Layout
31570 \begin_inset Note Note
31573 \begin_layout Plain Layout
31574 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31576 because greyed out notes are redefined in the preamble of this document,
31577 as described below, to have blue text.
31583 \begin_inset Newline newline
31587 \begin_inset Newline newline
31590 As you can see in the example, the first line of greyed out notes is a bit
31591 indented and greyed out notes can have footnotes.
31594 \begin_layout Standard
31595 \begin_inset VSpace bigskip
31598 When you use the toolbar button
31608 \begin_inset space ~
31614 You can switch between the three note types by right-clicking on the note-box.
31619 If you want to turn existing text into a note, mark it and click on the
31633 To change a note to text, press the backspace key when the cursor is in
31634 the first position of a note, or press the delete key when the cursor is
31635 in the very last position of the note, respectively.
31638 \begin_layout Standard
31639 \begin_inset VSpace bigskip
31642 You can change the text color of the greyed out notes in the menu
31644 Document\SpecialChar menuseparator
31645 Settings\SpecialChar menuseparator
31651 \begin_layout Section
31653 \begin_inset CommandInset label
31655 name "sec:Footnotes"
31660 \begin_inset Index idx
31663 \begin_layout Plain Layout
31670 \begin_inset Index idx
31673 \begin_layout Plain Layout
31682 \begin_layout Standard
31683 Footnotes can be inserted using the toolbar button
31686 arg "footnote-insert"
31691 Insert\SpecialChar menuseparator
31695 You will then see the following footnote-box:
31696 \begin_inset Graphics
31697 filename clipart/footnote.png
31699 scaleBeforeRotation
31707 where you can enter the footnote text.
31708 If you want to turn existing text into a footnote, mark it and click on
31734 key when the cursor is in the first position of a
31746 key when the cursor is in the very last position of the
31757 \begin_layout Standard
31758 Here is an example footnote:
31766 \begin_layout Plain Layout
31767 \begin_inset CommandInset label
31769 name "foot:This-is-an"
31773 This is an example footnote.
31786 \begin_layout Plain Layout
31790 newcounter{MyRepeatFoot}
31793 \begin_layout Plain Layout
31797 setcounter{MyRepeatFoot}{
31807 \begin_layout Standard
31808 The footnote will appear in the output as a superscript number at the text
31809 position where the footnote box is placed.
31810 The footnote text is placed at the bottom of the current page.
31811 The footnote number is calculated by \SpecialChar LaTeX
31812 ; the numbers are consecutive.
31813 Whether the footnote number is reset for every chapter depends on your
31817 \begin_layout Standard
31818 Footnotes can be referenced like floats: Insert a label into the footnote
31819 and cross-reference this label in the text as described in section
31820 \begin_inset space ~
31824 \begin_inset CommandInset ref
31826 reference "sec:Referencing-Floats"
31831 \begin_inset Newline newline
31834 This is a cross-reference of Footnote
31835 \begin_inset space ~
31839 \begin_inset CommandInset ref
31841 reference "foot:This-is-an"
31848 \begin_layout Standard
31849 \begin_inset VSpace defskip
31852 Footnotes in title environments are usually not numbered with symbols and
31853 they cannot contain several paragraphs.
31854 See for example the footnote in the titling of this document.
31857 \begin_layout Standard
31858 Footnotes in multi-page tables are described in section
31859 \begin_inset space ~
31863 \begin_inset CommandInset ref
31865 reference "subsec:Footnotes-in-Multi-page"
31872 \begin_layout Standard
31873 \begin_inset VSpace defskip
31879 \begin_layout Standard
31880 Footnotes in minipage boxes are printed, but inside the box and with a different
31881 numbering because a minipage box is like a page inside a page.
31882 (For more about minipages, see section
31883 \begin_inset space ~
31887 \begin_inset CommandInset ref
31889 reference "sec:Minipages"
31893 .) To get a footnote in the minipage that is output at the bottom of the
31894 page like normal footnotes use this method: Instead of the footnote the
31901 is inserted as \SpecialChar TeX
31903 The text of the footnote is entered as an argument of the \SpecialChar TeX
31911 after the minipage.
31912 \begin_inset Newline newline
31915 This was done for the following minipage with the command
31918 \begin_layout Standard
31925 Footnote outside the minipage.
31930 \begin_layout Standard
31931 \begin_inset Box Frameless
31941 height_special "totalheight"
31946 backgroundcolor "none"
31949 \begin_layout Plain Layout
31950 This an example text in a minipage.
31954 \begin_layout Plain Layout
31955 Footnote in the minipage.
31963 \begin_layout Plain Layout
31964 This an example text in a minipage.
31968 \begin_layout Plain Layout
31985 \begin_layout Standard
31989 \begin_layout Plain Layout
31998 Footnote outside the minipage.
32002 \begin_layout Plain Layout
32012 \begin_layout Standard
32013 \begin_inset VSpace defskip
32019 \begin_layout Standard
32020 To refer to the same footnote several times without printing the footnote
32021 text every time, use the command
32025 footnotemark[number]
32027 in \SpecialChar TeX
32029 \begin_inset Newline newline
32032 As you do not know the number of the repeating footnote while you are writing
32033 the text, you have to store its number.
32034 For the following footnote mark example, these commands were inserted in
32036 code after Footnote
32037 \begin_inset space ~
32041 \begin_inset CommandInset ref
32043 reference "foot:This-is-an"
32047 to store the footnote number:
32050 \begin_layout Standard
32055 newcounter{MyRepeatFoot}
32056 \begin_inset Newline newline
32061 setcounter{MyRepeatFoot}{
32066 \begin_layout Standard
32067 The footnote mark was then created with this command:
32070 \begin_layout Standard
32080 \begin_layout Standard
32081 Here is a repeated footnote:
32089 \begin_layout Plain Layout
32103 \begin_layout Standard
32104 If you want to repeat the previous footnote, you can omit the storage of
32105 the footnote number and just use this command instead:
32108 \begin_layout Standard
32118 \begin_layout Standard
32119 Here is another repeated footnote:
32127 \begin_layout Plain Layout
32141 \begin_layout Subsection
32143 \begin_inset CommandInset label
32145 name "subsec:Footnote-Numbering"
32150 \begin_inset Index idx
32153 \begin_layout Plain Layout
32154 Footnotes ! Numbering
32162 \begin_layout Standard
32163 To reset the footnote number back to 1 after each section
32165 , add this command to your document preamble:
32168 \begin_layout Standard
32173 @addtoreset{footnote}{section}
32176 \begin_layout Standard
32177 \begin_inset VSpace bigskip
32180 The following preamble command changes the footnote numbering style to small
32184 \begin_layout Standard
32196 \begin_layout Standard
32200 \begin_layout Plain Layout
32213 This is a footnote with roman numbering:
32217 \begin_layout Plain Layout
32218 This is an example footnote with roman numbering.
32226 \begin_layout Standard
32227 To change the numbering style to capital roman numerals replace in the command
32242 \begin_inset Quotes eld
32246 \begin_inset Quotes erd
32249 footnotes with capital or small Latin letters use
32263 \begin_inset Quotes eld
32267 \begin_inset Quotes erd
32270 footnotes with symbols use
32279 \begin_layout Standard
32280 \begin_inset Note Greyedout
32283 \begin_layout Plain Layout
32288 You can only number 26 footnotes with Latin letters, because this numbering
32289 is limited to single letters.
32295 \begin_inset Newline newline
32299 \begin_inset Note Greyedout
32302 \begin_layout Plain Layout
32307 You can only number 9 footnotes with symbols.
32315 \begin_layout Standard
32316 To return to the default numbering style after you have changed to another
32329 in the command above.
32333 \begin_layout Plain Layout
32349 \begin_layout Standard
32350 \begin_inset VSpace bigskip
32356 \begin_layout Standard
32357 If you want to have footnotes numbered in the scheme
32358 \begin_inset Quotes eld
32362 \begin_inset Quotes erd
32365 , add the following command to your document preamble:
32368 \begin_layout Standard
32373 numberwithin{footnote}{chapter}
32376 \begin_layout Standard
32377 To be able to use the command
32386 \begin_inset space ~
32391 in the document settings the option
32394 \begin_inset space ~
32398 \begin_inset space ~
32402 \begin_inset space ~
32410 \begin_layout Standard
32414 \begin_layout Plain Layout
32418 numberwithin{footnote}{chapter}
32423 This is another example footnote:
32429 \begin_layout Plain Layout
32430 This is a footnote numbered in the scheme
32431 \begin_inset Quotes eld
32435 \begin_inset Quotes erd
32449 \begin_layout Plain Layout
32465 \begin_layout Standard
32466 \begin_inset Note Greyedout
32469 \begin_layout Plain Layout
32480 always prints out the footnote number as arabic number; previous redefinitions
32481 to get non-arabic numbers are overwritten.
32489 \begin_layout Standard
32490 So to get for example the scheme
32491 \begin_inset Quotes eld
32497 \begin_inset Quotes erd
32500 , use this command instead of
32509 \begin_layout Standard
32523 \begin_layout Subsection
32525 \begin_inset Index idx
32528 \begin_layout Plain Layout
32529 Footnotes ! Placement
32537 \begin_layout Standard
32538 If you have several footnotes in one page, they appear without vertical
32539 space between them at the bottom of the page.
32540 To make them more readable you can e.
32541 \begin_inset space \thinspace{}
32545 \begin_inset space \space{}
32549 \begin_inset space \thinspace{}
32552 mm space with the following preamble command:
32555 \begin_layout Standard
32565 \begin_inset Newline newline
32579 \begin_layout Standard
32580 \begin_inset VSpace bigskip
32583 In a two-column document the footnotes appear at the bottom of every column,
32585 \begin_inset space ~
32589 \begin_inset CommandInset ref
32591 reference "fig:Standard-footnote-placement"
32596 If the footnotes should only appear at the bottom of the right column,
32598 \begin_inset space ~
32602 \begin_inset CommandInset ref
32604 reference "fig:Footnote-placement-in"
32608 , use the \SpecialChar LaTeX
32614 \begin_inset Index idx
32617 \begin_layout Plain Layout
32619 -packages ! ftnright
32624 with this command in the document preamble:
32627 \begin_layout Standard
32632 usepackage{ftnright}
32635 \begin_layout Standard
32636 \begin_inset Float figure
32642 \begin_layout Plain Layout
32645 \begin_inset Box Boxed
32655 height_special "totalheight"
32660 backgroundcolor "none"
32663 \begin_layout Plain Layout
32664 \begin_inset Graphics
32665 filename clipart/without_fntright.pdf
32667 scaleBeforeRotation
32679 \begin_layout Plain Layout
32680 \begin_inset Caption Standard
32682 \begin_layout Plain Layout
32683 \begin_inset CommandInset label
32685 name "fig:Standard-footnote-placement"
32689 Standard footnote placement in two-column documents.
32702 \begin_layout Standard
32703 \begin_inset Float figure
32709 \begin_layout Plain Layout
32712 \begin_inset Box Boxed
32722 height_special "totalheight"
32727 backgroundcolor "none"
32730 \begin_layout Plain Layout
32731 \begin_inset Graphics
32732 filename clipart/with_fntright.pdf
32734 scaleBeforeRotation
32746 \begin_layout Plain Layout
32747 \begin_inset Caption Standard
32749 \begin_layout Plain Layout
32750 \begin_inset CommandInset label
32752 name "fig:Footnote-placement-in"
32756 Footnote placement in two-column documents when the \SpecialChar LaTeX
32774 \begin_layout Standard
32775 \begin_inset VSpace bigskip
32778 In some scientific literature it is usual to collect the footnotes and print
32779 them in a separate paragraph at the end of a section, as in Figure
32780 \begin_inset space ~
32784 \begin_inset CommandInset ref
32786 reference "fig:Endnotes"
32791 They are then called
32792 \begin_inset Quotes eld
32796 \begin_inset Quotes erd
32800 \begin_inset Index idx
32803 \begin_layout Plain Layout
32809 To use endnotes instead of footnotes in your document, load in the menu
32812 Document\SpecialChar menuseparator
32813 Settings\SpecialChar menuseparator
32819 \begin_inset space ~
32823 \begin_inset space ~
32829 To insert the collected footnotes, insert the command
32832 \begin_layout Standard
32840 \begin_layout Standard
32841 in \SpecialChar TeX
32842 Code at the end of a section or chapter.
32845 \begin_layout Standard
32846 \begin_inset Float figure
32851 \begin_layout Plain Layout
32854 \begin_inset Box Boxed
32864 height_special "totalheight"
32869 backgroundcolor "none"
32872 \begin_layout Plain Layout
32873 \begin_inset Graphics
32874 filename clipart/endnotes.pdf
32876 scaleBeforeRotation
32888 \begin_layout Plain Layout
32889 \begin_inset Caption Standard
32891 \begin_layout Plain Layout
32892 \begin_inset CommandInset label
32894 name "fig:Endnotes"
32898 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32912 \begin_layout Standard
32913 \begin_inset VSpace medskip
32916 The paragraph heading for the endnotes isn't automatically translated into
32917 the document language, this must be done manually.
32918 The following preamble command translates the default English
32919 \begin_inset Quotes eld
32923 \begin_inset Quotes erd
32927 \begin_inset Quotes eld
32931 \begin_inset Quotes erd
32937 \begin_layout Standard
32944 notesname}{Anmerkungen}
32947 \begin_layout Standard
32948 \begin_inset VSpace medskip
32951 The numbering of endnotes can be changed like the footnote numbering as
32952 described in section
32953 \begin_inset space ~
32957 \begin_inset CommandInset ref
32959 reference "subsec:Footnote-Numbering"
32963 ; just replace the command
32976 To reset the endnote number use the command
32982 as described in section
32983 \begin_inset space ~
32987 \begin_inset CommandInset ref
32989 reference "subsec:Footnote-Numbering"
32993 and replace the command parameter
33004 \begin_layout Standard
33005 For endnotes there is the command
33009 endnotemark[number]
33011 similar to the command
33017 , that is described in section
33018 \begin_inset space ~
33022 \begin_inset CommandInset ref
33024 reference "sec:Footnotes"
33031 \begin_layout Standard
33032 \begin_inset VSpace bigskip
33035 Footnotes can also be placed in the page margin and the footnote text alignment
33036 can be changed, see the \SpecialChar LaTeX
33042 \begin_inset Index idx
33045 \begin_layout Plain Layout
33047 -packages ! footmisc
33053 \begin_inset CommandInset citation
33060 for more information about this.
33063 \begin_layout Standard
33064 For various further footnote formatting issues have a look at \SpecialChar LaTeX
33066 \begin_inset CommandInset citation
33068 key "latexcompanion,latexguide,latexbook"
33079 \begin_inset Index idx
33082 \begin_layout Plain Layout
33084 -packages ! KOMA-Script
33089 document class, you can adjust all footnote settings using class-specific
33091 \begin_inset CommandInset citation
33101 \begin_layout Section
33103 \begin_inset Index idx
33106 \begin_layout Plain Layout
33107 Notes ! Margin Notes
33115 \begin_layout Standard
33116 Margin notes look and behave in \SpecialChar LyX
33118 They are inserted via the menu
33120 Insert\SpecialChar menuseparator
33122 \begin_inset space ~
33127 or the toolbar button
33130 arg "marginalnote-insert"
33144 \begin_inset Quotes eld
33148 \begin_inset Quotes erd
33151 appears where you can enter the text of the margin note.
33154 \begin_layout Standard
33155 At the side is an example margin note.
33160 \begin_inset Marginal
33163 \begin_layout Plain Layout
33164 This is a margin note.
33172 \begin_layout Standard
33173 Margin notes appear at the right side in single-sided documents.
33174 In double-sided documents they appear in the outer margin – left on even
33175 pages, right on odd pages.
33176 The text of margin notes is aligned opposite to the outer margin – right-aligne
33177 d when the note appears in the left margin.
33178 The first line of the margin note is placed at the position of the text
33179 line where it is inserted in the document.
33182 \begin_layout Standard
33183 \begin_inset VSpace bigskip
33186 To place the margin note in the inner margin, add the command
33189 \begin_layout Standard
33197 \begin_layout Standard
33198 in \SpecialChar TeX
33199 Code before a margin note.
33200 The new placement is valid for all subsequent margin notes.
33205 \begin_layout Plain Layout
33215 \begin_inset Marginal
33218 \begin_layout Plain Layout
33219 This is a margin note in the inner margin.
33227 \begin_inset Newline newline
33233 \begin_inset Note Greyedout
33236 \begin_layout Plain Layout
33241 There is often not enough space in the inner margin so that the notes are
33242 not correctly displayed in the output.
33250 \begin_layout Standard
33251 To return to the default placement insert the command
33254 \begin_layout Standard
33262 \begin_layout Standard
33263 in \SpecialChar TeX
33268 \begin_layout Plain Layout
33278 \begin_inset Note Greyedout
33281 \begin_layout Plain Layout
33286 The command is ignored when it is within a paragraph where also the command
33301 \begin_layout Standard
33302 \begin_inset VSpace bigskip
33309 \begin_inset Marginal
33312 \begin_layout Plain Layout
33313 AVeryLongMarginParWord that isn't hyphenated.
33321 Similar to the case described in section
33322 \begin_inset space ~
33326 \begin_inset CommandInset ref
33328 reference "subsec:Multiple-Lines-in"
33332 , long words cannot be hyphenated when they are the first word in a margin
33334 To avoid this, insert 0
33335 \begin_inset space \thinspace{}
33338 pt horizontal space before the word
33343 \begin_inset Marginal
33346 \begin_layout Plain Layout
33347 \begin_inset space \hspace*{}
33351 AVeryLongMarginParWord that is hyphenated.
33359 \begin_layout Standard
33360 \begin_inset VSpace bigskip
33366 \begin_layout Standard
33367 \begin_inset Note Greyedout
33370 \begin_layout Plain Layout
33375 Margin notes can normally not be used inside tables, floats, and footnotes.
33383 \begin_layout Standard
33384 \begin_inset VSpace bigskip
33390 \begin_layout Standard
33394 \begin_layout Plain Layout
33404 \begin_inset Note Note
33407 \begin_layout Plain Layout
33408 The following section will only be displayed when the \SpecialChar LaTeX
33421 \begin_layout Standard
33422 This restriction can be evaded by using the \SpecialChar LaTeX
33428 \begin_inset Index idx
33431 \begin_layout Plain Layout
33433 -packages ! marginnote
33439 By adding these two lines to your document preamble, the command used by
33441 for margin notes is redefined to use the command provided by the
33448 \begin_layout Standard
33453 usepackage{marginnote}
33454 \begin_inset Newline newline
33466 \begin_layout Standard
33467 This is also used in this document because
33471 has another useful feature: You can set a vertical offset for the note.
33472 This is often needed when too many margin notes are too close together
33473 or for a better page layout.
33474 The offset is set in \SpecialChar LyX
33475 as \SpecialChar TeX
33476 Code directly after the margin note in the scheme
33479 \begin_layout Standard
33485 \begin_layout Standard
33486 where the offset is a length with one of the units listed in Table
33487 \begin_inset space ~
33491 \begin_inset CommandInset ref
33493 reference "tab:Units"
33498 A negative value shifts the note up, a positive value shifts it down.
33502 For example the margin note beside this text line is shifted up 1.5
33503 \begin_inset space \thinspace{}
33506 cm with the \SpecialChar TeX
33508 \begin_inset Quotes eld
33518 \begin_inset Quotes erd
33522 \begin_inset Marginal
33525 \begin_layout Plain Layout
33526 This margin note is shifted up 1.5
33527 \begin_inset space \thinspace{}
33530 cm from its original position.
33542 \begin_layout Plain Layout
33552 \begin_layout Standard
33553 \begin_inset VSpace medskip
33560 you can also change the alignment of the text in the margin note.
33561 For example the commands
33564 \begin_layout Standard
33571 raggedleftmarginnote}{
33574 \begin_inset Newline newline
33581 raggedrightmarginnote}{
33586 \begin_layout Standard
33587 set the alignment to centered.
33592 raggedleftmarginnote
33594 denotes margin notes that appear at the left side.
33601 \begin_layout Plain Layout
33607 raggedleftmarginnote}{
33612 \begin_layout Plain Layout
33618 raggedrightmarginnote}{
33626 \begin_inset Marginal
33629 \begin_layout Plain Layout
33630 The text of this margin note is centered.
33641 \begin_layout Standard
33648 raggedleftmarginnote}{
33651 \begin_inset Newline newline
33658 raggedrightmarginnote}{
33667 \begin_layout Plain Layout
33673 raggedleftmarginnote}{
33678 \begin_layout Plain Layout
33684 raggedrightmarginnote}{
33694 \begin_layout Standard
33695 \begin_inset VSpace medskip
33698 For the other features of
33702 refer to its documentation
33703 \begin_inset CommandInset citation
33713 \begin_layout Standard
33714 \begin_inset VSpace bigskip
33717 You can adjust the layout of margin notes by changing its definition.
33718 To create for example a header for all margin notes with the underlined,
33719 sans-serif, and bold header text
33720 \begin_inset Quotes eld
33732 \begin_inset Quotes erd
33735 , add this to your document preamble:
33738 \begin_layout Standard
33748 \begin_inset Newline newline
33758 \begin_inset Newline newline
33762 \begin_inset Phantom HPhantom
33765 \begin_layout Plain Layout
33768 \begin_inset space ~
33784 underbar{Attention!}}}%
33785 \begin_inset Newline newline
33789 \begin_inset Phantom HPhantom
33792 \begin_layout Plain Layout
33795 \begin_inset space ~
33812 \begin_layout Standard
33819 \begin_layout Plain Layout
33830 \begin_layout Plain Layout
33841 \begin_layout Plain Layout
33849 underbar{Attention!}}}%
33852 \begin_layout Plain Layout
33866 \begin_inset Marginal
33869 \begin_layout Plain Layout
33870 This is a margin note with a defined heading.
33882 \begin_layout Plain Layout
33896 \begin_layout Plain Layout
33913 \begin_inset Note Note
33916 \begin_layout Plain Layout
33917 The margin note format is changed only for this example.
33925 \begin_layout Standard
33929 \begin_layout Plain Layout
33939 \begin_inset Note Note
33942 \begin_layout Plain Layout
33943 The following will be displayed when the \SpecialChar LaTeX
33956 \begin_layout Standard
33957 You need to install the \SpecialChar LaTeX
33962 to see the following part of this section in the output.
33965 \begin_layout Standard
33969 \begin_layout Plain Layout
33981 \begin_layout Chapter
33985 \begin_layout Section
33987 \begin_inset Index idx
33990 \begin_layout Plain Layout
33991 Boxes ! Introduction
33999 \begin_layout Standard
34000 Boxes are used to format a block of text.
34001 Boxes can be used to write documents with multiple languages, see section
34002 \begin_inset space ~
34006 \begin_inset CommandInset ref
34008 reference "sec:Minipages"
34012 , to frame texts, see section
34013 \begin_inset space ~
34017 \begin_inset CommandInset ref
34019 reference "sec:Decoration"
34023 , to prevent words from being hyphenated, see section
34024 \begin_inset space ~
34028 \begin_inset CommandInset ref
34030 reference "sec:Prevent-Hyphenation"
34034 , to align text, see section
34035 \begin_inset space ~
34039 \begin_inset CommandInset ref
34041 reference "subsec:Vertical-Alignment"
34045 , or to set the background color of texts, see section
34046 \begin_inset space ~
34050 \begin_inset CommandInset ref
34052 reference "sec:Colored-Boxes"
34059 \begin_layout Standard
34060 Boxes can be inserted with the menu
34062 Insert\SpecialChar menuseparator
34065 or the toolbar button
34068 arg "box-insert Frameless"
34072 A grey box with the label
34077 \begin_inset Graphics
34078 filename clipart/BoxInsetDefault.png
34080 scaleBeforeRotation
34085 The box type can be specified by right-clicking on the box and selecting
34091 The box dialog offers the
34094 \begin_inset space ~
34116 is the default for new boxes and is explained in section
34117 \begin_inset space ~
34121 \begin_inset CommandInset ref
34123 reference "sec:Minipages"
34131 is described in section
34132 \begin_inset space ~
34136 \begin_inset CommandInset ref
34138 reference "sec:Parboxes"
34147 \begin_inset CommandInset ref
34149 reference "sec:Prevent-Hyphenation"
34156 \begin_layout Standard
34157 Boxes are not numbered and can therefore not be referenced like floats or
34161 \begin_layout Standard
34162 \begin_inset Note Greyedout
34165 \begin_layout Plain Layout
34170 Boxes must not be the item in an
34186 \begin_layout Standard
34187 \begin_inset Note Greyedout
34190 \begin_layout Plain Layout
34195 For an unknown reason you can only set the
34198 \begin_inset space ~
34207 when you use a framed box.
34211 \begin_inset space ~
34216 type and without frames are explained in section
34217 \begin_inset space ~
34221 \begin_inset CommandInset ref
34223 reference "sec:Prevent-Hyphenation"
34235 \begin_layout Section
34237 \begin_inset CommandInset label
34239 name "sec:Box-Dialog"
34244 \begin_inset Index idx
34247 \begin_layout Plain Layout
34256 \begin_layout Subsection
34258 \begin_inset Index idx
34261 \begin_layout Plain Layout
34270 \begin_layout Standard
34271 In the box dialog you can adjust the box geometry in the fields
34280 The available units for the geometry are explained in Table
34281 \begin_inset space ~
34285 \begin_inset CommandInset ref
34287 reference "tab:Units"
34296 offers the following additional sizes:
34299 \begin_layout Description
34300 Depth This is the plain text
34301 \begin_inset Quotes eld
34305 \begin_inset Quotes erd
34309 It ignores the total depth when there are multiple text lines in the box:
34310 \begin_inset Newline newline
34314 \begin_inset Newline newline
34318 \begin_inset Newline newline
34322 \begin_inset Box Boxed
34332 height_special "depth"
34337 backgroundcolor "none"
34340 \begin_layout Plain Layout
34342 Box height set to 1
34343 \begin_inset space \thinspace{}
34352 \begin_inset Newline newline
34356 \begin_inset Newline newline
34362 \begin_layout Description
34363 Height This is the height of the text that is inside the box.
34365 \begin_inset space \thinspace{}
34369 \begin_inset space \space{}
34372 2 for this size will set the box height to 2
34373 \begin_inset space ~
34376 times the text height:
34377 \begin_inset Box Boxed
34387 height_special "height"
34392 backgroundcolor "none"
34395 \begin_layout Plain Layout
34397 Box height set to 2
34398 \begin_inset space \thinspace{}
34409 \begin_layout Description
34411 \begin_inset space ~
34414 Height This is the Height
34415 \begin_inset space \thinspace{}
34419 \begin_inset space \thinspace{}
34423 \begin_inset Box Boxed
34433 height_special "totalheight"
34438 backgroundcolor "none"
34441 \begin_layout Plain Layout
34443 Box height set to 1
34444 \begin_inset space \thinspace{}
34448 \begin_inset space ~
34459 \begin_layout Description
34460 Width This sets the width of the box as height:
34461 \begin_inset Box Boxed
34471 height_special "width"
34476 backgroundcolor "none"
34479 \begin_layout Plain Layout
34481 Box height set to 1
34482 \begin_inset space \thinspace{}
34493 \begin_layout Subsection
34495 \begin_inset Index idx
34498 \begin_layout Plain Layout
34507 \begin_layout Standard
34508 When you have chosen an
34511 \begin_inset space ~
34516 , the vertical box alignment can be:
34519 \begin_layout Description
34520 Top This is an example text line.
34522 \begin_inset Box Boxed
34532 height_special "totalheight"
34537 backgroundcolor "none"
34540 \begin_layout Plain Layout
34542 This box is top-aligned.
34547 This is an example text line.
34550 \begin_layout Description
34551 Middle This is an example text line.
34553 \begin_inset Box Boxed
34563 height_special "totalheight"
34568 backgroundcolor "none"
34571 \begin_layout Plain Layout
34573 This box is middle-aligned.
34578 This is an example text line.
34581 \begin_layout Description
34582 Bottom This is an example text line.
34584 \begin_inset Box Boxed
34594 height_special "totalheight"
34599 backgroundcolor "none"
34602 \begin_layout Plain Layout
34604 This box is bottom-aligned.
34609 This is an example text line.
34612 \begin_layout Standard
34613 \begin_inset Note Greyedout
34616 \begin_layout Plain Layout
34621 The vertical box alignment can be lost in the output when you have two
34622 boxes in a line and one has e.
34623 \begin_inset space \thinspace{}
34627 \begin_inset space \space{}
34630 a shadow and the other one not.
34638 \begin_layout Standard
34639 The horizontal box alignment can be set via \SpecialChar LyX
34640 's paragraph dialog when you
34641 set the box into its own paragraph.
34644 \begin_layout Standard
34645 \begin_inset VSpace bigskip
34648 When you have chosen an
34651 \begin_inset space ~
34656 , the box content can be aligned vertically to:
34659 \begin_layout Description
34660 top This is an example text line.
34662 \begin_inset Box Boxed
34672 height_special "totalheight"
34677 backgroundcolor "none"
34680 \begin_layout Plain Layout
34682 This box text is top-aligned.
34687 This is an example text line.
34690 \begin_layout Description
34691 middle This is an example text line.
34693 \begin_inset Box Boxed
34703 height_special "totalheight"
34708 backgroundcolor "none"
34711 \begin_layout Plain Layout
34713 This box text is middle-aligned.
34718 This is an example text line.
34721 \begin_layout Description
34722 bottom This is an example text line.
34724 \begin_inset Box Boxed
34734 height_special "totalheight"
34739 backgroundcolor "none"
34742 \begin_layout Plain Layout
34744 This box text is bottom-aligned.
34749 This is an example text line.
34752 \begin_layout Description
34753 stretch This is an example text line.
34755 \begin_inset Box Boxed
34765 height_special "totalheight"
34770 backgroundcolor "none"
34773 \begin_layout Plain Layout
34778 \begin_layout Plain Layout
34783 \begin_layout Plain Layout
34790 This is an example text line.
34793 \begin_layout Standard
34794 To stretch the box content, it must consist of more than one paragraph.
34795 In the example above every text line is in an own paragraph.
34798 \begin_layout Standard
34799 \begin_inset VSpace bigskip
34802 To align the box content horizontally you can use \SpecialChar LyX
34803 's paragraph dialog when
34807 \begin_inset space ~
34815 \begin_layout Standard
34817 \begin_inset Box Boxed
34827 height_special "totalheight"
34832 backgroundcolor "none"
34835 \begin_layout Plain Layout
34840 \begin_layout Plain Layout
34845 \begin_layout Plain Layout
34855 \begin_layout Standard
34856 If you have not set an
34859 \begin_inset space ~
34864 , you can align the box content horizontally in the box dialog.
34867 \begin_layout Standard
34869 \begin_inset Box Boxed
34879 height_special "totalheight"
34884 backgroundcolor "none"
34887 \begin_layout Plain Layout
34888 This box text is horizontally stretched.
34896 \begin_layout Subsection
34898 \begin_inset CommandInset label
34900 name "sec:Decoration"
34905 \begin_inset Index idx
34908 \begin_layout Plain Layout
34917 \begin_layout Standard
34918 The type of the box can be specified in the box dialog in the drop-down
34924 The following types are possible:
34927 \begin_layout Description
34929 \begin_inset space ~
34932 frame Nothing is drawn.
34935 \begin_layout Description
34937 \begin_inset space ~
34941 \begin_inset space ~
34944 frame This draws a rectangular frame around the box.
34945 The frame line thickness can be specified.
34947 \begin_inset Box Boxed
34957 height_special "totalheight"
34962 backgroundcolor "none"
34965 \begin_layout Plain Layout
34975 \begin_layout Description
34977 \begin_inset space ~
34981 \begin_inset space ~
34984 thin This draws an oval frame around the box.
34985 The frame line thickness has the size 0.4
34986 \begin_inset space \thinspace{}
34991 \begin_inset Box ovalbox
35001 height_special "totalheight"
35006 backgroundcolor "none"
35009 \begin_layout Plain Layout
35019 \begin_layout Description
35021 \begin_inset space ~
35025 \begin_inset space ~
35028 thick This draws an oval frame around the box.
35029 The frame line thickness has the size 0.8
35030 \begin_inset space \thinspace{}
35035 \begin_inset Box Ovalbox
35045 height_special "totalheight"
35050 backgroundcolor "none"
35053 \begin_layout Plain Layout
35063 \begin_layout Description
35065 \begin_inset space ~
35068 shadow This draws a rectangular frame with a shadow around the box.
35069 The frame line thickness and the shadow can be specified.
35071 \begin_inset Box Shadowbox
35081 height_special "totalheight"
35086 backgroundcolor "none"
35089 \begin_layout Plain Layout
35099 \begin_layout Description
35101 \begin_inset space ~
35104 background This draws a box with a red background.
35105 Unlike colored boxes
35109 \begin_layout Plain Layout
35111 \begin_inset space \thinspace{}
35115 \begin_inset CommandInset ref
35117 reference "sec:Colored-Boxes"
35126 , it always uses the whole column width and the box is set as its own paragraph.
35128 \begin_inset Box Shaded
35138 height_special "totalheight"
35143 backgroundcolor "none"
35146 \begin_layout Plain Layout
35147 Shaded background box
35155 \begin_layout Description
35157 \begin_inset space ~
35161 \begin_inset space ~
35164 frame This draws a double-line rectangular frame around the box.
35165 The line thickness of the inner frame is 0.75
35166 \begin_inset space \thinspace{}
35170 \begin_inset space ~
35173 thickness, the thickness of the outer frame is 1.5
35174 \begin_inset space \thinspace{}
35178 \begin_inset space ~
35182 The distance between the lines is 1.5
35183 \begin_inset space \thinspace{}
35187 \begin_inset space ~
35191 \begin_inset space \thinspace{}
35195 \begin_inset space \thinspace{}
35199 \begin_inset space \thinspace{}
35204 \begin_inset Box Doublebox
35214 height_special "totalheight"
35219 backgroundcolor "none"
35222 \begin_layout Plain Layout
35224 Double rectangular box
35232 \begin_layout Standard
35233 \begin_inset VSpace bigskip
35237 's box label will reflect the different frame types.
35238 To be able to use all types, the \SpecialChar LaTeX
35244 \begin_inset Index idx
35247 \begin_layout Plain Layout
35249 -packages ! fancybox
35257 \begin_layout Standard
35258 \begin_inset VSpace bigskip
35261 When you use the decoration
35263 simple rectangular frame
35265 and no inner box, you can allow page breaks within a box.
35266 Note that then, unlike other framed boxes, the frame always uses the whole
35267 column width and the box is set as its own paragraph:
35268 \begin_inset Box Framed
35278 height_special "totalheight"
35283 backgroundcolor "none"
35286 \begin_layout Plain Layout
35287 Allow page break box
35295 \begin_layout Section
35297 \begin_inset Index idx
35300 \begin_layout Plain Layout
35301 Boxes ! Customization
35309 \begin_layout Standard
35310 The diameter of the round corners of the oval boxes can be set with the
35321 \begin_layout Standard
35329 \begin_layout Standard
35330 sets the diameter to 1
35331 \begin_inset space \thinspace{}
35338 \begin_layout Standard
35346 \begin_layout Standard
35347 sets the diameter to
35350 \begin_inset space \thinspace{}
35354 \begin_inset space \thinspace{}
35357 minimum(width and height of box)
35369 \begin_layout Standard
35373 \begin_layout Plain Layout
35383 \begin_inset Box Ovalbox
35393 height_special "totalheight"
35398 backgroundcolor "none"
35401 \begin_layout Plain Layout
35410 \begin_inset space \thinspace{}
35414 \begin_inset space \thinspace{}
35418 \begin_inset space \thinspace{}
35430 \begin_layout Plain Layout
35442 \begin_layout Standard
35443 \begin_inset VSpace bigskip
35449 \begin_layout Standard
35450 The default background color red of
35454 boxes can either be changed locally with the command
35458 definecolor{shadecolor}
35460 or globally with the menu
35462 Tools\SpecialChar menuseparator
35463 Preferences\SpecialChar menuseparator
35464 Colors\SpecialChar menuseparator
35466 \begin_inset space ~
35478 command is explained in section
35479 \begin_inset space ~
35483 \begin_inset CommandInset ref
35485 reference "sec:Colored-Tables"
35493 \begin_layout Plain Layout
35500 requires the \SpecialChar LaTeX
35505 in the preamble, see section
35506 \begin_inset space ~
35510 \begin_inset CommandInset ref
35512 reference "sec:Colored-Boxes"
35521 For example the appearance of the following shaded background box is set
35522 with the \SpecialChar TeX
35526 \begin_layout Standard
35531 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35534 \begin_layout Standard
35538 \begin_layout Plain Layout
35542 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35548 \begin_inset Box Shaded
35558 height_special "totalheight"
35563 backgroundcolor "none"
35566 \begin_layout Plain Layout
35569 This is yellow text in a
35579 box with dark green background.
35588 \begin_layout Plain Layout
35592 definecolor{shadecolor}{rgb}{1,0,0}
35600 \begin_layout Standard
35601 \begin_inset VSpace bigskip
35604 Manually changed sizes and colors are valid for all boxes following the
35605 commands that change them.
35608 \begin_layout Section
35610 \begin_inset CommandInset label
35612 name "sec:Minipages"
35617 \begin_inset Index idx
35620 \begin_layout Plain Layout
35629 \begin_layout Standard
35630 Minipages are treated by \SpecialChar LaTeX
35631 as pages within pages and can therefore for example
35632 have their own footnotes.
35635 \begin_layout Standard
35636 Minipages are useful when you write documents with different languages.
35639 \begin_layout Standard
35640 Below are two example minipages side by side.
35641 Their width is set to 45
35642 \begin_inset space \thinspace{}
35645 col% and they are separated by a horizontal fill, that was inserted via
35648 Insert\SpecialChar menuseparator
35650 \begin_inset space ~
35653 Formatting\SpecialChar menuseparator
35655 \begin_inset space ~
35661 \begin_inset Newpage newpage
35667 \begin_layout Standard
35668 \begin_inset Box Frameless
35678 height_special "totalheight"
35683 backgroundcolor "none"
35686 \begin_layout Plain Layout
35689 Dies ist ein deutscher Text.
35690 Dies ist ein deutscher Text.
35691 Dies ist ein deutscher Text.
35692 Dies ist ein deutscher Text.
35693 Dies ist ein deutscher Text.
35694 Dies ist ein deutscher Text.
35695 Dies ist ein deutscher Text.
35696 Dies ist ein deutscher Text.
35697 Dies ist ein deutscher Text.
35698 Dies ist ein deutscher Text.
35699 Dies ist ein deutscher Text.
35700 Dies ist ein deutscher Text.
35701 Dies ist ein deutscher Text
35705 \begin_layout Plain Layout
35708 Dies ist eine deutsche Fußnote.
35714 Dies ist ein deutscher Text.
35715 Dies ist ein deutscher Text.
35721 \begin_inset space \hfill{}
35725 \begin_inset Box Frameless
35735 height_special "totalheight"
35740 backgroundcolor "none"
35743 \begin_layout Plain Layout
35744 This is an English Text.
35745 This is an English Text.
35746 This is an English Text.
35747 This is an English Text.
35748 This is an English Text.
35749 This is an English Text.
35750 This is an English Text.
35751 This is an English Text.
35752 This is an English Text.
35753 This is an English Text.
35754 This is an English Text.
35755 This is an English Text.
35756 This is an English Text.
35757 This is an English Text.
35758 This is an English Text.
35759 This is an English Text.
35763 \begin_layout Plain Layout
35764 This is an English footnote.
35769 This is an English Text.
35777 \begin_layout Standard
35778 \begin_inset VSpace bigskip
35781 The document-wide paragraph settings are ignored within minipages.
35782 That means that there will be no space between paragraphs in minipages
35783 although you set it to e.
35784 \begin_inset space \thinspace{}
35788 \begin_inset space \space{}
35795 in the document settings.
35798 \begin_layout Standard
35799 Minipages can also be used to set a background color for text parts, see
35801 \begin_inset space ~
35805 \begin_inset CommandInset ref
35807 reference "sec:Colored-Boxes"
35814 \begin_layout Standard
35815 \begin_inset Note Greyedout
35818 \begin_layout Plain Layout
35823 You cannot have floats or margin notes inside minipages but minipages can
35824 be used inside tables, floats, and other boxes.
35832 \begin_layout Standard
35833 \begin_inset VSpace bigskip
35839 \begin_layout Standard
35841 has also basic support for minipages whose size is automatically determined
35842 by the width of their contents, via the module
35844 Variable-width Minipages
35847 The \SpecialChar LyX
35850 varwidth-floats-side-by-side
35852 gives examples of variable-width minipages used for placing two floats
35856 \begin_layout Section
35858 \begin_inset CommandInset label
35860 name "sec:Parboxes"
35865 \begin_inset Index idx
35868 \begin_layout Plain Layout
35877 \begin_layout Standard
35878 Parboxes are very similar to minipages with the difference that they cannot
35882 \begin_layout Standard
35884 \begin_inset Box Frameless
35894 height_special "totalheight"
35899 backgroundcolor "none"
35902 \begin_layout Plain Layout
35903 This a text within a parbox.
35904 This a text within a parbox.
35907 \begin_layout Plain Layout
35908 This footnote won't appear:
35912 \begin_layout Plain Layout
35913 This footnote is inside a parbox and will therefore not appear.
35926 \begin_layout Section
35927 Boxes for Words and Characters
35928 \begin_inset Index idx
35931 \begin_layout Plain Layout
35932 Boxes ! for Characters
35940 \begin_layout Subsection
35941 Prevent Hyphenation
35942 \begin_inset CommandInset label
35944 name "sec:Prevent-Hyphenation"
35949 \begin_inset Index idx
35952 \begin_layout Plain Layout
35953 Boxes ! to Prevent Hyphenation
35961 \begin_layout Standard
35962 You can use the box type
35966 to prevent words or text from being hyphenated.
35967 \begin_inset Newline newline
35970 Here is an example text:
35973 \begin_layout Standard
35974 This line is an example to show how you can prevent the hyphenation of
35975 \begin_inset Quotes eld
35979 \begin_inset Quotes erd
35985 \begin_layout Standard
35986 To prevent the hyphenation of the word
35987 \begin_inset Quotes eld
35991 \begin_inset Quotes erd
35994 , put the word into a box, set the
35997 \begin_inset space ~
36006 and use no explicit width.
36009 \begin_layout Standard
36010 This is the result:
36013 \begin_layout Standard
36014 This line is an example to show how you can prevent the hyphenation of
36015 \begin_inset Box Frameless
36025 height_special "totalheight"
36030 backgroundcolor "none"
36033 \begin_layout Plain Layout
36034 \begin_inset Quotes eld
36038 \begin_inset Quotes erd
36049 \begin_layout Standard
36050 You can alternatively set the command
36051 \begin_inset Quotes eld
36061 \begin_inset Quotes grd
36064 as \SpecialChar TeX
36065 Code directly before the word:
36068 \begin_layout Standard
36069 This line is an example to show how you can prevent the hyphenation of
36070 \begin_inset Quotes eld
36077 \begin_layout Plain Layout
36087 \begin_inset Quotes erd
36093 \begin_layout Standard
36094 Of course the word now protrudes over the side margin.
36095 To avoid this, add via the menu
36097 Insert\SpecialChar menuseparator
36098 Formatting\SpecialChar menuseparator
36100 \begin_inset space ~
36104 \begin_inset space ~
36112 arg "newline-insert newline"
36115 ) a line break before the word:
36118 \begin_layout Standard
36119 This line is an example to show how you can prevent the hyphenation of
36120 \begin_inset Newline newline
36124 \begin_inset Box Frameless
36134 height_special "totalheight"
36139 backgroundcolor "none"
36142 \begin_layout Plain Layout
36143 \begin_inset Quotes eld
36147 \begin_inset Quotes erd
36158 \begin_layout Subsection
36160 \begin_inset CommandInset label
36162 name "subsec:Vertical-Alignment"
36167 \begin_inset Index idx
36170 \begin_layout Plain Layout
36171 Boxes ! for Vertical Alignment
36177 \begin_inset Index idx
36180 \begin_layout Plain Layout
36189 \begin_layout Standard
36190 With the help of the command
36196 you can align words, characters or other boxes vertically relative to the
36204 is used with the following scheme:
36207 \begin_layout Standard
36212 raisebox{lift}[height][depth]{box content}
36215 \begin_layout Standard
36216 The lift can be a positive value to raise the box or a negative value to
36220 \begin_layout Standard
36221 To align for example the word
36222 \begin_inset Quotes eld
36226 \begin_inset Quotes erd
36229 so that the bottom of the
36230 \begin_inset Quotes eld
36234 \begin_inset Quotes erd
36238 \begin_inset Quotes eld
36242 \begin_inset Quotes erd
36245 is at the baseline, insert the command
36248 \begin_layout Standard
36258 \begin_layout Standard
36259 in \SpecialChar TeX
36260 Code before the word.
36261 After the word insert a closing brace
36262 \begin_inset Quotes eld
36270 \begin_inset Quotes erd
36273 in \SpecialChar TeX
36275 \begin_inset Newline newline
36278 This is the result:
36281 \begin_layout Standard
36282 This is a text line with the word
36286 \begin_layout Plain Layout
36298 \begin_inset Quotes eld
36302 \begin_inset Quotes erd
36309 \begin_layout Plain Layout
36319 \begin_layout Standard
36320 \begin_inset VSpace bigskip
36323 When you raise or lower characters in a line, the line distance will be
36327 \begin_layout Standard
36328 This is a text line with the word
36332 \begin_layout Plain Layout
36344 \begin_inset Quotes eld
36348 \begin_inset Quotes erd
36355 \begin_layout Plain Layout
36363 \begin_inset Newline newline
36366 This is a text line with the word
36370 \begin_layout Plain Layout
36380 \begin_inset Quotes eld
36384 \begin_inset Quotes erd
36391 \begin_layout Plain Layout
36401 \begin_layout Standard
36402 If you want to prevent this for a certain reason, set the box height to
36407 \begin_layout Standard
36417 \begin_layout Standard
36418 This is a text line with the word
36422 \begin_layout Plain Layout
36434 \begin_inset Quotes eld
36438 \begin_inset Quotes erd
36445 \begin_layout Plain Layout
36453 \begin_inset Newline newline
36457 \begin_inset Newline newline
36460 This is a text line with the word
36464 \begin_layout Plain Layout
36468 raisebox{0.5cm}[0pt]{
36474 \begin_inset Quotes eld
36478 \begin_inset Quotes erd
36485 \begin_layout Plain Layout
36495 \begin_layout Section
36497 \begin_inset CommandInset label
36499 name "sec:Colored-Boxes"
36504 \begin_inset Index idx
36507 \begin_layout Plain Layout
36516 \begin_layout Standard
36517 To color the background of a box just select the color you like in the box
36519 This is for example a box with orange background:
36520 \begin_inset Box Frameless
36530 height_special "totalheight"
36535 backgroundcolor "orange"
36538 \begin_layout Plain Layout
36539 Box with orange background
36547 \begin_layout Standard
36548 If you use the decoration
36551 \begin_inset space ~
36555 \begin_inset space ~
36560 you can set a frame color.
36561 In this case you must also specify a background color (LyX sets white as
36563 Here is an example:
36564 \begin_inset Box Boxed
36574 height_special "totalheight"
36579 backgroundcolor "yellow"
36582 \begin_layout Plain Layout
36583 Box with teal frame color and yellow background color
36591 \begin_layout Standard
36592 \begin_inset VSpace bigskip
36595 Of course you can also have colored text inside a colored box:
36596 \begin_inset Newline newline
36600 \begin_inset Box Boxed
36610 height_special "totalheight"
36615 backgroundcolor "magenta"
36618 \begin_layout Plain Layout
36621 This is colored text within a colored, framed box
36629 \begin_layout Standard
36630 \begin_inset VSpace bigskip
36636 \begin_layout Standard
36637 If you need another color than the predefined ones, you can define your
36638 own color as described in section
36639 \begin_inset space ~
36643 \begin_inset CommandInset ref
36645 reference "sec:Colored-Tables"
36650 To use your own color you must typeset the box by using TeX code:
36653 \begin_layout Standard
36654 Colored boxes without frame are created with the command
36661 It has the following scheme:
36664 \begin_layout Standard
36669 colorbox{color}{box content}
36672 \begin_layout Standard
36673 The box content can also be a box and colored boxes can also be within other
36676 \begin_inset space \thinspace{}
36680 \begin_inset space \space{}
36683 a darkgreen background for a word, insert the command
36686 \begin_layout Standard
36691 colorbox{darkgreen}{
36694 \begin_layout Standard
36695 before the word in \SpecialChar TeX
36697 After the word insert a closing brace
36698 \begin_inset Quotes eld
36706 \begin_inset Quotes erd
36709 in \SpecialChar TeX
36711 \begin_inset Newline newline
36714 This is the result:
36717 \begin_layout Standard
36718 This is a line where the word
36722 \begin_layout Plain Layout
36726 colorbox{darkgreen}{
36732 \begin_inset Quotes eld
36736 \begin_inset Quotes erd
36743 \begin_layout Plain Layout
36750 has a darkgreen background.
36753 \begin_layout Standard
36754 Framed, colored boxes are created with the command
36761 It has the following scheme:
36764 \begin_layout Standard
36769 fcolorbox{frame color}{box color}{box content}
36772 \begin_layout Section
36773 Rotated and Scaled Boxes
36776 \begin_layout Standard
36777 To use the boxes described in this section, the module
36781 must be loaded in the document settings.
36784 \begin_layout Standard
36785 \begin_inset Note Greyedout
36788 \begin_layout Plain Layout
36793 Not all DVI viewers are able to display rotated or scaled material.
36801 \begin_layout Standard
36802 \begin_inset Note Greyedout
36805 \begin_layout Plain Layout
36810 Floats are not allowed inside a rotated or scaled box.
36818 \begin_layout Subsection
36820 \begin_inset Index idx
36823 \begin_layout Plain Layout
36830 \begin_inset Index idx
36833 \begin_layout Plain Layout
36842 \begin_layout Standard
36843 To rotate material, you can put it into a
36848 Such a box is inserted via the menu
36850 Insert\SpecialChar menuseparator
36851 Custom Insets\SpecialChar menuseparator
36857 \begin_layout Standard
36858 The rotation origin can be specified via the inset
36864 Insert\SpecialChar menuseparator
36872 The following positions are possible:
36892 (top), along with meaningful combinations of the four base positions.
36897 means that the rotation origin is at the top left corner of the box.
36898 When no rotation origin is specified, the position
36903 The rotation angle is a number that can be negative that specifies the
36905 The rotation direction is counterclockwise.
36908 \begin_layout Standard
36909 In the following example
36913 was inserted to the
36921 was inserted to the
36928 \begin_layout Standard
36930 \begin_inset Flex Rotatebox
36933 \begin_layout Plain Layout
36934 \begin_inset Argument 1
36937 \begin_layout Plain Layout
36944 \begin_inset Argument 2
36947 \begin_layout Plain Layout
36961 \begin_layout Standard
36962 The box content can also be another box or an inline formula:
36965 \begin_layout Standard
36967 \begin_inset Flex Rotatebox
36970 \begin_layout Plain Layout
36971 \begin_inset Argument 1
36974 \begin_layout Plain Layout
36981 \begin_inset Argument 2
36984 \begin_layout Plain Layout
36991 \begin_inset Box Doublebox
37001 height_special "totalheight"
37006 backgroundcolor "none"
37009 \begin_layout Plain Layout
37021 \begin_inset Flex Rotatebox
37024 \begin_layout Plain Layout
37025 \begin_inset Argument 1
37028 \begin_layout Plain Layout
37035 \begin_inset Argument 2
37038 \begin_layout Plain Layout
37045 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37056 \begin_layout Standard
37057 or an image or table:
37060 \begin_layout Standard
37062 \begin_inset Flex Rotatebox
37065 \begin_layout Plain Layout
37066 \begin_inset Argument 1
37069 \begin_layout Plain Layout
37076 \begin_inset Argument 2
37079 \begin_layout Plain Layout
37086 \begin_inset Graphics
37087 filename clipart/Star-structure.pdf
37098 with a rotated image
37099 \begin_inset Flex Rotatebox
37102 \begin_layout Plain Layout
37103 \begin_inset Argument 2
37106 \begin_layout Plain Layout
37113 \begin_inset Tabular
37114 <lyxtabular version="3" rows="2" columns="2">
37115 <features tabularvalignment="middle">
37116 <column alignment="center" valignment="top">
37117 <column alignment="center" valignment="top">
37119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37122 \begin_layout Plain Layout
37128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37131 \begin_layout Plain Layout
37139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37142 \begin_layout Plain Layout
37148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37151 \begin_layout Plain Layout
37168 \begin_inset Index idx
37171 \begin_layout Plain Layout
37178 \begin_inset Index idx
37181 \begin_layout Plain Layout
37182 Table Customization ! Rotating
37190 \begin_layout Standard
37191 \begin_inset Note Greyedout
37194 \begin_layout Plain Layout
37203 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
37205 errors when viewing/exporting the document.
37213 \begin_layout Subsection
37215 \begin_inset Index idx
37218 \begin_layout Plain Layout
37225 \begin_inset Index idx
37228 \begin_layout Plain Layout
37237 \begin_layout Standard
37238 To scale material put it into a
37243 Such a box is inserted via the menu
37245 Insert\SpecialChar menuseparator
37246 Custom Insets\SpecialChar menuseparator
37252 \begin_layout Standard
37257 inset has the mandatory inset
37261 and the optional inset
37265 (inserted via the menu
37267 Insert\SpecialChar menuseparator
37271 Input there the horizontal and vertical scale factor, respectively.
37276 inset is used, the horizontal factor will also be used as the vertical
37280 \begin_layout Standard
37281 To get for example the double text size, compared to the document text size,
37292 \begin_inset Flex Scalebox
37295 \begin_layout Plain Layout
37296 \begin_inset Argument 1
37299 \begin_layout Plain Layout
37313 \begin_layout Standard
37331 \begin_inset Flex Scalebox
37334 \begin_layout Plain Layout
37335 \begin_inset Argument 1
37338 \begin_layout Plain Layout
37345 \begin_inset Argument 2
37348 \begin_layout Plain Layout
37362 \begin_layout Standard
37363 If the scaling factor is negative, the box content will be mirrored.
37380 can be used to create mirror writing:
37381 \begin_inset Flex Scalebox
37384 \begin_layout Plain Layout
37385 \begin_inset Argument 1
37388 \begin_layout Plain Layout
37395 \begin_inset Argument 2
37398 \begin_layout Plain Layout
37412 \begin_layout Standard
37430 \begin_inset Flex Scalebox
37433 \begin_layout Plain Layout
37434 \begin_inset Argument 1
37437 \begin_layout Plain Layout
37444 \begin_inset Argument 2
37447 \begin_layout Plain Layout
37461 \begin_layout Standard
37468 Insert\SpecialChar menuseparator
37469 Custom Insets\SpecialChar menuseparator
37495 \begin_layout Standard
37496 \begin_inset Note Greyedout
37499 \begin_layout Plain Layout
37508 inset is empty or contains other characters than numbers you will get LaTeX
37509 errors when viewing/exporting the document.
37517 \begin_layout Standard
37518 \begin_inset VSpace bigskip
37527 Insert\SpecialChar menuseparator
37528 Custom Insets\SpecialChar menuseparator
37531 ) is used to scale the content to a defined width and height.
37536 inset has the mandatory inset
37540 and the optional inset
37544 (inserted via the menu
37546 Insert\SpecialChar menuseparator
37550 Input there the width and height, respectively, as value with a unit.
37552 \begin_inset CommandInset ref
37554 reference "tab:Units"
37558 lists the possible units.
37559 If there is an exclamation mark
37563 in of of the two insets, the size is set so that the aspect ratio of the
37564 box content is kept.
37569 inset is used an exclamation mark will internally be used for the height.
37572 \begin_layout Standard
37590 \begin_inset Flex Resizebox
37593 \begin_layout Plain Layout
37594 \begin_inset Argument 1
37597 \begin_layout Plain Layout
37604 \begin_inset Argument 2
37607 \begin_layout Plain Layout
37619 \begin_inset Newline newline
37643 \begin_inset Flex Resizebox
37646 \begin_layout Plain Layout
37647 \begin_inset Argument 1
37650 \begin_layout Plain Layout
37657 \begin_inset Argument 2
37660 \begin_layout Plain Layout
37674 \begin_layout Standard
37675 \begin_inset Note Greyedout
37678 \begin_layout Plain Layout
37687 inset is empty or contains an invalid unit you will get LaTeX errors when
37688 viewing/exporting the document.
37696 \begin_layout Standard
37697 \begin_inset VSpace bigskip
37703 \begin_layout Standard
37704 The boxes can be combined in any order.
37713 which is in turn inside a
37720 \begin_layout Standard
37723 \begin_inset Flex Rotatebox
37726 \begin_layout Plain Layout
37727 \begin_inset Argument 1
37730 \begin_layout Plain Layout
37737 \begin_inset Argument 2
37740 \begin_layout Plain Layout
37747 \begin_inset Flex Resizebox
37750 \begin_layout Plain Layout
37751 \begin_inset Argument 1
37754 \begin_layout Plain Layout
37761 \begin_inset Flex Reflectbox
37764 \begin_layout Plain Layout
37783 \begin_layout Standard
37785 Images, tables, and inline formulas are allowed as box content:
37788 \begin_layout Standard
37791 \begin_inset Flex Resizebox
37794 \begin_layout Plain Layout
37795 \begin_inset Argument 1
37798 \begin_layout Plain Layout
37805 \begin_inset Flex Reflectbox
37808 \begin_layout Plain Layout
37809 \begin_inset Graphics
37810 filename clipart/Star-structure.pdf
37827 \begin_inset Flex Resizebox
37830 \begin_layout Plain Layout
37831 \begin_inset Argument 1
37834 \begin_layout Plain Layout
37841 \begin_inset Flex Reflectbox
37844 \begin_layout Plain Layout
37845 \begin_inset Tabular
37846 <lyxtabular version="3" rows="2" columns="2">
37847 <features tabularvalignment="middle">
37848 <column alignment="center" valignment="top">
37849 <column alignment="center" valignment="top">
37851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37854 \begin_layout Plain Layout
37860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37863 \begin_layout Plain Layout
37871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37874 \begin_layout Plain Layout
37880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37883 \begin_layout Plain Layout
37905 \begin_inset Flex Resizebox
37908 \begin_layout Plain Layout
37909 \begin_inset Argument 1
37912 \begin_layout Plain Layout
37919 \begin_inset Flex Reflectbox
37922 \begin_layout Plain Layout
37923 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37937 \begin_inset Index idx
37940 \begin_layout Plain Layout
37947 \begin_inset Index idx
37950 \begin_layout Plain Layout
37951 Table Customization ! Scaling
37959 \begin_layout Standard
37960 When the global formula style
37964 is used in the document
37968 \begin_layout Plain Layout
37970 \begin_inset Quotes eld
37974 \begin_inset Quotes erd
37977 is added to the document class options.
37982 , display style formulas can also be scaled.
37985 \begin_layout Chapter
37986 Objects Surrounded by Text
37987 \begin_inset Index idx
37990 \begin_layout Plain Layout
37999 \begin_layout Section
38001 \begin_inset CommandInset label
38003 name "sec:Wrap-Floats"
38008 \begin_inset Index idx
38011 \begin_layout Plain Layout
38012 Floats ! Wrap Floats
38018 \begin_inset Index idx
38021 \begin_layout Plain Layout
38022 Surrounded by text ! Wrap Floats
38030 \begin_layout Standard
38031 \begin_inset Wrap figure
38038 \begin_layout Plain Layout
38039 \begin_inset Graphics
38040 filename clipart/2D-intensity-plot.pdf
38042 scaleBeforeRotation
38043 rotateOrigin center
38050 \begin_layout Plain Layout
38051 \begin_inset Caption Standard
38053 \begin_layout Plain Layout
38054 \begin_inset CommandInset label
38056 name "fig:This-is-a"
38060 This is a figure wrap float.
38070 This float type is used if you want to wrap text around a figure or table
38071 so that it only occupies some fraction of the column width.
38072 It can be inserted using the menu
38074 Insert\SpecialChar menuseparator
38075 Floats\SpecialChar menuseparator
38077 \begin_inset space ~
38081 \begin_inset space ~
38089 \begin_inset space ~
38093 \begin_inset space ~
38098 if the \SpecialChar LaTeX
38104 \begin_inset Index idx
38107 \begin_layout Plain Layout
38109 -packages ! wrapfig
38118 \begin_layout Plain Layout
38119 Installing a \SpecialChar LaTeX
38120 -package is explained it in the
38124 \begin_inset space ~
38134 The settings of the float can be modified by right-clicking on the float
38136 The mandatory settings are the float
38149 that specifies how much the float is set into the paragraph
38150 \begin_inset space \thinspace{}
38154 \begin_inset space \thinspace{}
38157 page margin, and the
38160 \begin_inset space ~
38165 that specifies how many text lines the float will approximately need.
38166 The line span is often hard to approximate; so it is better only to use
38167 it when you encounter float placement problems.
38168 You can furthermore decide if \SpecialChar LaTeX
38169 is allowed to let the float float within
38170 the paragraph or to surrounding paragraphs.
38172 \begin_inset space ~
38176 \begin_inset CommandInset ref
38178 reference "fig:This-is-a"
38182 is an example text wrap float with a width of 40
38183 \begin_inset space \thinspace{}
38187 \begin_inset space \thinspace{}
38190 cm overhang, set to the left.
38193 \begin_layout Standard
38194 \begin_inset Note Greyedout
38197 \begin_layout Plain Layout
38203 \begin_inset space ~
38206 wrap float floats are fragile! E.
38207 \begin_inset space \thinspace{}
38211 \begin_inset space \space{}
38214 having a figure too close to the bottom of the page can mess things up in
38215 such a way that the float does not appear in the output or that it is placed
38216 over some other text.
38224 \begin_layout Standard
38225 In general, the following applies for wrap floats:
38228 \begin_layout Itemize
38229 They should not be placed in paragraphs that run over a page break.
38230 That means that wrap floats are better inserted in their exact place when
38231 the document is almost finished and you are able to estimate where page
38232 breaks will appear.
38235 \begin_layout Itemize
38236 They should either be placed in their own paragraph before the paragraph
38237 where they should wrap into or within a paragraph.
38240 \begin_layout Itemize
38241 In consecutive paragraphs they may cause troubles, so ensure that there
38242 is a text paragraph between them as separator.
38245 \begin_layout Itemize
38246 They are not allowed in section headings or tables.
38249 \begin_layout Itemize
38250 Their numbering and referencing works as described in chap.
38251 \begin_inset space \thinspace{}
38255 \begin_inset CommandInset ref
38257 reference "chap:Floats"
38264 \begin_layout Section
38265 Surrounded Fixed Objects
38266 \begin_inset Index idx
38269 \begin_layout Plain Layout
38270 Surrounded by text ! Fixed objects
38278 \begin_layout Standard
38279 The wrap floats described in sec.
38280 \begin_inset space \thinspace{}
38284 \begin_inset CommandInset ref
38286 reference "sec:Wrap-Floats"
38290 have these positions in the paragraph:
38293 \begin_layout Standard
38296 \begin_inset Tabular
38297 <lyxtabular version="3" rows="2" columns="2">
38298 <features tabularvalignment="middle">
38299 <column alignment="center" valignment="top">
38300 <column alignment="center" valignment="top">
38302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38305 \begin_layout Plain Layout
38308 arg "dialog-show-new-inset graphics"
38316 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38319 \begin_layout Plain Layout
38327 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38330 \begin_layout Plain Layout
38336 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38339 \begin_layout Plain Layout
38351 \begin_inset Tabular
38352 <lyxtabular version="3" rows="2" columns="2">
38353 <features tabularvalignment="middle">
38354 <column alignment="center" valignment="top">
38355 <column alignment="center" valignment="top">
38357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38360 \begin_layout Plain Layout
38366 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38369 \begin_layout Plain Layout
38372 arg "dialog-show-new-inset graphics"
38382 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38385 \begin_layout Plain Layout
38391 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38394 \begin_layout Plain Layout
38408 \begin_layout Standard
38409 To get an object exactly at the position where it is inserted, for example
38410 to get one of these positions:
38411 \begin_inset VSpace defskip
38417 \begin_layout Standard
38420 \begin_inset Tabular
38421 <lyxtabular version="3" rows="2" columns="2">
38422 <features tabularvalignment="middle">
38423 <column alignment="center" valignment="top">
38424 <column alignment="center" valignment="top">
38426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38429 \begin_layout Plain Layout
38435 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38438 \begin_layout Plain Layout
38446 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38449 \begin_layout Plain Layout
38452 arg "dialog-show-new-inset graphics"
38460 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38463 \begin_layout Plain Layout
38475 \begin_inset Tabular
38476 <lyxtabular version="3" rows="2" columns="2">
38477 <features tabularvalignment="middle">
38478 <column alignment="center" valignment="top">
38479 <column alignment="center" valignment="top">
38481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38484 \begin_layout Plain Layout
38490 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38493 \begin_layout Plain Layout
38501 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38504 \begin_layout Plain Layout
38510 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38513 \begin_layout Plain Layout
38516 arg "dialog-show-new-inset graphics"
38530 \begin_inset Tabular
38531 <lyxtabular version="3" rows="2" columns="3">
38532 <features tabularvalignment="middle">
38533 <column alignment="center" valignment="top">
38534 <column alignment="center" valignment="top">
38535 <column alignment="center" valignment="top">
38537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38540 \begin_layout Plain Layout
38546 <cell alignment="center" valignment="top" topline="true" usebox="none">
38549 \begin_layout Plain Layout
38552 arg "dialog-show-new-inset graphics"
38560 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38563 \begin_layout Plain Layout
38571 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38574 \begin_layout Plain Layout
38580 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38583 \begin_layout Plain Layout
38589 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38592 \begin_layout Plain Layout
38604 \begin_inset Tabular
38605 <lyxtabular version="3" rows="2" columns="3">
38606 <features tabularvalignment="middle">
38607 <column alignment="center" valignment="top">
38608 <column alignment="center" valignment="top">
38609 <column alignment="center" valignment="top">
38611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38614 \begin_layout Plain Layout
38620 <cell alignment="center" valignment="top" topline="true" usebox="none">
38623 \begin_layout Plain Layout
38629 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38632 \begin_layout Plain Layout
38640 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38643 \begin_layout Plain Layout
38649 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38652 \begin_layout Plain Layout
38655 arg "dialog-show-new-inset graphics"
38663 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38666 \begin_layout Plain Layout
38680 \begin_layout Standard
38683 \begin_inset Tabular
38684 <lyxtabular version="3" rows="3" columns="2">
38685 <features tabularvalignment="middle">
38686 <column alignment="center" valignment="top">
38687 <column alignment="center" valignment="top">
38689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38692 \begin_layout Plain Layout
38698 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38701 \begin_layout Plain Layout
38709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38712 \begin_layout Plain Layout
38715 arg "dialog-show-new-inset graphics"
38723 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38726 \begin_layout Plain Layout
38734 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38737 \begin_layout Plain Layout
38743 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38746 \begin_layout Plain Layout
38758 \begin_inset Tabular
38759 <lyxtabular version="3" rows="3" columns="3">
38760 <features tabularvalignment="middle">
38761 <column alignment="center" valignment="top">
38762 <column alignment="center" valignment="top">
38763 <column alignment="center" valignment="top">
38765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38768 \begin_layout Plain Layout
38774 <cell alignment="center" valignment="top" topline="true" usebox="none">
38777 \begin_layout Plain Layout
38783 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38786 \begin_layout Plain Layout
38794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38797 \begin_layout Plain Layout
38803 <cell alignment="center" valignment="top" usebox="none">
38806 \begin_layout Plain Layout
38809 arg "dialog-show-new-inset graphics"
38817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38820 \begin_layout Plain Layout
38828 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38831 \begin_layout Plain Layout
38837 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38840 \begin_layout Plain Layout
38846 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38849 \begin_layout Plain Layout
38861 \begin_inset Tabular
38862 <lyxtabular version="3" rows="3" columns="2">
38863 <features tabularvalignment="middle">
38864 <column alignment="center" valignment="top">
38865 <column alignment="center" valignment="top">
38867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38870 \begin_layout Plain Layout
38876 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38879 \begin_layout Plain Layout
38887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38890 \begin_layout Plain Layout
38896 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38899 \begin_layout Plain Layout
38902 arg "dialog-show-new-inset graphics"
38912 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38915 \begin_layout Plain Layout
38921 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38924 \begin_layout Plain Layout
38938 \begin_layout Standard
38940 you can use the \SpecialChar LaTeX
38946 \begin_inset Index idx
38949 \begin_layout Plain Layout
38951 -packages ! picinpar
38957 Here is an example:
38960 \begin_layout Standard
38964 \begin_layout Plain Layout
38974 \begin_inset Note Note
38977 \begin_layout Plain Layout
38978 The following section will only be displayed when the \SpecialChar LaTeX
38991 \begin_layout Standard
38995 \begin_layout Plain Layout
38999 begin{window}[2,c,{
39005 \begin_inset Graphics
39006 filename clipart/2D-intensity-plot.pdf
39009 scaleBeforeRotation
39010 rotateOrigin center
39018 \begin_layout Plain Layout
39023 \begin_layout Plain Layout
39032 It was in the spring of the year 1894 that all London was interested, and
39033 the fashionable world dismayed, by the murder of the Honourable Ronald
39034 Adair under most unusual and inexplicable circumstances.
39035 The public has already learned those particulars of the crime which
39041 \begin_layout Plain Layout
39052 came out in the police investigation, but a good deal was suppressed upon
39053 that occasion, since the case for the prosecution was so overwhelmingly
39054 strong that it was not necessary to bring forward all the facts.
39055 Only now, at the end of nearly ten years, am I allowed to supply those
39056 missing links which make up the whole of that remarkable chain.
39062 \begin_layout Plain Layout
39074 \begin_layout Standard
39078 \begin_layout Plain Layout
39087 Footnote of the paragraph with the fixed object.
39091 \begin_layout Plain Layout
39101 \begin_layout Standard
39102 Surrounded fixed objects are used to let text float around them, at which
39103 the object's position in the paragraph can be determined by the number
39105 In contrary to floats is it not possible to have a numbered caption.
39108 \begin_layout Standard
39109 A fixed object is inserted by adding the command
39112 \begin_layout Standard
39117 begin{window}[2,c,{
39120 \begin_layout Standard
39121 as \SpecialChar TeX
39122 Code at the beginning of the paragraph.
39123 The first parameter in the bracket, here '2', defines the number of lines
39124 above the object, the second, here 'c', the position of the object.
39125 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
39126 Behind the command you insert the object.
39127 In this example an image with a width of 40
39128 \begin_inset space \thinspace{}
39131 % of the text column width was inserted.
39132 The object can also be a table, a box or an equation.
39133 Behind the object the command
39136 \begin_layout Standard
39139 },description text]
39140 \begin_inset Newline newline
39146 \begin_layout Standard
39149 \begin_inset Quotes eld
39157 \begin_inset Quotes erd
39160 is in the second line.
39161 The description text is optional.
39162 The text surrounding the object must be in the same paragraph as the object,
39163 so it must begin directly after the
39168 At the end of the paragraph insert the command:
39171 \begin_layout Standard
39179 \begin_layout Standard
39180 Within a paragraph with a fixed object, you cannot insert footnotes in the
39182 You have to use instead the command
39188 inside the paragraph and outside the command
39194 as described in sec.
39195 \begin_inset space \thinspace{}
39199 \begin_inset CommandInset ref
39201 reference "sec:Footnotes"
39208 \begin_layout Standard
39212 \begin_layout Plain Layout
39222 \begin_inset Note Note
39225 \begin_layout Plain Layout
39226 The following will be displayed when the \SpecialChar LaTeX
39239 \begin_layout Standard
39240 You need to install the \SpecialChar LaTeX
39245 to see the following part of this section in the output.
39248 \begin_layout Standard
39252 \begin_layout Plain Layout
39264 \begin_layout Section
39266 \begin_inset Index idx
39269 \begin_layout Plain Layout
39276 \begin_inset Index idx
39279 \begin_layout Plain Layout
39280 Surrounded by text ! Initials
39288 \begin_layout Standard
39289 To use initials, you must have the \SpecialChar LaTeX
39295 \begin_inset Index idx
39298 \begin_layout Plain Layout
39300 -packages ! lettrine
39305 installed and use the module
39309 in your document (menu
39311 Document\SpecialChar menuseparator
39312 Settings\SpecialChar menuseparator
39316 To insert an initial, use the style
39321 This style has a mandatory and two optional arguments.
39322 The arguments are inserted via the
39327 The mandatory argument
39331 contains the letter(s) that is the initial, the argument
39334 \begin_inset space ~
39338 \begin_inset space ~
39343 contains the rest of the word or text of the initial letter(s).
39348 contains parameters to modify the initial.
39349 For more information about the possible parameters see the documentation
39355 \begin_inset CommandInset citation
39363 The style itself contains the text that is surrounding the initial.
39364 The usual style is hereby that the word whose first letter is the initial,
39372 \begin_layout Standard
39373 Here are some examples:
39376 \begin_layout Standard
39380 \begin_layout Plain Layout
39390 \begin_inset Note Note
39393 \begin_layout Plain Layout
39394 The following section will only be displayed when the \SpecialChar LaTeX
39407 \begin_layout Enumerate
39408 No optional argument, the initial is the letter 'I' in the math font
39409 \begin_inset Formula $\mathfrak{Fraktur}$
39416 \begin_layout Initial
39417 \begin_inset Argument 2
39420 \begin_layout Plain Layout
39421 \begin_inset Formula $\mathfrak{I}$
39430 \begin_inset Argument 3
39433 \begin_layout Plain Layout
39439 was in the spring of the year 1894 that all London was interested, and
39440 the fashionable world dismayed, by the murder of the Honourable Ronald
39441 Adair under most unusual and inexplicable circumstances.
39442 The public has already learned those particulars of the crime which came
39443 out in the police investigation, but a good deal was suppressed upon that
39444 occasion, since the case for the prosecution was so overwhelmingly strong
39445 that it was not necessary to bring forward all the facts.
39446 \begin_inset Newpage newpage
39453 \begin_layout Enumerate
39454 Only one line is surrounding the initial, which is formed by two letters
39455 in standard font and no text is printed in small caps:
39459 \begin_layout Initial
39460 \begin_inset Argument 1
39463 \begin_layout Plain Layout
39470 \begin_inset Argument 2
39473 \begin_layout Plain Layout
39479 was in the spring of the year 1894 that all London was interested, and
39480 the fashionable world dismayed, by the murder of the Honourable Ronald
39481 Adair under most unusual and inexplicable circumstances.
39482 The public has already learned those particulars of the crime which came
39483 out in the police investigation, but a good deal was suppressed upon that
39484 occasion, since the case for the prosecution was so overwhelmingly strong
39485 that it was not necessary to bring forward all the facts.
39489 \begin_layout Enumerate
39490 Magenta, hanging initial over 3
39491 \begin_inset space ~
39494 lines in the math font
39495 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39499 \begin_inset Quotes eld
39502 t was in the spring
39503 \begin_inset Quotes erd
39510 ; to color the initial, you must insert this command before the initial:
39511 \begin_inset Newline newline
39525 \begin_inset Newline newline
39533 \begin_inset Quotes eld
39537 \begin_inset Quotes erd
39541 \begin_inset Quotes eld
39545 \begin_inset Quotes erd
39549 \begin_inset Quotes eld
39553 \begin_inset Quotes erd
39557 \begin_inset Quotes eld
39561 \begin_inset Quotes erd
39565 \begin_inset Quotes eld
39569 \begin_inset Quotes erd
39573 \begin_inset Quotes eld
39577 \begin_inset Quotes erd
39581 \begin_inset Quotes eld
39585 \begin_inset Quotes erd
39589 \begin_inset Quotes eld
39593 \begin_inset Quotes erd
39596 , and add this command to the document preamble:
39597 \begin_inset Newline newline
39604 @ifundefined{textcolor}
39605 \begin_inset Newline newline
39609 \begin_inset space ~
39614 usepackage{color}}{}
39618 \begin_layout Standard
39622 \begin_layout Plain Layout
39636 \begin_inset Note Note
39639 \begin_layout Plain Layout
39640 makes the initial magenta
39648 \begin_layout Initial
39649 \begin_inset Argument 1
39652 \begin_layout Plain Layout
39653 lines=3, lhang=0.33, loversize=0.25
39659 \begin_inset Argument 2
39662 \begin_layout Plain Layout
39663 \begin_inset Formula $\mathcal{I}$
39672 \begin_inset Argument 3
39675 \begin_layout Plain Layout
39676 t was in the spring
39681 of the year 1894 that all London was interested, and the fashionable world
39682 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39683 and inexplicable circumstances.
39684 The public has already learned those particulars of the crime which came
39685 out in the police investigation, but a good deal was suppressed upon that
39686 occasion, since the case for the prosecution was so overwhelmingly strong
39687 that it was not necessary to bring forward all the facts.
39691 \begin_layout Standard
39695 \begin_layout Plain Layout
39705 \begin_inset Note Note
39708 \begin_layout Plain Layout
39709 The following will be displayed when the \SpecialChar LaTeX
39722 \begin_layout Standard
39723 You need to install the \SpecialChar LaTeX
39728 to see the following part of this section in the output.
39731 \begin_layout Standard
39735 \begin_layout Plain Layout
39747 \begin_layout Chapter
39748 External Document Parts
39749 \begin_inset Index idx
39752 \begin_layout Plain Layout
39753 External Document Parts
39761 \begin_layout Standard
39764 Insert\SpecialChar menuseparator
39767 you can insert external material into your document.
39771 \begin_layout Description
39773 \begin_inset space ~
39776 Document Another \SpecialChar LyX
39777 document; its content is directly inserted to your document.
39780 \begin_layout Description
39782 \begin_inset space ~
39785 Text A text document; each line is inserted in your document as a separate
39789 \begin_layout Description
39791 \begin_inset space ~
39795 \begin_inset space ~
39799 \begin_inset space ~
39802 Lines A text document; text lines are inserted in your document continuously
39803 but an empty text line creates a new paragraph.
39806 \begin_layout Description
39808 \begin_inset space ~
39811 Material Files in various formats.
39814 \begin_layout Description
39816 \begin_inset space ~
39819 Document \SpecialChar LyX
39820 or \SpecialChar LaTeX
39824 \begin_layout Section
39826 \begin_inset Index idx
39829 \begin_layout Plain Layout
39830 External Document Parts ! External Material
39838 \begin_layout Standard
39839 The external material feature allows you to insert files into your document
39840 without converting them to a format that can be read by the document output
39843 takes care of the necessary conversions.
39844 This is similar to images that can be inserted in various image formats
39845 in \SpecialChar LyX
39847 When you have enabled Instant Preview in \SpecialChar LyX
39848 's preferences under
39851 \begin_inset space ~
39855 \begin_inset space ~
39858 feel\SpecialChar menuseparator
39861 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39865 \begin_layout Standard
39866 External material can be inserted via the
39870 dialog that is accessible with the menu
39872 Insert\SpecialChar menuseparator
39873 File\SpecialChar menuseparator
39875 \begin_inset space ~
39881 Currently the following file types (
39888 \begin_layout Description
39890 \begin_inset space ~
39893 diagram This template supports chess position diagrams made with the program
39897 \begin_inset CommandInset href
39900 target "https://en.wikipedia.org/wiki/XBoard"
39910 \begin_layout Description
39912 \begin_inset space ~
39915 diagram This template supports diagrams created with the program
39918 \begin_inset CommandInset href
39921 target "https://en.wikipedia.org/wiki/Dia_(software)"
39931 \begin_layout Description
39933 \begin_inset space ~
39936 figure This template supports specific scalable images derived from scalable
39937 vector graphics (SVG), in which the contained text is replaced by a version
39938 typeset by \SpecialChar LaTeX
39939 (and hence in the current document font).
39940 It relies on a feature of the program
39943 \begin_inset CommandInset href
39946 target "https://inkscape.org/"
39953 which creates a special PDF or EPS and \SpecialChar LaTeX
39954 file from a given SVG file (in
39959 itself, the feature is available via the option
39961 Omit text in PDF and create LaTeX file
39963 when saving a drawing as PDF or EPS).
39964 The benefit of such files is a uniform text style throughout the whole
39966 \begin_inset Newline newline
39969 The external template reads SVG files and uses a converter program to generate
39970 the respective PDF\SpecialChar breakableslash
39971 EPS and \SpecialChar LaTeX
39980 on the fly, so you don't have to export those files yourself.
39981 If you prefer the latter and want use given
39997 files instead, simply input the respective
40010 \begin_inset space ~
40014 \begin_inset CommandInset ref
40016 reference "sec:Child-Documents"
40020 ) rather than using this template.
40021 \begin_inset Newline newline
40024 You can use \SpecialChar TeX
40025 code commands such as
40038 \begin_inset space \space{}
40041 in the text of the SVG.
40042 The size of the font will be taken from the settings of the \SpecialChar LyX
40045 \begin_inset CommandInset citation
40052 for more information and examples.
40055 \begin_layout Description
40057 \begin_inset space ~
40061 \begin_inset space ~
40064 music This template is used for music notation typeset with the program
40065 \begin_inset Newline linebreak
40071 \begin_inset CommandInset href
40074 target "https://en.wikipedia.org/wiki/LilyPond"
40082 For \SpecialChar LyX
40083 's extended support for LilyPond have a look at \SpecialChar LyX
40091 \begin_layout Description
40093 \begin_inset space ~
40096 pages With this template you can insert PDF documents to your document.
40097 To specify the range of pages that should be included, use the option
40107 LaTeX and LyX options
40110 The argument of this option is a comma separated list, containing page
40111 numbers (insert as option
40115 ), ranges of page numbers (
40119 ) or any combination.
40120 To insert empty pages use {}.
40122 \begin_inset space \thinspace{}
40126 \begin_inset space ~
40131 pages={3,{},8-11,15}
40133 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
40134 Page ranges are specified in the syntax
40143 This selects all pages from
40156 defaults to the first page; omitting
40160 defaults to the last page of the document.
40161 The last page can also be selected with the keyword
40166 (This is only permitted in a page range.) So
40170 will insert all pages of the document and
40174 will insert all pages in reverse order.
40175 If the pages option is not specified, only the first page of the PDF is
40177 \begin_inset Newline newline
40184 inserts the pages with their original size, if this option is not given,
40185 the pages will be resized to fith the width of the page of your document.
40190 you can specify the width and height of the input pages and their rotation.
40191 If another width than 100
40192 \begin_inset space \thinspace{}
40195 Scale% is used, the option
40199 will be overwritten.
40200 For more info and possible options, have a look into the documentation
40201 of the \SpecialChar LaTeX
40207 \begin_inset CommandInset citation
40215 \begin_inset Index idx
40218 \begin_layout Plain Layout
40220 -packages ! pdfpages
40226 \begin_inset Newline newline
40229 To use this template in a
40233 presentation you need to first insert an
40237 environment and in a subsequent paragraph a \SpecialChar TeX
40238 Code box containing the command
40243 setbeamertemplate{background canvas}{}
40246 Then you can insert as many paragraphs containing the PDFPages template
40248 Behind the included PDF pages you can resume the Beamer presentation by
40249 beginning a new frame or by starting a new section.
40250 To avoid stray blank pages prior to the PDF pages, make sure to use the
40255 alignment for the paragraph containing the template.
40256 \begin_inset Newline newline
40259 Here is an included PDF which is rotated by -5°:
40260 \begin_inset External
40262 filename clipart/Abstract.pdf
40263 extra LaTeX "noautoscale, pages=-"
40265 rotateOrigin bottomleft
40272 \begin_layout Description
40274 \begin_inset space ~
40277 image This can be used for bitmap images.
40278 The image can be treated in the
40282 dialog like the images that are usually included via the
40286 dialog as described in section
40287 \begin_inset space ~
40291 \begin_inset CommandInset ref
40293 reference "sec:Graphics-Dialog"
40298 Here is an inserted raster image:
40299 \begin_inset External
40300 template RasterImage
40301 filename clipart/ToolbarEnvBox.png
40308 \begin_layout Description
40309 Spreadsheet With this template you can insert spreadsheets
40310 \begin_inset space \thinspace{}
40314 \begin_inset space \thinspace{}
40317 tables in the format of
40320 \begin_inset CommandInset href
40323 target "https://en.wikipedia.org/wiki/Gnumeric"
40331 \begin_inset CommandInset href
40333 name "OpenDocument"
40334 target "https://en.wikipedia.org/wiki/OpenDocument"
40340 \begin_inset CommandInset href
40342 name "Microsoft Office XML"
40343 target "https://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
40349 \begin_inset CommandInset href
40351 name "Office Open XML"
40352 target "https://en.wikipedia.org/wiki/Office_Open_XML"
40358 For this feature \SpecialChar LyX
40359 must have found the program
40363 during its configuration.
40364 This program is part of Gnumeric, so that you must have Gnumeric installed,
40365 also if you don't have tables in the Gnumeric format.
40366 For examples and possible limitations have a look at \SpecialChar LyX
40374 \begin_layout Description
40376 \begin_inset space ~
40379 graphics This can be used for vector graphics.
40380 The image can be treated in the
40384 dialog like the images that are usually included via the
40388 dialog as described in section
40389 \begin_inset space ~
40393 \begin_inset CommandInset ref
40395 reference "sec:Graphics-Dialog"
40400 Here is an inserted vector graphics:
40401 \begin_inset External
40402 template VectorGraphics
40403 filename clipart/SVG-Drawing.svg
40412 \begin_layout Description
40414 \begin_inset space ~
40417 figure This template supports images created with the program
40418 \begin_inset CommandInset href
40421 target "https://en.wikipedia.org/wiki/Xfig"
40429 \begin_layout Standard
40430 When you use the option
40442 dialog, only the path to the inserted file is shown in the output.
40443 \begin_inset Newline newline
40446 External material is displayed in \SpecialChar LyX
40447 either as a box like this:
40448 \begin_inset Graphics
40449 filename clipart/ExternalMaterial.png
40451 scaleBeforeRotation
40455 or as image, depending on the option
40461 LaTeX and LyX options
40466 \begin_layout Standard
40473 manual explains how you can define your own templates.
40476 \begin_layout Section
40478 \begin_inset CommandInset label
40480 name "sec:Child-Documents"
40485 \begin_inset Index idx
40488 \begin_layout Plain Layout
40489 External Document Parts ! Child Documents
40495 \begin_inset Index idx
40498 \begin_layout Plain Layout
40507 \begin_layout Standard
40508 Child documents are used if you have a long document consisting of several
40509 larger parts or sections.
40510 For maintenance it is often useful and sometimes even required to split
40511 the document into several files that can be revised separately.
40512 The different documents are then the so called
40513 \begin_inset Quotes eld
40517 \begin_inset Quotes erd
40520 , and a master document connects them to print the full document or parts
40522 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40524 the bibliography, and labels for cross-references.
40527 \begin_layout Standard
40528 To be able to work on child documents without the need to open their master,
40529 specify in the child document the master in the menu
40531 Document\SpecialChar menuseparator
40532 Settings\SpecialChar menuseparator
40534 \begin_inset space ~
40540 This master document will then be used in the background by \SpecialChar LyX
40542 the child document.
40545 \begin_layout Standard
40546 Included documents are displayed in \SpecialChar LyX
40547 as a box like this:
40548 \begin_inset Graphics
40549 filename clipart/ChildDocument.png
40551 scaleBeforeRotation
40555 To include child documents in a master document use the menu
40557 Insert\SpecialChar menuseparator
40558 File\SpecialChar menuseparator
40560 \begin_inset space ~
40566 A dialog pops up where you can choose between four include methods:
40569 \begin_layout Description
40570 Include You can include \SpecialChar LyX
40571 and \SpecialChar LaTeX
40581 dialog, the included document will be opened in \SpecialChar LyX
40582 in a new file tab so that
40584 \begin_inset Newline newline
40590 \begin_layout Standard
40591 Here is a child document inserted using
40596 \begin_inset CommandInset include
40597 LatexCommand include
40598 filename "DummyDocument1.lyx"
40605 \begin_layout Standard
40606 The section numbering includes the sections of the included files in the
40607 order they are inserted in the master document.
40608 The included example document has for example a subsection that is numbered
40609 as a subsection of this section.
40610 Labels of included documents can be referenced: Subsection
40611 \begin_inset space ~
40615 \begin_inset CommandInset ref
40617 reference "subsec:External-Subsection-1"
40624 \begin_layout Standard
40625 The preamble of the child document is ignored; only the preamble of the
40626 master document is used.
40627 Branches in child documents will be ignored by the master document when
40628 the master document does not have a branch with the same name.
40629 Included documents are inserted starting on a new page and ending with
40633 \begin_layout Standard
40634 \begin_inset Note Greyedout
40637 \begin_layout Plain Layout
40642 If you have included a \SpecialChar LyX
40643 or \SpecialChar LaTeX
40644 file, you are warned when you export/view the
40645 document in case the child document uses another document class than the
40646 master document as this will lead to unexpected outputs.
40654 \begin_layout Description
40655 Input This method is very similar to the Include method.
40656 The differences are:
40660 \begin_layout Itemize
40661 Input files don't start with a new page and don't end with a page break.
40664 \begin_layout Itemize
40665 Input files can be previewed in \SpecialChar LyX
40669 \begin_inset space ~
40674 is enabled in \SpecialChar LyX
40675 's preferences under
40678 \begin_inset space ~
40682 \begin_inset space ~
40685 feel\SpecialChar menuseparator
40691 \begin_layout Itemize
40692 You cannot exclude Input files via the menu
40694 Document\SpecialChar menuseparator
40695 Settings\SpecialChar menuseparator
40702 \begin_layout Standard
40703 Here is a child document inserted using
40708 \begin_inset CommandInset include
40710 filename "DummyDocument2.lyx"
40717 \begin_layout Description
40718 Verbatim With this method any text file can be included.
40719 The file is shown in the output with its source code; no command used in
40720 the text is invoked.
40721 You can use the option
40723 Mark spaces in output
40725 that displays the character
40726 \begin_inset Quotes eld
40733 \begin_layout Plain Layout
40743 \begin_inset Quotes erd
40746 for every space character in the source code.
40747 The difference from the method via the menu
40749 Insert\SpecialChar menuseparator
40750 File\SpecialChar menuseparator
40752 \begin_inset space ~
40757 is that the document content is not shown in \SpecialChar LyX
40761 \begin_layout Standard
40762 Here is a child document inserted as Verbatim:
40763 \begin_inset CommandInset include
40764 LatexCommand verbatiminput
40765 filename "DummyTextDocument.txt"
40770 \begin_inset VSpace bigskip
40773 Here is a child document inserted as Verbatim using the
40775 Mark spaces in output
40778 \begin_inset CommandInset include
40779 LatexCommand verbatiminput*
40780 filename "DummyTextDocument.txt"
40787 \begin_layout Standard
40788 \begin_inset VSpace bigskip
40794 \begin_layout Standard
40795 \begin_inset Note Greyedout
40798 \begin_layout Plain Layout
40803 As you can see in the examples above, the text of the documents included
40808 is not broken at the end of the document lines.
40816 \begin_layout Description
40817 Listings This type is described in chapter
40818 \begin_inset space ~
40822 \begin_inset CommandInset ref
40824 reference "cha:Program-Code-Listings"
40831 \begin_layout Standard
40832 \begin_inset Note Greyedout
40835 \begin_layout Plain Layout
40840 Including the same document twice in a document using different methods
40841 could cause \SpecialChar LaTeX
40850 \begin_layout Standard
40851 If you want to view/export only selected children of your master document,
40852 either because you want to save compiling time or because you want to distribut
40853 e single chapters of the book you are just writing, you can exclude children
40855 This is done via the menu
40857 Document\SpecialChar menuseparator
40858 Settings\SpecialChar menuseparator
40862 You can exclude\SpecialChar breakableslash
40863 include children by double-clicking on the
40867 column of the respective child document in the list (note that this only
40868 works for documents embedded via
40869 \begin_inset Quotes eld
40873 \begin_inset Quotes erd
40877 \begin_inset Quotes eld
40881 \begin_inset Quotes erd
40887 Maintain counters and references
40889 is enabled, \SpecialChar LyX
40890 will assure that all page numbers, references etc.
40891 \begin_inset space ~
40894 are correct as if the whole document was processed.
40895 This is useful if you want the selected sub-documents to look exactly as
40896 in the context of the whole document.
40897 However, \SpecialChar LyX
40898 needs to process the whole document in the background for this
40900 So if you want to save compile time and if counters and references do not
40901 need to be correct, disable this checkbox.
40904 \begin_layout Standard
40905 Alternatively, you can put each included file into a branch.
40909 \begin_layout Plain Layout
40910 Branches are described in section
40914 of the \SpecialChar LyX
40924 By enabling\SpecialChar breakableslash
40925 disabling branches you can decide which included files will
40926 appear in the output.
40927 This has the advantage that it also works with Input'ed sub-documents.
40928 However, counters and references will not be maintained with this approach.
40931 \begin_layout Chapter
40932 Program Code Listings
40933 \begin_inset CommandInset label
40935 name "cha:Program-Code-Listings"
40940 \begin_inset Index idx
40943 \begin_layout Plain Layout
40950 \begin_inset Index idx
40953 \begin_layout Plain Layout
40960 \begin_inset Index idx
40963 \begin_layout Plain Layout
40972 \begin_layout Standard
40973 To include and typeset program code you can use the
40977 inset that can be inserted via the menu
40979 Insert\SpecialChar menuseparator
40983 The \SpecialChar LaTeX
40989 \begin_inset Index idx
40992 \begin_layout Plain Layout
40994 -packages ! listings
41004 \begin_inset Index idx
41007 \begin_layout Plain Layout
41014 provide a powerful and flexible way to insert program source code into
41016 One can only use one of these packages in a document.
41021 is used by default.
41024 \begin_layout Standard
41025 \begin_inset Note Note
41028 \begin_layout Plain Layout
41034 does NOT want to encourage users to add the
41038 option to converter definitions.
41039 It works, but it is a huge security risk.
41040 There is an active discussion about how to handle this.
41041 Once that's been resolved, this can be updated appropriately.
41044 \begin_layout Plain Layout
41048 \begin_layout Plain Layout
41053 , you need to select it as the syntax highlighting package in the document
41063 requires also additionally the module
41075 \begin_layout Plain Layout
41076 Under \SpecialChar LyX
41081 is already installed.
41090 for the \SpecialChar LaTeX
41092 If you want for example view or export your document as the format
41095 \begin_inset space ~
41100 , go to the \SpecialChar LyX
41101 preferences and there to the section
41104 \begin_inset space ~
41107 Handling\SpecialChar menuseparator
41111 There go to the entry
41114 \begin_inset space ~
41118 \begin_inset space ~
41123 and look at the field
41128 There you see by default the content
41129 \begin_inset Newline newline
41137 \begin_inset Newline newline
41141 \begin_inset Newline newline
41146 pdflatex $$i -shell-escape
41147 \begin_inset Newline newline
41156 button and subsequently
41165 The same can be done for the output formats
41168 \begin_inset space ~
41176 \begin_inset space ~
41189 \begin_layout Standard
41190 Right-clicking on a listings inset opens the context menu containing where
41191 you can set the listings format.
41194 \begin_layout Standard
41195 By default, a listing starts a new paragraph in the output.
41196 The placement option
41199 \begin_inset space ~
41204 prints the listing inline like this:
41205 \begin_inset listings
41206 lstparams "language={C++}"
41210 \begin_layout Plain Layout
41218 \begin_inset Newline newline
41225 creates a listings float where you can specify the placement options
41226 \begin_inset Quotes eld
41234 \begin_inset Quotes erd
41238 \begin_inset Quotes eld
41246 \begin_inset Quotes erd
41250 \begin_inset Quotes eld
41258 \begin_inset Quotes erd
41262 \begin_inset Quotes eld
41270 \begin_inset Quotes erd
41273 corresponding to the float placement options described in section
41274 \begin_inset space ~
41278 \begin_inset CommandInset ref
41280 reference "sec:Float-Settings"
41285 The placement options can be mixed and are inserted without any separation,
41287 \begin_inset space \thinspace{}
41291 \begin_inset space \space{}
41295 \begin_inset Quotes eld
41303 \begin_inset Quotes erd
41308 \begin_inset Quotes eld
41312 \begin_inset Quotes erd
41315 has sometimes no effect, but you don't need to use the
41319 option in this case as also non-float listings can have captions and be
41323 \begin_layout Standard
41324 You can add captions to listings that are not inline with the menu
41326 Insert\SpecialChar menuseparator
41330 Listings can be referenced like floats: Listing
41331 \begin_inset space ~
41335 \begin_inset CommandInset ref
41337 reference "lst:Example-Listing"
41342 A list of listings which contains all listings with captions can be created
41345 Insert\SpecialChar menuseparator
41347 \begin_inset space ~
41351 \begin_inset space ~
41354 TOC\SpecialChar menuseparator
41358 The list entries are the listing caption and the listing number.
41361 \begin_layout Standard
41362 \begin_inset listings
41363 lstparams "language=Python"
41367 \begin_layout Plain Layout
41369 \begin_inset Caption Standard
41371 \begin_layout Plain Layout
41372 \begin_inset CommandInset label
41374 name "lst:Example-Listing"
41378 Example Listing float
41383 # Example listing float
41386 \begin_layout Plain Layout
41391 \begin_layout Plain Layout
41393 'this is a python function'
41396 \begin_layout Plain Layout
41406 \begin_layout Standard
41407 \begin_inset Note Greyedout
41410 \begin_layout Plain Layout
41419 package places captions before the listing by default.
41420 \begin_inset Newline newline
41427 package places them after the listing by default if it is floating.
41428 If it is not floating, caption will be typeset before the listing if it
41429 is inserted to its first line, otherwise it will be typeset after the listing.
41430 If you want to force the placement in every case before the listing, you
41431 have to add the following lines as last thing to the preamble:
41432 \begin_inset Newline newline
41439 @ifundefined{newfloat}
41440 \begin_inset Newline newline
41444 \begin_inset Phantom HPhantom
41447 \begin_layout Plain Layout
41450 \begin_inset space ~
41460 usepackage{float}}{}
41461 \begin_inset Newline newline
41466 floatstyle{plaintop}
41469 \begin_inset Note Note
41472 \begin_layout Plain Layout
41477 will be loaded automatically by \SpecialChar LyX
41478 when you use special document-wide float
41479 placement settings.
41480 To avoid that it is loaded twice the command
41486 is used in the above command.
41499 \begin_layout Standard
41500 When you have set a programming language in the listings dialog, the keywords
41501 of this language will be recognized and specially typeset in the output.
41502 In the example listings the Python keyword
41503 \begin_inset Quotes eld
41507 \begin_inset Quotes erd
41510 is recognized and printed bold in the output.
41513 \begin_layout Standard
41514 \begin_inset Note Greyedout
41517 \begin_layout Plain Layout
41522 If you don't get bold keywords when using typewriter fonts, your
41526 font probably doesn't provide a bold shape.
41527 In this case select a different one in the menu
41529 Document\SpecialChar menuseparator
41530 Settings\SpecialChar menuseparator
41542 provide bold shapes.)
41550 \begin_layout Standard
41554 \begin_inset space ~
41559 of the listings dialog you can specify the line numbering style.
41560 You can insert a number to specify which lines are numbered in the field
41567 \begin_inset space \thinspace{}
41571 \begin_inset space \space{}
41575 \begin_inset Quotes eld
41579 \begin_inset Quotes erd
41582 , only every 3rd line will be numbered.
41585 \begin_layout Standard
41586 You can furthermore specify a range of lines; only these will then appear
41590 Extended character table
41592 is only meaningful for the
41596 package and should be used when you use national characters like the German
41597 umlauts in the listing.
41598 \begin_inset Newline newline
41601 Here is an example listing with left line numbering, step
41602 \begin_inset Quotes eld
41606 \begin_inset Quotes erd
41610 \begin_inset Quotes eld
41614 \begin_inset Quotes erd
41618 \begin_inset Quotes eld
41621 Extended character table
41622 \begin_inset Quotes erd
41626 \begin_inset Quotes eld
41630 \begin_inset space ~
41634 \begin_inset space ~
41638 \begin_inset Quotes erd
41642 \begin_inset space \thinspace{}
41646 \begin_inset space \thinspace{}
41652 \begin_layout Standard
41653 \begin_inset listings
41654 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41658 \begin_layout Plain Layout
41663 \begin_layout Plain Layout
41665 'this is a python function'
41668 \begin_layout Plain Layout
41673 \begin_layout Plain Layout
41678 \begin_layout Plain Layout
41680 'This is a German word: Tschüß'
41683 \begin_layout Plain Layout
41688 \begin_layout Plain Layout
41693 \begin_layout Plain Layout
41695 'this is a python function'
41698 \begin_layout Plain Layout
41708 \begin_layout Standard
41709 When you have tabulators in your listing, you can specify the number of
41710 characters that are spanned by a tabulator in the field
41713 \begin_inset space ~
41721 \begin_layout Standard
41722 \begin_inset Note Greyedout
41725 \begin_layout Plain Layout
41730 Due to a bug in the
41734 package the line numbering is shifted by a line by every previous listing.
41735 That's the reason why the lines 2 and 5 are numbered in the above listing
41736 and not the lines 3 and 6.
41744 \begin_layout Standard
41745 \begin_inset VSpace bigskip
41751 \begin_layout Standard
41752 It is also possible to print lines from a file as listing.
41753 To do this, use the menu
41755 Insert\SpecialChar menuseparator
41756 File\SpecialChar menuseparator
41759 and choose the type
41767 \begin_layout Plain Layout
41768 The other child document types are described in section
41769 \begin_inset space ~
41773 \begin_inset CommandInset ref
41775 reference "sec:Child-Documents"
41784 In the child document dialog you can specify the listing parameters in
41786 To show a list of all available parameters, type in a question mark
41787 \begin_inset Quotes eld
41791 \begin_inset Quotes erd
41797 \begin_layout Standard
41798 To reference child document listings, write a label text into the corresponding
41799 field of the child document dialog.
41800 The label can then be referenced using the menu
41802 Insert\SpecialChar menuseparator
41808 \begin_layout Standard
41810 \begin_inset space ~
41814 \begin_inset CommandInset ref
41816 reference "lst:file-listing"
41820 is an example for a listing of a file; there the lines 10
41821 \begin_inset space \thinspace{}
41825 \begin_inset space \thinspace{}
41828 15 of this \SpecialChar LyX
41832 \begin_layout Standard
41833 \begin_inset CommandInset include
41834 LatexCommand lstinputlisting
41835 filename "EmbeddedObjects.lyx"
41836 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41843 \begin_layout Standard
41844 \begin_inset VSpace bigskip
41850 \begin_layout Standard
41851 Inserting a formula into a listing can be done the following way:
41854 \begin_layout Enumerate
41855 Open the listings dialog and add
41856 \begin_inset Newline newline
41864 \begin_inset Newline newline
41867 to the field of the
41874 \begin_layout Enumerate
41875 Create a formula outside the listing
41878 \begin_layout Enumerate
41879 Copy the content of the formula (not the formula inset) to the clipboard
41889 \begin_layout Enumerate
41890 In the listing write
41891 \begin_inset Quotes eld
41899 \begin_inset Quotes erd
41902 and copy from the clipboard between the dollar-signs (shortcut
41911 \begin_layout Standard
41912 \begin_inset listings
41913 lstparams "language=Python,mathescape=true"
41917 \begin_layout Plain Layout
41919 \begin_inset Caption Standard
41921 \begin_layout Plain Layout
41922 Example Listing float containing a formula
41927 # Example listing float
41930 \begin_layout Plain Layout
41935 \begin_layout Plain Layout
41948 \begin_layout Plain Layout
41958 \begin_layout Standard
41959 \begin_inset VSpace bigskip
41965 \begin_layout Standard
41966 Global listings settings can be set in the
41968 Document\SpecialChar menuseparator
41969 Settings\SpecialChar menuseparator
41973 To get there a list of available options, type in a question mark
41974 \begin_inset Quotes eld
41978 \begin_inset Quotes erd
41984 \begin_layout Standard
41985 For more information about the
41993 packages, we refer to their documentation
41994 \begin_inset CommandInset citation
41996 key "listings,minted"
42004 \begin_layout Standard
42005 \begin_inset Newpage newpage
42011 \begin_layout Chapter
42013 Units available in \SpecialChar LyX
42015 \begin_inset Index idx
42018 \begin_layout Plain Layout
42025 \begin_inset CommandInset label
42027 name "cha:Units-available-in"
42034 \begin_layout Standard
42035 To understand the units described in this documentation, Table
42036 \begin_inset space ~
42040 \begin_inset CommandInset ref
42042 reference "tab:Units"
42046 explains all units available in \SpecialChar LyX
42050 \begin_layout Standard
42051 \begin_inset Float table
42057 \begin_layout Plain Layout
42058 \begin_inset Caption Standard
42060 \begin_layout Plain Layout
42061 \begin_inset CommandInset label
42075 \begin_layout Plain Layout
42076 \begin_inset VSpace medskip
42082 \begin_layout Plain Layout
42084 \begin_inset Tabular
42085 <lyxtabular version="3" rows="21" columns="3">
42086 <features tabularvalignment="middle">
42087 <column alignment="center" valignment="top">
42088 <column alignment="center" valignment="middle" width="50col%">
42089 <column alignment="center" valignment="top">
42091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42094 \begin_layout Plain Layout
42100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42103 \begin_layout Plain Layout
42109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42112 \begin_layout Plain Layout
42121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42124 \begin_layout Plain Layout
42130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42133 \begin_layout Plain Layout
42135 \begin_inset space \thinspace{}
42139 \begin_inset space \thinspace{}
42147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42150 \begin_layout Plain Layout
42158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42161 \begin_layout Plain Layout
42167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42170 \begin_layout Plain Layout
42172 \begin_inset space \thinspace{}
42176 \begin_inset space \thinspace{}
42184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42187 \begin_layout Plain Layout
42195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42198 \begin_layout Plain Layout
42204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42207 \begin_layout Plain Layout
42213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42216 \begin_layout Plain Layout
42224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42227 \begin_layout Plain Layout
42233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42236 \begin_layout Plain Layout
42238 \begin_inset space \thinspace{}
42242 \begin_inset Formula $\approx$
42246 \begin_inset space \thinspace{}
42254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42257 \begin_layout Plain Layout
42265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42268 \begin_layout Plain Layout
42274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42277 \begin_layout Plain Layout
42287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42290 \begin_layout Plain Layout
42298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42301 \begin_layout Plain Layout
42307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42310 \begin_layout Plain Layout
42320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42323 \begin_layout Plain Layout
42331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42334 \begin_layout Plain Layout
42340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42343 \begin_layout Plain Layout
42349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42352 \begin_layout Plain Layout
42360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42363 \begin_layout Plain Layout
42369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42372 \begin_layout Plain Layout
42378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42381 \begin_layout Plain Layout
42389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42392 \begin_layout Plain Layout
42398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42401 \begin_layout Plain Layout
42403 \begin_inset space \thinspace{}
42407 \begin_inset space \thinspace{}
42415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42418 \begin_layout Plain Layout
42426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42429 \begin_layout Plain Layout
42435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42438 \begin_layout Plain Layout
42440 \begin_inset space \thinspace{}
42444 \begin_inset space \thinspace{}
42452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42455 \begin_layout Plain Layout
42463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42466 \begin_layout Plain Layout
42472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42475 \begin_layout Plain Layout
42477 \begin_inset space \thinspace{}
42481 \begin_inset space \thinspace{}
42489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42492 \begin_layout Plain Layout
42500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42503 \begin_layout Plain Layout
42509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42512 \begin_layout Plain Layout
42513 scaled point (65536
42514 \begin_inset space \thinspace{}
42518 \begin_inset space \thinspace{}
42526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42529 \begin_layout Plain Layout
42537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42540 \begin_layout Plain Layout
42546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42549 \begin_layout Plain Layout
42555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42558 \begin_layout Plain Layout
42568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42571 \begin_layout Plain Layout
42577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42580 \begin_layout Plain Layout
42581 % of height between baselines of two subsequent text lines
42586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42589 \begin_layout Plain Layout
42599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42602 \begin_layout Plain Layout
42608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42611 \begin_layout Plain Layout
42617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42620 \begin_layout Plain Layout
42630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42633 \begin_layout Plain Layout
42639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42642 \begin_layout Plain Layout
42648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42651 \begin_layout Plain Layout
42661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42664 \begin_layout Plain Layout
42670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42673 \begin_layout Plain Layout
42679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42682 \begin_layout Plain Layout
42692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42695 \begin_layout Plain Layout
42701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42704 \begin_layout Plain Layout
42705 % of original image width
42710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42713 \begin_layout Plain Layout
42721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42724 \begin_layout Plain Layout
42730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42733 \begin_layout Plain Layout
42739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42742 \begin_layout Plain Layout
42752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42755 \begin_layout Plain Layout
42761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42764 \begin_layout Plain Layout
42770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42773 \begin_layout Plain Layout
42794 \begin_layout Chapter
42795 Output File Formats with Graphics
42796 \begin_inset CommandInset label
42798 name "cha:Output-File-Formats"
42805 \begin_layout Section
42807 \begin_inset Index idx
42810 \begin_layout Plain Layout
42817 \begin_inset Index idx
42820 \begin_layout Plain Layout
42825 \begin_layout Plain Layout
42836 \begin_layout Plain Layout
42851 \begin_layout Standard
42852 This file type has the extension
42853 \begin_inset Quotes eld
42861 \begin_inset Quotes erd
42866 \begin_inset Quotes eld
42870 \begin_inset Quotes erd
42873 (DVI), because it is completely portable; you can move them from one machine
42874 to another without needing to do any sort of conversion.
42875 At the time when this file-format was developed, this was no matter of
42877 DVIs are used for quick previews and as pre-stage for other output formats,
42881 \begin_layout Standard
42882 \begin_inset Note Greyedout
42885 \begin_layout Plain Layout
42890 DVI-files do not contain images; they will only be a linked.
42895 So don't forget this, if you move your
42899 file to another computer.
42900 This property can also slow down your computer when you view the DVI, because
42901 the DVI-viewer has to convert the image in the background to make it visible
42902 when you scroll in the DVI.
42903 So it is recommended that you use PDF for files with many images.
42906 \begin_layout Standard
42907 You can export your document to DVI by using the menu
42909 File\SpecialChar menuseparator
42910 Export\SpecialChar menuseparator
42914 You can view your document as DVI via the
42921 \begin_layout Section
42923 \begin_inset Index idx
42926 \begin_layout Plain Layout
42927 File Formats ! PostScript
42933 \begin_inset Index idx
42936 \begin_layout Plain Layout
42941 \begin_layout Plain Layout
42952 \begin_layout Plain Layout
42967 \begin_layout Standard
42968 This file type has the extension
42969 \begin_inset Quotes eld
42977 \begin_inset Quotes erd
42981 PostScript was developed by the company
42985 as a printer language.
42986 The file therefore contains commands that the printer uses to print the
42988 PostScript can be seen as a
42989 \begin_inset Quotes eld
42992 programming language
42993 \begin_inset Quotes erd
42996 ; you can calculate with it and draw diagrams and images.
43000 \begin_layout Plain Layout
43001 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
43008 \begin_inset CommandInset citation
43020 Due to this ability, the files are often bigger than PDFs.
43023 \begin_layout Standard
43024 PostScript can only contain images in the format
43025 \begin_inset Quotes eld
43028 Encapsulated PostScript
43029 \begin_inset Quotes erd
43032 (EPS, file extension
43033 \begin_inset Quotes eld
43041 \begin_inset Quotes erd
43045 As \SpecialChar LyX
43046 allows you to use any known image format in your document, it has to
43047 convert images in the background to EPS.
43049 \begin_inset space ~
43053 \begin_inset space ~
43056 images in your document, \SpecialChar LyX
43058 \begin_inset space ~
43061 conversions whenever you view or export your document.
43062 This will slow down your work flow with \SpecialChar LyX
43064 So if you plan to use PostScript, you can insert your images directly as
43065 EPS to avoid this problem.
43068 \begin_layout Standard
43069 You can export your document to PostScript using the menu
43071 File\SpecialChar menuseparator
43072 Export\SpecialChar menuseparator
43076 You can view your document as PostScript via the
43083 \begin_layout Section
43085 \begin_inset Index idx
43088 \begin_layout Plain Layout
43095 \begin_inset Index idx
43098 \begin_layout Plain Layout
43107 \begin_layout Standard
43108 This file type has the extension
43109 \begin_inset Quotes eld
43117 \begin_inset Quotes erd
43122 \begin_inset Quotes eld
43125 Portable Document Format
43126 \begin_inset Quotes erd
43129 (PDF) was developed by
43133 as a derivative of PostScript.
43134 It is more compressed and it uses fewer commands than PostScript.
43136 \begin_inset Quotes eld
43140 \begin_inset Quotes erd
43143 implies, it can be processed at any computer system and the printed output
43144 looks exactly the same.
43147 \begin_layout Standard
43148 PDF can contain images in its own PDF format, in the format
43149 \begin_inset Quotes eld
43152 Joint Photographic Experts Group
43153 \begin_inset Quotes erd
43156 (JPG, file extension
43157 \begin_inset Quotes eld
43165 \begin_inset Quotes erd
43169 \begin_inset Quotes eld
43177 \begin_inset Quotes erd
43180 ), and in the format
43181 \begin_inset Quotes eld
43184 Portable Network Graphics
43185 \begin_inset Quotes erd
43188 (PNG, file extension
43189 \begin_inset Quotes eld
43197 \begin_inset Quotes erd
43201 Nevertheless you can use any other image format, because \SpecialChar LyX
43203 in the background to one of these formats.
43204 But as described in the section about PostScript, the image conversion
43205 will slow down your work flow.
43206 So it is recommended that you use images in one of the three mentioned
43210 \begin_layout Standard
43211 You can export your document to PDF via the menu
43213 File\SpecialChar menuseparator
43216 in three different ways:
43219 \begin_layout Description
43221 \begin_inset space ~
43224 (ps2pdf) This uses the program
43228 that creates a PDF from a PostScript-version of your file.
43229 The PostScript-version is produced by the program
43233 which uses a DVI-version as intermediate step.
43234 So this export variant consists of three conversions.
43237 \begin_layout Description
43239 \begin_inset space ~
43242 (dvipdfm) This uses the program
43246 that converts your file in the background to DVI and in a second step to
43250 \begin_layout Description
43252 \begin_inset space ~
43255 (pdflatex) This uses the program
43259 that converts your file directly to PDF.
43262 \begin_layout Standard
43263 It is recommended that you use
43266 \begin_inset space ~
43275 supports all features of actual PDF-versions, is quick and works stable.
43280 is not under development and therefore a bit outdated.
43283 \begin_layout Standard
43284 You can view your document as PDF via the
43288 menu or by using a toolbar button.
43291 \begin_layout Chapter
43292 List of dvips color names
43293 \begin_inset CommandInset label
43295 name "chap:List-of-dvips-colornames"
43302 \begin_layout Standard
43303 \begin_inset Tabular
43304 <lyxtabular version="3" rows="17" columns="4">
43305 <features tabularvalignment="middle">
43306 <column alignment="left" valignment="top" width="0pt">
43307 <column alignment="left" valignment="top" width="0pt">
43308 <column alignment="left" valignment="top" width="0pt">
43309 <column alignment="left" valignment="top" width="0pt">
43311 <cell alignment="left" valignment="top" usebox="none">
43314 \begin_layout Plain Layout
43318 \begin_layout Plain Layout
43331 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43354 <cell alignment="left" valignment="top" usebox="none">
43357 \begin_layout Plain Layout
43361 \begin_layout Plain Layout
43374 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43397 <cell alignment="left" valignment="top" usebox="none">
43400 \begin_layout Plain Layout
43404 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43428 \begin_layout Plain Layout
43440 <cell alignment="left" valignment="top" usebox="none">
43443 \begin_layout Plain Layout
43447 \begin_layout Plain Layout
43460 \begin_layout Plain Layout
43471 \begin_layout Plain Layout
43485 <cell alignment="center" valignment="top" usebox="none">
43488 \begin_layout Plain Layout
43492 \begin_layout Plain Layout
43505 \begin_layout Plain Layout
43513 \begin_inset Phantom Phantom
43516 \begin_layout Plain Layout
43526 \begin_layout Plain Layout
43538 <cell alignment="center" valignment="top" usebox="none">
43541 \begin_layout Plain Layout
43545 \begin_layout Plain Layout
43558 \begin_layout Plain Layout
43566 \begin_inset Phantom Phantom
43569 \begin_layout Plain Layout
43579 \begin_layout Plain Layout
43591 <cell alignment="center" valignment="top" usebox="none">
43594 \begin_layout Plain Layout
43598 \begin_layout Plain Layout
43611 \begin_layout Plain Layout
43619 \begin_inset Phantom Phantom
43622 \begin_layout Plain Layout
43632 \begin_layout Plain Layout
43644 <cell alignment="center" valignment="top" usebox="none">
43647 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43664 \begin_layout Plain Layout
43672 \begin_inset Phantom Phantom
43675 \begin_layout Plain Layout
43685 \begin_layout Plain Layout
43699 <cell alignment="left" valignment="top" usebox="none">
43702 \begin_layout Plain Layout
43706 \begin_layout Plain Layout
43719 \begin_layout Plain Layout
43727 \begin_inset Phantom Phantom
43730 \begin_layout Plain Layout
43740 \begin_layout Plain Layout
43752 <cell alignment="left" valignment="top" usebox="none">
43755 \begin_layout Plain Layout
43759 \begin_layout Plain Layout
43772 \begin_layout Plain Layout
43780 \begin_inset Phantom Phantom
43783 \begin_layout Plain Layout
43793 \begin_layout Plain Layout
43805 <cell alignment="left" valignment="top" usebox="none">
43808 \begin_layout Plain Layout
43812 \begin_layout Plain Layout
43825 \begin_layout Plain Layout
43833 \begin_inset Phantom Phantom
43836 \begin_layout Plain Layout
43846 \begin_layout Plain Layout
43858 <cell alignment="left" valignment="top" usebox="none">
43861 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43878 \begin_layout Plain Layout
43886 \begin_inset Phantom Phantom
43889 \begin_layout Plain Layout
43899 \begin_layout Plain Layout
43913 <cell alignment="left" valignment="top" usebox="none">
43916 \begin_layout Plain Layout
43920 \begin_layout Plain Layout
43933 \begin_layout Plain Layout
43941 \begin_inset Phantom Phantom
43944 \begin_layout Plain Layout
43954 \begin_layout Plain Layout
43966 <cell alignment="left" valignment="top" usebox="none">
43969 \begin_layout Plain Layout
43973 \begin_layout Plain Layout
43986 \begin_layout Plain Layout
43994 \begin_inset Phantom Phantom
43997 \begin_layout Plain Layout
44007 \begin_layout Plain Layout
44019 <cell alignment="left" valignment="top" usebox="none">
44022 \begin_layout Plain Layout
44026 \begin_layout Plain Layout
44039 \begin_layout Plain Layout
44047 \begin_inset Phantom Phantom
44050 \begin_layout Plain Layout
44060 \begin_layout Plain Layout
44072 <cell alignment="left" valignment="top" usebox="none">
44075 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44092 \begin_layout Plain Layout
44100 \begin_inset Phantom Phantom
44103 \begin_layout Plain Layout
44113 \begin_layout Plain Layout
44127 <cell alignment="left" valignment="top" usebox="none">
44130 \begin_layout Plain Layout
44134 \begin_layout Plain Layout
44147 \begin_layout Plain Layout
44155 \begin_inset Phantom Phantom
44158 \begin_layout Plain Layout
44168 \begin_layout Plain Layout
44180 <cell alignment="left" valignment="top" usebox="none">
44183 \begin_layout Plain Layout
44187 \begin_layout Plain Layout
44200 \begin_layout Plain Layout
44208 \begin_inset Phantom Phantom
44211 \begin_layout Plain Layout
44221 \begin_layout Plain Layout
44233 <cell alignment="left" valignment="top" usebox="none">
44236 \begin_layout Plain Layout
44240 \begin_layout Plain Layout
44253 \begin_layout Plain Layout
44261 \begin_inset Phantom Phantom
44264 \begin_layout Plain Layout
44274 \begin_layout Plain Layout
44286 <cell alignment="left" valignment="top" usebox="none">
44289 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44306 \begin_layout Plain Layout
44314 \begin_inset Phantom Phantom
44317 \begin_layout Plain Layout
44327 \begin_layout Plain Layout
44341 <cell alignment="left" valignment="top" usebox="none">
44344 \begin_layout Plain Layout
44348 \begin_layout Plain Layout
44361 \begin_layout Plain Layout
44369 \begin_inset Phantom Phantom
44372 \begin_layout Plain Layout
44382 \begin_layout Plain Layout
44394 <cell alignment="left" valignment="top" usebox="none">
44397 \begin_layout Plain Layout
44401 \begin_layout Plain Layout
44414 \begin_layout Plain Layout
44422 \begin_inset Phantom Phantom
44425 \begin_layout Plain Layout
44435 \begin_layout Plain Layout
44447 <cell alignment="left" valignment="top" usebox="none">
44450 \begin_layout Plain Layout
44454 \begin_layout Plain Layout
44467 \begin_layout Plain Layout
44475 \begin_inset Phantom Phantom
44478 \begin_layout Plain Layout
44488 \begin_layout Plain Layout
44500 <cell alignment="left" valignment="top" usebox="none">
44503 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44520 \begin_layout Plain Layout
44528 \begin_inset Phantom Phantom
44531 \begin_layout Plain Layout
44541 \begin_layout Plain Layout
44555 <cell alignment="center" valignment="top" usebox="none">
44558 \begin_layout Plain Layout
44562 \begin_layout Plain Layout
44575 \begin_layout Plain Layout
44583 \begin_inset Phantom Phantom
44586 \begin_layout Plain Layout
44596 \begin_layout Plain Layout
44608 <cell alignment="center" valignment="top" usebox="none">
44611 \begin_layout Plain Layout
44615 \begin_layout Plain Layout
44628 \begin_layout Plain Layout
44636 \begin_inset Phantom Phantom
44639 \begin_layout Plain Layout
44649 \begin_layout Plain Layout
44661 <cell alignment="center" valignment="top" usebox="none">
44664 \begin_layout Plain Layout
44668 \begin_layout Plain Layout
44681 \begin_layout Plain Layout
44689 \begin_inset Phantom Phantom
44692 \begin_layout Plain Layout
44702 \begin_layout Plain Layout
44714 <cell alignment="center" valignment="top" usebox="none">
44717 \begin_layout Plain Layout
44721 \begin_layout Plain Layout
44734 \begin_layout Plain Layout
44742 \begin_inset Phantom Phantom
44745 \begin_layout Plain Layout
44755 \begin_layout Plain Layout
44769 <cell alignment="left" valignment="top" usebox="none">
44772 \begin_layout Plain Layout
44776 \begin_layout Plain Layout
44789 \begin_layout Plain Layout
44797 \begin_inset Phantom Phantom
44800 \begin_layout Plain Layout
44810 \begin_layout Plain Layout
44822 <cell alignment="left" valignment="top" usebox="none">
44825 \begin_layout Plain Layout
44829 \begin_layout Plain Layout
44842 \begin_layout Plain Layout
44850 \begin_inset Phantom Phantom
44853 \begin_layout Plain Layout
44863 \begin_layout Plain Layout
44875 <cell alignment="left" valignment="top" usebox="none">
44878 \begin_layout Plain Layout
44882 \begin_layout Plain Layout
44895 \begin_layout Plain Layout
44903 \begin_inset Phantom Phantom
44906 \begin_layout Plain Layout
44916 \begin_layout Plain Layout
44928 <cell alignment="left" valignment="top" usebox="none">
44931 \begin_layout Plain Layout
44935 \begin_layout Plain Layout
44948 \begin_layout Plain Layout
44956 \begin_inset Phantom Phantom
44959 \begin_layout Plain Layout
44969 \begin_layout Plain Layout
44983 <cell alignment="left" valignment="top" usebox="none">
44986 \begin_layout Plain Layout
44990 \begin_layout Plain Layout
45003 \begin_layout Plain Layout
45011 \begin_inset Phantom Phantom
45014 \begin_layout Plain Layout
45024 \begin_layout Plain Layout
45036 <cell alignment="left" valignment="top" usebox="none">
45039 \begin_layout Plain Layout
45043 \begin_layout Plain Layout
45056 \begin_layout Plain Layout
45064 \begin_inset Phantom Phantom
45067 \begin_layout Plain Layout
45077 \begin_layout Plain Layout
45089 <cell alignment="left" valignment="top" usebox="none">
45092 \begin_layout Plain Layout
45096 \begin_layout Plain Layout
45109 \begin_layout Plain Layout
45117 \begin_inset Phantom Phantom
45120 \begin_layout Plain Layout
45130 \begin_layout Plain Layout
45142 <cell alignment="left" valignment="top" usebox="none">
45145 \begin_layout Plain Layout
45149 \begin_layout Plain Layout
45162 \begin_layout Plain Layout
45170 \begin_inset Phantom Phantom
45173 \begin_layout Plain Layout
45183 \begin_layout Plain Layout
45197 <cell alignment="left" valignment="top" usebox="none">
45200 \begin_layout Plain Layout
45204 \begin_layout Plain Layout
45217 \begin_layout Plain Layout
45225 \begin_inset Phantom Phantom
45228 \begin_layout Plain Layout
45238 \begin_layout Plain Layout
45250 <cell alignment="left" valignment="top" usebox="none">
45253 \begin_layout Plain Layout
45257 \begin_layout Plain Layout
45270 \begin_layout Plain Layout
45278 \begin_inset Phantom Phantom
45281 \begin_layout Plain Layout
45291 \begin_layout Plain Layout
45303 <cell alignment="left" valignment="top" usebox="none">
45306 \begin_layout Plain Layout
45310 \begin_layout Plain Layout
45323 \begin_layout Plain Layout
45331 \begin_inset Phantom Phantom
45334 \begin_layout Plain Layout
45344 \begin_layout Plain Layout
45356 <cell alignment="left" valignment="top" usebox="none">
45359 \begin_layout Plain Layout
45363 \begin_layout Plain Layout
45376 \begin_layout Plain Layout
45384 \begin_inset Phantom Phantom
45387 \begin_layout Plain Layout
45397 \begin_layout Plain Layout
45411 <cell alignment="left" valignment="top" usebox="none">
45414 \begin_layout Plain Layout
45418 \begin_layout Plain Layout
45431 \begin_layout Plain Layout
45439 \begin_inset Phantom Phantom
45442 \begin_layout Plain Layout
45452 \begin_layout Plain Layout
45464 <cell alignment="left" valignment="top" usebox="none">
45467 \begin_layout Plain Layout
45471 \begin_layout Plain Layout
45484 \begin_layout Plain Layout
45492 \begin_inset Phantom Phantom
45495 \begin_layout Plain Layout
45505 \begin_layout Plain Layout
45517 <cell alignment="left" valignment="top" usebox="none">
45520 \begin_layout Plain Layout
45524 \begin_layout Plain Layout
45537 \begin_layout Plain Layout
45545 \begin_inset Phantom Phantom
45548 \begin_layout Plain Layout
45558 \begin_layout Plain Layout
45570 <cell alignment="left" valignment="top" usebox="none">
45573 \begin_layout Plain Layout
45577 \begin_layout Plain Layout
45590 \begin_layout Plain Layout
45598 \begin_inset Phantom Phantom
45601 \begin_layout Plain Layout
45611 \begin_layout Plain Layout
45625 <cell alignment="left" valignment="top" usebox="none">
45628 \begin_layout Plain Layout
45632 \begin_layout Plain Layout
45645 \begin_layout Plain Layout
45653 \begin_inset Phantom Phantom
45656 \begin_layout Plain Layout
45666 \begin_layout Plain Layout
45678 <cell alignment="left" valignment="top" usebox="none">
45681 \begin_layout Plain Layout
45685 \begin_layout Plain Layout
45698 \begin_layout Plain Layout
45706 \begin_inset Phantom Phantom
45709 \begin_layout Plain Layout
45719 \begin_layout Plain Layout
45731 <cell alignment="left" valignment="top" usebox="none">
45734 \begin_layout Plain Layout
45738 \begin_layout Plain Layout
45751 \begin_layout Plain Layout
45759 \begin_inset Phantom Phantom
45762 \begin_layout Plain Layout
45772 \begin_layout Plain Layout
45784 <cell alignment="left" valignment="top" usebox="none">
45787 \begin_layout Plain Layout
45791 \begin_layout Plain Layout
45804 \begin_layout Plain Layout
45812 \begin_inset Phantom Phantom
45815 \begin_layout Plain Layout
45825 \begin_layout Plain Layout
45839 <cell alignment="left" valignment="top" usebox="none">
45842 \begin_layout Plain Layout
45846 \begin_layout Plain Layout
45859 \begin_layout Plain Layout
45867 \begin_inset Phantom Phantom
45870 \begin_layout Plain Layout
45880 \begin_layout Plain Layout
45892 <cell alignment="left" valignment="top" usebox="none">
45895 \begin_layout Plain Layout
45899 \begin_layout Plain Layout
45912 \begin_layout Plain Layout
45920 \begin_inset Phantom Phantom
45923 \begin_layout Plain Layout
45933 \begin_layout Plain Layout
45945 <cell alignment="left" valignment="top" usebox="none">
45948 \begin_layout Plain Layout
45952 \begin_layout Plain Layout
45965 \begin_layout Plain Layout
45973 \begin_inset Phantom Phantom
45976 \begin_layout Plain Layout
45986 \begin_layout Plain Layout
45998 <cell alignment="left" valignment="top" usebox="none">
46001 \begin_layout Plain Layout
46005 \begin_layout Plain Layout
46018 \begin_layout Plain Layout
46026 \begin_inset Phantom Phantom
46029 \begin_layout Plain Layout
46039 \begin_layout Plain Layout
46053 <cell alignment="left" valignment="top" usebox="none">
46056 \begin_layout Plain Layout
46060 \begin_layout Plain Layout
46073 \begin_layout Plain Layout
46081 \begin_inset Phantom Phantom
46084 \begin_layout Plain Layout
46094 \begin_layout Plain Layout
46106 <cell alignment="left" valignment="top" usebox="none">
46109 \begin_layout Plain Layout
46113 \begin_layout Plain Layout
46126 \begin_layout Plain Layout
46134 \begin_inset Phantom Phantom
46137 \begin_layout Plain Layout
46147 \begin_layout Plain Layout
46159 <cell alignment="left" valignment="top" usebox="none">
46162 \begin_layout Plain Layout
46166 \begin_layout Plain Layout
46179 \begin_layout Plain Layout
46187 \begin_inset Phantom Phantom
46190 \begin_layout Plain Layout
46200 \begin_layout Plain Layout
46212 <cell alignment="left" valignment="top" usebox="none">
46215 \begin_layout Plain Layout
46219 \begin_layout Plain Layout
46232 \begin_layout Plain Layout
46240 \begin_inset Phantom Phantom
46243 \begin_layout Plain Layout
46253 \begin_layout Plain Layout
46267 <cell alignment="left" valignment="top" usebox="none">
46270 \begin_layout Plain Layout
46274 \begin_layout Plain Layout
46287 \begin_layout Plain Layout
46295 \begin_inset Phantom Phantom
46298 \begin_layout Plain Layout
46308 \begin_layout Plain Layout
46320 <cell alignment="left" valignment="top" usebox="none">
46323 \begin_layout Plain Layout
46327 \begin_layout Plain Layout
46340 \begin_layout Plain Layout
46348 \begin_inset Phantom Phantom
46351 \begin_layout Plain Layout
46361 \begin_layout Plain Layout
46373 <cell alignment="left" valignment="top" usebox="none">
46376 \begin_layout Plain Layout
46380 \begin_layout Plain Layout
46393 \begin_layout Plain Layout
46401 \begin_inset Phantom Phantom
46404 \begin_layout Plain Layout
46414 \begin_layout Plain Layout
46426 <cell alignment="left" valignment="top" usebox="none">
46429 \begin_layout Plain Layout
46433 \begin_layout Plain Layout
46446 \begin_layout Plain Layout
46454 \begin_inset Phantom Phantom
46457 \begin_layout Plain Layout
46467 \begin_layout Plain Layout
46481 <cell alignment="left" valignment="top" usebox="none">
46484 \begin_layout Plain Layout
46488 \begin_layout Plain Layout
46501 \begin_layout Plain Layout
46509 \begin_inset Phantom Phantom
46512 \begin_layout Plain Layout
46522 \begin_layout Plain Layout
46534 <cell alignment="left" valignment="top" usebox="none">
46537 \begin_layout Plain Layout
46541 \begin_layout Plain Layout
46554 \begin_layout Plain Layout
46562 \begin_inset Phantom Phantom
46565 \begin_layout Plain Layout
46575 \begin_layout Plain Layout
46587 <cell alignment="left" valignment="top" usebox="none">
46590 \begin_layout Plain Layout
46594 \begin_layout Plain Layout
46607 \begin_layout Plain Layout
46615 \begin_inset Phantom Phantom
46618 \begin_layout Plain Layout
46628 \begin_layout Plain Layout
46640 <cell alignment="left" valignment="top" usebox="none">
46643 \begin_layout Plain Layout
46647 \begin_layout Plain Layout
46660 \begin_layout Plain Layout
46668 \begin_inset Phantom Phantom
46671 \begin_layout Plain Layout
46681 \begin_layout Plain Layout
46695 <cell alignment="left" valignment="top" usebox="none">
46698 \begin_layout Plain Layout
46702 \begin_layout Plain Layout
46715 \begin_layout Plain Layout
46723 \begin_inset Phantom Phantom
46726 \begin_layout Plain Layout
46736 \begin_layout Plain Layout
46748 <cell alignment="left" valignment="top" usebox="none">
46751 \begin_layout Plain Layout
46757 <cell alignment="left" valignment="top" usebox="none">
46760 \begin_layout Plain Layout
46766 <cell alignment="left" valignment="top" usebox="none">
46769 \begin_layout Plain Layout
46783 \begin_layout Chapter
46784 Explanation of Equation
46785 \begin_inset space ~
46789 \begin_inset CommandInset ref
46796 \begin_inset CommandInset label
46798 name "cha:Explanation-of-Equation"
46805 \begin_layout Standard
46806 We can calculate the total width of
46811 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46815 \begin_inset Formula
46817 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46823 \begin_inset Formula $W_{g\,n}$
46826 is the given width of all cells,
46832 is the \SpecialChar LaTeX
46833 -length between the cell text and the cell border (its default value
46835 \begin_inset space \thinspace{}
46845 is the thickness of the cell border line, the default is 0.4
46846 \begin_inset space \thinspace{}
46852 \begin_layout Standard
46854 \begin_inset space ~
46858 \begin_inset CommandInset ref
46860 reference "eq:Wtot_n"
46864 , the total width of a multicolumn
46865 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46869 \begin_inset Formula
46871 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46879 \begin_layout Standard
46880 By setting equation
46881 \begin_inset space ~
46885 \begin_inset CommandInset ref
46887 reference "eq:Wtot_n"
46892 \begin_inset CommandInset ref
46894 reference "eq:Wtot_mult"
46898 equal we can calculate the needed given width
46899 \begin_inset Formula $W_{g\,n}$
46906 columns are spanned, so that each column has a total width of
46907 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46911 \begin_inset Formula
46913 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46921 \begin_layout Bibliography
46922 \begin_inset CommandInset bibitem
46923 LatexCommand bibitem
46924 key "latexcompanion"
46929 Frank Mittelbach and Michel Goossens:
46931 The \SpecialChar LaTeX
46932 Companion Second Edition.
46935 Addison-Wesley, 2004
46938 \begin_layout Bibliography
46939 \begin_inset CommandInset bibitem
46940 LatexCommand bibitem
46946 Helmut Kopka and Patrick W.
46949 A Guide to \SpecialChar LaTeX
46953 Addison-Wesley, 2003
46956 \begin_layout Bibliography
46957 \begin_inset CommandInset bibitem
46958 LatexCommand bibitem
46967 : A Document Preparation System.
46970 Addison-Wesley, second edition, 1994
46973 \begin_layout Bibliography
46974 \begin_inset CommandInset bibitem
46975 LatexCommand bibitem
46981 Documentation of the \SpecialChar LaTeX
46985 \begin_inset CommandInset href
46988 target "https://www.ctan.org/tex-archive/macros/latex/contrib//arydshln/arydshln.pdf"
46996 \begin_inset Index idx
46999 \begin_layout Plain Layout
47001 -packages ! arydshln
47009 \begin_layout Bibliography
47010 \begin_inset CommandInset bibitem
47011 LatexCommand bibitem
47017 Documentation of the \SpecialChar LaTeX
47021 \begin_inset CommandInset href
47024 target "https://www.ctan.org/tex-archive/macros/latex/contrib//booktabs/booktabs.pdf"
47032 \begin_inset Index idx
47035 \begin_layout Plain Layout
47037 -packages ! booktabs
47045 \begin_layout Bibliography
47046 \begin_inset CommandInset bibitem
47047 LatexCommand bibitem
47053 Documentation of the \SpecialChar LaTeX
47057 \begin_inset CommandInset href
47060 target "https://www.ctan.org/tex-archive/macros/latex/contrib/caption/caption-eng.pdf"
47068 \begin_inset Index idx
47071 \begin_layout Plain Layout
47073 -packages ! caption
47081 \begin_layout Bibliography
47082 \begin_inset CommandInset bibitem
47083 LatexCommand bibitem
47089 Documentation of the \SpecialChar LaTeX
47093 \begin_inset CommandInset href
47096 target "https://www.ctan.org/tex-archive/macros/latex/contrib//diagbox/diagbox.pdf"
47104 \begin_inset Index idx
47107 \begin_layout Plain Layout
47109 -packages ! diagbox
47117 \begin_layout Bibliography
47118 \begin_inset CommandInset bibitem
47119 LatexCommand bibitem
47125 Documentation of the \SpecialChar LaTeX
47129 \begin_inset CommandInset href
47132 target "https://www.ctan.org/tex-archive/macros/latex/contrib//endfloat/endfloat.pdf"
47140 \begin_inset Index idx
47143 \begin_layout Plain Layout
47145 -packages ! endfloat
47153 \begin_layout Bibliography
47154 \begin_inset CommandInset bibitem
47155 LatexCommand bibitem
47161 Documentation of the \SpecialChar LaTeX
47165 \begin_inset CommandInset href
47168 target "https://www.ctan.org/tex-archive/macros/latex/contrib//footmisc/footmisc.pdf"
47176 \begin_inset Index idx
47179 \begin_layout Plain Layout
47181 -packages ! footmisc
47189 \begin_layout Bibliography
47190 \begin_inset CommandInset bibitem
47191 LatexCommand bibitem
47197 Documentation of the \SpecialChar LaTeX
47201 \begin_inset CommandInset href
47204 target "https://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
47212 \begin_inset Index idx
47215 \begin_layout Plain Layout
47217 -packages ! hyperref
47225 \begin_layout Bibliography
47226 \begin_inset CommandInset bibitem
47227 LatexCommand bibitem
47233 Documentation of the \SpecialChar LaTeX
47237 \begin_inset CommandInset href
47240 target "https://www.ctan.org/tex-archive/macros/latex/contrib//hyperref/hyperref.pdf"
47248 \begin_inset Index idx
47251 \begin_layout Plain Layout
47253 -packages ! hyperref
47261 \begin_layout Bibliography
47262 \begin_inset CommandInset bibitem
47263 LatexCommand bibitem
47269 Documentation of the \SpecialChar LaTeX
47273 \begin_inset CommandInset href
47276 target "https://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
47284 \begin_inset Index idx
47287 \begin_layout Plain Layout
47289 -packages ! KOMA-Script
47297 \begin_layout Bibliography
47298 \begin_inset CommandInset bibitem
47299 LatexCommand bibitem
47305 Documentation of the \SpecialChar LaTeX
47309 \begin_inset CommandInset href
47312 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/lettrine.pdf"
47320 \begin_inset CommandInset href
47323 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/demo.pdf"
47329 \begin_inset Index idx
47332 \begin_layout Plain Layout
47334 -packages ! lettrine
47342 \begin_layout Bibliography
47343 \begin_inset CommandInset bibitem
47344 LatexCommand bibitem
47350 Documentation of the \SpecialChar LaTeX
47354 \begin_inset CommandInset href
47357 target "https://www.ctan.org/tex-archive/macros/latex/contrib//listings/listings.pdf"
47365 \begin_inset Index idx
47368 \begin_layout Plain Layout
47370 -packages ! listings
47378 \begin_layout Bibliography
47379 \begin_inset CommandInset bibitem
47380 LatexCommand bibitem
47386 Documentation of the \SpecialChar LaTeX
47390 \begin_inset CommandInset href
47393 target "https://www.ctan.org/tex-archive/macros/latex/contrib//minted/minted.pdf"
47401 \begin_inset Index idx
47404 \begin_layout Plain Layout
47414 \begin_layout Bibliography
47415 \begin_inset CommandInset bibitem
47416 LatexCommand bibitem
47422 Documentation of the \SpecialChar LaTeX
47426 \begin_inset CommandInset href
47429 target "https://www.ctan.org/tex-archive/macros/latex/contrib//marginnote/marginnote.pdf"
47437 \begin_inset Index idx
47440 \begin_layout Plain Layout
47442 -packages ! marginnote
47450 \begin_layout Bibliography
47451 \begin_inset CommandInset bibitem
47452 LatexCommand bibitem
47458 Documentation of the \SpecialChar LaTeX
47462 \begin_inset CommandInset href
47465 target "https://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47473 \begin_inset Index idx
47476 \begin_layout Plain Layout
47478 -packages ! pdfpages
47486 \begin_layout Bibliography
47487 \begin_inset CommandInset bibitem
47488 LatexCommand bibitem
47494 Documentation of the \SpecialChar LaTeX
47498 \begin_inset CommandInset href
47501 target "https://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47509 \begin_inset Index idx
47512 \begin_layout Plain Layout
47514 -packages ! prettyref
47522 \begin_layout Bibliography
47523 \begin_inset CommandInset bibitem
47524 LatexCommand bibitem
47530 Web page of the \SpecialChar LaTeX
47534 \begin_inset CommandInset href
47537 target "http://tug.org/PSTricks/"
47545 \begin_inset Index idx
47548 \begin_layout Plain Layout
47550 -packages ! PSTricks
47558 \begin_layout Bibliography
47559 \begin_inset CommandInset bibitem
47560 LatexCommand bibitem
47566 Documentation of the \SpecialChar LaTeX
47570 \begin_inset CommandInset href
47573 target "https://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47581 \begin_inset Index idx
47584 \begin_layout Plain Layout
47586 -packages ! refstyle
47594 \begin_layout Bibliography
47595 \begin_inset CommandInset bibitem
47596 LatexCommand bibitem
47602 Documentation of the \SpecialChar LaTeX
47606 \begin_inset CommandInset href
47609 target "https://www.ctan.org/tex-archive/macros/latex/contrib//sidecap/sidecap.pdf"
47617 \begin_inset Index idx
47620 \begin_layout Plain Layout
47622 -packages ! sidecap
47630 \begin_layout Bibliography
47631 \begin_inset CommandInset bibitem
47632 LatexCommand bibitem
47638 Documentation of the option
47639 \begin_inset CommandInset href
47641 name "Omit text in PDF"
47642 target "https://www.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47650 \begin_inset CommandInset href
47653 target "https://inkscape.org"
47661 \begin_layout Standard
47662 \begin_inset CommandInset index_print
47663 LatexCommand printindex