1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \use_dash_ligatures true
177 \default_output_format pdf2
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \use_package amsmath 2
201 \use_package amssymb 2
202 \use_package cancel 0
204 \use_package mathdots 1
205 \use_package mathtools 0
206 \use_package mhchem 1
207 \use_package stackrel 0
208 \use_package stmaryrd 0
209 \use_package undertilde 0
211 \cite_engine_type default
215 \paperorientation portrait
219 \notefontcolor #0000ff
226 \paragraph_separation skip
229 \math_numbering_side default
230 \quotes_style english
234 \paperpagestyle default
235 \tracking_changes false
236 \output_changes false
239 \html_be_strict false
246 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
250 by the \SpecialChar LyX
255 \begin_layout Plain Layout
257 If you have comments or error corrections, please send them to the \SpecialChar LyX
260 \begin_inset CommandInset href
262 name "lyx-docs@lists.lyx.org"
263 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
275 \begin_inset Note Note
278 \begin_layout Plain Layout
285 \begin_inset Newline newline
289 \begin_inset Newline newline
297 \begin_layout Standard
298 \begin_inset CommandInset toc
299 LatexCommand tableofcontents
306 \begin_layout Standard
307 \begin_inset Note Note
310 \begin_layout Plain Layout
311 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
322 diagbox, lettrine, marginnote, picinpar
329 If they are not installed you can export the document anyway but the sections
330 where the packages are required won't appear in the output.
333 \begin_layout Plain Layout
334 The latest PDF-version of this document can be found here:
335 \begin_inset Newline newline
340 http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
348 \begin_layout Chapter
350 \begin_inset Index idx
353 \begin_layout Plain Layout
360 \begin_inset Index idx
363 \begin_layout Plain Layout
368 \begin_layout Plain Layout
379 \begin_layout Plain Layout
394 \begin_layout Section
396 \begin_inset Index idx
399 \begin_layout Plain Layout
400 Figures ! Graphics Dialog
406 \begin_inset CommandInset label
408 name "sec:Graphics-Dialog"
415 \begin_layout Standard
416 To insert an image into your document, place the cursor at the text position
417 you want and click on the toolbar icon
420 arg "dialog-show-new-inset graphics"
425 Insert\SpecialChar menuseparator
429 Then a dialog will appear to choose the file to load.
430 The image will appear in the output exactly at the position where it is
434 \begin_layout Standard
435 The graphics dialog can be called at any time by clicking on an image.
436 This dialog has three tabs:
439 \begin_layout Description
444 Here you can choose an image file and adjust its appearance in the output.
445 The available units for the image size are explained in appendix
450 \begin_inset CommandInset ref
452 reference "cha:Units-available-in"
457 \begin_inset Newline newline
461 \begin_inset Index idx
464 \begin_layout Plain Layout
470 You can rotate images counter-clockwise by setting a rotation angle and
472 The image will also be rotated inside \SpecialChar LyX
474 \begin_inset Newline newline
478 \begin_inset Index idx
481 \begin_layout Plain Layout
487 Images can be scaled by using a percentage value or by setting the width
488 and height explicitly.
489 If you set only the width or only the height, the other size will be determined
491 If you set both, then the image will be transformed to the given size,
492 possibly distorting it.
493 To prevent the image from distortion, use the option
495 Maintain aspect ratio
498 The image will then be scaled so that its width and height don't exceed
499 the specified dimensions.
500 \begin_inset Newline newline
503 Images can be opened in a program of your choice by right-clicking on it
504 and choosing the entry
513 The program can be set for every image format in the file format settings
518 \begin_layout Description
523 Alternatively to the usage of scaling units it is possible to set image
524 coordinates to adjust the height and width of the image in the output.
525 The coordinates can also be calculated automatically by pressing the button
555 will only print the image region within the given coordinates.
556 Normally you don't need to worry about image coordinates and can ignore
560 \begin_layout Description
577 In this tab you can modify the appearance of the image within \SpecialChar LyX
578 and \SpecialChar LaTeX
580 can specify additional \SpecialChar LaTeX
582 \begin_inset Newline newline
593 makes the image appear in the output only as a frame with the size of the
595 \begin_inset Newline newline
606 you can define or join an image settings group.
607 \begin_inset Index idx
610 \begin_layout Plain Layout
611 Figures ! Settings grouping
616 Images within such a group share their settings, so adjusting one image
617 of the group automatically also adjusts all other images of the group in
619 So you can for example change the size for a bunch of images without the
620 need to manually change each of them.
621 Joining an existing group can also be done using the context menu of the
622 image by checking the name of the desired group.
625 \begin_layout Standard
626 \begin_inset VSpace bigskip
632 \begin_layout Standard
633 This is an example image in PDF format
637 \begin_layout Plain Layout
638 Image formats are explained in section
643 \begin_inset CommandInset ref
645 reference "sec:Image-Formats"
654 within a separate, horizontally centered paragraph:
657 \begin_layout Standard
659 \begin_inset Graphics
660 filename clipart/2D-intensity-plot.pdf
669 \begin_layout Standard
670 This is the same image like the one above but in draft mode:
673 \begin_layout Standard
675 \begin_inset Graphics
676 filename clipart/2D-intensity-plot.pdf
686 \begin_layout Standard
687 \begin_inset Newpage newpage
693 \begin_layout Section
695 \begin_inset CommandInset label
697 name "sec:Figure-Floats"
702 \begin_inset Index idx
705 \begin_layout Plain Layout
712 \begin_inset Index idx
715 \begin_layout Plain Layout
724 \begin_layout Standard
725 For general explanations about floats, have a look at section
730 \begin_inset CommandInset ref
732 reference "sec:FloatIntroduction"
739 \begin_layout Standard
743 arg "float-insert figure"
748 Insert\SpecialChar menuseparator
749 Float\SpecialChar menuseparator
752 inserts a float with a caption that has the label
753 \begin_inset Quotes eld
761 \begin_inset Quotes erd
764 (# is the actual number).
765 You can insert the image above the caption, like in Figure
770 \begin_inset CommandInset ref
772 reference "fig:A-star-structure"
776 or below the caption, like in Figure
781 \begin_inset CommandInset ref
783 reference "fig:A-3D-object"
788 More about caption placement is described in section
793 \begin_inset CommandInset ref
795 reference "sec:Caption-Placement"
802 \begin_layout Standard
803 \begin_inset Float figure
808 \begin_layout Plain Layout
810 \begin_inset Graphics
811 filename clipart/Star-structure.pdf
821 \begin_layout Plain Layout
822 \begin_inset Caption Standard
824 \begin_layout Plain Layout
825 \begin_inset CommandInset label
827 name "fig:A-star-structure"
831 A star structure in a float.
844 \begin_layout Standard
845 \begin_inset Float figure
850 \begin_layout Plain Layout
851 \begin_inset Caption Standard
853 \begin_layout Plain Layout
854 \begin_inset CommandInset label
856 name "fig:A-3D-object"
868 \begin_layout Plain Layout
870 \begin_inset Graphics
871 filename clipart/3D-structure-distort.pdf
886 \begin_layout Standard
887 \begin_inset Index idx
890 \begin_layout Plain Layout
891 References ! to Figures
901 \begin_inset CommandInset ref
903 reference "fig:A-star-structure"
908 \begin_inset CommandInset ref
910 reference "fig:A-3D-object"
914 are examples of referenced figures.
915 Figures can be referenced in the text by referencing their label.
916 To do this insert a label in the caption using the menu
918 Insert\SpecialChar menuseparator
921 or the toolbar button
928 You can now refer to the label using the menu
930 Insert\SpecialChar menuseparator
937 or the toolbar button
940 arg "dialog-show-new-inset ref"
944 It is important to use references to floats, rather than using vague references
946 \begin_inset Quotes eld
950 \begin_inset Quotes erd
953 , because \SpecialChar LaTeX
954 will reposition the floats in the final document and it might
956 \begin_inset Quotes eld
960 \begin_inset Quotes erd
964 \begin_inset Newline newline
967 Referencing is explained in detail in section
972 \begin_inset CommandInset ref
974 reference "sec:Referencing-Floats"
981 \begin_layout Standard
982 Normally only one image is inserted to a figure float, but sometimes you
983 might want to use two images with separate subcaptions.
984 This can be done by inserting image floats into existing image floats.
985 Note that only the main caption of the float is added to the List of Figures.
991 \begin_inset CommandInset ref
993 reference "fig:Two-distorted-images"
997 is an example of a figure float with two images set side by side.
998 You can also set the images one below the other.
1000 \begin_inset space ~
1004 \begin_inset CommandInset ref
1006 reference "fig:Pink-object"
1011 \begin_inset CommandInset ref
1013 reference "fig:A-star"
1020 \begin_layout Standard
1021 \begin_inset Float figure
1026 \begin_layout Plain Layout
1027 \begin_inset space \hfill{}
1031 \begin_inset Float figure
1036 \begin_layout Plain Layout
1037 \begin_inset Caption Standard
1039 \begin_layout Plain Layout
1040 \begin_inset CommandInset label
1042 name "fig:Pink-object"
1054 \begin_layout Plain Layout
1055 \begin_inset Graphics
1056 filename clipart/3D-structure-distort.pdf
1069 \begin_inset space \hfill{}
1073 \begin_inset Float figure
1078 \begin_layout Plain Layout
1079 \begin_inset Caption Standard
1081 \begin_layout Plain Layout
1082 \begin_inset CommandInset label
1096 \begin_layout Plain Layout
1097 \begin_inset Graphics
1098 filename clipart/Star-structure.pdf
1111 \begin_inset space \hfill{}
1117 \begin_layout Plain Layout
1118 \begin_inset Caption Standard
1120 \begin_layout Plain Layout
1121 \begin_inset CommandInset label
1123 name "fig:Two-distorted-images"
1127 Two distorted images.
1128 Both images are in the image settings group named
1129 \begin_inset Quotes eld
1133 \begin_inset Quotes erd
1149 \begin_layout Standard
1150 \begin_inset Newpage newpage
1156 \begin_layout Section
1158 \begin_inset CommandInset label
1160 name "sec:Image-Formats"
1165 \begin_inset Index idx
1168 \begin_layout Plain Layout
1175 \begin_inset Index idx
1178 \begin_layout Plain Layout
1179 Figures ! Image Formats
1187 \begin_layout Standard
1188 You can insert images in any known file format.
1189 But as explained in appendix
1190 \begin_inset space ~
1194 \begin_inset CommandInset ref
1196 reference "cha:Output-File-Formats"
1200 , each output document format allows only a few image formats.
1202 uses therefore the program
1206 in the background to convert the images to the right format.
1207 To increase your work flow by avoiding these conversions in the background,
1208 you could choose to use only the image formats that can directly be embedded
1209 in the output file format.
1210 The output file formats are explained in appendix
1211 \begin_inset space ~
1215 \begin_inset CommandInset ref
1217 reference "cha:Output-File-Formats"
1224 \begin_layout Standard
1225 Similar to fonts there are two types of image formats:
1228 \begin_layout Description
1230 \begin_inset space ~
1233 images consist of pixel values, often in a compressed form.
1234 They are therefore not fully scalable and look pixelated in large zooms.
1235 Well-known bitmap image formats are
1236 \begin_inset Quotes eld
1239 Graphics Interchange Format
1240 \begin_inset Quotes erd
1243 (GIF, file extension
1244 \begin_inset Quotes eld
1252 \begin_inset Quotes erd
1256 \begin_inset Index idx
1259 \begin_layout Plain Layout
1264 \begin_layout Plain Layout
1275 \begin_layout Plain Layout
1288 \begin_inset Quotes eld
1291 Portable Network Graphics
1292 \begin_inset Quotes erd
1295 (PNG, file extension
1296 \begin_inset Quotes eld
1304 \begin_inset Quotes erd
1308 \begin_inset Index idx
1311 \begin_layout Plain Layout
1316 \begin_layout Plain Layout
1327 \begin_layout Plain Layout
1340 \begin_inset Quotes eld
1343 Joint Photographic Experts Group
1344 \begin_inset Quotes erd
1347 (JPG, file extension
1348 \begin_inset Quotes eld
1356 \begin_inset Quotes erd
1360 \begin_inset Quotes eld
1368 \begin_inset Quotes erd
1372 \begin_inset Index idx
1375 \begin_layout Plain Layout
1380 \begin_layout Plain Layout
1391 \begin_layout Plain Layout
1406 \begin_layout Description
1408 \begin_inset space ~
1411 images consist of vectors and can therefore be scaled to any size without
1413 The scaling ability is necessary if you want to create presentations, because
1414 presentations are always scaled by the video projector.
1415 Scaling is also useful for online documents to let the user zoom into diagrams.
1416 \begin_inset Newline newline
1419 Well-known scalable image formats are
1420 \begin_inset Quotes eld
1423 Scalable Vector Graphics
1424 \begin_inset Quotes erd
1427 (SVG, file extension
1428 \begin_inset Quotes eld
1436 \begin_inset Quotes erd
1440 \begin_inset Index idx
1443 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1459 \begin_layout Plain Layout
1472 \begin_inset Quotes eld
1475 Encapsulated PostScript
1476 \begin_inset Quotes erd
1479 (EPS, file extension
1480 \begin_inset Quotes eld
1488 \begin_inset Quotes erd
1492 \begin_inset Index idx
1495 \begin_layout Plain Layout
1500 \begin_layout Plain Layout
1511 \begin_layout Plain Layout
1524 \begin_inset Quotes eld
1527 Portable Document Format
1528 \begin_inset Quotes erd
1531 (PDF, file extension
1532 \begin_inset Quotes eld
1540 \begin_inset Quotes erd
1544 \begin_inset Index idx
1547 \begin_layout Plain Layout
1554 \begin_inset Quotes eld
1558 \begin_inset Quotes erd
1561 (WMF, file extension
1562 \begin_inset Quotes eld
1570 \begin_inset Quotes erd
1574 \begin_inset Index idx
1577 \begin_layout Plain Layout
1582 \begin_layout Plain Layout
1593 \begin_layout Plain Layout
1607 \begin_inset Quotes eld
1611 \begin_inset Quotes erd
1614 , because you can convert any bitmap image to a PDF or EPS-image and the
1615 result will still be a bitmap image.
1616 In such cases only a header with the image properties is added to the original
1621 \begin_layout Plain Layout
1622 In the case of PDF, the original image is additionally compressed.
1628 The PDF-files generated by
1632 are for example bitmap images.
1635 \begin_layout Standard
1636 Normally it is not possible to convert a bitmap image into a scalable one,
1638 Only the image formats PDF and EPS can directly be embedded to PDF and
1639 PostScript output files, respectively.
1640 SVG and WMF-images are recalculated to bitmaps when the output file is
1641 generated because there is currently no adequate WMF/SVG
1642 \begin_inset Formula $\to$
1645 PDF/EPS converter available.
1648 \begin_layout Chapter
1650 \begin_inset Index idx
1653 \begin_layout Plain Layout
1662 \begin_layout Section
1664 \begin_inset Index idx
1667 \begin_layout Plain Layout
1668 Table ! Introduction
1676 \begin_layout Standard
1677 You can insert a table using either the toolbar button
1680 arg "tabular-insert"
1685 Insert\SpecialChar menuseparator
1689 The toolbar button offers you a graphical selection: move the mouse to
1690 set the column/row number of the table that should be created and then
1691 press a mouse button.
1692 When you use the menu to create a table, a dialog will appear, asking you
1693 for the number of rows and columns.
1694 \begin_inset Newline newline
1697 The default table has lines around any cell and the first row appears separated
1698 from the rest of the table.
1699 This separation occurs due to a double line: The cells of the first row
1700 have a line below them and the cells of the second row have a line above
1702 Here is an example table:
1705 \begin_layout Standard
1707 \begin_inset Tabular
1708 <lyxtabular version="3" rows="4" columns="4">
1709 <features tabularvalignment="middle">
1710 <column alignment="center" valignment="top">
1711 <column alignment="center" valignment="top">
1712 <column alignment="center" valignment="top">
1713 <column alignment="center" valignment="top">
1715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1718 \begin_layout Plain Layout
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1745 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1754 \begin_layout Plain Layout
1762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1765 \begin_layout Plain Layout
1780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1783 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1801 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1812 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1830 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1848 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1877 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1895 \begin_layout Plain Layout
1909 \begin_layout Section
1911 \begin_inset Index idx
1914 \begin_layout Plain Layout
1923 \begin_layout Standard
1924 You can alter a table by clicking on it with the right mouse button, which
1925 brings up the context menu.
1926 Under the menu entry
1930 you can adjust the settings of that cell and row/column respectively where
1931 the cursor is currently placed.
1934 More\SpecialChar menuseparator
1937 opens the table dialog where you can adjust more things.
1938 Most of the dialog options also work on selections.
1939 This means if you select more cells, columns or rows, the action is done
1940 for the whole selection.
1941 Note that there is a difference between selecting the
1945 of the cell, and the cell itself.
1946 \begin_inset Newline newline
1949 With the dialog option
1952 \begin_inset space ~
1957 every change you make in the dialog is directly applied.
1958 If you move the cursor to another table cell the dialog will then also
1959 be updated with the parameters of the new cell.
1960 If you change length values in the dialog you must press
1964 to get the change applied.
1965 \begin_inset Newline newline
1968 You can alter tables with the following tabs of the table dialog:
1971 \begin_layout Description
1973 \begin_inset space ~
1976 Settings Here you can set the table width
1977 \begin_inset Index idx
1980 \begin_layout Plain Layout
1986 , and the horizontal alignment and the width of the current column.
1990 \begin_inset space ~
1994 \begin_inset space ~
1999 is described in section
2000 \begin_inset space ~
2004 \begin_inset CommandInset ref
2006 reference "subsec:Special-Cell-Alignment"
2011 When you have set a width you can also adjust the vertical alignment of
2013 A given width will allow the cell to have line breaks and multiple paragraphs
2015 \begin_inset space \thinspace{}
2019 \begin_inset CommandInset ref
2021 reference "subsec:Multiple-Lines-in"
2026 If you set no width, the column is as wide as the content of its widest
2028 \begin_inset Newline newline
2031 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2033 \begin_inset space \thinspace{}
2037 \begin_inset CommandInset ref
2039 reference "subsec:Multicolumns"
2043 or the cells of one column as multirow cell, see sec.
2044 \begin_inset space \thinspace{}
2048 \begin_inset CommandInset ref
2050 reference "subsec:Multirows"
2055 \begin_inset Newline newline
2058 The rotate check boxes rotate the current cell, a selection, or the whole
2059 table counter-clockwise by 90
2060 \begin_inset space \thinspace{}
2064 The rotation is not shown within \SpecialChar LyX
2065 , only in the output.
2066 For more information see sec.
2067 \begin_inset space \thinspace{}
2071 \begin_inset CommandInset ref
2073 reference "sec:Rotated-Table-Cells"
2078 \begin_inset Newline newline
2082 \begin_inset Note Greyedout
2085 \begin_layout Plain Layout
2090 Not all DVI-viewers are able to display rotations.
2096 \begin_inset Newline newline
2099 The table-wide vertical alignment is used for tables within text lines:
2100 \begin_inset Newline newline
2103 A line with tables with different alignments:
2104 \begin_inset Tabular
2105 <lyxtabular version="3" rows="2" columns="2">
2106 <features tabularvalignment="top">
2107 <column alignment="center" valignment="top" width="0pt">
2108 <column alignment="center" valignment="top">
2110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2113 \begin_layout Plain Layout
2119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2122 \begin_layout Plain Layout
2139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2142 \begin_layout Plain Layout
2157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2160 \begin_layout Plain Layout
2172 \begin_inset Tabular
2173 <lyxtabular version="3" rows="2" columns="2">
2174 <features tabularvalignment="middle">
2175 <column alignment="center" valignment="top">
2176 <column alignment="center" valignment="top">
2178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2181 \begin_layout Plain Layout
2187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2190 \begin_layout Plain Layout
2207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2210 \begin_layout Plain Layout
2225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2228 \begin_layout Plain Layout
2240 \begin_inset Tabular
2241 <lyxtabular version="3" rows="2" columns="2">
2242 <features tabularvalignment="bottom">
2243 <column alignment="center" valignment="top" width="0pt">
2244 <column alignment="center" valignment="top">
2246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2249 \begin_layout Plain Layout
2255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2258 \begin_layout Plain Layout
2275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2278 \begin_layout Plain Layout
2293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2296 \begin_layout Plain Layout
2308 \begin_inset Newline newline
2311 It is also possible to enter a \SpecialChar LaTeX
2312 -argument which is needed for special table
2313 formattings, see sec.
2314 \begin_inset space \thinspace{}
2318 \begin_inset CommandInset ref
2320 reference "subsec:Multicolumn-Calculations"
2325 \begin_inset CommandInset ref
2327 reference "sec:Colored-Tables"
2334 \begin_layout Description
2335 Borders In this tab you can add and delete border lines for the current
2337 \begin_inset Newline newline
2340 Using the style option
2344 will convert the table to a formal table as described in sec.
2345 \begin_inset space \thinspace{}
2349 \begin_inset CommandInset ref
2351 reference "sec:Formal-Tables"
2356 \begin_inset Newline newline
2359 You can also add space here to table rows as described in sec.
2360 \begin_inset space \thinspace{}
2364 \begin_inset CommandInset ref
2366 reference "subsec:Row-Spacing"
2373 \begin_layout Description
2375 \begin_inset space ~
2378 table This tab is to make a table a multi-page table that can run over several
2381 \begin_inset space ~
2385 \begin_inset CommandInset ref
2387 reference "sec:Multi-page-Tables"
2392 \begin_inset CommandInset ref
2394 reference "sec:Special-Longtable-Issues"
2398 describe the multi-page table features in detail.
2401 \begin_layout Section
2403 \begin_inset Index idx
2406 \begin_layout Plain Layout
2415 \begin_layout Standard
2416 The table toolbar is an alternative to the table dialog to be able to alter
2418 It should normally appear at the bottom of \SpecialChar LyX
2419 's main window when the cursor
2421 You can alternatively switch it on to appear always, by right-clicking
2426 \begin_layout Standard
2427 The toolbar has the following icons:
2430 \begin_layout Labeling
2431 \labelwidthstring 00.00.0000
2434 arg "tabular-feature append-row"
2437 adds a row below the current cell or selection
2440 \begin_layout Labeling
2441 \labelwidthstring 00.00.0000
2444 arg "tabular-feature append-column"
2447 adds a column right beside the current cell or selection
2450 \begin_layout Labeling
2451 \labelwidthstring 00.00.0000
2454 arg "tabular-feature delete-row"
2457 deletes the current row or selection
2460 \begin_layout Labeling
2461 \labelwidthstring 00.00.0000
2464 arg "tabular-feature delete-column"
2467 deletes the current column or selection
2470 \begin_layout Labeling
2471 \labelwidthstring 00.00.0000
2474 arg "tabular-feature move-row-up"
2480 \begin_layout Labeling
2481 \labelwidthstring 00.00.0000
2484 arg "tabular-feature move-column-left"
2487 moves the column to the left
2490 \begin_layout Labeling
2491 \labelwidthstring 00.00.0000
2494 arg "tabular-feature move-row-down"
2500 \begin_layout Labeling
2501 \labelwidthstring 00.00.0000
2504 arg "tabular-feature move-column-right"
2507 moves the column to the right
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2514 arg "tabular-feature toggle-line-top"
2517 adds a line at the top of the current cell / row or of a selection
2520 \begin_layout Labeling
2521 \labelwidthstring 00.00.0000
2524 arg "tabular-feature toggle-line-bottom"
2527 adds a line at the bottom of the current cell / row or of a selection
2530 \begin_layout Labeling
2531 \labelwidthstring 00.00.0000
2534 arg "tabular-feature toggle-line-left"
2537 adds a line at the left side of the current cell / row or of a selection
2540 \begin_layout Labeling
2541 \labelwidthstring 00.00.0000
2544 arg "tabular-feature toggle-line-right"
2547 adds a line at the right side of the current cell / row or of a selection
2550 \begin_layout Labeling
2551 \labelwidthstring 00.00.0000
2554 arg "tabular-feature set-all-lines"
2557 adds lines around the current or selected cells - if the current cell no
2558 multicolumn cell this also affects the current row and column
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2565 arg "tabular-feature unset-all-lines"
2568 deletes all lines of the current or selected cells - if the current cell
2569 no multicolumn cell this also affects the current row and column
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "tabular-feature m-align-left"
2579 left-aligns the content of the current cell / column
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "tabular-feature m-align-center"
2589 centers the content of the current cell / column horizontally
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "tabular-feature m-align-right"
2599 right-aligns the content of the current cell / column
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "tabular-feature align-decimal"
2609 aligns the content of the current column at a character
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "tabular-feature m-valign-top"
2619 aligns the content of the current cell vertically to the top
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "tabular-feature m-valign-middle"
2629 centers the content of the current cell vertically
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "tabular-feature m-valign-bottom"
2639 aligns the content of the current cell vertically to the bottom
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "tabular-feature set-rotate-cell"
2649 rotates the current cell or selection counter-clockwise by 90°
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "tabular-feature set-rotate-tabular"
2659 rotates the whole table counter-clockwise by 90°
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2666 arg "tabular-feature multicolumn"
2669 sets the current cell or selection as a multicolumn
2672 \begin_layout Labeling
2673 \labelwidthstring 00.00.0000
2676 arg "tabular-feature multirow"
2679 sets the current cell or selection as a multirow
2682 \begin_layout Standard
2683 \begin_inset Note Greyedout
2686 \begin_layout Plain Layout
2691 For the output the vertical alignment of the first cell in a row is used
2692 for all following cells in the row.
2700 \begin_layout Section
2702 \begin_inset Index idx
2705 \begin_layout Plain Layout
2714 \begin_layout Standard
2715 In addition to the table dialog and toolbar, the menu
2717 Edit\SpecialChar menuseparator
2720 allows you to add and delete border lines for the current row/column and
2721 to set the current selection as multicolumn.
2722 The menu is only available when the cursor is inside a table.
2725 \begin_layout Section
2727 \begin_inset CommandInset label
2729 name "sec:Table-Floats"
2734 \begin_inset Index idx
2737 \begin_layout Plain Layout
2744 \begin_inset Index idx
2747 \begin_layout Plain Layout
2756 \begin_layout Standard
2757 For general explanations about floats, have a look at section
2758 \begin_inset space ~
2762 \begin_inset CommandInset ref
2764 reference "sec:FloatIntroduction"
2771 \begin_layout Standard
2772 \begin_inset Float table
2778 \begin_layout Plain Layout
2779 \begin_inset Caption Standard
2781 \begin_layout Plain Layout
2782 \begin_inset CommandInset label
2784 name "tab:a table float"
2796 \begin_layout Plain Layout
2798 \begin_inset Tabular
2799 <lyxtabular version="3" rows="3" columns="3">
2800 <features tabularvalignment="middle">
2801 <column alignment="center" valignment="top" width="0pt">
2802 <column alignment="center" valignment="top" width="0pt">
2803 <column alignment="center" valignment="top" width="0pt">
2805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2808 \begin_layout Plain Layout
2823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2826 \begin_layout Plain Layout
2841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2844 \begin_layout Plain Layout
2861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2864 \begin_layout Plain Layout
2879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2882 \begin_layout Plain Layout
2897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2900 \begin_layout Plain Layout
2917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2920 \begin_layout Plain Layout
2930 \begin_inset Formula $\int x^{2}dx$
2938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2941 \begin_layout Plain Layout
2951 \begin_inset Formula $\left[\begin{array}{cc}
2962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2965 \begin_layout Plain Layout
2975 \begin_inset Formula $1+1=2$
2996 \begin_layout Standard
2997 Table floats can be inserted using the menu
2999 Insert\SpecialChar menuseparator
3000 Float\SpecialChar menuseparator
3003 or the toolbar button
3006 arg "float-insert table"
3012 \begin_layout Standard
3013 The float appears as a collapsible box with a caption that has the label
3015 \begin_inset Quotes eld
3019 \begin_inset space ~
3023 \begin_inset Quotes erd
3026 (# is the actual table number).
3027 You can insert tables in the float above or below the caption.
3030 \begin_layout Standard
3032 \begin_inset space ~
3036 \begin_inset CommandInset ref
3038 reference "tab:a table float"
3042 is an example table within a table float.
3045 \begin_layout Standard
3046 Having the caption above the table is the common rule that is unfortunately
3047 not supported in \SpecialChar LaTeX
3048 's standard classes.
3049 This means that, if you are using the document classes
3065 , there will be no space between the caption and the table.
3066 To insert the needed space, add the following option to the load command
3067 of the \SpecialChar LaTeX
3073 \begin_inset Index idx
3076 \begin_layout Plain Layout
3083 in your document preamble:
3087 \begin_layout Plain Layout
3088 For more information have a look at section
3089 \begin_inset space ~
3093 \begin_inset CommandInset ref
3095 reference "sec:Caption-Placement"
3107 \begin_layout Standard
3113 \begin_layout Standard
3118 , which is described in section
3119 \begin_inset space ~
3123 \begin_inset CommandInset ref
3125 reference "sec:Caption-Formatting"
3129 , is used to adjust the caption format.
3132 \begin_layout Standard
3133 \begin_inset Index idx
3136 \begin_layout Plain Layout
3137 References ! to Tables
3142 Tables can be cross-referenced in the text by referencing their label.
3143 To do this insert a label in the caption using the menu
3145 Insert\SpecialChar menuseparator
3148 or the toolbar button
3155 You can now refer to the label using the menu
3157 Insert\SpecialChar menuseparator
3159 \begin_inset space ~
3164 or the toolbar button
3167 arg "dialog-show-new-inset ref"
3171 \begin_inset Newline newline
3174 Referencing is explained in detail in section
3175 \begin_inset space ~
3179 \begin_inset CommandInset ref
3181 reference "sec:Referencing-Floats"
3188 \begin_layout Section
3194 \begin_inset CommandInset label
3196 name "sec:Multi-page-Tables"
3201 \begin_inset Index idx
3204 \begin_layout Plain Layout
3211 \begin_inset Index idx
3214 \begin_layout Plain Layout
3215 Table ! Multi-page Table
3223 \begin_layout Standard
3224 If the table is too long to fit on one page, you can use the option
3227 \begin_inset space ~
3235 \begin_inset space ~
3240 of the table dialog to split the table automatically over more pages.
3241 Doing this enables the following options:
3244 \begin_layout Description
3245 Header: The current row is defined to be a header row that appears on all
3246 pages of the multi-page table; except for the first page, if
3249 \begin_inset space ~
3255 This is therefore called the main header.
3258 \begin_layout Description
3260 \begin_inset space ~
3263 header: The current row is defined to be a header row that appears on the
3264 first page of the multi-page table.
3267 \begin_layout Description
3268 Footer: The current row is defined to be a footer row that appears on all
3269 pages of the multi-page table; except for the last page, if
3272 \begin_inset space ~
3280 \begin_layout Description
3282 \begin_inset space ~
3285 footer: The current row is defined to be a footer row that appears on the
3286 last page of the multi-page table.
3289 \begin_layout Description
3290 Caption: The current row contains the table caption.
3291 The row is reset as single column and a caption is inserted.
3292 More about multi-page table captions is explained in sec.
3293 \begin_inset space \thinspace{}
3297 \begin_inset CommandInset ref
3299 reference "subsec:Multi-page-Table-Captions"
3306 \begin_layout Standard
3307 You can also specify a row where the table is split.
3308 See the following multi-page table to see how it works:
3311 \begin_layout Standard
3313 \begin_inset Tabular
3314 <lyxtabular version="3" rows="69" columns="3">
3315 <features islongtable="true" longtabularalignment="center">
3316 <column alignment="left" valignment="top" width="0cm">
3317 <column alignment="left" valignment="top" width="0pt">
3318 <column alignment="center" valignment="top" width="0pt">
3319 <row endfirsthead="true">
3320 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3323 \begin_layout Plain Layout
3326 Example Phone List (ignore the names)
3331 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3334 \begin_layout Plain Layout
3340 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3343 \begin_layout Plain Layout
3350 <row endfirsthead="true">
3351 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3354 \begin_layout Plain Layout
3362 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3365 \begin_layout Plain Layout
3371 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3374 \begin_layout Plain Layout
3383 <row endhead="true">
3384 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3398 \begin_layout Plain Layout
3404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Plain Layout
3414 <row endhead="true">
3415 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3447 <row endfoot="true">
3448 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3451 \begin_layout Plain Layout
3452 continued on next page
3457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" usebox="none">
3491 \begin_layout Plain Layout
3497 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" usebox="none">
3522 \begin_layout Plain Layout
3528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" usebox="none">
3553 \begin_layout Plain Layout
3559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" usebox="none">
3584 \begin_layout Plain Layout
3590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" usebox="none">
3615 \begin_layout Plain Layout
3621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3624 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" usebox="none">
3646 \begin_layout Plain Layout
3652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3655 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" usebox="none">
3677 \begin_layout Plain Layout
3683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3686 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" usebox="none">
3708 \begin_layout Plain Layout
3714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3717 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" usebox="none">
3739 \begin_layout Plain Layout
3745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3748 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" usebox="none">
3770 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3779 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" usebox="none">
3801 \begin_layout Plain Layout
3807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3810 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" usebox="none">
3832 \begin_layout Plain Layout
3838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3841 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" usebox="none">
3863 \begin_layout Plain Layout
3869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3872 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" usebox="none">
3894 \begin_layout Plain Layout
3900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3903 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" usebox="none">
3925 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3934 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" usebox="none">
3956 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3965 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" usebox="none">
3987 \begin_layout Plain Layout
3993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3996 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" usebox="none">
4018 \begin_layout Plain Layout
4024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4027 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" usebox="none">
4080 \begin_layout Plain Layout
4086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4089 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" usebox="none">
4111 \begin_layout Plain Layout
4117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4120 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" usebox="none">
4142 \begin_layout Plain Layout
4148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4151 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4182 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" usebox="none">
4204 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4213 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" usebox="none">
4235 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4244 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" usebox="none">
4266 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4275 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" usebox="none">
4297 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4306 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" usebox="none">
4328 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4337 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" usebox="none">
4359 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4368 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" usebox="none">
4390 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4399 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4421 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4430 \begin_layout Plain Layout
4438 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4447 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Plain Layout
4456 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" usebox="none">
4481 \begin_layout Plain Layout
4487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4498 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" usebox="none">
4512 \begin_layout Plain Layout
4518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Plain Layout
4529 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="center" valignment="top" usebox="none">
4574 \begin_layout Plain Layout
4580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Plain Layout
4591 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="center" valignment="top" usebox="none">
4605 \begin_layout Plain Layout
4611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4614 \begin_layout Plain Layout
4622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="center" valignment="top" usebox="none">
4636 \begin_layout Plain Layout
4642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4645 \begin_layout Plain Layout
4653 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="center" valignment="top" usebox="none">
4667 \begin_layout Plain Layout
4673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4676 \begin_layout Plain Layout
4684 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="center" valignment="top" usebox="none">
4698 \begin_layout Plain Layout
4704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4707 \begin_layout Plain Layout
4715 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="center" valignment="top" usebox="none">
4729 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4738 \begin_layout Plain Layout
4746 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="center" valignment="top" usebox="none">
4760 \begin_layout Plain Layout
4766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4769 \begin_layout Plain Layout
4777 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="center" valignment="top" usebox="none">
4791 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4800 \begin_layout Plain Layout
4808 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="center" valignment="top" usebox="none">
4822 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4831 \begin_layout Plain Layout
4839 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="center" valignment="top" usebox="none">
4853 \begin_layout Plain Layout
4859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4862 \begin_layout Plain Layout
4870 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="center" valignment="top" usebox="none">
4884 \begin_layout Plain Layout
4890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4893 \begin_layout Plain Layout
4901 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="center" valignment="top" usebox="none">
4915 \begin_layout Plain Layout
4921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4924 \begin_layout Plain Layout
4932 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="center" valignment="top" usebox="none">
4946 \begin_layout Plain Layout
4952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4955 \begin_layout Plain Layout
4963 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="center" valignment="top" usebox="none">
4977 \begin_layout Plain Layout
4983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4986 \begin_layout Plain Layout
4994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="center" valignment="top" usebox="none">
5008 \begin_layout Plain Layout
5014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5017 \begin_layout Plain Layout
5025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="center" valignment="top" usebox="none">
5039 \begin_layout Plain Layout
5045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5048 \begin_layout Plain Layout
5056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="center" valignment="top" usebox="none">
5070 \begin_layout Plain Layout
5076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5079 \begin_layout Plain Layout
5087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="center" valignment="top" usebox="none">
5101 \begin_layout Plain Layout
5107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5110 \begin_layout Plain Layout
5118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="center" valignment="top" usebox="none">
5132 \begin_layout Plain Layout
5138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5141 \begin_layout Plain Layout
5149 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="center" valignment="top" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5172 \begin_layout Plain Layout
5180 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="center" valignment="top" usebox="none">
5194 \begin_layout Plain Layout
5200 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5203 \begin_layout Plain Layout
5211 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="center" valignment="top" usebox="none">
5225 \begin_layout Plain Layout
5231 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5234 \begin_layout Plain Layout
5242 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="center" valignment="top" usebox="none">
5256 \begin_layout Plain Layout
5262 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5265 \begin_layout Plain Layout
5273 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="center" valignment="top" usebox="none">
5287 \begin_layout Plain Layout
5293 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5296 \begin_layout Plain Layout
5304 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="center" valignment="top" usebox="none">
5318 \begin_layout Plain Layout
5324 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5327 \begin_layout Plain Layout
5335 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="center" valignment="top" usebox="none">
5349 \begin_layout Plain Layout
5355 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5358 \begin_layout Plain Layout
5366 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="center" valignment="top" usebox="none">
5380 \begin_layout Plain Layout
5386 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5389 \begin_layout Plain Layout
5397 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5411 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5420 \begin_layout Plain Layout
5427 <row endlastfoot="true">
5428 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5431 \begin_layout Plain Layout
5437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5440 \begin_layout Plain Layout
5446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5449 \begin_layout Plain Layout
5464 \begin_layout Plain Layout
5468 addtocounter{table}{-1}
5474 \begin_inset Note Note
5477 \begin_layout Plain Layout
5478 See the first greyed-out note in section
5479 \begin_inset space ~
5483 \begin_inset CommandInset ref
5485 reference "subsec:Multi-page-Table-Captions"
5489 for an explanation of this command.
5497 \begin_layout Subsection
5498 Footnotes in Multi-page tables
5499 \begin_inset CommandInset label
5501 name "subsec:Footnotes-in-Multi-page"
5506 \begin_inset Index idx
5509 \begin_layout Plain Layout
5510 Table ! Multi-page Table ! Footnotes
5518 \begin_layout Standard
5519 Footnotes can be inserted to every Multi-page table cell.
5520 They appear at the bottom of the page where the table cell with the footnote
5523 \begin_inset space ~
5527 \begin_inset CommandInset ref
5529 reference "tab:DiffCaptions"
5533 has for example a footnote.
5536 \begin_layout Subsection
5537 Multi-page Table Alignment
5538 \begin_inset Index idx
5541 \begin_layout Plain Layout
5542 Table ! Multi-page Table ! Alignment
5550 \begin_layout Standard
5551 The horizontal alignment of multi-page tables can be set in the table settings
5553 For left- and right-alignment the table will be directly at the page border.
5554 To add space between the table and the border one has to set the alignment
5555 to center and change the value of the \SpecialChar LaTeX
5568 by inserting this line as \SpecialChar TeX
5569 Code before the multi-page table:
5572 \begin_layout Standard
5582 \begin_layout Standard
5583 The value can have any of the units listed in Table
5584 \begin_inset space ~
5588 \begin_inset CommandInset ref
5590 reference "tab:Units"
5601 controls the horizontal distance from the left page border to the multi-page
5608 the distance from the right side.
5609 The default value for both lengths is
5615 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5619 \begin_layout Standard
5620 The following multi-page table was centered and
5636 \begin_layout Plain Layout
5652 \begin_layout Standard
5653 \begin_inset Tabular
5654 <lyxtabular version="3" rows="5" columns="5">
5655 <features islongtable="true" longtabularalignment="center">
5656 <column alignment="center" valignment="top">
5657 <column alignment="center" valignment="top" width="0pt">
5658 <column alignment="center" valignment="top">
5659 <column alignment="center" valignment="top">
5660 <column alignment="center" valignment="top">
5662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5665 \begin_layout Plain Layout
5671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5674 \begin_layout Plain Layout
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5683 \begin_layout Plain Layout
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Plain Layout
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5701 \begin_layout Plain Layout
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Plain Layout
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5748 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Plain Layout
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Plain Layout
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5795 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5842 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5889 \begin_layout Plain Layout
5904 \begin_layout Plain Layout
5921 \begin_layout Plain Layout
5925 addtocounter{table}{-1}
5931 \begin_inset Note Note
5934 \begin_layout Plain Layout
5935 See the first greyed-out note in section
5936 \begin_inset space ~
5940 \begin_inset CommandInset ref
5942 reference "subsec:Multi-page-Table-Captions"
5946 for an explanation of this command.
5954 \begin_layout Subsection
5955 Multi-page Table Captions
5956 \begin_inset Index idx
5959 \begin_layout Plain Layout
5960 Table ! Multi-page Table ! Captions
5966 \begin_inset CommandInset label
5968 name "subsec:Multi-page-Table-Captions"
5975 \begin_layout Standard
5976 A multi-page table cannot be put into a table float because floats can only
5978 But the caption environment of floats can also be used for multi-page tables
5979 when you use the multi-page table option
5983 as described in sec.
5984 \begin_inset space \thinspace{}
5988 \begin_inset CommandInset ref
5990 reference "sec:Multi-page-Tables"
5995 Only one table row should contain a caption, either a header or a footer
5999 \begin_layout Standard
6000 Here is a short multi-page table to see how it works:
6003 \begin_layout Standard
6004 \begin_inset Tabular
6005 <lyxtabular version="3" rows="6" columns="5">
6006 <features islongtable="true" longtabularalignment="center">
6007 <column alignment="center" valignment="top">
6008 <column alignment="center" valignment="top">
6009 <column alignment="center" valignment="top">
6010 <column alignment="center" valignment="top">
6011 <column alignment="center" valignment="top">
6012 <row endfirsthead="true" caption="true">
6013 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6016 \begin_layout Plain Layout
6017 \begin_inset Caption Standard
6019 \begin_layout Plain Layout
6020 Multi-page table with caption
6021 \begin_inset Argument 1
6024 \begin_layout Plain Layout
6040 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6043 \begin_layout Plain Layout
6049 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6052 \begin_layout Plain Layout
6058 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6061 \begin_layout Plain Layout
6067 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6070 \begin_layout Plain Layout
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Plain Layout
6114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6117 \begin_layout Plain Layout
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Plain Layout
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Plain Layout
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6155 \begin_layout Plain Layout
6161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6164 \begin_layout Plain Layout
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6211 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6258 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6305 \begin_layout Plain Layout
6319 \begin_layout Standard
6320 \begin_inset VSpace medskip
6324 \begin_inset Note Greyedout
6327 \begin_layout Plain Layout
6331 \begin_inset space ~
6336 The table number is increased for every multi-page table, even if you did
6337 not set a caption for it.
6338 For this reason you could have the case that e.
6339 \begin_inset space \thinspace{}
6343 \begin_inset space \space{}
6347 \begin_inset space ~
6351 \begin_inset space ~
6354 2.1 in the list of tables if there are two multi-page tables without captions.
6355 To avoid this you can add the following command in \SpecialChar TeX
6356 Code after every multi-page
6357 table without a caption:
6360 \begin_layout Plain Layout
6365 addtocounter{table}{-1}
6368 \begin_layout Plain Layout
6369 This is not needed when none of your multi-page tables has a caption and
6370 you add the following code to the document preamble:
6373 \begin_layout Plain Layout
6383 \begin_inset Newline newline
6394 addtocounter{table}{-1}}
6402 \begin_layout Standard
6403 \begin_inset Note Greyedout
6406 \begin_layout Plain Layout
6410 \begin_inset space ~
6420 \begin_inset Index idx
6423 \begin_layout Plain Layout
6425 -packages ! hyperref
6438 dialog to link cross-references, the link to a multi-page table caption
6439 will always point to the beginning of the document.
6447 \begin_layout Subsubsection
6448 References to multi-page tables
6449 \begin_inset Index idx
6452 \begin_layout Plain Layout
6453 Table ! Multi-page Table ! References
6461 \begin_layout Standard
6462 \begin_inset Tabular
6463 <lyxtabular version="3" rows="6" columns="5">
6464 <features islongtable="true" longtabularalignment="center">
6465 <column alignment="center" valignment="top">
6466 <column alignment="center" valignment="top">
6467 <column alignment="center" valignment="top">
6468 <column alignment="center" valignment="top">
6469 <column alignment="center" valignment="top">
6470 <row endfirsthead="true" caption="true">
6471 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6474 \begin_layout Plain Layout
6475 \begin_inset Caption Standard
6477 \begin_layout Plain Layout
6478 Referenced multi-page table
6479 \begin_inset CommandInset label
6481 name "tab:Referenced-multi-page-table"
6495 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6498 \begin_layout Plain Layout
6504 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6507 \begin_layout Plain Layout
6513 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6516 \begin_layout Plain Layout
6522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6525 \begin_layout Plain Layout
6533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6536 \begin_layout Plain Layout
6542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6545 \begin_layout Plain Layout
6551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6554 \begin_layout Plain Layout
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6572 \begin_layout Plain Layout
6580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6583 \begin_layout Plain Layout
6589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6592 \begin_layout Plain Layout
6598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6601 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6619 \begin_layout Plain Layout
6627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6648 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6666 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6713 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6742 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6760 \begin_layout Plain Layout
6774 \begin_layout Standard
6775 To reference a multi-page table, insert a label into the caption.
6778 \begin_layout Standard
6779 This is a reference to Table
6780 \begin_inset space ~
6784 \begin_inset CommandInset ref
6786 reference "tab:Referenced-multi-page-table"
6793 \begin_layout Standard
6794 The caption layout can be set together with all other captions of your document
6795 using the \SpecialChar LaTeX
6801 \begin_inset Index idx
6804 \begin_layout Plain Layout
6812 \begin_inset space ~
6816 \begin_inset CommandInset ref
6818 reference "sec:Caption-Formatting"
6825 \begin_layout Subsubsection
6827 \begin_inset Index idx
6830 \begin_layout Plain Layout
6831 Table ! Multi-page Table ! Caption Width
6839 \begin_layout Standard
6840 The maximal width of caption lines is defined by the length
6847 Its default value is 4
6848 \begin_inset space \thinspace{}
6852 To change it add the following command to your document preamble or as
6854 Code into your document before the multi-page table that should be affected
6857 \begin_layout Standard
6867 \begin_layout Standard
6872 can have one of the units listed in appendix
6873 \begin_inset space ~
6877 \begin_inset CommandInset ref
6879 reference "cha:Units-available-in"
6886 \begin_layout Standard
6887 The following tables show the difference:
6890 \begin_layout Standard
6891 \begin_inset Tabular
6892 <lyxtabular version="3" rows="6" columns="5">
6893 <features islongtable="true" longtabularalignment="center">
6894 <column alignment="center" valignment="top">
6895 <column alignment="center" valignment="top">
6896 <column alignment="center" valignment="top">
6897 <column alignment="center" valignment="top">
6898 <column alignment="center" valignment="top">
6899 <row endfirsthead="true" caption="true">
6900 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6903 \begin_layout Plain Layout
6904 \begin_inset Caption Standard
6906 \begin_layout Plain Layout
6907 Long full title with default width long full title with default width long
6908 full title with default width
6909 \begin_inset Argument 1
6912 \begin_layout Plain Layout
6913 caption with default width
6928 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6931 \begin_layout Plain Layout
6937 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6940 \begin_layout Plain Layout
6946 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6949 \begin_layout Plain Layout
6955 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6958 \begin_layout Plain Layout
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6969 \begin_layout Plain Layout
6975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6978 \begin_layout Plain Layout
6984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6987 \begin_layout Plain Layout
6993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6996 \begin_layout Plain Layout
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7005 \begin_layout Plain Layout
7013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7016 \begin_layout Plain Layout
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7025 \begin_layout Plain Layout
7031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7034 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7052 \begin_layout Plain Layout
7060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7063 \begin_layout Plain Layout
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7072 \begin_layout Plain Layout
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7081 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7099 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Plain Layout
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7119 \begin_layout Plain Layout
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7128 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7146 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7157 \begin_layout Plain Layout
7163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7166 \begin_layout Plain Layout
7172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7175 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7193 \begin_layout Plain Layout
7207 \begin_layout Standard
7211 \begin_layout Plain Layout
7223 \begin_inset Tabular
7224 <lyxtabular version="3" rows="6" columns="5">
7225 <features islongtable="true" longtabularalignment="center">
7226 <column alignment="center" valignment="top">
7227 <column alignment="center" valignment="top">
7228 <column alignment="center" valignment="top">
7229 <column alignment="center" valignment="top">
7230 <column alignment="center" valignment="top">
7231 <row endfirsthead="true" caption="true">
7232 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7235 \begin_layout Plain Layout
7236 \begin_inset Caption Standard
7238 \begin_layout Plain Layout
7239 Long full title with width set to 5
7240 \begin_inset space \thinspace{}
7243 cm 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{}
7252 \begin_inset Argument 1
7255 \begin_layout Plain Layout
7257 \begin_inset space \thinspace{}
7261 \begin_inset space \thinspace{}
7265 \begin_inset space \thinspace{}
7283 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7286 \begin_layout Plain Layout
7292 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7295 \begin_layout Plain Layout
7301 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7304 \begin_layout Plain Layout
7310 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7313 \begin_layout Plain Layout
7321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7324 \begin_layout Plain Layout
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7333 \begin_layout Plain Layout
7339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7342 \begin_layout Plain Layout
7348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7351 \begin_layout Plain Layout
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7360 \begin_layout Plain Layout
7368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7371 \begin_layout Plain Layout
7377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7380 \begin_layout Plain Layout
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7389 \begin_layout Plain Layout
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7398 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7407 \begin_layout Plain Layout
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Plain Layout
7424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7427 \begin_layout Plain Layout
7433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7436 \begin_layout Plain Layout
7442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7454 \begin_layout Plain Layout
7462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7465 \begin_layout Plain Layout
7471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7474 \begin_layout Plain Layout
7480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7483 \begin_layout Plain Layout
7489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7492 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7501 \begin_layout Plain Layout
7509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7521 \begin_layout Plain Layout
7527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7530 \begin_layout Plain Layout
7536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7539 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7548 \begin_layout Plain Layout
7562 \begin_layout Standard
7566 \begin_layout Plain Layout
7580 \begin_layout Standard
7581 \begin_inset Note Greyedout
7584 \begin_layout Plain Layout
7589 When the \SpecialChar LaTeX
7595 \begin_inset Index idx
7598 \begin_layout Plain Layout
7605 is used, as in this document, the full page width is used for the caption
7606 when you use the default value of 4
7607 \begin_inset space \thinspace{}
7617 To get in this case exactly a 4
7618 \begin_inset space \thinspace{}
7621 in wide caption, you can either use a value slightly different from 4.0
7622 \begin_inset space \thinspace{}
7626 \begin_inset space \thinspace{}
7630 \begin_inset space \space{}
7634 \begin_inset space \thinspace{}
7637 in, or the \SpecialChar LaTeX
7642 captionsetup{width=value}
7644 that is provided by the
7656 \begin_layout Subsubsection
7657 Different Captions for Table Pages
7658 \begin_inset Index idx
7661 \begin_layout Plain Layout
7662 Table ! Multi-page Table ! Different Captions for Pages
7670 \begin_layout Standard
7671 When the table captions for the following pages should differ from the one
7672 of the first table page, mark a empty row as header which contains a caption.
7673 Then right-click on the caption and select in the context menu
7676 \begin_inset space ~
7683 \begin_inset space ~
7687 \begin_inset CommandInset ref
7689 reference "tab:DiffCaptions"
7693 is an example of a multi-page table with different heading where the second
7694 caption does not include the table number.
7697 \begin_layout Standard
7699 \begin_inset Tabular
7700 <lyxtabular version="3" rows="59" columns="3">
7701 <features islongtable="true" longtabularalignment="center">
7702 <column alignment="left" valignment="top" width="0cm">
7703 <column alignment="left" valignment="top" width="0pt">
7704 <column alignment="center" valignment="top" width="0pt">
7705 <row endfirsthead="true" caption="true">
7706 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7709 \begin_layout Plain Layout
7710 \begin_inset Caption Standard
7712 \begin_layout Plain Layout
7714 \begin_inset CommandInset label
7716 name "tab:DiffCaptions"
7721 \begin_inset Argument 1
7724 \begin_layout Plain Layout
7740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7743 \begin_layout Plain Layout
7749 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7752 \begin_layout Plain Layout
7759 <row endfirsthead="true">
7760 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7763 \begin_layout Plain Layout
7766 Example Phone List (ignore the names)
7771 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7774 \begin_layout Plain Layout
7780 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7783 \begin_layout Plain Layout
7790 <row endfirsthead="true">
7791 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7794 \begin_layout Plain Layout
7802 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7805 \begin_layout Plain Layout
7811 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Plain Layout
7823 <row endhead="true" caption="true">
7824 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7827 \begin_layout Plain Layout
7828 \begin_inset Caption Unnumbered
7830 \begin_layout Plain Layout
7831 Continued Example Phone List
7841 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7844 \begin_layout Plain Layout
7850 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7853 \begin_layout Plain Layout
7860 <row endhead="true">
7861 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7864 \begin_layout Plain Layout
7872 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7875 \begin_layout Plain Layout
7881 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7891 <row endhead="true">
7892 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7906 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7924 <row endfoot="true">
7925 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7928 \begin_layout Plain Layout
7929 continued on next page
7934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7937 \begin_layout Plain Layout
7943 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7965 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7968 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7999 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8030 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8061 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8092 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8123 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8400 \begin_layout Plain Layout
8411 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8414 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8442 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8445 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8476 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8507 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8538 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8569 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8600 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8631 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8693 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8702 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8724 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8755 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8786 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8817 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8848 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8879 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8910 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8936 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8939 \begin_layout Plain Layout
8945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8967 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8970 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9032 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9063 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9094 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9125 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9156 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9187 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9218 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9249 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9280 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9311 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9320 \begin_layout Plain Layout
9328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9342 \begin_layout Plain Layout
9348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9351 \begin_layout Plain Layout
9359 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9373 \begin_layout Plain Layout
9379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9382 \begin_layout Plain Layout
9390 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9404 \begin_layout Plain Layout
9410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9413 \begin_layout Plain Layout
9421 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9435 \begin_layout Plain Layout
9441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9444 \begin_layout Plain Layout
9452 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9466 \begin_layout Plain Layout
9472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9475 \begin_layout Plain Layout
9483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9497 \begin_layout Plain Layout
9503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9506 \begin_layout Plain Layout
9514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9528 \begin_layout Plain Layout
9534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9537 \begin_layout Plain Layout
9545 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9559 \begin_layout Plain Layout
9565 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9568 \begin_layout Plain Layout
9582 \begin_layout Section
9583 Special Multi-page Table Issues
9584 \begin_inset CommandInset label
9586 name "sec:Special-Longtable-Issues"
9593 \begin_layout Subsection
9594 Multi-page Table Calculation
9595 \begin_inset Index idx
9598 \begin_layout Plain Layout
9599 Table ! Multi-page Table ! Calculation
9607 \begin_layout Standard
9609 calculates the height of table pages and their page breaks using so called
9611 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9613 The default value was historically set to only 20
9614 \begin_inset space ~
9618 If you are using multi-page tables with many pages this may slow down the
9619 creation of your document.
9620 You can safely increase the chunk size to values of 100
9621 \begin_inset space \thinspace{}
9625 \begin_inset space \thinspace{}
9628 1000 by adding this command line to your document preamble:
9631 \begin_layout Standard
9636 setcounter{LTchunksize}{100}
9639 \begin_layout Subsection
9640 Floats and Multi-page Tables
9641 \begin_inset Index idx
9644 \begin_layout Plain Layout
9645 Table ! Multi-page Table ! Floats
9653 \begin_layout Standard
9654 There might be problems when a float appears on the same page where a multi-page
9656 To avoid such a situation, insert a
9657 \begin_inset Quotes eld
9661 \begin_inset Quotes erd
9666 Insert\SpecialChar menuseparator
9667 Formatting\SpecialChar menuseparator
9669 \begin_inset space ~
9674 ) before your multi-page table.
9677 \begin_layout Subsection
9679 \begin_inset Index idx
9682 \begin_layout Plain Layout
9683 Table ! Multi-page Table ! Forced Page Breaks
9691 \begin_layout Standard
9692 By default tables are only broken between rows.
9693 If you have a cell with multiples lines and want to have a page break within
9694 the cell, insert the new line command
9695 \begin_inset Quotes eld
9707 \begin_inset Quotes erd
9711 Code at the point of the cell where it can be broken.
9720 command you have to insert in \SpecialChar TeX
9722 \begin_inset Quotes eld
9730 \begin_inset Quotes erd
9733 characters as the number of the following table columns.
9738 is the character to separate table cells.
9739 Write in \SpecialChar TeX
9744 the content of the corresponding following cell and delete the content
9746 \begin_inset Newline newline
9757 command, insert as many
9761 characters as the number of table columns before the current column.
9763 \begin_inset space ~
9767 \begin_inset CommandInset ref
9769 reference "tab:ForcedPagebreak"
9773 the cell that should be broken is in the second column followed by another
9775 Therefore the following command was inserted in the cell as \SpecialChar TeX
9778 \begin_inset Quotes eld
9786 \begin_inset Quotes erd
9792 \begin_layout Standard
9802 \begin_inset Newline newline
9808 \begin_layout Standard
9810 \begin_inset Quotes eld
9814 \begin_inset Quotes erd
9817 in the third column of the row was deleted.
9824 is only needed when a page break should definitely occur at this position,
9825 otherwise it would be a conditional break.
9826 If your footer row of the multi-page table has for a certain reason no
9827 upper line but you would have a horizontal line where the cell is broken,
9828 use this command instead:
9831 \begin_layout Standard
9839 \begin_inset Newline newline
9847 \begin_layout Standard
9848 When the cell to be broken is in the last column, the command
9851 \begin_layout Standard
9861 \begin_layout Standard
9862 must be inserted as \SpecialChar TeX
9863 Code at the beginning of the cell.
9864 This ensures that the part of the cell that will be displayed on the new
9865 page appears with the full width.
9868 \begin_layout Standard
9870 \begin_inset Tabular
9871 <lyxtabular version="3" rows="38" columns="3">
9872 <features islongtable="true" longtabularalignment="center">
9873 <column alignment="left" valignment="top" width="0cm">
9874 <column alignment="left" valignment="top" width="3cm">
9875 <column alignment="center" valignment="top" width="0pt">
9876 <row endfirsthead="true" caption="true">
9877 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9880 \begin_layout Plain Layout
9881 \begin_inset Caption Standard
9883 \begin_layout Plain Layout
9884 Table with forced page break in table cell
9885 \begin_inset CommandInset label
9887 name "tab:ForcedPagebreak"
9892 \begin_inset Argument 1
9895 \begin_layout Plain Layout
9896 Table with forced page break in table cell
9911 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9914 \begin_layout Plain Layout
9920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9923 \begin_layout Plain Layout
9930 <row endfirsthead="true">
9931 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9937 Example Phone List (ignore the names)
9942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9961 <row endfirsthead="true">
9962 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9994 <row endhead="true" caption="true">
9995 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9998 \begin_layout Plain Layout
9999 \begin_inset Caption Unnumbered
10001 \begin_layout Plain Layout
10002 Continued Example Phone List
10012 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10031 <row endhead="true">
10032 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10062 <row endhead="true">
10063 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10095 <row endfoot="true">
10096 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10099 \begin_layout Plain Layout
10100 continued on next page
10105 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10548 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10551 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10613 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10644 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10675 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10706 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10737 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10768 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10799 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10823 Fürst von Montecompatri, 11.
10824 Fürst von Sulmona und Vivaro, 10.
10825 Fürst von Rossano, 5.
10826 Herzog von Canemorte, 11.
10827 Herzog von Palombara, 5.
10828 Herzog von Castelchiodato,
10832 \begin_layout Plain Layout
10843 \begin_layout Plain Layout
10851 Herzog von Poggionativo, 11.
10852 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10853 Graf von Valinfreda, 11.
10854 Baron von Cropalati, 11.
10855 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10863 \begin_layout Plain Layout
10871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10874 \begin_layout Plain Layout
10882 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10885 \begin_layout Plain Layout
10891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10894 \begin_layout Plain Layout
10902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10905 \begin_layout Plain Layout
10913 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10916 \begin_layout Plain Layout
10922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10925 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10936 \begin_layout Plain Layout
10944 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10956 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10975 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10998 \begin_layout Plain Layout
11006 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11009 \begin_layout Plain Layout
11015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11018 \begin_layout Plain Layout
11026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11040 \begin_layout Plain Layout
11046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11049 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11071 \begin_layout Plain Layout
11077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11080 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11102 \begin_layout Plain Layout
11108 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11111 \begin_layout Plain Layout
11125 \begin_layout Section
11126 Multiple Lines, Columns and Rows
11129 \begin_layout Subsection
11130 Multiple Lines in Table Cells
11131 \begin_inset CommandInset label
11133 name "subsec:Multiple-Lines-in"
11138 \begin_inset Index idx
11141 \begin_layout Plain Layout
11142 Multiple Lines in Table Cells
11148 \begin_inset Index idx
11151 \begin_layout Plain Layout
11160 \begin_layout Standard
11162 \begin_inset Float table
11168 \begin_layout Plain Layout
11169 \begin_inset Caption Standard
11171 \begin_layout Plain Layout
11172 \begin_inset CommandInset label
11174 name "tab:Table-with-multiple"
11178 Table with multiple lines in cells
11186 \begin_layout Plain Layout
11188 \begin_inset Tabular
11189 <lyxtabular version="3" rows="3" columns="3">
11190 <features tabularvalignment="middle">
11191 <column alignment="center" valignment="middle" width="2.5cm">
11192 <column alignment="center" valignment="middle">
11193 <column alignment="center" valignment="middle">
11195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11198 \begin_layout Plain Layout
11200 \begin_inset Newline linebreak
11208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11211 \begin_layout Plain Layout
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11220 \begin_layout Plain Layout
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11231 \begin_layout Plain Layout
11237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11240 \begin_layout Plain Layout
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11249 \begin_layout Plain Layout
11257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11260 \begin_layout Plain Layout
11266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11269 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11278 \begin_layout Plain Layout
11297 \begin_layout Standard
11298 Setting a fixed width for a column enables you to enter text as a paragraph
11299 with multiple lines and hyphenation.
11302 \begin_layout Standard
11304 \begin_inset space ~
11308 \begin_inset CommandInset ref
11310 reference "tab:Table-with-multiple"
11314 , create a 3×3 table, mark the first cell and right-click on it.
11315 In the appearing table dialog we set a cell width of 2.5
11316 \begin_inset space \thinspace{}
11319 cm and choose centered for the vertical and horizontal alignment.
11320 The vertical alignment is used for all cells of the row.
11321 As our text is smaller than 2.5
11322 \begin_inset space \thinspace{}
11325 cm, only one line will appear.
11326 To get two lines, a justified line break (shortcut
11329 arg "newline-insert linebreak"
11333 If the text is wider than the set cell width, it will automatically be
11334 broken to several lines.
11337 \begin_layout Standard
11338 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11339 by \SpecialChar LaTeX
11340 if it is the first entry.
11341 Therefore you need to insert something to prevent the word not being the
11343 So add a horizontal space of 0
11344 \begin_inset space \thinspace{}
11347 pt before the word.
11348 As the space is zero, it doesn't change the output.
11350 \begin_inset space ~
11354 \begin_inset CommandInset ref
11356 reference "tab:Table-with-and"
11363 \begin_layout Standard
11364 \begin_inset Float table
11370 \begin_layout Plain Layout
11371 \begin_inset Caption Standard
11373 \begin_layout Plain Layout
11374 \begin_inset CommandInset label
11376 name "tab:Table-with-and"
11380 Table with and without hyphenation
11388 \begin_layout Plain Layout
11389 \begin_inset space \hfill{}
11393 \begin_inset Tabular
11394 <lyxtabular version="3" rows="3" columns="3">
11395 <features tabularvalignment="middle">
11396 <column alignment="center" valignment="middle" width="2.5cm">
11397 <column alignment="center" valignment="middle">
11398 <column alignment="center" valignment="middle">
11400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11403 \begin_layout Plain Layout
11404 verylongtablecellword
11409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11412 \begin_layout Plain Layout
11418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11421 \begin_layout Plain Layout
11429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11432 \begin_layout Plain Layout
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11441 \begin_layout Plain Layout
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11450 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11479 \begin_layout Plain Layout
11491 \begin_inset space \hfill{}
11495 \begin_inset Tabular
11496 <lyxtabular version="3" rows="3" columns="3">
11497 <features tabularvalignment="middle">
11498 <column alignment="center" valignment="middle" width="2.5cm">
11499 <column alignment="center" valignment="middle">
11500 <column alignment="center" valignment="middle">
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11505 \begin_layout Plain Layout
11506 \begin_inset space \hspace{}
11510 verylongtablecellword
11515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11518 \begin_layout Plain Layout
11524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11527 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11556 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11567 \begin_layout Plain Layout
11573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11585 \begin_layout Plain Layout
11597 \begin_inset space \hfill{}
11608 \begin_layout Subsection
11610 \begin_inset CommandInset label
11612 name "subsec:Multicolumns"
11617 \begin_inset Index idx
11620 \begin_layout Plain Layout
11627 \begin_inset Index idx
11630 \begin_layout Plain Layout
11631 Table ! Multicolumns
11639 \begin_layout Subsubsection
11643 \begin_layout Standard
11644 To merge cells over multiple columns, select as many cells within a row
11645 as you want to merge and use either the table-toolbar button
11648 arg "tabular-feature multicolumn"
11653 Edit\SpecialChar menuseparator
11654 Table\SpecialChar menuseparator
11657 , or right click on the marked cells and choose
11661 in the context menu.
11664 \begin_layout Standard
11665 Multicolumns have their own cell settings.
11666 That means changing cell borders, cell alignment, and the width only affects
11668 Here is an example table with a multicolumn cell in the first row and one
11669 in the last row without the upper border:
11672 \begin_layout Standard
11674 \begin_inset Tabular
11675 <lyxtabular version="3" rows="3" columns="4">
11676 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11677 <column alignment="center" valignment="top" width="0pt">
11678 <column alignment="center" valignment="middle">
11679 <column alignment="center" valignment="top" width="0in">
11680 <column alignment="center" valignment="top" width="0pt">
11682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11685 \begin_layout Plain Layout
11691 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11694 \begin_layout Plain Layout
11700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11703 \begin_layout Plain Layout
11709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11712 \begin_layout Plain Layout
11720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11723 \begin_layout Plain Layout
11738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11741 \begin_layout Plain Layout
11747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11750 \begin_layout Plain Layout
11756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11759 \begin_layout Plain Layout
11767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11770 \begin_layout Plain Layout
11776 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11779 \begin_layout Plain Layout
11785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11788 \begin_layout Plain Layout
11794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11797 \begin_layout Plain Layout
11811 \begin_layout Subsubsection
11812 Multicolumn Calculations
11813 \begin_inset CommandInset label
11815 name "subsec:Multicolumn-Calculations"
11820 \begin_inset Index idx
11823 \begin_layout Plain Layout
11824 Multicolumns ! Calculations
11832 \begin_layout Standard
11834 supports multicolumns directly, but we have to take account of the cell
11835 width of the columns spanned by the multicolumn cell.
11838 \begin_layout Standard
11839 \begin_inset Float table
11845 \begin_layout Plain Layout
11846 \begin_inset Caption Standard
11848 \begin_layout Plain Layout
11849 \begin_inset CommandInset label
11851 name "tab:Table-with-centered"
11855 Table with centered multicolumn text above two columns that have exactly
11856 half the width of the multicolumn cell
11857 \begin_inset Argument 1
11860 \begin_layout Plain Layout
11861 Perfect multicolumn table
11874 \begin_layout Plain Layout
11876 \begin_inset Tabular
11877 <lyxtabular version="3" rows="3" columns="3">
11878 <features tabularvalignment="middle">
11879 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11880 <column alignment="center" valignment="middle">
11881 <column alignment="center" valignment="top">
11883 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11886 \begin_layout Plain Layout
11887 multiple lines multicolumn
11892 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11895 \begin_layout Plain Layout
11901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11904 \begin_layout Plain Layout
11912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11915 \begin_layout Plain Layout
11921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11924 \begin_layout Plain Layout
11930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11933 \begin_layout Plain Layout
11941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11944 \begin_layout Plain Layout
11950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11953 \begin_layout Plain Layout
11959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11962 \begin_layout Plain Layout
11981 \begin_layout Standard
11982 To create for example Table
11983 \begin_inset space ~
11987 \begin_inset CommandInset ref
11989 reference "tab:Table-with-centered"
11993 , mark the first two cells in the first row of a 3×3 table and right-click
11995 Now choose for this cell
12004 \begin_inset space \thinspace{}
12007 cm in the table dialog.
12008 The merged columns should have exactly half the width of the multicolumn
12009 cell, so that you would set a width of 1.25
12010 \begin_inset space \thinspace{}
12013 cm for the first column.
12014 The second column has then automatically a width of 1.25
12015 \begin_inset space \thinspace{}
12018 cm (multicolumn width - width of first column).
12019 This was done for Table
12020 \begin_inset space ~
12024 \begin_inset CommandInset ref
12026 reference "tab:Table-without-half"
12033 \begin_layout Standard
12034 \begin_inset Float table
12039 \begin_layout Plain Layout
12040 \begin_inset Caption Standard
12042 \begin_layout Plain Layout
12043 \begin_inset CommandInset label
12045 name "tab:Table-without-half"
12049 Table where the spanned table columns are not exactly half the width of
12050 the multicolumn cell
12051 \begin_inset Argument 1
12054 \begin_layout Plain Layout
12055 Imperfect multicolumn table
12068 \begin_layout Plain Layout
12070 \begin_inset Tabular
12071 <lyxtabular version="3" rows="3" columns="3">
12072 <features tabularvalignment="middle">
12073 <column alignment="center" valignment="top" width="1.25cm">
12074 <column alignment="center" valignment="top">
12075 <column alignment="center" valignment="top">
12077 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12080 \begin_layout Plain Layout
12081 multiple lines multicolumn
12086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12089 \begin_layout Plain Layout
12095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12098 \begin_layout Plain Layout
12106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12109 \begin_layout Plain Layout
12115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12118 \begin_layout Plain Layout
12124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12127 \begin_layout Plain Layout
12135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12138 \begin_layout Plain Layout
12144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12147 \begin_layout Plain Layout
12153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12156 \begin_layout Plain Layout
12175 \begin_layout Standard
12176 You can see that the first column is not half the width of the multicolumn
12177 cell, it is a bit bigger.
12178 The reason is that the specified width of a cell
12179 \begin_inset Formula $W_{g}$
12182 is not its total width
12183 \begin_inset Formula $W_{\mathrm{tot}}$
12186 because a cell is always a bit larger than specified.
12188 \begin_inset space ~
12192 \begin_inset CommandInset ref
12194 reference "cha:Explanation-of-Equation"
12198 explains this in detail.
12201 \begin_layout Standard
12203 \begin_inset Formula $W_{g\,n}$
12206 which the user needs to set when
12210 columns are spanned can be calculated, so that each column has a total
12212 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12216 \begin_inset Formula
12218 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12226 \begin_layout Standard
12227 In our case we have
12228 \begin_inset Formula $n=2$
12232 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12235 cm and the default values for the lengths, so that equation
12236 \begin_inset CommandInset ref
12243 \begin_inset Formula
12245 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12253 \begin_layout Standard
12254 To enable calculations in \SpecialChar LaTeX
12255 , the \SpecialChar LaTeX
12260 must be loaded with the document preamble line
12261 \begin_inset Index idx
12264 \begin_layout Plain Layout
12274 \begin_layout Standard
12282 \begin_layout Standard
12284 does not allow you to calculate lengths in the
12288 field of the table dialog.
12289 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12292 Here is an overview about the arguments:
12295 \begin_layout Itemize
12300 creates cell with a fixed width, its text is vertically top-aligned
12303 \begin_layout Itemize
12308 creates cell with a fixed width, its text is vertically centered
12311 \begin_layout Itemize
12316 creates cell with a fixed width, its text is vertically bottom-aligned
12319 \begin_layout Standard
12320 By entering a \SpecialChar LaTeX
12321 -argument, all cell settings set in the table dialog are overwritt
12325 \begin_layout Standard
12326 \begin_inset Note Greyedout
12329 \begin_layout Plain Layout
12334 Due to a bug, \SpecialChar LyX
12335 shows the overwritten settings anyway.
12343 \begin_layout Standard
12344 As the text should be horizontally centered, the command
12351 You can now enter the following \SpecialChar LaTeX
12352 -argument for the first spanned column:
12355 \begin_layout Standard
12360 centering}m{1.25cm-6.2pt}
12363 \begin_layout Standard
12368 means, that the commands inside the braces are applied before the cell
12372 \begin_layout Standard
12373 Although we have chosen centered alignment for the text of the multicolumn
12374 cell, it is still left aligned.
12375 This is because \SpecialChar LyX
12376 only applies the alignment to single columns.
12377 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12381 \begin_layout Standard
12389 \begin_layout Subsection
12391 \begin_inset CommandInset label
12393 name "subsec:Multirows"
12398 \begin_inset Index idx
12401 \begin_layout Plain Layout
12408 \begin_inset Index idx
12411 \begin_layout Plain Layout
12420 \begin_layout Standard
12421 To merge cells over multiple rows, select as many cells within a column
12422 as you want to merge and use either the table-toolbar button
12425 arg "tabular-feature multirow"
12430 Edit\SpecialChar menuseparator
12431 Table\SpecialChar menuseparator
12434 , or right click on the marked cells and choose
12438 in the context menu.
12441 \begin_layout Standard
12442 Here is an example table with a multirow in the first column:
12445 \begin_layout Standard
12447 \begin_inset Tabular
12448 <lyxtabular version="3" rows="3" columns="3">
12449 <features tabularvalignment="middle">
12450 <column alignment="center" valignment="top" width="0pt">
12451 <column alignment="center" valignment="top">
12452 <column alignment="center" valignment="top">
12454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12457 \begin_layout Plain Layout
12463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12466 \begin_layout Plain Layout
12472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12475 \begin_layout Plain Layout
12483 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12486 \begin_layout Plain Layout
12492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12495 \begin_layout Plain Layout
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12504 \begin_layout Plain Layout
12512 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12524 \begin_layout Plain Layout
12530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12533 \begin_layout Plain Layout
12547 \begin_layout Standard
12548 The width of multirow cells is set by setting the width and alignment for
12554 shifts the content of the multirow up/down if the offset is positive/negative.
12557 \begin_layout Standard
12558 If the column of a multirow cell has no explicit width, the multirow cell
12559 inherits the alignment of the column.
12560 Otherwise it is by default left-aligned.
12561 To override the default, renew the command
12570 \begin_layout Standard
12582 \begin_layout Standard
12583 in the document preamble.
12584 Then all entries of multirow cells in the document are centered.
12585 If centering is only needed for several tables, you can renew the command
12586 in a \SpecialChar TeX
12587 Code box just before the table instead of the preamble.
12588 If the text should be right-aligned, replace
12601 To return to left-alignment
12610 \begin_layout Standard
12611 This is an example table with a right-aligned multirow cell that has a vertical
12613 \begin_inset space \thinspace{}
12617 \begin_inset space \thinspace{}
12623 \begin_layout Standard
12629 \begin_layout Plain Layout
12643 \begin_inset Tabular
12644 <lyxtabular version="3" rows="4" columns="3">
12645 <features tabularvalignment="middle">
12646 <column alignment="center" valignment="top" width="3cm">
12647 <column alignment="center" valignment="top">
12648 <column alignment="center" valignment="top">
12650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12653 \begin_layout Plain Layout
12659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12662 \begin_layout Plain Layout
12668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12671 \begin_layout Plain Layout
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12682 \begin_layout Plain Layout
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12700 \begin_layout Plain Layout
12708 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12729 \begin_layout Plain Layout
12737 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12740 \begin_layout Plain Layout
12746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12749 \begin_layout Plain Layout
12755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12758 \begin_layout Plain Layout
12773 \begin_layout Plain Layout
12789 \begin_layout Standard
12790 To start a new line in a multirow you can use a forced line break (shortcut
12794 arg "newline-insert newline"
12797 ) but this will not respect the cell lines as demonstrated in this table:
12800 \begin_layout Standard
12803 \begin_inset Tabular
12804 <lyxtabular version="3" rows="3" columns="2">
12805 <features tabularvalignment="middle">
12806 <column alignment="left" valignment="middle" width="2cm">
12807 <column alignment="center" valignment="top">
12809 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12812 \begin_layout Plain Layout
12814 \begin_inset Newline newline
12818 \begin_inset Newline newline
12826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12829 \begin_layout Plain Layout
12837 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12840 \begin_layout Plain Layout
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12849 \begin_layout Plain Layout
12857 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12860 \begin_layout Plain Layout
12866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12869 \begin_layout Plain Layout
12883 \begin_layout Standard
12884 Therefore be careful with forced line breaks.
12887 \begin_layout Subsection
12888 Cells with diagonal line(s)
12891 \begin_layout Standard
12892 To tell the reader what is meant by column and row headings in a table,
12893 it is helpful to split the first cell of the table by one or two diagonal
12895 This can be achieved by loading the \SpecialChar LaTeX
12901 \begin_inset Index idx
12904 \begin_layout Plain Layout
12906 -packages ! picinpar
12911 in the document preamble.
12912 The package provides the command
12918 that is inserted as \SpecialChar TeX
12919 Code and that can take 2 or 3
12920 \begin_inset space ~
12926 \begin_layout Standard
12931 diagbox[options]{lower left}{upper right}
12934 \begin_layout Standard
12939 diagbox[options]{lower left}{upper left}{upper right}
12942 \begin_layout Standard
12943 The first scheme divides the cell by a single diagonal line and the arguments
12944 are placed below and above this line.
12945 The second scheme divides the cell by 2
12946 \begin_inset space ~
12952 \begin_layout Standard
12956 \begin_layout Plain Layout
12966 \begin_inset Note Note
12969 \begin_layout Plain Layout
12970 The following section will only be displayed when the \SpecialChar LaTeX
12983 \begin_layout Standard
12984 Here is an example table where
12990 is used in the 2-argument scheme in the first cell:
12991 \begin_inset VSpace medskip
12997 \begin_layout Standard
12999 \begin_inset Tabular
13000 <lyxtabular version="3" rows="4" columns="4">
13001 <features tabularvalignment="middle">
13002 <column alignment="center" valignment="top">
13003 <column alignment="center" valignment="top">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13010 \begin_layout Plain Layout
13014 \begin_layout Plain Layout
13027 \begin_layout Plain Layout
13038 \begin_layout Plain Layout
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Plain Layout
13059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13062 \begin_layout Plain Layout
13068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13071 \begin_layout Plain Layout
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Plain Layout
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Plain Layout
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Plain Layout
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Plain Layout
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Plain Layout
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13197 \begin_inset VSpace medskip
13203 \begin_layout Standard
13204 The 3-argument scheme is for example useful for cross-tables of sports leagues
13208 \begin_layout Standard
13211 \begin_inset Tabular
13212 <lyxtabular version="3" rows="4" columns="4">
13213 <features tabularvalignment="middle">
13214 <column alignment="center" valignment="top" width="0pt">
13215 <column alignment="center" valignment="top">
13216 <column alignment="center" valignment="top">
13217 <column alignment="center" valignment="top">
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13226 \begin_layout Plain Layout
13239 \begin_layout Plain Layout
13250 \begin_layout Plain Layout
13261 \begin_layout Plain Layout
13273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13305 \begin_layout Plain Layout
13311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13332 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13370 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13408 \begin_layout Plain Layout
13422 \begin_layout Standard
13423 For larger cross-tables one might use split cells in 2 or every corner of
13424 the table like in this example:
13427 \begin_layout Standard
13430 \begin_inset Tabular
13431 <lyxtabular version="3" rows="5" columns="5">
13432 <features tabularvalignment="middle">
13433 <column alignment="center" valignment="top" width="0pt">
13434 <column alignment="center" valignment="top">
13435 <column alignment="center" valignment="top">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13446 \begin_layout Plain Layout
13459 \begin_layout Plain Layout
13470 \begin_layout Plain Layout
13481 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13523 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13540 \begin_layout Plain Layout
13551 \begin_layout Plain Layout
13562 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13615 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13673 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13724 \begin_layout Plain Layout
13737 \begin_layout Plain Layout
13748 \begin_layout Plain Layout
13759 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13801 \begin_layout Plain Layout
13805 \begin_layout Plain Layout
13818 \begin_layout Plain Layout
13829 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13860 \begin_layout Standard
13861 To rotate the diagonal lines, the command option
13886 and represent a point of a compass.
13891 is for example the south-west corner.
13892 Thus in the lower left cell of the above table the command
13895 \begin_layout Standard
13900 diagbox[dir=SW]{Team home}{Result}{Team away}
13903 \begin_layout Standard
13905 If no direction is given, it will be NW.
13908 \begin_layout Standard
13909 The necessary width of split cells is automatically calculated.
13910 Thus if you set a fixed column width smaller than the calculated one, the
13911 cell's content will protrude the cell borders:
13914 \begin_layout Standard
13917 \begin_inset Tabular
13918 <lyxtabular version="3" rows="2" columns="2">
13919 <features tabularvalignment="middle">
13920 <column alignment="center" valignment="top" width="3cm">
13921 <column alignment="center" valignment="top">
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13930 \begin_layout Plain Layout
13943 \begin_layout Plain Layout
13954 \begin_layout Plain Layout
13966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13969 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13989 \begin_layout Plain Layout
14003 \begin_layout Standard
14004 If you need a certain width for columns with a split cell, use the command
14009 (replace '3cm' by the width you need).
14010 In the following table the width of the first column is set to 4
14011 \begin_inset space \thinspace{}
14022 \begin_inset space \thinspace{}
14026 \begin_inset space \thinspace{}
14031 tabcolsep is necessary because the overall width is the width for the text
14032 (in this case the 4
14033 \begin_inset space \thinspace{}
14036 cm) plus two times the separation of the text and the cell border.
14037 The calculation of the width cannot be done in the command option of
14043 so one needs to create a new length which can be used later.
14044 This is done with the \SpecialChar TeX
14048 \begin_layout Standard
14056 \begin_inset Newline newline
14068 \begin_layout Standard
14072 \begin_layout Plain Layout
14081 \begin_layout Plain Layout
14097 \begin_layout Standard
14098 To enable calculations in \SpecialChar LaTeX
14099 one needs to load the package
14104 \begin_inset Index idx
14107 \begin_layout Plain Layout
14114 in the document preamble.
14117 \begin_layout Standard
14118 In this table you can now use the command
14121 \begin_layout Standard
14131 \begin_layout Standard
14135 \begin_layout Standard
14138 \begin_inset Tabular
14139 <lyxtabular version="3" rows="2" columns="2">
14140 <features tabularvalignment="middle">
14141 <column alignment="center" valignment="top" width="4cm">
14142 <column alignment="center" valignment="top">
14144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14147 \begin_layout Plain Layout
14151 \begin_layout Plain Layout
14166 \begin_layout Plain Layout
14177 \begin_layout Plain Layout
14189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14192 \begin_layout Plain Layout
14200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14203 \begin_layout Plain Layout
14209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14212 \begin_layout Plain Layout
14226 \begin_layout Standard
14227 Note that the split cell needs to be the widest one in the column.
14228 Otherwise the length of the diagonal line cannot be calculated correctly
14229 like in this table:
14232 \begin_layout Standard
14235 \begin_inset Tabular
14236 <lyxtabular version="3" rows="2" columns="2">
14237 <features tabularvalignment="middle">
14238 <column alignment="center" valignment="top" width="0pt">
14239 <column alignment="center" valignment="top">
14241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14244 \begin_layout Plain Layout
14248 \begin_layout Plain Layout
14261 \begin_layout Plain Layout
14272 \begin_layout Plain Layout
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14287 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14298 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14307 \begin_layout Plain Layout
14321 \begin_layout Standard
14322 In this case use the
14333 It is then not necessary to add 2
14335 tabcolsep because the cell width is now the width of the column.
14336 In this table a width of 3
14337 \begin_inset space \thinspace{}
14343 \begin_layout Standard
14346 \begin_inset Tabular
14347 <lyxtabular version="3" rows="2" columns="2">
14348 <features tabularvalignment="middle">
14349 <column alignment="center" valignment="top" width="0pt">
14350 <column alignment="center" valignment="top">
14352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14355 \begin_layout Plain Layout
14359 \begin_layout Plain Layout
14363 diagbox[width=3cm]{
14372 \begin_layout Plain Layout
14383 \begin_layout Plain Layout
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14398 \begin_layout Plain Layout
14406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14409 \begin_layout Plain Layout
14415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14418 \begin_layout Plain Layout
14432 \begin_layout Standard
14433 For multiple text lines in split cells one needs some extra height to fit
14434 the text to the cell.
14435 This can be achieved with the
14445 (replace '3cm' by the height you need).
14446 In the following table the command
14449 \begin_layout Standard
14454 diagbox[width=3cm,height=1.4cm]{A
14465 \begin_layout Standard
14466 is used in the first cell.
14475 creates hereby the line break.
14479 \begin_layout Plain Layout
14480 Breaking lines with
14484 is only possible when the column has a fixed width.
14492 \begin_layout Standard
14495 \begin_inset Tabular
14496 <lyxtabular version="3" rows="2" columns="2">
14497 <features tabularvalignment="middle">
14498 <column alignment="center" valignment="top">
14499 <column alignment="center" valignment="top">
14501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14504 \begin_layout Plain Layout
14508 \begin_layout Plain Layout
14512 diagbox[width=3cm,height=1.4cm]{
14521 \begin_layout Plain Layout
14536 \begin_layout Plain Layout
14547 \begin_layout Plain Layout
14562 \begin_layout Plain Layout
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14577 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14588 \begin_layout Plain Layout
14594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14597 \begin_layout Plain Layout
14611 \begin_layout Standard
14615 \begin_layout Plain Layout
14625 \begin_inset Note Note
14628 \begin_layout Plain Layout
14629 The following will be displayed when the \SpecialChar LaTeX
14642 \begin_layout Standard
14643 You need to install the \SpecialChar LaTeX
14648 to see the following part of this section in the output.
14651 \begin_layout Standard
14655 \begin_layout Plain Layout
14667 \begin_layout Standard
14668 For more info about the \SpecialChar LaTeX
14673 , see its documentation,
14674 \begin_inset CommandInset citation
14684 \begin_layout Section
14686 \begin_inset CommandInset label
14688 name "sec:Formal-Tables"
14693 \begin_inset Index idx
14696 \begin_layout Plain Layout
14705 \begin_layout Standard
14706 Tables are often typeset in books similar to Table
14707 \begin_inset space ~
14711 \begin_inset CommandInset ref
14713 reference "tab:Example-booktabs-table"
14718 This kind of tables is called
14719 \begin_inset Quotes eld
14727 \begin_inset Quotes erd
14731 To make a table a formal table use the option
14739 tab of the table dialog.
14742 \begin_layout Standard
14743 \begin_inset Float table
14749 \begin_layout Plain Layout
14750 \begin_inset Caption Standard
14752 \begin_layout Plain Layout
14753 \begin_inset CommandInset label
14755 name "tab:Example-booktabs-table"
14759 Example booktabs-table
14767 \begin_layout Plain Layout
14769 \begin_inset Tabular
14770 <lyxtabular version="3" rows="8" columns="4">
14771 <features booktabs="true" tabularvalignment="middle">
14772 <column alignment="center" valignment="top">
14773 <column alignment="center" valignment="top">
14774 <column alignment="center" valignment="top">
14775 <column alignment="center" valignment="top">
14777 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14780 \begin_layout Plain Layout
14786 <cell alignment="center" valignment="top" topline="true" usebox="none">
14789 \begin_layout Plain Layout
14791 \begin_inset space \thinspace{}
14799 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14802 \begin_layout Plain Layout
14804 \begin_inset space \thinspace{}
14812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14815 \begin_layout Plain Layout
14823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14826 \begin_layout Plain Layout
14830 \begin_layout Plain Layout
14843 \begin_layout Plain Layout
14852 Detector thickness in µm
14857 <cell alignment="center" valignment="top" usebox="none">
14860 \begin_layout Plain Layout
14866 <cell alignment="center" valignment="top" usebox="none">
14869 \begin_layout Plain Layout
14875 <cell alignment="center" valignment="top" usebox="none">
14878 \begin_layout Plain Layout
14886 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14889 \begin_layout Plain Layout
14895 <cell alignment="center" valignment="top" topline="true" usebox="none">
14898 \begin_layout Plain Layout
14904 <cell alignment="center" valignment="top" topline="true" usebox="none">
14907 \begin_layout Plain Layout
14913 <cell alignment="center" valignment="top" topline="true" usebox="none">
14916 \begin_layout Plain Layout
14923 <row topspace="default">
14924 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14927 \begin_layout Plain Layout
14928 Spatial resolution in µm
14933 <cell alignment="center" valignment="top" usebox="none">
14936 \begin_layout Plain Layout
14942 <cell alignment="center" valignment="top" usebox="none">
14945 \begin_layout Plain Layout
14951 <cell alignment="center" valignment="top" usebox="none">
14954 \begin_layout Plain Layout
14961 <row topspace="default">
14962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14965 \begin_layout Plain Layout
14967 \begin_inset Formula $f_{\mathrm{max}}$
14975 <cell alignment="center" valignment="top" usebox="none">
14978 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" usebox="none">
14987 \begin_layout Plain Layout
14993 <cell alignment="center" valignment="top" usebox="none">
14996 \begin_layout Plain Layout
15003 <row topspace="default">
15004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15007 \begin_layout Plain Layout
15011 \begin_layout Plain Layout
15015 cmidrule[2pt](l{10pt}){1-1}
15020 LSF-spatial resolution
15025 <cell alignment="center" valignment="top" usebox="none">
15028 \begin_layout Plain Layout
15034 <cell alignment="center" valignment="top" usebox="none">
15037 \begin_layout Plain Layout
15043 <cell alignment="center" valignment="top" usebox="none">
15046 \begin_layout Plain Layout
15054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15057 \begin_layout Plain Layout
15063 <cell alignment="center" valignment="top" usebox="none">
15066 \begin_layout Plain Layout
15072 <cell alignment="center" valignment="top" usebox="none">
15075 \begin_layout Plain Layout
15081 <cell alignment="center" valignment="top" usebox="none">
15084 \begin_layout Plain Layout
15092 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15095 \begin_layout Plain Layout
15101 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15104 \begin_layout Plain Layout
15110 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15113 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15122 \begin_layout Plain Layout
15141 \begin_layout Standard
15142 Spaces to table rows can be added using the
15146 tab of the table dialog as described in section
15147 \begin_inset space ~
15151 \begin_inset CommandInset ref
15153 reference "subsec:Row-Spacing"
15160 \begin_layout Standard
15161 Unlike normal tables, formal tables have no vertical table lines.
15162 The horizontal table lines can be set as for normal tables but they appear
15163 with different widths in the output:
15164 \begin_inset Newline newline
15167 The first and the last table line have a default width of 0.08
15168 \begin_inset space \thinspace{}
15171 em while the other lines have a default width of 0.05
15172 \begin_inset space \thinspace{}
15178 \begin_layout Standard
15179 The default widths can be changed with the following preamble lines
15182 \begin_layout Standard
15192 \begin_inset Newline newline
15204 \begin_layout Standard
15205 This example is for the first line, the so called
15210 If you want to change the width for the last line, replace
15219 To change the width for the other lines replace
15228 You can use all units listed in appendix
15229 \begin_inset space ~
15233 \begin_inset CommandInset ref
15235 reference "cha:Units-available-in"
15242 \begin_layout Standard
15243 Lines that do not span all table columns can be created by setting a table
15244 line for multicolumn cells.
15246 will then internally use the command
15252 to create this line.
15256 \begin_layout Standard
15261 cmidrule[height](trim){startcol-endcol}
15264 \begin_layout Standard
15271 are currently not supported by \SpecialChar LyX
15272 so you have to use \SpecialChar TeX
15281 s can manually be created by inserting the command as \SpecialChar TeX
15283 cell entry of the first cell of a row.
15284 The line is then drawn in the output above the current row.
15287 \begin_layout Standard
15288 The default for the optional
15293 \begin_inset space \thinspace{}
15301 is the number of the column where the line starts and
15305 the column number where the line ends.
15310 always needs to be specified, also when the line should span only one column.
15311 The optional parameter
15328 Using for example the parameter
15332 means that the line is trimmed from its left end by 2
15333 \begin_inset space \thinspace{}
15337 If you don't specify the
15341 the line is trimmed by the default of 0.5
15342 \begin_inset space \thinspace{}
15348 \begin_layout Standard
15349 \begin_inset VSpace bigskip
15353 \begin_inset space ~
15357 \begin_inset CommandInset ref
15359 reference "tab:Example-booktabs-table"
15363 was created using the commands
15366 \begin_layout Standard
15376 \begin_layout Standard
15377 at the beginning of the second row and
15380 \begin_layout Standard
15385 cmidrule[2pt](l{10pt}){1-1}
15388 \begin_layout Standard
15392 \begin_layout Standard
15393 \begin_inset VSpace bigskip
15399 \begin_layout Standard
15400 You might want to have overlapping
15407 \begin_inset space ~
15411 \begin_inset CommandInset ref
15413 reference "tab:Special-booktabs-table"
15418 This can be achieved with the \SpecialChar TeX
15422 \begin_layout Standard
15430 \begin_layout Standard
15431 The command that was used for the second row of Table
15432 \begin_inset space ~
15436 \begin_inset CommandInset ref
15438 reference "tab:Special-booktabs-table"
15445 \begin_layout Standard
15459 \begin_layout Standard
15460 The command for the sixth row is
15463 \begin_layout Standard
15475 \begin_layout Standard
15476 \begin_inset VSpace bigskip
15482 \begin_layout Standard
15483 If you are in any way not satisfied with the border line spacing, you can
15484 use the following command to produce lines that span over all table columns
15489 \begin_layout Standard
15494 specialrule{width}{space above}{space below}
15497 \begin_layout Standard
15498 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15505 \begin_inset CommandInset citation
15513 \begin_inset Index idx
15516 \begin_layout Plain Layout
15518 -packages ! booktabs
15526 \begin_layout Standard
15527 \begin_inset Float table
15533 \begin_layout Plain Layout
15534 \begin_inset Caption Standard
15536 \begin_layout Plain Layout
15537 \begin_inset CommandInset label
15539 name "tab:Special-booktabs-table"
15543 Special booktabs-table
15551 \begin_layout Plain Layout
15553 \begin_inset Tabular
15554 <lyxtabular version="3" rows="8" columns="4">
15555 <features booktabs="true" tabularvalignment="middle">
15556 <column alignment="center" valignment="top">
15557 <column alignment="center" valignment="top">
15558 <column alignment="center" valignment="top">
15559 <column alignment="center" valignment="top">
15561 <cell alignment="center" valignment="top" topline="true" usebox="none">
15564 \begin_layout Plain Layout
15570 <cell alignment="center" valignment="top" topline="true" usebox="none">
15573 \begin_layout Plain Layout
15575 \begin_inset space \thinspace{}
15583 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15586 \begin_layout Plain Layout
15588 \begin_inset space \thinspace{}
15596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15599 \begin_layout Plain Layout
15607 <cell alignment="center" valignment="top" usebox="none">
15610 \begin_layout Plain Layout
15614 \begin_layout Plain Layout
15627 \begin_layout Plain Layout
15640 \begin_layout Plain Layout
15653 \begin_layout Plain Layout
15662 Detector thickness in µm
15667 <cell alignment="center" valignment="top" usebox="none">
15670 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" usebox="none">
15679 \begin_layout Plain Layout
15685 <cell alignment="center" valignment="top" usebox="none">
15688 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" usebox="none">
15699 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" topline="true" usebox="none">
15708 \begin_layout Plain Layout
15714 <cell alignment="center" valignment="top" topline="true" usebox="none">
15717 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" topline="true" usebox="none">
15726 \begin_layout Plain Layout
15733 <row topspace="default">
15734 <cell alignment="center" valignment="top" usebox="none">
15737 \begin_layout Plain Layout
15738 Spatial resolution in µm
15743 <cell alignment="center" valignment="top" usebox="none">
15746 \begin_layout Plain Layout
15752 <cell alignment="center" valignment="top" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" usebox="none">
15764 \begin_layout Plain Layout
15771 <row topspace="default">
15772 <cell alignment="center" valignment="top" usebox="none">
15775 \begin_layout Plain Layout
15777 \begin_inset Formula $f_{\mathrm{max}}$
15785 <cell alignment="center" valignment="top" usebox="none">
15788 \begin_layout Plain Layout
15794 <cell alignment="center" valignment="top" usebox="none">
15797 \begin_layout Plain Layout
15803 <cell alignment="center" valignment="top" usebox="none">
15806 \begin_layout Plain Layout
15814 <cell alignment="center" valignment="top" topline="true" usebox="none">
15817 \begin_layout Plain Layout
15821 \begin_layout Plain Layout
15834 \begin_layout Plain Layout
15843 LSF-spatial resolution
15848 <cell alignment="center" valignment="top" topline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15866 <cell alignment="center" valignment="top" topline="true" usebox="none">
15869 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" usebox="none">
15880 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" usebox="none">
15889 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" usebox="none">
15898 \begin_layout Plain Layout
15904 <cell alignment="center" valignment="top" usebox="none">
15907 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15918 \begin_layout Plain Layout
15924 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15927 \begin_layout Plain Layout
15933 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15936 \begin_layout Plain Layout
15942 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15945 \begin_layout Plain Layout
15964 \begin_layout Section
15965 Vertical Table Alignment
15966 \begin_inset Index idx
15969 \begin_layout Plain Layout
15978 \begin_layout Standard
15979 To align tables vertically in a text line, the table must be inside a box.
15980 The box can then be vertically aligned as described in section
15981 \begin_inset space ~
15985 \begin_inset CommandInset ref
15987 reference "sec:Box-Dialog"
15994 \begin_layout Standard
15995 In the following example the tables are inside a minipage
15999 \begin_layout Plain Layout
16000 Minipages are described in section
16001 \begin_inset space ~
16005 \begin_inset CommandInset ref
16007 reference "sec:Minipages"
16016 box that has a width of 15
16017 \begin_inset space \thinspace{}
16023 \begin_layout Itemize
16025 \begin_inset Box Frameless
16035 height_special "totalheight"
16040 backgroundcolor "none"
16043 \begin_layout Plain Layout
16044 \begin_inset Tabular
16045 <lyxtabular version="3" rows="3" columns="3">
16046 <features tabularvalignment="middle">
16047 <column alignment="center" valignment="top">
16048 <column alignment="center" valignment="top">
16049 <column alignment="center" valignment="top">
16051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16054 \begin_layout Plain Layout
16060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16063 \begin_layout Plain Layout
16069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16072 \begin_layout Plain Layout
16080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16083 \begin_layout Plain Layout
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16092 \begin_layout Plain Layout
16098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16101 \begin_layout Plain Layout
16109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16112 \begin_layout Plain Layout
16118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16121 \begin_layout Plain Layout
16127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16130 \begin_layout Plain Layout
16150 \begin_layout Plain Layout
16162 \begin_inset Box Frameless
16172 height_special "totalheight"
16177 backgroundcolor "none"
16180 \begin_layout Plain Layout
16181 \begin_inset Tabular
16182 <lyxtabular version="3" rows="3" columns="3">
16183 <features tabularvalignment="middle">
16184 <column alignment="center" valignment="top">
16185 <column alignment="center" valignment="top">
16186 <column alignment="center" valignment="top">
16188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16200 \begin_layout Plain Layout
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16220 \begin_layout Plain Layout
16226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16229 \begin_layout Plain Layout
16235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16238 \begin_layout Plain Layout
16246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16249 \begin_layout Plain Layout
16255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16258 \begin_layout Plain Layout
16264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16267 \begin_layout Plain Layout
16287 \begin_layout Plain Layout
16297 \begin_layout Itemize
16299 \begin_inset Box Frameless
16309 height_special "totalheight"
16314 backgroundcolor "none"
16317 \begin_layout Plain Layout
16318 \begin_inset Tabular
16319 <lyxtabular version="3" rows="3" columns="3">
16320 <features tabularvalignment="middle">
16321 <column alignment="center" valignment="top">
16322 <column alignment="center" valignment="top">
16323 <column alignment="center" valignment="top">
16325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16328 \begin_layout Plain Layout
16334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16337 \begin_layout Plain Layout
16343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16346 \begin_layout Plain Layout
16354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16357 \begin_layout Plain Layout
16363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16366 \begin_layout Plain Layout
16372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16375 \begin_layout Plain Layout
16383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16386 \begin_layout Plain Layout
16392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16395 \begin_layout Plain Layout
16401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16404 \begin_layout Plain Layout
16423 \begin_layout Itemize
16425 \begin_inset Box Frameless
16435 height_special "totalheight"
16440 backgroundcolor "none"
16443 \begin_layout Plain Layout
16444 \begin_inset Tabular
16445 <lyxtabular version="3" rows="3" columns="3">
16446 <features tabularvalignment="middle">
16447 <column alignment="center" valignment="top">
16448 <column alignment="center" valignment="top">
16449 <column alignment="center" valignment="top">
16451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16454 \begin_layout Plain Layout
16460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16463 \begin_layout Plain Layout
16469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16472 \begin_layout Plain Layout
16480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16483 \begin_layout Plain Layout
16489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16492 \begin_layout Plain Layout
16498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16501 \begin_layout Plain Layout
16509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16512 \begin_layout Plain Layout
16518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16521 \begin_layout Plain Layout
16527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16530 \begin_layout Plain Layout
16550 \begin_layout Plain Layout
16562 \begin_inset Box Frameless
16572 height_special "totalheight"
16577 backgroundcolor "none"
16580 \begin_layout Plain Layout
16581 \begin_inset Tabular
16582 <lyxtabular version="3" rows="3" columns="3">
16583 <features tabularvalignment="middle">
16584 <column alignment="center" valignment="top">
16585 <column alignment="center" valignment="top">
16586 <column alignment="center" valignment="top">
16588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16591 \begin_layout Plain Layout
16597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16600 \begin_layout Plain Layout
16606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16620 \begin_layout Plain Layout
16626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16629 \begin_layout Plain Layout
16635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16638 \begin_layout Plain Layout
16646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16649 \begin_layout Plain Layout
16655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16658 \begin_layout Plain Layout
16664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16667 \begin_layout Plain Layout
16687 \begin_layout Plain Layout
16697 \begin_layout Standard
16698 As you will see, the content of the first and last table row is not correctly
16700 To get this alignment, the minipage box must be set into a raisebox.
16704 \begin_layout Plain Layout
16705 Raiseboxes are described in section
16706 \begin_inset space ~
16710 \begin_inset CommandInset ref
16712 reference "subsec:Vertical-Alignment"
16721 In the example above the second table in the first item is aligned using
16722 the \SpecialChar TeX
16726 \begin_layout Standard
16736 \begin_layout Standard
16738 After the box the closing brace
16742 is inserted as \SpecialChar TeX
16744 For the second table in the last item the command
16747 \begin_layout Standard
16757 \begin_layout Standard
16761 \begin_layout Standard
16762 \begin_inset Note Greyedout
16765 \begin_layout Plain Layout
16770 The alignment of the table row content to the surrounding text line is
16772 The required value for the
16778 command for this alignment depends on the document font, the font size,
16779 and the table line thickness.
16787 \begin_layout Section
16789 \begin_inset CommandInset label
16791 name "sec:Colored-Tables"
16796 \begin_inset Index idx
16799 \begin_layout Plain Layout
16808 \begin_layout Subsection
16810 \begin_inset Index idx
16813 \begin_layout Plain Layout
16814 Table Color ! for Cells
16820 \begin_inset Index idx
16823 \begin_layout Plain Layout
16824 Color ! for Table Cells
16832 \begin_layout Standard
16833 \begin_inset Float table
16839 \begin_layout Plain Layout
16840 \begin_inset Caption Standard
16842 \begin_layout Plain Layout
16843 \begin_inset CommandInset label
16845 name "tab:Table-colored-without"
16849 Table colored without using the package
16854 \begin_inset Argument 1
16857 \begin_layout Plain Layout
16858 Table without colortbl
16871 \begin_layout Plain Layout
16873 \begin_inset Tabular
16874 <lyxtabular version="3" rows="3" columns="3">
16875 <features tabularvalignment="middle">
16876 <column alignment="center" valignment="top">
16877 <column alignment="center" valignment="top">
16878 <column alignment="center" valignment="top">
16880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16883 \begin_layout Plain Layout
16891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16894 \begin_layout Plain Layout
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16905 \begin_layout Plain Layout
16915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16918 \begin_layout Plain Layout
16926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16929 \begin_layout Plain Layout
16937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16953 \begin_layout Plain Layout
16961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16964 \begin_layout Plain Layout
16972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16975 \begin_layout Plain Layout
16996 \begin_layout Standard
16997 If you only need colored text, mark the cells and choose a color in the
17001 \begin_inset space ~
17006 dialog (toolbar button
17009 arg "dialog-show character"
17013 This was used to create Table
17014 \begin_inset space ~
17018 \begin_inset CommandInset ref
17020 reference "tab:Table-colored-without"
17025 In any other case you have to use the \SpecialChar LaTeX
17031 \begin_inset Index idx
17034 \begin_layout Plain Layout
17036 -packages ! colortbl
17044 \begin_layout Standard
17048 \begin_layout Plain Layout
17058 \begin_inset Note Note
17061 \begin_layout Plain Layout
17062 The following section part will only be displayed when the \SpecialChar LaTeX
17075 \begin_layout Standard
17076 To create colored tables,
17080 must be loaded in the preamble with the line
17083 \begin_layout Standard
17088 usepackage{colortbl}
17091 \begin_layout Standard
17092 The color of a column is adjusted with the command
17095 \begin_layout Standard
17100 columncolor{name of color}
17103 \begin_layout Standard
17109 More about the command
17113 is contained in section
17114 \begin_inset space ~
17118 \begin_inset CommandInset ref
17120 reference "subsec:Multicolumn-Calculations"
17127 \begin_layout Standard
17128 The following color names are predefined:
17131 \begin_layout Standard
17165 \begin_layout Standard
17166 \begin_inset VSpace medskip
17172 \begin_layout Standard
17173 If you add the option
17176 \begin_layout Standard
17182 \begin_layout Standard
17183 to the document class options in the document settings, you can additionally
17185 \begin_inset space ~
17189 These colors are listed in appendix
17190 \begin_inset space ~
17194 \begin_inset CommandInset ref
17196 reference "chap:List-of-dvips-colornames"
17201 One of these colors,
17205 , is used as example in Table
17206 \begin_inset space ~
17210 \begin_inset CommandInset ref
17212 reference "tab:Table-colored-using"
17219 \begin_layout Standard
17220 \begin_inset VSpace medskip
17226 \begin_layout Standard
17227 You can also define your own color with the command
17230 \begin_layout Standard
17235 definecolor{color name}{color model}{color values}
17238 \begin_layout Standard
17239 The color model can be
17242 \begin_layout Labeling
17243 \labelwidthstring 00.00.0000
17244 cmyk: cyan, magenta, yellow, black
17247 \begin_layout Labeling
17248 \labelwidthstring 00.00.0000
17249 rgb: red, green blue
17252 \begin_layout Labeling
17253 \labelwidthstring 00.00.0000
17257 \begin_layout Standard
17258 and the color values are comma separated numbers between 0 and 1 describing
17259 the factor for the corresponding color of the color model.
17262 \begin_layout Standard
17264 \begin_inset space \thinspace{}
17268 \begin_inset space \space{}
17275 " in the preamble with
17278 \begin_layout Standard
17283 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17286 \begin_layout Standard
17294 \begin_layout Standard
17299 definecolor{lightgray}{gray}{0.8}
17302 \begin_layout Standard
17303 \begin_inset VSpace medskip
17309 \begin_layout Standard
17310 Lines are colored with the command
17313 \begin_layout Standard
17318 rowcolor{name of color}
17321 \begin_layout Standard
17322 and cells are colored with the command
17325 \begin_layout Standard
17330 cellcolor{name of color}
17333 \begin_layout Standard
17334 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17338 \begin_layout Standard
17339 To color characters in the table, mark the cells and use the
17342 \begin_inset space ~
17348 If a cell contains \SpecialChar TeX
17349 Code mark only the characters, otherwise the colored
17351 Code will cause \SpecialChar LaTeX
17355 \begin_layout Standard
17356 \begin_inset Note Greyedout
17359 \begin_layout Plain Layout
17364 Not all DVI-viewers are able to display self-defined colors.
17372 \begin_layout Standard
17373 \begin_inset VSpace bigskip
17379 \begin_layout Standard
17381 \begin_inset space ~
17385 \begin_inset CommandInset ref
17387 reference "tab:Table-colored-using"
17391 do the following: The color of the first column should be
17399 \begin_layout Standard
17404 columncolor{darkgreen}
17409 \begin_layout Standard
17410 as \SpecialChar LaTeX
17411 -argument for this column.
17412 The first row should be light blue, therefore the \SpecialChar TeX
17416 \begin_layout Standard
17424 \begin_layout Standard
17425 is inserted to the first cell of this row.
17426 Note that this overwrites the column color for the first cell.
17427 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17432 \begin_layout Standard
17440 \begin_layout Standard
17441 The characters could now be colored using the menu
17443 Edit\SpecialChar menuseparator
17445 \begin_inset space ~
17453 \begin_layout Standard
17454 \begin_inset Float table
17460 \begin_layout Plain Layout
17461 \begin_inset Caption Standard
17463 \begin_layout Plain Layout
17464 \begin_inset CommandInset label
17466 name "tab:Table-colored-using"
17470 Table colored using the package
17475 \begin_inset Argument 1
17478 \begin_layout Plain Layout
17479 Table with colortbl
17492 \begin_layout Plain Layout
17494 \begin_inset Tabular
17495 <lyxtabular version="3" rows="3" columns="3">
17496 <features tabularvalignment="middle">
17497 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17498 <column alignment="center" valignment="top">
17499 <column alignment="center" valignment="top">
17501 <cell alignment="center" valignment="top" usebox="none">
17504 \begin_layout Plain Layout
17508 \begin_layout Plain Layout
17524 <cell alignment="center" valignment="top" usebox="none">
17527 \begin_layout Plain Layout
17535 <cell alignment="center" valignment="top" usebox="none">
17538 \begin_layout Plain Layout
17548 <cell alignment="center" valignment="top" usebox="none">
17551 \begin_layout Plain Layout
17559 <cell alignment="center" valignment="top" usebox="none">
17562 \begin_layout Plain Layout
17570 <cell alignment="center" valignment="top" usebox="none">
17573 \begin_layout Plain Layout
17583 <cell alignment="center" valignment="top" usebox="none">
17586 \begin_layout Plain Layout
17594 <cell alignment="center" valignment="top" usebox="none">
17597 \begin_layout Plain Layout
17605 <cell alignment="center" valignment="top" usebox="none">
17608 \begin_layout Plain Layout
17612 \begin_layout Plain Layout
17641 \begin_layout Standard
17645 \begin_layout Plain Layout
17655 \begin_inset Note Note
17658 \begin_layout Plain Layout
17659 The following will be displayed when the \SpecialChar LaTeX
17672 \begin_layout Standard
17673 You need to install the package
17677 to see the content of this section in the output.
17680 \begin_layout Standard
17684 \begin_layout Plain Layout
17696 \begin_layout Subsection
17698 \begin_inset Index idx
17701 \begin_layout Plain Layout
17702 Table Color ! for Rows
17708 \begin_inset Index idx
17711 \begin_layout Plain Layout
17712 Color ! for Table Rows
17720 \begin_layout Standard
17721 In case every second table row needs to be colored there is an alternative
17722 to the method described in the previous section: One loads the package
17728 \begin_inset Index idx
17731 \begin_layout Plain Layout
17737 \begin_layout Plain Layout
17751 in the document preamble with the command
17754 \begin_layout Standard
17759 usepackage[table]{xcolor}
17762 \begin_layout Standard
17767 automatically loads also the package
17772 \begin_inset Index idx
17775 \begin_layout Plain Layout
17777 -packages ! colortbl
17786 must be installed in your \SpecialChar LaTeX
17787 -distribution, otherwise you get \SpecialChar LaTeX
17791 \begin_layout Standard
17795 \begin_layout Plain Layout
17805 \begin_inset Note Note
17808 \begin_layout Plain Layout
17809 The following section part will only be displayed when the \SpecialChar LaTeX
17822 \begin_layout Standard
17823 The table rows are colored with the command
17826 \begin_layout Standard
17831 rowcolors[commands]{row number}{odd row color}{even row color}
17834 \begin_layout Standard
17835 that is either inserted in the document preamble or as \SpecialChar TeX
17837 first table to be colored.
17839 \begin_inset space ~
17842 number is the number of the first row which should be colored according
17843 to the odd row color.
17844 commands can be additional commands that are executed before every table
17846 So for example the command
17849 \begin_layout Standard
17854 rowcolors{1}{white}{lightgray}
17857 \begin_layout Standard
17858 leads to the coloring scheme of Table
17859 \begin_inset space ~
17863 \begin_inset CommandInset ref
17865 reference "tab:Table-rowcolors"
17873 \begin_layout Standard
17880 hline]{1}{lightgray}{cyan}
17883 \begin_layout Standard
17884 leads to the coloring scheme of Table
17885 \begin_inset space ~
17889 \begin_inset CommandInset ref
17891 reference "tab:Table-rowcolors-2"
17897 \begin_inset space ~
17901 \begin_inset space ~
17905 \begin_inset space ~
17909 \begin_inset space ~
17912 color are left empty, no color will be used so that the command
17915 \begin_layout Standard
17923 \begin_layout Standard
17924 deletes all colors.
17931 affects all tables following that command.
17934 \begin_layout Standard
17938 \begin_layout Plain Layout
17942 rowcolors{1}{white}{lightgray}
17950 \begin_layout Standard
17951 \begin_inset Float table
17957 \begin_layout Plain Layout
17958 \begin_inset Caption Standard
17960 \begin_layout Plain Layout
17961 \begin_inset CommandInset label
17963 name "tab:Table-rowcolors"
17967 Table where every second row is colored light gray.
17975 \begin_layout Plain Layout
17977 \begin_inset Tabular
17978 <lyxtabular version="3" rows="4" columns="3">
17979 <features tabularvalignment="middle">
17980 <column alignment="center" valignment="top">
17981 <column alignment="center" valignment="top" width="0pt">
17982 <column alignment="center" valignment="top" width="0pt">
17984 <cell alignment="center" valignment="top" usebox="none">
17987 \begin_layout Plain Layout
17993 <cell alignment="center" valignment="top" usebox="none">
17996 \begin_layout Plain Layout
18002 <cell alignment="center" valignment="top" usebox="none">
18005 \begin_layout Plain Layout
18013 <cell alignment="center" valignment="top" usebox="none">
18016 \begin_layout Plain Layout
18022 <cell alignment="center" valignment="top" usebox="none">
18025 \begin_layout Plain Layout
18031 <cell alignment="center" valignment="top" usebox="none">
18034 \begin_layout Plain Layout
18042 <cell alignment="center" valignment="top" usebox="none">
18045 \begin_layout Plain Layout
18051 <cell alignment="center" valignment="top" usebox="none">
18054 \begin_layout Plain Layout
18060 <cell alignment="center" valignment="top" usebox="none">
18063 \begin_layout Plain Layout
18071 <cell alignment="center" valignment="top" usebox="none">
18074 \begin_layout Plain Layout
18080 <cell alignment="center" valignment="top" usebox="none">
18083 \begin_layout Plain Layout
18089 <cell alignment="center" valignment="top" usebox="none">
18092 \begin_layout Plain Layout
18111 \begin_layout Standard
18115 \begin_layout Plain Layout
18121 hline]{1}{lightgray}{cyan}
18129 \begin_layout Standard
18130 \begin_inset Float table
18136 \begin_layout Plain Layout
18137 \begin_inset Caption Standard
18139 \begin_layout Plain Layout
18140 \begin_inset CommandInset label
18142 name "tab:Table-rowcolors-2"
18146 Table where every second row is colored cyan and at which there is a line
18155 \begin_layout Plain Layout
18157 \begin_inset Tabular
18158 <lyxtabular version="3" rows="4" columns="3">
18159 <features tabularvalignment="middle">
18160 <column alignment="center" valignment="top">
18161 <column alignment="center" valignment="top">
18162 <column alignment="center" valignment="top" width="0pt">
18164 <cell alignment="center" valignment="top" usebox="none">
18167 \begin_layout Plain Layout
18173 <cell alignment="center" valignment="top" usebox="none">
18176 \begin_layout Plain Layout
18182 <cell alignment="center" valignment="top" usebox="none">
18185 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" usebox="none">
18196 \begin_layout Plain Layout
18202 <cell alignment="center" valignment="top" usebox="none">
18205 \begin_layout Plain Layout
18211 <cell alignment="center" valignment="top" usebox="none">
18214 \begin_layout Plain Layout
18222 <cell alignment="center" valignment="top" usebox="none">
18225 \begin_layout Plain Layout
18231 <cell alignment="center" valignment="top" usebox="none">
18234 \begin_layout Plain Layout
18240 <cell alignment="center" valignment="top" usebox="none">
18243 \begin_layout Plain Layout
18251 <cell alignment="center" valignment="top" usebox="none">
18254 \begin_layout Plain Layout
18260 <cell alignment="center" valignment="top" usebox="none">
18263 \begin_layout Plain Layout
18269 <cell alignment="center" valignment="top" usebox="none">
18272 \begin_layout Plain Layout
18291 \begin_layout Standard
18295 \begin_layout Plain Layout
18305 \begin_inset Note Note
18308 \begin_layout Plain Layout
18309 turns off the row coloring
18317 \begin_layout Standard
18321 \begin_layout Plain Layout
18331 \begin_inset Note Note
18334 \begin_layout Plain Layout
18335 The following will be displayed when the \SpecialChar LaTeX
18348 \begin_layout Standard
18349 You need to install the package
18353 to see the content of this section in the output.
18356 \begin_layout Standard
18360 \begin_layout Plain Layout
18372 \begin_layout Subsection
18374 \begin_inset Index idx
18377 \begin_layout Plain Layout
18378 Table Color ! for Lines
18384 \begin_inset Index idx
18387 \begin_layout Plain Layout
18388 Color ! for Table Lines
18396 \begin_layout Standard
18397 As described in section
18398 \begin_inset space ~
18402 \begin_inset CommandInset ref
18404 reference "subsec:Line-Thickness"
18408 , the line thickness for all lines in a table can be adjusted with the length
18417 \begin_inset space \thinspace{}
18420 pt for all tables of this section.
18424 \begin_layout Plain Layout
18430 arrayrulewidth}{1.5pt}
18438 \begin_layout Standard
18439 To color vertical lines for example with green, create the following column
18440 format in the document preamble, according to the description in section
18441 \begin_inset space ~
18445 \begin_inset CommandInset ref
18447 reference "subsec:Customized-Format"
18454 \begin_layout Standard
18459 newcolumntype{W}{!{
18466 \begin_layout Standard
18468 \begin_inset space ~
18472 \begin_inset CommandInset ref
18474 reference "tab:Table-with-vertical-colored"
18478 the \SpecialChar LaTeX
18483 was used for the last column and
18487 for the other columns.
18490 \begin_layout Standard
18491 If you want to have several colors, define more column formats.
18494 \begin_layout Standard
18495 \begin_inset Float table
18501 \begin_layout Plain Layout
18502 \begin_inset Caption Standard
18504 \begin_layout Plain Layout
18505 \begin_inset CommandInset label
18507 name "tab:Table-with-vertical-colored"
18511 Table with colored vertical lines
18519 \begin_layout Plain Layout
18521 \begin_inset Tabular
18522 <lyxtabular version="3" rows="3" columns="3">
18523 <features tabularvalignment="middle">
18524 <column alignment="center" valignment="top" special="Wc">
18525 <column alignment="center" valignment="top" special="Wc">
18526 <column alignment="center" valignment="top" special="WcW">
18528 <cell alignment="center" valignment="top" topline="true" usebox="none">
18531 \begin_layout Plain Layout
18537 <cell alignment="center" valignment="top" topline="true" usebox="none">
18540 \begin_layout Plain Layout
18546 <cell alignment="center" valignment="top" topline="true" usebox="none">
18549 \begin_layout Plain Layout
18557 <cell alignment="center" valignment="top" topline="true" usebox="none">
18560 \begin_layout Plain Layout
18566 <cell alignment="center" valignment="top" topline="true" usebox="none">
18569 \begin_layout Plain Layout
18575 <cell alignment="center" valignment="top" topline="true" usebox="none">
18578 \begin_layout Plain Layout
18586 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18589 \begin_layout Plain Layout
18595 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18598 \begin_layout Plain Layout
18604 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18607 \begin_layout Plain Layout
18626 \begin_layout Standard
18627 \begin_inset VSpace bigskip
18630 To color all horizontal lines for example with red, as in Table
18631 \begin_inset space ~
18635 \begin_inset CommandInset ref
18637 reference "tab:Table-with-horizontal-colored"
18641 , insert these commands in \SpecialChar TeX
18642 code before the table or table float:
18645 \begin_layout Standard
18655 \begin_inset Newline newline
18663 \begin_inset Newline newline
18667 \begin_inset Phantom HPhantom
18670 \begin_layout Plain Layout
18673 \begin_inset space ~
18683 arrayrulecolor{red}
18687 arrayrulecolor{black}}
18690 \begin_layout Standard
18694 \begin_layout Plain Layout
18705 \begin_layout Plain Layout
18714 \begin_layout Plain Layout
18718 arrayrulecolor{red}
18722 arrayrulecolor{black}}
18728 \begin_inset Float table
18734 \begin_layout Plain Layout
18735 \begin_inset Caption Standard
18737 \begin_layout Plain Layout
18738 \begin_inset CommandInset label
18740 name "tab:Table-with-horizontal-colored"
18744 Table with colored horizontal lines
18752 \begin_layout Plain Layout
18754 \begin_inset Tabular
18755 <lyxtabular version="3" rows="3" columns="3">
18756 <features tabularvalignment="middle">
18757 <column alignment="center" valignment="top">
18758 <column alignment="center" valignment="top">
18759 <column alignment="center" valignment="top">
18761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18764 \begin_layout Plain Layout
18770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18773 \begin_layout Plain Layout
18779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18782 \begin_layout Plain Layout
18790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18793 \begin_layout Plain Layout
18799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18802 \begin_layout Plain Layout
18808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18811 \begin_layout Plain Layout
18819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18822 \begin_layout Plain Layout
18828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18831 \begin_layout Plain Layout
18837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18840 \begin_layout Plain Layout
18859 \begin_layout Standard
18860 To return to the default line color black, insert this command in \SpecialChar TeX
18862 after the table or table float:
18865 \begin_layout Standard
18877 \begin_layout Standard
18879 \begin_inset space ~
18883 \begin_inset CommandInset ref
18885 reference "tab:Table-with-colored"
18889 is an example with colored vertical and horizontal lines.
18892 \begin_layout Standard
18893 \begin_inset Float table
18899 \begin_layout Plain Layout
18900 \begin_inset Caption Standard
18902 \begin_layout Plain Layout
18903 \begin_inset CommandInset label
18905 name "tab:Table-with-colored"
18909 Table with colored lines
18917 \begin_layout Plain Layout
18919 \begin_inset Tabular
18920 <lyxtabular version="3" rows="3" columns="3">
18921 <features tabularvalignment="middle">
18922 <column alignment="center" valignment="top" special="Wc">
18923 <column alignment="center" valignment="top" special="Wc">
18924 <column alignment="center" valignment="top" special="WcW">
18926 <cell alignment="center" valignment="top" topline="true" usebox="none">
18929 \begin_layout Plain Layout
18935 <cell alignment="center" valignment="top" topline="true" usebox="none">
18938 \begin_layout Plain Layout
18944 <cell alignment="center" valignment="top" topline="true" usebox="none">
18947 \begin_layout Plain Layout
18955 <cell alignment="center" valignment="top" topline="true" usebox="none">
18958 \begin_layout Plain Layout
18964 <cell alignment="center" valignment="top" topline="true" usebox="none">
18967 \begin_layout Plain Layout
18973 <cell alignment="center" valignment="top" topline="true" usebox="none">
18976 \begin_layout Plain Layout
18983 <row topspace="default">
18984 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18987 \begin_layout Plain Layout
18993 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18996 \begin_layout Plain Layout
19002 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19005 \begin_layout Plain Layout
19024 \begin_layout Standard
19028 \begin_layout Plain Layout
19044 \begin_layout Standard
19048 \begin_layout Plain Layout
19054 arrayrulewidth}{1.2pt}
19062 \begin_layout Standard
19063 To color only some of the table lines another strategy is necessary.
19064 To color all following horizontal lines, insert this command as \SpecialChar TeX
19066 last thing in the row that should be above the first colored line:
19069 \begin_layout Standard
19078 arrayrulecolor{blue}%
19081 \begin_layout Standard
19082 To go back to black lines, add this command as first thing in the row that
19083 is above the black lines:
19086 \begin_layout Standard
19091 arrayrulecolor{black}
19094 \begin_layout Standard
19095 With this one can color table lines like in Table
19096 \begin_inset space ~
19100 \begin_inset CommandInset ref
19102 reference "tab:Table-with-different-hor"
19107 However, with this method it is not possible to color the line above the
19108 first row of a table.
19111 \begin_layout Standard
19112 \begin_inset Float table
19117 \begin_layout Plain Layout
19118 \begin_inset Caption Standard
19120 \begin_layout Plain Layout
19121 \begin_inset CommandInset label
19123 name "tab:Table-with-different-hor"
19127 Table with different horizontal line colors.
19135 \begin_layout Plain Layout
19137 \begin_inset Tabular
19138 <lyxtabular version="3" rows="6" columns="7">
19139 <features tabularvalignment="middle">
19140 <column alignment="center" valignment="top">
19141 <column alignment="center" valignment="top">
19142 <column alignment="center" valignment="top">
19143 <column alignment="center" valignment="top">
19144 <column alignment="center" valignment="top">
19145 <column alignment="center" valignment="top">
19146 <column alignment="center" valignment="top">
19148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19151 \begin_layout Plain Layout
19157 <cell alignment="center" valignment="top" topline="true" usebox="none">
19160 \begin_layout Plain Layout
19166 <cell alignment="center" valignment="top" topline="true" usebox="none">
19169 \begin_layout Plain Layout
19175 <cell alignment="center" valignment="top" topline="true" usebox="none">
19178 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" topline="true" usebox="none">
19187 \begin_layout Plain Layout
19193 <cell alignment="center" valignment="top" topline="true" usebox="none">
19196 \begin_layout Plain Layout
19202 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19205 \begin_layout Plain Layout
19209 \begin_layout Plain Layout
19217 arrayrulecolor{blue}%
19229 <cell alignment="center" valignment="top" usebox="none">
19232 \begin_layout Plain Layout
19238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19241 \begin_layout Plain Layout
19247 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19250 \begin_layout Plain Layout
19256 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19259 \begin_layout Plain Layout
19265 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19268 \begin_layout Plain Layout
19274 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19277 \begin_layout Plain Layout
19283 <cell alignment="center" valignment="top" usebox="none">
19286 \begin_layout Plain Layout
19294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19297 \begin_layout Plain Layout
19301 \begin_layout Plain Layout
19305 arrayrulecolor{black}
19315 <cell alignment="center" valignment="top" usebox="none">
19318 \begin_layout Plain Layout
19324 <cell alignment="center" valignment="top" usebox="none">
19327 \begin_layout Plain Layout
19333 <cell alignment="center" valignment="top" usebox="none">
19336 \begin_layout Plain Layout
19342 <cell alignment="center" valignment="top" usebox="none">
19345 \begin_layout Plain Layout
19351 <cell alignment="center" valignment="top" usebox="none">
19354 \begin_layout Plain Layout
19360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19363 \begin_layout Plain Layout
19371 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19374 \begin_layout Plain Layout
19380 <cell alignment="center" valignment="top" usebox="none">
19383 \begin_layout Plain Layout
19389 <cell alignment="center" valignment="top" usebox="none">
19392 \begin_layout Plain Layout
19398 <cell alignment="center" valignment="top" usebox="none">
19401 \begin_layout Plain Layout
19407 <cell alignment="center" valignment="top" usebox="none">
19410 \begin_layout Plain Layout
19416 <cell alignment="center" valignment="top" usebox="none">
19419 \begin_layout Plain Layout
19425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19428 \begin_layout Plain Layout
19432 \begin_layout Plain Layout
19440 arrayrulecolor{green}%
19452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19455 \begin_layout Plain Layout
19461 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19464 \begin_layout Plain Layout
19470 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19473 \begin_layout Plain Layout
19479 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19482 \begin_layout Plain Layout
19488 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19491 \begin_layout Plain Layout
19497 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19500 \begin_layout Plain Layout
19506 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19509 \begin_layout Plain Layout
19517 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19520 \begin_layout Plain Layout
19524 \begin_layout Plain Layout
19528 arrayrulecolor{black}
19538 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19541 \begin_layout Plain Layout
19547 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19550 \begin_layout Plain Layout
19556 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19559 \begin_layout Plain Layout
19565 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19568 \begin_layout Plain Layout
19574 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19577 \begin_layout Plain Layout
19583 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19586 \begin_layout Plain Layout
19590 \begin_layout Plain Layout
19598 arrayrulecolor{blue}%
19621 \begin_layout Standard
19622 To change the color of vertical lines within a row, like in Table
19623 \begin_inset space ~
19627 \begin_inset CommandInset ref
19629 reference "tab:Table-with-different-ver"
19633 , one needs to use multicolumns.
19634 At first one needs to remove all vertical lines that don't run along the
19636 Now one colors all lines using the command
19639 \begin_layout Standard
19648 arrayrulecolor{blue}%
19651 \begin_layout Standard
19653 Finally one inserts this command as \SpecialChar TeX
19654 code to every cell in the row where
19655 one needs a vertical line in a different color:
19658 \begin_layout Standard
19674 \begin_layout Standard
19675 This adds a vertical line to both sides of the cell.
19676 The left one will be green, the right one red.
19677 If no color change is necessary one can omit the
19683 command in the above command.
19684 To get for example a black left line and a blue right line you can write:
19687 \begin_layout Standard
19699 \begin_layout Standard
19700 because the color blue was already set for all lines.
19705 creates hereby the vertical line while
19718 To set vertical lines without changing any color use
19721 \begin_layout Standard
19726 multicolumn{1}{|c|}{
19729 \begin_layout Standard
19730 After this command insert the cell content the normal way and end the cell
19731 with a closing brace
19735 in \SpecialChar TeX
19739 \begin_layout Standard
19740 \begin_inset Float table
19745 \begin_layout Plain Layout
19746 \begin_inset Caption Standard
19748 \begin_layout Plain Layout
19749 \begin_inset CommandInset label
19751 name "tab:Table-with-different-ver"
19755 Table with different vertical line colors in one row.
19763 \begin_layout Plain Layout
19765 \begin_inset Tabular
19766 <lyxtabular version="3" rows="5" columns="7">
19767 <features tabularvalignment="middle">
19768 <column alignment="center" valignment="top">
19769 <column alignment="center" valignment="top">
19770 <column alignment="center" valignment="top">
19771 <column alignment="center" valignment="top">
19772 <column alignment="center" valignment="top">
19773 <column alignment="center" valignment="top">
19774 <column alignment="center" valignment="top">
19776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19779 \begin_layout Plain Layout
19785 <cell alignment="center" valignment="top" topline="true" usebox="none">
19788 \begin_layout Plain Layout
19794 <cell alignment="center" valignment="top" topline="true" usebox="none">
19797 \begin_layout Plain Layout
19803 <cell alignment="center" valignment="top" topline="true" usebox="none">
19806 \begin_layout Plain Layout
19812 <cell alignment="center" valignment="top" topline="true" usebox="none">
19815 \begin_layout Plain Layout
19821 <cell alignment="center" valignment="top" topline="true" usebox="none">
19824 \begin_layout Plain Layout
19830 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19833 \begin_layout Plain Layout
19837 \begin_layout Plain Layout
19845 arrayrulecolor{red}%
19857 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19860 \begin_layout Plain Layout
19864 \begin_layout Plain Layout
19881 \begin_layout Plain Layout
19893 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19896 \begin_layout Plain Layout
19902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19905 \begin_layout Plain Layout
19911 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19914 \begin_layout Plain Layout
19920 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19923 \begin_layout Plain Layout
19929 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19932 \begin_layout Plain Layout
19936 \begin_layout Plain Layout
19940 multicolumn{1}{c|}{
19949 \begin_layout Plain Layout
19961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19964 \begin_layout Plain Layout
19968 \begin_layout Plain Layout
19985 \begin_layout Plain Layout
19999 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20002 \begin_layout Plain Layout
20006 \begin_layout Plain Layout
20010 arrayrulecolor{black}
20020 <cell alignment="center" valignment="top" usebox="none">
20023 \begin_layout Plain Layout
20029 <cell alignment="center" valignment="top" usebox="none">
20032 \begin_layout Plain Layout
20038 <cell alignment="center" valignment="top" usebox="none">
20041 \begin_layout Plain Layout
20047 <cell alignment="center" valignment="top" usebox="none">
20050 \begin_layout Plain Layout
20056 <cell alignment="center" valignment="top" usebox="none">
20059 \begin_layout Plain Layout
20065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20068 \begin_layout Plain Layout
20072 \begin_layout Plain Layout
20080 arrayrulecolor{magenta}%
20092 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20095 \begin_layout Plain Layout
20099 \begin_layout Plain Layout
20103 multicolumn{1}{|c!{
20116 \begin_layout Plain Layout
20128 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20131 \begin_layout Plain Layout
20135 \begin_layout Plain Layout
20152 \begin_layout Plain Layout
20164 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20167 \begin_layout Plain Layout
20171 \begin_layout Plain Layout
20188 \begin_layout Plain Layout
20200 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20203 \begin_layout Plain Layout
20207 \begin_layout Plain Layout
20224 \begin_layout Plain Layout
20236 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20239 \begin_layout Plain Layout
20243 \begin_layout Plain Layout
20260 \begin_layout Plain Layout
20272 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20275 \begin_layout Plain Layout
20279 \begin_layout Plain Layout
20296 \begin_layout Plain Layout
20308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20311 \begin_layout Plain Layout
20315 \begin_layout Plain Layout
20319 multicolumn{1}{c|}{
20328 \begin_layout Plain Layout
20342 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20345 \begin_layout Plain Layout
20349 \begin_layout Plain Layout
20353 arrayrulecolor{black}
20363 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20366 \begin_layout Plain Layout
20372 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20375 \begin_layout Plain Layout
20381 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20384 \begin_layout Plain Layout
20390 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20393 \begin_layout Plain Layout
20399 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20402 \begin_layout Plain Layout
20408 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20411 \begin_layout Plain Layout
20430 \begin_layout Standard
20434 \begin_layout Plain Layout
20440 arrayrulewidth}{0.4pt}
20448 \begin_layout Section
20449 Rotated Table Cells
20450 \begin_inset CommandInset label
20452 name "sec:Rotated-Table-Cells"
20457 \begin_inset Index idx
20460 \begin_layout Plain Layout
20461 Table ! Rotated Cells
20467 \begin_inset Index idx
20470 \begin_layout Plain Layout
20479 \begin_layout Standard
20480 \begin_inset Note Greyedout
20483 \begin_layout Plain Layout
20488 Not all DVI-viewers are able to display rotations.
20496 \begin_layout Standard
20498 \begin_inset space ~
20502 \begin_inset CommandInset ref
20504 reference "tab:Table-with-rotated-multi"
20508 is an example where 3
20509 \begin_inset space ~
20512 cells were rotated by 45
20513 \begin_inset space \thinspace{}
20519 \begin_layout Standard
20520 \begin_inset Float table
20526 \begin_layout Plain Layout
20527 \begin_inset Caption Standard
20529 \begin_layout Plain Layout
20530 \begin_inset CommandInset label
20532 name "tab:Table-with-rotated"
20536 Table with rotated cells in the first row.
20544 \begin_layout Plain Layout
20547 \begin_inset Tabular
20548 <lyxtabular version="3" rows="2" columns="3">
20549 <features tabularvalignment="middle">
20550 <column alignment="center" valignment="top" width="0pt">
20551 <column alignment="center" valignment="top" width="0pt">
20552 <column alignment="center" valignment="top" width="0pt">
20554 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20557 \begin_layout Plain Layout
20563 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20566 \begin_layout Plain Layout
20572 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20575 \begin_layout Plain Layout
20583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20586 \begin_layout Plain Layout
20592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20595 \begin_layout Plain Layout
20601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20604 \begin_layout Plain Layout
20623 \begin_layout Standard
20624 \begin_inset Note Greyedout
20627 \begin_layout Plain Layout
20632 Line breaks (shortcut
20635 arg "newline-insert newline"
20638 ) are not allowed in rotated cells.
20646 \begin_layout Standard
20647 If you want to rotate table cells containing line breaks, you have to put
20648 the cell content into a minipage or a parbox.
20652 \begin_layout Plain Layout
20653 For more about these boxes see sec.
20654 \begin_inset space \thinspace{}
20658 \begin_inset CommandInset ref
20660 reference "sec:Minipages"
20665 \begin_inset CommandInset ref
20667 reference "sec:Parboxes"
20676 If you rotate this cell by 90
20677 \begin_inset space \thinspace{}
20680 ° the width of the box is the height of the cell.
20682 \begin_inset space ~
20686 \begin_inset CommandInset ref
20688 reference "tab:Table-with-rotated-multi"
20692 is an example for a rotated multiline cell where the box width was set
20694 \begin_inset space \thinspace{}
20700 \begin_layout Standard
20701 \begin_inset Float table
20706 \begin_layout Plain Layout
20707 \begin_inset Caption Standard
20709 \begin_layout Plain Layout
20710 \begin_inset CommandInset label
20712 name "tab:Table-with-rotated-multi"
20716 Table with rotated multiline cell.
20724 \begin_layout Plain Layout
20727 \begin_inset Tabular
20728 <lyxtabular version="3" rows="2" columns="3">
20729 <features tabularvalignment="middle">
20730 <column alignment="center" valignment="top">
20731 <column alignment="center" valignment="top" width="0pt">
20732 <column alignment="center" valignment="top">
20734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20737 \begin_layout Plain Layout
20743 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20746 \begin_layout Plain Layout
20747 \begin_inset Box Frameless
20757 height_special "totalheight"
20762 backgroundcolor "none"
20765 \begin_layout Plain Layout
20767 \begin_inset Newline newline
20780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20783 \begin_layout Plain Layout
20791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20794 \begin_layout Plain Layout
20800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20803 \begin_layout Plain Layout
20809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20812 \begin_layout Plain Layout
20831 \begin_layout Section
20832 Table Width Calculation
20833 \begin_inset CommandInset label
20835 name "sec:Table-Width-Calculation"
20842 \begin_layout Standard
20843 For wide tables it is sometimes difficult to assure that the table does
20844 not protrude over the page margin.
20845 Setting a fixed width for every column of the table is the solution, but
20846 what amount of space is needed for each column?
20849 \begin_layout Standard
20851 \begin_inset Formula $W_{\mathrm{table}}$
20854 can be calculated: Every column has the width of the specified column width
20856 \begin_inset Formula $W_{\mathrm{column}}$
20859 (that the content of the column can consume) plus two times the separation
20860 between the column content and the column border (\SpecialChar LaTeX
20868 \begin_inset space \thinspace{}
20871 pt) plus the width of a border line (\SpecialChar LaTeX
20879 \begin_inset space \thinspace{}
20883 \begin_inset Formula $n$
20887 \begin_inset space ~
20890 columns have the same width, the table width is
20891 \begin_inset Formula
20893 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20901 \begin_layout Standard
20902 The available width for a table is the space between the page margins or
20903 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20911 If all table columns should have the same width and
20912 \begin_inset Formula $W_{\mathrm{table}}$
20916 \begin_inset space \thinspace{}
20922 \begin_inset Formula $W_{\mathrm{column}}$
20925 can easily be calculated.
20928 \begin_layout Standard
20929 To be able to perform calculations you need to load the \SpecialChar LaTeX
20935 \begin_inset Index idx
20938 \begin_layout Plain Layout
20945 in the document preamble.
20946 To set the width in the table dialog you have to use the field
20952 The command scheme for this field is the same that is explained in section
20953 \begin_inset space ~
20957 \begin_inset CommandInset ref
20959 reference "subsec:Multicolumn-Calculations"
20965 \begin_inset space \thinspace{}
20968 columns with an uniform width and centered text, enter there for each column
20972 \begin_layout Standard
20979 columnwidth-62.4pt)/5}
20982 \begin_layout Standard
20984 \begin_inset space \thinspace{}
20987 columns where 2 should have 0.75
20988 \begin_inset space ~
20991 times the width than the 3 others, the calculation is
20992 \begin_inset Formula
20994 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
20995 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
20996 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
20997 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21005 \begin_layout Standard
21006 In the table therefore the command
21009 \begin_layout Standard
21016 columnwidth-62.4pt)/
21021 \begin_layout Standard
21022 is used for the wider columns and
21025 \begin_layout Standard
21032 columnwidth-62.4pt)/
21039 \begin_layout Standard
21040 for the smaller ones:
21043 \begin_layout Standard
21044 \begin_inset Tabular
21045 <lyxtabular version="3" rows="2" columns="5">
21046 <features tabularvalignment="middle">
21047 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21048 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21049 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21050 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21051 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21056 \begin_layout Plain Layout
21062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21065 \begin_layout Plain Layout
21071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21074 \begin_layout Plain Layout
21080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21083 \begin_layout Plain Layout
21089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21092 \begin_layout Plain Layout
21100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21103 \begin_layout Plain Layout
21104 111111 1111111 111111 111111111 11111 11111 1111
21109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21112 \begin_layout Plain Layout
21118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21121 \begin_layout Plain Layout
21122 2222 22222 222222 222222222 2222222 22 22222
21127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21130 \begin_layout Plain Layout
21136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21139 \begin_layout Plain Layout
21140 333333 333333 333333 33333 3333333 333
21153 \begin_layout Section
21154 Table Customization
21155 \begin_inset Index idx
21158 \begin_layout Plain Layout
21159 Table Customization
21165 \begin_inset Index idx
21168 \begin_layout Plain Layout
21169 Table ! Customization
21177 \begin_layout Subsection
21179 \begin_inset CommandInset label
21181 name "subsec:Row-Spacing"
21186 \begin_inset Index idx
21189 \begin_layout Plain Layout
21190 Table Customization ! Row Spacing
21198 \begin_layout Standard
21199 You can add vertical space to table rows in the
21203 tab of the table dialog.
21204 You find there three possibilities:
21207 \begin_layout Description
21209 \begin_inset space ~
21213 \begin_inset space ~
21216 row will add space above the characters of the table row.
21217 If the table is a formal table
21221 \begin_layout Plain Layout
21222 Formal tables are explained in section
21223 \begin_inset space ~
21227 \begin_inset CommandInset ref
21229 reference "sec:Formal-Tables"
21239 will insert as default 0.5
21240 \begin_inset space \thinspace{}
21244 For normal tables the inserted space will unfortunately destroy the vertical
21245 table lines as in the following table:
21246 \begin_inset VSpace medskip
21250 \begin_inset Newline newline
21254 \begin_inset space \hspace*{}
21259 \begin_inset space \hfill{}
21263 \begin_inset Tabular
21264 <lyxtabular version="3" rows="3" columns="1">
21265 <features tabularvalignment="middle">
21266 <column alignment="center" valignment="top">
21268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21271 \begin_layout Plain Layout
21278 <row topspace="3mm">
21279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21282 \begin_layout Plain Layout
21284 \begin_inset space \thinspace{}
21287 mm space top of row
21294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21297 \begin_layout Plain Layout
21309 \begin_inset space \hfill{}
21313 \begin_inset space \hspace*{}
21318 \begin_inset VSpace medskip
21322 \begin_inset Newline newline
21325 So inserting space in the top of row for normal tables is only useful when
21326 you don't have vertical lines.
21329 \begin_layout Description
21331 \begin_inset space ~
21335 \begin_inset space ~
21338 row will add space below the characters of the table row.
21339 If the table is a formal table \SpecialChar LyX
21340 will insert as default 0.5
21341 \begin_inset space \thinspace{}
21344 em space, for normal tables the default size is 2
21345 \begin_inset space \thinspace{}
21351 \begin_layout Description
21353 \begin_inset space ~
21356 rows adds space between the current and the following row.
21357 If the table is a formal table \SpecialChar LyX
21358 will insert as default 0.5
21359 \begin_inset space \thinspace{}
21363 For normal tables the inserted space will unfortunately destroy the vertical
21364 table lines as in the following table:
21365 \begin_inset VSpace medskip
21369 \begin_inset Newline newline
21373 \begin_inset space \hspace*{}
21378 \begin_inset space \hfill{}
21382 \begin_inset Tabular
21383 <lyxtabular version="3" rows="3" columns="1">
21384 <features tabularvalignment="middle">
21385 <column alignment="center" valignment="top">
21387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21390 \begin_layout Plain Layout
21397 <row interlinespace="3mm">
21398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21401 \begin_layout Plain Layout
21402 \begin_inset Formula $\downarrow$
21406 \begin_inset space \thinspace{}
21409 mm space between row
21410 \begin_inset Formula $\downarrow$
21420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21423 \begin_layout Plain Layout
21424 \begin_inset Formula $\uparrow$
21428 \begin_inset space \thinspace{}
21431 mm space between row
21432 \begin_inset Formula $\uparrow$
21446 \begin_inset space \hfill{}
21450 \begin_inset space \hspace*{}
21455 \begin_inset VSpace medskip
21459 \begin_inset Newline newline
21462 So inserting space between rows for normal tables is only useful when you
21463 don't have vertical lines.
21466 \begin_layout Standard
21467 \begin_inset VSpace bigskip
21470 When you want to add extra height to all cells of all tables, you can do
21471 this with the following preamble lines:
21474 \begin_layout Standard
21479 @ifundefined{extrarowheight}
21480 \begin_inset Newline newline
21484 \begin_inset Phantom HPhantom
21487 \begin_layout Plain Layout
21490 \begin_inset space ~
21500 usepackage{array}}{}
21501 \begin_inset Newline newline
21508 extrarowheight}{height}
21511 \begin_inset Note Note
21514 \begin_layout Plain Layout
21519 will be loaded automatically by \SpecialChar LyX
21520 when you use self defined table formats.
21521 To avoid that it being loaded twice the command
21527 is used in the above command.
21535 \begin_layout Standard
21540 can have one of the units listed in appendix
21541 \begin_inset space ~
21545 \begin_inset CommandInset ref
21547 reference "cha:Units-available-in"
21552 But this has the disadvantage that the cell texts are no longer exactly
21553 vertically centered.
21556 \begin_layout Standard
21557 If you are using font sizes larger than the normal size, the table borders
21558 are often too close to the letters.
21559 This can be corrected by inserting the command
21565 in \SpecialChar TeX
21566 Code at the beginning of a table row.
21568 \begin_inset space ~
21572 \begin_inset CommandInset ref
21574 reference "tab:Vertical-alignment-of"
21578 illustrates the effect.
21581 \begin_layout Standard
21583 \begin_inset Float table
21589 \begin_layout Plain Layout
21590 \begin_inset Caption Standard
21592 \begin_layout Plain Layout
21593 \begin_inset CommandInset label
21595 name "tab:Vertical-alignment-of"
21599 Vertical alignment of text with large font sizes.
21607 \begin_layout Plain Layout
21608 \begin_inset space \hfill{}
21612 \begin_inset Float table
21617 \begin_layout Plain Layout
21618 \begin_inset Caption Standard
21620 \begin_layout Plain Layout
21629 \begin_layout Plain Layout
21632 \begin_inset Tabular
21633 <lyxtabular version="3" rows="6" columns="1">
21634 <features tabularvalignment="middle">
21635 <column alignment="left" valignment="top">
21637 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21640 \begin_layout Plain Layout
21648 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21651 \begin_layout Plain Layout
21661 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21664 \begin_layout Plain Layout
21674 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21677 \begin_layout Plain Layout
21687 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21690 \begin_layout Plain Layout
21700 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21703 \begin_layout Plain Layout
21722 \begin_inset space \hfill{}
21726 \begin_inset Float table
21731 \begin_layout Plain Layout
21732 \begin_inset Caption Standard
21734 \begin_layout Plain Layout
21735 Table using the command
21749 \begin_layout Plain Layout
21752 \begin_inset Tabular
21753 <lyxtabular version="3" rows="6" columns="1">
21754 <features tabularvalignment="middle">
21755 <column alignment="left" valignment="top">
21757 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21760 \begin_layout Plain Layout
21768 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21771 \begin_layout Plain Layout
21777 \begin_layout Plain Layout
21793 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21796 \begin_layout Plain Layout
21802 \begin_layout Plain Layout
21818 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21821 \begin_layout Plain Layout
21827 \begin_layout Plain Layout
21843 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21846 \begin_layout Plain Layout
21852 \begin_layout Plain Layout
21868 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21871 \begin_layout Plain Layout
21877 \begin_layout Plain Layout
21904 \begin_inset space \hfill{}
21915 \begin_layout Subsection
21916 Special Cell Alignment
21917 \begin_inset CommandInset label
21919 name "subsec:Special-Cell-Alignment"
21924 \begin_inset Index idx
21927 \begin_layout Plain Layout
21928 Table Customization ! Special Cell Alignment
21936 \begin_layout Standard
21937 Sometimes it looks better when the cell entries of a column are aligned
21938 with a special character, e.
21939 \begin_inset space \thinspace{}
21943 \begin_inset space \space{}
21946 with the decimal separator as in Table
21947 \begin_inset space ~
21951 \begin_inset CommandInset ref
21953 reference "tab:Table-cells-align"
21958 This alignment is achieved by setting the cursor into the column and then
21959 either pressing the toolbar button
21962 arg "tabular-feature align-decimal"
21965 or setting the alignment in the table settings to
21968 \begin_inset space ~
21972 \begin_inset space ~
21978 The alignment character can be a character of your choice and is specified
21979 in the table settings.
21982 \begin_layout Standard
21983 \begin_inset Float table
21989 \begin_layout Plain Layout
21990 \begin_inset Caption Standard
21992 \begin_layout Plain Layout
21993 \begin_inset CommandInset label
21995 name "tab:Table-cells-align"
21999 Table cells of a column aligned with the decimal separator.
22007 \begin_layout Plain Layout
22009 \begin_inset Tabular
22010 <lyxtabular version="3" rows="4" columns="1">
22011 <features booktabs="true" tabularvalignment="middle">
22012 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22017 \begin_layout Plain Layout
22025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22028 \begin_layout Plain Layout
22036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22039 \begin_layout Plain Layout
22047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22050 \begin_layout Plain Layout
22069 \begin_layout Standard
22070 \begin_inset Float table
22076 \begin_layout Plain Layout
22077 \begin_inset Caption Standard
22079 \begin_layout Plain Layout
22080 \begin_inset CommandInset label
22082 name "tab:Table-align-operator"
22086 Table cells of a column aligned with the operators.
22094 \begin_layout Plain Layout
22096 \begin_inset Tabular
22097 <lyxtabular version="3" rows="4" columns="2">
22098 <features booktabs="true" tabularvalignment="middle">
22099 <column alignment="right" valignment="top" width="0pt">
22100 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22102 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22105 \begin_layout Plain Layout
22111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22114 \begin_layout Plain Layout
22122 <cell alignment="center" valignment="top" usebox="none">
22125 \begin_layout Plain Layout
22126 \begin_inset Formula $12\,+$
22134 <cell alignment="center" valignment="top" usebox="none">
22137 \begin_layout Plain Layout
22138 \begin_inset Formula $\,6$
22148 <cell alignment="center" valignment="top" usebox="none">
22151 \begin_layout Plain Layout
22152 \begin_inset Formula $0\,-$
22160 <cell alignment="center" valignment="top" usebox="none">
22163 \begin_layout Plain Layout
22164 \begin_inset Formula $\,68$
22174 <cell alignment="center" valignment="top" usebox="none">
22177 \begin_layout Plain Layout
22178 \begin_inset Formula $-123\,/$
22186 <cell alignment="center" valignment="top" usebox="none">
22189 \begin_layout Plain Layout
22190 \begin_inset Formula $\,0$
22211 \begin_layout Standard
22212 For alignments at characters in formulas this method does not work because
22213 the field to specify the alignment character does not allow formulas.
22214 In this case one need to use the method from Table
22215 \begin_inset space ~
22219 \begin_inset CommandInset ref
22221 reference "tab:Table-align-operator"
22226 This table was created with a 4×2 table.
22227 The heading is a centered multicolumn.
22228 The first column is right-aligned and contains the first part including
22230 The second column is left aligned and contains the rest.
22231 A small space was added at the beginning of each cell of the second column
22232 to get the space that is usually around operators.
22233 To omit the space that is normally between two table columns, the following
22235 -argument was used for the second column:
22238 \begin_layout Standard
22244 \begin_layout Standard
22246 \begin_inset space ~
22250 \begin_inset CommandInset ref
22252 reference "tab:Several-table-cell"
22256 shows some example alignments.
22257 For the alignment with the relation sign, a small space was added like
22258 for the second column of Table
22259 \begin_inset space ~
22263 \begin_inset CommandInset ref
22265 reference "tab:Table-align-operator"
22272 \begin_layout Standard
22273 \begin_inset Float table
22279 \begin_layout Plain Layout
22280 \begin_inset Caption Standard
22282 \begin_layout Plain Layout
22283 \begin_inset CommandInset label
22285 name "tab:Several-table-cell"
22289 Several table cell alignments.
22297 \begin_layout Plain Layout
22299 \begin_inset Tabular
22300 <lyxtabular version="3" rows="4" columns="6">
22301 <features tabularvalignment="middle">
22302 <column alignment="right" valignment="top">
22303 <column alignment="left" valignment="top" special="@{}l">
22304 <column alignment="right" valignment="top">
22305 <column alignment="left" valignment="top" special="@{}l">
22306 <column alignment="right" valignment="top">
22307 <column alignment="left" valignment="top" special="@{}l">
22309 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22312 \begin_layout Plain Layout
22318 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22321 \begin_layout Plain Layout
22327 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22330 \begin_layout Plain Layout
22336 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22339 \begin_layout Plain Layout
22345 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22348 \begin_layout Plain Layout
22354 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22357 \begin_layout Plain Layout
22365 <cell alignment="center" valignment="top" usebox="none">
22368 \begin_layout Plain Layout
22374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22377 \begin_layout Plain Layout
22379 \begin_inset space \thinspace{}
22387 <cell alignment="center" valignment="top" usebox="none">
22390 \begin_layout Plain Layout
22391 \begin_inset Formula $10\cdot$
22399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22402 \begin_layout Plain Layout
22403 \begin_inset Formula $10^{\mbox{-}17}$
22411 <cell alignment="center" valignment="top" usebox="none">
22414 \begin_layout Plain Layout
22415 \begin_inset Formula $\Gamma(t)\propto$
22423 <cell alignment="center" valignment="top" usebox="none">
22426 \begin_layout Plain Layout
22427 \begin_inset Formula $\:\Upsilon(t)$
22437 <cell alignment="center" valignment="top" usebox="none">
22440 \begin_layout Plain Layout
22446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22449 \begin_layout Plain Layout
22451 \begin_inset space \thinspace{}
22459 <cell alignment="center" valignment="top" usebox="none">
22462 \begin_layout Plain Layout
22463 \begin_inset Formula $5.78\cdot$
22471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22474 \begin_layout Plain Layout
22475 \begin_inset Formula $10^{7}$
22483 <cell alignment="center" valignment="top" usebox="none">
22486 \begin_layout Plain Layout
22487 \begin_inset Formula $A\ne$
22495 <cell alignment="center" valignment="top" usebox="none">
22498 \begin_layout Plain Layout
22499 \begin_inset Formula $\:B_{\mathrm{red}}$
22509 <cell alignment="center" valignment="top" usebox="none">
22512 \begin_layout Plain Layout
22518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22521 \begin_layout Plain Layout
22523 \begin_inset space \thinspace{}
22531 <cell alignment="center" valignment="top" usebox="none">
22534 \begin_layout Plain Layout
22536 \begin_inset Formula $33.5\cdot$
22544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22547 \begin_layout Plain Layout
22548 \begin_inset Formula $10^{4}$
22556 <cell alignment="center" valignment="top" usebox="none">
22559 \begin_layout Plain Layout
22560 \begin_inset Formula $\sin(\alpha)\ge$
22568 <cell alignment="center" valignment="top" usebox="none">
22571 \begin_layout Plain Layout
22572 \begin_inset Formula $\:\sin(\beta)$
22593 \begin_layout Subsection
22594 Customized Cell/Column Format
22595 \begin_inset CommandInset label
22597 name "subsec:Customized-Format"
22602 \begin_inset Index idx
22605 \begin_layout Plain Layout
22606 Table Customization ! Cell/Column Format
22614 \begin_layout Standard
22615 Calculating the required width for normal columns as described in section
22616 \begin_inset space ~
22620 \begin_inset CommandInset ref
22622 reference "sec:Table-Width-Calculation"
22626 or for spanned columns as described in section
22627 \begin_inset space ~
22631 \begin_inset CommandInset ref
22633 reference "subsec:Multicolumn-Calculations"
22637 is very annoying if you have several tables where a calculation is necessary.
22638 To make life easier, you can define a cell/column format in the preamble,
22639 that can be used in all tables of the document.
22640 The format is defined with the command
22643 \begin_layout Standard
22648 newcolumntype{name of format}[number of arguments]{commands}
22651 \begin_layout Standard
22652 The format name may only consist of one letter.
22677 are predefined and cannot be used.
22678 But all letters are allowed as capitals.
22681 \begin_layout Standard
22682 \begin_inset VSpace medskip
22688 \begin_layout Standard
22689 For vertically and horizontally centered multicolumn cells with a fixed
22690 width you can define the cell format
22693 \begin_layout Standard
22698 newcolumntype{M}[1]{>{
22705 \begin_layout Standard
22712 avoids the problem of hyphenating the first word, as described in section
22713 \begin_inset space ~
22717 \begin_inset CommandInset ref
22719 reference "subsec:Multiple-Lines-in"
22724 Now you can simply enter
22727 \begin_layout Standard
22733 \begin_layout Standard
22739 in the table dialog to create a multicolumn.
22742 \begin_layout Standard
22743 \begin_inset VSpace bigskip
22749 \begin_layout Standard
22750 For cells spanned by a multicolumn cell, you can define the format
22753 \begin_layout Standard
22758 newcolumntype{S}[2]{>{
22763 \begin_inset Newline newline
22767 \begin_inset Phantom HPhantom
22770 \begin_layout Plain Layout
22784 arrayrulewidth)*(1-#2))/#2}}
22787 \begin_layout Standard
22788 This format uses equation
22789 \begin_inset CommandInset ref
22795 to calculate the required width so that each spanned cell has the same
22799 \begin_layout Standard
22803 \begin_layout Standard
22806 S{width of multicolumn cell}{number of spanned columns}
22809 \begin_layout Standard
22810 as \SpecialChar LaTeX
22811 -argument of the column.
22814 \begin_layout Standard
22815 \begin_inset VSpace bigskip
22821 \begin_layout Standard
22822 For colored columns, you can define
22825 \begin_layout Standard
22830 newcolumntype{K}[1]{>{
22837 \begin_layout Standard
22839 \begin_inset Quotes eld
22843 \begin_inset Quotes erd
22846 at the end creates a column with a flexible width whose text is horizontally
22851 \begin_layout Standard
22857 \begin_layout Standard
22858 as \SpecialChar LaTeX
22862 \begin_layout Standard
22863 \begin_inset VSpace bigskip
22869 \begin_layout Standard
22871 \begin_inset space ~
22875 \begin_inset CommandInset ref
22877 reference "tab:Table-using-user-defined"
22881 use the \SpecialChar LaTeX
22885 \begin_layout Standard
22891 \begin_layout Standard
22892 for the first column and the multicolumn,
22895 \begin_layout Standard
22901 \begin_layout Standard
22902 for the last column, and
22905 \begin_layout Standard
22911 \begin_layout Standard
22912 for the cells in the second column.
22915 \begin_layout Standard
22916 \begin_inset Float table
22922 \begin_layout Plain Layout
22923 \begin_inset Caption Standard
22925 \begin_layout Plain Layout
22926 \begin_inset CommandInset label
22928 name "tab:Table-using-user-defined"
22932 Table using user-defined table formats
22940 \begin_layout Plain Layout
22942 \begin_inset Tabular
22943 <lyxtabular version="3" rows="3" columns="4">
22944 <features tabularvalignment="middle">
22945 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22946 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22947 <column alignment="center" valignment="middle">
22948 <column alignment="center" valignment="middle" special="K{red}">
22950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22953 \begin_layout Plain Layout
22954 verylongtablecellword
22959 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22962 \begin_layout Plain Layout
22963 multiple lines multicolumn
22968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22971 \begin_layout Plain Layout
22977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22980 \begin_layout Plain Layout
22988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22991 \begin_layout Plain Layout
22997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23000 \begin_layout Plain Layout
23006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23009 \begin_layout Plain Layout
23015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23018 \begin_layout Plain Layout
23026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23029 \begin_layout Plain Layout
23035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23038 \begin_layout Plain Layout
23044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23047 \begin_layout Plain Layout
23053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23056 \begin_layout Plain Layout
23075 \begin_layout Subsection
23077 \begin_inset CommandInset label
23079 name "subsec:Line-Thickness"
23084 \begin_inset Index idx
23087 \begin_layout Plain Layout
23088 Table Customization ! Line Thickness
23096 \begin_layout Standard
23097 The line thickness for all lines in a table can be adjusted with the length
23105 To set for example a line thickness of 1.5
23106 \begin_inset space \thinspace{}
23110 \begin_inset space ~
23114 \begin_inset CommandInset ref
23116 reference "tab:Table-with-1.5"
23120 , insert the command
23123 \begin_layout Standard
23130 arrayrulewidth}{1.5pt}
23133 \begin_layout Standard
23134 in \SpecialChar TeX
23135 Code before the table or table float.
23136 The changed thickness is valid for all subsequent tables.
23137 To use the default value again, set
23144 \begin_inset space \thinspace{}
23147 pt in \SpecialChar TeX
23148 Code after the table or table float.
23151 \begin_layout Standard
23155 \begin_layout Plain Layout
23161 arrayrulewidth}{1.5pt}
23167 \begin_inset Float table
23172 \begin_layout Plain Layout
23173 \begin_inset Caption Standard
23175 \begin_layout Plain Layout
23176 \begin_inset CommandInset label
23178 name "tab:Table-with-1.5"
23183 \begin_inset space \thinspace{}
23194 \begin_layout Plain Layout
23196 \begin_inset Tabular
23197 <lyxtabular version="3" rows="3" columns="3">
23198 <features tabularvalignment="middle">
23199 <column alignment="center" valignment="top">
23200 <column alignment="center" valignment="top">
23201 <column alignment="center" valignment="top">
23203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23206 \begin_layout Plain Layout
23212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23215 \begin_layout Plain Layout
23221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23224 \begin_layout Plain Layout
23232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23235 \begin_layout Plain Layout
23241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23244 \begin_layout Plain Layout
23250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23253 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23264 \begin_layout Plain Layout
23270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23273 \begin_layout Plain Layout
23279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23282 \begin_layout Plain Layout
23302 \begin_layout Plain Layout
23308 arrayrulewidth}{0.4pt}
23316 \begin_layout Standard
23317 \begin_inset VSpace bigskip
23320 To set the line thickness to 1.5
23321 \begin_inset space \thinspace{}
23324 pt only for horizontal lines, as in Table
23325 \begin_inset space ~
23329 \begin_inset CommandInset ref
23331 reference "tab:Table-with-horizontal"
23335 , insert these commands in \SpecialChar TeX
23336 Code before the table or table float:
23339 \begin_layout Standard
23349 \begin_inset Newline newline
23357 \begin_inset Newline newline
23366 arrayrulewidth 1.5pt}
23367 \begin_inset Newline newline
23378 arrayrulewidth 0.4pt}}
23381 \begin_layout Standard
23382 To return to the default line thickness, insert this command in \SpecialChar TeX
23384 the table or table float:
23387 \begin_layout Standard
23399 \begin_layout Standard
23403 \begin_layout Plain Layout
23414 \begin_layout Plain Layout
23423 \begin_layout Plain Layout
23431 arrayrulewidth 1.5pt}
23434 \begin_layout Plain Layout
23444 arrayrulewidth 0.4pt}}
23450 \begin_inset Float table
23455 \begin_layout Plain Layout
23456 \begin_inset Caption Standard
23458 \begin_layout Plain Layout
23459 \begin_inset CommandInset label
23461 name "tab:Table-with-horizontal"
23466 \begin_inset space \thinspace{}
23469 pt thick horizontal lines
23477 \begin_layout Plain Layout
23479 \begin_inset Tabular
23480 <lyxtabular version="3" rows="3" columns="3">
23481 <features tabularvalignment="middle">
23482 <column alignment="center" valignment="top">
23483 <column alignment="center" valignment="top">
23484 <column alignment="center" valignment="top">
23486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23489 \begin_layout Plain Layout
23495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23498 \begin_layout Plain Layout
23504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23507 \begin_layout Plain Layout
23515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23518 \begin_layout Plain Layout
23524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23527 \begin_layout Plain Layout
23533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23536 \begin_layout Plain Layout
23544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23547 \begin_layout Plain Layout
23553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23556 \begin_layout Plain Layout
23562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23565 \begin_layout Plain Layout
23585 \begin_layout Plain Layout
23601 \begin_layout Standard
23602 \begin_inset VSpace bigskip
23605 To set the line thickness to 1.5
23606 \begin_inset space \thinspace{}
23609 pt only for vertical lines, create the following column format in the document
23610 preamble, according to the description in section
23611 \begin_inset space ~
23615 \begin_inset CommandInset ref
23617 reference "subsec:Customized-Format"
23624 \begin_layout Standard
23629 newcolumntype{V}{!{
23631 vrule width 1.5pt}}
23634 \begin_layout Standard
23636 \begin_inset space ~
23640 \begin_inset CommandInset ref
23642 reference "tab:Table-with-vertical"
23646 the \SpecialChar LaTeX
23650 \begin_layout Standard
23656 \begin_layout Standard
23657 was used for the last column and
23660 \begin_layout Standard
23666 \begin_layout Standard
23667 for the other columns.
23670 \begin_layout Standard
23671 \begin_inset Float table
23676 \begin_layout Plain Layout
23677 \begin_inset Caption Standard
23679 \begin_layout Plain Layout
23680 \begin_inset CommandInset label
23682 name "tab:Table-with-vertical"
23687 \begin_inset space \thinspace{}
23690 pt thick vertical lines
23698 \begin_layout Plain Layout
23700 \begin_inset Tabular
23701 <lyxtabular version="3" rows="3" columns="3">
23702 <features tabularvalignment="middle">
23703 <column alignment="center" valignment="top" special="Vc">
23704 <column alignment="center" valignment="top" special="Vc">
23705 <column alignment="center" valignment="top" special="VcV">
23707 <cell alignment="center" valignment="top" topline="true" usebox="none">
23710 \begin_layout Plain Layout
23716 <cell alignment="center" valignment="top" topline="true" usebox="none">
23719 \begin_layout Plain Layout
23725 <cell alignment="center" valignment="top" topline="true" usebox="none">
23728 \begin_layout Plain Layout
23736 <cell alignment="center" valignment="top" topline="true" usebox="none">
23739 \begin_layout Plain Layout
23745 <cell alignment="center" valignment="top" topline="true" usebox="none">
23748 \begin_layout Plain Layout
23754 <cell alignment="center" valignment="top" topline="true" usebox="none">
23757 \begin_layout Plain Layout
23765 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23768 \begin_layout Plain Layout
23774 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23777 \begin_layout Plain Layout
23783 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23786 \begin_layout Plain Layout
23805 \begin_layout Subsection
23807 \begin_inset Index idx
23810 \begin_layout Plain Layout
23811 Table Customization ! Dashed Lines
23819 \begin_layout Standard
23823 \begin_layout Plain Layout
23833 \begin_inset Note Note
23836 \begin_layout Plain Layout
23837 The following section will only be displayed when the \SpecialChar LaTeX
23850 \begin_layout Standard
23851 \begin_inset Float table
23857 \begin_layout Plain Layout
23858 \begin_inset Caption Standard
23860 \begin_layout Plain Layout
23861 \begin_inset CommandInset label
23863 name "tab:Table-with-dashed"
23867 Table with dashed lines
23875 \begin_layout Plain Layout
23877 \begin_inset Tabular
23878 <lyxtabular version="3" rows="5" columns="5">
23879 <features tabularvalignment="middle">
23880 <column alignment="center" valignment="top">
23881 <column alignment="center" valignment="top">
23882 <column alignment="center" valignment="top" special=":c">
23883 <column alignment="center" valignment="top">
23884 <column alignment="center" valignment="top">
23886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23889 \begin_layout Plain Layout
23895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23898 \begin_layout Plain Layout
23904 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23907 \begin_layout Plain Layout
23913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23916 \begin_layout Plain Layout
23922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23925 \begin_layout Plain Layout
23933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23936 \begin_layout Plain Layout
23942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23945 \begin_layout Plain Layout
23951 <cell alignment="center" valignment="top" topline="true" usebox="none">
23954 \begin_layout Plain Layout
23960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23963 \begin_layout Plain Layout
23969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23972 \begin_layout Plain Layout
23980 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23983 \begin_layout Plain Layout
23987 \begin_layout Plain Layout
24001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24004 \begin_layout Plain Layout
24010 <cell alignment="center" valignment="top" usebox="none">
24013 \begin_layout Plain Layout
24019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24022 \begin_layout Plain Layout
24028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24031 \begin_layout Plain Layout
24039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24042 \begin_layout Plain Layout
24046 \begin_layout Plain Layout
24060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24063 \begin_layout Plain Layout
24069 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24072 \begin_layout Plain Layout
24078 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24081 \begin_layout Plain Layout
24087 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24090 \begin_layout Plain Layout
24098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24101 \begin_layout Plain Layout
24107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24110 \begin_layout Plain Layout
24116 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24119 \begin_layout Plain Layout
24125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24128 \begin_layout Plain Layout
24134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24137 \begin_layout Plain Layout
24156 \begin_layout Standard
24158 does not natively support dashed lines, so you have to use \SpecialChar TeX
24160 As a prerequisite the \SpecialChar LaTeX
24166 \begin_inset Index idx
24169 \begin_layout Plain Layout
24171 -packages ! arydshln
24176 must be loaded in the document preamble with the command
24179 \begin_layout Standard
24184 usepackage{arydshln}
24187 \begin_layout Standard
24188 To make a vertical line dashed, enter the colon
24189 \begin_inset Quotes eld
24193 \begin_inset Quotes erd
24196 together with the character for the horizontal alignment as \SpecialChar LaTeX
24198 the table cell dialog.
24201 \begin_layout Standard
24202 For a horizontal dashed line add the command
24205 \begin_layout Standard
24213 \begin_layout Standard
24214 in \SpecialChar TeX
24215 Code as first element of the first cell in the table row.
24218 \begin_layout Standard
24219 For dashed multicolumn lines use the command
24222 \begin_layout Standard
24227 cdashline{line number
24232 \begin_layout Standard
24233 in \SpecialChar TeX
24234 Code as the first element of the first cell in the table row.
24235 If you have for example a multicolumn spanning columns 2 to 4 and you want
24236 to have a dashed line above, add the command
24239 \begin_layout Standard
24247 \begin_layout Standard
24248 as the first element of the first cell in the row of the multicolumn.
24251 \begin_layout Standard
24252 \begin_inset VSpace bigskip
24258 \begin_layout Standard
24260 \begin_inset space ~
24264 \begin_inset CommandInset ref
24266 reference "tab:Table-with-dashed"
24271 \begin_inset Quotes eld
24279 \begin_inset Quotes erd
24282 as \SpecialChar LaTeX
24283 argument of the third column.
24284 The \SpecialChar TeX
24291 was inserted in the first cell of the third row and the \SpecialChar TeX
24293 \begin_inset Newline newline
24302 was inserted in the first cell of the fourth row.
24305 \begin_layout Standard
24306 \begin_inset VSpace bigskip
24312 \begin_layout Standard
24313 Tables with dashed lines can also be colored as shown by Table
24314 \begin_inset space ~
24318 \begin_inset CommandInset ref
24320 reference "tab:Colored-table-with"
24327 \begin_layout Standard
24331 \begin_layout Plain Layout
24337 arrayrulewidth}{1pt}
24343 \begin_inset Note Note
24346 \begin_layout Plain Layout
24347 thicker lines for better visualization of the line color
24355 \begin_layout Standard
24359 \begin_layout Plain Layout
24363 dashgapcolor{green}
24369 \begin_inset Note Note
24372 \begin_layout Plain Layout
24373 color gaps between dashes green
24381 \begin_layout Standard
24385 \begin_layout Plain Layout
24396 \begin_layout Plain Layout
24405 \begin_layout Plain Layout
24409 arrayrulecolor{red}
24413 arrayrulecolor{black}}
24419 \begin_inset Note Note
24422 \begin_layout Plain Layout
24423 color horizontal, dashed lines red
24431 \begin_layout Standard
24435 \begin_layout Plain Layout
24446 \begin_layout Plain Layout
24455 \begin_layout Plain Layout
24459 arrayrulecolor{yellow}
24463 arrayrulecolor{black}}
24469 \begin_inset Note Note
24472 \begin_layout Plain Layout
24473 color partial horizontal, dashed lines yellow
24481 \begin_layout Standard
24482 \begin_inset Float table
24488 \begin_layout Plain Layout
24489 \begin_inset Caption Standard
24491 \begin_layout Plain Layout
24492 \begin_inset CommandInset label
24494 name "tab:Colored-table-with"
24498 Colored table with dashed lines
24506 \begin_layout Plain Layout
24508 \begin_inset Tabular
24509 <lyxtabular version="3" rows="5" columns="5">
24510 <features tabularvalignment="middle">
24511 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24512 <column alignment="center" valignment="top" width="0pt">
24513 <column alignment="center" valignment="top" width="0pt" special=":c">
24514 <column alignment="center" valignment="top">
24515 <column alignment="center" valignment="top">
24517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24520 \begin_layout Plain Layout
24526 <cell alignment="center" valignment="top" topline="true" usebox="none">
24529 \begin_layout Plain Layout
24535 <cell alignment="center" valignment="top" topline="true" usebox="none">
24538 \begin_layout Plain Layout
24544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24547 \begin_layout Plain Layout
24553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24556 \begin_layout Plain Layout
24564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24567 \begin_layout Plain Layout
24573 <cell alignment="center" valignment="top" topline="true" usebox="none">
24576 \begin_layout Plain Layout
24582 <cell alignment="center" valignment="top" topline="true" usebox="none">
24585 \begin_layout Plain Layout
24591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24594 \begin_layout Plain Layout
24600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24603 \begin_layout Plain Layout
24611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24614 \begin_layout Plain Layout
24618 \begin_layout Plain Layout
24631 \begin_layout Plain Layout
24645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24648 \begin_layout Plain Layout
24654 <cell alignment="center" valignment="top" usebox="none">
24657 \begin_layout Plain Layout
24663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24666 \begin_layout Plain Layout
24672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24675 \begin_layout Plain Layout
24683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24686 \begin_layout Plain Layout
24690 \begin_layout Plain Layout
24704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24707 \begin_layout Plain Layout
24713 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24716 \begin_layout Plain Layout
24722 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24725 \begin_layout Plain Layout
24731 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24734 \begin_layout Plain Layout
24742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24745 \begin_layout Plain Layout
24751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24754 \begin_layout Plain Layout
24760 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24763 \begin_layout Plain Layout
24769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24772 \begin_layout Plain Layout
24778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24781 \begin_layout Plain Layout
24785 \begin_layout Plain Layout
24812 \begin_layout Standard
24816 \begin_layout Plain Layout
24830 \begin_inset Note Note
24833 \begin_layout Plain Layout
24842 \begin_layout Standard
24846 \begin_layout Plain Layout
24860 \begin_inset Note Note
24863 \begin_layout Plain Layout
24872 \begin_layout Standard
24876 \begin_layout Plain Layout
24886 \begin_inset Note Note
24889 \begin_layout Plain Layout
24898 \begin_layout Standard
24902 \begin_layout Plain Layout
24908 arrayrulewidth}{0.4pt}
24914 \begin_inset Note Note
24917 \begin_layout Plain Layout
24926 \begin_layout Standard
24927 The coloring of lines, columns and lines works as decribed in section
24928 \begin_inset space ~
24932 \begin_inset CommandInset ref
24934 reference "sec:Colored-Tables"
24939 Coloring horizontal lines works analogically as described there as well,
24940 one only needs to replace in the commands
24964 ; so one uses the command
24967 \begin_layout Standard
24977 \begin_inset Newline newline
24985 \begin_inset Newline newline
24989 \begin_inset Phantom HPhantom
24992 \begin_layout Plain Layout
24993 \begin_inset space ~
25003 arrayrulecolor{red}
25007 arrayrulecolor{black}}
25010 \begin_layout Standard
25020 \begin_layout Standard
25030 \begin_inset Newline newline
25038 \begin_inset Newline newline
25042 \begin_inset Phantom HPhantom
25045 \begin_layout Plain Layout
25046 \begin_inset space ~
25056 arrayrulecolor{red}
25060 arrayrulecolor{black}}
25063 \begin_layout Standard
25064 To get back the black line color, one needs to insert the following commands
25065 as \SpecialChar TeX
25066 Code behind the table:
25069 \begin_layout Standard
25077 \begin_layout Standard
25089 \begin_layout Standard
25097 \begin_layout Standard
25109 \begin_layout Standard
25110 To color the gaps between the dashes the command
25113 \begin_layout Standard
25118 dashgapcolor{color}
25121 \begin_layout Standard
25122 can be used in front of a table as \SpecialChar TeX
25124 color is hereby the name of a defined color.
25128 \begin_layout Standard
25136 \begin_layout Standard
25137 unsets the changes made by
25146 \begin_layout Standard
25147 \begin_inset Note Greyedout
25150 \begin_layout Plain Layout
25156 : If there are multiple commands in a cell, the command of
25160 needs to be the first one in the cell.
25166 \begin_inset space ~
25170 \begin_inset CommandInset ref
25172 reference "tab:Colored-table-with"
25196 \begin_layout Standard
25197 \begin_inset Note Greyedout
25200 \begin_layout Plain Layout
25206 The \SpecialChar LaTeX
25211 must be loaded in the document preamble before the \SpecialChar LaTeX
25217 \begin_inset Index idx
25220 \begin_layout Plain Layout
25222 -packages ! colortbl
25235 \begin_layout Standard
25239 \begin_layout Plain Layout
25249 \begin_inset Note Note
25252 \begin_layout Plain Layout
25253 The following will be displayed when the \SpecialChar LaTeX
25266 \begin_layout Standard
25267 You need to install the package
25271 to see the content of this section in the output.
25274 \begin_layout Standard
25278 \begin_layout Plain Layout
25290 \begin_layout Standard
25291 For more information about dashed lines see the documentation of
25296 \begin_inset CommandInset citation
25306 \begin_layout Chapter
25308 \begin_inset CommandInset label
25315 \begin_inset Index idx
25318 \begin_layout Plain Layout
25327 \begin_layout Section
25329 \begin_inset CommandInset label
25331 name "sec:FloatIntroduction"
25336 \begin_inset Index idx
25339 \begin_layout Plain Layout
25340 Floats ! Introduction
25348 \begin_layout Standard
25349 A float is a block of text associated with some sort of label, which doesn't
25350 have a fixed location.
25352 \begin_inset Quotes eld
25356 \begin_inset Quotes erd
25359 forward or backward a page or two, to wherever it fits best.
25367 \begin_inset space ~
25372 are also floats because they can float to the next page when there are
25373 too many notes on the page.
25376 \begin_layout Standard
25377 Floats allow a high quality layout.
25378 Images and tables can be spread evenly among the pages to avoid white space
25379 and pages without text.
25380 As the floating often destroys the context between the text and the image/table
25381 , every float can be referenced in the text.
25382 Floats are therefore numbered.
25383 Referencing is described in section
25384 \begin_inset space ~
25388 \begin_inset CommandInset ref
25390 reference "sec:Referencing-Floats"
25397 \begin_layout Standard
25398 To insert a float, use the menu
25400 Insert\SpecialChar menuseparator
25406 arg "float-insert figure"
25412 arg "float-insert table"
25420 inset, a box with a label.
25421 The label will automatically be translated to the document language in
25423 After the label you can insert the caption text.
25424 The image or table is inserted above or below the caption in a separate
25425 paragraph within the float.
25426 More about the caption placement is contained in section
25427 \begin_inset space ~
25431 \begin_inset CommandInset ref
25433 reference "sec:Caption-Placement"
25438 To keep your \SpecialChar LyX
25439 document readable, you can open and close the float box by
25440 left-clicking on the box label.
25441 A closed float box looks like this:
25442 \begin_inset Graphics
25443 filename clipart/float.png
25445 scaleBeforeRotation
25449 – a gray button with a red label.
25452 \begin_layout Standard
25453 It is recommended that you insert floats as separate standard paragraphs
25454 to avoid possible \SpecialChar LaTeX
25455 -errors that can occur when the surrounding text is specially
25459 \begin_layout Standard
25460 Existing figures or tables can be put into a float by highlighting them
25461 and then pressing the corresponding toolbar button for a new float.
25464 \begin_layout Section
25468 \begin_layout Standard
25469 Besides figure and table floats that are described in sections
25470 \begin_inset space ~
25474 \begin_inset CommandInset ref
25476 reference "sec:Figure-Floats"
25481 \begin_inset CommandInset ref
25483 reference "sec:Table-Floats"
25487 respectively, \SpecialChar LyX
25488 offers the float types
25497 The latter are explained in sec.
25498 \begin_inset space \thinspace{}
25502 \begin_inset CommandInset ref
25504 reference "sec:Wrap-Floats"
25511 \begin_layout Subsection
25513 \begin_inset Index idx
25516 \begin_layout Plain Layout
25517 Floats ! Algorithms
25525 \begin_layout Standard
25526 \begin_inset Float algorithm
25532 \begin_layout Plain Layout
25533 \begin_inset Caption Standard
25535 \begin_layout Plain Layout
25536 \begin_inset CommandInset label
25538 name "alg:Example-Algorithm-float"
25542 Example Algorithm float
25550 \begin_layout LyX-Code
25552 \begin_inset Newline newline
25555 Sum:= Sum + A(I); /*comment*/
25556 \begin_inset Newline newline
25560 \begin_inset VSpace -4mm
25571 \begin_layout Standard
25572 This float type is inserted with the menu
25574 Insert\SpecialChar menuseparator
25575 Float\SpecialChar menuseparator
25579 It is used for program codes and descriptions of algorithms and can be
25580 seen as an alternative to program code listings that are explained in chapter
25581 \begin_inset space ~
25585 \begin_inset CommandInset ref
25587 reference "cha:Program-Code-Listings"
25592 A possible environment for algorithms is the
25597 , described in \SpecialChar LyX
25604 \begin_inset space ~
25608 \begin_inset CommandInset ref
25610 reference "alg:Example-Algorithm-float"
25614 is an example of an algorithm float where -4
25615 \begin_inset space \thinspace{}
25618 mm vertical space was added at the end of the float to have the bottom rule
25619 exactly below the last text line.
25622 \begin_layout Standard
25623 The float label is not automatically translated into the document language.
25624 If your document is not in English, you have to do this manually by adding
25625 the following line to the document preamble
25630 \begin_layout Standard
25635 floatname{algorithm}{your
25636 \begin_inset space ~
25642 \begin_layout Standard
25646 \begin_inset space ~
25652 \begin_inset Quotes eld
25660 \begin_inset Quotes erd
25666 \begin_layout Standard
25667 To insert the list of algorithms you can use the menu
25669 Insert\SpecialChar menuseparator
25671 \begin_inset space \thinspace{}
25675 \begin_inset space \thinspace{}
25678 TOC\SpecialChar menuseparator
25681 when your document has the same language as \SpecialChar LyX
25683 In other cases use this command in \SpecialChar TeX
25687 \begin_layout Standard
25692 listof{algorithm}{your
25693 \begin_inset space ~
25699 \begin_layout Standard
25703 \begin_inset space ~
25709 \begin_inset Quotes eld
25717 \begin_inset Quotes erd
25723 \begin_layout Standard
25724 Algorithm floats are not by default numbered in the scheme
25725 \begin_inset Quotes eld
25729 \begin_inset Quotes erd
25732 as is the case for table and figure floats in many document-classes.
25733 To number algorithm floats in the same scheme, add this command to your
25737 \begin_layout Standard
25742 numberwithin{algorithm}{chapter}
25745 \begin_layout Standard
25746 To be able to use the command
25755 \begin_inset space ~
25760 in the document settings the option
25763 \begin_inset space ~
25767 \begin_inset space ~
25771 \begin_inset space ~
25779 \begin_layout Section
25781 \begin_inset Index idx
25784 \begin_layout Plain Layout
25793 \begin_layout Standard
25794 Floats are usually numbered either independently from the sections the floats
25795 are in, or in the scheme
25796 \begin_inset Quotes eld
25800 \begin_inset Quotes erd
25804 \begin_inset Quotes eld
25808 \begin_inset Quotes erd
25812 This depends on the document class used.
25815 \begin_layout Standard
25816 To change section-independent numbering, you can use this command in the
25820 \begin_layout Standard
25832 \begin_layout Standard
25839 is the command that prints the table number.
25840 For figure floats, the command would be
25853 in the command above prints the table number as a small roman number.
25856 \begin_layout Standard
25857 To change the numbering scheme for example to
25858 \begin_inset Quotes eld
25862 \begin_inset Quotes erd
25865 , use this command in the preamble:
25868 \begin_layout Standard
25873 numberwithin{table}{subsection}
25876 \begin_layout Standard
25877 To be able to use the command
25886 \begin_inset space ~
25891 in the document settings the option
25894 \begin_inset space ~
25898 \begin_inset space ~
25902 \begin_inset space ~
25910 \begin_layout Standard
25911 Please also have a look at section
25912 \begin_inset space ~
25916 \begin_inset CommandInset ref
25918 reference "subsec:Footnote-Numbering"
25922 for the details and important notes about the numbering commands.
25925 \begin_layout Section
25927 \begin_inset CommandInset label
25929 name "sec:Referencing-Floats"
25934 \begin_inset Index idx
25937 \begin_layout Plain Layout
25938 Floats ! References
25944 \begin_inset Index idx
25947 \begin_layout Plain Layout
25948 References ! to Floats
25956 \begin_layout Standard
25957 To reference a float, insert a label into its caption using the menu
25959 Insert\SpecialChar menuseparator
25962 or the toolbar button
25969 A grey label box like this one:
25970 \begin_inset Graphics
25971 filename clipart/label.png
25972 scaleBeforeRotation
25976 will be inserted and the label window pops up asking for the label text.
25978 offers as text the first words of the caption with a prefix.
25979 The prefix depends on the float type, e.
25980 \begin_inset space \thinspace{}
25984 \begin_inset space \space{}
25987 for figure floats the prefix will be "
25994 \begin_layout Standard
25995 The label is used as anchor and name for the reference.
25996 You can refer to the label using the menu
25998 Insert\SpecialChar menuseparator
26001 or the toolbar button
26004 arg "dialog-show-new-inset ref"
26008 The cross-reference window appears showing all labels of the document.
26009 If you have multiple \SpecialChar LyX
26010 documents opened, choose the one you are working
26011 on from the drop-list at the top of the dialog.
26012 You can now sort the labels alphabetically and then choose one.
26013 A grey cross-reference box like this one:
26014 \begin_inset Graphics
26015 filename clipart/reference.png
26016 scaleBeforeRotation
26021 At the position of the cross-reference box the float number will appear
26025 \begin_layout Standard
26026 It is recommended that you use a protected space between the cross-reference
26027 name and its number to avoid line breaks between them.
26028 If a cross-reference refers to a non-existing label, you will see two question
26029 marks in the output instead of the reference.
26032 \begin_layout Standard
26033 You can change labels at any time by clicking on the label box.
26034 References to the changed label will automatically update their links to
26035 the new label text.
26038 \begin_layout Standard
26042 \begin_inset space ~
26046 \begin_inset space ~
26051 in the cross-reference window sets the cursor before the referred label.
26052 The button text changes then to Go
26053 \begin_inset space ~
26056 Back and you can use it to set the cursor back to the cross-reference.
26059 \begin_layout Subsection
26060 Cross-Reference Formats
26061 \begin_inset CommandInset label
26063 name "subsec:Cross-Reference-Formats"
26068 \begin_inset Index idx
26071 \begin_layout Plain Layout
26072 References ! Formats
26080 \begin_layout Standard
26081 There are six varieties of cross-references:
26084 \begin_layout Description
26085 <reference>: prints the float number, this is the default:
26086 \begin_inset CommandInset ref
26088 reference "fig:Two-distorted-images"
26095 \begin_layout Description
26096 (<reference>): prints the float number within two parentheses, this is the
26097 style normally used to reference formulas, especially when the reference
26099 \begin_inset Quotes eld
26103 \begin_inset Quotes erd
26107 \begin_inset CommandInset ref
26116 \begin_layout Description
26117 <page>: prints the page number: Page
26118 \begin_inset space ~
26122 \begin_inset CommandInset ref
26123 LatexCommand pageref
26124 reference "fig:Two-distorted-images"
26131 \begin_layout Description
26133 \begin_inset space ~
26137 \begin_inset space ~
26140 <page>: prints the text "on page" and the page number:
26141 \begin_inset CommandInset ref
26142 LatexCommand vpageref
26143 reference "fig:Two-distorted-images"
26150 \begin_layout Description
26152 \begin_inset space ~
26156 \begin_inset space ~
26160 \begin_inset space ~
26163 <page>: prints the float number, the text "on page", and the page number:
26165 \begin_inset CommandInset ref
26167 reference "fig:Two-distorted-images"
26174 \begin_layout Description
26176 \begin_inset space ~
26179 reference: prints a self-defined cross-reference format.
26180 \begin_inset Newline newline
26184 \begin_inset Note Greyedout
26187 \begin_layout Plain Layout
26192 This feature is only available when you have the \SpecialChar LaTeX
26202 \begin_inset Index idx
26205 \begin_layout Plain Layout
26207 -packages ! prettyref
26213 \begin_inset Index idx
26216 \begin_layout Plain Layout
26218 -packages ! refstyle
26229 \begin_inset Newline newline
26232 You can select which \SpecialChar LaTeX
26233 -package should be used for this feature by setting
26236 Use refstyle (not prettyref) for cross-references
26240 Document\SpecialChar menuseparator
26241 Settings\SpecialChar menuseparator
26245 The format is specified by adding the command
26257 (refstyle) to the preamble of the document.
26258 For example redefining all references to figures (which have the label
26260 \begin_inset Quotes eld
26268 \begin_inset Quotes erd
26271 ) can be done with this command
26272 \begin_inset Newline newline
26279 newref{fig}{refcmd={Image on page
26284 \begin_inset Newline newline
26287 For more information about the format, have a look at the package documentations
26289 \begin_inset CommandInset citation
26291 key "prettyref,refstyle"
26297 \begin_inset Newline newline
26308 are only available if you use the \SpecialChar LaTeX
26323 \begin_inset space \thinspace{}
26327 \begin_inset space \space{}
26331 \begin_inset Quotes eld
26335 \begin_inset Quotes erd
26342 outputs the name capitalized, e.
26343 \begin_inset space \thinspace{}
26347 \begin_inset space \space{}
26351 \begin_inset Quotes eld
26355 \begin_inset Quotes erd
26359 Both options can be combined to get e.
26360 \begin_inset space \thinspace{}
26364 \begin_inset space \space{}
26368 \begin_inset Quotes eld
26372 \begin_inset Quotes erd
26378 \begin_layout Description
26380 \begin_inset space ~
26383 reference: prints the caption of the reference:
26384 \begin_inset CommandInset ref
26385 LatexCommand nameref
26386 reference "fig:Two-distorted-images"
26393 \begin_layout Description
26395 \begin_inset space ~
26398 only: prints only the \SpecialChar LaTeX
26399 label for the reference:
26400 \begin_inset CommandInset ref
26401 LatexCommand labelonly
26402 reference "fig:Two-distorted-images"
26410 \begin_inset Newline newline
26413 This allows to use the label for commands in \SpecialChar TeX
26419 one can omit the prefix of the label name:
26420 \begin_inset CommandInset ref
26421 LatexCommand labelonly
26422 reference "fig:Two-distorted-images"
26432 \begin_layout Standard
26437 will not print the page number if the label is on the previous, the same,
26440 \begin_inset space \thinspace{}
26444 \begin_inset space \space{}
26448 \begin_inset Quotes eld
26456 \begin_inset Quotes erd
26462 <reference> on page <page>
26464 will not print anything about the page if the label is on the same page.
26467 \begin_layout Standard
26468 The number and current page of the part of the document referred to in the
26469 output is automatically calculated by \SpecialChar LaTeX
26471 The varieties are adjusted in the field
26475 of the cross-reference window that appears when you click on the cross-referenc
26479 \begin_layout Standard
26480 \begin_inset Note Greyedout
26483 \begin_layout Plain Layout
26488 It is recommended to use the \SpecialChar LaTeX
26494 \begin_inset Index idx
26497 \begin_layout Plain Layout
26499 -packages ! refstyle
26509 \begin_inset Index idx
26512 \begin_layout Plain Layout
26514 -packages ! prettyref
26519 does not know all of \SpecialChar LyX
26520 's possible label shortcuts
26524 \begin_layout Plain Layout
26525 \begin_inset Quotes eld
26529 \begin_inset Quotes erd
26532 is for example \SpecialChar LyX
26533 's shortcut for labels in figure captions.
26538 and is not internationalized.
26546 \begin_layout Subsection
26547 Automatic Reference Naming
26548 \begin_inset Index idx
26551 \begin_layout Plain Layout
26552 References ! Automatic Reference Naming
26560 \begin_layout Standard
26561 The \SpecialChar LaTeX
26567 \begin_inset Index idx
26570 \begin_layout Plain Layout
26572 -packages ! hyperref
26577 , that is enabled in the
26585 dialog, provides a very useful feature that cross-references automatically
26586 include the name of the referenced floats (or text parts like
26591 So you will save having to write e.
26592 \begin_inset space \thinspace{}
26596 \begin_inset space \space{}
26600 \begin_inset Quotes eld
26604 \begin_inset Quotes erd
26607 before every reference to a figure.
26608 To use this feature, enable
26612 and insert this line to the \SpecialChar LaTeX
26616 \begin_layout Standard
26632 \begin_layout Standard
26633 When you prefer other reference names than the default ones, for example
26634 you want instead of
26635 \begin_inset Quotes eld
26639 \begin_inset Quotes erd
26643 \begin_inset Quotes eld
26647 \begin_inset space \thinspace{}
26651 \begin_inset Quotes eld
26654 , you can redefine the name by inserting this in the preamble:
26657 \begin_layout Standard
26668 sectionautorefname}
26669 \begin_inset Newline newline
26673 \begin_inset Phantom HPhantom
26676 \begin_layout Plain Layout
26679 \begin_inset space ~
26692 \begin_layout Standard
26693 When you are using another document language than English, replace
26694 \begin_inset Newline newline
26709 , where *** is the name of the language used.
26712 \begin_layout Standard
26713 To get automatic names, but not for certain reference types, for example
26714 not for equations, use this preamble code:
26717 \begin_layout Standard
26728 equationautorefname}[1]{}}
26731 \begin_layout Standard
26732 More about this topic can be found in
26737 \begin_inset CommandInset citation
26747 \begin_layout Standard
26748 \begin_inset Note Greyedout
26751 \begin_layout Plain Layout
26756 Automatic reference naming cannot be used when you use cross-references
26760 \begin_inset space ~
26765 style, as described in section
26766 \begin_inset space ~
26770 \begin_inset CommandInset ref
26772 reference "subsec:Cross-Reference-Formats"
26784 \begin_layout Standard
26789 manual is an example where automatic reference naming is used.
26792 \begin_layout Subsection
26794 \begin_inset CommandInset label
26796 name "subsec:Reference-Position"
26801 \begin_inset Index idx
26804 \begin_layout Plain Layout
26805 References ! Reference Position
26813 \begin_layout Standard
26819 \begin_inset Index idx
26822 \begin_layout Plain Layout
26824 -packages ! hyperref
26837 dialog to link cross-references in the output, you will see that clicking
26838 on an image float reference jumps to the image label.
26839 The caption will be the first text part on the screen, so that you cannot
26840 see the image without scrolling.
26841 This is because the reference link anchor is placed at the position of
26843 With the use of the package
26848 \begin_inset Index idx
26851 \begin_layout Plain Layout
26858 , which is part of the \SpecialChar LaTeX
26864 \begin_inset Index idx
26867 \begin_layout Plain Layout
26869 -packages ! oberdiek
26874 , the link anchor is placed at the beginning of a float.
26875 To use this feature for figure floats, load
26879 in the document preamble with the line
26882 \begin_layout Standard
26887 usepackage[figure]{hypcap}
26890 \begin_layout Standard
26895 for all float types but this is not recommended for stability reasons.
26896 For more information, have a look at
26901 \begin_inset CommandInset citation
26911 \begin_layout Standard
26912 \begin_inset Note Greyedout
26915 \begin_layout Plain Layout
26924 has no effect on references to subfigures.
26932 \begin_layout Section
26934 \begin_inset CommandInset label
26936 name "sec:Float-Placement"
26941 \begin_inset Index idx
26944 \begin_layout Plain Layout
26953 \begin_layout Standard
26954 Right-clicking on a float-box and clicking on
26958 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26960 positioning the float.
26961 \begin_inset Newline newline
26967 \begin_inset space ~
26972 is only useful for two-column documents: If you select it, the float will
26973 span both columns on the page instead of being confined to just one.
26974 \begin_inset Newline newline
26980 \begin_inset space ~
26985 is used to rotate floats, see section
26986 \begin_inset CommandInset ref
26988 reference "sec:Rotated-Floats"
26995 \begin_layout Standard
26996 You can use one or more of the following options in the float dialog to
26997 set the placement for a particular float when you uncheck the option
27000 \begin_inset space ~
27004 \begin_inset space ~
27012 \begin_layout Description
27014 \begin_inset space ~
27018 \begin_inset space ~
27021 possible try to place the float on the position where it has been inserted
27024 \begin_layout Description
27026 \begin_inset space ~
27030 \begin_inset space ~
27033 page try to place the float at the top of the current page
27036 \begin_layout Description
27038 \begin_inset space ~
27042 \begin_inset space ~
27045 page try to place the float at the bottom of the current page
27048 \begin_layout Description
27050 \begin_inset space ~
27054 \begin_inset space ~
27057 floats try to place the float on its own page
27060 \begin_layout Standard
27061 The order of the above option is
27065 used by \SpecialChar LaTeX
27067 That means, if you use the default placement, \SpecialChar LaTeX
27071 \begin_inset space ~
27075 \begin_inset space ~
27083 \begin_inset space ~
27087 \begin_inset space ~
27092 , and then the others.
27093 If you do not use the default, \SpecialChar LaTeX
27094 will try only the checked options but in
27097 \begin_inset space ~
27100 placements is possible the procedure is internally repeated trying to put
27101 the float on the following page.
27104 \begin_layout Standard
27105 By default, each option has its own rules:
27108 \begin_layout Labeling
27109 \labelwidthstring 00.00.0000
27113 \begin_inset space ~
27117 \begin_inset space ~
27122 only floats occupying less than 70
27123 \begin_inset space \thinspace{}
27126 % of the page can be placed at the top of a page (
27135 \begin_layout Labeling
27136 \labelwidthstring 00.00.0000
27140 \begin_inset space ~
27144 \begin_inset space ~
27149 : only floats occupying less than 30
27150 \begin_inset space \thinspace{}
27153 % of the page can be placed at the bottom of a page.
27163 \begin_layout Labeling
27164 \labelwidthstring 00.00.0000
27168 \begin_inset space ~
27172 \begin_inset space ~
27177 : only if more than 50
27178 \begin_inset space \thinspace{}
27181 % of the page is occupied by floats, several floats can be set together
27192 \begin_layout Standard
27193 If you don't like these rules, you can ignore them by using the additional
27197 \begin_inset space ~
27202 \begin_inset space ~
27208 \begin_inset Newline newline
27211 You can also redefine the rules with \SpecialChar LaTeX
27212 -commands that are given in parentheses
27213 after the rules description above.
27214 To increase for example the often too small default of the bottom-rule
27216 \begin_inset space \thinspace{}
27219 % of the page, add this line to your document preamble:
27222 \begin_layout Standard
27229 bottomfraction}{0.5}
27232 \begin_layout Standard
27233 Sometimes you might need, under all circumstances, a float to be placed
27234 exactly at the position where it is inserted.
27235 For this case you can use the option
27238 \begin_inset space ~
27244 Use this option very rarely and only if the document is almost ready to
27245 be printed, because the float is then no longer able to
27246 \begin_inset Quotes eld
27250 \begin_inset Quotes erd
27253 when you change your document and this will often destroy the page layout.
27256 \begin_layout Standard
27257 There are no placement options for text wrap floats, because they are always
27258 surrounded by the text of a certain paragraph.
27259 \begin_inset VSpace bigskip
27265 \begin_layout Standard
27266 Sometimes you have the problem that a float is placed at the top of a page
27267 while its corresponding section starts at the middle of the page, so that
27268 the reader could think the float is part of the previous section.
27269 To avoid this the \SpecialChar LaTeX
27277 It suppresses a given float placement for the page where it is inserted
27278 and can therefore be used to avoid floats being set before a section starts.
27279 To get this, add these commands to your document preamble:
27282 \begin_layout Standard
27292 \begin_inset Newline newline
27306 \begin_layout Standard
27307 You can define the same for all section headings, like chapters and subsections.
27308 This definition is not recommended to be used for small text parts like
27309 subsubsections because \SpecialChar LaTeX
27310 may then have problems finding a suitable placement.
27313 \begin_layout Standard
27314 \begin_inset VSpace bigskip
27317 In some cases it is required to have all figures/tables at the end of the
27319 For this purpose the \SpecialChar LaTeX
27325 \begin_inset Index idx
27328 \begin_layout Plain Layout
27330 -packages ! endfloat
27336 It puts all figure and table floats at the end of the document into their
27338 At the original float position a text hint like
27339 \begin_inset Quotes eld
27345 \begin_inset space ~
27351 \begin_inset Quotes erd
27355 The endfloat-package is loaded in the preamble with the line
27358 \begin_layout Standard
27363 usepackage[options]{endfloat}
27366 \begin_layout Standard
27367 There are various package options to format the created figure/table sections.
27368 For more information we refer you to the
27373 \begin_inset CommandInset citation
27381 \begin_inset Newline newline
27385 \begin_inset Note Greyedout
27388 \begin_layout Plain Layout
27393 doesn't provide an automatic translation for the text hint, you have to
27394 do this manually, see section
27395 \begin_inset space ~
27399 \begin_inset CommandInset citation
27412 \begin_inset Newline newline
27416 \begin_inset Note Greyedout
27419 \begin_layout Plain Layout
27424 There is currently a bug in
27428 when the caption contains a German
27429 \begin_inset Quotes eld
27433 \begin_inset Quotes erd
27437 Use in this case the command
27438 \begin_inset Quotes eld
27448 \begin_inset Quotes erd
27451 in \SpecialChar TeX
27453 \begin_inset Quotes eld
27457 \begin_inset Quotes erd
27468 \begin_layout Standard
27469 \begin_inset VSpace bigskip
27472 For more details about float placements, have a look at \SpecialChar LaTeX
27474 \begin_inset CommandInset citation
27476 key "latexcompanion,latexguide,latexbook"
27484 \begin_layout Section
27486 \begin_inset CommandInset label
27488 name "sec:Rotated-Floats"
27493 \begin_inset Index idx
27496 \begin_layout Plain Layout
27505 \begin_layout Standard
27506 Especially for wide tables you might have floats rotated.
27507 To rotate a whole float including the caption, right-click on the float-box
27511 \begin_inset space ~
27519 \begin_layout Standard
27520 Rotated floats are always placed on a page of their own (or column of their
27521 own; in case you have a multi-column document).
27522 You can let them span several columns using the float settings option
27525 \begin_inset space ~
27531 Floats are rotated so that you can read them from the outside margin.
27532 To force a certain rotation direction for all pages, you can add either
27541 to the document class options.
27544 \begin_layout Standard
27545 Referencing rotated floats is the same as for normal floats, the caption
27546 format is also the same: Table
27547 \begin_inset space ~
27551 \begin_inset CommandInset ref
27553 reference "tab:Rotated-table"
27557 is an example of a rotated table float.
27560 \begin_layout Standard
27561 \begin_inset Note Greyedout
27564 \begin_layout Plain Layout
27569 Not all DVI-viewers are able to display rotated floats.
27577 \begin_layout Standard
27578 \begin_inset Float table
27583 \begin_layout Plain Layout
27584 \begin_inset Caption Standard
27586 \begin_layout Plain Layout
27587 \begin_inset CommandInset label
27589 name "tab:Rotated-table"
27601 \begin_layout Plain Layout
27603 \begin_inset Tabular
27604 <lyxtabular version="3" rows="1" columns="5">
27605 <features tabularvalignment="middle">
27606 <column alignment="center" valignment="top">
27607 <column alignment="center" valignment="top">
27608 <column alignment="center" valignment="top">
27609 <column alignment="center" valignment="top">
27610 <column alignment="center" valignment="top">
27612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27615 \begin_layout Plain Layout
27621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27624 \begin_layout Plain Layout
27630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27633 \begin_layout Plain Layout
27639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27642 \begin_layout Plain Layout
27648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27651 \begin_layout Plain Layout
27670 \begin_layout Section
27672 \begin_inset Index idx
27675 \begin_layout Plain Layout
27684 \begin_layout Standard
27685 Subfloats are for example used when a figure consists of several images.
27686 They are created by inserting a float into an existing float.
27687 The placement of the subfloats can be controlled in the same way as for
27688 paragraphs as shown in table
27689 \begin_inset space ~
27693 \begin_inset CommandInset ref
27695 reference "tab:Two-subtables-side"
27700 \begin_inset CommandInset ref
27702 reference "tab:Two-subtables-upon"
27709 \begin_layout Standard
27710 Referencing subfloats works as for normal floats: Table
27711 \begin_inset space ~
27715 \begin_inset CommandInset ref
27717 reference "tab:This-is-subtable-a"
27722 \begin_inset CommandInset ref
27724 reference "tab:This-is-subtable-b"
27728 are subtables of table
27729 \begin_inset space ~
27733 \begin_inset CommandInset ref
27735 reference "tab:Two-subtables-side"
27742 \begin_layout Standard
27743 \begin_inset Float table
27748 \begin_layout Plain Layout
27749 \begin_inset Caption Standard
27751 \begin_layout Plain Layout
27752 \begin_inset CommandInset label
27754 name "tab:Two-subtables-side"
27758 Two subtables placed side by side.
27766 \begin_layout Plain Layout
27768 \begin_inset space \hfill{}
27772 \begin_inset Float table
27777 \begin_layout Plain Layout
27778 \begin_inset Caption Standard
27780 \begin_layout Plain Layout
27781 \begin_inset CommandInset label
27783 name "tab:This-is-subtable-a"
27787 This is subtable a.
27795 \begin_layout Plain Layout
27797 \begin_inset Tabular
27798 <lyxtabular version="3" rows="1" columns="5">
27799 <features tabularvalignment="middle">
27800 <column alignment="center" valignment="top">
27801 <column alignment="center" valignment="top">
27802 <column alignment="center" valignment="top">
27803 <column alignment="center" valignment="top">
27804 <column alignment="center" valignment="top">
27806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27809 \begin_layout Plain Layout
27815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27818 \begin_layout Plain Layout
27824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27827 \begin_layout Plain Layout
27833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27836 \begin_layout Plain Layout
27842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27845 \begin_layout Plain Layout
27862 \begin_inset space \hfill{}
27866 \begin_inset Float table
27871 \begin_layout Plain Layout
27872 \begin_inset Caption Standard
27874 \begin_layout Plain Layout
27875 \begin_inset CommandInset label
27877 name "tab:This-is-subtable-b"
27881 This is subtable b.
27889 \begin_layout Plain Layout
27891 \begin_inset Tabular
27892 <lyxtabular version="3" rows="1" columns="5">
27893 <features tabularvalignment="middle">
27894 <column alignment="center" valignment="top">
27895 <column alignment="center" valignment="top">
27896 <column alignment="center" valignment="top">
27897 <column alignment="center" valignment="top">
27898 <column alignment="center" valignment="top">
27900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27903 \begin_layout Plain Layout
27909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27912 \begin_layout Plain Layout
27918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27921 \begin_layout Plain Layout
27927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27930 \begin_layout Plain Layout
27936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27939 \begin_layout Plain Layout
27956 \begin_inset space \hfill{}
27967 \begin_layout Standard
27968 \begin_inset Float table
27973 \begin_layout Plain Layout
27974 \begin_inset Caption Standard
27976 \begin_layout Plain Layout
27977 \begin_inset CommandInset label
27979 name "tab:Two-subtables-upon"
27983 Two subtables placed one above the other.
27984 (a) table with 4 cells, (b) table with 5 cells.
27992 \begin_layout Plain Layout
27994 \begin_inset Float table
27999 \begin_layout Plain Layout
28000 \begin_inset Caption Standard
28002 \begin_layout Plain Layout
28011 \begin_layout Plain Layout
28013 \begin_inset Tabular
28014 <lyxtabular version="3" rows="1" columns="4">
28015 <features tabularvalignment="middle">
28016 <column alignment="center" valignment="top">
28017 <column alignment="center" valignment="top">
28018 <column alignment="center" valignment="top">
28019 <column alignment="center" valignment="top">
28021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28024 \begin_layout Plain Layout
28030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28033 \begin_layout Plain Layout
28039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28042 \begin_layout Plain Layout
28048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28051 \begin_layout Plain Layout
28070 \begin_layout Plain Layout
28072 \begin_inset Float table
28077 \begin_layout Plain Layout
28078 \begin_inset Caption Standard
28080 \begin_layout Plain Layout
28089 \begin_layout Plain Layout
28091 \begin_inset Tabular
28092 <lyxtabular version="3" rows="1" columns="5">
28093 <features tabularvalignment="middle">
28094 <column alignment="center" valignment="top">
28095 <column alignment="center" valignment="top">
28096 <column alignment="center" valignment="top">
28097 <column alignment="center" valignment="top">
28098 <column alignment="center" valignment="top">
28100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28103 \begin_layout Plain Layout
28109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28112 \begin_layout Plain Layout
28118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28121 \begin_layout Plain Layout
28127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28130 \begin_layout Plain Layout
28136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28139 \begin_layout Plain Layout
28163 \begin_layout Section
28164 Floats Side by Side
28165 \begin_inset Index idx
28168 \begin_layout Plain Layout
28169 Floats ! Side by side
28177 \begin_layout Standard
28178 To place floats side by side, as in Figures
28179 \begin_inset space ~
28183 \begin_inset CommandInset ref
28185 reference "fig:Float-left"
28190 \begin_inset CommandInset ref
28192 reference "fig:Float-right"
28201 In it two minipage boxes are inserted.
28205 \begin_layout Plain Layout
28206 Minipages are explained in section
28207 \begin_inset space ~
28211 \begin_inset CommandInset ref
28213 reference "sec:Minipages"
28222 The width is set to 45
28223 \begin_inset space \thinspace{}
28227 \begin_inset space \thinspace{}
28230 column% and the box alignment to
28235 The minipage boxes contain the image and the caption in the same way as
28236 they are in a float.
28237 The only difference is that the image unit
28240 \begin_inset space ~
28244 \begin_inset space ~
28249 is now calculated according to the width of the minipage boxes.
28252 \begin_layout Standard
28253 \begin_inset Float figure
28258 \begin_layout Plain Layout
28259 \begin_inset Box Frameless
28269 height_special "totalheight"
28274 backgroundcolor "none"
28277 \begin_layout Plain Layout
28279 \begin_inset Graphics
28280 filename clipart/2D-intensity-plot.pdf
28282 scaleBeforeRotation
28289 \begin_layout Plain Layout
28290 \begin_inset Caption Standard
28292 \begin_layout Plain Layout
28293 \begin_inset CommandInset label
28295 name "fig:Float-left"
28299 Float on the left side.
28310 \begin_inset space \hfill{}
28314 \begin_inset Box Frameless
28324 height_special "totalheight"
28329 backgroundcolor "none"
28332 \begin_layout Plain Layout
28334 \begin_inset Graphics
28335 filename clipart/Star-structure.pdf
28337 scaleBeforeRotation
28344 \begin_layout Plain Layout
28345 \begin_inset Caption Standard
28347 \begin_layout Plain Layout
28348 \begin_inset CommandInset label
28350 name "fig:Float-right"
28354 Float on the right side.
28372 \begin_layout Standard
28373 An alternative and simpler solution is to use the module
28375 Variable-width Minipages
28378 \begin_inset space \thinspace{}
28382 \begin_inset CommandInset ref
28384 reference "sec:Minipages"
28389 Variable-width minipages adapt automatically to the width of the figures
28391 They do not require an explicit width to be given, and they improve the
28392 horizontal alignment of the figures.
28393 The LyX example file
28395 varwidth-floats-side-by-side
28397 gives examples of how to do this.
28400 \begin_layout Section
28402 \begin_inset Index idx
28405 \begin_layout Plain Layout
28406 Caption ! Formatting
28412 \begin_inset Index idx
28415 \begin_layout Plain Layout
28416 Floats ! Caption Formatting
28422 \begin_inset CommandInset label
28424 name "sec:Caption-Formatting"
28431 \begin_layout Standard
28436 environment is the default paragraph environment for
28441 On the \SpecialChar LyX
28442 screen captions appear as a label, e.
28443 \begin_inset space \thinspace{}
28447 \begin_inset space \space{}
28451 \begin_inset Quotes eld
28459 \begin_inset Quotes erd
28462 followed by the caption text.
28464 \begin_inset Quotes eld
28468 \begin_inset Quotes erd
28471 is the actual reference number.
28472 By default the label and the number are in the same font as the caption
28473 text and a colon follows the number to divide the label from the text.
28474 This caption format is suitable for many but not all documents.
28478 \begin_layout Standard
28479 To change the default caption format, load the \SpecialChar LaTeX
28485 \begin_inset Index idx
28488 \begin_layout Plain Layout
28490 -packages ! caption
28495 in the document preamble with this line:
28498 \begin_layout Standard
28503 usepackage[format definition]{caption}
28506 \begin_layout Standard
28507 To have for example the label and the number in sans-serif, bold font and
28508 the table captions always above the table as in this document, use the
28512 \begin_layout Standard
28517 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28520 \begin_layout Standard
28521 You can also define different caption formats for the different float types.
28522 In this case load the
28526 package without format specific options and define the different formats
28527 with the help of the command
28530 \begin_layout Standard
28535 captionsetup[float type]{format definition}
28538 \begin_layout Standard
28539 in the document preamble.
28540 For example the caption formats of Figure
28541 \begin_inset space ~
28545 \begin_inset CommandInset ref
28547 reference "fig:This-is-an-fig"
28552 \begin_inset space ~
28556 \begin_inset CommandInset ref
28558 reference "tab:This-is-an-tab"
28562 can be created using these commands in the document preamble:
28565 \begin_layout Standard
28570 usepackage[tableposition=top]{caption}
28573 \begin_inset Newline newline
28580 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28581 \begin_inset Newline newline
28585 \begin_inset Phantom HPhantom
28588 \begin_layout Plain Layout
28593 captionsetup[figure]{
28599 \begin_inset Newline newline
28604 captionsetup[table]{labelfont={bf,sf}}
28607 \begin_layout Standard
28608 \begin_inset Note Greyedout
28611 \begin_layout Plain Layout
28620 has no effect when a
28625 \begin_inset Index idx
28628 \begin_layout Plain Layout
28630 -packages ! KOMA-Script
28635 document class is used.
28636 In this case the document class option
28638 captions=tableheading
28648 \begin_layout Standard
28649 For more information about the package
28653 we refer to its documentation
28654 \begin_inset CommandInset citation
28664 \begin_layout Standard
28665 To change the label name from e.
28666 \begin_inset space \thinspace{}
28670 \begin_inset space \space{}
28674 \begin_inset Quotes eld
28678 \begin_inset Quotes erd
28682 \begin_inset Quotes eld
28686 \begin_inset Quotes erd
28689 use this preamble command:
28692 \begin_layout Standard
28699 fnum@figure}{Image~
28704 \begin_layout Standard
28711 inserts the figure number and
28714 \begin_inset Quotes eld
28720 \begin_inset Quotes erd
28723 creates a protected space.
28726 \begin_layout Standard
28727 \begin_inset VSpace bigskip
28735 \begin_inset Index idx
28738 \begin_layout Plain Layout
28740 -packages ! KOMA-Script
28747 article (KOMA-Script)
28755 letter (KOMA-Script)
28759 report (KOMA-Script)
28762 \begin_inset space \thinspace{}
28765 ), you can alternatively to the
28773 's built-in command
28780 For example, to have the caption label in bold, add this command to your
28784 \begin_layout Standard
28789 setkomafont{captionlabel}{
28794 \begin_layout Standard
28795 For more information about
28806 \begin_inset CommandInset citation
28816 \begin_layout Standard
28820 \begin_layout Plain Layout
28824 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28831 \begin_inset Note Note
28834 \begin_layout Plain Layout
28835 The caption format is changed only for this example.
28843 \begin_layout Standard
28844 \begin_inset Float figure
28850 \begin_layout Plain Layout
28852 \begin_inset Graphics
28853 filename clipart/2D-intensity-plot.pdf
28854 scaleBeforeRotation
28861 \begin_layout Plain Layout
28862 \begin_inset Caption Standard
28864 \begin_layout Plain Layout
28865 \begin_inset CommandInset label
28867 name "fig:This-is-an-fig"
28871 This is an example figure caption that is longer than one line to show the
28872 different caption format.
28873 Here a self-defined caption format is used.
28886 \begin_layout Standard
28890 \begin_layout Plain Layout
28894 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28903 \begin_layout Standard
28904 \begin_inset Float table
28910 \begin_layout Plain Layout
28911 \begin_inset Caption Standard
28913 \begin_layout Plain Layout
28914 \begin_inset CommandInset label
28916 name "tab:This-is-an-tab"
28920 This is an example table caption that is longer than one line to show the
28921 different caption format.
28922 Here the standard caption format for tables in this document is used.
28930 \begin_layout Plain Layout
28932 \begin_inset Tabular
28933 <lyxtabular version="3" rows="1" columns="5">
28934 <features tabularvalignment="middle">
28935 <column alignment="center" valignment="top">
28936 <column alignment="center" valignment="top">
28937 <column alignment="center" valignment="top">
28938 <column alignment="center" valignment="top">
28939 <column alignment="center" valignment="top">
28941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28944 \begin_layout Plain Layout
28950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28953 \begin_layout Plain Layout
28959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28962 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28971 \begin_layout Plain Layout
28977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Plain Layout
28999 \begin_layout Section
29001 \begin_inset Index idx
29004 \begin_layout Plain Layout
29005 Caption ! Placement
29011 \begin_inset Index idx
29014 \begin_layout Plain Layout
29015 Floats ! Caption Placement
29021 \begin_inset CommandInset label
29023 name "sec:Caption-Placement"
29030 \begin_layout Standard
29031 The common caption placement rule is:
29034 \begin_layout Description
29035 Figure: Caption is set below the figure
29038 \begin_layout Description
29039 Table: Caption is set above the table
29042 \begin_layout Standard
29043 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29046 That means if you are using the document classes
29062 there will be no space between the caption and the table.
29063 To insert the necessary space, load the \SpecialChar LaTeX
29069 \begin_inset Index idx
29072 \begin_layout Plain Layout
29074 -packages ! caption
29079 in your document preamble with the option
29083 \begin_layout Plain Layout
29085 \begin_inset space ~
29089 \begin_inset CommandInset ref
29091 reference "sec:Caption-Formatting"
29095 for more information of the package
29107 \begin_layout Standard
29113 \begin_layout Standard
29119 \begin_inset Index idx
29122 \begin_layout Plain Layout
29124 -packages ! KOMA-Script
29131 article (KOMA-Script)
29139 letter (KOMA-Script)
29143 report (KOMA-Script)
29146 \begin_inset space \thinspace{}
29149 ), you can alternatively to the
29153 package set the document class option
29157 \begin_layout Plain Layout
29158 That option is used in this document.
29166 \begin_layout Standard
29169 captions=tableheading
29172 \begin_layout Standard
29173 In documents with a KOMA-Script document class you can also right-click
29174 on a caption and mark in the context menu if this should be a caption above
29175 or below the table/figure.
29176 This way you can override the document-wide caption placement for certain
29179 \begin_inset space ~
29183 \begin_inset CommandInset ref
29185 reference "tab:A-caption-marked"
29189 is an example where the caption is marked a being below the table while
29191 For comparison the caption in Table
29192 \begin_inset space ~
29196 \begin_inset CommandInset ref
29198 reference "tab:A-standard-table"
29205 \begin_layout Standard
29206 \begin_inset Float table
29211 \begin_layout Plain Layout
29212 \begin_inset Caption Below
29214 \begin_layout Plain Layout
29215 \begin_inset CommandInset label
29217 name "tab:A-caption-marked"
29221 A caption marked as being below the table.
29229 \begin_layout Plain Layout
29231 \begin_inset Tabular
29232 <lyxtabular version="3" rows="3" columns="3">
29233 <features tabularvalignment="middle">
29234 <column alignment="center" valignment="top" width="0pt">
29235 <column alignment="center" valignment="top" width="0pt">
29236 <column alignment="center" valignment="top" width="0pt">
29238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29241 \begin_layout Plain Layout
29247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29250 \begin_layout Plain Layout
29256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29259 \begin_layout Plain Layout
29267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29270 \begin_layout Plain Layout
29276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29279 \begin_layout Plain Layout
29285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29288 \begin_layout Plain Layout
29296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29299 \begin_layout Plain Layout
29300 \begin_inset Formula $\int x^{2}dx$
29308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29311 \begin_layout Plain Layout
29312 \begin_inset Formula $\left[\begin{array}{cc}
29315 \end{array}\right]$
29323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29326 \begin_layout Plain Layout
29327 \begin_inset Formula $1+1=2$
29348 \begin_layout Standard
29349 \begin_inset Float table
29354 \begin_layout Plain Layout
29355 \begin_inset Caption Standard
29357 \begin_layout Plain Layout
29358 \begin_inset CommandInset label
29360 name "tab:A-standard-table"
29364 A standard table caption.
29372 \begin_layout Plain Layout
29374 \begin_inset Tabular
29375 <lyxtabular version="3" rows="3" columns="3">
29376 <features tabularvalignment="middle">
29377 <column alignment="center" valignment="top" width="0pt">
29378 <column alignment="center" valignment="top" width="0pt">
29379 <column alignment="center" valignment="top" width="0pt">
29381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29384 \begin_layout Plain Layout
29390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29393 \begin_layout Plain Layout
29399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29402 \begin_layout Plain Layout
29410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29413 \begin_layout Plain Layout
29419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29422 \begin_layout Plain Layout
29428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29431 \begin_layout Plain Layout
29439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29442 \begin_layout Plain Layout
29443 \begin_inset Formula $\int x^{2}dx$
29451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29454 \begin_layout Plain Layout
29455 \begin_inset Formula $\left[\begin{array}{cc}
29458 \end{array}\right]$
29466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29469 \begin_layout Plain Layout
29470 \begin_inset Formula $1+1=2$
29491 \begin_layout Standard
29492 \begin_inset VSpace bigskip
29495 It is also possible to set the caption beside a figure or table.
29496 To get this the \SpecialChar LaTeX
29502 \begin_inset Index idx
29505 \begin_layout Plain Layout
29507 -packages ! sidecap
29512 has to be loaded in the document preamble with the line
29515 \begin_layout Standard
29520 usepackage[option]{sidecap}
29523 \begin_layout Standard
29524 If you set no option, the caption is placed on the side of the outer page
29525 margin – to the right on odd pages, to the left on even pages.
29526 You can change the placement to inner margin with the option
29531 To force the placement always to the right or left, use the option
29542 \begin_layout Standard
29546 \begin_layout Plain Layout
29556 \begin_inset Note Note
29559 \begin_layout Plain Layout
29560 The following section will only be displayed when the \SpecialChar LaTeX
29573 \begin_layout Standard
29574 To place in \SpecialChar LyX
29575 the caption of a float on the side, it is necessary to add
29576 these commands to the document preamble:
29579 \begin_layout Standard
29581 \begin_inset CommandInset line
29592 \begin_layout Standard
29599 TabBesBeg}[1][1.0]{%
29600 \begin_inset Newline newline
29604 \begin_inset Phantom HPhantom
29607 \begin_layout Plain Layout
29608 \begin_inset space ~
29623 \begin_inset Newline newline
29627 \begin_inset Phantom HPhantom
29630 \begin_layout Plain Layout
29633 \begin_inset space ~
29648 \begin_inset Newline newline
29652 \begin_inset Phantom HPhantom
29655 \begin_layout Plain Layout
29658 \begin_inset space ~
29668 renewenvironment{table}[1]{
29670 begin{SCtable}[#1]##1}{
29675 \begin_layout Standard
29683 \begin_inset Newline newline
29687 \begin_inset Phantom HPhantom
29690 \begin_layout Plain Layout
29691 \begin_inset space ~
29706 \begin_inset Newline newline
29710 \begin_inset Phantom HPhantom
29713 \begin_layout Plain Layout
29714 \begin_inset space ~
29731 \begin_layout Standard
29738 FigBesBeg}[1][1.0]{%
29739 \begin_inset Newline newline
29743 \begin_inset Phantom HPhantom
29746 \begin_layout Plain Layout
29747 \begin_inset space ~
29762 \begin_inset Newline newline
29766 \begin_inset Phantom HPhantom
29769 \begin_layout Plain Layout
29770 \begin_inset space ~
29785 \begin_inset Newline newline
29789 \begin_inset Phantom HPhantom
29792 \begin_layout Plain Layout
29793 \begin_inset space ~
29803 renewenvironment{figure}[1]{
29805 begin{SCfigure}[#1]##1}{
29810 \begin_layout Standard
29818 \begin_inset Newline newline
29822 \begin_inset Phantom HPhantom
29825 \begin_layout Plain Layout
29826 \begin_inset space ~
29841 \begin_inset Newline newline
29845 \begin_inset Phantom HPhantom
29848 \begin_layout Plain Layout
29849 \begin_inset space ~
29866 \begin_layout Standard
29868 \begin_inset CommandInset line
29879 \begin_layout Standard
29880 The commands allow you to redefine the floats so that the caption is set
29882 For figure floats use the command
29885 \begin_layout Standard
29893 \begin_layout Standard
29894 in \SpecialChar TeX
29895 Code before the float.
29896 And insert the command
29899 \begin_layout Standard
29907 \begin_layout Standard
29908 in \SpecialChar TeX
29909 Code at the point where you want to get back to the original float definitio
29913 \begin_layout Standard
29914 For table floats use the corresponding commands
29917 \begin_layout Standard
29931 \begin_layout Standard
29933 \begin_inset space ~
29937 \begin_inset CommandInset ref
29939 reference "fig:cap-beside-fig"
29944 \begin_inset space ~
29948 \begin_inset CommandInset ref
29950 reference "tab:cap-beside-tab"
29954 are examples where the caption is set beside.
29957 \begin_layout Standard
29958 You can see in the examples that the caption text appears at the top of
29959 the floats for table floats and at the bottom for figure floats.
29960 To change this, you can use the command
29963 \begin_layout Standard
29968 sidecaptionvpos{float type}{placement}
29971 \begin_layout Standard
29972 in the document preamble or in \SpecialChar TeX
29973 Code before the float.
29974 The float type is either
29982 , the placement can be
29983 \begin_inset Quotes eld
29991 \begin_inset Quotes erd
29995 \begin_inset Quotes eld
30003 \begin_inset Quotes erd
30007 \begin_inset Quotes eld
30015 \begin_inset Quotes erd
30019 To have for example the caption of figure floats vertically centered, use
30023 \begin_layout Standard
30028 sidecaptionvpos{figure}{c}
30031 \begin_layout Standard
30032 This was used for Figure
30033 \begin_inset space ~
30037 \begin_inset CommandInset ref
30039 reference "fig:cap-beside-fig-2"
30046 \begin_layout Standard
30047 \begin_inset VSpace medskip
30053 \begin_layout Standard
30054 The default caption width is the width of the image/table.
30055 For thin image/tables, like in Table
30056 \begin_inset space ~
30060 \begin_inset CommandInset ref
30062 reference "tab:cap-beside-tab"
30066 , this leads to captions that are too thin.
30067 You can increase the width by specifying a factor that will be multiplied
30068 with the image/table width to get the caption width.
30069 The caption width will automatically be recalculated in case it would protrude
30070 over the page or column margin due to the specified width.
30075 can either be given as optional argument for
30084 \begin_layout Standard
30092 \begin_layout Standard
30093 or in the definition of
30103 with another value.
30104 If you do the latter, your factor will be the default if
30110 is used without an argument.
30112 \begin_inset space ~
30116 \begin_inset CommandInset ref
30118 reference "tab:cap-beside-tab-wider"
30122 the factor 5 was used.
30125 \begin_layout Standard
30126 \begin_inset Note Greyedout
30129 \begin_layout Plain Layout
30134 For floats with captions set beside, you cannot use the float placement
30138 \begin_inset space ~
30143 because it is not supported by
30155 \begin_layout Standard
30156 \begin_inset VSpace medskip
30159 For more information about the package
30163 we refer to its documentation
30164 \begin_inset CommandInset citation
30174 \begin_layout Standard
30175 \begin_inset Note Greyedout
30178 \begin_layout Plain Layout
30183 The \SpecialChar LaTeX
30189 \begin_inset Index idx
30192 \begin_layout Plain Layout
30199 , described in section
30200 \begin_inset space ~
30204 \begin_inset CommandInset ref
30206 reference "subsec:Reference-Position"
30210 , has no effect on floats with the caption set beside.
30218 \begin_layout Standard
30222 \begin_layout Plain Layout
30234 \begin_layout Standard
30235 \begin_inset Float figure
30240 \begin_layout Plain Layout
30241 \begin_inset Graphics
30242 filename clipart/3D-structure-distort.pdf
30244 scaleBeforeRotation
30251 \begin_layout Plain Layout
30252 \begin_inset Caption Standard
30254 \begin_layout Plain Layout
30255 \begin_inset CommandInset label
30257 name "fig:cap-beside-fig"
30261 This is a caption beside a figure.
30274 \begin_layout Standard
30278 \begin_layout Plain Layout
30290 \begin_layout Standard
30294 \begin_layout Plain Layout
30306 \begin_layout Standard
30307 \begin_inset Float table
30312 \begin_layout Plain Layout
30313 \begin_inset Caption Standard
30315 \begin_layout Plain Layout
30316 \begin_inset CommandInset label
30318 name "tab:cap-beside-tab"
30322 This is a caption beside a table.
30330 \begin_layout Plain Layout
30331 \begin_inset Tabular
30332 <lyxtabular version="3" rows="4" columns="5">
30333 <features tabularvalignment="middle">
30334 <column alignment="center" valignment="top">
30335 <column alignment="center" valignment="top">
30336 <column alignment="center" valignment="top">
30337 <column alignment="center" valignment="top">
30338 <column alignment="center" valignment="top">
30340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30343 \begin_layout Plain Layout
30349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30352 \begin_layout Plain Layout
30358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30361 \begin_layout Plain Layout
30367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30370 \begin_layout Plain Layout
30376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30379 \begin_layout Plain Layout
30387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30390 \begin_layout Plain Layout
30396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30399 \begin_layout Plain Layout
30405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30408 \begin_layout Plain Layout
30414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30417 \begin_layout Plain Layout
30423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30426 \begin_layout Plain Layout
30434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30437 \begin_layout Plain Layout
30443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30446 \begin_layout Plain Layout
30452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30455 \begin_layout Plain Layout
30461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30464 \begin_layout Plain Layout
30470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30473 \begin_layout Plain Layout
30481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30484 \begin_layout Plain Layout
30490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30493 \begin_layout Plain Layout
30499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30502 \begin_layout Plain Layout
30508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30511 \begin_layout Plain Layout
30517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30520 \begin_layout Plain Layout
30539 \begin_layout Standard
30543 \begin_layout Plain Layout
30555 \begin_layout Standard
30559 \begin_layout Plain Layout
30572 \begin_layout Plain Layout
30576 sidecaptionvpos{figure}{c}
30582 \begin_inset Float figure
30587 \begin_layout Plain Layout
30588 \begin_inset Graphics
30589 filename clipart/3D-structure-distort.pdf
30591 scaleBeforeRotation
30598 \begin_layout Plain Layout
30599 \begin_inset Caption Standard
30601 \begin_layout Plain Layout
30602 \begin_inset CommandInset label
30604 name "fig:cap-beside-fig-2"
30608 This is a vertically centered caption beside a figure.
30621 \begin_layout Standard
30625 \begin_layout Plain Layout
30637 \begin_layout Standard
30641 \begin_layout Plain Layout
30653 \begin_layout Standard
30654 \begin_inset Float table
30659 \begin_layout Plain Layout
30660 \begin_inset Caption Standard
30662 \begin_layout Plain Layout
30663 \begin_inset CommandInset label
30665 name "tab:cap-beside-tab-wider"
30669 This caption is wider than the one in Table
30670 \begin_inset space ~
30674 \begin_inset CommandInset ref
30676 reference "tab:cap-beside-tab"
30688 \begin_layout Plain Layout
30689 \begin_inset Tabular
30690 <lyxtabular version="3" rows="4" columns="5">
30691 <features tabularvalignment="middle">
30692 <column alignment="center" valignment="top">
30693 <column alignment="center" valignment="top">
30694 <column alignment="center" valignment="top">
30695 <column alignment="center" valignment="top">
30696 <column alignment="center" valignment="top">
30698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30701 \begin_layout Plain Layout
30707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30710 \begin_layout Plain Layout
30716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30719 \begin_layout Plain Layout
30725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30728 \begin_layout Plain Layout
30734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30737 \begin_layout Plain Layout
30745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30748 \begin_layout Plain Layout
30754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30757 \begin_layout Plain Layout
30763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30766 \begin_layout Plain Layout
30772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30775 \begin_layout Plain Layout
30781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30784 \begin_layout Plain Layout
30792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30795 \begin_layout Plain Layout
30801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30804 \begin_layout Plain Layout
30810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30813 \begin_layout Plain Layout
30819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30822 \begin_layout Plain Layout
30828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30831 \begin_layout Plain Layout
30839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30842 \begin_layout Plain Layout
30848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30851 \begin_layout Plain Layout
30857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30860 \begin_layout Plain Layout
30866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30869 \begin_layout Plain Layout
30875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30878 \begin_layout Plain Layout
30897 \begin_layout Standard
30901 \begin_layout Plain Layout
30913 \begin_layout Standard
30917 \begin_layout Plain Layout
30927 \begin_inset Note Note
30930 \begin_layout Plain Layout
30931 The following will be displayed when the \SpecialChar LaTeX
30944 \begin_layout Standard
30945 You need to install the \SpecialChar LaTeX
30950 to see the following part of this section in the output.
30953 \begin_layout Standard
30957 \begin_layout Plain Layout
30969 \begin_layout Section
30971 \begin_inset Index idx
30974 \begin_layout Plain Layout
30975 Floats ! Float Lists
30983 \begin_layout Standard
30984 Similar to the table of contents where the sections of the document are
30985 listed, there are listings for all float types, like the figures of the
30987 You can insert them via the
30989 Insert\SpecialChar menuseparator
30991 \begin_inset space ~
30995 \begin_inset space ~
31003 \begin_layout Standard
31004 The list entries are the float captions or its short title, the float number,
31005 and the page number where they appear in the document.
31008 \begin_layout Standard
31009 You can find the list of figures and tables at the end of this document.
31012 \begin_layout Chapter
31016 \begin_layout Section
31019 \begin_inset Index idx
31022 \begin_layout Plain Layout
31023 Notes ! \SpecialChar LyX
31032 \begin_layout Standard
31033 Notes are inserted with the toolbar button
31041 Insert\SpecialChar menuseparator
31045 There are three types of notes:
31048 \begin_layout Description
31051 \begin_inset space ~
31054 Note This note type is for internal notes that won't appear in the output.
31055 Its note-box looks like this:
31056 \begin_inset Newline newline
31060 \begin_inset Newline newline
31064 \begin_inset Graphics
31065 filename clipart/LyXNoteImage.png
31067 scaleBeforeRotation
31072 \begin_inset Note Note
31075 \begin_layout Plain Layout
31076 This is text in a note box that doesn't appear in the output.
31084 \begin_layout Description
31085 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31087 when you export the document to \SpecialChar LaTeX
31090 File\SpecialChar menuseparator
31091 Export\SpecialChar menuseparator
31093 \begin_inset space ~
31096 (pdflatex) / (plain)
31099 Its note-box looks like this:
31100 \begin_inset Newline newline
31104 \begin_inset Newline newline
31108 \begin_inset Graphics
31109 filename clipart/CommentNoteImage.png
31111 scaleBeforeRotation
31116 \begin_inset Note Comment
31119 \begin_layout Plain Layout
31120 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31129 \begin_layout Description
31131 \begin_inset space ~
31134 Out This note will appear in the output as grey text.
31135 Its note-box looks like this:
31136 \begin_inset Newline newline
31140 \begin_inset Newline newline
31144 \begin_inset Graphics
31145 filename clipart/GreyedOutNoteImage.png
31147 scaleBeforeRotation
31152 \begin_inset Newline newline
31159 \begin_layout Plain Layout
31163 renewenvironment{lyxgreyedout}
31166 \begin_layout Plain Layout
31170 textcolor[gray]{0.8}
31180 \begin_inset Note Greyedout
31183 \begin_layout Plain Layout
31184 This is text of a comment that appears grey in the output.
31193 \begin_layout Plain Layout
31197 renewenvironment{lyxgreyedout}
31200 \begin_layout Plain Layout
31214 \begin_inset Note Note
31217 \begin_layout Plain Layout
31218 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31220 because greyed out notes are redefined in the preamble of this document,
31221 as described below, to have blue text.
31227 \begin_inset Newline newline
31231 \begin_inset Newline newline
31234 As you can see in the example, the first line of greyed out notes is a bit
31235 indented and greyed out notes can have footnotes.
31238 \begin_layout Standard
31239 \begin_inset VSpace bigskip
31242 When you use the toolbar button
31252 \begin_inset space ~
31258 You can switch between the three note types by right-clicking on the note-box.
31263 If you want to turn existing text into a note, mark it and click on the
31277 To change a note to text, press the backspace key when the cursor is in
31278 the first position of a note, or press the delete key when the cursor is
31279 in the very last position of the note, respectively.
31282 \begin_layout Standard
31283 \begin_inset VSpace bigskip
31286 You can change the text color of the greyed out notes in the menu
31288 Document\SpecialChar menuseparator
31289 Settings\SpecialChar menuseparator
31295 \begin_layout Section
31297 \begin_inset CommandInset label
31299 name "sec:Footnotes"
31304 \begin_inset Index idx
31307 \begin_layout Plain Layout
31314 \begin_inset Index idx
31317 \begin_layout Plain Layout
31326 \begin_layout Standard
31327 Footnotes can be inserted using the toolbar button
31330 arg "footnote-insert"
31335 Insert\SpecialChar menuseparator
31339 You will then see the following footnote-box:
31340 \begin_inset Graphics
31341 filename clipart/footnote.png
31343 scaleBeforeRotation
31351 where you can enter the footnote text.
31352 If you want to turn existing text into a footnote, mark it and click on
31378 key when the cursor is in the first position of a
31390 key when the cursor is in the very last position of the
31401 \begin_layout Standard
31402 Here is an example footnote:
31410 \begin_layout Plain Layout
31411 \begin_inset CommandInset label
31413 name "foot:This-is-an"
31417 This is an example footnote.
31430 \begin_layout Plain Layout
31434 newcounter{MyRepeatFoot}
31437 \begin_layout Plain Layout
31441 setcounter{MyRepeatFoot}{
31451 \begin_layout Standard
31452 The footnote will appear in the output as a superscript number at the text
31453 position where the footnote box is placed.
31454 The footnote text is placed at the bottom of the current page.
31455 The footnote number is calculated by \SpecialChar LaTeX
31456 ; the numbers are consecutive.
31457 Whether the footnote number is reset for every chapter depends on your
31461 \begin_layout Standard
31462 Footnotes can be referenced like floats: Insert a label into the footnote
31463 and cross-reference this label in the text as described in section
31464 \begin_inset space ~
31468 \begin_inset CommandInset ref
31470 reference "sec:Referencing-Floats"
31475 \begin_inset Newline newline
31478 This is a cross-reference of Footnote
31479 \begin_inset space ~
31483 \begin_inset CommandInset ref
31485 reference "foot:This-is-an"
31492 \begin_layout Standard
31493 \begin_inset VSpace defskip
31496 Footnotes in title environments are usually not numbered with symbols and
31497 they cannot contain several paragraphs.
31498 See for example the footnote in the titling of this document.
31501 \begin_layout Standard
31502 \begin_inset VSpace defskip
31505 Footnotes in tables are not printed by \SpecialChar LaTeX
31506 due to technical reasons.
31507 However there exists another method to print them: Instead of the footnote
31514 is inserted as \SpecialChar TeX
31516 The text of the footnote is entered as an argument of the \SpecialChar TeX
31525 \begin_inset Newline newline
31528 This was done for the following table with the command
31531 \begin_layout Standard
31538 Printed table footnote.
31543 \begin_layout Standard
31544 \begin_inset Tabular
31545 <lyxtabular version="3" rows="2" columns="1">
31546 <features tabularvalignment="middle">
31547 <column alignment="center" valignment="top">
31549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31552 \begin_layout Plain Layout
31553 This an example text.
31557 \begin_layout Plain Layout
31558 This footnote will not be printed!
31570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31573 \begin_layout Plain Layout
31574 This an example text.
31578 \begin_layout Plain Layout
31601 \begin_layout Plain Layout
31610 Printed table footnote.
31614 \begin_layout Plain Layout
31624 \begin_layout Standard
31625 Footnotes in multi-page tables are described in section
31626 \begin_inset space ~
31630 \begin_inset CommandInset ref
31632 reference "subsec:Footnotes-in-Multi-page"
31639 \begin_layout Standard
31640 Footnotes in minipage boxes are printed, but inside the box and with a different
31641 numbering because a minipage box is like a page inside a page.
31642 (For more about minipages, see section
31643 \begin_inset space ~
31647 \begin_inset CommandInset ref
31649 reference "sec:Minipages"
31653 .) To get a footnote in the minipage that is output at the bottom of the
31654 page like normal footnotes, also use the method of
31669 \begin_layout Standard
31670 \begin_inset Box Frameless
31680 height_special "totalheight"
31685 backgroundcolor "none"
31688 \begin_layout Plain Layout
31689 This an example text in a minipage.
31693 \begin_layout Plain Layout
31694 Footnote in the minipage.
31702 \begin_layout Plain Layout
31703 This an example text in a minipage.
31707 \begin_layout Plain Layout
31724 \begin_layout Standard
31728 \begin_layout Plain Layout
31737 Footnote outside the minipage.
31741 \begin_layout Plain Layout
31751 \begin_layout Standard
31752 \begin_inset VSpace defskip
31758 \begin_layout Standard
31759 To refer to the same footnote several times without printing the footnote
31760 text every time, use the command
31764 footnotemark[number]
31766 in \SpecialChar TeX
31768 \begin_inset Newline newline
31771 As you do not know the number of the repeating footnote while you are writing
31772 the text, you have to store its number.
31773 For the following footnote mark example, these commands were inserted in
31775 code after Footnote
31776 \begin_inset space ~
31780 \begin_inset CommandInset ref
31782 reference "foot:This-is-an"
31786 to store the footnote number:
31789 \begin_layout Standard
31794 newcounter{MyRepeatFoot}
31795 \begin_inset Newline newline
31800 setcounter{MyRepeatFoot}{
31805 \begin_layout Standard
31806 The footnote mark was then created with this command:
31809 \begin_layout Standard
31819 \begin_layout Standard
31820 Here is a repeated footnote:
31828 \begin_layout Plain Layout
31842 \begin_layout Standard
31843 If you want to repeat the previous footnote, you can omit the storage of
31844 the footnote number and just use this command instead:
31847 \begin_layout Standard
31857 \begin_layout Standard
31858 Here is another repeated footnote:
31866 \begin_layout Plain Layout
31880 \begin_layout Subsection
31882 \begin_inset CommandInset label
31884 name "subsec:Footnote-Numbering"
31889 \begin_inset Index idx
31892 \begin_layout Plain Layout
31893 Footnotes ! Numbering
31901 \begin_layout Standard
31902 To reset the footnote number back to 1 after each section
31904 , add this command to your document preamble:
31907 \begin_layout Standard
31912 @addtoreset{footnote}{section}
31915 \begin_layout Standard
31916 \begin_inset VSpace bigskip
31919 The following preamble command changes the footnote numbering style to small
31923 \begin_layout Standard
31935 \begin_layout Standard
31939 \begin_layout Plain Layout
31952 This is a footnote with roman numbering:
31956 \begin_layout Plain Layout
31957 This is an example footnote with roman numbering.
31965 \begin_layout Standard
31966 To change the numbering style to capital roman numerals replace in the command
31981 \begin_inset Quotes eld
31985 \begin_inset Quotes erd
31988 footnotes with capital or small Latin letters use
32002 \begin_inset Quotes eld
32006 \begin_inset Quotes erd
32009 footnotes with symbols use
32018 \begin_layout Standard
32019 \begin_inset Note Greyedout
32022 \begin_layout Plain Layout
32027 You can only number 26 footnotes with Latin letters, because this numbering
32028 is limited to single letters.
32034 \begin_inset Newline newline
32038 \begin_inset Note Greyedout
32041 \begin_layout Plain Layout
32046 You can only number 9 footnotes with symbols.
32054 \begin_layout Standard
32055 To return to the default numbering style after you have changed to another
32068 in the command above.
32072 \begin_layout Plain Layout
32088 \begin_layout Standard
32089 \begin_inset VSpace bigskip
32095 \begin_layout Standard
32096 If you want to have footnotes numbered in the scheme
32097 \begin_inset Quotes eld
32101 \begin_inset Quotes erd
32104 , add the following command to your document preamble:
32107 \begin_layout Standard
32112 numberwithin{footnote}{chapter}
32115 \begin_layout Standard
32116 To be able to use the command
32125 \begin_inset space ~
32130 in the document settings the option
32133 \begin_inset space ~
32137 \begin_inset space ~
32141 \begin_inset space ~
32149 \begin_layout Standard
32153 \begin_layout Plain Layout
32157 numberwithin{footnote}{chapter}
32162 This is another example footnote:
32168 \begin_layout Plain Layout
32169 This is a footnote numbered in the scheme
32170 \begin_inset Quotes eld
32174 \begin_inset Quotes erd
32188 \begin_layout Plain Layout
32204 \begin_layout Standard
32205 \begin_inset Note Greyedout
32208 \begin_layout Plain Layout
32219 always prints out the footnote number as arabic number; previous redefinitions
32220 to get non-arabic numbers are overwritten.
32228 \begin_layout Standard
32229 So to get for example the scheme
32230 \begin_inset Quotes eld
32236 \begin_inset Quotes erd
32239 , use this command instead of
32248 \begin_layout Standard
32262 \begin_layout Subsection
32264 \begin_inset Index idx
32267 \begin_layout Plain Layout
32268 Footnotes ! Placement
32276 \begin_layout Standard
32277 If you have several footnotes in one page, they appear without vertical
32278 space between them at the bottom of the page.
32279 To make them more readable you can e.
32280 \begin_inset space \thinspace{}
32284 \begin_inset space \space{}
32288 \begin_inset space \thinspace{}
32291 mm space with the following preamble command:
32294 \begin_layout Standard
32304 \begin_inset Newline newline
32318 \begin_layout Standard
32319 \begin_inset VSpace bigskip
32322 In a two-column document the footnotes appear at the bottom of every column,
32324 \begin_inset space ~
32328 \begin_inset CommandInset ref
32330 reference "fig:Standard-footnote-placement"
32335 If the footnotes should only appear at the bottom of the right column,
32337 \begin_inset space ~
32341 \begin_inset CommandInset ref
32343 reference "fig:Footnote-placement-in"
32347 , use the \SpecialChar LaTeX
32353 \begin_inset Index idx
32356 \begin_layout Plain Layout
32358 -packages ! ftnright
32363 with this command in the document preamble:
32366 \begin_layout Standard
32371 usepackage{ftnright}
32374 \begin_layout Standard
32375 \begin_inset Float figure
32381 \begin_layout Plain Layout
32384 \begin_inset Box Boxed
32394 height_special "totalheight"
32399 backgroundcolor "none"
32402 \begin_layout Plain Layout
32403 \begin_inset Graphics
32404 filename clipart/without_fntright.pdf
32406 scaleBeforeRotation
32418 \begin_layout Plain Layout
32419 \begin_inset Caption Standard
32421 \begin_layout Plain Layout
32422 \begin_inset CommandInset label
32424 name "fig:Standard-footnote-placement"
32428 Standard footnote placement in two-column documents.
32441 \begin_layout Standard
32442 \begin_inset Float figure
32448 \begin_layout Plain Layout
32451 \begin_inset Box Boxed
32461 height_special "totalheight"
32466 backgroundcolor "none"
32469 \begin_layout Plain Layout
32470 \begin_inset Graphics
32471 filename clipart/with_fntright.pdf
32473 scaleBeforeRotation
32485 \begin_layout Plain Layout
32486 \begin_inset Caption Standard
32488 \begin_layout Plain Layout
32489 \begin_inset CommandInset label
32491 name "fig:Footnote-placement-in"
32495 Footnote placement in two-column documents when the \SpecialChar LaTeX
32513 \begin_layout Standard
32514 \begin_inset VSpace bigskip
32517 In some scientific literature it is usual to collect the footnotes and print
32518 them in a separate paragraph at the end of a section, as in Figure
32519 \begin_inset space ~
32523 \begin_inset CommandInset ref
32525 reference "fig:Endnotes"
32530 They are then called
32531 \begin_inset Quotes eld
32535 \begin_inset Quotes erd
32539 \begin_inset Index idx
32542 \begin_layout Plain Layout
32548 To use endnotes instead of footnotes in your document, load in the menu
32551 Document\SpecialChar menuseparator
32552 Settings\SpecialChar menuseparator
32558 \begin_inset space ~
32562 \begin_inset space ~
32568 To insert the collected footnotes, insert the command
32571 \begin_layout Standard
32579 \begin_layout Standard
32580 in \SpecialChar TeX
32581 Code at the end of a section or chapter.
32584 \begin_layout Standard
32585 \begin_inset Float figure
32590 \begin_layout Plain Layout
32593 \begin_inset Box Boxed
32603 height_special "totalheight"
32608 backgroundcolor "none"
32611 \begin_layout Plain Layout
32612 \begin_inset Graphics
32613 filename clipart/endnotes.pdf
32615 scaleBeforeRotation
32627 \begin_layout Plain Layout
32628 \begin_inset Caption Standard
32630 \begin_layout Plain Layout
32631 \begin_inset CommandInset label
32633 name "fig:Endnotes"
32637 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32651 \begin_layout Standard
32652 \begin_inset VSpace medskip
32655 The paragraph heading for the endnotes isn't automatically translated into
32656 the document language, this must be done manually.
32657 The following preamble command translates the default English
32658 \begin_inset Quotes eld
32662 \begin_inset Quotes erd
32666 \begin_inset Quotes eld
32670 \begin_inset Quotes erd
32676 \begin_layout Standard
32683 notesname}{Anmerkungen}
32686 \begin_layout Standard
32687 \begin_inset VSpace medskip
32690 The numbering of endnotes can be changed like the footnote numbering as
32691 described in section
32692 \begin_inset space ~
32696 \begin_inset CommandInset ref
32698 reference "subsec:Footnote-Numbering"
32702 ; just replace the command
32715 To reset the endnote number use the command
32721 as described in section
32722 \begin_inset space ~
32726 \begin_inset CommandInset ref
32728 reference "subsec:Footnote-Numbering"
32732 and replace the command parameter
32743 \begin_layout Standard
32744 For endnotes there is the command
32748 endnotemark[number]
32750 similar to the command
32756 , that is described in section
32757 \begin_inset space ~
32761 \begin_inset CommandInset ref
32763 reference "sec:Footnotes"
32770 \begin_layout Standard
32771 \begin_inset VSpace bigskip
32774 Footnotes can also be placed in the page margin and the footnote text alignment
32775 can be changed, see the \SpecialChar LaTeX
32781 \begin_inset Index idx
32784 \begin_layout Plain Layout
32786 -packages ! footmisc
32792 \begin_inset CommandInset citation
32799 for more information about this.
32802 \begin_layout Standard
32803 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32805 \begin_inset CommandInset citation
32807 key "latexcompanion,latexguide,latexbook"
32818 \begin_inset Index idx
32821 \begin_layout Plain Layout
32823 -packages ! KOMA-Script
32828 document class, you can adjust all footnote settings using class-specific
32830 \begin_inset CommandInset citation
32840 \begin_layout Section
32842 \begin_inset Index idx
32845 \begin_layout Plain Layout
32846 Notes ! Margin Notes
32854 \begin_layout Standard
32855 Margin notes look and behave in \SpecialChar LyX
32857 They are inserted via the menu
32859 Insert\SpecialChar menuseparator
32861 \begin_inset space ~
32866 or the toolbar button
32869 arg "marginalnote-insert"
32883 \begin_inset Quotes eld
32887 \begin_inset Quotes erd
32890 appears where you can enter the text of the margin note.
32893 \begin_layout Standard
32894 At the side is an example margin note.
32899 \begin_inset Marginal
32902 \begin_layout Plain Layout
32903 This is a margin note.
32911 \begin_layout Standard
32912 Margin notes appear at the right side in single-sided documents.
32913 In double-sided documents they appear in the outer margin – left on even
32914 pages, right on odd pages.
32915 The text of margin notes is aligned opposite to the outer margin – right-aligne
32916 d when the note appears in the left margin.
32917 The first line of the margin note is placed at the position of the text
32918 line where it is inserted in the document.
32921 \begin_layout Standard
32922 \begin_inset VSpace bigskip
32925 To place the margin note in the inner margin, add the command
32928 \begin_layout Standard
32936 \begin_layout Standard
32937 in \SpecialChar TeX
32938 Code before a margin note.
32939 The new placement is valid for all subsequent margin notes.
32944 \begin_layout Plain Layout
32954 \begin_inset Marginal
32957 \begin_layout Plain Layout
32958 This is a margin note in the inner margin.
32966 \begin_inset Newline newline
32972 \begin_inset Note Greyedout
32975 \begin_layout Plain Layout
32980 There is often not enough space in the inner margin so that the notes are
32981 not correctly displayed in the output.
32989 \begin_layout Standard
32990 To return to the default placement insert the command
32993 \begin_layout Standard
33001 \begin_layout Standard
33002 in \SpecialChar TeX
33007 \begin_layout Plain Layout
33017 \begin_inset Note Greyedout
33020 \begin_layout Plain Layout
33025 The command is ignored when it is within a paragraph where also the command
33040 \begin_layout Standard
33041 \begin_inset VSpace bigskip
33048 \begin_inset Marginal
33051 \begin_layout Plain Layout
33052 AVeryLongMarginParWord that isn't hyphenated.
33060 Similar to the case described in section
33061 \begin_inset space ~
33065 \begin_inset CommandInset ref
33067 reference "subsec:Multiple-Lines-in"
33071 , long words cannot be hyphenated when they are the first word in a margin
33073 To avoid this, insert 0
33074 \begin_inset space \thinspace{}
33077 pt horizontal space before the word
33082 \begin_inset Marginal
33085 \begin_layout Plain Layout
33086 \begin_inset space \hspace*{}
33090 AVeryLongMarginParWord that is hyphenated.
33098 \begin_layout Standard
33099 \begin_inset VSpace bigskip
33105 \begin_layout Standard
33106 \begin_inset Note Greyedout
33109 \begin_layout Plain Layout
33114 Margin notes can normally not be used inside tables, floats, and footnotes.
33122 \begin_layout Standard
33123 \begin_inset VSpace bigskip
33129 \begin_layout Standard
33133 \begin_layout Plain Layout
33143 \begin_inset Note Note
33146 \begin_layout Plain Layout
33147 The following section will only be displayed when the \SpecialChar LaTeX
33160 \begin_layout Standard
33161 This restriction can be evaded by using the \SpecialChar LaTeX
33167 \begin_inset Index idx
33170 \begin_layout Plain Layout
33172 -packages ! marginnote
33178 By adding these two lines to your document preamble, the command used by
33180 for margin notes is redefined to use the command provided by the
33187 \begin_layout Standard
33192 usepackage{marginnote}
33193 \begin_inset Newline newline
33205 \begin_layout Standard
33206 This is also used in this document because
33210 has another useful feature: You can set a vertical offset for the note.
33211 This is often needed when too many margin notes are too close together
33212 or for a better page layout.
33213 The offset is set in \SpecialChar LyX
33214 as \SpecialChar TeX
33215 Code directly after the margin note in the scheme
33218 \begin_layout Standard
33224 \begin_layout Standard
33225 where the offset is a length with one of the units listed in Table
33226 \begin_inset space ~
33230 \begin_inset CommandInset ref
33232 reference "tab:Units"
33237 A negative value shifts the note up, a positive value shifts it down.
33241 For example the margin note beside this text line is shifted up 1.5
33242 \begin_inset space \thinspace{}
33245 cm with the \SpecialChar TeX
33247 \begin_inset Quotes eld
33257 \begin_inset Quotes erd
33261 \begin_inset Marginal
33264 \begin_layout Plain Layout
33265 This margin note is shifted up 1.5
33266 \begin_inset space \thinspace{}
33269 cm from its original position.
33281 \begin_layout Plain Layout
33291 \begin_layout Standard
33292 \begin_inset VSpace medskip
33299 you can also change the alignment of the text in the margin note.
33300 For example the commands
33303 \begin_layout Standard
33310 raggedleftmarginnote}{
33313 \begin_inset Newline newline
33320 raggedrightmarginnote}{
33325 \begin_layout Standard
33326 set the alignment to centered.
33331 raggedleftmarginnote
33333 denotes margin notes that appear at the left side.
33340 \begin_layout Plain Layout
33346 raggedleftmarginnote}{
33351 \begin_layout Plain Layout
33357 raggedrightmarginnote}{
33365 \begin_inset Marginal
33368 \begin_layout Plain Layout
33369 The text of this margin note is centered.
33380 \begin_layout Standard
33387 raggedleftmarginnote}{
33390 \begin_inset Newline newline
33397 raggedrightmarginnote}{
33406 \begin_layout Plain Layout
33412 raggedleftmarginnote}{
33417 \begin_layout Plain Layout
33423 raggedrightmarginnote}{
33433 \begin_layout Standard
33434 \begin_inset VSpace medskip
33437 For the other features of
33441 refer to its documentation
33442 \begin_inset CommandInset citation
33452 \begin_layout Standard
33453 \begin_inset VSpace bigskip
33456 You can adjust the layout of margin notes by changing its definition.
33457 To create for example a header for all margin notes with the underlined,
33458 sans-serif, and bold header text
33459 \begin_inset Quotes eld
33471 \begin_inset Quotes erd
33474 , add this to your document preamble:
33477 \begin_layout Standard
33487 \begin_inset Newline newline
33497 \begin_inset Newline newline
33501 \begin_inset Phantom HPhantom
33504 \begin_layout Plain Layout
33507 \begin_inset space ~
33523 underbar{Attention!}}}%
33524 \begin_inset Newline newline
33528 \begin_inset Phantom HPhantom
33531 \begin_layout Plain Layout
33534 \begin_inset space ~
33551 \begin_layout Standard
33558 \begin_layout Plain Layout
33569 \begin_layout Plain Layout
33580 \begin_layout Plain Layout
33588 underbar{Attention!}}}%
33591 \begin_layout Plain Layout
33605 \begin_inset Marginal
33608 \begin_layout Plain Layout
33609 This is a margin note with a defined heading.
33621 \begin_layout Plain Layout
33635 \begin_layout Plain Layout
33652 \begin_inset Note Note
33655 \begin_layout Plain Layout
33656 The margin note format is changed only for this example.
33664 \begin_layout Standard
33668 \begin_layout Plain Layout
33678 \begin_inset Note Note
33681 \begin_layout Plain Layout
33682 The following will be displayed when the \SpecialChar LaTeX
33695 \begin_layout Standard
33696 You need to install the \SpecialChar LaTeX
33701 to see the following part of this section in the output.
33704 \begin_layout Standard
33708 \begin_layout Plain Layout
33720 \begin_layout Chapter
33724 \begin_layout Section
33726 \begin_inset Index idx
33729 \begin_layout Plain Layout
33730 Boxes ! Introduction
33738 \begin_layout Standard
33739 Boxes are used to format a block of text.
33740 Boxes can be used to write documents with multiple languages, see section
33741 \begin_inset space ~
33745 \begin_inset CommandInset ref
33747 reference "sec:Minipages"
33751 , to frame texts, see section
33752 \begin_inset space ~
33756 \begin_inset CommandInset ref
33758 reference "sec:Decoration"
33762 , to prevent words from being hyphenated, see section
33763 \begin_inset space ~
33767 \begin_inset CommandInset ref
33769 reference "sec:Prevent-Hyphenation"
33773 , to align text, see section
33774 \begin_inset space ~
33778 \begin_inset CommandInset ref
33780 reference "subsec:Vertical-Alignment"
33784 , or to set the background color of texts, see section
33785 \begin_inset space ~
33789 \begin_inset CommandInset ref
33791 reference "sec:Colored-Boxes"
33798 \begin_layout Standard
33799 Boxes can be inserted with the menu
33801 Insert\SpecialChar menuseparator
33804 or the toolbar button
33807 arg "box-insert Frameless"
33811 A grey box with the label
33816 \begin_inset Graphics
33817 filename clipart/BoxInsetDefault.png
33819 scaleBeforeRotation
33824 The box type can be specified by right-clicking on the box and selecting
33830 The box dialog offers the
33833 \begin_inset space ~
33855 is the default for new boxes and is explained in section
33856 \begin_inset space ~
33860 \begin_inset CommandInset ref
33862 reference "sec:Minipages"
33870 is described in section
33871 \begin_inset space ~
33875 \begin_inset CommandInset ref
33877 reference "sec:Parboxes"
33886 \begin_inset CommandInset ref
33888 reference "sec:Prevent-Hyphenation"
33895 \begin_layout Standard
33896 Boxes are not numbered and can therefore not be referenced like floats or
33900 \begin_layout Standard
33901 \begin_inset Note Greyedout
33904 \begin_layout Plain Layout
33909 Boxes must not be the item in an
33925 \begin_layout Standard
33926 \begin_inset Note Greyedout
33929 \begin_layout Plain Layout
33934 For an unknown reason you can only set the
33937 \begin_inset space ~
33946 when you use a framed box.
33950 \begin_inset space ~
33955 type and without frames are explained in section
33956 \begin_inset space ~
33960 \begin_inset CommandInset ref
33962 reference "sec:Prevent-Hyphenation"
33974 \begin_layout Section
33976 \begin_inset CommandInset label
33978 name "sec:Box-Dialog"
33983 \begin_inset Index idx
33986 \begin_layout Plain Layout
33995 \begin_layout Subsection
33997 \begin_inset Index idx
34000 \begin_layout Plain Layout
34009 \begin_layout Standard
34010 In the box dialog you can adjust the box geometry in the fields
34019 The available units for the geometry are explained in Table
34020 \begin_inset space ~
34024 \begin_inset CommandInset ref
34026 reference "tab:Units"
34035 offers the following additional sizes:
34038 \begin_layout Description
34039 Depth This is the plain text
34040 \begin_inset Quotes eld
34044 \begin_inset Quotes erd
34048 It ignores the total depth when there are multiple text lines in the box:
34049 \begin_inset Newline newline
34053 \begin_inset Newline newline
34057 \begin_inset Newline newline
34061 \begin_inset Box Boxed
34071 height_special "depth"
34076 backgroundcolor "none"
34079 \begin_layout Plain Layout
34081 Box height set to 1
34082 \begin_inset space \thinspace{}
34091 \begin_inset Newline newline
34095 \begin_inset Newline newline
34101 \begin_layout Description
34102 Height This is the height of the text that is inside the box.
34104 \begin_inset space \thinspace{}
34108 \begin_inset space \space{}
34111 2 for this size will set the box height to 2
34112 \begin_inset space ~
34115 times the text height:
34116 \begin_inset Box Boxed
34126 height_special "height"
34131 backgroundcolor "none"
34134 \begin_layout Plain Layout
34136 Box height set to 2
34137 \begin_inset space \thinspace{}
34148 \begin_layout Description
34150 \begin_inset space ~
34153 Height This is the Height
34154 \begin_inset space \thinspace{}
34158 \begin_inset space \thinspace{}
34162 \begin_inset Box Boxed
34172 height_special "totalheight"
34177 backgroundcolor "none"
34180 \begin_layout Plain Layout
34182 Box height set to 1
34183 \begin_inset space \thinspace{}
34187 \begin_inset space ~
34198 \begin_layout Description
34199 Width This sets the width of the box as height:
34200 \begin_inset Box Boxed
34210 height_special "width"
34215 backgroundcolor "none"
34218 \begin_layout Plain Layout
34220 Box height set to 1
34221 \begin_inset space \thinspace{}
34232 \begin_layout Subsection
34234 \begin_inset Index idx
34237 \begin_layout Plain Layout
34246 \begin_layout Standard
34247 When you have chosen an
34250 \begin_inset space ~
34255 , the vertical box alignment can be:
34258 \begin_layout Description
34259 Top This is an example text line.
34261 \begin_inset Box Boxed
34271 height_special "totalheight"
34276 backgroundcolor "none"
34279 \begin_layout Plain Layout
34281 This box is top-aligned.
34286 This is an example text line.
34289 \begin_layout Description
34290 Middle This is an example text line.
34292 \begin_inset Box Boxed
34302 height_special "totalheight"
34307 backgroundcolor "none"
34310 \begin_layout Plain Layout
34312 This box is middle-aligned.
34317 This is an example text line.
34320 \begin_layout Description
34321 Bottom This is an example text line.
34323 \begin_inset Box Boxed
34333 height_special "totalheight"
34338 backgroundcolor "none"
34341 \begin_layout Plain Layout
34343 This box is bottom-aligned.
34348 This is an example text line.
34351 \begin_layout Standard
34352 \begin_inset Note Greyedout
34355 \begin_layout Plain Layout
34360 The vertical box alignment can be lost in the output when you have two
34361 boxes in a line and one has e.
34362 \begin_inset space \thinspace{}
34366 \begin_inset space \space{}
34369 a shadow and the other one not.
34377 \begin_layout Standard
34378 The horizontal box alignment can be set via \SpecialChar LyX
34379 's paragraph dialog when you
34380 set the box into its own paragraph.
34383 \begin_layout Standard
34384 \begin_inset VSpace bigskip
34387 When you have chosen an
34390 \begin_inset space ~
34395 , the box content can be aligned vertically to:
34398 \begin_layout Description
34399 top This is an example text line.
34401 \begin_inset Box Boxed
34411 height_special "totalheight"
34416 backgroundcolor "none"
34419 \begin_layout Plain Layout
34421 This box text is top-aligned.
34426 This is an example text line.
34429 \begin_layout Description
34430 middle This is an example text line.
34432 \begin_inset Box Boxed
34442 height_special "totalheight"
34447 backgroundcolor "none"
34450 \begin_layout Plain Layout
34452 This box text is middle-aligned.
34457 This is an example text line.
34460 \begin_layout Description
34461 bottom This is an example text line.
34463 \begin_inset Box Boxed
34473 height_special "totalheight"
34478 backgroundcolor "none"
34481 \begin_layout Plain Layout
34483 This box text is bottom-aligned.
34488 This is an example text line.
34491 \begin_layout Description
34492 stretch This is an example text line.
34494 \begin_inset Box Boxed
34504 height_special "totalheight"
34509 backgroundcolor "none"
34512 \begin_layout Plain Layout
34517 \begin_layout Plain Layout
34522 \begin_layout Plain Layout
34529 This is an example text line.
34532 \begin_layout Standard
34533 To stretch the box content, it must consist of more than one paragraph.
34534 In the example above every text line is in an own paragraph.
34537 \begin_layout Standard
34538 \begin_inset VSpace bigskip
34541 To align the box content horizontally you can use \SpecialChar LyX
34542 's paragraph dialog when
34546 \begin_inset space ~
34554 \begin_layout Standard
34556 \begin_inset Box Boxed
34566 height_special "totalheight"
34571 backgroundcolor "none"
34574 \begin_layout Plain Layout
34579 \begin_layout Plain Layout
34584 \begin_layout Plain Layout
34594 \begin_layout Standard
34595 If you have not set an
34598 \begin_inset space ~
34603 , you can align the box content horizontally in the box dialog.
34606 \begin_layout Standard
34608 \begin_inset Box Boxed
34618 height_special "totalheight"
34623 backgroundcolor "none"
34626 \begin_layout Plain Layout
34627 This box text is horizontally stretched.
34635 \begin_layout Subsection
34637 \begin_inset CommandInset label
34639 name "sec:Decoration"
34644 \begin_inset Index idx
34647 \begin_layout Plain Layout
34656 \begin_layout Standard
34657 The type of the box can be specified in the box dialog in the drop-down
34663 The following types are possible:
34666 \begin_layout Description
34668 \begin_inset space ~
34671 frame Nothing is drawn.
34674 \begin_layout Description
34676 \begin_inset space ~
34680 \begin_inset space ~
34683 frame This draws a rectangular frame around the box.
34684 The frame line thickness can be specified.
34686 \begin_inset Box Boxed
34696 height_special "totalheight"
34701 backgroundcolor "none"
34704 \begin_layout Plain Layout
34714 \begin_layout Description
34716 \begin_inset space ~
34720 \begin_inset space ~
34723 thin This draws an oval frame around the box.
34724 The frame line thickness has the size 0.4
34725 \begin_inset space \thinspace{}
34730 \begin_inset Box ovalbox
34740 height_special "totalheight"
34745 backgroundcolor "none"
34748 \begin_layout Plain Layout
34758 \begin_layout Description
34760 \begin_inset space ~
34764 \begin_inset space ~
34767 thick This draws an oval frame around the box.
34768 The frame line thickness has the size 0.8
34769 \begin_inset space \thinspace{}
34774 \begin_inset Box Ovalbox
34784 height_special "totalheight"
34789 backgroundcolor "none"
34792 \begin_layout Plain Layout
34802 \begin_layout Description
34804 \begin_inset space ~
34807 shadow This draws a rectangular frame with a shadow around the box.
34808 The frame line thickness and the shadow can be specified.
34810 \begin_inset Box Shadowbox
34820 height_special "totalheight"
34825 backgroundcolor "none"
34828 \begin_layout Plain Layout
34838 \begin_layout Description
34840 \begin_inset space ~
34843 background This draws a box with a red background.
34844 Unlike colored boxes
34848 \begin_layout Plain Layout
34850 \begin_inset space \thinspace{}
34854 \begin_inset CommandInset ref
34856 reference "sec:Colored-Boxes"
34865 , it always uses the whole column width and the box is set as its own paragraph.
34867 \begin_inset Box Shaded
34877 height_special "totalheight"
34882 backgroundcolor "none"
34885 \begin_layout Plain Layout
34886 Shaded background box
34894 \begin_layout Description
34896 \begin_inset space ~
34900 \begin_inset space ~
34903 frame This draws a double-line rectangular frame around the box.
34904 The line thickness of the inner frame is 0.75
34905 \begin_inset space \thinspace{}
34909 \begin_inset space ~
34912 thickness, the thickness of the outer frame is 1.5
34913 \begin_inset space \thinspace{}
34917 \begin_inset space ~
34921 The distance between the lines is 1.5
34922 \begin_inset space \thinspace{}
34926 \begin_inset space ~
34930 \begin_inset space \thinspace{}
34934 \begin_inset space \thinspace{}
34938 \begin_inset space \thinspace{}
34943 \begin_inset Box Doublebox
34953 height_special "totalheight"
34958 backgroundcolor "none"
34961 \begin_layout Plain Layout
34963 Double rectangular box
34971 \begin_layout Standard
34972 \begin_inset VSpace bigskip
34976 's box label will reflect the different frame types.
34977 To be able to use all types, the \SpecialChar LaTeX
34983 \begin_inset Index idx
34986 \begin_layout Plain Layout
34988 -packages ! fancybox
34996 \begin_layout Standard
34997 \begin_inset VSpace bigskip
35000 When you use the decoration
35002 simple rectangular frame
35004 and no inner box, you can allow page breaks within a box.
35005 Note that then, unlike other framed boxes, the frame always uses the whole
35006 column width and the box is set as its own paragraph:
35007 \begin_inset Box Framed
35017 height_special "totalheight"
35022 backgroundcolor "none"
35025 \begin_layout Plain Layout
35026 Allow page break box
35034 \begin_layout Section
35036 \begin_inset Index idx
35039 \begin_layout Plain Layout
35040 Boxes ! Customization
35048 \begin_layout Standard
35049 The diameter of the round corners of the oval boxes can be set with the
35060 \begin_layout Standard
35068 \begin_layout Standard
35069 sets the diameter to 1
35070 \begin_inset space \thinspace{}
35077 \begin_layout Standard
35085 \begin_layout Standard
35086 sets the diameter to
35089 \begin_inset space \thinspace{}
35093 \begin_inset space \thinspace{}
35096 minimum(width and height of box)
35108 \begin_layout Standard
35112 \begin_layout Plain Layout
35122 \begin_inset Box Ovalbox
35132 height_special "totalheight"
35137 backgroundcolor "none"
35140 \begin_layout Plain Layout
35149 \begin_inset space \thinspace{}
35153 \begin_inset space \thinspace{}
35157 \begin_inset space \thinspace{}
35169 \begin_layout Plain Layout
35181 \begin_layout Standard
35182 \begin_inset VSpace bigskip
35188 \begin_layout Standard
35189 The default background color red of
35193 boxes can either be changed locally with the command
35197 definecolor{shadecolor}
35199 or globally with the menu
35201 Tools\SpecialChar menuseparator
35202 Preferences\SpecialChar menuseparator
35203 Colors\SpecialChar menuseparator
35205 \begin_inset space ~
35217 command is explained in section
35218 \begin_inset space ~
35222 \begin_inset CommandInset ref
35224 reference "sec:Colored-Tables"
35232 \begin_layout Plain Layout
35239 requires the \SpecialChar LaTeX
35244 in the preamble, see section
35245 \begin_inset space ~
35249 \begin_inset CommandInset ref
35251 reference "sec:Colored-Boxes"
35260 For example the appearance of the following shaded background box is set
35261 with the \SpecialChar TeX
35265 \begin_layout Standard
35270 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35273 \begin_layout Standard
35277 \begin_layout Plain Layout
35281 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35287 \begin_inset Box Shaded
35297 height_special "totalheight"
35302 backgroundcolor "none"
35305 \begin_layout Plain Layout
35308 This is yellow text in a
35318 box with dark green background.
35327 \begin_layout Plain Layout
35331 definecolor{shadecolor}{rgb}{1,0,0}
35339 \begin_layout Standard
35340 \begin_inset VSpace bigskip
35343 Manually changed sizes and colors are valid for all boxes following the
35344 commands that change them.
35347 \begin_layout Section
35349 \begin_inset CommandInset label
35351 name "sec:Minipages"
35356 \begin_inset Index idx
35359 \begin_layout Plain Layout
35368 \begin_layout Standard
35369 Minipages are treated by \SpecialChar LaTeX
35370 as pages within pages and can therefore for example
35371 have their own footnotes.
35374 \begin_layout Standard
35375 Minipages are useful when you write documents with different languages.
35378 \begin_layout Standard
35379 Below are two example minipages side by side.
35380 Their width is set to 45
35381 \begin_inset space \thinspace{}
35384 col% and they are separated by a horizontal fill, that was inserted via
35387 Insert\SpecialChar menuseparator
35389 \begin_inset space ~
35392 Formatting\SpecialChar menuseparator
35394 \begin_inset space ~
35400 \begin_inset Newpage newpage
35406 \begin_layout Standard
35407 \begin_inset Box Frameless
35417 height_special "totalheight"
35422 backgroundcolor "none"
35425 \begin_layout Plain Layout
35428 Dies ist ein deutscher Text.
35429 Dies ist ein deutscher Text.
35430 Dies ist ein deutscher Text.
35431 Dies ist ein deutscher Text.
35432 Dies ist ein deutscher Text.
35433 Dies ist ein deutscher Text.
35434 Dies ist ein deutscher Text.
35435 Dies ist ein deutscher Text.
35436 Dies ist ein deutscher Text.
35437 Dies ist ein deutscher Text.
35438 Dies ist ein deutscher Text.
35439 Dies ist ein deutscher Text.
35440 Dies ist ein deutscher Text
35444 \begin_layout Plain Layout
35447 Dies ist eine deutsche Fußnote.
35453 Dies ist ein deutscher Text.
35454 Dies ist ein deutscher Text.
35460 \begin_inset space \hfill{}
35464 \begin_inset Box Frameless
35474 height_special "totalheight"
35479 backgroundcolor "none"
35482 \begin_layout Plain Layout
35483 This is an English Text.
35484 This is an English Text.
35485 This is an English Text.
35486 This is an English Text.
35487 This is an English Text.
35488 This is an English Text.
35489 This is an English Text.
35490 This is an English Text.
35491 This is an English Text.
35492 This is an English Text.
35493 This is an English Text.
35494 This is an English Text.
35495 This is an English Text.
35496 This is an English Text.
35497 This is an English Text.
35498 This is an English Text.
35502 \begin_layout Plain Layout
35503 This is an English footnote.
35508 This is an English Text.
35516 \begin_layout Standard
35517 \begin_inset VSpace bigskip
35520 The document-wide paragraph settings are ignored within minipages.
35521 That means that there will be no space between paragraphs in minipages
35522 although you set it to e.
35523 \begin_inset space \thinspace{}
35527 \begin_inset space \space{}
35534 in the document settings.
35537 \begin_layout Standard
35538 Minipages can also be used to set a background color for text parts, see
35540 \begin_inset space ~
35544 \begin_inset CommandInset ref
35546 reference "sec:Colored-Boxes"
35553 \begin_layout Standard
35554 \begin_inset Note Greyedout
35557 \begin_layout Plain Layout
35562 You cannot have floats or margin notes inside minipages but minipages can
35563 be used inside tables, floats, and other boxes.
35571 \begin_layout Standard
35572 \begin_inset VSpace bigskip
35578 \begin_layout Standard
35580 has also basic support for minipages whose size is automatically determined
35581 by the width of their contents, via the module
35583 Variable-width Minipages
35586 The \SpecialChar LyX
35589 varwidth-floats-side-by-side
35591 gives examples of variable-width minipages used for placing two floats
35595 \begin_layout Section
35597 \begin_inset CommandInset label
35599 name "sec:Parboxes"
35604 \begin_inset Index idx
35607 \begin_layout Plain Layout
35616 \begin_layout Standard
35617 Parboxes are very similar to minipages with the difference that they cannot
35621 \begin_layout Standard
35623 \begin_inset Box Frameless
35633 height_special "totalheight"
35638 backgroundcolor "none"
35641 \begin_layout Plain Layout
35642 This a text within a parbox.
35643 This a text within a parbox.
35646 \begin_layout Plain Layout
35647 This footnote won't appear:
35651 \begin_layout Plain Layout
35652 This footnote is inside a parbox and will therefore not appear.
35665 \begin_layout Section
35666 Boxes for Words and Characters
35667 \begin_inset Index idx
35670 \begin_layout Plain Layout
35671 Boxes ! for Characters
35679 \begin_layout Subsection
35680 Prevent Hyphenation
35681 \begin_inset CommandInset label
35683 name "sec:Prevent-Hyphenation"
35688 \begin_inset Index idx
35691 \begin_layout Plain Layout
35692 Boxes ! to Prevent Hyphenation
35700 \begin_layout Standard
35701 You can use the box type
35705 to prevent words or text from being hyphenated.
35706 \begin_inset Newline newline
35709 Here is an example text:
35712 \begin_layout Standard
35713 This line is an example to show how you can prevent the hyphenation of
35714 \begin_inset Quotes eld
35718 \begin_inset Quotes erd
35724 \begin_layout Standard
35725 To prevent the hyphenation of the word
35726 \begin_inset Quotes eld
35730 \begin_inset Quotes erd
35733 , put the word into a box, set the
35736 \begin_inset space ~
35745 and use no explicit width.
35748 \begin_layout Standard
35749 This is the result:
35752 \begin_layout Standard
35753 This line is an example to show how you can prevent the hyphenation of
35754 \begin_inset Box Frameless
35764 height_special "totalheight"
35769 backgroundcolor "none"
35772 \begin_layout Plain Layout
35773 \begin_inset Quotes eld
35777 \begin_inset Quotes erd
35788 \begin_layout Standard
35789 You can alternatively set the command
35790 \begin_inset Quotes eld
35800 \begin_inset Quotes grd
35803 as \SpecialChar TeX
35804 Code directly before the word:
35807 \begin_layout Standard
35808 This line is an example to show how you can prevent the hyphenation of
35809 \begin_inset Quotes eld
35816 \begin_layout Plain Layout
35826 \begin_inset Quotes erd
35832 \begin_layout Standard
35833 Of course the word now protrudes over the side margin.
35834 To avoid this, add via the menu
35836 Insert\SpecialChar menuseparator
35837 Formatting\SpecialChar menuseparator
35839 \begin_inset space ~
35843 \begin_inset space ~
35851 arg "newline-insert newline"
35854 ) a line break before the word:
35857 \begin_layout Standard
35858 This line is an example to show how you can prevent the hyphenation of
35859 \begin_inset Newline newline
35863 \begin_inset Box Frameless
35873 height_special "totalheight"
35878 backgroundcolor "none"
35881 \begin_layout Plain Layout
35882 \begin_inset Quotes eld
35886 \begin_inset Quotes erd
35897 \begin_layout Subsection
35899 \begin_inset CommandInset label
35901 name "subsec:Vertical-Alignment"
35906 \begin_inset Index idx
35909 \begin_layout Plain Layout
35910 Boxes ! for Vertical Alignment
35916 \begin_inset Index idx
35919 \begin_layout Plain Layout
35928 \begin_layout Standard
35929 With the help of the command
35935 you can align words, characters or other boxes vertically relative to the
35943 is used with the following scheme:
35946 \begin_layout Standard
35951 raisebox{lift}[height][depth]{box content}
35954 \begin_layout Standard
35955 The lift can be a positive value to raise the box or a negative value to
35959 \begin_layout Standard
35960 To align for example the word
35961 \begin_inset Quotes eld
35965 \begin_inset Quotes erd
35968 so that the bottom of the
35969 \begin_inset Quotes eld
35973 \begin_inset Quotes erd
35977 \begin_inset Quotes eld
35981 \begin_inset Quotes erd
35984 is at the baseline, insert the command
35987 \begin_layout Standard
35997 \begin_layout Standard
35998 in \SpecialChar TeX
35999 Code before the word.
36000 After the word insert a closing brace
36001 \begin_inset Quotes eld
36009 \begin_inset Quotes erd
36012 in \SpecialChar TeX
36014 \begin_inset Newline newline
36017 This is the result:
36020 \begin_layout Standard
36021 This is a text line with the word
36025 \begin_layout Plain Layout
36037 \begin_inset Quotes eld
36041 \begin_inset Quotes erd
36048 \begin_layout Plain Layout
36058 \begin_layout Standard
36059 \begin_inset VSpace bigskip
36062 When you raise or lower characters in a line, the line distance will be
36066 \begin_layout Standard
36067 This is a text line with the word
36071 \begin_layout Plain Layout
36083 \begin_inset Quotes eld
36087 \begin_inset Quotes erd
36094 \begin_layout Plain Layout
36102 \begin_inset Newline newline
36105 This is a text line with the word
36109 \begin_layout Plain Layout
36119 \begin_inset Quotes eld
36123 \begin_inset Quotes erd
36130 \begin_layout Plain Layout
36140 \begin_layout Standard
36141 If you want to prevent this for a certain reason, set the box height to
36146 \begin_layout Standard
36156 \begin_layout Standard
36157 This is a text line with the word
36161 \begin_layout Plain Layout
36173 \begin_inset Quotes eld
36177 \begin_inset Quotes erd
36184 \begin_layout Plain Layout
36192 \begin_inset Newline newline
36196 \begin_inset Newline newline
36199 This is a text line with the word
36203 \begin_layout Plain Layout
36207 raisebox{0.5cm}[0pt]{
36213 \begin_inset Quotes eld
36217 \begin_inset Quotes erd
36224 \begin_layout Plain Layout
36234 \begin_layout Section
36236 \begin_inset CommandInset label
36238 name "sec:Colored-Boxes"
36243 \begin_inset Index idx
36246 \begin_layout Plain Layout
36255 \begin_layout Standard
36256 To color the background of a box just select the color you like in the box
36258 This is for example a box with orange background:
36259 \begin_inset Box Frameless
36269 height_special "totalheight"
36274 backgroundcolor "orange"
36277 \begin_layout Plain Layout
36278 Box with orange background
36286 \begin_layout Standard
36287 If you use the decoration
36290 \begin_inset space ~
36294 \begin_inset space ~
36299 you can set a frame color.
36300 In this case you must also specify a background color (LyX sets white as
36302 Here is an example:
36303 \begin_inset Box Boxed
36313 height_special "totalheight"
36318 backgroundcolor "yellow"
36321 \begin_layout Plain Layout
36322 Box with teal frame color and yellow background color
36330 \begin_layout Standard
36331 \begin_inset VSpace bigskip
36334 Of course you can also have colored text inside a colored box:
36335 \begin_inset Newline newline
36339 \begin_inset Box Boxed
36349 height_special "totalheight"
36354 backgroundcolor "magenta"
36357 \begin_layout Plain Layout
36360 This is colored text within a colored, framed box
36368 \begin_layout Standard
36369 \begin_inset VSpace bigskip
36375 \begin_layout Standard
36376 If you need another color than the predefined ones, you can define your
36377 own color as described in section
36378 \begin_inset space ~
36382 \begin_inset CommandInset ref
36384 reference "sec:Colored-Tables"
36389 To use your own color you must typeset the box by using TeX code:
36392 \begin_layout Standard
36393 Colored boxes without frame are created with the command
36400 It has the following scheme:
36403 \begin_layout Standard
36408 colorbox{color}{box content}
36411 \begin_layout Standard
36412 The box content can also be a box and colored boxes can also be within other
36415 \begin_inset space \thinspace{}
36419 \begin_inset space \space{}
36422 a darkgreen background for a word, insert the command
36425 \begin_layout Standard
36430 colorbox{darkgreen}{
36433 \begin_layout Standard
36434 before the word in \SpecialChar TeX
36436 After the word insert a closing brace
36437 \begin_inset Quotes eld
36445 \begin_inset Quotes erd
36448 in \SpecialChar TeX
36450 \begin_inset Newline newline
36453 This is the result:
36456 \begin_layout Standard
36457 This is a line where the word
36461 \begin_layout Plain Layout
36465 colorbox{darkgreen}{
36471 \begin_inset Quotes eld
36475 \begin_inset Quotes erd
36482 \begin_layout Plain Layout
36489 has a darkgreen background.
36492 \begin_layout Standard
36493 Framed, colored boxes are created with the command
36500 It has the following scheme:
36503 \begin_layout Standard
36508 fcolorbox{frame color}{box color}{box content}
36511 \begin_layout Section
36512 Rotated and Scaled Boxes
36515 \begin_layout Standard
36516 To use the boxes described in this section, the module
36520 must be loaded in the document settings.
36523 \begin_layout Standard
36524 \begin_inset Note Greyedout
36527 \begin_layout Plain Layout
36532 Not all DVI viewers are able to display rotated or scaled material.
36540 \begin_layout Standard
36541 \begin_inset Note Greyedout
36544 \begin_layout Plain Layout
36549 Floats are not allowed inside a rotated or scaled box.
36557 \begin_layout Subsection
36559 \begin_inset Index idx
36562 \begin_layout Plain Layout
36569 \begin_inset Index idx
36572 \begin_layout Plain Layout
36581 \begin_layout Standard
36582 To rotate material, you can put it into a
36587 Such a box is inserted via the menu
36589 Insert\SpecialChar menuseparator
36590 Custom Insets\SpecialChar menuseparator
36596 \begin_layout Standard
36597 The rotation origin can be specified via the inset
36603 Insert\SpecialChar menuseparator
36611 The following positions are possible:
36631 (top), along with meaningful combinations of the four base positions.
36636 means that the rotation origin is at the top left corner of the box.
36637 When no rotation origin is specified, the position
36642 The rotation angle is a number that can be negative that specifies the
36644 The rotation direction is counterclockwise.
36647 \begin_layout Standard
36648 In the following example
36652 was inserted to the
36660 was inserted to the
36667 \begin_layout Standard
36669 \begin_inset Flex Rotatebox
36672 \begin_layout Plain Layout
36673 \begin_inset Argument 1
36676 \begin_layout Plain Layout
36683 \begin_inset Argument 2
36686 \begin_layout Plain Layout
36700 \begin_layout Standard
36701 The box content can also be another box or an inline formula:
36704 \begin_layout Standard
36706 \begin_inset Flex Rotatebox
36709 \begin_layout Plain Layout
36710 \begin_inset Argument 1
36713 \begin_layout Plain Layout
36720 \begin_inset Argument 2
36723 \begin_layout Plain Layout
36730 \begin_inset Box Doublebox
36740 height_special "totalheight"
36745 backgroundcolor "none"
36748 \begin_layout Plain Layout
36760 \begin_inset Flex Rotatebox
36763 \begin_layout Plain Layout
36764 \begin_inset Argument 1
36767 \begin_layout Plain Layout
36774 \begin_inset Argument 2
36777 \begin_layout Plain Layout
36784 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36795 \begin_layout Standard
36796 or an image or table:
36799 \begin_layout Standard
36801 \begin_inset Flex Rotatebox
36804 \begin_layout Plain Layout
36805 \begin_inset Argument 1
36808 \begin_layout Plain Layout
36815 \begin_inset Argument 2
36818 \begin_layout Plain Layout
36825 \begin_inset Graphics
36826 filename clipart/platypus.eps
36837 with a rotated image
36838 \begin_inset Flex Rotatebox
36841 \begin_layout Plain Layout
36842 \begin_inset Argument 2
36845 \begin_layout Plain Layout
36852 \begin_inset Tabular
36853 <lyxtabular version="3" rows="2" columns="2">
36854 <features tabularvalignment="middle">
36855 <column alignment="center" valignment="top">
36856 <column alignment="center" valignment="top">
36858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36861 \begin_layout Plain Layout
36867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36870 \begin_layout Plain Layout
36878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36881 \begin_layout Plain Layout
36887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36890 \begin_layout Plain Layout
36907 \begin_inset Index idx
36910 \begin_layout Plain Layout
36917 \begin_inset Index idx
36920 \begin_layout Plain Layout
36921 Table Customization ! Rotating
36929 \begin_layout Standard
36930 \begin_inset Note Greyedout
36933 \begin_layout Plain Layout
36942 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36944 errors when viewing/exporting the document.
36952 \begin_layout Subsection
36954 \begin_inset Index idx
36957 \begin_layout Plain Layout
36964 \begin_inset Index idx
36967 \begin_layout Plain Layout
36976 \begin_layout Standard
36977 To scale material put it into a
36982 Such a box is inserted via the menu
36984 Insert\SpecialChar menuseparator
36985 Custom Insets\SpecialChar menuseparator
36991 \begin_layout Standard
36996 inset has the mandatory inset
37000 and the optional inset
37004 (inserted via the menu
37006 Insert\SpecialChar menuseparator
37010 Input there the horizontal and vertical scale factor, respectively.
37015 inset is used, the horizontal factor will also be used as the vertical
37019 \begin_layout Standard
37020 To get for example the double text size, compared to the document text size,
37031 \begin_inset Flex Scalebox
37034 \begin_layout Plain Layout
37035 \begin_inset Argument 1
37038 \begin_layout Plain Layout
37052 \begin_layout Standard
37070 \begin_inset Flex Scalebox
37073 \begin_layout Plain Layout
37074 \begin_inset Argument 1
37077 \begin_layout Plain Layout
37084 \begin_inset Argument 2
37087 \begin_layout Plain Layout
37101 \begin_layout Standard
37102 If the scaling factor is negative, the box content will be mirrored.
37119 can be used to create mirror writing:
37120 \begin_inset Flex Scalebox
37123 \begin_layout Plain Layout
37124 \begin_inset Argument 1
37127 \begin_layout Plain Layout
37134 \begin_inset Argument 2
37137 \begin_layout Plain Layout
37151 \begin_layout Standard
37169 \begin_inset Flex Scalebox
37172 \begin_layout Plain Layout
37173 \begin_inset Argument 1
37176 \begin_layout Plain Layout
37183 \begin_inset Argument 2
37186 \begin_layout Plain Layout
37200 \begin_layout Standard
37207 Insert\SpecialChar menuseparator
37208 Custom Insets\SpecialChar menuseparator
37234 \begin_layout Standard
37235 \begin_inset Note Greyedout
37238 \begin_layout Plain Layout
37247 inset is empty or contains other characters than numbers you will get LaTeX
37248 errors when viewing/exporting the document.
37256 \begin_layout Standard
37257 \begin_inset VSpace bigskip
37266 Insert\SpecialChar menuseparator
37267 Custom Insets\SpecialChar menuseparator
37270 ) is used to scale the content to a defined width and height.
37275 inset has the mandatory inset
37279 and the optional inset
37283 (inserted via the menu
37285 Insert\SpecialChar menuseparator
37289 Input there the width and height, respectively, as value with a unit.
37291 \begin_inset CommandInset ref
37293 reference "tab:Units"
37297 lists the possible units.
37298 If there is an exclamation mark
37302 in of of the two insets, the size is set so that the aspect ratio of the
37303 box content is kept.
37308 inset is used an exclamation mark will internally be used for the height.
37311 \begin_layout Standard
37329 \begin_inset Flex Resizebox
37332 \begin_layout Plain Layout
37333 \begin_inset Argument 1
37336 \begin_layout Plain Layout
37343 \begin_inset Argument 2
37346 \begin_layout Plain Layout
37358 \begin_inset Newline newline
37382 \begin_inset Flex Resizebox
37385 \begin_layout Plain Layout
37386 \begin_inset Argument 1
37389 \begin_layout Plain Layout
37396 \begin_inset Argument 2
37399 \begin_layout Plain Layout
37413 \begin_layout Standard
37414 \begin_inset Note Greyedout
37417 \begin_layout Plain Layout
37426 inset is empty or contains an invalid unit you will get LaTeX errors when
37427 viewing/exporting the document.
37435 \begin_layout Standard
37436 \begin_inset VSpace bigskip
37442 \begin_layout Standard
37443 The boxes can be combined in any order.
37452 which is in turn inside a
37459 \begin_layout Standard
37462 \begin_inset Flex Rotatebox
37465 \begin_layout Plain Layout
37466 \begin_inset Argument 1
37469 \begin_layout Plain Layout
37476 \begin_inset Argument 2
37479 \begin_layout Plain Layout
37486 \begin_inset Flex Resizebox
37489 \begin_layout Plain Layout
37490 \begin_inset Argument 1
37493 \begin_layout Plain Layout
37500 \begin_inset Flex Reflectbox
37503 \begin_layout Plain Layout
37522 \begin_layout Standard
37524 Images, tables, and inline formulas are allowed as box content:
37527 \begin_layout Standard
37530 \begin_inset Flex Resizebox
37533 \begin_layout Plain Layout
37534 \begin_inset Argument 1
37537 \begin_layout Plain Layout
37544 \begin_inset Flex Reflectbox
37547 \begin_layout Plain Layout
37548 \begin_inset Graphics
37549 filename clipart/platypus.eps
37566 \begin_inset Flex Resizebox
37569 \begin_layout Plain Layout
37570 \begin_inset Argument 1
37573 \begin_layout Plain Layout
37580 \begin_inset Flex Reflectbox
37583 \begin_layout Plain Layout
37584 \begin_inset Tabular
37585 <lyxtabular version="3" rows="2" columns="2">
37586 <features tabularvalignment="middle">
37587 <column alignment="center" valignment="top">
37588 <column alignment="center" valignment="top">
37590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37593 \begin_layout Plain Layout
37599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37602 \begin_layout Plain Layout
37610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37613 \begin_layout Plain Layout
37619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37622 \begin_layout Plain Layout
37644 \begin_inset Flex Resizebox
37647 \begin_layout Plain Layout
37648 \begin_inset Argument 1
37651 \begin_layout Plain Layout
37658 \begin_inset Flex Reflectbox
37661 \begin_layout Plain Layout
37662 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37676 \begin_inset Index idx
37679 \begin_layout Plain Layout
37686 \begin_inset Index idx
37689 \begin_layout Plain Layout
37690 Table Customization ! Scaling
37698 \begin_layout Standard
37699 When the global formula style
37703 is used in the document
37707 \begin_layout Plain Layout
37709 \begin_inset Quotes eld
37713 \begin_inset Quotes erd
37716 is added to the document class options.
37721 , display style formulas can also be scaled.
37724 \begin_layout Chapter
37725 Objects Surrounded by Text
37726 \begin_inset Index idx
37729 \begin_layout Plain Layout
37738 \begin_layout Section
37740 \begin_inset CommandInset label
37742 name "sec:Wrap-Floats"
37747 \begin_inset Index idx
37750 \begin_layout Plain Layout
37751 Floats ! Wrap Floats
37757 \begin_inset Index idx
37760 \begin_layout Plain Layout
37761 Surrounded by text ! Wrap Floats
37769 \begin_layout Standard
37770 \begin_inset Wrap figure
37777 \begin_layout Plain Layout
37778 \begin_inset Graphics
37779 filename clipart/mobius.eps
37781 scaleBeforeRotation
37782 rotateOrigin center
37789 \begin_layout Plain Layout
37790 \begin_inset Caption Standard
37792 \begin_layout Plain Layout
37793 \begin_inset CommandInset label
37795 name "fig:This-is-a"
37799 This is a figure wrap float.
37809 This float type is used if you want to wrap text around a figure or table
37810 so that it only occupies some fraction of the column width.
37811 It can be inserted using the menu
37813 Insert\SpecialChar menuseparator
37814 Floats\SpecialChar menuseparator
37816 \begin_inset space ~
37820 \begin_inset space ~
37828 \begin_inset space ~
37832 \begin_inset space ~
37837 if the \SpecialChar LaTeX
37843 \begin_inset Index idx
37846 \begin_layout Plain Layout
37848 -packages ! wrapfig
37857 \begin_layout Plain Layout
37858 Installing a \SpecialChar LaTeX
37859 -package is explained it in the
37863 \begin_inset space ~
37873 The settings of the float can be modified by right-clicking on the float
37875 The mandatory settings are the float
37888 that specifies how much the float is set into the paragraph
37889 \begin_inset space \thinspace{}
37893 \begin_inset space \thinspace{}
37896 page margin, and the
37899 \begin_inset space ~
37904 that specifies how many text lines the float will approximately need.
37905 The line span is often hard to approximate; so it is better only to use
37906 it when you encounter float placement problems.
37907 You can furthermore decide if \SpecialChar LaTeX
37908 is allowed to let the float float within
37909 the paragraph or to surrounding paragraphs.
37911 \begin_inset space ~
37915 \begin_inset CommandInset ref
37917 reference "fig:This-is-a"
37921 is an example text wrap float with a width of 40
37922 \begin_inset space \thinspace{}
37926 \begin_inset space \thinspace{}
37929 cm overhang, set to the left.
37932 \begin_layout Standard
37933 \begin_inset Note Greyedout
37936 \begin_layout Plain Layout
37942 \begin_inset space ~
37945 wrap float floats are fragile! E.
37946 \begin_inset space \thinspace{}
37950 \begin_inset space \space{}
37953 having a figure too close to the bottom of the page can mess things up in
37954 such a way that the float does not appear in the output or that it is placed
37955 over some other text.
37963 \begin_layout Standard
37964 In general, the following applies for wrap floats:
37967 \begin_layout Itemize
37968 They should not be placed in paragraphs that run over a page break.
37969 That means that wrap floats are better inserted in their exact place when
37970 the document is almost finished and you are able to estimate where page
37971 breaks will appear.
37974 \begin_layout Itemize
37975 They should either be placed in their own paragraph before the paragraph
37976 where they should wrap into or within a paragraph.
37979 \begin_layout Itemize
37980 In consecutive paragraphs they may cause troubles, so ensure that there
37981 is a text paragraph between them as separator.
37984 \begin_layout Itemize
37985 They are not allowed in section headings or tables.
37988 \begin_layout Itemize
37989 Their numbering and referencing works as described in chap.
37990 \begin_inset space \thinspace{}
37994 \begin_inset CommandInset ref
37996 reference "chap:Floats"
38003 \begin_layout Section
38004 Surrounded Fixed Objects
38005 \begin_inset Index idx
38008 \begin_layout Plain Layout
38009 Surrounded by text ! Fixed objects
38017 \begin_layout Standard
38018 The wrap floats described in sec.
38019 \begin_inset space \thinspace{}
38023 \begin_inset CommandInset ref
38025 reference "sec:Wrap-Floats"
38029 have these positions in the paragraph:
38032 \begin_layout Standard
38035 \begin_inset Tabular
38036 <lyxtabular version="3" rows="2" columns="2">
38037 <features tabularvalignment="middle">
38038 <column alignment="center" valignment="top">
38039 <column alignment="center" valignment="top">
38041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38044 \begin_layout Plain Layout
38047 arg "dialog-show-new-inset graphics"
38055 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38058 \begin_layout Plain Layout
38066 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38069 \begin_layout Plain Layout
38075 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38078 \begin_layout Plain Layout
38090 \begin_inset Tabular
38091 <lyxtabular version="3" rows="2" columns="2">
38092 <features tabularvalignment="middle">
38093 <column alignment="center" valignment="top">
38094 <column alignment="center" valignment="top">
38096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38099 \begin_layout Plain Layout
38105 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38108 \begin_layout Plain Layout
38111 arg "dialog-show-new-inset graphics"
38121 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38124 \begin_layout Plain Layout
38130 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38133 \begin_layout Plain Layout
38147 \begin_layout Standard
38148 To get an object exactly at the position where it is inserted, for example
38149 to get one of these positions:
38150 \begin_inset VSpace defskip
38156 \begin_layout Standard
38159 \begin_inset Tabular
38160 <lyxtabular version="3" rows="2" columns="2">
38161 <features tabularvalignment="middle">
38162 <column alignment="center" valignment="top">
38163 <column alignment="center" valignment="top">
38165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38168 \begin_layout Plain Layout
38174 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38177 \begin_layout Plain Layout
38185 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38188 \begin_layout Plain Layout
38191 arg "dialog-show-new-inset graphics"
38199 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38202 \begin_layout Plain Layout
38214 \begin_inset Tabular
38215 <lyxtabular version="3" rows="2" columns="2">
38216 <features tabularvalignment="middle">
38217 <column alignment="center" valignment="top">
38218 <column alignment="center" valignment="top">
38220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38223 \begin_layout Plain Layout
38229 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38232 \begin_layout Plain Layout
38240 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38243 \begin_layout Plain Layout
38249 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38252 \begin_layout Plain Layout
38255 arg "dialog-show-new-inset graphics"
38269 \begin_inset Tabular
38270 <lyxtabular version="3" rows="2" columns="3">
38271 <features tabularvalignment="middle">
38272 <column alignment="center" valignment="top">
38273 <column alignment="center" valignment="top">
38274 <column alignment="center" valignment="top">
38276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38279 \begin_layout Plain Layout
38285 <cell alignment="center" valignment="top" topline="true" usebox="none">
38288 \begin_layout Plain Layout
38291 arg "dialog-show-new-inset graphics"
38299 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38302 \begin_layout Plain Layout
38310 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38313 \begin_layout Plain Layout
38319 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38322 \begin_layout Plain Layout
38328 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38331 \begin_layout Plain Layout
38343 \begin_inset Tabular
38344 <lyxtabular version="3" rows="2" columns="3">
38345 <features tabularvalignment="middle">
38346 <column alignment="center" valignment="top">
38347 <column alignment="center" valignment="top">
38348 <column alignment="center" valignment="top">
38350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38353 \begin_layout Plain Layout
38359 <cell alignment="center" valignment="top" topline="true" usebox="none">
38362 \begin_layout Plain Layout
38368 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38371 \begin_layout Plain Layout
38379 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38382 \begin_layout Plain Layout
38388 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38391 \begin_layout Plain Layout
38394 arg "dialog-show-new-inset graphics"
38402 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38405 \begin_layout Plain Layout
38419 \begin_layout Standard
38422 \begin_inset Tabular
38423 <lyxtabular version="3" rows="3" columns="2">
38424 <features tabularvalignment="middle">
38425 <column alignment="center" valignment="top">
38426 <column alignment="center" valignment="top">
38428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38431 \begin_layout Plain Layout
38437 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38440 \begin_layout Plain Layout
38448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38451 \begin_layout Plain Layout
38454 arg "dialog-show-new-inset graphics"
38462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38465 \begin_layout Plain Layout
38473 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38476 \begin_layout Plain Layout
38482 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38485 \begin_layout Plain Layout
38497 \begin_inset Tabular
38498 <lyxtabular version="3" rows="3" columns="3">
38499 <features tabularvalignment="middle">
38500 <column alignment="center" valignment="top">
38501 <column alignment="center" valignment="top">
38502 <column alignment="center" valignment="top">
38504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38507 \begin_layout Plain Layout
38513 <cell alignment="center" valignment="top" topline="true" usebox="none">
38516 \begin_layout Plain Layout
38522 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38525 \begin_layout Plain Layout
38533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38536 \begin_layout Plain Layout
38542 <cell alignment="center" valignment="top" usebox="none">
38545 \begin_layout Plain Layout
38548 arg "dialog-show-new-inset graphics"
38556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38559 \begin_layout Plain Layout
38567 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38570 \begin_layout Plain Layout
38576 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38579 \begin_layout Plain Layout
38585 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38588 \begin_layout Plain Layout
38600 \begin_inset Tabular
38601 <lyxtabular version="3" rows="3" columns="2">
38602 <features tabularvalignment="middle">
38603 <column alignment="center" valignment="top">
38604 <column alignment="center" valignment="top">
38606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38609 \begin_layout Plain Layout
38615 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38618 \begin_layout Plain Layout
38626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38629 \begin_layout Plain Layout
38635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38638 \begin_layout Plain Layout
38641 arg "dialog-show-new-inset graphics"
38651 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38654 \begin_layout Plain Layout
38660 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38663 \begin_layout Plain Layout
38677 \begin_layout Standard
38679 you can use the \SpecialChar LaTeX
38685 \begin_inset Index idx
38688 \begin_layout Plain Layout
38690 -packages ! picinpar
38696 Here is an example:
38699 \begin_layout Standard
38703 \begin_layout Plain Layout
38713 \begin_inset Note Note
38716 \begin_layout Plain Layout
38717 The following section will only be displayed when the \SpecialChar LaTeX
38730 \begin_layout Standard
38734 \begin_layout Plain Layout
38738 begin{window}[2,c,{
38744 \begin_inset Graphics
38745 filename clipart/mobius.eps
38748 scaleBeforeRotation
38749 rotateOrigin center
38757 \begin_layout Plain Layout
38762 \begin_layout Plain Layout
38771 It was in the spring of the year 1894 that all London was interested, and
38772 the fashionable world dismayed, by the murder of the Honourable Ronald
38773 Adair under most unusual and inexplicable circumstances.
38774 The public has already learned those particulars of the crime which
38780 \begin_layout Plain Layout
38791 came out in the police investigation, but a good deal was suppressed upon
38792 that occasion, since the case for the prosecution was so overwhelmingly
38793 strong that it was not necessary to bring forward all the facts.
38794 Only now, at the end of nearly ten years, am I allowed to supply those
38795 missing links which make up the whole of that remarkable chain.
38801 \begin_layout Plain Layout
38813 \begin_layout Standard
38817 \begin_layout Plain Layout
38826 Footnote of the paragraph with the fixed object.
38830 \begin_layout Plain Layout
38840 \begin_layout Standard
38841 Surrounded fixed objects are used to let text float around them, at which
38842 the object's position in the paragraph can be determined by the number
38844 In contrary to floats is it not possible to have a numbered caption.
38847 \begin_layout Standard
38848 A fixed object is inserted by adding the command
38851 \begin_layout Standard
38856 begin{window}[2,c,{
38859 \begin_layout Standard
38860 as \SpecialChar TeX
38861 Code at the beginning of the paragraph.
38862 The first parameter in the bracket, here '2', defines the number of lines
38863 above the object, the second, here 'c', the position of the object.
38864 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38865 Behind the command you insert the object.
38866 In this example an image with a width of 40
38867 \begin_inset space \thinspace{}
38870 % of the text column width was inserted.
38871 The object can also be a table, a box or an equation.
38872 Behind the object the command
38875 \begin_layout Standard
38878 },description text]
38879 \begin_inset Newline newline
38885 \begin_layout Standard
38888 \begin_inset Quotes eld
38896 \begin_inset Quotes erd
38899 is in the second line.
38900 The description text is optional.
38901 The text surrounding the object must be in the same paragraph as the object,
38902 so it must begin directly after the
38907 At the end of the paragraph insert the command:
38910 \begin_layout Standard
38918 \begin_layout Standard
38919 Within a paragraph with a fixed object, you cannot insert footnotes in the
38921 You have to use instead the command
38927 inside the paragraph and outside the command
38933 as described in sec.
38934 \begin_inset space \thinspace{}
38938 \begin_inset CommandInset ref
38940 reference "sec:Footnotes"
38947 \begin_layout Standard
38951 \begin_layout Plain Layout
38961 \begin_inset Note Note
38964 \begin_layout Plain Layout
38965 The following will be displayed when the \SpecialChar LaTeX
38978 \begin_layout Standard
38979 You need to install the \SpecialChar LaTeX
38984 to see the following part of this section in the output.
38987 \begin_layout Standard
38991 \begin_layout Plain Layout
39003 \begin_layout Section
39005 \begin_inset Index idx
39008 \begin_layout Plain Layout
39015 \begin_inset Index idx
39018 \begin_layout Plain Layout
39019 Surrounded by text ! Initials
39027 \begin_layout Standard
39028 To use initials, you must have the \SpecialChar LaTeX
39034 \begin_inset Index idx
39037 \begin_layout Plain Layout
39039 -packages ! lettrine
39044 installed and use the module
39048 in your document (menu
39050 Document\SpecialChar menuseparator
39051 Settings\SpecialChar menuseparator
39055 To insert an initial, use the style
39060 This style has a mandatory and two optional arguments.
39061 The arguments are inserted via the
39066 The mandatory argument
39070 contains the letter(s) that is the initial, the argument
39073 \begin_inset space ~
39077 \begin_inset space ~
39082 contains the rest of the word or text of the initial letter(s).
39087 contains parameters to modify the initial.
39088 For more information about the possible parameters see the documentation
39094 \begin_inset CommandInset citation
39102 The style itself contains the text that is surrounding the initial.
39103 The usual style is hereby that the word whose first letter is the initial,
39111 \begin_layout Standard
39112 Here are some examples:
39115 \begin_layout Standard
39119 \begin_layout Plain Layout
39129 \begin_inset Note Note
39132 \begin_layout Plain Layout
39133 The following section will only be displayed when the \SpecialChar LaTeX
39146 \begin_layout Enumerate
39147 No optional argument, the initial is the letter 'I' in the math font
39148 \begin_inset Formula $\mathfrak{Fraktur}$
39155 \begin_layout Initial
39156 \begin_inset Argument 2
39159 \begin_layout Plain Layout
39160 \begin_inset Formula $\mathfrak{I}$
39169 \begin_inset Argument 3
39172 \begin_layout Plain Layout
39178 was in the spring of the year 1894 that all London was interested, and
39179 the fashionable world dismayed, by the murder of the Honourable Ronald
39180 Adair under most unusual and inexplicable circumstances.
39181 The public has already learned those particulars of the crime which came
39182 out in the police investigation, but a good deal was suppressed upon that
39183 occasion, since the case for the prosecution was so overwhelmingly strong
39184 that it was not necessary to bring forward all the facts.
39185 \begin_inset Newpage newpage
39192 \begin_layout Enumerate
39193 Only one line is surrounding the initial, which is formed by two letters
39194 in standard font and no text is printed in small caps:
39198 \begin_layout Initial
39199 \begin_inset Argument 1
39202 \begin_layout Plain Layout
39209 \begin_inset Argument 2
39212 \begin_layout Plain Layout
39218 was in the spring of the year 1894 that all London was interested, and
39219 the fashionable world dismayed, by the murder of the Honourable Ronald
39220 Adair under most unusual and inexplicable circumstances.
39221 The public has already learned those particulars of the crime which came
39222 out in the police investigation, but a good deal was suppressed upon that
39223 occasion, since the case for the prosecution was so overwhelmingly strong
39224 that it was not necessary to bring forward all the facts.
39228 \begin_layout Enumerate
39229 Magenta, hanging initial over 3
39230 \begin_inset space ~
39233 lines in the math font
39234 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39238 \begin_inset Quotes eld
39241 t was in the spring
39242 \begin_inset Quotes erd
39249 ; to color the initial, you must insert this command before the initial:
39250 \begin_inset Newline newline
39264 \begin_inset Newline newline
39272 \begin_inset Quotes eld
39276 \begin_inset Quotes erd
39280 \begin_inset Quotes eld
39284 \begin_inset Quotes erd
39288 \begin_inset Quotes eld
39292 \begin_inset Quotes erd
39296 \begin_inset Quotes eld
39300 \begin_inset Quotes erd
39304 \begin_inset Quotes eld
39308 \begin_inset Quotes erd
39312 \begin_inset Quotes eld
39316 \begin_inset Quotes erd
39320 \begin_inset Quotes eld
39324 \begin_inset Quotes erd
39328 \begin_inset Quotes eld
39332 \begin_inset Quotes erd
39335 , and add this command to the document preamble:
39336 \begin_inset Newline newline
39343 @ifundefined{textcolor}
39344 \begin_inset Newline newline
39348 \begin_inset space ~
39353 usepackage{color}}{}
39357 \begin_layout Standard
39361 \begin_layout Plain Layout
39375 \begin_inset Note Note
39378 \begin_layout Plain Layout
39379 makes the initial magenta
39387 \begin_layout Initial
39388 \begin_inset Argument 1
39391 \begin_layout Plain Layout
39392 lines=3, lhang=0.33, loversize=0.25
39398 \begin_inset Argument 2
39401 \begin_layout Plain Layout
39402 \begin_inset Formula $\mathcal{I}$
39411 \begin_inset Argument 3
39414 \begin_layout Plain Layout
39415 t was in the spring
39420 of the year 1894 that all London was interested, and the fashionable world
39421 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39422 and inexplicable circumstances.
39423 The public has already learned those particulars of the crime which came
39424 out in the police investigation, but a good deal was suppressed upon that
39425 occasion, since the case for the prosecution was so overwhelmingly strong
39426 that it was not necessary to bring forward all the facts.
39430 \begin_layout Standard
39434 \begin_layout Plain Layout
39444 \begin_inset Note Note
39447 \begin_layout Plain Layout
39448 The following will be displayed when the \SpecialChar LaTeX
39461 \begin_layout Standard
39462 You need to install the \SpecialChar LaTeX
39467 to see the following part of this section in the output.
39470 \begin_layout Standard
39474 \begin_layout Plain Layout
39486 \begin_layout Chapter
39487 External Document Parts
39488 \begin_inset Index idx
39491 \begin_layout Plain Layout
39492 External Document Parts
39500 \begin_layout Standard
39503 Insert\SpecialChar menuseparator
39506 you can insert external material into your document.
39510 \begin_layout Description
39512 \begin_inset space ~
39515 Document Another \SpecialChar LyX
39516 document; its content is directly inserted to your document.
39519 \begin_layout Description
39521 \begin_inset space ~
39524 Text A text document; each line is inserted in your document as a separate
39528 \begin_layout Description
39530 \begin_inset space ~
39534 \begin_inset space ~
39538 \begin_inset space ~
39541 Lines A text document; text lines are inserted in your document continuously
39542 but an empty text line creates a new paragraph.
39545 \begin_layout Description
39547 \begin_inset space ~
39550 Material Files in various formats.
39553 \begin_layout Description
39555 \begin_inset space ~
39558 Document \SpecialChar LyX
39559 or \SpecialChar LaTeX
39563 \begin_layout Section
39565 \begin_inset Index idx
39568 \begin_layout Plain Layout
39569 External Document Parts ! External Material
39577 \begin_layout Standard
39578 The external material feature allows you to insert files into your document
39579 without converting them to a format that can be read by the document output
39582 takes care of the necessary conversions.
39583 This is similar to images that can be inserted in various image formats
39584 in \SpecialChar LyX
39586 When you have enabled Instant Preview in \SpecialChar LyX
39587 's preferences under
39590 \begin_inset space ~
39594 \begin_inset space ~
39597 feel\SpecialChar menuseparator
39600 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39604 \begin_layout Standard
39605 External material can be inserted via the
39609 dialog that is accessible with the menu
39611 Insert\SpecialChar menuseparator
39612 File\SpecialChar menuseparator
39614 \begin_inset space ~
39620 Currently the following file types (
39627 \begin_layout Description
39629 \begin_inset space ~
39632 diagram This template supports chess position diagrams made with the program
39636 \begin_inset CommandInset href
39639 target "http://en.wikipedia.org/wiki/XBoard"
39649 \begin_layout Description
39651 \begin_inset space ~
39654 diagram This template supports diagrams created with the program
39657 \begin_inset CommandInset href
39660 target "http://en.wikipedia.org/wiki/Dia_(software)"
39670 \begin_layout Description
39671 Spreadsheet With this template you can insert spreadsheets
39672 \begin_inset space \thinspace{}
39676 \begin_inset space \thinspace{}
39679 tables in the format of
39682 \begin_inset CommandInset href
39685 target "http://en.wikipedia.org/wiki/Gnumeric"
39693 \begin_inset CommandInset href
39695 name "OpenDocument"
39696 target "http://en.wikipedia.org/wiki/OpenDocument"
39702 \begin_inset CommandInset href
39704 name "Microsoft Office XML"
39705 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39711 \begin_inset CommandInset href
39713 name "Office Open XML"
39714 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39720 For this feature \SpecialChar LyX
39721 must have found the program
39725 during its configuration.
39726 This program is part of Gnumeric, so that you must have Gnumeric installed,
39727 also if you don't have tables in the Gnumeric format.
39728 For examples and possible limitations have a look at \SpecialChar LyX
39736 \begin_layout Description
39738 \begin_inset space ~
39742 \begin_inset space ~
39745 music This template is used for music notation typeset with the program
39746 \begin_inset Newline linebreak
39752 \begin_inset CommandInset href
39755 target "http://en.wikipedia.org/wiki/LilyPond"
39763 For \SpecialChar LyX
39764 's extended support for LilyPond have a look at \SpecialChar LyX
39772 \begin_layout Description
39774 \begin_inset space ~
39777 pages With this template you can insert PDF documents to your document.
39778 To specify the range of pages that should be included, use the option
39788 LaTeX and LyX options
39791 The argument of this option is a comma separated list, containing page
39792 numbers (insert as option
39796 ), ranges of page numbers (
39800 ) or any combination.
39801 To insert empty pages use {}.
39803 \begin_inset space \thinspace{}
39807 \begin_inset space ~
39812 pages={3,{},8-11,15}
39814 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39815 Page ranges are specified in the syntax
39824 This selects all pages from
39837 defaults to the first page; omitting
39841 defaults to the last page of the document.
39842 The last page can also be selected with the keyword
39847 (This is only permitted in a page range.) So
39851 will insert all pages of the document and
39855 will insert all pages in reverse order.
39856 If the pages option is not specified, only the first page of the PDF is
39858 \begin_inset Newline newline
39865 inserts the pages with their original size, if this option is not given,
39866 the pages will be resized to fith the width of the page of your document.
39871 you can specify the width and height of the input pages and their rotation.
39872 If another width than 100
39873 \begin_inset space \thinspace{}
39876 Scale% is used, the option
39880 will be overwritten.
39881 For more info and possible options, have a look into the documentation
39882 of the \SpecialChar LaTeX
39888 \begin_inset CommandInset citation
39896 \begin_inset Index idx
39899 \begin_layout Plain Layout
39901 -packages ! pdfpages
39907 \begin_inset Newline newline
39910 To use this template in a
39914 presentation you need to first insert an
39918 environment and in a subsequent paragraph a \SpecialChar TeX
39919 Code box containing the command
39924 setbeamertemplate{background canvas}{}
39927 Then you can insert as many paragraphs containing the PDFPages template
39929 Behind the included PDF pages you can resume the Beamer presentation by
39930 beginning a new frame or by starting a new section.
39931 To avoid stray blank pages prior to the PDF pages, make sure to use the
39936 alignment for the paragraph containing the template.
39937 \begin_inset Newline newline
39940 Here is an included PDF which is rotated by -5°:
39941 \begin_inset External
39943 filename clipart/Abstract.pdf
39944 extra LaTeX "noautoscale, pages=-"
39946 rotateOrigin bottomleft
39953 \begin_layout Description
39955 \begin_inset space ~
39958 image This can be used for bitmap images.
39959 The image can be treated in the
39963 dialog like the images that are usually included via the
39967 dialog as described in section
39968 \begin_inset space ~
39972 \begin_inset CommandInset ref
39974 reference "sec:Graphics-Dialog"
39979 Here is an inserted raster image:
39980 \begin_inset External
39981 template RasterImage
39982 filename clipart/ToolbarEnvBox.png
39989 \begin_layout Description
39991 \begin_inset space ~
39994 graphics This can be used for vector graphics.
39995 The image can be treated in the
39999 dialog like the images that are usually included via the
40003 dialog as described in section
40004 \begin_inset space ~
40008 \begin_inset CommandInset ref
40010 reference "sec:Graphics-Dialog"
40015 Here is an inserted vector graphics:
40016 \begin_inset External
40017 template VectorGraphics
40018 filename clipart/SVG-Drawing.svg
40027 \begin_layout Description
40029 \begin_inset space ~
40032 figure This template supports images created with the program
40033 \begin_inset CommandInset href
40036 target "http://en.wikipedia.org/wiki/Xfig"
40044 \begin_layout Description
40046 \begin_inset space ~
40049 figure This experimental template supports vector graphics (SVG) images
40050 that contain text written in \SpecialChar LaTeX
40052 It relies on the option
40054 Omit text in PDF and create LaTeX file
40056 when saving a drawing as PDF with the program
40061 \begin_inset CommandInset citation
40069 This allows to include SVG documents in which \SpecialChar LaTeX
40070 will typeset the text.
40071 The benefit of such SVGs is a uniform text style throughout the whole document.
40072 \begin_inset Newline newline
40075 One can use \SpecialChar TeX
40089 \begin_inset space \space{}
40092 in the text of the SVG.
40093 The size of the font will be taken from the settings of the \SpecialChar LyX
40096 \begin_inset CommandInset citation
40103 for more information and examples.
40104 \begin_inset Newline newline
40107 Note that while the image text takes into account the surrounding font,
40108 its preview in \SpecialChar LyX
40110 Wrapping the external inset in a preview inset (menu
40112 Insert\SpecialChar menuseparator
40115 ) gives a better result.
40116 \begin_inset Newline newline
40119 The template works very similarly to Xfig support.
40121 will extract the text in the image into a separate \SpecialChar TeX
40123 PDF file for the rest.
40126 \begin_layout Standard
40127 \begin_inset Float table
40133 \begin_layout Plain Layout
40134 \begin_inset Caption Standard
40136 \begin_layout Plain Layout
40137 \begin_inset CommandInset label
40139 name "tab:Comparison-of-the"
40143 Comparison of the date input methods.
40151 \begin_layout Plain Layout
40153 \begin_inset Tabular
40154 <lyxtabular version="3" rows="4" columns="3">
40155 <features tabularvalignment="middle">
40156 <column alignment="center" valignment="top">
40157 <column alignment="center" valignment="top">
40158 <column alignment="center" valignment="top">
40160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40163 \begin_layout Plain Layout
40169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40172 \begin_layout Plain Layout
40175 Insert\SpecialChar menuseparator
40181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40184 \begin_layout Plain Layout
40196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40199 \begin_layout Plain Layout
40206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40209 \begin_layout Plain Layout
40215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40218 \begin_layout Plain Layout
40219 as \SpecialChar TeX
40227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40230 \begin_layout Plain Layout
40237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40240 \begin_layout Plain Layout
40246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40249 \begin_layout Plain Layout
40257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40260 \begin_layout Plain Layout
40266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40269 \begin_layout Plain Layout
40275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40278 \begin_layout Plain Layout
40297 \begin_layout Standard
40298 When you use the option
40310 dialog, only the path to the inserted file is shown in the output.
40311 \begin_inset Newline newline
40314 External material is displayed in \SpecialChar LyX
40315 either as a box like this:
40316 \begin_inset Graphics
40317 filename clipart/ExternalMaterial.png
40319 scaleBeforeRotation
40323 or as image, depending on the option
40329 LaTeX and LyX options
40334 \begin_layout Standard
40341 manual explains how you can define your own templates.
40344 \begin_layout Section
40346 \begin_inset CommandInset label
40348 name "sec:Child-Documents"
40353 \begin_inset Index idx
40356 \begin_layout Plain Layout
40357 External Document Parts ! Child Documents
40363 \begin_inset Index idx
40366 \begin_layout Plain Layout
40375 \begin_layout Standard
40376 Child documents are used if you have a long document consisting of several
40377 larger parts or sections.
40378 For maintenance it is often useful and sometimes even required to split
40379 the document into several files that can be revised separately.
40380 The different documents are then the so called
40381 \begin_inset Quotes eld
40385 \begin_inset Quotes erd
40388 , and a master document connects them to print the full document or parts
40390 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40392 the bibliography, and labels for cross-references.
40395 \begin_layout Standard
40396 To be able to work on child documents without the need to open their master,
40397 specify in the child document the master in the menu
40399 Document\SpecialChar menuseparator
40400 Settings\SpecialChar menuseparator
40402 \begin_inset space ~
40408 This master document will then be used in the background by \SpecialChar LyX
40410 the child document.
40413 \begin_layout Standard
40414 Included documents are displayed in \SpecialChar LyX
40415 as a box like this:
40416 \begin_inset Graphics
40417 filename clipart/ChildDocument.png
40419 scaleBeforeRotation
40423 To include child documents in a master document use the menu
40425 Insert\SpecialChar menuseparator
40426 File\SpecialChar menuseparator
40428 \begin_inset space ~
40434 A dialog pops up where you can choose between four include methods:
40437 \begin_layout Description
40438 Include You can include \SpecialChar LyX
40439 and \SpecialChar LaTeX
40449 dialog, the included document will be opened in \SpecialChar LyX
40450 in a new file tab so that
40452 \begin_inset Newline newline
40458 \begin_layout Standard
40459 Here is a child document inserted using
40464 \begin_inset CommandInset include
40465 LatexCommand include
40466 filename "DummyDocument1.lyx"
40473 \begin_layout Standard
40474 The section numbering includes the sections of the included files in the
40475 order they are inserted in the master document.
40476 The included example document has for example a subsection that is numbered
40477 as a subsection of this section.
40478 Labels of included documents can be referenced: Subsection
40479 \begin_inset space ~
40483 \begin_inset CommandInset ref
40485 reference "subsec:External-Subsection-1"
40492 \begin_layout Standard
40493 The preamble of the child document is ignored; only the preamble of the
40494 master document is used.
40495 Branches in child documents will be ignored by the master document when
40496 the master document does not have a branch with the same name.
40497 Included documents are inserted starting on a new page and ending with
40501 \begin_layout Standard
40502 \begin_inset Note Greyedout
40505 \begin_layout Plain Layout
40510 If you have included a \SpecialChar LyX
40511 or \SpecialChar LaTeX
40512 file, you are warned when you export/view the
40513 document in case the child document uses another document class than the
40514 master document as this will lead to unexpected outputs.
40522 \begin_layout Description
40523 Input This method is very similar to the Include method.
40524 The differences are:
40528 \begin_layout Itemize
40529 Input files don't start with a new page and don't end with a page break.
40532 \begin_layout Itemize
40533 Input files can be previewed in \SpecialChar LyX
40537 \begin_inset space ~
40542 is enabled in \SpecialChar LyX
40543 's preferences under
40546 \begin_inset space ~
40550 \begin_inset space ~
40553 feel\SpecialChar menuseparator
40559 \begin_layout Itemize
40560 You cannot exclude Input files via the menu
40562 Document\SpecialChar menuseparator
40563 Settings\SpecialChar menuseparator
40570 \begin_layout Standard
40571 Here is a child document inserted using
40576 \begin_inset CommandInset include
40578 filename "DummyDocument2.lyx"
40585 \begin_layout Description
40586 Verbatim With this method any text file can be included.
40587 The file is shown in the output with its source code; no command used in
40588 the text is invoked.
40589 You can use the option
40591 Mark spaces in output
40593 that displays the character
40594 \begin_inset Quotes eld
40601 \begin_layout Plain Layout
40611 \begin_inset Quotes erd
40614 for every space character in the source code.
40615 The difference from the method via the menu
40617 Insert\SpecialChar menuseparator
40618 File\SpecialChar menuseparator
40620 \begin_inset space ~
40625 is that the document content is not shown in \SpecialChar LyX
40629 \begin_layout Standard
40630 Here is a child document inserted as Verbatim:
40631 \begin_inset CommandInset include
40632 LatexCommand verbatiminput
40633 filename "DummyTextDocument.txt"
40638 \begin_inset VSpace bigskip
40641 Here is a child document inserted as Verbatim using the
40643 Mark spaces in output
40646 \begin_inset CommandInset include
40647 LatexCommand verbatiminput*
40648 filename "DummyTextDocument.txt"
40655 \begin_layout Standard
40656 \begin_inset VSpace bigskip
40662 \begin_layout Standard
40663 \begin_inset Note Greyedout
40666 \begin_layout Plain Layout
40671 As you can see in the examples above, the text of the documents included
40676 is not broken at the end of the document lines.
40684 \begin_layout Description
40685 Listings This type is described in chapter
40686 \begin_inset space ~
40690 \begin_inset CommandInset ref
40692 reference "cha:Program-Code-Listings"
40699 \begin_layout Standard
40700 \begin_inset Note Greyedout
40703 \begin_layout Plain Layout
40708 Including the same document twice in a document using different methods
40709 could cause \SpecialChar LaTeX
40718 \begin_layout Standard
40719 If you want to view/export only selected children of your master document,
40720 either because you want to save compiling time or because you want to distribut
40721 e single chapters of the book you are just writing, you can exclude children
40723 This is done via the menu
40725 Document\SpecialChar menuseparator
40726 Settings\SpecialChar menuseparator
40730 You can exclude\SpecialChar breakableslash
40731 include children by double-clicking on the
40735 column of the respective child document in the list (note that this only
40736 works for documents embedded via
40737 \begin_inset Quotes eld
40741 \begin_inset Quotes erd
40745 \begin_inset Quotes eld
40749 \begin_inset Quotes erd
40755 Maintain counters and references
40757 is enabled, \SpecialChar LyX
40758 will assure that all page numbers, references etc.
40759 \begin_inset space ~
40762 are correct as if the whole document was processed.
40763 This is useful if you want the selected sub-documents to look exactly as
40764 in the context of the whole document.
40765 However, \SpecialChar LyX
40766 needs to process the whole document in the background for this
40768 So if you want to save compile time and if counters and references do not
40769 need to be correct, disable this checkbox.
40772 \begin_layout Standard
40773 Alternatively, you can put each included file into a branch.
40777 \begin_layout Plain Layout
40778 Branches are described in section
40782 of the \SpecialChar LyX
40792 By enabling\SpecialChar breakableslash
40793 disabling branches you can decide which included files will
40794 appear in the output.
40795 This has the advantage that it also works with Input'ed sub-documents.
40796 However, counters and references will not be maintained with this approach.
40799 \begin_layout Chapter
40800 Program Code Listings
40801 \begin_inset CommandInset label
40803 name "cha:Program-Code-Listings"
40808 \begin_inset Index idx
40811 \begin_layout Plain Layout
40818 \begin_inset Index idx
40821 \begin_layout Plain Layout
40828 \begin_inset Index idx
40831 \begin_layout Plain Layout
40840 \begin_layout Standard
40841 To include and typeset program code you can use the
40845 inset that can be inserted via the menu
40847 Insert\SpecialChar menuseparator
40851 The \SpecialChar LaTeX
40857 \begin_inset Index idx
40860 \begin_layout Plain Layout
40862 -packages ! listings
40867 provides a powerful and flexible way to insert program source code into
40871 \begin_layout Standard
40872 Right-clicking on a listings inset opens the context menu containing where
40873 you can set the listings format.
40876 \begin_layout Standard
40877 By default, a listing starts a new paragraph in the output.
40878 The placement option
40881 \begin_inset space ~
40886 prints the listing inline like this:
40887 \begin_inset listings
40888 lstparams "language={C++}"
40892 \begin_layout Plain Layout
40900 \begin_inset Newline newline
40907 creates a listings float where you can specify the placement options
40908 \begin_inset Quotes eld
40916 \begin_inset Quotes erd
40920 \begin_inset Quotes eld
40928 \begin_inset Quotes erd
40932 \begin_inset Quotes eld
40940 \begin_inset Quotes erd
40944 \begin_inset Quotes eld
40952 \begin_inset Quotes erd
40955 corresponding to the float placement options described in section
40956 \begin_inset space ~
40960 \begin_inset CommandInset ref
40962 reference "sec:Float-Placement"
40967 The placement options can be mixed and are inserted without any separation,
40969 \begin_inset space \thinspace{}
40973 \begin_inset space \space{}
40977 \begin_inset Quotes eld
40985 \begin_inset Quotes erd
40990 \begin_inset Quotes eld
40994 \begin_inset Quotes erd
40997 has sometimes no effect, but you don't need to use the
41001 option in this case as also non-float listings can have captions and be
41005 \begin_layout Standard
41006 You can add captions to listings with the menu
41008 Insert\SpecialChar menuseparator
41012 Listings can be referenced like floats: Listing
41013 \begin_inset space ~
41017 \begin_inset CommandInset ref
41019 reference "lst:Example-Listing"
41024 A list of listings which contains all listings with captions can be created
41027 Insert\SpecialChar menuseparator
41029 \begin_inset space ~
41033 \begin_inset space ~
41036 TOC\SpecialChar menuseparator
41040 The list entries are the listing caption and the listing number.
41043 \begin_layout Standard
41044 \begin_inset listings
41045 lstparams "language=Python"
41049 \begin_layout Plain Layout
41051 \begin_inset Caption Standard
41053 \begin_layout Plain Layout
41054 \begin_inset CommandInset label
41056 name "lst:Example-Listing"
41060 Example Listing float
41065 # Example listing float
41068 \begin_layout Plain Layout
41073 \begin_layout Plain Layout
41075 'this is a python function'
41078 \begin_layout Plain Layout
41088 \begin_layout Standard
41089 When you have set a programming language in the listings dialog, the keywords
41090 of this language will be recognized and specially typeset in the output.
41091 In the example listings the Python keyword
41092 \begin_inset Quotes eld
41096 \begin_inset Quotes erd
41099 is recognized and printed bold in the output.
41102 \begin_layout Standard
41103 \begin_inset Note Greyedout
41106 \begin_layout Plain Layout
41111 If you don't get bold keywords when using typewriter fonts, your
41115 font probably doesn't provide a bold shape.
41116 In this case select a different one in the menu
41118 Document\SpecialChar menuseparator
41119 Settings\SpecialChar menuseparator
41131 provide bold shapes.)
41139 \begin_layout Standard
41143 \begin_inset space ~
41148 of the listings dialog you can specify the line numbering style.
41149 You can insert a number to specify which lines are numbered in the field
41156 \begin_inset space \thinspace{}
41160 \begin_inset space \space{}
41164 \begin_inset Quotes eld
41168 \begin_inset Quotes erd
41171 , only every 3rd line will be numbered.
41174 \begin_layout Standard
41175 You can furthermore specify a range of lines; only these will then appear
41179 Extended character table
41181 should be used when you use national characters like the German umlauts
41183 \begin_inset Newline newline
41186 Here is an example listing with left line numbering, step
41187 \begin_inset Quotes eld
41191 \begin_inset Quotes erd
41195 \begin_inset Quotes eld
41199 \begin_inset Quotes erd
41203 \begin_inset Quotes eld
41206 Extended character table
41207 \begin_inset Quotes erd
41211 \begin_inset Quotes eld
41215 \begin_inset space ~
41219 \begin_inset space ~
41223 \begin_inset Quotes erd
41227 \begin_inset space \thinspace{}
41231 \begin_inset space \thinspace{}
41237 \begin_layout Standard
41238 \begin_inset listings
41239 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41243 \begin_layout Plain Layout
41248 \begin_layout Plain Layout
41250 'this is a python function'
41253 \begin_layout Plain Layout
41258 \begin_layout Plain Layout
41263 \begin_layout Plain Layout
41265 'This is a German word: Tschüß'
41268 \begin_layout Plain Layout
41273 \begin_layout Plain Layout
41278 \begin_layout Plain Layout
41280 'this is a python function'
41283 \begin_layout Plain Layout
41293 \begin_layout Standard
41294 When you have tabulators in your listing, you can specify the number of
41295 characters that are spanned by a tabulator in the field
41298 \begin_inset space ~
41306 \begin_layout Standard
41307 \begin_inset Note Greyedout
41310 \begin_layout Plain Layout
41315 Due to a bug in the
41319 package the line numbering is shifted by a line by every previous listing.
41320 That's the reason why the lines 2 and 5 are numbered in the above listing
41321 and not the lines 3 and 6.
41329 \begin_layout Standard
41330 \begin_inset VSpace bigskip
41336 \begin_layout Standard
41337 It is also possible to print lines from a file as listing.
41338 To do this, use the menu
41340 Insert\SpecialChar menuseparator
41341 File\SpecialChar menuseparator
41344 and choose the type
41352 \begin_layout Plain Layout
41353 The other child document types are described in section
41354 \begin_inset space ~
41358 \begin_inset CommandInset ref
41360 reference "sec:Child-Documents"
41369 In the child document dialog you can specify the listing parameters in
41371 To show a list of all available parameters, type in a question mark
41372 \begin_inset Quotes eld
41376 \begin_inset Quotes erd
41382 \begin_layout Standard
41383 To reference child document listings, write a label text into the corresponding
41384 field of the child document dialog.
41385 The label can then be referenced using the menu
41387 Insert\SpecialChar menuseparator
41393 \begin_layout Standard
41395 \begin_inset space ~
41399 \begin_inset CommandInset ref
41401 reference "lst:file-listing"
41405 is an example for a listing of a file; there the lines 10
41406 \begin_inset space \thinspace{}
41410 \begin_inset space \thinspace{}
41413 15 of this \SpecialChar LyX
41417 \begin_layout Standard
41418 \begin_inset CommandInset include
41419 LatexCommand lstinputlisting
41420 filename "EmbeddedObjects.lyx"
41421 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41428 \begin_layout Standard
41429 \begin_inset VSpace bigskip
41435 \begin_layout Standard
41436 Inserting a formula into a listing can be done the following way:
41439 \begin_layout Enumerate
41440 Open the listings dialog and add
41441 \begin_inset Newline newline
41449 \begin_inset Newline newline
41452 to the field of the
41459 \begin_layout Enumerate
41460 Create a formula outside the listing
41463 \begin_layout Enumerate
41464 Copy the content of the formula (not the formula inset) to the clipboard
41474 \begin_layout Enumerate
41475 In the listing write
41476 \begin_inset Quotes eld
41484 \begin_inset Quotes erd
41487 and copy from the clipboard between the dollar-signs (shortcut
41496 \begin_layout Standard
41497 \begin_inset listings
41498 lstparams "language=Python,mathescape=true"
41502 \begin_layout Plain Layout
41504 \begin_inset Caption Standard
41506 \begin_layout Plain Layout
41507 Example Listing float containing a formula
41512 # Example listing float
41515 \begin_layout Plain Layout
41520 \begin_layout Plain Layout
41533 \begin_layout Plain Layout
41543 \begin_layout Standard
41544 \begin_inset VSpace bigskip
41550 \begin_layout Standard
41551 Global listings settings can be set in the
41553 Document\SpecialChar menuseparator
41554 Settings\SpecialChar menuseparator
41558 To get there a list of available options, type in a question mark
41559 \begin_inset Quotes eld
41563 \begin_inset Quotes erd
41569 \begin_layout Standard
41570 For more information about the
41574 package, we refer to its documentation
41575 \begin_inset CommandInset citation
41585 \begin_layout Standard
41586 \begin_inset Newpage newpage
41592 \begin_layout Chapter
41594 Units available in \SpecialChar LyX
41596 \begin_inset Index idx
41599 \begin_layout Plain Layout
41606 \begin_inset CommandInset label
41608 name "cha:Units-available-in"
41615 \begin_layout Standard
41616 To understand the units described in this documentation, Table
41617 \begin_inset space ~
41621 \begin_inset CommandInset ref
41623 reference "tab:Units"
41627 explains all units available in \SpecialChar LyX
41631 \begin_layout Standard
41632 \begin_inset Float table
41638 \begin_layout Plain Layout
41639 \begin_inset Caption Standard
41641 \begin_layout Plain Layout
41642 \begin_inset CommandInset label
41656 \begin_layout Plain Layout
41657 \begin_inset VSpace medskip
41663 \begin_layout Plain Layout
41665 \begin_inset Tabular
41666 <lyxtabular version="3" rows="20" columns="3">
41667 <features tabularvalignment="middle">
41668 <column alignment="center" valignment="top">
41669 <column alignment="center" valignment="top">
41670 <column alignment="center" valignment="top">
41672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41675 \begin_layout Plain Layout
41681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41684 \begin_layout Plain Layout
41690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41693 \begin_layout Plain Layout
41702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41705 \begin_layout Plain Layout
41711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41714 \begin_layout Plain Layout
41720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41723 \begin_layout Plain Layout
41731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41734 \begin_layout Plain Layout
41740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41743 \begin_layout Plain Layout
41749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41752 \begin_layout Plain Layout
41760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41763 \begin_layout Plain Layout
41769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41772 \begin_layout Plain Layout
41778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41781 \begin_layout Plain Layout
41789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41792 \begin_layout Plain Layout
41798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41801 \begin_layout Plain Layout
41803 \begin_inset space \thinspace{}
41807 \begin_inset space \thinspace{}
41815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41818 \begin_layout Plain Layout
41826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41829 \begin_layout Plain Layout
41835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41838 \begin_layout Plain Layout
41840 \begin_inset space \thinspace{}
41844 \begin_inset space \thinspace{}
41852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41855 \begin_layout Plain Layout
41863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41866 \begin_layout Plain Layout
41872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41875 \begin_layout Plain Layout
41876 scaled point (65536
41877 \begin_inset space \thinspace{}
41881 \begin_inset space \thinspace{}
41889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41892 \begin_layout Plain Layout
41900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41903 \begin_layout Plain Layout
41909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41912 \begin_layout Plain Layout
41914 \begin_inset space \thinspace{}
41918 \begin_inset space \thinspace{}
41926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41929 \begin_layout Plain Layout
41937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41940 \begin_layout Plain Layout
41946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41949 \begin_layout Plain Layout
41951 \begin_inset space \thinspace{}
41955 \begin_inset Formula $\approx$
41959 \begin_inset space \thinspace{}
41967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41970 \begin_layout Plain Layout
41978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41981 \begin_layout Plain Layout
41987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41990 \begin_layout Plain Layout
41992 \begin_inset space \thinspace{}
41996 \begin_inset space \thinspace{}
42004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42007 \begin_layout Plain Layout
42015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42018 \begin_layout Plain Layout
42024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42027 \begin_layout Plain Layout
42028 % of original image width
42033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42036 \begin_layout Plain Layout
42044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42047 \begin_layout Plain Layout
42053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42056 \begin_layout Plain Layout
42062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42065 \begin_layout Plain Layout
42075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42078 \begin_layout Plain Layout
42084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42087 \begin_layout Plain Layout
42093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42096 \begin_layout Plain Layout
42106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42109 \begin_layout Plain Layout
42115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42118 \begin_layout Plain Layout
42124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42127 \begin_layout Plain Layout
42137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42140 \begin_layout Plain Layout
42146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42149 \begin_layout Plain Layout
42155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42158 \begin_layout Plain Layout
42168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42171 \begin_layout Plain Layout
42177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42180 \begin_layout Plain Layout
42186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42189 \begin_layout Plain Layout
42199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42202 \begin_layout Plain Layout
42208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42211 \begin_layout Plain Layout
42217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42220 \begin_layout Plain Layout
42230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42233 \begin_layout Plain Layout
42239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42242 \begin_layout Plain Layout
42252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42255 \begin_layout Plain Layout
42263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42266 \begin_layout Plain Layout
42272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42275 \begin_layout Plain Layout
42285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42288 \begin_layout Plain Layout
42296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42299 \begin_layout Plain Layout
42305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42308 \begin_layout Plain Layout
42310 \begin_inset space \thinspace{}
42314 \begin_inset space \thinspace{}
42322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42325 \begin_layout Plain Layout
42344 \begin_layout Chapter
42345 Output File Formats with Graphics
42346 \begin_inset CommandInset label
42348 name "cha:Output-File-Formats"
42355 \begin_layout Section
42357 \begin_inset Index idx
42360 \begin_layout Plain Layout
42367 \begin_inset Index idx
42370 \begin_layout Plain Layout
42375 \begin_layout Plain Layout
42386 \begin_layout Plain Layout
42401 \begin_layout Standard
42402 This file type has the extension
42403 \begin_inset Quotes eld
42411 \begin_inset Quotes erd
42416 \begin_inset Quotes eld
42420 \begin_inset Quotes erd
42423 (DVI), because it is completely portable; you can move them from one machine
42424 to another without needing to do any sort of conversion.
42425 At the time when this file-format was developed, this was no matter of
42427 DVIs are used for quick previews and as pre-stage for other output formats,
42431 \begin_layout Standard
42432 \begin_inset Note Greyedout
42435 \begin_layout Plain Layout
42440 DVI-files do not contain images; they will only be a linked.
42445 So don't forget this, if you move your
42449 file to another computer.
42450 This property can also slow down your computer when you view the DVI, because
42451 the DVI-viewer has to convert the image in the background to make it visible
42452 when you scroll in the DVI.
42453 So it is recommended that you use PDF for files with many images.
42456 \begin_layout Standard
42457 You can export your document to DVI by using the menu
42459 File\SpecialChar menuseparator
42460 Export\SpecialChar menuseparator
42464 You can view your document as DVI via the
42471 \begin_layout Section
42473 \begin_inset Index idx
42476 \begin_layout Plain Layout
42477 File Formats ! PostScript
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
42531 PostScript was developed by the company
42535 as a printer language.
42536 The file therefore contains commands that the printer uses to print the
42538 PostScript can be seen as a
42539 \begin_inset Quotes eld
42542 programming language
42543 \begin_inset Quotes erd
42546 ; you can calculate with it and draw diagrams and images.
42550 \begin_layout Plain Layout
42551 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42558 \begin_inset CommandInset citation
42570 Due to this ability, the files are often bigger than PDFs.
42573 \begin_layout Standard
42574 PostScript can only contain images in the format
42575 \begin_inset Quotes eld
42578 Encapsulated PostScript
42579 \begin_inset Quotes erd
42582 (EPS, file extension
42583 \begin_inset Quotes eld
42591 \begin_inset Quotes erd
42595 As \SpecialChar LyX
42596 allows you to use any known image format in your document, it has to
42597 convert images in the background to EPS.
42599 \begin_inset space ~
42603 \begin_inset space ~
42606 images in your document, \SpecialChar LyX
42608 \begin_inset space ~
42611 conversions whenever you view or export your document.
42612 This will slow down your work flow with \SpecialChar LyX
42614 So if you plan to use PostScript, you can insert your images directly as
42615 EPS to avoid this problem.
42618 \begin_layout Standard
42619 You can export your document to PostScript using the menu
42621 File\SpecialChar menuseparator
42622 Export\SpecialChar menuseparator
42626 You can view your document as PostScript via the
42633 \begin_layout Section
42635 \begin_inset Index idx
42638 \begin_layout Plain Layout
42645 \begin_inset Index idx
42648 \begin_layout Plain Layout
42657 \begin_layout Standard
42658 This file type has the extension
42659 \begin_inset Quotes eld
42667 \begin_inset Quotes erd
42672 \begin_inset Quotes eld
42675 Portable Document Format
42676 \begin_inset Quotes erd
42679 (PDF) was developed by
42683 as a derivative of PostScript.
42684 It is more compressed and it uses fewer commands than PostScript.
42686 \begin_inset Quotes eld
42690 \begin_inset Quotes erd
42693 implies, it can be processed at any computer system and the printed output
42694 looks exactly the same.
42697 \begin_layout Standard
42698 PDF can contain images in its own PDF format, in the format
42699 \begin_inset Quotes eld
42702 Joint Photographic Experts Group
42703 \begin_inset Quotes erd
42706 (JPG, file extension
42707 \begin_inset Quotes eld
42715 \begin_inset Quotes erd
42719 \begin_inset Quotes eld
42727 \begin_inset Quotes erd
42730 ), and in the format
42731 \begin_inset Quotes eld
42734 Portable Network Graphics
42735 \begin_inset Quotes erd
42738 (PNG, file extension
42739 \begin_inset Quotes eld
42747 \begin_inset Quotes erd
42751 Nevertheless you can use any other image format, because \SpecialChar LyX
42753 in the background to one of these formats.
42754 But as described in the section about PostScript, the image conversion
42755 will slow down your work flow.
42756 So it is recommended that you use images in one of the three mentioned
42760 \begin_layout Standard
42761 You can export your document to PDF via the menu
42763 File\SpecialChar menuseparator
42766 in three different ways:
42769 \begin_layout Description
42771 \begin_inset space ~
42774 (ps2pdf) This uses the program
42778 that creates a PDF from a PostScript-version of your file.
42779 The PostScript-version is produced by the program
42783 which uses a DVI-version as intermediate step.
42784 So this export variant consists of three conversions.
42787 \begin_layout Description
42789 \begin_inset space ~
42792 (dvipdfm) This uses the program
42796 that converts your file in the background to DVI and in a second step to
42800 \begin_layout Description
42802 \begin_inset space ~
42805 (pdflatex) This uses the program
42809 that converts your file directly to PDF.
42812 \begin_layout Standard
42813 It is recommended that you use
42816 \begin_inset space ~
42825 supports all features of actual PDF-versions, is quick and works stable.
42830 is not under development and therefore a bit outdated.
42833 \begin_layout Standard
42834 You can view your document as PDF via the
42838 menu or by using a toolbar button.
42841 \begin_layout Chapter
42842 List of dvips color names
42843 \begin_inset CommandInset label
42845 name "chap:List-of-dvips-colornames"
42852 \begin_layout Standard
42853 \begin_inset Tabular
42854 <lyxtabular version="3" rows="17" columns="4">
42855 <features tabularvalignment="middle">
42856 <column alignment="left" valignment="top" width="0pt">
42857 <column alignment="left" valignment="top" width="0pt">
42858 <column alignment="left" valignment="top" width="0pt">
42859 <column alignment="left" valignment="top" width="0pt">
42861 <cell alignment="left" valignment="top" usebox="none">
42864 \begin_layout Plain Layout
42868 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42892 \begin_layout Plain Layout
42904 <cell alignment="left" valignment="top" usebox="none">
42907 \begin_layout Plain Layout
42911 \begin_layout Plain Layout
42924 \begin_layout Plain Layout
42935 \begin_layout Plain Layout
42947 <cell alignment="left" valignment="top" usebox="none">
42950 \begin_layout Plain Layout
42954 \begin_layout Plain Layout
42967 \begin_layout Plain Layout
42978 \begin_layout Plain Layout
42990 <cell alignment="left" valignment="top" usebox="none">
42993 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43010 \begin_layout Plain Layout
43021 \begin_layout Plain Layout
43035 <cell alignment="center" valignment="top" usebox="none">
43038 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43055 \begin_layout Plain Layout
43063 \begin_inset Phantom Phantom
43066 \begin_layout Plain Layout
43076 \begin_layout Plain Layout
43088 <cell alignment="center" valignment="top" usebox="none">
43091 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43108 \begin_layout Plain Layout
43116 \begin_inset Phantom Phantom
43119 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43141 <cell alignment="center" valignment="top" usebox="none">
43144 \begin_layout Plain Layout
43148 \begin_layout Plain Layout
43161 \begin_layout Plain Layout
43169 \begin_inset Phantom Phantom
43172 \begin_layout Plain Layout
43182 \begin_layout Plain Layout
43194 <cell alignment="center" valignment="top" usebox="none">
43197 \begin_layout Plain Layout
43201 \begin_layout Plain Layout
43214 \begin_layout Plain Layout
43222 \begin_inset Phantom Phantom
43225 \begin_layout Plain Layout
43235 \begin_layout Plain Layout
43249 <cell alignment="left" valignment="top" usebox="none">
43252 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43269 \begin_layout Plain Layout
43277 \begin_inset Phantom Phantom
43280 \begin_layout Plain Layout
43290 \begin_layout Plain Layout
43302 <cell alignment="left" valignment="top" usebox="none">
43305 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43322 \begin_layout Plain Layout
43330 \begin_inset Phantom Phantom
43333 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43355 <cell alignment="left" valignment="top" usebox="none">
43358 \begin_layout Plain Layout
43362 \begin_layout Plain Layout
43375 \begin_layout Plain Layout
43383 \begin_inset Phantom Phantom
43386 \begin_layout Plain Layout
43396 \begin_layout Plain Layout
43408 <cell alignment="left" valignment="top" usebox="none">
43411 \begin_layout Plain Layout
43415 \begin_layout Plain Layout
43428 \begin_layout Plain Layout
43436 \begin_inset Phantom Phantom
43439 \begin_layout Plain Layout
43449 \begin_layout Plain Layout
43463 <cell alignment="left" valignment="top" usebox="none">
43466 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43483 \begin_layout Plain Layout
43491 \begin_inset Phantom Phantom
43494 \begin_layout Plain Layout
43504 \begin_layout Plain Layout
43516 <cell alignment="left" valignment="top" usebox="none">
43519 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43536 \begin_layout Plain Layout
43544 \begin_inset Phantom Phantom
43547 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43569 <cell alignment="left" valignment="top" usebox="none">
43572 \begin_layout Plain Layout
43576 \begin_layout Plain Layout
43589 \begin_layout Plain Layout
43597 \begin_inset Phantom Phantom
43600 \begin_layout Plain Layout
43610 \begin_layout Plain Layout
43622 <cell alignment="left" valignment="top" usebox="none">
43625 \begin_layout Plain Layout
43629 \begin_layout Plain Layout
43642 \begin_layout Plain Layout
43650 \begin_inset Phantom Phantom
43653 \begin_layout Plain Layout
43663 \begin_layout Plain Layout
43677 <cell alignment="left" valignment="top" usebox="none">
43680 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43697 \begin_layout Plain Layout
43705 \begin_inset Phantom Phantom
43708 \begin_layout Plain Layout
43718 \begin_layout Plain Layout
43730 <cell alignment="left" valignment="top" usebox="none">
43733 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43750 \begin_layout Plain Layout
43758 \begin_inset Phantom Phantom
43761 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43783 <cell alignment="left" valignment="top" usebox="none">
43786 \begin_layout Plain Layout
43790 \begin_layout Plain Layout
43803 \begin_layout Plain Layout
43811 \begin_inset Phantom Phantom
43814 \begin_layout Plain Layout
43824 \begin_layout Plain Layout
43836 <cell alignment="left" valignment="top" usebox="none">
43839 \begin_layout Plain Layout
43843 \begin_layout Plain Layout
43856 \begin_layout Plain Layout
43864 \begin_inset Phantom Phantom
43867 \begin_layout Plain Layout
43877 \begin_layout Plain Layout
43891 <cell alignment="left" valignment="top" usebox="none">
43894 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43911 \begin_layout Plain Layout
43919 \begin_inset Phantom Phantom
43922 \begin_layout Plain Layout
43932 \begin_layout Plain Layout
43944 <cell alignment="left" valignment="top" usebox="none">
43947 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43964 \begin_layout Plain Layout
43972 \begin_inset Phantom Phantom
43975 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43997 <cell alignment="left" valignment="top" usebox="none">
44000 \begin_layout Plain Layout
44004 \begin_layout Plain Layout
44017 \begin_layout Plain Layout
44025 \begin_inset Phantom Phantom
44028 \begin_layout Plain Layout
44038 \begin_layout Plain Layout
44050 <cell alignment="left" valignment="top" usebox="none">
44053 \begin_layout Plain Layout
44057 \begin_layout Plain Layout
44070 \begin_layout Plain Layout
44078 \begin_inset Phantom Phantom
44081 \begin_layout Plain Layout
44091 \begin_layout Plain Layout
44105 <cell alignment="center" valignment="top" usebox="none">
44108 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44125 \begin_layout Plain Layout
44133 \begin_inset Phantom Phantom
44136 \begin_layout Plain Layout
44146 \begin_layout Plain Layout
44158 <cell alignment="center" valignment="top" usebox="none">
44161 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44178 \begin_layout Plain Layout
44186 \begin_inset Phantom Phantom
44189 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44211 <cell alignment="center" valignment="top" usebox="none">
44214 \begin_layout Plain Layout
44218 \begin_layout Plain Layout
44231 \begin_layout Plain Layout
44239 \begin_inset Phantom Phantom
44242 \begin_layout Plain Layout
44252 \begin_layout Plain Layout
44264 <cell alignment="center" valignment="top" usebox="none">
44267 \begin_layout Plain Layout
44271 \begin_layout Plain Layout
44284 \begin_layout Plain Layout
44292 \begin_inset Phantom Phantom
44295 \begin_layout Plain Layout
44305 \begin_layout Plain Layout
44319 <cell alignment="left" valignment="top" usebox="none">
44322 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44339 \begin_layout Plain Layout
44347 \begin_inset Phantom Phantom
44350 \begin_layout Plain Layout
44360 \begin_layout Plain Layout
44372 <cell alignment="left" valignment="top" usebox="none">
44375 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44392 \begin_layout Plain Layout
44400 \begin_inset Phantom Phantom
44403 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44425 <cell alignment="left" valignment="top" usebox="none">
44428 \begin_layout Plain Layout
44432 \begin_layout Plain Layout
44445 \begin_layout Plain Layout
44453 \begin_inset Phantom Phantom
44456 \begin_layout Plain Layout
44466 \begin_layout Plain Layout
44478 <cell alignment="left" valignment="top" usebox="none">
44481 \begin_layout Plain Layout
44485 \begin_layout Plain Layout
44498 \begin_layout Plain Layout
44506 \begin_inset Phantom Phantom
44509 \begin_layout Plain Layout
44519 \begin_layout Plain Layout
44533 <cell alignment="left" valignment="top" usebox="none">
44536 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44553 \begin_layout Plain Layout
44561 \begin_inset Phantom Phantom
44564 \begin_layout Plain Layout
44574 \begin_layout Plain Layout
44586 <cell alignment="left" valignment="top" usebox="none">
44589 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44606 \begin_layout Plain Layout
44614 \begin_inset Phantom Phantom
44617 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44639 <cell alignment="left" valignment="top" usebox="none">
44642 \begin_layout Plain Layout
44646 \begin_layout Plain Layout
44659 \begin_layout Plain Layout
44667 \begin_inset Phantom Phantom
44670 \begin_layout Plain Layout
44680 \begin_layout Plain Layout
44692 <cell alignment="left" valignment="top" usebox="none">
44695 \begin_layout Plain Layout
44699 \begin_layout Plain Layout
44712 \begin_layout Plain Layout
44720 \begin_inset Phantom Phantom
44723 \begin_layout Plain Layout
44733 \begin_layout Plain Layout
44747 <cell alignment="left" valignment="top" usebox="none">
44750 \begin_layout Plain Layout
44754 \begin_layout Plain Layout
44767 \begin_layout Plain Layout
44775 \begin_inset Phantom Phantom
44778 \begin_layout Plain Layout
44788 \begin_layout Plain Layout
44800 <cell alignment="left" valignment="top" usebox="none">
44803 \begin_layout Plain Layout
44807 \begin_layout Plain Layout
44820 \begin_layout Plain Layout
44828 \begin_inset Phantom Phantom
44831 \begin_layout Plain Layout
44841 \begin_layout Plain Layout
44853 <cell alignment="left" valignment="top" usebox="none">
44856 \begin_layout Plain Layout
44860 \begin_layout Plain Layout
44873 \begin_layout Plain Layout
44881 \begin_inset Phantom Phantom
44884 \begin_layout Plain Layout
44894 \begin_layout Plain Layout
44906 <cell alignment="left" valignment="top" usebox="none">
44909 \begin_layout Plain Layout
44913 \begin_layout Plain Layout
44926 \begin_layout Plain Layout
44934 \begin_inset Phantom Phantom
44937 \begin_layout Plain Layout
44947 \begin_layout Plain Layout
44961 <cell alignment="left" valignment="top" usebox="none">
44964 \begin_layout Plain Layout
44968 \begin_layout Plain Layout
44981 \begin_layout Plain Layout
44989 \begin_inset Phantom Phantom
44992 \begin_layout Plain Layout
45002 \begin_layout Plain Layout
45014 <cell alignment="left" valignment="top" usebox="none">
45017 \begin_layout Plain Layout
45021 \begin_layout Plain Layout
45034 \begin_layout Plain Layout
45042 \begin_inset Phantom Phantom
45045 \begin_layout Plain Layout
45055 \begin_layout Plain Layout
45067 <cell alignment="left" valignment="top" usebox="none">
45070 \begin_layout Plain Layout
45074 \begin_layout Plain Layout
45087 \begin_layout Plain Layout
45095 \begin_inset Phantom Phantom
45098 \begin_layout Plain Layout
45108 \begin_layout Plain Layout
45120 <cell alignment="left" valignment="top" usebox="none">
45123 \begin_layout Plain Layout
45127 \begin_layout Plain Layout
45140 \begin_layout Plain Layout
45148 \begin_inset Phantom Phantom
45151 \begin_layout Plain Layout
45161 \begin_layout Plain Layout
45175 <cell alignment="left" valignment="top" usebox="none">
45178 \begin_layout Plain Layout
45182 \begin_layout Plain Layout
45195 \begin_layout Plain Layout
45203 \begin_inset Phantom Phantom
45206 \begin_layout Plain Layout
45216 \begin_layout Plain Layout
45228 <cell alignment="left" valignment="top" usebox="none">
45231 \begin_layout Plain Layout
45235 \begin_layout Plain Layout
45248 \begin_layout Plain Layout
45256 \begin_inset Phantom Phantom
45259 \begin_layout Plain Layout
45269 \begin_layout Plain Layout
45281 <cell alignment="left" valignment="top" usebox="none">
45284 \begin_layout Plain Layout
45288 \begin_layout Plain Layout
45301 \begin_layout Plain Layout
45309 \begin_inset Phantom Phantom
45312 \begin_layout Plain Layout
45322 \begin_layout Plain Layout
45334 <cell alignment="left" valignment="top" usebox="none">
45337 \begin_layout Plain Layout
45341 \begin_layout Plain Layout
45354 \begin_layout Plain Layout
45362 \begin_inset Phantom Phantom
45365 \begin_layout Plain Layout
45375 \begin_layout Plain Layout
45389 <cell alignment="left" valignment="top" usebox="none">
45392 \begin_layout Plain Layout
45396 \begin_layout Plain Layout
45409 \begin_layout Plain Layout
45417 \begin_inset Phantom Phantom
45420 \begin_layout Plain Layout
45430 \begin_layout Plain Layout
45442 <cell alignment="left" valignment="top" usebox="none">
45445 \begin_layout Plain Layout
45449 \begin_layout Plain Layout
45462 \begin_layout Plain Layout
45470 \begin_inset Phantom Phantom
45473 \begin_layout Plain Layout
45483 \begin_layout Plain Layout
45495 <cell alignment="left" valignment="top" usebox="none">
45498 \begin_layout Plain Layout
45502 \begin_layout Plain Layout
45515 \begin_layout Plain Layout
45523 \begin_inset Phantom Phantom
45526 \begin_layout Plain Layout
45536 \begin_layout Plain Layout
45548 <cell alignment="left" valignment="top" usebox="none">
45551 \begin_layout Plain Layout
45555 \begin_layout Plain Layout
45568 \begin_layout Plain Layout
45576 \begin_inset Phantom Phantom
45579 \begin_layout Plain Layout
45589 \begin_layout Plain Layout
45603 <cell alignment="left" valignment="top" usebox="none">
45606 \begin_layout Plain Layout
45610 \begin_layout Plain Layout
45623 \begin_layout Plain Layout
45631 \begin_inset Phantom Phantom
45634 \begin_layout Plain Layout
45644 \begin_layout Plain Layout
45656 <cell alignment="left" valignment="top" usebox="none">
45659 \begin_layout Plain Layout
45663 \begin_layout Plain Layout
45676 \begin_layout Plain Layout
45684 \begin_inset Phantom Phantom
45687 \begin_layout Plain Layout
45697 \begin_layout Plain Layout
45709 <cell alignment="left" valignment="top" usebox="none">
45712 \begin_layout Plain Layout
45716 \begin_layout Plain Layout
45729 \begin_layout Plain Layout
45737 \begin_inset Phantom Phantom
45740 \begin_layout Plain Layout
45750 \begin_layout Plain Layout
45762 <cell alignment="left" valignment="top" usebox="none">
45765 \begin_layout Plain Layout
45769 \begin_layout Plain Layout
45782 \begin_layout Plain Layout
45790 \begin_inset Phantom Phantom
45793 \begin_layout Plain Layout
45803 \begin_layout Plain Layout
45817 <cell alignment="left" valignment="top" usebox="none">
45820 \begin_layout Plain Layout
45824 \begin_layout Plain Layout
45837 \begin_layout Plain Layout
45845 \begin_inset Phantom Phantom
45848 \begin_layout Plain Layout
45858 \begin_layout Plain Layout
45870 <cell alignment="left" valignment="top" usebox="none">
45873 \begin_layout Plain Layout
45877 \begin_layout Plain Layout
45890 \begin_layout Plain Layout
45898 \begin_inset Phantom Phantom
45901 \begin_layout Plain Layout
45911 \begin_layout Plain Layout
45923 <cell alignment="left" valignment="top" usebox="none">
45926 \begin_layout Plain Layout
45930 \begin_layout Plain Layout
45943 \begin_layout Plain Layout
45951 \begin_inset Phantom Phantom
45954 \begin_layout Plain Layout
45964 \begin_layout Plain Layout
45976 <cell alignment="left" valignment="top" usebox="none">
45979 \begin_layout Plain Layout
45983 \begin_layout Plain Layout
45996 \begin_layout Plain Layout
46004 \begin_inset Phantom Phantom
46007 \begin_layout Plain Layout
46017 \begin_layout Plain Layout
46031 <cell alignment="left" valignment="top" usebox="none">
46034 \begin_layout Plain Layout
46038 \begin_layout Plain Layout
46051 \begin_layout Plain Layout
46059 \begin_inset Phantom Phantom
46062 \begin_layout Plain Layout
46072 \begin_layout Plain Layout
46084 <cell alignment="left" valignment="top" usebox="none">
46087 \begin_layout Plain Layout
46091 \begin_layout Plain Layout
46104 \begin_layout Plain Layout
46112 \begin_inset Phantom Phantom
46115 \begin_layout Plain Layout
46125 \begin_layout Plain Layout
46137 <cell alignment="left" valignment="top" usebox="none">
46140 \begin_layout Plain Layout
46144 \begin_layout Plain Layout
46157 \begin_layout Plain Layout
46165 \begin_inset Phantom Phantom
46168 \begin_layout Plain Layout
46178 \begin_layout Plain Layout
46190 <cell alignment="left" valignment="top" usebox="none">
46193 \begin_layout Plain Layout
46197 \begin_layout Plain Layout
46210 \begin_layout Plain Layout
46218 \begin_inset Phantom Phantom
46221 \begin_layout Plain Layout
46231 \begin_layout Plain Layout
46245 <cell alignment="left" valignment="top" usebox="none">
46248 \begin_layout Plain Layout
46252 \begin_layout Plain Layout
46265 \begin_layout Plain Layout
46273 \begin_inset Phantom Phantom
46276 \begin_layout Plain Layout
46286 \begin_layout Plain Layout
46298 <cell alignment="left" valignment="top" usebox="none">
46301 \begin_layout Plain Layout
46307 <cell alignment="left" valignment="top" usebox="none">
46310 \begin_layout Plain Layout
46316 <cell alignment="left" valignment="top" usebox="none">
46319 \begin_layout Plain Layout
46333 \begin_layout Chapter
46334 Explanation of Equation
46335 \begin_inset space ~
46339 \begin_inset CommandInset ref
46346 \begin_inset CommandInset label
46348 name "cha:Explanation-of-Equation"
46355 \begin_layout Standard
46356 We can calculate the total width of
46361 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46365 \begin_inset Formula
46367 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46373 \begin_inset Formula $W_{g\,n}$
46376 is the given width of all cells,
46382 is the \SpecialChar LaTeX
46383 -length between the cell text and the cell border (its default value
46385 \begin_inset space \thinspace{}
46395 is the thickness of the cell border line, the default is 0.4
46396 \begin_inset space \thinspace{}
46402 \begin_layout Standard
46404 \begin_inset space ~
46408 \begin_inset CommandInset ref
46410 reference "eq:Wtot_n"
46414 , the total width of a multicolumn
46415 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46419 \begin_inset Formula
46421 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46429 \begin_layout Standard
46430 By setting equation
46431 \begin_inset space ~
46435 \begin_inset CommandInset ref
46437 reference "eq:Wtot_n"
46442 \begin_inset CommandInset ref
46444 reference "eq:Wtot_mult"
46448 equal we can calculate the needed given width
46449 \begin_inset Formula $W_{g\,n}$
46456 columns are spanned, so that each column has a total width of
46457 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46461 \begin_inset Formula
46463 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46471 \begin_layout Bibliography
46472 \begin_inset CommandInset bibitem
46473 LatexCommand bibitem
46474 key "latexcompanion"
46479 Frank Mittelbach and Michel Goossens:
46481 The \SpecialChar LaTeX
46482 Companion Second Edition.
46485 Addison-Wesley, 2004
46488 \begin_layout Bibliography
46489 \begin_inset CommandInset bibitem
46490 LatexCommand bibitem
46496 Helmut Kopka and Patrick W.
46499 A Guide to \SpecialChar LaTeX
46503 Addison-Wesley, 2003
46506 \begin_layout Bibliography
46507 \begin_inset CommandInset bibitem
46508 LatexCommand bibitem
46517 : A Document Preparation System.
46520 Addison-Wesley, second edition, 1994
46523 \begin_layout Bibliography
46524 \begin_inset CommandInset bibitem
46525 LatexCommand bibitem
46531 Documentation of the \SpecialChar LaTeX
46535 \begin_inset CommandInset href
46538 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46546 \begin_inset Index idx
46549 \begin_layout Plain Layout
46551 -packages ! arydshln
46559 \begin_layout Bibliography
46560 \begin_inset CommandInset bibitem
46561 LatexCommand bibitem
46567 Documentation of the \SpecialChar LaTeX
46571 \begin_inset CommandInset href
46574 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46582 \begin_inset Index idx
46585 \begin_layout Plain Layout
46587 -packages ! booktabs
46595 \begin_layout Bibliography
46596 \begin_inset CommandInset bibitem
46597 LatexCommand bibitem
46603 Documentation of the \SpecialChar LaTeX
46607 \begin_inset CommandInset href
46610 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46618 \begin_inset Index idx
46621 \begin_layout Plain Layout
46623 -packages ! caption
46631 \begin_layout Bibliography
46632 \begin_inset CommandInset bibitem
46633 LatexCommand bibitem
46639 Documentation of the \SpecialChar LaTeX
46643 \begin_inset CommandInset href
46646 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46654 \begin_inset Index idx
46657 \begin_layout Plain Layout
46659 -packages ! diagbox
46667 \begin_layout Bibliography
46668 \begin_inset CommandInset bibitem
46669 LatexCommand bibitem
46675 Documentation of the \SpecialChar LaTeX
46679 \begin_inset CommandInset href
46682 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46690 \begin_inset Index idx
46693 \begin_layout Plain Layout
46695 -packages ! endfloat
46703 \begin_layout Bibliography
46704 \begin_inset CommandInset bibitem
46705 LatexCommand bibitem
46711 Documentation of the \SpecialChar LaTeX
46715 \begin_inset CommandInset href
46718 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46726 \begin_inset Index idx
46729 \begin_layout Plain Layout
46731 -packages ! footmisc
46739 \begin_layout Bibliography
46740 \begin_inset CommandInset bibitem
46741 LatexCommand bibitem
46747 Documentation of the \SpecialChar LaTeX
46751 \begin_inset CommandInset href
46754 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46762 \begin_inset Index idx
46765 \begin_layout Plain Layout
46767 -packages ! hyperref
46775 \begin_layout Bibliography
46776 \begin_inset CommandInset bibitem
46777 LatexCommand bibitem
46783 Documentation of the \SpecialChar LaTeX
46787 \begin_inset CommandInset href
46790 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46798 \begin_inset Index idx
46801 \begin_layout Plain Layout
46803 -packages ! hyperref
46811 \begin_layout Bibliography
46812 \begin_inset CommandInset bibitem
46813 LatexCommand bibitem
46819 Documentation of the \SpecialChar LaTeX
46823 \begin_inset CommandInset href
46826 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46834 \begin_inset Index idx
46837 \begin_layout Plain Layout
46839 -packages ! KOMA-Script
46847 \begin_layout Bibliography
46848 \begin_inset CommandInset bibitem
46849 LatexCommand bibitem
46855 Documentation of the \SpecialChar LaTeX
46859 \begin_inset CommandInset href
46862 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46870 \begin_inset CommandInset href
46873 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46879 \begin_inset Index idx
46882 \begin_layout Plain Layout
46884 -packages ! lettrine
46892 \begin_layout Bibliography
46893 \begin_inset CommandInset bibitem
46894 LatexCommand bibitem
46900 Documentation of the \SpecialChar LaTeX
46904 \begin_inset CommandInset href
46907 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
46915 \begin_inset Index idx
46918 \begin_layout Plain Layout
46920 -packages ! listings
46928 \begin_layout Bibliography
46929 \begin_inset CommandInset bibitem
46930 LatexCommand bibitem
46936 Documentation of the \SpecialChar LaTeX
46940 \begin_inset CommandInset href
46943 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
46951 \begin_inset Index idx
46954 \begin_layout Plain Layout
46956 -packages ! marginnote
46964 \begin_layout Bibliography
46965 \begin_inset CommandInset bibitem
46966 LatexCommand bibitem
46972 Documentation of the \SpecialChar LaTeX
46976 \begin_inset CommandInset href
46979 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
46987 \begin_inset Index idx
46990 \begin_layout Plain Layout
46992 -packages ! pdfpages
47000 \begin_layout Bibliography
47001 \begin_inset CommandInset bibitem
47002 LatexCommand bibitem
47008 Documentation of the \SpecialChar LaTeX
47012 \begin_inset CommandInset href
47015 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47023 \begin_inset Index idx
47026 \begin_layout Plain Layout
47028 -packages ! prettyref
47036 \begin_layout Bibliography
47037 \begin_inset CommandInset bibitem
47038 LatexCommand bibitem
47044 Web page of the \SpecialChar LaTeX
47048 \begin_inset CommandInset href
47051 target "http://tug.org/PSTricks/"
47059 \begin_inset Index idx
47062 \begin_layout Plain Layout
47064 -packages ! PSTricks
47072 \begin_layout Bibliography
47073 \begin_inset CommandInset bibitem
47074 LatexCommand bibitem
47080 Documentation of the \SpecialChar LaTeX
47084 \begin_inset CommandInset href
47087 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47095 \begin_inset Index idx
47098 \begin_layout Plain Layout
47100 -packages ! refstyle
47108 \begin_layout Bibliography
47109 \begin_inset CommandInset bibitem
47110 LatexCommand bibitem
47116 Documentation of the \SpecialChar LaTeX
47120 \begin_inset CommandInset href
47123 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47131 \begin_inset Index idx
47134 \begin_layout Plain Layout
47136 -packages ! sidecap
47144 \begin_layout Bibliography
47145 \begin_inset CommandInset bibitem
47146 LatexCommand bibitem
47152 Documentation of the option
47153 \begin_inset CommandInset href
47155 name "Omit text in PDF"
47156 target "http://tug.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47164 \begin_inset CommandInset href
47167 target "https://inkscape.org"
47175 \begin_layout Standard
47176 \begin_inset CommandInset index_print
47177 LatexCommand printindex