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 false
238 \output_changes false
241 \html_be_strict false
248 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
252 by the \SpecialChar LyX
257 \begin_layout Plain Layout
259 If you have comments or error corrections, please send them to the \SpecialChar LyX
262 \begin_inset CommandInset href
264 name "lyx-docs@lists.lyx.org"
265 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
277 \begin_inset Note Note
280 \begin_layout Plain Layout
287 \begin_inset Newline newline
291 \begin_inset Newline newline
299 \begin_layout Standard
300 \begin_inset CommandInset toc
301 LatexCommand tableofcontents
308 \begin_layout Standard
309 \begin_inset Note Note
312 \begin_layout Plain Layout
313 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
324 diagbox, lettrine, marginnote, picinpar
331 If they are not installed you can export the document anyway but the sections
332 where the packages are required won't appear in the output.
335 \begin_layout Plain Layout
336 The latest PDF-version of this document can be found here:
337 \begin_inset Newline newline
342 https://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
350 \begin_layout Chapter
352 \begin_inset Index idx
355 \begin_layout Plain Layout
362 \begin_inset Index idx
365 \begin_layout Plain Layout
370 \begin_layout Plain Layout
381 \begin_layout Plain Layout
396 \begin_layout Section
398 \begin_inset Index idx
401 \begin_layout Plain Layout
402 Figures ! Graphics Dialog
408 \begin_inset CommandInset label
410 name "sec:Graphics-Dialog"
417 \begin_layout Standard
418 To insert an image into your document, place the cursor at the text position
419 you want and click on the toolbar icon
422 arg "dialog-show-new-inset graphics"
427 Insert\SpecialChar menuseparator
431 Then a dialog will appear to choose the file to load.
432 The image will appear in the output exactly at the position where it is
436 \begin_layout Standard
437 The graphics dialog can be called at any time by clicking on an image.
438 This dialog has three tabs:
441 \begin_layout Description
446 Here you can choose an image file and adjust its appearance in the output.
447 The available units for the image size are explained in appendix
452 \begin_inset CommandInset ref
454 reference "cha:Units-available-in"
459 \begin_inset Newline newline
463 \begin_inset Index idx
466 \begin_layout Plain Layout
472 You can rotate images counter-clockwise by setting a rotation angle and
474 The image will also be rotated inside \SpecialChar LyX
476 \begin_inset Newline newline
480 \begin_inset Index idx
483 \begin_layout Plain Layout
489 Images can be scaled by using a percentage value or by setting the width
490 and height explicitly.
491 If you set only the width or only the height, the other size will be determined
493 If you set both, then the image will be transformed to the given size,
494 possibly distorting it.
495 To prevent the image from distortion, use the option
497 Maintain aspect ratio
500 The image will then be scaled so that its width and height don't exceed
501 the specified dimensions.
502 \begin_inset Newline newline
505 Images can be opened in a program of your choice by right-clicking on it
506 and choosing the entry
515 The program can be set for every image format in the file format settings
520 \begin_layout Description
525 Alternatively to the usage of scaling units it is possible to set image
526 coordinates to adjust the height and width of the image in the output.
527 The coordinates can also be calculated automatically by pressing the button
557 will only print the image region within the given coordinates.
558 Normally you don't need to worry about image coordinates and can ignore
562 \begin_layout Description
579 In this tab you can modify the appearance of the image within \SpecialChar LyX
580 and \SpecialChar LaTeX
582 can specify additional \SpecialChar LaTeX
584 \begin_inset Newline newline
595 makes the image appear in the output only as a frame with the size of the
597 \begin_inset Newline newline
608 you can define or join an image settings group.
609 \begin_inset Index idx
612 \begin_layout Plain Layout
613 Figures ! Settings grouping
618 Images within such a group share their settings, so adjusting one image
619 of the group automatically also adjusts all other images of the group in
621 So you can for example change the size for a bunch of images without the
622 need to manually change each of them.
623 Joining an existing group can also be done using the context menu of the
624 image by checking the name of the desired group.
627 \begin_layout Standard
628 \begin_inset VSpace bigskip
634 \begin_layout Standard
635 This is an example image in PDF format
639 \begin_layout Plain Layout
640 Image formats are explained in section
645 \begin_inset CommandInset ref
647 reference "sec:Image-Formats"
656 within a separate, horizontally centered paragraph:
659 \begin_layout Standard
661 \begin_inset Graphics
662 filename clipart/2D-intensity-plot.pdf
671 \begin_layout Standard
672 This is the same image like the one above but in draft mode:
675 \begin_layout Standard
677 \begin_inset Graphics
678 filename clipart/2D-intensity-plot.pdf
688 \begin_layout Standard
689 \begin_inset Newpage newpage
695 \begin_layout Section
697 \begin_inset CommandInset label
699 name "sec:Figure-Floats"
704 \begin_inset Index idx
707 \begin_layout Plain Layout
714 \begin_inset Index idx
717 \begin_layout Plain Layout
726 \begin_layout Standard
727 For general explanations about floats, have a look at section
732 \begin_inset CommandInset ref
734 reference "sec:FloatIntroduction"
741 \begin_layout Standard
745 arg "float-insert figure"
750 Insert\SpecialChar menuseparator
751 Float\SpecialChar menuseparator
754 inserts a float with a caption that has the label
755 \begin_inset Quotes eld
763 \begin_inset Quotes erd
766 (# is the actual number).
767 You can insert the image above the caption, like in Figure
772 \begin_inset CommandInset ref
774 reference "fig:A-star-in"
778 or below the caption, like in Figure
783 \begin_inset CommandInset ref
785 reference "fig:A-3D-object"
790 More about caption placement is described in section
795 \begin_inset CommandInset ref
797 reference "sec:Caption-Placement"
804 \begin_layout Standard
805 \begin_inset Float figure
810 \begin_layout Plain Layout
812 \begin_inset Graphics
813 filename clipart/Star-structure.pdf
824 \begin_layout Plain Layout
825 \begin_inset Caption Standard
827 \begin_layout Plain Layout
828 \begin_inset CommandInset label
847 \begin_layout Standard
848 \begin_inset Float figure
853 \begin_layout Plain Layout
854 \begin_inset Caption Standard
856 \begin_layout Plain Layout
857 \begin_inset CommandInset label
859 name "fig:A-3D-object"
871 \begin_layout Plain Layout
873 \begin_inset Graphics
874 filename clipart/3D-structure-distort.pdf
890 \begin_layout Standard
891 \begin_inset Index idx
894 \begin_layout Plain Layout
895 References ! to Figures
905 \begin_inset CommandInset ref
907 reference "fig:A-star-in"
912 \begin_inset CommandInset ref
914 reference "fig:A-3D-object"
918 are examples of referenced figures.
919 Figures can be referenced in the text by referencing their label.
920 To do this insert a label in the caption using the menu
922 Insert\SpecialChar menuseparator
925 or the toolbar button
932 You can now refer to the label using the menu
934 Insert\SpecialChar menuseparator
941 or the toolbar button
944 arg "dialog-show-new-inset ref"
948 It is important to use references to floats, rather than using vague references
950 \begin_inset Quotes eld
954 \begin_inset Quotes erd
957 , because \SpecialChar LaTeX
958 will reposition the floats in the final document and it might
960 \begin_inset Quotes eld
964 \begin_inset Quotes erd
968 \begin_inset Newline newline
971 Referencing is explained in detail in section
976 \begin_inset CommandInset ref
978 reference "sec:Referencing-Floats"
985 \begin_layout Standard
986 Normally only one image is inserted to a figure float, but sometimes you
987 might want to use two images with separate subcaptions.
988 This can be done by inserting image floats into existing image floats.
989 Note that only the main caption of the float is added to the List of Figures.
995 \begin_inset CommandInset ref
997 reference "fig:Two-distorted-images"
1001 is an example of a figure float with two images set side by side.
1002 You can also set the images one below the other.
1004 \begin_inset space ~
1008 \begin_inset CommandInset ref
1010 reference "fig:Pink-object"
1015 \begin_inset CommandInset ref
1017 reference "fig:A-star"
1024 \begin_layout Standard
1025 \begin_inset Float figure
1030 \begin_layout Plain Layout
1031 \begin_inset space \hfill{}
1035 \begin_inset Float figure
1040 \begin_layout Plain Layout
1041 \begin_inset Caption Standard
1043 \begin_layout Plain Layout
1044 \begin_inset CommandInset label
1046 name "fig:Pink-object"
1058 \begin_layout Plain Layout
1059 \begin_inset Graphics
1060 filename clipart/3D-structure-distort.pdf
1073 \begin_inset space \hfill{}
1077 \begin_inset Float figure
1082 \begin_layout Plain Layout
1083 \begin_inset Caption Standard
1085 \begin_layout Plain Layout
1086 \begin_inset CommandInset label
1100 \begin_layout Plain Layout
1101 \begin_inset Graphics
1102 filename clipart/Star-structure.pdf
1115 \begin_inset space \hfill{}
1121 \begin_layout Plain Layout
1122 \begin_inset Caption Standard
1124 \begin_layout Plain Layout
1125 \begin_inset CommandInset label
1127 name "fig:Two-distorted-images"
1131 Two distorted images.
1132 Both images are in the image settings group named
1133 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1153 \begin_layout Standard
1154 \begin_inset Newpage newpage
1160 \begin_layout Section
1162 \begin_inset CommandInset label
1164 name "sec:Image-Formats"
1169 \begin_inset Index idx
1172 \begin_layout Plain Layout
1179 \begin_inset Index idx
1182 \begin_layout Plain Layout
1183 Figures ! Image Formats
1191 \begin_layout Standard
1192 You can insert images in any known file format.
1193 But as explained in appendix
1194 \begin_inset space ~
1198 \begin_inset CommandInset ref
1200 reference "cha:Output-File-Formats"
1204 , each output document format allows only a few image formats.
1206 uses therefore the program
1210 in the background to convert the images to the right format.
1211 To increase your work flow by avoiding these conversions in the background,
1212 you could choose to use only the image formats that can directly be embedded
1213 in the output file format.
1214 The output file formats are explained in appendix
1215 \begin_inset space ~
1219 \begin_inset CommandInset ref
1221 reference "cha:Output-File-Formats"
1228 \begin_layout Standard
1229 Similar to fonts there are two types of image formats:
1232 \begin_layout Description
1234 \begin_inset space ~
1237 images consist of pixel values, often in a compressed form.
1238 They are therefore not fully scalable and look pixelated in large zooms.
1239 Well-known bitmap image formats are
1240 \begin_inset Quotes eld
1243 Graphics Interchange Format
1244 \begin_inset Quotes erd
1247 (GIF, file extension
1248 \begin_inset Quotes eld
1256 \begin_inset Quotes erd
1260 \begin_inset Index idx
1263 \begin_layout Plain Layout
1268 \begin_layout Plain Layout
1279 \begin_layout Plain Layout
1292 \begin_inset Quotes eld
1295 Portable Network Graphics
1296 \begin_inset Quotes erd
1299 (PNG, file extension
1300 \begin_inset Quotes eld
1308 \begin_inset Quotes erd
1312 \begin_inset Index idx
1315 \begin_layout Plain Layout
1320 \begin_layout Plain Layout
1331 \begin_layout Plain Layout
1344 \begin_inset Quotes eld
1347 Joint Photographic Experts Group
1348 \begin_inset Quotes erd
1351 (JPG, file extension
1352 \begin_inset Quotes eld
1360 \begin_inset Quotes erd
1364 \begin_inset Quotes eld
1372 \begin_inset Quotes erd
1376 \begin_inset Index idx
1379 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1395 \begin_layout Plain Layout
1410 \begin_layout Description
1412 \begin_inset space ~
1415 images consist of vectors and can therefore be scaled to any size without
1417 The scaling ability is necessary if you want to create presentations, because
1418 presentations are always scaled by the video projector.
1419 Scaling is also useful for online documents to let the user zoom into diagrams.
1420 \begin_inset Newline newline
1423 Well-known scalable image formats are
1424 \begin_inset Quotes eld
1427 Scalable Vector Graphics
1428 \begin_inset Quotes erd
1431 (SVG, file extension
1432 \begin_inset Quotes eld
1440 \begin_inset Quotes erd
1444 \begin_inset Index idx
1447 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1463 \begin_layout Plain Layout
1476 \begin_inset Quotes eld
1479 Encapsulated PostScript
1480 \begin_inset Quotes erd
1483 (EPS, file extension
1484 \begin_inset Quotes eld
1492 \begin_inset Quotes erd
1496 \begin_inset Index idx
1499 \begin_layout Plain Layout
1504 \begin_layout Plain Layout
1515 \begin_layout Plain Layout
1528 \begin_inset Quotes eld
1531 Portable Document Format
1532 \begin_inset Quotes erd
1535 (PDF, file extension
1536 \begin_inset Quotes eld
1544 \begin_inset Quotes erd
1548 \begin_inset Index idx
1551 \begin_layout Plain Layout
1558 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1565 (WMF, file extension
1566 \begin_inset Quotes eld
1574 \begin_inset Quotes erd
1578 \begin_inset Index idx
1581 \begin_layout Plain Layout
1586 \begin_layout Plain Layout
1597 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 , because you can convert any bitmap image to a PDF or EPS-image and the
1619 result will still be a bitmap image.
1620 In such cases only a header with the image properties is added to the original
1625 \begin_layout Plain Layout
1626 In the case of PDF, the original image is additionally compressed.
1632 The PDF-files generated by
1636 are for example bitmap images.
1639 \begin_layout Standard
1640 Normally it is not possible to convert a bitmap image into a scalable one,
1642 Only the image formats PDF and EPS can directly be embedded to PDF and
1643 PostScript output files, respectively.
1644 SVG and WMF-images are recalculated to bitmaps when the output file is
1645 generated because there is currently no adequate WMF/SVG
1646 \begin_inset Formula $\to$
1649 PDF/EPS converter available.
1652 \begin_layout Chapter
1654 \begin_inset Index idx
1657 \begin_layout Plain Layout
1666 \begin_layout Section
1668 \begin_inset Index idx
1671 \begin_layout Plain Layout
1672 Table ! Introduction
1680 \begin_layout Standard
1681 You can insert a table using either the toolbar button
1684 arg "tabular-insert"
1689 Insert\SpecialChar menuseparator
1693 The toolbar button offers you a graphical selection: move the mouse to
1694 set the column/row number of the table that should be created and then
1695 press a mouse button.
1696 When you use the menu to create a table, a dialog will appear, asking you
1697 for the number of rows and columns.
1698 \begin_inset Newline newline
1701 The default table has lines around any cell and the first row appears separated
1702 from the rest of the table.
1703 This separation occurs due to a double line: The cells of the first row
1704 have a line below them and the cells of the second row have a line above
1706 Here is an example table:
1709 \begin_layout Standard
1711 \begin_inset Tabular
1712 <lyxtabular version="3" rows="4" columns="4">
1713 <features tabularvalignment="middle">
1714 <column alignment="center" valignment="top">
1715 <column alignment="center" valignment="top">
1716 <column alignment="center" valignment="top">
1717 <column alignment="center" valignment="top">
1719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1722 \begin_layout Plain Layout
1728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1731 \begin_layout Plain Layout
1746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1749 \begin_layout Plain Layout
1755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1758 \begin_layout Plain Layout
1766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1769 \begin_layout Plain Layout
1784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1787 \begin_layout Plain Layout
1793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1796 \begin_layout Plain Layout
1802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1805 \begin_layout Plain Layout
1813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1816 \begin_layout Plain Layout
1831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1834 \begin_layout Plain Layout
1840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1843 \begin_layout Plain Layout
1849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1852 \begin_layout Plain Layout
1860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1863 \begin_layout Plain Layout
1878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1881 \begin_layout Plain Layout
1887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1890 \begin_layout Plain Layout
1896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1899 \begin_layout Plain Layout
1913 \begin_layout Section
1915 \begin_inset Index idx
1918 \begin_layout Plain Layout
1927 \begin_layout Standard
1928 You can alter a table by clicking on it with the right mouse button, which
1929 brings up the context menu.
1930 Under the menu entry
1934 you can adjust the settings of that cell and row/column respectively where
1935 the cursor is currently placed.
1938 More\SpecialChar menuseparator
1941 opens the table dialog where you can adjust more things.
1942 Most of the dialog options also work on selections.
1943 This means if you select more cells, columns or rows, the action is done
1944 for the whole selection.
1945 Note that there is a difference between selecting the
1949 of the cell, and the cell itself.
1950 \begin_inset Newline newline
1953 With the dialog option
1956 \begin_inset space ~
1961 every change you make in the dialog is directly applied.
1962 If you move the cursor to another table cell the dialog will then also
1963 be updated with the parameters of the new cell.
1964 If you change length values in the dialog you must press
1968 to get the change applied.
1969 \begin_inset Newline newline
1972 You can alter tables with the following tabs of the table dialog:
1975 \begin_layout Description
1977 \begin_inset space ~
1980 Settings Here you can set the table width
1981 \begin_inset Index idx
1984 \begin_layout Plain Layout
1990 , and the horizontal alignment and the width of the current column.
1994 \begin_inset space ~
1998 \begin_inset space ~
2003 is described in section
2004 \begin_inset space ~
2008 \begin_inset CommandInset ref
2010 reference "subsec:Special-Cell-Alignment"
2015 When you have set a width you can also adjust the vertical alignment of
2017 A given width will allow the cell to have line breaks and multiple paragraphs
2019 \begin_inset space \thinspace{}
2023 \begin_inset CommandInset ref
2025 reference "subsec:Multiple-Lines-in"
2030 If you set no width, the column is as wide as the content of its widest
2032 \begin_inset Newline newline
2035 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2037 \begin_inset space \thinspace{}
2041 \begin_inset CommandInset ref
2043 reference "subsec:Multicolumns"
2047 or the cells of one column as multirow cell, see sec.
2048 \begin_inset space \thinspace{}
2052 \begin_inset CommandInset ref
2054 reference "subsec:Multirows"
2059 \begin_inset Newline newline
2062 The rotate check boxes rotate the current cell, a selection, or the whole
2063 table counter-clockwise by 90
2064 \begin_inset space \thinspace{}
2068 The rotation is not shown within \SpecialChar LyX
2069 , only in the output.
2070 For more information see sec.
2071 \begin_inset space \thinspace{}
2075 \begin_inset CommandInset ref
2077 reference "sec:Rotated-Table-Cells"
2082 \begin_inset Newline newline
2086 \begin_inset Note Greyedout
2089 \begin_layout Plain Layout
2094 Not all DVI-viewers are able to display rotations.
2100 \begin_inset Newline newline
2103 The table-wide vertical alignment is used for tables within text lines:
2104 \begin_inset Newline newline
2107 A line with tables with different alignments:
2108 \begin_inset Tabular
2109 <lyxtabular version="3" rows="2" columns="2">
2110 <features tabularvalignment="top">
2111 <column alignment="center" valignment="top" width="0pt">
2112 <column alignment="center" valignment="top">
2114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2117 \begin_layout Plain Layout
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2126 \begin_layout Plain Layout
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Plain Layout
2161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2164 \begin_layout Plain Layout
2176 \begin_inset Tabular
2177 <lyxtabular version="3" rows="2" columns="2">
2178 <features tabularvalignment="middle">
2179 <column alignment="center" valignment="top">
2180 <column alignment="center" valignment="top">
2182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2185 \begin_layout Plain Layout
2191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2194 \begin_layout Plain Layout
2211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2214 \begin_layout Plain Layout
2229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2232 \begin_layout Plain Layout
2244 \begin_inset Tabular
2245 <lyxtabular version="3" rows="2" columns="2">
2246 <features tabularvalignment="bottom">
2247 <column alignment="center" valignment="top" width="0pt">
2248 <column alignment="center" valignment="top">
2250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2253 \begin_layout Plain Layout
2259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2262 \begin_layout Plain Layout
2279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2282 \begin_layout Plain Layout
2297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2300 \begin_layout Plain Layout
2312 \begin_inset Newline newline
2315 It is also possible to enter a \SpecialChar LaTeX
2316 -argument which is needed for special table
2317 formattings, see sec.
2318 \begin_inset space \thinspace{}
2322 \begin_inset CommandInset ref
2324 reference "subsec:Multicolumn-Calculations"
2329 \begin_inset CommandInset ref
2331 reference "sec:Colored-Tables"
2338 \begin_layout Description
2339 Borders In this tab you can add and delete border lines for the current
2341 \begin_inset Newline newline
2344 Using the style option
2348 will convert the table to a formal table as described in sec.
2349 \begin_inset space \thinspace{}
2353 \begin_inset CommandInset ref
2355 reference "sec:Formal-Tables"
2360 \begin_inset Newline newline
2363 You can also add space here to table rows as described in sec.
2364 \begin_inset space \thinspace{}
2368 \begin_inset CommandInset ref
2370 reference "subsec:Row-Spacing"
2377 \begin_layout Description
2379 \begin_inset space ~
2382 table This tab is to make a table a multi-page table that can run over several
2385 \begin_inset space ~
2389 \begin_inset CommandInset ref
2391 reference "sec:Multi-page-Tables"
2396 \begin_inset CommandInset ref
2398 reference "sec:Special-Longtable-Issues"
2402 describe the multi-page table features in detail.
2405 \begin_layout Section
2407 \begin_inset Index idx
2410 \begin_layout Plain Layout
2419 \begin_layout Standard
2420 The table toolbar is an alternative to the table dialog to be able to alter
2422 It should normally appear at the bottom of \SpecialChar LyX
2423 's main window when the cursor
2425 You can alternatively switch it on to appear always, by right-clicking
2430 \begin_layout Standard
2431 The toolbar has the following icons:
2434 \begin_layout Labeling
2435 \labelwidthstring 00.00.0000
2438 arg "tabular-feature append-row"
2441 adds a row below the current cell or selection
2444 \begin_layout Labeling
2445 \labelwidthstring 00.00.0000
2448 arg "tabular-feature append-column"
2451 adds a column right beside the current cell or selection
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2458 arg "tabular-feature delete-row"
2461 deletes the current row or selection
2464 \begin_layout Labeling
2465 \labelwidthstring 00.00.0000
2468 arg "tabular-feature delete-column"
2471 deletes the current column or selection
2474 \begin_layout Labeling
2475 \labelwidthstring 00.00.0000
2478 arg "tabular-feature move-row-up"
2484 \begin_layout Labeling
2485 \labelwidthstring 00.00.0000
2488 arg "tabular-feature move-column-left"
2491 moves the column to the left
2494 \begin_layout Labeling
2495 \labelwidthstring 00.00.0000
2498 arg "tabular-feature move-row-down"
2504 \begin_layout Labeling
2505 \labelwidthstring 00.00.0000
2508 arg "tabular-feature move-column-right"
2511 moves the column to the right
2514 \begin_layout Labeling
2515 \labelwidthstring 00.00.0000
2518 arg "tabular-feature toggle-line-top"
2521 adds a line at the top of the current cell / row or of a selection
2524 \begin_layout Labeling
2525 \labelwidthstring 00.00.0000
2528 arg "tabular-feature toggle-line-bottom"
2531 adds a line at the bottom of the current cell / row or of a selection
2534 \begin_layout Labeling
2535 \labelwidthstring 00.00.0000
2538 arg "tabular-feature toggle-line-left"
2541 adds a line at the left side of the current cell / row or of a selection
2544 \begin_layout Labeling
2545 \labelwidthstring 00.00.0000
2548 arg "tabular-feature toggle-line-right"
2551 adds a line at the right side of the current cell / row or of a selection
2554 \begin_layout Labeling
2555 \labelwidthstring 00.00.0000
2558 arg "tabular-feature set-all-lines"
2561 adds lines around the current or selected cells - if the current cell is
2562 not a multicolumn cell this also affects the current row and column
2565 \begin_layout Labeling
2566 \labelwidthstring 00.00.0000
2569 arg "tabular-feature unset-all-lines"
2572 deletes all lines of the current or selected cells - if the current cell
2573 is not a multicolumn cell this also affects the current row and column
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2580 arg "tabular-feature m-align-left"
2583 left-aligns the content of the current cell / column
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2590 arg "tabular-feature m-align-center"
2593 centers the content of the current cell / column horizontally
2596 \begin_layout Labeling
2597 \labelwidthstring 00.00.0000
2600 arg "tabular-feature m-align-right"
2603 right-aligns the content of the current cell / column
2606 \begin_layout Labeling
2607 \labelwidthstring 00.00.0000
2610 arg "tabular-feature align-decimal"
2613 aligns the content of the current column at a character
2616 \begin_layout Labeling
2617 \labelwidthstring 00.00.0000
2620 arg "tabular-feature m-valign-top"
2623 aligns the content of the current cell vertically to the top
2626 \begin_layout Labeling
2627 \labelwidthstring 00.00.0000
2630 arg "tabular-feature m-valign-middle"
2633 centers the content of the current cell vertically
2636 \begin_layout Labeling
2637 \labelwidthstring 00.00.0000
2640 arg "tabular-feature m-valign-bottom"
2643 aligns the content of the current cell vertically to the bottom
2646 \begin_layout Labeling
2647 \labelwidthstring 00.00.0000
2650 arg "tabular-feature set-rotate-cell"
2653 rotates the current cell or selection counter-clockwise by 90°
2656 \begin_layout Labeling
2657 \labelwidthstring 00.00.0000
2660 arg "tabular-feature set-rotate-tabular"
2663 rotates the whole table counter-clockwise by 90°
2666 \begin_layout Labeling
2667 \labelwidthstring 00.00.0000
2670 arg "tabular-feature multicolumn"
2673 sets the current cell or selection as a multicolumn
2676 \begin_layout Labeling
2677 \labelwidthstring 00.00.0000
2680 arg "tabular-feature multirow"
2683 sets the current cell or selection as a multirow
2686 \begin_layout Standard
2687 \begin_inset Note Greyedout
2690 \begin_layout Plain Layout
2695 For the output the vertical alignment of the first cell in a row is used
2696 for all following cells in the row.
2704 \begin_layout Section
2706 \begin_inset Index idx
2709 \begin_layout Plain Layout
2718 \begin_layout Standard
2719 In addition to the table dialog and toolbar, the menu
2721 Edit\SpecialChar menuseparator
2724 allows you to add and delete border lines for the current row/column and
2725 to set the current selection as multicolumn.
2726 The menu is only available when the cursor is inside a table.
2729 \begin_layout Section
2731 \begin_inset CommandInset label
2733 name "sec:Table-Floats"
2738 \begin_inset Index idx
2741 \begin_layout Plain Layout
2748 \begin_inset Index idx
2751 \begin_layout Plain Layout
2760 \begin_layout Standard
2761 For general explanations about floats, have a look at section
2762 \begin_inset space ~
2766 \begin_inset CommandInset ref
2768 reference "sec:FloatIntroduction"
2775 \begin_layout Standard
2776 \begin_inset Float table
2782 \begin_layout Plain Layout
2783 \begin_inset Caption Standard
2785 \begin_layout Plain Layout
2786 \begin_inset CommandInset label
2788 name "tab:a table float"
2800 \begin_layout Plain Layout
2802 \begin_inset Tabular
2803 <lyxtabular version="3" rows="3" columns="3">
2804 <features tabularvalignment="middle">
2805 <column alignment="center" valignment="top" width="0pt">
2806 <column alignment="center" valignment="top" width="0pt">
2807 <column alignment="center" valignment="top" width="0pt">
2809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2812 \begin_layout Plain Layout
2827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2830 \begin_layout Plain Layout
2845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2848 \begin_layout Plain Layout
2865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2868 \begin_layout Plain Layout
2883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2886 \begin_layout Plain Layout
2901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2904 \begin_layout Plain Layout
2921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2924 \begin_layout Plain Layout
2934 \begin_inset Formula $\int x^{2}dx$
2942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2945 \begin_layout Plain Layout
2955 \begin_inset Formula $\left[\begin{array}{cc}
2966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2969 \begin_layout Plain Layout
2979 \begin_inset Formula $1+1=2$
3000 \begin_layout Standard
3001 Table floats can be inserted using the menu
3003 Insert\SpecialChar menuseparator
3004 Float\SpecialChar menuseparator
3007 or the toolbar button
3010 arg "float-insert table"
3016 \begin_layout Standard
3017 The float appears as a collapsible box with a caption that has the label
3019 \begin_inset Quotes eld
3023 \begin_inset space ~
3027 \begin_inset Quotes erd
3030 (# is the actual table number).
3031 You can insert tables in the float above or below the caption.
3034 \begin_layout Standard
3036 \begin_inset space ~
3040 \begin_inset CommandInset ref
3042 reference "tab:a table float"
3046 is an example table within a table float.
3049 \begin_layout Standard
3050 Having the caption above the table is the common rule that is unfortunately
3051 not supported in \SpecialChar LaTeX
3052 's standard classes.
3053 This means that, if you are using the document classes
3069 , there will be no space between the caption and the table.
3070 To insert the needed space, add the following option to the load command
3071 of the \SpecialChar LaTeX
3077 \begin_inset Index idx
3080 \begin_layout Plain Layout
3087 in your document preamble:
3091 \begin_layout Plain Layout
3092 For more information have a look at section
3093 \begin_inset space ~
3097 \begin_inset CommandInset ref
3099 reference "sec:Caption-Placement"
3111 \begin_layout Standard
3117 \begin_layout Standard
3122 , which is described in section
3123 \begin_inset space ~
3127 \begin_inset CommandInset ref
3129 reference "sec:Caption-Formatting"
3133 , is used to adjust the caption format.
3136 \begin_layout Standard
3137 \begin_inset Index idx
3140 \begin_layout Plain Layout
3141 References ! to Tables
3146 Tables can be cross-referenced in the text by referencing their label.
3147 To do this insert a label in the caption using the menu
3149 Insert\SpecialChar menuseparator
3152 or the toolbar button
3159 You can now refer to the label using the menu
3161 Insert\SpecialChar menuseparator
3163 \begin_inset space ~
3168 or the toolbar button
3171 arg "dialog-show-new-inset ref"
3175 \begin_inset Newline newline
3178 Referencing is explained in detail in section
3179 \begin_inset space ~
3183 \begin_inset CommandInset ref
3185 reference "sec:Referencing-Floats"
3192 \begin_layout Section
3198 \begin_inset CommandInset label
3200 name "sec:Multi-page-Tables"
3205 \begin_inset Index idx
3208 \begin_layout Plain Layout
3215 \begin_inset Index idx
3218 \begin_layout Plain Layout
3219 Table ! Multi-page Table
3227 \begin_layout Standard
3228 If the table is too long to fit on one page, you can use the option
3231 \begin_inset space ~
3239 \begin_inset space ~
3244 of the table dialog to split the table automatically over more pages.
3245 Doing this enables the following options:
3248 \begin_layout Description
3249 Header: The current row is defined to be a header row that appears on all
3250 pages of the multi-page table; except for the first page, if
3253 \begin_inset space ~
3259 This is therefore called the main header.
3262 \begin_layout Description
3264 \begin_inset space ~
3267 header: The current row is defined to be a header row that appears on the
3268 first page of the multi-page table.
3271 \begin_layout Description
3272 Footer: The current row is defined to be a footer row that appears on all
3273 pages of the multi-page table; except for the last page, if
3276 \begin_inset space ~
3284 \begin_layout Description
3286 \begin_inset space ~
3289 footer: The current row is defined to be a footer row that appears on the
3290 last page of the multi-page table.
3293 \begin_layout Description
3294 Caption: The current row contains the table caption.
3295 The row is reset as single column and a caption is inserted.
3296 More about multi-page table captions is explained in sec.
3297 \begin_inset space \thinspace{}
3301 \begin_inset CommandInset ref
3303 reference "subsec:Multi-page-Table-Captions"
3310 \begin_layout Standard
3311 You can also specify a row where the table is split.
3312 See the following multi-page table to see how it works:
3315 \begin_layout Standard
3317 \begin_inset Tabular
3318 <lyxtabular version="3" rows="69" columns="3">
3319 <features islongtable="true" longtabularalignment="center">
3320 <column alignment="left" valignment="top" width="0cm">
3321 <column alignment="left" valignment="top" width="0pt">
3322 <column alignment="center" valignment="top" width="0pt">
3323 <row endfirsthead="true">
3324 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3327 \begin_layout Plain Layout
3330 Example Phone List (ignore the names)
3335 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3338 \begin_layout Plain Layout
3344 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3347 \begin_layout Plain Layout
3354 <row endfirsthead="true">
3355 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3358 \begin_layout Plain Layout
3366 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3369 \begin_layout Plain Layout
3375 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3378 \begin_layout Plain Layout
3387 <row endhead="true">
3388 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3402 \begin_layout Plain Layout
3408 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3411 \begin_layout Plain Layout
3418 <row endhead="true">
3419 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3433 \begin_layout Plain Layout
3439 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3442 \begin_layout Plain Layout
3451 <row endfoot="true">
3452 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3455 \begin_layout Plain Layout
3456 continued on next page
3461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3464 \begin_layout Plain Layout
3470 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3473 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" usebox="none">
3495 \begin_layout Plain Layout
3501 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3504 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" usebox="none">
3526 \begin_layout Plain Layout
3532 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3535 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" usebox="none">
3557 \begin_layout Plain Layout
3563 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3566 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" usebox="none">
3588 \begin_layout Plain Layout
3594 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3597 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" usebox="none">
3619 \begin_layout Plain Layout
3625 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3628 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" usebox="none">
3650 \begin_layout Plain Layout
3656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3659 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" usebox="none">
3681 \begin_layout Plain Layout
3687 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3690 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" usebox="none">
3712 \begin_layout Plain Layout
3718 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3721 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" usebox="none">
3743 \begin_layout Plain Layout
3749 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3752 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" usebox="none">
3774 \begin_layout Plain Layout
3780 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3783 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" usebox="none">
3805 \begin_layout Plain Layout
3811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3814 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" usebox="none">
3836 \begin_layout Plain Layout
3842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3845 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" usebox="none">
3867 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3876 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" usebox="none">
3898 \begin_layout Plain Layout
3904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3907 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" usebox="none">
3929 \begin_layout Plain Layout
3935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3938 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" usebox="none">
3960 \begin_layout Plain Layout
3966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3969 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" usebox="none">
3991 \begin_layout Plain Layout
3997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4000 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" usebox="none">
4022 \begin_layout Plain Layout
4028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4031 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" usebox="none">
4053 \begin_layout Plain Layout
4059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4062 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" usebox="none">
4084 \begin_layout Plain Layout
4090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4093 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" usebox="none">
4115 \begin_layout Plain Layout
4121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4124 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" usebox="none">
4146 \begin_layout Plain Layout
4152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4155 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell alignment="center" valignment="top" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4186 \begin_layout Plain Layout
4194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4197 \begin_layout Plain Layout
4205 <cell alignment="center" valignment="top" usebox="none">
4208 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4217 \begin_layout Plain Layout
4225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4228 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" usebox="none">
4239 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4248 \begin_layout Plain Layout
4256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4259 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" usebox="none">
4270 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4279 \begin_layout Plain Layout
4287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4290 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" usebox="none">
4301 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4310 \begin_layout Plain Layout
4318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4321 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" usebox="none">
4332 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4341 \begin_layout Plain Layout
4349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4352 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" usebox="none">
4363 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4372 \begin_layout Plain Layout
4380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4383 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" usebox="none">
4394 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4403 \begin_layout Plain Layout
4411 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4414 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4425 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4434 \begin_layout Plain Layout
4442 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4445 \begin_layout Plain Layout
4451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4454 \begin_layout Plain Layout
4460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4463 \begin_layout Plain Layout
4471 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="center" valignment="top" usebox="none">
4485 \begin_layout Plain Layout
4491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4494 \begin_layout Plain Layout
4502 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="center" valignment="top" usebox="none">
4516 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4525 \begin_layout Plain Layout
4533 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="center" valignment="top" usebox="none">
4547 \begin_layout Plain Layout
4553 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4556 \begin_layout Plain Layout
4564 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="center" valignment="top" usebox="none">
4578 \begin_layout Plain Layout
4584 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4587 \begin_layout Plain Layout
4595 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="center" valignment="top" usebox="none">
4609 \begin_layout Plain Layout
4615 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4618 \begin_layout Plain Layout
4626 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="center" valignment="top" usebox="none">
4640 \begin_layout Plain Layout
4646 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4649 \begin_layout Plain Layout
4657 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="center" valignment="top" usebox="none">
4671 \begin_layout Plain Layout
4677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4680 \begin_layout Plain Layout
4688 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="center" valignment="top" usebox="none">
4702 \begin_layout Plain Layout
4708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4711 \begin_layout Plain Layout
4719 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="center" valignment="top" usebox="none">
4733 \begin_layout Plain Layout
4739 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4742 \begin_layout Plain Layout
4750 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="center" valignment="top" usebox="none">
4764 \begin_layout Plain Layout
4770 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4773 \begin_layout Plain Layout
4781 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="center" valignment="top" usebox="none">
4795 \begin_layout Plain Layout
4801 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4804 \begin_layout Plain Layout
4812 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="center" valignment="top" usebox="none">
4826 \begin_layout Plain Layout
4832 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4835 \begin_layout Plain Layout
4843 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="center" valignment="top" usebox="none">
4857 \begin_layout Plain Layout
4863 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4866 \begin_layout Plain Layout
4874 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="center" valignment="top" usebox="none">
4888 \begin_layout Plain Layout
4894 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4897 \begin_layout Plain Layout
4905 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="center" valignment="top" usebox="none">
4919 \begin_layout Plain Layout
4925 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4928 \begin_layout Plain Layout
4936 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="center" valignment="top" usebox="none">
4950 \begin_layout Plain Layout
4956 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4959 \begin_layout Plain Layout
4967 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="center" valignment="top" usebox="none">
4981 \begin_layout Plain Layout
4987 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4990 \begin_layout Plain Layout
4998 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="center" valignment="top" usebox="none">
5012 \begin_layout Plain Layout
5018 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5021 \begin_layout Plain Layout
5029 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="center" valignment="top" usebox="none">
5043 \begin_layout Plain Layout
5049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5052 \begin_layout Plain Layout
5060 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="center" valignment="top" usebox="none">
5074 \begin_layout Plain Layout
5080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5083 \begin_layout Plain Layout
5091 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="center" valignment="top" usebox="none">
5105 \begin_layout Plain Layout
5111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5114 \begin_layout Plain Layout
5122 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="center" valignment="top" usebox="none">
5136 \begin_layout Plain Layout
5142 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5145 \begin_layout Plain Layout
5153 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5156 \begin_layout Plain Layout
5164 <cell alignment="center" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5176 \begin_layout Plain Layout
5184 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5187 \begin_layout Plain Layout
5195 <cell alignment="center" valignment="top" usebox="none">
5198 \begin_layout Plain Layout
5204 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5207 \begin_layout Plain Layout
5215 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5218 \begin_layout Plain Layout
5226 <cell alignment="center" valignment="top" usebox="none">
5229 \begin_layout Plain Layout
5235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5238 \begin_layout Plain Layout
5246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5249 \begin_layout Plain Layout
5257 <cell alignment="center" valignment="top" usebox="none">
5260 \begin_layout Plain Layout
5266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5269 \begin_layout Plain Layout
5277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5280 \begin_layout Plain Layout
5288 <cell alignment="center" valignment="top" usebox="none">
5291 \begin_layout Plain Layout
5297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5300 \begin_layout Plain Layout
5308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5311 \begin_layout Plain Layout
5319 <cell alignment="center" valignment="top" usebox="none">
5322 \begin_layout Plain Layout
5328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5331 \begin_layout Plain Layout
5339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5342 \begin_layout Plain Layout
5350 <cell alignment="center" valignment="top" usebox="none">
5353 \begin_layout Plain Layout
5359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5362 \begin_layout Plain Layout
5370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5373 \begin_layout Plain Layout
5381 <cell alignment="center" valignment="top" usebox="none">
5384 \begin_layout Plain Layout
5390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5393 \begin_layout Plain Layout
5401 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5404 \begin_layout Plain Layout
5412 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5415 \begin_layout Plain Layout
5421 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5424 \begin_layout Plain Layout
5431 <row endlastfoot="true">
5432 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5435 \begin_layout Plain Layout
5441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5444 \begin_layout Plain Layout
5450 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5453 \begin_layout Plain Layout
5468 \begin_layout Plain Layout
5472 addtocounter{table}{-1}
5478 \begin_inset Note Note
5481 \begin_layout Plain Layout
5482 See the first greyed-out note in section
5483 \begin_inset space ~
5487 \begin_inset CommandInset ref
5489 reference "subsec:Multi-page-Table-Captions"
5493 for an explanation of this command.
5501 \begin_layout Subsection
5502 Footnotes in Multi-page tables
5503 \begin_inset CommandInset label
5505 name "subsec:Footnotes-in-Multi-page"
5510 \begin_inset Index idx
5513 \begin_layout Plain Layout
5514 Table ! Multi-page Table ! Footnotes
5522 \begin_layout Standard
5523 Footnotes can be inserted to every Multi-page table cell.
5524 They appear at the bottom of the page where the table cell with the footnote
5527 \begin_inset space ~
5531 \begin_inset CommandInset ref
5533 reference "tab:DiffCaptions"
5537 has for example a footnote.
5540 \begin_layout Subsection
5541 Multi-page Table Alignment
5542 \begin_inset Index idx
5545 \begin_layout Plain Layout
5546 Table ! Multi-page Table ! Alignment
5554 \begin_layout Standard
5555 The horizontal alignment of multi-page tables can be set in the table settings
5557 For left- and right-alignment the table will be directly at the page border.
5558 To add space between the table and the border one has to set the alignment
5559 to center and change the value of the \SpecialChar LaTeX
5572 by inserting this line as \SpecialChar TeX
5573 Code before the multi-page table:
5576 \begin_layout Standard
5586 \begin_layout Standard
5587 The value can have any of the units listed in Table
5588 \begin_inset space ~
5592 \begin_inset CommandInset ref
5594 reference "tab:Units"
5605 controls the horizontal distance from the left page border to the multi-page
5612 the distance from the right side.
5613 The default value for both lengths is
5619 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5623 \begin_layout Standard
5624 The following multi-page table was centered and
5640 \begin_layout Plain Layout
5656 \begin_layout Standard
5657 \begin_inset Tabular
5658 <lyxtabular version="3" rows="5" columns="5">
5659 <features islongtable="true" longtabularalignment="center">
5660 <column alignment="center" valignment="top">
5661 <column alignment="center" valignment="top" width="0pt">
5662 <column alignment="center" valignment="top">
5663 <column alignment="center" valignment="top">
5664 <column alignment="center" valignment="top">
5666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5669 \begin_layout Plain Layout
5675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5678 \begin_layout Plain Layout
5684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5687 \begin_layout Plain Layout
5693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5696 \begin_layout Plain Layout
5702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5705 \begin_layout Plain Layout
5713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5716 \begin_layout Plain Layout
5722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5725 \begin_layout Plain Layout
5731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5734 \begin_layout Plain Layout
5740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5743 \begin_layout Plain Layout
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5752 \begin_layout Plain Layout
5760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5763 \begin_layout Plain Layout
5769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5790 \begin_layout Plain Layout
5796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5799 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5846 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5893 \begin_layout Plain Layout
5908 \begin_layout Plain Layout
5925 \begin_layout Plain Layout
5929 addtocounter{table}{-1}
5935 \begin_inset Note Note
5938 \begin_layout Plain Layout
5939 See the first greyed-out note in section
5940 \begin_inset space ~
5944 \begin_inset CommandInset ref
5946 reference "subsec:Multi-page-Table-Captions"
5950 for an explanation of this command.
5958 \begin_layout Subsection
5959 Multi-page Table Captions
5960 \begin_inset Index idx
5963 \begin_layout Plain Layout
5964 Table ! Multi-page Table ! Captions
5970 \begin_inset CommandInset label
5972 name "subsec:Multi-page-Table-Captions"
5979 \begin_layout Standard
5980 A multi-page table cannot be put into a table float because floats can only
5982 But the caption environment of floats can also be used for multi-page tables
5983 when you use the multi-page table option
5987 as described in sec.
5988 \begin_inset space \thinspace{}
5992 \begin_inset CommandInset ref
5994 reference "sec:Multi-page-Tables"
5999 Only one table row should contain a caption, either a header or a footer
6003 \begin_layout Standard
6004 Here is a short multi-page table to see how it works:
6007 \begin_layout Standard
6008 \begin_inset Tabular
6009 <lyxtabular version="3" rows="6" columns="5">
6010 <features islongtable="true" longtabularalignment="center">
6011 <column alignment="center" valignment="top">
6012 <column alignment="center" valignment="top">
6013 <column alignment="center" valignment="top">
6014 <column alignment="center" valignment="top">
6015 <column alignment="center" valignment="top">
6016 <row endfirsthead="true" caption="true">
6017 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6020 \begin_layout Plain Layout
6021 \begin_inset Caption Standard
6023 \begin_layout Plain Layout
6024 Multi-page table with caption
6025 \begin_inset Argument 1
6028 \begin_layout Plain Layout
6044 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6047 \begin_layout Plain Layout
6053 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6056 \begin_layout Plain Layout
6062 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6065 \begin_layout Plain Layout
6071 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6074 \begin_layout Plain Layout
6082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6085 \begin_layout Plain Layout
6091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6094 \begin_layout Plain Layout
6100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6103 \begin_layout Plain Layout
6109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6112 \begin_layout Plain Layout
6118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6121 \begin_layout Plain Layout
6129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6132 \begin_layout Plain Layout
6138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6141 \begin_layout Plain Layout
6147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6150 \begin_layout Plain Layout
6156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6159 \begin_layout Plain Layout
6165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6168 \begin_layout Plain Layout
6176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6179 \begin_layout Plain Layout
6185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6188 \begin_layout Plain Layout
6194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6197 \begin_layout Plain Layout
6203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6206 \begin_layout Plain Layout
6212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6215 \begin_layout Plain Layout
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6226 \begin_layout Plain Layout
6232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6235 \begin_layout Plain Layout
6241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6244 \begin_layout Plain Layout
6250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6253 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6262 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6282 \begin_layout Plain Layout
6288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6291 \begin_layout Plain Layout
6297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6300 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6309 \begin_layout Plain Layout
6323 \begin_layout Standard
6324 \begin_inset VSpace medskip
6328 \begin_inset Note Greyedout
6331 \begin_layout Plain Layout
6335 \begin_inset space ~
6340 The table number is increased for every multi-page table, even if you did
6341 not set a caption for it.
6342 For this reason you could have the case that e.
6343 \begin_inset space \thinspace{}
6347 \begin_inset space \space{}
6351 \begin_inset space ~
6355 \begin_inset space ~
6358 2.1 in the list of tables if there are two multi-page tables without captions.
6359 To avoid this you can add the following command in \SpecialChar TeX
6360 Code after every multi-page
6361 table without a caption:
6364 \begin_layout Plain Layout
6369 addtocounter{table}{-1}
6372 \begin_layout Plain Layout
6373 This is not needed when none of your multi-page tables has a caption and
6374 you add the following code to the document preamble:
6377 \begin_layout Plain Layout
6387 \begin_inset Newline newline
6398 addtocounter{table}{-1}}
6406 \begin_layout Standard
6407 \begin_inset Note Greyedout
6410 \begin_layout Plain Layout
6414 \begin_inset space ~
6424 \begin_inset Index idx
6427 \begin_layout Plain Layout
6429 -packages ! hyperref
6442 dialog to link cross-references, the link to a multi-page table caption
6443 will always point to the beginning of the document.
6451 \begin_layout Subsubsection
6452 References to multi-page tables
6453 \begin_inset Index idx
6456 \begin_layout Plain Layout
6457 Table ! Multi-page Table ! References
6465 \begin_layout Standard
6466 \begin_inset Tabular
6467 <lyxtabular version="3" rows="6" columns="5">
6468 <features islongtable="true" longtabularalignment="center">
6469 <column alignment="center" valignment="top">
6470 <column alignment="center" valignment="top">
6471 <column alignment="center" valignment="top">
6472 <column alignment="center" valignment="top">
6473 <column alignment="center" valignment="top">
6474 <row endfirsthead="true" caption="true">
6475 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6478 \begin_layout Plain Layout
6479 \begin_inset Caption Standard
6481 \begin_layout Plain Layout
6482 Referenced multi-page table
6483 \begin_inset CommandInset label
6485 name "tab:Referenced-multi-page-table"
6499 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6502 \begin_layout Plain Layout
6508 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6511 \begin_layout Plain Layout
6517 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6520 \begin_layout Plain Layout
6526 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6529 \begin_layout Plain Layout
6537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6540 \begin_layout Plain Layout
6546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6549 \begin_layout Plain Layout
6555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6558 \begin_layout Plain Layout
6564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6567 \begin_layout Plain Layout
6573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6576 \begin_layout Plain Layout
6584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6587 \begin_layout Plain Layout
6593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6596 \begin_layout Plain Layout
6602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6605 \begin_layout Plain Layout
6611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6614 \begin_layout Plain Layout
6620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6623 \begin_layout Plain Layout
6631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6634 \begin_layout Plain Layout
6640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6643 \begin_layout Plain Layout
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Plain Layout
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Plain Layout
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6670 \begin_layout Plain Layout
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6681 \begin_layout Plain Layout
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6690 \begin_layout Plain Layout
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6708 \begin_layout Plain Layout
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6717 \begin_layout Plain Layout
6725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6728 \begin_layout Plain Layout
6734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6737 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6755 \begin_layout Plain Layout
6761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6764 \begin_layout Plain Layout
6778 \begin_layout Standard
6779 To reference a multi-page table, insert a label into the caption.
6782 \begin_layout Standard
6783 This is a reference to Table
6784 \begin_inset space ~
6788 \begin_inset CommandInset ref
6790 reference "tab:Referenced-multi-page-table"
6797 \begin_layout Standard
6798 The caption layout can be set together with all other captions of your document
6799 using the \SpecialChar LaTeX
6805 \begin_inset Index idx
6808 \begin_layout Plain Layout
6816 \begin_inset space ~
6820 \begin_inset CommandInset ref
6822 reference "sec:Caption-Formatting"
6829 \begin_layout Subsubsection
6831 \begin_inset Index idx
6834 \begin_layout Plain Layout
6835 Table ! Multi-page Table ! Caption Width
6843 \begin_layout Standard
6844 The maximal width of caption lines is defined by the length
6851 Its default value is 4
6852 \begin_inset space \thinspace{}
6856 To change it add the following command to your document preamble or as
6858 Code into your document before the multi-page table that should be affected
6861 \begin_layout Standard
6871 \begin_layout Standard
6876 can have one of the units listed in appendix
6877 \begin_inset space ~
6881 \begin_inset CommandInset ref
6883 reference "cha:Units-available-in"
6890 \begin_layout Standard
6891 The following tables show the difference:
6894 \begin_layout Standard
6895 \begin_inset Tabular
6896 <lyxtabular version="3" rows="6" columns="5">
6897 <features islongtable="true" longtabularalignment="center">
6898 <column alignment="center" valignment="top">
6899 <column alignment="center" valignment="top">
6900 <column alignment="center" valignment="top">
6901 <column alignment="center" valignment="top">
6902 <column alignment="center" valignment="top">
6903 <row endfirsthead="true" caption="true">
6904 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6907 \begin_layout Plain Layout
6908 \begin_inset Caption Standard
6910 \begin_layout Plain Layout
6911 Long full title with default width long full title with default width long
6912 full title with default width
6913 \begin_inset Argument 1
6916 \begin_layout Plain Layout
6917 caption with default width
6932 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6935 \begin_layout Plain Layout
6941 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6944 \begin_layout Plain Layout
6950 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6953 \begin_layout Plain Layout
6959 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6962 \begin_layout Plain Layout
6970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6973 \begin_layout Plain Layout
6979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7000 \begin_layout Plain Layout
7006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7009 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7056 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7103 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7197 \begin_layout Plain Layout
7211 \begin_layout Standard
7215 \begin_layout Plain Layout
7227 \begin_inset Tabular
7228 <lyxtabular version="3" rows="6" columns="5">
7229 <features islongtable="true" longtabularalignment="center">
7230 <column alignment="center" valignment="top">
7231 <column alignment="center" valignment="top">
7232 <column alignment="center" valignment="top">
7233 <column alignment="center" valignment="top">
7234 <column alignment="center" valignment="top">
7235 <row endfirsthead="true" caption="true">
7236 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7239 \begin_layout Plain Layout
7240 \begin_inset Caption Standard
7242 \begin_layout Plain Layout
7243 Long full title with width set to 5
7244 \begin_inset space \thinspace{}
7247 cm long full title with width set to 5
7248 \begin_inset space \thinspace{}
7251 cm long full title with width set to 5
7252 \begin_inset space \thinspace{}
7256 \begin_inset Argument 1
7259 \begin_layout Plain Layout
7261 \begin_inset space \thinspace{}
7265 \begin_inset space \thinspace{}
7269 \begin_inset space \thinspace{}
7287 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7290 \begin_layout Plain Layout
7296 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7299 \begin_layout Plain Layout
7305 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7308 \begin_layout Plain Layout
7314 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7317 \begin_layout Plain Layout
7325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7328 \begin_layout Plain Layout
7334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7337 \begin_layout Plain Layout
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Plain Layout
7352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7355 \begin_layout Plain Layout
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7364 \begin_layout Plain Layout
7372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7375 \begin_layout Plain Layout
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7384 \begin_layout Plain Layout
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7393 \begin_layout Plain Layout
7399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7402 \begin_layout Plain Layout
7408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7411 \begin_layout Plain Layout
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7422 \begin_layout Plain Layout
7428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7431 \begin_layout Plain Layout
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Plain Layout
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Plain Layout
7455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7458 \begin_layout Plain Layout
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7469 \begin_layout Plain Layout
7475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7478 \begin_layout Plain Layout
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7487 \begin_layout Plain Layout
7493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7505 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7516 \begin_layout Plain Layout
7522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7525 \begin_layout Plain Layout
7531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7534 \begin_layout Plain Layout
7540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7543 \begin_layout Plain Layout
7549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7552 \begin_layout Plain Layout
7566 \begin_layout Standard
7570 \begin_layout Plain Layout
7584 \begin_layout Standard
7585 \begin_inset Note Greyedout
7588 \begin_layout Plain Layout
7593 When the \SpecialChar LaTeX
7599 \begin_inset Index idx
7602 \begin_layout Plain Layout
7609 is used, as in this document, the full page width is used for the caption
7610 when you use the default value of 4
7611 \begin_inset space \thinspace{}
7621 To get in this case exactly a 4
7622 \begin_inset space \thinspace{}
7625 in wide caption, you can either use a value slightly different from 4.0
7626 \begin_inset space \thinspace{}
7630 \begin_inset space \thinspace{}
7634 \begin_inset space \space{}
7638 \begin_inset space \thinspace{}
7641 in, or the \SpecialChar LaTeX
7646 captionsetup{width=value}
7648 that is provided by the
7660 \begin_layout Subsubsection
7661 Different Captions for Table Pages
7662 \begin_inset Index idx
7665 \begin_layout Plain Layout
7666 Table ! Multi-page Table ! Different Captions for Pages
7674 \begin_layout Standard
7675 When the table captions for the following pages should differ from the one
7676 of the first table page, mark a empty row as header which contains a caption.
7677 Then right-click on the caption and select in the context menu
7680 \begin_inset space ~
7687 \begin_inset space ~
7691 \begin_inset CommandInset ref
7693 reference "tab:DiffCaptions"
7697 is an example of a multi-page table with different heading where the second
7698 caption does not include the table number.
7701 \begin_layout Standard
7703 \begin_inset Tabular
7704 <lyxtabular version="3" rows="59" columns="3">
7705 <features islongtable="true" longtabularalignment="center">
7706 <column alignment="left" valignment="top" width="0cm">
7707 <column alignment="left" valignment="top" width="0pt">
7708 <column alignment="center" valignment="top" width="0pt">
7709 <row endfirsthead="true" caption="true">
7710 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7713 \begin_layout Plain Layout
7714 \begin_inset Caption Standard
7716 \begin_layout Plain Layout
7718 \begin_inset CommandInset label
7720 name "tab:DiffCaptions"
7725 \begin_inset Argument 1
7728 \begin_layout Plain Layout
7744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7747 \begin_layout Plain Layout
7753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7756 \begin_layout Plain Layout
7763 <row endfirsthead="true">
7764 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7767 \begin_layout Plain Layout
7770 Example Phone List (ignore the names)
7775 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7778 \begin_layout Plain Layout
7784 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7787 \begin_layout Plain Layout
7794 <row endfirsthead="true">
7795 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7798 \begin_layout Plain Layout
7806 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7809 \begin_layout Plain Layout
7815 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7818 \begin_layout Plain Layout
7827 <row endhead="true" caption="true">
7828 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7831 \begin_layout Plain Layout
7832 \begin_inset Caption Unnumbered
7834 \begin_layout Plain Layout
7835 Continued Example Phone List
7845 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7848 \begin_layout Plain Layout
7854 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7857 \begin_layout Plain Layout
7864 <row endhead="true">
7865 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7868 \begin_layout Plain Layout
7876 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7879 \begin_layout Plain Layout
7885 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7888 \begin_layout Plain Layout
7895 <row endhead="true">
7896 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7899 \begin_layout Plain Layout
7907 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7910 \begin_layout Plain Layout
7916 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7919 \begin_layout Plain Layout
7928 <row endfoot="true">
7929 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7932 \begin_layout Plain Layout
7933 continued on next page
7938 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7941 \begin_layout Plain Layout
7947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7950 \begin_layout Plain Layout
7958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7961 \begin_layout Plain Layout
7969 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7972 \begin_layout Plain Layout
7978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7981 \begin_layout Plain Layout
7989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7992 \begin_layout Plain Layout
8000 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8003 \begin_layout Plain Layout
8009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8012 \begin_layout Plain Layout
8020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8023 \begin_layout Plain Layout
8031 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8034 \begin_layout Plain Layout
8040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8043 \begin_layout Plain Layout
8051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8054 \begin_layout Plain Layout
8062 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8065 \begin_layout Plain Layout
8071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8074 \begin_layout Plain Layout
8082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8085 \begin_layout Plain Layout
8093 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8096 \begin_layout Plain Layout
8102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8105 \begin_layout Plain Layout
8113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8116 \begin_layout Plain Layout
8124 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8127 \begin_layout Plain Layout
8133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8136 \begin_layout Plain Layout
8144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8147 \begin_layout Plain Layout
8155 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8158 \begin_layout Plain Layout
8164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8167 \begin_layout Plain Layout
8175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8178 \begin_layout Plain Layout
8186 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8189 \begin_layout Plain Layout
8195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8198 \begin_layout Plain Layout
8206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8209 \begin_layout Plain Layout
8217 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8220 \begin_layout Plain Layout
8226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8229 \begin_layout Plain Layout
8237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8240 \begin_layout Plain Layout
8248 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8251 \begin_layout Plain Layout
8257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8260 \begin_layout Plain Layout
8268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8271 \begin_layout Plain Layout
8279 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8282 \begin_layout Plain Layout
8288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8291 \begin_layout Plain Layout
8299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8302 \begin_layout Plain Layout
8310 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8313 \begin_layout Plain Layout
8319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8322 \begin_layout Plain Layout
8330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8333 \begin_layout Plain Layout
8341 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8344 \begin_layout Plain Layout
8350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8353 \begin_layout Plain Layout
8361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8364 \begin_layout Plain Layout
8372 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8375 \begin_layout Plain Layout
8381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8384 \begin_layout Plain Layout
8392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8395 \begin_layout Plain Layout
8404 \begin_layout Plain Layout
8415 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8418 \begin_layout Plain Layout
8424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8427 \begin_layout Plain Layout
8435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8438 \begin_layout Plain Layout
8446 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8449 \begin_layout Plain Layout
8455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8458 \begin_layout Plain Layout
8466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8469 \begin_layout Plain Layout
8477 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8480 \begin_layout Plain Layout
8486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8489 \begin_layout Plain Layout
8497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8500 \begin_layout Plain Layout
8508 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8511 \begin_layout Plain Layout
8517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8520 \begin_layout Plain Layout
8528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8531 \begin_layout Plain Layout
8539 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8542 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8551 \begin_layout Plain Layout
8559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8562 \begin_layout Plain Layout
8570 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8573 \begin_layout Plain Layout
8579 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8582 \begin_layout Plain Layout
8590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8593 \begin_layout Plain Layout
8601 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8604 \begin_layout Plain Layout
8610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8613 \begin_layout Plain Layout
8621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8624 \begin_layout Plain Layout
8632 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8635 \begin_layout Plain Layout
8641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8644 \begin_layout Plain Layout
8652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8655 \begin_layout Plain Layout
8663 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8686 \begin_layout Plain Layout
8694 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8697 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8725 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8728 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8756 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8759 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8787 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8790 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8818 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8821 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8849 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8852 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8880 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8883 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8911 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8914 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8934 \begin_layout Plain Layout
8940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8943 \begin_layout Plain Layout
8949 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8952 \begin_layout Plain Layout
8960 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8963 \begin_layout Plain Layout
8971 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8974 \begin_layout Plain Layout
8980 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8983 \begin_layout Plain Layout
8991 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8994 \begin_layout Plain Layout
9002 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9005 \begin_layout Plain Layout
9011 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9014 \begin_layout Plain Layout
9022 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9025 \begin_layout Plain Layout
9033 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9036 \begin_layout Plain Layout
9042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9045 \begin_layout Plain Layout
9053 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9056 \begin_layout Plain Layout
9064 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9067 \begin_layout Plain Layout
9073 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9076 \begin_layout Plain Layout
9084 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9087 \begin_layout Plain Layout
9095 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9098 \begin_layout Plain Layout
9104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9107 \begin_layout Plain Layout
9115 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9118 \begin_layout Plain Layout
9126 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9129 \begin_layout Plain Layout
9135 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9138 \begin_layout Plain Layout
9146 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9149 \begin_layout Plain Layout
9157 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9160 \begin_layout Plain Layout
9166 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9169 \begin_layout Plain Layout
9177 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9180 \begin_layout Plain Layout
9188 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9191 \begin_layout Plain Layout
9197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9200 \begin_layout Plain Layout
9208 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9211 \begin_layout Plain Layout
9219 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9222 \begin_layout Plain Layout
9228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9231 \begin_layout Plain Layout
9239 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9242 \begin_layout Plain Layout
9250 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9253 \begin_layout Plain Layout
9259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9262 \begin_layout Plain Layout
9270 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9273 \begin_layout Plain Layout
9281 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9284 \begin_layout Plain Layout
9290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9293 \begin_layout Plain Layout
9301 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9304 \begin_layout Plain Layout
9312 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9315 \begin_layout Plain Layout
9321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9324 \begin_layout Plain Layout
9332 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9335 \begin_layout Plain Layout
9343 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9346 \begin_layout Plain Layout
9352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9355 \begin_layout Plain Layout
9363 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9366 \begin_layout Plain Layout
9374 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9377 \begin_layout Plain Layout
9383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9386 \begin_layout Plain Layout
9394 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9397 \begin_layout Plain Layout
9405 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9408 \begin_layout Plain Layout
9414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9417 \begin_layout Plain Layout
9425 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9428 \begin_layout Plain Layout
9436 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9439 \begin_layout Plain Layout
9445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9448 \begin_layout Plain Layout
9456 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9459 \begin_layout Plain Layout
9467 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9470 \begin_layout Plain Layout
9476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9479 \begin_layout Plain Layout
9487 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9490 \begin_layout Plain Layout
9498 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9501 \begin_layout Plain Layout
9507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9510 \begin_layout Plain Layout
9518 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9521 \begin_layout Plain Layout
9529 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9532 \begin_layout Plain Layout
9538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9541 \begin_layout Plain Layout
9549 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9552 \begin_layout Plain Layout
9560 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9563 \begin_layout Plain Layout
9569 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9572 \begin_layout Plain Layout
9586 \begin_layout Section
9587 Special Multi-page Table Issues
9588 \begin_inset CommandInset label
9590 name "sec:Special-Longtable-Issues"
9597 \begin_layout Subsection
9598 Multi-page Table Calculation
9599 \begin_inset Index idx
9602 \begin_layout Plain Layout
9603 Table ! Multi-page Table ! Calculation
9611 \begin_layout Standard
9613 calculates the height of table pages and their page breaks using so called
9615 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9617 The default value was historically set to only 20
9618 \begin_inset space ~
9622 If you are using multi-page tables with many pages this may slow down the
9623 creation of your document.
9624 You can safely increase the chunk size to values of 100
9625 \begin_inset space \thinspace{}
9629 \begin_inset space \thinspace{}
9632 1000 by adding this command line to your document preamble:
9635 \begin_layout Standard
9640 setcounter{LTchunksize}{100}
9643 \begin_layout Subsection
9644 Floats and Multi-page Tables
9645 \begin_inset Index idx
9648 \begin_layout Plain Layout
9649 Table ! Multi-page Table ! Floats
9657 \begin_layout Standard
9658 There might be problems when a float appears on the same page where a multi-page
9660 To avoid such a situation, insert a
9661 \begin_inset Quotes eld
9665 \begin_inset Quotes erd
9670 Insert\SpecialChar menuseparator
9671 Formatting\SpecialChar menuseparator
9673 \begin_inset space ~
9678 ) before your multi-page table.
9681 \begin_layout Subsection
9683 \begin_inset Index idx
9686 \begin_layout Plain Layout
9687 Table ! Multi-page Table ! Forced Page Breaks
9695 \begin_layout Standard
9696 By default tables are only broken between rows.
9697 If you have a cell with multiples lines and want to have a page break within
9698 the cell, insert the new line command
9699 \begin_inset Quotes eld
9711 \begin_inset Quotes erd
9715 Code at the point of the cell where it can be broken.
9724 command you have to insert in \SpecialChar TeX
9726 \begin_inset Quotes eld
9734 \begin_inset Quotes erd
9737 characters as the number of the following table columns.
9742 is the character to separate table cells.
9743 Write in \SpecialChar TeX
9748 the content of the corresponding following cell and delete the content
9750 \begin_inset Newline newline
9761 command, insert as many
9765 characters as the number of table columns before the current column.
9767 \begin_inset space ~
9771 \begin_inset CommandInset ref
9773 reference "tab:ForcedPagebreak"
9777 the cell that should be broken is in the second column followed by another
9779 Therefore the following command was inserted in the cell as \SpecialChar TeX
9782 \begin_inset Quotes eld
9790 \begin_inset Quotes erd
9796 \begin_layout Standard
9806 \begin_inset Newline newline
9812 \begin_layout Standard
9814 \begin_inset Quotes eld
9818 \begin_inset Quotes erd
9821 in the third column of the row was deleted.
9828 is only needed when a page break should definitely occur at this position,
9829 otherwise it would be a conditional break.
9830 If your footer row of the multi-page table has for a certain reason no
9831 upper line but you would have a horizontal line where the cell is broken,
9832 use this command instead:
9835 \begin_layout Standard
9843 \begin_inset Newline newline
9851 \begin_layout Standard
9852 When the cell to be broken is in the last column, the command
9855 \begin_layout Standard
9865 \begin_layout Standard
9866 must be inserted as \SpecialChar TeX
9867 Code at the beginning of the cell.
9868 This ensures that the part of the cell that will be displayed on the new
9869 page appears with the full width.
9872 \begin_layout Standard
9874 \begin_inset Tabular
9875 <lyxtabular version="3" rows="38" columns="3">
9876 <features islongtable="true" longtabularalignment="center">
9877 <column alignment="left" valignment="top" width="0cm">
9878 <column alignment="left" valignment="top" width="3cm">
9879 <column alignment="center" valignment="top" width="0pt">
9880 <row endfirsthead="true" caption="true">
9881 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9884 \begin_layout Plain Layout
9885 \begin_inset Caption Standard
9887 \begin_layout Plain Layout
9888 Table with forced page break in table cell
9889 \begin_inset CommandInset label
9891 name "tab:ForcedPagebreak"
9896 \begin_inset Argument 1
9899 \begin_layout Plain Layout
9900 Table with forced page break in table cell
9915 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9918 \begin_layout Plain Layout
9924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9927 \begin_layout Plain Layout
9934 <row endfirsthead="true">
9935 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9941 Example Phone List (ignore the names)
9946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9949 \begin_layout Plain Layout
9955 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9965 <row endfirsthead="true">
9966 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9969 \begin_layout Plain Layout
9977 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9980 \begin_layout Plain Layout
9986 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9989 \begin_layout Plain Layout
9998 <row endhead="true" caption="true">
9999 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10002 \begin_layout Plain Layout
10003 \begin_inset Caption Unnumbered
10005 \begin_layout Plain Layout
10006 Continued Example Phone List
10016 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10019 \begin_layout Plain Layout
10025 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10035 <row endhead="true">
10036 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10047 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10050 \begin_layout Plain Layout
10056 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10066 <row endhead="true">
10067 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10070 \begin_layout Plain Layout
10078 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10081 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10099 <row endfoot="true">
10100 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10103 \begin_layout Plain Layout
10104 continued on next page
10109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10112 \begin_layout Plain Layout
10118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10143 \begin_layout Plain Layout
10149 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10163 \begin_layout Plain Layout
10171 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10174 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10484 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10504 \begin_layout Plain Layout
10512 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10515 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10535 \begin_layout Plain Layout
10543 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10546 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10566 \begin_layout Plain Layout
10574 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10597 \begin_layout Plain Layout
10605 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10628 \begin_layout Plain Layout
10636 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10772 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10794 \begin_layout Plain Layout
10800 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10803 \begin_layout Plain Layout
10811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10814 \begin_layout Plain Layout
10822 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10825 \begin_layout Plain Layout
10827 Fürst von Montecompatri, 11.
10828 Fürst von Sulmona und Vivaro, 10.
10829 Fürst von Rossano, 5.
10830 Herzog von Canemorte, 11.
10831 Herzog von Palombara, 5.
10832 Herzog von Castelchiodato,
10836 \begin_layout Plain Layout
10847 \begin_layout Plain Layout
10855 Herzog von Poggionativo, 11.
10856 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10857 Graf von Valinfreda, 11.
10858 Baron von Cropalati, 11.
10859 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10864 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10867 \begin_layout Plain Layout
10875 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10878 \begin_layout Plain Layout
10886 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10889 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10898 \begin_layout Plain Layout
10906 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10909 \begin_layout Plain Layout
10917 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10948 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10951 \begin_layout Plain Layout
10957 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10960 \begin_layout Plain Layout
10968 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10971 \begin_layout Plain Layout
10979 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10982 \begin_layout Plain Layout
10988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10991 \begin_layout Plain Layout
10999 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11002 \begin_layout Plain Layout
11010 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11013 \begin_layout Plain Layout
11019 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11022 \begin_layout Plain Layout
11030 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11033 \begin_layout Plain Layout
11041 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11044 \begin_layout Plain Layout
11050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11053 \begin_layout Plain Layout
11061 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11064 \begin_layout Plain Layout
11072 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11075 \begin_layout Plain Layout
11081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11084 \begin_layout Plain Layout
11092 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11095 \begin_layout Plain Layout
11103 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11106 \begin_layout Plain Layout
11112 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11115 \begin_layout Plain Layout
11129 \begin_layout Section
11130 Multiple Lines, Columns and Rows
11133 \begin_layout Subsection
11134 Multiple Lines in Table Cells
11135 \begin_inset CommandInset label
11137 name "subsec:Multiple-Lines-in"
11142 \begin_inset Index idx
11145 \begin_layout Plain Layout
11146 Multiple Lines in Table Cells
11152 \begin_inset Index idx
11155 \begin_layout Plain Layout
11164 \begin_layout Standard
11166 \begin_inset Float table
11172 \begin_layout Plain Layout
11173 \begin_inset Caption Standard
11175 \begin_layout Plain Layout
11176 \begin_inset CommandInset label
11178 name "tab:Table-with-multiple"
11182 Table with multiple lines in cells
11190 \begin_layout Plain Layout
11192 \begin_inset Tabular
11193 <lyxtabular version="3" rows="3" columns="3">
11194 <features tabularvalignment="middle">
11195 <column alignment="center" valignment="middle" width="2.5cm">
11196 <column alignment="center" valignment="middle">
11197 <column alignment="center" valignment="middle">
11199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11202 \begin_layout Plain Layout
11204 \begin_inset Newline linebreak
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11224 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11244 \begin_layout Plain Layout
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11253 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11264 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11273 \begin_layout Plain Layout
11279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11282 \begin_layout Plain Layout
11301 \begin_layout Standard
11302 Setting a fixed width for a column enables you to enter text as a paragraph
11303 with multiple lines and hyphenation.
11306 \begin_layout Standard
11308 \begin_inset space ~
11312 \begin_inset CommandInset ref
11314 reference "tab:Table-with-multiple"
11318 , create a 3×3 table, mark the first cell and right-click on it.
11319 In the appearing table dialog we set a cell width of 2.5
11320 \begin_inset space \thinspace{}
11323 cm and choose centered for the vertical and horizontal alignment.
11324 The vertical alignment is used for all cells of the row.
11325 As our text is smaller than 2.5
11326 \begin_inset space \thinspace{}
11329 cm, only one line will appear.
11330 To get two lines, a justified line break (shortcut
11333 arg "newline-insert linebreak"
11337 If the text is wider than the set cell width, it will automatically be
11338 broken to several lines.
11341 \begin_layout Standard
11342 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11343 by \SpecialChar LaTeX
11344 if it is the first entry.
11345 Therefore you need to insert something to prevent the word not being the
11347 So add a horizontal space of 0
11348 \begin_inset space \thinspace{}
11351 pt before the word.
11352 As the space is zero, it doesn't change the output.
11354 \begin_inset space ~
11358 \begin_inset CommandInset ref
11360 reference "tab:Table-with-and"
11367 \begin_layout Standard
11368 \begin_inset Float table
11374 \begin_layout Plain Layout
11375 \begin_inset Caption Standard
11377 \begin_layout Plain Layout
11378 \begin_inset CommandInset label
11380 name "tab:Table-with-and"
11384 Table with and without hyphenation
11392 \begin_layout Plain Layout
11393 \begin_inset space \hfill{}
11397 \begin_inset Tabular
11398 <lyxtabular version="3" rows="3" columns="3">
11399 <features tabularvalignment="middle">
11400 <column alignment="center" valignment="middle" width="2.5cm">
11401 <column alignment="center" valignment="middle">
11402 <column alignment="center" valignment="middle">
11404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11408 verylongtablecellword
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11425 \begin_layout Plain Layout
11433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11454 \begin_layout Plain Layout
11462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11465 \begin_layout Plain Layout
11471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11474 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11483 \begin_layout Plain Layout
11495 \begin_inset space \hfill{}
11499 \begin_inset Tabular
11500 <lyxtabular version="3" rows="3" columns="3">
11501 <features tabularvalignment="middle">
11502 <column alignment="center" valignment="middle" width="2.5cm">
11503 <column alignment="center" valignment="middle">
11504 <column alignment="center" valignment="middle">
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11509 \begin_layout Plain Layout
11510 \begin_inset space \hspace{}
11514 verylongtablecellword
11519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11531 \begin_layout Plain Layout
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11551 \begin_layout Plain Layout
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11560 \begin_layout Plain Layout
11568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11589 \begin_layout Plain Layout
11601 \begin_inset space \hfill{}
11612 \begin_layout Subsection
11614 \begin_inset CommandInset label
11616 name "subsec:Multicolumns"
11621 \begin_inset Index idx
11624 \begin_layout Plain Layout
11631 \begin_inset Index idx
11634 \begin_layout Plain Layout
11635 Table ! Multicolumns
11643 \begin_layout Subsubsection
11647 \begin_layout Standard
11648 To merge cells over multiple columns, select as many cells within a row
11649 as you want to merge and use either the table-toolbar button
11652 arg "tabular-feature multicolumn"
11657 Edit\SpecialChar menuseparator
11658 Table\SpecialChar menuseparator
11661 , or right click on the marked cells and choose
11665 in the context menu.
11668 \begin_layout Standard
11669 Multicolumns have their own cell settings.
11670 That means changing cell borders, cell alignment, and the width only affects
11672 Here is an example table with a multicolumn cell in the first row and one
11673 in the last row without the upper border:
11676 \begin_layout Standard
11678 \begin_inset Tabular
11679 <lyxtabular version="3" rows="3" columns="4">
11680 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11681 <column alignment="center" valignment="top" width="0pt">
11682 <column alignment="center" valignment="middle">
11683 <column alignment="center" valignment="top" width="0in">
11684 <column alignment="center" valignment="top" width="0pt">
11686 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11689 \begin_layout Plain Layout
11695 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11698 \begin_layout Plain Layout
11704 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11707 \begin_layout Plain Layout
11713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11716 \begin_layout Plain Layout
11724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11727 \begin_layout Plain Layout
11742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11745 \begin_layout Plain Layout
11751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11763 \begin_layout Plain Layout
11771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11774 \begin_layout Plain Layout
11780 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11783 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11801 \begin_layout Plain Layout
11815 \begin_layout Subsubsection
11816 Multicolumn Calculations
11817 \begin_inset CommandInset label
11819 name "subsec:Multicolumn-Calculations"
11824 \begin_inset Index idx
11827 \begin_layout Plain Layout
11828 Multicolumns ! Calculations
11836 \begin_layout Standard
11838 supports multicolumns directly, but we have to take account of the cell
11839 width of the columns spanned by the multicolumn cell.
11842 \begin_layout Standard
11843 \begin_inset Float table
11849 \begin_layout Plain Layout
11850 \begin_inset Caption Standard
11852 \begin_layout Plain Layout
11853 \begin_inset CommandInset label
11855 name "tab:Table-with-centered"
11859 Table with centered multicolumn text above two columns that have exactly
11860 half the width of the multicolumn cell
11861 \begin_inset Argument 1
11864 \begin_layout Plain Layout
11865 Perfect multicolumn table
11878 \begin_layout Plain Layout
11880 \begin_inset Tabular
11881 <lyxtabular version="3" rows="3" columns="3">
11882 <features tabularvalignment="middle">
11883 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11884 <column alignment="center" valignment="middle">
11885 <column alignment="center" valignment="top">
11887 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11890 \begin_layout Plain Layout
11891 multiple lines multicolumn
11896 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11899 \begin_layout Plain Layout
11905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11908 \begin_layout Plain Layout
11916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11919 \begin_layout Plain Layout
11925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11928 \begin_layout Plain Layout
11934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11937 \begin_layout Plain Layout
11945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11948 \begin_layout Plain Layout
11954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11957 \begin_layout Plain Layout
11963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11966 \begin_layout Plain Layout
11985 \begin_layout Standard
11986 To create for example Table
11987 \begin_inset space ~
11991 \begin_inset CommandInset ref
11993 reference "tab:Table-with-centered"
11997 , mark the first two cells in the first row of a 3×3 table and right-click
11999 Now choose for this cell
12008 \begin_inset space \thinspace{}
12011 cm in the table dialog.
12012 The merged columns should have exactly half the width of the multicolumn
12013 cell, so that you would set a width of 1.25
12014 \begin_inset space \thinspace{}
12017 cm for the first column.
12018 The second column has then automatically a width of 1.25
12019 \begin_inset space \thinspace{}
12022 cm (multicolumn width - width of first column).
12023 This was done for Table
12024 \begin_inset space ~
12028 \begin_inset CommandInset ref
12030 reference "tab:Table-without-half"
12037 \begin_layout Standard
12038 \begin_inset Float table
12043 \begin_layout Plain Layout
12044 \begin_inset Caption Standard
12046 \begin_layout Plain Layout
12047 \begin_inset CommandInset label
12049 name "tab:Table-without-half"
12053 Table where the spanned table columns are not exactly half the width of
12054 the multicolumn cell
12055 \begin_inset Argument 1
12058 \begin_layout Plain Layout
12059 Imperfect multicolumn table
12072 \begin_layout Plain Layout
12074 \begin_inset Tabular
12075 <lyxtabular version="3" rows="3" columns="3">
12076 <features tabularvalignment="middle">
12077 <column alignment="center" valignment="top" width="1.25cm">
12078 <column alignment="center" valignment="top">
12079 <column alignment="center" valignment="top">
12081 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12084 \begin_layout Plain Layout
12085 multiple lines multicolumn
12090 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12093 \begin_layout Plain Layout
12099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12102 \begin_layout Plain Layout
12110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12113 \begin_layout Plain Layout
12119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12122 \begin_layout Plain Layout
12128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12131 \begin_layout Plain Layout
12139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12142 \begin_layout Plain Layout
12148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12151 \begin_layout Plain Layout
12157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12160 \begin_layout Plain Layout
12179 \begin_layout Standard
12180 You can see that the first column is not half the width of the multicolumn
12181 cell, it is a bit bigger.
12182 The reason is that the specified width of a cell
12183 \begin_inset Formula $W_{g}$
12186 is not its total width
12187 \begin_inset Formula $W_{\mathrm{tot}}$
12190 because a cell is always a bit larger than specified.
12192 \begin_inset space ~
12196 \begin_inset CommandInset ref
12198 reference "cha:Explanation-of-Equation"
12202 explains this in detail.
12205 \begin_layout Standard
12207 \begin_inset Formula $W_{g\,n}$
12210 which the user needs to set when
12214 columns are spanned can be calculated, so that each column has a total
12216 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12220 \begin_inset Formula
12222 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12230 \begin_layout Standard
12231 In our case we have
12232 \begin_inset Formula $n=2$
12236 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12239 cm and the default values for the lengths, so that equation
12240 \begin_inset CommandInset ref
12247 \begin_inset Formula
12249 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12257 \begin_layout Standard
12258 To enable calculations in \SpecialChar LaTeX
12259 , the \SpecialChar LaTeX
12264 must be loaded with the document preamble line
12265 \begin_inset Index idx
12268 \begin_layout Plain Layout
12278 \begin_layout Standard
12286 \begin_layout Standard
12288 does not allow you to calculate lengths in the
12292 field of the table dialog.
12293 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12296 Here is an overview about the arguments:
12299 \begin_layout Itemize
12304 creates cell with a fixed width, its text is vertically top-aligned
12307 \begin_layout Itemize
12312 creates cell with a fixed width, its text is vertically centered
12315 \begin_layout Itemize
12320 creates cell with a fixed width, its text is vertically bottom-aligned
12323 \begin_layout Standard
12324 By entering a \SpecialChar LaTeX
12325 -argument, all cell settings set in the table dialog are overwritt
12329 \begin_layout Standard
12330 \begin_inset Note Greyedout
12333 \begin_layout Plain Layout
12338 Due to a bug, \SpecialChar LyX
12339 shows the overwritten settings anyway.
12347 \begin_layout Standard
12348 As the text should be horizontally centered, the command
12355 You can now enter the following \SpecialChar LaTeX
12356 -argument for the first spanned column:
12359 \begin_layout Standard
12364 centering}m{1.25cm-6.2pt}
12367 \begin_layout Standard
12372 means, that the commands inside the braces are applied before the cell
12376 \begin_layout Standard
12377 Although we have chosen centered alignment for the text of the multicolumn
12378 cell, it is still left aligned.
12379 This is because \SpecialChar LyX
12380 only applies the alignment to single columns.
12381 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12385 \begin_layout Standard
12393 \begin_layout Subsection
12395 \begin_inset CommandInset label
12397 name "subsec:Multirows"
12402 \begin_inset Index idx
12405 \begin_layout Plain Layout
12412 \begin_inset Index idx
12415 \begin_layout Plain Layout
12424 \begin_layout Standard
12425 To merge cells over multiple rows, select as many cells within a column
12426 as you want to merge and use either the table-toolbar button
12429 arg "tabular-feature multirow"
12434 Edit\SpecialChar menuseparator
12435 Table\SpecialChar menuseparator
12438 , or right click on the marked cells and choose
12442 in the context menu.
12445 \begin_layout Standard
12446 Here is an example table with a multirow in the first column:
12449 \begin_layout Standard
12451 \begin_inset Tabular
12452 <lyxtabular version="3" rows="3" columns="3">
12453 <features tabularvalignment="middle">
12454 <column alignment="center" valignment="top" width="0pt">
12455 <column alignment="center" valignment="top">
12456 <column alignment="center" valignment="top">
12458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12461 \begin_layout Plain Layout
12467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12470 \begin_layout Plain Layout
12476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12479 \begin_layout Plain Layout
12487 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12490 \begin_layout Plain Layout
12496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12499 \begin_layout Plain Layout
12505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12508 \begin_layout Plain Layout
12516 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12519 \begin_layout Plain Layout
12525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12528 \begin_layout Plain Layout
12534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12537 \begin_layout Plain Layout
12551 \begin_layout Standard
12552 The width of multirow cells is set by setting the width and alignment for
12558 shifts the content of the multirow up/down if the offset is positive/negative.
12561 \begin_layout Standard
12562 If the column of a multirow cell has no explicit width, the multirow cell
12563 inherits the alignment of the column.
12564 Otherwise it is by default left-aligned.
12565 To override the default, renew the command
12574 \begin_layout Standard
12586 \begin_layout Standard
12587 in the document preamble.
12588 Then all entries of multirow cells in the document are centered.
12589 If centering is only needed for several tables, you can renew the command
12590 in a \SpecialChar TeX
12591 Code box just before the table instead of the preamble.
12592 If the text should be right-aligned, replace
12605 To return to left-alignment
12614 \begin_layout Standard
12615 This is an example table with a right-aligned multirow cell that has a vertical
12617 \begin_inset space \thinspace{}
12621 \begin_inset space \thinspace{}
12627 \begin_layout Standard
12633 \begin_layout Plain Layout
12647 \begin_inset Tabular
12648 <lyxtabular version="3" rows="4" columns="3">
12649 <features tabularvalignment="middle">
12650 <column alignment="center" valignment="top" width="3cm">
12651 <column alignment="center" valignment="top">
12652 <column alignment="center" valignment="top">
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12657 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12666 \begin_layout Plain Layout
12672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12675 \begin_layout Plain Layout
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12695 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12712 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12724 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12741 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12753 \begin_layout Plain Layout
12759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12762 \begin_layout Plain Layout
12777 \begin_layout Plain Layout
12793 \begin_layout Standard
12794 To start a new line in a multirow you can use a forced line break (shortcut
12798 arg "newline-insert newline"
12801 ) but this will not respect the cell lines as demonstrated in this table:
12804 \begin_layout Standard
12807 \begin_inset Tabular
12808 <lyxtabular version="3" rows="3" columns="2">
12809 <features tabularvalignment="middle">
12810 <column alignment="left" valignment="middle" width="2cm">
12811 <column alignment="center" valignment="top">
12813 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12816 \begin_layout Plain Layout
12818 \begin_inset Newline newline
12822 \begin_inset Newline newline
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12833 \begin_layout Plain Layout
12841 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12844 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12853 \begin_layout Plain Layout
12861 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12864 \begin_layout Plain Layout
12870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12887 \begin_layout Standard
12888 Therefore be careful with forced line breaks.
12891 \begin_layout Subsection
12892 Cells with diagonal line(s)
12895 \begin_layout Standard
12896 To tell the reader what is meant by column and row headings in a table,
12897 it is helpful to split the first cell of the table by one or two diagonal
12899 This can be achieved by loading the \SpecialChar LaTeX
12905 \begin_inset Index idx
12908 \begin_layout Plain Layout
12910 -packages ! picinpar
12915 in the document preamble.
12916 The package provides the command
12922 that is inserted as \SpecialChar TeX
12923 Code and that can take 2 or 3
12924 \begin_inset space ~
12930 \begin_layout Standard
12935 diagbox[options]{lower left}{upper right}
12938 \begin_layout Standard
12943 diagbox[options]{lower left}{upper left}{upper right}
12946 \begin_layout Standard
12947 The first scheme divides the cell by a single diagonal line and the arguments
12948 are placed below and above this line.
12949 The second scheme divides the cell by 2
12950 \begin_inset space ~
12956 \begin_layout Standard
12960 \begin_layout Plain Layout
12970 \begin_inset Note Note
12973 \begin_layout Plain Layout
12974 The following section will only be displayed when the \SpecialChar LaTeX
12987 \begin_layout Standard
12988 Here is an example table where
12994 is used in the 2-argument scheme in the first cell:
12995 \begin_inset VSpace medskip
13001 \begin_layout Standard
13003 \begin_inset Tabular
13004 <lyxtabular version="3" rows="4" columns="4">
13005 <features tabularvalignment="middle">
13006 <column alignment="center" valignment="top">
13007 <column alignment="center" valignment="top">
13008 <column alignment="center" valignment="top">
13009 <column alignment="center" valignment="top">
13011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13014 \begin_layout Plain Layout
13018 \begin_layout Plain Layout
13031 \begin_layout Plain Layout
13042 \begin_layout Plain Layout
13054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13057 \begin_layout Plain Layout
13063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13066 \begin_layout Plain Layout
13072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13075 \begin_layout Plain Layout
13083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13086 \begin_layout Plain Layout
13092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13095 \begin_layout Plain Layout
13101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13104 \begin_layout Plain Layout
13110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13113 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13124 \begin_layout Plain Layout
13130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13133 \begin_layout Plain Layout
13139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13142 \begin_layout Plain Layout
13148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13151 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13162 \begin_layout Plain Layout
13168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13171 \begin_layout Plain Layout
13177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13180 \begin_layout Plain Layout
13186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13189 \begin_layout Plain Layout
13201 \begin_inset VSpace medskip
13207 \begin_layout Standard
13208 The 3-argument scheme is for example useful for cross-tables of sports leagues
13212 \begin_layout Standard
13215 \begin_inset Tabular
13216 <lyxtabular version="3" rows="4" columns="4">
13217 <features tabularvalignment="middle">
13218 <column alignment="center" valignment="top" width="0pt">
13219 <column alignment="center" valignment="top">
13220 <column alignment="center" valignment="top">
13221 <column alignment="center" valignment="top">
13223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13226 \begin_layout Plain Layout
13230 \begin_layout Plain Layout
13243 \begin_layout Plain Layout
13254 \begin_layout Plain Layout
13265 \begin_layout Plain Layout
13277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13280 \begin_layout Plain Layout
13286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13289 \begin_layout Plain Layout
13295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13298 \begin_layout Plain Layout
13306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13309 \begin_layout Plain Layout
13315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13318 \begin_layout Plain Layout
13324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13327 \begin_layout Plain Layout
13333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13336 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13347 \begin_layout Plain Layout
13353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13356 \begin_layout Plain Layout
13362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13365 \begin_layout Plain Layout
13371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13374 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13385 \begin_layout Plain Layout
13391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13394 \begin_layout Plain Layout
13400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13403 \begin_layout Plain Layout
13409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13412 \begin_layout Plain Layout
13426 \begin_layout Standard
13427 For larger cross-tables one might use split cells in 2 or every corner of
13428 the table like in this example:
13431 \begin_layout Standard
13434 \begin_inset Tabular
13435 <lyxtabular version="3" rows="5" columns="5">
13436 <features tabularvalignment="middle">
13437 <column alignment="center" valignment="top" width="0pt">
13438 <column alignment="center" valignment="top">
13439 <column alignment="center" valignment="top">
13440 <column alignment="center" valignment="top">
13441 <column alignment="center" valignment="top">
13443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13446 \begin_layout Plain Layout
13450 \begin_layout Plain Layout
13463 \begin_layout Plain Layout
13474 \begin_layout Plain Layout
13485 \begin_layout Plain Layout
13497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13500 \begin_layout Plain Layout
13506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13509 \begin_layout Plain Layout
13515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13518 \begin_layout Plain Layout
13524 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13527 \begin_layout Plain Layout
13531 \begin_layout Plain Layout
13544 \begin_layout Plain Layout
13555 \begin_layout Plain Layout
13566 \begin_layout Plain Layout
13580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13583 \begin_layout Plain Layout
13589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13592 \begin_layout Plain Layout
13598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13601 \begin_layout Plain Layout
13607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13610 \begin_layout Plain Layout
13616 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13619 \begin_layout Plain Layout
13627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13630 \begin_layout Plain Layout
13636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13639 \begin_layout Plain Layout
13645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13648 \begin_layout Plain Layout
13654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13657 \begin_layout Plain Layout
13663 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13666 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13677 \begin_layout Plain Layout
13683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13686 \begin_layout Plain Layout
13692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13695 \begin_layout Plain Layout
13701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13704 \begin_layout Plain Layout
13710 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13713 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13724 \begin_layout Plain Layout
13728 \begin_layout Plain Layout
13741 \begin_layout Plain Layout
13752 \begin_layout Plain Layout
13763 \begin_layout Plain Layout
13775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13778 \begin_layout Plain Layout
13784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13787 \begin_layout Plain Layout
13793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13796 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13805 \begin_layout Plain Layout
13809 \begin_layout Plain Layout
13822 \begin_layout Plain Layout
13833 \begin_layout Plain Layout
13844 \begin_layout Plain Layout
13864 \begin_layout Standard
13865 To rotate the diagonal lines, the command option
13890 and represent a point of a compass.
13895 is for example the south-west corner.
13896 Thus in the lower left cell of the above table the command
13899 \begin_layout Standard
13904 diagbox[dir=SW]{Team home}{Result}{Team away}
13907 \begin_layout Standard
13909 If no direction is given, it will be NW.
13912 \begin_layout Standard
13913 The necessary width of split cells is automatically calculated.
13914 Thus if you set a fixed column width smaller than the calculated one, the
13915 cell's content will protrude the cell borders:
13918 \begin_layout Standard
13921 \begin_inset Tabular
13922 <lyxtabular version="3" rows="2" columns="2">
13923 <features tabularvalignment="middle">
13924 <column alignment="center" valignment="top" width="3cm">
13925 <column alignment="center" valignment="top">
13927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13930 \begin_layout Plain Layout
13934 \begin_layout Plain Layout
13947 \begin_layout Plain Layout
13958 \begin_layout Plain Layout
13970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13973 \begin_layout Plain Layout
13981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13984 \begin_layout Plain Layout
13990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13993 \begin_layout Plain Layout
14007 \begin_layout Standard
14008 If you need a certain width for columns with a split cell, use the command
14013 (replace '3cm' by the width you need).
14014 In the following table the width of the first column is set to 4
14015 \begin_inset space \thinspace{}
14026 \begin_inset space \thinspace{}
14030 \begin_inset space \thinspace{}
14035 tabcolsep is necessary because the overall width is the width for the text
14036 (in this case the 4
14037 \begin_inset space \thinspace{}
14040 cm) plus two times the separation of the text and the cell border.
14041 The calculation of the width cannot be done in the command option of
14047 so one needs to create a new length which can be used later.
14048 This is done with the \SpecialChar TeX
14052 \begin_layout Standard
14060 \begin_inset Newline newline
14072 \begin_layout Standard
14076 \begin_layout Plain Layout
14085 \begin_layout Plain Layout
14101 \begin_layout Standard
14102 To enable calculations in \SpecialChar LaTeX
14103 one needs to load the package
14108 \begin_inset Index idx
14111 \begin_layout Plain Layout
14118 in the document preamble.
14121 \begin_layout Standard
14122 In this table you can now use the command
14125 \begin_layout Standard
14135 \begin_layout Standard
14139 \begin_layout Standard
14142 \begin_inset Tabular
14143 <lyxtabular version="3" rows="2" columns="2">
14144 <features tabularvalignment="middle">
14145 <column alignment="center" valignment="top" width="4cm">
14146 <column alignment="center" valignment="top">
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14155 \begin_layout Plain Layout
14170 \begin_layout Plain Layout
14181 \begin_layout Plain Layout
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14196 \begin_layout Plain Layout
14204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14216 \begin_layout Plain Layout
14230 \begin_layout Standard
14231 Note that the split cell needs to be the widest one in the column.
14232 Otherwise the length of the diagonal line cannot be calculated correctly
14233 like in this table:
14236 \begin_layout Standard
14239 \begin_inset Tabular
14240 <lyxtabular version="3" rows="2" columns="2">
14241 <features tabularvalignment="middle">
14242 <column alignment="center" valignment="top" width="0pt">
14243 <column alignment="center" valignment="top">
14245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14248 \begin_layout Plain Layout
14252 \begin_layout Plain Layout
14265 \begin_layout Plain Layout
14276 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Plain Layout
14299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14311 \begin_layout Plain Layout
14325 \begin_layout Standard
14326 In this case use the
14337 It is then not necessary to add 2
14339 tabcolsep because the cell width is now the width of the column.
14340 In this table a width of 3
14341 \begin_inset space \thinspace{}
14347 \begin_layout Standard
14350 \begin_inset Tabular
14351 <lyxtabular version="3" rows="2" columns="2">
14352 <features tabularvalignment="middle">
14353 <column alignment="center" valignment="top" width="0pt">
14354 <column alignment="center" valignment="top">
14356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14359 \begin_layout Plain Layout
14363 \begin_layout Plain Layout
14367 diagbox[width=3cm]{
14376 \begin_layout Plain Layout
14387 \begin_layout Plain Layout
14399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14402 \begin_layout Plain Layout
14410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14413 \begin_layout Plain Layout
14419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14422 \begin_layout Plain Layout
14436 \begin_layout Standard
14437 For multiple text lines in split cells one needs some extra height to fit
14438 the text to the cell.
14439 This can be achieved with the
14449 (replace '3cm' by the height you need).
14450 In the following table the command
14453 \begin_layout Standard
14458 diagbox[width=3cm,height=1.4cm]{A
14469 \begin_layout Standard
14470 is used in the first cell.
14479 creates hereby the line break.
14483 \begin_layout Plain Layout
14484 Breaking lines with
14488 is only possible when the column has a fixed width.
14496 \begin_layout Standard
14499 \begin_inset Tabular
14500 <lyxtabular version="3" rows="2" columns="2">
14501 <features tabularvalignment="middle">
14502 <column alignment="center" valignment="top">
14503 <column alignment="center" valignment="top">
14505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14508 \begin_layout Plain Layout
14512 \begin_layout Plain Layout
14516 diagbox[width=3cm,height=1.4cm]{
14525 \begin_layout Plain Layout
14540 \begin_layout Plain Layout
14551 \begin_layout Plain Layout
14566 \begin_layout Plain Layout
14578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14581 \begin_layout Plain Layout
14589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14592 \begin_layout Plain Layout
14598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14601 \begin_layout Plain Layout
14615 \begin_layout Standard
14619 \begin_layout Plain Layout
14629 \begin_inset Note Note
14632 \begin_layout Plain Layout
14633 The following will be displayed when the \SpecialChar LaTeX
14646 \begin_layout Standard
14647 You need to install the \SpecialChar LaTeX
14652 to see the following part of this section in the output.
14655 \begin_layout Standard
14659 \begin_layout Plain Layout
14671 \begin_layout Standard
14672 For more info about the \SpecialChar LaTeX
14677 , see its documentation,
14678 \begin_inset CommandInset citation
14688 \begin_layout Section
14690 \begin_inset CommandInset label
14692 name "sec:Formal-Tables"
14697 \begin_inset Index idx
14700 \begin_layout Plain Layout
14709 \begin_layout Standard
14710 Tables are often typeset in books similar to Table
14711 \begin_inset space ~
14715 \begin_inset CommandInset ref
14717 reference "tab:Example-booktabs-table"
14722 This kind of tables is called
14723 \begin_inset Quotes eld
14731 \begin_inset Quotes erd
14735 To make a table a formal table use the option
14743 tab of the table dialog.
14746 \begin_layout Standard
14747 \begin_inset Float table
14753 \begin_layout Plain Layout
14754 \begin_inset Caption Standard
14756 \begin_layout Plain Layout
14757 \begin_inset CommandInset label
14759 name "tab:Example-booktabs-table"
14763 Example booktabs-table
14771 \begin_layout Plain Layout
14773 \begin_inset Tabular
14774 <lyxtabular version="3" rows="8" columns="4">
14775 <features booktabs="true" tabularvalignment="middle">
14776 <column alignment="center" valignment="top">
14777 <column alignment="center" valignment="top">
14778 <column alignment="center" valignment="top">
14779 <column alignment="center" valignment="top">
14781 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14784 \begin_layout Plain Layout
14790 <cell alignment="center" valignment="top" topline="true" usebox="none">
14793 \begin_layout Plain Layout
14795 \begin_inset space \thinspace{}
14803 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14806 \begin_layout Plain Layout
14808 \begin_inset space \thinspace{}
14816 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14819 \begin_layout Plain Layout
14827 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14830 \begin_layout Plain Layout
14834 \begin_layout Plain Layout
14847 \begin_layout Plain Layout
14856 Detector thickness in µm
14861 <cell alignment="center" valignment="top" usebox="none">
14864 \begin_layout Plain Layout
14870 <cell alignment="center" valignment="top" usebox="none">
14873 \begin_layout Plain Layout
14879 <cell alignment="center" valignment="top" usebox="none">
14882 \begin_layout Plain Layout
14890 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14893 \begin_layout Plain Layout
14899 <cell alignment="center" valignment="top" topline="true" usebox="none">
14902 \begin_layout Plain Layout
14908 <cell alignment="center" valignment="top" topline="true" usebox="none">
14911 \begin_layout Plain Layout
14917 <cell alignment="center" valignment="top" topline="true" usebox="none">
14920 \begin_layout Plain Layout
14927 <row topspace="default">
14928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14931 \begin_layout Plain Layout
14932 Spatial resolution in µm
14937 <cell alignment="center" valignment="top" usebox="none">
14940 \begin_layout Plain Layout
14946 <cell alignment="center" valignment="top" usebox="none">
14949 \begin_layout Plain Layout
14955 <cell alignment="center" valignment="top" usebox="none">
14958 \begin_layout Plain Layout
14965 <row topspace="default">
14966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14969 \begin_layout Plain Layout
14971 \begin_inset Formula $f_{\mathrm{max}}$
14979 <cell alignment="center" valignment="top" usebox="none">
14982 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" usebox="none">
14991 \begin_layout Plain Layout
14997 <cell alignment="center" valignment="top" usebox="none">
15000 \begin_layout Plain Layout
15007 <row topspace="default">
15008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15011 \begin_layout Plain Layout
15015 \begin_layout Plain Layout
15019 cmidrule[2pt](l{10pt}){1-1}
15024 LSF-spatial resolution
15029 <cell alignment="center" valignment="top" usebox="none">
15032 \begin_layout Plain Layout
15038 <cell alignment="center" valignment="top" usebox="none">
15041 \begin_layout Plain Layout
15047 <cell alignment="center" valignment="top" usebox="none">
15050 \begin_layout Plain Layout
15058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15061 \begin_layout Plain Layout
15067 <cell alignment="center" valignment="top" usebox="none">
15070 \begin_layout Plain Layout
15076 <cell alignment="center" valignment="top" usebox="none">
15079 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" usebox="none">
15088 \begin_layout Plain Layout
15096 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15099 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15108 \begin_layout Plain Layout
15114 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15117 \begin_layout Plain Layout
15123 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15126 \begin_layout Plain Layout
15145 \begin_layout Standard
15146 Spaces to table rows can be added using the
15150 tab of the table dialog as described in section
15151 \begin_inset space ~
15155 \begin_inset CommandInset ref
15157 reference "subsec:Row-Spacing"
15164 \begin_layout Standard
15165 Unlike normal tables, formal tables have no vertical table lines.
15166 The horizontal table lines can be set as for normal tables but they appear
15167 with different widths in the output:
15168 \begin_inset Newline newline
15171 The first and the last table line have a default width of 0.08
15172 \begin_inset space \thinspace{}
15175 em while the other lines have a default width of 0.05
15176 \begin_inset space \thinspace{}
15182 \begin_layout Standard
15183 The default widths can be changed with the following preamble lines
15186 \begin_layout Standard
15196 \begin_inset Newline newline
15208 \begin_layout Standard
15209 This example is for the first line, the so called
15214 If you want to change the width for the last line, replace
15223 To change the width for the other lines replace
15232 You can use all units listed in appendix
15233 \begin_inset space ~
15237 \begin_inset CommandInset ref
15239 reference "cha:Units-available-in"
15246 \begin_layout Standard
15247 Lines that do not span all table columns can be created by setting a table
15248 line for multicolumn cells.
15250 will then internally use the command
15256 to create this line.
15260 \begin_layout Standard
15265 cmidrule[height](trim){startcol-endcol}
15268 \begin_layout Standard
15275 are currently not supported by \SpecialChar LyX
15276 so you have to use \SpecialChar TeX
15285 s can manually be created by inserting the command as \SpecialChar TeX
15287 cell entry of the first cell of a row.
15288 The line is then drawn in the output above the current row.
15291 \begin_layout Standard
15292 The default for the optional
15297 \begin_inset space \thinspace{}
15305 is the number of the column where the line starts and
15309 the column number where the line ends.
15314 always needs to be specified, also when the line should span only one column.
15315 The optional parameter
15332 Using for example the parameter
15336 means that the line is trimmed from its left end by 2
15337 \begin_inset space \thinspace{}
15341 If you don't specify the
15345 the line is trimmed by the default of 0.5
15346 \begin_inset space \thinspace{}
15352 \begin_layout Standard
15353 \begin_inset VSpace bigskip
15357 \begin_inset space ~
15361 \begin_inset CommandInset ref
15363 reference "tab:Example-booktabs-table"
15367 was created using the commands
15370 \begin_layout Standard
15380 \begin_layout Standard
15381 at the beginning of the second row and
15384 \begin_layout Standard
15389 cmidrule[2pt](l{10pt}){1-1}
15392 \begin_layout Standard
15396 \begin_layout Standard
15397 \begin_inset VSpace bigskip
15403 \begin_layout Standard
15404 You might want to have overlapping
15411 \begin_inset space ~
15415 \begin_inset CommandInset ref
15417 reference "tab:Special-booktabs-table"
15422 This can be achieved with the \SpecialChar TeX
15426 \begin_layout Standard
15434 \begin_layout Standard
15435 The command that was used for the second row of Table
15436 \begin_inset space ~
15440 \begin_inset CommandInset ref
15442 reference "tab:Special-booktabs-table"
15449 \begin_layout Standard
15463 \begin_layout Standard
15464 The command for the sixth row is
15467 \begin_layout Standard
15479 \begin_layout Standard
15480 \begin_inset VSpace bigskip
15486 \begin_layout Standard
15487 If you are in any way not satisfied with the border line spacing, you can
15488 use the following command to produce lines that span over all table columns
15493 \begin_layout Standard
15498 specialrule{width}{space above}{space below}
15501 \begin_layout Standard
15502 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15509 \begin_inset CommandInset citation
15517 \begin_inset Index idx
15520 \begin_layout Plain Layout
15522 -packages ! booktabs
15530 \begin_layout Standard
15531 \begin_inset Float table
15537 \begin_layout Plain Layout
15538 \begin_inset Caption Standard
15540 \begin_layout Plain Layout
15541 \begin_inset CommandInset label
15543 name "tab:Special-booktabs-table"
15547 Special booktabs-table
15555 \begin_layout Plain Layout
15557 \begin_inset Tabular
15558 <lyxtabular version="3" rows="8" columns="4">
15559 <features booktabs="true" tabularvalignment="middle">
15560 <column alignment="center" valignment="top">
15561 <column alignment="center" valignment="top">
15562 <column alignment="center" valignment="top">
15563 <column alignment="center" valignment="top">
15565 <cell alignment="center" valignment="top" topline="true" usebox="none">
15568 \begin_layout Plain Layout
15574 <cell alignment="center" valignment="top" topline="true" usebox="none">
15577 \begin_layout Plain Layout
15579 \begin_inset space \thinspace{}
15587 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15590 \begin_layout Plain Layout
15592 \begin_inset space \thinspace{}
15600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15603 \begin_layout Plain Layout
15611 <cell alignment="center" valignment="top" usebox="none">
15614 \begin_layout Plain Layout
15618 \begin_layout Plain Layout
15631 \begin_layout Plain Layout
15644 \begin_layout Plain Layout
15657 \begin_layout Plain Layout
15666 Detector thickness in µm
15671 <cell alignment="center" valignment="top" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" usebox="none">
15692 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" usebox="none">
15730 \begin_layout Plain Layout
15737 <row topspace="default">
15738 <cell alignment="center" valignment="top" usebox="none">
15741 \begin_layout Plain Layout
15742 Spatial resolution in µm
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15756 <cell alignment="center" valignment="top" usebox="none">
15759 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" usebox="none">
15768 \begin_layout Plain Layout
15775 <row topspace="default">
15776 <cell alignment="center" valignment="top" usebox="none">
15779 \begin_layout Plain Layout
15781 \begin_inset Formula $f_{\mathrm{max}}$
15789 <cell alignment="center" valignment="top" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" usebox="none">
15821 \begin_layout Plain Layout
15825 \begin_layout Plain Layout
15838 \begin_layout Plain Layout
15847 LSF-spatial resolution
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15881 <cell alignment="center" valignment="top" usebox="none">
15884 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" usebox="none">
15911 \begin_layout Plain Layout
15919 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15922 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15949 \begin_layout Plain Layout
15968 \begin_layout Section
15969 Vertical Table Alignment
15970 \begin_inset Index idx
15973 \begin_layout Plain Layout
15982 \begin_layout Standard
15983 To align tables vertically in a text line, the table must be inside a box.
15984 The box can then be vertically aligned as described in section
15985 \begin_inset space ~
15989 \begin_inset CommandInset ref
15991 reference "sec:Box-Dialog"
15998 \begin_layout Standard
15999 In the following example the tables are inside a minipage
16003 \begin_layout Plain Layout
16004 Minipages are described in section
16005 \begin_inset space ~
16009 \begin_inset CommandInset ref
16011 reference "sec:Minipages"
16020 box that has a width of 15
16021 \begin_inset space \thinspace{}
16027 \begin_layout Itemize
16029 \begin_inset Box Frameless
16039 height_special "totalheight"
16044 backgroundcolor "none"
16047 \begin_layout Plain Layout
16048 \begin_inset Tabular
16049 <lyxtabular version="3" rows="3" columns="3">
16050 <features tabularvalignment="middle">
16051 <column alignment="center" valignment="top">
16052 <column alignment="center" valignment="top">
16053 <column alignment="center" valignment="top">
16055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16058 \begin_layout Plain Layout
16064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16067 \begin_layout Plain Layout
16073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16076 \begin_layout Plain Layout
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16096 \begin_layout Plain Layout
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16125 \begin_layout Plain Layout
16131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Plain Layout
16154 \begin_layout Plain Layout
16166 \begin_inset Box Frameless
16176 height_special "totalheight"
16181 backgroundcolor "none"
16184 \begin_layout Plain Layout
16185 \begin_inset Tabular
16186 <lyxtabular version="3" rows="3" columns="3">
16187 <features tabularvalignment="middle">
16188 <column alignment="center" valignment="top">
16189 <column alignment="center" valignment="top">
16190 <column alignment="center" valignment="top">
16192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16195 \begin_layout Plain Layout
16201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16204 \begin_layout Plain Layout
16210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16213 \begin_layout Plain Layout
16221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16224 \begin_layout Plain Layout
16230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16233 \begin_layout Plain Layout
16239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16242 \begin_layout Plain Layout
16250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16253 \begin_layout Plain Layout
16259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16262 \begin_layout Plain Layout
16268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16271 \begin_layout Plain Layout
16291 \begin_layout Plain Layout
16301 \begin_layout Itemize
16303 \begin_inset Box Frameless
16313 height_special "totalheight"
16318 backgroundcolor "none"
16321 \begin_layout Plain Layout
16322 \begin_inset Tabular
16323 <lyxtabular version="3" rows="3" columns="3">
16324 <features tabularvalignment="middle">
16325 <column alignment="center" valignment="top">
16326 <column alignment="center" valignment="top">
16327 <column alignment="center" valignment="top">
16329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16332 \begin_layout Plain Layout
16338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16341 \begin_layout Plain Layout
16347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16350 \begin_layout Plain Layout
16358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16361 \begin_layout Plain Layout
16367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16370 \begin_layout Plain Layout
16376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16379 \begin_layout Plain Layout
16387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16390 \begin_layout Plain Layout
16396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16399 \begin_layout Plain Layout
16405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16408 \begin_layout Plain Layout
16427 \begin_layout Itemize
16429 \begin_inset Box Frameless
16439 height_special "totalheight"
16444 backgroundcolor "none"
16447 \begin_layout Plain Layout
16448 \begin_inset Tabular
16449 <lyxtabular version="3" rows="3" columns="3">
16450 <features tabularvalignment="middle">
16451 <column alignment="center" valignment="top">
16452 <column alignment="center" valignment="top">
16453 <column alignment="center" valignment="top">
16455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16458 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16467 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16476 \begin_layout Plain Layout
16484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16487 \begin_layout Plain Layout
16493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16496 \begin_layout Plain Layout
16502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16505 \begin_layout Plain Layout
16513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16516 \begin_layout Plain Layout
16522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16525 \begin_layout Plain Layout
16531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16534 \begin_layout Plain Layout
16554 \begin_layout Plain Layout
16566 \begin_inset Box Frameless
16576 height_special "totalheight"
16581 backgroundcolor "none"
16584 \begin_layout Plain Layout
16585 \begin_inset Tabular
16586 <lyxtabular version="3" rows="3" columns="3">
16587 <features tabularvalignment="middle">
16588 <column alignment="center" valignment="top">
16589 <column alignment="center" valignment="top">
16590 <column alignment="center" valignment="top">
16592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16595 \begin_layout Plain Layout
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Plain Layout
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16613 \begin_layout Plain Layout
16621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16624 \begin_layout Plain Layout
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16633 \begin_layout Plain Layout
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16642 \begin_layout Plain Layout
16650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16653 \begin_layout Plain Layout
16659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16662 \begin_layout Plain Layout
16668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16671 \begin_layout Plain Layout
16691 \begin_layout Plain Layout
16701 \begin_layout Standard
16702 As you will see, the content of the first and last table row is not correctly
16704 To get this alignment, the minipage box must be set into a raisebox.
16708 \begin_layout Plain Layout
16709 Raiseboxes are described in section
16710 \begin_inset space ~
16714 \begin_inset CommandInset ref
16716 reference "subsec:Vertical-Alignment"
16725 In the example above the second table in the first item is aligned using
16726 the \SpecialChar TeX
16730 \begin_layout Standard
16740 \begin_layout Standard
16742 After the box the closing brace
16746 is inserted as \SpecialChar TeX
16748 For the second table in the last item the command
16751 \begin_layout Standard
16761 \begin_layout Standard
16765 \begin_layout Standard
16766 \begin_inset Note Greyedout
16769 \begin_layout Plain Layout
16774 The alignment of the table row content to the surrounding text line is
16776 The required value for the
16782 command for this alignment depends on the document font, the font size,
16783 and the table line thickness.
16791 \begin_layout Section
16793 \begin_inset CommandInset label
16795 name "sec:Colored-Tables"
16800 \begin_inset Index idx
16803 \begin_layout Plain Layout
16812 \begin_layout Subsection
16814 \begin_inset Index idx
16817 \begin_layout Plain Layout
16818 Table Color ! for Cells
16824 \begin_inset Index idx
16827 \begin_layout Plain Layout
16828 Color ! for Table Cells
16836 \begin_layout Standard
16837 \begin_inset Float table
16843 \begin_layout Plain Layout
16844 \begin_inset Caption Standard
16846 \begin_layout Plain Layout
16847 \begin_inset CommandInset label
16849 name "tab:Table-colored-without"
16853 Table colored without using the package
16858 \begin_inset Argument 1
16861 \begin_layout Plain Layout
16862 Table without colortbl
16875 \begin_layout Plain Layout
16877 \begin_inset Tabular
16878 <lyxtabular version="3" rows="3" columns="3">
16879 <features tabularvalignment="middle">
16880 <column alignment="center" valignment="top">
16881 <column alignment="center" valignment="top">
16882 <column alignment="center" valignment="top">
16884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16887 \begin_layout Plain Layout
16895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16898 \begin_layout Plain Layout
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16909 \begin_layout Plain Layout
16919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16922 \begin_layout Plain Layout
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16933 \begin_layout Plain Layout
16941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16957 \begin_layout Plain Layout
16965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16968 \begin_layout Plain Layout
16976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16979 \begin_layout Plain Layout
17000 \begin_layout Standard
17001 If you only need colored text, mark the cells and choose a color in the
17005 \begin_inset space ~
17010 dialog (toolbar button
17013 arg "dialog-show character"
17017 This was used to create Table
17018 \begin_inset space ~
17022 \begin_inset CommandInset ref
17024 reference "tab:Table-colored-without"
17029 In any other case you have to use the \SpecialChar LaTeX
17035 \begin_inset Index idx
17038 \begin_layout Plain Layout
17040 -packages ! colortbl
17048 \begin_layout Standard
17052 \begin_layout Plain Layout
17062 \begin_inset Note Note
17065 \begin_layout Plain Layout
17066 The following section part will only be displayed when the \SpecialChar LaTeX
17079 \begin_layout Standard
17080 To create colored tables,
17084 must be loaded in the preamble with the line
17087 \begin_layout Standard
17092 usepackage{colortbl}
17095 \begin_layout Standard
17096 The color of a column is adjusted with the command
17099 \begin_layout Standard
17104 columncolor{name of color}
17107 \begin_layout Standard
17113 More about the command
17117 is contained in section
17118 \begin_inset space ~
17122 \begin_inset CommandInset ref
17124 reference "subsec:Multicolumn-Calculations"
17131 \begin_layout Standard
17132 The following color names are predefined:
17135 \begin_layout Standard
17169 \begin_layout Standard
17170 \begin_inset VSpace medskip
17176 \begin_layout Standard
17177 If you add the option
17180 \begin_layout Standard
17186 \begin_layout Standard
17187 to the document class options in the document settings, you can additionally
17189 \begin_inset space ~
17193 These colors are listed in appendix
17194 \begin_inset space ~
17198 \begin_inset CommandInset ref
17200 reference "chap:List-of-dvips-colornames"
17205 One of these colors,
17209 , is used as example in Table
17210 \begin_inset space ~
17214 \begin_inset CommandInset ref
17216 reference "tab:Table-colored-using"
17223 \begin_layout Standard
17224 \begin_inset VSpace medskip
17230 \begin_layout Standard
17231 You can also define your own color with the command
17234 \begin_layout Standard
17239 definecolor{color name}{color model}{color values}
17242 \begin_layout Standard
17243 The color model can be
17246 \begin_layout Labeling
17247 \labelwidthstring 00.00.0000
17248 cmyk: cyan, magenta, yellow, black
17251 \begin_layout Labeling
17252 \labelwidthstring 00.00.0000
17253 rgb: red, green blue
17256 \begin_layout Labeling
17257 \labelwidthstring 00.00.0000
17261 \begin_layout Standard
17262 and the color values are comma separated numbers between 0 and 1 describing
17263 the factor for the corresponding color of the color model.
17266 \begin_layout Standard
17268 \begin_inset space \thinspace{}
17272 \begin_inset space \space{}
17279 " in the preamble with
17282 \begin_layout Standard
17287 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17290 \begin_layout Standard
17298 \begin_layout Standard
17303 definecolor{lightgray}{gray}{0.8}
17306 \begin_layout Standard
17307 \begin_inset VSpace medskip
17313 \begin_layout Standard
17314 Lines are colored with the command
17317 \begin_layout Standard
17322 rowcolor{name of color}
17325 \begin_layout Standard
17326 and cells are colored with the command
17329 \begin_layout Standard
17334 cellcolor{name of color}
17337 \begin_layout Standard
17338 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17342 \begin_layout Standard
17343 To color characters in the table, mark the cells and use the
17346 \begin_inset space ~
17352 If a cell contains \SpecialChar TeX
17353 Code mark only the characters, otherwise the colored
17355 Code will cause \SpecialChar LaTeX
17359 \begin_layout Standard
17360 \begin_inset Note Greyedout
17363 \begin_layout Plain Layout
17368 Not all DVI-viewers are able to display self-defined colors.
17376 \begin_layout Standard
17377 \begin_inset VSpace bigskip
17383 \begin_layout Standard
17385 \begin_inset space ~
17389 \begin_inset CommandInset ref
17391 reference "tab:Table-colored-using"
17395 do the following: The color of the first column should be
17403 \begin_layout Standard
17408 columncolor{darkgreen}
17413 \begin_layout Standard
17414 as \SpecialChar LaTeX
17415 -argument for this column.
17416 The first row should be light blue, therefore the \SpecialChar TeX
17420 \begin_layout Standard
17428 \begin_layout Standard
17429 is inserted to the first cell of this row.
17430 Note that this overwrites the column color for the first cell.
17431 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17436 \begin_layout Standard
17444 \begin_layout Standard
17445 The characters could now be colored using the menu
17447 Edit\SpecialChar menuseparator
17449 \begin_inset space ~
17457 \begin_layout Standard
17458 \begin_inset Float table
17464 \begin_layout Plain Layout
17465 \begin_inset Caption Standard
17467 \begin_layout Plain Layout
17468 \begin_inset CommandInset label
17470 name "tab:Table-colored-using"
17474 Table colored using the package
17479 \begin_inset Argument 1
17482 \begin_layout Plain Layout
17483 Table with colortbl
17496 \begin_layout Plain Layout
17498 \begin_inset Tabular
17499 <lyxtabular version="3" rows="3" columns="3">
17500 <features tabularvalignment="middle">
17501 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17502 <column alignment="center" valignment="top">
17503 <column alignment="center" valignment="top">
17505 <cell alignment="center" valignment="top" usebox="none">
17508 \begin_layout Plain Layout
17512 \begin_layout Plain Layout
17528 <cell alignment="center" valignment="top" usebox="none">
17531 \begin_layout Plain Layout
17539 <cell alignment="center" valignment="top" usebox="none">
17542 \begin_layout Plain Layout
17552 <cell alignment="center" valignment="top" usebox="none">
17555 \begin_layout Plain Layout
17563 <cell alignment="center" valignment="top" usebox="none">
17566 \begin_layout Plain Layout
17574 <cell alignment="center" valignment="top" usebox="none">
17577 \begin_layout Plain Layout
17587 <cell alignment="center" valignment="top" usebox="none">
17590 \begin_layout Plain Layout
17598 <cell alignment="center" valignment="top" usebox="none">
17601 \begin_layout Plain Layout
17609 <cell alignment="center" valignment="top" usebox="none">
17612 \begin_layout Plain Layout
17616 \begin_layout Plain Layout
17645 \begin_layout Standard
17649 \begin_layout Plain Layout
17659 \begin_inset Note Note
17662 \begin_layout Plain Layout
17663 The following will be displayed when the \SpecialChar LaTeX
17676 \begin_layout Standard
17677 You need to install the package
17681 to see the content of this section in the output.
17684 \begin_layout Standard
17688 \begin_layout Plain Layout
17700 \begin_layout Subsection
17702 \begin_inset Index idx
17705 \begin_layout Plain Layout
17706 Table Color ! for Rows
17712 \begin_inset Index idx
17715 \begin_layout Plain Layout
17716 Color ! for Table Rows
17724 \begin_layout Standard
17725 In case every second table row needs to be colored there is an alternative
17726 to the method described in the previous section: One loads the package
17732 \begin_inset Index idx
17735 \begin_layout Plain Layout
17741 \begin_layout Plain Layout
17755 in the document preamble with the command
17758 \begin_layout Standard
17763 usepackage[table]{xcolor}
17766 \begin_layout Standard
17771 automatically loads also the package
17776 \begin_inset Index idx
17779 \begin_layout Plain Layout
17781 -packages ! colortbl
17790 must be installed in your \SpecialChar LaTeX
17791 -distribution, otherwise you get \SpecialChar LaTeX
17795 \begin_layout Standard
17799 \begin_layout Plain Layout
17809 \begin_inset Note Note
17812 \begin_layout Plain Layout
17813 The following section part will only be displayed when the \SpecialChar LaTeX
17826 \begin_layout Standard
17827 The table rows are colored with the command
17830 \begin_layout Standard
17835 rowcolors[commands]{row number}{odd row color}{even row color}
17838 \begin_layout Standard
17839 that is either inserted in the document preamble or as \SpecialChar TeX
17841 first table to be colored.
17843 \begin_inset space ~
17846 number is the number of the first row which should be colored according
17847 to the odd row color.
17848 commands can be additional commands that are executed before every table
17850 So for example the command
17853 \begin_layout Standard
17858 rowcolors{1}{white}{lightgray}
17861 \begin_layout Standard
17862 leads to the coloring scheme of Table
17863 \begin_inset space ~
17867 \begin_inset CommandInset ref
17869 reference "tab:Table-rowcolors"
17877 \begin_layout Standard
17884 hline]{1}{lightgray}{cyan}
17887 \begin_layout Standard
17888 leads to the coloring scheme of Table
17889 \begin_inset space ~
17893 \begin_inset CommandInset ref
17895 reference "tab:Table-rowcolors-2"
17901 \begin_inset space ~
17905 \begin_inset space ~
17909 \begin_inset space ~
17913 \begin_inset space ~
17916 color are left empty, no color will be used so that the command
17919 \begin_layout Standard
17927 \begin_layout Standard
17928 deletes all colors.
17935 affects all tables following that command.
17938 \begin_layout Standard
17942 \begin_layout Plain Layout
17946 rowcolors{1}{white}{lightgray}
17954 \begin_layout Standard
17955 \begin_inset Float table
17961 \begin_layout Plain Layout
17962 \begin_inset Caption Standard
17964 \begin_layout Plain Layout
17965 \begin_inset CommandInset label
17967 name "tab:Table-rowcolors"
17971 Table where every second row is colored light gray.
17979 \begin_layout Plain Layout
17981 \begin_inset Tabular
17982 <lyxtabular version="3" rows="4" columns="3">
17983 <features tabularvalignment="middle">
17984 <column alignment="center" valignment="top">
17985 <column alignment="center" valignment="top" width="0pt">
17986 <column alignment="center" valignment="top" width="0pt">
17988 <cell alignment="center" valignment="top" usebox="none">
17991 \begin_layout Plain Layout
17997 <cell alignment="center" valignment="top" usebox="none">
18000 \begin_layout Plain Layout
18006 <cell alignment="center" valignment="top" usebox="none">
18009 \begin_layout Plain Layout
18017 <cell alignment="center" valignment="top" usebox="none">
18020 \begin_layout Plain Layout
18026 <cell alignment="center" valignment="top" usebox="none">
18029 \begin_layout Plain Layout
18035 <cell alignment="center" valignment="top" usebox="none">
18038 \begin_layout Plain Layout
18046 <cell alignment="center" valignment="top" usebox="none">
18049 \begin_layout Plain Layout
18055 <cell alignment="center" valignment="top" usebox="none">
18058 \begin_layout Plain Layout
18064 <cell alignment="center" valignment="top" usebox="none">
18067 \begin_layout Plain Layout
18075 <cell alignment="center" valignment="top" usebox="none">
18078 \begin_layout Plain Layout
18084 <cell alignment="center" valignment="top" usebox="none">
18087 \begin_layout Plain Layout
18093 <cell alignment="center" valignment="top" usebox="none">
18096 \begin_layout Plain Layout
18115 \begin_layout Standard
18119 \begin_layout Plain Layout
18125 hline]{1}{lightgray}{cyan}
18133 \begin_layout Standard
18134 \begin_inset Float table
18140 \begin_layout Plain Layout
18141 \begin_inset Caption Standard
18143 \begin_layout Plain Layout
18144 \begin_inset CommandInset label
18146 name "tab:Table-rowcolors-2"
18150 Table where every second row is colored cyan and at which there is a line
18159 \begin_layout Plain Layout
18161 \begin_inset Tabular
18162 <lyxtabular version="3" rows="4" columns="3">
18163 <features tabularvalignment="middle">
18164 <column alignment="center" valignment="top">
18165 <column alignment="center" valignment="top">
18166 <column alignment="center" valignment="top" width="0pt">
18168 <cell alignment="center" valignment="top" usebox="none">
18171 \begin_layout Plain Layout
18177 <cell alignment="center" valignment="top" usebox="none">
18180 \begin_layout Plain Layout
18186 <cell alignment="center" valignment="top" usebox="none">
18189 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" usebox="none">
18200 \begin_layout Plain Layout
18206 <cell alignment="center" valignment="top" usebox="none">
18209 \begin_layout Plain Layout
18215 <cell alignment="center" valignment="top" usebox="none">
18218 \begin_layout Plain Layout
18226 <cell alignment="center" valignment="top" usebox="none">
18229 \begin_layout Plain Layout
18235 <cell alignment="center" valignment="top" usebox="none">
18238 \begin_layout Plain Layout
18244 <cell alignment="center" valignment="top" usebox="none">
18247 \begin_layout Plain Layout
18255 <cell alignment="center" valignment="top" usebox="none">
18258 \begin_layout Plain Layout
18264 <cell alignment="center" valignment="top" usebox="none">
18267 \begin_layout Plain Layout
18273 <cell alignment="center" valignment="top" usebox="none">
18276 \begin_layout Plain Layout
18295 \begin_layout Standard
18299 \begin_layout Plain Layout
18309 \begin_inset Note Note
18312 \begin_layout Plain Layout
18313 turns off the row coloring
18321 \begin_layout Standard
18325 \begin_layout Plain Layout
18335 \begin_inset Note Note
18338 \begin_layout Plain Layout
18339 The following will be displayed when the \SpecialChar LaTeX
18352 \begin_layout Standard
18353 You need to install the package
18357 to see the content of this section in the output.
18360 \begin_layout Standard
18364 \begin_layout Plain Layout
18376 \begin_layout Subsection
18378 \begin_inset Index idx
18381 \begin_layout Plain Layout
18382 Table Color ! for Lines
18388 \begin_inset Index idx
18391 \begin_layout Plain Layout
18392 Color ! for Table Lines
18400 \begin_layout Standard
18401 As described in section
18402 \begin_inset space ~
18406 \begin_inset CommandInset ref
18408 reference "subsec:Line-Thickness"
18412 , the line thickness for all lines in a table can be adjusted with the length
18421 \begin_inset space \thinspace{}
18424 pt for all tables of this section.
18428 \begin_layout Plain Layout
18434 arrayrulewidth}{1.5pt}
18442 \begin_layout Standard
18443 To color vertical lines for example with green, create the following column
18444 format in the document preamble, according to the description in section
18445 \begin_inset space ~
18449 \begin_inset CommandInset ref
18451 reference "subsec:Customized-Format"
18458 \begin_layout Standard
18463 newcolumntype{W}{!{
18470 \begin_layout Standard
18472 \begin_inset space ~
18476 \begin_inset CommandInset ref
18478 reference "tab:Table-with-vertical-colored"
18482 the \SpecialChar LaTeX
18487 was used for the last column and
18491 for the other columns.
18494 \begin_layout Standard
18495 If you want to have several colors, define more column formats.
18498 \begin_layout Standard
18499 \begin_inset Float table
18505 \begin_layout Plain Layout
18506 \begin_inset Caption Standard
18508 \begin_layout Plain Layout
18509 \begin_inset CommandInset label
18511 name "tab:Table-with-vertical-colored"
18515 Table with colored vertical lines
18523 \begin_layout Plain Layout
18525 \begin_inset Tabular
18526 <lyxtabular version="3" rows="3" columns="3">
18527 <features tabularvalignment="middle">
18528 <column alignment="center" valignment="top" special="Wc">
18529 <column alignment="center" valignment="top" special="Wc">
18530 <column alignment="center" valignment="top" special="WcW">
18532 <cell alignment="center" valignment="top" topline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" usebox="none">
18544 \begin_layout Plain Layout
18550 <cell alignment="center" valignment="top" topline="true" usebox="none">
18553 \begin_layout Plain Layout
18561 <cell alignment="center" valignment="top" topline="true" usebox="none">
18564 \begin_layout Plain Layout
18570 <cell alignment="center" valignment="top" topline="true" usebox="none">
18573 \begin_layout Plain Layout
18579 <cell alignment="center" valignment="top" topline="true" usebox="none">
18582 \begin_layout Plain Layout
18590 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18593 \begin_layout Plain Layout
18599 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18602 \begin_layout Plain Layout
18608 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18611 \begin_layout Plain Layout
18630 \begin_layout Standard
18631 \begin_inset VSpace bigskip
18634 To color all horizontal lines for example with red, as in Table
18635 \begin_inset space ~
18639 \begin_inset CommandInset ref
18641 reference "tab:Table-with-horizontal-colored"
18645 , insert these commands in \SpecialChar TeX
18646 code before the table or table float:
18649 \begin_layout Standard
18659 \begin_inset Newline newline
18667 \begin_inset Newline newline
18671 \begin_inset Phantom HPhantom
18674 \begin_layout Plain Layout
18677 \begin_inset space ~
18687 arrayrulecolor{red}
18691 arrayrulecolor{black}}
18694 \begin_layout Standard
18698 \begin_layout Plain Layout
18709 \begin_layout Plain Layout
18718 \begin_layout Plain Layout
18722 arrayrulecolor{red}
18726 arrayrulecolor{black}}
18732 \begin_inset Float table
18738 \begin_layout Plain Layout
18739 \begin_inset Caption Standard
18741 \begin_layout Plain Layout
18742 \begin_inset CommandInset label
18744 name "tab:Table-with-horizontal-colored"
18748 Table with colored horizontal lines
18756 \begin_layout Plain Layout
18758 \begin_inset Tabular
18759 <lyxtabular version="3" rows="3" columns="3">
18760 <features tabularvalignment="middle">
18761 <column alignment="center" valignment="top">
18762 <column alignment="center" valignment="top">
18763 <column alignment="center" valignment="top">
18765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18768 \begin_layout Plain Layout
18774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18777 \begin_layout Plain Layout
18783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18786 \begin_layout Plain Layout
18794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18797 \begin_layout Plain Layout
18803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18806 \begin_layout Plain Layout
18812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18815 \begin_layout Plain Layout
18823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18826 \begin_layout Plain Layout
18832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18835 \begin_layout Plain Layout
18841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18844 \begin_layout Plain Layout
18863 \begin_layout Standard
18864 To return to the default line color black, insert this command in \SpecialChar TeX
18866 after the table or table float:
18869 \begin_layout Standard
18881 \begin_layout Standard
18883 \begin_inset space ~
18887 \begin_inset CommandInset ref
18889 reference "tab:Table-with-colored"
18893 is an example with colored vertical and horizontal lines.
18896 \begin_layout Standard
18897 \begin_inset Float table
18903 \begin_layout Plain Layout
18904 \begin_inset Caption Standard
18906 \begin_layout Plain Layout
18907 \begin_inset CommandInset label
18909 name "tab:Table-with-colored"
18913 Table with colored lines
18921 \begin_layout Plain Layout
18923 \begin_inset Tabular
18924 <lyxtabular version="3" rows="3" columns="3">
18925 <features tabularvalignment="middle">
18926 <column alignment="center" valignment="top" special="Wc">
18927 <column alignment="center" valignment="top" special="Wc">
18928 <column alignment="center" valignment="top" special="WcW">
18930 <cell alignment="center" valignment="top" topline="true" usebox="none">
18933 \begin_layout Plain Layout
18939 <cell alignment="center" valignment="top" topline="true" usebox="none">
18942 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" topline="true" usebox="none">
18951 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" topline="true" usebox="none">
18962 \begin_layout Plain Layout
18968 <cell alignment="center" valignment="top" topline="true" usebox="none">
18971 \begin_layout Plain Layout
18977 <cell alignment="center" valignment="top" topline="true" usebox="none">
18980 \begin_layout Plain Layout
18987 <row topspace="default">
18988 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18991 \begin_layout Plain Layout
18997 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19000 \begin_layout Plain Layout
19006 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19009 \begin_layout Plain Layout
19028 \begin_layout Standard
19032 \begin_layout Plain Layout
19048 \begin_layout Standard
19052 \begin_layout Plain Layout
19058 arrayrulewidth}{1.2pt}
19066 \begin_layout Standard
19067 To color only some of the table lines another strategy is necessary.
19068 To color all following horizontal lines, insert this command as \SpecialChar TeX
19070 last thing in the row that should be above the first colored line:
19073 \begin_layout Standard
19082 arrayrulecolor{blue}%
19085 \begin_layout Standard
19086 To go back to black lines, add this command as first thing in the row that
19087 is above the black lines:
19090 \begin_layout Standard
19095 arrayrulecolor{black}
19098 \begin_layout Standard
19099 With this one can color table lines like in Table
19100 \begin_inset space ~
19104 \begin_inset CommandInset ref
19106 reference "tab:Table-with-different-hor"
19111 However, with this method it is not possible to color the line above the
19112 first row of a table.
19115 \begin_layout Standard
19116 \begin_inset Float table
19121 \begin_layout Plain Layout
19122 \begin_inset Caption Standard
19124 \begin_layout Plain Layout
19125 \begin_inset CommandInset label
19127 name "tab:Table-with-different-hor"
19131 Table with different horizontal line colors.
19139 \begin_layout Plain Layout
19141 \begin_inset Tabular
19142 <lyxtabular version="3" rows="6" columns="7">
19143 <features tabularvalignment="middle">
19144 <column alignment="center" valignment="top">
19145 <column alignment="center" valignment="top">
19146 <column alignment="center" valignment="top">
19147 <column alignment="center" valignment="top">
19148 <column alignment="center" valignment="top">
19149 <column alignment="center" valignment="top">
19150 <column alignment="center" valignment="top">
19152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19155 \begin_layout Plain Layout
19161 <cell alignment="center" valignment="top" topline="true" usebox="none">
19164 \begin_layout Plain Layout
19170 <cell alignment="center" valignment="top" topline="true" usebox="none">
19173 \begin_layout Plain Layout
19179 <cell alignment="center" valignment="top" topline="true" usebox="none">
19182 \begin_layout Plain Layout
19188 <cell alignment="center" valignment="top" topline="true" usebox="none">
19191 \begin_layout Plain Layout
19197 <cell alignment="center" valignment="top" topline="true" usebox="none">
19200 \begin_layout Plain Layout
19206 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19209 \begin_layout Plain Layout
19213 \begin_layout Plain Layout
19221 arrayrulecolor{blue}%
19233 <cell alignment="center" valignment="top" usebox="none">
19236 \begin_layout Plain Layout
19242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19245 \begin_layout Plain Layout
19251 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19254 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19263 \begin_layout Plain Layout
19269 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19272 \begin_layout Plain Layout
19278 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19281 \begin_layout Plain Layout
19287 <cell alignment="center" valignment="top" usebox="none">
19290 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19301 \begin_layout Plain Layout
19305 \begin_layout Plain Layout
19309 arrayrulecolor{black}
19319 <cell alignment="center" valignment="top" usebox="none">
19322 \begin_layout Plain Layout
19328 <cell alignment="center" valignment="top" usebox="none">
19331 \begin_layout Plain Layout
19337 <cell alignment="center" valignment="top" usebox="none">
19340 \begin_layout Plain Layout
19346 <cell alignment="center" valignment="top" usebox="none">
19349 \begin_layout Plain Layout
19355 <cell alignment="center" valignment="top" usebox="none">
19358 \begin_layout Plain Layout
19364 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19367 \begin_layout Plain Layout
19375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19378 \begin_layout Plain Layout
19384 <cell alignment="center" valignment="top" usebox="none">
19387 \begin_layout Plain Layout
19393 <cell alignment="center" valignment="top" usebox="none">
19396 \begin_layout Plain Layout
19402 <cell alignment="center" valignment="top" usebox="none">
19405 \begin_layout Plain Layout
19411 <cell alignment="center" valignment="top" usebox="none">
19414 \begin_layout Plain Layout
19420 <cell alignment="center" valignment="top" usebox="none">
19423 \begin_layout Plain Layout
19429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19432 \begin_layout Plain Layout
19436 \begin_layout Plain Layout
19444 arrayrulecolor{green}%
19456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19459 \begin_layout Plain Layout
19465 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19468 \begin_layout Plain Layout
19474 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19477 \begin_layout Plain Layout
19483 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19486 \begin_layout Plain Layout
19492 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19495 \begin_layout Plain Layout
19501 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19504 \begin_layout Plain Layout
19510 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19513 \begin_layout Plain Layout
19521 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19524 \begin_layout Plain Layout
19528 \begin_layout Plain Layout
19532 arrayrulecolor{black}
19542 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19545 \begin_layout Plain Layout
19551 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19554 \begin_layout Plain Layout
19560 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19563 \begin_layout Plain Layout
19569 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19572 \begin_layout Plain Layout
19578 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19581 \begin_layout Plain Layout
19587 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19590 \begin_layout Plain Layout
19594 \begin_layout Plain Layout
19602 arrayrulecolor{blue}%
19625 \begin_layout Standard
19626 To change the color of vertical lines within a row, like in Table
19627 \begin_inset space ~
19631 \begin_inset CommandInset ref
19633 reference "tab:Table-with-different-ver"
19637 , one needs to use multicolumns.
19638 At first one needs to remove all vertical lines that don't run along the
19640 Now one colors all lines using the command
19643 \begin_layout Standard
19652 arrayrulecolor{blue}%
19655 \begin_layout Standard
19657 Finally one inserts this command as \SpecialChar TeX
19658 code to every cell in the row where
19659 one needs a vertical line in a different color:
19662 \begin_layout Standard
19678 \begin_layout Standard
19679 This adds a vertical line to both sides of the cell.
19680 The left one will be green, the right one red.
19681 If no color change is necessary one can omit the
19687 command in the above command.
19688 To get for example a black left line and a blue right line you can write:
19691 \begin_layout Standard
19703 \begin_layout Standard
19704 because the color blue was already set for all lines.
19709 creates hereby the vertical line while
19722 To set vertical lines without changing any color use
19725 \begin_layout Standard
19730 multicolumn{1}{|c|}{
19733 \begin_layout Standard
19734 After this command insert the cell content the normal way and end the cell
19735 with a closing brace
19739 in \SpecialChar TeX
19743 \begin_layout Standard
19744 \begin_inset Float table
19749 \begin_layout Plain Layout
19750 \begin_inset Caption Standard
19752 \begin_layout Plain Layout
19753 \begin_inset CommandInset label
19755 name "tab:Table-with-different-ver"
19759 Table with different vertical line colors in one row.
19767 \begin_layout Plain Layout
19769 \begin_inset Tabular
19770 <lyxtabular version="3" rows="5" columns="7">
19771 <features tabularvalignment="middle">
19772 <column alignment="center" valignment="top">
19773 <column alignment="center" valignment="top">
19774 <column alignment="center" valignment="top">
19775 <column alignment="center" valignment="top">
19776 <column alignment="center" valignment="top">
19777 <column alignment="center" valignment="top">
19778 <column alignment="center" valignment="top">
19780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19783 \begin_layout Plain Layout
19789 <cell alignment="center" valignment="top" topline="true" usebox="none">
19792 \begin_layout Plain Layout
19798 <cell alignment="center" valignment="top" topline="true" usebox="none">
19801 \begin_layout Plain Layout
19807 <cell alignment="center" valignment="top" topline="true" usebox="none">
19810 \begin_layout Plain Layout
19816 <cell alignment="center" valignment="top" topline="true" usebox="none">
19819 \begin_layout Plain Layout
19825 <cell alignment="center" valignment="top" topline="true" usebox="none">
19828 \begin_layout Plain Layout
19834 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19837 \begin_layout Plain Layout
19841 \begin_layout Plain Layout
19849 arrayrulecolor{red}%
19861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19864 \begin_layout Plain Layout
19868 \begin_layout Plain Layout
19885 \begin_layout Plain Layout
19897 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19900 \begin_layout Plain Layout
19906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19909 \begin_layout Plain Layout
19915 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19918 \begin_layout Plain Layout
19924 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19927 \begin_layout Plain Layout
19933 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19936 \begin_layout Plain Layout
19940 \begin_layout Plain Layout
19944 multicolumn{1}{c|}{
19953 \begin_layout Plain Layout
19965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19968 \begin_layout Plain Layout
19972 \begin_layout Plain Layout
19989 \begin_layout Plain Layout
20003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20006 \begin_layout Plain Layout
20010 \begin_layout Plain Layout
20014 arrayrulecolor{black}
20024 <cell alignment="center" valignment="top" usebox="none">
20027 \begin_layout Plain Layout
20033 <cell alignment="center" valignment="top" usebox="none">
20036 \begin_layout Plain Layout
20042 <cell alignment="center" valignment="top" usebox="none">
20045 \begin_layout Plain Layout
20051 <cell alignment="center" valignment="top" usebox="none">
20054 \begin_layout Plain Layout
20060 <cell alignment="center" valignment="top" usebox="none">
20063 \begin_layout Plain Layout
20069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20072 \begin_layout Plain Layout
20076 \begin_layout Plain Layout
20084 arrayrulecolor{magenta}%
20096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20099 \begin_layout Plain Layout
20103 \begin_layout Plain Layout
20107 multicolumn{1}{|c!{
20120 \begin_layout Plain Layout
20132 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20135 \begin_layout Plain Layout
20139 \begin_layout Plain Layout
20156 \begin_layout Plain Layout
20168 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20171 \begin_layout Plain Layout
20175 \begin_layout Plain Layout
20192 \begin_layout Plain Layout
20204 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20207 \begin_layout Plain Layout
20211 \begin_layout Plain Layout
20228 \begin_layout Plain Layout
20240 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20243 \begin_layout Plain Layout
20247 \begin_layout Plain Layout
20264 \begin_layout Plain Layout
20276 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20279 \begin_layout Plain Layout
20283 \begin_layout Plain Layout
20300 \begin_layout Plain Layout
20312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20315 \begin_layout Plain Layout
20319 \begin_layout Plain Layout
20323 multicolumn{1}{c|}{
20332 \begin_layout Plain Layout
20346 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20349 \begin_layout Plain Layout
20353 \begin_layout Plain Layout
20357 arrayrulecolor{black}
20367 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20370 \begin_layout Plain Layout
20376 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20379 \begin_layout Plain Layout
20385 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20388 \begin_layout Plain Layout
20394 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20397 \begin_layout Plain Layout
20403 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20406 \begin_layout Plain Layout
20412 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20415 \begin_layout Plain Layout
20434 \begin_layout Standard
20438 \begin_layout Plain Layout
20444 arrayrulewidth}{0.4pt}
20452 \begin_layout Section
20453 Rotated Table Cells
20454 \begin_inset CommandInset label
20456 name "sec:Rotated-Table-Cells"
20461 \begin_inset Index idx
20464 \begin_layout Plain Layout
20465 Table ! Rotated Cells
20471 \begin_inset Index idx
20474 \begin_layout Plain Layout
20483 \begin_layout Standard
20484 \begin_inset Note Greyedout
20487 \begin_layout Plain Layout
20492 Not all DVI-viewers are able to display rotations.
20500 \begin_layout Standard
20502 \begin_inset space ~
20506 \begin_inset CommandInset ref
20508 reference "tab:Table-with-rotated"
20515 is an example where 3
20516 \begin_inset space ~
20519 cells were rotated by 45
20520 \begin_inset space \thinspace{}
20526 \begin_layout Standard
20527 \begin_inset Float table
20533 \begin_layout Plain Layout
20534 \begin_inset Caption Standard
20536 \begin_layout Plain Layout
20537 \begin_inset CommandInset label
20539 name "tab:Table-with-rotated"
20543 Table with rotated cells in the first row.
20551 \begin_layout Plain Layout
20554 \begin_inset Tabular
20555 <lyxtabular version="3" rows="2" columns="3">
20556 <features tabularvalignment="middle">
20557 <column alignment="center" valignment="top" width="0pt">
20558 <column alignment="center" valignment="top" width="0pt">
20559 <column alignment="center" valignment="top" width="0pt">
20561 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20564 \begin_layout Plain Layout
20570 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20573 \begin_layout Plain Layout
20579 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20582 \begin_layout Plain Layout
20590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20593 \begin_layout Plain Layout
20599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20602 \begin_layout Plain Layout
20608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20611 \begin_layout Plain Layout
20630 \begin_layout Standard
20631 \begin_inset Note Greyedout
20634 \begin_layout Plain Layout
20639 Line breaks (shortcut
20642 arg "newline-insert newline"
20645 ) are not allowed in rotated cells.
20653 \begin_layout Standard
20654 If you want to rotate table cells containing line breaks, you have to put
20655 the cell content into a minipage or a parbox.
20659 \begin_layout Plain Layout
20660 For more about these boxes see sec.
20661 \begin_inset space \thinspace{}
20665 \begin_inset CommandInset ref
20667 reference "sec:Minipages"
20672 \begin_inset CommandInset ref
20674 reference "sec:Parboxes"
20683 If you rotate this cell by 90
20684 \begin_inset space \thinspace{}
20687 ° the width of the box is the height of the cell.
20688 To avoid to estimate a suitable box width one can use a minipage with a
20690 Such a box is inserted by loading the module
20693 \begin_inset space ~
20698 in the document settings.
20699 Then one can use the menu
20701 Insert\SpecialChar menuseparator
20703 \begin_inset space ~
20706 Insets\SpecialChar menuseparator
20708 \begin_inset space ~
20714 \begin_inset space ~
20719 \begin_inset space ~
20723 \begin_inset CommandInset ref
20725 reference "tab:Table-with-rotated-multi"
20729 is an example for a rotated multiline cell where a variable width minipage
20733 \begin_layout Standard
20734 \begin_inset Float table
20739 \begin_layout Plain Layout
20740 \begin_inset Caption Standard
20742 \begin_layout Plain Layout
20743 \begin_inset CommandInset label
20745 name "tab:Table-with-rotated-multi"
20749 Table with rotated multiline cell.
20757 \begin_layout Plain Layout
20760 \begin_inset Tabular
20761 <lyxtabular version="3" rows="2" columns="3">
20762 <features tabularvalignment="middle">
20763 <column alignment="center" valignment="top">
20764 <column alignment="center" valignment="top" width="0pt">
20765 <column alignment="center" valignment="top">
20767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20770 \begin_layout Plain Layout
20776 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20779 \begin_layout Plain Layout
20780 \begin_inset Flex Minipage (Var. Width)
20783 \begin_layout Plain Layout
20785 \begin_inset Newline newline
20789 \begin_inset space ~
20802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20805 \begin_layout Plain Layout
20813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20816 \begin_layout Plain Layout
20822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20825 \begin_layout Plain Layout
20831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20834 \begin_layout Plain Layout
20853 \begin_layout Section
20854 Table Width Calculation
20855 \begin_inset CommandInset label
20857 name "sec:Table-Width-Calculation"
20864 \begin_layout Standard
20865 For wide tables it is sometimes difficult to assure that the table does
20866 not protrude over the page margin.
20867 Setting a fixed width for every column of the table is the solution, but
20868 what amount of space is needed for each column?
20871 \begin_layout Standard
20873 \begin_inset Formula $W_{\mathrm{table}}$
20876 can be calculated: Every column has the width of the specified column width
20878 \begin_inset Formula $W_{\mathrm{column}}$
20881 (that the content of the column can consume) plus two times the separation
20882 between the column content and the column border (\SpecialChar LaTeX
20890 \begin_inset space \thinspace{}
20893 pt) plus the width of a border line (\SpecialChar LaTeX
20901 \begin_inset space \thinspace{}
20905 \begin_inset Formula $n$
20909 \begin_inset space ~
20912 columns have the same width, the table width is
20913 \begin_inset Formula
20915 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20923 \begin_layout Standard
20924 The available width for a table is the space between the page margins or
20925 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20933 If all table columns should have the same width and
20934 \begin_inset Formula $W_{\mathrm{table}}$
20938 \begin_inset space \thinspace{}
20944 \begin_inset Formula $W_{\mathrm{column}}$
20947 can easily be calculated.
20950 \begin_layout Standard
20951 To be able to perform calculations you need to load the \SpecialChar LaTeX
20957 \begin_inset Index idx
20960 \begin_layout Plain Layout
20967 in the document preamble.
20968 To set the width in the table dialog you have to use the field
20974 The command scheme for this field is the same that is explained in section
20975 \begin_inset space ~
20979 \begin_inset CommandInset ref
20981 reference "subsec:Multicolumn-Calculations"
20987 \begin_inset space \thinspace{}
20990 columns with an uniform width and centered text, enter there for each column
20994 \begin_layout Standard
21001 columnwidth-62.4pt)/5}
21004 \begin_layout Standard
21006 \begin_inset space \thinspace{}
21009 columns where 2 should have 0.75
21010 \begin_inset space ~
21013 times the width than the 3 others, the calculation is
21014 \begin_inset Formula
21016 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
21017 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
21018 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
21019 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21027 \begin_layout Standard
21028 In the table therefore the command
21031 \begin_layout Standard
21038 columnwidth-62.4pt)/
21043 \begin_layout Standard
21044 is used for the wider columns and
21047 \begin_layout Standard
21054 columnwidth-62.4pt)/
21061 \begin_layout Standard
21062 for the smaller ones:
21065 \begin_layout Standard
21066 \begin_inset Tabular
21067 <lyxtabular version="3" rows="2" columns="5">
21068 <features tabularvalignment="middle">
21069 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21070 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21071 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21072 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21073 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21078 \begin_layout Plain Layout
21084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21087 \begin_layout Plain Layout
21093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21096 \begin_layout Plain Layout
21102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21105 \begin_layout Plain Layout
21111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21114 \begin_layout Plain Layout
21122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21125 \begin_layout Plain Layout
21126 111111 1111111 111111 111111111 11111 11111 1111
21131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21134 \begin_layout Plain Layout
21140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21143 \begin_layout Plain Layout
21144 2222 22222 222222 222222222 2222222 22 22222
21149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21152 \begin_layout Plain Layout
21158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21161 \begin_layout Plain Layout
21162 333333 333333 333333 33333 3333333 333
21175 \begin_layout Section
21176 Table Customization
21177 \begin_inset Index idx
21180 \begin_layout Plain Layout
21181 Table Customization
21187 \begin_inset Index idx
21190 \begin_layout Plain Layout
21191 Table ! Customization
21199 \begin_layout Subsection
21201 \begin_inset CommandInset label
21203 name "subsec:Row-Spacing"
21208 \begin_inset Index idx
21211 \begin_layout Plain Layout
21212 Table Customization ! Row Spacing
21220 \begin_layout Standard
21221 You can add vertical space to table rows in the
21225 tab of the table dialog.
21226 You find there three possibilities:
21229 \begin_layout Description
21231 \begin_inset space ~
21235 \begin_inset space ~
21238 row will add space above the characters of the table row.
21239 If the table is a formal table
21243 \begin_layout Plain Layout
21244 Formal tables are explained in section
21245 \begin_inset space ~
21249 \begin_inset CommandInset ref
21251 reference "sec:Formal-Tables"
21261 will insert as default 0.5
21262 \begin_inset space \thinspace{}
21266 For normal tables the inserted space will unfortunately destroy the vertical
21267 table lines as in the following table:
21268 \begin_inset VSpace medskip
21272 \begin_inset Newline newline
21276 \begin_inset space \hspace*{}
21281 \begin_inset space \hfill{}
21285 \begin_inset Tabular
21286 <lyxtabular version="3" rows="3" columns="1">
21287 <features tabularvalignment="middle">
21288 <column alignment="center" valignment="top">
21290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21293 \begin_layout Plain Layout
21300 <row topspace="3mm">
21301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21304 \begin_layout Plain Layout
21306 \begin_inset space \thinspace{}
21309 mm space top of row
21316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21319 \begin_layout Plain Layout
21331 \begin_inset space \hfill{}
21335 \begin_inset space \hspace*{}
21340 \begin_inset VSpace medskip
21344 \begin_inset Newline newline
21347 So inserting space in the top of row for normal tables is only useful when
21348 you don't have vertical lines.
21351 \begin_layout Description
21353 \begin_inset space ~
21357 \begin_inset space ~
21360 row will add space below the characters of the table row.
21361 If the table is a formal table \SpecialChar LyX
21362 will insert as default 0.5
21363 \begin_inset space \thinspace{}
21366 em space, for normal tables the default size is 2
21367 \begin_inset space \thinspace{}
21373 \begin_layout Description
21375 \begin_inset space ~
21378 rows adds space between the current and the following row.
21379 If the table is a formal table \SpecialChar LyX
21380 will insert as default 0.5
21381 \begin_inset space \thinspace{}
21385 For normal tables the inserted space will unfortunately destroy the vertical
21386 table lines as in the following table:
21387 \begin_inset VSpace medskip
21391 \begin_inset Newline newline
21395 \begin_inset space \hspace*{}
21400 \begin_inset space \hfill{}
21404 \begin_inset Tabular
21405 <lyxtabular version="3" rows="3" columns="1">
21406 <features tabularvalignment="middle">
21407 <column alignment="center" valignment="top">
21409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21412 \begin_layout Plain Layout
21419 <row interlinespace="3mm">
21420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21423 \begin_layout Plain Layout
21424 \begin_inset Formula $\downarrow$
21428 \begin_inset space \thinspace{}
21431 mm space between row
21432 \begin_inset Formula $\downarrow$
21442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21445 \begin_layout Plain Layout
21446 \begin_inset Formula $\uparrow$
21450 \begin_inset space \thinspace{}
21453 mm space between row
21454 \begin_inset Formula $\uparrow$
21468 \begin_inset space \hfill{}
21472 \begin_inset space \hspace*{}
21477 \begin_inset VSpace medskip
21481 \begin_inset Newline newline
21484 So inserting space between rows for normal tables is only useful when you
21485 don't have vertical lines.
21488 \begin_layout Standard
21489 \begin_inset VSpace bigskip
21492 When you want to add extra height to all cells of all tables, you can do
21493 this with the following preamble lines:
21496 \begin_layout Standard
21501 @ifundefined{extrarowheight}
21502 \begin_inset Newline newline
21506 \begin_inset Phantom HPhantom
21509 \begin_layout Plain Layout
21512 \begin_inset space ~
21522 usepackage{array}}{}
21523 \begin_inset Newline newline
21530 extrarowheight}{height}
21533 \begin_inset Note Note
21536 \begin_layout Plain Layout
21541 will be loaded automatically by \SpecialChar LyX
21542 when you use self defined table formats.
21543 To avoid that it is loaded twice the command
21549 is used in the above command.
21557 \begin_layout Standard
21562 can have one of the units listed in appendix
21563 \begin_inset space ~
21567 \begin_inset CommandInset ref
21569 reference "cha:Units-available-in"
21574 But this has the disadvantage that the cell texts are no longer exactly
21575 vertically centered.
21578 \begin_layout Standard
21579 If you are using font sizes larger than the normal size, the table borders
21580 are often too close to the letters.
21581 This can be corrected by inserting the command
21587 in \SpecialChar TeX
21588 Code at the beginning of a table row.
21590 \begin_inset space ~
21594 \begin_inset CommandInset ref
21596 reference "tab:Vertical-alignment-of"
21600 illustrates the effect.
21603 \begin_layout Standard
21605 \begin_inset Float table
21611 \begin_layout Plain Layout
21612 \begin_inset Caption Standard
21614 \begin_layout Plain Layout
21615 \begin_inset CommandInset label
21617 name "tab:Vertical-alignment-of"
21621 Vertical alignment of text with large font sizes.
21629 \begin_layout Plain Layout
21630 \begin_inset space \hfill{}
21634 \begin_inset Float table
21639 \begin_layout Plain Layout
21640 \begin_inset Caption Standard
21642 \begin_layout Plain Layout
21651 \begin_layout Plain Layout
21654 \begin_inset Tabular
21655 <lyxtabular version="3" rows="6" columns="1">
21656 <features tabularvalignment="middle">
21657 <column alignment="left" valignment="top">
21659 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21662 \begin_layout Plain Layout
21670 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21673 \begin_layout Plain Layout
21683 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21686 \begin_layout Plain Layout
21696 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21699 \begin_layout Plain Layout
21709 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21712 \begin_layout Plain Layout
21722 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21725 \begin_layout Plain Layout
21744 \begin_inset space \hfill{}
21748 \begin_inset Float table
21753 \begin_layout Plain Layout
21754 \begin_inset Caption Standard
21756 \begin_layout Plain Layout
21757 Table using the command
21771 \begin_layout Plain Layout
21774 \begin_inset Tabular
21775 <lyxtabular version="3" rows="6" columns="1">
21776 <features tabularvalignment="middle">
21777 <column alignment="left" valignment="top">
21779 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21782 \begin_layout Plain Layout
21790 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21793 \begin_layout Plain Layout
21799 \begin_layout Plain Layout
21815 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21818 \begin_layout Plain Layout
21824 \begin_layout Plain Layout
21840 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21843 \begin_layout Plain Layout
21849 \begin_layout Plain Layout
21865 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21868 \begin_layout Plain Layout
21874 \begin_layout Plain Layout
21890 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21893 \begin_layout Plain Layout
21899 \begin_layout Plain Layout
21926 \begin_inset space \hfill{}
21937 \begin_layout Subsection
21938 Special Cell Alignment
21939 \begin_inset CommandInset label
21941 name "subsec:Special-Cell-Alignment"
21946 \begin_inset Index idx
21949 \begin_layout Plain Layout
21950 Table Customization ! Special Cell Alignment
21958 \begin_layout Standard
21959 Sometimes it looks better when the cell entries of a column are aligned
21960 with a special character, e.
21961 \begin_inset space \thinspace{}
21965 \begin_inset space \space{}
21968 with the decimal separator as in Table
21969 \begin_inset space ~
21973 \begin_inset CommandInset ref
21975 reference "tab:Table-cells-align"
21980 This alignment is achieved by setting the cursor into the column and then
21981 either pressing the toolbar button
21984 arg "tabular-feature align-decimal"
21987 or setting the alignment in the table settings to
21990 \begin_inset space ~
21994 \begin_inset space ~
22000 The alignment character can be a character of your choice and is specified
22001 in the table settings.
22004 \begin_layout Standard
22005 \begin_inset Float table
22011 \begin_layout Plain Layout
22012 \begin_inset Caption Standard
22014 \begin_layout Plain Layout
22015 \begin_inset CommandInset label
22017 name "tab:Table-cells-align"
22021 Table cells of a column aligned with the decimal separator.
22029 \begin_layout Plain Layout
22031 \begin_inset Tabular
22032 <lyxtabular version="3" rows="4" columns="1">
22033 <features booktabs="true" tabularvalignment="middle">
22034 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22039 \begin_layout Plain Layout
22047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22050 \begin_layout Plain Layout
22058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22061 \begin_layout Plain Layout
22069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22072 \begin_layout Plain Layout
22091 \begin_layout Standard
22092 \begin_inset Float table
22098 \begin_layout Plain Layout
22099 \begin_inset Caption Standard
22101 \begin_layout Plain Layout
22102 \begin_inset CommandInset label
22104 name "tab:Table-align-operator"
22108 Table cells of a column aligned with the operators.
22116 \begin_layout Plain Layout
22118 \begin_inset Tabular
22119 <lyxtabular version="3" rows="4" columns="2">
22120 <features booktabs="true" tabularvalignment="middle">
22121 <column alignment="right" valignment="top" width="0pt">
22122 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22124 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22127 \begin_layout Plain Layout
22133 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22136 \begin_layout Plain Layout
22144 <cell alignment="center" valignment="top" usebox="none">
22147 \begin_layout Plain Layout
22148 \begin_inset Formula $12\,+$
22156 <cell alignment="center" valignment="top" usebox="none">
22159 \begin_layout Plain Layout
22160 \begin_inset Formula $\,6$
22170 <cell alignment="center" valignment="top" usebox="none">
22173 \begin_layout Plain Layout
22174 \begin_inset Formula $0\,-$
22182 <cell alignment="center" valignment="top" usebox="none">
22185 \begin_layout Plain Layout
22186 \begin_inset Formula $\,68$
22196 <cell alignment="center" valignment="top" usebox="none">
22199 \begin_layout Plain Layout
22200 \begin_inset Formula $-123\,/$
22208 <cell alignment="center" valignment="top" usebox="none">
22211 \begin_layout Plain Layout
22212 \begin_inset Formula $\,0$
22233 \begin_layout Standard
22234 For alignments at characters in formulas this method does not work because
22235 the field to specify the alignment character does not allow formulas.
22236 In this case one need to use the method from Table
22237 \begin_inset space ~
22241 \begin_inset CommandInset ref
22243 reference "tab:Table-align-operator"
22248 This table was created with a 4×2 table.
22249 The heading is a centered multicolumn.
22250 The first column is right-aligned and contains the first part including
22252 The second column is left aligned and contains the rest.
22253 A small space was added at the beginning of each cell of the second column
22254 to get the space that is usually around operators.
22255 To omit the space that is normally between two table columns, the following
22257 -argument was used for the second column:
22260 \begin_layout Standard
22266 \begin_layout Standard
22268 \begin_inset space ~
22272 \begin_inset CommandInset ref
22274 reference "tab:Several-table-cell"
22278 shows some example alignments.
22279 For the alignment with the relation sign, a small space was added like
22280 for the second column of Table
22281 \begin_inset space ~
22285 \begin_inset CommandInset ref
22287 reference "tab:Table-align-operator"
22294 \begin_layout Standard
22295 \begin_inset Float table
22301 \begin_layout Plain Layout
22302 \begin_inset Caption Standard
22304 \begin_layout Plain Layout
22305 \begin_inset CommandInset label
22307 name "tab:Several-table-cell"
22311 Several table cell alignments.
22319 \begin_layout Plain Layout
22321 \begin_inset Tabular
22322 <lyxtabular version="3" rows="4" columns="6">
22323 <features tabularvalignment="middle">
22324 <column alignment="right" valignment="top">
22325 <column alignment="left" valignment="top" special="@{}l">
22326 <column alignment="right" valignment="top">
22327 <column alignment="left" valignment="top" special="@{}l">
22328 <column alignment="right" valignment="top">
22329 <column alignment="left" valignment="top" special="@{}l">
22331 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22334 \begin_layout Plain Layout
22340 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22343 \begin_layout Plain Layout
22349 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22352 \begin_layout Plain Layout
22358 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22361 \begin_layout Plain Layout
22367 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22370 \begin_layout Plain Layout
22376 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22379 \begin_layout Plain Layout
22387 <cell alignment="center" valignment="top" usebox="none">
22390 \begin_layout Plain Layout
22396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22399 \begin_layout Plain Layout
22401 \begin_inset space \thinspace{}
22409 <cell alignment="center" valignment="top" usebox="none">
22412 \begin_layout Plain Layout
22413 \begin_inset Formula $10\cdot$
22421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22424 \begin_layout Plain Layout
22425 \begin_inset Formula $10^{\mbox{-}17}$
22433 <cell alignment="center" valignment="top" usebox="none">
22436 \begin_layout Plain Layout
22437 \begin_inset Formula $\Gamma(t)\propto$
22445 <cell alignment="center" valignment="top" usebox="none">
22448 \begin_layout Plain Layout
22449 \begin_inset Formula $\:\Upsilon(t)$
22459 <cell alignment="center" valignment="top" usebox="none">
22462 \begin_layout Plain Layout
22468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22471 \begin_layout Plain Layout
22473 \begin_inset space \thinspace{}
22481 <cell alignment="center" valignment="top" usebox="none">
22484 \begin_layout Plain Layout
22485 \begin_inset Formula $5.78\cdot$
22493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22496 \begin_layout Plain Layout
22497 \begin_inset Formula $10^{7}$
22505 <cell alignment="center" valignment="top" usebox="none">
22508 \begin_layout Plain Layout
22509 \begin_inset Formula $A\ne$
22517 <cell alignment="center" valignment="top" usebox="none">
22520 \begin_layout Plain Layout
22521 \begin_inset Formula $\:B_{\mathrm{red}}$
22531 <cell alignment="center" valignment="top" usebox="none">
22534 \begin_layout Plain Layout
22540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22543 \begin_layout Plain Layout
22545 \begin_inset space \thinspace{}
22553 <cell alignment="center" valignment="top" usebox="none">
22556 \begin_layout Plain Layout
22558 \begin_inset Formula $33.5\cdot$
22566 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22569 \begin_layout Plain Layout
22570 \begin_inset Formula $10^{4}$
22578 <cell alignment="center" valignment="top" usebox="none">
22581 \begin_layout Plain Layout
22582 \begin_inset Formula $\sin(\alpha)\ge$
22590 <cell alignment="center" valignment="top" usebox="none">
22593 \begin_layout Plain Layout
22594 \begin_inset Formula $\:\sin(\beta)$
22615 \begin_layout Subsection
22616 Customized Cell/Column Format
22617 \begin_inset CommandInset label
22619 name "subsec:Customized-Format"
22624 \begin_inset Index idx
22627 \begin_layout Plain Layout
22628 Table Customization ! Cell/Column Format
22636 \begin_layout Standard
22637 Calculating the required width for normal columns as described in section
22638 \begin_inset space ~
22642 \begin_inset CommandInset ref
22644 reference "sec:Table-Width-Calculation"
22648 or for spanned columns as described in section
22649 \begin_inset space ~
22653 \begin_inset CommandInset ref
22655 reference "subsec:Multicolumn-Calculations"
22659 is very annoying if you have several tables where a calculation is necessary.
22660 To make life easier, you can define a cell/column format in the preamble,
22661 that can be used in all tables of the document.
22662 The format is defined with the command
22665 \begin_layout Standard
22670 newcolumntype{name of format}[number of arguments]{commands}
22673 \begin_layout Standard
22674 The format name may only consist of one letter.
22699 are predefined and cannot be used.
22700 But all letters are allowed as capitals.
22703 \begin_layout Standard
22704 \begin_inset VSpace medskip
22710 \begin_layout Standard
22711 For vertically and horizontally centered multicolumn cells with a fixed
22712 width you can define the cell format
22715 \begin_layout Standard
22720 newcolumntype{M}[1]{>{
22727 \begin_layout Standard
22734 avoids the problem of hyphenating the first word, as described in section
22735 \begin_inset space ~
22739 \begin_inset CommandInset ref
22741 reference "subsec:Multiple-Lines-in"
22746 Now you can simply enter
22749 \begin_layout Standard
22755 \begin_layout Standard
22761 in the table dialog to create a multicolumn.
22764 \begin_layout Standard
22765 \begin_inset VSpace bigskip
22771 \begin_layout Standard
22772 For cells spanned by a multicolumn cell, you can define the format
22775 \begin_layout Standard
22780 newcolumntype{S}[2]{>{
22785 \begin_inset Newline newline
22789 \begin_inset Phantom HPhantom
22792 \begin_layout Plain Layout
22806 arrayrulewidth)*(1-#2))/#2}}
22809 \begin_layout Standard
22810 This format uses equation
22811 \begin_inset CommandInset ref
22817 to calculate the required width so that each spanned cell has the same
22821 \begin_layout Standard
22825 \begin_layout Standard
22828 S{width of multicolumn cell}{number of spanned columns}
22831 \begin_layout Standard
22832 as \SpecialChar LaTeX
22833 -argument of the column.
22836 \begin_layout Standard
22837 \begin_inset VSpace bigskip
22843 \begin_layout Standard
22844 For colored columns, you can define
22847 \begin_layout Standard
22852 newcolumntype{K}[1]{>{
22859 \begin_layout Standard
22861 \begin_inset Quotes eld
22865 \begin_inset Quotes erd
22868 at the end creates a column with a flexible width whose text is horizontally
22873 \begin_layout Standard
22879 \begin_layout Standard
22880 as \SpecialChar LaTeX
22884 \begin_layout Standard
22885 \begin_inset VSpace bigskip
22891 \begin_layout Standard
22893 \begin_inset space ~
22897 \begin_inset CommandInset ref
22899 reference "tab:Table-using-user-defined"
22903 use the \SpecialChar LaTeX
22907 \begin_layout Standard
22913 \begin_layout Standard
22914 for the first column and the multicolumn,
22917 \begin_layout Standard
22923 \begin_layout Standard
22924 for the last column, and
22927 \begin_layout Standard
22933 \begin_layout Standard
22934 for the cells in the second column.
22937 \begin_layout Standard
22938 \begin_inset Float table
22944 \begin_layout Plain Layout
22945 \begin_inset Caption Standard
22947 \begin_layout Plain Layout
22948 \begin_inset CommandInset label
22950 name "tab:Table-using-user-defined"
22954 Table using user-defined table formats
22962 \begin_layout Plain Layout
22964 \begin_inset Tabular
22965 <lyxtabular version="3" rows="3" columns="4">
22966 <features tabularvalignment="middle">
22967 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22968 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22969 <column alignment="center" valignment="middle">
22970 <column alignment="center" valignment="middle" special="K{red}">
22972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22975 \begin_layout Plain Layout
22976 verylongtablecellword
22981 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22984 \begin_layout Plain Layout
22985 multiple lines multicolumn
22990 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22993 \begin_layout Plain Layout
22999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23002 \begin_layout Plain Layout
23010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23013 \begin_layout Plain Layout
23019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23022 \begin_layout Plain Layout
23028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23031 \begin_layout Plain Layout
23037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23040 \begin_layout Plain Layout
23048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23051 \begin_layout Plain Layout
23057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23060 \begin_layout Plain Layout
23066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23069 \begin_layout Plain Layout
23075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23078 \begin_layout Plain Layout
23097 \begin_layout Subsection
23099 \begin_inset CommandInset label
23101 name "subsec:Line-Thickness"
23106 \begin_inset Index idx
23109 \begin_layout Plain Layout
23110 Table Customization ! Line Thickness
23118 \begin_layout Standard
23119 The line thickness for all lines in a table can be adjusted with the length
23127 To set for example a line thickness of 1.5
23128 \begin_inset space \thinspace{}
23132 \begin_inset space ~
23136 \begin_inset CommandInset ref
23138 reference "tab:Table-with-1.5"
23142 , insert the command
23145 \begin_layout Standard
23152 arrayrulewidth}{1.5pt}
23155 \begin_layout Standard
23156 in \SpecialChar TeX
23157 Code before the table or table float.
23158 The changed thickness is valid for all subsequent tables.
23159 To use the default value again, set
23166 \begin_inset space \thinspace{}
23169 pt in \SpecialChar TeX
23170 Code after the table or table float.
23173 \begin_layout Standard
23177 \begin_layout Plain Layout
23183 arrayrulewidth}{1.5pt}
23189 \begin_inset Float table
23194 \begin_layout Plain Layout
23195 \begin_inset Caption Standard
23197 \begin_layout Plain Layout
23198 \begin_inset CommandInset label
23200 name "tab:Table-with-1.5"
23205 \begin_inset space \thinspace{}
23216 \begin_layout Plain Layout
23218 \begin_inset Tabular
23219 <lyxtabular version="3" rows="3" columns="3">
23220 <features tabularvalignment="middle">
23221 <column alignment="center" valignment="top">
23222 <column alignment="center" valignment="top">
23223 <column alignment="center" valignment="top">
23225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23228 \begin_layout Plain Layout
23234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23237 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23246 \begin_layout Plain Layout
23254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23257 \begin_layout Plain Layout
23263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23266 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23275 \begin_layout Plain Layout
23283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23286 \begin_layout Plain Layout
23292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23295 \begin_layout Plain Layout
23301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23304 \begin_layout Plain Layout
23324 \begin_layout Plain Layout
23330 arrayrulewidth}{0.4pt}
23338 \begin_layout Standard
23339 \begin_inset VSpace bigskip
23342 To set the line thickness to 1.5
23343 \begin_inset space \thinspace{}
23346 pt only for horizontal lines, as in Table
23347 \begin_inset space ~
23351 \begin_inset CommandInset ref
23353 reference "tab:Table-with-horizontal"
23357 , insert these commands in \SpecialChar TeX
23358 Code before the table or table float:
23361 \begin_layout Standard
23371 \begin_inset Newline newline
23379 \begin_inset Newline newline
23388 arrayrulewidth 1.5pt}
23389 \begin_inset Newline newline
23400 arrayrulewidth 0.4pt}}
23403 \begin_layout Standard
23404 To return to the default line thickness, insert this command in \SpecialChar TeX
23406 the table or table float:
23409 \begin_layout Standard
23421 \begin_layout Standard
23425 \begin_layout Plain Layout
23436 \begin_layout Plain Layout
23445 \begin_layout Plain Layout
23453 arrayrulewidth 1.5pt}
23456 \begin_layout Plain Layout
23466 arrayrulewidth 0.4pt}}
23472 \begin_inset Float table
23477 \begin_layout Plain Layout
23478 \begin_inset Caption Standard
23480 \begin_layout Plain Layout
23481 \begin_inset CommandInset label
23483 name "tab:Table-with-horizontal"
23488 \begin_inset space \thinspace{}
23491 pt thick horizontal lines
23499 \begin_layout Plain Layout
23501 \begin_inset Tabular
23502 <lyxtabular version="3" rows="3" columns="3">
23503 <features tabularvalignment="middle">
23504 <column alignment="center" valignment="top">
23505 <column alignment="center" valignment="top">
23506 <column alignment="center" valignment="top">
23508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23511 \begin_layout Plain Layout
23517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23520 \begin_layout Plain Layout
23526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23529 \begin_layout Plain Layout
23537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23540 \begin_layout Plain Layout
23546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23549 \begin_layout Plain Layout
23555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23558 \begin_layout Plain Layout
23566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23569 \begin_layout Plain Layout
23575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23578 \begin_layout Plain Layout
23584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23587 \begin_layout Plain Layout
23607 \begin_layout Plain Layout
23623 \begin_layout Standard
23624 \begin_inset VSpace bigskip
23627 To set the line thickness to 1.5
23628 \begin_inset space \thinspace{}
23631 pt only for vertical lines, create the following column format in the document
23632 preamble, according to the description in section
23633 \begin_inset space ~
23637 \begin_inset CommandInset ref
23639 reference "subsec:Customized-Format"
23646 \begin_layout Standard
23651 newcolumntype{V}{!{
23653 vrule width 1.5pt}}
23656 \begin_layout Standard
23658 \begin_inset space ~
23662 \begin_inset CommandInset ref
23664 reference "tab:Table-with-vertical"
23668 the \SpecialChar LaTeX
23672 \begin_layout Standard
23678 \begin_layout Standard
23679 was used for the last column and
23682 \begin_layout Standard
23688 \begin_layout Standard
23689 for the other columns.
23692 \begin_layout Standard
23693 \begin_inset Float table
23698 \begin_layout Plain Layout
23699 \begin_inset Caption Standard
23701 \begin_layout Plain Layout
23702 \begin_inset CommandInset label
23704 name "tab:Table-with-vertical"
23709 \begin_inset space \thinspace{}
23712 pt thick vertical lines
23720 \begin_layout Plain Layout
23722 \begin_inset Tabular
23723 <lyxtabular version="3" rows="3" columns="3">
23724 <features tabularvalignment="middle">
23725 <column alignment="center" valignment="top" special="Vc">
23726 <column alignment="center" valignment="top" special="Vc">
23727 <column alignment="center" valignment="top" special="VcV">
23729 <cell alignment="center" valignment="top" topline="true" usebox="none">
23732 \begin_layout Plain Layout
23738 <cell alignment="center" valignment="top" topline="true" usebox="none">
23741 \begin_layout Plain Layout
23747 <cell alignment="center" valignment="top" topline="true" usebox="none">
23750 \begin_layout Plain Layout
23758 <cell alignment="center" valignment="top" topline="true" usebox="none">
23761 \begin_layout Plain Layout
23767 <cell alignment="center" valignment="top" topline="true" usebox="none">
23770 \begin_layout Plain Layout
23776 <cell alignment="center" valignment="top" topline="true" usebox="none">
23779 \begin_layout Plain Layout
23787 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23790 \begin_layout Plain Layout
23796 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23799 \begin_layout Plain Layout
23805 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23808 \begin_layout Plain Layout
23827 \begin_layout Subsection
23829 \begin_inset Index idx
23832 \begin_layout Plain Layout
23833 Table Customization ! Dashed Lines
23841 \begin_layout Standard
23845 \begin_layout Plain Layout
23855 \begin_inset Note Note
23858 \begin_layout Plain Layout
23859 The following section will only be displayed when the \SpecialChar LaTeX
23872 \begin_layout Standard
23873 \begin_inset Float table
23879 \begin_layout Plain Layout
23880 \begin_inset Caption Standard
23882 \begin_layout Plain Layout
23883 \begin_inset CommandInset label
23885 name "tab:Table-with-dashed"
23889 Table with dashed lines
23897 \begin_layout Plain Layout
23899 \begin_inset Tabular
23900 <lyxtabular version="3" rows="5" columns="5">
23901 <features tabularvalignment="middle">
23902 <column alignment="center" valignment="top">
23903 <column alignment="center" valignment="top">
23904 <column alignment="center" valignment="top" special=":c">
23905 <column alignment="center" valignment="top">
23906 <column alignment="center" valignment="top">
23908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23911 \begin_layout Plain Layout
23917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23920 \begin_layout Plain Layout
23926 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23929 \begin_layout Plain Layout
23935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23938 \begin_layout Plain Layout
23944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23947 \begin_layout Plain Layout
23955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23958 \begin_layout Plain Layout
23964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23967 \begin_layout Plain Layout
23973 <cell alignment="center" valignment="top" topline="true" usebox="none">
23976 \begin_layout Plain Layout
23982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23985 \begin_layout Plain Layout
23991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23994 \begin_layout Plain Layout
24002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24005 \begin_layout Plain Layout
24009 \begin_layout Plain Layout
24023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24026 \begin_layout Plain Layout
24032 <cell alignment="center" valignment="top" usebox="none">
24035 \begin_layout Plain Layout
24041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24044 \begin_layout Plain Layout
24050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24053 \begin_layout Plain Layout
24061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24064 \begin_layout Plain Layout
24068 \begin_layout Plain Layout
24082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24085 \begin_layout Plain Layout
24091 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24094 \begin_layout Plain Layout
24100 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24103 \begin_layout Plain Layout
24109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24112 \begin_layout Plain Layout
24120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24123 \begin_layout Plain Layout
24129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24132 \begin_layout Plain Layout
24138 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24141 \begin_layout Plain Layout
24147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24150 \begin_layout Plain Layout
24156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24159 \begin_layout Plain Layout
24178 \begin_layout Standard
24180 does not natively support dashed lines, so you have to use \SpecialChar TeX
24182 As a prerequisite the \SpecialChar LaTeX
24188 \begin_inset Index idx
24191 \begin_layout Plain Layout
24193 -packages ! arydshln
24198 must be loaded in the document preamble with the command
24201 \begin_layout Standard
24206 usepackage{arydshln}
24209 \begin_layout Standard
24210 To make a vertical line dashed, enter the colon
24211 \begin_inset Quotes eld
24215 \begin_inset Quotes erd
24218 together with the character for the horizontal alignment as \SpecialChar LaTeX
24220 the table cell dialog.
24223 \begin_layout Standard
24224 For a horizontal dashed line add the command
24227 \begin_layout Standard
24235 \begin_layout Standard
24236 in \SpecialChar TeX
24237 Code as first element of the first cell in the table row.
24240 \begin_layout Standard
24241 For dashed multicolumn lines use the command
24244 \begin_layout Standard
24249 cdashline{line number
24254 \begin_layout Standard
24255 in \SpecialChar TeX
24256 Code as the first element of the first cell in the table row.
24257 If you have for example a multicolumn spanning columns 2 to 4 and you want
24258 to have a dashed line above, add the command
24261 \begin_layout Standard
24269 \begin_layout Standard
24270 as the first element of the first cell in the row of the multicolumn.
24273 \begin_layout Standard
24274 \begin_inset VSpace bigskip
24280 \begin_layout Standard
24282 \begin_inset space ~
24286 \begin_inset CommandInset ref
24288 reference "tab:Table-with-dashed"
24293 \begin_inset Quotes eld
24301 \begin_inset Quotes erd
24304 as \SpecialChar LaTeX
24305 argument of the third column.
24306 The \SpecialChar TeX
24313 was inserted in the first cell of the third row and the \SpecialChar TeX
24315 \begin_inset Newline newline
24324 was inserted in the first cell of the fourth row.
24327 \begin_layout Standard
24328 \begin_inset VSpace bigskip
24334 \begin_layout Standard
24335 Tables with dashed lines can also be colored as shown by Table
24336 \begin_inset space ~
24340 \begin_inset CommandInset ref
24342 reference "tab:Colored-table-with"
24349 \begin_layout Standard
24353 \begin_layout Plain Layout
24359 arrayrulewidth}{1pt}
24365 \begin_inset Note Note
24368 \begin_layout Plain Layout
24369 thicker lines for better visualization of the line color
24377 \begin_layout Standard
24381 \begin_layout Plain Layout
24385 dashgapcolor{green}
24391 \begin_inset Note Note
24394 \begin_layout Plain Layout
24395 color gaps between dashes green
24403 \begin_layout Standard
24407 \begin_layout Plain Layout
24418 \begin_layout Plain Layout
24427 \begin_layout Plain Layout
24431 arrayrulecolor{red}
24435 arrayrulecolor{black}}
24441 \begin_inset Note Note
24444 \begin_layout Plain Layout
24445 color horizontal, dashed lines red
24453 \begin_layout Standard
24457 \begin_layout Plain Layout
24468 \begin_layout Plain Layout
24477 \begin_layout Plain Layout
24481 arrayrulecolor{yellow}
24485 arrayrulecolor{black}}
24491 \begin_inset Note Note
24494 \begin_layout Plain Layout
24495 color partial horizontal, dashed lines yellow
24503 \begin_layout Standard
24504 \begin_inset Float table
24510 \begin_layout Plain Layout
24511 \begin_inset Caption Standard
24513 \begin_layout Plain Layout
24514 \begin_inset CommandInset label
24516 name "tab:Colored-table-with"
24520 Colored table with dashed lines
24528 \begin_layout Plain Layout
24530 \begin_inset Tabular
24531 <lyxtabular version="3" rows="5" columns="5">
24532 <features tabularvalignment="middle">
24533 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24534 <column alignment="center" valignment="top" width="0pt">
24535 <column alignment="center" valignment="top" width="0pt" special=":c">
24536 <column alignment="center" valignment="top">
24537 <column alignment="center" valignment="top">
24539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24542 \begin_layout Plain Layout
24548 <cell alignment="center" valignment="top" topline="true" usebox="none">
24551 \begin_layout Plain Layout
24557 <cell alignment="center" valignment="top" topline="true" usebox="none">
24560 \begin_layout Plain Layout
24566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24569 \begin_layout Plain Layout
24575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24578 \begin_layout Plain Layout
24586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24589 \begin_layout Plain Layout
24595 <cell alignment="center" valignment="top" topline="true" usebox="none">
24598 \begin_layout Plain Layout
24604 <cell alignment="center" valignment="top" topline="true" usebox="none">
24607 \begin_layout Plain Layout
24613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24616 \begin_layout Plain Layout
24622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24625 \begin_layout Plain Layout
24633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24636 \begin_layout Plain Layout
24640 \begin_layout Plain Layout
24653 \begin_layout Plain Layout
24667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24670 \begin_layout Plain Layout
24676 <cell alignment="center" valignment="top" usebox="none">
24679 \begin_layout Plain Layout
24685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24688 \begin_layout Plain Layout
24694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24697 \begin_layout Plain Layout
24705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24708 \begin_layout Plain Layout
24712 \begin_layout Plain Layout
24726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24729 \begin_layout Plain Layout
24735 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24738 \begin_layout Plain Layout
24744 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24747 \begin_layout Plain Layout
24753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24756 \begin_layout Plain Layout
24764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24767 \begin_layout Plain Layout
24773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24776 \begin_layout Plain Layout
24782 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24785 \begin_layout Plain Layout
24791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24794 \begin_layout Plain Layout
24800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24803 \begin_layout Plain Layout
24807 \begin_layout Plain Layout
24834 \begin_layout Standard
24838 \begin_layout Plain Layout
24852 \begin_inset Note Note
24855 \begin_layout Plain Layout
24864 \begin_layout Standard
24868 \begin_layout Plain Layout
24882 \begin_inset Note Note
24885 \begin_layout Plain Layout
24894 \begin_layout Standard
24898 \begin_layout Plain Layout
24908 \begin_inset Note Note
24911 \begin_layout Plain Layout
24920 \begin_layout Standard
24924 \begin_layout Plain Layout
24930 arrayrulewidth}{0.4pt}
24936 \begin_inset Note Note
24939 \begin_layout Plain Layout
24948 \begin_layout Standard
24949 The coloring of lines, columns and lines works as decribed in section
24950 \begin_inset space ~
24954 \begin_inset CommandInset ref
24956 reference "sec:Colored-Tables"
24961 Coloring horizontal lines works analogically as described there as well,
24962 one only needs to replace in the commands
24986 ; so one uses the command
24989 \begin_layout Standard
24999 \begin_inset Newline newline
25007 \begin_inset Newline newline
25011 \begin_inset Phantom HPhantom
25014 \begin_layout Plain Layout
25015 \begin_inset space ~
25025 arrayrulecolor{red}
25029 arrayrulecolor{black}}
25032 \begin_layout Standard
25042 \begin_layout Standard
25052 \begin_inset Newline newline
25060 \begin_inset Newline newline
25064 \begin_inset Phantom HPhantom
25067 \begin_layout Plain Layout
25068 \begin_inset space ~
25078 arrayrulecolor{red}
25082 arrayrulecolor{black}}
25085 \begin_layout Standard
25086 To get back the black line color, one needs to insert the following commands
25087 as \SpecialChar TeX
25088 Code behind the table:
25091 \begin_layout Standard
25099 \begin_layout Standard
25111 \begin_layout Standard
25119 \begin_layout Standard
25131 \begin_layout Standard
25132 To color the gaps between the dashes the command
25135 \begin_layout Standard
25140 dashgapcolor{color}
25143 \begin_layout Standard
25144 can be used in front of a table as \SpecialChar TeX
25146 color is hereby the name of a defined color.
25150 \begin_layout Standard
25158 \begin_layout Standard
25159 unsets the changes made by
25168 \begin_layout Standard
25169 \begin_inset Note Greyedout
25172 \begin_layout Plain Layout
25178 : If there are multiple commands in a cell, the command of
25182 needs to be the first one in the cell.
25188 \begin_inset space ~
25192 \begin_inset CommandInset ref
25194 reference "tab:Colored-table-with"
25218 \begin_layout Standard
25219 \begin_inset Note Greyedout
25222 \begin_layout Plain Layout
25228 The \SpecialChar LaTeX
25233 must be loaded in the document preamble before the \SpecialChar LaTeX
25239 \begin_inset Index idx
25242 \begin_layout Plain Layout
25244 -packages ! colortbl
25257 \begin_layout Standard
25261 \begin_layout Plain Layout
25271 \begin_inset Note Note
25274 \begin_layout Plain Layout
25275 The following will be displayed when the \SpecialChar LaTeX
25288 \begin_layout Standard
25289 You need to install the package
25293 to see the content of this section in the output.
25296 \begin_layout Standard
25300 \begin_layout Plain Layout
25312 \begin_layout Standard
25313 For more information about dashed lines see the documentation of
25318 \begin_inset CommandInset citation
25328 \begin_layout Chapter
25330 \begin_inset CommandInset label
25337 \begin_inset Index idx
25340 \begin_layout Plain Layout
25349 \begin_layout Section
25351 \begin_inset CommandInset label
25353 name "sec:FloatIntroduction"
25358 \begin_inset Index idx
25361 \begin_layout Plain Layout
25362 Floats ! Introduction
25370 \begin_layout Standard
25371 A float is a block of text associated with some sort of label, which doesn't
25372 have a fixed location.
25374 \begin_inset Quotes eld
25378 \begin_inset Quotes erd
25381 forward or backward a page or two, to wherever it fits best.
25389 \begin_inset space ~
25394 are also floats because they can float to the next page when there are
25395 too many notes on the page.
25398 \begin_layout Standard
25399 Floats allow a high quality layout.
25400 Images and tables can be spread evenly among the pages to avoid white space
25401 and pages without text.
25402 As the floating often destroys the context between the text and the image/table
25403 , every float can be referenced in the text.
25404 Floats are therefore numbered.
25405 Referencing is described in section
25406 \begin_inset space ~
25410 \begin_inset CommandInset ref
25412 reference "sec:Referencing-Floats"
25419 \begin_layout Standard
25420 To insert a float, use the menu
25422 Insert\SpecialChar menuseparator
25428 arg "float-insert figure"
25434 arg "float-insert table"
25442 inset, a box with a label.
25443 The label will automatically be translated to the document language in
25445 After the label you can insert the caption text.
25446 The image or table is inserted above or below the caption in a separate
25447 paragraph within the float.
25448 More about the caption placement is contained in section
25449 \begin_inset space ~
25453 \begin_inset CommandInset ref
25455 reference "sec:Caption-Placement"
25460 To keep your \SpecialChar LyX
25461 document readable, you can open and close the float box by
25462 left-clicking on the box label.
25463 A closed float box looks like this:
25464 \begin_inset Graphics
25465 filename clipart/float.png
25467 scaleBeforeRotation
25471 – a gray button with a red label.
25474 \begin_layout Standard
25475 It is recommended that you insert floats as separate standard paragraphs
25476 to avoid possible \SpecialChar LaTeX
25477 -errors that can occur when the surrounding text is specially
25481 \begin_layout Standard
25482 Existing figures or tables can be put into a float by highlighting them
25483 and then pressing the corresponding toolbar button for a new float.
25486 \begin_layout Section
25490 \begin_layout Standard
25491 Besides figure and table floats that are described in sections
25492 \begin_inset space ~
25496 \begin_inset CommandInset ref
25498 reference "sec:Figure-Floats"
25503 \begin_inset CommandInset ref
25505 reference "sec:Table-Floats"
25509 respectively, \SpecialChar LyX
25510 offers the float types
25519 The latter are explained in sec.
25520 \begin_inset space \thinspace{}
25524 \begin_inset CommandInset ref
25526 reference "sec:Wrap-Floats"
25533 \begin_layout Subsection
25535 \begin_inset Index idx
25538 \begin_layout Plain Layout
25539 Floats ! Algorithms
25547 \begin_layout Standard
25548 \begin_inset Float algorithm
25554 \begin_layout Plain Layout
25555 \begin_inset Caption Standard
25557 \begin_layout Plain Layout
25558 \begin_inset CommandInset label
25560 name "alg:Example-Algorithm-float"
25564 Example Algorithm float
25572 \begin_layout LyX-Code
25574 \begin_inset Newline newline
25577 Sum:= Sum + A(I); /*comment*/
25578 \begin_inset Newline newline
25582 \begin_inset VSpace -4mm
25593 \begin_layout Standard
25594 This float type is inserted with the menu
25596 Insert\SpecialChar menuseparator
25597 Float\SpecialChar menuseparator
25601 It is used for program codes and descriptions of algorithms and can be
25602 seen as an alternative to program code listings that are explained in chapter
25603 \begin_inset space ~
25607 \begin_inset CommandInset ref
25609 reference "cha:Program-Code-Listings"
25614 A possible environment for algorithms is the
25619 , described in \SpecialChar LyX
25626 \begin_inset space ~
25630 \begin_inset CommandInset ref
25632 reference "alg:Example-Algorithm-float"
25636 is an example of an algorithm float where -4
25637 \begin_inset space \thinspace{}
25640 mm vertical space was added at the end of the float to have the bottom rule
25641 exactly below the last text line.
25644 \begin_layout Standard
25645 The float label is not automatically translated into the document language.
25646 If your document is not in English, you have to do this manually by adding
25647 the following line to the document preamble
25652 \begin_layout Standard
25657 floatname{algorithm}{your
25658 \begin_inset space ~
25664 \begin_layout Standard
25668 \begin_inset space ~
25674 \begin_inset Quotes eld
25682 \begin_inset Quotes erd
25688 \begin_layout Standard
25689 To insert the list of algorithms you can use the menu
25691 Insert\SpecialChar menuseparator
25693 \begin_inset space \thinspace{}
25697 \begin_inset space \thinspace{}
25700 TOC\SpecialChar menuseparator
25703 when your document has the same language as \SpecialChar LyX
25705 In other cases use this command in \SpecialChar TeX
25709 \begin_layout Standard
25714 listof{algorithm}{your
25715 \begin_inset space ~
25721 \begin_layout Standard
25725 \begin_inset space ~
25731 \begin_inset Quotes eld
25739 \begin_inset Quotes erd
25745 \begin_layout Standard
25746 Algorithm floats are not by default numbered in the scheme
25747 \begin_inset Quotes eld
25751 \begin_inset Quotes erd
25754 as is the case for table and figure floats in many document-classes.
25755 To number algorithm floats in the same scheme, add this command to your
25759 \begin_layout Standard
25764 numberwithin{algorithm}{chapter}
25767 \begin_layout Standard
25768 To be able to use the command
25777 \begin_inset space ~
25782 in the document settings the option
25785 \begin_inset space ~
25789 \begin_inset space ~
25793 \begin_inset space ~
25801 \begin_layout Section
25803 \begin_inset Index idx
25806 \begin_layout Plain Layout
25815 \begin_layout Standard
25816 Floats are usually numbered either independently from the sections the floats
25817 are in, or in the scheme
25818 \begin_inset Quotes eld
25822 \begin_inset Quotes erd
25826 \begin_inset Quotes eld
25830 \begin_inset Quotes erd
25834 This depends on the document class used.
25837 \begin_layout Standard
25838 To change section-independent numbering, you can use this command in the
25842 \begin_layout Standard
25854 \begin_layout Standard
25861 is the command that prints the table number.
25862 For figure floats, the command would be
25875 in the command above prints the table number as a small roman number.
25878 \begin_layout Standard
25879 To change the numbering scheme for example to
25880 \begin_inset Quotes eld
25884 \begin_inset Quotes erd
25887 , use this command in the preamble:
25890 \begin_layout Standard
25895 numberwithin{table}{subsection}
25898 \begin_layout Standard
25899 To be able to use the command
25908 \begin_inset space ~
25913 in the document settings the option
25916 \begin_inset space ~
25920 \begin_inset space ~
25924 \begin_inset space ~
25932 \begin_layout Standard
25933 Please also have a look at section
25934 \begin_inset space ~
25938 \begin_inset CommandInset ref
25940 reference "subsec:Footnote-Numbering"
25944 for the details and important notes about the numbering commands.
25947 \begin_layout Section
25949 \begin_inset CommandInset label
25951 name "sec:Referencing-Floats"
25956 \begin_inset Index idx
25959 \begin_layout Plain Layout
25960 Floats ! References
25966 \begin_inset Index idx
25969 \begin_layout Plain Layout
25970 References ! to Floats
25978 \begin_layout Standard
25979 To reference a float, insert a label into its caption using the menu
25981 Insert\SpecialChar menuseparator
25984 or the toolbar button
25991 A grey label box like this one:
25992 \begin_inset Graphics
25993 filename clipart/label.png
25994 scaleBeforeRotation
25998 will be inserted and the label window pops up asking for the label text.
26000 offers as text the first words of the caption with a prefix.
26001 The prefix depends on the float type, e.
26002 \begin_inset space \thinspace{}
26006 \begin_inset space \space{}
26009 for figure floats the prefix will be "
26016 \begin_layout Standard
26017 The label is used as anchor and name for the reference.
26018 You can refer to the label using the menu
26020 Insert\SpecialChar menuseparator
26023 or the toolbar button
26026 arg "dialog-show-new-inset ref"
26030 The cross-reference window appears showing all labels of the document.
26031 If you have multiple \SpecialChar LyX
26032 documents opened, choose the one you are working
26033 on from the drop-list at the top of the dialog.
26034 You can now sort the labels alphabetically and then choose one.
26035 A grey cross-reference box like this one:
26036 \begin_inset Graphics
26037 filename clipart/reference.png
26038 scaleBeforeRotation
26043 At the position of the cross-reference box the float number will appear
26047 \begin_layout Standard
26048 It is recommended that you use a protected space between the cross-reference
26049 name and its number to avoid line breaks between them.
26050 If a cross-reference refers to a non-existing label, you will see two question
26051 marks in the output instead of the reference.
26054 \begin_layout Standard
26055 You can change labels at any time by clicking on the label box.
26056 References to the changed label will automatically update their links to
26057 the new label text.
26060 \begin_layout Standard
26064 \begin_inset space ~
26068 \begin_inset space ~
26073 in the cross-reference window sets the cursor before the referred label.
26074 The button text changes then to Go
26075 \begin_inset space ~
26078 Back and you can use it to set the cursor back to the cross-reference.
26081 \begin_layout Subsection
26082 Cross-Reference Formats
26083 \begin_inset CommandInset label
26085 name "subsec:Cross-Reference-Formats"
26090 \begin_inset Index idx
26093 \begin_layout Plain Layout
26094 References ! Formats
26102 \begin_layout Standard
26103 There are six varieties of cross-references:
26106 \begin_layout Description
26107 <reference>: prints the float number, this is the default:
26108 \begin_inset CommandInset ref
26110 reference "fig:Two-distorted-images"
26117 \begin_layout Description
26118 (<reference>): prints the float number within two parentheses, this is the
26119 style normally used to reference formulas, especially when the reference
26121 \begin_inset Quotes eld
26125 \begin_inset Quotes erd
26129 \begin_inset CommandInset ref
26138 \begin_layout Description
26139 <page>: prints the page number: Page
26140 \begin_inset space ~
26144 \begin_inset CommandInset ref
26145 LatexCommand pageref
26146 reference "fig:Two-distorted-images"
26153 \begin_layout Description
26155 \begin_inset space ~
26159 \begin_inset space ~
26162 <page>: prints the text "on page" and the page number:
26163 \begin_inset CommandInset ref
26164 LatexCommand vpageref
26165 reference "fig:Two-distorted-images"
26172 \begin_layout Description
26174 \begin_inset space ~
26178 \begin_inset space ~
26182 \begin_inset space ~
26185 <page>: prints the float number, the text "on page", and the page number:
26187 \begin_inset CommandInset ref
26189 reference "fig:Two-distorted-images"
26196 \begin_layout Description
26198 \begin_inset space ~
26201 reference: prints a self-defined cross-reference format.
26202 \begin_inset Newline newline
26206 \begin_inset Note Greyedout
26209 \begin_layout Plain Layout
26214 This feature is only available when you have the \SpecialChar LaTeX
26224 \begin_inset Index idx
26227 \begin_layout Plain Layout
26229 -packages ! prettyref
26235 \begin_inset Index idx
26238 \begin_layout Plain Layout
26240 -packages ! refstyle
26251 \begin_inset Newline newline
26254 You can select which \SpecialChar LaTeX
26255 -package should be used for this feature by setting
26258 Use refstyle (not prettyref) for cross-references
26262 Document\SpecialChar menuseparator
26263 Settings\SpecialChar menuseparator
26267 The format is specified by adding the command
26279 (refstyle) to the preamble of the document.
26280 For example redefining all references to figures (which have the label
26282 \begin_inset Quotes eld
26290 \begin_inset Quotes erd
26293 ) can be done with this command
26294 \begin_inset Newline newline
26301 newref{fig}{refcmd={Image on page
26306 \begin_inset Newline newline
26309 For more information about the format, have a look at the package documentations
26311 \begin_inset CommandInset citation
26313 key "prettyref,refstyle"
26319 \begin_inset Newline newline
26330 are only available if you use the \SpecialChar LaTeX
26345 \begin_inset space \thinspace{}
26349 \begin_inset space \space{}
26353 \begin_inset Quotes eld
26357 \begin_inset Quotes erd
26364 outputs the name capitalized, e.
26365 \begin_inset space \thinspace{}
26369 \begin_inset space \space{}
26373 \begin_inset Quotes eld
26377 \begin_inset Quotes erd
26381 Both options can be combined to get e.
26382 \begin_inset space \thinspace{}
26386 \begin_inset space \space{}
26390 \begin_inset Quotes eld
26394 \begin_inset Quotes erd
26400 \begin_layout Description
26402 \begin_inset space ~
26405 reference: prints the caption of the reference:
26406 \begin_inset CommandInset ref
26407 LatexCommand nameref
26408 reference "fig:Two-distorted-images"
26415 \begin_layout Description
26417 \begin_inset space ~
26420 only: prints only the \SpecialChar LaTeX
26421 label for the reference:
26422 \begin_inset CommandInset ref
26423 LatexCommand labelonly
26424 reference "fig:Two-distorted-images"
26432 \begin_inset Newline newline
26435 This allows to use the label for commands in \SpecialChar TeX
26441 one can omit the prefix of the label name:
26442 \begin_inset CommandInset ref
26443 LatexCommand labelonly
26444 reference "fig:Two-distorted-images"
26454 \begin_layout Standard
26459 will not print the page number if the label is on the previous, the same,
26462 \begin_inset space \thinspace{}
26466 \begin_inset space \space{}
26470 \begin_inset Quotes eld
26478 \begin_inset Quotes erd
26484 <reference> on page <page>
26486 will not print anything about the page if the label is on the same page.
26489 \begin_layout Standard
26490 The number and current page of the part of the document referred to in the
26491 output is automatically calculated by \SpecialChar LaTeX
26493 The varieties are adjusted in the field
26497 of the cross-reference window that appears when you click on the cross-referenc
26501 \begin_layout Standard
26502 \begin_inset Note Greyedout
26505 \begin_layout Plain Layout
26510 It is recommended to use the \SpecialChar LaTeX
26516 \begin_inset Index idx
26519 \begin_layout Plain Layout
26521 -packages ! refstyle
26531 \begin_inset Index idx
26534 \begin_layout Plain Layout
26536 -packages ! prettyref
26541 does not know all of \SpecialChar LyX
26542 's possible label shortcuts
26546 \begin_layout Plain Layout
26547 \begin_inset Quotes eld
26551 \begin_inset Quotes erd
26554 is for example \SpecialChar LyX
26555 's shortcut for labels in figure captions.
26560 and is not internationalized.
26568 \begin_layout Subsection
26569 Automatic Reference Naming
26570 \begin_inset Index idx
26573 \begin_layout Plain Layout
26574 References ! Automatic Reference Naming
26582 \begin_layout Standard
26583 The \SpecialChar LaTeX
26589 \begin_inset Index idx
26592 \begin_layout Plain Layout
26594 -packages ! hyperref
26599 , that is enabled in the
26607 dialog, provides a very useful feature that cross-references automatically
26608 include the name of the referenced floats (or text parts like
26613 So you will save having to write e.
26614 \begin_inset space \thinspace{}
26618 \begin_inset space \space{}
26622 \begin_inset Quotes eld
26626 \begin_inset Quotes erd
26629 before every reference to a figure.
26630 To use this feature, enable
26634 and insert this line to the \SpecialChar LaTeX
26638 \begin_layout Standard
26654 \begin_layout Standard
26655 When you prefer other reference names than the default ones, for example
26656 you want instead of
26657 \begin_inset Quotes eld
26661 \begin_inset Quotes erd
26665 \begin_inset Quotes eld
26669 \begin_inset space \thinspace{}
26673 \begin_inset Quotes eld
26676 , you can redefine the name by inserting this in the preamble:
26679 \begin_layout Standard
26690 sectionautorefname}
26691 \begin_inset Newline newline
26695 \begin_inset Phantom HPhantom
26698 \begin_layout Plain Layout
26701 \begin_inset space ~
26714 \begin_layout Standard
26715 When you are using another document language than English, replace
26716 \begin_inset Newline newline
26731 , where *** is the name of the language used.
26734 \begin_layout Standard
26735 To get automatic names, but not for certain reference types, for example
26736 not for equations, use this preamble code:
26739 \begin_layout Standard
26750 equationautorefname}[1]{}}
26753 \begin_layout Standard
26754 More about this topic can be found in
26759 \begin_inset CommandInset citation
26769 \begin_layout Standard
26770 \begin_inset Note Greyedout
26773 \begin_layout Plain Layout
26778 Automatic reference naming cannot be used when you use cross-references
26782 \begin_inset space ~
26787 style, as described in section
26788 \begin_inset space ~
26792 \begin_inset CommandInset ref
26794 reference "subsec:Cross-Reference-Formats"
26806 \begin_layout Standard
26811 manual is an example where automatic reference naming is used.
26814 \begin_layout Subsection
26816 \begin_inset CommandInset label
26818 name "subsec:Reference-Position"
26823 \begin_inset Index idx
26826 \begin_layout Plain Layout
26827 References ! Reference Position
26835 \begin_layout Standard
26841 \begin_inset Index idx
26844 \begin_layout Plain Layout
26846 -packages ! hyperref
26859 dialog to link cross-references in the output, you will see that clicking
26860 on an image float reference jumps to the image label.
26861 The caption will be the first text part on the screen, so that you cannot
26862 see the image without scrolling.
26863 This is because the reference link anchor is placed at the position of
26865 With the use of the package
26870 \begin_inset Index idx
26873 \begin_layout Plain Layout
26880 , which is part of the \SpecialChar LaTeX
26886 \begin_inset Index idx
26889 \begin_layout Plain Layout
26891 -packages ! oberdiek
26896 , the link anchor is placed at the beginning of a float.
26897 To use this feature for figure floats, load
26901 in the document preamble with the line
26904 \begin_layout Standard
26909 usepackage[figure]{hypcap}
26912 \begin_layout Standard
26917 for all float types but this is not recommended for stability reasons.
26918 For more information, have a look at
26923 \begin_inset CommandInset citation
26933 \begin_layout Standard
26934 \begin_inset Note Greyedout
26937 \begin_layout Plain Layout
26946 has no effect on references to subfigures.
26954 \begin_layout Section
26956 \begin_inset CommandInset label
26958 name "sec:Float-Placement"
26963 \begin_inset Index idx
26966 \begin_layout Plain Layout
26975 \begin_layout Standard
26976 Right-clicking on a float-box and clicking on
26980 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26982 positioning the float.
26983 \begin_inset Newline newline
26989 \begin_inset space ~
26994 is only useful for two-column documents: If you select it, the float will
26995 span both columns on the page instead of being confined to just one.
26996 \begin_inset Newline newline
27002 \begin_inset space ~
27007 is used to rotate floats, see section
27008 \begin_inset CommandInset ref
27010 reference "sec:Rotated-Floats"
27017 \begin_layout Standard
27018 You can use one or more of the following options in the float dialog to
27019 set the placement for a particular float when you uncheck the option
27022 \begin_inset space ~
27026 \begin_inset space ~
27034 \begin_layout Description
27036 \begin_inset space ~
27040 \begin_inset space ~
27043 possible try to place the float on the position where it has been inserted
27046 \begin_layout Description
27048 \begin_inset space ~
27052 \begin_inset space ~
27055 page try to place the float at the top of the current page
27058 \begin_layout Description
27060 \begin_inset space ~
27064 \begin_inset space ~
27067 page try to place the float at the bottom of the current page
27070 \begin_layout Description
27072 \begin_inset space ~
27076 \begin_inset space ~
27079 floats try to place the float on its own page
27082 \begin_layout Standard
27083 The order of the above option is
27087 used by \SpecialChar LaTeX
27089 That means, if you use the default placement, \SpecialChar LaTeX
27093 \begin_inset space ~
27097 \begin_inset space ~
27105 \begin_inset space ~
27109 \begin_inset space ~
27114 , and then the others.
27115 If you do not use the default, \SpecialChar LaTeX
27116 will try only the checked options but in
27119 \begin_inset space ~
27122 placements is possible the procedure is internally repeated trying to put
27123 the float on the following page.
27126 \begin_layout Standard
27127 By default, each option has its own rules:
27130 \begin_layout Labeling
27131 \labelwidthstring 00.00.0000
27135 \begin_inset space ~
27139 \begin_inset space ~
27144 only floats occupying less than 70
27145 \begin_inset space \thinspace{}
27148 % of the page can be placed at the top of a page (
27157 \begin_layout Labeling
27158 \labelwidthstring 00.00.0000
27162 \begin_inset space ~
27166 \begin_inset space ~
27171 : only floats occupying less than 30
27172 \begin_inset space \thinspace{}
27175 % of the page can be placed at the bottom of a page.
27185 \begin_layout Labeling
27186 \labelwidthstring 00.00.0000
27190 \begin_inset space ~
27194 \begin_inset space ~
27199 : only if more than 50
27200 \begin_inset space \thinspace{}
27203 % of the page is occupied by floats, several floats can be set together
27214 \begin_layout Standard
27215 If you don't like these rules, you can ignore them by using the additional
27219 \begin_inset space ~
27224 \begin_inset space ~
27230 \begin_inset Newline newline
27233 You can also redefine the rules with \SpecialChar LaTeX
27234 -commands that are given in parentheses
27235 after the rules description above.
27236 To increase for example the often too small default of the bottom-rule
27238 \begin_inset space \thinspace{}
27241 % of the page, add this line to your document preamble:
27244 \begin_layout Standard
27251 bottomfraction}{0.5}
27254 \begin_layout Standard
27255 Sometimes you might need, under all circumstances, a float to be placed
27256 exactly at the position where it is inserted.
27257 For this case you can use the option
27260 \begin_inset space ~
27266 Use this option very rarely and only if the document is almost ready to
27267 be printed, because the float is then no longer able to
27268 \begin_inset Quotes eld
27272 \begin_inset Quotes erd
27275 when you change your document and this will often destroy the page layout.
27278 \begin_layout Standard
27279 There are no placement options for text wrap floats, because they are always
27280 surrounded by the text of a certain paragraph.
27281 \begin_inset VSpace bigskip
27287 \begin_layout Standard
27288 Sometimes you have the problem that a float is placed at the top of a page
27289 while its corresponding section starts at the middle of the page, so that
27290 the reader could think the float is part of the previous section.
27291 To avoid this the \SpecialChar LaTeX
27299 It suppresses a given float placement for the page where it is inserted
27300 and can therefore be used to avoid floats being set before a section starts.
27301 To get this, add these commands to your document preamble:
27304 \begin_layout Standard
27314 \begin_inset Newline newline
27328 \begin_layout Standard
27329 You can define the same for all section headings, like chapters and subsections.
27330 This definition is not recommended to be used for small text parts like
27331 subsubsections because \SpecialChar LaTeX
27332 may then have problems finding a suitable placement.
27335 \begin_layout Standard
27336 \begin_inset VSpace bigskip
27339 In some cases it is required to have all figures/tables at the end of the
27341 For this purpose the \SpecialChar LaTeX
27347 \begin_inset Index idx
27350 \begin_layout Plain Layout
27352 -packages ! endfloat
27358 It puts all figure and table floats at the end of the document into their
27360 At the original float position a text hint like
27361 \begin_inset Quotes eld
27367 \begin_inset space ~
27373 \begin_inset Quotes erd
27377 The endfloat-package is loaded in the preamble with the line
27380 \begin_layout Standard
27385 usepackage[options]{endfloat}
27388 \begin_layout Standard
27389 There are various package options to format the created figure/table sections.
27390 For more information we refer you to the
27395 \begin_inset CommandInset citation
27403 \begin_inset Newline newline
27407 \begin_inset Note Greyedout
27410 \begin_layout Plain Layout
27415 doesn't provide an automatic translation for the text hint, you have to
27416 do this manually, see section
27417 \begin_inset space ~
27421 \begin_inset CommandInset citation
27434 \begin_inset Newline newline
27438 \begin_inset Note Greyedout
27441 \begin_layout Plain Layout
27446 There is currently a bug in
27450 when the caption contains a German
27451 \begin_inset Quotes eld
27455 \begin_inset Quotes erd
27459 Use in this case the command
27460 \begin_inset Quotes eld
27470 \begin_inset Quotes erd
27473 in \SpecialChar TeX
27475 \begin_inset Quotes eld
27479 \begin_inset Quotes erd
27490 \begin_layout Standard
27491 \begin_inset VSpace bigskip
27494 For more details about float placements, have a look at \SpecialChar LaTeX
27496 \begin_inset CommandInset citation
27498 key "latexcompanion,latexguide,latexbook"
27506 \begin_layout Section
27508 \begin_inset CommandInset label
27510 name "sec:Rotated-Floats"
27515 \begin_inset Index idx
27518 \begin_layout Plain Layout
27527 \begin_layout Standard
27528 Especially for wide tables you might have floats rotated.
27529 To rotate a whole float including the caption, right-click on the float-box
27533 \begin_inset space ~
27541 \begin_layout Standard
27542 Rotated floats are always placed on a page of their own (or column of their
27543 own; in case you have a multi-column document).
27544 You can let them span several columns using the float settings option
27547 \begin_inset space ~
27553 Floats are rotated so that you can read them from the outside margin.
27554 To force a certain rotation direction for all pages, you can add either
27563 to the document class options.
27566 \begin_layout Standard
27567 Referencing rotated floats is the same as for normal floats, the caption
27568 format is also the same: Table
27569 \begin_inset space ~
27573 \begin_inset CommandInset ref
27575 reference "tab:Rotated-table"
27579 is an example of a rotated table float.
27582 \begin_layout Standard
27583 \begin_inset Note Greyedout
27586 \begin_layout Plain Layout
27591 Not all DVI-viewers are able to display rotated floats.
27599 \begin_layout Standard
27600 \begin_inset Float table
27605 \begin_layout Plain Layout
27606 \begin_inset Caption Standard
27608 \begin_layout Plain Layout
27609 \begin_inset CommandInset label
27611 name "tab:Rotated-table"
27623 \begin_layout Plain Layout
27625 \begin_inset Tabular
27626 <lyxtabular version="3" rows="1" columns="5">
27627 <features tabularvalignment="middle">
27628 <column alignment="center" valignment="top">
27629 <column alignment="center" valignment="top">
27630 <column alignment="center" valignment="top">
27631 <column alignment="center" valignment="top">
27632 <column alignment="center" valignment="top">
27634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27637 \begin_layout Plain Layout
27643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27646 \begin_layout Plain Layout
27652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27655 \begin_layout Plain Layout
27661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27664 \begin_layout Plain Layout
27670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27673 \begin_layout Plain Layout
27692 \begin_layout Section
27694 \begin_inset Index idx
27697 \begin_layout Plain Layout
27706 \begin_layout Standard
27707 Subfloats are for example used when a figure consists of several images.
27708 They are created by inserting a float into an existing float.
27709 The placement of the subfloats can be controlled in the same way as for
27710 paragraphs as shown in table
27711 \begin_inset space ~
27715 \begin_inset CommandInset ref
27717 reference "tab:Two-subtables-side"
27722 \begin_inset CommandInset ref
27724 reference "tab:Two-subtables-upon"
27731 \begin_layout Standard
27732 Referencing subfloats works as for normal floats: Table
27733 \begin_inset space ~
27737 \begin_inset CommandInset ref
27739 reference "tab:This-is-subtable-a"
27744 \begin_inset CommandInset ref
27746 reference "tab:This-is-subtable-b"
27750 are subtables of table
27751 \begin_inset space ~
27755 \begin_inset CommandInset ref
27757 reference "tab:Two-subtables-side"
27764 \begin_layout Standard
27765 \begin_inset Float table
27770 \begin_layout Plain Layout
27771 \begin_inset Caption Standard
27773 \begin_layout Plain Layout
27774 \begin_inset CommandInset label
27776 name "tab:Two-subtables-side"
27780 Two subtables placed side by side.
27788 \begin_layout Plain Layout
27790 \begin_inset space \hfill{}
27794 \begin_inset Float table
27799 \begin_layout Plain Layout
27800 \begin_inset Caption Standard
27802 \begin_layout Plain Layout
27803 \begin_inset CommandInset label
27805 name "tab:This-is-subtable-a"
27809 This is subtable a.
27817 \begin_layout Plain Layout
27819 \begin_inset Tabular
27820 <lyxtabular version="3" rows="1" columns="5">
27821 <features tabularvalignment="middle">
27822 <column alignment="center" valignment="top">
27823 <column alignment="center" valignment="top">
27824 <column alignment="center" valignment="top">
27825 <column alignment="center" valignment="top">
27826 <column alignment="center" valignment="top">
27828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27831 \begin_layout Plain Layout
27837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27840 \begin_layout Plain Layout
27846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27849 \begin_layout Plain Layout
27855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27858 \begin_layout Plain Layout
27864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27867 \begin_layout Plain Layout
27884 \begin_inset space \hfill{}
27888 \begin_inset Float table
27893 \begin_layout Plain Layout
27894 \begin_inset Caption Standard
27896 \begin_layout Plain Layout
27897 \begin_inset CommandInset label
27899 name "tab:This-is-subtable-b"
27903 This is subtable b.
27911 \begin_layout Plain Layout
27913 \begin_inset Tabular
27914 <lyxtabular version="3" rows="1" columns="5">
27915 <features tabularvalignment="middle">
27916 <column alignment="center" valignment="top">
27917 <column alignment="center" valignment="top">
27918 <column alignment="center" valignment="top">
27919 <column alignment="center" valignment="top">
27920 <column alignment="center" valignment="top">
27922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27925 \begin_layout Plain Layout
27931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27934 \begin_layout Plain Layout
27940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27943 \begin_layout Plain Layout
27949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27952 \begin_layout Plain Layout
27958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27961 \begin_layout Plain Layout
27978 \begin_inset space \hfill{}
27989 \begin_layout Standard
27990 \begin_inset Float table
27995 \begin_layout Plain Layout
27996 \begin_inset Caption Standard
27998 \begin_layout Plain Layout
27999 \begin_inset CommandInset label
28001 name "tab:Two-subtables-upon"
28005 Two subtables placed one above the other.
28006 (a) table with 4 cells, (b) table with 5 cells.
28014 \begin_layout Plain Layout
28016 \begin_inset Float table
28021 \begin_layout Plain Layout
28022 \begin_inset Caption Standard
28024 \begin_layout Plain Layout
28033 \begin_layout Plain Layout
28035 \begin_inset Tabular
28036 <lyxtabular version="3" rows="1" columns="4">
28037 <features tabularvalignment="middle">
28038 <column alignment="center" valignment="top">
28039 <column alignment="center" valignment="top">
28040 <column alignment="center" valignment="top">
28041 <column alignment="center" valignment="top">
28043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28046 \begin_layout Plain Layout
28052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28055 \begin_layout Plain Layout
28061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28064 \begin_layout Plain Layout
28070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28073 \begin_layout Plain Layout
28092 \begin_layout Plain Layout
28094 \begin_inset Float table
28099 \begin_layout Plain Layout
28100 \begin_inset Caption Standard
28102 \begin_layout Plain Layout
28111 \begin_layout Plain Layout
28113 \begin_inset Tabular
28114 <lyxtabular version="3" rows="1" columns="5">
28115 <features tabularvalignment="middle">
28116 <column alignment="center" valignment="top">
28117 <column alignment="center" valignment="top">
28118 <column alignment="center" valignment="top">
28119 <column alignment="center" valignment="top">
28120 <column alignment="center" valignment="top">
28122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28125 \begin_layout Plain Layout
28131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28134 \begin_layout Plain Layout
28140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28143 \begin_layout Plain Layout
28149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28152 \begin_layout Plain Layout
28158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28161 \begin_layout Plain Layout
28185 \begin_layout Section
28186 Floats Side by Side
28187 \begin_inset Index idx
28190 \begin_layout Plain Layout
28191 Floats ! Side by side
28199 \begin_layout Standard
28200 To place floats side by side, as in Figures
28201 \begin_inset space ~
28205 \begin_inset CommandInset ref
28207 reference "fig:Float-left"
28212 \begin_inset CommandInset ref
28214 reference "fig:Float-right"
28223 In it two minipage boxes are inserted.
28227 \begin_layout Plain Layout
28228 Minipages are explained in section
28229 \begin_inset space ~
28233 \begin_inset CommandInset ref
28235 reference "sec:Minipages"
28244 The width is set to 45
28245 \begin_inset space \thinspace{}
28249 \begin_inset space \thinspace{}
28252 column% and the box alignment to
28257 The minipage boxes contain the image and the caption in the same way as
28258 they are in a float.
28259 The only difference is that the image unit
28262 \begin_inset space ~
28266 \begin_inset space ~
28271 is now calculated according to the width of the minipage boxes.
28274 \begin_layout Standard
28275 \begin_inset Float figure
28280 \begin_layout Plain Layout
28281 \begin_inset Box Frameless
28291 height_special "totalheight"
28296 backgroundcolor "none"
28299 \begin_layout Plain Layout
28301 \begin_inset Graphics
28302 filename clipart/2D-intensity-plot.pdf
28304 scaleBeforeRotation
28311 \begin_layout Plain Layout
28312 \begin_inset Caption Standard
28314 \begin_layout Plain Layout
28315 \begin_inset CommandInset label
28317 name "fig:Float-left"
28321 Float on the left side.
28332 \begin_inset space \hfill{}
28336 \begin_inset Box Frameless
28346 height_special "totalheight"
28351 backgroundcolor "none"
28354 \begin_layout Plain Layout
28356 \begin_inset Graphics
28357 filename clipart/Star-structure.pdf
28359 scaleBeforeRotation
28366 \begin_layout Plain Layout
28367 \begin_inset Caption Standard
28369 \begin_layout Plain Layout
28370 \begin_inset CommandInset label
28372 name "fig:Float-right"
28376 Float on the right side.
28394 \begin_layout Standard
28395 An alternative and simpler solution is to use the module
28397 Variable-width Minipages
28400 \begin_inset space \thinspace{}
28404 \begin_inset CommandInset ref
28406 reference "sec:Minipages"
28411 Variable-width minipages adapt automatically to the width of the figures
28413 They do not require an explicit width to be given, and they improve the
28414 horizontal alignment of the figures.
28415 The LyX example file
28417 varwidth-floats-side-by-side
28419 gives examples of how to do this.
28422 \begin_layout Section
28424 \begin_inset Index idx
28427 \begin_layout Plain Layout
28428 Caption ! Formatting
28434 \begin_inset Index idx
28437 \begin_layout Plain Layout
28438 Floats ! Caption Formatting
28444 \begin_inset CommandInset label
28446 name "sec:Caption-Formatting"
28453 \begin_layout Standard
28458 environment is the default paragraph environment for
28463 On the \SpecialChar LyX
28464 screen captions appear as a label, e.
28465 \begin_inset space \thinspace{}
28469 \begin_inset space \space{}
28473 \begin_inset Quotes eld
28481 \begin_inset Quotes erd
28484 followed by the caption text.
28486 \begin_inset Quotes eld
28490 \begin_inset Quotes erd
28493 is the actual reference number.
28494 By default the label and the number are in the same font as the caption
28495 text and a colon follows the number to divide the label from the text.
28496 This caption format is suitable for many but not all documents.
28500 \begin_layout Standard
28501 To change the default caption format, load the \SpecialChar LaTeX
28507 \begin_inset Index idx
28510 \begin_layout Plain Layout
28512 -packages ! caption
28517 in the document preamble with this line:
28520 \begin_layout Standard
28525 usepackage[format definition]{caption}
28528 \begin_layout Standard
28529 To have for example the label and the number in sans-serif, bold font and
28530 the table captions always above the table as in this document, use the
28534 \begin_layout Standard
28539 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28542 \begin_layout Standard
28543 You can also define different caption formats for the different float types.
28544 In this case load the
28548 package without format specific options and define the different formats
28549 with the help of the command
28552 \begin_layout Standard
28557 captionsetup[float type]{format definition}
28560 \begin_layout Standard
28561 in the document preamble.
28562 For example the caption formats of Figure
28563 \begin_inset space ~
28567 \begin_inset CommandInset ref
28569 reference "fig:This-is-an-fig"
28574 \begin_inset space ~
28578 \begin_inset CommandInset ref
28580 reference "tab:This-is-an-tab"
28584 can be created using these commands in the document preamble:
28587 \begin_layout Standard
28592 usepackage[tableposition=top]{caption}
28595 \begin_inset Newline newline
28602 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28603 \begin_inset Newline newline
28607 \begin_inset Phantom HPhantom
28610 \begin_layout Plain Layout
28615 captionsetup[figure]{
28621 \begin_inset Newline newline
28626 captionsetup[table]{labelfont={bf,sf}}
28629 \begin_layout Standard
28630 \begin_inset Note Greyedout
28633 \begin_layout Plain Layout
28642 has no effect when a
28647 \begin_inset Index idx
28650 \begin_layout Plain Layout
28652 -packages ! KOMA-Script
28657 document class is used.
28658 In this case the document class option
28660 captions=tableheading
28670 \begin_layout Standard
28671 For more information about the package
28675 we refer to its documentation
28676 \begin_inset CommandInset citation
28686 \begin_layout Standard
28687 To change the label name from e.
28688 \begin_inset space \thinspace{}
28692 \begin_inset space \space{}
28696 \begin_inset Quotes eld
28700 \begin_inset Quotes erd
28704 \begin_inset Quotes eld
28708 \begin_inset Quotes erd
28711 use this preamble command:
28714 \begin_layout Standard
28721 fnum@figure}{Image~
28726 \begin_layout Standard
28733 inserts the figure number and
28736 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28745 creates a protected space.
28748 \begin_layout Standard
28749 \begin_inset VSpace bigskip
28757 \begin_inset Index idx
28760 \begin_layout Plain Layout
28762 -packages ! KOMA-Script
28769 article (KOMA-Script)
28777 letter (KOMA-Script)
28781 report (KOMA-Script)
28784 \begin_inset space \thinspace{}
28787 ), you can alternatively to the
28795 's built-in command
28802 For example, to have the caption label in bold, add this command to your
28806 \begin_layout Standard
28811 setkomafont{captionlabel}{
28816 \begin_layout Standard
28817 For more information about
28828 \begin_inset CommandInset citation
28838 \begin_layout Standard
28842 \begin_layout Plain Layout
28846 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28853 \begin_inset Note Note
28856 \begin_layout Plain Layout
28857 The caption format is changed only for this example.
28865 \begin_layout Standard
28866 \begin_inset Float figure
28872 \begin_layout Plain Layout
28874 \begin_inset Graphics
28875 filename clipart/2D-intensity-plot.pdf
28876 scaleBeforeRotation
28883 \begin_layout Plain Layout
28884 \begin_inset Caption Standard
28886 \begin_layout Plain Layout
28887 \begin_inset CommandInset label
28889 name "fig:This-is-an-fig"
28893 This is an example figure caption that is longer than one line to show the
28894 different caption format.
28895 Here a self-defined caption format is used.
28908 \begin_layout Standard
28912 \begin_layout Plain Layout
28916 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28925 \begin_layout Standard
28926 \begin_inset Float table
28932 \begin_layout Plain Layout
28933 \begin_inset Caption Standard
28935 \begin_layout Plain Layout
28936 \begin_inset CommandInset label
28938 name "tab:This-is-an-tab"
28942 This is an example table caption that is longer than one line to show the
28943 different caption format.
28944 Here the standard caption format for tables in this document is used.
28952 \begin_layout Plain Layout
28954 \begin_inset Tabular
28955 <lyxtabular version="3" rows="1" columns="5">
28956 <features tabularvalignment="middle">
28957 <column alignment="center" valignment="top">
28958 <column alignment="center" valignment="top">
28959 <column alignment="center" valignment="top">
28960 <column alignment="center" valignment="top">
28961 <column alignment="center" valignment="top">
28963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28966 \begin_layout Plain Layout
28972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28975 \begin_layout Plain Layout
28981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28984 \begin_layout Plain Layout
28990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28993 \begin_layout Plain Layout
28999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29002 \begin_layout Plain Layout
29021 \begin_layout Section
29023 \begin_inset Index idx
29026 \begin_layout Plain Layout
29027 Caption ! Placement
29033 \begin_inset Index idx
29036 \begin_layout Plain Layout
29037 Floats ! Caption Placement
29043 \begin_inset CommandInset label
29045 name "sec:Caption-Placement"
29052 \begin_layout Standard
29053 The common caption placement rule is:
29056 \begin_layout Description
29057 Figure: Caption is set below the figure
29060 \begin_layout Description
29061 Table: Caption is set above the table
29064 \begin_layout Standard
29065 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29068 That means if you are using the document classes
29084 there will be no space between the caption and the table.
29085 To insert the necessary space, load the \SpecialChar LaTeX
29091 \begin_inset Index idx
29094 \begin_layout Plain Layout
29096 -packages ! caption
29101 in your document preamble with the option
29105 \begin_layout Plain Layout
29107 \begin_inset space ~
29111 \begin_inset CommandInset ref
29113 reference "sec:Caption-Formatting"
29117 for more information of the package
29129 \begin_layout Standard
29135 \begin_layout Standard
29141 \begin_inset Index idx
29144 \begin_layout Plain Layout
29146 -packages ! KOMA-Script
29153 article (KOMA-Script)
29161 letter (KOMA-Script)
29165 report (KOMA-Script)
29168 \begin_inset space \thinspace{}
29171 ), you can alternatively to the
29175 package set the document class option
29179 \begin_layout Plain Layout
29180 That option is used in this document.
29188 \begin_layout Standard
29191 captions=tableheading
29194 \begin_layout Standard
29195 In documents with a KOMA-Script document class you can also right-click
29196 on a caption and mark in the context menu if this should be a caption above
29197 or below the table/figure.
29198 This way you can override the document-wide caption placement for certain
29201 \begin_inset space ~
29205 \begin_inset CommandInset ref
29207 reference "tab:A-caption-marked"
29211 is an example where the caption is marked a being below the table while
29213 For comparison the caption in Table
29214 \begin_inset space ~
29218 \begin_inset CommandInset ref
29220 reference "tab:A-standard-table"
29227 \begin_layout Standard
29228 \begin_inset Float table
29233 \begin_layout Plain Layout
29234 \begin_inset Caption Below
29236 \begin_layout Plain Layout
29237 \begin_inset CommandInset label
29239 name "tab:A-caption-marked"
29243 A caption marked as being below the table.
29251 \begin_layout Plain Layout
29253 \begin_inset Tabular
29254 <lyxtabular version="3" rows="3" columns="3">
29255 <features tabularvalignment="middle">
29256 <column alignment="center" valignment="top" width="0pt">
29257 <column alignment="center" valignment="top" width="0pt">
29258 <column alignment="center" valignment="top" width="0pt">
29260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29272 \begin_layout Plain Layout
29278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29281 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29292 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29310 \begin_layout Plain Layout
29318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29321 \begin_layout Plain Layout
29322 \begin_inset Formula $\int x^{2}dx$
29330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29333 \begin_layout Plain Layout
29334 \begin_inset Formula $\left[\begin{array}{cc}
29337 \end{array}\right]$
29345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29348 \begin_layout Plain Layout
29349 \begin_inset Formula $1+1=2$
29370 \begin_layout Standard
29371 \begin_inset Float table
29376 \begin_layout Plain Layout
29377 \begin_inset Caption Standard
29379 \begin_layout Plain Layout
29380 \begin_inset CommandInset label
29382 name "tab:A-standard-table"
29386 A standard table caption.
29394 \begin_layout Plain Layout
29396 \begin_inset Tabular
29397 <lyxtabular version="3" rows="3" columns="3">
29398 <features tabularvalignment="middle">
29399 <column alignment="center" valignment="top" width="0pt">
29400 <column alignment="center" valignment="top" width="0pt">
29401 <column alignment="center" valignment="top" width="0pt">
29403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29406 \begin_layout Plain Layout
29412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29415 \begin_layout Plain Layout
29421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29424 \begin_layout Plain Layout
29432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29435 \begin_layout Plain Layout
29441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29444 \begin_layout Plain Layout
29450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29453 \begin_layout Plain Layout
29461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29464 \begin_layout Plain Layout
29465 \begin_inset Formula $\int x^{2}dx$
29473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29476 \begin_layout Plain Layout
29477 \begin_inset Formula $\left[\begin{array}{cc}
29480 \end{array}\right]$
29488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29491 \begin_layout Plain Layout
29492 \begin_inset Formula $1+1=2$
29513 \begin_layout Standard
29514 \begin_inset VSpace bigskip
29517 It is also possible to set the caption beside a figure or table.
29518 To get this the \SpecialChar LaTeX
29524 \begin_inset Index idx
29527 \begin_layout Plain Layout
29529 -packages ! sidecap
29534 has to be loaded in the document preamble with the line
29537 \begin_layout Standard
29542 usepackage[option]{sidecap}
29545 \begin_layout Standard
29546 If you set no option, the caption is placed on the side of the outer page
29547 margin – to the right on odd pages, to the left on even pages.
29548 You can change the placement to inner margin with the option
29553 To force the placement always to the right or left, use the option
29564 \begin_layout Standard
29568 \begin_layout Plain Layout
29578 \begin_inset Note Note
29581 \begin_layout Plain Layout
29582 The following section will only be displayed when the \SpecialChar LaTeX
29595 \begin_layout Standard
29596 To place in \SpecialChar LyX
29597 the caption of a float on the side, it is necessary to add
29598 these commands to the document preamble:
29601 \begin_layout Standard
29603 \begin_inset CommandInset line
29614 \begin_layout Standard
29621 TabBesBeg}[1][1.0]{%
29622 \begin_inset Newline newline
29626 \begin_inset Phantom HPhantom
29629 \begin_layout Plain Layout
29630 \begin_inset space ~
29645 \begin_inset Newline newline
29649 \begin_inset Phantom HPhantom
29652 \begin_layout Plain Layout
29655 \begin_inset space ~
29670 \begin_inset Newline newline
29674 \begin_inset Phantom HPhantom
29677 \begin_layout Plain Layout
29680 \begin_inset space ~
29690 renewenvironment{table}[1]{
29692 begin{SCtable}[#1]##1}{
29697 \begin_layout Standard
29705 \begin_inset Newline newline
29709 \begin_inset Phantom HPhantom
29712 \begin_layout Plain Layout
29713 \begin_inset space ~
29728 \begin_inset Newline newline
29732 \begin_inset Phantom HPhantom
29735 \begin_layout Plain Layout
29736 \begin_inset space ~
29753 \begin_layout Standard
29760 FigBesBeg}[1][1.0]{%
29761 \begin_inset Newline newline
29765 \begin_inset Phantom HPhantom
29768 \begin_layout Plain Layout
29769 \begin_inset space ~
29784 \begin_inset Newline newline
29788 \begin_inset Phantom HPhantom
29791 \begin_layout Plain Layout
29792 \begin_inset space ~
29807 \begin_inset Newline newline
29811 \begin_inset Phantom HPhantom
29814 \begin_layout Plain Layout
29815 \begin_inset space ~
29825 renewenvironment{figure}[1]{
29827 begin{SCfigure}[#1]##1}{
29832 \begin_layout Standard
29840 \begin_inset Newline newline
29844 \begin_inset Phantom HPhantom
29847 \begin_layout Plain Layout
29848 \begin_inset space ~
29863 \begin_inset Newline newline
29867 \begin_inset Phantom HPhantom
29870 \begin_layout Plain Layout
29871 \begin_inset space ~
29888 \begin_layout Standard
29890 \begin_inset CommandInset line
29901 \begin_layout Standard
29902 The commands allow you to redefine the floats so that the caption is set
29904 For figure floats use the command
29907 \begin_layout Standard
29915 \begin_layout Standard
29916 in \SpecialChar TeX
29917 Code before the float.
29918 And insert the command
29921 \begin_layout Standard
29929 \begin_layout Standard
29930 in \SpecialChar TeX
29931 Code at the point where you want to get back to the original float definitio
29935 \begin_layout Standard
29936 For table floats use the corresponding commands
29939 \begin_layout Standard
29953 \begin_layout Standard
29955 \begin_inset space ~
29959 \begin_inset CommandInset ref
29961 reference "fig:cap-beside-fig"
29966 \begin_inset space ~
29970 \begin_inset CommandInset ref
29972 reference "tab:cap-beside-tab"
29976 are examples where the caption is set beside.
29979 \begin_layout Standard
29980 You can see in the examples that the caption text appears at the top of
29981 the floats for table floats and at the bottom for figure floats.
29982 To change this, you can use the command
29985 \begin_layout Standard
29990 sidecaptionvpos{float type}{placement}
29993 \begin_layout Standard
29994 in the document preamble or in \SpecialChar TeX
29995 Code before the float.
29996 The float type is either
30004 , the placement can be
30005 \begin_inset Quotes eld
30013 \begin_inset Quotes erd
30017 \begin_inset Quotes eld
30025 \begin_inset Quotes erd
30029 \begin_inset Quotes eld
30037 \begin_inset Quotes erd
30041 To have for example the caption of figure floats vertically centered, use
30045 \begin_layout Standard
30050 sidecaptionvpos{figure}{c}
30053 \begin_layout Standard
30054 This was used for Figure
30055 \begin_inset space ~
30059 \begin_inset CommandInset ref
30061 reference "fig:cap-beside-fig-2"
30068 \begin_layout Standard
30069 \begin_inset VSpace medskip
30075 \begin_layout Standard
30076 The default caption width is the width of the image/table.
30077 For thin image/tables, like in Table
30078 \begin_inset space ~
30082 \begin_inset CommandInset ref
30084 reference "tab:cap-beside-tab"
30088 , this leads to captions that are too thin.
30089 You can increase the width by specifying a factor that will be multiplied
30090 with the image/table width to get the caption width.
30091 The caption width will automatically be recalculated in case it would protrude
30092 over the page or column margin due to the specified width.
30097 can either be given as optional argument for
30106 \begin_layout Standard
30114 \begin_layout Standard
30115 or in the definition of
30125 with another value.
30126 If you do the latter, your factor will be the default if
30132 is used without an argument.
30134 \begin_inset space ~
30138 \begin_inset CommandInset ref
30140 reference "tab:cap-beside-tab-wider"
30144 the factor 5 was used.
30147 \begin_layout Standard
30148 \begin_inset Note Greyedout
30151 \begin_layout Plain Layout
30156 For floats with captions set beside, you cannot use the float placement
30160 \begin_inset space ~
30165 because it is not supported by
30177 \begin_layout Standard
30178 \begin_inset VSpace medskip
30181 For more information about the package
30185 we refer to its documentation
30186 \begin_inset CommandInset citation
30196 \begin_layout Standard
30197 \begin_inset Note Greyedout
30200 \begin_layout Plain Layout
30205 The \SpecialChar LaTeX
30211 \begin_inset Index idx
30214 \begin_layout Plain Layout
30221 , described in section
30222 \begin_inset space ~
30226 \begin_inset CommandInset ref
30228 reference "subsec:Reference-Position"
30232 , has no effect on floats with the caption set beside.
30240 \begin_layout Standard
30244 \begin_layout Plain Layout
30256 \begin_layout Standard
30257 \begin_inset Float figure
30262 \begin_layout Plain Layout
30263 \begin_inset Graphics
30264 filename clipart/3D-structure-distort.pdf
30266 scaleBeforeRotation
30273 \begin_layout Plain Layout
30274 \begin_inset Caption Standard
30276 \begin_layout Plain Layout
30277 \begin_inset CommandInset label
30279 name "fig:cap-beside-fig"
30283 This is a caption beside a figure.
30296 \begin_layout Standard
30300 \begin_layout Plain Layout
30312 \begin_layout Standard
30316 \begin_layout Plain Layout
30328 \begin_layout Standard
30329 \begin_inset Float table
30334 \begin_layout Plain Layout
30335 \begin_inset Caption Standard
30337 \begin_layout Plain Layout
30338 \begin_inset CommandInset label
30340 name "tab:cap-beside-tab"
30344 This is a caption beside a table.
30352 \begin_layout Plain Layout
30353 \begin_inset Tabular
30354 <lyxtabular version="3" rows="4" columns="5">
30355 <features tabularvalignment="middle">
30356 <column alignment="center" valignment="top">
30357 <column alignment="center" valignment="top">
30358 <column alignment="center" valignment="top">
30359 <column alignment="center" valignment="top">
30360 <column alignment="center" valignment="top">
30362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30365 \begin_layout Plain Layout
30371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30374 \begin_layout Plain Layout
30380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30383 \begin_layout Plain Layout
30389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30392 \begin_layout Plain Layout
30398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30401 \begin_layout Plain Layout
30409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30412 \begin_layout Plain Layout
30418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30421 \begin_layout Plain Layout
30427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30430 \begin_layout Plain Layout
30436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30439 \begin_layout Plain Layout
30445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30448 \begin_layout Plain Layout
30456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30459 \begin_layout Plain Layout
30465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30468 \begin_layout Plain Layout
30474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30477 \begin_layout Plain Layout
30483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30486 \begin_layout Plain Layout
30492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30495 \begin_layout Plain Layout
30503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30506 \begin_layout Plain Layout
30512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30515 \begin_layout Plain Layout
30521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30524 \begin_layout Plain Layout
30530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30533 \begin_layout Plain Layout
30539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30542 \begin_layout Plain Layout
30561 \begin_layout Standard
30565 \begin_layout Plain Layout
30577 \begin_layout Standard
30581 \begin_layout Plain Layout
30594 \begin_layout Plain Layout
30598 sidecaptionvpos{figure}{c}
30604 \begin_inset Float figure
30609 \begin_layout Plain Layout
30610 \begin_inset Graphics
30611 filename clipart/3D-structure-distort.pdf
30613 scaleBeforeRotation
30620 \begin_layout Plain Layout
30621 \begin_inset Caption Standard
30623 \begin_layout Plain Layout
30624 \begin_inset CommandInset label
30626 name "fig:cap-beside-fig-2"
30630 This is a vertically centered caption beside a figure.
30643 \begin_layout Standard
30647 \begin_layout Plain Layout
30659 \begin_layout Standard
30663 \begin_layout Plain Layout
30675 \begin_layout Standard
30676 \begin_inset Float table
30681 \begin_layout Plain Layout
30682 \begin_inset Caption Standard
30684 \begin_layout Plain Layout
30685 \begin_inset CommandInset label
30687 name "tab:cap-beside-tab-wider"
30691 This caption is wider than the one in Table
30692 \begin_inset space ~
30696 \begin_inset CommandInset ref
30698 reference "tab:cap-beside-tab"
30710 \begin_layout Plain Layout
30711 \begin_inset Tabular
30712 <lyxtabular version="3" rows="4" columns="5">
30713 <features tabularvalignment="middle">
30714 <column alignment="center" valignment="top">
30715 <column alignment="center" valignment="top">
30716 <column alignment="center" valignment="top">
30717 <column alignment="center" valignment="top">
30718 <column alignment="center" valignment="top">
30720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30723 \begin_layout Plain Layout
30729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30732 \begin_layout Plain Layout
30738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30741 \begin_layout Plain Layout
30747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30750 \begin_layout Plain Layout
30756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30759 \begin_layout Plain Layout
30767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30770 \begin_layout Plain Layout
30776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30779 \begin_layout Plain Layout
30785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30788 \begin_layout Plain Layout
30794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30797 \begin_layout Plain Layout
30803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30806 \begin_layout Plain Layout
30814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30817 \begin_layout Plain Layout
30823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30826 \begin_layout Plain Layout
30832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30835 \begin_layout Plain Layout
30841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30844 \begin_layout Plain Layout
30850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30853 \begin_layout Plain Layout
30861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30864 \begin_layout Plain Layout
30870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30873 \begin_layout Plain Layout
30879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30882 \begin_layout Plain Layout
30888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30891 \begin_layout Plain Layout
30897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30900 \begin_layout Plain Layout
30919 \begin_layout Standard
30923 \begin_layout Plain Layout
30935 \begin_layout Standard
30939 \begin_layout Plain Layout
30949 \begin_inset Note Note
30952 \begin_layout Plain Layout
30953 The following will be displayed when the \SpecialChar LaTeX
30966 \begin_layout Standard
30967 You need to install the \SpecialChar LaTeX
30972 to see the following part of this section in the output.
30975 \begin_layout Standard
30979 \begin_layout Plain Layout
30991 \begin_layout Section
30993 \begin_inset Index idx
30996 \begin_layout Plain Layout
30997 Floats ! Float Lists
31005 \begin_layout Standard
31006 Similar to the table of contents where the sections of the document are
31007 listed, there are listings for all float types, like the figures of the
31009 You can insert them via the
31011 Insert\SpecialChar menuseparator
31013 \begin_inset space ~
31017 \begin_inset space ~
31025 \begin_layout Standard
31026 The list entries are the float captions or its short title, the float number,
31027 and the page number where they appear in the document.
31030 \begin_layout Standard
31031 You can find the list of figures and tables at the end of this document.
31034 \begin_layout Chapter
31038 \begin_layout Section
31041 \begin_inset Index idx
31044 \begin_layout Plain Layout
31045 Notes ! \SpecialChar LyX
31054 \begin_layout Standard
31055 Notes are inserted with the toolbar button
31063 Insert\SpecialChar menuseparator
31067 There are three types of notes:
31070 \begin_layout Description
31073 \begin_inset space ~
31076 Note This note type is for internal notes that won't appear in the output.
31077 Its note-box looks like this:
31078 \begin_inset Newline newline
31082 \begin_inset Newline newline
31086 \begin_inset Graphics
31087 filename clipart/LyXNoteImage.png
31089 scaleBeforeRotation
31094 \begin_inset Note Note
31097 \begin_layout Plain Layout
31098 This is text in a note box that doesn't appear in the output.
31106 \begin_layout Description
31107 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31109 when you export the document to \SpecialChar LaTeX
31112 File\SpecialChar menuseparator
31113 Export\SpecialChar menuseparator
31115 \begin_inset space ~
31118 (pdflatex) / (plain)
31121 Its note-box looks like this:
31122 \begin_inset Newline newline
31126 \begin_inset Newline newline
31130 \begin_inset Graphics
31131 filename clipart/CommentNoteImage.png
31133 scaleBeforeRotation
31138 \begin_inset Note Comment
31141 \begin_layout Plain Layout
31142 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31151 \begin_layout Description
31153 \begin_inset space ~
31156 Out This note will appear in the output as grey text.
31157 Its note-box looks like this:
31158 \begin_inset Newline newline
31162 \begin_inset Newline newline
31166 \begin_inset Graphics
31167 filename clipart/GreyedOutNoteImage.png
31169 scaleBeforeRotation
31174 \begin_inset Newline newline
31181 \begin_layout Plain Layout
31185 renewenvironment{lyxgreyedout}
31188 \begin_layout Plain Layout
31192 textcolor[gray]{0.8}
31202 \begin_inset Note Greyedout
31205 \begin_layout Plain Layout
31206 This is text of a comment that appears grey in the output.
31215 \begin_layout Plain Layout
31219 renewenvironment{lyxgreyedout}
31222 \begin_layout Plain Layout
31236 \begin_inset Note Note
31239 \begin_layout Plain Layout
31240 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31242 because greyed out notes are redefined in the preamble of this document,
31243 as described below, to have blue text.
31249 \begin_inset Newline newline
31253 \begin_inset Newline newline
31256 As you can see in the example, the first line of greyed out notes is a bit
31257 indented and greyed out notes can have footnotes.
31260 \begin_layout Standard
31261 \begin_inset VSpace bigskip
31264 When you use the toolbar button
31274 \begin_inset space ~
31280 You can switch between the three note types by right-clicking on the note-box.
31285 If you want to turn existing text into a note, mark it and click on the
31299 To change a note to text, press the backspace key when the cursor is in
31300 the first position of a note, or press the delete key when the cursor is
31301 in the very last position of the note, respectively.
31304 \begin_layout Standard
31305 \begin_inset VSpace bigskip
31308 You can change the text color of the greyed out notes in the menu
31310 Document\SpecialChar menuseparator
31311 Settings\SpecialChar menuseparator
31317 \begin_layout Section
31319 \begin_inset CommandInset label
31321 name "sec:Footnotes"
31326 \begin_inset Index idx
31329 \begin_layout Plain Layout
31336 \begin_inset Index idx
31339 \begin_layout Plain Layout
31348 \begin_layout Standard
31349 Footnotes can be inserted using the toolbar button
31352 arg "footnote-insert"
31357 Insert\SpecialChar menuseparator
31361 You will then see the following footnote-box:
31362 \begin_inset Graphics
31363 filename clipart/footnote.png
31365 scaleBeforeRotation
31373 where you can enter the footnote text.
31374 If you want to turn existing text into a footnote, mark it and click on
31400 key when the cursor is in the first position of a
31412 key when the cursor is in the very last position of the
31423 \begin_layout Standard
31424 Here is an example footnote:
31432 \begin_layout Plain Layout
31433 \begin_inset CommandInset label
31435 name "foot:This-is-an"
31439 This is an example footnote.
31452 \begin_layout Plain Layout
31456 newcounter{MyRepeatFoot}
31459 \begin_layout Plain Layout
31463 setcounter{MyRepeatFoot}{
31473 \begin_layout Standard
31474 The footnote will appear in the output as a superscript number at the text
31475 position where the footnote box is placed.
31476 The footnote text is placed at the bottom of the current page.
31477 The footnote number is calculated by \SpecialChar LaTeX
31478 ; the numbers are consecutive.
31479 Whether the footnote number is reset for every chapter depends on your
31483 \begin_layout Standard
31484 Footnotes can be referenced like floats: Insert a label into the footnote
31485 and cross-reference this label in the text as described in section
31486 \begin_inset space ~
31490 \begin_inset CommandInset ref
31492 reference "sec:Referencing-Floats"
31497 \begin_inset Newline newline
31500 This is a cross-reference of Footnote
31501 \begin_inset space ~
31505 \begin_inset CommandInset ref
31507 reference "foot:This-is-an"
31514 \begin_layout Standard
31515 \begin_inset VSpace defskip
31518 Footnotes in title environments are usually not numbered with symbols and
31519 they cannot contain several paragraphs.
31520 See for example the footnote in the titling of this document.
31523 \begin_layout Standard
31524 Footnotes in multi-page tables are described in section
31525 \begin_inset space ~
31529 \begin_inset CommandInset ref
31531 reference "subsec:Footnotes-in-Multi-page"
31538 \begin_layout Standard
31539 \begin_inset VSpace defskip
31545 \begin_layout Standard
31546 Footnotes in minipage boxes are printed, but inside the box and with a different
31547 numbering because a minipage box is like a page inside a page.
31548 (For more about minipages, see section
31549 \begin_inset space ~
31553 \begin_inset CommandInset ref
31555 reference "sec:Minipages"
31559 .) To get a footnote in the minipage that is output at the bottom of the
31560 page like normal footnotes use this method: Instead of the footnote the
31567 is inserted as \SpecialChar TeX
31569 The text of the footnote is entered as an argument of the \SpecialChar TeX
31577 after the minipage.
31578 \begin_inset Newline newline
31581 This was done for the following minipage with the command
31584 \begin_layout Standard
31591 Footnote outside the minipage.
31596 \begin_layout Standard
31597 \begin_inset Box Frameless
31607 height_special "totalheight"
31612 backgroundcolor "none"
31615 \begin_layout Plain Layout
31616 This an example text in a minipage.
31620 \begin_layout Plain Layout
31621 Footnote in the minipage.
31629 \begin_layout Plain Layout
31630 This an example text in a minipage.
31634 \begin_layout Plain Layout
31651 \begin_layout Standard
31655 \begin_layout Plain Layout
31664 Footnote outside the minipage.
31668 \begin_layout Plain Layout
31678 \begin_layout Standard
31679 \begin_inset VSpace defskip
31685 \begin_layout Standard
31686 To refer to the same footnote several times without printing the footnote
31687 text every time, use the command
31691 footnotemark[number]
31693 in \SpecialChar TeX
31695 \begin_inset Newline newline
31698 As you do not know the number of the repeating footnote while you are writing
31699 the text, you have to store its number.
31700 For the following footnote mark example, these commands were inserted in
31702 code after Footnote
31703 \begin_inset space ~
31707 \begin_inset CommandInset ref
31709 reference "foot:This-is-an"
31713 to store the footnote number:
31716 \begin_layout Standard
31721 newcounter{MyRepeatFoot}
31722 \begin_inset Newline newline
31727 setcounter{MyRepeatFoot}{
31732 \begin_layout Standard
31733 The footnote mark was then created with this command:
31736 \begin_layout Standard
31746 \begin_layout Standard
31747 Here is a repeated footnote:
31755 \begin_layout Plain Layout
31769 \begin_layout Standard
31770 If you want to repeat the previous footnote, you can omit the storage of
31771 the footnote number and just use this command instead:
31774 \begin_layout Standard
31784 \begin_layout Standard
31785 Here is another repeated footnote:
31793 \begin_layout Plain Layout
31807 \begin_layout Subsection
31809 \begin_inset CommandInset label
31811 name "subsec:Footnote-Numbering"
31816 \begin_inset Index idx
31819 \begin_layout Plain Layout
31820 Footnotes ! Numbering
31828 \begin_layout Standard
31829 To reset the footnote number back to 1 after each section
31831 , add this command to your document preamble:
31834 \begin_layout Standard
31839 @addtoreset{footnote}{section}
31842 \begin_layout Standard
31843 \begin_inset VSpace bigskip
31846 The following preamble command changes the footnote numbering style to small
31850 \begin_layout Standard
31862 \begin_layout Standard
31866 \begin_layout Plain Layout
31879 This is a footnote with roman numbering:
31883 \begin_layout Plain Layout
31884 This is an example footnote with roman numbering.
31892 \begin_layout Standard
31893 To change the numbering style to capital roman numerals replace in the command
31908 \begin_inset Quotes eld
31912 \begin_inset Quotes erd
31915 footnotes with capital or small Latin letters use
31929 \begin_inset Quotes eld
31933 \begin_inset Quotes erd
31936 footnotes with symbols use
31945 \begin_layout Standard
31946 \begin_inset Note Greyedout
31949 \begin_layout Plain Layout
31954 You can only number 26 footnotes with Latin letters, because this numbering
31955 is limited to single letters.
31961 \begin_inset Newline newline
31965 \begin_inset Note Greyedout
31968 \begin_layout Plain Layout
31973 You can only number 9 footnotes with symbols.
31981 \begin_layout Standard
31982 To return to the default numbering style after you have changed to another
31995 in the command above.
31999 \begin_layout Plain Layout
32015 \begin_layout Standard
32016 \begin_inset VSpace bigskip
32022 \begin_layout Standard
32023 If you want to have footnotes numbered in the scheme
32024 \begin_inset Quotes eld
32028 \begin_inset Quotes erd
32031 , add the following command to your document preamble:
32034 \begin_layout Standard
32039 numberwithin{footnote}{chapter}
32042 \begin_layout Standard
32043 To be able to use the command
32052 \begin_inset space ~
32057 in the document settings the option
32060 \begin_inset space ~
32064 \begin_inset space ~
32068 \begin_inset space ~
32076 \begin_layout Standard
32080 \begin_layout Plain Layout
32084 numberwithin{footnote}{chapter}
32089 This is another example footnote:
32095 \begin_layout Plain Layout
32096 This is a footnote numbered in the scheme
32097 \begin_inset Quotes eld
32101 \begin_inset Quotes erd
32115 \begin_layout Plain Layout
32131 \begin_layout Standard
32132 \begin_inset Note Greyedout
32135 \begin_layout Plain Layout
32146 always prints out the footnote number as arabic number; previous redefinitions
32147 to get non-arabic numbers are overwritten.
32155 \begin_layout Standard
32156 So to get for example the scheme
32157 \begin_inset Quotes eld
32163 \begin_inset Quotes erd
32166 , use this command instead of
32175 \begin_layout Standard
32189 \begin_layout Subsection
32191 \begin_inset Index idx
32194 \begin_layout Plain Layout
32195 Footnotes ! Placement
32203 \begin_layout Standard
32204 If you have several footnotes in one page, they appear without vertical
32205 space between them at the bottom of the page.
32206 To make them more readable you can e.
32207 \begin_inset space \thinspace{}
32211 \begin_inset space \space{}
32215 \begin_inset space \thinspace{}
32218 mm space with the following preamble command:
32221 \begin_layout Standard
32231 \begin_inset Newline newline
32245 \begin_layout Standard
32246 \begin_inset VSpace bigskip
32249 In a two-column document the footnotes appear at the bottom of every column,
32251 \begin_inset space ~
32255 \begin_inset CommandInset ref
32257 reference "fig:Standard-footnote-placement"
32262 If the footnotes should only appear at the bottom of the right column,
32264 \begin_inset space ~
32268 \begin_inset CommandInset ref
32270 reference "fig:Footnote-placement-in"
32274 , use the \SpecialChar LaTeX
32280 \begin_inset Index idx
32283 \begin_layout Plain Layout
32285 -packages ! ftnright
32290 with this command in the document preamble:
32293 \begin_layout Standard
32298 usepackage{ftnright}
32301 \begin_layout Standard
32302 \begin_inset Float figure
32308 \begin_layout Plain Layout
32311 \begin_inset Box Boxed
32321 height_special "totalheight"
32326 backgroundcolor "none"
32329 \begin_layout Plain Layout
32330 \begin_inset Graphics
32331 filename clipart/without_fntright.pdf
32333 scaleBeforeRotation
32345 \begin_layout Plain Layout
32346 \begin_inset Caption Standard
32348 \begin_layout Plain Layout
32349 \begin_inset CommandInset label
32351 name "fig:Standard-footnote-placement"
32355 Standard footnote placement in two-column documents.
32368 \begin_layout Standard
32369 \begin_inset Float figure
32375 \begin_layout Plain Layout
32378 \begin_inset Box Boxed
32388 height_special "totalheight"
32393 backgroundcolor "none"
32396 \begin_layout Plain Layout
32397 \begin_inset Graphics
32398 filename clipart/with_fntright.pdf
32400 scaleBeforeRotation
32412 \begin_layout Plain Layout
32413 \begin_inset Caption Standard
32415 \begin_layout Plain Layout
32416 \begin_inset CommandInset label
32418 name "fig:Footnote-placement-in"
32422 Footnote placement in two-column documents when the \SpecialChar LaTeX
32440 \begin_layout Standard
32441 \begin_inset VSpace bigskip
32444 In some scientific literature it is usual to collect the footnotes and print
32445 them in a separate paragraph at the end of a section, as in Figure
32446 \begin_inset space ~
32450 \begin_inset CommandInset ref
32452 reference "fig:Endnotes"
32457 They are then called
32458 \begin_inset Quotes eld
32462 \begin_inset Quotes erd
32466 \begin_inset Index idx
32469 \begin_layout Plain Layout
32475 To use endnotes instead of footnotes in your document, load in the menu
32478 Document\SpecialChar menuseparator
32479 Settings\SpecialChar menuseparator
32485 \begin_inset space ~
32489 \begin_inset space ~
32495 To insert the collected footnotes, insert the command
32498 \begin_layout Standard
32506 \begin_layout Standard
32507 in \SpecialChar TeX
32508 Code at the end of a section or chapter.
32511 \begin_layout Standard
32512 \begin_inset Float figure
32517 \begin_layout Plain Layout
32520 \begin_inset Box Boxed
32530 height_special "totalheight"
32535 backgroundcolor "none"
32538 \begin_layout Plain Layout
32539 \begin_inset Graphics
32540 filename clipart/endnotes.pdf
32542 scaleBeforeRotation
32554 \begin_layout Plain Layout
32555 \begin_inset Caption Standard
32557 \begin_layout Plain Layout
32558 \begin_inset CommandInset label
32560 name "fig:Endnotes"
32564 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32578 \begin_layout Standard
32579 \begin_inset VSpace medskip
32582 The paragraph heading for the endnotes isn't automatically translated into
32583 the document language, this must be done manually.
32584 The following preamble command translates the default English
32585 \begin_inset Quotes eld
32589 \begin_inset Quotes erd
32593 \begin_inset Quotes eld
32597 \begin_inset Quotes erd
32603 \begin_layout Standard
32610 notesname}{Anmerkungen}
32613 \begin_layout Standard
32614 \begin_inset VSpace medskip
32617 The numbering of endnotes can be changed like the footnote numbering as
32618 described in section
32619 \begin_inset space ~
32623 \begin_inset CommandInset ref
32625 reference "subsec:Footnote-Numbering"
32629 ; just replace the command
32642 To reset the endnote number use the command
32648 as described in section
32649 \begin_inset space ~
32653 \begin_inset CommandInset ref
32655 reference "subsec:Footnote-Numbering"
32659 and replace the command parameter
32670 \begin_layout Standard
32671 For endnotes there is the command
32675 endnotemark[number]
32677 similar to the command
32683 , that is described in section
32684 \begin_inset space ~
32688 \begin_inset CommandInset ref
32690 reference "sec:Footnotes"
32697 \begin_layout Standard
32698 \begin_inset VSpace bigskip
32701 Footnotes can also be placed in the page margin and the footnote text alignment
32702 can be changed, see the \SpecialChar LaTeX
32708 \begin_inset Index idx
32711 \begin_layout Plain Layout
32713 -packages ! footmisc
32719 \begin_inset CommandInset citation
32726 for more information about this.
32729 \begin_layout Standard
32730 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32732 \begin_inset CommandInset citation
32734 key "latexcompanion,latexguide,latexbook"
32745 \begin_inset Index idx
32748 \begin_layout Plain Layout
32750 -packages ! KOMA-Script
32755 document class, you can adjust all footnote settings using class-specific
32757 \begin_inset CommandInset citation
32767 \begin_layout Section
32769 \begin_inset Index idx
32772 \begin_layout Plain Layout
32773 Notes ! Margin Notes
32781 \begin_layout Standard
32782 Margin notes look and behave in \SpecialChar LyX
32784 They are inserted via the menu
32786 Insert\SpecialChar menuseparator
32788 \begin_inset space ~
32793 or the toolbar button
32796 arg "marginalnote-insert"
32810 \begin_inset Quotes eld
32814 \begin_inset Quotes erd
32817 appears where you can enter the text of the margin note.
32820 \begin_layout Standard
32821 At the side is an example margin note.
32826 \begin_inset Marginal
32829 \begin_layout Plain Layout
32830 This is a margin note.
32838 \begin_layout Standard
32839 Margin notes appear at the right side in single-sided documents.
32840 In double-sided documents they appear in the outer margin – left on even
32841 pages, right on odd pages.
32842 The text of margin notes is aligned opposite to the outer margin – right-aligne
32843 d when the note appears in the left margin.
32844 The first line of the margin note is placed at the position of the text
32845 line where it is inserted in the document.
32848 \begin_layout Standard
32849 \begin_inset VSpace bigskip
32852 To place the margin note in the inner margin, add the command
32855 \begin_layout Standard
32863 \begin_layout Standard
32864 in \SpecialChar TeX
32865 Code before a margin note.
32866 The new placement is valid for all subsequent margin notes.
32871 \begin_layout Plain Layout
32881 \begin_inset Marginal
32884 \begin_layout Plain Layout
32885 This is a margin note in the inner margin.
32893 \begin_inset Newline newline
32899 \begin_inset Note Greyedout
32902 \begin_layout Plain Layout
32907 There is often not enough space in the inner margin so that the notes are
32908 not correctly displayed in the output.
32916 \begin_layout Standard
32917 To return to the default placement insert the command
32920 \begin_layout Standard
32928 \begin_layout Standard
32929 in \SpecialChar TeX
32934 \begin_layout Plain Layout
32944 \begin_inset Note Greyedout
32947 \begin_layout Plain Layout
32952 The command is ignored when it is within a paragraph where also the command
32967 \begin_layout Standard
32968 \begin_inset VSpace bigskip
32975 \begin_inset Marginal
32978 \begin_layout Plain Layout
32979 AVeryLongMarginParWord that isn't hyphenated.
32987 Similar to the case described in section
32988 \begin_inset space ~
32992 \begin_inset CommandInset ref
32994 reference "subsec:Multiple-Lines-in"
32998 , long words cannot be hyphenated when they are the first word in a margin
33000 To avoid this, insert 0
33001 \begin_inset space \thinspace{}
33004 pt horizontal space before the word
33009 \begin_inset Marginal
33012 \begin_layout Plain Layout
33013 \begin_inset space \hspace*{}
33017 AVeryLongMarginParWord that is hyphenated.
33025 \begin_layout Standard
33026 \begin_inset VSpace bigskip
33032 \begin_layout Standard
33033 \begin_inset Note Greyedout
33036 \begin_layout Plain Layout
33041 Margin notes can normally not be used inside tables, floats, and footnotes.
33049 \begin_layout Standard
33050 \begin_inset VSpace bigskip
33056 \begin_layout Standard
33060 \begin_layout Plain Layout
33070 \begin_inset Note Note
33073 \begin_layout Plain Layout
33074 The following section will only be displayed when the \SpecialChar LaTeX
33087 \begin_layout Standard
33088 This restriction can be evaded by using the \SpecialChar LaTeX
33094 \begin_inset Index idx
33097 \begin_layout Plain Layout
33099 -packages ! marginnote
33105 By adding these two lines to your document preamble, the command used by
33107 for margin notes is redefined to use the command provided by the
33114 \begin_layout Standard
33119 usepackage{marginnote}
33120 \begin_inset Newline newline
33132 \begin_layout Standard
33133 This is also used in this document because
33137 has another useful feature: You can set a vertical offset for the note.
33138 This is often needed when too many margin notes are too close together
33139 or for a better page layout.
33140 The offset is set in \SpecialChar LyX
33141 as \SpecialChar TeX
33142 Code directly after the margin note in the scheme
33145 \begin_layout Standard
33151 \begin_layout Standard
33152 where the offset is a length with one of the units listed in Table
33153 \begin_inset space ~
33157 \begin_inset CommandInset ref
33159 reference "tab:Units"
33164 A negative value shifts the note up, a positive value shifts it down.
33168 For example the margin note beside this text line is shifted up 1.5
33169 \begin_inset space \thinspace{}
33172 cm with the \SpecialChar TeX
33174 \begin_inset Quotes eld
33184 \begin_inset Quotes erd
33188 \begin_inset Marginal
33191 \begin_layout Plain Layout
33192 This margin note is shifted up 1.5
33193 \begin_inset space \thinspace{}
33196 cm from its original position.
33208 \begin_layout Plain Layout
33218 \begin_layout Standard
33219 \begin_inset VSpace medskip
33226 you can also change the alignment of the text in the margin note.
33227 For example the commands
33230 \begin_layout Standard
33237 raggedleftmarginnote}{
33240 \begin_inset Newline newline
33247 raggedrightmarginnote}{
33252 \begin_layout Standard
33253 set the alignment to centered.
33258 raggedleftmarginnote
33260 denotes margin notes that appear at the left side.
33267 \begin_layout Plain Layout
33273 raggedleftmarginnote}{
33278 \begin_layout Plain Layout
33284 raggedrightmarginnote}{
33292 \begin_inset Marginal
33295 \begin_layout Plain Layout
33296 The text of this margin note is centered.
33307 \begin_layout Standard
33314 raggedleftmarginnote}{
33317 \begin_inset Newline newline
33324 raggedrightmarginnote}{
33333 \begin_layout Plain Layout
33339 raggedleftmarginnote}{
33344 \begin_layout Plain Layout
33350 raggedrightmarginnote}{
33360 \begin_layout Standard
33361 \begin_inset VSpace medskip
33364 For the other features of
33368 refer to its documentation
33369 \begin_inset CommandInset citation
33379 \begin_layout Standard
33380 \begin_inset VSpace bigskip
33383 You can adjust the layout of margin notes by changing its definition.
33384 To create for example a header for all margin notes with the underlined,
33385 sans-serif, and bold header text
33386 \begin_inset Quotes eld
33398 \begin_inset Quotes erd
33401 , add this to your document preamble:
33404 \begin_layout Standard
33414 \begin_inset Newline newline
33424 \begin_inset Newline newline
33428 \begin_inset Phantom HPhantom
33431 \begin_layout Plain Layout
33434 \begin_inset space ~
33450 underbar{Attention!}}}%
33451 \begin_inset Newline newline
33455 \begin_inset Phantom HPhantom
33458 \begin_layout Plain Layout
33461 \begin_inset space ~
33478 \begin_layout Standard
33485 \begin_layout Plain Layout
33496 \begin_layout Plain Layout
33507 \begin_layout Plain Layout
33515 underbar{Attention!}}}%
33518 \begin_layout Plain Layout
33532 \begin_inset Marginal
33535 \begin_layout Plain Layout
33536 This is a margin note with a defined heading.
33548 \begin_layout Plain Layout
33562 \begin_layout Plain Layout
33579 \begin_inset Note Note
33582 \begin_layout Plain Layout
33583 The margin note format is changed only for this example.
33591 \begin_layout Standard
33595 \begin_layout Plain Layout
33605 \begin_inset Note Note
33608 \begin_layout Plain Layout
33609 The following will be displayed when the \SpecialChar LaTeX
33622 \begin_layout Standard
33623 You need to install the \SpecialChar LaTeX
33628 to see the following part of this section in the output.
33631 \begin_layout Standard
33635 \begin_layout Plain Layout
33647 \begin_layout Chapter
33651 \begin_layout Section
33653 \begin_inset Index idx
33656 \begin_layout Plain Layout
33657 Boxes ! Introduction
33665 \begin_layout Standard
33666 Boxes are used to format a block of text.
33667 Boxes can be used to write documents with multiple languages, see section
33668 \begin_inset space ~
33672 \begin_inset CommandInset ref
33674 reference "sec:Minipages"
33678 , to frame texts, see section
33679 \begin_inset space ~
33683 \begin_inset CommandInset ref
33685 reference "sec:Decoration"
33689 , to prevent words from being hyphenated, see section
33690 \begin_inset space ~
33694 \begin_inset CommandInset ref
33696 reference "sec:Prevent-Hyphenation"
33700 , to align text, see section
33701 \begin_inset space ~
33705 \begin_inset CommandInset ref
33707 reference "subsec:Vertical-Alignment"
33711 , or to set the background color of texts, see section
33712 \begin_inset space ~
33716 \begin_inset CommandInset ref
33718 reference "sec:Colored-Boxes"
33725 \begin_layout Standard
33726 Boxes can be inserted with the menu
33728 Insert\SpecialChar menuseparator
33731 or the toolbar button
33734 arg "box-insert Frameless"
33738 A grey box with the label
33743 \begin_inset Graphics
33744 filename clipart/BoxInsetDefault.png
33746 scaleBeforeRotation
33751 The box type can be specified by right-clicking on the box and selecting
33757 The box dialog offers the
33760 \begin_inset space ~
33782 is the default for new boxes and is explained in section
33783 \begin_inset space ~
33787 \begin_inset CommandInset ref
33789 reference "sec:Minipages"
33797 is described in section
33798 \begin_inset space ~
33802 \begin_inset CommandInset ref
33804 reference "sec:Parboxes"
33813 \begin_inset CommandInset ref
33815 reference "sec:Prevent-Hyphenation"
33822 \begin_layout Standard
33823 Boxes are not numbered and can therefore not be referenced like floats or
33827 \begin_layout Standard
33828 \begin_inset Note Greyedout
33831 \begin_layout Plain Layout
33836 Boxes must not be the item in an
33852 \begin_layout Standard
33853 \begin_inset Note Greyedout
33856 \begin_layout Plain Layout
33861 For an unknown reason you can only set the
33864 \begin_inset space ~
33873 when you use a framed box.
33877 \begin_inset space ~
33882 type and without frames are explained in section
33883 \begin_inset space ~
33887 \begin_inset CommandInset ref
33889 reference "sec:Prevent-Hyphenation"
33901 \begin_layout Section
33903 \begin_inset CommandInset label
33905 name "sec:Box-Dialog"
33910 \begin_inset Index idx
33913 \begin_layout Plain Layout
33922 \begin_layout Subsection
33924 \begin_inset Index idx
33927 \begin_layout Plain Layout
33936 \begin_layout Standard
33937 In the box dialog you can adjust the box geometry in the fields
33946 The available units for the geometry are explained in Table
33947 \begin_inset space ~
33951 \begin_inset CommandInset ref
33953 reference "tab:Units"
33962 offers the following additional sizes:
33965 \begin_layout Description
33966 Depth This is the plain text
33967 \begin_inset Quotes eld
33971 \begin_inset Quotes erd
33975 It ignores the total depth when there are multiple text lines in the box:
33976 \begin_inset Newline newline
33980 \begin_inset Newline newline
33984 \begin_inset Newline newline
33988 \begin_inset Box Boxed
33998 height_special "depth"
34003 backgroundcolor "none"
34006 \begin_layout Plain Layout
34008 Box height set to 1
34009 \begin_inset space \thinspace{}
34018 \begin_inset Newline newline
34022 \begin_inset Newline newline
34028 \begin_layout Description
34029 Height This is the height of the text that is inside the box.
34031 \begin_inset space \thinspace{}
34035 \begin_inset space \space{}
34038 2 for this size will set the box height to 2
34039 \begin_inset space ~
34042 times the text height:
34043 \begin_inset Box Boxed
34053 height_special "height"
34058 backgroundcolor "none"
34061 \begin_layout Plain Layout
34063 Box height set to 2
34064 \begin_inset space \thinspace{}
34075 \begin_layout Description
34077 \begin_inset space ~
34080 Height This is the Height
34081 \begin_inset space \thinspace{}
34085 \begin_inset space \thinspace{}
34089 \begin_inset Box Boxed
34099 height_special "totalheight"
34104 backgroundcolor "none"
34107 \begin_layout Plain Layout
34109 Box height set to 1
34110 \begin_inset space \thinspace{}
34114 \begin_inset space ~
34125 \begin_layout Description
34126 Width This sets the width of the box as height:
34127 \begin_inset Box Boxed
34137 height_special "width"
34142 backgroundcolor "none"
34145 \begin_layout Plain Layout
34147 Box height set to 1
34148 \begin_inset space \thinspace{}
34159 \begin_layout Subsection
34161 \begin_inset Index idx
34164 \begin_layout Plain Layout
34173 \begin_layout Standard
34174 When you have chosen an
34177 \begin_inset space ~
34182 , the vertical box alignment can be:
34185 \begin_layout Description
34186 Top This is an example text line.
34188 \begin_inset Box Boxed
34198 height_special "totalheight"
34203 backgroundcolor "none"
34206 \begin_layout Plain Layout
34208 This box is top-aligned.
34213 This is an example text line.
34216 \begin_layout Description
34217 Middle This is an example text line.
34219 \begin_inset Box Boxed
34229 height_special "totalheight"
34234 backgroundcolor "none"
34237 \begin_layout Plain Layout
34239 This box is middle-aligned.
34244 This is an example text line.
34247 \begin_layout Description
34248 Bottom This is an example text line.
34250 \begin_inset Box Boxed
34260 height_special "totalheight"
34265 backgroundcolor "none"
34268 \begin_layout Plain Layout
34270 This box is bottom-aligned.
34275 This is an example text line.
34278 \begin_layout Standard
34279 \begin_inset Note Greyedout
34282 \begin_layout Plain Layout
34287 The vertical box alignment can be lost in the output when you have two
34288 boxes in a line and one has e.
34289 \begin_inset space \thinspace{}
34293 \begin_inset space \space{}
34296 a shadow and the other one not.
34304 \begin_layout Standard
34305 The horizontal box alignment can be set via \SpecialChar LyX
34306 's paragraph dialog when you
34307 set the box into its own paragraph.
34310 \begin_layout Standard
34311 \begin_inset VSpace bigskip
34314 When you have chosen an
34317 \begin_inset space ~
34322 , the box content can be aligned vertically to:
34325 \begin_layout Description
34326 top This is an example text line.
34328 \begin_inset Box Boxed
34338 height_special "totalheight"
34343 backgroundcolor "none"
34346 \begin_layout Plain Layout
34348 This box text is top-aligned.
34353 This is an example text line.
34356 \begin_layout Description
34357 middle This is an example text line.
34359 \begin_inset Box Boxed
34369 height_special "totalheight"
34374 backgroundcolor "none"
34377 \begin_layout Plain Layout
34379 This box text is middle-aligned.
34384 This is an example text line.
34387 \begin_layout Description
34388 bottom This is an example text line.
34390 \begin_inset Box Boxed
34400 height_special "totalheight"
34405 backgroundcolor "none"
34408 \begin_layout Plain Layout
34410 This box text is bottom-aligned.
34415 This is an example text line.
34418 \begin_layout Description
34419 stretch This is an example text line.
34421 \begin_inset Box Boxed
34431 height_special "totalheight"
34436 backgroundcolor "none"
34439 \begin_layout Plain Layout
34444 \begin_layout Plain Layout
34449 \begin_layout Plain Layout
34456 This is an example text line.
34459 \begin_layout Standard
34460 To stretch the box content, it must consist of more than one paragraph.
34461 In the example above every text line is in an own paragraph.
34464 \begin_layout Standard
34465 \begin_inset VSpace bigskip
34468 To align the box content horizontally you can use \SpecialChar LyX
34469 's paragraph dialog when
34473 \begin_inset space ~
34481 \begin_layout Standard
34483 \begin_inset Box Boxed
34493 height_special "totalheight"
34498 backgroundcolor "none"
34501 \begin_layout Plain Layout
34506 \begin_layout Plain Layout
34511 \begin_layout Plain Layout
34521 \begin_layout Standard
34522 If you have not set an
34525 \begin_inset space ~
34530 , you can align the box content horizontally in the box dialog.
34533 \begin_layout Standard
34535 \begin_inset Box Boxed
34545 height_special "totalheight"
34550 backgroundcolor "none"
34553 \begin_layout Plain Layout
34554 This box text is horizontally stretched.
34562 \begin_layout Subsection
34564 \begin_inset CommandInset label
34566 name "sec:Decoration"
34571 \begin_inset Index idx
34574 \begin_layout Plain Layout
34583 \begin_layout Standard
34584 The type of the box can be specified in the box dialog in the drop-down
34590 The following types are possible:
34593 \begin_layout Description
34595 \begin_inset space ~
34598 frame Nothing is drawn.
34601 \begin_layout Description
34603 \begin_inset space ~
34607 \begin_inset space ~
34610 frame This draws a rectangular frame around the box.
34611 The frame line thickness can be specified.
34613 \begin_inset Box Boxed
34623 height_special "totalheight"
34628 backgroundcolor "none"
34631 \begin_layout Plain Layout
34641 \begin_layout Description
34643 \begin_inset space ~
34647 \begin_inset space ~
34650 thin This draws an oval frame around the box.
34651 The frame line thickness has the size 0.4
34652 \begin_inset space \thinspace{}
34657 \begin_inset Box ovalbox
34667 height_special "totalheight"
34672 backgroundcolor "none"
34675 \begin_layout Plain Layout
34685 \begin_layout Description
34687 \begin_inset space ~
34691 \begin_inset space ~
34694 thick This draws an oval frame around the box.
34695 The frame line thickness has the size 0.8
34696 \begin_inset space \thinspace{}
34701 \begin_inset Box Ovalbox
34711 height_special "totalheight"
34716 backgroundcolor "none"
34719 \begin_layout Plain Layout
34729 \begin_layout Description
34731 \begin_inset space ~
34734 shadow This draws a rectangular frame with a shadow around the box.
34735 The frame line thickness and the shadow can be specified.
34737 \begin_inset Box Shadowbox
34747 height_special "totalheight"
34752 backgroundcolor "none"
34755 \begin_layout Plain Layout
34765 \begin_layout Description
34767 \begin_inset space ~
34770 background This draws a box with a red background.
34771 Unlike colored boxes
34775 \begin_layout Plain Layout
34777 \begin_inset space \thinspace{}
34781 \begin_inset CommandInset ref
34783 reference "sec:Colored-Boxes"
34792 , it always uses the whole column width and the box is set as its own paragraph.
34794 \begin_inset Box Shaded
34804 height_special "totalheight"
34809 backgroundcolor "none"
34812 \begin_layout Plain Layout
34813 Shaded background box
34821 \begin_layout Description
34823 \begin_inset space ~
34827 \begin_inset space ~
34830 frame This draws a double-line rectangular frame around the box.
34831 The line thickness of the inner frame is 0.75
34832 \begin_inset space \thinspace{}
34836 \begin_inset space ~
34839 thickness, the thickness of the outer frame is 1.5
34840 \begin_inset space \thinspace{}
34844 \begin_inset space ~
34848 The distance between the lines is 1.5
34849 \begin_inset space \thinspace{}
34853 \begin_inset space ~
34857 \begin_inset space \thinspace{}
34861 \begin_inset space \thinspace{}
34865 \begin_inset space \thinspace{}
34870 \begin_inset Box Doublebox
34880 height_special "totalheight"
34885 backgroundcolor "none"
34888 \begin_layout Plain Layout
34890 Double rectangular box
34898 \begin_layout Standard
34899 \begin_inset VSpace bigskip
34903 's box label will reflect the different frame types.
34904 To be able to use all types, the \SpecialChar LaTeX
34910 \begin_inset Index idx
34913 \begin_layout Plain Layout
34915 -packages ! fancybox
34923 \begin_layout Standard
34924 \begin_inset VSpace bigskip
34927 When you use the decoration
34929 simple rectangular frame
34931 and no inner box, you can allow page breaks within a box.
34932 Note that then, unlike other framed boxes, the frame always uses the whole
34933 column width and the box is set as its own paragraph:
34934 \begin_inset Box Framed
34944 height_special "totalheight"
34949 backgroundcolor "none"
34952 \begin_layout Plain Layout
34953 Allow page break box
34961 \begin_layout Section
34963 \begin_inset Index idx
34966 \begin_layout Plain Layout
34967 Boxes ! Customization
34975 \begin_layout Standard
34976 The diameter of the round corners of the oval boxes can be set with the
34987 \begin_layout Standard
34995 \begin_layout Standard
34996 sets the diameter to 1
34997 \begin_inset space \thinspace{}
35004 \begin_layout Standard
35012 \begin_layout Standard
35013 sets the diameter to
35016 \begin_inset space \thinspace{}
35020 \begin_inset space \thinspace{}
35023 minimum(width and height of box)
35035 \begin_layout Standard
35039 \begin_layout Plain Layout
35049 \begin_inset Box Ovalbox
35059 height_special "totalheight"
35064 backgroundcolor "none"
35067 \begin_layout Plain Layout
35076 \begin_inset space \thinspace{}
35080 \begin_inset space \thinspace{}
35084 \begin_inset space \thinspace{}
35096 \begin_layout Plain Layout
35108 \begin_layout Standard
35109 \begin_inset VSpace bigskip
35115 \begin_layout Standard
35116 The default background color red of
35120 boxes can either be changed locally with the command
35124 definecolor{shadecolor}
35126 or globally with the menu
35128 Tools\SpecialChar menuseparator
35129 Preferences\SpecialChar menuseparator
35130 Colors\SpecialChar menuseparator
35132 \begin_inset space ~
35144 command is explained in section
35145 \begin_inset space ~
35149 \begin_inset CommandInset ref
35151 reference "sec:Colored-Tables"
35159 \begin_layout Plain Layout
35166 requires the \SpecialChar LaTeX
35171 in the preamble, see section
35172 \begin_inset space ~
35176 \begin_inset CommandInset ref
35178 reference "sec:Colored-Boxes"
35187 For example the appearance of the following shaded background box is set
35188 with the \SpecialChar TeX
35192 \begin_layout Standard
35197 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35200 \begin_layout Standard
35204 \begin_layout Plain Layout
35208 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35214 \begin_inset Box Shaded
35224 height_special "totalheight"
35229 backgroundcolor "none"
35232 \begin_layout Plain Layout
35235 This is yellow text in a
35245 box with dark green background.
35254 \begin_layout Plain Layout
35258 definecolor{shadecolor}{rgb}{1,0,0}
35266 \begin_layout Standard
35267 \begin_inset VSpace bigskip
35270 Manually changed sizes and colors are valid for all boxes following the
35271 commands that change them.
35274 \begin_layout Section
35276 \begin_inset CommandInset label
35278 name "sec:Minipages"
35283 \begin_inset Index idx
35286 \begin_layout Plain Layout
35295 \begin_layout Standard
35296 Minipages are treated by \SpecialChar LaTeX
35297 as pages within pages and can therefore for example
35298 have their own footnotes.
35301 \begin_layout Standard
35302 Minipages are useful when you write documents with different languages.
35305 \begin_layout Standard
35306 Below are two example minipages side by side.
35307 Their width is set to 45
35308 \begin_inset space \thinspace{}
35311 col% and they are separated by a horizontal fill, that was inserted via
35314 Insert\SpecialChar menuseparator
35316 \begin_inset space ~
35319 Formatting\SpecialChar menuseparator
35321 \begin_inset space ~
35327 \begin_inset Newpage newpage
35333 \begin_layout Standard
35334 \begin_inset Box Frameless
35344 height_special "totalheight"
35349 backgroundcolor "none"
35352 \begin_layout Plain Layout
35355 Dies ist ein deutscher Text.
35356 Dies ist ein deutscher Text.
35357 Dies ist ein deutscher Text.
35358 Dies ist ein deutscher Text.
35359 Dies ist ein deutscher Text.
35360 Dies ist ein deutscher Text.
35361 Dies ist ein deutscher Text.
35362 Dies ist ein deutscher Text.
35363 Dies ist ein deutscher Text.
35364 Dies ist ein deutscher Text.
35365 Dies ist ein deutscher Text.
35366 Dies ist ein deutscher Text.
35367 Dies ist ein deutscher Text
35371 \begin_layout Plain Layout
35374 Dies ist eine deutsche Fußnote.
35380 Dies ist ein deutscher Text.
35381 Dies ist ein deutscher Text.
35387 \begin_inset space \hfill{}
35391 \begin_inset Box Frameless
35401 height_special "totalheight"
35406 backgroundcolor "none"
35409 \begin_layout Plain Layout
35410 This is an English Text.
35411 This is an English Text.
35412 This is an English Text.
35413 This is an English Text.
35414 This is an English Text.
35415 This is an English Text.
35416 This is an English Text.
35417 This is an English Text.
35418 This is an English Text.
35419 This is an English Text.
35420 This is an English Text.
35421 This is an English Text.
35422 This is an English Text.
35423 This is an English Text.
35424 This is an English Text.
35425 This is an English Text.
35429 \begin_layout Plain Layout
35430 This is an English footnote.
35435 This is an English Text.
35443 \begin_layout Standard
35444 \begin_inset VSpace bigskip
35447 The document-wide paragraph settings are ignored within minipages.
35448 That means that there will be no space between paragraphs in minipages
35449 although you set it to e.
35450 \begin_inset space \thinspace{}
35454 \begin_inset space \space{}
35461 in the document settings.
35464 \begin_layout Standard
35465 Minipages can also be used to set a background color for text parts, see
35467 \begin_inset space ~
35471 \begin_inset CommandInset ref
35473 reference "sec:Colored-Boxes"
35480 \begin_layout Standard
35481 \begin_inset Note Greyedout
35484 \begin_layout Plain Layout
35489 You cannot have floats or margin notes inside minipages but minipages can
35490 be used inside tables, floats, and other boxes.
35498 \begin_layout Standard
35499 \begin_inset VSpace bigskip
35505 \begin_layout Standard
35507 has also basic support for minipages whose size is automatically determined
35508 by the width of their contents, via the module
35510 Variable-width Minipages
35513 The \SpecialChar LyX
35516 varwidth-floats-side-by-side
35518 gives examples of variable-width minipages used for placing two floats
35522 \begin_layout Section
35524 \begin_inset CommandInset label
35526 name "sec:Parboxes"
35531 \begin_inset Index idx
35534 \begin_layout Plain Layout
35543 \begin_layout Standard
35544 Parboxes are very similar to minipages with the difference that they cannot
35548 \begin_layout Standard
35550 \begin_inset Box Frameless
35560 height_special "totalheight"
35565 backgroundcolor "none"
35568 \begin_layout Plain Layout
35569 This a text within a parbox.
35570 This a text within a parbox.
35573 \begin_layout Plain Layout
35574 This footnote won't appear:
35578 \begin_layout Plain Layout
35579 This footnote is inside a parbox and will therefore not appear.
35592 \begin_layout Section
35593 Boxes for Words and Characters
35594 \begin_inset Index idx
35597 \begin_layout Plain Layout
35598 Boxes ! for Characters
35606 \begin_layout Subsection
35607 Prevent Hyphenation
35608 \begin_inset CommandInset label
35610 name "sec:Prevent-Hyphenation"
35615 \begin_inset Index idx
35618 \begin_layout Plain Layout
35619 Boxes ! to Prevent Hyphenation
35627 \begin_layout Standard
35628 You can use the box type
35632 to prevent words or text from being hyphenated.
35633 \begin_inset Newline newline
35636 Here is an example text:
35639 \begin_layout Standard
35640 This line is an example to show how you can prevent the hyphenation of
35641 \begin_inset Quotes eld
35645 \begin_inset Quotes erd
35651 \begin_layout Standard
35652 To prevent the hyphenation of the word
35653 \begin_inset Quotes eld
35657 \begin_inset Quotes erd
35660 , put the word into a box, set the
35663 \begin_inset space ~
35672 and use no explicit width.
35675 \begin_layout Standard
35676 This is the result:
35679 \begin_layout Standard
35680 This line is an example to show how you can prevent the hyphenation of
35681 \begin_inset Box Frameless
35691 height_special "totalheight"
35696 backgroundcolor "none"
35699 \begin_layout Plain Layout
35700 \begin_inset Quotes eld
35704 \begin_inset Quotes erd
35715 \begin_layout Standard
35716 You can alternatively set the command
35717 \begin_inset Quotes eld
35727 \begin_inset Quotes grd
35730 as \SpecialChar TeX
35731 Code directly before the word:
35734 \begin_layout Standard
35735 This line is an example to show how you can prevent the hyphenation of
35736 \begin_inset Quotes eld
35743 \begin_layout Plain Layout
35753 \begin_inset Quotes erd
35759 \begin_layout Standard
35760 Of course the word now protrudes over the side margin.
35761 To avoid this, add via the menu
35763 Insert\SpecialChar menuseparator
35764 Formatting\SpecialChar menuseparator
35766 \begin_inset space ~
35770 \begin_inset space ~
35778 arg "newline-insert newline"
35781 ) a line break before the word:
35784 \begin_layout Standard
35785 This line is an example to show how you can prevent the hyphenation of
35786 \begin_inset Newline newline
35790 \begin_inset Box Frameless
35800 height_special "totalheight"
35805 backgroundcolor "none"
35808 \begin_layout Plain Layout
35809 \begin_inset Quotes eld
35813 \begin_inset Quotes erd
35824 \begin_layout Subsection
35826 \begin_inset CommandInset label
35828 name "subsec:Vertical-Alignment"
35833 \begin_inset Index idx
35836 \begin_layout Plain Layout
35837 Boxes ! for Vertical Alignment
35843 \begin_inset Index idx
35846 \begin_layout Plain Layout
35855 \begin_layout Standard
35856 With the help of the command
35862 you can align words, characters or other boxes vertically relative to the
35870 is used with the following scheme:
35873 \begin_layout Standard
35878 raisebox{lift}[height][depth]{box content}
35881 \begin_layout Standard
35882 The lift can be a positive value to raise the box or a negative value to
35886 \begin_layout Standard
35887 To align for example the word
35888 \begin_inset Quotes eld
35892 \begin_inset Quotes erd
35895 so that the bottom of the
35896 \begin_inset Quotes eld
35900 \begin_inset Quotes erd
35904 \begin_inset Quotes eld
35908 \begin_inset Quotes erd
35911 is at the baseline, insert the command
35914 \begin_layout Standard
35924 \begin_layout Standard
35925 in \SpecialChar TeX
35926 Code before the word.
35927 After the word insert a closing brace
35928 \begin_inset Quotes eld
35936 \begin_inset Quotes erd
35939 in \SpecialChar TeX
35941 \begin_inset Newline newline
35944 This is the result:
35947 \begin_layout Standard
35948 This is a text line with the word
35952 \begin_layout Plain Layout
35964 \begin_inset Quotes eld
35968 \begin_inset Quotes erd
35975 \begin_layout Plain Layout
35985 \begin_layout Standard
35986 \begin_inset VSpace bigskip
35989 When you raise or lower characters in a line, the line distance will be
35993 \begin_layout Standard
35994 This is a text line with the word
35998 \begin_layout Plain Layout
36010 \begin_inset Quotes eld
36014 \begin_inset Quotes erd
36021 \begin_layout Plain Layout
36029 \begin_inset Newline newline
36032 This is a text line with the word
36036 \begin_layout Plain Layout
36046 \begin_inset Quotes eld
36050 \begin_inset Quotes erd
36057 \begin_layout Plain Layout
36067 \begin_layout Standard
36068 If you want to prevent this for a certain reason, set the box height to
36073 \begin_layout Standard
36083 \begin_layout Standard
36084 This is a text line with the word
36088 \begin_layout Plain Layout
36100 \begin_inset Quotes eld
36104 \begin_inset Quotes erd
36111 \begin_layout Plain Layout
36119 \begin_inset Newline newline
36123 \begin_inset Newline newline
36126 This is a text line with the word
36130 \begin_layout Plain Layout
36134 raisebox{0.5cm}[0pt]{
36140 \begin_inset Quotes eld
36144 \begin_inset Quotes erd
36151 \begin_layout Plain Layout
36161 \begin_layout Section
36163 \begin_inset CommandInset label
36165 name "sec:Colored-Boxes"
36170 \begin_inset Index idx
36173 \begin_layout Plain Layout
36182 \begin_layout Standard
36183 To color the background of a box just select the color you like in the box
36185 This is for example a box with orange background:
36186 \begin_inset Box Frameless
36196 height_special "totalheight"
36201 backgroundcolor "orange"
36204 \begin_layout Plain Layout
36205 Box with orange background
36213 \begin_layout Standard
36214 If you use the decoration
36217 \begin_inset space ~
36221 \begin_inset space ~
36226 you can set a frame color.
36227 In this case you must also specify a background color (LyX sets white as
36229 Here is an example:
36230 \begin_inset Box Boxed
36240 height_special "totalheight"
36245 backgroundcolor "yellow"
36248 \begin_layout Plain Layout
36249 Box with teal frame color and yellow background color
36257 \begin_layout Standard
36258 \begin_inset VSpace bigskip
36261 Of course you can also have colored text inside a colored box:
36262 \begin_inset Newline newline
36266 \begin_inset Box Boxed
36276 height_special "totalheight"
36281 backgroundcolor "magenta"
36284 \begin_layout Plain Layout
36287 This is colored text within a colored, framed box
36295 \begin_layout Standard
36296 \begin_inset VSpace bigskip
36302 \begin_layout Standard
36303 If you need another color than the predefined ones, you can define your
36304 own color as described in section
36305 \begin_inset space ~
36309 \begin_inset CommandInset ref
36311 reference "sec:Colored-Tables"
36316 To use your own color you must typeset the box by using TeX code:
36319 \begin_layout Standard
36320 Colored boxes without frame are created with the command
36327 It has the following scheme:
36330 \begin_layout Standard
36335 colorbox{color}{box content}
36338 \begin_layout Standard
36339 The box content can also be a box and colored boxes can also be within other
36342 \begin_inset space \thinspace{}
36346 \begin_inset space \space{}
36349 a darkgreen background for a word, insert the command
36352 \begin_layout Standard
36357 colorbox{darkgreen}{
36360 \begin_layout Standard
36361 before the word in \SpecialChar TeX
36363 After the word insert a closing brace
36364 \begin_inset Quotes eld
36372 \begin_inset Quotes erd
36375 in \SpecialChar TeX
36377 \begin_inset Newline newline
36380 This is the result:
36383 \begin_layout Standard
36384 This is a line where the word
36388 \begin_layout Plain Layout
36392 colorbox{darkgreen}{
36398 \begin_inset Quotes eld
36402 \begin_inset Quotes erd
36409 \begin_layout Plain Layout
36416 has a darkgreen background.
36419 \begin_layout Standard
36420 Framed, colored boxes are created with the command
36427 It has the following scheme:
36430 \begin_layout Standard
36435 fcolorbox{frame color}{box color}{box content}
36438 \begin_layout Section
36439 Rotated and Scaled Boxes
36442 \begin_layout Standard
36443 To use the boxes described in this section, the module
36447 must be loaded in the document settings.
36450 \begin_layout Standard
36451 \begin_inset Note Greyedout
36454 \begin_layout Plain Layout
36459 Not all DVI viewers are able to display rotated or scaled material.
36467 \begin_layout Standard
36468 \begin_inset Note Greyedout
36471 \begin_layout Plain Layout
36476 Floats are not allowed inside a rotated or scaled box.
36484 \begin_layout Subsection
36486 \begin_inset Index idx
36489 \begin_layout Plain Layout
36496 \begin_inset Index idx
36499 \begin_layout Plain Layout
36508 \begin_layout Standard
36509 To rotate material, you can put it into a
36514 Such a box is inserted via the menu
36516 Insert\SpecialChar menuseparator
36517 Custom Insets\SpecialChar menuseparator
36523 \begin_layout Standard
36524 The rotation origin can be specified via the inset
36530 Insert\SpecialChar menuseparator
36538 The following positions are possible:
36558 (top), along with meaningful combinations of the four base positions.
36563 means that the rotation origin is at the top left corner of the box.
36564 When no rotation origin is specified, the position
36569 The rotation angle is a number that can be negative that specifies the
36571 The rotation direction is counterclockwise.
36574 \begin_layout Standard
36575 In the following example
36579 was inserted to the
36587 was inserted to the
36594 \begin_layout Standard
36596 \begin_inset Flex Rotatebox
36599 \begin_layout Plain Layout
36600 \begin_inset Argument 1
36603 \begin_layout Plain Layout
36610 \begin_inset Argument 2
36613 \begin_layout Plain Layout
36627 \begin_layout Standard
36628 The box content can also be another box or an inline formula:
36631 \begin_layout Standard
36633 \begin_inset Flex Rotatebox
36636 \begin_layout Plain Layout
36637 \begin_inset Argument 1
36640 \begin_layout Plain Layout
36647 \begin_inset Argument 2
36650 \begin_layout Plain Layout
36657 \begin_inset Box Doublebox
36667 height_special "totalheight"
36672 backgroundcolor "none"
36675 \begin_layout Plain Layout
36687 \begin_inset Flex Rotatebox
36690 \begin_layout Plain Layout
36691 \begin_inset Argument 1
36694 \begin_layout Plain Layout
36701 \begin_inset Argument 2
36704 \begin_layout Plain Layout
36711 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36722 \begin_layout Standard
36723 or an image or table:
36726 \begin_layout Standard
36728 \begin_inset Flex Rotatebox
36731 \begin_layout Plain Layout
36732 \begin_inset Argument 1
36735 \begin_layout Plain Layout
36742 \begin_inset Argument 2
36745 \begin_layout Plain Layout
36752 \begin_inset Graphics
36753 filename clipart/Star-structure.pdf
36764 with a rotated image
36765 \begin_inset Flex Rotatebox
36768 \begin_layout Plain Layout
36769 \begin_inset Argument 2
36772 \begin_layout Plain Layout
36779 \begin_inset Tabular
36780 <lyxtabular version="3" rows="2" columns="2">
36781 <features tabularvalignment="middle">
36782 <column alignment="center" valignment="top">
36783 <column alignment="center" valignment="top">
36785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36788 \begin_layout Plain Layout
36794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36797 \begin_layout Plain Layout
36805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36808 \begin_layout Plain Layout
36814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36817 \begin_layout Plain Layout
36834 \begin_inset Index idx
36837 \begin_layout Plain Layout
36844 \begin_inset Index idx
36847 \begin_layout Plain Layout
36848 Table Customization ! Rotating
36856 \begin_layout Standard
36857 \begin_inset Note Greyedout
36860 \begin_layout Plain Layout
36869 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36871 errors when viewing/exporting the document.
36879 \begin_layout Subsection
36881 \begin_inset Index idx
36884 \begin_layout Plain Layout
36891 \begin_inset Index idx
36894 \begin_layout Plain Layout
36903 \begin_layout Standard
36904 To scale material put it into a
36909 Such a box is inserted via the menu
36911 Insert\SpecialChar menuseparator
36912 Custom Insets\SpecialChar menuseparator
36918 \begin_layout Standard
36923 inset has the mandatory inset
36927 and the optional inset
36931 (inserted via the menu
36933 Insert\SpecialChar menuseparator
36937 Input there the horizontal and vertical scale factor, respectively.
36942 inset is used, the horizontal factor will also be used as the vertical
36946 \begin_layout Standard
36947 To get for example the double text size, compared to the document text size,
36958 \begin_inset Flex Scalebox
36961 \begin_layout Plain Layout
36962 \begin_inset Argument 1
36965 \begin_layout Plain Layout
36979 \begin_layout Standard
36997 \begin_inset Flex Scalebox
37000 \begin_layout Plain Layout
37001 \begin_inset Argument 1
37004 \begin_layout Plain Layout
37011 \begin_inset Argument 2
37014 \begin_layout Plain Layout
37028 \begin_layout Standard
37029 If the scaling factor is negative, the box content will be mirrored.
37046 can be used to create mirror writing:
37047 \begin_inset Flex Scalebox
37050 \begin_layout Plain Layout
37051 \begin_inset Argument 1
37054 \begin_layout Plain Layout
37061 \begin_inset Argument 2
37064 \begin_layout Plain Layout
37078 \begin_layout Standard
37096 \begin_inset Flex Scalebox
37099 \begin_layout Plain Layout
37100 \begin_inset Argument 1
37103 \begin_layout Plain Layout
37110 \begin_inset Argument 2
37113 \begin_layout Plain Layout
37127 \begin_layout Standard
37134 Insert\SpecialChar menuseparator
37135 Custom Insets\SpecialChar menuseparator
37161 \begin_layout Standard
37162 \begin_inset Note Greyedout
37165 \begin_layout Plain Layout
37174 inset is empty or contains other characters than numbers you will get LaTeX
37175 errors when viewing/exporting the document.
37183 \begin_layout Standard
37184 \begin_inset VSpace bigskip
37193 Insert\SpecialChar menuseparator
37194 Custom Insets\SpecialChar menuseparator
37197 ) is used to scale the content to a defined width and height.
37202 inset has the mandatory inset
37206 and the optional inset
37210 (inserted via the menu
37212 Insert\SpecialChar menuseparator
37216 Input there the width and height, respectively, as value with a unit.
37218 \begin_inset CommandInset ref
37220 reference "tab:Units"
37224 lists the possible units.
37225 If there is an exclamation mark
37229 in of of the two insets, the size is set so that the aspect ratio of the
37230 box content is kept.
37235 inset is used an exclamation mark will internally be used for the height.
37238 \begin_layout Standard
37256 \begin_inset Flex Resizebox
37259 \begin_layout Plain Layout
37260 \begin_inset Argument 1
37263 \begin_layout Plain Layout
37270 \begin_inset Argument 2
37273 \begin_layout Plain Layout
37285 \begin_inset Newline newline
37309 \begin_inset Flex Resizebox
37312 \begin_layout Plain Layout
37313 \begin_inset Argument 1
37316 \begin_layout Plain Layout
37323 \begin_inset Argument 2
37326 \begin_layout Plain Layout
37340 \begin_layout Standard
37341 \begin_inset Note Greyedout
37344 \begin_layout Plain Layout
37353 inset is empty or contains an invalid unit you will get LaTeX errors when
37354 viewing/exporting the document.
37362 \begin_layout Standard
37363 \begin_inset VSpace bigskip
37369 \begin_layout Standard
37370 The boxes can be combined in any order.
37379 which is in turn inside a
37386 \begin_layout Standard
37389 \begin_inset Flex Rotatebox
37392 \begin_layout Plain Layout
37393 \begin_inset Argument 1
37396 \begin_layout Plain Layout
37403 \begin_inset Argument 2
37406 \begin_layout Plain Layout
37413 \begin_inset Flex Resizebox
37416 \begin_layout Plain Layout
37417 \begin_inset Argument 1
37420 \begin_layout Plain Layout
37427 \begin_inset Flex Reflectbox
37430 \begin_layout Plain Layout
37449 \begin_layout Standard
37451 Images, tables, and inline formulas are allowed as box content:
37454 \begin_layout Standard
37457 \begin_inset Flex Resizebox
37460 \begin_layout Plain Layout
37461 \begin_inset Argument 1
37464 \begin_layout Plain Layout
37471 \begin_inset Flex Reflectbox
37474 \begin_layout Plain Layout
37475 \begin_inset Graphics
37476 filename clipart/Star-structure.pdf
37493 \begin_inset Flex Resizebox
37496 \begin_layout Plain Layout
37497 \begin_inset Argument 1
37500 \begin_layout Plain Layout
37507 \begin_inset Flex Reflectbox
37510 \begin_layout Plain Layout
37511 \begin_inset Tabular
37512 <lyxtabular version="3" rows="2" columns="2">
37513 <features tabularvalignment="middle">
37514 <column alignment="center" valignment="top">
37515 <column alignment="center" valignment="top">
37517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37520 \begin_layout Plain Layout
37526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37529 \begin_layout Plain Layout
37537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37540 \begin_layout Plain Layout
37546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37549 \begin_layout Plain Layout
37571 \begin_inset Flex Resizebox
37574 \begin_layout Plain Layout
37575 \begin_inset Argument 1
37578 \begin_layout Plain Layout
37585 \begin_inset Flex Reflectbox
37588 \begin_layout Plain Layout
37589 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37603 \begin_inset Index idx
37606 \begin_layout Plain Layout
37613 \begin_inset Index idx
37616 \begin_layout Plain Layout
37617 Table Customization ! Scaling
37625 \begin_layout Standard
37626 When the global formula style
37630 is used in the document
37634 \begin_layout Plain Layout
37636 \begin_inset Quotes eld
37640 \begin_inset Quotes erd
37643 is added to the document class options.
37648 , display style formulas can also be scaled.
37651 \begin_layout Chapter
37652 Objects Surrounded by Text
37653 \begin_inset Index idx
37656 \begin_layout Plain Layout
37665 \begin_layout Section
37667 \begin_inset CommandInset label
37669 name "sec:Wrap-Floats"
37674 \begin_inset Index idx
37677 \begin_layout Plain Layout
37678 Floats ! Wrap Floats
37684 \begin_inset Index idx
37687 \begin_layout Plain Layout
37688 Surrounded by text ! Wrap Floats
37696 \begin_layout Standard
37697 \begin_inset Wrap figure
37704 \begin_layout Plain Layout
37705 \begin_inset Graphics
37706 filename clipart/2D-intensity-plot.pdf
37708 scaleBeforeRotation
37709 rotateOrigin center
37716 \begin_layout Plain Layout
37717 \begin_inset Caption Standard
37719 \begin_layout Plain Layout
37720 \begin_inset CommandInset label
37722 name "fig:This-is-a"
37726 This is a figure wrap float.
37736 This float type is used if you want to wrap text around a figure or table
37737 so that it only occupies some fraction of the column width.
37738 It can be inserted using the menu
37740 Insert\SpecialChar menuseparator
37741 Floats\SpecialChar menuseparator
37743 \begin_inset space ~
37747 \begin_inset space ~
37755 \begin_inset space ~
37759 \begin_inset space ~
37764 if the \SpecialChar LaTeX
37770 \begin_inset Index idx
37773 \begin_layout Plain Layout
37775 -packages ! wrapfig
37784 \begin_layout Plain Layout
37785 Installing a \SpecialChar LaTeX
37786 -package is explained it in the
37790 \begin_inset space ~
37800 The settings of the float can be modified by right-clicking on the float
37802 The mandatory settings are the float
37815 that specifies how much the float is set into the paragraph
37816 \begin_inset space \thinspace{}
37820 \begin_inset space \thinspace{}
37823 page margin, and the
37826 \begin_inset space ~
37831 that specifies how many text lines the float will approximately need.
37832 The line span is often hard to approximate; so it is better only to use
37833 it when you encounter float placement problems.
37834 You can furthermore decide if \SpecialChar LaTeX
37835 is allowed to let the float float within
37836 the paragraph or to surrounding paragraphs.
37838 \begin_inset space ~
37842 \begin_inset CommandInset ref
37844 reference "fig:This-is-a"
37848 is an example text wrap float with a width of 40
37849 \begin_inset space \thinspace{}
37853 \begin_inset space \thinspace{}
37856 cm overhang, set to the left.
37859 \begin_layout Standard
37860 \begin_inset Note Greyedout
37863 \begin_layout Plain Layout
37869 \begin_inset space ~
37872 wrap float floats are fragile! E.
37873 \begin_inset space \thinspace{}
37877 \begin_inset space \space{}
37880 having a figure too close to the bottom of the page can mess things up in
37881 such a way that the float does not appear in the output or that it is placed
37882 over some other text.
37890 \begin_layout Standard
37891 In general, the following applies for wrap floats:
37894 \begin_layout Itemize
37895 They should not be placed in paragraphs that run over a page break.
37896 That means that wrap floats are better inserted in their exact place when
37897 the document is almost finished and you are able to estimate where page
37898 breaks will appear.
37901 \begin_layout Itemize
37902 They should either be placed in their own paragraph before the paragraph
37903 where they should wrap into or within a paragraph.
37906 \begin_layout Itemize
37907 In consecutive paragraphs they may cause troubles, so ensure that there
37908 is a text paragraph between them as separator.
37911 \begin_layout Itemize
37912 They are not allowed in section headings or tables.
37915 \begin_layout Itemize
37916 Their numbering and referencing works as described in chap.
37917 \begin_inset space \thinspace{}
37921 \begin_inset CommandInset ref
37923 reference "chap:Floats"
37930 \begin_layout Section
37931 Surrounded Fixed Objects
37932 \begin_inset Index idx
37935 \begin_layout Plain Layout
37936 Surrounded by text ! Fixed objects
37944 \begin_layout Standard
37945 The wrap floats described in sec.
37946 \begin_inset space \thinspace{}
37950 \begin_inset CommandInset ref
37952 reference "sec:Wrap-Floats"
37956 have these positions in the paragraph:
37959 \begin_layout Standard
37962 \begin_inset Tabular
37963 <lyxtabular version="3" rows="2" columns="2">
37964 <features tabularvalignment="middle">
37965 <column alignment="center" valignment="top">
37966 <column alignment="center" valignment="top">
37968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37971 \begin_layout Plain Layout
37974 arg "dialog-show-new-inset graphics"
37982 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37985 \begin_layout Plain Layout
37993 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37996 \begin_layout Plain Layout
38002 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38005 \begin_layout Plain Layout
38017 \begin_inset Tabular
38018 <lyxtabular version="3" rows="2" columns="2">
38019 <features tabularvalignment="middle">
38020 <column alignment="center" valignment="top">
38021 <column alignment="center" valignment="top">
38023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38026 \begin_layout Plain Layout
38032 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38035 \begin_layout Plain Layout
38038 arg "dialog-show-new-inset graphics"
38048 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38051 \begin_layout Plain Layout
38057 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38060 \begin_layout Plain Layout
38074 \begin_layout Standard
38075 To get an object exactly at the position where it is inserted, for example
38076 to get one of these positions:
38077 \begin_inset VSpace defskip
38083 \begin_layout Standard
38086 \begin_inset Tabular
38087 <lyxtabular version="3" rows="2" columns="2">
38088 <features tabularvalignment="middle">
38089 <column alignment="center" valignment="top">
38090 <column alignment="center" valignment="top">
38092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38095 \begin_layout Plain Layout
38101 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38104 \begin_layout Plain Layout
38112 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38115 \begin_layout Plain Layout
38118 arg "dialog-show-new-inset graphics"
38126 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38129 \begin_layout Plain Layout
38141 \begin_inset Tabular
38142 <lyxtabular version="3" rows="2" columns="2">
38143 <features tabularvalignment="middle">
38144 <column alignment="center" valignment="top">
38145 <column alignment="center" valignment="top">
38147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38150 \begin_layout Plain Layout
38156 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38159 \begin_layout Plain Layout
38167 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38170 \begin_layout Plain Layout
38176 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38179 \begin_layout Plain Layout
38182 arg "dialog-show-new-inset graphics"
38196 \begin_inset Tabular
38197 <lyxtabular version="3" rows="2" columns="3">
38198 <features tabularvalignment="middle">
38199 <column alignment="center" valignment="top">
38200 <column alignment="center" valignment="top">
38201 <column alignment="center" valignment="top">
38203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38206 \begin_layout Plain Layout
38212 <cell alignment="center" valignment="top" topline="true" usebox="none">
38215 \begin_layout Plain Layout
38218 arg "dialog-show-new-inset graphics"
38226 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38229 \begin_layout Plain Layout
38237 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38240 \begin_layout Plain Layout
38246 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38249 \begin_layout Plain Layout
38255 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38258 \begin_layout Plain Layout
38270 \begin_inset Tabular
38271 <lyxtabular version="3" rows="2" columns="3">
38272 <features tabularvalignment="middle">
38273 <column alignment="center" valignment="top">
38274 <column alignment="center" valignment="top">
38275 <column alignment="center" valignment="top">
38277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38280 \begin_layout Plain Layout
38286 <cell alignment="center" valignment="top" topline="true" usebox="none">
38289 \begin_layout Plain Layout
38295 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38298 \begin_layout Plain Layout
38306 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38309 \begin_layout Plain Layout
38315 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38318 \begin_layout Plain Layout
38321 arg "dialog-show-new-inset graphics"
38329 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38332 \begin_layout Plain Layout
38346 \begin_layout Standard
38349 \begin_inset Tabular
38350 <lyxtabular version="3" rows="3" columns="2">
38351 <features tabularvalignment="middle">
38352 <column alignment="center" valignment="top">
38353 <column alignment="center" valignment="top">
38355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38358 \begin_layout Plain Layout
38364 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38367 \begin_layout Plain Layout
38375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38378 \begin_layout Plain Layout
38381 arg "dialog-show-new-inset graphics"
38389 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38392 \begin_layout Plain Layout
38400 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38403 \begin_layout Plain Layout
38409 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38412 \begin_layout Plain Layout
38424 \begin_inset Tabular
38425 <lyxtabular version="3" rows="3" columns="3">
38426 <features tabularvalignment="middle">
38427 <column alignment="center" valignment="top">
38428 <column alignment="center" valignment="top">
38429 <column alignment="center" valignment="top">
38431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38434 \begin_layout Plain Layout
38440 <cell alignment="center" valignment="top" topline="true" usebox="none">
38443 \begin_layout Plain Layout
38449 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38452 \begin_layout Plain Layout
38460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38463 \begin_layout Plain Layout
38469 <cell alignment="center" valignment="top" usebox="none">
38472 \begin_layout Plain Layout
38475 arg "dialog-show-new-inset graphics"
38483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38486 \begin_layout Plain Layout
38494 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38497 \begin_layout Plain Layout
38503 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38506 \begin_layout Plain Layout
38512 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38515 \begin_layout Plain Layout
38527 \begin_inset Tabular
38528 <lyxtabular version="3" rows="3" columns="2">
38529 <features tabularvalignment="middle">
38530 <column alignment="center" valignment="top">
38531 <column alignment="center" valignment="top">
38533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38536 \begin_layout Plain Layout
38542 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38545 \begin_layout Plain Layout
38553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38556 \begin_layout Plain Layout
38562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38565 \begin_layout Plain Layout
38568 arg "dialog-show-new-inset graphics"
38578 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38581 \begin_layout Plain Layout
38587 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38590 \begin_layout Plain Layout
38604 \begin_layout Standard
38606 you can use the \SpecialChar LaTeX
38612 \begin_inset Index idx
38615 \begin_layout Plain Layout
38617 -packages ! picinpar
38623 Here is an example:
38626 \begin_layout Standard
38630 \begin_layout Plain Layout
38640 \begin_inset Note Note
38643 \begin_layout Plain Layout
38644 The following section will only be displayed when the \SpecialChar LaTeX
38657 \begin_layout Standard
38661 \begin_layout Plain Layout
38665 begin{window}[2,c,{
38671 \begin_inset Graphics
38672 filename clipart/2D-intensity-plot.pdf
38675 scaleBeforeRotation
38676 rotateOrigin center
38684 \begin_layout Plain Layout
38689 \begin_layout Plain Layout
38698 It was in the spring of the year 1894 that all London was interested, and
38699 the fashionable world dismayed, by the murder of the Honourable Ronald
38700 Adair under most unusual and inexplicable circumstances.
38701 The public has already learned those particulars of the crime which
38707 \begin_layout Plain Layout
38718 came out in the police investigation, but a good deal was suppressed upon
38719 that occasion, since the case for the prosecution was so overwhelmingly
38720 strong that it was not necessary to bring forward all the facts.
38721 Only now, at the end of nearly ten years, am I allowed to supply those
38722 missing links which make up the whole of that remarkable chain.
38728 \begin_layout Plain Layout
38740 \begin_layout Standard
38744 \begin_layout Plain Layout
38753 Footnote of the paragraph with the fixed object.
38757 \begin_layout Plain Layout
38767 \begin_layout Standard
38768 Surrounded fixed objects are used to let text float around them, at which
38769 the object's position in the paragraph can be determined by the number
38771 In contrary to floats is it not possible to have a numbered caption.
38774 \begin_layout Standard
38775 A fixed object is inserted by adding the command
38778 \begin_layout Standard
38783 begin{window}[2,c,{
38786 \begin_layout Standard
38787 as \SpecialChar TeX
38788 Code at the beginning of the paragraph.
38789 The first parameter in the bracket, here '2', defines the number of lines
38790 above the object, the second, here 'c', the position of the object.
38791 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38792 Behind the command you insert the object.
38793 In this example an image with a width of 40
38794 \begin_inset space \thinspace{}
38797 % of the text column width was inserted.
38798 The object can also be a table, a box or an equation.
38799 Behind the object the command
38802 \begin_layout Standard
38805 },description text]
38806 \begin_inset Newline newline
38812 \begin_layout Standard
38815 \begin_inset Quotes eld
38823 \begin_inset Quotes erd
38826 is in the second line.
38827 The description text is optional.
38828 The text surrounding the object must be in the same paragraph as the object,
38829 so it must begin directly after the
38834 At the end of the paragraph insert the command:
38837 \begin_layout Standard
38845 \begin_layout Standard
38846 Within a paragraph with a fixed object, you cannot insert footnotes in the
38848 You have to use instead the command
38854 inside the paragraph and outside the command
38860 as described in sec.
38861 \begin_inset space \thinspace{}
38865 \begin_inset CommandInset ref
38867 reference "sec:Footnotes"
38874 \begin_layout Standard
38878 \begin_layout Plain Layout
38888 \begin_inset Note Note
38891 \begin_layout Plain Layout
38892 The following will be displayed when the \SpecialChar LaTeX
38905 \begin_layout Standard
38906 You need to install the \SpecialChar LaTeX
38911 to see the following part of this section in the output.
38914 \begin_layout Standard
38918 \begin_layout Plain Layout
38930 \begin_layout Section
38932 \begin_inset Index idx
38935 \begin_layout Plain Layout
38942 \begin_inset Index idx
38945 \begin_layout Plain Layout
38946 Surrounded by text ! Initials
38954 \begin_layout Standard
38955 To use initials, you must have the \SpecialChar LaTeX
38961 \begin_inset Index idx
38964 \begin_layout Plain Layout
38966 -packages ! lettrine
38971 installed and use the module
38975 in your document (menu
38977 Document\SpecialChar menuseparator
38978 Settings\SpecialChar menuseparator
38982 To insert an initial, use the style
38987 This style has a mandatory and two optional arguments.
38988 The arguments are inserted via the
38993 The mandatory argument
38997 contains the letter(s) that is the initial, the argument
39000 \begin_inset space ~
39004 \begin_inset space ~
39009 contains the rest of the word or text of the initial letter(s).
39014 contains parameters to modify the initial.
39015 For more information about the possible parameters see the documentation
39021 \begin_inset CommandInset citation
39029 The style itself contains the text that is surrounding the initial.
39030 The usual style is hereby that the word whose first letter is the initial,
39038 \begin_layout Standard
39039 Here are some examples:
39042 \begin_layout Standard
39046 \begin_layout Plain Layout
39056 \begin_inset Note Note
39059 \begin_layout Plain Layout
39060 The following section will only be displayed when the \SpecialChar LaTeX
39073 \begin_layout Enumerate
39074 No optional argument, the initial is the letter 'I' in the math font
39075 \begin_inset Formula $\mathfrak{Fraktur}$
39082 \begin_layout Initial
39083 \begin_inset Argument 2
39086 \begin_layout Plain Layout
39087 \begin_inset Formula $\mathfrak{I}$
39096 \begin_inset Argument 3
39099 \begin_layout Plain Layout
39105 was in the spring of the year 1894 that all London was interested, and
39106 the fashionable world dismayed, by the murder of the Honourable Ronald
39107 Adair under most unusual and inexplicable circumstances.
39108 The public has already learned those particulars of the crime which came
39109 out in the police investigation, but a good deal was suppressed upon that
39110 occasion, since the case for the prosecution was so overwhelmingly strong
39111 that it was not necessary to bring forward all the facts.
39112 \begin_inset Newpage newpage
39119 \begin_layout Enumerate
39120 Only one line is surrounding the initial, which is formed by two letters
39121 in standard font and no text is printed in small caps:
39125 \begin_layout Initial
39126 \begin_inset Argument 1
39129 \begin_layout Plain Layout
39136 \begin_inset Argument 2
39139 \begin_layout Plain Layout
39145 was in the spring of the year 1894 that all London was interested, and
39146 the fashionable world dismayed, by the murder of the Honourable Ronald
39147 Adair under most unusual and inexplicable circumstances.
39148 The public has already learned those particulars of the crime which came
39149 out in the police investigation, but a good deal was suppressed upon that
39150 occasion, since the case for the prosecution was so overwhelmingly strong
39151 that it was not necessary to bring forward all the facts.
39155 \begin_layout Enumerate
39156 Magenta, hanging initial over 3
39157 \begin_inset space ~
39160 lines in the math font
39161 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39165 \begin_inset Quotes eld
39168 t was in the spring
39169 \begin_inset Quotes erd
39176 ; to color the initial, you must insert this command before the initial:
39177 \begin_inset Newline newline
39191 \begin_inset Newline newline
39199 \begin_inset Quotes eld
39203 \begin_inset Quotes erd
39207 \begin_inset Quotes eld
39211 \begin_inset Quotes erd
39215 \begin_inset Quotes eld
39219 \begin_inset Quotes erd
39223 \begin_inset Quotes eld
39227 \begin_inset Quotes erd
39231 \begin_inset Quotes eld
39235 \begin_inset Quotes erd
39239 \begin_inset Quotes eld
39243 \begin_inset Quotes erd
39247 \begin_inset Quotes eld
39251 \begin_inset Quotes erd
39255 \begin_inset Quotes eld
39259 \begin_inset Quotes erd
39262 , and add this command to the document preamble:
39263 \begin_inset Newline newline
39270 @ifundefined{textcolor}
39271 \begin_inset Newline newline
39275 \begin_inset space ~
39280 usepackage{color}}{}
39284 \begin_layout Standard
39288 \begin_layout Plain Layout
39302 \begin_inset Note Note
39305 \begin_layout Plain Layout
39306 makes the initial magenta
39314 \begin_layout Initial
39315 \begin_inset Argument 1
39318 \begin_layout Plain Layout
39319 lines=3, lhang=0.33, loversize=0.25
39325 \begin_inset Argument 2
39328 \begin_layout Plain Layout
39329 \begin_inset Formula $\mathcal{I}$
39338 \begin_inset Argument 3
39341 \begin_layout Plain Layout
39342 t was in the spring
39347 of the year 1894 that all London was interested, and the fashionable world
39348 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39349 and inexplicable circumstances.
39350 The public has already learned those particulars of the crime which came
39351 out in the police investigation, but a good deal was suppressed upon that
39352 occasion, since the case for the prosecution was so overwhelmingly strong
39353 that it was not necessary to bring forward all the facts.
39357 \begin_layout Standard
39361 \begin_layout Plain Layout
39371 \begin_inset Note Note
39374 \begin_layout Plain Layout
39375 The following will be displayed when the \SpecialChar LaTeX
39388 \begin_layout Standard
39389 You need to install the \SpecialChar LaTeX
39394 to see the following part of this section in the output.
39397 \begin_layout Standard
39401 \begin_layout Plain Layout
39413 \begin_layout Chapter
39414 External Document Parts
39415 \begin_inset Index idx
39418 \begin_layout Plain Layout
39419 External Document Parts
39427 \begin_layout Standard
39430 Insert\SpecialChar menuseparator
39433 you can insert external material into your document.
39437 \begin_layout Description
39439 \begin_inset space ~
39442 Document Another \SpecialChar LyX
39443 document; its content is directly inserted to your document.
39446 \begin_layout Description
39448 \begin_inset space ~
39451 Text A text document; each line is inserted in your document as a separate
39455 \begin_layout Description
39457 \begin_inset space ~
39461 \begin_inset space ~
39465 \begin_inset space ~
39468 Lines A text document; text lines are inserted in your document continuously
39469 but an empty text line creates a new paragraph.
39472 \begin_layout Description
39474 \begin_inset space ~
39477 Material Files in various formats.
39480 \begin_layout Description
39482 \begin_inset space ~
39485 Document \SpecialChar LyX
39486 or \SpecialChar LaTeX
39490 \begin_layout Section
39492 \begin_inset Index idx
39495 \begin_layout Plain Layout
39496 External Document Parts ! External Material
39504 \begin_layout Standard
39505 The external material feature allows you to insert files into your document
39506 without converting them to a format that can be read by the document output
39509 takes care of the necessary conversions.
39510 This is similar to images that can be inserted in various image formats
39511 in \SpecialChar LyX
39513 When you have enabled Instant Preview in \SpecialChar LyX
39514 's preferences under
39517 \begin_inset space ~
39521 \begin_inset space ~
39524 feel\SpecialChar menuseparator
39527 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39531 \begin_layout Standard
39532 External material can be inserted via the
39536 dialog that is accessible with the menu
39538 Insert\SpecialChar menuseparator
39539 File\SpecialChar menuseparator
39541 \begin_inset space ~
39547 Currently the following file types (
39554 \begin_layout Description
39556 \begin_inset space ~
39559 diagram This template supports chess position diagrams made with the program
39563 \begin_inset CommandInset href
39566 target "https://en.wikipedia.org/wiki/XBoard"
39576 \begin_layout Description
39578 \begin_inset space ~
39581 diagram This template supports diagrams created with the program
39584 \begin_inset CommandInset href
39587 target "https://en.wikipedia.org/wiki/Dia_(software)"
39597 \begin_layout Description
39599 \begin_inset space ~
39602 figure This template supports specific scalable images derived from scalable
39603 vector graphics (SVG), in which the contained text is replaced by a version
39604 typeset by \SpecialChar LaTeX
39605 (and hence in the current document font).
39606 It relies on a feature of the program
39609 \begin_inset CommandInset href
39612 target "https://inkscape.org/"
39619 which creates a special PDF or EPS and \SpecialChar LaTeX
39620 file from a given SVG file (in
39625 itself, the feature is available via the option
39627 Omit text in PDF and create LaTeX file
39629 when saving a drawing as PDF or EPS).
39630 The benefit of such files is a uniform text style throughout the whole
39632 \begin_inset Newline newline
39635 The external template reads SVG files and uses a converter program to generate
39636 the respective PDF\SpecialChar breakableslash
39637 EPS and \SpecialChar LaTeX
39646 on the fly, so you don't have to export those files yourself.
39647 If you prefer the latter and want use given
39663 files instead, simply input the respective
39676 \begin_inset space ~
39680 \begin_inset CommandInset ref
39682 reference "sec:Child-Documents"
39686 ) rather than using this template.
39687 \begin_inset Newline newline
39690 You can use \SpecialChar TeX
39691 code commands such as
39704 \begin_inset space \space{}
39707 in the text of the SVG.
39708 The size of the font will be taken from the settings of the \SpecialChar LyX
39711 \begin_inset CommandInset citation
39718 for more information and examples.
39721 \begin_layout Description
39723 \begin_inset space ~
39727 \begin_inset space ~
39730 music This template is used for music notation typeset with the program
39731 \begin_inset Newline linebreak
39737 \begin_inset CommandInset href
39740 target "https://en.wikipedia.org/wiki/LilyPond"
39748 For \SpecialChar LyX
39749 's extended support for LilyPond have a look at \SpecialChar LyX
39757 \begin_layout Description
39759 \begin_inset space ~
39762 pages With this template you can insert PDF documents to your document.
39763 To specify the range of pages that should be included, use the option
39773 LaTeX and LyX options
39776 The argument of this option is a comma separated list, containing page
39777 numbers (insert as option
39781 ), ranges of page numbers (
39785 ) or any combination.
39786 To insert empty pages use {}.
39788 \begin_inset space \thinspace{}
39792 \begin_inset space ~
39797 pages={3,{},8-11,15}
39799 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39800 Page ranges are specified in the syntax
39809 This selects all pages from
39822 defaults to the first page; omitting
39826 defaults to the last page of the document.
39827 The last page can also be selected with the keyword
39832 (This is only permitted in a page range.) So
39836 will insert all pages of the document and
39840 will insert all pages in reverse order.
39841 If the pages option is not specified, only the first page of the PDF is
39843 \begin_inset Newline newline
39850 inserts the pages with their original size, if this option is not given,
39851 the pages will be resized to fith the width of the page of your document.
39856 you can specify the width and height of the input pages and their rotation.
39857 If another width than 100
39858 \begin_inset space \thinspace{}
39861 Scale% is used, the option
39865 will be overwritten.
39866 For more info and possible options, have a look into the documentation
39867 of the \SpecialChar LaTeX
39873 \begin_inset CommandInset citation
39881 \begin_inset Index idx
39884 \begin_layout Plain Layout
39886 -packages ! pdfpages
39892 \begin_inset Newline newline
39895 To use this template in a
39899 presentation you need to first insert an
39903 environment and in a subsequent paragraph a \SpecialChar TeX
39904 Code box containing the command
39909 setbeamertemplate{background canvas}{}
39912 Then you can insert as many paragraphs containing the PDFPages template
39914 Behind the included PDF pages you can resume the Beamer presentation by
39915 beginning a new frame or by starting a new section.
39916 To avoid stray blank pages prior to the PDF pages, make sure to use the
39921 alignment for the paragraph containing the template.
39922 \begin_inset Newline newline
39925 Here is an included PDF which is rotated by -5°:
39926 \begin_inset External
39928 filename clipart/Abstract.pdf
39929 extra LaTeX "noautoscale, pages=-"
39931 rotateOrigin bottomleft
39938 \begin_layout Description
39940 \begin_inset space ~
39943 image This can be used for bitmap images.
39944 The image can be treated in the
39948 dialog like the images that are usually included via the
39952 dialog as described in section
39953 \begin_inset space ~
39957 \begin_inset CommandInset ref
39959 reference "sec:Graphics-Dialog"
39964 Here is an inserted raster image:
39965 \begin_inset External
39966 template RasterImage
39967 filename clipart/ToolbarEnvBox.png
39974 \begin_layout Description
39975 Spreadsheet With this template you can insert spreadsheets
39976 \begin_inset space \thinspace{}
39980 \begin_inset space \thinspace{}
39983 tables in the format of
39986 \begin_inset CommandInset href
39989 target "https://en.wikipedia.org/wiki/Gnumeric"
39997 \begin_inset CommandInset href
39999 name "OpenDocument"
40000 target "https://en.wikipedia.org/wiki/OpenDocument"
40006 \begin_inset CommandInset href
40008 name "Microsoft Office XML"
40009 target "https://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
40015 \begin_inset CommandInset href
40017 name "Office Open XML"
40018 target "https://en.wikipedia.org/wiki/Office_Open_XML"
40024 For this feature \SpecialChar LyX
40025 must have found the program
40029 during its configuration.
40030 This program is part of Gnumeric, so that you must have Gnumeric installed,
40031 also if you don't have tables in the Gnumeric format.
40032 For examples and possible limitations have a look at \SpecialChar LyX
40040 \begin_layout Description
40042 \begin_inset space ~
40045 graphics This can be used for vector graphics.
40046 The image can be treated in the
40050 dialog like the images that are usually included via the
40054 dialog as described in section
40055 \begin_inset space ~
40059 \begin_inset CommandInset ref
40061 reference "sec:Graphics-Dialog"
40066 Here is an inserted vector graphics:
40067 \begin_inset External
40068 template VectorGraphics
40069 filename clipart/SVG-Drawing.svg
40078 \begin_layout Description
40080 \begin_inset space ~
40083 figure This template supports images created with the program
40084 \begin_inset CommandInset href
40087 target "https://en.wikipedia.org/wiki/Xfig"
40095 \begin_layout Standard
40096 When you use the option
40108 dialog, only the path to the inserted file is shown in the output.
40109 \begin_inset Newline newline
40112 External material is displayed in \SpecialChar LyX
40113 either as a box like this:
40114 \begin_inset Graphics
40115 filename clipart/ExternalMaterial.png
40117 scaleBeforeRotation
40121 or as image, depending on the option
40127 LaTeX and LyX options
40132 \begin_layout Standard
40139 manual explains how you can define your own templates.
40142 \begin_layout Section
40144 \begin_inset CommandInset label
40146 name "sec:Child-Documents"
40151 \begin_inset Index idx
40154 \begin_layout Plain Layout
40155 External Document Parts ! Child Documents
40161 \begin_inset Index idx
40164 \begin_layout Plain Layout
40173 \begin_layout Standard
40174 Child documents are used if you have a long document consisting of several
40175 larger parts or sections.
40176 For maintenance it is often useful and sometimes even required to split
40177 the document into several files that can be revised separately.
40178 The different documents are then the so called
40179 \begin_inset Quotes eld
40183 \begin_inset Quotes erd
40186 , and a master document connects them to print the full document or parts
40188 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40190 the bibliography, and labels for cross-references.
40193 \begin_layout Standard
40194 To be able to work on child documents without the need to open their master,
40195 specify in the child document the master in the menu
40197 Document\SpecialChar menuseparator
40198 Settings\SpecialChar menuseparator
40200 \begin_inset space ~
40206 This master document will then be used in the background by \SpecialChar LyX
40208 the child document.
40211 \begin_layout Standard
40212 Included documents are displayed in \SpecialChar LyX
40213 as a box like this:
40214 \begin_inset Graphics
40215 filename clipart/ChildDocument.png
40217 scaleBeforeRotation
40221 To include child documents in a master document use the menu
40223 Insert\SpecialChar menuseparator
40224 File\SpecialChar menuseparator
40226 \begin_inset space ~
40232 A dialog pops up where you can choose between four include methods:
40235 \begin_layout Description
40236 Include You can include \SpecialChar LyX
40237 and \SpecialChar LaTeX
40247 dialog, the included document will be opened in \SpecialChar LyX
40248 in a new file tab so that
40250 \begin_inset Newline newline
40256 \begin_layout Standard
40257 Here is a child document inserted using
40262 \begin_inset CommandInset include
40263 LatexCommand include
40264 filename "DummyDocument1.lyx"
40271 \begin_layout Standard
40272 The section numbering includes the sections of the included files in the
40273 order they are inserted in the master document.
40274 The included example document has for example a subsection that is numbered
40275 as a subsection of this section.
40276 Labels of included documents can be referenced: Subsection
40277 \begin_inset space ~
40281 \begin_inset CommandInset ref
40283 reference "subsec:External-Subsection-1"
40290 \begin_layout Standard
40291 The preamble of the child document is ignored; only the preamble of the
40292 master document is used.
40293 Branches in child documents will be ignored by the master document when
40294 the master document does not have a branch with the same name.
40295 Included documents are inserted starting on a new page and ending with
40299 \begin_layout Standard
40300 \begin_inset Note Greyedout
40303 \begin_layout Plain Layout
40308 If you have included a \SpecialChar LyX
40309 or \SpecialChar LaTeX
40310 file, you are warned when you export/view the
40311 document in case the child document uses another document class than the
40312 master document as this will lead to unexpected outputs.
40320 \begin_layout Description
40321 Input This method is very similar to the Include method.
40322 The differences are:
40326 \begin_layout Itemize
40327 Input files don't start with a new page and don't end with a page break.
40330 \begin_layout Itemize
40331 Input files can be previewed in \SpecialChar LyX
40335 \begin_inset space ~
40340 is enabled in \SpecialChar LyX
40341 's preferences under
40344 \begin_inset space ~
40348 \begin_inset space ~
40351 feel\SpecialChar menuseparator
40357 \begin_layout Itemize
40358 You cannot exclude Input files via the menu
40360 Document\SpecialChar menuseparator
40361 Settings\SpecialChar menuseparator
40368 \begin_layout Standard
40369 Here is a child document inserted using
40374 \begin_inset CommandInset include
40376 filename "DummyDocument2.lyx"
40383 \begin_layout Description
40384 Verbatim With this method any text file can be included.
40385 The file is shown in the output with its source code; no command used in
40386 the text is invoked.
40387 You can use the option
40389 Mark spaces in output
40391 that displays the character
40392 \begin_inset Quotes eld
40399 \begin_layout Plain Layout
40409 \begin_inset Quotes erd
40412 for every space character in the source code.
40413 The difference from the method via the menu
40415 Insert\SpecialChar menuseparator
40416 File\SpecialChar menuseparator
40418 \begin_inset space ~
40423 is that the document content is not shown in \SpecialChar LyX
40427 \begin_layout Standard
40428 Here is a child document inserted as Verbatim:
40429 \begin_inset CommandInset include
40430 LatexCommand verbatiminput
40431 filename "DummyTextDocument.txt"
40436 \begin_inset VSpace bigskip
40439 Here is a child document inserted as Verbatim using the
40441 Mark spaces in output
40444 \begin_inset CommandInset include
40445 LatexCommand verbatiminput*
40446 filename "DummyTextDocument.txt"
40453 \begin_layout Standard
40454 \begin_inset VSpace bigskip
40460 \begin_layout Standard
40461 \begin_inset Note Greyedout
40464 \begin_layout Plain Layout
40469 As you can see in the examples above, the text of the documents included
40474 is not broken at the end of the document lines.
40482 \begin_layout Description
40483 Listings This type is described in chapter
40484 \begin_inset space ~
40488 \begin_inset CommandInset ref
40490 reference "cha:Program-Code-Listings"
40497 \begin_layout Standard
40498 \begin_inset Note Greyedout
40501 \begin_layout Plain Layout
40506 Including the same document twice in a document using different methods
40507 could cause \SpecialChar LaTeX
40516 \begin_layout Standard
40517 If you want to view/export only selected children of your master document,
40518 either because you want to save compiling time or because you want to distribut
40519 e single chapters of the book you are just writing, you can exclude children
40521 This is done via the menu
40523 Document\SpecialChar menuseparator
40524 Settings\SpecialChar menuseparator
40528 You can exclude\SpecialChar breakableslash
40529 include children by double-clicking on the
40533 column of the respective child document in the list (note that this only
40534 works for documents embedded via
40535 \begin_inset Quotes eld
40539 \begin_inset Quotes erd
40543 \begin_inset Quotes eld
40547 \begin_inset Quotes erd
40553 Maintain counters and references
40555 is enabled, \SpecialChar LyX
40556 will assure that all page numbers, references etc.
40557 \begin_inset space ~
40560 are correct as if the whole document was processed.
40561 This is useful if you want the selected sub-documents to look exactly as
40562 in the context of the whole document.
40563 However, \SpecialChar LyX
40564 needs to process the whole document in the background for this
40566 So if you want to save compile time and if counters and references do not
40567 need to be correct, disable this checkbox.
40570 \begin_layout Standard
40571 Alternatively, you can put each included file into a branch.
40575 \begin_layout Plain Layout
40576 Branches are described in section
40580 of the \SpecialChar LyX
40590 By enabling\SpecialChar breakableslash
40591 disabling branches you can decide which included files will
40592 appear in the output.
40593 This has the advantage that it also works with Input'ed sub-documents.
40594 However, counters and references will not be maintained with this approach.
40597 \begin_layout Chapter
40598 Program Code Listings
40599 \begin_inset CommandInset label
40601 name "cha:Program-Code-Listings"
40606 \begin_inset Index idx
40609 \begin_layout Plain Layout
40616 \begin_inset Index idx
40619 \begin_layout Plain Layout
40626 \begin_inset Index idx
40629 \begin_layout Plain Layout
40638 \begin_layout Standard
40639 To include and typeset program code you can use the
40643 inset that can be inserted via the menu
40645 Insert\SpecialChar menuseparator
40649 The \SpecialChar LaTeX
40655 \begin_inset Index idx
40658 \begin_layout Plain Layout
40660 -packages ! listings
40670 \begin_inset Index idx
40673 \begin_layout Plain Layout
40680 provide a powerful and flexible way to insert program source code into
40682 One can only use one of these packages in a document.
40687 is used by default.
40690 \begin_layout Standard
40691 \begin_inset Note Note
40694 \begin_layout Plain Layout
40700 does NOT want to encourage users to add the
40704 option to converter definitions.
40705 It works, but it is a huge security risk.
40706 There is an active discussion about how to handle this.
40707 Once that's been resolved, this can be updated appropriately.
40710 \begin_layout Plain Layout
40714 \begin_layout Plain Layout
40719 , you need to select it as the syntax highlighting package in the document
40729 requires also additionally the module
40741 \begin_layout Plain Layout
40742 Under \SpecialChar LyX
40747 is already installed.
40756 for the \SpecialChar LaTeX
40758 If you want for example view or export your document as the format
40761 \begin_inset space ~
40766 , go to the \SpecialChar LyX
40767 preferences and there to the section
40770 \begin_inset space ~
40773 Handling\SpecialChar menuseparator
40777 There go to the entry
40780 \begin_inset space ~
40784 \begin_inset space ~
40789 and look at the field
40794 There you see by default the content
40795 \begin_inset Newline newline
40803 \begin_inset Newline newline
40807 \begin_inset Newline newline
40812 pdflatex $$i -shell-escape
40813 \begin_inset Newline newline
40822 button and subsequently
40831 The same can be done for the output formats
40834 \begin_inset space ~
40842 \begin_inset space ~
40855 \begin_layout Standard
40856 Right-clicking on a listings inset opens the context menu containing where
40857 you can set the listings format.
40860 \begin_layout Standard
40861 By default, a listing starts a new paragraph in the output.
40862 The placement option
40865 \begin_inset space ~
40870 prints the listing inline like this:
40871 \begin_inset listings
40872 lstparams "language={C++}"
40876 \begin_layout Plain Layout
40884 \begin_inset Newline newline
40891 creates a listings float where you can specify the placement options
40892 \begin_inset Quotes eld
40900 \begin_inset Quotes erd
40904 \begin_inset Quotes eld
40912 \begin_inset Quotes erd
40916 \begin_inset Quotes eld
40924 \begin_inset Quotes erd
40928 \begin_inset Quotes eld
40936 \begin_inset Quotes erd
40939 corresponding to the float placement options described in section
40940 \begin_inset space ~
40944 \begin_inset CommandInset ref
40946 reference "sec:Float-Placement"
40951 The placement options can be mixed and are inserted without any separation,
40953 \begin_inset space \thinspace{}
40957 \begin_inset space \space{}
40961 \begin_inset Quotes eld
40969 \begin_inset Quotes erd
40974 \begin_inset Quotes eld
40978 \begin_inset Quotes erd
40981 has sometimes no effect, but you don't need to use the
40985 option in this case as also non-float listings can have captions and be
40989 \begin_layout Standard
40990 You can add captions to listings that are not inline with the menu
40992 Insert\SpecialChar menuseparator
40996 Listings can be referenced like floats: Listing
40997 \begin_inset space ~
41001 \begin_inset CommandInset ref
41003 reference "lst:Example-Listing"
41008 A list of listings which contains all listings with captions can be created
41011 Insert\SpecialChar menuseparator
41013 \begin_inset space ~
41017 \begin_inset space ~
41020 TOC\SpecialChar menuseparator
41024 The list entries are the listing caption and the listing number.
41027 \begin_layout Standard
41028 \begin_inset listings
41029 lstparams "language=Python"
41033 \begin_layout Plain Layout
41035 \begin_inset Caption Standard
41037 \begin_layout Plain Layout
41038 \begin_inset CommandInset label
41040 name "lst:Example-Listing"
41044 Example Listing float
41049 # Example listing float
41052 \begin_layout Plain Layout
41057 \begin_layout Plain Layout
41059 'this is a python function'
41062 \begin_layout Plain Layout
41072 \begin_layout Standard
41073 \begin_inset Note Greyedout
41076 \begin_layout Plain Layout
41085 package places captions before the listing by default.
41086 \begin_inset Newline newline
41093 package places them after the listing by default if it is floating.
41094 If it is not floating, caption will be typeset before the listing if it
41095 is inserted to its first line, otherwise it will be typeset after the listing.
41096 If you want to force the placement in every case before the listing, you
41097 have to add the following lines as last thing to the preamble:
41098 \begin_inset Newline newline
41105 @ifundefined{newfloat}
41106 \begin_inset Newline newline
41110 \begin_inset Phantom HPhantom
41113 \begin_layout Plain Layout
41116 \begin_inset space ~
41126 usepackage{float}}{}
41127 \begin_inset Newline newline
41132 floatstyle{plaintop}
41135 \begin_inset Note Note
41138 \begin_layout Plain Layout
41143 will be loaded automatically by \SpecialChar LyX
41144 when you use special document-wide float
41145 placement settings.
41146 To avoid that it is loaded twice the command
41152 is used in the above command.
41165 \begin_layout Standard
41166 When you have set a programming language in the listings dialog, the keywords
41167 of this language will be recognized and specially typeset in the output.
41168 In the example listings the Python keyword
41169 \begin_inset Quotes eld
41173 \begin_inset Quotes erd
41176 is recognized and printed bold in the output.
41179 \begin_layout Standard
41180 \begin_inset Note Greyedout
41183 \begin_layout Plain Layout
41188 If you don't get bold keywords when using typewriter fonts, your
41192 font probably doesn't provide a bold shape.
41193 In this case select a different one in the menu
41195 Document\SpecialChar menuseparator
41196 Settings\SpecialChar menuseparator
41208 provide bold shapes.)
41216 \begin_layout Standard
41220 \begin_inset space ~
41225 of the listings dialog you can specify the line numbering style.
41226 You can insert a number to specify which lines are numbered in the field
41233 \begin_inset space \thinspace{}
41237 \begin_inset space \space{}
41241 \begin_inset Quotes eld
41245 \begin_inset Quotes erd
41248 , only every 3rd line will be numbered.
41251 \begin_layout Standard
41252 You can furthermore specify a range of lines; only these will then appear
41256 Extended character table
41258 is only meaningful for the
41262 package and should be used when you use national characters like the German
41263 umlauts in the listing.
41264 \begin_inset Newline newline
41267 Here is an example listing with left line numbering, step
41268 \begin_inset Quotes eld
41272 \begin_inset Quotes erd
41276 \begin_inset Quotes eld
41280 \begin_inset Quotes erd
41284 \begin_inset Quotes eld
41287 Extended character table
41288 \begin_inset Quotes erd
41292 \begin_inset Quotes eld
41296 \begin_inset space ~
41300 \begin_inset space ~
41304 \begin_inset Quotes erd
41308 \begin_inset space \thinspace{}
41312 \begin_inset space \thinspace{}
41318 \begin_layout Standard
41319 \begin_inset listings
41320 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41324 \begin_layout Plain Layout
41329 \begin_layout Plain Layout
41331 'this is a python function'
41334 \begin_layout Plain Layout
41339 \begin_layout Plain Layout
41344 \begin_layout Plain Layout
41346 'This is a German word: Tschüß'
41349 \begin_layout Plain Layout
41354 \begin_layout Plain Layout
41359 \begin_layout Plain Layout
41361 'this is a python function'
41364 \begin_layout Plain Layout
41374 \begin_layout Standard
41375 When you have tabulators in your listing, you can specify the number of
41376 characters that are spanned by a tabulator in the field
41379 \begin_inset space ~
41387 \begin_layout Standard
41388 \begin_inset Note Greyedout
41391 \begin_layout Plain Layout
41396 Due to a bug in the
41400 package the line numbering is shifted by a line by every previous listing.
41401 That's the reason why the lines 2 and 5 are numbered in the above listing
41402 and not the lines 3 and 6.
41410 \begin_layout Standard
41411 \begin_inset VSpace bigskip
41417 \begin_layout Standard
41418 It is also possible to print lines from a file as listing.
41419 To do this, use the menu
41421 Insert\SpecialChar menuseparator
41422 File\SpecialChar menuseparator
41425 and choose the type
41433 \begin_layout Plain Layout
41434 The other child document types are described in section
41435 \begin_inset space ~
41439 \begin_inset CommandInset ref
41441 reference "sec:Child-Documents"
41450 In the child document dialog you can specify the listing parameters in
41452 To show a list of all available parameters, type in a question mark
41453 \begin_inset Quotes eld
41457 \begin_inset Quotes erd
41463 \begin_layout Standard
41464 To reference child document listings, write a label text into the corresponding
41465 field of the child document dialog.
41466 The label can then be referenced using the menu
41468 Insert\SpecialChar menuseparator
41474 \begin_layout Standard
41476 \begin_inset space ~
41480 \begin_inset CommandInset ref
41482 reference "lst:file-listing"
41486 is an example for a listing of a file; there the lines 10
41487 \begin_inset space \thinspace{}
41491 \begin_inset space \thinspace{}
41494 15 of this \SpecialChar LyX
41498 \begin_layout Standard
41499 \begin_inset CommandInset include
41500 LatexCommand lstinputlisting
41501 filename "EmbeddedObjects.lyx"
41502 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41509 \begin_layout Standard
41510 \begin_inset VSpace bigskip
41516 \begin_layout Standard
41517 Inserting a formula into a listing can be done the following way:
41520 \begin_layout Enumerate
41521 Open the listings dialog and add
41522 \begin_inset Newline newline
41530 \begin_inset Newline newline
41533 to the field of the
41540 \begin_layout Enumerate
41541 Create a formula outside the listing
41544 \begin_layout Enumerate
41545 Copy the content of the formula (not the formula inset) to the clipboard
41555 \begin_layout Enumerate
41556 In the listing write
41557 \begin_inset Quotes eld
41565 \begin_inset Quotes erd
41568 and copy from the clipboard between the dollar-signs (shortcut
41577 \begin_layout Standard
41578 \begin_inset listings
41579 lstparams "language=Python,mathescape=true"
41583 \begin_layout Plain Layout
41585 \begin_inset Caption Standard
41587 \begin_layout Plain Layout
41588 Example Listing float containing a formula
41593 # Example listing float
41596 \begin_layout Plain Layout
41601 \begin_layout Plain Layout
41614 \begin_layout Plain Layout
41624 \begin_layout Standard
41625 \begin_inset VSpace bigskip
41631 \begin_layout Standard
41632 Global listings settings can be set in the
41634 Document\SpecialChar menuseparator
41635 Settings\SpecialChar menuseparator
41639 To get there a list of available options, type in a question mark
41640 \begin_inset Quotes eld
41644 \begin_inset Quotes erd
41650 \begin_layout Standard
41651 For more information about the
41659 packages, we refer to their documentation
41660 \begin_inset CommandInset citation
41662 key "listings,minted"
41670 \begin_layout Standard
41671 \begin_inset Newpage newpage
41677 \begin_layout Chapter
41679 Units available in \SpecialChar LyX
41681 \begin_inset Index idx
41684 \begin_layout Plain Layout
41691 \begin_inset CommandInset label
41693 name "cha:Units-available-in"
41700 \begin_layout Standard
41701 To understand the units described in this documentation, Table
41702 \begin_inset space ~
41706 \begin_inset CommandInset ref
41708 reference "tab:Units"
41712 explains all units available in \SpecialChar LyX
41716 \begin_layout Standard
41717 \begin_inset Float table
41723 \begin_layout Plain Layout
41724 \begin_inset Caption Standard
41726 \begin_layout Plain Layout
41727 \begin_inset CommandInset label
41741 \begin_layout Plain Layout
41742 \begin_inset VSpace medskip
41748 \begin_layout Plain Layout
41750 \begin_inset Tabular
41751 <lyxtabular version="3" rows="21" columns="3">
41752 <features tabularvalignment="middle">
41753 <column alignment="center" valignment="top">
41754 <column alignment="center" valignment="middle" width="50col%">
41755 <column alignment="center" valignment="top">
41757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41760 \begin_layout Plain Layout
41766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41769 \begin_layout Plain Layout
41775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41778 \begin_layout Plain Layout
41787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41790 \begin_layout Plain Layout
41796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41799 \begin_layout Plain Layout
41801 \begin_inset space \thinspace{}
41805 \begin_inset space \thinspace{}
41813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41816 \begin_layout Plain Layout
41824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41827 \begin_layout Plain Layout
41833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41836 \begin_layout Plain Layout
41838 \begin_inset space \thinspace{}
41842 \begin_inset space \thinspace{}
41850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41853 \begin_layout Plain Layout
41861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41864 \begin_layout Plain Layout
41870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41873 \begin_layout Plain Layout
41879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41882 \begin_layout Plain Layout
41890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41893 \begin_layout Plain Layout
41899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41902 \begin_layout Plain Layout
41904 \begin_inset space \thinspace{}
41908 \begin_inset Formula $\approx$
41912 \begin_inset space \thinspace{}
41920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41923 \begin_layout Plain Layout
41931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41934 \begin_layout Plain Layout
41940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41943 \begin_layout Plain Layout
41953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41956 \begin_layout Plain Layout
41964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41967 \begin_layout Plain Layout
41973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41976 \begin_layout Plain Layout
41986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41989 \begin_layout Plain Layout
41997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42000 \begin_layout Plain Layout
42006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42009 \begin_layout Plain Layout
42015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42018 \begin_layout Plain Layout
42026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42029 \begin_layout Plain Layout
42035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42038 \begin_layout Plain Layout
42044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42047 \begin_layout Plain Layout
42055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42058 \begin_layout Plain Layout
42064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42067 \begin_layout Plain Layout
42069 \begin_inset space \thinspace{}
42073 \begin_inset space \thinspace{}
42081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42084 \begin_layout Plain Layout
42092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42095 \begin_layout Plain Layout
42101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42104 \begin_layout Plain Layout
42106 \begin_inset space \thinspace{}
42110 \begin_inset space \thinspace{}
42118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42121 \begin_layout Plain Layout
42129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42132 \begin_layout Plain Layout
42138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42141 \begin_layout Plain Layout
42143 \begin_inset space \thinspace{}
42147 \begin_inset space \thinspace{}
42155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42158 \begin_layout Plain Layout
42166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42169 \begin_layout Plain Layout
42175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42178 \begin_layout Plain Layout
42179 scaled point (65536
42180 \begin_inset space \thinspace{}
42184 \begin_inset space \thinspace{}
42192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42195 \begin_layout Plain Layout
42203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42206 \begin_layout Plain Layout
42212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42215 \begin_layout Plain Layout
42221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42224 \begin_layout Plain Layout
42234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42237 \begin_layout Plain Layout
42243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42246 \begin_layout Plain Layout
42247 % of height between baselines of two subsequent text lines
42252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42255 \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
42283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42286 \begin_layout Plain Layout
42296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42299 \begin_layout Plain Layout
42305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42308 \begin_layout Plain Layout
42314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42317 \begin_layout Plain Layout
42327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42330 \begin_layout Plain Layout
42336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42339 \begin_layout Plain Layout
42345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42348 \begin_layout Plain Layout
42358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42361 \begin_layout Plain Layout
42367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42370 \begin_layout Plain Layout
42371 % of original image width
42376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42379 \begin_layout Plain Layout
42387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42390 \begin_layout Plain Layout
42396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42399 \begin_layout Plain Layout
42405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42408 \begin_layout Plain Layout
42418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42421 \begin_layout Plain Layout
42427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42430 \begin_layout Plain Layout
42436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42439 \begin_layout Plain Layout
42460 \begin_layout Chapter
42461 Output File Formats with Graphics
42462 \begin_inset CommandInset label
42464 name "cha:Output-File-Formats"
42471 \begin_layout Section
42473 \begin_inset Index idx
42476 \begin_layout Plain Layout
42483 \begin_inset Index idx
42486 \begin_layout Plain Layout
42491 \begin_layout Plain Layout
42502 \begin_layout Plain Layout
42517 \begin_layout Standard
42518 This file type has the extension
42519 \begin_inset Quotes eld
42527 \begin_inset Quotes erd
42532 \begin_inset Quotes eld
42536 \begin_inset Quotes erd
42539 (DVI), because it is completely portable; you can move them from one machine
42540 to another without needing to do any sort of conversion.
42541 At the time when this file-format was developed, this was no matter of
42543 DVIs are used for quick previews and as pre-stage for other output formats,
42547 \begin_layout Standard
42548 \begin_inset Note Greyedout
42551 \begin_layout Plain Layout
42556 DVI-files do not contain images; they will only be a linked.
42561 So don't forget this, if you move your
42565 file to another computer.
42566 This property can also slow down your computer when you view the DVI, because
42567 the DVI-viewer has to convert the image in the background to make it visible
42568 when you scroll in the DVI.
42569 So it is recommended that you use PDF for files with many images.
42572 \begin_layout Standard
42573 You can export your document to DVI by using the menu
42575 File\SpecialChar menuseparator
42576 Export\SpecialChar menuseparator
42580 You can view your document as DVI via the
42587 \begin_layout Section
42589 \begin_inset Index idx
42592 \begin_layout Plain Layout
42593 File Formats ! PostScript
42599 \begin_inset Index idx
42602 \begin_layout Plain Layout
42607 \begin_layout Plain Layout
42618 \begin_layout Plain Layout
42633 \begin_layout Standard
42634 This file type has the extension
42635 \begin_inset Quotes eld
42643 \begin_inset Quotes erd
42647 PostScript was developed by the company
42651 as a printer language.
42652 The file therefore contains commands that the printer uses to print the
42654 PostScript can be seen as a
42655 \begin_inset Quotes eld
42658 programming language
42659 \begin_inset Quotes erd
42662 ; you can calculate with it and draw diagrams and images.
42666 \begin_layout Plain Layout
42667 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42674 \begin_inset CommandInset citation
42686 Due to this ability, the files are often bigger than PDFs.
42689 \begin_layout Standard
42690 PostScript can only contain images in the format
42691 \begin_inset Quotes eld
42694 Encapsulated PostScript
42695 \begin_inset Quotes erd
42698 (EPS, file extension
42699 \begin_inset Quotes eld
42707 \begin_inset Quotes erd
42711 As \SpecialChar LyX
42712 allows you to use any known image format in your document, it has to
42713 convert images in the background to EPS.
42715 \begin_inset space ~
42719 \begin_inset space ~
42722 images in your document, \SpecialChar LyX
42724 \begin_inset space ~
42727 conversions whenever you view or export your document.
42728 This will slow down your work flow with \SpecialChar LyX
42730 So if you plan to use PostScript, you can insert your images directly as
42731 EPS to avoid this problem.
42734 \begin_layout Standard
42735 You can export your document to PostScript using the menu
42737 File\SpecialChar menuseparator
42738 Export\SpecialChar menuseparator
42742 You can view your document as PostScript via the
42749 \begin_layout Section
42751 \begin_inset Index idx
42754 \begin_layout Plain Layout
42761 \begin_inset Index idx
42764 \begin_layout Plain Layout
42773 \begin_layout Standard
42774 This file type has the extension
42775 \begin_inset Quotes eld
42783 \begin_inset Quotes erd
42788 \begin_inset Quotes eld
42791 Portable Document Format
42792 \begin_inset Quotes erd
42795 (PDF) was developed by
42799 as a derivative of PostScript.
42800 It is more compressed and it uses fewer commands than PostScript.
42802 \begin_inset Quotes eld
42806 \begin_inset Quotes erd
42809 implies, it can be processed at any computer system and the printed output
42810 looks exactly the same.
42813 \begin_layout Standard
42814 PDF can contain images in its own PDF format, in the format
42815 \begin_inset Quotes eld
42818 Joint Photographic Experts Group
42819 \begin_inset Quotes erd
42822 (JPG, file extension
42823 \begin_inset Quotes eld
42831 \begin_inset Quotes erd
42835 \begin_inset Quotes eld
42843 \begin_inset Quotes erd
42846 ), and in the format
42847 \begin_inset Quotes eld
42850 Portable Network Graphics
42851 \begin_inset Quotes erd
42854 (PNG, file extension
42855 \begin_inset Quotes eld
42863 \begin_inset Quotes erd
42867 Nevertheless you can use any other image format, because \SpecialChar LyX
42869 in the background to one of these formats.
42870 But as described in the section about PostScript, the image conversion
42871 will slow down your work flow.
42872 So it is recommended that you use images in one of the three mentioned
42876 \begin_layout Standard
42877 You can export your document to PDF via the menu
42879 File\SpecialChar menuseparator
42882 in three different ways:
42885 \begin_layout Description
42887 \begin_inset space ~
42890 (ps2pdf) This uses the program
42894 that creates a PDF from a PostScript-version of your file.
42895 The PostScript-version is produced by the program
42899 which uses a DVI-version as intermediate step.
42900 So this export variant consists of three conversions.
42903 \begin_layout Description
42905 \begin_inset space ~
42908 (dvipdfm) This uses the program
42912 that converts your file in the background to DVI and in a second step to
42916 \begin_layout Description
42918 \begin_inset space ~
42921 (pdflatex) This uses the program
42925 that converts your file directly to PDF.
42928 \begin_layout Standard
42929 It is recommended that you use
42932 \begin_inset space ~
42941 supports all features of actual PDF-versions, is quick and works stable.
42946 is not under development and therefore a bit outdated.
42949 \begin_layout Standard
42950 You can view your document as PDF via the
42954 menu or by using a toolbar button.
42957 \begin_layout Chapter
42958 List of dvips color names
42959 \begin_inset CommandInset label
42961 name "chap:List-of-dvips-colornames"
42968 \begin_layout Standard
42969 \begin_inset Tabular
42970 <lyxtabular version="3" rows="17" columns="4">
42971 <features tabularvalignment="middle">
42972 <column alignment="left" valignment="top" width="0pt">
42973 <column alignment="left" valignment="top" width="0pt">
42974 <column alignment="left" valignment="top" width="0pt">
42975 <column alignment="left" valignment="top" width="0pt">
42977 <cell alignment="left" valignment="top" usebox="none">
42980 \begin_layout Plain Layout
42984 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43020 <cell alignment="left" valignment="top" usebox="none">
43023 \begin_layout Plain Layout
43027 \begin_layout Plain Layout
43040 \begin_layout Plain Layout
43051 \begin_layout Plain Layout
43063 <cell alignment="left" valignment="top" usebox="none">
43066 \begin_layout Plain Layout
43070 \begin_layout Plain Layout
43083 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43106 <cell alignment="left" valignment="top" usebox="none">
43109 \begin_layout Plain Layout
43113 \begin_layout Plain Layout
43126 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43151 <cell alignment="center" valignment="top" usebox="none">
43154 \begin_layout Plain Layout
43158 \begin_layout Plain Layout
43171 \begin_layout Plain Layout
43179 \begin_inset Phantom Phantom
43182 \begin_layout Plain Layout
43192 \begin_layout Plain Layout
43204 <cell alignment="center" valignment="top" usebox="none">
43207 \begin_layout Plain Layout
43211 \begin_layout Plain Layout
43224 \begin_layout Plain Layout
43232 \begin_inset Phantom Phantom
43235 \begin_layout Plain Layout
43245 \begin_layout Plain Layout
43257 <cell alignment="center" valignment="top" usebox="none">
43260 \begin_layout Plain Layout
43264 \begin_layout Plain Layout
43277 \begin_layout Plain Layout
43285 \begin_inset Phantom Phantom
43288 \begin_layout Plain Layout
43298 \begin_layout Plain Layout
43310 <cell alignment="center" valignment="top" usebox="none">
43313 \begin_layout Plain Layout
43317 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43338 \begin_inset Phantom Phantom
43341 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43365 <cell alignment="left" valignment="top" usebox="none">
43368 \begin_layout Plain Layout
43372 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43393 \begin_inset Phantom Phantom
43396 \begin_layout Plain Layout
43406 \begin_layout Plain Layout
43418 <cell alignment="left" valignment="top" usebox="none">
43421 \begin_layout Plain Layout
43425 \begin_layout Plain Layout
43438 \begin_layout Plain Layout
43446 \begin_inset Phantom Phantom
43449 \begin_layout Plain Layout
43459 \begin_layout Plain Layout
43471 <cell alignment="left" valignment="top" usebox="none">
43474 \begin_layout Plain Layout
43478 \begin_layout Plain Layout
43491 \begin_layout Plain Layout
43499 \begin_inset Phantom Phantom
43502 \begin_layout Plain Layout
43512 \begin_layout Plain Layout
43524 <cell alignment="left" valignment="top" usebox="none">
43527 \begin_layout Plain Layout
43531 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43552 \begin_inset Phantom Phantom
43555 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43579 <cell alignment="left" valignment="top" usebox="none">
43582 \begin_layout Plain Layout
43586 \begin_layout Plain Layout
43599 \begin_layout Plain Layout
43607 \begin_inset Phantom Phantom
43610 \begin_layout Plain Layout
43620 \begin_layout Plain Layout
43632 <cell alignment="left" valignment="top" usebox="none">
43635 \begin_layout Plain Layout
43639 \begin_layout Plain Layout
43652 \begin_layout Plain Layout
43660 \begin_inset Phantom Phantom
43663 \begin_layout Plain Layout
43673 \begin_layout Plain Layout
43685 <cell alignment="left" valignment="top" usebox="none">
43688 \begin_layout Plain Layout
43692 \begin_layout Plain Layout
43705 \begin_layout Plain Layout
43713 \begin_inset Phantom Phantom
43716 \begin_layout Plain Layout
43726 \begin_layout Plain Layout
43738 <cell alignment="left" valignment="top" usebox="none">
43741 \begin_layout Plain Layout
43745 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43766 \begin_inset Phantom Phantom
43769 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43793 <cell alignment="left" valignment="top" usebox="none">
43796 \begin_layout Plain Layout
43800 \begin_layout Plain Layout
43813 \begin_layout Plain Layout
43821 \begin_inset Phantom Phantom
43824 \begin_layout Plain Layout
43834 \begin_layout Plain Layout
43846 <cell alignment="left" valignment="top" usebox="none">
43849 \begin_layout Plain Layout
43853 \begin_layout Plain Layout
43866 \begin_layout Plain Layout
43874 \begin_inset Phantom Phantom
43877 \begin_layout Plain Layout
43887 \begin_layout Plain Layout
43899 <cell alignment="left" valignment="top" usebox="none">
43902 \begin_layout Plain Layout
43906 \begin_layout Plain Layout
43919 \begin_layout Plain Layout
43927 \begin_inset Phantom Phantom
43930 \begin_layout Plain Layout
43940 \begin_layout Plain Layout
43952 <cell alignment="left" valignment="top" usebox="none">
43955 \begin_layout Plain Layout
43959 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43980 \begin_inset Phantom Phantom
43983 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44007 <cell alignment="left" valignment="top" usebox="none">
44010 \begin_layout Plain Layout
44014 \begin_layout Plain Layout
44027 \begin_layout Plain Layout
44035 \begin_inset Phantom Phantom
44038 \begin_layout Plain Layout
44048 \begin_layout Plain Layout
44060 <cell alignment="left" valignment="top" usebox="none">
44063 \begin_layout Plain Layout
44067 \begin_layout Plain Layout
44080 \begin_layout Plain Layout
44088 \begin_inset Phantom Phantom
44091 \begin_layout Plain Layout
44101 \begin_layout Plain Layout
44113 <cell alignment="left" valignment="top" usebox="none">
44116 \begin_layout Plain Layout
44120 \begin_layout Plain Layout
44133 \begin_layout Plain Layout
44141 \begin_inset Phantom Phantom
44144 \begin_layout Plain Layout
44154 \begin_layout Plain Layout
44166 <cell alignment="left" valignment="top" usebox="none">
44169 \begin_layout Plain Layout
44173 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44194 \begin_inset Phantom Phantom
44197 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44221 <cell alignment="center" valignment="top" usebox="none">
44224 \begin_layout Plain Layout
44228 \begin_layout Plain Layout
44241 \begin_layout Plain Layout
44249 \begin_inset Phantom Phantom
44252 \begin_layout Plain Layout
44262 \begin_layout Plain Layout
44274 <cell alignment="center" valignment="top" usebox="none">
44277 \begin_layout Plain Layout
44281 \begin_layout Plain Layout
44294 \begin_layout Plain Layout
44302 \begin_inset Phantom Phantom
44305 \begin_layout Plain Layout
44315 \begin_layout Plain Layout
44327 <cell alignment="center" valignment="top" usebox="none">
44330 \begin_layout Plain Layout
44334 \begin_layout Plain Layout
44347 \begin_layout Plain Layout
44355 \begin_inset Phantom Phantom
44358 \begin_layout Plain Layout
44368 \begin_layout Plain Layout
44380 <cell alignment="center" valignment="top" usebox="none">
44383 \begin_layout Plain Layout
44387 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44408 \begin_inset Phantom Phantom
44411 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44435 <cell alignment="left" valignment="top" usebox="none">
44438 \begin_layout Plain Layout
44442 \begin_layout Plain Layout
44455 \begin_layout Plain Layout
44463 \begin_inset Phantom Phantom
44466 \begin_layout Plain Layout
44476 \begin_layout Plain Layout
44488 <cell alignment="left" valignment="top" usebox="none">
44491 \begin_layout Plain Layout
44495 \begin_layout Plain Layout
44508 \begin_layout Plain Layout
44516 \begin_inset Phantom Phantom
44519 \begin_layout Plain Layout
44529 \begin_layout Plain Layout
44541 <cell alignment="left" valignment="top" usebox="none">
44544 \begin_layout Plain Layout
44548 \begin_layout Plain Layout
44561 \begin_layout Plain Layout
44569 \begin_inset Phantom Phantom
44572 \begin_layout Plain Layout
44582 \begin_layout Plain Layout
44594 <cell alignment="left" valignment="top" usebox="none">
44597 \begin_layout Plain Layout
44601 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44622 \begin_inset Phantom Phantom
44625 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44649 <cell alignment="left" valignment="top" usebox="none">
44652 \begin_layout Plain Layout
44656 \begin_layout Plain Layout
44669 \begin_layout Plain Layout
44677 \begin_inset Phantom Phantom
44680 \begin_layout Plain Layout
44690 \begin_layout Plain Layout
44702 <cell alignment="left" valignment="top" usebox="none">
44705 \begin_layout Plain Layout
44709 \begin_layout Plain Layout
44722 \begin_layout Plain Layout
44730 \begin_inset Phantom Phantom
44733 \begin_layout Plain Layout
44743 \begin_layout Plain Layout
44755 <cell alignment="left" valignment="top" usebox="none">
44758 \begin_layout Plain Layout
44762 \begin_layout Plain Layout
44775 \begin_layout Plain Layout
44783 \begin_inset Phantom Phantom
44786 \begin_layout Plain Layout
44796 \begin_layout Plain Layout
44808 <cell alignment="left" valignment="top" usebox="none">
44811 \begin_layout Plain Layout
44815 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44836 \begin_inset Phantom Phantom
44839 \begin_layout Plain Layout
44849 \begin_layout Plain Layout
44863 <cell alignment="left" valignment="top" usebox="none">
44866 \begin_layout Plain Layout
44870 \begin_layout Plain Layout
44883 \begin_layout Plain Layout
44891 \begin_inset Phantom Phantom
44894 \begin_layout Plain Layout
44904 \begin_layout Plain Layout
44916 <cell alignment="left" valignment="top" usebox="none">
44919 \begin_layout Plain Layout
44923 \begin_layout Plain Layout
44936 \begin_layout Plain Layout
44944 \begin_inset Phantom Phantom
44947 \begin_layout Plain Layout
44957 \begin_layout Plain Layout
44969 <cell alignment="left" valignment="top" usebox="none">
44972 \begin_layout Plain Layout
44976 \begin_layout Plain Layout
44989 \begin_layout Plain Layout
44997 \begin_inset Phantom Phantom
45000 \begin_layout Plain Layout
45010 \begin_layout Plain Layout
45022 <cell alignment="left" valignment="top" usebox="none">
45025 \begin_layout Plain Layout
45029 \begin_layout Plain Layout
45042 \begin_layout Plain Layout
45050 \begin_inset Phantom Phantom
45053 \begin_layout Plain Layout
45063 \begin_layout Plain Layout
45077 <cell alignment="left" valignment="top" usebox="none">
45080 \begin_layout Plain Layout
45084 \begin_layout Plain Layout
45097 \begin_layout Plain Layout
45105 \begin_inset Phantom Phantom
45108 \begin_layout Plain Layout
45118 \begin_layout Plain Layout
45130 <cell alignment="left" valignment="top" usebox="none">
45133 \begin_layout Plain Layout
45137 \begin_layout Plain Layout
45150 \begin_layout Plain Layout
45158 \begin_inset Phantom Phantom
45161 \begin_layout Plain Layout
45171 \begin_layout Plain Layout
45183 <cell alignment="left" valignment="top" usebox="none">
45186 \begin_layout Plain Layout
45190 \begin_layout Plain Layout
45203 \begin_layout Plain Layout
45211 \begin_inset Phantom Phantom
45214 \begin_layout Plain Layout
45224 \begin_layout Plain Layout
45236 <cell alignment="left" valignment="top" usebox="none">
45239 \begin_layout Plain Layout
45243 \begin_layout Plain Layout
45256 \begin_layout Plain Layout
45264 \begin_inset Phantom Phantom
45267 \begin_layout Plain Layout
45277 \begin_layout Plain Layout
45291 <cell alignment="left" valignment="top" usebox="none">
45294 \begin_layout Plain Layout
45298 \begin_layout Plain Layout
45311 \begin_layout Plain Layout
45319 \begin_inset Phantom Phantom
45322 \begin_layout Plain Layout
45332 \begin_layout Plain Layout
45344 <cell alignment="left" valignment="top" usebox="none">
45347 \begin_layout Plain Layout
45351 \begin_layout Plain Layout
45364 \begin_layout Plain Layout
45372 \begin_inset Phantom Phantom
45375 \begin_layout Plain Layout
45385 \begin_layout Plain Layout
45397 <cell alignment="left" valignment="top" usebox="none">
45400 \begin_layout Plain Layout
45404 \begin_layout Plain Layout
45417 \begin_layout Plain Layout
45425 \begin_inset Phantom Phantom
45428 \begin_layout Plain Layout
45438 \begin_layout Plain Layout
45450 <cell alignment="left" valignment="top" usebox="none">
45453 \begin_layout Plain Layout
45457 \begin_layout Plain Layout
45470 \begin_layout Plain Layout
45478 \begin_inset Phantom Phantom
45481 \begin_layout Plain Layout
45491 \begin_layout Plain Layout
45505 <cell alignment="left" valignment="top" usebox="none">
45508 \begin_layout Plain Layout
45512 \begin_layout Plain Layout
45525 \begin_layout Plain Layout
45533 \begin_inset Phantom Phantom
45536 \begin_layout Plain Layout
45546 \begin_layout Plain Layout
45558 <cell alignment="left" valignment="top" usebox="none">
45561 \begin_layout Plain Layout
45565 \begin_layout Plain Layout
45578 \begin_layout Plain Layout
45586 \begin_inset Phantom Phantom
45589 \begin_layout Plain Layout
45599 \begin_layout Plain Layout
45611 <cell alignment="left" valignment="top" usebox="none">
45614 \begin_layout Plain Layout
45618 \begin_layout Plain Layout
45631 \begin_layout Plain Layout
45639 \begin_inset Phantom Phantom
45642 \begin_layout Plain Layout
45652 \begin_layout Plain Layout
45664 <cell alignment="left" valignment="top" usebox="none">
45667 \begin_layout Plain Layout
45671 \begin_layout Plain Layout
45684 \begin_layout Plain Layout
45692 \begin_inset Phantom Phantom
45695 \begin_layout Plain Layout
45705 \begin_layout Plain Layout
45719 <cell alignment="left" valignment="top" usebox="none">
45722 \begin_layout Plain Layout
45726 \begin_layout Plain Layout
45739 \begin_layout Plain Layout
45747 \begin_inset Phantom Phantom
45750 \begin_layout Plain Layout
45760 \begin_layout Plain Layout
45772 <cell alignment="left" valignment="top" usebox="none">
45775 \begin_layout Plain Layout
45779 \begin_layout Plain Layout
45792 \begin_layout Plain Layout
45800 \begin_inset Phantom Phantom
45803 \begin_layout Plain Layout
45813 \begin_layout Plain Layout
45825 <cell alignment="left" valignment="top" usebox="none">
45828 \begin_layout Plain Layout
45832 \begin_layout Plain Layout
45845 \begin_layout Plain Layout
45853 \begin_inset Phantom Phantom
45856 \begin_layout Plain Layout
45866 \begin_layout Plain Layout
45878 <cell alignment="left" valignment="top" usebox="none">
45881 \begin_layout Plain Layout
45885 \begin_layout Plain Layout
45898 \begin_layout Plain Layout
45906 \begin_inset Phantom Phantom
45909 \begin_layout Plain Layout
45919 \begin_layout Plain Layout
45933 <cell alignment="left" valignment="top" usebox="none">
45936 \begin_layout Plain Layout
45940 \begin_layout Plain Layout
45953 \begin_layout Plain Layout
45961 \begin_inset Phantom Phantom
45964 \begin_layout Plain Layout
45974 \begin_layout Plain Layout
45986 <cell alignment="left" valignment="top" usebox="none">
45989 \begin_layout Plain Layout
45993 \begin_layout Plain Layout
46006 \begin_layout Plain Layout
46014 \begin_inset Phantom Phantom
46017 \begin_layout Plain Layout
46027 \begin_layout Plain Layout
46039 <cell alignment="left" valignment="top" usebox="none">
46042 \begin_layout Plain Layout
46046 \begin_layout Plain Layout
46059 \begin_layout Plain Layout
46067 \begin_inset Phantom Phantom
46070 \begin_layout Plain Layout
46080 \begin_layout Plain Layout
46092 <cell alignment="left" valignment="top" usebox="none">
46095 \begin_layout Plain Layout
46099 \begin_layout Plain Layout
46112 \begin_layout Plain Layout
46120 \begin_inset Phantom Phantom
46123 \begin_layout Plain Layout
46133 \begin_layout Plain Layout
46147 <cell alignment="left" valignment="top" usebox="none">
46150 \begin_layout Plain Layout
46154 \begin_layout Plain Layout
46167 \begin_layout Plain Layout
46175 \begin_inset Phantom Phantom
46178 \begin_layout Plain Layout
46188 \begin_layout Plain Layout
46200 <cell alignment="left" valignment="top" usebox="none">
46203 \begin_layout Plain Layout
46207 \begin_layout Plain Layout
46220 \begin_layout Plain Layout
46228 \begin_inset Phantom Phantom
46231 \begin_layout Plain Layout
46241 \begin_layout Plain Layout
46253 <cell alignment="left" valignment="top" usebox="none">
46256 \begin_layout Plain Layout
46260 \begin_layout Plain Layout
46273 \begin_layout Plain Layout
46281 \begin_inset Phantom Phantom
46284 \begin_layout Plain Layout
46294 \begin_layout Plain Layout
46306 <cell alignment="left" valignment="top" usebox="none">
46309 \begin_layout Plain Layout
46313 \begin_layout Plain Layout
46326 \begin_layout Plain Layout
46334 \begin_inset Phantom Phantom
46337 \begin_layout Plain Layout
46347 \begin_layout Plain Layout
46361 <cell alignment="left" valignment="top" usebox="none">
46364 \begin_layout Plain Layout
46368 \begin_layout Plain Layout
46381 \begin_layout Plain Layout
46389 \begin_inset Phantom Phantom
46392 \begin_layout Plain Layout
46402 \begin_layout Plain Layout
46414 <cell alignment="left" valignment="top" usebox="none">
46417 \begin_layout Plain Layout
46423 <cell alignment="left" valignment="top" usebox="none">
46426 \begin_layout Plain Layout
46432 <cell alignment="left" valignment="top" usebox="none">
46435 \begin_layout Plain Layout
46449 \begin_layout Chapter
46450 Explanation of Equation
46451 \begin_inset space ~
46455 \begin_inset CommandInset ref
46462 \begin_inset CommandInset label
46464 name "cha:Explanation-of-Equation"
46471 \begin_layout Standard
46472 We can calculate the total width of
46477 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46481 \begin_inset Formula
46483 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46489 \begin_inset Formula $W_{g\,n}$
46492 is the given width of all cells,
46498 is the \SpecialChar LaTeX
46499 -length between the cell text and the cell border (its default value
46501 \begin_inset space \thinspace{}
46511 is the thickness of the cell border line, the default is 0.4
46512 \begin_inset space \thinspace{}
46518 \begin_layout Standard
46520 \begin_inset space ~
46524 \begin_inset CommandInset ref
46526 reference "eq:Wtot_n"
46530 , the total width of a multicolumn
46531 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46535 \begin_inset Formula
46537 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46545 \begin_layout Standard
46546 By setting equation
46547 \begin_inset space ~
46551 \begin_inset CommandInset ref
46553 reference "eq:Wtot_n"
46558 \begin_inset CommandInset ref
46560 reference "eq:Wtot_mult"
46564 equal we can calculate the needed given width
46565 \begin_inset Formula $W_{g\,n}$
46572 columns are spanned, so that each column has a total width of
46573 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46577 \begin_inset Formula
46579 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46587 \begin_layout Bibliography
46588 \begin_inset CommandInset bibitem
46589 LatexCommand bibitem
46590 key "latexcompanion"
46595 Frank Mittelbach and Michel Goossens:
46597 The \SpecialChar LaTeX
46598 Companion Second Edition.
46601 Addison-Wesley, 2004
46604 \begin_layout Bibliography
46605 \begin_inset CommandInset bibitem
46606 LatexCommand bibitem
46612 Helmut Kopka and Patrick W.
46615 A Guide to \SpecialChar LaTeX
46619 Addison-Wesley, 2003
46622 \begin_layout Bibliography
46623 \begin_inset CommandInset bibitem
46624 LatexCommand bibitem
46633 : A Document Preparation System.
46636 Addison-Wesley, second edition, 1994
46639 \begin_layout Bibliography
46640 \begin_inset CommandInset bibitem
46641 LatexCommand bibitem
46647 Documentation of the \SpecialChar LaTeX
46651 \begin_inset CommandInset href
46654 target "https://www.ctan.org/tex-archive/macros/latex/contrib//arydshln/arydshln.pdf"
46662 \begin_inset Index idx
46665 \begin_layout Plain Layout
46667 -packages ! arydshln
46675 \begin_layout Bibliography
46676 \begin_inset CommandInset bibitem
46677 LatexCommand bibitem
46683 Documentation of the \SpecialChar LaTeX
46687 \begin_inset CommandInset href
46690 target "https://www.ctan.org/tex-archive/macros/latex/contrib//booktabs/booktabs.pdf"
46698 \begin_inset Index idx
46701 \begin_layout Plain Layout
46703 -packages ! booktabs
46711 \begin_layout Bibliography
46712 \begin_inset CommandInset bibitem
46713 LatexCommand bibitem
46719 Documentation of the \SpecialChar LaTeX
46723 \begin_inset CommandInset href
46726 target "https://www.ctan.org/tex-archive/macros/latex/contrib/caption/caption-eng.pdf"
46734 \begin_inset Index idx
46737 \begin_layout Plain Layout
46739 -packages ! caption
46747 \begin_layout Bibliography
46748 \begin_inset CommandInset bibitem
46749 LatexCommand bibitem
46755 Documentation of the \SpecialChar LaTeX
46759 \begin_inset CommandInset href
46762 target "https://www.ctan.org/tex-archive/macros/latex/contrib//diagbox/diagbox.pdf"
46770 \begin_inset Index idx
46773 \begin_layout Plain Layout
46775 -packages ! diagbox
46783 \begin_layout Bibliography
46784 \begin_inset CommandInset bibitem
46785 LatexCommand bibitem
46791 Documentation of the \SpecialChar LaTeX
46795 \begin_inset CommandInset href
46798 target "https://www.ctan.org/tex-archive/macros/latex/contrib//endfloat/endfloat.pdf"
46806 \begin_inset Index idx
46809 \begin_layout Plain Layout
46811 -packages ! endfloat
46819 \begin_layout Bibliography
46820 \begin_inset CommandInset bibitem
46821 LatexCommand bibitem
46827 Documentation of the \SpecialChar LaTeX
46831 \begin_inset CommandInset href
46834 target "https://www.ctan.org/tex-archive/macros/latex/contrib//footmisc/footmisc.pdf"
46842 \begin_inset Index idx
46845 \begin_layout Plain Layout
46847 -packages ! footmisc
46855 \begin_layout Bibliography
46856 \begin_inset CommandInset bibitem
46857 LatexCommand bibitem
46863 Documentation of the \SpecialChar LaTeX
46867 \begin_inset CommandInset href
46870 target "https://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46878 \begin_inset Index idx
46881 \begin_layout Plain Layout
46883 -packages ! hyperref
46891 \begin_layout Bibliography
46892 \begin_inset CommandInset bibitem
46893 LatexCommand bibitem
46899 Documentation of the \SpecialChar LaTeX
46903 \begin_inset CommandInset href
46906 target "https://www.ctan.org/tex-archive/macros/latex/contrib//hyperref/hyperref.pdf"
46914 \begin_inset Index idx
46917 \begin_layout Plain Layout
46919 -packages ! hyperref
46927 \begin_layout Bibliography
46928 \begin_inset CommandInset bibitem
46929 LatexCommand bibitem
46935 Documentation of the \SpecialChar LaTeX
46939 \begin_inset CommandInset href
46942 target "https://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46950 \begin_inset Index idx
46953 \begin_layout Plain Layout
46955 -packages ! KOMA-Script
46963 \begin_layout Bibliography
46964 \begin_inset CommandInset bibitem
46965 LatexCommand bibitem
46971 Documentation of the \SpecialChar LaTeX
46975 \begin_inset CommandInset href
46978 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46986 \begin_inset CommandInset href
46989 target "https://www.ctan.org/tex-archive/macros/latex/contrib/lettrine/doc/demo.pdf"
46995 \begin_inset Index idx
46998 \begin_layout Plain Layout
47000 -packages ! lettrine
47008 \begin_layout Bibliography
47009 \begin_inset CommandInset bibitem
47010 LatexCommand bibitem
47016 Documentation of the \SpecialChar LaTeX
47020 \begin_inset CommandInset href
47023 target "https://www.ctan.org/tex-archive/macros/latex/contrib//listings/listings.pdf"
47031 \begin_inset Index idx
47034 \begin_layout Plain Layout
47036 -packages ! listings
47044 \begin_layout Bibliography
47045 \begin_inset CommandInset bibitem
47046 LatexCommand bibitem
47052 Documentation of the \SpecialChar LaTeX
47056 \begin_inset CommandInset href
47059 target "https://www.ctan.org/tex-archive/macros/latex/contrib//minted/minted.pdf"
47067 \begin_inset Index idx
47070 \begin_layout Plain Layout
47080 \begin_layout Bibliography
47081 \begin_inset CommandInset bibitem
47082 LatexCommand bibitem
47088 Documentation of the \SpecialChar LaTeX
47092 \begin_inset CommandInset href
47095 target "https://www.ctan.org/tex-archive/macros/latex/contrib//marginnote/marginnote.pdf"
47103 \begin_inset Index idx
47106 \begin_layout Plain Layout
47108 -packages ! marginnote
47116 \begin_layout Bibliography
47117 \begin_inset CommandInset bibitem
47118 LatexCommand bibitem
47124 Documentation of the \SpecialChar LaTeX
47128 \begin_inset CommandInset href
47131 target "https://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47139 \begin_inset Index idx
47142 \begin_layout Plain Layout
47144 -packages ! pdfpages
47152 \begin_layout Bibliography
47153 \begin_inset CommandInset bibitem
47154 LatexCommand bibitem
47160 Documentation of the \SpecialChar LaTeX
47164 \begin_inset CommandInset href
47167 target "https://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47175 \begin_inset Index idx
47178 \begin_layout Plain Layout
47180 -packages ! prettyref
47188 \begin_layout Bibliography
47189 \begin_inset CommandInset bibitem
47190 LatexCommand bibitem
47196 Web page of the \SpecialChar LaTeX
47200 \begin_inset CommandInset href
47203 target "http://tug.org/PSTricks/"
47211 \begin_inset Index idx
47214 \begin_layout Plain Layout
47216 -packages ! PSTricks
47224 \begin_layout Bibliography
47225 \begin_inset CommandInset bibitem
47226 LatexCommand bibitem
47232 Documentation of the \SpecialChar LaTeX
47236 \begin_inset CommandInset href
47239 target "https://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47247 \begin_inset Index idx
47250 \begin_layout Plain Layout
47252 -packages ! refstyle
47260 \begin_layout Bibliography
47261 \begin_inset CommandInset bibitem
47262 LatexCommand bibitem
47268 Documentation of the \SpecialChar LaTeX
47272 \begin_inset CommandInset href
47275 target "https://www.ctan.org/tex-archive/macros/latex/contrib//sidecap/sidecap.pdf"
47283 \begin_inset Index idx
47286 \begin_layout Plain Layout
47288 -packages ! sidecap
47296 \begin_layout Bibliography
47297 \begin_inset CommandInset bibitem
47298 LatexCommand bibitem
47304 Documentation of the option
47305 \begin_inset CommandInset href
47307 name "Omit text in PDF"
47308 target "https://www.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47316 \begin_inset CommandInset href
47319 target "https://inkscape.org"
47327 \begin_layout Standard
47328 \begin_inset CommandInset index_print
47329 LatexCommand printindex