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
176 \default_output_format pdf2
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \use_package amsmath 2
200 \use_package amssymb 2
201 \use_package cancel 0
203 \use_package mathdots 1
204 \use_package mathtools 0
205 \use_package mhchem 1
206 \use_package stackrel 0
207 \use_package stmaryrd 0
208 \use_package undertilde 0
210 \cite_engine_type default
214 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_style english
231 \paperpagestyle default
232 \tracking_changes true
233 \output_changes false
236 \html_be_strict false
237 \author 227574939 "Kyttj"
238 \author 424524441 "rgheck"
239 \author 2047637253 "Guillaume Munch"
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"
274 \begin_inset Note Note
277 \begin_layout Plain Layout
284 \begin_inset Newline newline
288 \begin_inset Newline newline
296 \begin_layout Standard
297 \begin_inset CommandInset toc
298 LatexCommand tableofcontents
305 \begin_layout Standard
306 \begin_inset Note Note
309 \begin_layout Plain Layout
310 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
321 diagbox, lettrine, marginnote, picinpar
328 If they are not installed you can export the document anyway but the sections
329 where the packages are required won't appear in the output.
332 \begin_layout Plain Layout
333 The latest PDF-version of this document can be found here:
334 \begin_inset Newline newline
339 http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
347 \begin_layout Chapter
349 \begin_inset Index idx
352 \begin_layout Plain Layout
359 \begin_inset Index idx
362 \begin_layout Plain Layout
367 \begin_layout Plain Layout
378 \begin_layout Plain Layout
393 \begin_layout Section
395 \begin_inset Index idx
398 \begin_layout Plain Layout
399 Figures ! Graphics Dialog
405 \begin_inset CommandInset label
407 name "sec:Graphics-Dialog"
414 \begin_layout Standard
415 To insert an image into your document, place the cursor at the text position
416 you want and click on the toolbar icon
419 arg "dialog-show-new-inset graphics"
424 Insert\SpecialChar menuseparator
428 Then a dialog will appear to choose the file to load.
429 The image will appear in the output exactly at the position where it is
433 \begin_layout Standard
434 The graphics dialog can be called at any time by clicking on an image.
435 This dialog has three tabs:
438 \begin_layout Description
443 Here you can choose an image file and adjust its appearance in the output.
444 The available units for the image size are explained in appendix
449 \begin_inset CommandInset ref
451 reference "cha:Units-available-in"
456 \begin_inset Newline newline
460 \begin_inset Index idx
463 \begin_layout Plain Layout
469 You can rotate images counter-clockwise by setting a rotation angle and
471 The image will also be rotated inside \SpecialChar LyX
473 \begin_inset Newline newline
477 \begin_inset Index idx
480 \begin_layout Plain Layout
486 Images can be scaled by using a percentage value or by setting the width
487 and height explicitly.
488 If you set only the width or only the height, the other size will be determined
490 If you set both, then the image will be transformed to the given size,
491 possibly distorting it.
492 To prevent the image from distortion, use the option
494 Maintain aspect ratio
497 The image will then be scaled so that its width and height don't exceed
498 the specified dimensions.
499 \begin_inset Newline newline
502 Images can be opened in a program of your choice by right-clicking on it
503 and choosing the entry
512 The program can be set for every image format in the file format settings
517 \begin_layout Description
522 Alternatively to the usage of scaling units it is possible to set image
523 coordinates to adjust the height and width of the image in the output.
524 The coordinates can also be calculated automatically by pressing the button
554 will only print the image region within the given coordinates.
555 Normally you don't need to worry about image coordinates and can ignore
559 \begin_layout Description
576 In this tab you can modify the appearance of the image within \SpecialChar LyX
577 and \SpecialChar LaTeX
579 can specify additional \SpecialChar LaTeX
581 \begin_inset Newline newline
592 makes the image appear in the output only as a frame with the size of the
594 \begin_inset Newline newline
605 you can define or join an image settings group.
606 \begin_inset Index idx
609 \begin_layout Plain Layout
610 Figures ! Settings grouping
615 Images within such a group share their settings, so adjusting one image
616 of the group automatically also adjusts all other images of the group in
618 So you can for example change the size for a bunch of images without the
619 need to manually change each of them.
620 Joining an existing group can also be done using the context menu of the
621 image by checking the name of the desired group.
624 \begin_layout Standard
625 \begin_inset VSpace bigskip
631 \begin_layout Standard
632 This is an example image in EPS format
636 \begin_layout Plain Layout
637 Image formats are explained in section
642 \begin_inset CommandInset ref
644 reference "sec:Image-Formats"
653 within a separate, horizontally centered paragraph:
656 \begin_layout Standard
658 \begin_inset Graphics
659 filename clipart/mobius.eps
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/mobius.eps
687 \begin_layout Standard
688 \begin_inset Newpage newpage
694 \begin_layout Section
696 \begin_inset CommandInset label
698 name "sec:Figure-Floats"
703 \begin_inset Index idx
706 \begin_layout Plain Layout
713 \begin_inset Index idx
716 \begin_layout Plain Layout
725 \begin_layout Standard
726 For general explanations about floats, have a look at section
731 \begin_inset CommandInset ref
733 reference "sec:FloatIntroduction"
740 \begin_layout Standard
744 arg "float-insert figure"
749 Insert\SpecialChar menuseparator
750 Float\SpecialChar menuseparator
753 inserts a float with a caption that has the label
754 \begin_inset Quotes eld
762 \begin_inset Quotes erd
765 (# is the actual number).
766 You can insert the image above the caption, like in Figure
771 \begin_inset CommandInset ref
773 reference "fig:kill-plat"
777 or below the caption, like in Figure
782 \begin_inset CommandInset ref
784 reference "fig:escher"
789 More about caption placement is described in section
794 \begin_inset CommandInset ref
796 reference "sec:Caption-Placement"
803 \begin_layout Standard
804 \begin_inset Float figure
809 \begin_layout Plain Layout
811 \begin_inset Graphics
812 filename clipart/platypus.eps
822 \begin_layout Plain Layout
823 \begin_inset Caption Standard
825 \begin_layout Plain Layout
826 \begin_inset CommandInset label
832 A severely distorted platypus in a float.
845 \begin_layout Standard
846 \begin_inset Float figure
851 \begin_layout Plain Layout
852 \begin_inset Caption Standard
854 \begin_layout Plain Layout
855 \begin_inset CommandInset label
870 \begin_layout Plain Layout
872 \begin_inset Graphics
873 filename clipart/escher-lsd.eps
888 \begin_layout Standard
889 \begin_inset Index idx
892 \begin_layout Plain Layout
893 References ! to Figures
903 \begin_inset CommandInset ref
905 reference "fig:kill-plat"
910 \begin_inset CommandInset ref
912 reference "fig:escher"
916 are examples of referenced figures.
917 Figures can be referenced in the text by referencing their label.
918 To do this insert a label in the caption using the menu
920 Insert\SpecialChar menuseparator
923 or the toolbar button
930 You can now refer to the label using the menu
932 Insert\SpecialChar menuseparator
939 or the toolbar button
942 arg "dialog-show-new-inset ref"
946 It is important to use references to floats, rather than using vague references
948 \begin_inset Quotes eld
952 \begin_inset Quotes erd
955 , because \SpecialChar LaTeX
956 will reposition the floats in the final document and it might
958 \begin_inset Quotes eld
962 \begin_inset Quotes erd
966 \begin_inset Newline newline
969 Referencing is explained in detail in section
974 \begin_inset CommandInset ref
976 reference "sec:Referencing-Floats"
983 \begin_layout Standard
984 Normally only one image is inserted to a figure float, but sometimes you
985 might want to use two images with separate subcaptions.
986 This can be done by inserting image floats into existing image floats.
987 Note that only the main caption of the float is added to the List of Figures.
993 \begin_inset CommandInset ref
995 reference "fig:Two-distorted-images"
999 is an example of a figure float with two images set side by side.
1000 You can also set the images one below the other.
1002 \begin_inset space ~
1006 \begin_inset CommandInset ref
1008 reference "fig:Undefinable-structure"
1013 \begin_inset CommandInset ref
1015 reference "fig:A-Platypus"
1022 \begin_layout Standard
1023 \begin_inset Float figure
1028 \begin_layout Plain Layout
1029 \begin_inset space \hfill{}
1033 \begin_inset Float figure
1038 \begin_layout Plain Layout
1039 \begin_inset Caption Standard
1041 \begin_layout Plain Layout
1042 \begin_inset CommandInset label
1044 name "fig:Undefinable-structure"
1048 Undefinable structure.
1056 \begin_layout Plain Layout
1057 \begin_inset Graphics
1058 filename clipart/escher-lsd.eps
1071 \begin_inset space \hfill{}
1075 \begin_inset Float figure
1080 \begin_layout Plain Layout
1081 \begin_inset Caption Standard
1083 \begin_layout Plain Layout
1084 \begin_inset CommandInset label
1086 name "fig:A-Platypus"
1098 \begin_layout Plain Layout
1099 \begin_inset Graphics
1100 filename clipart/platypus.eps
1113 \begin_inset space \hfill{}
1119 \begin_layout Plain Layout
1120 \begin_inset Caption Standard
1122 \begin_layout Plain Layout
1123 \begin_inset CommandInset label
1125 name "fig:Two-distorted-images"
1129 Two distorted images.
1130 Both images are in the image settings group named
1131 \begin_inset Quotes eld
1135 \begin_inset Quotes erd
1151 \begin_layout Standard
1152 \begin_inset Newpage newpage
1158 \begin_layout Section
1160 \begin_inset CommandInset label
1162 name "sec:Image-Formats"
1167 \begin_inset Index idx
1170 \begin_layout Plain Layout
1177 \begin_inset Index idx
1180 \begin_layout Plain Layout
1181 Figures ! Image Formats
1189 \begin_layout Standard
1190 You can insert images in any known file format.
1191 But as explained in appendix
1192 \begin_inset space ~
1196 \begin_inset CommandInset ref
1198 reference "cha:Output-File-Formats"
1202 , each output document format allows only a few image formats.
1204 uses therefore the program
1208 in the background to convert the images to the right format.
1209 To increase your work flow by avoiding these conversions in the background,
1210 you could choose to use only the image formats that can directly be embedded
1211 in the output file format.
1212 The output file formats are explained in appendix
1213 \begin_inset space ~
1217 \begin_inset CommandInset ref
1219 reference "cha:Output-File-Formats"
1226 \begin_layout Standard
1227 Similar to fonts there are two types of image formats:
1230 \begin_layout Description
1232 \begin_inset space ~
1235 images consist of pixel values, often in a compressed form.
1236 They are therefore not fully scalable and look pixelated in large zooms.
1237 Well-known bitmap image formats are
1238 \begin_inset Quotes eld
1241 Graphics Interchange Format
1242 \begin_inset Quotes erd
1245 (GIF, file extension
1246 \begin_inset Quotes eld
1254 \begin_inset Quotes erd
1258 \begin_inset Index idx
1261 \begin_layout Plain Layout
1266 \begin_layout Plain Layout
1277 \begin_layout Plain Layout
1290 \begin_inset Quotes eld
1293 Portable Network Graphics
1294 \begin_inset Quotes erd
1297 (PNG, file extension
1298 \begin_inset Quotes eld
1306 \begin_inset Quotes erd
1310 \begin_inset Index idx
1313 \begin_layout Plain Layout
1318 \begin_layout Plain Layout
1329 \begin_layout Plain Layout
1342 \begin_inset Quotes eld
1345 Joint Photographic Experts Group
1346 \begin_inset Quotes erd
1349 (JPG, file extension
1350 \begin_inset Quotes eld
1358 \begin_inset Quotes erd
1362 \begin_inset Quotes eld
1370 \begin_inset Quotes erd
1374 \begin_inset Index idx
1377 \begin_layout Plain Layout
1382 \begin_layout Plain Layout
1393 \begin_layout Plain Layout
1408 \begin_layout Description
1410 \begin_inset space ~
1413 images consist of vectors and can therefore be scaled to any size without
1415 The scaling ability is necessary if you want to create presentations, because
1416 presentations are always scaled by the video projector.
1417 Scaling is also useful for online documents to let the user zoom into diagrams.
1418 \begin_inset Newline newline
1421 Well-known scalable image formats are
1422 \begin_inset Quotes eld
1425 Scalable Vector Graphics
1426 \begin_inset Quotes erd
1429 (SVG, file extension
1430 \begin_inset Quotes eld
1438 \begin_inset Quotes erd
1442 \begin_inset Index idx
1445 \begin_layout Plain Layout
1450 \begin_layout Plain Layout
1461 \begin_layout Plain Layout
1474 \begin_inset Quotes eld
1477 Encapsulated PostScript
1478 \begin_inset Quotes erd
1481 (EPS, file extension
1482 \begin_inset Quotes eld
1490 \begin_inset Quotes erd
1494 \begin_inset Index idx
1497 \begin_layout Plain Layout
1502 \begin_layout Plain Layout
1513 \begin_layout Plain Layout
1526 \begin_inset Quotes eld
1529 Portable Document Format
1530 \begin_inset Quotes erd
1533 (PDF, file extension
1534 \begin_inset Quotes eld
1542 \begin_inset Quotes erd
1546 \begin_inset Index idx
1549 \begin_layout Plain Layout
1556 \begin_inset Quotes eld
1560 \begin_inset Quotes erd
1563 (WMF, file extension
1564 \begin_inset Quotes eld
1572 \begin_inset Quotes erd
1576 \begin_inset Index idx
1579 \begin_layout Plain Layout
1584 \begin_layout Plain Layout
1595 \begin_layout Plain Layout
1609 \begin_inset Quotes eld
1613 \begin_inset Quotes erd
1616 , because you can convert any bitmap image to a PDF or EPS-image and the
1617 result will still be a bitmap image.
1618 In such cases only a header with the image properties is added to the original
1623 \begin_layout Plain Layout
1624 In the case of PDF, the original image is additionally compressed.
1630 The PDF-files generated by
1634 are for example bitmap images.
1637 \begin_layout Standard
1638 Normally it is not possible to convert a bitmap image into a scalable one,
1640 Only the image formats PDF and EPS can directly be embedded to PDF and
1641 PostScript output files, respectively.
1642 SVG and WMF-images are recalculated to bitmaps when the output file is
1643 generated because there is currently no adequate WMF/SVG
1644 \begin_inset Formula $\to$
1647 PDF/EPS converter available.
1650 \begin_layout Chapter
1652 \begin_inset Index idx
1655 \begin_layout Plain Layout
1664 \begin_layout Section
1666 \begin_inset Index idx
1669 \begin_layout Plain Layout
1670 Table ! Introduction
1678 \begin_layout Standard
1679 You can insert a table using either the toolbar button
1682 arg "tabular-insert"
1687 Insert\SpecialChar menuseparator
1691 The toolbar button offers you a graphical selection: move the mouse to
1692 set the column/row number of the table that should be created and then
1693 press a mouse button.
1694 When you use the menu to create a table, a dialog will appear, asking you
1695 for the number of rows and columns.
1696 \begin_inset Newline newline
1699 The default table has lines around any cell and the first row appears separated
1700 from the rest of the table.
1701 This separation occurs due to a double line: The cells of the first row
1702 have a line below them and the cells of the second row have a line above
1704 Here is an example table:
1707 \begin_layout Standard
1709 \begin_inset Tabular
1710 <lyxtabular version="3" rows="4" columns="4">
1711 <features tabularvalignment="middle">
1712 <column alignment="center" valignment="top">
1713 <column alignment="center" valignment="top">
1714 <column alignment="center" valignment="top">
1715 <column alignment="center" valignment="top">
1717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1720 \begin_layout Plain Layout
1726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1729 \begin_layout Plain Layout
1744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1747 \begin_layout Plain Layout
1753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1756 \begin_layout Plain Layout
1764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1767 \begin_layout Plain Layout
1782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1785 \begin_layout Plain Layout
1791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1803 \begin_layout Plain Layout
1811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1814 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1832 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1850 \begin_layout Plain Layout
1858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1861 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1879 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1897 \begin_layout Plain Layout
1911 \begin_layout Section
1913 \begin_inset Index idx
1916 \begin_layout Plain Layout
1925 \begin_layout Standard
1926 You can alter a table by clicking on it with the right mouse button, which
1927 brings up the context menu.
1928 Under the menu entry
1932 you can adjust the settings of that cell and row/column respectively where
1933 the cursor is currently placed.
1936 More\SpecialChar menuseparator
1939 opens the table dialog where you can adjust more things.
1940 Most of the dialog options also work on selections.
1941 This means if you select more cells, columns or rows, the action is done
1942 for the whole selection.
1943 Note that there is a difference between selecting the
1947 of the cell, and the cell itself.
1948 \begin_inset Newline newline
1951 With the dialog option
1954 \begin_inset space ~
1959 every change you make in the dialog is directly applied.
1960 If you move the cursor to another table cell the dialog will then also
1961 be updated with the parameters of the new cell.
1962 If you change length values in the dialog you must press
1966 to get the change applied.
1967 \begin_inset Newline newline
1970 You can alter tables with the following tabs of the table dialog:
1973 \begin_layout Description
1975 \begin_inset space ~
1978 Settings Here you can set the table width
1979 \begin_inset Index idx
1982 \begin_layout Plain Layout
1988 , and the horizontal alignment and the width of the current column.
1992 \begin_inset space ~
1996 \begin_inset space ~
2001 is described in section
2002 \begin_inset space ~
2006 \begin_inset CommandInset ref
2008 reference "subsec:Special-Cell-Alignment"
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2017 \begin_inset space \thinspace{}
2021 \begin_inset CommandInset ref
2023 reference "subsec:Multiple-Lines-in"
2028 If you set no width, the column is as wide as the content of its widest
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space \thinspace{}
2039 \begin_inset CommandInset ref
2041 reference "subsec:Multicolumns"
2045 or the cells of one column as multirow cell, see sec.
2046 \begin_inset space \thinspace{}
2050 \begin_inset CommandInset ref
2052 reference "subsec:Multirows"
2057 \begin_inset Newline newline
2060 The rotate check boxes rotate the current cell, a selection, or the whole
2061 table counter-clockwise by 90
2062 \begin_inset space \thinspace{}
2066 The rotation is not shown within \SpecialChar LyX
2067 , only in the output.
2068 For more information see sec.
2069 \begin_inset space \thinspace{}
2073 \begin_inset CommandInset ref
2075 reference "sec:Rotated-Table-Cells"
2080 \begin_inset Newline newline
2084 \begin_inset Note Greyedout
2087 \begin_layout Plain Layout
2092 Not all DVI-viewers are able to display rotations.
2098 \begin_inset Newline newline
2101 The table-wide vertical alignment is used for tables within text lines:
2102 \begin_inset Newline newline
2105 A line with tables with different alignments:
2106 \begin_inset Tabular
2107 <lyxtabular version="3" rows="2" columns="2">
2108 <features tabularvalignment="top">
2109 <column alignment="center" valignment="top" width="0pt">
2110 <column alignment="center" valignment="top">
2112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2115 \begin_layout Plain Layout
2121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2124 \begin_layout Plain Layout
2141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2144 \begin_layout Plain Layout
2159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2162 \begin_layout Plain Layout
2174 \begin_inset Tabular
2175 <lyxtabular version="3" rows="2" columns="2">
2176 <features tabularvalignment="middle">
2177 <column alignment="center" valignment="top">
2178 <column alignment="center" valignment="top">
2180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2183 \begin_layout Plain Layout
2189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2192 \begin_layout Plain Layout
2209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2212 \begin_layout Plain Layout
2227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2230 \begin_layout Plain Layout
2242 \begin_inset Tabular
2243 <lyxtabular version="3" rows="2" columns="2">
2244 <features tabularvalignment="bottom">
2245 <column alignment="center" valignment="top" width="0pt">
2246 <column alignment="center" valignment="top">
2248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2251 \begin_layout Plain Layout
2257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2260 \begin_layout Plain Layout
2277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2280 \begin_layout Plain Layout
2295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2298 \begin_layout Plain Layout
2310 \begin_inset Newline newline
2313 It is also possible to enter a \SpecialChar LaTeX
2314 -argument which is needed for special table
2315 formattings, see sec.
2316 \begin_inset space \thinspace{}
2320 \begin_inset CommandInset ref
2322 reference "subsec:Multicolumn-Calculations"
2327 \begin_inset CommandInset ref
2329 reference "sec:Colored-Tables"
2336 \begin_layout Description
2337 Borders In this tab you can add and delete border lines for the current
2339 \begin_inset Newline newline
2342 Using the style option
2346 will convert the table to a formal table as described in sec.
2347 \begin_inset space \thinspace{}
2351 \begin_inset CommandInset ref
2353 reference "sec:Formal-Tables"
2358 \begin_inset Newline newline
2361 You can also add space here to table rows as described in sec.
2362 \begin_inset space \thinspace{}
2366 \begin_inset CommandInset ref
2368 reference "subsec:Row-Spacing"
2375 \begin_layout Description
2377 \begin_inset space ~
2380 table This tab is to make a table a multi-page table that can run over several
2383 \begin_inset space ~
2387 \begin_inset CommandInset ref
2389 reference "sec:Multi-page-Tables"
2394 \begin_inset CommandInset ref
2396 reference "sec:Special-Longtable-Issues"
2400 describe the multi-page table features in detail.
2403 \begin_layout Section
2405 \begin_inset Index idx
2408 \begin_layout Plain Layout
2417 \begin_layout Standard
2418 The table toolbar is an alternative to the table dialog to be able to alter
2420 It should normally appear at the bottom of \SpecialChar LyX
2421 's main window when the cursor
2423 You can alternatively switch it on to appear always, by right-clicking
2428 \begin_layout Standard
2429 The toolbar has the following icons:
2432 \begin_layout Labeling
2433 \labelwidthstring 00.00.0000
2436 arg "tabular-feature append-row"
2439 adds a row below the current cell or selection
2442 \begin_layout Labeling
2443 \labelwidthstring 00.00.0000
2446 arg "tabular-feature append-column"
2449 adds a column right beside the current cell or selection
2452 \begin_layout Labeling
2453 \labelwidthstring 00.00.0000
2456 arg "tabular-feature delete-row"
2459 deletes the current row or selection
2462 \begin_layout Labeling
2463 \labelwidthstring 00.00.0000
2466 arg "tabular-feature delete-column"
2469 deletes the current column or selection
2472 \begin_layout Labeling
2473 \labelwidthstring 00.00.0000
2476 arg "tabular-feature move-row-up"
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2486 arg "tabular-feature move-column-left"
2489 moves the column to the left
2492 \begin_layout Labeling
2493 \labelwidthstring 00.00.0000
2496 arg "tabular-feature move-row-down"
2502 \begin_layout Labeling
2503 \labelwidthstring 00.00.0000
2506 arg "tabular-feature move-column-right"
2509 moves the column to the right
2512 \begin_layout Labeling
2513 \labelwidthstring 00.00.0000
2516 arg "tabular-feature toggle-line-top"
2519 adds a line at the top of the current cell / row or of a selection
2522 \begin_layout Labeling
2523 \labelwidthstring 00.00.0000
2526 arg "tabular-feature toggle-line-bottom"
2529 adds a line at the bottom of the current cell / row or of a selection
2532 \begin_layout Labeling
2533 \labelwidthstring 00.00.0000
2536 arg "tabular-feature toggle-line-left"
2539 adds a line at the left side of the current cell / row or of a selection
2542 \begin_layout Labeling
2543 \labelwidthstring 00.00.0000
2546 arg "tabular-feature toggle-line-right"
2549 adds a line at the right side of the current cell / row or of a selection
2552 \begin_layout Labeling
2553 \labelwidthstring 00.00.0000
2556 arg "tabular-feature set-all-lines"
2559 adds lines around the current or selected cells - if the current cell no
2560 multicolumn cell this also affects the current row and column
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2567 arg "tabular-feature unset-all-lines"
2570 deletes all lines of the current or selected cells - if the current cell
2571 no multicolumn cell this also affects the current row and column
2574 \begin_layout Labeling
2575 \labelwidthstring 00.00.0000
2578 arg "tabular-feature m-align-left"
2581 left-aligns the content of the current cell / column
2584 \begin_layout Labeling
2585 \labelwidthstring 00.00.0000
2588 arg "tabular-feature m-align-center"
2591 centers the content of the current cell / column horizontally
2594 \begin_layout Labeling
2595 \labelwidthstring 00.00.0000
2598 arg "tabular-feature m-align-right"
2601 right-aligns the content of the current cell / column
2604 \begin_layout Labeling
2605 \labelwidthstring 00.00.0000
2608 arg "tabular-feature align-decimal"
2611 aligns the content of the current column at a character
2614 \begin_layout Labeling
2615 \labelwidthstring 00.00.0000
2618 arg "tabular-feature m-valign-top"
2621 aligns the content of the current cell vertically to the top
2624 \begin_layout Labeling
2625 \labelwidthstring 00.00.0000
2628 arg "tabular-feature m-valign-middle"
2631 centers the content of the current cell vertically
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2638 arg "tabular-feature m-valign-bottom"
2641 aligns the content of the current cell vertically to the bottom
2644 \begin_layout Labeling
2645 \labelwidthstring 00.00.0000
2648 arg "tabular-feature set-rotate-cell"
2651 rotates the current cell or selection counter-clockwise by 90°
2654 \begin_layout Labeling
2655 \labelwidthstring 00.00.0000
2658 arg "tabular-feature set-rotate-tabular"
2661 rotates the whole table counter-clockwise by 90°
2664 \begin_layout Labeling
2665 \labelwidthstring 00.00.0000
2668 arg "tabular-feature multicolumn"
2671 sets the current cell or selection as a multicolumn
2674 \begin_layout Labeling
2675 \labelwidthstring 00.00.0000
2678 arg "tabular-feature multirow"
2681 sets the current cell or selection as a multirow
2684 \begin_layout Standard
2685 \begin_inset Note Greyedout
2688 \begin_layout Plain Layout
2693 For the output the vertical alignment of the first cell in a row is used
2694 for all following cells in the row.
2702 \begin_layout Section
2704 \begin_inset Index idx
2707 \begin_layout Plain Layout
2716 \begin_layout Standard
2717 In addition to the table dialog and toolbar, the menu
2719 Edit\SpecialChar menuseparator
2722 allows you to add and delete border lines for the current row/column and
2723 to set the current selection as multicolumn.
2724 The menu is only available when the cursor is inside a table.
2727 \begin_layout Section
2729 \begin_inset CommandInset label
2731 name "sec:Table-Floats"
2736 \begin_inset Index idx
2739 \begin_layout Plain Layout
2746 \begin_inset Index idx
2749 \begin_layout Plain Layout
2758 \begin_layout Standard
2759 For general explanations about floats, have a look at section
2760 \begin_inset space ~
2764 \begin_inset CommandInset ref
2766 reference "sec:FloatIntroduction"
2773 \begin_layout Standard
2774 \begin_inset Float table
2780 \begin_layout Plain Layout
2781 \begin_inset Caption Standard
2783 \begin_layout Plain Layout
2784 \begin_inset CommandInset label
2786 name "tab:a table float"
2798 \begin_layout Plain Layout
2800 \begin_inset Tabular
2801 <lyxtabular version="3" rows="3" columns="3">
2802 <features tabularvalignment="middle">
2803 <column alignment="center" valignment="top" width="0pt">
2804 <column alignment="center" valignment="top" width="0pt">
2805 <column alignment="center" valignment="top" width="0pt">
2807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2810 \begin_layout Plain Layout
2825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2828 \begin_layout Plain Layout
2843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2846 \begin_layout Plain Layout
2863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2866 \begin_layout Plain Layout
2881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2884 \begin_layout Plain Layout
2899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2902 \begin_layout Plain Layout
2919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2922 \begin_layout Plain Layout
2932 \begin_inset Formula $\int x^{2}dx$
2940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2943 \begin_layout Plain Layout
2953 \begin_inset Formula $\left[\begin{array}{cc}
2964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2967 \begin_layout Plain Layout
2977 \begin_inset Formula $1+1=2$
2998 \begin_layout Standard
2999 Table floats can be inserted using the menu
3001 Insert\SpecialChar menuseparator
3002 Float\SpecialChar menuseparator
3005 or the toolbar button
3008 arg "float-insert table"
3014 \begin_layout Standard
3015 The float appears as a collapsible box with a caption that has the label
3017 \begin_inset Quotes eld
3021 \begin_inset space ~
3025 \begin_inset Quotes erd
3028 (# is the actual table number).
3029 You can insert tables in the float above or below the caption.
3032 \begin_layout Standard
3034 \begin_inset space ~
3038 \begin_inset CommandInset ref
3040 reference "tab:a table float"
3044 is an example table within a table float.
3047 \begin_layout Standard
3048 Having the caption above the table is the common rule that is unfortunately
3049 not supported in \SpecialChar LaTeX
3050 's standard classes.
3051 This means that, if you are using the document classes
3067 , there will be no space between the caption and the table.
3068 To insert the needed space, add the following option to the load command
3069 of the \SpecialChar LaTeX
3075 \begin_inset Index idx
3078 \begin_layout Plain Layout
3085 in your document preamble:
3089 \begin_layout Plain Layout
3090 For more information have a look at section
3091 \begin_inset space ~
3095 \begin_inset CommandInset ref
3097 reference "sec:Caption-Placement"
3109 \begin_layout Standard
3115 \begin_layout Standard
3120 , which is described in section
3121 \begin_inset space ~
3125 \begin_inset CommandInset ref
3127 reference "sec:Caption-Formatting"
3131 , is used to adjust the caption format.
3134 \begin_layout Standard
3135 \begin_inset Index idx
3138 \begin_layout Plain Layout
3139 References ! to Tables
3144 Tables can be cross-referenced in the text by referencing their label.
3145 To do this insert a label in the caption using the menu
3147 Insert\SpecialChar menuseparator
3150 or the toolbar button
3157 You can now refer to the label using the menu
3159 Insert\SpecialChar menuseparator
3161 \begin_inset space ~
3166 or the toolbar button
3169 arg "dialog-show-new-inset ref"
3173 \begin_inset Newline newline
3176 Referencing is explained in detail in section
3177 \begin_inset space ~
3181 \begin_inset CommandInset ref
3183 reference "sec:Referencing-Floats"
3190 \begin_layout Section
3196 \begin_inset CommandInset label
3198 name "sec:Multi-page-Tables"
3203 \begin_inset Index idx
3206 \begin_layout Plain Layout
3213 \begin_inset Index idx
3216 \begin_layout Plain Layout
3217 Table ! Multi-page Table
3225 \begin_layout Standard
3226 If the table is too long to fit on one page, you can use the option
3229 \begin_inset space ~
3237 \begin_inset space ~
3242 of the table dialog to split the table automatically over more pages.
3243 Doing this enables the following options:
3246 \begin_layout Description
3247 Header: The current row is defined to be a header row that appears on all
3248 pages of the multi-page table; except for the first page, if
3251 \begin_inset space ~
3257 This is therefore called the main header.
3260 \begin_layout Description
3262 \begin_inset space ~
3265 header: The current row is defined to be a header row that appears on the
3266 first page of the multi-page table.
3269 \begin_layout Description
3270 Footer: The current row is defined to be a footer row that appears on all
3271 pages of the multi-page table; except for the last page, if
3274 \begin_inset space ~
3282 \begin_layout Description
3284 \begin_inset space ~
3287 footer: The current row is defined to be a footer row that appears on the
3288 last page of the multi-page table.
3291 \begin_layout Description
3292 Caption: The current row contains the table caption.
3293 The row is reset as single column and a caption is inserted.
3294 More about multi-page table captions is explained in sec.
3295 \begin_inset space \thinspace{}
3299 \begin_inset CommandInset ref
3301 reference "subsec:Multi-page-Table-Captions"
3308 \begin_layout Standard
3309 You can also specify a row where the table is split.
3310 See the following multi-page table to see how it works:
3313 \begin_layout Standard
3315 \begin_inset Tabular
3316 <lyxtabular version="3" rows="69" columns="3">
3317 <features islongtable="true" longtabularalignment="center">
3318 <column alignment="left" valignment="top" width="0cm">
3319 <column alignment="left" valignment="top" width="0pt">
3320 <column alignment="center" valignment="top" width="0pt">
3321 <row endfirsthead="true">
3322 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3325 \begin_layout Plain Layout
3328 Example Phone List (ignore the names)
3333 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3336 \begin_layout Plain Layout
3342 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Plain Layout
3352 <row endfirsthead="true">
3353 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3356 \begin_layout Plain Layout
3364 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3367 \begin_layout Plain Layout
3373 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Plain Layout
3385 <row endhead="true">
3386 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3389 \begin_layout Plain Layout
3397 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3400 \begin_layout Plain Layout
3406 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3409 \begin_layout Plain Layout
3416 <row endhead="true">
3417 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3420 \begin_layout Plain Layout
3428 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3431 \begin_layout Plain Layout
3437 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3440 \begin_layout Plain Layout
3449 <row endfoot="true">
3450 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3453 \begin_layout Plain Layout
3454 continued on next page
3459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3462 \begin_layout Plain Layout
3468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3471 \begin_layout Plain Layout
3479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3482 \begin_layout Plain Layout
3490 <cell alignment="center" valignment="top" usebox="none">
3493 \begin_layout Plain Layout
3499 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3502 \begin_layout Plain Layout
3510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3513 \begin_layout Plain Layout
3521 <cell alignment="center" valignment="top" usebox="none">
3524 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3533 \begin_layout Plain Layout
3541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3544 \begin_layout Plain Layout
3552 <cell alignment="center" valignment="top" usebox="none">
3555 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3564 \begin_layout Plain Layout
3572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3575 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" usebox="none">
3586 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3595 \begin_layout Plain Layout
3603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3606 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" usebox="none">
3617 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3626 \begin_layout Plain Layout
3634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3637 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" usebox="none">
3648 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3657 \begin_layout Plain Layout
3665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3668 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" usebox="none">
3679 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3688 \begin_layout Plain Layout
3696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3699 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" usebox="none">
3710 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3719 \begin_layout Plain Layout
3727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3730 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" usebox="none">
3741 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3750 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3761 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" usebox="none">
3772 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3781 \begin_layout Plain Layout
3789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3792 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" usebox="none">
3803 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3812 \begin_layout Plain Layout
3820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3823 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" usebox="none">
3834 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3843 \begin_layout Plain Layout
3851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3854 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" usebox="none">
3865 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3874 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" usebox="none">
3896 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3905 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" usebox="none">
3927 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3936 \begin_layout Plain Layout
3944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3947 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" usebox="none">
3958 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3967 \begin_layout Plain Layout
3975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3978 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" usebox="none">
3989 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3998 \begin_layout Plain Layout
4006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4009 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" usebox="none">
4020 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4029 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4040 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" usebox="none">
4051 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4060 \begin_layout Plain Layout
4068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4071 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" usebox="none">
4082 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4091 \begin_layout Plain Layout
4099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4102 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" usebox="none">
4113 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4122 \begin_layout Plain Layout
4130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4133 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" usebox="none">
4144 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4153 \begin_layout Plain Layout
4161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4164 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" usebox="none">
4175 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4184 \begin_layout Plain Layout
4192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" usebox="none">
4206 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4215 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" usebox="none">
4237 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4246 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="center" valignment="top" usebox="none">
4268 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4277 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="center" valignment="top" usebox="none">
4299 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4308 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="center" valignment="top" usebox="none">
4330 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4339 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="center" valignment="top" usebox="none">
4361 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4370 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="center" valignment="top" usebox="none">
4392 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4401 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4423 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4432 \begin_layout Plain Layout
4440 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4449 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4452 \begin_layout Plain Layout
4458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4461 \begin_layout Plain Layout
4469 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell alignment="center" valignment="top" usebox="none">
4483 \begin_layout Plain Layout
4489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4492 \begin_layout Plain Layout
4500 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4503 \begin_layout Plain Layout
4511 <cell alignment="center" valignment="top" usebox="none">
4514 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4523 \begin_layout Plain Layout
4531 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4534 \begin_layout Plain Layout
4542 <cell alignment="center" valignment="top" usebox="none">
4545 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4554 \begin_layout Plain Layout
4562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" usebox="none">
4576 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4585 \begin_layout Plain Layout
4593 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" usebox="none">
4607 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4616 \begin_layout Plain Layout
4624 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4627 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" usebox="none">
4638 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4647 \begin_layout Plain Layout
4655 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4658 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" usebox="none">
4669 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4678 \begin_layout Plain Layout
4686 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4689 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" usebox="none">
4700 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4709 \begin_layout Plain Layout
4717 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4720 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" usebox="none">
4731 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4740 \begin_layout Plain Layout
4748 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4751 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" usebox="none">
4762 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4771 \begin_layout Plain Layout
4779 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4782 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" usebox="none">
4793 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4802 \begin_layout Plain Layout
4810 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4813 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" usebox="none">
4824 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4833 \begin_layout Plain Layout
4841 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4844 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" usebox="none">
4855 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4864 \begin_layout Plain Layout
4872 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4875 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" usebox="none">
4886 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4895 \begin_layout Plain Layout
4903 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4906 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" usebox="none">
4917 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4926 \begin_layout Plain Layout
4934 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4937 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" usebox="none">
4948 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4957 \begin_layout Plain Layout
4965 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4968 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" usebox="none">
4979 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4988 \begin_layout Plain Layout
4996 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4999 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" usebox="none">
5010 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5019 \begin_layout Plain Layout
5027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5030 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" usebox="none">
5041 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5050 \begin_layout Plain Layout
5058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5061 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" usebox="none">
5072 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5081 \begin_layout Plain Layout
5089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5092 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" usebox="none">
5103 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5112 \begin_layout Plain Layout
5120 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5123 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" usebox="none">
5134 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5143 \begin_layout Plain Layout
5151 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5154 \begin_layout Plain Layout
5162 <cell alignment="center" valignment="top" usebox="none">
5165 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5174 \begin_layout Plain Layout
5182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5185 \begin_layout Plain Layout
5193 <cell alignment="center" valignment="top" usebox="none">
5196 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5205 \begin_layout Plain Layout
5213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5216 \begin_layout Plain Layout
5224 <cell alignment="center" valignment="top" usebox="none">
5227 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5236 \begin_layout Plain Layout
5244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5247 \begin_layout Plain Layout
5255 <cell alignment="center" valignment="top" usebox="none">
5258 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5267 \begin_layout Plain Layout
5275 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5278 \begin_layout Plain Layout
5286 <cell alignment="center" valignment="top" usebox="none">
5289 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5298 \begin_layout Plain Layout
5306 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5309 \begin_layout Plain Layout
5317 <cell alignment="center" valignment="top" usebox="none">
5320 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5329 \begin_layout Plain Layout
5337 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5340 \begin_layout Plain Layout
5348 <cell alignment="center" valignment="top" usebox="none">
5351 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5360 \begin_layout Plain Layout
5368 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5371 \begin_layout Plain Layout
5379 <cell alignment="center" valignment="top" usebox="none">
5382 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5391 \begin_layout Plain Layout
5399 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5402 \begin_layout Plain Layout
5410 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5413 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5422 \begin_layout Plain Layout
5429 <row endlastfoot="true">
5430 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5433 \begin_layout Plain Layout
5439 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5442 \begin_layout Plain Layout
5448 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5451 \begin_layout Plain Layout
5466 \begin_layout Plain Layout
5470 addtocounter{table}{-1}
5476 \begin_inset Note Note
5479 \begin_layout Plain Layout
5480 See the first greyed-out note in section
5481 \begin_inset space ~
5485 \begin_inset CommandInset ref
5487 reference "subsec:Multi-page-Table-Captions"
5491 for an explanation of this command.
5499 \begin_layout Subsection
5500 Footnotes in Multi-page tables
5501 \begin_inset CommandInset label
5503 name "subsec:Footnotes-in-Multi-page"
5508 \begin_inset Index idx
5511 \begin_layout Plain Layout
5512 Table ! Multi-page Table ! Footnotes
5520 \begin_layout Standard
5521 Footnotes can be inserted to every Multi-page table cell.
5522 They appear at the bottom of the page where the table cell with the footnote
5525 \begin_inset space ~
5529 \begin_inset CommandInset ref
5531 reference "tab:DiffCaptions"
5535 has for example a footnote.
5538 \begin_layout Subsection
5539 Multi-page Table Alignment
5540 \begin_inset Index idx
5543 \begin_layout Plain Layout
5544 Table ! Multi-page Table ! Alignment
5552 \begin_layout Standard
5553 The horizontal alignment of multi-page tables can be set in the table settings
5555 For left- and right-alignment the table will be directly at the page border.
5556 To add space between the table and the border one has to set the alignment
5557 to center and change the value of the \SpecialChar LaTeX
5570 by inserting this line as \SpecialChar TeX
5571 Code before the multi-page table:
5574 \begin_layout Standard
5584 \begin_layout Standard
5585 The value can have any of the units listed in Table
5586 \begin_inset space ~
5590 \begin_inset CommandInset ref
5592 reference "tab:Units"
5603 controls the horizontal distance from the left page border to the multi-page
5610 the distance from the right side.
5611 The default value for both lengths is
5617 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5621 \begin_layout Standard
5622 The following multi-page table was centered and
5638 \begin_layout Plain Layout
5654 \begin_layout Standard
5655 \begin_inset Tabular
5656 <lyxtabular version="3" rows="5" columns="5">
5657 <features islongtable="true" longtabularalignment="center">
5658 <column alignment="center" valignment="top">
5659 <column alignment="center" valignment="top" width="0pt">
5660 <column alignment="center" valignment="top">
5661 <column alignment="center" valignment="top">
5662 <column alignment="center" valignment="top">
5664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5667 \begin_layout Plain Layout
5673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5676 \begin_layout Plain Layout
5682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5685 \begin_layout Plain Layout
5691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5694 \begin_layout Plain Layout
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5703 \begin_layout Plain Layout
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5714 \begin_layout Plain Layout
5720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5723 \begin_layout Plain Layout
5729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5732 \begin_layout Plain Layout
5738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5741 \begin_layout Plain Layout
5747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5750 \begin_layout Plain Layout
5758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5761 \begin_layout Plain Layout
5767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5770 \begin_layout Plain Layout
5776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5779 \begin_layout Plain Layout
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5788 \begin_layout Plain Layout
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5797 \begin_layout Plain Layout
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5808 \begin_layout Plain Layout
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Plain Layout
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5826 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5844 \begin_layout Plain Layout
5852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5855 \begin_layout Plain Layout
5861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5873 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5882 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5891 \begin_layout Plain Layout
5906 \begin_layout Plain Layout
5923 \begin_layout Plain Layout
5927 addtocounter{table}{-1}
5933 \begin_inset Note Note
5936 \begin_layout Plain Layout
5937 See the first greyed-out note in section
5938 \begin_inset space ~
5942 \begin_inset CommandInset ref
5944 reference "subsec:Multi-page-Table-Captions"
5948 for an explanation of this command.
5956 \begin_layout Subsection
5957 Multi-page Table Captions
5958 \begin_inset Index idx
5961 \begin_layout Plain Layout
5962 Table ! Multi-page Table ! Captions
5968 \begin_inset CommandInset label
5970 name "subsec:Multi-page-Table-Captions"
5977 \begin_layout Standard
5978 A multi-page table cannot be put into a table float because floats can only
5980 But the caption environment of floats can also be used for multi-page tables
5981 when you use the multi-page table option
5985 as described in sec.
5986 \begin_inset space \thinspace{}
5990 \begin_inset CommandInset ref
5992 reference "sec:Multi-page-Tables"
5997 Only one table row should contain a caption, either a header or a footer
6001 \begin_layout Standard
6002 Here is a short multi-page table to see how it works:
6005 \begin_layout Standard
6006 \begin_inset Tabular
6007 <lyxtabular version="3" rows="6" columns="5">
6008 <features islongtable="true" longtabularalignment="center">
6009 <column alignment="center" valignment="top">
6010 <column alignment="center" valignment="top">
6011 <column alignment="center" valignment="top">
6012 <column alignment="center" valignment="top">
6013 <column alignment="center" valignment="top">
6014 <row endfirsthead="true" caption="true">
6015 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6018 \begin_layout Plain Layout
6019 \begin_inset Caption Standard
6021 \begin_layout Plain Layout
6022 Multi-page table with caption
6023 \begin_inset Argument 1
6026 \begin_layout Plain Layout
6042 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6045 \begin_layout Plain Layout
6051 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6054 \begin_layout Plain Layout
6060 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6063 \begin_layout Plain Layout
6069 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6072 \begin_layout Plain Layout
6080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6083 \begin_layout Plain Layout
6089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6092 \begin_layout Plain Layout
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6101 \begin_layout Plain Layout
6107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6110 \begin_layout Plain Layout
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6119 \begin_layout Plain Layout
6127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6130 \begin_layout Plain Layout
6136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6139 \begin_layout Plain Layout
6145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6148 \begin_layout Plain Layout
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6157 \begin_layout Plain Layout
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6166 \begin_layout Plain Layout
6174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6177 \begin_layout Plain Layout
6183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6186 \begin_layout Plain Layout
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6195 \begin_layout Plain Layout
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6213 \begin_layout Plain Layout
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6260 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6298 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6307 \begin_layout Plain Layout
6321 \begin_layout Standard
6322 \begin_inset VSpace medskip
6326 \begin_inset Note Greyedout
6329 \begin_layout Plain Layout
6333 \begin_inset space ~
6338 The table number is increased for every multi-page table, even if you did
6339 not set a caption for it.
6340 For this reason you could have the case that e.
6341 \begin_inset space \thinspace{}
6345 \begin_inset space \space{}
6349 \begin_inset space ~
6353 \begin_inset space ~
6356 2.1 in the list of tables if there are two multi-page tables without captions.
6357 To avoid this you can add the following command in \SpecialChar TeX
6358 Code after every multi-page
6359 table without a caption:
6362 \begin_layout Plain Layout
6367 addtocounter{table}{-1}
6370 \begin_layout Plain Layout
6371 This is not needed when none of your multi-page tables has a caption and
6372 you add the following code to the document preamble:
6375 \begin_layout Plain Layout
6385 \begin_inset Newline newline
6396 addtocounter{table}{-1}}
6404 \begin_layout Standard
6405 \begin_inset Note Greyedout
6408 \begin_layout Plain Layout
6412 \begin_inset space ~
6422 \begin_inset Index idx
6425 \begin_layout Plain Layout
6427 -packages ! hyperref
6440 dialog to link cross-references, the link to a multi-page table caption
6441 will always point to the beginning of the document.
6449 \begin_layout Subsubsection
6450 References to multi-page tables
6451 \begin_inset Index idx
6454 \begin_layout Plain Layout
6455 Table ! Multi-page Table ! References
6463 \begin_layout Standard
6464 \begin_inset Tabular
6465 <lyxtabular version="3" rows="6" columns="5">
6466 <features islongtable="true" longtabularalignment="center">
6467 <column alignment="center" valignment="top">
6468 <column alignment="center" valignment="top">
6469 <column alignment="center" valignment="top">
6470 <column alignment="center" valignment="top">
6471 <column alignment="center" valignment="top">
6472 <row endfirsthead="true" caption="true">
6473 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6476 \begin_layout Plain Layout
6477 \begin_inset Caption Standard
6479 \begin_layout Plain Layout
6480 Referenced multi-page table
6481 \begin_inset CommandInset label
6483 name "tab:Referenced-multi-page-table"
6497 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6500 \begin_layout Plain Layout
6506 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6509 \begin_layout Plain Layout
6515 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6518 \begin_layout Plain Layout
6524 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6527 \begin_layout Plain Layout
6535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6538 \begin_layout Plain Layout
6544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6547 \begin_layout Plain Layout
6553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6556 \begin_layout Plain Layout
6562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6565 \begin_layout Plain Layout
6571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6574 \begin_layout Plain Layout
6582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6585 \begin_layout Plain Layout
6591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6594 \begin_layout Plain Layout
6600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6603 \begin_layout Plain Layout
6609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6612 \begin_layout Plain Layout
6618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6621 \begin_layout Plain Layout
6629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6632 \begin_layout Plain Layout
6638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6641 \begin_layout Plain Layout
6647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6668 \begin_layout Plain Layout
6676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6679 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6715 \begin_layout Plain Layout
6723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6726 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6762 \begin_layout Plain Layout
6776 \begin_layout Standard
6777 To reference a multi-page table, insert a label into the caption.
6780 \begin_layout Standard
6781 This is a reference to Table
6782 \begin_inset space ~
6786 \begin_inset CommandInset ref
6788 reference "tab:Referenced-multi-page-table"
6795 \begin_layout Standard
6796 The caption layout can be set together with all other captions of your document
6797 using the \SpecialChar LaTeX
6803 \begin_inset Index idx
6806 \begin_layout Plain Layout
6814 \begin_inset space ~
6818 \begin_inset CommandInset ref
6820 reference "sec:Caption-Formatting"
6827 \begin_layout Subsubsection
6829 \begin_inset Index idx
6832 \begin_layout Plain Layout
6833 Table ! Multi-page Table ! Caption Width
6841 \begin_layout Standard
6842 The maximal width of caption lines is defined by the length
6849 Its default value is 4
6850 \begin_inset space \thinspace{}
6854 To change it add the following command to your document preamble or as
6856 Code into your document before the multi-page table that should be affected
6859 \begin_layout Standard
6869 \begin_layout Standard
6874 can have one of the units listed in appendix
6875 \begin_inset space ~
6879 \begin_inset CommandInset ref
6881 reference "cha:Units-available-in"
6888 \begin_layout Standard
6889 The following tables show the difference:
6892 \begin_layout Standard
6893 \begin_inset Tabular
6894 <lyxtabular version="3" rows="6" columns="5">
6895 <features islongtable="true" longtabularalignment="center">
6896 <column alignment="center" valignment="top">
6897 <column alignment="center" valignment="top">
6898 <column alignment="center" valignment="top">
6899 <column alignment="center" valignment="top">
6900 <column alignment="center" valignment="top">
6901 <row endfirsthead="true" caption="true">
6902 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6905 \begin_layout Plain Layout
6906 \begin_inset Caption Standard
6908 \begin_layout Plain Layout
6909 Long full title with default width long full title with default width long
6910 full title with default width
6911 \begin_inset Argument 1
6914 \begin_layout Plain Layout
6915 caption with default width
6930 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6933 \begin_layout Plain Layout
6939 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6942 \begin_layout Plain Layout
6948 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6951 \begin_layout Plain Layout
6957 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6960 \begin_layout Plain Layout
6968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6971 \begin_layout Plain Layout
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6980 \begin_layout Plain Layout
6986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6989 \begin_layout Plain Layout
6995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6998 \begin_layout Plain Layout
7004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7007 \begin_layout Plain Layout
7015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7018 \begin_layout Plain Layout
7024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7027 \begin_layout Plain Layout
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7036 \begin_layout Plain Layout
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7045 \begin_layout Plain Layout
7051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7054 \begin_layout Plain Layout
7062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7065 \begin_layout Plain Layout
7071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7074 \begin_layout Plain Layout
7080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7083 \begin_layout Plain Layout
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Plain Layout
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7101 \begin_layout Plain Layout
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Plain Layout
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7121 \begin_layout Plain Layout
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7130 \begin_layout Plain Layout
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Plain Layout
7145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7148 \begin_layout Plain Layout
7156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7159 \begin_layout Plain Layout
7165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7168 \begin_layout Plain Layout
7174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7177 \begin_layout Plain Layout
7183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7186 \begin_layout Plain Layout
7192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7195 \begin_layout Plain Layout
7209 \begin_layout Standard
7213 \begin_layout Plain Layout
7225 \begin_inset Tabular
7226 <lyxtabular version="3" rows="6" columns="5">
7227 <features islongtable="true" longtabularalignment="center">
7228 <column alignment="center" valignment="top">
7229 <column alignment="center" valignment="top">
7230 <column alignment="center" valignment="top">
7231 <column alignment="center" valignment="top">
7232 <column alignment="center" valignment="top">
7233 <row endfirsthead="true" caption="true">
7234 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7237 \begin_layout Plain Layout
7238 \begin_inset Caption Standard
7240 \begin_layout Plain Layout
7241 Long full title with width set to 5
7242 \begin_inset space \thinspace{}
7245 cm long full title with width set to 5
7246 \begin_inset space \thinspace{}
7249 cm long full title with width set to 5
7250 \begin_inset space \thinspace{}
7254 \begin_inset Argument 1
7257 \begin_layout Plain Layout
7259 \begin_inset space \thinspace{}
7263 \begin_inset space \thinspace{}
7267 \begin_inset space \thinspace{}
7285 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7288 \begin_layout Plain Layout
7294 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7297 \begin_layout Plain Layout
7303 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7306 \begin_layout Plain Layout
7312 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7315 \begin_layout Plain Layout
7323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7326 \begin_layout Plain Layout
7332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7335 \begin_layout Plain Layout
7341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7344 \begin_layout Plain Layout
7350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7353 \begin_layout Plain Layout
7359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7362 \begin_layout Plain Layout
7370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7373 \begin_layout Plain Layout
7379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7382 \begin_layout Plain Layout
7388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7391 \begin_layout Plain Layout
7397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7400 \begin_layout Plain Layout
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7409 \begin_layout Plain Layout
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7420 \begin_layout Plain Layout
7426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7429 \begin_layout Plain Layout
7435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7438 \begin_layout Plain Layout
7444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7447 \begin_layout Plain Layout
7453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7456 \begin_layout Plain Layout
7464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7467 \begin_layout Plain Layout
7473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7476 \begin_layout Plain Layout
7482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7485 \begin_layout Plain Layout
7491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7494 \begin_layout Plain Layout
7500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7503 \begin_layout Plain Layout
7511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7514 \begin_layout Plain Layout
7520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7523 \begin_layout Plain Layout
7529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7532 \begin_layout Plain Layout
7538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Plain Layout
7564 \begin_layout Standard
7568 \begin_layout Plain Layout
7582 \begin_layout Standard
7583 \begin_inset Note Greyedout
7586 \begin_layout Plain Layout
7591 When the \SpecialChar LaTeX
7597 \begin_inset Index idx
7600 \begin_layout Plain Layout
7607 is used, as in this document, the full page width is used for the caption
7608 when you use the default value of 4
7609 \begin_inset space \thinspace{}
7619 To get in this case exactly a 4
7620 \begin_inset space \thinspace{}
7623 in wide caption, you can either use a value slightly different from 4.0
7624 \begin_inset space \thinspace{}
7628 \begin_inset space \thinspace{}
7632 \begin_inset space \space{}
7636 \begin_inset space \thinspace{}
7639 in, or the \SpecialChar LaTeX
7644 captionsetup{width=value}
7646 that is provided by the
7658 \begin_layout Subsubsection
7659 Different Captions for Table Pages
7660 \begin_inset Index idx
7663 \begin_layout Plain Layout
7664 Table ! Multi-page Table ! Different Captions for Pages
7672 \begin_layout Standard
7673 When the table captions for the following pages should differ from the one
7674 of the first table page, mark a empty row as header which contains a caption.
7675 Then right-click on the caption and select in the context menu
7678 \begin_inset space ~
7685 \begin_inset space ~
7689 \begin_inset CommandInset ref
7691 reference "tab:DiffCaptions"
7695 is an example of a multi-page table with different heading where the second
7696 caption does not include the table number.
7699 \begin_layout Standard
7701 \begin_inset Tabular
7702 <lyxtabular version="3" rows="59" columns="3">
7703 <features islongtable="true" longtabularalignment="center">
7704 <column alignment="left" valignment="top" width="0cm">
7705 <column alignment="left" valignment="top" width="0pt">
7706 <column alignment="center" valignment="top" width="0pt">
7707 <row endfirsthead="true" caption="true">
7708 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7711 \begin_layout Plain Layout
7712 \begin_inset Caption Standard
7714 \begin_layout Plain Layout
7716 \begin_inset CommandInset label
7718 name "tab:DiffCaptions"
7723 \begin_inset Argument 1
7726 \begin_layout Plain Layout
7742 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7745 \begin_layout Plain Layout
7751 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Plain Layout
7761 <row endfirsthead="true">
7762 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7765 \begin_layout Plain Layout
7768 Example Phone List (ignore the names)
7773 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7776 \begin_layout Plain Layout
7782 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7785 \begin_layout Plain Layout
7792 <row endfirsthead="true">
7793 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7796 \begin_layout Plain Layout
7804 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7807 \begin_layout Plain Layout
7813 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Plain Layout
7825 <row endhead="true" caption="true">
7826 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7829 \begin_layout Plain Layout
7830 \begin_inset Caption Unnumbered
7832 \begin_layout Plain Layout
7833 Continued Example Phone List
7843 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7846 \begin_layout Plain Layout
7852 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7855 \begin_layout Plain Layout
7862 <row endhead="true">
7863 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7866 \begin_layout Plain Layout
7874 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7877 \begin_layout Plain Layout
7883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7886 \begin_layout Plain Layout
7893 <row endhead="true">
7894 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7897 \begin_layout Plain Layout
7905 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7908 \begin_layout Plain Layout
7914 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7917 \begin_layout Plain Layout
7926 <row endfoot="true">
7927 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7930 \begin_layout Plain Layout
7931 continued on next page
7936 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7939 \begin_layout Plain Layout
7945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7948 \begin_layout Plain Layout
7956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7959 \begin_layout Plain Layout
7967 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7970 \begin_layout Plain Layout
7976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7979 \begin_layout Plain Layout
7987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7990 \begin_layout Plain Layout
7998 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8001 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8010 \begin_layout Plain Layout
8018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8021 \begin_layout Plain Layout
8029 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8032 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8041 \begin_layout Plain Layout
8049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8052 \begin_layout Plain Layout
8060 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8063 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8072 \begin_layout Plain Layout
8080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8083 \begin_layout Plain Layout
8091 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8094 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8103 \begin_layout Plain Layout
8111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8114 \begin_layout Plain Layout
8122 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8125 \begin_layout Plain Layout
8131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8134 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8153 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8156 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8184 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8187 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8215 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8218 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8246 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8249 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8277 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8280 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8308 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8311 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8339 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8342 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8370 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8373 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8402 \begin_layout Plain Layout
8413 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8416 \begin_layout Plain Layout
8422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8425 \begin_layout Plain Layout
8433 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8436 \begin_layout Plain Layout
8444 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8447 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8456 \begin_layout Plain Layout
8464 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8467 \begin_layout Plain Layout
8475 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8478 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8487 \begin_layout Plain Layout
8495 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8498 \begin_layout Plain Layout
8506 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8509 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8518 \begin_layout Plain Layout
8526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8529 \begin_layout Plain Layout
8537 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8540 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8549 \begin_layout Plain Layout
8557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8560 \begin_layout Plain Layout
8568 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8571 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8580 \begin_layout Plain Layout
8588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8591 \begin_layout Plain Layout
8599 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8602 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8611 \begin_layout Plain Layout
8619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8622 \begin_layout Plain Layout
8630 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8633 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8642 \begin_layout Plain Layout
8650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8653 \begin_layout Plain Layout
8661 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8664 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8673 \begin_layout Plain Layout
8681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8684 \begin_layout Plain Layout
8692 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8695 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8704 \begin_layout Plain Layout
8712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8715 \begin_layout Plain Layout
8723 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8726 \begin_layout Plain Layout
8732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8735 \begin_layout Plain Layout
8743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8746 \begin_layout Plain Layout
8754 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8757 \begin_layout Plain Layout
8763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8766 \begin_layout Plain Layout
8774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8777 \begin_layout Plain Layout
8785 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8788 \begin_layout Plain Layout
8794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8797 \begin_layout Plain Layout
8805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8808 \begin_layout Plain Layout
8816 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8819 \begin_layout Plain Layout
8825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8828 \begin_layout Plain Layout
8836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8839 \begin_layout Plain Layout
8847 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8850 \begin_layout Plain Layout
8856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8859 \begin_layout Plain Layout
8867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8870 \begin_layout Plain Layout
8878 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8881 \begin_layout Plain Layout
8887 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8890 \begin_layout Plain Layout
8898 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8901 \begin_layout Plain Layout
8909 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8912 \begin_layout Plain Layout
8918 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8921 \begin_layout Plain Layout
8929 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8932 \begin_layout Plain Layout
8938 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8941 \begin_layout Plain Layout
8947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8950 \begin_layout Plain Layout
8958 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8961 \begin_layout Plain Layout
8969 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8972 \begin_layout Plain Layout
8978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8981 \begin_layout Plain Layout
8989 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8992 \begin_layout Plain Layout
9000 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9003 \begin_layout Plain Layout
9009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9012 \begin_layout Plain Layout
9020 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9023 \begin_layout Plain Layout
9031 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9034 \begin_layout Plain Layout
9040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9043 \begin_layout Plain Layout
9051 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9054 \begin_layout Plain Layout
9062 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9065 \begin_layout Plain Layout
9071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9074 \begin_layout Plain Layout
9082 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9085 \begin_layout Plain Layout
9093 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9096 \begin_layout Plain Layout
9102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9105 \begin_layout Plain Layout
9113 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9116 \begin_layout Plain Layout
9124 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9127 \begin_layout Plain Layout
9133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9136 \begin_layout Plain Layout
9144 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9147 \begin_layout Plain Layout
9155 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9158 \begin_layout Plain Layout
9164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9167 \begin_layout Plain Layout
9175 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9178 \begin_layout Plain Layout
9186 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9189 \begin_layout Plain Layout
9195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9198 \begin_layout Plain Layout
9206 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9209 \begin_layout Plain Layout
9217 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9220 \begin_layout Plain Layout
9226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9229 \begin_layout Plain Layout
9237 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9240 \begin_layout Plain Layout
9248 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9251 \begin_layout Plain Layout
9257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9260 \begin_layout Plain Layout
9268 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9271 \begin_layout Plain Layout
9279 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9282 \begin_layout Plain Layout
9288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9291 \begin_layout Plain Layout
9299 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9302 \begin_layout Plain Layout
9310 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9313 \begin_layout Plain Layout
9319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9322 \begin_layout Plain Layout
9330 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9333 \begin_layout Plain Layout
9341 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9344 \begin_layout Plain Layout
9350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9353 \begin_layout Plain Layout
9361 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9364 \begin_layout Plain Layout
9372 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9375 \begin_layout Plain Layout
9381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9384 \begin_layout Plain Layout
9392 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9395 \begin_layout Plain Layout
9403 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9406 \begin_layout Plain Layout
9412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9415 \begin_layout Plain Layout
9423 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9426 \begin_layout Plain Layout
9434 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9437 \begin_layout Plain Layout
9443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9446 \begin_layout Plain Layout
9454 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9457 \begin_layout Plain Layout
9465 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9468 \begin_layout Plain Layout
9474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9477 \begin_layout Plain Layout
9485 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9488 \begin_layout Plain Layout
9496 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9499 \begin_layout Plain Layout
9505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9508 \begin_layout Plain Layout
9516 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9519 \begin_layout Plain Layout
9527 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9530 \begin_layout Plain Layout
9536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9539 \begin_layout Plain Layout
9547 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9550 \begin_layout Plain Layout
9558 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9561 \begin_layout Plain Layout
9567 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9570 \begin_layout Plain Layout
9584 \begin_layout Section
9585 Special Multi-page Table Issues
9586 \begin_inset CommandInset label
9588 name "sec:Special-Longtable-Issues"
9595 \begin_layout Subsection
9596 Multi-page Table Calculation
9597 \begin_inset Index idx
9600 \begin_layout Plain Layout
9601 Table ! Multi-page Table ! Calculation
9609 \begin_layout Standard
9611 calculates the height of table pages and their page breaks using so called
9613 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9615 The default value was historically set to only 20
9616 \begin_inset space ~
9620 If you are using multi-page tables with many pages this may slow down the
9621 creation of your document.
9622 You can safely increase the chunk size to values of 100
9623 \begin_inset space \thinspace{}
9627 \begin_inset space \thinspace{}
9630 1000 by adding this command line to your document preamble:
9633 \begin_layout Standard
9638 setcounter{LTchunksize}{100}
9641 \begin_layout Subsection
9642 Floats and Multi-page Tables
9643 \begin_inset Index idx
9646 \begin_layout Plain Layout
9647 Table ! Multi-page Table ! Floats
9655 \begin_layout Standard
9656 There might be problems when a float appears on the same page where a multi-page
9658 To avoid such a situation, insert a
9659 \begin_inset Quotes eld
9663 \begin_inset Quotes erd
9668 Insert\SpecialChar menuseparator
9669 Formatting\SpecialChar menuseparator
9671 \begin_inset space ~
9676 ) before your multi-page table.
9679 \begin_layout Subsection
9681 \begin_inset Index idx
9684 \begin_layout Plain Layout
9685 Table ! Multi-page Table ! Forced Page Breaks
9693 \begin_layout Standard
9694 By default tables are only broken between rows.
9695 If you have a cell with multiples lines and want to have a page break within
9696 the cell, insert the new line command
9697 \begin_inset Quotes eld
9709 \begin_inset Quotes erd
9713 Code at the point of the cell where it can be broken.
9722 command you have to insert in \SpecialChar TeX
9724 \begin_inset Quotes eld
9732 \begin_inset Quotes erd
9735 characters as the number of the following table columns.
9740 is the character to separate table cells.
9741 Write in \SpecialChar TeX
9746 the content of the corresponding following cell and delete the content
9748 \begin_inset Newline newline
9759 command, insert as many
9763 characters as the number of table columns before the current column.
9765 \begin_inset space ~
9769 \begin_inset CommandInset ref
9771 reference "tab:ForcedPagebreak"
9775 the cell that should be broken is in the second column followed by another
9777 Therefore the following command was inserted in the cell as \SpecialChar TeX
9780 \begin_inset Quotes eld
9788 \begin_inset Quotes erd
9794 \begin_layout Standard
9804 \begin_inset Newline newline
9810 \begin_layout Standard
9812 \begin_inset Quotes eld
9816 \begin_inset Quotes erd
9819 in the third column of the row was deleted.
9826 is only needed when a page break should definitely occur at this position,
9827 otherwise it would be a conditional break.
9828 If your footer row of the multi-page table has for a certain reason no
9829 upper line but you would have a horizontal line where the cell is broken,
9830 use this command instead:
9833 \begin_layout Standard
9841 \begin_inset Newline newline
9849 \begin_layout Standard
9850 When the cell to be broken is in the last column, the command
9853 \begin_layout Standard
9863 \begin_layout Standard
9864 must be inserted as \SpecialChar TeX
9865 Code at the beginning of the cell.
9866 This ensures that the part of the cell that will be displayed on the new
9867 page appears with the full width.
9870 \begin_layout Standard
9872 \begin_inset Tabular
9873 <lyxtabular version="3" rows="38" columns="3">
9874 <features islongtable="true" longtabularalignment="center">
9875 <column alignment="left" valignment="top" width="0cm">
9876 <column alignment="left" valignment="top" width="3cm">
9877 <column alignment="center" valignment="top" width="0pt">
9878 <row endfirsthead="true" caption="true">
9879 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9882 \begin_layout Plain Layout
9883 \begin_inset Caption Standard
9885 \begin_layout Plain Layout
9886 Table with forced page break in table cell
9887 \begin_inset CommandInset label
9889 name "tab:ForcedPagebreak"
9894 \begin_inset Argument 1
9897 \begin_layout Plain Layout
9898 Table with forced page break in table cell
9913 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9916 \begin_layout Plain Layout
9922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9925 \begin_layout Plain Layout
9932 <row endfirsthead="true">
9933 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9939 Example Phone List (ignore the names)
9944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9953 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9956 \begin_layout Plain Layout
9963 <row endfirsthead="true">
9964 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9967 \begin_layout Plain Layout
9975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9978 \begin_layout Plain Layout
9984 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9987 \begin_layout Plain Layout
9996 <row endhead="true" caption="true">
9997 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10000 \begin_layout Plain Layout
10001 \begin_inset Caption Unnumbered
10003 \begin_layout Plain Layout
10004 Continued Example Phone List
10014 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10017 \begin_layout Plain Layout
10023 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10026 \begin_layout Plain Layout
10033 <row endhead="true">
10034 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10048 \begin_layout Plain Layout
10054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10057 \begin_layout Plain Layout
10064 <row endhead="true">
10065 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10079 \begin_layout Plain Layout
10085 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10088 \begin_layout Plain Layout
10097 <row endfoot="true">
10098 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10101 \begin_layout Plain Layout
10102 continued on next page
10107 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10110 \begin_layout Plain Layout
10116 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10119 \begin_layout Plain Layout
10127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10130 \begin_layout Plain Layout
10138 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10141 \begin_layout Plain Layout
10147 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10150 \begin_layout Plain Layout
10158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10161 \begin_layout Plain Layout
10169 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10172 \begin_layout Plain Layout
10178 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10181 \begin_layout Plain Layout
10189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10192 \begin_layout Plain Layout
10200 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10203 \begin_layout Plain Layout
10209 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10212 \begin_layout Plain Layout
10220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10223 \begin_layout Plain Layout
10231 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10234 \begin_layout Plain Layout
10240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10243 \begin_layout Plain Layout
10251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10254 \begin_layout Plain Layout
10262 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10265 \begin_layout Plain Layout
10271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10274 \begin_layout Plain Layout
10282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10285 \begin_layout Plain Layout
10293 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10296 \begin_layout Plain Layout
10302 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10305 \begin_layout Plain Layout
10313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10316 \begin_layout Plain Layout
10324 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10327 \begin_layout Plain Layout
10333 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10336 \begin_layout Plain Layout
10344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10347 \begin_layout Plain Layout
10355 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10358 \begin_layout Plain Layout
10364 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10367 \begin_layout Plain Layout
10375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10378 \begin_layout Plain Layout
10386 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10389 \begin_layout Plain Layout
10395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10398 \begin_layout Plain Layout
10406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10409 \begin_layout Plain Layout
10417 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10420 \begin_layout Plain Layout
10426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10429 \begin_layout Plain Layout
10437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10440 \begin_layout Plain Layout
10448 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10451 \begin_layout Plain Layout
10457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10460 \begin_layout Plain Layout
10468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10471 \begin_layout Plain Layout
10479 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10482 \begin_layout Plain Layout
10488 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10491 \begin_layout Plain Layout
10499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10502 \begin_layout Plain Layout
10510 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10513 \begin_layout Plain Layout
10519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10522 \begin_layout Plain Layout
10530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10533 \begin_layout Plain Layout
10541 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10544 \begin_layout Plain Layout
10550 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10553 \begin_layout Plain Layout
10561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10564 \begin_layout Plain Layout
10572 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10575 \begin_layout Plain Layout
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10626 \begin_layout Plain Layout
10634 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10657 \begin_layout Plain Layout
10665 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10688 \begin_layout Plain Layout
10696 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10719 \begin_layout Plain Layout
10727 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10750 \begin_layout Plain Layout
10758 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10781 \begin_layout Plain Layout
10789 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10812 \begin_layout Plain Layout
10820 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10825 Fürst von Montecompatri, 11.
10826 Fürst von Sulmona und Vivaro, 10.
10827 Fürst von Rossano, 5.
10828 Herzog von Canemorte, 11.
10829 Herzog von Palombara, 5.
10830 Herzog von Castelchiodato,
10834 \begin_layout Plain Layout
10845 \begin_layout Plain Layout
10853 Herzog von Poggionativo, 11.
10854 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10855 Graf von Valinfreda, 11.
10856 Baron von Cropalati, 11.
10857 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10862 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10865 \begin_layout Plain Layout
10873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10876 \begin_layout Plain Layout
10884 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10887 \begin_layout Plain Layout
10893 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10896 \begin_layout Plain Layout
10904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10907 \begin_layout Plain Layout
10915 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10918 \begin_layout Plain Layout
10924 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10927 \begin_layout Plain Layout
10935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10938 \begin_layout Plain Layout
10946 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10949 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10969 \begin_layout Plain Layout
10977 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10980 \begin_layout Plain Layout
10986 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10989 \begin_layout Plain Layout
10997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11000 \begin_layout Plain Layout
11008 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11011 \begin_layout Plain Layout
11017 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11020 \begin_layout Plain Layout
11028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11031 \begin_layout Plain Layout
11039 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11042 \begin_layout Plain Layout
11048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11051 \begin_layout Plain Layout
11059 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11062 \begin_layout Plain Layout
11070 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11073 \begin_layout Plain Layout
11079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11082 \begin_layout Plain Layout
11090 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11093 \begin_layout Plain Layout
11101 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11104 \begin_layout Plain Layout
11110 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11113 \begin_layout Plain Layout
11127 \begin_layout Section
11128 Multiple Lines, Columns and Rows
11131 \begin_layout Subsection
11132 Multiple Lines in Table Cells
11133 \begin_inset CommandInset label
11135 name "subsec:Multiple-Lines-in"
11140 \begin_inset Index idx
11143 \begin_layout Plain Layout
11144 Multiple Lines in Table Cells
11150 \begin_inset Index idx
11153 \begin_layout Plain Layout
11162 \begin_layout Standard
11164 \begin_inset Float table
11170 \begin_layout Plain Layout
11171 \begin_inset Caption Standard
11173 \begin_layout Plain Layout
11174 \begin_inset CommandInset label
11176 name "tab:Table-with-multiple"
11180 Table with multiple lines in cells
11188 \begin_layout Plain Layout
11190 \begin_inset Tabular
11191 <lyxtabular version="3" rows="3" columns="3">
11192 <features tabularvalignment="middle">
11193 <column alignment="center" valignment="middle" width="2.5cm">
11194 <column alignment="center" valignment="middle">
11195 <column alignment="center" valignment="middle">
11197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11200 \begin_layout Plain Layout
11202 \begin_inset Newline linebreak
11210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11213 \begin_layout Plain Layout
11219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11222 \begin_layout Plain Layout
11230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11233 \begin_layout Plain Layout
11239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11242 \begin_layout Plain Layout
11248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11251 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11262 \begin_layout Plain Layout
11268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11271 \begin_layout Plain Layout
11277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11280 \begin_layout Plain Layout
11299 \begin_layout Standard
11300 Setting a fixed width for a column enables you to enter text as a paragraph
11301 with multiple lines and hyphenation.
11304 \begin_layout Standard
11306 \begin_inset space ~
11310 \begin_inset CommandInset ref
11312 reference "tab:Table-with-multiple"
11316 , create a 3×3 table, mark the first cell and right-click on it.
11317 In the appearing table dialog we set a cell width of 2.5
11318 \begin_inset space \thinspace{}
11321 cm and choose centered for the vertical and horizontal alignment.
11322 The vertical alignment is used for all cells of the row.
11323 As our text is smaller than 2.5
11324 \begin_inset space \thinspace{}
11327 cm, only one line will appear.
11328 To get two lines, a justified line break (shortcut
11331 arg "newline-insert linebreak"
11335 If the text is wider than the set cell width, it will automatically be
11336 broken to several lines.
11339 \begin_layout Standard
11340 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11341 by \SpecialChar LaTeX
11342 if it is the first entry.
11343 Therefore you need to insert something to prevent the word not being the
11345 So add a horizontal space of 0
11346 \begin_inset space \thinspace{}
11349 pt before the word.
11350 As the space is zero, it doesn't change the output.
11352 \begin_inset space ~
11356 \begin_inset CommandInset ref
11358 reference "tab:Table-with-and"
11365 \begin_layout Standard
11366 \begin_inset Float table
11372 \begin_layout Plain Layout
11373 \begin_inset Caption Standard
11375 \begin_layout Plain Layout
11376 \begin_inset CommandInset label
11378 name "tab:Table-with-and"
11382 Table with and without hyphenation
11390 \begin_layout Plain Layout
11391 \begin_inset space \hfill{}
11395 \begin_inset Tabular
11396 <lyxtabular version="3" rows="3" columns="3">
11397 <features tabularvalignment="middle">
11398 <column alignment="center" valignment="middle" width="2.5cm">
11399 <column alignment="center" valignment="middle">
11400 <column alignment="center" valignment="middle">
11402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11405 \begin_layout Plain Layout
11406 verylongtablecellword
11411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11414 \begin_layout Plain Layout
11420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11423 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11443 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11452 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11493 \begin_inset space \hfill{}
11497 \begin_inset Tabular
11498 <lyxtabular version="3" rows="3" columns="3">
11499 <features tabularvalignment="middle">
11500 <column alignment="center" valignment="middle" width="2.5cm">
11501 <column alignment="center" valignment="middle">
11502 <column alignment="center" valignment="middle">
11504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11507 \begin_layout Plain Layout
11508 \begin_inset space \hspace{}
11512 verylongtablecellword
11517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11520 \begin_layout Plain Layout
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11529 \begin_layout Plain Layout
11537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11540 \begin_layout Plain Layout
11546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11549 \begin_layout Plain Layout
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11558 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11578 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11587 \begin_layout Plain Layout
11599 \begin_inset space \hfill{}
11610 \begin_layout Subsection
11612 \begin_inset CommandInset label
11614 name "subsec:Multicolumns"
11619 \begin_inset Index idx
11622 \begin_layout Plain Layout
11629 \begin_inset Index idx
11632 \begin_layout Plain Layout
11633 Table ! Multicolumns
11641 \begin_layout Subsubsection
11645 \begin_layout Standard
11646 To merge cells over multiple columns, select as many cells within a row
11647 as you want to merge and use either the table-toolbar button
11650 arg "tabular-feature multicolumn"
11655 Edit\SpecialChar menuseparator
11656 Table\SpecialChar menuseparator
11659 , or right click on the marked cells and choose
11663 in the context menu.
11666 \begin_layout Standard
11667 Multicolumns have their own cell settings.
11668 That means changing cell borders, cell alignment, and the width only affects
11670 Here is an example table with a multicolumn cell in the first row and one
11671 in the last row without the upper border:
11674 \begin_layout Standard
11676 \begin_inset Tabular
11677 <lyxtabular version="3" rows="3" columns="4">
11678 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11679 <column alignment="center" valignment="top" width="0pt">
11680 <column alignment="center" valignment="middle">
11681 <column alignment="center" valignment="top" width="0in">
11682 <column alignment="center" valignment="top" width="0pt">
11684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11687 \begin_layout Plain Layout
11693 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11696 \begin_layout Plain Layout
11702 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11705 \begin_layout Plain Layout
11711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11714 \begin_layout Plain Layout
11722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11743 \begin_layout Plain Layout
11749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11752 \begin_layout Plain Layout
11758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11761 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11781 \begin_layout Plain Layout
11787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11790 \begin_layout Plain Layout
11796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11799 \begin_layout Plain Layout
11813 \begin_layout Subsubsection
11814 Multicolumn Calculations
11815 \begin_inset CommandInset label
11817 name "subsec:Multicolumn-Calculations"
11822 \begin_inset Index idx
11825 \begin_layout Plain Layout
11826 Multicolumns ! Calculations
11834 \begin_layout Standard
11836 supports multicolumns directly, but we have to take account of the cell
11837 width of the columns spanned by the multicolumn cell.
11840 \begin_layout Standard
11841 \begin_inset Float table
11847 \begin_layout Plain Layout
11848 \begin_inset Caption Standard
11850 \begin_layout Plain Layout
11851 \begin_inset CommandInset label
11853 name "tab:Table-with-centered"
11857 Table with centered multicolumn text above two columns that have exactly
11858 half the width of the multicolumn cell
11859 \begin_inset Argument 1
11862 \begin_layout Plain Layout
11863 Perfect multicolumn table
11876 \begin_layout Plain Layout
11878 \begin_inset Tabular
11879 <lyxtabular version="3" rows="3" columns="3">
11880 <features tabularvalignment="middle">
11881 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11882 <column alignment="center" valignment="middle">
11883 <column alignment="center" valignment="top">
11885 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11888 \begin_layout Plain Layout
11889 multiple lines multicolumn
11894 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11897 \begin_layout Plain Layout
11903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11906 \begin_layout Plain Layout
11914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11917 \begin_layout Plain Layout
11923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11926 \begin_layout Plain Layout
11932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11935 \begin_layout Plain Layout
11943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11946 \begin_layout Plain Layout
11952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11955 \begin_layout Plain Layout
11961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_layout Plain Layout
11983 \begin_layout Standard
11984 To create for example Table
11985 \begin_inset space ~
11989 \begin_inset CommandInset ref
11991 reference "tab:Table-with-centered"
11995 , mark the first two cells in the first row of a 3×3 table and right-click
11997 Now choose for this cell
12006 \begin_inset space \thinspace{}
12009 cm in the table dialog.
12010 The merged columns should have exactly half the width of the multicolumn
12011 cell, so that you would set a width of 1.25
12012 \begin_inset space \thinspace{}
12015 cm for the first column.
12016 The second column has then automatically a width of 1.25
12017 \begin_inset space \thinspace{}
12020 cm (multicolumn width - width of first column).
12021 This was done for Table
12022 \begin_inset space ~
12026 \begin_inset CommandInset ref
12028 reference "tab:Table-without-half"
12035 \begin_layout Standard
12036 \begin_inset Float table
12041 \begin_layout Plain Layout
12042 \begin_inset Caption Standard
12044 \begin_layout Plain Layout
12045 \begin_inset CommandInset label
12047 name "tab:Table-without-half"
12051 Table where the spanned table columns are not exactly half the width of
12052 the multicolumn cell
12053 \begin_inset Argument 1
12056 \begin_layout Plain Layout
12057 Imperfect multicolumn table
12070 \begin_layout Plain Layout
12072 \begin_inset Tabular
12073 <lyxtabular version="3" rows="3" columns="3">
12074 <features tabularvalignment="middle">
12075 <column alignment="center" valignment="top" width="1.25cm">
12076 <column alignment="center" valignment="top">
12077 <column alignment="center" valignment="top">
12079 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12082 \begin_layout Plain Layout
12083 multiple lines multicolumn
12088 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12091 \begin_layout Plain Layout
12097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12100 \begin_layout Plain Layout
12108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12111 \begin_layout Plain Layout
12117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12120 \begin_layout Plain Layout
12126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12129 \begin_layout Plain Layout
12137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12140 \begin_layout Plain Layout
12146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12149 \begin_layout Plain Layout
12155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12158 \begin_layout Plain Layout
12177 \begin_layout Standard
12178 You can see that the first column is not half the width of the multicolumn
12179 cell, it is a bit bigger.
12180 The reason is that the specified width of a cell
12181 \begin_inset Formula $W_{g}$
12184 is not its total width
12185 \begin_inset Formula $W_{\mathrm{tot}}$
12188 because a cell is always a bit larger than specified.
12190 \begin_inset space ~
12194 \begin_inset CommandInset ref
12196 reference "cha:Explanation-of-Equation"
12200 explains this in detail.
12203 \begin_layout Standard
12205 \begin_inset Formula $W_{g\,n}$
12208 which the user needs to set when
12212 columns are spanned can be calculated, so that each column has a total
12214 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12218 \begin_inset Formula
12220 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12228 \begin_layout Standard
12229 In our case we have
12230 \begin_inset Formula $n=2$
12234 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12237 cm and the default values for the lengths, so that equation
12238 \begin_inset CommandInset ref
12245 \begin_inset Formula
12247 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12255 \begin_layout Standard
12256 To enable calculations in \SpecialChar LaTeX
12257 , the \SpecialChar LaTeX
12262 must be loaded with the document preamble line
12263 \begin_inset Index idx
12266 \begin_layout Plain Layout
12276 \begin_layout Standard
12284 \begin_layout Standard
12286 does not allow you to calculate lengths in the
12290 field of the table dialog.
12291 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12294 Here is an overview about the arguments:
12297 \begin_layout Itemize
12302 creates cell with a fixed width, its text is vertically top-aligned
12305 \begin_layout Itemize
12310 creates cell with a fixed width, its text is vertically centered
12313 \begin_layout Itemize
12318 creates cell with a fixed width, its text is vertically bottom-aligned
12321 \begin_layout Standard
12322 By entering a \SpecialChar LaTeX
12323 -argument, all cell settings set in the table dialog are overwritt
12327 \begin_layout Standard
12328 \begin_inset Note Greyedout
12331 \begin_layout Plain Layout
12336 Due to a bug, \SpecialChar LyX
12337 shows the overwritten settings anyway.
12345 \begin_layout Standard
12346 As the text should be horizontally centered, the command
12353 You can now enter the following \SpecialChar LaTeX
12354 -argument for the first spanned column:
12357 \begin_layout Standard
12362 centering}m{1.25cm-6.2pt}
12365 \begin_layout Standard
12370 means, that the commands inside the braces are applied before the cell
12374 \begin_layout Standard
12375 Although we have chosen centered alignment for the text of the multicolumn
12376 cell, it is still left aligned.
12377 This is because \SpecialChar LyX
12378 only applies the alignment to single columns.
12379 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12383 \begin_layout Standard
12391 \begin_layout Subsection
12393 \begin_inset CommandInset label
12395 name "subsec:Multirows"
12400 \begin_inset Index idx
12403 \begin_layout Plain Layout
12410 \begin_inset Index idx
12413 \begin_layout Plain Layout
12422 \begin_layout Standard
12423 To merge cells over multiple rows, select as many cells within a column
12424 as you want to merge and use either the table-toolbar button
12427 arg "tabular-feature multirow"
12432 Edit\SpecialChar menuseparator
12433 Table\SpecialChar menuseparator
12436 , or right click on the marked cells and choose
12440 in the context menu.
12443 \begin_layout Standard
12444 Here is an example table with a multirow in the first column:
12447 \begin_layout Standard
12449 \begin_inset Tabular
12450 <lyxtabular version="3" rows="3" columns="3">
12451 <features tabularvalignment="middle">
12452 <column alignment="center" valignment="top" width="0pt">
12453 <column alignment="center" valignment="top">
12454 <column alignment="center" valignment="top">
12456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12459 \begin_layout Plain Layout
12465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12468 \begin_layout Plain Layout
12474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12477 \begin_layout Plain Layout
12485 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12488 \begin_layout Plain Layout
12494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12497 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12514 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12517 \begin_layout Plain Layout
12523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12526 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12535 \begin_layout Plain Layout
12549 \begin_layout Standard
12550 The width of multirow cells is set by setting the width and alignment for
12556 shifts the content of the multirow up/down if the offset is positive/negative.
12559 \begin_layout Standard
12560 If the column of a multirow cell has no explicit width, the multirow cell
12561 inherits the alignment of the column.
12562 Otherwise it is by default left-aligned.
12563 To override the default, renew the command
12572 \begin_layout Standard
12584 \begin_layout Standard
12585 in the document preamble.
12586 Then all entries of multirow cells in the document are centered.
12587 If centering is only needed for several tables, you can renew the command
12588 in a \SpecialChar TeX
12589 Code box just before the table instead of the preamble.
12590 If the text should be right-aligned, replace
12603 To return to left-alignment
12612 \begin_layout Standard
12613 This is an example table with a right-aligned multirow cell that has a vertical
12615 \begin_inset space \thinspace{}
12619 \begin_inset space \thinspace{}
12625 \begin_layout Standard
12631 \begin_layout Plain Layout
12645 \begin_inset Tabular
12646 <lyxtabular version="3" rows="4" columns="3">
12647 <features tabularvalignment="middle">
12648 <column alignment="center" valignment="top" width="3cm">
12649 <column alignment="center" valignment="top">
12650 <column alignment="center" valignment="top">
12652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12655 \begin_layout Plain Layout
12661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12664 \begin_layout Plain Layout
12670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12673 \begin_layout Plain Layout
12681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12684 \begin_layout Plain Layout
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Plain Layout
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12702 \begin_layout Plain Layout
12710 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Plain Layout
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12731 \begin_layout Plain Layout
12739 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12742 \begin_layout Plain Layout
12748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12760 \begin_layout Plain Layout
12775 \begin_layout Plain Layout
12791 \begin_layout Standard
12792 To start a new line in a multirow you can use a forced line break (shortcut
12796 arg "newline-insert newline"
12799 ) but this will not respect the cell lines as demonstrated in this table:
12802 \begin_layout Standard
12805 \begin_inset Tabular
12806 <lyxtabular version="3" rows="3" columns="2">
12807 <features tabularvalignment="middle">
12808 <column alignment="left" valignment="middle" width="2cm">
12809 <column alignment="center" valignment="top">
12811 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12814 \begin_layout Plain Layout
12816 \begin_inset Newline newline
12820 \begin_inset Newline newline
12828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12831 \begin_layout Plain Layout
12839 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12842 \begin_layout Plain Layout
12848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12851 \begin_layout Plain Layout
12859 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12862 \begin_layout Plain Layout
12868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12871 \begin_layout Plain Layout
12885 \begin_layout Standard
12886 Therefore be careful with forced line breaks.
12889 \begin_layout Subsection
12890 Cells with diagonal line(s)
12893 \begin_layout Standard
12894 To tell the reader what is meant by column and row headings in a table,
12895 it is helpful to split the first cell of the table by one or two diagonal
12897 This can be achieved by loading the \SpecialChar LaTeX
12903 \begin_inset Index idx
12906 \begin_layout Plain Layout
12908 -packages ! picinpar
12913 in the document preamble.
12914 The package provides the command
12920 that is inserted as \SpecialChar TeX
12921 Code and that can take 2 or 3
12922 \begin_inset space ~
12928 \begin_layout Standard
12933 diagbox[options]{lower left}{upper right}
12936 \begin_layout Standard
12941 diagbox[options]{lower left}{upper left}{upper right}
12944 \begin_layout Standard
12945 The first scheme divides the cell by a single diagonal line and the arguments
12946 are placed below and above this line.
12947 The second scheme divides the cell by 2
12948 \begin_inset space ~
12954 \begin_layout Standard
12958 \begin_layout Plain Layout
12968 \begin_inset Note Note
12971 \begin_layout Plain Layout
12972 The following section will only be displayed when the \SpecialChar LaTeX
12985 \begin_layout Standard
12986 Here is an example table where
12992 is used in the 2-argument scheme in the first cell:
12993 \begin_inset VSpace medskip
12999 \begin_layout Standard
13001 \begin_inset Tabular
13002 <lyxtabular version="3" rows="4" columns="4">
13003 <features tabularvalignment="middle">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13006 <column alignment="center" valignment="top">
13007 <column alignment="center" valignment="top">
13009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13012 \begin_layout Plain Layout
13016 \begin_layout Plain Layout
13029 \begin_layout Plain Layout
13040 \begin_layout Plain Layout
13052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13055 \begin_layout Plain Layout
13061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13064 \begin_layout Plain Layout
13070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13073 \begin_layout Plain Layout
13081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13084 \begin_layout Plain Layout
13090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13093 \begin_layout Plain Layout
13099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13102 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13111 \begin_layout Plain Layout
13119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13122 \begin_layout Plain Layout
13128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13131 \begin_layout Plain Layout
13137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13140 \begin_layout Plain Layout
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13149 \begin_layout Plain Layout
13157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13160 \begin_layout Plain Layout
13166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13187 \begin_layout Plain Layout
13199 \begin_inset VSpace medskip
13205 \begin_layout Standard
13206 The 3-argument scheme is for example useful for cross-tables of sports leagues
13210 \begin_layout Standard
13213 \begin_inset Tabular
13214 <lyxtabular version="3" rows="4" columns="4">
13215 <features tabularvalignment="middle">
13216 <column alignment="center" valignment="top" width="0pt">
13217 <column alignment="center" valignment="top">
13218 <column alignment="center" valignment="top">
13219 <column alignment="center" valignment="top">
13221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13224 \begin_layout Plain Layout
13228 \begin_layout Plain Layout
13241 \begin_layout Plain Layout
13252 \begin_layout Plain Layout
13263 \begin_layout Plain Layout
13275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13278 \begin_layout Plain Layout
13284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13287 \begin_layout Plain Layout
13293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13296 \begin_layout Plain Layout
13304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13307 \begin_layout Plain Layout
13313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13316 \begin_layout Plain Layout
13322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13325 \begin_layout Plain Layout
13331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13334 \begin_layout Plain Layout
13342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13345 \begin_layout Plain Layout
13351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13354 \begin_layout Plain Layout
13360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13372 \begin_layout Plain Layout
13380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13383 \begin_layout Plain Layout
13389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13392 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13410 \begin_layout Plain Layout
13424 \begin_layout Standard
13425 For larger cross-tables one might use split cells in 2 or every corner of
13426 the table like in this example:
13429 \begin_layout Standard
13432 \begin_inset Tabular
13433 <lyxtabular version="3" rows="5" columns="5">
13434 <features tabularvalignment="middle">
13435 <column alignment="center" valignment="top" width="0pt">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13438 <column alignment="center" valignment="top">
13439 <column alignment="center" valignment="top">
13441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13444 \begin_layout Plain Layout
13448 \begin_layout Plain Layout
13461 \begin_layout Plain Layout
13472 \begin_layout Plain Layout
13483 \begin_layout Plain Layout
13495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13498 \begin_layout Plain Layout
13504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13507 \begin_layout Plain Layout
13513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13516 \begin_layout Plain Layout
13522 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13525 \begin_layout Plain Layout
13529 \begin_layout Plain Layout
13542 \begin_layout Plain Layout
13553 \begin_layout Plain Layout
13564 \begin_layout Plain Layout
13578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13581 \begin_layout Plain Layout
13587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13590 \begin_layout Plain Layout
13596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13599 \begin_layout Plain Layout
13605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13608 \begin_layout Plain Layout
13614 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13617 \begin_layout Plain Layout
13625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13628 \begin_layout Plain Layout
13634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13637 \begin_layout Plain Layout
13643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13646 \begin_layout Plain Layout
13652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13655 \begin_layout Plain Layout
13661 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13664 \begin_layout Plain Layout
13672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13675 \begin_layout Plain Layout
13681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13684 \begin_layout Plain Layout
13690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13693 \begin_layout Plain Layout
13699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13702 \begin_layout Plain Layout
13708 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13711 \begin_layout Plain Layout
13719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13722 \begin_layout Plain Layout
13726 \begin_layout Plain Layout
13739 \begin_layout Plain Layout
13750 \begin_layout Plain Layout
13761 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13776 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13794 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13803 \begin_layout Plain Layout
13807 \begin_layout Plain Layout
13820 \begin_layout Plain Layout
13831 \begin_layout Plain Layout
13842 \begin_layout Plain Layout
13862 \begin_layout Standard
13863 To rotate the diagonal lines, the command option
13888 and represent a point of a compass.
13893 is for example the south-west corner.
13894 Thus in the lower left cell of the above table the command
13897 \begin_layout Standard
13902 diagbox[dir=SW]{Team home}{Result}{Team away}
13905 \begin_layout Standard
13907 If no direction is given, it will be NW.
13910 \begin_layout Standard
13911 The necessary width of split cells is automatically calculated.
13912 Thus if you set a fixed column width smaller than the calculated one, the
13913 cell's content will protrude the cell borders:
13916 \begin_layout Standard
13919 \begin_inset Tabular
13920 <lyxtabular version="3" rows="2" columns="2">
13921 <features tabularvalignment="middle">
13922 <column alignment="center" valignment="top" width="3cm">
13923 <column alignment="center" valignment="top">
13925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13928 \begin_layout Plain Layout
13932 \begin_layout Plain Layout
13945 \begin_layout Plain Layout
13956 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13971 \begin_layout Plain Layout
13979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13991 \begin_layout Plain Layout
14005 \begin_layout Standard
14006 If you need a certain width for columns with a split cell, use the command
14011 (replace '3cm' by the width you need).
14012 In the following table the width of the first column is set to 4
14013 \begin_inset space \thinspace{}
14024 \begin_inset space \thinspace{}
14028 \begin_inset space \thinspace{}
14033 tabcolsep is necessary because the overall width is the width for the text
14034 (in this case the 4
14035 \begin_inset space \thinspace{}
14038 cm) plus two times the separation of the text and the cell border.
14039 The calculation of the width cannot be done in the command option of
14045 so one needs to create a new length which can be used later.
14046 This is done with the \SpecialChar TeX
14050 \begin_layout Standard
14058 \begin_inset Newline newline
14070 \begin_layout Standard
14074 \begin_layout Plain Layout
14083 \begin_layout Plain Layout
14099 \begin_layout Standard
14100 To enable calculations in \SpecialChar LaTeX
14101 one needs to load the package
14106 \begin_inset Index idx
14109 \begin_layout Plain Layout
14116 in the document preamble.
14119 \begin_layout Standard
14120 In this table you can now use the command
14123 \begin_layout Standard
14133 \begin_layout Standard
14137 \begin_layout Standard
14140 \begin_inset Tabular
14141 <lyxtabular version="3" rows="2" columns="2">
14142 <features tabularvalignment="middle">
14143 <column alignment="center" valignment="top" width="4cm">
14144 <column alignment="center" valignment="top">
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14149 \begin_layout Plain Layout
14153 \begin_layout Plain Layout
14168 \begin_layout Plain Layout
14179 \begin_layout Plain Layout
14191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14194 \begin_layout Plain Layout
14202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14205 \begin_layout Plain Layout
14211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14214 \begin_layout Plain Layout
14228 \begin_layout Standard
14229 Note that the split cell needs to be the widest one in the column.
14230 Otherwise the length of the diagonal line cannot be calculated correctly
14231 like in this table:
14234 \begin_layout Standard
14237 \begin_inset Tabular
14238 <lyxtabular version="3" rows="2" columns="2">
14239 <features tabularvalignment="middle">
14240 <column alignment="center" valignment="top" width="0pt">
14241 <column alignment="center" valignment="top">
14243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14246 \begin_layout Plain Layout
14250 \begin_layout Plain Layout
14263 \begin_layout Plain Layout
14274 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14289 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14300 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14309 \begin_layout Plain Layout
14323 \begin_layout Standard
14324 In this case use the
14335 It is then not necessary to add 2
14337 tabcolsep because the cell width is now the width of the column.
14338 In this table a width of 3
14339 \begin_inset space \thinspace{}
14345 \begin_layout Standard
14348 \begin_inset Tabular
14349 <lyxtabular version="3" rows="2" columns="2">
14350 <features tabularvalignment="middle">
14351 <column alignment="center" valignment="top" width="0pt">
14352 <column alignment="center" valignment="top">
14354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14357 \begin_layout Plain Layout
14361 \begin_layout Plain Layout
14365 diagbox[width=3cm]{
14374 \begin_layout Plain Layout
14385 \begin_layout Plain Layout
14397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14400 \begin_layout Plain Layout
14408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14411 \begin_layout Plain Layout
14417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14420 \begin_layout Plain Layout
14434 \begin_layout Standard
14435 For multiple text lines in split cells one needs some extra height to fit
14436 the text to the cell.
14437 This can be achieved with the
14447 (replace '3cm' by the height you need).
14448 In the following table the command
14451 \begin_layout Standard
14456 diagbox[width=3cm,height=1.4cm]{A
14467 \begin_layout Standard
14468 is used in the first cell.
14477 creates hereby the line break.
14481 \begin_layout Plain Layout
14482 Breaking lines with
14486 is only possible when the column has a fixed width.
14494 \begin_layout Standard
14497 \begin_inset Tabular
14498 <lyxtabular version="3" rows="2" columns="2">
14499 <features tabularvalignment="middle">
14500 <column alignment="center" valignment="top">
14501 <column alignment="center" valignment="top">
14503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14506 \begin_layout Plain Layout
14510 \begin_layout Plain Layout
14514 diagbox[width=3cm,height=1.4cm]{
14523 \begin_layout Plain Layout
14538 \begin_layout Plain Layout
14549 \begin_layout Plain Layout
14564 \begin_layout Plain Layout
14576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14579 \begin_layout Plain Layout
14587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14590 \begin_layout Plain Layout
14596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14599 \begin_layout Plain Layout
14613 \begin_layout Standard
14617 \begin_layout Plain Layout
14627 \begin_inset Note Note
14630 \begin_layout Plain Layout
14631 The following will be displayed when the \SpecialChar LaTeX
14644 \begin_layout Standard
14645 You need to install the \SpecialChar LaTeX
14650 to see the following part of this section in the output.
14653 \begin_layout Standard
14657 \begin_layout Plain Layout
14669 \begin_layout Standard
14670 For more info about the \SpecialChar LaTeX
14675 , see its documentation,
14676 \begin_inset CommandInset citation
14685 \begin_layout Section
14687 \begin_inset CommandInset label
14689 name "sec:Formal-Tables"
14694 \begin_inset Index idx
14697 \begin_layout Plain Layout
14706 \begin_layout Standard
14707 Tables are often typeset in books similar to Table
14708 \begin_inset space ~
14712 \begin_inset CommandInset ref
14714 reference "tab:Example-booktabs-table"
14719 This kind of tables is called
14720 \begin_inset Quotes eld
14728 \begin_inset Quotes erd
14732 To make a table a formal table use the option
14740 tab of the table dialog.
14743 \begin_layout Standard
14744 \begin_inset Float table
14750 \begin_layout Plain Layout
14751 \begin_inset Caption Standard
14753 \begin_layout Plain Layout
14754 \begin_inset CommandInset label
14756 name "tab:Example-booktabs-table"
14760 Example booktabs-table
14768 \begin_layout Plain Layout
14770 \begin_inset Tabular
14771 <lyxtabular version="3" rows="8" columns="4">
14772 <features booktabs="true" tabularvalignment="middle">
14773 <column alignment="center" valignment="top">
14774 <column alignment="center" valignment="top">
14775 <column alignment="center" valignment="top">
14776 <column alignment="center" valignment="top">
14778 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14781 \begin_layout Plain Layout
14787 <cell alignment="center" valignment="top" topline="true" usebox="none">
14790 \begin_layout Plain Layout
14792 \begin_inset space \thinspace{}
14800 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14803 \begin_layout Plain Layout
14805 \begin_inset space \thinspace{}
14813 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14816 \begin_layout Plain Layout
14824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14827 \begin_layout Plain Layout
14831 \begin_layout Plain Layout
14844 \begin_layout Plain Layout
14853 Detector thickness in µm
14858 <cell alignment="center" valignment="top" usebox="none">
14861 \begin_layout Plain Layout
14867 <cell alignment="center" valignment="top" usebox="none">
14870 \begin_layout Plain Layout
14876 <cell alignment="center" valignment="top" usebox="none">
14879 \begin_layout Plain Layout
14887 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14890 \begin_layout Plain Layout
14896 <cell alignment="center" valignment="top" topline="true" usebox="none">
14899 \begin_layout Plain Layout
14905 <cell alignment="center" valignment="top" topline="true" usebox="none">
14908 \begin_layout Plain Layout
14914 <cell alignment="center" valignment="top" topline="true" usebox="none">
14917 \begin_layout Plain Layout
14924 <row topspace="default">
14925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14928 \begin_layout Plain Layout
14929 Spatial resolution in µm
14934 <cell alignment="center" valignment="top" usebox="none">
14937 \begin_layout Plain Layout
14943 <cell alignment="center" valignment="top" usebox="none">
14946 \begin_layout Plain Layout
14952 <cell alignment="center" valignment="top" usebox="none">
14955 \begin_layout Plain Layout
14962 <row topspace="default">
14963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14966 \begin_layout Plain Layout
14968 \begin_inset Formula $f_{\mathrm{max}}$
14976 <cell alignment="center" valignment="top" usebox="none">
14979 \begin_layout Plain Layout
14985 <cell alignment="center" valignment="top" usebox="none">
14988 \begin_layout Plain Layout
14994 <cell alignment="center" valignment="top" usebox="none">
14997 \begin_layout Plain Layout
15004 <row topspace="default">
15005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15008 \begin_layout Plain Layout
15012 \begin_layout Plain Layout
15016 cmidrule[2pt](l{10pt}){1-1}
15021 LSF-spatial resolution
15026 <cell alignment="center" valignment="top" usebox="none">
15029 \begin_layout Plain Layout
15035 <cell alignment="center" valignment="top" usebox="none">
15038 \begin_layout Plain Layout
15044 <cell alignment="center" valignment="top" usebox="none">
15047 \begin_layout Plain Layout
15055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15058 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15073 <cell alignment="center" valignment="top" usebox="none">
15076 \begin_layout Plain Layout
15082 <cell alignment="center" valignment="top" usebox="none">
15085 \begin_layout Plain Layout
15093 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15096 \begin_layout Plain Layout
15102 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15105 \begin_layout Plain Layout
15111 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15114 \begin_layout Plain Layout
15120 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15123 \begin_layout Plain Layout
15142 \begin_layout Standard
15143 Spaces to table rows can be added using the
15147 tab of the table dialog as described in section
15148 \begin_inset space ~
15152 \begin_inset CommandInset ref
15154 reference "subsec:Row-Spacing"
15161 \begin_layout Standard
15162 Unlike normal tables, formal tables have no vertical table lines.
15163 The horizontal table lines can be set as for normal tables but they appear
15164 with different widths in the output:
15165 \begin_inset Newline newline
15168 The first and the last table line have a default width of 0.08
15169 \begin_inset space \thinspace{}
15172 em while the other lines have a default width of 0.05
15173 \begin_inset space \thinspace{}
15179 \begin_layout Standard
15180 The default widths can be changed with the following preamble lines
15183 \begin_layout Standard
15193 \begin_inset Newline newline
15205 \begin_layout Standard
15206 This example is for the first line, the so called
15211 If you want to change the width for the last line, replace
15220 To change the width for the other lines replace
15229 You can use all units listed in appendix
15230 \begin_inset space ~
15234 \begin_inset CommandInset ref
15236 reference "cha:Units-available-in"
15243 \begin_layout Standard
15244 Lines that do not span all table columns can be created by setting a table
15245 line for multicolumn cells.
15247 will then internally use the command
15253 to create this line.
15257 \begin_layout Standard
15262 cmidrule[height](trim){startcol-endcol}
15265 \begin_layout Standard
15272 are currently not supported by \SpecialChar LyX
15273 so you have to use \SpecialChar TeX
15282 s can manually be created by inserting the command as \SpecialChar TeX
15284 cell entry of the first cell of a row.
15285 The line is then drawn in the output above the current row.
15288 \begin_layout Standard
15289 The default for the optional
15294 \begin_inset space \thinspace{}
15302 is the number of the column where the line starts and
15306 the column number where the line ends.
15311 always needs to be specified, also when the line should span only one column.
15312 The optional parameter
15329 Using for example the parameter
15333 means that the line is trimmed from its left end by 2
15334 \begin_inset space \thinspace{}
15338 If you don't specify the
15342 the line is trimmed by the default of 0.5
15343 \begin_inset space \thinspace{}
15349 \begin_layout Standard
15350 \begin_inset VSpace bigskip
15354 \begin_inset space ~
15358 \begin_inset CommandInset ref
15360 reference "tab:Example-booktabs-table"
15364 was created using the commands
15367 \begin_layout Standard
15377 \begin_layout Standard
15378 at the beginning of the second row and
15381 \begin_layout Standard
15386 cmidrule[2pt](l{10pt}){1-1}
15389 \begin_layout Standard
15393 \begin_layout Standard
15394 \begin_inset VSpace bigskip
15400 \begin_layout Standard
15401 You might want to have overlapping
15408 \begin_inset space ~
15412 \begin_inset CommandInset ref
15414 reference "tab:Special-booktabs-table"
15419 This can be achieved with the \SpecialChar TeX
15423 \begin_layout Standard
15431 \begin_layout Standard
15432 The command that was used for the second row of Table
15433 \begin_inset space ~
15437 \begin_inset CommandInset ref
15439 reference "tab:Special-booktabs-table"
15446 \begin_layout Standard
15460 \begin_layout Standard
15461 The command for the sixth row is
15464 \begin_layout Standard
15476 \begin_layout Standard
15477 \begin_inset VSpace bigskip
15483 \begin_layout Standard
15484 If you are in any way not satisfied with the border line spacing, you can
15485 use the following command to produce lines that span over all table columns
15490 \begin_layout Standard
15495 specialrule{width}{space above}{space below}
15498 \begin_layout Standard
15499 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15506 \begin_inset CommandInset citation
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
25305 \begin_layout Chapter
25307 \begin_inset CommandInset label
25314 \begin_inset Index idx
25317 \begin_layout Plain Layout
25326 \begin_layout Section
25328 \begin_inset CommandInset label
25330 name "sec:FloatIntroduction"
25335 \begin_inset Index idx
25338 \begin_layout Plain Layout
25339 Floats ! Introduction
25347 \begin_layout Standard
25348 A float is a block of text associated with some sort of label, which doesn't
25349 have a fixed location.
25351 \begin_inset Quotes eld
25355 \begin_inset Quotes erd
25358 forward or backward a page or two, to wherever it fits best.
25366 \begin_inset space ~
25371 are also floats because they can float to the next page when there are
25372 too many notes on the page.
25375 \begin_layout Standard
25376 Floats allow a high quality layout.
25377 Images and tables can be spread evenly among the pages to avoid white space
25378 and pages without text.
25379 As the floating often destroys the context between the text and the image/table
25380 , every float can be referenced in the text.
25381 Floats are therefore numbered.
25382 Referencing is described in section
25383 \begin_inset space ~
25387 \begin_inset CommandInset ref
25389 reference "sec:Referencing-Floats"
25396 \begin_layout Standard
25397 To insert a float, use the menu
25399 Insert\SpecialChar menuseparator
25405 arg "float-insert figure"
25411 arg "float-insert table"
25419 inset, a box with a label.
25420 The label will automatically be translated to the document language in
25422 After the label you can insert the caption text.
25423 The image or table is inserted above or below the caption in a separate
25424 paragraph within the float.
25425 More about the caption placement is contained in section
25426 \begin_inset space ~
25430 \begin_inset CommandInset ref
25432 reference "sec:Caption-Placement"
25437 To keep your \SpecialChar LyX
25438 document readable, you can open and close the float box by
25439 left-clicking on the box label.
25440 A closed float box looks like this:
25441 \begin_inset Graphics
25442 filename clipart/float.png
25444 scaleBeforeRotation
25448 – a gray button with a red label.
25451 \begin_layout Standard
25452 It is recommended that you insert floats as separate standard paragraphs
25453 to avoid possible \SpecialChar LaTeX
25454 -errors that can occur when the surrounding text is specially
25458 \begin_layout Standard
25459 Existing figures or tables can be put into a float by highlighting them
25460 and then pressing the corresponding toolbar button for a new float.
25463 \begin_layout Section
25467 \begin_layout Standard
25468 Besides figure and table floats that are described in sections
25469 \begin_inset space ~
25473 \begin_inset CommandInset ref
25475 reference "sec:Figure-Floats"
25480 \begin_inset CommandInset ref
25482 reference "sec:Table-Floats"
25486 respectively, \SpecialChar LyX
25487 offers the float types
25496 The latter are explained in sec.
25497 \begin_inset space \thinspace{}
25501 \begin_inset CommandInset ref
25503 reference "sec:Wrap-Floats"
25510 \begin_layout Subsection
25512 \begin_inset Index idx
25515 \begin_layout Plain Layout
25516 Floats ! Algorithms
25524 \begin_layout Standard
25525 \begin_inset Float algorithm
25531 \begin_layout Plain Layout
25532 \begin_inset Caption Standard
25534 \begin_layout Plain Layout
25535 \begin_inset CommandInset label
25537 name "alg:Example-Algorithm-float"
25541 Example Algorithm float
25549 \begin_layout LyX-Code
25551 \begin_inset Newline newline
25554 Sum:= Sum + A(I); /*comment*/
25555 \begin_inset Newline newline
25559 \begin_inset VSpace -4mm
25570 \begin_layout Standard
25571 This float type is inserted with the menu
25573 Insert\SpecialChar menuseparator
25574 Float\SpecialChar menuseparator
25578 It is used for program codes and descriptions of algorithms and can be
25579 seen as an alternative to program code listings that are explained in chapter
25580 \begin_inset space ~
25584 \begin_inset CommandInset ref
25586 reference "cha:Program-Code-Listings"
25591 A possible environment for algorithms is the
25596 , described in \SpecialChar LyX
25603 \begin_inset space ~
25607 \begin_inset CommandInset ref
25609 reference "alg:Example-Algorithm-float"
25613 is an example of an algorithm float where -4
25614 \begin_inset space \thinspace{}
25617 mm vertical space was added at the end of the float to have the bottom rule
25618 exactly below the last text line.
25621 \begin_layout Standard
25622 The float label is not automatically translated into the document language.
25623 If your document is not in English, you have to do this manually by adding
25624 the following line to the document preamble
25629 \begin_layout Standard
25634 floatname{algorithm}{your
25635 \begin_inset space ~
25641 \begin_layout Standard
25645 \begin_inset space ~
25651 \begin_inset Quotes eld
25659 \begin_inset Quotes erd
25665 \begin_layout Standard
25666 To insert the list of algorithms you can use the menu
25668 Insert\SpecialChar menuseparator
25670 \begin_inset space \thinspace{}
25674 \begin_inset space \thinspace{}
25677 TOC\SpecialChar menuseparator
25680 when your document has the same language as \SpecialChar LyX
25682 In other cases use this command in \SpecialChar TeX
25686 \begin_layout Standard
25691 listof{algorithm}{your
25692 \begin_inset space ~
25698 \begin_layout Standard
25702 \begin_inset space ~
25708 \begin_inset Quotes eld
25716 \begin_inset Quotes erd
25722 \begin_layout Standard
25723 Algorithm floats are not by default numbered in the scheme
25724 \begin_inset Quotes eld
25728 \begin_inset Quotes erd
25731 as is the case for table and figure floats in many document-classes.
25732 To number algorithm floats in the same scheme, add this command to your
25736 \begin_layout Standard
25741 numberwithin{algorithm}{chapter}
25744 \begin_layout Standard
25745 To be able to use the command
25754 \begin_inset space ~
25759 in the document settings the option
25762 \begin_inset space ~
25766 \begin_inset space ~
25770 \begin_inset space ~
25778 \begin_layout Section
25780 \begin_inset Index idx
25783 \begin_layout Plain Layout
25792 \begin_layout Standard
25793 Floats are usually numbered either independently from the sections the floats
25794 are in, or in the scheme
25795 \begin_inset Quotes eld
25799 \begin_inset Quotes erd
25803 \begin_inset Quotes eld
25807 \begin_inset Quotes erd
25811 This depends on the document class used.
25814 \begin_layout Standard
25815 To change section-independent numbering, you can use this command in the
25819 \begin_layout Standard
25831 \begin_layout Standard
25838 is the command that prints the table number.
25839 For figure floats, the command would be
25852 in the command above prints the table number as a small roman number.
25855 \begin_layout Standard
25856 To change the numbering scheme for example to
25857 \begin_inset Quotes eld
25861 \begin_inset Quotes erd
25864 , use this command in the preamble:
25867 \begin_layout Standard
25872 numberwithin{table}{subsection}
25875 \begin_layout Standard
25876 To be able to use the command
25885 \begin_inset space ~
25890 in the document settings the option
25893 \begin_inset space ~
25897 \begin_inset space ~
25901 \begin_inset space ~
25909 \begin_layout Standard
25910 Please also have a look at section
25911 \begin_inset space ~
25915 \begin_inset CommandInset ref
25917 reference "subsec:Footnote-Numbering"
25921 for the details and important notes about the numbering commands.
25924 \begin_layout Section
25926 \begin_inset CommandInset label
25928 name "sec:Referencing-Floats"
25933 \begin_inset Index idx
25936 \begin_layout Plain Layout
25937 Floats ! References
25943 \begin_inset Index idx
25946 \begin_layout Plain Layout
25947 References ! to Floats
25955 \begin_layout Standard
25956 To reference a float, insert a label into its caption using the menu
25958 Insert\SpecialChar menuseparator
25961 or the toolbar button
25968 A grey label box like this one:
25969 \begin_inset Graphics
25970 filename clipart/label.png
25971 scaleBeforeRotation
25975 will be inserted and the label window pops up asking for the label text.
25977 offers as text the first words of the caption with a prefix.
25978 The prefix depends on the float type, e.
25979 \begin_inset space \thinspace{}
25983 \begin_inset space \space{}
25986 for figure floats the prefix will be "
25993 \begin_layout Standard
25994 The label is used as anchor and name for the reference.
25995 You can refer to the label using the menu
25997 Insert\SpecialChar menuseparator
26000 or the toolbar button
26003 arg "dialog-show-new-inset ref"
26007 The cross-reference window appears showing all labels of the document.
26008 If you have multiple \SpecialChar LyX
26009 documents opened, choose the one you are working
26010 on from the drop-list at the top of the dialog.
26011 You can now sort the labels alphabetically and then choose one.
26012 A grey cross-reference box like this one:
26013 \begin_inset Graphics
26014 filename clipart/reference.png
26015 scaleBeforeRotation
26020 At the position of the cross-reference box the float number will appear
26024 \begin_layout Standard
26025 It is recommended that you use a protected space between the cross-reference
26026 name and its number to avoid line breaks between them.
26027 If a cross-reference refers to a non-existing label, you will see two question
26028 marks in the output instead of the reference.
26031 \begin_layout Standard
26032 You can change labels at any time by clicking on the label box.
26033 References to the changed label will automatically update their links to
26034 the new label text.
26037 \begin_layout Standard
26041 \begin_inset space ~
26045 \begin_inset space ~
26050 in the cross-reference window sets the cursor before the referred label.
26051 The button text changes then to Go
26052 \begin_inset space ~
26055 Back and you can use it to set the cursor back to the cross-reference.
26058 \begin_layout Subsection
26059 Cross-Reference Formats
26060 \begin_inset CommandInset label
26062 name "subsec:Cross-Reference-Formats"
26067 \begin_inset Index idx
26070 \begin_layout Plain Layout
26071 References ! Formats
26079 \begin_layout Standard
26080 There are six varieties of cross-references:
26083 \begin_layout Description
26084 <reference>: prints the float number, this is the default:
26085 \begin_inset CommandInset ref
26087 reference "fig:Two-distorted-images"
26094 \begin_layout Description
26095 (<reference>): prints the float number within two parentheses, this is the
26096 style normally used to reference formulas, especially when the reference
26098 \begin_inset Quotes eld
26102 \begin_inset Quotes erd
26106 \begin_inset CommandInset ref
26115 \begin_layout Description
26116 <page>: prints the page number: Page
26117 \begin_inset space ~
26121 \begin_inset CommandInset ref
26122 LatexCommand pageref
26123 reference "fig:Two-distorted-images"
26130 \begin_layout Description
26132 \begin_inset space ~
26136 \begin_inset space ~
26139 <page>: prints the text "on page" and the page number:
26140 \begin_inset CommandInset ref
26141 LatexCommand vpageref
26142 reference "fig:Two-distorted-images"
26149 \begin_layout Description
26151 \begin_inset space ~
26155 \begin_inset space ~
26159 \begin_inset space ~
26162 <page>: prints the float number, the text "on page", and the page number:
26164 \begin_inset CommandInset ref
26166 reference "fig:Two-distorted-images"
26173 \begin_layout Description
26175 \begin_inset space ~
26178 reference: prints a self-defined cross-reference format.
26179 \begin_inset Newline newline
26183 \begin_inset Note Greyedout
26186 \begin_layout Plain Layout
26191 This feature is only available when you have the \SpecialChar LaTeX
26201 \begin_inset Index idx
26204 \begin_layout Plain Layout
26206 -packages ! prettyref
26212 \begin_inset Index idx
26215 \begin_layout Plain Layout
26217 -packages ! refstyle
26228 \begin_inset Newline newline
26231 You can select which \SpecialChar LaTeX
26232 -package should be used for this feature by setting
26235 Use refstyle (not prettyref) for cross-references
26239 Document\SpecialChar menuseparator
26240 Settings\SpecialChar menuseparator
26244 The format is specified by adding the command
26256 (refstyle) to the preamble of the document.
26257 For example redefining all references to figures (which have the label
26259 \begin_inset Quotes eld
26267 \begin_inset Quotes erd
26270 ) can be done with this command
26271 \begin_inset Newline newline
26278 newref{fig}{refcmd={Image on page
26283 \begin_inset Newline newline
26286 For more information about the format, have a look at the package documentations
26288 \begin_inset CommandInset citation
26290 key "prettyref,refstyle"
26295 \change_inserted 424524441 1483414725
26297 \begin_inset Newline newline
26300 The `Plural' and `Capitalized' options will be available with formatted
26301 references only if you are using the
26306 See its documentation, again, for more information.
26311 \begin_layout Description
26313 \begin_inset space ~
26316 reference: prints the caption of the reference:
26317 \begin_inset CommandInset ref
26318 LatexCommand nameref
26319 reference "fig:Two-distorted-images"
26324 \change_inserted 424524441 1483414735
26328 \begin_layout Description
26330 \change_inserted 424524441 1483817911
26332 \begin_inset space ~
26335 only: prints only the \SpecialChar LaTeX
26336 label for the reference.
26337 This allows for customization, using ERT, if you want to issue a command
26338 that LyX does not support.
26343 , then you may want to use the
26344 \begin_inset Quotes eld
26348 \begin_inset Quotes erd
26351 option, which will output only the part of the reference following the
26353 \begin_inset Quotes eld
26357 \begin_inset Quotes erd
26361 This is the form needed for, e.g.,
26370 \begin_layout Standard
26375 will not print the page number if the label is on the previous, the same,
26378 \begin_inset space \thinspace{}
26382 \begin_inset space \space{}
26386 \begin_inset Quotes eld
26394 \begin_inset Quotes erd
26400 <reference> on page <page>
26402 will not print anything about the page if the label is on the same page.
26405 \begin_layout Standard
26406 The number and current page of the part of the document referred to in the
26407 output is automatically calculated by \SpecialChar LaTeX
26409 The varieties are adjusted in the field
26413 of the cross-reference window that appears when you click on the cross-referenc
26417 \begin_layout Standard
26418 \begin_inset Note Greyedout
26421 \begin_layout Plain Layout
26426 It is recommended to use the \SpecialChar LaTeX
26432 \begin_inset Index idx
26435 \begin_layout Plain Layout
26437 -packages ! refstyle
26447 \begin_inset Index idx
26450 \begin_layout Plain Layout
26452 -packages ! prettyref
26457 does not know all of \SpecialChar LyX
26458 's possible label shortcuts
26462 \begin_layout Plain Layout
26463 \begin_inset Quotes eld
26467 \begin_inset Quotes erd
26470 is for example \SpecialChar LyX
26471 's shortcut for labels in figure captions.
26476 and is not internationalized.
26484 \begin_layout Subsection
26485 Automatic Reference Naming
26486 \begin_inset Index idx
26489 \begin_layout Plain Layout
26490 References ! Automatic Reference Naming
26498 \begin_layout Standard
26499 The \SpecialChar LaTeX
26505 \begin_inset Index idx
26508 \begin_layout Plain Layout
26510 -packages ! hyperref
26515 , that is enabled in the
26523 dialog, provides a very useful feature that cross-references automatically
26524 include the name of the referenced floats (or text parts like
26529 So you will save having to write e.
26530 \begin_inset space \thinspace{}
26534 \begin_inset space \space{}
26538 \begin_inset Quotes eld
26542 \begin_inset Quotes erd
26545 before every reference to a figure.
26546 To use this feature, enable
26550 and insert this line to the \SpecialChar LaTeX
26554 \begin_layout Standard
26570 \begin_layout Standard
26571 When you prefer other reference names than the default ones, for example
26572 you want instead of
26573 \begin_inset Quotes eld
26577 \begin_inset Quotes erd
26581 \begin_inset Quotes eld
26585 \begin_inset space \thinspace{}
26589 \begin_inset Quotes eld
26592 , you can redefine the name by inserting this in the preamble:
26595 \begin_layout Standard
26606 sectionautorefname}
26607 \begin_inset Newline newline
26611 \begin_inset Phantom HPhantom
26614 \begin_layout Plain Layout
26617 \begin_inset space ~
26630 \begin_layout Standard
26631 When you are using another document language than English, replace
26632 \begin_inset Newline newline
26647 , where *** is the name of the language used.
26650 \begin_layout Standard
26651 To get automatic names, but not for certain reference types, for example
26652 not for equations, use this preamble code:
26655 \begin_layout Standard
26666 equationautorefname}[1]{}}
26669 \begin_layout Standard
26670 More about this topic can be found in
26675 \begin_inset CommandInset citation
26684 \begin_layout Standard
26685 \begin_inset Note Greyedout
26688 \begin_layout Plain Layout
26693 Automatic reference naming cannot be used when you use cross-references
26697 \begin_inset space ~
26702 style, as described in section
26703 \begin_inset space ~
26707 \begin_inset CommandInset ref
26709 reference "subsec:Cross-Reference-Formats"
26721 \begin_layout Standard
26726 manual is an example where automatic reference naming is used.
26729 \begin_layout Subsection
26731 \begin_inset CommandInset label
26733 name "subsec:Reference-Position"
26738 \begin_inset Index idx
26741 \begin_layout Plain Layout
26742 References ! Reference Position
26750 \begin_layout Standard
26756 \begin_inset Index idx
26759 \begin_layout Plain Layout
26761 -packages ! hyperref
26774 dialog to link cross-references in the output, you will see that clicking
26775 on an image float reference jumps to the image label.
26776 The caption will be the first text part on the screen, so that you cannot
26777 see the image without scrolling.
26778 This is because the reference link anchor is placed at the position of
26780 With the use of the package
26785 \begin_inset Index idx
26788 \begin_layout Plain Layout
26795 , which is part of the \SpecialChar LaTeX
26801 \begin_inset Index idx
26804 \begin_layout Plain Layout
26806 -packages ! oberdiek
26811 , the link anchor is placed at the beginning of a float.
26812 To use this feature for figure floats, load
26816 in the document preamble with the line
26819 \begin_layout Standard
26824 usepackage[figure]{hypcap}
26827 \begin_layout Standard
26832 for all float types but this is not recommended for stability reasons.
26833 For more information, have a look at
26838 \begin_inset CommandInset citation
26847 \begin_layout Standard
26848 \begin_inset Note Greyedout
26851 \begin_layout Plain Layout
26860 has no effect on references to subfigures.
26868 \begin_layout Section
26870 \begin_inset CommandInset label
26872 name "sec:Float-Placement"
26877 \begin_inset Index idx
26880 \begin_layout Plain Layout
26889 \begin_layout Standard
26890 Right-clicking on a float-box and clicking on
26894 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26896 positioning the float.
26897 \begin_inset Newline newline
26903 \begin_inset space ~
26908 is only useful for two-column documents: If you select it, the float will
26909 span both columns on the page instead of being confined to just one.
26910 \begin_inset Newline newline
26916 \begin_inset space ~
26921 is used to rotate floats, see section
26922 \begin_inset CommandInset ref
26924 reference "sec:Rotated-Floats"
26931 \begin_layout Standard
26932 You can use one or more of the following options in the float dialog to
26933 set the placement for a particular float when you uncheck the option
26936 \begin_inset space ~
26940 \begin_inset space ~
26948 \begin_layout Description
26950 \begin_inset space ~
26954 \begin_inset space ~
26957 possible try to place the float on the position where it has been inserted
26960 \begin_layout Description
26962 \begin_inset space ~
26966 \begin_inset space ~
26969 page try to place the float at the top of the current page
26972 \begin_layout Description
26974 \begin_inset space ~
26978 \begin_inset space ~
26981 page try to place the float at the bottom of the current page
26984 \begin_layout Description
26986 \begin_inset space ~
26990 \begin_inset space ~
26993 floats try to place the float on its own page
26996 \begin_layout Standard
26997 The order of the above option is
27001 used by \SpecialChar LaTeX
27003 That means, if you use the default placement, \SpecialChar LaTeX
27007 \begin_inset space ~
27011 \begin_inset space ~
27019 \begin_inset space ~
27023 \begin_inset space ~
27028 , and then the others.
27029 If you do not use the default, \SpecialChar LaTeX
27030 will try only the checked options but in
27033 \begin_inset space ~
27036 placements is possible the procedure is internally repeated trying to put
27037 the float on the following page.
27040 \begin_layout Standard
27041 By default, each option has its own rules:
27044 \begin_layout Labeling
27045 \labelwidthstring 00.00.0000
27049 \begin_inset space ~
27053 \begin_inset space ~
27058 only floats occupying less than 70
27059 \begin_inset space \thinspace{}
27062 % of the page can be placed at the top of a page (
27071 \begin_layout Labeling
27072 \labelwidthstring 00.00.0000
27076 \begin_inset space ~
27080 \begin_inset space ~
27085 : only floats occupying less than 30
27086 \begin_inset space \thinspace{}
27089 % of the page can be placed at the bottom of a page.
27099 \begin_layout Labeling
27100 \labelwidthstring 00.00.0000
27104 \begin_inset space ~
27108 \begin_inset space ~
27113 : only if more than 50
27114 \begin_inset space \thinspace{}
27117 % of the page is occupied by floats, several floats can be set together
27128 \begin_layout Standard
27129 If you don't like these rules, you can ignore them by using the additional
27133 \begin_inset space ~
27138 \begin_inset space ~
27144 \begin_inset Newline newline
27147 You can also redefine the rules with \SpecialChar LaTeX
27148 -commands that are given in parentheses
27149 after the rules description above.
27150 To increase for example the often too small default of the bottom-rule
27152 \begin_inset space \thinspace{}
27155 % of the page, add this line to your document preamble:
27158 \begin_layout Standard
27165 bottomfraction}{0.5}
27168 \begin_layout Standard
27169 Sometimes you might need, under all circumstances, a float to be placed
27170 exactly at the position where it is inserted.
27171 For this case you can use the option
27174 \begin_inset space ~
27180 Use this option very rarely and only if the document is almost ready to
27181 be printed, because the float is then no longer able to
27182 \begin_inset Quotes eld
27186 \begin_inset Quotes erd
27189 when you change your document and this will often destroy the page layout.
27192 \begin_layout Standard
27193 There are no placement options for text wrap floats, because they are always
27194 surrounded by the text of a certain paragraph.
27195 \begin_inset VSpace bigskip
27201 \begin_layout Standard
27202 Sometimes you have the problem that a float is placed at the top of a page
27203 while its corresponding section starts at the middle of the page, so that
27204 the reader could think the float is part of the previous section.
27205 To avoid this the \SpecialChar LaTeX
27213 It suppresses a given float placement for the page where it is inserted
27214 and can therefore be used to avoid floats being set before a section starts.
27215 To get this, add these commands to your document preamble:
27218 \begin_layout Standard
27228 \begin_inset Newline newline
27242 \begin_layout Standard
27243 You can define the same for all section headings, like chapters and subsections.
27244 This definition is not recommended to be used for small text parts like
27245 subsubsections because \SpecialChar LaTeX
27246 may then have problems finding a suitable placement.
27249 \begin_layout Standard
27250 \begin_inset VSpace bigskip
27253 In some cases it is required to have all figures/tables at the end of the
27255 For this purpose the \SpecialChar LaTeX
27261 \begin_inset Index idx
27264 \begin_layout Plain Layout
27266 -packages ! endfloat
27272 It puts all figure and table floats at the end of the document into their
27274 At the original float position a text hint like
27275 \begin_inset Quotes eld
27281 \begin_inset space ~
27287 \begin_inset Quotes erd
27291 The endfloat-package is loaded in the preamble with the line
27294 \begin_layout Standard
27299 usepackage[options]{endfloat}
27302 \begin_layout Standard
27303 There are various package options to format the created figure/table sections.
27304 For more information we refer you to the
27309 \begin_inset CommandInset citation
27316 \begin_inset Newline newline
27320 \begin_inset Note Greyedout
27323 \begin_layout Plain Layout
27328 doesn't provide an automatic translation for the text hint, you have to
27329 do this manually, see section
27330 \begin_inset space ~
27334 \begin_inset CommandInset citation
27346 \begin_inset Newline newline
27350 \begin_inset Note Greyedout
27353 \begin_layout Plain Layout
27358 There is currently a bug in
27362 when the caption contains a German
27363 \begin_inset Quotes eld
27367 \begin_inset Quotes erd
27371 Use in this case the command
27372 \begin_inset Quotes eld
27382 \begin_inset Quotes erd
27385 in \SpecialChar TeX
27387 \begin_inset Quotes eld
27391 \begin_inset Quotes erd
27402 \begin_layout Standard
27403 \begin_inset VSpace bigskip
27406 For more details about float placements, have a look at \SpecialChar LaTeX
27408 \begin_inset CommandInset citation
27410 key "latexcompanion,latexguide,latexbook"
27417 \begin_layout Section
27419 \begin_inset CommandInset label
27421 name "sec:Rotated-Floats"
27426 \begin_inset Index idx
27429 \begin_layout Plain Layout
27438 \begin_layout Standard
27439 Especially for wide tables you might have floats rotated.
27440 To rotate a whole float including the caption, right-click on the float-box
27444 \begin_inset space ~
27452 \begin_layout Standard
27453 Rotated floats are always placed on a page of their own (or column of their
27454 own; in case you have a multi-column document).
27455 You can let them span several columns using the float settings option
27458 \begin_inset space ~
27464 Floats are rotated so that you can read them from the outside margin.
27465 To force a certain rotation direction for all pages, you can add either
27474 to the document class options.
27477 \begin_layout Standard
27478 Referencing rotated floats is the same as for normal floats, the caption
27479 format is also the same: Table
27480 \begin_inset space ~
27484 \begin_inset CommandInset ref
27486 reference "tab:Rotated-table"
27490 is an example of a rotated table float.
27493 \begin_layout Standard
27494 \begin_inset Note Greyedout
27497 \begin_layout Plain Layout
27502 Not all DVI-viewers are able to display rotated floats.
27510 \begin_layout Standard
27511 \begin_inset Float table
27516 \begin_layout Plain Layout
27517 \begin_inset Caption Standard
27519 \begin_layout Plain Layout
27520 \begin_inset CommandInset label
27522 name "tab:Rotated-table"
27534 \begin_layout Plain Layout
27536 \begin_inset Tabular
27537 <lyxtabular version="3" rows="1" columns="5">
27538 <features tabularvalignment="middle">
27539 <column alignment="center" valignment="top">
27540 <column alignment="center" valignment="top">
27541 <column alignment="center" valignment="top">
27542 <column alignment="center" valignment="top">
27543 <column alignment="center" valignment="top">
27545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27548 \begin_layout Plain Layout
27554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27557 \begin_layout Plain Layout
27563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27566 \begin_layout Plain Layout
27572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27575 \begin_layout Plain Layout
27581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27584 \begin_layout Plain Layout
27603 \begin_layout Section
27605 \begin_inset Index idx
27608 \begin_layout Plain Layout
27617 \begin_layout Standard
27618 Subfloats are for example used when a figure consists of several images.
27619 They are created by inserting a float into an existing float.
27620 The placement of the subfloats can be controlled in the same way as for
27621 paragraphs as shown in table
27622 \begin_inset space ~
27626 \begin_inset CommandInset ref
27628 reference "tab:Two-subtables-side"
27633 \begin_inset CommandInset ref
27635 reference "tab:Two-subtables-upon"
27642 \begin_layout Standard
27643 Referencing subfloats works as for normal floats: Table
27644 \begin_inset space ~
27648 \begin_inset CommandInset ref
27650 reference "tab:This-is-subtable-a"
27655 \begin_inset CommandInset ref
27657 reference "tab:This-is-subtable-b"
27661 are subtables of table
27662 \begin_inset space ~
27666 \begin_inset CommandInset ref
27668 reference "tab:Two-subtables-side"
27675 \begin_layout Standard
27676 \begin_inset Float table
27681 \begin_layout Plain Layout
27682 \begin_inset Caption Standard
27684 \begin_layout Plain Layout
27685 \begin_inset CommandInset label
27687 name "tab:Two-subtables-side"
27691 Two subtables placed side by side.
27699 \begin_layout Plain Layout
27701 \begin_inset space \hfill{}
27705 \begin_inset Float table
27710 \begin_layout Plain Layout
27711 \begin_inset Caption Standard
27713 \begin_layout Plain Layout
27714 \begin_inset CommandInset label
27716 name "tab:This-is-subtable-a"
27720 This is subtable a.
27728 \begin_layout Plain Layout
27730 \begin_inset Tabular
27731 <lyxtabular version="3" rows="1" columns="5">
27732 <features tabularvalignment="middle">
27733 <column alignment="center" valignment="top">
27734 <column alignment="center" valignment="top">
27735 <column alignment="center" valignment="top">
27736 <column alignment="center" valignment="top">
27737 <column alignment="center" valignment="top">
27739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27742 \begin_layout Plain Layout
27748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27751 \begin_layout Plain Layout
27757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27760 \begin_layout Plain Layout
27766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27769 \begin_layout Plain Layout
27775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27778 \begin_layout Plain Layout
27795 \begin_inset space \hfill{}
27799 \begin_inset Float table
27804 \begin_layout Plain Layout
27805 \begin_inset Caption Standard
27807 \begin_layout Plain Layout
27808 \begin_inset CommandInset label
27810 name "tab:This-is-subtable-b"
27814 This is subtable b.
27822 \begin_layout Plain Layout
27824 \begin_inset Tabular
27825 <lyxtabular version="3" rows="1" columns="5">
27826 <features tabularvalignment="middle">
27827 <column alignment="center" valignment="top">
27828 <column alignment="center" valignment="top">
27829 <column alignment="center" valignment="top">
27830 <column alignment="center" valignment="top">
27831 <column alignment="center" valignment="top">
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" usebox="none">
27845 \begin_layout Plain Layout
27851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27854 \begin_layout Plain Layout
27860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27863 \begin_layout Plain Layout
27869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27872 \begin_layout Plain Layout
27889 \begin_inset space \hfill{}
27900 \begin_layout Standard
27901 \begin_inset Float table
27906 \begin_layout Plain Layout
27907 \begin_inset Caption Standard
27909 \begin_layout Plain Layout
27910 \begin_inset CommandInset label
27912 name "tab:Two-subtables-upon"
27916 Two subtables placed one above the other.
27917 (a) table with 4 cells, (b) table with 5 cells.
27925 \begin_layout Plain Layout
27927 \begin_inset Float table
27932 \begin_layout Plain Layout
27933 \begin_inset Caption Standard
27935 \begin_layout Plain Layout
27944 \begin_layout Plain Layout
27946 \begin_inset Tabular
27947 <lyxtabular version="3" rows="1" columns="4">
27948 <features tabularvalignment="middle">
27949 <column alignment="center" valignment="top">
27950 <column alignment="center" valignment="top">
27951 <column alignment="center" valignment="top">
27952 <column alignment="center" valignment="top">
27954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27957 \begin_layout Plain Layout
27963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27966 \begin_layout Plain Layout
27972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27975 \begin_layout Plain Layout
27981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27984 \begin_layout Plain Layout
28003 \begin_layout Plain Layout
28005 \begin_inset Float table
28010 \begin_layout Plain Layout
28011 \begin_inset Caption Standard
28013 \begin_layout Plain Layout
28022 \begin_layout Plain Layout
28024 \begin_inset Tabular
28025 <lyxtabular version="3" rows="1" columns="5">
28026 <features tabularvalignment="middle">
28027 <column alignment="center" valignment="top">
28028 <column alignment="center" valignment="top">
28029 <column alignment="center" valignment="top">
28030 <column alignment="center" valignment="top">
28031 <column alignment="center" valignment="top">
28033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28036 \begin_layout Plain Layout
28042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28045 \begin_layout Plain Layout
28051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28054 \begin_layout Plain Layout
28060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28063 \begin_layout Plain Layout
28069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28072 \begin_layout Plain Layout
28096 \begin_layout Section
28097 Floats Side by Side
28098 \begin_inset Index idx
28101 \begin_layout Plain Layout
28102 Floats ! Side by side
28110 \begin_layout Standard
28111 To place floats side by side, as in Figures
28112 \begin_inset space ~
28116 \begin_inset CommandInset ref
28118 reference "fig:Float-left"
28123 \begin_inset CommandInset ref
28125 reference "fig:Float-right"
28134 In it two minipage boxes are inserted.
28138 \begin_layout Plain Layout
28139 Minipages are explained in section
28140 \begin_inset space ~
28144 \begin_inset CommandInset ref
28146 reference "sec:Minipages"
28155 The width is set to 45
28156 \begin_inset space \thinspace{}
28160 \begin_inset space \thinspace{}
28163 column% and the box alignment to
28168 The minipage boxes contain the image and the caption in the same way as
28169 they are in a float.
28170 The only difference is that the image unit
28173 \begin_inset space ~
28177 \begin_inset space ~
28182 is now calculated according to the width of the minipage boxes.
28185 \begin_layout Standard
28186 \begin_inset Float figure
28191 \begin_layout Plain Layout
28192 \begin_inset Box Frameless
28202 height_special "totalheight"
28207 backgroundcolor "none"
28210 \begin_layout Plain Layout
28212 \begin_inset Graphics
28213 filename clipart/mobius.eps
28216 scaleBeforeRotation
28223 \begin_layout Plain Layout
28224 \begin_inset Caption Standard
28226 \begin_layout Plain Layout
28227 \begin_inset CommandInset label
28229 name "fig:Float-left"
28233 Float on the left side.
28244 \begin_inset space \hfill{}
28248 \begin_inset Box Frameless
28258 height_special "totalheight"
28263 backgroundcolor "none"
28266 \begin_layout Plain Layout
28268 \begin_inset Graphics
28269 filename clipart/platypus.eps
28272 scaleBeforeRotation
28279 \begin_layout Plain Layout
28280 \begin_inset Caption Standard
28282 \begin_layout Plain Layout
28283 \begin_inset CommandInset label
28285 name "fig:Float-right"
28289 Float on the right side.
28307 \begin_layout Standard
28308 An alternative and simpler solution is to use the module
28310 Variable-width Minipages
28313 \begin_inset space \thinspace{}
28317 \begin_inset CommandInset ref
28319 reference "sec:Minipages"
28324 Variable-width minipages adapt automatically to the width of the figures
28326 They do not require an explicit width to be given, and they improve the
28327 horizontal alignment of the figures.
28328 The LyX example file
28330 varwidth-floats-side-by-side
28332 gives examples of how to do this.
28335 \begin_layout Section
28337 \begin_inset Index idx
28340 \begin_layout Plain Layout
28341 Caption ! Formatting
28347 \begin_inset Index idx
28350 \begin_layout Plain Layout
28351 Floats ! Caption Formatting
28357 \begin_inset CommandInset label
28359 name "sec:Caption-Formatting"
28366 \begin_layout Standard
28371 environment is the default paragraph environment for
28376 On the \SpecialChar LyX
28377 screen captions appear as a label, e.
28378 \begin_inset space \thinspace{}
28382 \begin_inset space \space{}
28386 \begin_inset Quotes eld
28394 \begin_inset Quotes erd
28397 followed by the caption text.
28399 \begin_inset Quotes eld
28403 \begin_inset Quotes erd
28406 is the actual reference number.
28407 By default the label and the number are in the same font as the caption
28408 text and a colon follows the number to divide the label from the text.
28409 This caption format is suitable for many but not all documents.
28413 \begin_layout Standard
28414 To change the default caption format, load the \SpecialChar LaTeX
28420 \begin_inset Index idx
28423 \begin_layout Plain Layout
28425 -packages ! caption
28430 in the document preamble with this line:
28433 \begin_layout Standard
28438 usepackage[format definition]{caption}
28441 \begin_layout Standard
28442 To have for example the label and the number in sans-serif, bold font and
28443 the table captions always above the table as in this document, use the
28447 \begin_layout Standard
28452 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28455 \begin_layout Standard
28456 You can also define different caption formats for the different float types.
28457 In this case load the
28461 package without format specific options and define the different formats
28462 with the help of the command
28465 \begin_layout Standard
28470 captionsetup[float type]{format definition}
28473 \begin_layout Standard
28474 in the document preamble.
28475 For example the caption formats of Figure
28476 \begin_inset space ~
28480 \begin_inset CommandInset ref
28482 reference "fig:This-is-an-fig"
28487 \begin_inset space ~
28491 \begin_inset CommandInset ref
28493 reference "tab:This-is-an-tab"
28497 can be created using these commands in the document preamble:
28500 \begin_layout Standard
28505 usepackage[tableposition=top]{caption}
28508 \begin_inset Newline newline
28515 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28516 \begin_inset Newline newline
28520 \begin_inset Phantom HPhantom
28523 \begin_layout Plain Layout
28528 captionsetup[figure]{
28534 \begin_inset Newline newline
28539 captionsetup[table]{labelfont={bf,sf}}
28542 \begin_layout Standard
28543 \begin_inset Note Greyedout
28546 \begin_layout Plain Layout
28555 has no effect when a
28560 \begin_inset Index idx
28563 \begin_layout Plain Layout
28565 -packages ! KOMA-Script
28570 document class is used.
28571 In this case the document class option
28573 captions=tableheading
28583 \begin_layout Standard
28584 For more information about the package
28588 we refer to its documentation
28589 \begin_inset CommandInset citation
28598 \begin_layout Standard
28599 To change the label name from e.
28600 \begin_inset space \thinspace{}
28604 \begin_inset space \space{}
28608 \begin_inset Quotes eld
28612 \begin_inset Quotes erd
28616 \begin_inset Quotes eld
28620 \begin_inset Quotes erd
28623 use this preamble command:
28626 \begin_layout Standard
28633 fnum@figure}{Image~
28638 \begin_layout Standard
28645 inserts the figure number and
28648 \begin_inset Quotes eld
28654 \begin_inset Quotes erd
28657 creates a protected space.
28660 \begin_layout Standard
28661 \begin_inset VSpace bigskip
28669 \begin_inset Index idx
28672 \begin_layout Plain Layout
28674 -packages ! KOMA-Script
28681 article (KOMA-Script)
28689 letter (KOMA-Script)
28693 report (KOMA-Script)
28696 \begin_inset space \thinspace{}
28699 ), you can alternatively to the
28707 's built-in command
28714 For example, to have the caption label in bold, add this command to your
28718 \begin_layout Standard
28723 setkomafont{captionlabel}{
28728 \begin_layout Standard
28729 For more information about
28740 \begin_inset CommandInset citation
28749 \begin_layout Standard
28753 \begin_layout Plain Layout
28757 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28764 \begin_inset Note Note
28767 \begin_layout Plain Layout
28768 The caption format is changed only for this example.
28776 \begin_layout Standard
28777 \begin_inset Float figure
28783 \begin_layout Plain Layout
28785 \begin_inset Graphics
28786 filename clipart/mobius.eps
28789 scaleBeforeRotation
28796 \begin_layout Plain Layout
28797 \begin_inset Caption Standard
28799 \begin_layout Plain Layout
28800 \begin_inset CommandInset label
28802 name "fig:This-is-an-fig"
28806 This is an example figure caption that is longer than one line to show the
28807 different caption format.
28808 Here a self-defined caption format is used.
28821 \begin_layout Standard
28825 \begin_layout Plain Layout
28829 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28838 \begin_layout Standard
28839 \begin_inset Float table
28845 \begin_layout Plain Layout
28846 \begin_inset Caption Standard
28848 \begin_layout Plain Layout
28849 \begin_inset CommandInset label
28851 name "tab:This-is-an-tab"
28855 This is an example table caption that is longer than one line to show the
28856 different caption format.
28857 Here the standard caption format for tables in this document is used.
28865 \begin_layout Plain Layout
28867 \begin_inset Tabular
28868 <lyxtabular version="3" rows="1" columns="5">
28869 <features tabularvalignment="middle">
28870 <column alignment="center" valignment="top">
28871 <column alignment="center" valignment="top">
28872 <column alignment="center" valignment="top">
28873 <column alignment="center" valignment="top">
28874 <column alignment="center" valignment="top">
28876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28879 \begin_layout Plain Layout
28885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28888 \begin_layout Plain Layout
28894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28897 \begin_layout Plain Layout
28903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28915 \begin_layout Plain Layout
28934 \begin_layout Section
28936 \begin_inset Index idx
28939 \begin_layout Plain Layout
28940 Caption ! Placement
28946 \begin_inset Index idx
28949 \begin_layout Plain Layout
28950 Floats ! Caption Placement
28956 \begin_inset CommandInset label
28958 name "sec:Caption-Placement"
28965 \begin_layout Standard
28966 The common caption placement rule is:
28969 \begin_layout Description
28970 Figure: Caption is set below the figure
28973 \begin_layout Description
28974 Table: Caption is set above the table
28977 \begin_layout Standard
28978 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
28981 That means if you are using the document classes
28997 there will be no space between the caption and the table.
28998 To insert the necessary space, load the \SpecialChar LaTeX
29004 \begin_inset Index idx
29007 \begin_layout Plain Layout
29009 -packages ! caption
29014 in your document preamble with the option
29018 \begin_layout Plain Layout
29020 \begin_inset space ~
29024 \begin_inset CommandInset ref
29026 reference "sec:Caption-Formatting"
29030 for more information of the package
29042 \begin_layout Standard
29048 \begin_layout Standard
29054 \begin_inset Index idx
29057 \begin_layout Plain Layout
29059 -packages ! KOMA-Script
29066 article (KOMA-Script)
29074 letter (KOMA-Script)
29078 report (KOMA-Script)
29081 \begin_inset space \thinspace{}
29084 ), you can alternatively to the
29088 package set the document class option
29092 \begin_layout Plain Layout
29093 That option is used in this document.
29101 \begin_layout Standard
29104 captions=tableheading
29107 \begin_layout Standard
29108 In documents with a KOMA-Script document class you can also right-click
29109 on a caption and mark in the context menu if this should be a caption above
29110 or below the table/figure.
29111 This way you can override the document-wide caption placement for certain
29114 \begin_inset space ~
29118 \begin_inset CommandInset ref
29120 reference "tab:A-caption-marked"
29124 is an example where the caption is marked a being below the table while
29126 For comparison the caption in Table
29127 \begin_inset space ~
29131 \begin_inset CommandInset ref
29133 reference "tab:A-standard-table"
29140 \begin_layout Standard
29141 \begin_inset Float table
29146 \begin_layout Plain Layout
29147 \begin_inset Caption Below
29149 \begin_layout Plain Layout
29150 \begin_inset CommandInset label
29152 name "tab:A-caption-marked"
29156 A caption marked as being below the table.
29164 \begin_layout Plain Layout
29166 \begin_inset Tabular
29167 <lyxtabular version="3" rows="3" columns="3">
29168 <features tabularvalignment="middle">
29169 <column alignment="center" valignment="top" width="0pt">
29170 <column alignment="center" valignment="top" width="0pt">
29171 <column alignment="center" valignment="top" width="0pt">
29173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29176 \begin_layout Plain Layout
29182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29185 \begin_layout Plain Layout
29191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29194 \begin_layout Plain Layout
29202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29205 \begin_layout Plain Layout
29211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29214 \begin_layout Plain Layout
29220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29223 \begin_layout Plain Layout
29231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29234 \begin_layout Plain Layout
29235 \begin_inset Formula $\int x^{2}dx$
29243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29246 \begin_layout Plain Layout
29247 \begin_inset Formula $\left[\begin{array}{cc}
29250 \end{array}\right]$
29258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29261 \begin_layout Plain Layout
29262 \begin_inset Formula $1+1=2$
29283 \begin_layout Standard
29284 \begin_inset Float table
29289 \begin_layout Plain Layout
29290 \begin_inset Caption Standard
29292 \begin_layout Plain Layout
29293 \begin_inset CommandInset label
29295 name "tab:A-standard-table"
29299 A standard table caption.
29307 \begin_layout Plain Layout
29309 \begin_inset Tabular
29310 <lyxtabular version="3" rows="3" columns="3">
29311 <features tabularvalignment="middle">
29312 <column alignment="center" valignment="top" width="0pt">
29313 <column alignment="center" valignment="top" width="0pt">
29314 <column alignment="center" valignment="top" width="0pt">
29316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29319 \begin_layout Plain Layout
29325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29328 \begin_layout Plain Layout
29334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29337 \begin_layout Plain Layout
29345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29348 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29366 \begin_layout Plain Layout
29374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29377 \begin_layout Plain Layout
29378 \begin_inset Formula $\int x^{2}dx$
29386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29389 \begin_layout Plain Layout
29390 \begin_inset Formula $\left[\begin{array}{cc}
29393 \end{array}\right]$
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29404 \begin_layout Plain Layout
29405 \begin_inset Formula $1+1=2$
29426 \begin_layout Standard
29427 \begin_inset VSpace bigskip
29430 It is also possible to set the caption beside a figure or table.
29431 To get this the \SpecialChar LaTeX
29437 \begin_inset Index idx
29440 \begin_layout Plain Layout
29442 -packages ! sidecap
29447 has to be loaded in the document preamble with the line
29450 \begin_layout Standard
29455 usepackage[option]{sidecap}
29458 \begin_layout Standard
29459 If you set no option, the caption is placed on the side of the outer page
29460 margin – to the right on odd pages, to the left on even pages.
29461 You can change the placement to inner margin with the option
29466 To force the placement always to the right or left, use the option
29477 \begin_layout Standard
29481 \begin_layout Plain Layout
29491 \begin_inset Note Note
29494 \begin_layout Plain Layout
29495 The following section will only be displayed when the \SpecialChar LaTeX
29508 \begin_layout Standard
29509 To place in \SpecialChar LyX
29510 the caption of a float on the side, it is necessary to add
29511 these commands to the document preamble:
29514 \begin_layout Standard
29516 \begin_inset CommandInset line
29527 \begin_layout Standard
29534 TabBesBeg}[1][1.0]{%
29535 \begin_inset Newline newline
29539 \begin_inset Phantom HPhantom
29542 \begin_layout Plain Layout
29543 \begin_inset space ~
29558 \begin_inset Newline newline
29562 \begin_inset Phantom HPhantom
29565 \begin_layout Plain Layout
29568 \begin_inset space ~
29583 \begin_inset Newline newline
29587 \begin_inset Phantom HPhantom
29590 \begin_layout Plain Layout
29593 \begin_inset space ~
29603 renewenvironment{table}[1]{
29605 begin{SCtable}[#1]##1}{
29610 \begin_layout Standard
29618 \begin_inset Newline newline
29622 \begin_inset Phantom HPhantom
29625 \begin_layout Plain Layout
29626 \begin_inset space ~
29641 \begin_inset Newline newline
29645 \begin_inset Phantom HPhantom
29648 \begin_layout Plain Layout
29649 \begin_inset space ~
29666 \begin_layout Standard
29673 FigBesBeg}[1][1.0]{%
29674 \begin_inset Newline newline
29678 \begin_inset Phantom HPhantom
29681 \begin_layout Plain Layout
29682 \begin_inset space ~
29697 \begin_inset Newline newline
29701 \begin_inset Phantom HPhantom
29704 \begin_layout Plain Layout
29705 \begin_inset space ~
29720 \begin_inset Newline newline
29724 \begin_inset Phantom HPhantom
29727 \begin_layout Plain Layout
29728 \begin_inset space ~
29738 renewenvironment{figure}[1]{
29740 begin{SCfigure}[#1]##1}{
29745 \begin_layout Standard
29753 \begin_inset Newline newline
29757 \begin_inset Phantom HPhantom
29760 \begin_layout Plain Layout
29761 \begin_inset space ~
29776 \begin_inset Newline newline
29780 \begin_inset Phantom HPhantom
29783 \begin_layout Plain Layout
29784 \begin_inset space ~
29801 \begin_layout Standard
29803 \begin_inset CommandInset line
29814 \begin_layout Standard
29815 The commands allow you to redefine the floats so that the caption is set
29817 For figure floats use the command
29820 \begin_layout Standard
29828 \begin_layout Standard
29829 in \SpecialChar TeX
29830 Code before the float.
29831 And insert the command
29834 \begin_layout Standard
29842 \begin_layout Standard
29843 in \SpecialChar TeX
29844 Code at the point where you want to get back to the original float definitio
29848 \begin_layout Standard
29849 For table floats use the corresponding commands
29852 \begin_layout Standard
29866 \begin_layout Standard
29868 \begin_inset space ~
29872 \begin_inset CommandInset ref
29874 reference "fig:cap-beside-fig"
29879 \begin_inset space ~
29883 \begin_inset CommandInset ref
29885 reference "tab:cap-beside-tab"
29889 are examples where the caption is set beside.
29892 \begin_layout Standard
29893 You can see in the examples that the caption text appears at the top of
29894 the floats for table floats and at the bottom for figure floats.
29895 To change this, you can use the command
29898 \begin_layout Standard
29903 sidecaptionvpos{float type}{placement}
29906 \begin_layout Standard
29907 in the document preamble or in \SpecialChar TeX
29908 Code before the float.
29909 The float type is either
29917 , the placement can be
29918 \begin_inset Quotes eld
29926 \begin_inset Quotes erd
29930 \begin_inset Quotes eld
29938 \begin_inset Quotes erd
29942 \begin_inset Quotes eld
29950 \begin_inset Quotes erd
29954 To have for example the caption of figure floats vertically centered, use
29958 \begin_layout Standard
29963 sidecaptionvpos{figure}{c}
29966 \begin_layout Standard
29967 This was used for Figure
29968 \begin_inset space ~
29972 \begin_inset CommandInset ref
29974 reference "fig:cap-beside-fig-2"
29981 \begin_layout Standard
29982 \begin_inset VSpace medskip
29988 \begin_layout Standard
29989 The default caption width is the width of the image/table.
29990 For thin image/tables, like in Table
29991 \begin_inset space ~
29995 \begin_inset CommandInset ref
29997 reference "tab:cap-beside-tab"
30001 , this leads to captions that are too thin.
30002 You can increase the width by specifying a factor that will be multiplied
30003 with the image/table width to get the caption width.
30004 The caption width will automatically be recalculated in case it would protrude
30005 over the page or column margin due to the specified width.
30010 can either be given as optional argument for
30019 \begin_layout Standard
30027 \begin_layout Standard
30028 or in the definition of
30038 with another value.
30039 If you do the latter, your factor will be the default if
30045 is used without an argument.
30047 \begin_inset space ~
30051 \begin_inset CommandInset ref
30053 reference "tab:cap-beside-tab-wider"
30057 the factor 5 was used.
30060 \begin_layout Standard
30061 \begin_inset Note Greyedout
30064 \begin_layout Plain Layout
30069 For floats with captions set beside, you cannot use the float placement
30073 \begin_inset space ~
30078 because it is not supported by
30090 \begin_layout Standard
30091 \begin_inset VSpace medskip
30094 For more information about the package
30098 we refer to its documentation
30099 \begin_inset CommandInset citation
30108 \begin_layout Standard
30109 \begin_inset Note Greyedout
30112 \begin_layout Plain Layout
30117 The \SpecialChar LaTeX
30123 \begin_inset Index idx
30126 \begin_layout Plain Layout
30133 , described in section
30134 \begin_inset space ~
30138 \begin_inset CommandInset ref
30140 reference "subsec:Reference-Position"
30144 , has no effect on floats with the caption set beside.
30152 \begin_layout Standard
30156 \begin_layout Plain Layout
30168 \begin_layout Standard
30169 \begin_inset Float figure
30174 \begin_layout Plain Layout
30175 \begin_inset Graphics
30176 filename clipart/escher-lsd.eps
30178 scaleBeforeRotation
30185 \begin_layout Plain Layout
30186 \begin_inset Caption Standard
30188 \begin_layout Plain Layout
30189 \begin_inset CommandInset label
30191 name "fig:cap-beside-fig"
30195 This is a caption beside a figure.
30208 \begin_layout Standard
30212 \begin_layout Plain Layout
30224 \begin_layout Standard
30228 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 \begin_inset Float table
30246 \begin_layout Plain Layout
30247 \begin_inset Caption Standard
30249 \begin_layout Plain Layout
30250 \begin_inset CommandInset label
30252 name "tab:cap-beside-tab"
30256 This is a caption beside a table.
30264 \begin_layout Plain Layout
30265 \begin_inset Tabular
30266 <lyxtabular version="3" rows="4" columns="5">
30267 <features tabularvalignment="middle">
30268 <column alignment="center" valignment="top">
30269 <column alignment="center" valignment="top">
30270 <column alignment="center" valignment="top">
30271 <column alignment="center" valignment="top">
30272 <column alignment="center" valignment="top">
30274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30277 \begin_layout Plain Layout
30283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30286 \begin_layout Plain Layout
30292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30295 \begin_layout Plain Layout
30301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30304 \begin_layout Plain Layout
30310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30313 \begin_layout Plain Layout
30321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30324 \begin_layout Plain Layout
30330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30333 \begin_layout Plain Layout
30339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30342 \begin_layout Plain Layout
30348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30351 \begin_layout Plain Layout
30357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30360 \begin_layout Plain Layout
30368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30371 \begin_layout Plain Layout
30377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30380 \begin_layout Plain Layout
30386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30389 \begin_layout Plain Layout
30395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30398 \begin_layout Plain Layout
30404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30407 \begin_layout Plain Layout
30415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30418 \begin_layout Plain Layout
30424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30427 \begin_layout Plain Layout
30433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30436 \begin_layout Plain Layout
30442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30445 \begin_layout Plain Layout
30451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30454 \begin_layout Plain Layout
30473 \begin_layout Standard
30477 \begin_layout Plain Layout
30489 \begin_layout Standard
30493 \begin_layout Plain Layout
30506 \begin_layout Plain Layout
30510 sidecaptionvpos{figure}{c}
30516 \begin_inset Float figure
30521 \begin_layout Plain Layout
30522 \begin_inset Graphics
30523 filename clipart/escher-lsd.eps
30525 scaleBeforeRotation
30532 \begin_layout Plain Layout
30533 \begin_inset Caption Standard
30535 \begin_layout Plain Layout
30536 \begin_inset CommandInset label
30538 name "fig:cap-beside-fig-2"
30542 This is a vertically centered caption beside a figure.
30555 \begin_layout Standard
30559 \begin_layout Plain Layout
30571 \begin_layout Standard
30575 \begin_layout Plain Layout
30587 \begin_layout Standard
30588 \begin_inset Float table
30593 \begin_layout Plain Layout
30594 \begin_inset Caption Standard
30596 \begin_layout Plain Layout
30597 \begin_inset CommandInset label
30599 name "tab:cap-beside-tab-wider"
30603 This caption is wider than the one in Table
30604 \begin_inset space ~
30608 \begin_inset CommandInset ref
30610 reference "tab:cap-beside-tab"
30622 \begin_layout Plain Layout
30623 \begin_inset Tabular
30624 <lyxtabular version="3" rows="4" columns="5">
30625 <features tabularvalignment="middle">
30626 <column alignment="center" valignment="top">
30627 <column alignment="center" valignment="top">
30628 <column alignment="center" valignment="top">
30629 <column alignment="center" valignment="top">
30630 <column alignment="center" valignment="top">
30632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30635 \begin_layout Plain Layout
30641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30644 \begin_layout Plain Layout
30650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30653 \begin_layout Plain Layout
30659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30662 \begin_layout Plain Layout
30668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30671 \begin_layout Plain Layout
30679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30682 \begin_layout Plain Layout
30688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30691 \begin_layout Plain Layout
30697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30700 \begin_layout Plain Layout
30706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30709 \begin_layout Plain Layout
30715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30718 \begin_layout Plain Layout
30726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30729 \begin_layout Plain Layout
30735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30738 \begin_layout Plain Layout
30744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30747 \begin_layout Plain Layout
30753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30756 \begin_layout Plain Layout
30762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30765 \begin_layout Plain Layout
30773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30776 \begin_layout Plain Layout
30782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30785 \begin_layout Plain Layout
30791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30794 \begin_layout Plain Layout
30800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30803 \begin_layout Plain Layout
30809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30812 \begin_layout Plain Layout
30831 \begin_layout Standard
30835 \begin_layout Plain Layout
30847 \begin_layout Standard
30851 \begin_layout Plain Layout
30861 \begin_inset Note Note
30864 \begin_layout Plain Layout
30865 The following will be displayed when the \SpecialChar LaTeX
30878 \begin_layout Standard
30879 You need to install the \SpecialChar LaTeX
30884 to see the following part of this section in the output.
30887 \begin_layout Standard
30891 \begin_layout Plain Layout
30903 \begin_layout Section
30905 \begin_inset Index idx
30908 \begin_layout Plain Layout
30909 Floats ! Float Lists
30917 \begin_layout Standard
30918 Similar to the table of contents where the sections of the document are
30919 listed, there are listings for all float types, like the figures of the
30921 You can insert them via the
30923 Insert\SpecialChar menuseparator
30925 \begin_inset space ~
30929 \begin_inset space ~
30937 \begin_layout Standard
30938 The list entries are the float captions or its short title, the float number,
30939 and the page number where they appear in the document.
30942 \begin_layout Standard
30943 You can find the list of figures and tables at the end of this document.
30946 \begin_layout Chapter
30950 \begin_layout Section
30953 \begin_inset Index idx
30956 \begin_layout Plain Layout
30957 Notes ! \SpecialChar LyX
30966 \begin_layout Standard
30967 Notes are inserted with the toolbar button
30975 Insert\SpecialChar menuseparator
30979 There are three types of notes:
30982 \begin_layout Description
30985 \begin_inset space ~
30988 Note This note type is for internal notes that won't appear in the output.
30989 Its note-box looks like this:
30990 \begin_inset Newline newline
30994 \begin_inset Newline newline
30998 \begin_inset Graphics
30999 filename clipart/LyXNoteImage.png
31001 scaleBeforeRotation
31006 \begin_inset Note Note
31009 \begin_layout Plain Layout
31010 This is text in a note box that doesn't appear in the output.
31018 \begin_layout Description
31019 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31021 when you export the document to \SpecialChar LaTeX
31024 File\SpecialChar menuseparator
31025 Export\SpecialChar menuseparator
31027 \begin_inset space ~
31030 (pdflatex) / (plain)
31033 Its note-box looks like this:
31034 \begin_inset Newline newline
31038 \begin_inset Newline newline
31042 \begin_inset Graphics
31043 filename clipart/CommentNoteImage.png
31045 scaleBeforeRotation
31050 \begin_inset Note Comment
31053 \begin_layout Plain Layout
31054 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31063 \begin_layout Description
31065 \begin_inset space ~
31068 Out This note will appear in the output as grey text.
31069 Its note-box looks like this:
31070 \begin_inset Newline newline
31074 \begin_inset Newline newline
31078 \begin_inset Graphics
31079 filename clipart/GreyedOutNoteImage.png
31081 scaleBeforeRotation
31086 \begin_inset Newline newline
31093 \begin_layout Plain Layout
31097 renewenvironment{lyxgreyedout}
31100 \begin_layout Plain Layout
31104 textcolor[gray]{0.8}
31114 \begin_inset Note Greyedout
31117 \begin_layout Plain Layout
31118 This is text of a comment that appears grey in the output.
31127 \begin_layout Plain Layout
31131 renewenvironment{lyxgreyedout}
31134 \begin_layout Plain Layout
31148 \begin_inset Note Note
31151 \begin_layout Plain Layout
31152 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31154 because greyed out notes are redefined in the preamble of this document,
31155 as described below, to have blue text.
31161 \begin_inset Newline newline
31165 \begin_inset Newline newline
31168 As you can see in the example, the first line of greyed out notes is a bit
31169 indented and greyed out notes can have footnotes.
31172 \begin_layout Standard
31173 \begin_inset VSpace bigskip
31176 When you use the toolbar button
31186 \begin_inset space ~
31192 You can switch between the three note types by right-clicking on the note-box.
31197 If you want to turn existing text into a note, mark it and click on the
31211 To change a note to text, press the backspace key when the cursor is in
31212 the first position of a note, or press the delete key when the cursor is
31213 in the very last position of the note, respectively.
31216 \begin_layout Standard
31217 \begin_inset VSpace bigskip
31220 You can change the text color of the greyed out notes in the menu
31222 Document\SpecialChar menuseparator
31223 Settings\SpecialChar menuseparator
31229 \begin_layout Section
31231 \begin_inset CommandInset label
31233 name "sec:Footnotes"
31238 \begin_inset Index idx
31241 \begin_layout Plain Layout
31248 \begin_inset Index idx
31251 \begin_layout Plain Layout
31260 \begin_layout Standard
31261 Footnotes can be inserted using the toolbar button
31264 arg "footnote-insert"
31269 Insert\SpecialChar menuseparator
31273 You will then see the following footnote-box:
31274 \begin_inset Graphics
31275 filename clipart/footnote.png
31277 scaleBeforeRotation
31285 where you can enter the footnote text.
31286 If you want to turn existing text into a footnote, mark it and click on
31312 key when the cursor is in the first position of a
31324 key when the cursor is in the very last position of the
31335 \begin_layout Standard
31336 Here is an example footnote:
31344 \begin_layout Plain Layout
31345 \begin_inset CommandInset label
31347 name "foot:This-is-an"
31351 This is an example footnote.
31364 \begin_layout Plain Layout
31368 newcounter{MyRepeatFoot}
31371 \begin_layout Plain Layout
31375 setcounter{MyRepeatFoot}{
31385 \begin_layout Standard
31386 The footnote will appear in the output as a superscript number at the text
31387 position where the footnote box is placed.
31388 The footnote text is placed at the bottom of the current page.
31389 The footnote number is calculated by \SpecialChar LaTeX
31390 ; the numbers are consecutive.
31391 Whether the footnote number is reset for every chapter depends on your
31395 \begin_layout Standard
31396 Footnotes can be referenced like floats: Insert a label into the footnote
31397 and cross-reference this label in the text as described in section
31398 \begin_inset space ~
31402 \begin_inset CommandInset ref
31404 reference "sec:Referencing-Floats"
31409 \begin_inset Newline newline
31412 This is a cross-reference of Footnote
31413 \begin_inset space ~
31417 \begin_inset CommandInset ref
31419 reference "foot:This-is-an"
31426 \begin_layout Standard
31427 \begin_inset VSpace defskip
31430 Footnotes in title environments are usually not numbered with symbols and
31431 they cannot contain several paragraphs.
31432 See for example the footnote in the titling of this document.
31435 \begin_layout Standard
31436 \begin_inset VSpace defskip
31439 Footnotes in tables are not printed by \SpecialChar LaTeX
31440 due to technical reasons.
31441 However there exists another method to print them: Instead of the footnote
31448 is inserted as \SpecialChar TeX
31450 The text of the footnote is entered as an argument of the \SpecialChar TeX
31459 \begin_inset Newline newline
31462 This was done for the following table with the command
31465 \begin_layout Standard
31472 Printed table footnote.
31477 \begin_layout Standard
31478 \begin_inset Tabular
31479 <lyxtabular version="3" rows="2" columns="1">
31480 <features tabularvalignment="middle">
31481 <column alignment="center" valignment="top">
31483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31486 \begin_layout Plain Layout
31487 This an example text.
31491 \begin_layout Plain Layout
31492 This footnote will not be printed!
31504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31507 \begin_layout Plain Layout
31508 This an example text.
31512 \begin_layout Plain Layout
31535 \begin_layout Plain Layout
31544 Printed table footnote.
31548 \begin_layout Plain Layout
31558 \begin_layout Standard
31559 Footnotes in multi-page tables are described in section
31560 \begin_inset space ~
31564 \begin_inset CommandInset ref
31566 reference "subsec:Footnotes-in-Multi-page"
31573 \begin_layout Standard
31574 Footnotes in minipage boxes are printed, but inside the box and with a different
31575 numbering because a minipage box is like a page inside a page.
31576 (For more about minipages, see section
31577 \begin_inset space ~
31581 \begin_inset CommandInset ref
31583 reference "sec:Minipages"
31587 .) To get a footnote in the minipage that is output at the bottom of the
31588 page like normal footnotes, also use the method of
31603 \begin_layout Standard
31604 \begin_inset Box Frameless
31614 height_special "totalheight"
31619 backgroundcolor "none"
31622 \begin_layout Plain Layout
31623 This an example text in a minipage.
31627 \begin_layout Plain Layout
31628 Footnote in the minipage.
31636 \begin_layout Plain Layout
31637 This an example text in a minipage.
31641 \begin_layout Plain Layout
31658 \begin_layout Standard
31662 \begin_layout Plain Layout
31671 Footnote outside the minipage.
31675 \begin_layout Plain Layout
31685 \begin_layout Standard
31686 \begin_inset VSpace defskip
31692 \begin_layout Standard
31693 To refer to the same footnote several times without printing the footnote
31694 text every time, use the command
31698 footnotemark[number]
31700 in \SpecialChar TeX
31702 \begin_inset Newline newline
31705 As you do not know the number of the repeating footnote while you are writing
31706 the text, you have to store its number.
31707 For the following footnote mark example, these commands were inserted in
31709 code after Footnote
31710 \begin_inset space ~
31714 \begin_inset CommandInset ref
31716 reference "foot:This-is-an"
31720 to store the footnote number:
31723 \begin_layout Standard
31728 newcounter{MyRepeatFoot}
31729 \begin_inset Newline newline
31734 setcounter{MyRepeatFoot}{
31739 \begin_layout Standard
31740 The footnote mark was then created with this command:
31743 \begin_layout Standard
31753 \begin_layout Standard
31754 Here is a repeated footnote:
31762 \begin_layout Plain Layout
31776 \begin_layout Standard
31777 If you want to repeat the previous footnote, you can omit the storage of
31778 the footnote number and just use this command instead:
31781 \begin_layout Standard
31791 \begin_layout Standard
31792 Here is another repeated footnote:
31800 \begin_layout Plain Layout
31814 \begin_layout Subsection
31816 \begin_inset CommandInset label
31818 name "subsec:Footnote-Numbering"
31823 \begin_inset Index idx
31826 \begin_layout Plain Layout
31827 Footnotes ! Numbering
31835 \begin_layout Standard
31836 To reset the footnote number back to 1 after each section
31838 , add this command to your document preamble:
31841 \begin_layout Standard
31846 @addtoreset{footnote}{section}
31849 \begin_layout Standard
31850 \begin_inset VSpace bigskip
31853 The following preamble command changes the footnote numbering style to small
31857 \begin_layout Standard
31869 \begin_layout Standard
31873 \begin_layout Plain Layout
31886 This is a footnote with roman numbering:
31890 \begin_layout Plain Layout
31891 This is an example footnote with roman numbering.
31899 \begin_layout Standard
31900 To change the numbering style to capital roman numerals replace in the command
31915 \begin_inset Quotes eld
31919 \begin_inset Quotes erd
31922 footnotes with capital or small Latin letters use
31936 \begin_inset Quotes eld
31940 \begin_inset Quotes erd
31943 footnotes with symbols use
31952 \begin_layout Standard
31953 \begin_inset Note Greyedout
31956 \begin_layout Plain Layout
31961 You can only number 26 footnotes with Latin letters, because this numbering
31962 is limited to single letters.
31968 \begin_inset Newline newline
31972 \begin_inset Note Greyedout
31975 \begin_layout Plain Layout
31980 You can only number 9 footnotes with symbols.
31988 \begin_layout Standard
31989 To return to the default numbering style after you have changed to another
32002 in the command above.
32006 \begin_layout Plain Layout
32022 \begin_layout Standard
32023 \begin_inset VSpace bigskip
32029 \begin_layout Standard
32030 If you want to have footnotes numbered in the scheme
32031 \begin_inset Quotes eld
32035 \begin_inset Quotes erd
32038 , add the following command to your document preamble:
32041 \begin_layout Standard
32046 numberwithin{footnote}{chapter}
32049 \begin_layout Standard
32050 To be able to use the command
32059 \begin_inset space ~
32064 in the document settings the option
32067 \begin_inset space ~
32071 \begin_inset space ~
32075 \begin_inset space ~
32083 \begin_layout Standard
32087 \begin_layout Plain Layout
32091 numberwithin{footnote}{chapter}
32096 This is another example footnote:
32102 \begin_layout Plain Layout
32103 This is a footnote numbered in the scheme
32104 \begin_inset Quotes eld
32108 \begin_inset Quotes erd
32122 \begin_layout Plain Layout
32138 \begin_layout Standard
32139 \begin_inset Note Greyedout
32142 \begin_layout Plain Layout
32153 always prints out the footnote number as arabic number; previous redefinitions
32154 to get non-arabic numbers are overwritten.
32162 \begin_layout Standard
32163 So to get for example the scheme
32164 \begin_inset Quotes eld
32170 \begin_inset Quotes erd
32173 , use this command instead of
32182 \begin_layout Standard
32196 \begin_layout Subsection
32198 \begin_inset Index idx
32201 \begin_layout Plain Layout
32202 Footnotes ! Placement
32210 \begin_layout Standard
32211 If you have several footnotes in one page, they appear without vertical
32212 space between them at the bottom of the page.
32213 To make them more readable you can e.
32214 \begin_inset space \thinspace{}
32218 \begin_inset space \space{}
32222 \begin_inset space \thinspace{}
32225 mm space with the following preamble command:
32228 \begin_layout Standard
32238 \begin_inset Newline newline
32252 \begin_layout Standard
32253 \begin_inset VSpace bigskip
32256 In a two-column document the footnotes appear at the bottom of every column,
32258 \begin_inset space ~
32262 \begin_inset CommandInset ref
32264 reference "fig:Standard-footnote-placement"
32269 If the footnotes should only appear at the bottom of the right column,
32271 \begin_inset space ~
32275 \begin_inset CommandInset ref
32277 reference "fig:Footnote-placement-in"
32281 , use the \SpecialChar LaTeX
32287 \begin_inset Index idx
32290 \begin_layout Plain Layout
32292 -packages ! ftnright
32297 with this command in the document preamble:
32300 \begin_layout Standard
32305 usepackage{ftnright}
32308 \begin_layout Standard
32309 \begin_inset Float figure
32315 \begin_layout Plain Layout
32318 \begin_inset Box Boxed
32328 height_special "totalheight"
32333 backgroundcolor "none"
32336 \begin_layout Plain Layout
32337 \begin_inset Graphics
32338 filename clipart/without_fntright.pdf
32340 scaleBeforeRotation
32352 \begin_layout Plain Layout
32353 \begin_inset Caption Standard
32355 \begin_layout Plain Layout
32356 \begin_inset CommandInset label
32358 name "fig:Standard-footnote-placement"
32362 Standard footnote placement in two-column documents.
32375 \begin_layout Standard
32376 \begin_inset Float figure
32382 \begin_layout Plain Layout
32385 \begin_inset Box Boxed
32395 height_special "totalheight"
32400 backgroundcolor "none"
32403 \begin_layout Plain Layout
32404 \begin_inset Graphics
32405 filename clipart/with_fntright.pdf
32407 scaleBeforeRotation
32419 \begin_layout Plain Layout
32420 \begin_inset Caption Standard
32422 \begin_layout Plain Layout
32423 \begin_inset CommandInset label
32425 name "fig:Footnote-placement-in"
32429 Footnote placement in two-column documents when the \SpecialChar LaTeX
32447 \begin_layout Standard
32448 \begin_inset VSpace bigskip
32451 In some scientific literature it is usual to collect the footnotes and print
32452 them in a separate paragraph at the end of a section, as in Figure
32453 \begin_inset space ~
32457 \begin_inset CommandInset ref
32459 reference "fig:Endnotes"
32464 They are then called
32465 \begin_inset Quotes eld
32469 \begin_inset Quotes erd
32473 \begin_inset Index idx
32476 \begin_layout Plain Layout
32482 To use endnotes instead of footnotes in your document, load in the menu
32485 Document\SpecialChar menuseparator
32486 Settings\SpecialChar menuseparator
32492 \begin_inset space ~
32496 \begin_inset space ~
32502 To insert the collected footnotes, insert the command
32505 \begin_layout Standard
32513 \begin_layout Standard
32514 in \SpecialChar TeX
32515 Code at the end of a section or chapter.
32518 \begin_layout Standard
32519 \begin_inset Float figure
32524 \begin_layout Plain Layout
32527 \begin_inset Box Boxed
32537 height_special "totalheight"
32542 backgroundcolor "none"
32545 \begin_layout Plain Layout
32546 \begin_inset Graphics
32547 filename clipart/endnotes.pdf
32549 scaleBeforeRotation
32561 \begin_layout Plain Layout
32562 \begin_inset Caption Standard
32564 \begin_layout Plain Layout
32565 \begin_inset CommandInset label
32567 name "fig:Endnotes"
32571 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32585 \begin_layout Standard
32586 \begin_inset VSpace medskip
32589 The paragraph heading for the endnotes isn't automatically translated into
32590 the document language, this must be done manually.
32591 The following preamble command translates the default English
32592 \begin_inset Quotes eld
32596 \begin_inset Quotes erd
32600 \begin_inset Quotes eld
32604 \begin_inset Quotes erd
32610 \begin_layout Standard
32617 notesname}{Anmerkungen}
32620 \begin_layout Standard
32621 \begin_inset VSpace medskip
32624 The numbering of endnotes can be changed like the footnote numbering as
32625 described in section
32626 \begin_inset space ~
32630 \begin_inset CommandInset ref
32632 reference "subsec:Footnote-Numbering"
32636 ; just replace the command
32649 To reset the endnote number use the command
32655 as described in section
32656 \begin_inset space ~
32660 \begin_inset CommandInset ref
32662 reference "subsec:Footnote-Numbering"
32666 and replace the command parameter
32677 \begin_layout Standard
32678 For endnotes there is the command
32682 endnotemark[number]
32684 similar to the command
32690 , that is described in section
32691 \begin_inset space ~
32695 \begin_inset CommandInset ref
32697 reference "sec:Footnotes"
32704 \begin_layout Standard
32705 \begin_inset VSpace bigskip
32708 Footnotes can also be placed in the page margin and the footnote text alignment
32709 can be changed, see the \SpecialChar LaTeX
32715 \begin_inset Index idx
32718 \begin_layout Plain Layout
32720 -packages ! footmisc
32726 \begin_inset CommandInset citation
32732 for more information about this.
32735 \begin_layout Standard
32736 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32738 \begin_inset CommandInset citation
32740 key "latexcompanion,latexguide,latexbook"
32750 \begin_inset Index idx
32753 \begin_layout Plain Layout
32755 -packages ! KOMA-Script
32760 document class, you can adjust all footnote settings using class-specific
32762 \begin_inset CommandInset citation
32771 \begin_layout Section
32773 \begin_inset Index idx
32776 \begin_layout Plain Layout
32777 Notes ! Margin Notes
32785 \begin_layout Standard
32786 Margin notes look and behave in \SpecialChar LyX
32788 They are inserted via the menu
32790 Insert\SpecialChar menuseparator
32792 \begin_inset space ~
32797 or the toolbar button
32800 arg "marginalnote-insert"
32814 \begin_inset Quotes eld
32818 \begin_inset Quotes erd
32821 appears where you can enter the text of the margin note.
32824 \begin_layout Standard
32825 At the side is an example margin note.
32830 \begin_inset Marginal
32833 \begin_layout Plain Layout
32834 This is a margin note.
32842 \begin_layout Standard
32843 Margin notes appear at the right side in single-sided documents.
32844 In double-sided documents they appear in the outer margin – left on even
32845 pages, right on odd pages.
32846 The text of margin notes is aligned opposite to the outer margin – right-aligne
32847 d when the note appears in the left margin.
32848 The first line of the margin note is placed at the position of the text
32849 line where it is inserted in the document.
32852 \begin_layout Standard
32853 \begin_inset VSpace bigskip
32856 To place the margin note in the inner margin, add the command
32859 \begin_layout Standard
32867 \begin_layout Standard
32868 in \SpecialChar TeX
32869 Code before a margin note.
32870 The new placement is valid for all subsequent margin notes.
32875 \begin_layout Plain Layout
32885 \begin_inset Marginal
32888 \begin_layout Plain Layout
32889 This is a margin note in the inner margin.
32897 \begin_inset Newline newline
32903 \begin_inset Note Greyedout
32906 \begin_layout Plain Layout
32911 There is often not enough space in the inner margin so that the notes are
32912 not correctly displayed in the output.
32920 \begin_layout Standard
32921 To return to the default placement insert the command
32924 \begin_layout Standard
32932 \begin_layout Standard
32933 in \SpecialChar TeX
32938 \begin_layout Plain Layout
32948 \begin_inset Note Greyedout
32951 \begin_layout Plain Layout
32956 The command is ignored when it is within a paragraph where also the command
32971 \begin_layout Standard
32972 \begin_inset VSpace bigskip
32979 \begin_inset Marginal
32982 \begin_layout Plain Layout
32983 AVeryLongMarginParWord that isn't hyphenated.
32991 Similar to the case described in section
32992 \begin_inset space ~
32996 \begin_inset CommandInset ref
32998 reference "subsec:Multiple-Lines-in"
33002 , long words cannot be hyphenated when they are the first word in a margin
33004 To avoid this, insert 0
33005 \begin_inset space \thinspace{}
33008 pt horizontal space before the word
33013 \begin_inset Marginal
33016 \begin_layout Plain Layout
33017 \begin_inset space \hspace*{}
33021 AVeryLongMarginParWord that is hyphenated.
33029 \begin_layout Standard
33030 \begin_inset VSpace bigskip
33036 \begin_layout Standard
33037 \begin_inset Note Greyedout
33040 \begin_layout Plain Layout
33045 Margin notes can normally not be used inside tables, floats, and footnotes.
33053 \begin_layout Standard
33054 \begin_inset VSpace bigskip
33060 \begin_layout Standard
33064 \begin_layout Plain Layout
33074 \begin_inset Note Note
33077 \begin_layout Plain Layout
33078 The following section will only be displayed when the \SpecialChar LaTeX
33091 \begin_layout Standard
33092 This restriction can be evaded by using the \SpecialChar LaTeX
33098 \begin_inset Index idx
33101 \begin_layout Plain Layout
33103 -packages ! marginnote
33109 By adding these two lines to your document preamble, the command used by
33111 for margin notes is redefined to use the command provided by the
33118 \begin_layout Standard
33123 usepackage{marginnote}
33124 \begin_inset Newline newline
33136 \begin_layout Standard
33137 This is also used in this document because
33141 has another useful feature: You can set a vertical offset for the note.
33142 This is often needed when too many margin notes are too close together
33143 or for a better page layout.
33144 The offset is set in \SpecialChar LyX
33145 as \SpecialChar TeX
33146 Code directly after the margin note in the scheme
33149 \begin_layout Standard
33155 \begin_layout Standard
33156 where the offset is a length with one of the units listed in Table
33157 \begin_inset space ~
33161 \begin_inset CommandInset ref
33163 reference "tab:Units"
33168 A negative value shifts the note up, a positive value shifts it down.
33172 For example the margin note beside this text line is shifted up 1.5
33173 \begin_inset space \thinspace{}
33176 cm with the \SpecialChar TeX
33178 \begin_inset Quotes eld
33188 \begin_inset Quotes erd
33192 \begin_inset Marginal
33195 \begin_layout Plain Layout
33196 This margin note is shifted up 1.5
33197 \begin_inset space \thinspace{}
33200 cm from its original position.
33212 \begin_layout Plain Layout
33222 \begin_layout Standard
33223 \begin_inset VSpace medskip
33230 you can also change the alignment of the text in the margin note.
33231 For example the commands
33234 \begin_layout Standard
33241 raggedleftmarginnote}{
33244 \begin_inset Newline newline
33251 raggedrightmarginnote}{
33256 \begin_layout Standard
33257 set the alignment to centered.
33262 raggedleftmarginnote
33264 denotes margin notes that appear at the left side.
33271 \begin_layout Plain Layout
33277 raggedleftmarginnote}{
33282 \begin_layout Plain Layout
33288 raggedrightmarginnote}{
33296 \begin_inset Marginal
33299 \begin_layout Plain Layout
33300 The text of this margin note is centered.
33311 \begin_layout Standard
33318 raggedleftmarginnote}{
33321 \begin_inset Newline newline
33328 raggedrightmarginnote}{
33337 \begin_layout Plain Layout
33343 raggedleftmarginnote}{
33348 \begin_layout Plain Layout
33354 raggedrightmarginnote}{
33364 \begin_layout Standard
33365 \begin_inset VSpace medskip
33368 For the other features of
33372 refer to its documentation
33373 \begin_inset CommandInset citation
33382 \begin_layout Standard
33383 \begin_inset VSpace bigskip
33386 You can adjust the layout of margin notes by changing its definition.
33387 To create for example a header for all margin notes with the underlined,
33388 sans-serif, and bold header text
33389 \begin_inset Quotes eld
33401 \begin_inset Quotes erd
33404 , add this to your document preamble:
33407 \begin_layout Standard
33417 \begin_inset Newline newline
33427 \begin_inset Newline newline
33431 \begin_inset Phantom HPhantom
33434 \begin_layout Plain Layout
33437 \begin_inset space ~
33453 underbar{Attention!}}}%
33454 \begin_inset Newline newline
33458 \begin_inset Phantom HPhantom
33461 \begin_layout Plain Layout
33464 \begin_inset space ~
33481 \begin_layout Standard
33488 \begin_layout Plain Layout
33499 \begin_layout Plain Layout
33510 \begin_layout Plain Layout
33518 underbar{Attention!}}}%
33521 \begin_layout Plain Layout
33535 \begin_inset Marginal
33538 \begin_layout Plain Layout
33539 This is a margin note with a defined heading.
33551 \begin_layout Plain Layout
33565 \begin_layout Plain Layout
33582 \begin_inset Note Note
33585 \begin_layout Plain Layout
33586 The margin note format is changed only for this example.
33594 \begin_layout Standard
33598 \begin_layout Plain Layout
33608 \begin_inset Note Note
33611 \begin_layout Plain Layout
33612 The following will be displayed when the \SpecialChar LaTeX
33625 \begin_layout Standard
33626 You need to install the \SpecialChar LaTeX
33631 to see the following part of this section in the output.
33634 \begin_layout Standard
33638 \begin_layout Plain Layout
33650 \begin_layout Chapter
33654 \begin_layout Section
33656 \begin_inset Index idx
33659 \begin_layout Plain Layout
33660 Boxes ! Introduction
33668 \begin_layout Standard
33669 Boxes are used to format a block of text.
33670 Boxes can be used to write documents with multiple languages, see section
33671 \begin_inset space ~
33675 \begin_inset CommandInset ref
33677 reference "sec:Minipages"
33681 , to frame texts, see section
33682 \begin_inset space ~
33686 \begin_inset CommandInset ref
33688 reference "sec:Decoration"
33692 , to prevent words from being hyphenated, see section
33693 \begin_inset space ~
33697 \begin_inset CommandInset ref
33699 reference "sec:Prevent-Hyphenation"
33703 , to align text, see section
33704 \begin_inset space ~
33708 \begin_inset CommandInset ref
33710 reference "subsec:Vertical-Alignment"
33714 , or to set the background color of texts, see section
33715 \begin_inset space ~
33719 \begin_inset CommandInset ref
33721 reference "sec:Colored-Boxes"
33728 \begin_layout Standard
33729 Boxes can be inserted with the menu
33731 Insert\SpecialChar menuseparator
33734 or the toolbar button
33737 arg "box-insert Frameless"
33741 A grey box with the label
33746 \begin_inset Graphics
33747 filename clipart/BoxInsetDefault.png
33749 scaleBeforeRotation
33754 The box type can be specified by right-clicking on the box and selecting
33760 The box dialog offers the
33763 \begin_inset space ~
33785 is the default for new boxes and is explained in section
33786 \begin_inset space ~
33790 \begin_inset CommandInset ref
33792 reference "sec:Minipages"
33800 is described in section
33801 \begin_inset space ~
33805 \begin_inset CommandInset ref
33807 reference "sec:Parboxes"
33816 \begin_inset CommandInset ref
33818 reference "sec:Prevent-Hyphenation"
33825 \begin_layout Standard
33826 Boxes are not numbered and can therefore not be referenced like floats or
33830 \begin_layout Standard
33831 \begin_inset Note Greyedout
33834 \begin_layout Plain Layout
33839 Boxes must not be the item in an
33855 \begin_layout Standard
33856 \begin_inset Note Greyedout
33859 \begin_layout Plain Layout
33864 For an unknown reason you can only set the
33867 \begin_inset space ~
33876 when you use a framed box.
33880 \begin_inset space ~
33885 type and without frames are explained in section
33886 \begin_inset space ~
33890 \begin_inset CommandInset ref
33892 reference "sec:Prevent-Hyphenation"
33904 \begin_layout Section
33906 \begin_inset CommandInset label
33908 name "sec:Box-Dialog"
33913 \begin_inset Index idx
33916 \begin_layout Plain Layout
33925 \begin_layout Subsection
33927 \begin_inset Index idx
33930 \begin_layout Plain Layout
33939 \begin_layout Standard
33940 In the box dialog you can adjust the box geometry in the fields
33949 The available units for the geometry are explained in Table
33950 \begin_inset space ~
33954 \begin_inset CommandInset ref
33956 reference "tab:Units"
33965 offers the following additional sizes:
33968 \begin_layout Description
33969 Depth This is the plain text
33970 \begin_inset Quotes eld
33974 \begin_inset Quotes erd
33978 It ignores the total depth when there are multiple text lines in the box:
33979 \begin_inset Newline newline
33983 \begin_inset Newline newline
33987 \begin_inset Newline newline
33991 \begin_inset Box Boxed
34001 height_special "depth"
34006 backgroundcolor "none"
34009 \begin_layout Plain Layout
34011 Box height set to 1
34012 \begin_inset space \thinspace{}
34021 \begin_inset Newline newline
34025 \begin_inset Newline newline
34031 \begin_layout Description
34032 Height This is the height of the text that is inside the box.
34034 \begin_inset space \thinspace{}
34038 \begin_inset space \space{}
34041 2 for this size will set the box height to 2
34042 \begin_inset space ~
34045 times the text height:
34046 \begin_inset Box Boxed
34056 height_special "height"
34061 backgroundcolor "none"
34064 \begin_layout Plain Layout
34066 Box height set to 2
34067 \begin_inset space \thinspace{}
34078 \begin_layout Description
34080 \begin_inset space ~
34083 Height This is the Height
34084 \begin_inset space \thinspace{}
34088 \begin_inset space \thinspace{}
34092 \begin_inset Box Boxed
34102 height_special "totalheight"
34107 backgroundcolor "none"
34110 \begin_layout Plain Layout
34112 Box height set to 1
34113 \begin_inset space \thinspace{}
34117 \begin_inset space ~
34128 \begin_layout Description
34129 Width This sets the width of the box as height:
34130 \begin_inset Box Boxed
34140 height_special "width"
34145 backgroundcolor "none"
34148 \begin_layout Plain Layout
34150 Box height set to 1
34151 \begin_inset space \thinspace{}
34162 \begin_layout Subsection
34164 \begin_inset Index idx
34167 \begin_layout Plain Layout
34176 \begin_layout Standard
34177 When you have chosen an
34180 \begin_inset space ~
34185 , the vertical box alignment can be:
34188 \begin_layout Description
34189 Top This is an example text line.
34191 \begin_inset Box Boxed
34201 height_special "totalheight"
34206 backgroundcolor "none"
34209 \begin_layout Plain Layout
34211 This box is top-aligned.
34216 This is an example text line.
34219 \begin_layout Description
34220 Middle This is an example text line.
34222 \begin_inset Box Boxed
34232 height_special "totalheight"
34237 backgroundcolor "none"
34240 \begin_layout Plain Layout
34242 This box is middle-aligned.
34247 This is an example text line.
34250 \begin_layout Description
34251 Bottom This is an example text line.
34253 \begin_inset Box Boxed
34263 height_special "totalheight"
34268 backgroundcolor "none"
34271 \begin_layout Plain Layout
34273 This box is bottom-aligned.
34278 This is an example text line.
34281 \begin_layout Standard
34282 \begin_inset Note Greyedout
34285 \begin_layout Plain Layout
34290 The vertical box alignment can be lost in the output when you have two
34291 boxes in a line and one has e.
34292 \begin_inset space \thinspace{}
34296 \begin_inset space \space{}
34299 a shadow and the other one not.
34307 \begin_layout Standard
34308 The horizontal box alignment can be set via \SpecialChar LyX
34309 's paragraph dialog when you
34310 set the box into its own paragraph.
34313 \begin_layout Standard
34314 \begin_inset VSpace bigskip
34317 When you have chosen an
34320 \begin_inset space ~
34325 , the box content can be aligned vertically to:
34328 \begin_layout Description
34329 top This is an example text line.
34331 \begin_inset Box Boxed
34341 height_special "totalheight"
34346 backgroundcolor "none"
34349 \begin_layout Plain Layout
34351 This box text is top-aligned.
34356 This is an example text line.
34359 \begin_layout Description
34360 middle This is an example text line.
34362 \begin_inset Box Boxed
34372 height_special "totalheight"
34377 backgroundcolor "none"
34380 \begin_layout Plain Layout
34382 This box text is middle-aligned.
34387 This is an example text line.
34390 \begin_layout Description
34391 bottom This is an example text line.
34393 \begin_inset Box Boxed
34403 height_special "totalheight"
34408 backgroundcolor "none"
34411 \begin_layout Plain Layout
34413 This box text is bottom-aligned.
34418 This is an example text line.
34421 \begin_layout Description
34422 stretch This is an example text line.
34424 \begin_inset Box Boxed
34434 height_special "totalheight"
34439 backgroundcolor "none"
34442 \begin_layout Plain Layout
34447 \begin_layout Plain Layout
34452 \begin_layout Plain Layout
34459 This is an example text line.
34462 \begin_layout Standard
34463 To stretch the box content, it must consist of more than one paragraph.
34464 In the example above every text line is in an own paragraph.
34467 \begin_layout Standard
34468 \begin_inset VSpace bigskip
34471 To align the box content horizontally you can use \SpecialChar LyX
34472 's paragraph dialog when
34476 \begin_inset space ~
34484 \begin_layout Standard
34486 \begin_inset Box Boxed
34496 height_special "totalheight"
34501 backgroundcolor "none"
34504 \begin_layout Plain Layout
34509 \begin_layout Plain Layout
34514 \begin_layout Plain Layout
34524 \begin_layout Standard
34525 If you have not set an
34528 \begin_inset space ~
34533 , you can align the box content horizontally in the box dialog.
34536 \begin_layout Standard
34538 \begin_inset Box Boxed
34548 height_special "totalheight"
34553 backgroundcolor "none"
34556 \begin_layout Plain Layout
34557 This box text is horizontally stretched.
34565 \begin_layout Subsection
34567 \begin_inset CommandInset label
34569 name "sec:Decoration"
34574 \begin_inset Index idx
34577 \begin_layout Plain Layout
34586 \begin_layout Standard
34587 The type of the box can be specified in the box dialog in the drop-down
34593 The following types are possible:
34596 \begin_layout Description
34598 \begin_inset space ~
34601 frame Nothing is drawn.
34604 \begin_layout Description
34606 \begin_inset space ~
34610 \begin_inset space ~
34613 frame This draws a rectangular frame around the box.
34614 The frame line thickness can be specified.
34616 \begin_inset Box Boxed
34626 height_special "totalheight"
34631 backgroundcolor "none"
34634 \begin_layout Plain Layout
34644 \begin_layout Description
34646 \begin_inset space ~
34650 \begin_inset space ~
34653 thin This draws an oval frame around the box.
34654 The frame line thickness has the size 0.4
34655 \begin_inset space \thinspace{}
34660 \begin_inset Box ovalbox
34670 height_special "totalheight"
34675 backgroundcolor "none"
34678 \begin_layout Plain Layout
34688 \begin_layout Description
34690 \begin_inset space ~
34694 \begin_inset space ~
34697 thick This draws an oval frame around the box.
34698 The frame line thickness has the size 0.8
34699 \begin_inset space \thinspace{}
34704 \begin_inset Box Ovalbox
34714 height_special "totalheight"
34719 backgroundcolor "none"
34722 \begin_layout Plain Layout
34732 \begin_layout Description
34734 \begin_inset space ~
34737 shadow This draws a rectangular frame with a shadow around the box.
34738 The frame line thickness and the shadow can be specified.
34740 \begin_inset Box Shadowbox
34750 height_special "totalheight"
34755 backgroundcolor "none"
34758 \begin_layout Plain Layout
34768 \begin_layout Description
34770 \begin_inset space ~
34773 background This draws a box with a red background.
34774 Unlike colored boxes
34778 \begin_layout Plain Layout
34780 \begin_inset space \thinspace{}
34784 \begin_inset CommandInset ref
34786 reference "sec:Colored-Boxes"
34795 , it always uses the whole column width and the box is set as its own paragraph.
34797 \begin_inset Box Shaded
34807 height_special "totalheight"
34812 backgroundcolor "none"
34815 \begin_layout Plain Layout
34816 Shaded background box
34824 \begin_layout Description
34826 \begin_inset space ~
34830 \begin_inset space ~
34833 frame This draws a double-line rectangular frame around the box.
34834 The line thickness of the inner frame is 0.75
34835 \begin_inset space \thinspace{}
34839 \begin_inset space ~
34842 thickness, the thickness of the outer frame is 1.5
34843 \begin_inset space \thinspace{}
34847 \begin_inset space ~
34851 The distance between the lines is 1.5
34852 \begin_inset space \thinspace{}
34856 \begin_inset space ~
34860 \begin_inset space \thinspace{}
34864 \begin_inset space \thinspace{}
34868 \begin_inset space \thinspace{}
34873 \begin_inset Box Doublebox
34883 height_special "totalheight"
34888 backgroundcolor "none"
34891 \begin_layout Plain Layout
34893 Double rectangular box
34901 \begin_layout Standard
34902 \begin_inset VSpace bigskip
34906 's box label will reflect the different frame types.
34907 To be able to use all types, the \SpecialChar LaTeX
34913 \begin_inset Index idx
34916 \begin_layout Plain Layout
34918 -packages ! fancybox
34926 \begin_layout Standard
34927 \begin_inset VSpace bigskip
34930 When you use the decoration
34932 simple rectangular frame
34934 and no inner box, you can allow page breaks within a box.
34935 Note that then, unlike other framed boxes, the frame always uses the whole
34936 column width and the box is set as its own paragraph:
34937 \begin_inset Box Framed
34947 height_special "totalheight"
34952 backgroundcolor "none"
34955 \begin_layout Plain Layout
34956 Allow page break box
34964 \begin_layout Section
34966 \begin_inset Index idx
34969 \begin_layout Plain Layout
34970 Boxes ! Customization
34978 \begin_layout Standard
34979 The diameter of the round corners of the oval boxes can be set with the
34990 \begin_layout Standard
34998 \begin_layout Standard
34999 sets the diameter to 1
35000 \begin_inset space \thinspace{}
35007 \begin_layout Standard
35015 \begin_layout Standard
35016 sets the diameter to
35019 \begin_inset space \thinspace{}
35023 \begin_inset space \thinspace{}
35026 minimum(width and height of box)
35038 \begin_layout Standard
35042 \begin_layout Plain Layout
35052 \begin_inset Box Ovalbox
35062 height_special "totalheight"
35067 backgroundcolor "none"
35070 \begin_layout Plain Layout
35079 \begin_inset space \thinspace{}
35083 \begin_inset space \thinspace{}
35087 \begin_inset space \thinspace{}
35099 \begin_layout Plain Layout
35111 \begin_layout Standard
35112 \begin_inset VSpace bigskip
35118 \begin_layout Standard
35119 The default background color red of
35123 boxes can either be changed locally with the command
35127 definecolor{shadecolor}
35129 or globally with the menu
35131 Tools\SpecialChar menuseparator
35132 Preferences\SpecialChar menuseparator
35133 Colors\SpecialChar menuseparator
35135 \begin_inset space ~
35147 command is explained in section
35148 \begin_inset space ~
35152 \begin_inset CommandInset ref
35154 reference "sec:Colored-Tables"
35162 \begin_layout Plain Layout
35169 requires the \SpecialChar LaTeX
35174 in the preamble, see section
35175 \begin_inset space ~
35179 \begin_inset CommandInset ref
35181 reference "sec:Colored-Boxes"
35190 For example the appearance of the following shaded background box is set
35191 with the \SpecialChar TeX
35195 \begin_layout Standard
35200 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35203 \begin_layout Standard
35207 \begin_layout Plain Layout
35211 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35217 \begin_inset Box Shaded
35227 height_special "totalheight"
35232 backgroundcolor "none"
35235 \begin_layout Plain Layout
35238 This is yellow text in a
35248 box with dark green background.
35257 \begin_layout Plain Layout
35261 definecolor{shadecolor}{rgb}{1,0,0}
35269 \begin_layout Standard
35270 \begin_inset VSpace bigskip
35273 Manually changed sizes and colors are valid for all boxes following the
35274 commands that change them.
35277 \begin_layout Section
35279 \begin_inset CommandInset label
35281 name "sec:Minipages"
35286 \begin_inset Index idx
35289 \begin_layout Plain Layout
35298 \begin_layout Standard
35299 Minipages are treated by \SpecialChar LaTeX
35300 as pages within pages and can therefore for example
35301 have their own footnotes.
35304 \begin_layout Standard
35305 Minipages are useful when you write documents with different languages.
35308 \begin_layout Standard
35309 Below are two example minipages side by side.
35310 Their width is set to 45
35311 \begin_inset space \thinspace{}
35314 col% and they are separated by a horizontal fill, that was inserted via
35317 Insert\SpecialChar menuseparator
35319 \begin_inset space ~
35322 Formatting\SpecialChar menuseparator
35324 \begin_inset space ~
35330 \begin_inset Newpage newpage
35336 \begin_layout Standard
35337 \begin_inset Box Frameless
35347 height_special "totalheight"
35352 backgroundcolor "none"
35355 \begin_layout Plain Layout
35358 Dies ist ein deutscher Text.
35359 Dies ist ein deutscher Text.
35360 Dies ist ein deutscher Text.
35361 Dies ist ein deutscher Text.
35362 Dies ist ein deutscher Text.
35363 Dies ist ein deutscher Text.
35364 Dies ist ein deutscher Text.
35365 Dies ist ein deutscher Text.
35366 Dies ist ein deutscher Text.
35367 Dies ist ein deutscher Text.
35368 Dies ist ein deutscher Text.
35369 Dies ist ein deutscher Text.
35370 Dies ist ein deutscher Text
35374 \begin_layout Plain Layout
35377 Dies ist eine deutsche Fußnote.
35383 Dies ist ein deutscher Text.
35384 Dies ist ein deutscher Text.
35390 \begin_inset space \hfill{}
35394 \begin_inset Box Frameless
35404 height_special "totalheight"
35409 backgroundcolor "none"
35412 \begin_layout Plain Layout
35413 This is an English Text.
35414 This is an English Text.
35415 This is an English Text.
35416 This is an English Text.
35417 This is an English Text.
35418 This is an English Text.
35419 This is an English Text.
35420 This is an English Text.
35421 This is an English Text.
35422 This is an English Text.
35423 This is an English Text.
35424 This is an English Text.
35425 This is an English Text.
35426 This is an English Text.
35427 This is an English Text.
35428 This is an English Text.
35432 \begin_layout Plain Layout
35433 This is an English footnote.
35438 This is an English Text.
35446 \begin_layout Standard
35447 \begin_inset VSpace bigskip
35450 The document-wide paragraph settings are ignored within minipages.
35451 That means that there will be no space between paragraphs in minipages
35452 although you set it to e.
35453 \begin_inset space \thinspace{}
35457 \begin_inset space \space{}
35464 in the document settings.
35467 \begin_layout Standard
35468 Minipages can also be used to set a background color for text parts, see
35470 \begin_inset space ~
35474 \begin_inset CommandInset ref
35476 reference "sec:Colored-Boxes"
35483 \begin_layout Standard
35484 \begin_inset Note Greyedout
35487 \begin_layout Plain Layout
35492 You cannot have floats or margin notes inside minipages but minipages can
35493 be used inside tables, floats, and other boxes.
35501 \begin_layout Standard
35502 \begin_inset VSpace bigskip
35508 \begin_layout Standard
35510 has also basic support for minipages whose size is automatically determined
35511 by the width of their contents, via the module
35513 Variable-width Minipages
35516 The \SpecialChar LyX
35519 varwidth-floats-side-by-side
35521 gives examples of variable-width minipages used for placing two floats
35525 \begin_layout Section
35527 \begin_inset CommandInset label
35529 name "sec:Parboxes"
35534 \begin_inset Index idx
35537 \begin_layout Plain Layout
35546 \begin_layout Standard
35547 Parboxes are very similar to minipages with the difference that they cannot
35551 \begin_layout Standard
35553 \begin_inset Box Frameless
35563 height_special "totalheight"
35568 backgroundcolor "none"
35571 \begin_layout Plain Layout
35572 This a text within a parbox.
35573 This a text within a parbox.
35576 \begin_layout Plain Layout
35577 This footnote won't appear:
35581 \begin_layout Plain Layout
35582 This footnote is inside a parbox and will therefore not appear.
35595 \begin_layout Section
35596 Boxes for Words and Characters
35597 \begin_inset Index idx
35600 \begin_layout Plain Layout
35601 Boxes ! for Characters
35609 \begin_layout Subsection
35610 Prevent Hyphenation
35611 \begin_inset CommandInset label
35613 name "sec:Prevent-Hyphenation"
35618 \begin_inset Index idx
35621 \begin_layout Plain Layout
35622 Boxes ! to Prevent Hyphenation
35630 \begin_layout Standard
35631 You can use the box type
35635 to prevent words or text from being hyphenated.
35636 \begin_inset Newline newline
35639 Here is an example text:
35642 \begin_layout Standard
35643 This line is an example to show how you can prevent the hyphenation of
35644 \begin_inset Quotes eld
35648 \begin_inset Quotes erd
35654 \begin_layout Standard
35655 To prevent the hyphenation of the word
35656 \begin_inset Quotes eld
35660 \begin_inset Quotes erd
35663 , put the word into a box, set the
35666 \begin_inset space ~
35675 and use no explicit width.
35678 \begin_layout Standard
35679 This is the result:
35682 \begin_layout Standard
35683 This line is an example to show how you can prevent the hyphenation of
35684 \begin_inset Box Frameless
35694 height_special "totalheight"
35699 backgroundcolor "none"
35702 \begin_layout Plain Layout
35703 \begin_inset Quotes eld
35707 \begin_inset Quotes erd
35718 \begin_layout Standard
35719 You can alternatively set the command
35720 \begin_inset Quotes eld
35730 \begin_inset Quotes grd
35733 as \SpecialChar TeX
35734 Code directly before the word:
35737 \begin_layout Standard
35738 This line is an example to show how you can prevent the hyphenation of
35739 \begin_inset Quotes eld
35746 \begin_layout Plain Layout
35756 \begin_inset Quotes erd
35762 \begin_layout Standard
35763 Of course the word now protrudes over the side margin.
35764 To avoid this, add via the menu
35766 Insert\SpecialChar menuseparator
35767 Formatting\SpecialChar menuseparator
35769 \begin_inset space ~
35773 \begin_inset space ~
35781 arg "newline-insert newline"
35784 ) a line break before the word:
35787 \begin_layout Standard
35788 This line is an example to show how you can prevent the hyphenation of
35789 \begin_inset Newline newline
35793 \begin_inset Box Frameless
35803 height_special "totalheight"
35808 backgroundcolor "none"
35811 \begin_layout Plain Layout
35812 \begin_inset Quotes eld
35816 \begin_inset Quotes erd
35827 \begin_layout Subsection
35829 \begin_inset CommandInset label
35831 name "subsec:Vertical-Alignment"
35836 \begin_inset Index idx
35839 \begin_layout Plain Layout
35840 Boxes ! for Vertical Alignment
35846 \begin_inset Index idx
35849 \begin_layout Plain Layout
35858 \begin_layout Standard
35859 With the help of the command
35865 you can align words, characters or other boxes vertically relative to the
35873 is used with the following scheme:
35876 \begin_layout Standard
35881 raisebox{lift}[height][depth]{box content}
35884 \begin_layout Standard
35885 The lift can be a positive value to raise the box or a negative value to
35889 \begin_layout Standard
35890 To align for example the word
35891 \begin_inset Quotes eld
35895 \begin_inset Quotes erd
35898 so that the bottom of the
35899 \begin_inset Quotes eld
35903 \begin_inset Quotes erd
35907 \begin_inset Quotes eld
35911 \begin_inset Quotes erd
35914 is at the baseline, insert the command
35917 \begin_layout Standard
35927 \begin_layout Standard
35928 in \SpecialChar TeX
35929 Code before the word.
35930 After the word insert a closing brace
35931 \begin_inset Quotes eld
35939 \begin_inset Quotes erd
35942 in \SpecialChar TeX
35944 \begin_inset Newline newline
35947 This is the result:
35950 \begin_layout Standard
35951 This is a text line with the word
35955 \begin_layout Plain Layout
35967 \begin_inset Quotes eld
35971 \begin_inset Quotes erd
35978 \begin_layout Plain Layout
35988 \begin_layout Standard
35989 \begin_inset VSpace bigskip
35992 When you raise or lower characters in a line, the line distance will be
35996 \begin_layout Standard
35997 This is a text line with the word
36001 \begin_layout Plain Layout
36013 \begin_inset Quotes eld
36017 \begin_inset Quotes erd
36024 \begin_layout Plain Layout
36032 \begin_inset Newline newline
36035 This is a text line with the word
36039 \begin_layout Plain Layout
36049 \begin_inset Quotes eld
36053 \begin_inset Quotes erd
36060 \begin_layout Plain Layout
36070 \begin_layout Standard
36071 If you want to prevent this for a certain reason, set the box height to
36076 \begin_layout Standard
36086 \begin_layout Standard
36087 This is a text line with the word
36091 \begin_layout Plain Layout
36103 \begin_inset Quotes eld
36107 \begin_inset Quotes erd
36114 \begin_layout Plain Layout
36122 \begin_inset Newline newline
36126 \begin_inset Newline newline
36129 This is a text line with the word
36133 \begin_layout Plain Layout
36137 raisebox{0.5cm}[0pt]{
36143 \begin_inset Quotes eld
36147 \begin_inset Quotes erd
36154 \begin_layout Plain Layout
36164 \begin_layout Section
36166 \begin_inset CommandInset label
36168 name "sec:Colored-Boxes"
36173 \begin_inset Index idx
36176 \begin_layout Plain Layout
36185 \begin_layout Standard
36186 To color the background of a box just select the color you like in the box
36188 This is for example a box with orange background:
36189 \begin_inset Box Frameless
36199 height_special "totalheight"
36204 backgroundcolor "orange"
36207 \begin_layout Plain Layout
36208 Box with orange background
36216 \begin_layout Standard
36217 If you use the decoration
36220 \begin_inset space ~
36224 \begin_inset space ~
36229 you can set a frame color.
36230 In this case you must also specify a background color (LyX sets white as
36232 Here is an example:
36233 \begin_inset Box Boxed
36243 height_special "totalheight"
36248 backgroundcolor "yellow"
36251 \begin_layout Plain Layout
36252 Box with teal frame color and yellow background color
36260 \begin_layout Standard
36261 \begin_inset VSpace bigskip
36264 Of course you can also have colored text inside a colored box:
36265 \begin_inset Newline newline
36269 \begin_inset Box Boxed
36279 height_special "totalheight"
36284 backgroundcolor "magenta"
36287 \begin_layout Plain Layout
36290 This is colored text within a colored, framed box
36298 \begin_layout Standard
36299 \begin_inset VSpace bigskip
36305 \begin_layout Standard
36306 If you need another color than the predefined ones, you can define your
36307 own color as described in section
36308 \begin_inset space ~
36312 \begin_inset CommandInset ref
36314 reference "sec:Colored-Tables"
36319 To use your own color you must typeset the box by using TeX code:
36322 \begin_layout Standard
36323 Colored boxes without frame are created with the command
36330 It has the following scheme:
36333 \begin_layout Standard
36338 colorbox{color}{box content}
36341 \begin_layout Standard
36342 The box content can also be a box and colored boxes can also be within other
36345 \begin_inset space \thinspace{}
36349 \begin_inset space \space{}
36352 a darkgreen background for a word, insert the command
36355 \begin_layout Standard
36360 colorbox{darkgreen}{
36363 \begin_layout Standard
36364 before the word in \SpecialChar TeX
36366 After the word insert a closing brace
36367 \begin_inset Quotes eld
36375 \begin_inset Quotes erd
36378 in \SpecialChar TeX
36380 \begin_inset Newline newline
36383 This is the result:
36386 \begin_layout Standard
36387 This is a line where the word
36391 \begin_layout Plain Layout
36395 colorbox{darkgreen}{
36401 \begin_inset Quotes eld
36405 \begin_inset Quotes erd
36412 \begin_layout Plain Layout
36419 has a darkgreen background.
36422 \begin_layout Standard
36423 Framed, colored boxes are created with the command
36430 It has the following scheme:
36433 \begin_layout Standard
36438 fcolorbox{frame color}{box color}{box content}
36441 \begin_layout Section
36442 Rotated and Scaled Boxes
36445 \begin_layout Standard
36446 To use the boxes described in this section, the module
36450 must be loaded in the document settings.
36453 \begin_layout Standard
36454 \begin_inset Note Greyedout
36457 \begin_layout Plain Layout
36462 Not all DVI viewers are able to display rotated or scaled material.
36470 \begin_layout Standard
36471 \begin_inset Note Greyedout
36474 \begin_layout Plain Layout
36479 Floats are not allowed inside a rotated or scaled box.
36487 \begin_layout Subsection
36489 \begin_inset Index idx
36492 \begin_layout Plain Layout
36499 \begin_inset Index idx
36502 \begin_layout Plain Layout
36511 \begin_layout Standard
36512 To rotate material, you can put it into a
36517 Such a box is inserted via the menu
36519 Insert\SpecialChar menuseparator
36520 Custom Insets\SpecialChar menuseparator
36526 \begin_layout Standard
36527 The rotation origin can be specified via the inset
36533 Insert\SpecialChar menuseparator
36541 The following positions are possible:
36561 (top), along with meaningful combinations of the four base positions.
36566 means that the rotation origin is at the top left corner of the box.
36567 When no rotation origin is specified, the position
36572 The rotation angle is a number that can be negative that specifies the
36574 The rotation direction is counterclockwise.
36577 \begin_layout Standard
36578 In the following example
36582 was inserted to the
36590 was inserted to the
36597 \begin_layout Standard
36599 \begin_inset Flex Rotatebox
36602 \begin_layout Plain Layout
36603 \begin_inset Argument 1
36606 \begin_layout Plain Layout
36613 \begin_inset Argument 2
36616 \begin_layout Plain Layout
36630 \begin_layout Standard
36631 The box content can also be another box or an inline formula:
36634 \begin_layout Standard
36636 \begin_inset Flex Rotatebox
36639 \begin_layout Plain Layout
36640 \begin_inset Argument 1
36643 \begin_layout Plain Layout
36650 \begin_inset Argument 2
36653 \begin_layout Plain Layout
36660 \begin_inset Box Doublebox
36670 height_special "totalheight"
36675 backgroundcolor "none"
36678 \begin_layout Plain Layout
36690 \begin_inset Flex Rotatebox
36693 \begin_layout Plain Layout
36694 \begin_inset Argument 1
36697 \begin_layout Plain Layout
36704 \begin_inset Argument 2
36707 \begin_layout Plain Layout
36714 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36725 \begin_layout Standard
36726 or an image or table:
36729 \begin_layout Standard
36731 \begin_inset Flex Rotatebox
36734 \begin_layout Plain Layout
36735 \begin_inset Argument 1
36738 \begin_layout Plain Layout
36745 \begin_inset Argument 2
36748 \begin_layout Plain Layout
36755 \begin_inset Graphics
36756 filename clipart/platypus.eps
36767 with a rotated image
36768 \begin_inset Flex Rotatebox
36771 \begin_layout Plain Layout
36772 \begin_inset Argument 2
36775 \begin_layout Plain Layout
36782 \begin_inset Tabular
36783 <lyxtabular version="3" rows="2" columns="2">
36784 <features tabularvalignment="middle">
36785 <column alignment="center" valignment="top">
36786 <column alignment="center" valignment="top">
36788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36791 \begin_layout Plain Layout
36797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36800 \begin_layout Plain Layout
36808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36811 \begin_layout Plain Layout
36817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36820 \begin_layout Plain Layout
36837 \begin_inset Index idx
36840 \begin_layout Plain Layout
36847 \begin_inset Index idx
36850 \begin_layout Plain Layout
36851 Table Customization ! Rotating
36859 \begin_layout Standard
36860 \begin_inset Note Greyedout
36863 \begin_layout Plain Layout
36872 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36874 errors when viewing/exporting the document.
36882 \begin_layout Subsection
36884 \begin_inset Index idx
36887 \begin_layout Plain Layout
36894 \begin_inset Index idx
36897 \begin_layout Plain Layout
36906 \begin_layout Standard
36907 To scale material put it into a
36912 Such a box is inserted via the menu
36914 Insert\SpecialChar menuseparator
36915 Custom Insets\SpecialChar menuseparator
36921 \begin_layout Standard
36926 inset has the mandatory inset
36930 and the optional inset
36934 (inserted via the menu
36936 Insert\SpecialChar menuseparator
36940 Input there the horizontal and vertical scale factor, respectively.
36945 inset is used, the horizontal factor will also be used as the vertical
36949 \begin_layout Standard
36950 To get for example the double text size, compared to the document text size,
36961 \begin_inset Flex Scalebox
36964 \begin_layout Plain Layout
36965 \begin_inset Argument 1
36968 \begin_layout Plain Layout
36982 \begin_layout Standard
37000 \begin_inset Flex Scalebox
37003 \begin_layout Plain Layout
37004 \begin_inset Argument 1
37007 \begin_layout Plain Layout
37014 \begin_inset Argument 2
37017 \begin_layout Plain Layout
37031 \begin_layout Standard
37032 If the scaling factor is negative, the box content will be mirrored.
37049 can be used to create mirror writing:
37050 \begin_inset Flex Scalebox
37053 \begin_layout Plain Layout
37054 \begin_inset Argument 1
37057 \begin_layout Plain Layout
37064 \begin_inset Argument 2
37067 \begin_layout Plain Layout
37081 \begin_layout Standard
37099 \begin_inset Flex Scalebox
37102 \begin_layout Plain Layout
37103 \begin_inset Argument 1
37106 \begin_layout Plain Layout
37113 \begin_inset Argument 2
37116 \begin_layout Plain Layout
37130 \begin_layout Standard
37137 Insert\SpecialChar menuseparator
37138 Custom Insets\SpecialChar menuseparator
37164 \begin_layout Standard
37165 \begin_inset Note Greyedout
37168 \begin_layout Plain Layout
37177 inset is empty or contains other characters than numbers you will get LaTeX
37178 errors when viewing/exporting the document.
37186 \begin_layout Standard
37187 \begin_inset VSpace bigskip
37196 Insert\SpecialChar menuseparator
37197 Custom Insets\SpecialChar menuseparator
37200 ) is used to scale the content to a defined width and height.
37205 inset has the mandatory inset
37209 and the optional inset
37213 (inserted via the menu
37215 Insert\SpecialChar menuseparator
37219 Input there the width and height, respectively, as value with a unit.
37221 \begin_inset CommandInset ref
37223 reference "tab:Units"
37227 lists the possible units.
37228 If there is an exclamation mark
37232 in of of the two insets, the size is set so that the aspect ratio of the
37233 box content is kept.
37238 inset is used an exclamation mark will internally be used for the height.
37241 \begin_layout Standard
37259 \begin_inset Flex Resizebox
37262 \begin_layout Plain Layout
37263 \begin_inset Argument 1
37266 \begin_layout Plain Layout
37273 \begin_inset Argument 2
37276 \begin_layout Plain Layout
37288 \begin_inset Newline newline
37312 \begin_inset Flex Resizebox
37315 \begin_layout Plain Layout
37316 \begin_inset Argument 1
37319 \begin_layout Plain Layout
37326 \begin_inset Argument 2
37329 \begin_layout Plain Layout
37343 \begin_layout Standard
37344 \begin_inset Note Greyedout
37347 \begin_layout Plain Layout
37356 inset is empty or contains an invalid unit you will get LaTeX errors when
37357 viewing/exporting the document.
37365 \begin_layout Standard
37366 \begin_inset VSpace bigskip
37372 \begin_layout Standard
37373 The boxes can be combined in any order.
37382 which is in turn inside a
37389 \begin_layout Standard
37392 \begin_inset Flex Rotatebox
37395 \begin_layout Plain Layout
37396 \begin_inset Argument 1
37399 \begin_layout Plain Layout
37406 \begin_inset Argument 2
37409 \begin_layout Plain Layout
37416 \begin_inset Flex Resizebox
37419 \begin_layout Plain Layout
37420 \begin_inset Argument 1
37423 \begin_layout Plain Layout
37430 \begin_inset Flex Reflectbox
37433 \begin_layout Plain Layout
37452 \begin_layout Standard
37454 Images, tables, and inline formulas are allowed as box content:
37457 \begin_layout Standard
37460 \begin_inset Flex Resizebox
37463 \begin_layout Plain Layout
37464 \begin_inset Argument 1
37467 \begin_layout Plain Layout
37474 \begin_inset Flex Reflectbox
37477 \begin_layout Plain Layout
37478 \begin_inset Graphics
37479 filename clipart/platypus.eps
37496 \begin_inset Flex Resizebox
37499 \begin_layout Plain Layout
37500 \begin_inset Argument 1
37503 \begin_layout Plain Layout
37510 \begin_inset Flex Reflectbox
37513 \begin_layout Plain Layout
37514 \begin_inset Tabular
37515 <lyxtabular version="3" rows="2" columns="2">
37516 <features tabularvalignment="middle">
37517 <column alignment="center" valignment="top">
37518 <column alignment="center" valignment="top">
37520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37523 \begin_layout Plain Layout
37529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37532 \begin_layout Plain Layout
37540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37543 \begin_layout Plain Layout
37549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37552 \begin_layout Plain Layout
37574 \begin_inset Flex Resizebox
37577 \begin_layout Plain Layout
37578 \begin_inset Argument 1
37581 \begin_layout Plain Layout
37588 \begin_inset Flex Reflectbox
37591 \begin_layout Plain Layout
37592 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37606 \begin_inset Index idx
37609 \begin_layout Plain Layout
37616 \begin_inset Index idx
37619 \begin_layout Plain Layout
37620 Table Customization ! Scaling
37628 \begin_layout Standard
37629 When the global formula style
37633 is used in the document
37637 \begin_layout Plain Layout
37639 \begin_inset Quotes eld
37643 \begin_inset Quotes erd
37646 is added to the document class options.
37651 , display style formulas can also be scaled.
37654 \begin_layout Chapter
37655 Objects Surrounded by Text
37656 \begin_inset Index idx
37659 \begin_layout Plain Layout
37668 \begin_layout Section
37670 \begin_inset CommandInset label
37672 name "sec:Wrap-Floats"
37677 \begin_inset Index idx
37680 \begin_layout Plain Layout
37681 Floats ! Wrap Floats
37687 \begin_inset Index idx
37690 \begin_layout Plain Layout
37691 Surrounded by text ! Wrap Floats
37699 \begin_layout Standard
37700 \begin_inset Wrap figure
37707 \begin_layout Plain Layout
37708 \begin_inset Graphics
37709 filename clipart/mobius.eps
37711 scaleBeforeRotation
37712 rotateOrigin center
37719 \begin_layout Plain Layout
37720 \begin_inset Caption Standard
37722 \begin_layout Plain Layout
37723 \begin_inset CommandInset label
37725 name "fig:This-is-a"
37729 This is a figure wrap float.
37739 This float type is used if you want to wrap text around a figure or table
37740 so that it only occupies some fraction of the column width.
37741 It can be inserted using the menu
37743 Insert\SpecialChar menuseparator
37744 Floats\SpecialChar menuseparator
37746 \begin_inset space ~
37750 \begin_inset space ~
37758 \begin_inset space ~
37762 \begin_inset space ~
37767 if the \SpecialChar LaTeX
37773 \begin_inset Index idx
37776 \begin_layout Plain Layout
37778 -packages ! wrapfig
37787 \begin_layout Plain Layout
37788 Installing a \SpecialChar LaTeX
37789 -package is explained it in the
37793 \begin_inset space ~
37803 The settings of the float can be modified by right-clicking on the float
37805 The mandatory settings are the float
37818 that specifies how much the float is set into the paragraph
37819 \begin_inset space \thinspace{}
37823 \begin_inset space \thinspace{}
37826 page margin, and the
37829 \begin_inset space ~
37834 that specifies how many text lines the float will approximately need.
37835 The line span is often hard to approximate; so it is better only to use
37836 it when you encounter float placement problems.
37837 You can furthermore decide if \SpecialChar LaTeX
37838 is allowed to let the float float within
37839 the paragraph or to surrounding paragraphs.
37841 \begin_inset space ~
37845 \begin_inset CommandInset ref
37847 reference "fig:This-is-a"
37851 is an example text wrap float with a width of 40
37852 \begin_inset space \thinspace{}
37856 \begin_inset space \thinspace{}
37859 cm overhang, set to the left.
37862 \begin_layout Standard
37863 \begin_inset Note Greyedout
37866 \begin_layout Plain Layout
37872 \begin_inset space ~
37875 wrap float floats are fragile! E.
37876 \begin_inset space \thinspace{}
37880 \begin_inset space \space{}
37883 having a figure too close to the bottom of the page can mess things up in
37884 such a way that the float does not appear in the output or that it is placed
37885 over some other text.
37893 \begin_layout Standard
37894 In general, the following applies for wrap floats:
37897 \begin_layout Itemize
37898 They should not be placed in paragraphs that run over a page break.
37899 That means that wrap floats are better inserted in their exact place when
37900 the document is almost finished and you are able to estimate where page
37901 breaks will appear.
37904 \begin_layout Itemize
37905 They should either be placed in their own paragraph before the paragraph
37906 where they should wrap into or within a paragraph.
37909 \begin_layout Itemize
37910 In consecutive paragraphs they may cause troubles, so ensure that there
37911 is a text paragraph between them as separator.
37914 \begin_layout Itemize
37915 They are not allowed in section headings or tables.
37918 \begin_layout Itemize
37919 Their numbering and referencing works as described in chap.
37920 \begin_inset space \thinspace{}
37924 \begin_inset CommandInset ref
37926 reference "chap:Floats"
37933 \begin_layout Section
37934 Surrounded Fixed Objects
37935 \begin_inset Index idx
37938 \begin_layout Plain Layout
37939 Surrounded by text ! Fixed objects
37947 \begin_layout Standard
37948 The wrap floats described in sec.
37949 \begin_inset space \thinspace{}
37953 \begin_inset CommandInset ref
37955 reference "sec:Wrap-Floats"
37959 have these positions in the paragraph:
37962 \begin_layout Standard
37965 \begin_inset Tabular
37966 <lyxtabular version="3" rows="2" columns="2">
37967 <features tabularvalignment="middle">
37968 <column alignment="center" valignment="top">
37969 <column alignment="center" valignment="top">
37971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37974 \begin_layout Plain Layout
37977 arg "dialog-show-new-inset graphics"
37985 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37988 \begin_layout Plain Layout
37996 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37999 \begin_layout Plain Layout
38005 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38008 \begin_layout Plain Layout
38020 \begin_inset Tabular
38021 <lyxtabular version="3" rows="2" columns="2">
38022 <features tabularvalignment="middle">
38023 <column alignment="center" valignment="top">
38024 <column alignment="center" valignment="top">
38026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38029 \begin_layout Plain Layout
38035 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38038 \begin_layout Plain Layout
38041 arg "dialog-show-new-inset graphics"
38051 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38054 \begin_layout Plain Layout
38060 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38063 \begin_layout Plain Layout
38077 \begin_layout Standard
38078 To get an object exactly at the position where it is inserted, for example
38079 to get one of these positions:
38080 \begin_inset VSpace defskip
38086 \begin_layout Standard
38089 \begin_inset Tabular
38090 <lyxtabular version="3" rows="2" columns="2">
38091 <features tabularvalignment="middle">
38092 <column alignment="center" valignment="top">
38093 <column alignment="center" valignment="top">
38095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38098 \begin_layout Plain Layout
38104 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38107 \begin_layout Plain Layout
38115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38118 \begin_layout Plain Layout
38121 arg "dialog-show-new-inset graphics"
38129 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38132 \begin_layout Plain Layout
38144 \begin_inset Tabular
38145 <lyxtabular version="3" rows="2" columns="2">
38146 <features tabularvalignment="middle">
38147 <column alignment="center" valignment="top">
38148 <column alignment="center" valignment="top">
38150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38153 \begin_layout Plain Layout
38159 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38162 \begin_layout Plain Layout
38170 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38173 \begin_layout Plain Layout
38179 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38182 \begin_layout Plain Layout
38185 arg "dialog-show-new-inset graphics"
38199 \begin_inset Tabular
38200 <lyxtabular version="3" rows="2" columns="3">
38201 <features tabularvalignment="middle">
38202 <column alignment="center" valignment="top">
38203 <column alignment="center" valignment="top">
38204 <column alignment="center" valignment="top">
38206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38209 \begin_layout Plain Layout
38215 <cell alignment="center" valignment="top" topline="true" usebox="none">
38218 \begin_layout Plain Layout
38221 arg "dialog-show-new-inset graphics"
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" usebox="none">
38252 \begin_layout Plain Layout
38258 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38261 \begin_layout Plain Layout
38273 \begin_inset Tabular
38274 <lyxtabular version="3" rows="2" columns="3">
38275 <features tabularvalignment="middle">
38276 <column alignment="center" valignment="top">
38277 <column alignment="center" valignment="top">
38278 <column alignment="center" valignment="top">
38280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38283 \begin_layout Plain Layout
38289 <cell alignment="center" valignment="top" topline="true" usebox="none">
38292 \begin_layout Plain Layout
38298 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38301 \begin_layout Plain Layout
38309 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38312 \begin_layout Plain Layout
38318 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38321 \begin_layout Plain Layout
38324 arg "dialog-show-new-inset graphics"
38332 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38335 \begin_layout Plain Layout
38349 \begin_layout Standard
38352 \begin_inset Tabular
38353 <lyxtabular version="3" rows="3" columns="2">
38354 <features tabularvalignment="middle">
38355 <column alignment="center" valignment="top">
38356 <column alignment="center" valignment="top">
38358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38361 \begin_layout Plain Layout
38367 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38370 \begin_layout Plain Layout
38378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38381 \begin_layout Plain Layout
38384 arg "dialog-show-new-inset graphics"
38392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38395 \begin_layout Plain Layout
38403 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38406 \begin_layout Plain Layout
38412 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38415 \begin_layout Plain Layout
38427 \begin_inset Tabular
38428 <lyxtabular version="3" rows="3" columns="3">
38429 <features tabularvalignment="middle">
38430 <column alignment="center" valignment="top">
38431 <column alignment="center" valignment="top">
38432 <column alignment="center" valignment="top">
38434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38437 \begin_layout Plain Layout
38443 <cell alignment="center" valignment="top" topline="true" usebox="none">
38446 \begin_layout Plain Layout
38452 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38455 \begin_layout Plain Layout
38463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38466 \begin_layout Plain Layout
38472 <cell alignment="center" valignment="top" usebox="none">
38475 \begin_layout Plain Layout
38478 arg "dialog-show-new-inset graphics"
38486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38489 \begin_layout Plain Layout
38497 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38500 \begin_layout Plain Layout
38506 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38509 \begin_layout Plain Layout
38515 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38518 \begin_layout Plain Layout
38530 \begin_inset Tabular
38531 <lyxtabular version="3" rows="3" columns="2">
38532 <features tabularvalignment="middle">
38533 <column alignment="center" valignment="top">
38534 <column alignment="center" valignment="top">
38536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38539 \begin_layout Plain Layout
38545 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38548 \begin_layout Plain Layout
38556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38559 \begin_layout Plain Layout
38565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38568 \begin_layout Plain Layout
38571 arg "dialog-show-new-inset graphics"
38581 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38584 \begin_layout Plain Layout
38590 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38593 \begin_layout Plain Layout
38607 \begin_layout Standard
38609 you can use the \SpecialChar LaTeX
38615 \begin_inset Index idx
38618 \begin_layout Plain Layout
38620 -packages ! picinpar
38626 Here is an example:
38629 \begin_layout Standard
38633 \begin_layout Plain Layout
38643 \begin_inset Note Note
38646 \begin_layout Plain Layout
38647 The following section will only be displayed when the \SpecialChar LaTeX
38660 \begin_layout Standard
38664 \begin_layout Plain Layout
38668 begin{window}[2,c,{
38674 \begin_inset Graphics
38675 filename clipart/mobius.eps
38678 scaleBeforeRotation
38679 rotateOrigin center
38687 \begin_layout Plain Layout
38692 \begin_layout Plain Layout
38701 It was in the spring of the year 1894 that all London was interested, and
38702 the fashionable world dismayed, by the murder of the Honourable Ronald
38703 Adair under most unusual and inexplicable circumstances.
38704 The public has already learned those particulars of the crime which
38710 \begin_layout Plain Layout
38721 came out in the police investigation, but a good deal was suppressed upon
38722 that occasion, since the case for the prosecution was so overwhelmingly
38723 strong that it was not necessary to bring forward all the facts.
38724 Only now, at the end of nearly ten years, am I allowed to supply those
38725 missing links which make up the whole of that remarkable chain.
38731 \begin_layout Plain Layout
38743 \begin_layout Standard
38747 \begin_layout Plain Layout
38756 Footnote of the paragraph with the fixed object.
38760 \begin_layout Plain Layout
38770 \begin_layout Standard
38771 Surrounded fixed objects are used to let text float around them, at which
38772 the object's position in the paragraph can be determined by the number
38774 In contrary to floats is it not possible to have a numbered caption.
38777 \begin_layout Standard
38778 A fixed object is inserted by adding the command
38781 \begin_layout Standard
38786 begin{window}[2,c,{
38789 \begin_layout Standard
38790 as \SpecialChar TeX
38791 Code at the beginning of the paragraph.
38792 The first parameter in the bracket, here '2', defines the number of lines
38793 above the object, the second, here 'c', the position of the object.
38794 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38795 Behind the command you insert the object.
38796 In this example an image with a width of 40
38797 \begin_inset space \thinspace{}
38800 % of the text column width was inserted.
38801 The object can also be a table, a box or an equation.
38802 Behind the object the command
38805 \begin_layout Standard
38808 },description text]
38809 \begin_inset Newline newline
38815 \begin_layout Standard
38818 \begin_inset Quotes eld
38826 \begin_inset Quotes erd
38829 is in the second line.
38830 The description text is optional.
38831 The text surrounding the object must be in the same paragraph as the object,
38832 so it must begin directly after the
38837 At the end of the paragraph insert the command:
38840 \begin_layout Standard
38848 \begin_layout Standard
38849 Within a paragraph with a fixed object, you cannot insert footnotes in the
38851 You have to use instead the command
38857 inside the paragraph and outside the command
38863 as described in sec.
38864 \begin_inset space \thinspace{}
38868 \begin_inset CommandInset ref
38870 reference "sec:Footnotes"
38877 \begin_layout Standard
38881 \begin_layout Plain Layout
38891 \begin_inset Note Note
38894 \begin_layout Plain Layout
38895 The following will be displayed when the \SpecialChar LaTeX
38908 \begin_layout Standard
38909 You need to install the \SpecialChar LaTeX
38914 to see the following part of this section in the output.
38917 \begin_layout Standard
38921 \begin_layout Plain Layout
38933 \begin_layout Section
38935 \begin_inset Index idx
38938 \begin_layout Plain Layout
38945 \begin_inset Index idx
38948 \begin_layout Plain Layout
38949 Surrounded by text ! Initials
38957 \begin_layout Standard
38958 To use initials, you must have the \SpecialChar LaTeX
38964 \begin_inset Index idx
38967 \begin_layout Plain Layout
38969 -packages ! lettrine
38974 installed and use the module
38978 in your document (menu
38980 Document\SpecialChar menuseparator
38981 Settings\SpecialChar menuseparator
38985 To insert an initial, use the style
38990 This style has a mandatory and two optional arguments.
38991 The arguments are inserted via the
38996 The mandatory argument
39000 contains the letter(s) that is the initial, the argument
39003 \begin_inset space ~
39007 \begin_inset space ~
39012 contains the rest of the word or text of the initial letter(s).
39017 contains parameters to modify the initial.
39018 For more information about the possible parameters see the documentation
39024 \begin_inset CommandInset citation
39031 The style itself contains the text that is surrounding the initial.
39032 The usual style is hereby that the word whose first letter is the initial,
39040 \begin_layout Standard
39041 Here are some examples:
39044 \begin_layout Standard
39048 \begin_layout Plain Layout
39058 \begin_inset Note Note
39061 \begin_layout Plain Layout
39062 The following section will only be displayed when the \SpecialChar LaTeX
39075 \begin_layout Enumerate
39076 No optional argument, the initial is the letter 'I' in the math font
39077 \begin_inset Formula $\mathfrak{Fraktur}$
39084 \begin_layout Initial
39085 \begin_inset Argument 2
39088 \begin_layout Plain Layout
39089 \begin_inset Formula $\mathfrak{I}$
39098 \begin_inset Argument 3
39101 \begin_layout Plain Layout
39107 was in the spring of the year 1894 that all London was interested, and
39108 the fashionable world dismayed, by the murder of the Honourable Ronald
39109 Adair under most unusual and inexplicable circumstances.
39110 The public has already learned those particulars of the crime which came
39111 out in the police investigation, but a good deal was suppressed upon that
39112 occasion, since the case for the prosecution was so overwhelmingly strong
39113 that it was not necessary to bring forward all the facts.
39114 \begin_inset Newpage newpage
39121 \begin_layout Enumerate
39122 Only one line is surrounding the initial, which is formed by two letters
39123 in standard font and no text is printed in small caps:
39127 \begin_layout Initial
39128 \begin_inset Argument 1
39131 \begin_layout Plain Layout
39138 \begin_inset Argument 2
39141 \begin_layout Plain Layout
39147 was in the spring of the year 1894 that all London was interested, and
39148 the fashionable world dismayed, by the murder of the Honourable Ronald
39149 Adair under most unusual and inexplicable circumstances.
39150 The public has already learned those particulars of the crime which came
39151 out in the police investigation, but a good deal was suppressed upon that
39152 occasion, since the case for the prosecution was so overwhelmingly strong
39153 that it was not necessary to bring forward all the facts.
39157 \begin_layout Enumerate
39158 Magenta, hanging initial over 3
39159 \begin_inset space ~
39162 lines in the math font
39163 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39167 \begin_inset Quotes eld
39170 t was in the spring
39171 \begin_inset Quotes erd
39178 ; to color the initial, you must insert this command before the initial:
39179 \begin_inset Newline newline
39193 \begin_inset Newline newline
39201 \begin_inset Quotes eld
39205 \begin_inset Quotes erd
39209 \begin_inset Quotes eld
39213 \begin_inset Quotes erd
39217 \begin_inset Quotes eld
39221 \begin_inset Quotes erd
39225 \begin_inset Quotes eld
39229 \begin_inset Quotes erd
39233 \begin_inset Quotes eld
39237 \begin_inset Quotes erd
39241 \begin_inset Quotes eld
39245 \begin_inset Quotes erd
39249 \begin_inset Quotes eld
39253 \begin_inset Quotes erd
39257 \begin_inset Quotes eld
39261 \begin_inset Quotes erd
39264 , and add this command to the document preamble:
39265 \begin_inset Newline newline
39272 @ifundefined{textcolor}
39273 \begin_inset Newline newline
39277 \begin_inset space ~
39282 usepackage{color}}{}
39286 \begin_layout Standard
39290 \begin_layout Plain Layout
39304 \begin_inset Note Note
39307 \begin_layout Plain Layout
39308 makes the initial magenta
39316 \begin_layout Initial
39317 \begin_inset Argument 1
39320 \begin_layout Plain Layout
39321 lines=3, lhang=0.33, loversize=0.25
39327 \begin_inset Argument 2
39330 \begin_layout Plain Layout
39331 \begin_inset Formula $\mathcal{I}$
39340 \begin_inset Argument 3
39343 \begin_layout Plain Layout
39344 t was in the spring
39349 of the year 1894 that all London was interested, and the fashionable world
39350 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39351 and inexplicable circumstances.
39352 The public has already learned those particulars of the crime which came
39353 out in the police investigation, but a good deal was suppressed upon that
39354 occasion, since the case for the prosecution was so overwhelmingly strong
39355 that it was not necessary to bring forward all the facts.
39359 \begin_layout Standard
39363 \begin_layout Plain Layout
39373 \begin_inset Note Note
39376 \begin_layout Plain Layout
39377 The following will be displayed when the \SpecialChar LaTeX
39390 \begin_layout Standard
39391 You need to install the \SpecialChar LaTeX
39396 to see the following part of this section in the output.
39399 \begin_layout Standard
39403 \begin_layout Plain Layout
39415 \begin_layout Chapter
39416 External Document Parts
39417 \begin_inset Index idx
39420 \begin_layout Plain Layout
39421 External Document Parts
39429 \begin_layout Standard
39432 Insert\SpecialChar menuseparator
39435 you can insert external material into your document.
39439 \begin_layout Description
39441 \begin_inset space ~
39444 Document Another \SpecialChar LyX
39445 document; its content is directly inserted to your document.
39448 \begin_layout Description
39450 \begin_inset space ~
39453 Text A text document; each line is inserted in your document as a separate
39457 \begin_layout Description
39459 \begin_inset space ~
39463 \begin_inset space ~
39467 \begin_inset space ~
39470 Lines A text document; text lines are inserted in your document continuously
39471 but an empty text line creates a new paragraph.
39474 \begin_layout Description
39476 \begin_inset space ~
39479 Material Files in various formats.
39482 \begin_layout Description
39484 \begin_inset space ~
39487 Document \SpecialChar LyX
39488 or \SpecialChar LaTeX
39492 \begin_layout Section
39494 \begin_inset Index idx
39497 \begin_layout Plain Layout
39498 External Document Parts ! External Material
39506 \begin_layout Standard
39507 The external material feature allows you to insert files into your document
39508 without converting them to a format that can be read by the document output
39511 takes care of the necessary conversions.
39512 This is similar to images that can be inserted in various image formats
39513 in \SpecialChar LyX
39515 When you have enabled Instant Preview in \SpecialChar LyX
39516 's preferences under
39519 \begin_inset space ~
39523 \begin_inset space ~
39526 feel\SpecialChar menuseparator
39529 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39533 \begin_layout Standard
39534 External material can be inserted via the
39538 dialog that is accessible with the menu
39540 Insert\SpecialChar menuseparator
39541 File\SpecialChar menuseparator
39543 \begin_inset space ~
39549 Currently the following file types (
39556 \begin_layout Description
39558 \begin_inset space ~
39561 diagram This template supports chess position diagrams made with the program
39565 \begin_inset CommandInset href
39568 target "http://en.wikipedia.org/wiki/XBoard"
39577 \begin_layout Description
39579 \begin_inset space ~
39582 diagram This template supports diagrams created with the program
39585 \begin_inset CommandInset href
39588 target "http://en.wikipedia.org/wiki/Dia_(software)"
39597 \begin_layout Description
39598 Spreadsheet With this template you can insert spreadsheets
39599 \begin_inset space \thinspace{}
39603 \begin_inset space \thinspace{}
39606 tables in the format of
39609 \begin_inset CommandInset href
39612 target "http://en.wikipedia.org/wiki/Gnumeric"
39619 \begin_inset CommandInset href
39621 name "OpenDocument"
39622 target "http://en.wikipedia.org/wiki/OpenDocument"
39627 \begin_inset CommandInset href
39629 name "Microsoft Office XML"
39630 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39635 \begin_inset CommandInset href
39637 name "Office Open XML"
39638 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39643 For this feature \SpecialChar LyX
39644 must have found the program
39648 during its configuration.
39649 This program is part of Gnumeric, so that you must have Gnumeric installed,
39650 also if you don't have tables in the Gnumeric format.
39651 For examples and possible limitations have a look at \SpecialChar LyX
39659 \begin_layout Description
39661 \begin_inset space ~
39665 \begin_inset space ~
39668 music This template is used for music notation typeset with the program
39669 \begin_inset Newline linebreak
39675 \begin_inset CommandInset href
39678 target "http://en.wikipedia.org/wiki/LilyPond"
39685 For \SpecialChar LyX
39686 's extended support for LilyPond have a look at \SpecialChar LyX
39694 \begin_layout Description
39696 \begin_inset space ~
39699 pages With this template you can insert PDF documents to your document.
39700 To specify the range of pages that should be included, use the option
39710 LaTeX and LyX options
39713 The argument of this option is a comma separated list, containing page
39714 numbers (insert as option
39718 ), ranges of page numbers (
39722 ) or any combination.
39723 To insert empty pages use {}.
39725 \begin_inset space \thinspace{}
39729 \begin_inset space ~
39734 pages={3,{},8-11,15}
39736 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39737 Page ranges are specified in the syntax
39746 This selects all pages from
39759 defaults to the first page; omitting
39763 defaults to the last page of the document.
39764 The last page can also be selected with the keyword
39769 (This is only permitted in a page range.) So
39773 will insert all pages of the document and
39777 will insert all pages in reverse order.
39778 If the pages option is not specified, only the first page of the PDF is
39780 \begin_inset Newline newline
39787 inserts the pages with their original size, if this option is not given,
39788 the pages will be resized to fith the width of the page of your document.
39793 you can specify the width and height of the input pages and their rotation.
39794 If another width than 100
39795 \begin_inset space \thinspace{}
39798 Scale% is used, the option
39802 will be overwritten.
39803 For more info and possible options, have a look into the documentation
39804 of the \SpecialChar LaTeX
39810 \begin_inset CommandInset citation
39817 \begin_inset Index idx
39820 \begin_layout Plain Layout
39822 -packages ! pdfpages
39828 \begin_inset Newline newline
39831 To use this template in a
39835 presentation you need to first insert an
39839 environment and in a subsequent paragraph a \SpecialChar TeX
39840 Code box containing the command
39845 setbeamertemplate{background canvas}{}
39848 Then you can insert as many paragraphs containing the PDFPages template
39850 Behind the included PDF pages you can resume the Beamer presentation by
39851 beginning a new frame or by starting a new section.
39852 To avoid stray blank pages prior to the PDF pages, make sure to use the
39857 alignment for the paragraph containing the template.
39858 \begin_inset Newline newline
39861 Here is an included PDF which is rotated by -5°:
39862 \begin_inset External
39864 filename clipart/Abstract.pdf
39865 extra LaTeX "noautoscale, pages=-"
39867 rotateOrigin bottomleft
39874 \begin_layout Description
39876 \begin_inset space ~
39879 image This can be used for bitmap images.
39880 The image can be treated in the
39884 dialog like the images that are usually included via the
39888 dialog as described in section
39889 \begin_inset space ~
39893 \begin_inset CommandInset ref
39895 reference "sec:Graphics-Dialog"
39900 Here is an inserted raster image:
39901 \begin_inset External
39902 template RasterImage
39903 filename clipart/ToolbarEnvBox.png
39910 \begin_layout Description
39912 \begin_inset space ~
39915 graphics This can be used for vector graphics.
39916 The image can be treated in the
39920 dialog like the images that are usually included via the
39924 dialog as described in section
39925 \begin_inset space ~
39929 \begin_inset CommandInset ref
39931 reference "sec:Graphics-Dialog"
39936 Here is an inserted vector graphics:
39937 \begin_inset External
39938 template VectorGraphics
39939 filename clipart/SVG-Drawing.svg
39947 \begin_layout Description
39949 \begin_inset space ~
39952 figure This template supports images created with the program
39955 \begin_inset CommandInset href
39958 target "http://en.wikipedia.org/wiki/Xfig"
39965 \change_inserted 227574939 1473131626
39969 \begin_layout Description
39971 \change_inserted 227574939 1473131628
39973 \begin_inset space ~
39976 figure This experimental template supports
39977 \change_inserted 2047637253 1475533187
39979 \change_inserted 227574939 1473131628
39981 \change_inserted 2047637253 1475533525
39982 that contain text written in \SpecialChar LaTeX
39985 \change_inserted 227574939 1473131628
39987 \change_inserted 2047637253 1475533551
39988 It relies on the PDF/PS+\SpecialChar LaTeX
39990 \change_deleted 2047637253 1475533556
39992 \change_inserted 227574939 1473131628
39994 \begin_inset CommandInset href
39997 target "https://en.wikipedia.org/wiki/Inkscape"
40003 \change_inserted 2047637253 1475534005
40004 As described by the CTAN demonstration package
40012 \begin_layout Quote
40014 \change_inserted 2047637253 1475534064
40018 \begin_inset Quotes eld
40021 PDF+\SpecialChar LaTeX
40023 \begin_inset Quotes erd
40026 option of Inkscape, it is possible to include SVG in documents, in which
40029 This results in uniform text style throughout the document, including text
40030 in images; moreover, \SpecialChar LaTeX
40031 commands may be used in the image’s text, providing
40032 such things as mathematics and references.
40035 \begin_layout Standard
40037 \change_inserted 2047637253 1475534692
40038 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
40041 Of course, you can always embed \SpecialChar LaTeX
40055 into your figure text strings.
40060 documentation package for more information and examples.
40063 \begin_layout Standard
40065 \change_inserted 2047637253 1475534902
40066 It should be noted that while the image takes into account the surrounding
40067 font, its preview in \SpecialChar LyX
40069 Wrapping the external inset in a preview inset gives better results in
40073 \begin_layout Standard
40075 \change_deleted 2047637253 1475534821
40077 \change_inserted 2047637253 1475534913
40079 \change_inserted 227574939 1473131628
40080 works very similarly to Xfig support, except that Inkscape is a more modern
40081 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
40086 \change_inserted 227574939 1473131628
40087 LyX will process the image file in much the same way as it does an Xfig
40088 image, extracting the text into a separate TeX file for the text strings,
40089 and a PDF file for the rest.
40092 \begin_layout Description
40094 \change_inserted 227574939 1473131628
40095 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
40096 with multi-page PDFs, the TeX file will sometimes reference more pages
40097 than the PDF file contains.
40098 This is the version that ships with Ubuntu 16.04.
40099 Its use with LyX can therefore not be recommended, until the bug is fixed
40103 \begin_layout Plain Layout
40105 \change_inserted 227574939 1473131628
40106 A workaround for those who have already SVG figures in their document is,
40107 to manually do the LaTeX+PDF output from Inkscape, edit the
40111 file to remove the erroneous references, and
40117 it directly into LyX, i.e., not use the external-template mechanism:
40120 \begin_layout Plain Layout
40122 \change_inserted 227574939 1473131628
40123 \begin_inset Graphics
40124 filename clipart/workaround.png
40132 \begin_layout Plain Layout
40134 \change_inserted 227574939 1473131628
40135 Here, the child document input inset (
40137 Insert\SpecialChar menuseparator
40138 File\SpecialChar menuseparator
40141 ) was used, which allows you do directly edit the
40145 file in a text editor.
40146 The LaTeX output is based on this edited snippet as re-generation from
40147 the SVG file has been commented out.
40153 \change_deleted 2047637253 1475534230
40157 \begin_layout Standard
40159 \change_deleted 2047637253 1475534225
40160 The reason why we would use this complicated process at all, like in the
40161 case of Xfig, is that it makes the text strings inside the figure of the
40162 same font type and attributes as the surrounding text, which looks so much
40164 With Inkscape, even the
40168 of the font is taken from the surrounding LaTeX document – in Xfig, you
40169 have to set it by hand to be the same.
40170 Of course you can always embed LaTeX modifiers like
40183 into your figure text strings.
40184 \change_inserted 227574939 1473131628
40189 \begin_layout Standard
40190 \begin_inset Float table
40196 \begin_layout Plain Layout
40197 \begin_inset Caption Standard
40199 \begin_layout Plain Layout
40200 \begin_inset CommandInset label
40202 name "tab:Comparison-of-the"
40206 Comparison of the date input methods.
40214 \begin_layout Plain Layout
40216 \begin_inset Tabular
40217 <lyxtabular version="3" rows="4" columns="3">
40218 <features tabularvalignment="middle">
40219 <column alignment="center" valignment="top">
40220 <column alignment="center" valignment="top">
40221 <column alignment="center" valignment="top">
40223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40226 \begin_layout Plain Layout
40232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40235 \begin_layout Plain Layout
40238 Insert\SpecialChar menuseparator
40244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40247 \begin_layout Plain Layout
40259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40262 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40272 \begin_layout Plain Layout
40278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40281 \begin_layout Plain Layout
40282 as \SpecialChar TeX
40290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40293 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40323 \begin_layout Plain Layout
40329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40332 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40341 \begin_layout Plain Layout
40360 \begin_layout Standard
40361 When you use the option
40373 dialog, only the path to the inserted file is shown in the output.
40374 \begin_inset Newline newline
40377 External material is displayed in \SpecialChar LyX
40378 either as a box like this:
40379 \begin_inset Graphics
40380 filename clipart/ExternalMaterial.png
40382 scaleBeforeRotation
40386 or as image, depending on the option
40392 LaTeX and LyX options
40397 \begin_layout Standard
40404 manual explains how you can define your own templates.
40407 \begin_layout Section
40409 \begin_inset CommandInset label
40411 name "sec:Child-Documents"
40416 \begin_inset Index idx
40419 \begin_layout Plain Layout
40420 External Document Parts ! Child Documents
40426 \begin_inset Index idx
40429 \begin_layout Plain Layout
40438 \begin_layout Standard
40439 Child documents are used if you have a long document consisting of several
40440 larger parts or sections.
40441 For maintenance it is often useful and sometimes even required to split
40442 the document into several files that can be revised separately.
40443 The different documents are then the so called
40444 \begin_inset Quotes eld
40448 \begin_inset Quotes erd
40451 , and a master document connects them to print the full document or parts
40453 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40455 the bibliography, and labels for cross-references.
40458 \begin_layout Standard
40459 To be able to work on child documents without the need to open their master,
40460 specify in the child document the master in the menu
40462 Document\SpecialChar menuseparator
40463 Settings\SpecialChar menuseparator
40465 \begin_inset space ~
40471 This master document will then be used in the background by \SpecialChar LyX
40473 the child document.
40476 \begin_layout Standard
40477 Included documents are displayed in \SpecialChar LyX
40478 as a box like this:
40479 \begin_inset Graphics
40480 filename clipart/ChildDocument.png
40481 scaleBeforeRotation
40485 To include child documents in a master document use the menu
40487 Insert\SpecialChar menuseparator
40488 File\SpecialChar menuseparator
40490 \begin_inset space ~
40496 A dialog pops up where you can choose between four include methods:
40499 \begin_layout Description
40500 Include You can include \SpecialChar LyX
40501 and \SpecialChar LaTeX
40511 dialog, the included document will be opened in \SpecialChar LyX
40512 in a new file tab so that
40514 \begin_inset Newline newline
40520 \begin_layout Standard
40521 Here is a child document inserted using
40526 \begin_inset CommandInset include
40527 LatexCommand include
40528 filename "DummyDocument1.lyx"
40535 \begin_layout Standard
40536 The section numbering includes the sections of the included files in the
40537 order they are inserted in the master document.
40538 The included example document has for example a subsection that is numbered
40539 as a subsection of this section.
40540 Labels of included documents can be referenced: Subsection
40541 \begin_inset space ~
40545 \begin_inset CommandInset ref
40547 reference "subsec:External-Subsection-1"
40554 \begin_layout Standard
40555 The preamble of the child document is ignored; only the preamble of the
40556 master document is used.
40557 Branches in child documents will be ignored by the master document when
40558 the master document does not have a branch with the same name.
40559 Included documents are inserted starting on a new page and ending with
40563 \begin_layout Standard
40564 \begin_inset Note Greyedout
40567 \begin_layout Plain Layout
40572 If you have included a \SpecialChar LyX
40573 or \SpecialChar LaTeX
40574 file, you are warned when you export/view the
40575 document in case the child document uses another document class than the
40576 master document as this will lead to unexpected outputs.
40584 \begin_layout Description
40585 Input This method is very similar to the Include method.
40586 The differences are:
40590 \begin_layout Itemize
40591 Input files don't start with a new page and don't end with a page break.
40594 \begin_layout Itemize
40595 Input files can be previewed in \SpecialChar LyX
40599 \begin_inset space ~
40604 is enabled in \SpecialChar LyX
40605 's preferences under
40608 \begin_inset space ~
40612 \begin_inset space ~
40615 feel\SpecialChar menuseparator
40621 \begin_layout Itemize
40622 You cannot exclude Input files via the menu
40624 Document\SpecialChar menuseparator
40625 Settings\SpecialChar menuseparator
40632 \begin_layout Standard
40633 Here is a child document inserted using
40638 \begin_inset CommandInset include
40640 filename "DummyDocument2.lyx"
40647 \begin_layout Description
40648 Verbatim With this method any text file can be included.
40649 The file is shown in the output with its source code; no command used in
40650 the text is invoked.
40651 You can use the option
40653 Mark spaces in output
40655 that displays the character
40656 \begin_inset Quotes eld
40663 \begin_layout Plain Layout
40673 \begin_inset Quotes erd
40676 for every space character in the source code.
40677 The difference from the method via the menu
40679 Insert\SpecialChar menuseparator
40680 File\SpecialChar menuseparator
40682 \begin_inset space ~
40687 is that the document content is not shown in \SpecialChar LyX
40691 \begin_layout Standard
40692 Here is a child document inserted as Verbatim:
40693 \begin_inset CommandInset include
40694 LatexCommand verbatiminput
40695 filename "DummyTextDocument.txt"
40700 \begin_inset VSpace bigskip
40703 Here is a child document inserted as Verbatim using the
40705 Mark spaces in output
40708 \begin_inset CommandInset include
40709 LatexCommand verbatiminput*
40710 filename "DummyTextDocument.txt"
40717 \begin_layout Standard
40718 \begin_inset VSpace bigskip
40724 \begin_layout Standard
40725 \begin_inset Note Greyedout
40728 \begin_layout Plain Layout
40733 As you can see in the examples above, the text of the documents included
40738 is not broken at the end of the document lines.
40746 \begin_layout Description
40747 Listings This type is described in chapter
40748 \begin_inset space ~
40752 \begin_inset CommandInset ref
40754 reference "cha:Program-Code-Listings"
40761 \begin_layout Standard
40762 \begin_inset Note Greyedout
40765 \begin_layout Plain Layout
40770 Including the same document twice in a document using different methods
40771 could cause \SpecialChar LaTeX
40780 \begin_layout Standard
40781 If you want to view/export only selected children of your master document,
40782 either because you want to save compiling time or because you want to distribut
40783 e single chapters of the book you are just writing, you can exclude children
40785 This is done via the menu
40787 Document\SpecialChar menuseparator
40788 Settings\SpecialChar menuseparator
40792 You can exclude\SpecialChar breakableslash
40793 include children by double-clicking on the
40797 column of the respective child document in the list (note that this only
40798 works for documents embedded via
40799 \begin_inset Quotes eld
40803 \begin_inset Quotes erd
40807 \begin_inset Quotes eld
40811 \begin_inset Quotes erd
40817 Maintain counters and references
40819 is enabled, \SpecialChar LyX
40820 will assure that all page numbers, references etc.
40821 \begin_inset space ~
40824 are correct as if the whole document was processed.
40825 This is useful if you want the selected sub-documents to look exactly as
40826 in the context of the whole document.
40827 However, \SpecialChar LyX
40828 needs to process the whole document in the background for this
40830 So if you want to save compile time and if counters and references do not
40831 need to be correct, disable this checkbox.
40834 \begin_layout Standard
40835 Alternatively, you can put each included file into a branch.
40839 \begin_layout Plain Layout
40840 Branches are described in section
40844 of the \SpecialChar LyX
40854 By enabling\SpecialChar breakableslash
40855 disabling branches you can decide which included files will
40856 appear in the output.
40857 This has the advantage that it also works with Input'ed sub-documents.
40858 However, counters and references will not be maintained with this approach.
40861 \begin_layout Chapter
40862 Program Code Listings
40863 \begin_inset CommandInset label
40865 name "cha:Program-Code-Listings"
40870 \begin_inset Index idx
40873 \begin_layout Plain Layout
40880 \begin_inset Index idx
40883 \begin_layout Plain Layout
40890 \begin_inset Index idx
40893 \begin_layout Plain Layout
40902 \begin_layout Standard
40903 To include and typeset program code you can use the
40907 inset that can be inserted via the menu
40909 Insert\SpecialChar menuseparator
40913 The \SpecialChar LaTeX
40919 \begin_inset Index idx
40922 \begin_layout Plain Layout
40924 -packages ! listings
40929 provides a powerful and flexible way to insert program source code into
40933 \begin_layout Standard
40934 Right-clicking on a listings inset opens the context menu containing where
40935 you can set the listings format.
40938 \begin_layout Standard
40939 By default, a listing starts a new paragraph in the output.
40940 The placement option
40943 \begin_inset space ~
40948 prints the listing inline like this:
40949 \begin_inset listings
40950 lstparams "language={C++}"
40954 \begin_layout Plain Layout
40962 \begin_inset Newline newline
40969 creates a listings float where you can specify the placement options
40970 \begin_inset Quotes eld
40978 \begin_inset Quotes erd
40982 \begin_inset Quotes eld
40990 \begin_inset Quotes erd
40994 \begin_inset Quotes eld
41002 \begin_inset Quotes erd
41006 \begin_inset Quotes eld
41014 \begin_inset Quotes erd
41017 corresponding to the float placement options described in section
41018 \begin_inset space ~
41022 \begin_inset CommandInset ref
41024 reference "sec:Float-Placement"
41029 The placement options can be mixed and are inserted without any separation,
41031 \begin_inset space \thinspace{}
41035 \begin_inset space \space{}
41039 \begin_inset Quotes eld
41047 \begin_inset Quotes erd
41052 \begin_inset Quotes eld
41056 \begin_inset Quotes erd
41059 has sometimes no effect, but you don't need to use the
41063 option in this case as also non-float listings can have captions and be
41067 \begin_layout Standard
41068 You can add captions to listings with the menu
41070 Insert\SpecialChar menuseparator
41074 Listings can be referenced like floats: Listing
41075 \begin_inset space ~
41079 \begin_inset CommandInset ref
41081 reference "lst:Example-Listing"
41086 A list of listings which contains all listings with captions can be created
41089 Insert\SpecialChar menuseparator
41091 \begin_inset space ~
41095 \begin_inset space ~
41098 TOC\SpecialChar menuseparator
41102 The list entries are the listing caption and the listing number.
41105 \begin_layout Standard
41106 \begin_inset listings
41107 lstparams "language=Python"
41111 \begin_layout Plain Layout
41113 \begin_inset Caption Standard
41115 \begin_layout Plain Layout
41116 \begin_inset CommandInset label
41118 name "lst:Example-Listing"
41122 Example Listing float
41127 # Example listing float
41130 \begin_layout Plain Layout
41135 \begin_layout Plain Layout
41137 'this is a python function'
41140 \begin_layout Plain Layout
41150 \begin_layout Standard
41151 When you have set a programming language in the listings dialog, the keywords
41152 of this language will be recognized and specially typeset in the output.
41153 In the example listings the Python keyword
41154 \begin_inset Quotes eld
41158 \begin_inset Quotes erd
41161 is recognized and printed bold in the output.
41164 \begin_layout Standard
41165 \begin_inset Note Greyedout
41168 \begin_layout Plain Layout
41173 If you don't get bold keywords when using typewriter fonts, your
41177 font probably doesn't provide a bold shape.
41178 In this case select a different one in the menu
41180 Document\SpecialChar menuseparator
41181 Settings\SpecialChar menuseparator
41193 provide bold shapes.)
41201 \begin_layout Standard
41205 \begin_inset space ~
41210 of the listings dialog you can specify the line numbering style.
41211 You can insert a number to specify which lines are numbered in the field
41218 \begin_inset space \thinspace{}
41222 \begin_inset space \space{}
41226 \begin_inset Quotes eld
41230 \begin_inset Quotes erd
41233 , only every 3rd line will be numbered.
41236 \begin_layout Standard
41237 You can furthermore specify a range of lines; only these will then appear
41241 Extended character table
41243 should be used when you use national characters like the German umlauts
41245 \begin_inset Newline newline
41248 Here is an example listing with left line numbering, step
41249 \begin_inset Quotes eld
41253 \begin_inset Quotes erd
41257 \begin_inset Quotes eld
41261 \begin_inset Quotes erd
41265 \begin_inset Quotes eld
41268 Extended character table
41269 \begin_inset Quotes erd
41273 \begin_inset Quotes eld
41277 \begin_inset space ~
41281 \begin_inset space ~
41285 \begin_inset Quotes erd
41289 \begin_inset space \thinspace{}
41293 \begin_inset space \thinspace{}
41299 \begin_layout Standard
41300 \begin_inset listings
41301 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41305 \begin_layout Plain Layout
41310 \begin_layout Plain Layout
41312 'this is a python function'
41315 \begin_layout Plain Layout
41320 \begin_layout Plain Layout
41325 \begin_layout Plain Layout
41327 'This is a German word: Tschüß'
41330 \begin_layout Plain Layout
41335 \begin_layout Plain Layout
41340 \begin_layout Plain Layout
41342 'this is a python function'
41345 \begin_layout Plain Layout
41355 \begin_layout Standard
41356 When you have tabulators in your listing, you can specify the number of
41357 characters that are spanned by a tabulator in the field
41360 \begin_inset space ~
41368 \begin_layout Standard
41369 \begin_inset Note Greyedout
41372 \begin_layout Plain Layout
41377 Due to a bug in the
41381 package the line numbering is shifted by a line by every previous listing.
41382 That's the reason why the lines 2 and 5 are numbered in the above listing
41383 and not the lines 3 and 6.
41391 \begin_layout Standard
41392 \begin_inset VSpace bigskip
41398 \begin_layout Standard
41399 It is also possible to print lines from a file as listing.
41400 To do this, use the menu
41402 Insert\SpecialChar menuseparator
41403 File\SpecialChar menuseparator
41406 and choose the type
41414 \begin_layout Plain Layout
41415 The other child document types are described in section
41416 \begin_inset space ~
41420 \begin_inset CommandInset ref
41422 reference "sec:Child-Documents"
41431 In the child document dialog you can specify the listing parameters in
41433 To show a list of all available parameters, type in a question mark
41434 \begin_inset Quotes eld
41438 \begin_inset Quotes erd
41444 \begin_layout Standard
41445 To reference child document listings, write a label text into the corresponding
41446 field of the child document dialog.
41447 The label can then be referenced using the menu
41449 Insert\SpecialChar menuseparator
41455 \begin_layout Standard
41457 \begin_inset space ~
41461 \begin_inset CommandInset ref
41463 reference "lst:file-listing"
41467 is an example for a listing of a file; there the lines 10
41468 \begin_inset space \thinspace{}
41472 \begin_inset space \thinspace{}
41475 15 of this \SpecialChar LyX
41479 \begin_layout Standard
41480 \begin_inset CommandInset include
41481 LatexCommand lstinputlisting
41482 filename "EmbeddedObjects.lyx"
41483 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41490 \begin_layout Standard
41491 \begin_inset VSpace bigskip
41497 \begin_layout Standard
41498 Inserting a formula into a listing can be done the following way:
41501 \begin_layout Enumerate
41502 Open the listings dialog and add
41503 \begin_inset Newline newline
41511 \begin_inset Newline newline
41514 to the field of the
41521 \begin_layout Enumerate
41522 Create a formula outside the listing
41525 \begin_layout Enumerate
41526 Copy the content of the formula (not the formula inset) to the clipboard
41536 \begin_layout Enumerate
41537 In the listing write
41538 \begin_inset Quotes eld
41546 \begin_inset Quotes erd
41549 and copy from the clipboard between the dollar-signs (shortcut
41558 \begin_layout Standard
41559 \begin_inset listings
41560 lstparams "language=Python,mathescape=true"
41564 \begin_layout Plain Layout
41566 \begin_inset Caption Standard
41568 \begin_layout Plain Layout
41569 Example Listing float containing a formula
41574 # Example listing float
41577 \begin_layout Plain Layout
41582 \begin_layout Plain Layout
41595 \begin_layout Plain Layout
41605 \begin_layout Standard
41606 \begin_inset VSpace bigskip
41612 \begin_layout Standard
41613 Global listings settings can be set in the
41615 Document\SpecialChar menuseparator
41616 Settings\SpecialChar menuseparator
41620 To get there a list of available options, type in a question mark
41621 \begin_inset Quotes eld
41625 \begin_inset Quotes erd
41631 \begin_layout Standard
41632 For more information about the
41636 package, we refer to its documentation
41637 \begin_inset CommandInset citation
41646 \begin_layout Standard
41647 \begin_inset Newpage newpage
41653 \begin_layout Chapter
41655 Units available in \SpecialChar LyX
41657 \begin_inset Index idx
41660 \begin_layout Plain Layout
41667 \begin_inset CommandInset label
41669 name "cha:Units-available-in"
41676 \begin_layout Standard
41677 To understand the units described in this documentation, Table
41678 \begin_inset space ~
41682 \begin_inset CommandInset ref
41684 reference "tab:Units"
41688 explains all units available in \SpecialChar LyX
41692 \begin_layout Standard
41693 \begin_inset Float table
41699 \begin_layout Plain Layout
41700 \begin_inset Caption Standard
41702 \begin_layout Plain Layout
41703 \begin_inset CommandInset label
41717 \begin_layout Plain Layout
41718 \begin_inset VSpace medskip
41724 \begin_layout Plain Layout
41726 \begin_inset Tabular
41727 <lyxtabular version="3" rows="20" columns="3">
41728 <features tabularvalignment="middle">
41729 <column alignment="center" valignment="top">
41730 <column alignment="center" valignment="top">
41731 <column alignment="center" valignment="top">
41733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41736 \begin_layout Plain Layout
41742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41745 \begin_layout Plain Layout
41751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41754 \begin_layout Plain Layout
41763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41766 \begin_layout Plain Layout
41772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41775 \begin_layout Plain Layout
41781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41784 \begin_layout Plain Layout
41792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41795 \begin_layout Plain Layout
41801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41804 \begin_layout Plain Layout
41810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41813 \begin_layout Plain Layout
41821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41824 \begin_layout Plain Layout
41830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41833 \begin_layout Plain Layout
41839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41842 \begin_layout Plain Layout
41850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41853 \begin_layout Plain Layout
41859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41862 \begin_layout Plain Layout
41864 \begin_inset space \thinspace{}
41868 \begin_inset space \thinspace{}
41876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41879 \begin_layout Plain Layout
41887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41890 \begin_layout Plain Layout
41896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41899 \begin_layout Plain Layout
41901 \begin_inset space \thinspace{}
41905 \begin_inset space \thinspace{}
41913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41916 \begin_layout Plain Layout
41924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41927 \begin_layout Plain Layout
41933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41936 \begin_layout Plain Layout
41937 scaled point (65536
41938 \begin_inset space \thinspace{}
41942 \begin_inset space \thinspace{}
41950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41953 \begin_layout Plain Layout
41961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41964 \begin_layout Plain Layout
41970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41973 \begin_layout Plain Layout
41975 \begin_inset space \thinspace{}
41979 \begin_inset space \thinspace{}
41987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41990 \begin_layout Plain Layout
41998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42001 \begin_layout Plain Layout
42007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42010 \begin_layout Plain Layout
42012 \begin_inset space \thinspace{}
42016 \begin_inset Formula $\approx$
42020 \begin_inset space \thinspace{}
42028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42031 \begin_layout Plain Layout
42039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42042 \begin_layout Plain Layout
42048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42051 \begin_layout Plain Layout
42053 \begin_inset space \thinspace{}
42057 \begin_inset space \thinspace{}
42065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42068 \begin_layout Plain Layout
42076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42079 \begin_layout Plain Layout
42085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42088 \begin_layout Plain Layout
42089 % of original image width
42094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42097 \begin_layout Plain Layout
42105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42108 \begin_layout Plain Layout
42114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42117 \begin_layout Plain Layout
42123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42126 \begin_layout Plain Layout
42136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42139 \begin_layout Plain Layout
42145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42148 \begin_layout Plain Layout
42154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42157 \begin_layout Plain Layout
42167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42170 \begin_layout Plain Layout
42176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42179 \begin_layout Plain Layout
42185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42188 \begin_layout Plain Layout
42198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42201 \begin_layout Plain Layout
42207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42210 \begin_layout Plain Layout
42216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42219 \begin_layout Plain Layout
42229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42232 \begin_layout Plain Layout
42238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42241 \begin_layout Plain Layout
42247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42250 \begin_layout Plain Layout
42260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42263 \begin_layout Plain Layout
42269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42272 \begin_layout Plain Layout
42278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42281 \begin_layout Plain Layout
42291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42294 \begin_layout Plain Layout
42300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42303 \begin_layout Plain Layout
42313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42316 \begin_layout Plain Layout
42324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42327 \begin_layout Plain Layout
42333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42336 \begin_layout Plain Layout
42346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42349 \begin_layout Plain Layout
42357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42360 \begin_layout Plain Layout
42366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42369 \begin_layout Plain Layout
42371 \begin_inset space \thinspace{}
42375 \begin_inset space \thinspace{}
42383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42386 \begin_layout Plain Layout
42405 \begin_layout Chapter
42406 Output File Formats with Graphics
42407 \begin_inset CommandInset label
42409 name "cha:Output-File-Formats"
42416 \begin_layout Section
42418 \begin_inset Index idx
42421 \begin_layout Plain Layout
42428 \begin_inset Index idx
42431 \begin_layout Plain Layout
42436 \begin_layout Plain Layout
42447 \begin_layout Plain Layout
42462 \begin_layout Standard
42463 This file type has the extension
42464 \begin_inset Quotes eld
42472 \begin_inset Quotes erd
42477 \begin_inset Quotes eld
42481 \begin_inset Quotes erd
42484 (DVI), because it is completely portable; you can move them from one machine
42485 to another without needing to do any sort of conversion.
42486 At the time when this file-format was developed, this was no matter of
42488 DVIs are used for quick previews and as pre-stage for other output formats,
42492 \begin_layout Standard
42493 \begin_inset Note Greyedout
42496 \begin_layout Plain Layout
42501 DVI-files do not contain images; they will only be a linked.
42506 So don't forget this, if you move your
42510 file to another computer.
42511 This property can also slow down your computer when you view the DVI, because
42512 the DVI-viewer has to convert the image in the background to make it visible
42513 when you scroll in the DVI.
42514 So it is recommended that you use PDF for files with many images.
42517 \begin_layout Standard
42518 You can export your document to DVI by using the menu
42520 File\SpecialChar menuseparator
42521 Export\SpecialChar menuseparator
42525 You can view your document as DVI via the
42532 \begin_layout Section
42534 \begin_inset Index idx
42537 \begin_layout Plain Layout
42538 File Formats ! PostScript
42544 \begin_inset Index idx
42547 \begin_layout Plain Layout
42552 \begin_layout Plain Layout
42563 \begin_layout Plain Layout
42578 \begin_layout Standard
42579 This file type has the extension
42580 \begin_inset Quotes eld
42588 \begin_inset Quotes erd
42592 PostScript was developed by the company
42596 as a printer language.
42597 The file therefore contains commands that the printer uses to print the
42599 PostScript can be seen as a
42600 \begin_inset Quotes eld
42603 programming language
42604 \begin_inset Quotes erd
42607 ; you can calculate with it and draw diagrams and images.
42611 \begin_layout Plain Layout
42612 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42619 \begin_inset CommandInset citation
42630 Due to this ability, the files are often bigger than PDFs.
42633 \begin_layout Standard
42634 PostScript can only contain images in the format
42635 \begin_inset Quotes eld
42638 Encapsulated PostScript
42639 \begin_inset Quotes erd
42642 (EPS, file extension
42643 \begin_inset Quotes eld
42651 \begin_inset Quotes erd
42655 As \SpecialChar LyX
42656 allows you to use any known image format in your document, it has to
42657 convert images in the background to EPS.
42659 \begin_inset space ~
42663 \begin_inset space ~
42666 images in your document, \SpecialChar LyX
42668 \begin_inset space ~
42671 conversions whenever you view or export your document.
42672 This will slow down your work flow with \SpecialChar LyX
42674 So if you plan to use PostScript, you can insert your images directly as
42675 EPS to avoid this problem.
42678 \begin_layout Standard
42679 You can export your document to PostScript using the menu
42681 File\SpecialChar menuseparator
42682 Export\SpecialChar menuseparator
42686 You can view your document as PostScript via the
42693 \begin_layout Section
42695 \begin_inset Index idx
42698 \begin_layout Plain Layout
42705 \begin_inset Index idx
42708 \begin_layout Plain Layout
42717 \begin_layout Standard
42718 This file type has the extension
42719 \begin_inset Quotes eld
42727 \begin_inset Quotes erd
42732 \begin_inset Quotes eld
42735 Portable Document Format
42736 \begin_inset Quotes erd
42739 (PDF) was developed by
42743 as a derivative of PostScript.
42744 It is more compressed and it uses fewer commands than PostScript.
42746 \begin_inset Quotes eld
42750 \begin_inset Quotes erd
42753 implies, it can be processed at any computer system and the printed output
42754 looks exactly the same.
42757 \begin_layout Standard
42758 PDF can contain images in its own PDF format, in the format
42759 \begin_inset Quotes eld
42762 Joint Photographic Experts Group
42763 \begin_inset Quotes erd
42766 (JPG, file extension
42767 \begin_inset Quotes eld
42775 \begin_inset Quotes erd
42779 \begin_inset Quotes eld
42787 \begin_inset Quotes erd
42790 ), and in the format
42791 \begin_inset Quotes eld
42794 Portable Network Graphics
42795 \begin_inset Quotes erd
42798 (PNG, file extension
42799 \begin_inset Quotes eld
42807 \begin_inset Quotes erd
42811 Nevertheless you can use any other image format, because \SpecialChar LyX
42813 in the background to one of these formats.
42814 But as described in the section about PostScript, the image conversion
42815 will slow down your work flow.
42816 So it is recommended that you use images in one of the three mentioned
42820 \begin_layout Standard
42821 You can export your document to PDF via the menu
42823 File\SpecialChar menuseparator
42826 in three different ways:
42829 \begin_layout Description
42831 \begin_inset space ~
42834 (ps2pdf) This uses the program
42838 that creates a PDF from a PostScript-version of your file.
42839 The PostScript-version is produced by the program
42843 which uses a DVI-version as intermediate step.
42844 So this export variant consists of three conversions.
42847 \begin_layout Description
42849 \begin_inset space ~
42852 (dvipdfm) This uses the program
42856 that converts your file in the background to DVI and in a second step to
42860 \begin_layout Description
42862 \begin_inset space ~
42865 (pdflatex) This uses the program
42869 that converts your file directly to PDF.
42872 \begin_layout Standard
42873 It is recommended that you use
42876 \begin_inset space ~
42885 supports all features of actual PDF-versions, is quick and works stable.
42890 is not under development and therefore a bit outdated.
42893 \begin_layout Standard
42894 You can view your document as PDF via the
42898 menu or by using a toolbar button.
42901 \begin_layout Chapter
42902 List of dvips color names
42903 \begin_inset CommandInset label
42905 name "chap:List-of-dvips-colornames"
42912 \begin_layout Standard
42913 \begin_inset Tabular
42914 <lyxtabular version="3" rows="17" columns="4">
42915 <features tabularvalignment="middle">
42916 <column alignment="left" valignment="top" width="0pt">
42917 <column alignment="left" valignment="top" width="0pt">
42918 <column alignment="left" valignment="top" width="0pt">
42919 <column alignment="left" valignment="top" width="0pt">
42921 <cell alignment="left" valignment="top" usebox="none">
42924 \begin_layout Plain Layout
42928 \begin_layout Plain Layout
42941 \begin_layout Plain Layout
42952 \begin_layout Plain Layout
42964 <cell alignment="left" valignment="top" usebox="none">
42967 \begin_layout Plain Layout
42971 \begin_layout Plain Layout
42984 \begin_layout Plain Layout
42995 \begin_layout Plain Layout
43007 <cell alignment="left" valignment="top" usebox="none">
43010 \begin_layout Plain Layout
43014 \begin_layout Plain Layout
43027 \begin_layout Plain Layout
43038 \begin_layout Plain Layout
43050 <cell alignment="left" valignment="top" usebox="none">
43053 \begin_layout Plain Layout
43057 \begin_layout Plain Layout
43070 \begin_layout Plain Layout
43081 \begin_layout Plain Layout
43095 <cell alignment="center" valignment="top" usebox="none">
43098 \begin_layout Plain Layout
43102 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43123 \begin_inset Phantom Phantom
43126 \begin_layout Plain Layout
43136 \begin_layout Plain Layout
43148 <cell alignment="center" valignment="top" usebox="none">
43151 \begin_layout Plain Layout
43155 \begin_layout Plain Layout
43168 \begin_layout Plain Layout
43176 \begin_inset Phantom Phantom
43179 \begin_layout Plain Layout
43189 \begin_layout Plain Layout
43201 <cell alignment="center" valignment="top" usebox="none">
43204 \begin_layout Plain Layout
43208 \begin_layout Plain Layout
43221 \begin_layout Plain Layout
43229 \begin_inset Phantom Phantom
43232 \begin_layout Plain Layout
43242 \begin_layout Plain Layout
43254 <cell alignment="center" valignment="top" usebox="none">
43257 \begin_layout Plain Layout
43261 \begin_layout Plain Layout
43274 \begin_layout Plain Layout
43282 \begin_inset Phantom Phantom
43285 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43309 <cell alignment="left" valignment="top" usebox="none">
43312 \begin_layout Plain Layout
43316 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43337 \begin_inset Phantom Phantom
43340 \begin_layout Plain Layout
43350 \begin_layout Plain Layout
43362 <cell alignment="left" valignment="top" usebox="none">
43365 \begin_layout Plain Layout
43369 \begin_layout Plain Layout
43382 \begin_layout Plain Layout
43390 \begin_inset Phantom Phantom
43393 \begin_layout Plain Layout
43403 \begin_layout Plain Layout
43415 <cell alignment="left" valignment="top" usebox="none">
43418 \begin_layout Plain Layout
43422 \begin_layout Plain Layout
43435 \begin_layout Plain Layout
43443 \begin_inset Phantom Phantom
43446 \begin_layout Plain Layout
43456 \begin_layout Plain Layout
43468 <cell alignment="left" valignment="top" usebox="none">
43471 \begin_layout Plain Layout
43475 \begin_layout Plain Layout
43488 \begin_layout Plain Layout
43496 \begin_inset Phantom Phantom
43499 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43523 <cell alignment="left" valignment="top" usebox="none">
43526 \begin_layout Plain Layout
43530 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43551 \begin_inset Phantom Phantom
43554 \begin_layout Plain Layout
43564 \begin_layout Plain Layout
43576 <cell alignment="left" valignment="top" usebox="none">
43579 \begin_layout Plain Layout
43583 \begin_layout Plain Layout
43596 \begin_layout Plain Layout
43604 \begin_inset Phantom Phantom
43607 \begin_layout Plain Layout
43617 \begin_layout Plain Layout
43629 <cell alignment="left" valignment="top" usebox="none">
43632 \begin_layout Plain Layout
43636 \begin_layout Plain Layout
43649 \begin_layout Plain Layout
43657 \begin_inset Phantom Phantom
43660 \begin_layout Plain Layout
43670 \begin_layout Plain Layout
43682 <cell alignment="left" valignment="top" usebox="none">
43685 \begin_layout Plain Layout
43689 \begin_layout Plain Layout
43702 \begin_layout Plain Layout
43710 \begin_inset Phantom Phantom
43713 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43737 <cell alignment="left" valignment="top" usebox="none">
43740 \begin_layout Plain Layout
43744 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43765 \begin_inset Phantom Phantom
43768 \begin_layout Plain Layout
43778 \begin_layout Plain Layout
43790 <cell alignment="left" valignment="top" usebox="none">
43793 \begin_layout Plain Layout
43797 \begin_layout Plain Layout
43810 \begin_layout Plain Layout
43818 \begin_inset Phantom Phantom
43821 \begin_layout Plain Layout
43831 \begin_layout Plain Layout
43843 <cell alignment="left" valignment="top" usebox="none">
43846 \begin_layout Plain Layout
43850 \begin_layout Plain Layout
43863 \begin_layout Plain Layout
43871 \begin_inset Phantom Phantom
43874 \begin_layout Plain Layout
43884 \begin_layout Plain Layout
43896 <cell alignment="left" valignment="top" usebox="none">
43899 \begin_layout Plain Layout
43903 \begin_layout Plain Layout
43916 \begin_layout Plain Layout
43924 \begin_inset Phantom Phantom
43927 \begin_layout Plain Layout
43937 \begin_layout Plain Layout
43951 <cell alignment="left" valignment="top" usebox="none">
43954 \begin_layout Plain Layout
43958 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43979 \begin_inset Phantom Phantom
43982 \begin_layout Plain Layout
43992 \begin_layout Plain Layout
44004 <cell alignment="left" valignment="top" usebox="none">
44007 \begin_layout Plain Layout
44011 \begin_layout Plain Layout
44024 \begin_layout Plain Layout
44032 \begin_inset Phantom Phantom
44035 \begin_layout Plain Layout
44045 \begin_layout Plain Layout
44057 <cell alignment="left" valignment="top" usebox="none">
44060 \begin_layout Plain Layout
44064 \begin_layout Plain Layout
44077 \begin_layout Plain Layout
44085 \begin_inset Phantom Phantom
44088 \begin_layout Plain Layout
44098 \begin_layout Plain Layout
44110 <cell alignment="left" valignment="top" usebox="none">
44113 \begin_layout Plain Layout
44117 \begin_layout Plain Layout
44130 \begin_layout Plain Layout
44138 \begin_inset Phantom Phantom
44141 \begin_layout Plain Layout
44151 \begin_layout Plain Layout
44165 <cell alignment="center" valignment="top" usebox="none">
44168 \begin_layout Plain Layout
44172 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44193 \begin_inset Phantom Phantom
44196 \begin_layout Plain Layout
44206 \begin_layout Plain Layout
44218 <cell alignment="center" valignment="top" usebox="none">
44221 \begin_layout Plain Layout
44225 \begin_layout Plain Layout
44238 \begin_layout Plain Layout
44246 \begin_inset Phantom Phantom
44249 \begin_layout Plain Layout
44259 \begin_layout Plain Layout
44271 <cell alignment="center" valignment="top" usebox="none">
44274 \begin_layout Plain Layout
44278 \begin_layout Plain Layout
44291 \begin_layout Plain Layout
44299 \begin_inset Phantom Phantom
44302 \begin_layout Plain Layout
44312 \begin_layout Plain Layout
44324 <cell alignment="center" valignment="top" usebox="none">
44327 \begin_layout Plain Layout
44331 \begin_layout Plain Layout
44344 \begin_layout Plain Layout
44352 \begin_inset Phantom Phantom
44355 \begin_layout Plain Layout
44365 \begin_layout Plain Layout
44379 <cell alignment="left" valignment="top" usebox="none">
44382 \begin_layout Plain Layout
44386 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44407 \begin_inset Phantom Phantom
44410 \begin_layout Plain Layout
44420 \begin_layout Plain Layout
44432 <cell alignment="left" valignment="top" usebox="none">
44435 \begin_layout Plain Layout
44439 \begin_layout Plain Layout
44452 \begin_layout Plain Layout
44460 \begin_inset Phantom Phantom
44463 \begin_layout Plain Layout
44473 \begin_layout Plain Layout
44485 <cell alignment="left" valignment="top" usebox="none">
44488 \begin_layout Plain Layout
44492 \begin_layout Plain Layout
44505 \begin_layout Plain Layout
44513 \begin_inset Phantom Phantom
44516 \begin_layout Plain Layout
44526 \begin_layout Plain Layout
44538 <cell alignment="left" valignment="top" usebox="none">
44541 \begin_layout Plain Layout
44545 \begin_layout Plain Layout
44558 \begin_layout Plain Layout
44566 \begin_inset Phantom Phantom
44569 \begin_layout Plain Layout
44579 \begin_layout Plain Layout
44593 <cell alignment="left" valignment="top" usebox="none">
44596 \begin_layout Plain Layout
44600 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44621 \begin_inset Phantom Phantom
44624 \begin_layout Plain Layout
44634 \begin_layout Plain Layout
44646 <cell alignment="left" valignment="top" usebox="none">
44649 \begin_layout Plain Layout
44653 \begin_layout Plain Layout
44666 \begin_layout Plain Layout
44674 \begin_inset Phantom Phantom
44677 \begin_layout Plain Layout
44687 \begin_layout Plain Layout
44699 <cell alignment="left" valignment="top" usebox="none">
44702 \begin_layout Plain Layout
44706 \begin_layout Plain Layout
44719 \begin_layout Plain Layout
44727 \begin_inset Phantom Phantom
44730 \begin_layout Plain Layout
44740 \begin_layout Plain Layout
44752 <cell alignment="left" valignment="top" usebox="none">
44755 \begin_layout Plain Layout
44759 \begin_layout Plain Layout
44772 \begin_layout Plain Layout
44780 \begin_inset Phantom Phantom
44783 \begin_layout Plain Layout
44793 \begin_layout Plain Layout
44807 <cell alignment="left" valignment="top" usebox="none">
44810 \begin_layout Plain Layout
44814 \begin_layout Plain Layout
44827 \begin_layout Plain Layout
44835 \begin_inset Phantom Phantom
44838 \begin_layout Plain Layout
44848 \begin_layout Plain Layout
44860 <cell alignment="left" valignment="top" usebox="none">
44863 \begin_layout Plain Layout
44867 \begin_layout Plain Layout
44880 \begin_layout Plain Layout
44888 \begin_inset Phantom Phantom
44891 \begin_layout Plain Layout
44901 \begin_layout Plain Layout
44913 <cell alignment="left" valignment="top" usebox="none">
44916 \begin_layout Plain Layout
44920 \begin_layout Plain Layout
44933 \begin_layout Plain Layout
44941 \begin_inset Phantom Phantom
44944 \begin_layout Plain Layout
44954 \begin_layout Plain Layout
44966 <cell alignment="left" valignment="top" usebox="none">
44969 \begin_layout Plain Layout
44973 \begin_layout Plain Layout
44986 \begin_layout Plain Layout
44994 \begin_inset Phantom Phantom
44997 \begin_layout Plain Layout
45007 \begin_layout Plain Layout
45021 <cell alignment="left" valignment="top" usebox="none">
45024 \begin_layout Plain Layout
45028 \begin_layout Plain Layout
45041 \begin_layout Plain Layout
45049 \begin_inset Phantom Phantom
45052 \begin_layout Plain Layout
45062 \begin_layout Plain Layout
45074 <cell alignment="left" valignment="top" usebox="none">
45077 \begin_layout Plain Layout
45081 \begin_layout Plain Layout
45094 \begin_layout Plain Layout
45102 \begin_inset Phantom Phantom
45105 \begin_layout Plain Layout
45115 \begin_layout Plain Layout
45127 <cell alignment="left" valignment="top" usebox="none">
45130 \begin_layout Plain Layout
45134 \begin_layout Plain Layout
45147 \begin_layout Plain Layout
45155 \begin_inset Phantom Phantom
45158 \begin_layout Plain Layout
45168 \begin_layout Plain Layout
45180 <cell alignment="left" valignment="top" usebox="none">
45183 \begin_layout Plain Layout
45187 \begin_layout Plain Layout
45200 \begin_layout Plain Layout
45208 \begin_inset Phantom Phantom
45211 \begin_layout Plain Layout
45221 \begin_layout Plain Layout
45235 <cell alignment="left" valignment="top" usebox="none">
45238 \begin_layout Plain Layout
45242 \begin_layout Plain Layout
45255 \begin_layout Plain Layout
45263 \begin_inset Phantom Phantom
45266 \begin_layout Plain Layout
45276 \begin_layout Plain Layout
45288 <cell alignment="left" valignment="top" usebox="none">
45291 \begin_layout Plain Layout
45295 \begin_layout Plain Layout
45308 \begin_layout Plain Layout
45316 \begin_inset Phantom Phantom
45319 \begin_layout Plain Layout
45329 \begin_layout Plain Layout
45341 <cell alignment="left" valignment="top" usebox="none">
45344 \begin_layout Plain Layout
45348 \begin_layout Plain Layout
45361 \begin_layout Plain Layout
45369 \begin_inset Phantom Phantom
45372 \begin_layout Plain Layout
45382 \begin_layout Plain Layout
45394 <cell alignment="left" valignment="top" usebox="none">
45397 \begin_layout Plain Layout
45401 \begin_layout Plain Layout
45414 \begin_layout Plain Layout
45422 \begin_inset Phantom Phantom
45425 \begin_layout Plain Layout
45435 \begin_layout Plain Layout
45449 <cell alignment="left" valignment="top" usebox="none">
45452 \begin_layout Plain Layout
45456 \begin_layout Plain Layout
45469 \begin_layout Plain Layout
45477 \begin_inset Phantom Phantom
45480 \begin_layout Plain Layout
45490 \begin_layout Plain Layout
45502 <cell alignment="left" valignment="top" usebox="none">
45505 \begin_layout Plain Layout
45509 \begin_layout Plain Layout
45522 \begin_layout Plain Layout
45530 \begin_inset Phantom Phantom
45533 \begin_layout Plain Layout
45543 \begin_layout Plain Layout
45555 <cell alignment="left" valignment="top" usebox="none">
45558 \begin_layout Plain Layout
45562 \begin_layout Plain Layout
45575 \begin_layout Plain Layout
45583 \begin_inset Phantom Phantom
45586 \begin_layout Plain Layout
45596 \begin_layout Plain Layout
45608 <cell alignment="left" valignment="top" usebox="none">
45611 \begin_layout Plain Layout
45615 \begin_layout Plain Layout
45628 \begin_layout Plain Layout
45636 \begin_inset Phantom Phantom
45639 \begin_layout Plain Layout
45649 \begin_layout Plain Layout
45663 <cell alignment="left" valignment="top" usebox="none">
45666 \begin_layout Plain Layout
45670 \begin_layout Plain Layout
45683 \begin_layout Plain Layout
45691 \begin_inset Phantom Phantom
45694 \begin_layout Plain Layout
45704 \begin_layout Plain Layout
45716 <cell alignment="left" valignment="top" usebox="none">
45719 \begin_layout Plain Layout
45723 \begin_layout Plain Layout
45736 \begin_layout Plain Layout
45744 \begin_inset Phantom Phantom
45747 \begin_layout Plain Layout
45757 \begin_layout Plain Layout
45769 <cell alignment="left" valignment="top" usebox="none">
45772 \begin_layout Plain Layout
45776 \begin_layout Plain Layout
45789 \begin_layout Plain Layout
45797 \begin_inset Phantom Phantom
45800 \begin_layout Plain Layout
45810 \begin_layout Plain Layout
45822 <cell alignment="left" valignment="top" usebox="none">
45825 \begin_layout Plain Layout
45829 \begin_layout Plain Layout
45842 \begin_layout Plain Layout
45850 \begin_inset Phantom Phantom
45853 \begin_layout Plain Layout
45863 \begin_layout Plain Layout
45877 <cell alignment="left" valignment="top" usebox="none">
45880 \begin_layout Plain Layout
45884 \begin_layout Plain Layout
45897 \begin_layout Plain Layout
45905 \begin_inset Phantom Phantom
45908 \begin_layout Plain Layout
45918 \begin_layout Plain Layout
45930 <cell alignment="left" valignment="top" usebox="none">
45933 \begin_layout Plain Layout
45937 \begin_layout Plain Layout
45950 \begin_layout Plain Layout
45958 \begin_inset Phantom Phantom
45961 \begin_layout Plain Layout
45971 \begin_layout Plain Layout
45983 <cell alignment="left" valignment="top" usebox="none">
45986 \begin_layout Plain Layout
45990 \begin_layout Plain Layout
46003 \begin_layout Plain Layout
46011 \begin_inset Phantom Phantom
46014 \begin_layout Plain Layout
46024 \begin_layout Plain Layout
46036 <cell alignment="left" valignment="top" usebox="none">
46039 \begin_layout Plain Layout
46043 \begin_layout Plain Layout
46056 \begin_layout Plain Layout
46064 \begin_inset Phantom Phantom
46067 \begin_layout Plain Layout
46077 \begin_layout Plain Layout
46091 <cell alignment="left" valignment="top" usebox="none">
46094 \begin_layout Plain Layout
46098 \begin_layout Plain Layout
46111 \begin_layout Plain Layout
46119 \begin_inset Phantom Phantom
46122 \begin_layout Plain Layout
46132 \begin_layout Plain Layout
46144 <cell alignment="left" valignment="top" usebox="none">
46147 \begin_layout Plain Layout
46151 \begin_layout Plain Layout
46164 \begin_layout Plain Layout
46172 \begin_inset Phantom Phantom
46175 \begin_layout Plain Layout
46185 \begin_layout Plain Layout
46197 <cell alignment="left" valignment="top" usebox="none">
46200 \begin_layout Plain Layout
46204 \begin_layout Plain Layout
46217 \begin_layout Plain Layout
46225 \begin_inset Phantom Phantom
46228 \begin_layout Plain Layout
46238 \begin_layout Plain Layout
46250 <cell alignment="left" valignment="top" usebox="none">
46253 \begin_layout Plain Layout
46257 \begin_layout Plain Layout
46270 \begin_layout Plain Layout
46278 \begin_inset Phantom Phantom
46281 \begin_layout Plain Layout
46291 \begin_layout Plain Layout
46305 <cell alignment="left" valignment="top" usebox="none">
46308 \begin_layout Plain Layout
46312 \begin_layout Plain Layout
46325 \begin_layout Plain Layout
46333 \begin_inset Phantom Phantom
46336 \begin_layout Plain Layout
46346 \begin_layout Plain Layout
46358 <cell alignment="left" valignment="top" usebox="none">
46361 \begin_layout Plain Layout
46367 <cell alignment="left" valignment="top" usebox="none">
46370 \begin_layout Plain Layout
46376 <cell alignment="left" valignment="top" usebox="none">
46379 \begin_layout Plain Layout
46393 \begin_layout Chapter
46394 Explanation of Equation
46395 \begin_inset space ~
46399 \begin_inset CommandInset ref
46406 \begin_inset CommandInset label
46408 name "cha:Explanation-of-Equation"
46415 \begin_layout Standard
46416 We can calculate the total width of
46421 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46425 \begin_inset Formula
46427 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46433 \begin_inset Formula $W_{g\,n}$
46436 is the given width of all cells,
46442 is the \SpecialChar LaTeX
46443 -length between the cell text and the cell border (its default value
46445 \begin_inset space \thinspace{}
46455 is the thickness of the cell border line, the default is 0.4
46456 \begin_inset space \thinspace{}
46462 \begin_layout Standard
46464 \begin_inset space ~
46468 \begin_inset CommandInset ref
46470 reference "eq:Wtot_n"
46474 , the total width of a multicolumn
46475 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46479 \begin_inset Formula
46481 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46489 \begin_layout Standard
46490 By setting equation
46491 \begin_inset space ~
46495 \begin_inset CommandInset ref
46497 reference "eq:Wtot_n"
46502 \begin_inset CommandInset ref
46504 reference "eq:Wtot_mult"
46508 equal we can calculate the needed given width
46509 \begin_inset Formula $W_{g\,n}$
46516 columns are spanned, so that each column has a total width of
46517 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46521 \begin_inset Formula
46523 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46531 \begin_layout Bibliography
46532 \begin_inset CommandInset bibitem
46533 LatexCommand bibitem
46534 key "latexcompanion"
46538 Frank Mittelbach and Michel Goossens:
46540 The \SpecialChar LaTeX
46541 Companion Second Edition.
46544 Addison-Wesley, 2004
46547 \begin_layout Bibliography
46548 \begin_inset CommandInset bibitem
46549 LatexCommand bibitem
46554 Helmut Kopka and Patrick W.
46557 A Guide to \SpecialChar LaTeX
46561 Addison-Wesley, 2003
46564 \begin_layout Bibliography
46565 \begin_inset CommandInset bibitem
46566 LatexCommand bibitem
46574 : A Document Preparation System.
46577 Addison-Wesley, second edition, 1994
46580 \begin_layout Bibliography
46581 \begin_inset CommandInset bibitem
46582 LatexCommand bibitem
46587 Documentation of the \SpecialChar LaTeX
46591 \begin_inset CommandInset href
46594 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46601 \begin_inset Index idx
46604 \begin_layout Plain Layout
46606 -packages ! arydshln
46614 \begin_layout Bibliography
46615 \begin_inset CommandInset bibitem
46616 LatexCommand bibitem
46621 Documentation of the \SpecialChar LaTeX
46625 \begin_inset CommandInset href
46628 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46635 \begin_inset Index idx
46638 \begin_layout Plain Layout
46640 -packages ! booktabs
46648 \begin_layout Bibliography
46649 \begin_inset CommandInset bibitem
46650 LatexCommand bibitem
46655 Documentation of the \SpecialChar LaTeX
46659 \begin_inset CommandInset href
46662 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46669 \begin_inset Index idx
46672 \begin_layout Plain Layout
46674 -packages ! caption
46682 \begin_layout Bibliography
46683 \begin_inset CommandInset bibitem
46684 LatexCommand bibitem
46689 Documentation of the \SpecialChar LaTeX
46693 \begin_inset CommandInset href
46696 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46703 \begin_inset Index idx
46706 \begin_layout Plain Layout
46708 -packages ! diagbox
46716 \begin_layout Bibliography
46717 \begin_inset CommandInset bibitem
46718 LatexCommand bibitem
46723 Documentation of the \SpecialChar LaTeX
46727 \begin_inset CommandInset href
46730 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46737 \begin_inset Index idx
46740 \begin_layout Plain Layout
46742 -packages ! endfloat
46750 \begin_layout Bibliography
46751 \begin_inset CommandInset bibitem
46752 LatexCommand bibitem
46757 Documentation of the \SpecialChar LaTeX
46761 \begin_inset CommandInset href
46764 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46771 \begin_inset Index idx
46774 \begin_layout Plain Layout
46776 -packages ! footmisc
46784 \begin_layout Bibliography
46785 \begin_inset CommandInset bibitem
46786 LatexCommand bibitem
46791 Documentation of the \SpecialChar LaTeX
46795 \begin_inset CommandInset href
46798 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46805 \begin_inset Index idx
46808 \begin_layout Plain Layout
46810 -packages ! hyperref
46818 \begin_layout Bibliography
46819 \begin_inset CommandInset bibitem
46820 LatexCommand bibitem
46825 Documentation of the \SpecialChar LaTeX
46829 \begin_inset CommandInset href
46832 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46839 \begin_inset Index idx
46842 \begin_layout Plain Layout
46844 -packages ! hyperref
46852 \begin_layout Bibliography
46853 \begin_inset CommandInset bibitem
46854 LatexCommand bibitem
46859 Documentation of the \SpecialChar LaTeX
46863 \begin_inset CommandInset href
46866 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46873 \begin_inset Index idx
46876 \begin_layout Plain Layout
46878 -packages ! KOMA-Script
46886 \begin_layout Bibliography
46887 \begin_inset CommandInset bibitem
46888 LatexCommand bibitem
46893 Documentation of the \SpecialChar LaTeX
46897 \begin_inset CommandInset href
46900 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46907 \begin_inset CommandInset href
46910 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46915 \begin_inset Index idx
46918 \begin_layout Plain Layout
46920 -packages ! lettrine
46928 \begin_layout Bibliography
46929 \begin_inset CommandInset bibitem
46930 LatexCommand bibitem
46935 Documentation of the \SpecialChar LaTeX
46939 \begin_inset CommandInset href
46942 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
46949 \begin_inset Index idx
46952 \begin_layout Plain Layout
46954 -packages ! listings
46962 \begin_layout Bibliography
46963 \begin_inset CommandInset bibitem
46964 LatexCommand bibitem
46969 Documentation of the \SpecialChar LaTeX
46973 \begin_inset CommandInset href
46976 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
46983 \begin_inset Index idx
46986 \begin_layout Plain Layout
46988 -packages ! marginnote
46996 \begin_layout Bibliography
46997 \begin_inset CommandInset bibitem
46998 LatexCommand bibitem
47003 Documentation of the \SpecialChar LaTeX
47007 \begin_inset CommandInset href
47010 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47017 \begin_inset Index idx
47020 \begin_layout Plain Layout
47022 -packages ! pdfpages
47030 \begin_layout Bibliography
47031 \begin_inset CommandInset bibitem
47032 LatexCommand bibitem
47037 Documentation of the \SpecialChar LaTeX
47041 \begin_inset CommandInset href
47044 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47051 \begin_inset Index idx
47054 \begin_layout Plain Layout
47056 -packages ! prettyref
47064 \begin_layout Bibliography
47065 \begin_inset CommandInset bibitem
47066 LatexCommand bibitem
47071 Web page of the \SpecialChar LaTeX
47075 \begin_inset CommandInset href
47078 target "http://tug.org/PSTricks/"
47085 \begin_inset Index idx
47088 \begin_layout Plain Layout
47090 -packages ! PSTricks
47098 \begin_layout Bibliography
47099 \begin_inset CommandInset bibitem
47100 LatexCommand bibitem
47105 Documentation of the \SpecialChar LaTeX
47109 \begin_inset CommandInset href
47112 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47119 \begin_inset Index idx
47122 \begin_layout Plain Layout
47124 -packages ! refstyle
47132 \begin_layout Bibliography
47133 \begin_inset CommandInset bibitem
47134 LatexCommand bibitem
47139 Documentation of the \SpecialChar LaTeX
47143 \begin_inset CommandInset href
47146 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47153 \begin_inset Index idx
47156 \begin_layout Plain Layout
47158 -packages ! sidecap
47166 \begin_layout Bibliography
47167 \begin_inset CommandInset bibitem
47168 LatexCommand bibitem
47174 \begin_inset CommandInset href
47177 target "http://wiki.lyx.org/LyX/NewInLyX20"
47181 about new features in
47189 \begin_layout Standard
47190 \begin_inset CommandInset index_print
47191 LatexCommand printindex