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 1483414742
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.z
26343 \begin_layout Standard
26348 will not print the page number if the label is on the previous, the same,
26351 \begin_inset space \thinspace{}
26355 \begin_inset space \space{}
26359 \begin_inset Quotes eld
26367 \begin_inset Quotes erd
26373 <reference> on page <page>
26375 will not print anything about the page if the label is on the same page.
26378 \begin_layout Standard
26379 The number and current page of the part of the document referred to in the
26380 output is automatically calculated by \SpecialChar LaTeX
26382 The varieties are adjusted in the field
26386 of the cross-reference window that appears when you click on the cross-referenc
26390 \begin_layout Standard
26391 \begin_inset Note Greyedout
26394 \begin_layout Plain Layout
26399 It is recommended to use the \SpecialChar LaTeX
26405 \begin_inset Index idx
26408 \begin_layout Plain Layout
26410 -packages ! refstyle
26420 \begin_inset Index idx
26423 \begin_layout Plain Layout
26425 -packages ! prettyref
26430 does not know all of \SpecialChar LyX
26431 's possible label shortcuts
26435 \begin_layout Plain Layout
26436 \begin_inset Quotes eld
26440 \begin_inset Quotes erd
26443 is for example \SpecialChar LyX
26444 's shortcut for labels in figure captions.
26449 and is not internationalized.
26457 \begin_layout Subsection
26458 Automatic Reference Naming
26459 \begin_inset Index idx
26462 \begin_layout Plain Layout
26463 References ! Automatic Reference Naming
26471 \begin_layout Standard
26472 The \SpecialChar LaTeX
26478 \begin_inset Index idx
26481 \begin_layout Plain Layout
26483 -packages ! hyperref
26488 , that is enabled in the
26496 dialog, provides a very useful feature that cross-references automatically
26497 include the name of the referenced floats (or text parts like
26502 So you will save having to write e.
26503 \begin_inset space \thinspace{}
26507 \begin_inset space \space{}
26511 \begin_inset Quotes eld
26515 \begin_inset Quotes erd
26518 before every reference to a figure.
26519 To use this feature, enable
26523 and insert this line to the \SpecialChar LaTeX
26527 \begin_layout Standard
26543 \begin_layout Standard
26544 When you prefer other reference names than the default ones, for example
26545 you want instead of
26546 \begin_inset Quotes eld
26550 \begin_inset Quotes erd
26554 \begin_inset Quotes eld
26558 \begin_inset space \thinspace{}
26562 \begin_inset Quotes eld
26565 , you can redefine the name by inserting this in the preamble:
26568 \begin_layout Standard
26579 sectionautorefname}
26580 \begin_inset Newline newline
26584 \begin_inset Phantom HPhantom
26587 \begin_layout Plain Layout
26590 \begin_inset space ~
26603 \begin_layout Standard
26604 When you are using another document language than English, replace
26605 \begin_inset Newline newline
26620 , where *** is the name of the language used.
26623 \begin_layout Standard
26624 To get automatic names, but not for certain reference types, for example
26625 not for equations, use this preamble code:
26628 \begin_layout Standard
26639 equationautorefname}[1]{}}
26642 \begin_layout Standard
26643 More about this topic can be found in
26648 \begin_inset CommandInset citation
26657 \begin_layout Standard
26658 \begin_inset Note Greyedout
26661 \begin_layout Plain Layout
26666 Automatic reference naming cannot be used when you use cross-references
26670 \begin_inset space ~
26675 style, as described in section
26676 \begin_inset space ~
26680 \begin_inset CommandInset ref
26682 reference "subsec:Cross-Reference-Formats"
26694 \begin_layout Standard
26699 manual is an example where automatic reference naming is used.
26702 \begin_layout Subsection
26704 \begin_inset CommandInset label
26706 name "subsec:Reference-Position"
26711 \begin_inset Index idx
26714 \begin_layout Plain Layout
26715 References ! Reference Position
26723 \begin_layout Standard
26729 \begin_inset Index idx
26732 \begin_layout Plain Layout
26734 -packages ! hyperref
26747 dialog to link cross-references in the output, you will see that clicking
26748 on an image float reference jumps to the image label.
26749 The caption will be the first text part on the screen, so that you cannot
26750 see the image without scrolling.
26751 This is because the reference link anchor is placed at the position of
26753 With the use of the package
26758 \begin_inset Index idx
26761 \begin_layout Plain Layout
26768 , which is part of the \SpecialChar LaTeX
26774 \begin_inset Index idx
26777 \begin_layout Plain Layout
26779 -packages ! oberdiek
26784 , the link anchor is placed at the beginning of a float.
26785 To use this feature for figure floats, load
26789 in the document preamble with the line
26792 \begin_layout Standard
26797 usepackage[figure]{hypcap}
26800 \begin_layout Standard
26805 for all float types but this is not recommended for stability reasons.
26806 For more information, have a look at
26811 \begin_inset CommandInset citation
26820 \begin_layout Standard
26821 \begin_inset Note Greyedout
26824 \begin_layout Plain Layout
26833 has no effect on references to subfigures.
26841 \begin_layout Section
26843 \begin_inset CommandInset label
26845 name "sec:Float-Placement"
26850 \begin_inset Index idx
26853 \begin_layout Plain Layout
26862 \begin_layout Standard
26863 Right-clicking on a float-box and clicking on
26867 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26869 positioning the float.
26870 \begin_inset Newline newline
26876 \begin_inset space ~
26881 is only useful for two-column documents: If you select it, the float will
26882 span both columns on the page instead of being confined to just one.
26883 \begin_inset Newline newline
26889 \begin_inset space ~
26894 is used to rotate floats, see section
26895 \begin_inset CommandInset ref
26897 reference "sec:Rotated-Floats"
26904 \begin_layout Standard
26905 You can use one or more of the following options in the float dialog to
26906 set the placement for a particular float when you uncheck the option
26909 \begin_inset space ~
26913 \begin_inset space ~
26921 \begin_layout Description
26923 \begin_inset space ~
26927 \begin_inset space ~
26930 possible try to place the float on the position where it has been inserted
26933 \begin_layout Description
26935 \begin_inset space ~
26939 \begin_inset space ~
26942 page try to place the float at the top of the current page
26945 \begin_layout Description
26947 \begin_inset space ~
26951 \begin_inset space ~
26954 page try to place the float at the bottom of the current page
26957 \begin_layout Description
26959 \begin_inset space ~
26963 \begin_inset space ~
26966 floats try to place the float on its own page
26969 \begin_layout Standard
26970 The order of the above option is
26974 used by \SpecialChar LaTeX
26976 That means, if you use the default placement, \SpecialChar LaTeX
26980 \begin_inset space ~
26984 \begin_inset space ~
26992 \begin_inset space ~
26996 \begin_inset space ~
27001 , and then the others.
27002 If you do not use the default, \SpecialChar LaTeX
27003 will try only the checked options but in
27006 \begin_inset space ~
27009 placements is possible the procedure is internally repeated trying to put
27010 the float on the following page.
27013 \begin_layout Standard
27014 By default, each option has its own rules:
27017 \begin_layout Labeling
27018 \labelwidthstring 00.00.0000
27022 \begin_inset space ~
27026 \begin_inset space ~
27031 only floats occupying less than 70
27032 \begin_inset space \thinspace{}
27035 % of the page can be placed at the top of a page (
27044 \begin_layout Labeling
27045 \labelwidthstring 00.00.0000
27049 \begin_inset space ~
27053 \begin_inset space ~
27058 : only floats occupying less than 30
27059 \begin_inset space \thinspace{}
27062 % of the page can be placed at the bottom of a page.
27072 \begin_layout Labeling
27073 \labelwidthstring 00.00.0000
27077 \begin_inset space ~
27081 \begin_inset space ~
27086 : only if more than 50
27087 \begin_inset space \thinspace{}
27090 % of the page is occupied by floats, several floats can be set together
27101 \begin_layout Standard
27102 If you don't like these rules, you can ignore them by using the additional
27106 \begin_inset space ~
27111 \begin_inset space ~
27117 \begin_inset Newline newline
27120 You can also redefine the rules with \SpecialChar LaTeX
27121 -commands that are given in parentheses
27122 after the rules description above.
27123 To increase for example the often too small default of the bottom-rule
27125 \begin_inset space \thinspace{}
27128 % of the page, add this line to your document preamble:
27131 \begin_layout Standard
27138 bottomfraction}{0.5}
27141 \begin_layout Standard
27142 Sometimes you might need, under all circumstances, a float to be placed
27143 exactly at the position where it is inserted.
27144 For this case you can use the option
27147 \begin_inset space ~
27153 Use this option very rarely and only if the document is almost ready to
27154 be printed, because the float is then no longer able to
27155 \begin_inset Quotes eld
27159 \begin_inset Quotes erd
27162 when you change your document and this will often destroy the page layout.
27165 \begin_layout Standard
27166 There are no placement options for text wrap floats, because they are always
27167 surrounded by the text of a certain paragraph.
27168 \begin_inset VSpace bigskip
27174 \begin_layout Standard
27175 Sometimes you have the problem that a float is placed at the top of a page
27176 while its corresponding section starts at the middle of the page, so that
27177 the reader could think the float is part of the previous section.
27178 To avoid this the \SpecialChar LaTeX
27186 It suppresses a given float placement for the page where it is inserted
27187 and can therefore be used to avoid floats being set before a section starts.
27188 To get this, add these commands to your document preamble:
27191 \begin_layout Standard
27201 \begin_inset Newline newline
27215 \begin_layout Standard
27216 You can define the same for all section headings, like chapters and subsections.
27217 This definition is not recommended to be used for small text parts like
27218 subsubsections because \SpecialChar LaTeX
27219 may then have problems finding a suitable placement.
27222 \begin_layout Standard
27223 \begin_inset VSpace bigskip
27226 In some cases it is required to have all figures/tables at the end of the
27228 For this purpose the \SpecialChar LaTeX
27234 \begin_inset Index idx
27237 \begin_layout Plain Layout
27239 -packages ! endfloat
27245 It puts all figure and table floats at the end of the document into their
27247 At the original float position a text hint like
27248 \begin_inset Quotes eld
27254 \begin_inset space ~
27260 \begin_inset Quotes erd
27264 The endfloat-package is loaded in the preamble with the line
27267 \begin_layout Standard
27272 usepackage[options]{endfloat}
27275 \begin_layout Standard
27276 There are various package options to format the created figure/table sections.
27277 For more information we refer you to the
27282 \begin_inset CommandInset citation
27289 \begin_inset Newline newline
27293 \begin_inset Note Greyedout
27296 \begin_layout Plain Layout
27301 doesn't provide an automatic translation for the text hint, you have to
27302 do this manually, see section
27303 \begin_inset space ~
27307 \begin_inset CommandInset citation
27319 \begin_inset Newline newline
27323 \begin_inset Note Greyedout
27326 \begin_layout Plain Layout
27331 There is currently a bug in
27335 when the caption contains a German
27336 \begin_inset Quotes eld
27340 \begin_inset Quotes erd
27344 Use in this case the command
27345 \begin_inset Quotes eld
27355 \begin_inset Quotes erd
27358 in \SpecialChar TeX
27360 \begin_inset Quotes eld
27364 \begin_inset Quotes erd
27375 \begin_layout Standard
27376 \begin_inset VSpace bigskip
27379 For more details about float placements, have a look at \SpecialChar LaTeX
27381 \begin_inset CommandInset citation
27383 key "latexcompanion,latexguide,latexbook"
27390 \begin_layout Section
27392 \begin_inset CommandInset label
27394 name "sec:Rotated-Floats"
27399 \begin_inset Index idx
27402 \begin_layout Plain Layout
27411 \begin_layout Standard
27412 Especially for wide tables you might have floats rotated.
27413 To rotate a whole float including the caption, right-click on the float-box
27417 \begin_inset space ~
27425 \begin_layout Standard
27426 Rotated floats are always placed on a page of their own (or column of their
27427 own; in case you have a multi-column document).
27428 You can let them span several columns using the float settings option
27431 \begin_inset space ~
27437 Floats are rotated so that you can read them from the outside margin.
27438 To force a certain rotation direction for all pages, you can add either
27447 to the document class options.
27450 \begin_layout Standard
27451 Referencing rotated floats is the same as for normal floats, the caption
27452 format is also the same: Table
27453 \begin_inset space ~
27457 \begin_inset CommandInset ref
27459 reference "tab:Rotated-table"
27463 is an example of a rotated table float.
27466 \begin_layout Standard
27467 \begin_inset Note Greyedout
27470 \begin_layout Plain Layout
27475 Not all DVI-viewers are able to display rotated floats.
27483 \begin_layout Standard
27484 \begin_inset Float table
27489 \begin_layout Plain Layout
27490 \begin_inset Caption Standard
27492 \begin_layout Plain Layout
27493 \begin_inset CommandInset label
27495 name "tab:Rotated-table"
27507 \begin_layout Plain Layout
27509 \begin_inset Tabular
27510 <lyxtabular version="3" rows="1" columns="5">
27511 <features tabularvalignment="middle">
27512 <column alignment="center" valignment="top">
27513 <column alignment="center" valignment="top">
27514 <column alignment="center" valignment="top">
27515 <column alignment="center" valignment="top">
27516 <column alignment="center" valignment="top">
27518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27521 \begin_layout Plain Layout
27527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27530 \begin_layout Plain Layout
27536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27539 \begin_layout Plain Layout
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" rightline="true" usebox="none">
27557 \begin_layout Plain Layout
27576 \begin_layout Section
27578 \begin_inset Index idx
27581 \begin_layout Plain Layout
27590 \begin_layout Standard
27591 Subfloats are for example used when a figure consists of several images.
27592 They are created by inserting a float into an existing float.
27593 The placement of the subfloats can be controlled in the same way as for
27594 paragraphs as shown in table
27595 \begin_inset space ~
27599 \begin_inset CommandInset ref
27601 reference "tab:Two-subtables-side"
27606 \begin_inset CommandInset ref
27608 reference "tab:Two-subtables-upon"
27615 \begin_layout Standard
27616 Referencing subfloats works as for normal floats: Table
27617 \begin_inset space ~
27621 \begin_inset CommandInset ref
27623 reference "tab:This-is-subtable-a"
27628 \begin_inset CommandInset ref
27630 reference "tab:This-is-subtable-b"
27634 are subtables of table
27635 \begin_inset space ~
27639 \begin_inset CommandInset ref
27641 reference "tab:Two-subtables-side"
27648 \begin_layout Standard
27649 \begin_inset Float table
27654 \begin_layout Plain Layout
27655 \begin_inset Caption Standard
27657 \begin_layout Plain Layout
27658 \begin_inset CommandInset label
27660 name "tab:Two-subtables-side"
27664 Two subtables placed side by side.
27672 \begin_layout Plain Layout
27674 \begin_inset space \hfill{}
27678 \begin_inset Float table
27683 \begin_layout Plain Layout
27684 \begin_inset Caption Standard
27686 \begin_layout Plain Layout
27687 \begin_inset CommandInset label
27689 name "tab:This-is-subtable-a"
27693 This is subtable a.
27701 \begin_layout Plain Layout
27703 \begin_inset Tabular
27704 <lyxtabular version="3" rows="1" columns="5">
27705 <features tabularvalignment="middle">
27706 <column alignment="center" valignment="top">
27707 <column alignment="center" valignment="top">
27708 <column alignment="center" valignment="top">
27709 <column alignment="center" valignment="top">
27710 <column alignment="center" valignment="top">
27712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27715 \begin_layout Plain Layout
27721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27724 \begin_layout Plain Layout
27730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27733 \begin_layout Plain Layout
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" rightline="true" usebox="none">
27751 \begin_layout Plain Layout
27768 \begin_inset space \hfill{}
27772 \begin_inset Float table
27777 \begin_layout Plain Layout
27778 \begin_inset Caption Standard
27780 \begin_layout Plain Layout
27781 \begin_inset CommandInset label
27783 name "tab:This-is-subtable-b"
27787 This is subtable b.
27795 \begin_layout Plain Layout
27797 \begin_inset Tabular
27798 <lyxtabular version="3" rows="1" columns="5">
27799 <features tabularvalignment="middle">
27800 <column alignment="center" valignment="top">
27801 <column alignment="center" valignment="top">
27802 <column alignment="center" valignment="top">
27803 <column alignment="center" valignment="top">
27804 <column alignment="center" valignment="top">
27806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27809 \begin_layout Plain Layout
27815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27818 \begin_layout Plain Layout
27824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27827 \begin_layout Plain Layout
27833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27836 \begin_layout Plain Layout
27842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27845 \begin_layout Plain Layout
27862 \begin_inset space \hfill{}
27873 \begin_layout Standard
27874 \begin_inset Float table
27879 \begin_layout Plain Layout
27880 \begin_inset Caption Standard
27882 \begin_layout Plain Layout
27883 \begin_inset CommandInset label
27885 name "tab:Two-subtables-upon"
27889 Two subtables placed one above the other.
27890 (a) table with 4 cells, (b) table with 5 cells.
27898 \begin_layout Plain Layout
27900 \begin_inset Float table
27905 \begin_layout Plain Layout
27906 \begin_inset Caption Standard
27908 \begin_layout Plain Layout
27917 \begin_layout Plain Layout
27919 \begin_inset Tabular
27920 <lyxtabular version="3" rows="1" columns="4">
27921 <features tabularvalignment="middle">
27922 <column alignment="center" valignment="top">
27923 <column alignment="center" valignment="top">
27924 <column alignment="center" valignment="top">
27925 <column alignment="center" valignment="top">
27927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27930 \begin_layout Plain Layout
27936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27939 \begin_layout Plain Layout
27945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27948 \begin_layout Plain Layout
27954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27957 \begin_layout Plain Layout
27976 \begin_layout Plain Layout
27978 \begin_inset Float table
27983 \begin_layout Plain Layout
27984 \begin_inset Caption Standard
27986 \begin_layout Plain Layout
27995 \begin_layout Plain Layout
27997 \begin_inset Tabular
27998 <lyxtabular version="3" rows="1" columns="5">
27999 <features tabularvalignment="middle">
28000 <column alignment="center" valignment="top">
28001 <column alignment="center" valignment="top">
28002 <column alignment="center" valignment="top">
28003 <column alignment="center" valignment="top">
28004 <column alignment="center" valignment="top">
28006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28009 \begin_layout Plain Layout
28015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28018 \begin_layout Plain Layout
28024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28027 \begin_layout Plain Layout
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" rightline="true" usebox="none">
28045 \begin_layout Plain Layout
28069 \begin_layout Section
28070 Floats Side by Side
28071 \begin_inset Index idx
28074 \begin_layout Plain Layout
28075 Floats ! Side by side
28083 \begin_layout Standard
28084 To place floats side by side, as in Figures
28085 \begin_inset space ~
28089 \begin_inset CommandInset ref
28091 reference "fig:Float-left"
28096 \begin_inset CommandInset ref
28098 reference "fig:Float-right"
28107 In it two minipage boxes are inserted.
28111 \begin_layout Plain Layout
28112 Minipages are explained in section
28113 \begin_inset space ~
28117 \begin_inset CommandInset ref
28119 reference "sec:Minipages"
28128 The width is set to 45
28129 \begin_inset space \thinspace{}
28133 \begin_inset space \thinspace{}
28136 column% and the box alignment to
28141 The minipage boxes contain the image and the caption in the same way as
28142 they are in a float.
28143 The only difference is that the image unit
28146 \begin_inset space ~
28150 \begin_inset space ~
28155 is now calculated according to the width of the minipage boxes.
28158 \begin_layout Standard
28159 \begin_inset Float figure
28164 \begin_layout Plain Layout
28165 \begin_inset Box Frameless
28175 height_special "totalheight"
28180 backgroundcolor "none"
28183 \begin_layout Plain Layout
28185 \begin_inset Graphics
28186 filename clipart/mobius.eps
28189 scaleBeforeRotation
28196 \begin_layout Plain Layout
28197 \begin_inset Caption Standard
28199 \begin_layout Plain Layout
28200 \begin_inset CommandInset label
28202 name "fig:Float-left"
28206 Float on the left side.
28217 \begin_inset space \hfill{}
28221 \begin_inset Box Frameless
28231 height_special "totalheight"
28236 backgroundcolor "none"
28239 \begin_layout Plain Layout
28241 \begin_inset Graphics
28242 filename clipart/platypus.eps
28245 scaleBeforeRotation
28252 \begin_layout Plain Layout
28253 \begin_inset Caption Standard
28255 \begin_layout Plain Layout
28256 \begin_inset CommandInset label
28258 name "fig:Float-right"
28262 Float on the right side.
28280 \begin_layout Standard
28281 An alternative and simpler solution is to use the module
28283 Variable-width Minipages
28286 \begin_inset space \thinspace{}
28290 \begin_inset CommandInset ref
28292 reference "sec:Minipages"
28297 Variable-width minipages adapt automatically to the width of the figures
28299 They do not require an explicit width to be given, and they improve the
28300 horizontal alignment of the figures.
28301 The LyX example file
28303 varwidth-floats-side-by-side
28305 gives examples of how to do this.
28308 \begin_layout Section
28310 \begin_inset Index idx
28313 \begin_layout Plain Layout
28314 Caption ! Formatting
28320 \begin_inset Index idx
28323 \begin_layout Plain Layout
28324 Floats ! Caption Formatting
28330 \begin_inset CommandInset label
28332 name "sec:Caption-Formatting"
28339 \begin_layout Standard
28344 environment is the default paragraph environment for
28349 On the \SpecialChar LyX
28350 screen captions appear as a label, e.
28351 \begin_inset space \thinspace{}
28355 \begin_inset space \space{}
28359 \begin_inset Quotes eld
28367 \begin_inset Quotes erd
28370 followed by the caption text.
28372 \begin_inset Quotes eld
28376 \begin_inset Quotes erd
28379 is the actual reference number.
28380 By default the label and the number are in the same font as the caption
28381 text and a colon follows the number to divide the label from the text.
28382 This caption format is suitable for many but not all documents.
28386 \begin_layout Standard
28387 To change the default caption format, load the \SpecialChar LaTeX
28393 \begin_inset Index idx
28396 \begin_layout Plain Layout
28398 -packages ! caption
28403 in the document preamble with this line:
28406 \begin_layout Standard
28411 usepackage[format definition]{caption}
28414 \begin_layout Standard
28415 To have for example the label and the number in sans-serif, bold font and
28416 the table captions always above the table as in this document, use the
28420 \begin_layout Standard
28425 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28428 \begin_layout Standard
28429 You can also define different caption formats for the different float types.
28430 In this case load the
28434 package without format specific options and define the different formats
28435 with the help of the command
28438 \begin_layout Standard
28443 captionsetup[float type]{format definition}
28446 \begin_layout Standard
28447 in the document preamble.
28448 For example the caption formats of Figure
28449 \begin_inset space ~
28453 \begin_inset CommandInset ref
28455 reference "fig:This-is-an-fig"
28460 \begin_inset space ~
28464 \begin_inset CommandInset ref
28466 reference "tab:This-is-an-tab"
28470 can be created using these commands in the document preamble:
28473 \begin_layout Standard
28478 usepackage[tableposition=top]{caption}
28481 \begin_inset Newline newline
28488 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28489 \begin_inset Newline newline
28493 \begin_inset Phantom HPhantom
28496 \begin_layout Plain Layout
28501 captionsetup[figure]{
28507 \begin_inset Newline newline
28512 captionsetup[table]{labelfont={bf,sf}}
28515 \begin_layout Standard
28516 \begin_inset Note Greyedout
28519 \begin_layout Plain Layout
28528 has no effect when a
28533 \begin_inset Index idx
28536 \begin_layout Plain Layout
28538 -packages ! KOMA-Script
28543 document class is used.
28544 In this case the document class option
28546 captions=tableheading
28556 \begin_layout Standard
28557 For more information about the package
28561 we refer to its documentation
28562 \begin_inset CommandInset citation
28571 \begin_layout Standard
28572 To change the label name from e.
28573 \begin_inset space \thinspace{}
28577 \begin_inset space \space{}
28581 \begin_inset Quotes eld
28585 \begin_inset Quotes erd
28589 \begin_inset Quotes eld
28593 \begin_inset Quotes erd
28596 use this preamble command:
28599 \begin_layout Standard
28606 fnum@figure}{Image~
28611 \begin_layout Standard
28618 inserts the figure number and
28621 \begin_inset Quotes eld
28627 \begin_inset Quotes erd
28630 creates a protected space.
28633 \begin_layout Standard
28634 \begin_inset VSpace bigskip
28642 \begin_inset Index idx
28645 \begin_layout Plain Layout
28647 -packages ! KOMA-Script
28654 article (KOMA-Script)
28662 letter (KOMA-Script)
28666 report (KOMA-Script)
28669 \begin_inset space \thinspace{}
28672 ), you can alternatively to the
28680 's built-in command
28687 For example, to have the caption label in bold, add this command to your
28691 \begin_layout Standard
28696 setkomafont{captionlabel}{
28701 \begin_layout Standard
28702 For more information about
28713 \begin_inset CommandInset citation
28722 \begin_layout Standard
28726 \begin_layout Plain Layout
28730 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28737 \begin_inset Note Note
28740 \begin_layout Plain Layout
28741 The caption format is changed only for this example.
28749 \begin_layout Standard
28750 \begin_inset Float figure
28756 \begin_layout Plain Layout
28758 \begin_inset Graphics
28759 filename clipart/mobius.eps
28762 scaleBeforeRotation
28769 \begin_layout Plain Layout
28770 \begin_inset Caption Standard
28772 \begin_layout Plain Layout
28773 \begin_inset CommandInset label
28775 name "fig:This-is-an-fig"
28779 This is an example figure caption that is longer than one line to show the
28780 different caption format.
28781 Here a self-defined caption format is used.
28794 \begin_layout Standard
28798 \begin_layout Plain Layout
28802 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28811 \begin_layout Standard
28812 \begin_inset Float table
28818 \begin_layout Plain Layout
28819 \begin_inset Caption Standard
28821 \begin_layout Plain Layout
28822 \begin_inset CommandInset label
28824 name "tab:This-is-an-tab"
28828 This is an example table caption that is longer than one line to show the
28829 different caption format.
28830 Here the standard caption format for tables in this document is used.
28838 \begin_layout Plain Layout
28840 \begin_inset Tabular
28841 <lyxtabular version="3" rows="1" columns="5">
28842 <features tabularvalignment="middle">
28843 <column alignment="center" valignment="top">
28844 <column alignment="center" valignment="top">
28845 <column alignment="center" valignment="top">
28846 <column alignment="center" valignment="top">
28847 <column alignment="center" valignment="top">
28849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28852 \begin_layout Plain Layout
28858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28861 \begin_layout Plain Layout
28867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28870 \begin_layout Plain Layout
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" rightline="true" usebox="none">
28888 \begin_layout Plain Layout
28907 \begin_layout Section
28909 \begin_inset Index idx
28912 \begin_layout Plain Layout
28913 Caption ! Placement
28919 \begin_inset Index idx
28922 \begin_layout Plain Layout
28923 Floats ! Caption Placement
28929 \begin_inset CommandInset label
28931 name "sec:Caption-Placement"
28938 \begin_layout Standard
28939 The common caption placement rule is:
28942 \begin_layout Description
28943 Figure: Caption is set below the figure
28946 \begin_layout Description
28947 Table: Caption is set above the table
28950 \begin_layout Standard
28951 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
28954 That means if you are using the document classes
28970 there will be no space between the caption and the table.
28971 To insert the necessary space, load the \SpecialChar LaTeX
28977 \begin_inset Index idx
28980 \begin_layout Plain Layout
28982 -packages ! caption
28987 in your document preamble with the option
28991 \begin_layout Plain Layout
28993 \begin_inset space ~
28997 \begin_inset CommandInset ref
28999 reference "sec:Caption-Formatting"
29003 for more information of the package
29015 \begin_layout Standard
29021 \begin_layout Standard
29027 \begin_inset Index idx
29030 \begin_layout Plain Layout
29032 -packages ! KOMA-Script
29039 article (KOMA-Script)
29047 letter (KOMA-Script)
29051 report (KOMA-Script)
29054 \begin_inset space \thinspace{}
29057 ), you can alternatively to the
29061 package set the document class option
29065 \begin_layout Plain Layout
29066 That option is used in this document.
29074 \begin_layout Standard
29077 captions=tableheading
29080 \begin_layout Standard
29081 In documents with a KOMA-Script document class you can also right-click
29082 on a caption and mark in the context menu if this should be a caption above
29083 or below the table/figure.
29084 This way you can override the document-wide caption placement for certain
29087 \begin_inset space ~
29091 \begin_inset CommandInset ref
29093 reference "tab:A-caption-marked"
29097 is an example where the caption is marked a being below the table while
29099 For comparison the caption in Table
29100 \begin_inset space ~
29104 \begin_inset CommandInset ref
29106 reference "tab:A-standard-table"
29113 \begin_layout Standard
29114 \begin_inset Float table
29119 \begin_layout Plain Layout
29120 \begin_inset Caption Below
29122 \begin_layout Plain Layout
29123 \begin_inset CommandInset label
29125 name "tab:A-caption-marked"
29129 A caption marked as being below the table.
29137 \begin_layout Plain Layout
29139 \begin_inset Tabular
29140 <lyxtabular version="3" rows="3" columns="3">
29141 <features tabularvalignment="middle">
29142 <column alignment="center" valignment="top" width="0pt">
29143 <column alignment="center" valignment="top" width="0pt">
29144 <column alignment="center" valignment="top" width="0pt">
29146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29149 \begin_layout Plain Layout
29155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29158 \begin_layout Plain Layout
29164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29167 \begin_layout Plain Layout
29175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29178 \begin_layout Plain Layout
29184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29187 \begin_layout Plain Layout
29193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29196 \begin_layout Plain Layout
29204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29207 \begin_layout Plain Layout
29208 \begin_inset Formula $\int x^{2}dx$
29216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29219 \begin_layout Plain Layout
29220 \begin_inset Formula $\left[\begin{array}{cc}
29223 \end{array}\right]$
29231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29234 \begin_layout Plain Layout
29235 \begin_inset Formula $1+1=2$
29256 \begin_layout Standard
29257 \begin_inset Float table
29262 \begin_layout Plain Layout
29263 \begin_inset Caption Standard
29265 \begin_layout Plain Layout
29266 \begin_inset CommandInset label
29268 name "tab:A-standard-table"
29272 A standard table caption.
29280 \begin_layout Plain Layout
29282 \begin_inset Tabular
29283 <lyxtabular version="3" rows="3" columns="3">
29284 <features tabularvalignment="middle">
29285 <column alignment="center" valignment="top" width="0pt">
29286 <column alignment="center" valignment="top" width="0pt">
29287 <column alignment="center" valignment="top" width="0pt">
29289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29292 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29310 \begin_layout Plain Layout
29318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29321 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29339 \begin_layout Plain Layout
29347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29350 \begin_layout Plain Layout
29351 \begin_inset Formula $\int x^{2}dx$
29359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29362 \begin_layout Plain Layout
29363 \begin_inset Formula $\left[\begin{array}{cc}
29366 \end{array}\right]$
29374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29377 \begin_layout Plain Layout
29378 \begin_inset Formula $1+1=2$
29399 \begin_layout Standard
29400 \begin_inset VSpace bigskip
29403 It is also possible to set the caption beside a figure or table.
29404 To get this the \SpecialChar LaTeX
29410 \begin_inset Index idx
29413 \begin_layout Plain Layout
29415 -packages ! sidecap
29420 has to be loaded in the document preamble with the line
29423 \begin_layout Standard
29428 usepackage[option]{sidecap}
29431 \begin_layout Standard
29432 If you set no option, the caption is placed on the side of the outer page
29433 margin – to the right on odd pages, to the left on even pages.
29434 You can change the placement to inner margin with the option
29439 To force the placement always to the right or left, use the option
29450 \begin_layout Standard
29454 \begin_layout Plain Layout
29464 \begin_inset Note Note
29467 \begin_layout Plain Layout
29468 The following section will only be displayed when the \SpecialChar LaTeX
29481 \begin_layout Standard
29482 To place in \SpecialChar LyX
29483 the caption of a float on the side, it is necessary to add
29484 these commands to the document preamble:
29487 \begin_layout Standard
29489 \begin_inset CommandInset line
29500 \begin_layout Standard
29507 TabBesBeg}[1][1.0]{%
29508 \begin_inset Newline newline
29512 \begin_inset Phantom HPhantom
29515 \begin_layout Plain Layout
29516 \begin_inset space ~
29531 \begin_inset Newline newline
29535 \begin_inset Phantom HPhantom
29538 \begin_layout Plain Layout
29541 \begin_inset space ~
29556 \begin_inset Newline newline
29560 \begin_inset Phantom HPhantom
29563 \begin_layout Plain Layout
29566 \begin_inset space ~
29576 renewenvironment{table}[1]{
29578 begin{SCtable}[#1]##1}{
29583 \begin_layout Standard
29591 \begin_inset Newline newline
29595 \begin_inset Phantom HPhantom
29598 \begin_layout Plain Layout
29599 \begin_inset space ~
29614 \begin_inset Newline newline
29618 \begin_inset Phantom HPhantom
29621 \begin_layout Plain Layout
29622 \begin_inset space ~
29639 \begin_layout Standard
29646 FigBesBeg}[1][1.0]{%
29647 \begin_inset Newline newline
29651 \begin_inset Phantom HPhantom
29654 \begin_layout Plain Layout
29655 \begin_inset space ~
29670 \begin_inset Newline newline
29674 \begin_inset Phantom HPhantom
29677 \begin_layout Plain Layout
29678 \begin_inset space ~
29693 \begin_inset Newline newline
29697 \begin_inset Phantom HPhantom
29700 \begin_layout Plain Layout
29701 \begin_inset space ~
29711 renewenvironment{figure}[1]{
29713 begin{SCfigure}[#1]##1}{
29718 \begin_layout Standard
29726 \begin_inset Newline newline
29730 \begin_inset Phantom HPhantom
29733 \begin_layout Plain Layout
29734 \begin_inset space ~
29749 \begin_inset Newline newline
29753 \begin_inset Phantom HPhantom
29756 \begin_layout Plain Layout
29757 \begin_inset space ~
29774 \begin_layout Standard
29776 \begin_inset CommandInset line
29787 \begin_layout Standard
29788 The commands allow you to redefine the floats so that the caption is set
29790 For figure floats use the command
29793 \begin_layout Standard
29801 \begin_layout Standard
29802 in \SpecialChar TeX
29803 Code before the float.
29804 And insert the command
29807 \begin_layout Standard
29815 \begin_layout Standard
29816 in \SpecialChar TeX
29817 Code at the point where you want to get back to the original float definitio
29821 \begin_layout Standard
29822 For table floats use the corresponding commands
29825 \begin_layout Standard
29839 \begin_layout Standard
29841 \begin_inset space ~
29845 \begin_inset CommandInset ref
29847 reference "fig:cap-beside-fig"
29852 \begin_inset space ~
29856 \begin_inset CommandInset ref
29858 reference "tab:cap-beside-tab"
29862 are examples where the caption is set beside.
29865 \begin_layout Standard
29866 You can see in the examples that the caption text appears at the top of
29867 the floats for table floats and at the bottom for figure floats.
29868 To change this, you can use the command
29871 \begin_layout Standard
29876 sidecaptionvpos{float type}{placement}
29879 \begin_layout Standard
29880 in the document preamble or in \SpecialChar TeX
29881 Code before the float.
29882 The float type is either
29890 , the placement can be
29891 \begin_inset Quotes eld
29899 \begin_inset Quotes erd
29903 \begin_inset Quotes eld
29911 \begin_inset Quotes erd
29915 \begin_inset Quotes eld
29923 \begin_inset Quotes erd
29927 To have for example the caption of figure floats vertically centered, use
29931 \begin_layout Standard
29936 sidecaptionvpos{figure}{c}
29939 \begin_layout Standard
29940 This was used for Figure
29941 \begin_inset space ~
29945 \begin_inset CommandInset ref
29947 reference "fig:cap-beside-fig-2"
29954 \begin_layout Standard
29955 \begin_inset VSpace medskip
29961 \begin_layout Standard
29962 The default caption width is the width of the image/table.
29963 For thin image/tables, like in Table
29964 \begin_inset space ~
29968 \begin_inset CommandInset ref
29970 reference "tab:cap-beside-tab"
29974 , this leads to captions that are too thin.
29975 You can increase the width by specifying a factor that will be multiplied
29976 with the image/table width to get the caption width.
29977 The caption width will automatically be recalculated in case it would protrude
29978 over the page or column margin due to the specified width.
29983 can either be given as optional argument for
29992 \begin_layout Standard
30000 \begin_layout Standard
30001 or in the definition of
30011 with another value.
30012 If you do the latter, your factor will be the default if
30018 is used without an argument.
30020 \begin_inset space ~
30024 \begin_inset CommandInset ref
30026 reference "tab:cap-beside-tab-wider"
30030 the factor 5 was used.
30033 \begin_layout Standard
30034 \begin_inset Note Greyedout
30037 \begin_layout Plain Layout
30042 For floats with captions set beside, you cannot use the float placement
30046 \begin_inset space ~
30051 because it is not supported by
30063 \begin_layout Standard
30064 \begin_inset VSpace medskip
30067 For more information about the package
30071 we refer to its documentation
30072 \begin_inset CommandInset citation
30081 \begin_layout Standard
30082 \begin_inset Note Greyedout
30085 \begin_layout Plain Layout
30090 The \SpecialChar LaTeX
30096 \begin_inset Index idx
30099 \begin_layout Plain Layout
30106 , described in section
30107 \begin_inset space ~
30111 \begin_inset CommandInset ref
30113 reference "subsec:Reference-Position"
30117 , has no effect on floats with the caption set beside.
30125 \begin_layout Standard
30129 \begin_layout Plain Layout
30141 \begin_layout Standard
30142 \begin_inset Float figure
30147 \begin_layout Plain Layout
30148 \begin_inset Graphics
30149 filename clipart/escher-lsd.eps
30151 scaleBeforeRotation
30158 \begin_layout Plain Layout
30159 \begin_inset Caption Standard
30161 \begin_layout Plain Layout
30162 \begin_inset CommandInset label
30164 name "fig:cap-beside-fig"
30168 This is a caption beside a figure.
30181 \begin_layout Standard
30185 \begin_layout Plain Layout
30197 \begin_layout Standard
30201 \begin_layout Plain Layout
30213 \begin_layout Standard
30214 \begin_inset Float table
30219 \begin_layout Plain Layout
30220 \begin_inset Caption Standard
30222 \begin_layout Plain Layout
30223 \begin_inset CommandInset label
30225 name "tab:cap-beside-tab"
30229 This is a caption beside a table.
30237 \begin_layout Plain Layout
30238 \begin_inset Tabular
30239 <lyxtabular version="3" rows="4" columns="5">
30240 <features tabularvalignment="middle">
30241 <column alignment="center" valignment="top">
30242 <column alignment="center" valignment="top">
30243 <column alignment="center" valignment="top">
30244 <column alignment="center" valignment="top">
30245 <column alignment="center" valignment="top">
30247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30250 \begin_layout Plain Layout
30256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30259 \begin_layout Plain Layout
30265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30268 \begin_layout Plain Layout
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" rightline="true" usebox="none">
30286 \begin_layout Plain Layout
30294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30297 \begin_layout Plain Layout
30303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30306 \begin_layout Plain Layout
30312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30315 \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" rightline="true" usebox="none">
30333 \begin_layout Plain Layout
30341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30344 \begin_layout Plain Layout
30350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30353 \begin_layout Plain Layout
30359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30362 \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" rightline="true" usebox="none">
30380 \begin_layout Plain Layout
30388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30391 \begin_layout Plain Layout
30397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30400 \begin_layout Plain Layout
30406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30409 \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" rightline="true" usebox="none">
30427 \begin_layout Plain Layout
30446 \begin_layout Standard
30450 \begin_layout Plain Layout
30462 \begin_layout Standard
30466 \begin_layout Plain Layout
30479 \begin_layout Plain Layout
30483 sidecaptionvpos{figure}{c}
30489 \begin_inset Float figure
30494 \begin_layout Plain Layout
30495 \begin_inset Graphics
30496 filename clipart/escher-lsd.eps
30498 scaleBeforeRotation
30505 \begin_layout Plain Layout
30506 \begin_inset Caption Standard
30508 \begin_layout Plain Layout
30509 \begin_inset CommandInset label
30511 name "fig:cap-beside-fig-2"
30515 This is a vertically centered caption beside a figure.
30528 \begin_layout Standard
30532 \begin_layout Plain Layout
30544 \begin_layout Standard
30548 \begin_layout Plain Layout
30560 \begin_layout Standard
30561 \begin_inset Float table
30566 \begin_layout Plain Layout
30567 \begin_inset Caption Standard
30569 \begin_layout Plain Layout
30570 \begin_inset CommandInset label
30572 name "tab:cap-beside-tab-wider"
30576 This caption is wider than the one in Table
30577 \begin_inset space ~
30581 \begin_inset CommandInset ref
30583 reference "tab:cap-beside-tab"
30595 \begin_layout Plain Layout
30596 \begin_inset Tabular
30597 <lyxtabular version="3" rows="4" columns="5">
30598 <features tabularvalignment="middle">
30599 <column alignment="center" valignment="top">
30600 <column alignment="center" valignment="top">
30601 <column alignment="center" valignment="top">
30602 <column alignment="center" valignment="top">
30603 <column alignment="center" valignment="top">
30605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30608 \begin_layout Plain Layout
30614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30617 \begin_layout Plain Layout
30623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30626 \begin_layout Plain Layout
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" rightline="true" usebox="none">
30644 \begin_layout Plain Layout
30652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30655 \begin_layout Plain Layout
30661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30664 \begin_layout Plain Layout
30670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30673 \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" rightline="true" usebox="none">
30691 \begin_layout Plain Layout
30699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30702 \begin_layout Plain Layout
30708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30711 \begin_layout Plain Layout
30717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30720 \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" rightline="true" usebox="none">
30738 \begin_layout Plain Layout
30746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30749 \begin_layout Plain Layout
30755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30758 \begin_layout Plain Layout
30764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30767 \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" rightline="true" usebox="none">
30785 \begin_layout Plain Layout
30804 \begin_layout Standard
30808 \begin_layout Plain Layout
30820 \begin_layout Standard
30824 \begin_layout Plain Layout
30834 \begin_inset Note Note
30837 \begin_layout Plain Layout
30838 The following will be displayed when the \SpecialChar LaTeX
30851 \begin_layout Standard
30852 You need to install the \SpecialChar LaTeX
30857 to see the following part of this section in the output.
30860 \begin_layout Standard
30864 \begin_layout Plain Layout
30876 \begin_layout Section
30878 \begin_inset Index idx
30881 \begin_layout Plain Layout
30882 Floats ! Float Lists
30890 \begin_layout Standard
30891 Similar to the table of contents where the sections of the document are
30892 listed, there are listings for all float types, like the figures of the
30894 You can insert them via the
30896 Insert\SpecialChar menuseparator
30898 \begin_inset space ~
30902 \begin_inset space ~
30910 \begin_layout Standard
30911 The list entries are the float captions or its short title, the float number,
30912 and the page number where they appear in the document.
30915 \begin_layout Standard
30916 You can find the list of figures and tables at the end of this document.
30919 \begin_layout Chapter
30923 \begin_layout Section
30926 \begin_inset Index idx
30929 \begin_layout Plain Layout
30930 Notes ! \SpecialChar LyX
30939 \begin_layout Standard
30940 Notes are inserted with the toolbar button
30948 Insert\SpecialChar menuseparator
30952 There are three types of notes:
30955 \begin_layout Description
30958 \begin_inset space ~
30961 Note This note type is for internal notes that won't appear in the output.
30962 Its note-box looks like this:
30963 \begin_inset Newline newline
30967 \begin_inset Newline newline
30971 \begin_inset Graphics
30972 filename clipart/LyXNoteImage.png
30974 scaleBeforeRotation
30979 \begin_inset Note Note
30982 \begin_layout Plain Layout
30983 This is text in a note box that doesn't appear in the output.
30991 \begin_layout Description
30992 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
30994 when you export the document to \SpecialChar LaTeX
30997 File\SpecialChar menuseparator
30998 Export\SpecialChar menuseparator
31000 \begin_inset space ~
31003 (pdflatex) / (plain)
31006 Its note-box looks like this:
31007 \begin_inset Newline newline
31011 \begin_inset Newline newline
31015 \begin_inset Graphics
31016 filename clipart/CommentNoteImage.png
31018 scaleBeforeRotation
31023 \begin_inset Note Comment
31026 \begin_layout Plain Layout
31027 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31036 \begin_layout Description
31038 \begin_inset space ~
31041 Out This note will appear in the output as grey text.
31042 Its note-box looks like this:
31043 \begin_inset Newline newline
31047 \begin_inset Newline newline
31051 \begin_inset Graphics
31052 filename clipart/GreyedOutNoteImage.png
31054 scaleBeforeRotation
31059 \begin_inset Newline newline
31066 \begin_layout Plain Layout
31070 renewenvironment{lyxgreyedout}
31073 \begin_layout Plain Layout
31077 textcolor[gray]{0.8}
31087 \begin_inset Note Greyedout
31090 \begin_layout Plain Layout
31091 This is text of a comment that appears grey in the output.
31100 \begin_layout Plain Layout
31104 renewenvironment{lyxgreyedout}
31107 \begin_layout Plain Layout
31121 \begin_inset Note Note
31124 \begin_layout Plain Layout
31125 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31127 because greyed out notes are redefined in the preamble of this document,
31128 as described below, to have blue text.
31134 \begin_inset Newline newline
31138 \begin_inset Newline newline
31141 As you can see in the example, the first line of greyed out notes is a bit
31142 indented and greyed out notes can have footnotes.
31145 \begin_layout Standard
31146 \begin_inset VSpace bigskip
31149 When you use the toolbar button
31159 \begin_inset space ~
31165 You can switch between the three note types by right-clicking on the note-box.
31170 If you want to turn existing text into a note, mark it and click on the
31184 To change a note to text, press the backspace key when the cursor is in
31185 the first position of a note, or press the delete key when the cursor is
31186 in the very last position of the note, respectively.
31189 \begin_layout Standard
31190 \begin_inset VSpace bigskip
31193 You can change the text color of the greyed out notes in the menu
31195 Document\SpecialChar menuseparator
31196 Settings\SpecialChar menuseparator
31202 \begin_layout Section
31204 \begin_inset CommandInset label
31206 name "sec:Footnotes"
31211 \begin_inset Index idx
31214 \begin_layout Plain Layout
31221 \begin_inset Index idx
31224 \begin_layout Plain Layout
31233 \begin_layout Standard
31234 Footnotes can be inserted using the toolbar button
31237 arg "footnote-insert"
31242 Insert\SpecialChar menuseparator
31246 You will then see the following footnote-box:
31247 \begin_inset Graphics
31248 filename clipart/footnote.png
31250 scaleBeforeRotation
31258 where you can enter the footnote text.
31259 If you want to turn existing text into a footnote, mark it and click on
31285 key when the cursor is in the first position of a
31297 key when the cursor is in the very last position of the
31308 \begin_layout Standard
31309 Here is an example footnote:
31317 \begin_layout Plain Layout
31318 \begin_inset CommandInset label
31320 name "foot:This-is-an"
31324 This is an example footnote.
31337 \begin_layout Plain Layout
31341 newcounter{MyRepeatFoot}
31344 \begin_layout Plain Layout
31348 setcounter{MyRepeatFoot}{
31358 \begin_layout Standard
31359 The footnote will appear in the output as a superscript number at the text
31360 position where the footnote box is placed.
31361 The footnote text is placed at the bottom of the current page.
31362 The footnote number is calculated by \SpecialChar LaTeX
31363 ; the numbers are consecutive.
31364 Whether the footnote number is reset for every chapter depends on your
31368 \begin_layout Standard
31369 Footnotes can be referenced like floats: Insert a label into the footnote
31370 and cross-reference this label in the text as described in section
31371 \begin_inset space ~
31375 \begin_inset CommandInset ref
31377 reference "sec:Referencing-Floats"
31382 \begin_inset Newline newline
31385 This is a cross-reference of Footnote
31386 \begin_inset space ~
31390 \begin_inset CommandInset ref
31392 reference "foot:This-is-an"
31399 \begin_layout Standard
31400 \begin_inset VSpace defskip
31403 Footnotes in title environments are usually not numbered with symbols and
31404 they cannot contain several paragraphs.
31405 See for example the footnote in the titling of this document.
31408 \begin_layout Standard
31409 \begin_inset VSpace defskip
31412 Footnotes in tables are not printed by \SpecialChar LaTeX
31413 due to technical reasons.
31414 However there exists another method to print them: Instead of the footnote
31421 is inserted as \SpecialChar TeX
31423 The text of the footnote is entered as an argument of the \SpecialChar TeX
31432 \begin_inset Newline newline
31435 This was done for the following table with the command
31438 \begin_layout Standard
31445 Printed table footnote.
31450 \begin_layout Standard
31451 \begin_inset Tabular
31452 <lyxtabular version="3" rows="2" columns="1">
31453 <features tabularvalignment="middle">
31454 <column alignment="center" valignment="top">
31456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31459 \begin_layout Plain Layout
31460 This an example text.
31464 \begin_layout Plain Layout
31465 This footnote will not be printed!
31477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31480 \begin_layout Plain Layout
31481 This an example text.
31485 \begin_layout Plain Layout
31508 \begin_layout Plain Layout
31517 Printed table footnote.
31521 \begin_layout Plain Layout
31531 \begin_layout Standard
31532 Footnotes in multi-page tables are described in section
31533 \begin_inset space ~
31537 \begin_inset CommandInset ref
31539 reference "subsec:Footnotes-in-Multi-page"
31546 \begin_layout Standard
31547 Footnotes in minipage boxes are printed, but inside the box and with a different
31548 numbering because a minipage box is like a page inside a page.
31549 (For more about minipages, see section
31550 \begin_inset space ~
31554 \begin_inset CommandInset ref
31556 reference "sec:Minipages"
31560 .) To get a footnote in the minipage that is output at the bottom of the
31561 page like normal footnotes, also use the method of
31576 \begin_layout Standard
31577 \begin_inset Box Frameless
31587 height_special "totalheight"
31592 backgroundcolor "none"
31595 \begin_layout Plain Layout
31596 This an example text in a minipage.
31600 \begin_layout Plain Layout
31601 Footnote in the minipage.
31609 \begin_layout Plain Layout
31610 This an example text in a minipage.
31614 \begin_layout Plain Layout
31631 \begin_layout Standard
31635 \begin_layout Plain Layout
31644 Footnote outside the minipage.
31648 \begin_layout Plain Layout
31658 \begin_layout Standard
31659 \begin_inset VSpace defskip
31665 \begin_layout Standard
31666 To refer to the same footnote several times without printing the footnote
31667 text every time, use the command
31671 footnotemark[number]
31673 in \SpecialChar TeX
31675 \begin_inset Newline newline
31678 As you do not know the number of the repeating footnote while you are writing
31679 the text, you have to store its number.
31680 For the following footnote mark example, these commands were inserted in
31682 code after Footnote
31683 \begin_inset space ~
31687 \begin_inset CommandInset ref
31689 reference "foot:This-is-an"
31693 to store the footnote number:
31696 \begin_layout Standard
31701 newcounter{MyRepeatFoot}
31702 \begin_inset Newline newline
31707 setcounter{MyRepeatFoot}{
31712 \begin_layout Standard
31713 The footnote mark was then created with this command:
31716 \begin_layout Standard
31726 \begin_layout Standard
31727 Here is a repeated footnote:
31735 \begin_layout Plain Layout
31749 \begin_layout Standard
31750 If you want to repeat the previous footnote, you can omit the storage of
31751 the footnote number and just use this command instead:
31754 \begin_layout Standard
31764 \begin_layout Standard
31765 Here is another repeated footnote:
31773 \begin_layout Plain Layout
31787 \begin_layout Subsection
31789 \begin_inset CommandInset label
31791 name "subsec:Footnote-Numbering"
31796 \begin_inset Index idx
31799 \begin_layout Plain Layout
31800 Footnotes ! Numbering
31808 \begin_layout Standard
31809 To reset the footnote number back to 1 after each section
31811 , add this command to your document preamble:
31814 \begin_layout Standard
31819 @addtoreset{footnote}{section}
31822 \begin_layout Standard
31823 \begin_inset VSpace bigskip
31826 The following preamble command changes the footnote numbering style to small
31830 \begin_layout Standard
31842 \begin_layout Standard
31846 \begin_layout Plain Layout
31859 This is a footnote with roman numbering:
31863 \begin_layout Plain Layout
31864 This is an example footnote with roman numbering.
31872 \begin_layout Standard
31873 To change the numbering style to capital roman numerals replace in the command
31888 \begin_inset Quotes eld
31892 \begin_inset Quotes erd
31895 footnotes with capital or small Latin letters use
31909 \begin_inset Quotes eld
31913 \begin_inset Quotes erd
31916 footnotes with symbols use
31925 \begin_layout Standard
31926 \begin_inset Note Greyedout
31929 \begin_layout Plain Layout
31934 You can only number 26 footnotes with Latin letters, because this numbering
31935 is limited to single letters.
31941 \begin_inset Newline newline
31945 \begin_inset Note Greyedout
31948 \begin_layout Plain Layout
31953 You can only number 9 footnotes with symbols.
31961 \begin_layout Standard
31962 To return to the default numbering style after you have changed to another
31975 in the command above.
31979 \begin_layout Plain Layout
31995 \begin_layout Standard
31996 \begin_inset VSpace bigskip
32002 \begin_layout Standard
32003 If you want to have footnotes numbered in the scheme
32004 \begin_inset Quotes eld
32008 \begin_inset Quotes erd
32011 , add the following command to your document preamble:
32014 \begin_layout Standard
32019 numberwithin{footnote}{chapter}
32022 \begin_layout Standard
32023 To be able to use the command
32032 \begin_inset space ~
32037 in the document settings the option
32040 \begin_inset space ~
32044 \begin_inset space ~
32048 \begin_inset space ~
32056 \begin_layout Standard
32060 \begin_layout Plain Layout
32064 numberwithin{footnote}{chapter}
32069 This is another example footnote:
32075 \begin_layout Plain Layout
32076 This is a footnote numbered in the scheme
32077 \begin_inset Quotes eld
32081 \begin_inset Quotes erd
32095 \begin_layout Plain Layout
32111 \begin_layout Standard
32112 \begin_inset Note Greyedout
32115 \begin_layout Plain Layout
32126 always prints out the footnote number as arabic number; previous redefinitions
32127 to get non-arabic numbers are overwritten.
32135 \begin_layout Standard
32136 So to get for example the scheme
32137 \begin_inset Quotes eld
32143 \begin_inset Quotes erd
32146 , use this command instead of
32155 \begin_layout Standard
32169 \begin_layout Subsection
32171 \begin_inset Index idx
32174 \begin_layout Plain Layout
32175 Footnotes ! Placement
32183 \begin_layout Standard
32184 If you have several footnotes in one page, they appear without vertical
32185 space between them at the bottom of the page.
32186 To make them more readable you can e.
32187 \begin_inset space \thinspace{}
32191 \begin_inset space \space{}
32195 \begin_inset space \thinspace{}
32198 mm space with the following preamble command:
32201 \begin_layout Standard
32211 \begin_inset Newline newline
32225 \begin_layout Standard
32226 \begin_inset VSpace bigskip
32229 In a two-column document the footnotes appear at the bottom of every column,
32231 \begin_inset space ~
32235 \begin_inset CommandInset ref
32237 reference "fig:Standard-footnote-placement"
32242 If the footnotes should only appear at the bottom of the right column,
32244 \begin_inset space ~
32248 \begin_inset CommandInset ref
32250 reference "fig:Footnote-placement-in"
32254 , use the \SpecialChar LaTeX
32260 \begin_inset Index idx
32263 \begin_layout Plain Layout
32265 -packages ! ftnright
32270 with this command in the document preamble:
32273 \begin_layout Standard
32278 usepackage{ftnright}
32281 \begin_layout Standard
32282 \begin_inset Float figure
32288 \begin_layout Plain Layout
32291 \begin_inset Box Boxed
32301 height_special "totalheight"
32306 backgroundcolor "none"
32309 \begin_layout Plain Layout
32310 \begin_inset Graphics
32311 filename clipart/without_fntright.pdf
32313 scaleBeforeRotation
32325 \begin_layout Plain Layout
32326 \begin_inset Caption Standard
32328 \begin_layout Plain Layout
32329 \begin_inset CommandInset label
32331 name "fig:Standard-footnote-placement"
32335 Standard footnote placement in two-column documents.
32348 \begin_layout Standard
32349 \begin_inset Float figure
32355 \begin_layout Plain Layout
32358 \begin_inset Box Boxed
32368 height_special "totalheight"
32373 backgroundcolor "none"
32376 \begin_layout Plain Layout
32377 \begin_inset Graphics
32378 filename clipart/with_fntright.pdf
32380 scaleBeforeRotation
32392 \begin_layout Plain Layout
32393 \begin_inset Caption Standard
32395 \begin_layout Plain Layout
32396 \begin_inset CommandInset label
32398 name "fig:Footnote-placement-in"
32402 Footnote placement in two-column documents when the \SpecialChar LaTeX
32420 \begin_layout Standard
32421 \begin_inset VSpace bigskip
32424 In some scientific literature it is usual to collect the footnotes and print
32425 them in a separate paragraph at the end of a section, as in Figure
32426 \begin_inset space ~
32430 \begin_inset CommandInset ref
32432 reference "fig:Endnotes"
32437 They are then called
32438 \begin_inset Quotes eld
32442 \begin_inset Quotes erd
32446 \begin_inset Index idx
32449 \begin_layout Plain Layout
32455 To use endnotes instead of footnotes in your document, load in the menu
32458 Document\SpecialChar menuseparator
32459 Settings\SpecialChar menuseparator
32465 \begin_inset space ~
32469 \begin_inset space ~
32475 To insert the collected footnotes, insert the command
32478 \begin_layout Standard
32486 \begin_layout Standard
32487 in \SpecialChar TeX
32488 Code at the end of a section or chapter.
32491 \begin_layout Standard
32492 \begin_inset Float figure
32497 \begin_layout Plain Layout
32500 \begin_inset Box Boxed
32510 height_special "totalheight"
32515 backgroundcolor "none"
32518 \begin_layout Plain Layout
32519 \begin_inset Graphics
32520 filename clipart/endnotes.pdf
32522 scaleBeforeRotation
32534 \begin_layout Plain Layout
32535 \begin_inset Caption Standard
32537 \begin_layout Plain Layout
32538 \begin_inset CommandInset label
32540 name "fig:Endnotes"
32544 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32558 \begin_layout Standard
32559 \begin_inset VSpace medskip
32562 The paragraph heading for the endnotes isn't automatically translated into
32563 the document language, this must be done manually.
32564 The following preamble command translates the default English
32565 \begin_inset Quotes eld
32569 \begin_inset Quotes erd
32573 \begin_inset Quotes eld
32577 \begin_inset Quotes erd
32583 \begin_layout Standard
32590 notesname}{Anmerkungen}
32593 \begin_layout Standard
32594 \begin_inset VSpace medskip
32597 The numbering of endnotes can be changed like the footnote numbering as
32598 described in section
32599 \begin_inset space ~
32603 \begin_inset CommandInset ref
32605 reference "subsec:Footnote-Numbering"
32609 ; just replace the command
32622 To reset the endnote number use the command
32628 as described in section
32629 \begin_inset space ~
32633 \begin_inset CommandInset ref
32635 reference "subsec:Footnote-Numbering"
32639 and replace the command parameter
32650 \begin_layout Standard
32651 For endnotes there is the command
32655 endnotemark[number]
32657 similar to the command
32663 , that is described in section
32664 \begin_inset space ~
32668 \begin_inset CommandInset ref
32670 reference "sec:Footnotes"
32677 \begin_layout Standard
32678 \begin_inset VSpace bigskip
32681 Footnotes can also be placed in the page margin and the footnote text alignment
32682 can be changed, see the \SpecialChar LaTeX
32688 \begin_inset Index idx
32691 \begin_layout Plain Layout
32693 -packages ! footmisc
32699 \begin_inset CommandInset citation
32705 for more information about this.
32708 \begin_layout Standard
32709 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32711 \begin_inset CommandInset citation
32713 key "latexcompanion,latexguide,latexbook"
32723 \begin_inset Index idx
32726 \begin_layout Plain Layout
32728 -packages ! KOMA-Script
32733 document class, you can adjust all footnote settings using class-specific
32735 \begin_inset CommandInset citation
32744 \begin_layout Section
32746 \begin_inset Index idx
32749 \begin_layout Plain Layout
32750 Notes ! Margin Notes
32758 \begin_layout Standard
32759 Margin notes look and behave in \SpecialChar LyX
32761 They are inserted via the menu
32763 Insert\SpecialChar menuseparator
32765 \begin_inset space ~
32770 or the toolbar button
32773 arg "marginalnote-insert"
32787 \begin_inset Quotes eld
32791 \begin_inset Quotes erd
32794 appears where you can enter the text of the margin note.
32797 \begin_layout Standard
32798 At the side is an example margin note.
32803 \begin_inset Marginal
32806 \begin_layout Plain Layout
32807 This is a margin note.
32815 \begin_layout Standard
32816 Margin notes appear at the right side in single-sided documents.
32817 In double-sided documents they appear in the outer margin – left on even
32818 pages, right on odd pages.
32819 The text of margin notes is aligned opposite to the outer margin – right-aligne
32820 d when the note appears in the left margin.
32821 The first line of the margin note is placed at the position of the text
32822 line where it is inserted in the document.
32825 \begin_layout Standard
32826 \begin_inset VSpace bigskip
32829 To place the margin note in the inner margin, add the command
32832 \begin_layout Standard
32840 \begin_layout Standard
32841 in \SpecialChar TeX
32842 Code before a margin note.
32843 The new placement is valid for all subsequent margin notes.
32848 \begin_layout Plain Layout
32858 \begin_inset Marginal
32861 \begin_layout Plain Layout
32862 This is a margin note in the inner margin.
32870 \begin_inset Newline newline
32876 \begin_inset Note Greyedout
32879 \begin_layout Plain Layout
32884 There is often not enough space in the inner margin so that the notes are
32885 not correctly displayed in the output.
32893 \begin_layout Standard
32894 To return to the default placement insert the command
32897 \begin_layout Standard
32905 \begin_layout Standard
32906 in \SpecialChar TeX
32911 \begin_layout Plain Layout
32921 \begin_inset Note Greyedout
32924 \begin_layout Plain Layout
32929 The command is ignored when it is within a paragraph where also the command
32944 \begin_layout Standard
32945 \begin_inset VSpace bigskip
32952 \begin_inset Marginal
32955 \begin_layout Plain Layout
32956 AVeryLongMarginParWord that isn't hyphenated.
32964 Similar to the case described in section
32965 \begin_inset space ~
32969 \begin_inset CommandInset ref
32971 reference "subsec:Multiple-Lines-in"
32975 , long words cannot be hyphenated when they are the first word in a margin
32977 To avoid this, insert 0
32978 \begin_inset space \thinspace{}
32981 pt horizontal space before the word
32986 \begin_inset Marginal
32989 \begin_layout Plain Layout
32990 \begin_inset space \hspace*{}
32994 AVeryLongMarginParWord that is hyphenated.
33002 \begin_layout Standard
33003 \begin_inset VSpace bigskip
33009 \begin_layout Standard
33010 \begin_inset Note Greyedout
33013 \begin_layout Plain Layout
33018 Margin notes can normally not be used inside tables, floats, and footnotes.
33026 \begin_layout Standard
33027 \begin_inset VSpace bigskip
33033 \begin_layout Standard
33037 \begin_layout Plain Layout
33047 \begin_inset Note Note
33050 \begin_layout Plain Layout
33051 The following section will only be displayed when the \SpecialChar LaTeX
33064 \begin_layout Standard
33065 This restriction can be evaded by using the \SpecialChar LaTeX
33071 \begin_inset Index idx
33074 \begin_layout Plain Layout
33076 -packages ! marginnote
33082 By adding these two lines to your document preamble, the command used by
33084 for margin notes is redefined to use the command provided by the
33091 \begin_layout Standard
33096 usepackage{marginnote}
33097 \begin_inset Newline newline
33109 \begin_layout Standard
33110 This is also used in this document because
33114 has another useful feature: You can set a vertical offset for the note.
33115 This is often needed when too many margin notes are too close together
33116 or for a better page layout.
33117 The offset is set in \SpecialChar LyX
33118 as \SpecialChar TeX
33119 Code directly after the margin note in the scheme
33122 \begin_layout Standard
33128 \begin_layout Standard
33129 where the offset is a length with one of the units listed in Table
33130 \begin_inset space ~
33134 \begin_inset CommandInset ref
33136 reference "tab:Units"
33141 A negative value shifts the note up, a positive value shifts it down.
33145 For example the margin note beside this text line is shifted up 1.5
33146 \begin_inset space \thinspace{}
33149 cm with the \SpecialChar TeX
33151 \begin_inset Quotes eld
33161 \begin_inset Quotes erd
33165 \begin_inset Marginal
33168 \begin_layout Plain Layout
33169 This margin note is shifted up 1.5
33170 \begin_inset space \thinspace{}
33173 cm from its original position.
33185 \begin_layout Plain Layout
33195 \begin_layout Standard
33196 \begin_inset VSpace medskip
33203 you can also change the alignment of the text in the margin note.
33204 For example the commands
33207 \begin_layout Standard
33214 raggedleftmarginnote}{
33217 \begin_inset Newline newline
33224 raggedrightmarginnote}{
33229 \begin_layout Standard
33230 set the alignment to centered.
33235 raggedleftmarginnote
33237 denotes margin notes that appear at the left side.
33244 \begin_layout Plain Layout
33250 raggedleftmarginnote}{
33255 \begin_layout Plain Layout
33261 raggedrightmarginnote}{
33269 \begin_inset Marginal
33272 \begin_layout Plain Layout
33273 The text of this margin note is centered.
33284 \begin_layout Standard
33291 raggedleftmarginnote}{
33294 \begin_inset Newline newline
33301 raggedrightmarginnote}{
33310 \begin_layout Plain Layout
33316 raggedleftmarginnote}{
33321 \begin_layout Plain Layout
33327 raggedrightmarginnote}{
33337 \begin_layout Standard
33338 \begin_inset VSpace medskip
33341 For the other features of
33345 refer to its documentation
33346 \begin_inset CommandInset citation
33355 \begin_layout Standard
33356 \begin_inset VSpace bigskip
33359 You can adjust the layout of margin notes by changing its definition.
33360 To create for example a header for all margin notes with the underlined,
33361 sans-serif, and bold header text
33362 \begin_inset Quotes eld
33374 \begin_inset Quotes erd
33377 , add this to your document preamble:
33380 \begin_layout Standard
33390 \begin_inset Newline newline
33400 \begin_inset Newline newline
33404 \begin_inset Phantom HPhantom
33407 \begin_layout Plain Layout
33410 \begin_inset space ~
33426 underbar{Attention!}}}%
33427 \begin_inset Newline newline
33431 \begin_inset Phantom HPhantom
33434 \begin_layout Plain Layout
33437 \begin_inset space ~
33454 \begin_layout Standard
33461 \begin_layout Plain Layout
33472 \begin_layout Plain Layout
33483 \begin_layout Plain Layout
33491 underbar{Attention!}}}%
33494 \begin_layout Plain Layout
33508 \begin_inset Marginal
33511 \begin_layout Plain Layout
33512 This is a margin note with a defined heading.
33524 \begin_layout Plain Layout
33538 \begin_layout Plain Layout
33555 \begin_inset Note Note
33558 \begin_layout Plain Layout
33559 The margin note format is changed only for this example.
33567 \begin_layout Standard
33571 \begin_layout Plain Layout
33581 \begin_inset Note Note
33584 \begin_layout Plain Layout
33585 The following will be displayed when the \SpecialChar LaTeX
33598 \begin_layout Standard
33599 You need to install the \SpecialChar LaTeX
33604 to see the following part of this section in the output.
33607 \begin_layout Standard
33611 \begin_layout Plain Layout
33623 \begin_layout Chapter
33627 \begin_layout Section
33629 \begin_inset Index idx
33632 \begin_layout Plain Layout
33633 Boxes ! Introduction
33641 \begin_layout Standard
33642 Boxes are used to format a block of text.
33643 Boxes can be used to write documents with multiple languages, see section
33644 \begin_inset space ~
33648 \begin_inset CommandInset ref
33650 reference "sec:Minipages"
33654 , to frame texts, see section
33655 \begin_inset space ~
33659 \begin_inset CommandInset ref
33661 reference "sec:Decoration"
33665 , to prevent words from being hyphenated, see section
33666 \begin_inset space ~
33670 \begin_inset CommandInset ref
33672 reference "sec:Prevent-Hyphenation"
33676 , to align text, see section
33677 \begin_inset space ~
33681 \begin_inset CommandInset ref
33683 reference "subsec:Vertical-Alignment"
33687 , or to set the background color of texts, see section
33688 \begin_inset space ~
33692 \begin_inset CommandInset ref
33694 reference "sec:Colored-Boxes"
33701 \begin_layout Standard
33702 Boxes can be inserted with the menu
33704 Insert\SpecialChar menuseparator
33707 or the toolbar button
33710 arg "box-insert Frameless"
33714 A grey box with the label
33719 \begin_inset Graphics
33720 filename clipart/BoxInsetDefault.png
33722 scaleBeforeRotation
33727 The box type can be specified by right-clicking on the box and selecting
33733 The box dialog offers the
33736 \begin_inset space ~
33758 is the default for new boxes and is explained in section
33759 \begin_inset space ~
33763 \begin_inset CommandInset ref
33765 reference "sec:Minipages"
33773 is described in section
33774 \begin_inset space ~
33778 \begin_inset CommandInset ref
33780 reference "sec:Parboxes"
33789 \begin_inset CommandInset ref
33791 reference "sec:Prevent-Hyphenation"
33798 \begin_layout Standard
33799 Boxes are not numbered and can therefore not be referenced like floats or
33803 \begin_layout Standard
33804 \begin_inset Note Greyedout
33807 \begin_layout Plain Layout
33812 Boxes must not be the item in an
33828 \begin_layout Standard
33829 \begin_inset Note Greyedout
33832 \begin_layout Plain Layout
33837 For an unknown reason you can only set the
33840 \begin_inset space ~
33849 when you use a framed box.
33853 \begin_inset space ~
33858 type and without frames are explained in section
33859 \begin_inset space ~
33863 \begin_inset CommandInset ref
33865 reference "sec:Prevent-Hyphenation"
33877 \begin_layout Section
33879 \begin_inset CommandInset label
33881 name "sec:Box-Dialog"
33886 \begin_inset Index idx
33889 \begin_layout Plain Layout
33898 \begin_layout Subsection
33900 \begin_inset Index idx
33903 \begin_layout Plain Layout
33912 \begin_layout Standard
33913 In the box dialog you can adjust the box geometry in the fields
33922 The available units for the geometry are explained in Table
33923 \begin_inset space ~
33927 \begin_inset CommandInset ref
33929 reference "tab:Units"
33938 offers the following additional sizes:
33941 \begin_layout Description
33942 Depth This is the plain text
33943 \begin_inset Quotes eld
33947 \begin_inset Quotes erd
33951 It ignores the total depth when there are multiple text lines in the box:
33952 \begin_inset Newline newline
33956 \begin_inset Newline newline
33960 \begin_inset Newline newline
33964 \begin_inset Box Boxed
33974 height_special "depth"
33979 backgroundcolor "none"
33982 \begin_layout Plain Layout
33984 Box height set to 1
33985 \begin_inset space \thinspace{}
33994 \begin_inset Newline newline
33998 \begin_inset Newline newline
34004 \begin_layout Description
34005 Height This is the height of the text that is inside the box.
34007 \begin_inset space \thinspace{}
34011 \begin_inset space \space{}
34014 2 for this size will set the box height to 2
34015 \begin_inset space ~
34018 times the text height:
34019 \begin_inset Box Boxed
34029 height_special "height"
34034 backgroundcolor "none"
34037 \begin_layout Plain Layout
34039 Box height set to 2
34040 \begin_inset space \thinspace{}
34051 \begin_layout Description
34053 \begin_inset space ~
34056 Height This is the Height
34057 \begin_inset space \thinspace{}
34061 \begin_inset space \thinspace{}
34065 \begin_inset Box Boxed
34075 height_special "totalheight"
34080 backgroundcolor "none"
34083 \begin_layout Plain Layout
34085 Box height set to 1
34086 \begin_inset space \thinspace{}
34090 \begin_inset space ~
34101 \begin_layout Description
34102 Width This sets the width of the box as height:
34103 \begin_inset Box Boxed
34113 height_special "width"
34118 backgroundcolor "none"
34121 \begin_layout Plain Layout
34123 Box height set to 1
34124 \begin_inset space \thinspace{}
34135 \begin_layout Subsection
34137 \begin_inset Index idx
34140 \begin_layout Plain Layout
34149 \begin_layout Standard
34150 When you have chosen an
34153 \begin_inset space ~
34158 , the vertical box alignment can be:
34161 \begin_layout Description
34162 Top This is an example text line.
34164 \begin_inset Box Boxed
34174 height_special "totalheight"
34179 backgroundcolor "none"
34182 \begin_layout Plain Layout
34184 This box is top-aligned.
34189 This is an example text line.
34192 \begin_layout Description
34193 Middle This is an example text line.
34195 \begin_inset Box Boxed
34205 height_special "totalheight"
34210 backgroundcolor "none"
34213 \begin_layout Plain Layout
34215 This box is middle-aligned.
34220 This is an example text line.
34223 \begin_layout Description
34224 Bottom This is an example text line.
34226 \begin_inset Box Boxed
34236 height_special "totalheight"
34241 backgroundcolor "none"
34244 \begin_layout Plain Layout
34246 This box is bottom-aligned.
34251 This is an example text line.
34254 \begin_layout Standard
34255 \begin_inset Note Greyedout
34258 \begin_layout Plain Layout
34263 The vertical box alignment can be lost in the output when you have two
34264 boxes in a line and one has e.
34265 \begin_inset space \thinspace{}
34269 \begin_inset space \space{}
34272 a shadow and the other one not.
34280 \begin_layout Standard
34281 The horizontal box alignment can be set via \SpecialChar LyX
34282 's paragraph dialog when you
34283 set the box into its own paragraph.
34286 \begin_layout Standard
34287 \begin_inset VSpace bigskip
34290 When you have chosen an
34293 \begin_inset space ~
34298 , the box content can be aligned vertically to:
34301 \begin_layout Description
34302 top This is an example text line.
34304 \begin_inset Box Boxed
34314 height_special "totalheight"
34319 backgroundcolor "none"
34322 \begin_layout Plain Layout
34324 This box text is top-aligned.
34329 This is an example text line.
34332 \begin_layout Description
34333 middle This is an example text line.
34335 \begin_inset Box Boxed
34345 height_special "totalheight"
34350 backgroundcolor "none"
34353 \begin_layout Plain Layout
34355 This box text is middle-aligned.
34360 This is an example text line.
34363 \begin_layout Description
34364 bottom This is an example text line.
34366 \begin_inset Box Boxed
34376 height_special "totalheight"
34381 backgroundcolor "none"
34384 \begin_layout Plain Layout
34386 This box text is bottom-aligned.
34391 This is an example text line.
34394 \begin_layout Description
34395 stretch This is an example text line.
34397 \begin_inset Box Boxed
34407 height_special "totalheight"
34412 backgroundcolor "none"
34415 \begin_layout Plain Layout
34420 \begin_layout Plain Layout
34425 \begin_layout Plain Layout
34432 This is an example text line.
34435 \begin_layout Standard
34436 To stretch the box content, it must consist of more than one paragraph.
34437 In the example above every text line is in an own paragraph.
34440 \begin_layout Standard
34441 \begin_inset VSpace bigskip
34444 To align the box content horizontally you can use \SpecialChar LyX
34445 's paragraph dialog when
34449 \begin_inset space ~
34457 \begin_layout Standard
34459 \begin_inset Box Boxed
34469 height_special "totalheight"
34474 backgroundcolor "none"
34477 \begin_layout Plain Layout
34482 \begin_layout Plain Layout
34487 \begin_layout Plain Layout
34497 \begin_layout Standard
34498 If you have not set an
34501 \begin_inset space ~
34506 , you can align the box content horizontally in the box dialog.
34509 \begin_layout Standard
34511 \begin_inset Box Boxed
34521 height_special "totalheight"
34526 backgroundcolor "none"
34529 \begin_layout Plain Layout
34530 This box text is horizontally stretched.
34538 \begin_layout Subsection
34540 \begin_inset CommandInset label
34542 name "sec:Decoration"
34547 \begin_inset Index idx
34550 \begin_layout Plain Layout
34559 \begin_layout Standard
34560 The type of the box can be specified in the box dialog in the drop-down
34566 The following types are possible:
34569 \begin_layout Description
34571 \begin_inset space ~
34574 frame Nothing is drawn.
34577 \begin_layout Description
34579 \begin_inset space ~
34583 \begin_inset space ~
34586 frame This draws a rectangular frame around the box.
34587 The frame line thickness can be specified.
34589 \begin_inset Box Boxed
34599 height_special "totalheight"
34604 backgroundcolor "none"
34607 \begin_layout Plain Layout
34617 \begin_layout Description
34619 \begin_inset space ~
34623 \begin_inset space ~
34626 thin This draws an oval frame around the box.
34627 The frame line thickness has the size 0.4
34628 \begin_inset space \thinspace{}
34633 \begin_inset Box ovalbox
34643 height_special "totalheight"
34648 backgroundcolor "none"
34651 \begin_layout Plain Layout
34661 \begin_layout Description
34663 \begin_inset space ~
34667 \begin_inset space ~
34670 thick This draws an oval frame around the box.
34671 The frame line thickness has the size 0.8
34672 \begin_inset space \thinspace{}
34677 \begin_inset Box Ovalbox
34687 height_special "totalheight"
34692 backgroundcolor "none"
34695 \begin_layout Plain Layout
34705 \begin_layout Description
34707 \begin_inset space ~
34710 shadow This draws a rectangular frame with a shadow around the box.
34711 The frame line thickness and the shadow can be specified.
34713 \begin_inset Box Shadowbox
34723 height_special "totalheight"
34728 backgroundcolor "none"
34731 \begin_layout Plain Layout
34741 \begin_layout Description
34743 \begin_inset space ~
34746 background This draws a box with a red background.
34747 Unlike colored boxes
34751 \begin_layout Plain Layout
34753 \begin_inset space \thinspace{}
34757 \begin_inset CommandInset ref
34759 reference "sec:Colored-Boxes"
34768 , it always uses the whole column width and the box is set as its own paragraph.
34770 \begin_inset Box Shaded
34780 height_special "totalheight"
34785 backgroundcolor "none"
34788 \begin_layout Plain Layout
34789 Shaded background box
34797 \begin_layout Description
34799 \begin_inset space ~
34803 \begin_inset space ~
34806 frame This draws a double-line rectangular frame around the box.
34807 The line thickness of the inner frame is 0.75
34808 \begin_inset space \thinspace{}
34812 \begin_inset space ~
34815 thickness, the thickness of the outer frame is 1.5
34816 \begin_inset space \thinspace{}
34820 \begin_inset space ~
34824 The distance between the lines is 1.5
34825 \begin_inset space \thinspace{}
34829 \begin_inset space ~
34833 \begin_inset space \thinspace{}
34837 \begin_inset space \thinspace{}
34841 \begin_inset space \thinspace{}
34846 \begin_inset Box Doublebox
34856 height_special "totalheight"
34861 backgroundcolor "none"
34864 \begin_layout Plain Layout
34866 Double rectangular box
34874 \begin_layout Standard
34875 \begin_inset VSpace bigskip
34879 's box label will reflect the different frame types.
34880 To be able to use all types, the \SpecialChar LaTeX
34886 \begin_inset Index idx
34889 \begin_layout Plain Layout
34891 -packages ! fancybox
34899 \begin_layout Standard
34900 \begin_inset VSpace bigskip
34903 When you use the decoration
34905 simple rectangular frame
34907 and no inner box, you can allow page breaks within a box.
34908 Note that then, unlike other framed boxes, the frame always uses the whole
34909 column width and the box is set as its own paragraph:
34910 \begin_inset Box Framed
34920 height_special "totalheight"
34925 backgroundcolor "none"
34928 \begin_layout Plain Layout
34929 Allow page break box
34937 \begin_layout Section
34939 \begin_inset Index idx
34942 \begin_layout Plain Layout
34943 Boxes ! Customization
34951 \begin_layout Standard
34952 The diameter of the round corners of the oval boxes can be set with the
34963 \begin_layout Standard
34971 \begin_layout Standard
34972 sets the diameter to 1
34973 \begin_inset space \thinspace{}
34980 \begin_layout Standard
34988 \begin_layout Standard
34989 sets the diameter to
34992 \begin_inset space \thinspace{}
34996 \begin_inset space \thinspace{}
34999 minimum(width and height of box)
35011 \begin_layout Standard
35015 \begin_layout Plain Layout
35025 \begin_inset Box Ovalbox
35035 height_special "totalheight"
35040 backgroundcolor "none"
35043 \begin_layout Plain Layout
35052 \begin_inset space \thinspace{}
35056 \begin_inset space \thinspace{}
35060 \begin_inset space \thinspace{}
35072 \begin_layout Plain Layout
35084 \begin_layout Standard
35085 \begin_inset VSpace bigskip
35091 \begin_layout Standard
35092 The default background color red of
35096 boxes can either be changed locally with the command
35100 definecolor{shadecolor}
35102 or globally with the menu
35104 Tools\SpecialChar menuseparator
35105 Preferences\SpecialChar menuseparator
35106 Colors\SpecialChar menuseparator
35108 \begin_inset space ~
35120 command is explained in section
35121 \begin_inset space ~
35125 \begin_inset CommandInset ref
35127 reference "sec:Colored-Tables"
35135 \begin_layout Plain Layout
35142 requires the \SpecialChar LaTeX
35147 in the preamble, see section
35148 \begin_inset space ~
35152 \begin_inset CommandInset ref
35154 reference "sec:Colored-Boxes"
35163 For example the appearance of the following shaded background box is set
35164 with the \SpecialChar TeX
35168 \begin_layout Standard
35173 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35176 \begin_layout Standard
35180 \begin_layout Plain Layout
35184 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35190 \begin_inset Box Shaded
35200 height_special "totalheight"
35205 backgroundcolor "none"
35208 \begin_layout Plain Layout
35211 This is yellow text in a
35221 box with dark green background.
35230 \begin_layout Plain Layout
35234 definecolor{shadecolor}{rgb}{1,0,0}
35242 \begin_layout Standard
35243 \begin_inset VSpace bigskip
35246 Manually changed sizes and colors are valid for all boxes following the
35247 commands that change them.
35250 \begin_layout Section
35252 \begin_inset CommandInset label
35254 name "sec:Minipages"
35259 \begin_inset Index idx
35262 \begin_layout Plain Layout
35271 \begin_layout Standard
35272 Minipages are treated by \SpecialChar LaTeX
35273 as pages within pages and can therefore for example
35274 have their own footnotes.
35277 \begin_layout Standard
35278 Minipages are useful when you write documents with different languages.
35281 \begin_layout Standard
35282 Below are two example minipages side by side.
35283 Their width is set to 45
35284 \begin_inset space \thinspace{}
35287 col% and they are separated by a horizontal fill, that was inserted via
35290 Insert\SpecialChar menuseparator
35292 \begin_inset space ~
35295 Formatting\SpecialChar menuseparator
35297 \begin_inset space ~
35303 \begin_inset Newpage newpage
35309 \begin_layout Standard
35310 \begin_inset Box Frameless
35320 height_special "totalheight"
35325 backgroundcolor "none"
35328 \begin_layout Plain Layout
35331 Dies ist ein deutscher Text.
35332 Dies ist ein deutscher Text.
35333 Dies ist ein deutscher Text.
35334 Dies ist ein deutscher Text.
35335 Dies ist ein deutscher Text.
35336 Dies ist ein deutscher Text.
35337 Dies ist ein deutscher Text.
35338 Dies ist ein deutscher Text.
35339 Dies ist ein deutscher Text.
35340 Dies ist ein deutscher Text.
35341 Dies ist ein deutscher Text.
35342 Dies ist ein deutscher Text.
35343 Dies ist ein deutscher Text
35347 \begin_layout Plain Layout
35350 Dies ist eine deutsche Fußnote.
35356 Dies ist ein deutscher Text.
35357 Dies ist ein deutscher Text.
35363 \begin_inset space \hfill{}
35367 \begin_inset Box Frameless
35377 height_special "totalheight"
35382 backgroundcolor "none"
35385 \begin_layout Plain Layout
35386 This is an English Text.
35387 This is an English Text.
35388 This is an English Text.
35389 This is an English Text.
35390 This is an English Text.
35391 This is an English Text.
35392 This is an English Text.
35393 This is an English Text.
35394 This is an English Text.
35395 This is an English Text.
35396 This is an English Text.
35397 This is an English Text.
35398 This is an English Text.
35399 This is an English Text.
35400 This is an English Text.
35401 This is an English Text.
35405 \begin_layout Plain Layout
35406 This is an English footnote.
35411 This is an English Text.
35419 \begin_layout Standard
35420 \begin_inset VSpace bigskip
35423 The document-wide paragraph settings are ignored within minipages.
35424 That means that there will be no space between paragraphs in minipages
35425 although you set it to e.
35426 \begin_inset space \thinspace{}
35430 \begin_inset space \space{}
35437 in the document settings.
35440 \begin_layout Standard
35441 Minipages can also be used to set a background color for text parts, see
35443 \begin_inset space ~
35447 \begin_inset CommandInset ref
35449 reference "sec:Colored-Boxes"
35456 \begin_layout Standard
35457 \begin_inset Note Greyedout
35460 \begin_layout Plain Layout
35465 You cannot have floats or margin notes inside minipages but minipages can
35466 be used inside tables, floats, and other boxes.
35474 \begin_layout Standard
35475 \begin_inset VSpace bigskip
35481 \begin_layout Standard
35483 has also basic support for minipages whose size is automatically determined
35484 by the width of their contents, via the module
35486 Variable-width Minipages
35489 The \SpecialChar LyX
35492 varwidth-floats-side-by-side
35494 gives examples of variable-width minipages used for placing two floats
35498 \begin_layout Section
35500 \begin_inset CommandInset label
35502 name "sec:Parboxes"
35507 \begin_inset Index idx
35510 \begin_layout Plain Layout
35519 \begin_layout Standard
35520 Parboxes are very similar to minipages with the difference that they cannot
35524 \begin_layout Standard
35526 \begin_inset Box Frameless
35536 height_special "totalheight"
35541 backgroundcolor "none"
35544 \begin_layout Plain Layout
35545 This a text within a parbox.
35546 This a text within a parbox.
35549 \begin_layout Plain Layout
35550 This footnote won't appear:
35554 \begin_layout Plain Layout
35555 This footnote is inside a parbox and will therefore not appear.
35568 \begin_layout Section
35569 Boxes for Words and Characters
35570 \begin_inset Index idx
35573 \begin_layout Plain Layout
35574 Boxes ! for Characters
35582 \begin_layout Subsection
35583 Prevent Hyphenation
35584 \begin_inset CommandInset label
35586 name "sec:Prevent-Hyphenation"
35591 \begin_inset Index idx
35594 \begin_layout Plain Layout
35595 Boxes ! to Prevent Hyphenation
35603 \begin_layout Standard
35604 You can use the box type
35608 to prevent words or text from being hyphenated.
35609 \begin_inset Newline newline
35612 Here is an example text:
35615 \begin_layout Standard
35616 This line is an example to show how you can prevent the hyphenation of
35617 \begin_inset Quotes eld
35621 \begin_inset Quotes erd
35627 \begin_layout Standard
35628 To prevent the hyphenation of the word
35629 \begin_inset Quotes eld
35633 \begin_inset Quotes erd
35636 , put the word into a box, set the
35639 \begin_inset space ~
35648 and use no explicit width.
35651 \begin_layout Standard
35652 This is the result:
35655 \begin_layout Standard
35656 This line is an example to show how you can prevent the hyphenation of
35657 \begin_inset Box Frameless
35667 height_special "totalheight"
35672 backgroundcolor "none"
35675 \begin_layout Plain Layout
35676 \begin_inset Quotes eld
35680 \begin_inset Quotes erd
35691 \begin_layout Standard
35692 You can alternatively set the command
35693 \begin_inset Quotes eld
35703 \begin_inset Quotes grd
35706 as \SpecialChar TeX
35707 Code directly before the word:
35710 \begin_layout Standard
35711 This line is an example to show how you can prevent the hyphenation of
35712 \begin_inset Quotes eld
35719 \begin_layout Plain Layout
35729 \begin_inset Quotes erd
35735 \begin_layout Standard
35736 Of course the word now protrudes over the side margin.
35737 To avoid this, add via the menu
35739 Insert\SpecialChar menuseparator
35740 Formatting\SpecialChar menuseparator
35742 \begin_inset space ~
35746 \begin_inset space ~
35754 arg "newline-insert newline"
35757 ) a line break before the word:
35760 \begin_layout Standard
35761 This line is an example to show how you can prevent the hyphenation of
35762 \begin_inset Newline newline
35766 \begin_inset Box Frameless
35776 height_special "totalheight"
35781 backgroundcolor "none"
35784 \begin_layout Plain Layout
35785 \begin_inset Quotes eld
35789 \begin_inset Quotes erd
35800 \begin_layout Subsection
35802 \begin_inset CommandInset label
35804 name "subsec:Vertical-Alignment"
35809 \begin_inset Index idx
35812 \begin_layout Plain Layout
35813 Boxes ! for Vertical Alignment
35819 \begin_inset Index idx
35822 \begin_layout Plain Layout
35831 \begin_layout Standard
35832 With the help of the command
35838 you can align words, characters or other boxes vertically relative to the
35846 is used with the following scheme:
35849 \begin_layout Standard
35854 raisebox{lift}[height][depth]{box content}
35857 \begin_layout Standard
35858 The lift can be a positive value to raise the box or a negative value to
35862 \begin_layout Standard
35863 To align for example the word
35864 \begin_inset Quotes eld
35868 \begin_inset Quotes erd
35871 so that the bottom of the
35872 \begin_inset Quotes eld
35876 \begin_inset Quotes erd
35880 \begin_inset Quotes eld
35884 \begin_inset Quotes erd
35887 is at the baseline, insert the command
35890 \begin_layout Standard
35900 \begin_layout Standard
35901 in \SpecialChar TeX
35902 Code before the word.
35903 After the word insert a closing brace
35904 \begin_inset Quotes eld
35912 \begin_inset Quotes erd
35915 in \SpecialChar TeX
35917 \begin_inset Newline newline
35920 This is the result:
35923 \begin_layout Standard
35924 This is a text line with the word
35928 \begin_layout Plain Layout
35940 \begin_inset Quotes eld
35944 \begin_inset Quotes erd
35951 \begin_layout Plain Layout
35961 \begin_layout Standard
35962 \begin_inset VSpace bigskip
35965 When you raise or lower characters in a line, the line distance will be
35969 \begin_layout Standard
35970 This is a text line with the word
35974 \begin_layout Plain Layout
35986 \begin_inset Quotes eld
35990 \begin_inset Quotes erd
35997 \begin_layout Plain Layout
36005 \begin_inset Newline newline
36008 This is a text line with the word
36012 \begin_layout Plain Layout
36022 \begin_inset Quotes eld
36026 \begin_inset Quotes erd
36033 \begin_layout Plain Layout
36043 \begin_layout Standard
36044 If you want to prevent this for a certain reason, set the box height to
36049 \begin_layout Standard
36059 \begin_layout Standard
36060 This is a text line with the word
36064 \begin_layout Plain Layout
36076 \begin_inset Quotes eld
36080 \begin_inset Quotes erd
36087 \begin_layout Plain Layout
36095 \begin_inset Newline newline
36099 \begin_inset Newline newline
36102 This is a text line with the word
36106 \begin_layout Plain Layout
36110 raisebox{0.5cm}[0pt]{
36116 \begin_inset Quotes eld
36120 \begin_inset Quotes erd
36127 \begin_layout Plain Layout
36137 \begin_layout Section
36139 \begin_inset CommandInset label
36141 name "sec:Colored-Boxes"
36146 \begin_inset Index idx
36149 \begin_layout Plain Layout
36158 \begin_layout Standard
36159 To color the background of a box just select the color you like in the box
36161 This is for example a box with orange background:
36162 \begin_inset Box Frameless
36172 height_special "totalheight"
36177 backgroundcolor "orange"
36180 \begin_layout Plain Layout
36181 Box with orange background
36189 \begin_layout Standard
36190 If you use the decoration
36193 \begin_inset space ~
36197 \begin_inset space ~
36202 you can set a frame color.
36203 In this case you must also specify a background color (LyX sets white as
36205 Here is an example:
36206 \begin_inset Box Boxed
36216 height_special "totalheight"
36221 backgroundcolor "yellow"
36224 \begin_layout Plain Layout
36225 Box with teal frame color and yellow background color
36233 \begin_layout Standard
36234 \begin_inset VSpace bigskip
36237 Of course you can also have colored text inside a colored box:
36238 \begin_inset Newline newline
36242 \begin_inset Box Boxed
36252 height_special "totalheight"
36257 backgroundcolor "magenta"
36260 \begin_layout Plain Layout
36263 This is colored text within a colored, framed box
36271 \begin_layout Standard
36272 \begin_inset VSpace bigskip
36278 \begin_layout Standard
36279 If you need another color than the predefined ones, you can define your
36280 own color as described in section
36281 \begin_inset space ~
36285 \begin_inset CommandInset ref
36287 reference "sec:Colored-Tables"
36292 To use your own color you must typeset the box by using TeX code:
36295 \begin_layout Standard
36296 Colored boxes without frame are created with the command
36303 It has the following scheme:
36306 \begin_layout Standard
36311 colorbox{color}{box content}
36314 \begin_layout Standard
36315 The box content can also be a box and colored boxes can also be within other
36318 \begin_inset space \thinspace{}
36322 \begin_inset space \space{}
36325 a darkgreen background for a word, insert the command
36328 \begin_layout Standard
36333 colorbox{darkgreen}{
36336 \begin_layout Standard
36337 before the word in \SpecialChar TeX
36339 After the word insert a closing brace
36340 \begin_inset Quotes eld
36348 \begin_inset Quotes erd
36351 in \SpecialChar TeX
36353 \begin_inset Newline newline
36356 This is the result:
36359 \begin_layout Standard
36360 This is a line where the word
36364 \begin_layout Plain Layout
36368 colorbox{darkgreen}{
36374 \begin_inset Quotes eld
36378 \begin_inset Quotes erd
36385 \begin_layout Plain Layout
36392 has a darkgreen background.
36395 \begin_layout Standard
36396 Framed, colored boxes are created with the command
36403 It has the following scheme:
36406 \begin_layout Standard
36411 fcolorbox{frame color}{box color}{box content}
36414 \begin_layout Section
36415 Rotated and Scaled Boxes
36418 \begin_layout Standard
36419 To use the boxes described in this section, the module
36423 must be loaded in the document settings.
36426 \begin_layout Standard
36427 \begin_inset Note Greyedout
36430 \begin_layout Plain Layout
36435 Not all DVI viewers are able to display rotated or scaled material.
36443 \begin_layout Standard
36444 \begin_inset Note Greyedout
36447 \begin_layout Plain Layout
36452 Floats are not allowed inside a rotated or scaled box.
36460 \begin_layout Subsection
36462 \begin_inset Index idx
36465 \begin_layout Plain Layout
36472 \begin_inset Index idx
36475 \begin_layout Plain Layout
36484 \begin_layout Standard
36485 To rotate material, you can put it into a
36490 Such a box is inserted via the menu
36492 Insert\SpecialChar menuseparator
36493 Custom Insets\SpecialChar menuseparator
36499 \begin_layout Standard
36500 The rotation origin can be specified via the inset
36506 Insert\SpecialChar menuseparator
36514 The following positions are possible:
36534 (top), along with meaningful combinations of the four base positions.
36539 means that the rotation origin is at the top left corner of the box.
36540 When no rotation origin is specified, the position
36545 The rotation angle is a number that can be negative that specifies the
36547 The rotation direction is counterclockwise.
36550 \begin_layout Standard
36551 In the following example
36555 was inserted to the
36563 was inserted to the
36570 \begin_layout Standard
36572 \begin_inset Flex Rotatebox
36575 \begin_layout Plain Layout
36576 \begin_inset Argument 1
36579 \begin_layout Plain Layout
36586 \begin_inset Argument 2
36589 \begin_layout Plain Layout
36603 \begin_layout Standard
36604 The box content can also be another box or an inline formula:
36607 \begin_layout Standard
36609 \begin_inset Flex Rotatebox
36612 \begin_layout Plain Layout
36613 \begin_inset Argument 1
36616 \begin_layout Plain Layout
36623 \begin_inset Argument 2
36626 \begin_layout Plain Layout
36633 \begin_inset Box Doublebox
36643 height_special "totalheight"
36648 backgroundcolor "none"
36651 \begin_layout Plain Layout
36663 \begin_inset Flex Rotatebox
36666 \begin_layout Plain Layout
36667 \begin_inset Argument 1
36670 \begin_layout Plain Layout
36677 \begin_inset Argument 2
36680 \begin_layout Plain Layout
36687 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36698 \begin_layout Standard
36699 or an image or table:
36702 \begin_layout Standard
36704 \begin_inset Flex Rotatebox
36707 \begin_layout Plain Layout
36708 \begin_inset Argument 1
36711 \begin_layout Plain Layout
36718 \begin_inset Argument 2
36721 \begin_layout Plain Layout
36728 \begin_inset Graphics
36729 filename clipart/platypus.eps
36740 with a rotated image
36741 \begin_inset Flex Rotatebox
36744 \begin_layout Plain Layout
36745 \begin_inset Argument 2
36748 \begin_layout Plain Layout
36755 \begin_inset Tabular
36756 <lyxtabular version="3" rows="2" columns="2">
36757 <features tabularvalignment="middle">
36758 <column alignment="center" valignment="top">
36759 <column alignment="center" valignment="top">
36761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36764 \begin_layout Plain Layout
36770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36773 \begin_layout Plain Layout
36781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36784 \begin_layout Plain Layout
36790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36793 \begin_layout Plain Layout
36810 \begin_inset Index idx
36813 \begin_layout Plain Layout
36820 \begin_inset Index idx
36823 \begin_layout Plain Layout
36824 Table Customization ! Rotating
36832 \begin_layout Standard
36833 \begin_inset Note Greyedout
36836 \begin_layout Plain Layout
36845 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36847 errors when viewing/exporting the document.
36855 \begin_layout Subsection
36857 \begin_inset Index idx
36860 \begin_layout Plain Layout
36867 \begin_inset Index idx
36870 \begin_layout Plain Layout
36879 \begin_layout Standard
36880 To scale material put it into a
36885 Such a box is inserted via the menu
36887 Insert\SpecialChar menuseparator
36888 Custom Insets\SpecialChar menuseparator
36894 \begin_layout Standard
36899 inset has the mandatory inset
36903 and the optional inset
36907 (inserted via the menu
36909 Insert\SpecialChar menuseparator
36913 Input there the horizontal and vertical scale factor, respectively.
36918 inset is used, the horizontal factor will also be used as the vertical
36922 \begin_layout Standard
36923 To get for example the double text size, compared to the document text size,
36934 \begin_inset Flex Scalebox
36937 \begin_layout Plain Layout
36938 \begin_inset Argument 1
36941 \begin_layout Plain Layout
36955 \begin_layout Standard
36973 \begin_inset Flex Scalebox
36976 \begin_layout Plain Layout
36977 \begin_inset Argument 1
36980 \begin_layout Plain Layout
36987 \begin_inset Argument 2
36990 \begin_layout Plain Layout
37004 \begin_layout Standard
37005 If the scaling factor is negative, the box content will be mirrored.
37022 can be used to create mirror writing:
37023 \begin_inset Flex Scalebox
37026 \begin_layout Plain Layout
37027 \begin_inset Argument 1
37030 \begin_layout Plain Layout
37037 \begin_inset Argument 2
37040 \begin_layout Plain Layout
37054 \begin_layout Standard
37072 \begin_inset Flex Scalebox
37075 \begin_layout Plain Layout
37076 \begin_inset Argument 1
37079 \begin_layout Plain Layout
37086 \begin_inset Argument 2
37089 \begin_layout Plain Layout
37103 \begin_layout Standard
37110 Insert\SpecialChar menuseparator
37111 Custom Insets\SpecialChar menuseparator
37137 \begin_layout Standard
37138 \begin_inset Note Greyedout
37141 \begin_layout Plain Layout
37150 inset is empty or contains other characters than numbers you will get LaTeX
37151 errors when viewing/exporting the document.
37159 \begin_layout Standard
37160 \begin_inset VSpace bigskip
37169 Insert\SpecialChar menuseparator
37170 Custom Insets\SpecialChar menuseparator
37173 ) is used to scale the content to a defined width and height.
37178 inset has the mandatory inset
37182 and the optional inset
37186 (inserted via the menu
37188 Insert\SpecialChar menuseparator
37192 Input there the width and height, respectively, as value with a unit.
37194 \begin_inset CommandInset ref
37196 reference "tab:Units"
37200 lists the possible units.
37201 If there is an exclamation mark
37205 in of of the two insets, the size is set so that the aspect ratio of the
37206 box content is kept.
37211 inset is used an exclamation mark will internally be used for the height.
37214 \begin_layout Standard
37232 \begin_inset Flex Resizebox
37235 \begin_layout Plain Layout
37236 \begin_inset Argument 1
37239 \begin_layout Plain Layout
37246 \begin_inset Argument 2
37249 \begin_layout Plain Layout
37261 \begin_inset Newline newline
37285 \begin_inset Flex Resizebox
37288 \begin_layout Plain Layout
37289 \begin_inset Argument 1
37292 \begin_layout Plain Layout
37299 \begin_inset Argument 2
37302 \begin_layout Plain Layout
37316 \begin_layout Standard
37317 \begin_inset Note Greyedout
37320 \begin_layout Plain Layout
37329 inset is empty or contains an invalid unit you will get LaTeX errors when
37330 viewing/exporting the document.
37338 \begin_layout Standard
37339 \begin_inset VSpace bigskip
37345 \begin_layout Standard
37346 The boxes can be combined in any order.
37355 which is in turn inside a
37362 \begin_layout Standard
37365 \begin_inset Flex Rotatebox
37368 \begin_layout Plain Layout
37369 \begin_inset Argument 1
37372 \begin_layout Plain Layout
37379 \begin_inset Argument 2
37382 \begin_layout Plain Layout
37389 \begin_inset Flex Resizebox
37392 \begin_layout Plain Layout
37393 \begin_inset Argument 1
37396 \begin_layout Plain Layout
37403 \begin_inset Flex Reflectbox
37406 \begin_layout Plain Layout
37425 \begin_layout Standard
37427 Images, tables, and inline formulas are allowed as box content:
37430 \begin_layout Standard
37433 \begin_inset Flex Resizebox
37436 \begin_layout Plain Layout
37437 \begin_inset Argument 1
37440 \begin_layout Plain Layout
37447 \begin_inset Flex Reflectbox
37450 \begin_layout Plain Layout
37451 \begin_inset Graphics
37452 filename clipart/platypus.eps
37469 \begin_inset Flex Resizebox
37472 \begin_layout Plain Layout
37473 \begin_inset Argument 1
37476 \begin_layout Plain Layout
37483 \begin_inset Flex Reflectbox
37486 \begin_layout Plain Layout
37487 \begin_inset Tabular
37488 <lyxtabular version="3" rows="2" columns="2">
37489 <features tabularvalignment="middle">
37490 <column alignment="center" valignment="top">
37491 <column alignment="center" valignment="top">
37493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37496 \begin_layout Plain Layout
37502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37505 \begin_layout Plain Layout
37513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37516 \begin_layout Plain Layout
37522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37525 \begin_layout Plain Layout
37547 \begin_inset Flex Resizebox
37550 \begin_layout Plain Layout
37551 \begin_inset Argument 1
37554 \begin_layout Plain Layout
37561 \begin_inset Flex Reflectbox
37564 \begin_layout Plain Layout
37565 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37579 \begin_inset Index idx
37582 \begin_layout Plain Layout
37589 \begin_inset Index idx
37592 \begin_layout Plain Layout
37593 Table Customization ! Scaling
37601 \begin_layout Standard
37602 When the global formula style
37606 is used in the document
37610 \begin_layout Plain Layout
37612 \begin_inset Quotes eld
37616 \begin_inset Quotes erd
37619 is added to the document class options.
37624 , display style formulas can also be scaled.
37627 \begin_layout Chapter
37628 Objects Surrounded by Text
37629 \begin_inset Index idx
37632 \begin_layout Plain Layout
37641 \begin_layout Section
37643 \begin_inset CommandInset label
37645 name "sec:Wrap-Floats"
37650 \begin_inset Index idx
37653 \begin_layout Plain Layout
37654 Floats ! Wrap Floats
37660 \begin_inset Index idx
37663 \begin_layout Plain Layout
37664 Surrounded by text ! Wrap Floats
37672 \begin_layout Standard
37673 \begin_inset Wrap figure
37680 \begin_layout Plain Layout
37681 \begin_inset Graphics
37682 filename clipart/mobius.eps
37684 scaleBeforeRotation
37685 rotateOrigin center
37692 \begin_layout Plain Layout
37693 \begin_inset Caption Standard
37695 \begin_layout Plain Layout
37696 \begin_inset CommandInset label
37698 name "fig:This-is-a"
37702 This is a figure wrap float.
37712 This float type is used if you want to wrap text around a figure or table
37713 so that it only occupies some fraction of the column width.
37714 It can be inserted using the menu
37716 Insert\SpecialChar menuseparator
37717 Floats\SpecialChar menuseparator
37719 \begin_inset space ~
37723 \begin_inset space ~
37731 \begin_inset space ~
37735 \begin_inset space ~
37740 if the \SpecialChar LaTeX
37746 \begin_inset Index idx
37749 \begin_layout Plain Layout
37751 -packages ! wrapfig
37760 \begin_layout Plain Layout
37761 Installing a \SpecialChar LaTeX
37762 -package is explained it in the
37766 \begin_inset space ~
37776 The settings of the float can be modified by right-clicking on the float
37778 The mandatory settings are the float
37791 that specifies how much the float is set into the paragraph
37792 \begin_inset space \thinspace{}
37796 \begin_inset space \thinspace{}
37799 page margin, and the
37802 \begin_inset space ~
37807 that specifies how many text lines the float will approximately need.
37808 The line span is often hard to approximate; so it is better only to use
37809 it when you encounter float placement problems.
37810 You can furthermore decide if \SpecialChar LaTeX
37811 is allowed to let the float float within
37812 the paragraph or to surrounding paragraphs.
37814 \begin_inset space ~
37818 \begin_inset CommandInset ref
37820 reference "fig:This-is-a"
37824 is an example text wrap float with a width of 40
37825 \begin_inset space \thinspace{}
37829 \begin_inset space \thinspace{}
37832 cm overhang, set to the left.
37835 \begin_layout Standard
37836 \begin_inset Note Greyedout
37839 \begin_layout Plain Layout
37845 \begin_inset space ~
37848 wrap float floats are fragile! E.
37849 \begin_inset space \thinspace{}
37853 \begin_inset space \space{}
37856 having a figure too close to the bottom of the page can mess things up in
37857 such a way that the float does not appear in the output or that it is placed
37858 over some other text.
37866 \begin_layout Standard
37867 In general, the following applies for wrap floats:
37870 \begin_layout Itemize
37871 They should not be placed in paragraphs that run over a page break.
37872 That means that wrap floats are better inserted in their exact place when
37873 the document is almost finished and you are able to estimate where page
37874 breaks will appear.
37877 \begin_layout Itemize
37878 They should either be placed in their own paragraph before the paragraph
37879 where they should wrap into or within a paragraph.
37882 \begin_layout Itemize
37883 In consecutive paragraphs they may cause troubles, so ensure that there
37884 is a text paragraph between them as separator.
37887 \begin_layout Itemize
37888 They are not allowed in section headings or tables.
37891 \begin_layout Itemize
37892 Their numbering and referencing works as described in chap.
37893 \begin_inset space \thinspace{}
37897 \begin_inset CommandInset ref
37899 reference "chap:Floats"
37906 \begin_layout Section
37907 Surrounded Fixed Objects
37908 \begin_inset Index idx
37911 \begin_layout Plain Layout
37912 Surrounded by text ! Fixed objects
37920 \begin_layout Standard
37921 The wrap floats described in sec.
37922 \begin_inset space \thinspace{}
37926 \begin_inset CommandInset ref
37928 reference "sec:Wrap-Floats"
37932 have these positions in the paragraph:
37935 \begin_layout Standard
37938 \begin_inset Tabular
37939 <lyxtabular version="3" rows="2" columns="2">
37940 <features tabularvalignment="middle">
37941 <column alignment="center" valignment="top">
37942 <column alignment="center" valignment="top">
37944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37947 \begin_layout Plain Layout
37950 arg "dialog-show-new-inset graphics"
37958 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37961 \begin_layout Plain Layout
37969 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37972 \begin_layout Plain Layout
37978 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37981 \begin_layout Plain Layout
37993 \begin_inset Tabular
37994 <lyxtabular version="3" rows="2" columns="2">
37995 <features tabularvalignment="middle">
37996 <column alignment="center" valignment="top">
37997 <column alignment="center" valignment="top">
37999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38002 \begin_layout Plain Layout
38008 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38011 \begin_layout Plain Layout
38014 arg "dialog-show-new-inset graphics"
38024 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38027 \begin_layout Plain Layout
38033 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38036 \begin_layout Plain Layout
38050 \begin_layout Standard
38051 To get an object exactly at the position where it is inserted, for example
38052 to get one of these positions:
38053 \begin_inset VSpace defskip
38059 \begin_layout Standard
38062 \begin_inset Tabular
38063 <lyxtabular version="3" rows="2" columns="2">
38064 <features tabularvalignment="middle">
38065 <column alignment="center" valignment="top">
38066 <column alignment="center" valignment="top">
38068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38071 \begin_layout Plain Layout
38077 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38080 \begin_layout Plain Layout
38088 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38091 \begin_layout Plain Layout
38094 arg "dialog-show-new-inset graphics"
38102 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38105 \begin_layout Plain Layout
38117 \begin_inset Tabular
38118 <lyxtabular version="3" rows="2" columns="2">
38119 <features tabularvalignment="middle">
38120 <column alignment="center" valignment="top">
38121 <column alignment="center" valignment="top">
38123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38126 \begin_layout Plain Layout
38132 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38135 \begin_layout Plain Layout
38143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38146 \begin_layout Plain Layout
38152 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38155 \begin_layout Plain Layout
38158 arg "dialog-show-new-inset graphics"
38172 \begin_inset Tabular
38173 <lyxtabular version="3" rows="2" columns="3">
38174 <features tabularvalignment="middle">
38175 <column alignment="center" valignment="top">
38176 <column alignment="center" valignment="top">
38177 <column alignment="center" valignment="top">
38179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38182 \begin_layout Plain Layout
38188 <cell alignment="center" valignment="top" topline="true" usebox="none">
38191 \begin_layout Plain Layout
38194 arg "dialog-show-new-inset graphics"
38202 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38205 \begin_layout Plain Layout
38213 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38216 \begin_layout Plain Layout
38222 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38225 \begin_layout Plain Layout
38231 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38234 \begin_layout Plain Layout
38246 \begin_inset Tabular
38247 <lyxtabular version="3" rows="2" columns="3">
38248 <features tabularvalignment="middle">
38249 <column alignment="center" valignment="top">
38250 <column alignment="center" valignment="top">
38251 <column alignment="center" valignment="top">
38253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38256 \begin_layout Plain Layout
38262 <cell alignment="center" valignment="top" topline="true" usebox="none">
38265 \begin_layout Plain Layout
38271 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38274 \begin_layout Plain Layout
38282 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38285 \begin_layout Plain Layout
38291 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38294 \begin_layout Plain Layout
38297 arg "dialog-show-new-inset graphics"
38305 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38308 \begin_layout Plain Layout
38322 \begin_layout Standard
38325 \begin_inset Tabular
38326 <lyxtabular version="3" rows="3" columns="2">
38327 <features tabularvalignment="middle">
38328 <column alignment="center" valignment="top">
38329 <column alignment="center" valignment="top">
38331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38334 \begin_layout Plain Layout
38340 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38343 \begin_layout Plain Layout
38351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38354 \begin_layout Plain Layout
38357 arg "dialog-show-new-inset graphics"
38365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38368 \begin_layout Plain Layout
38376 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38379 \begin_layout Plain Layout
38385 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38388 \begin_layout Plain Layout
38400 \begin_inset Tabular
38401 <lyxtabular version="3" rows="3" columns="3">
38402 <features tabularvalignment="middle">
38403 <column alignment="center" valignment="top">
38404 <column alignment="center" valignment="top">
38405 <column alignment="center" valignment="top">
38407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38410 \begin_layout Plain Layout
38416 <cell alignment="center" valignment="top" topline="true" usebox="none">
38419 \begin_layout Plain Layout
38425 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38428 \begin_layout Plain Layout
38436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38439 \begin_layout Plain Layout
38445 <cell alignment="center" valignment="top" usebox="none">
38448 \begin_layout Plain Layout
38451 arg "dialog-show-new-inset graphics"
38459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38462 \begin_layout Plain Layout
38470 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38473 \begin_layout Plain Layout
38479 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38482 \begin_layout Plain Layout
38488 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38491 \begin_layout Plain Layout
38503 \begin_inset Tabular
38504 <lyxtabular version="3" rows="3" columns="2">
38505 <features tabularvalignment="middle">
38506 <column alignment="center" valignment="top">
38507 <column alignment="center" valignment="top">
38509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38512 \begin_layout Plain Layout
38518 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38521 \begin_layout Plain Layout
38529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38532 \begin_layout Plain Layout
38538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38541 \begin_layout Plain Layout
38544 arg "dialog-show-new-inset graphics"
38554 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38557 \begin_layout Plain Layout
38563 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38566 \begin_layout Plain Layout
38580 \begin_layout Standard
38582 you can use the \SpecialChar LaTeX
38588 \begin_inset Index idx
38591 \begin_layout Plain Layout
38593 -packages ! picinpar
38599 Here is an example:
38602 \begin_layout Standard
38606 \begin_layout Plain Layout
38616 \begin_inset Note Note
38619 \begin_layout Plain Layout
38620 The following section will only be displayed when the \SpecialChar LaTeX
38633 \begin_layout Standard
38637 \begin_layout Plain Layout
38641 begin{window}[2,c,{
38647 \begin_inset Graphics
38648 filename clipart/mobius.eps
38651 scaleBeforeRotation
38652 rotateOrigin center
38660 \begin_layout Plain Layout
38665 \begin_layout Plain Layout
38674 It was in the spring of the year 1894 that all London was interested, and
38675 the fashionable world dismayed, by the murder of the Honourable Ronald
38676 Adair under most unusual and inexplicable circumstances.
38677 The public has already learned those particulars of the crime which
38683 \begin_layout Plain Layout
38694 came out in the police investigation, but a good deal was suppressed upon
38695 that occasion, since the case for the prosecution was so overwhelmingly
38696 strong that it was not necessary to bring forward all the facts.
38697 Only now, at the end of nearly ten years, am I allowed to supply those
38698 missing links which make up the whole of that remarkable chain.
38704 \begin_layout Plain Layout
38716 \begin_layout Standard
38720 \begin_layout Plain Layout
38729 Footnote of the paragraph with the fixed object.
38733 \begin_layout Plain Layout
38743 \begin_layout Standard
38744 Surrounded fixed objects are used to let text float around them, at which
38745 the object's position in the paragraph can be determined by the number
38747 In contrary to floats is it not possible to have a numbered caption.
38750 \begin_layout Standard
38751 A fixed object is inserted by adding the command
38754 \begin_layout Standard
38759 begin{window}[2,c,{
38762 \begin_layout Standard
38763 as \SpecialChar TeX
38764 Code at the beginning of the paragraph.
38765 The first parameter in the bracket, here '2', defines the number of lines
38766 above the object, the second, here 'c', the position of the object.
38767 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38768 Behind the command you insert the object.
38769 In this example an image with a width of 40
38770 \begin_inset space \thinspace{}
38773 % of the text column width was inserted.
38774 The object can also be a table, a box or an equation.
38775 Behind the object the command
38778 \begin_layout Standard
38781 },description text]
38782 \begin_inset Newline newline
38788 \begin_layout Standard
38791 \begin_inset Quotes eld
38799 \begin_inset Quotes erd
38802 is in the second line.
38803 The description text is optional.
38804 The text surrounding the object must be in the same paragraph as the object,
38805 so it must begin directly after the
38810 At the end of the paragraph insert the command:
38813 \begin_layout Standard
38821 \begin_layout Standard
38822 Within a paragraph with a fixed object, you cannot insert footnotes in the
38824 You have to use instead the command
38830 inside the paragraph and outside the command
38836 as described in sec.
38837 \begin_inset space \thinspace{}
38841 \begin_inset CommandInset ref
38843 reference "sec:Footnotes"
38850 \begin_layout Standard
38854 \begin_layout Plain Layout
38864 \begin_inset Note Note
38867 \begin_layout Plain Layout
38868 The following will be displayed when the \SpecialChar LaTeX
38881 \begin_layout Standard
38882 You need to install the \SpecialChar LaTeX
38887 to see the following part of this section in the output.
38890 \begin_layout Standard
38894 \begin_layout Plain Layout
38906 \begin_layout Section
38908 \begin_inset Index idx
38911 \begin_layout Plain Layout
38918 \begin_inset Index idx
38921 \begin_layout Plain Layout
38922 Surrounded by text ! Initials
38930 \begin_layout Standard
38931 To use initials, you must have the \SpecialChar LaTeX
38937 \begin_inset Index idx
38940 \begin_layout Plain Layout
38942 -packages ! lettrine
38947 installed and use the module
38951 in your document (menu
38953 Document\SpecialChar menuseparator
38954 Settings\SpecialChar menuseparator
38958 To insert an initial, use the style
38963 This style has a mandatory and two optional arguments.
38964 The arguments are inserted via the
38969 The mandatory argument
38973 contains the letter(s) that is the initial, the argument
38976 \begin_inset space ~
38980 \begin_inset space ~
38985 contains the rest of the word or text of the initial letter(s).
38990 contains parameters to modify the initial.
38991 For more information about the possible parameters see the documentation
38997 \begin_inset CommandInset citation
39004 The style itself contains the text that is surrounding the initial.
39005 The usual style is hereby that the word whose first letter is the initial,
39013 \begin_layout Standard
39014 Here are some examples:
39017 \begin_layout Standard
39021 \begin_layout Plain Layout
39031 \begin_inset Note Note
39034 \begin_layout Plain Layout
39035 The following section will only be displayed when the \SpecialChar LaTeX
39048 \begin_layout Enumerate
39049 No optional argument, the initial is the letter 'I' in the math font
39050 \begin_inset Formula $\mathfrak{Fraktur}$
39057 \begin_layout Initial
39058 \begin_inset Argument 2
39061 \begin_layout Plain Layout
39062 \begin_inset Formula $\mathfrak{I}$
39071 \begin_inset Argument 3
39074 \begin_layout Plain Layout
39080 was in the spring of the year 1894 that all London was interested, and
39081 the fashionable world dismayed, by the murder of the Honourable Ronald
39082 Adair under most unusual and inexplicable circumstances.
39083 The public has already learned those particulars of the crime which came
39084 out in the police investigation, but a good deal was suppressed upon that
39085 occasion, since the case for the prosecution was so overwhelmingly strong
39086 that it was not necessary to bring forward all the facts.
39087 \begin_inset Newpage newpage
39094 \begin_layout Enumerate
39095 Only one line is surrounding the initial, which is formed by two letters
39096 in standard font and no text is printed in small caps:
39100 \begin_layout Initial
39101 \begin_inset Argument 1
39104 \begin_layout Plain Layout
39111 \begin_inset Argument 2
39114 \begin_layout Plain Layout
39120 was in the spring of the year 1894 that all London was interested, and
39121 the fashionable world dismayed, by the murder of the Honourable Ronald
39122 Adair under most unusual and inexplicable circumstances.
39123 The public has already learned those particulars of the crime which came
39124 out in the police investigation, but a good deal was suppressed upon that
39125 occasion, since the case for the prosecution was so overwhelmingly strong
39126 that it was not necessary to bring forward all the facts.
39130 \begin_layout Enumerate
39131 Magenta, hanging initial over 3
39132 \begin_inset space ~
39135 lines in the math font
39136 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39140 \begin_inset Quotes eld
39143 t was in the spring
39144 \begin_inset Quotes erd
39151 ; to color the initial, you must insert this command before the initial:
39152 \begin_inset Newline newline
39166 \begin_inset Newline newline
39174 \begin_inset Quotes eld
39178 \begin_inset Quotes erd
39182 \begin_inset Quotes eld
39186 \begin_inset Quotes erd
39190 \begin_inset Quotes eld
39194 \begin_inset Quotes erd
39198 \begin_inset Quotes eld
39202 \begin_inset Quotes erd
39206 \begin_inset Quotes eld
39210 \begin_inset Quotes erd
39214 \begin_inset Quotes eld
39218 \begin_inset Quotes erd
39222 \begin_inset Quotes eld
39226 \begin_inset Quotes erd
39230 \begin_inset Quotes eld
39234 \begin_inset Quotes erd
39237 , and add this command to the document preamble:
39238 \begin_inset Newline newline
39245 @ifundefined{textcolor}
39246 \begin_inset Newline newline
39250 \begin_inset space ~
39255 usepackage{color}}{}
39259 \begin_layout Standard
39263 \begin_layout Plain Layout
39277 \begin_inset Note Note
39280 \begin_layout Plain Layout
39281 makes the initial magenta
39289 \begin_layout Initial
39290 \begin_inset Argument 1
39293 \begin_layout Plain Layout
39294 lines=3, lhang=0.33, loversize=0.25
39300 \begin_inset Argument 2
39303 \begin_layout Plain Layout
39304 \begin_inset Formula $\mathcal{I}$
39313 \begin_inset Argument 3
39316 \begin_layout Plain Layout
39317 t was in the spring
39322 of the year 1894 that all London was interested, and the fashionable world
39323 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39324 and inexplicable circumstances.
39325 The public has already learned those particulars of the crime which came
39326 out in the police investigation, but a good deal was suppressed upon that
39327 occasion, since the case for the prosecution was so overwhelmingly strong
39328 that it was not necessary to bring forward all the facts.
39332 \begin_layout Standard
39336 \begin_layout Plain Layout
39346 \begin_inset Note Note
39349 \begin_layout Plain Layout
39350 The following will be displayed when the \SpecialChar LaTeX
39363 \begin_layout Standard
39364 You need to install the \SpecialChar LaTeX
39369 to see the following part of this section in the output.
39372 \begin_layout Standard
39376 \begin_layout Plain Layout
39388 \begin_layout Chapter
39389 External Document Parts
39390 \begin_inset Index idx
39393 \begin_layout Plain Layout
39394 External Document Parts
39402 \begin_layout Standard
39405 Insert\SpecialChar menuseparator
39408 you can insert external material into your document.
39412 \begin_layout Description
39414 \begin_inset space ~
39417 Document Another \SpecialChar LyX
39418 document; its content is directly inserted to your document.
39421 \begin_layout Description
39423 \begin_inset space ~
39426 Text A text document; each line is inserted in your document as a separate
39430 \begin_layout Description
39432 \begin_inset space ~
39436 \begin_inset space ~
39440 \begin_inset space ~
39443 Lines A text document; text lines are inserted in your document continuously
39444 but an empty text line creates a new paragraph.
39447 \begin_layout Description
39449 \begin_inset space ~
39452 Material Files in various formats.
39455 \begin_layout Description
39457 \begin_inset space ~
39460 Document \SpecialChar LyX
39461 or \SpecialChar LaTeX
39465 \begin_layout Section
39467 \begin_inset Index idx
39470 \begin_layout Plain Layout
39471 External Document Parts ! External Material
39479 \begin_layout Standard
39480 The external material feature allows you to insert files into your document
39481 without converting them to a format that can be read by the document output
39484 takes care of the necessary conversions.
39485 This is similar to images that can be inserted in various image formats
39486 in \SpecialChar LyX
39488 When you have enabled Instant Preview in \SpecialChar LyX
39489 's preferences under
39492 \begin_inset space ~
39496 \begin_inset space ~
39499 feel\SpecialChar menuseparator
39502 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39506 \begin_layout Standard
39507 External material can be inserted via the
39511 dialog that is accessible with the menu
39513 Insert\SpecialChar menuseparator
39514 File\SpecialChar menuseparator
39516 \begin_inset space ~
39522 Currently the following file types (
39529 \begin_layout Description
39531 \begin_inset space ~
39534 diagram This template supports chess position diagrams made with the program
39538 \begin_inset CommandInset href
39541 target "http://en.wikipedia.org/wiki/XBoard"
39550 \begin_layout Description
39552 \begin_inset space ~
39555 diagram This template supports diagrams created with the program
39558 \begin_inset CommandInset href
39561 target "http://en.wikipedia.org/wiki/Dia_(software)"
39570 \begin_layout Description
39571 Spreadsheet With this template you can insert spreadsheets
39572 \begin_inset space \thinspace{}
39576 \begin_inset space \thinspace{}
39579 tables in the format of
39582 \begin_inset CommandInset href
39585 target "http://en.wikipedia.org/wiki/Gnumeric"
39592 \begin_inset CommandInset href
39594 name "OpenDocument"
39595 target "http://en.wikipedia.org/wiki/OpenDocument"
39600 \begin_inset CommandInset href
39602 name "Microsoft Office XML"
39603 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39608 \begin_inset CommandInset href
39610 name "Office Open XML"
39611 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39616 For this feature \SpecialChar LyX
39617 must have found the program
39621 during its configuration.
39622 This program is part of Gnumeric, so that you must have Gnumeric installed,
39623 also if you don't have tables in the Gnumeric format.
39624 For examples and possible limitations have a look at \SpecialChar LyX
39632 \begin_layout Description
39634 \begin_inset space ~
39638 \begin_inset space ~
39641 music This template is used for music notation typeset with the program
39642 \begin_inset Newline linebreak
39648 \begin_inset CommandInset href
39651 target "http://en.wikipedia.org/wiki/LilyPond"
39658 For \SpecialChar LyX
39659 's extended support for LilyPond have a look at \SpecialChar LyX
39667 \begin_layout Description
39669 \begin_inset space ~
39672 pages With this template you can insert PDF documents to your document.
39673 To specify the range of pages that should be included, use the option
39683 LaTeX and LyX options
39686 The argument of this option is a comma separated list, containing page
39687 numbers (insert as option
39691 ), ranges of page numbers (
39695 ) or any combination.
39696 To insert empty pages use {}.
39698 \begin_inset space \thinspace{}
39702 \begin_inset space ~
39707 pages={3,{},8-11,15}
39709 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39710 Page ranges are specified in the syntax
39719 This selects all pages from
39732 defaults to the first page; omitting
39736 defaults to the last page of the document.
39737 The last page can also be selected with the keyword
39742 (This is only permitted in a page range.) So
39746 will insert all pages of the document and
39750 will insert all pages in reverse order.
39751 If the pages option is not specified, only the first page of the PDF is
39753 \begin_inset Newline newline
39760 inserts the pages with their original size, if this option is not given,
39761 the pages will be resized to fith the width of the page of your document.
39766 you can specify the width and height of the input pages and their rotation.
39767 If another width than 100
39768 \begin_inset space \thinspace{}
39771 Scale% is used, the option
39775 will be overwritten.
39776 For more info and possible options, have a look into the documentation
39777 of the \SpecialChar LaTeX
39783 \begin_inset CommandInset citation
39790 \begin_inset Index idx
39793 \begin_layout Plain Layout
39795 -packages ! pdfpages
39801 \begin_inset Newline newline
39804 To use this template in a
39808 presentation you need to first insert an
39812 environment and in a subsequent paragraph a \SpecialChar TeX
39813 Code box containing the command
39818 setbeamertemplate{background canvas}{}
39821 Then you can insert as many paragraphs containing the PDFPages template
39823 Behind the included PDF pages you can resume the Beamer presentation by
39824 beginning a new frame or by starting a new section.
39825 To avoid stray blank pages prior to the PDF pages, make sure to use the
39830 alignment for the paragraph containing the template.
39831 \begin_inset Newline newline
39834 Here is an included PDF which is rotated by -5°:
39835 \begin_inset External
39837 filename clipart/Abstract.pdf
39838 extra LaTeX "noautoscale, pages=-"
39840 rotateOrigin bottomleft
39847 \begin_layout Description
39849 \begin_inset space ~
39852 image This can be used for bitmap images.
39853 The image can be treated in the
39857 dialog like the images that are usually included via the
39861 dialog as described in section
39862 \begin_inset space ~
39866 \begin_inset CommandInset ref
39868 reference "sec:Graphics-Dialog"
39873 Here is an inserted raster image:
39874 \begin_inset External
39875 template RasterImage
39876 filename clipart/ToolbarEnvBox.png
39883 \begin_layout Description
39885 \begin_inset space ~
39888 graphics This can be used for vector graphics.
39889 The image can be treated in the
39893 dialog like the images that are usually included via the
39897 dialog as described in section
39898 \begin_inset space ~
39902 \begin_inset CommandInset ref
39904 reference "sec:Graphics-Dialog"
39909 Here is an inserted vector graphics:
39910 \begin_inset External
39911 template VectorGraphics
39912 filename clipart/SVG-Drawing.svg
39920 \begin_layout Description
39922 \begin_inset space ~
39925 figure This template supports images created with the program
39928 \begin_inset CommandInset href
39931 target "http://en.wikipedia.org/wiki/Xfig"
39938 \change_inserted 227574939 1473131626
39942 \begin_layout Description
39944 \change_inserted 227574939 1473131628
39946 \begin_inset space ~
39949 figure This experimental template supports
39950 \change_inserted 2047637253 1475533187
39952 \change_inserted 227574939 1473131628
39954 \change_inserted 2047637253 1475533525
39955 that contain text written in \SpecialChar LaTeX
39958 \change_inserted 227574939 1473131628
39960 \change_inserted 2047637253 1475533551
39961 It relies on the PDF/PS+\SpecialChar LaTeX
39963 \change_deleted 2047637253 1475533556
39965 \change_inserted 227574939 1473131628
39967 \begin_inset CommandInset href
39970 target "https://en.wikipedia.org/wiki/Inkscape"
39976 \change_inserted 2047637253 1475534005
39977 As described by the CTAN demonstration package
39985 \begin_layout Quote
39987 \change_inserted 2047637253 1475534064
39991 \begin_inset Quotes eld
39994 PDF+\SpecialChar LaTeX
39996 \begin_inset Quotes erd
39999 option of Inkscape, it is possible to include SVG in documents, in which
40002 This results in uniform text style throughout the document, including text
40003 in images; moreover, \SpecialChar LaTeX
40004 commands may be used in the image’s text, providing
40005 such things as mathematics and references.
40008 \begin_layout Standard
40010 \change_inserted 2047637253 1475534692
40011 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
40014 Of course, you can always embed \SpecialChar LaTeX
40028 into your figure text strings.
40033 documentation package for more information and examples.
40036 \begin_layout Standard
40038 \change_inserted 2047637253 1475534902
40039 It should be noted that while the image takes into account the surrounding
40040 font, its preview in \SpecialChar LyX
40042 Wrapping the external inset in a preview inset gives better results in
40046 \begin_layout Standard
40048 \change_deleted 2047637253 1475534821
40050 \change_inserted 2047637253 1475534913
40052 \change_inserted 227574939 1473131628
40053 works very similarly to Xfig support, except that Inkscape is a more modern
40054 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
40059 \change_inserted 227574939 1473131628
40060 LyX will process the image file in much the same way as it does an Xfig
40061 image, extracting the text into a separate TeX file for the text strings,
40062 and a PDF file for the rest.
40065 \begin_layout Description
40067 \change_inserted 227574939 1473131628
40068 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
40069 with multi-page PDFs, the TeX file will sometimes reference more pages
40070 than the PDF file contains.
40071 This is the version that ships with Ubuntu 16.04.
40072 Its use with LyX can therefore not be recommended, until the bug is fixed
40076 \begin_layout Plain Layout
40078 \change_inserted 227574939 1473131628
40079 A workaround for those who have already SVG figures in their document is,
40080 to manually do the LaTeX+PDF output from Inkscape, edit the
40084 file to remove the erroneous references, and
40090 it directly into LyX, i.e., not use the external-template mechanism:
40093 \begin_layout Plain Layout
40095 \change_inserted 227574939 1473131628
40096 \begin_inset Graphics
40097 filename clipart/workaround.png
40105 \begin_layout Plain Layout
40107 \change_inserted 227574939 1473131628
40108 Here, the child document input inset (
40110 Insert\SpecialChar menuseparator
40111 File\SpecialChar menuseparator
40114 ) was used, which allows you do directly edit the
40118 file in a text editor.
40119 The LaTeX output is based on this edited snippet as re-generation from
40120 the SVG file has been commented out.
40126 \change_deleted 2047637253 1475534230
40130 \begin_layout Standard
40132 \change_deleted 2047637253 1475534225
40133 The reason why we would use this complicated process at all, like in the
40134 case of Xfig, is that it makes the text strings inside the figure of the
40135 same font type and attributes as the surrounding text, which looks so much
40137 With Inkscape, even the
40141 of the font is taken from the surrounding LaTeX document – in Xfig, you
40142 have to set it by hand to be the same.
40143 Of course you can always embed LaTeX modifiers like
40156 into your figure text strings.
40157 \change_inserted 227574939 1473131628
40162 \begin_layout Standard
40163 \begin_inset Float table
40169 \begin_layout Plain Layout
40170 \begin_inset Caption Standard
40172 \begin_layout Plain Layout
40173 \begin_inset CommandInset label
40175 name "tab:Comparison-of-the"
40179 Comparison of the date input methods.
40187 \begin_layout Plain Layout
40189 \begin_inset Tabular
40190 <lyxtabular version="3" rows="4" columns="3">
40191 <features tabularvalignment="middle">
40192 <column alignment="center" valignment="top">
40193 <column alignment="center" valignment="top">
40194 <column alignment="center" valignment="top">
40196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40199 \begin_layout Plain Layout
40205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40208 \begin_layout Plain Layout
40211 Insert\SpecialChar menuseparator
40217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40220 \begin_layout Plain Layout
40232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40235 \begin_layout Plain Layout
40242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40245 \begin_layout Plain Layout
40251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40254 \begin_layout Plain Layout
40255 as \SpecialChar TeX
40263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40266 \begin_layout Plain Layout
40273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40276 \begin_layout Plain Layout
40282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40285 \begin_layout Plain Layout
40293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40296 \begin_layout Plain Layout
40302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40305 \begin_layout Plain Layout
40311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40314 \begin_layout Plain Layout
40333 \begin_layout Standard
40334 When you use the option
40346 dialog, only the path to the inserted file is shown in the output.
40347 \begin_inset Newline newline
40350 External material is displayed in \SpecialChar LyX
40351 either as a box like this:
40352 \begin_inset Graphics
40353 filename clipart/ExternalMaterial.png
40355 scaleBeforeRotation
40359 or as image, depending on the option
40365 LaTeX and LyX options
40370 \begin_layout Standard
40377 manual explains how you can define your own templates.
40380 \begin_layout Section
40382 \begin_inset CommandInset label
40384 name "sec:Child-Documents"
40389 \begin_inset Index idx
40392 \begin_layout Plain Layout
40393 External Document Parts ! Child Documents
40399 \begin_inset Index idx
40402 \begin_layout Plain Layout
40411 \begin_layout Standard
40412 Child documents are used if you have a long document consisting of several
40413 larger parts or sections.
40414 For maintenance it is often useful and sometimes even required to split
40415 the document into several files that can be revised separately.
40416 The different documents are then the so called
40417 \begin_inset Quotes eld
40421 \begin_inset Quotes erd
40424 , and a master document connects them to print the full document or parts
40426 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40428 the bibliography, and labels for cross-references.
40431 \begin_layout Standard
40432 To be able to work on child documents without the need to open their master,
40433 specify in the child document the master in the menu
40435 Document\SpecialChar menuseparator
40436 Settings\SpecialChar menuseparator
40438 \begin_inset space ~
40444 This master document will then be used in the background by \SpecialChar LyX
40446 the child document.
40449 \begin_layout Standard
40450 Included documents are displayed in \SpecialChar LyX
40451 as a box like this:
40452 \begin_inset Graphics
40453 filename clipart/ChildDocument.png
40454 scaleBeforeRotation
40458 To include child documents in a master document use the menu
40460 Insert\SpecialChar menuseparator
40461 File\SpecialChar menuseparator
40463 \begin_inset space ~
40469 A dialog pops up where you can choose between four include methods:
40472 \begin_layout Description
40473 Include You can include \SpecialChar LyX
40474 and \SpecialChar LaTeX
40484 dialog, the included document will be opened in \SpecialChar LyX
40485 in a new file tab so that
40487 \begin_inset Newline newline
40493 \begin_layout Standard
40494 Here is a child document inserted using
40499 \begin_inset CommandInset include
40500 LatexCommand include
40501 filename "DummyDocument1.lyx"
40508 \begin_layout Standard
40509 The section numbering includes the sections of the included files in the
40510 order they are inserted in the master document.
40511 The included example document has for example a subsection that is numbered
40512 as a subsection of this section.
40513 Labels of included documents can be referenced: Subsection
40514 \begin_inset space ~
40518 \begin_inset CommandInset ref
40520 reference "subsec:External-Subsection-1"
40527 \begin_layout Standard
40528 The preamble of the child document is ignored; only the preamble of the
40529 master document is used.
40530 Branches in child documents will be ignored by the master document when
40531 the master document does not have a branch with the same name.
40532 Included documents are inserted starting on a new page and ending with
40536 \begin_layout Standard
40537 \begin_inset Note Greyedout
40540 \begin_layout Plain Layout
40545 If you have included a \SpecialChar LyX
40546 or \SpecialChar LaTeX
40547 file, you are warned when you export/view the
40548 document in case the child document uses another document class than the
40549 master document as this will lead to unexpected outputs.
40557 \begin_layout Description
40558 Input This method is very similar to the Include method.
40559 The differences are:
40563 \begin_layout Itemize
40564 Input files don't start with a new page and don't end with a page break.
40567 \begin_layout Itemize
40568 Input files can be previewed in \SpecialChar LyX
40572 \begin_inset space ~
40577 is enabled in \SpecialChar LyX
40578 's preferences under
40581 \begin_inset space ~
40585 \begin_inset space ~
40588 feel\SpecialChar menuseparator
40594 \begin_layout Itemize
40595 You cannot exclude Input files via the menu
40597 Document\SpecialChar menuseparator
40598 Settings\SpecialChar menuseparator
40605 \begin_layout Standard
40606 Here is a child document inserted using
40611 \begin_inset CommandInset include
40613 filename "DummyDocument2.lyx"
40620 \begin_layout Description
40621 Verbatim With this method any text file can be included.
40622 The file is shown in the output with its source code; no command used in
40623 the text is invoked.
40624 You can use the option
40626 Mark spaces in output
40628 that displays the character
40629 \begin_inset Quotes eld
40636 \begin_layout Plain Layout
40646 \begin_inset Quotes erd
40649 for every space character in the source code.
40650 The difference from the method via the menu
40652 Insert\SpecialChar menuseparator
40653 File\SpecialChar menuseparator
40655 \begin_inset space ~
40660 is that the document content is not shown in \SpecialChar LyX
40664 \begin_layout Standard
40665 Here is a child document inserted as Verbatim:
40666 \begin_inset CommandInset include
40667 LatexCommand verbatiminput
40668 filename "DummyTextDocument.txt"
40673 \begin_inset VSpace bigskip
40676 Here is a child document inserted as Verbatim using the
40678 Mark spaces in output
40681 \begin_inset CommandInset include
40682 LatexCommand verbatiminput*
40683 filename "DummyTextDocument.txt"
40690 \begin_layout Standard
40691 \begin_inset VSpace bigskip
40697 \begin_layout Standard
40698 \begin_inset Note Greyedout
40701 \begin_layout Plain Layout
40706 As you can see in the examples above, the text of the documents included
40711 is not broken at the end of the document lines.
40719 \begin_layout Description
40720 Listings This type is described in chapter
40721 \begin_inset space ~
40725 \begin_inset CommandInset ref
40727 reference "cha:Program-Code-Listings"
40734 \begin_layout Standard
40735 \begin_inset Note Greyedout
40738 \begin_layout Plain Layout
40743 Including the same document twice in a document using different methods
40744 could cause \SpecialChar LaTeX
40753 \begin_layout Standard
40754 If you want to view/export only selected children of your master document,
40755 either because you want to save compiling time or because you want to distribut
40756 e single chapters of the book you are just writing, you can exclude children
40758 This is done via the menu
40760 Document\SpecialChar menuseparator
40761 Settings\SpecialChar menuseparator
40765 You can exclude\SpecialChar breakableslash
40766 include children by double-clicking on the
40770 column of the respective child document in the list (note that this only
40771 works for documents embedded via
40772 \begin_inset Quotes eld
40776 \begin_inset Quotes erd
40780 \begin_inset Quotes eld
40784 \begin_inset Quotes erd
40790 Maintain counters and references
40792 is enabled, \SpecialChar LyX
40793 will assure that all page numbers, references etc.
40794 \begin_inset space ~
40797 are correct as if the whole document was processed.
40798 This is useful if you want the selected sub-documents to look exactly as
40799 in the context of the whole document.
40800 However, \SpecialChar LyX
40801 needs to process the whole document in the background for this
40803 So if you want to save compile time and if counters and references do not
40804 need to be correct, disable this checkbox.
40807 \begin_layout Standard
40808 Alternatively, you can put each included file into a branch.
40812 \begin_layout Plain Layout
40813 Branches are described in section
40817 of the \SpecialChar LyX
40827 By enabling\SpecialChar breakableslash
40828 disabling branches you can decide which included files will
40829 appear in the output.
40830 This has the advantage that it also works with Input'ed sub-documents.
40831 However, counters and references will not be maintained with this approach.
40834 \begin_layout Chapter
40835 Program Code Listings
40836 \begin_inset CommandInset label
40838 name "cha:Program-Code-Listings"
40843 \begin_inset Index idx
40846 \begin_layout Plain Layout
40853 \begin_inset Index idx
40856 \begin_layout Plain Layout
40863 \begin_inset Index idx
40866 \begin_layout Plain Layout
40875 \begin_layout Standard
40876 To include and typeset program code you can use the
40880 inset that can be inserted via the menu
40882 Insert\SpecialChar menuseparator
40886 The \SpecialChar LaTeX
40892 \begin_inset Index idx
40895 \begin_layout Plain Layout
40897 -packages ! listings
40902 provides a powerful and flexible way to insert program source code into
40906 \begin_layout Standard
40907 Right-clicking on a listings inset opens the context menu containing where
40908 you can set the listings format.
40911 \begin_layout Standard
40912 By default, a listing starts a new paragraph in the output.
40913 The placement option
40916 \begin_inset space ~
40921 prints the listing inline like this:
40922 \begin_inset listings
40923 lstparams "language={C++}"
40927 \begin_layout Plain Layout
40935 \begin_inset Newline newline
40942 creates a listings float where you can specify the placement options
40943 \begin_inset Quotes eld
40951 \begin_inset Quotes erd
40955 \begin_inset Quotes eld
40963 \begin_inset Quotes erd
40967 \begin_inset Quotes eld
40975 \begin_inset Quotes erd
40979 \begin_inset Quotes eld
40987 \begin_inset Quotes erd
40990 corresponding to the float placement options described in section
40991 \begin_inset space ~
40995 \begin_inset CommandInset ref
40997 reference "sec:Float-Placement"
41002 The placement options can be mixed and are inserted without any separation,
41004 \begin_inset space \thinspace{}
41008 \begin_inset space \space{}
41012 \begin_inset Quotes eld
41020 \begin_inset Quotes erd
41025 \begin_inset Quotes eld
41029 \begin_inset Quotes erd
41032 has sometimes no effect, but you don't need to use the
41036 option in this case as also non-float listings can have captions and be
41040 \begin_layout Standard
41041 You can add captions to listings with the menu
41043 Insert\SpecialChar menuseparator
41047 Listings can be referenced like floats: Listing
41048 \begin_inset space ~
41052 \begin_inset CommandInset ref
41054 reference "lst:Example-Listing"
41059 A list of listings which contains all listings with captions can be created
41062 Insert\SpecialChar menuseparator
41064 \begin_inset space ~
41068 \begin_inset space ~
41071 TOC\SpecialChar menuseparator
41075 The list entries are the listing caption and the listing number.
41078 \begin_layout Standard
41079 \begin_inset listings
41080 lstparams "language=Python"
41084 \begin_layout Plain Layout
41086 \begin_inset Caption Standard
41088 \begin_layout Plain Layout
41089 \begin_inset CommandInset label
41091 name "lst:Example-Listing"
41095 Example Listing float
41100 # Example listing float
41103 \begin_layout Plain Layout
41108 \begin_layout Plain Layout
41110 'this is a python function'
41113 \begin_layout Plain Layout
41123 \begin_layout Standard
41124 When you have set a programming language in the listings dialog, the keywords
41125 of this language will be recognized and specially typeset in the output.
41126 In the example listings the Python keyword
41127 \begin_inset Quotes eld
41131 \begin_inset Quotes erd
41134 is recognized and printed bold in the output.
41137 \begin_layout Standard
41138 \begin_inset Note Greyedout
41141 \begin_layout Plain Layout
41146 If you don't get bold keywords when using typewriter fonts, your
41150 font probably doesn't provide a bold shape.
41151 In this case select a different one in the menu
41153 Document\SpecialChar menuseparator
41154 Settings\SpecialChar menuseparator
41166 provide bold shapes.)
41174 \begin_layout Standard
41178 \begin_inset space ~
41183 of the listings dialog you can specify the line numbering style.
41184 You can insert a number to specify which lines are numbered in the field
41191 \begin_inset space \thinspace{}
41195 \begin_inset space \space{}
41199 \begin_inset Quotes eld
41203 \begin_inset Quotes erd
41206 , only every 3rd line will be numbered.
41209 \begin_layout Standard
41210 You can furthermore specify a range of lines; only these will then appear
41214 Extended character table
41216 should be used when you use national characters like the German umlauts
41218 \begin_inset Newline newline
41221 Here is an example listing with left line numbering, step
41222 \begin_inset Quotes eld
41226 \begin_inset Quotes erd
41230 \begin_inset Quotes eld
41234 \begin_inset Quotes erd
41238 \begin_inset Quotes eld
41241 Extended character table
41242 \begin_inset Quotes erd
41246 \begin_inset Quotes eld
41250 \begin_inset space ~
41254 \begin_inset space ~
41258 \begin_inset Quotes erd
41262 \begin_inset space \thinspace{}
41266 \begin_inset space \thinspace{}
41272 \begin_layout Standard
41273 \begin_inset listings
41274 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41278 \begin_layout Plain Layout
41283 \begin_layout Plain Layout
41285 'this is a python function'
41288 \begin_layout Plain Layout
41293 \begin_layout Plain Layout
41298 \begin_layout Plain Layout
41300 'This is a German word: Tschüß'
41303 \begin_layout Plain Layout
41308 \begin_layout Plain Layout
41313 \begin_layout Plain Layout
41315 'this is a python function'
41318 \begin_layout Plain Layout
41328 \begin_layout Standard
41329 When you have tabulators in your listing, you can specify the number of
41330 characters that are spanned by a tabulator in the field
41333 \begin_inset space ~
41341 \begin_layout Standard
41342 \begin_inset Note Greyedout
41345 \begin_layout Plain Layout
41350 Due to a bug in the
41354 package the line numbering is shifted by a line by every previous listing.
41355 That's the reason why the lines 2 and 5 are numbered in the above listing
41356 and not the lines 3 and 6.
41364 \begin_layout Standard
41365 \begin_inset VSpace bigskip
41371 \begin_layout Standard
41372 It is also possible to print lines from a file as listing.
41373 To do this, use the menu
41375 Insert\SpecialChar menuseparator
41376 File\SpecialChar menuseparator
41379 and choose the type
41387 \begin_layout Plain Layout
41388 The other child document types are described in section
41389 \begin_inset space ~
41393 \begin_inset CommandInset ref
41395 reference "sec:Child-Documents"
41404 In the child document dialog you can specify the listing parameters in
41406 To show a list of all available parameters, type in a question mark
41407 \begin_inset Quotes eld
41411 \begin_inset Quotes erd
41417 \begin_layout Standard
41418 To reference child document listings, write a label text into the corresponding
41419 field of the child document dialog.
41420 The label can then be referenced using the menu
41422 Insert\SpecialChar menuseparator
41428 \begin_layout Standard
41430 \begin_inset space ~
41434 \begin_inset CommandInset ref
41436 reference "lst:file-listing"
41440 is an example for a listing of a file; there the lines 10
41441 \begin_inset space \thinspace{}
41445 \begin_inset space \thinspace{}
41448 15 of this \SpecialChar LyX
41452 \begin_layout Standard
41453 \begin_inset CommandInset include
41454 LatexCommand lstinputlisting
41455 filename "EmbeddedObjects.lyx"
41456 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41463 \begin_layout Standard
41464 \begin_inset VSpace bigskip
41470 \begin_layout Standard
41471 Inserting a formula into a listing can be done the following way:
41474 \begin_layout Enumerate
41475 Open the listings dialog and add
41476 \begin_inset Newline newline
41484 \begin_inset Newline newline
41487 to the field of the
41494 \begin_layout Enumerate
41495 Create a formula outside the listing
41498 \begin_layout Enumerate
41499 Copy the content of the formula (not the formula inset) to the clipboard
41509 \begin_layout Enumerate
41510 In the listing write
41511 \begin_inset Quotes eld
41519 \begin_inset Quotes erd
41522 and copy from the clipboard between the dollar-signs (shortcut
41531 \begin_layout Standard
41532 \begin_inset listings
41533 lstparams "language=Python,mathescape=true"
41537 \begin_layout Plain Layout
41539 \begin_inset Caption Standard
41541 \begin_layout Plain Layout
41542 Example Listing float containing a formula
41547 # Example listing float
41550 \begin_layout Plain Layout
41555 \begin_layout Plain Layout
41568 \begin_layout Plain Layout
41578 \begin_layout Standard
41579 \begin_inset VSpace bigskip
41585 \begin_layout Standard
41586 Global listings settings can be set in the
41588 Document\SpecialChar menuseparator
41589 Settings\SpecialChar menuseparator
41593 To get there a list of available options, type in a question mark
41594 \begin_inset Quotes eld
41598 \begin_inset Quotes erd
41604 \begin_layout Standard
41605 For more information about the
41609 package, we refer to its documentation
41610 \begin_inset CommandInset citation
41619 \begin_layout Standard
41620 \begin_inset Newpage newpage
41626 \begin_layout Chapter
41628 Units available in \SpecialChar LyX
41630 \begin_inset Index idx
41633 \begin_layout Plain Layout
41640 \begin_inset CommandInset label
41642 name "cha:Units-available-in"
41649 \begin_layout Standard
41650 To understand the units described in this documentation, Table
41651 \begin_inset space ~
41655 \begin_inset CommandInset ref
41657 reference "tab:Units"
41661 explains all units available in \SpecialChar LyX
41665 \begin_layout Standard
41666 \begin_inset Float table
41672 \begin_layout Plain Layout
41673 \begin_inset Caption Standard
41675 \begin_layout Plain Layout
41676 \begin_inset CommandInset label
41690 \begin_layout Plain Layout
41691 \begin_inset VSpace medskip
41697 \begin_layout Plain Layout
41699 \begin_inset Tabular
41700 <lyxtabular version="3" rows="20" columns="3">
41701 <features tabularvalignment="middle">
41702 <column alignment="center" valignment="top">
41703 <column alignment="center" valignment="top">
41704 <column alignment="center" valignment="top">
41706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41709 \begin_layout Plain Layout
41715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41718 \begin_layout Plain Layout
41724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41727 \begin_layout Plain Layout
41736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41739 \begin_layout Plain Layout
41745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41748 \begin_layout Plain Layout
41754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41757 \begin_layout Plain Layout
41765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41768 \begin_layout Plain Layout
41774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41777 \begin_layout Plain Layout
41783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41786 \begin_layout Plain Layout
41794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41797 \begin_layout Plain Layout
41803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41806 \begin_layout Plain Layout
41812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41815 \begin_layout Plain Layout
41823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41826 \begin_layout Plain Layout
41832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41835 \begin_layout Plain Layout
41837 \begin_inset space \thinspace{}
41841 \begin_inset space \thinspace{}
41849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41852 \begin_layout Plain Layout
41860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41863 \begin_layout Plain Layout
41869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41872 \begin_layout Plain Layout
41874 \begin_inset space \thinspace{}
41878 \begin_inset space \thinspace{}
41886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41889 \begin_layout Plain Layout
41897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41900 \begin_layout Plain Layout
41906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41909 \begin_layout Plain Layout
41910 scaled point (65536
41911 \begin_inset space \thinspace{}
41915 \begin_inset space \thinspace{}
41923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41926 \begin_layout Plain Layout
41934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41937 \begin_layout Plain Layout
41943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41946 \begin_layout Plain Layout
41948 \begin_inset space \thinspace{}
41952 \begin_inset space \thinspace{}
41960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41963 \begin_layout Plain Layout
41971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41974 \begin_layout Plain Layout
41980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41983 \begin_layout Plain Layout
41985 \begin_inset space \thinspace{}
41989 \begin_inset Formula $\approx$
41993 \begin_inset space \thinspace{}
42001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42004 \begin_layout Plain Layout
42012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42015 \begin_layout Plain Layout
42021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42024 \begin_layout Plain Layout
42026 \begin_inset space \thinspace{}
42030 \begin_inset space \thinspace{}
42038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42041 \begin_layout Plain Layout
42049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42052 \begin_layout Plain Layout
42058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42061 \begin_layout Plain Layout
42062 % of original image width
42067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42070 \begin_layout Plain Layout
42078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42081 \begin_layout Plain Layout
42087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42090 \begin_layout Plain Layout
42096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42099 \begin_layout Plain Layout
42109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42112 \begin_layout Plain Layout
42118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42121 \begin_layout Plain Layout
42127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42130 \begin_layout Plain Layout
42140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42143 \begin_layout Plain Layout
42149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42152 \begin_layout Plain Layout
42158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42161 \begin_layout Plain Layout
42171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42174 \begin_layout Plain Layout
42180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42183 \begin_layout Plain Layout
42189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42192 \begin_layout Plain Layout
42202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42205 \begin_layout Plain Layout
42211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42214 \begin_layout Plain Layout
42220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42223 \begin_layout Plain Layout
42233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42236 \begin_layout Plain Layout
42242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42245 \begin_layout Plain Layout
42251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42254 \begin_layout Plain Layout
42264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42267 \begin_layout Plain Layout
42273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42276 \begin_layout Plain Layout
42286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42289 \begin_layout Plain Layout
42297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42300 \begin_layout Plain Layout
42306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42309 \begin_layout Plain Layout
42319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42322 \begin_layout Plain Layout
42330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42333 \begin_layout Plain Layout
42339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42342 \begin_layout Plain Layout
42344 \begin_inset space \thinspace{}
42348 \begin_inset space \thinspace{}
42356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42359 \begin_layout Plain Layout
42378 \begin_layout Chapter
42379 Output File Formats with Graphics
42380 \begin_inset CommandInset label
42382 name "cha:Output-File-Formats"
42389 \begin_layout Section
42391 \begin_inset Index idx
42394 \begin_layout Plain Layout
42401 \begin_inset Index idx
42404 \begin_layout Plain Layout
42409 \begin_layout Plain Layout
42420 \begin_layout Plain Layout
42435 \begin_layout Standard
42436 This file type has the extension
42437 \begin_inset Quotes eld
42445 \begin_inset Quotes erd
42450 \begin_inset Quotes eld
42454 \begin_inset Quotes erd
42457 (DVI), because it is completely portable; you can move them from one machine
42458 to another without needing to do any sort of conversion.
42459 At the time when this file-format was developed, this was no matter of
42461 DVIs are used for quick previews and as pre-stage for other output formats,
42465 \begin_layout Standard
42466 \begin_inset Note Greyedout
42469 \begin_layout Plain Layout
42474 DVI-files do not contain images; they will only be a linked.
42479 So don't forget this, if you move your
42483 file to another computer.
42484 This property can also slow down your computer when you view the DVI, because
42485 the DVI-viewer has to convert the image in the background to make it visible
42486 when you scroll in the DVI.
42487 So it is recommended that you use PDF for files with many images.
42490 \begin_layout Standard
42491 You can export your document to DVI by using the menu
42493 File\SpecialChar menuseparator
42494 Export\SpecialChar menuseparator
42498 You can view your document as DVI via the
42505 \begin_layout Section
42507 \begin_inset Index idx
42510 \begin_layout Plain Layout
42511 File Formats ! PostScript
42517 \begin_inset Index idx
42520 \begin_layout Plain Layout
42525 \begin_layout Plain Layout
42536 \begin_layout Plain Layout
42551 \begin_layout Standard
42552 This file type has the extension
42553 \begin_inset Quotes eld
42561 \begin_inset Quotes erd
42565 PostScript was developed by the company
42569 as a printer language.
42570 The file therefore contains commands that the printer uses to print the
42572 PostScript can be seen as a
42573 \begin_inset Quotes eld
42576 programming language
42577 \begin_inset Quotes erd
42580 ; you can calculate with it and draw diagrams and images.
42584 \begin_layout Plain Layout
42585 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42592 \begin_inset CommandInset citation
42603 Due to this ability, the files are often bigger than PDFs.
42606 \begin_layout Standard
42607 PostScript can only contain images in the format
42608 \begin_inset Quotes eld
42611 Encapsulated PostScript
42612 \begin_inset Quotes erd
42615 (EPS, file extension
42616 \begin_inset Quotes eld
42624 \begin_inset Quotes erd
42628 As \SpecialChar LyX
42629 allows you to use any known image format in your document, it has to
42630 convert images in the background to EPS.
42632 \begin_inset space ~
42636 \begin_inset space ~
42639 images in your document, \SpecialChar LyX
42641 \begin_inset space ~
42644 conversions whenever you view or export your document.
42645 This will slow down your work flow with \SpecialChar LyX
42647 So if you plan to use PostScript, you can insert your images directly as
42648 EPS to avoid this problem.
42651 \begin_layout Standard
42652 You can export your document to PostScript using the menu
42654 File\SpecialChar menuseparator
42655 Export\SpecialChar menuseparator
42659 You can view your document as PostScript via the
42666 \begin_layout Section
42668 \begin_inset Index idx
42671 \begin_layout Plain Layout
42678 \begin_inset Index idx
42681 \begin_layout Plain Layout
42690 \begin_layout Standard
42691 This file type has the extension
42692 \begin_inset Quotes eld
42700 \begin_inset Quotes erd
42705 \begin_inset Quotes eld
42708 Portable Document Format
42709 \begin_inset Quotes erd
42712 (PDF) was developed by
42716 as a derivative of PostScript.
42717 It is more compressed and it uses fewer commands than PostScript.
42719 \begin_inset Quotes eld
42723 \begin_inset Quotes erd
42726 implies, it can be processed at any computer system and the printed output
42727 looks exactly the same.
42730 \begin_layout Standard
42731 PDF can contain images in its own PDF format, in the format
42732 \begin_inset Quotes eld
42735 Joint Photographic Experts Group
42736 \begin_inset Quotes erd
42739 (JPG, file extension
42740 \begin_inset Quotes eld
42748 \begin_inset Quotes erd
42752 \begin_inset Quotes eld
42760 \begin_inset Quotes erd
42763 ), and in the format
42764 \begin_inset Quotes eld
42767 Portable Network Graphics
42768 \begin_inset Quotes erd
42771 (PNG, file extension
42772 \begin_inset Quotes eld
42780 \begin_inset Quotes erd
42784 Nevertheless you can use any other image format, because \SpecialChar LyX
42786 in the background to one of these formats.
42787 But as described in the section about PostScript, the image conversion
42788 will slow down your work flow.
42789 So it is recommended that you use images in one of the three mentioned
42793 \begin_layout Standard
42794 You can export your document to PDF via the menu
42796 File\SpecialChar menuseparator
42799 in three different ways:
42802 \begin_layout Description
42804 \begin_inset space ~
42807 (ps2pdf) This uses the program
42811 that creates a PDF from a PostScript-version of your file.
42812 The PostScript-version is produced by the program
42816 which uses a DVI-version as intermediate step.
42817 So this export variant consists of three conversions.
42820 \begin_layout Description
42822 \begin_inset space ~
42825 (dvipdfm) This uses the program
42829 that converts your file in the background to DVI and in a second step to
42833 \begin_layout Description
42835 \begin_inset space ~
42838 (pdflatex) This uses the program
42842 that converts your file directly to PDF.
42845 \begin_layout Standard
42846 It is recommended that you use
42849 \begin_inset space ~
42858 supports all features of actual PDF-versions, is quick and works stable.
42863 is not under development and therefore a bit outdated.
42866 \begin_layout Standard
42867 You can view your document as PDF via the
42871 menu or by using a toolbar button.
42874 \begin_layout Chapter
42875 List of dvips color names
42876 \begin_inset CommandInset label
42878 name "chap:List-of-dvips-colornames"
42885 \begin_layout Standard
42886 \begin_inset Tabular
42887 <lyxtabular version="3" rows="17" columns="4">
42888 <features tabularvalignment="middle">
42889 <column alignment="left" valignment="top" width="0pt">
42890 <column alignment="left" valignment="top" width="0pt">
42891 <column alignment="left" valignment="top" width="0pt">
42892 <column alignment="left" valignment="top" width="0pt">
42894 <cell alignment="left" valignment="top" usebox="none">
42897 \begin_layout Plain Layout
42901 \begin_layout Plain Layout
42914 \begin_layout Plain Layout
42925 \begin_layout Plain Layout
42937 <cell alignment="left" valignment="top" usebox="none">
42940 \begin_layout Plain Layout
42944 \begin_layout Plain Layout
42957 \begin_layout Plain Layout
42968 \begin_layout Plain Layout
42980 <cell alignment="left" valignment="top" usebox="none">
42983 \begin_layout Plain Layout
42987 \begin_layout Plain Layout
43000 \begin_layout Plain Layout
43011 \begin_layout Plain Layout
43023 <cell alignment="left" valignment="top" usebox="none">
43026 \begin_layout Plain Layout
43030 \begin_layout Plain Layout
43043 \begin_layout Plain Layout
43054 \begin_layout Plain Layout
43068 <cell alignment="center" valignment="top" usebox="none">
43071 \begin_layout Plain Layout
43075 \begin_layout Plain Layout
43088 \begin_layout Plain Layout
43096 \begin_inset Phantom Phantom
43099 \begin_layout Plain Layout
43109 \begin_layout Plain Layout
43121 <cell alignment="center" valignment="top" usebox="none">
43124 \begin_layout Plain Layout
43128 \begin_layout Plain Layout
43141 \begin_layout Plain Layout
43149 \begin_inset Phantom Phantom
43152 \begin_layout Plain Layout
43162 \begin_layout Plain Layout
43174 <cell alignment="center" valignment="top" usebox="none">
43177 \begin_layout Plain Layout
43181 \begin_layout Plain Layout
43194 \begin_layout Plain Layout
43202 \begin_inset Phantom Phantom
43205 \begin_layout Plain Layout
43215 \begin_layout Plain Layout
43227 <cell alignment="center" valignment="top" usebox="none">
43230 \begin_layout Plain Layout
43234 \begin_layout Plain Layout
43247 \begin_layout Plain Layout
43255 \begin_inset Phantom Phantom
43258 \begin_layout Plain Layout
43268 \begin_layout Plain Layout
43282 <cell alignment="left" valignment="top" usebox="none">
43285 \begin_layout Plain Layout
43289 \begin_layout Plain Layout
43302 \begin_layout Plain Layout
43310 \begin_inset Phantom Phantom
43313 \begin_layout Plain Layout
43323 \begin_layout Plain Layout
43335 <cell alignment="left" valignment="top" usebox="none">
43338 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43355 \begin_layout Plain Layout
43363 \begin_inset Phantom Phantom
43366 \begin_layout Plain Layout
43376 \begin_layout Plain Layout
43388 <cell alignment="left" valignment="top" usebox="none">
43391 \begin_layout Plain Layout
43395 \begin_layout Plain Layout
43408 \begin_layout Plain Layout
43416 \begin_inset Phantom Phantom
43419 \begin_layout Plain Layout
43429 \begin_layout Plain Layout
43441 <cell alignment="left" valignment="top" usebox="none">
43444 \begin_layout Plain Layout
43448 \begin_layout Plain Layout
43461 \begin_layout Plain Layout
43469 \begin_inset Phantom Phantom
43472 \begin_layout Plain Layout
43482 \begin_layout Plain Layout
43496 <cell alignment="left" valignment="top" usebox="none">
43499 \begin_layout Plain Layout
43503 \begin_layout Plain Layout
43516 \begin_layout Plain Layout
43524 \begin_inset Phantom Phantom
43527 \begin_layout Plain Layout
43537 \begin_layout Plain Layout
43549 <cell alignment="left" valignment="top" usebox="none">
43552 \begin_layout Plain Layout
43556 \begin_layout Plain Layout
43569 \begin_layout Plain Layout
43577 \begin_inset Phantom Phantom
43580 \begin_layout Plain Layout
43590 \begin_layout Plain Layout
43602 <cell alignment="left" valignment="top" usebox="none">
43605 \begin_layout Plain Layout
43609 \begin_layout Plain Layout
43622 \begin_layout Plain Layout
43630 \begin_inset Phantom Phantom
43633 \begin_layout Plain Layout
43643 \begin_layout Plain Layout
43655 <cell alignment="left" valignment="top" usebox="none">
43658 \begin_layout Plain Layout
43662 \begin_layout Plain Layout
43675 \begin_layout Plain Layout
43683 \begin_inset Phantom Phantom
43686 \begin_layout Plain Layout
43696 \begin_layout Plain Layout
43710 <cell alignment="left" valignment="top" usebox="none">
43713 \begin_layout Plain Layout
43717 \begin_layout Plain Layout
43730 \begin_layout Plain Layout
43738 \begin_inset Phantom Phantom
43741 \begin_layout Plain Layout
43751 \begin_layout Plain Layout
43763 <cell alignment="left" valignment="top" usebox="none">
43766 \begin_layout Plain Layout
43770 \begin_layout Plain Layout
43783 \begin_layout Plain Layout
43791 \begin_inset Phantom Phantom
43794 \begin_layout Plain Layout
43804 \begin_layout Plain Layout
43816 <cell alignment="left" valignment="top" usebox="none">
43819 \begin_layout Plain Layout
43823 \begin_layout Plain Layout
43836 \begin_layout Plain Layout
43844 \begin_inset Phantom Phantom
43847 \begin_layout Plain Layout
43857 \begin_layout Plain Layout
43869 <cell alignment="left" valignment="top" usebox="none">
43872 \begin_layout Plain Layout
43876 \begin_layout Plain Layout
43889 \begin_layout Plain Layout
43897 \begin_inset Phantom Phantom
43900 \begin_layout Plain Layout
43910 \begin_layout Plain Layout
43924 <cell alignment="left" valignment="top" usebox="none">
43927 \begin_layout Plain Layout
43931 \begin_layout Plain Layout
43944 \begin_layout Plain Layout
43952 \begin_inset Phantom Phantom
43955 \begin_layout Plain Layout
43965 \begin_layout Plain Layout
43977 <cell alignment="left" valignment="top" usebox="none">
43980 \begin_layout Plain Layout
43984 \begin_layout Plain Layout
43997 \begin_layout Plain Layout
44005 \begin_inset Phantom Phantom
44008 \begin_layout Plain Layout
44018 \begin_layout Plain Layout
44030 <cell alignment="left" valignment="top" usebox="none">
44033 \begin_layout Plain Layout
44037 \begin_layout Plain Layout
44050 \begin_layout Plain Layout
44058 \begin_inset Phantom Phantom
44061 \begin_layout Plain Layout
44071 \begin_layout Plain Layout
44083 <cell alignment="left" valignment="top" usebox="none">
44086 \begin_layout Plain Layout
44090 \begin_layout Plain Layout
44103 \begin_layout Plain Layout
44111 \begin_inset Phantom Phantom
44114 \begin_layout Plain Layout
44124 \begin_layout Plain Layout
44138 <cell alignment="center" valignment="top" usebox="none">
44141 \begin_layout Plain Layout
44145 \begin_layout Plain Layout
44158 \begin_layout Plain Layout
44166 \begin_inset Phantom Phantom
44169 \begin_layout Plain Layout
44179 \begin_layout Plain Layout
44191 <cell alignment="center" valignment="top" usebox="none">
44194 \begin_layout Plain Layout
44198 \begin_layout Plain Layout
44211 \begin_layout Plain Layout
44219 \begin_inset Phantom Phantom
44222 \begin_layout Plain Layout
44232 \begin_layout Plain Layout
44244 <cell alignment="center" valignment="top" usebox="none">
44247 \begin_layout Plain Layout
44251 \begin_layout Plain Layout
44264 \begin_layout Plain Layout
44272 \begin_inset Phantom Phantom
44275 \begin_layout Plain Layout
44285 \begin_layout Plain Layout
44297 <cell alignment="center" valignment="top" usebox="none">
44300 \begin_layout Plain Layout
44304 \begin_layout Plain Layout
44317 \begin_layout Plain Layout
44325 \begin_inset Phantom Phantom
44328 \begin_layout Plain Layout
44338 \begin_layout Plain Layout
44352 <cell alignment="left" valignment="top" usebox="none">
44355 \begin_layout Plain Layout
44359 \begin_layout Plain Layout
44372 \begin_layout Plain Layout
44380 \begin_inset Phantom Phantom
44383 \begin_layout Plain Layout
44393 \begin_layout Plain Layout
44405 <cell alignment="left" valignment="top" usebox="none">
44408 \begin_layout Plain Layout
44412 \begin_layout Plain Layout
44425 \begin_layout Plain Layout
44433 \begin_inset Phantom Phantom
44436 \begin_layout Plain Layout
44446 \begin_layout Plain Layout
44458 <cell alignment="left" valignment="top" usebox="none">
44461 \begin_layout Plain Layout
44465 \begin_layout Plain Layout
44478 \begin_layout Plain Layout
44486 \begin_inset Phantom Phantom
44489 \begin_layout Plain Layout
44499 \begin_layout Plain Layout
44511 <cell alignment="left" valignment="top" usebox="none">
44514 \begin_layout Plain Layout
44518 \begin_layout Plain Layout
44531 \begin_layout Plain Layout
44539 \begin_inset Phantom Phantom
44542 \begin_layout Plain Layout
44552 \begin_layout Plain Layout
44566 <cell alignment="left" valignment="top" usebox="none">
44569 \begin_layout Plain Layout
44573 \begin_layout Plain Layout
44586 \begin_layout Plain Layout
44594 \begin_inset Phantom Phantom
44597 \begin_layout Plain Layout
44607 \begin_layout Plain Layout
44619 <cell alignment="left" valignment="top" usebox="none">
44622 \begin_layout Plain Layout
44626 \begin_layout Plain Layout
44639 \begin_layout Plain Layout
44647 \begin_inset Phantom Phantom
44650 \begin_layout Plain Layout
44660 \begin_layout Plain Layout
44672 <cell alignment="left" valignment="top" usebox="none">
44675 \begin_layout Plain Layout
44679 \begin_layout Plain Layout
44692 \begin_layout Plain Layout
44700 \begin_inset Phantom Phantom
44703 \begin_layout Plain Layout
44713 \begin_layout Plain Layout
44725 <cell alignment="left" valignment="top" usebox="none">
44728 \begin_layout Plain Layout
44732 \begin_layout Plain Layout
44745 \begin_layout Plain Layout
44753 \begin_inset Phantom Phantom
44756 \begin_layout Plain Layout
44766 \begin_layout Plain Layout
44780 <cell alignment="left" valignment="top" usebox="none">
44783 \begin_layout Plain Layout
44787 \begin_layout Plain Layout
44800 \begin_layout Plain Layout
44808 \begin_inset Phantom Phantom
44811 \begin_layout Plain Layout
44821 \begin_layout Plain Layout
44833 <cell alignment="left" valignment="top" usebox="none">
44836 \begin_layout Plain Layout
44840 \begin_layout Plain Layout
44853 \begin_layout Plain Layout
44861 \begin_inset Phantom Phantom
44864 \begin_layout Plain Layout
44874 \begin_layout Plain Layout
44886 <cell alignment="left" valignment="top" usebox="none">
44889 \begin_layout Plain Layout
44893 \begin_layout Plain Layout
44906 \begin_layout Plain Layout
44914 \begin_inset Phantom Phantom
44917 \begin_layout Plain Layout
44927 \begin_layout Plain Layout
44939 <cell alignment="left" valignment="top" usebox="none">
44942 \begin_layout Plain Layout
44946 \begin_layout Plain Layout
44959 \begin_layout Plain Layout
44967 \begin_inset Phantom Phantom
44970 \begin_layout Plain Layout
44980 \begin_layout Plain Layout
44994 <cell alignment="left" valignment="top" usebox="none">
44997 \begin_layout Plain Layout
45001 \begin_layout Plain Layout
45014 \begin_layout Plain Layout
45022 \begin_inset Phantom Phantom
45025 \begin_layout Plain Layout
45035 \begin_layout Plain Layout
45047 <cell alignment="left" valignment="top" usebox="none">
45050 \begin_layout Plain Layout
45054 \begin_layout Plain Layout
45067 \begin_layout Plain Layout
45075 \begin_inset Phantom Phantom
45078 \begin_layout Plain Layout
45088 \begin_layout Plain Layout
45100 <cell alignment="left" valignment="top" usebox="none">
45103 \begin_layout Plain Layout
45107 \begin_layout Plain Layout
45120 \begin_layout Plain Layout
45128 \begin_inset Phantom Phantom
45131 \begin_layout Plain Layout
45141 \begin_layout Plain Layout
45153 <cell alignment="left" valignment="top" usebox="none">
45156 \begin_layout Plain Layout
45160 \begin_layout Plain Layout
45173 \begin_layout Plain Layout
45181 \begin_inset Phantom Phantom
45184 \begin_layout Plain Layout
45194 \begin_layout Plain Layout
45208 <cell alignment="left" valignment="top" usebox="none">
45211 \begin_layout Plain Layout
45215 \begin_layout Plain Layout
45228 \begin_layout Plain Layout
45236 \begin_inset Phantom Phantom
45239 \begin_layout Plain Layout
45249 \begin_layout Plain Layout
45261 <cell alignment="left" valignment="top" usebox="none">
45264 \begin_layout Plain Layout
45268 \begin_layout Plain Layout
45281 \begin_layout Plain Layout
45289 \begin_inset Phantom Phantom
45292 \begin_layout Plain Layout
45302 \begin_layout Plain Layout
45314 <cell alignment="left" valignment="top" usebox="none">
45317 \begin_layout Plain Layout
45321 \begin_layout Plain Layout
45334 \begin_layout Plain Layout
45342 \begin_inset Phantom Phantom
45345 \begin_layout Plain Layout
45355 \begin_layout Plain Layout
45367 <cell alignment="left" valignment="top" usebox="none">
45370 \begin_layout Plain Layout
45374 \begin_layout Plain Layout
45387 \begin_layout Plain Layout
45395 \begin_inset Phantom Phantom
45398 \begin_layout Plain Layout
45408 \begin_layout Plain Layout
45422 <cell alignment="left" valignment="top" usebox="none">
45425 \begin_layout Plain Layout
45429 \begin_layout Plain Layout
45442 \begin_layout Plain Layout
45450 \begin_inset Phantom Phantom
45453 \begin_layout Plain Layout
45463 \begin_layout Plain Layout
45475 <cell alignment="left" valignment="top" usebox="none">
45478 \begin_layout Plain Layout
45482 \begin_layout Plain Layout
45495 \begin_layout Plain Layout
45503 \begin_inset Phantom Phantom
45506 \begin_layout Plain Layout
45516 \begin_layout Plain Layout
45528 <cell alignment="left" valignment="top" usebox="none">
45531 \begin_layout Plain Layout
45535 \begin_layout Plain Layout
45548 \begin_layout Plain Layout
45556 \begin_inset Phantom Phantom
45559 \begin_layout Plain Layout
45569 \begin_layout Plain Layout
45581 <cell alignment="left" valignment="top" usebox="none">
45584 \begin_layout Plain Layout
45588 \begin_layout Plain Layout
45601 \begin_layout Plain Layout
45609 \begin_inset Phantom Phantom
45612 \begin_layout Plain Layout
45622 \begin_layout Plain Layout
45636 <cell alignment="left" valignment="top" usebox="none">
45639 \begin_layout Plain Layout
45643 \begin_layout Plain Layout
45656 \begin_layout Plain Layout
45664 \begin_inset Phantom Phantom
45667 \begin_layout Plain Layout
45677 \begin_layout Plain Layout
45689 <cell alignment="left" valignment="top" usebox="none">
45692 \begin_layout Plain Layout
45696 \begin_layout Plain Layout
45709 \begin_layout Plain Layout
45717 \begin_inset Phantom Phantom
45720 \begin_layout Plain Layout
45730 \begin_layout Plain Layout
45742 <cell alignment="left" valignment="top" usebox="none">
45745 \begin_layout Plain Layout
45749 \begin_layout Plain Layout
45762 \begin_layout Plain Layout
45770 \begin_inset Phantom Phantom
45773 \begin_layout Plain Layout
45783 \begin_layout Plain Layout
45795 <cell alignment="left" valignment="top" usebox="none">
45798 \begin_layout Plain Layout
45802 \begin_layout Plain Layout
45815 \begin_layout Plain Layout
45823 \begin_inset Phantom Phantom
45826 \begin_layout Plain Layout
45836 \begin_layout Plain Layout
45850 <cell alignment="left" valignment="top" usebox="none">
45853 \begin_layout Plain Layout
45857 \begin_layout Plain Layout
45870 \begin_layout Plain Layout
45878 \begin_inset Phantom Phantom
45881 \begin_layout Plain Layout
45891 \begin_layout Plain Layout
45903 <cell alignment="left" valignment="top" usebox="none">
45906 \begin_layout Plain Layout
45910 \begin_layout Plain Layout
45923 \begin_layout Plain Layout
45931 \begin_inset Phantom Phantom
45934 \begin_layout Plain Layout
45944 \begin_layout Plain Layout
45956 <cell alignment="left" valignment="top" usebox="none">
45959 \begin_layout Plain Layout
45963 \begin_layout Plain Layout
45976 \begin_layout Plain Layout
45984 \begin_inset Phantom Phantom
45987 \begin_layout Plain Layout
45997 \begin_layout Plain Layout
46009 <cell alignment="left" valignment="top" usebox="none">
46012 \begin_layout Plain Layout
46016 \begin_layout Plain Layout
46029 \begin_layout Plain Layout
46037 \begin_inset Phantom Phantom
46040 \begin_layout Plain Layout
46050 \begin_layout Plain Layout
46064 <cell alignment="left" valignment="top" usebox="none">
46067 \begin_layout Plain Layout
46071 \begin_layout Plain Layout
46084 \begin_layout Plain Layout
46092 \begin_inset Phantom Phantom
46095 \begin_layout Plain Layout
46105 \begin_layout Plain Layout
46117 <cell alignment="left" valignment="top" usebox="none">
46120 \begin_layout Plain Layout
46124 \begin_layout Plain Layout
46137 \begin_layout Plain Layout
46145 \begin_inset Phantom Phantom
46148 \begin_layout Plain Layout
46158 \begin_layout Plain Layout
46170 <cell alignment="left" valignment="top" usebox="none">
46173 \begin_layout Plain Layout
46177 \begin_layout Plain Layout
46190 \begin_layout Plain Layout
46198 \begin_inset Phantom Phantom
46201 \begin_layout Plain Layout
46211 \begin_layout Plain Layout
46223 <cell alignment="left" valignment="top" usebox="none">
46226 \begin_layout Plain Layout
46230 \begin_layout Plain Layout
46243 \begin_layout Plain Layout
46251 \begin_inset Phantom Phantom
46254 \begin_layout Plain Layout
46264 \begin_layout Plain Layout
46278 <cell alignment="left" valignment="top" usebox="none">
46281 \begin_layout Plain Layout
46285 \begin_layout Plain Layout
46298 \begin_layout Plain Layout
46306 \begin_inset Phantom Phantom
46309 \begin_layout Plain Layout
46319 \begin_layout Plain Layout
46331 <cell alignment="left" valignment="top" usebox="none">
46334 \begin_layout Plain Layout
46340 <cell alignment="left" valignment="top" usebox="none">
46343 \begin_layout Plain Layout
46349 <cell alignment="left" valignment="top" usebox="none">
46352 \begin_layout Plain Layout
46366 \begin_layout Chapter
46367 Explanation of Equation
46368 \begin_inset space ~
46372 \begin_inset CommandInset ref
46379 \begin_inset CommandInset label
46381 name "cha:Explanation-of-Equation"
46388 \begin_layout Standard
46389 We can calculate the total width of
46394 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46398 \begin_inset Formula
46400 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46406 \begin_inset Formula $W_{g\,n}$
46409 is the given width of all cells,
46415 is the \SpecialChar LaTeX
46416 -length between the cell text and the cell border (its default value
46418 \begin_inset space \thinspace{}
46428 is the thickness of the cell border line, the default is 0.4
46429 \begin_inset space \thinspace{}
46435 \begin_layout Standard
46437 \begin_inset space ~
46441 \begin_inset CommandInset ref
46443 reference "eq:Wtot_n"
46447 , the total width of a multicolumn
46448 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46452 \begin_inset Formula
46454 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46462 \begin_layout Standard
46463 By setting equation
46464 \begin_inset space ~
46468 \begin_inset CommandInset ref
46470 reference "eq:Wtot_n"
46475 \begin_inset CommandInset ref
46477 reference "eq:Wtot_mult"
46481 equal we can calculate the needed given width
46482 \begin_inset Formula $W_{g\,n}$
46489 columns are spanned, so that each column has a total width of
46490 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46494 \begin_inset Formula
46496 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46504 \begin_layout Bibliography
46505 \begin_inset CommandInset bibitem
46506 LatexCommand bibitem
46507 key "latexcompanion"
46511 Frank Mittelbach and Michel Goossens:
46513 The \SpecialChar LaTeX
46514 Companion Second Edition.
46517 Addison-Wesley, 2004
46520 \begin_layout Bibliography
46521 \begin_inset CommandInset bibitem
46522 LatexCommand bibitem
46527 Helmut Kopka and Patrick W.
46530 A Guide to \SpecialChar LaTeX
46534 Addison-Wesley, 2003
46537 \begin_layout Bibliography
46538 \begin_inset CommandInset bibitem
46539 LatexCommand bibitem
46547 : A Document Preparation System.
46550 Addison-Wesley, second edition, 1994
46553 \begin_layout Bibliography
46554 \begin_inset CommandInset bibitem
46555 LatexCommand bibitem
46560 Documentation of the \SpecialChar LaTeX
46564 \begin_inset CommandInset href
46567 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46574 \begin_inset Index idx
46577 \begin_layout Plain Layout
46579 -packages ! arydshln
46587 \begin_layout Bibliography
46588 \begin_inset CommandInset bibitem
46589 LatexCommand bibitem
46594 Documentation of the \SpecialChar LaTeX
46598 \begin_inset CommandInset href
46601 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46608 \begin_inset Index idx
46611 \begin_layout Plain Layout
46613 -packages ! booktabs
46621 \begin_layout Bibliography
46622 \begin_inset CommandInset bibitem
46623 LatexCommand bibitem
46628 Documentation of the \SpecialChar LaTeX
46632 \begin_inset CommandInset href
46635 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46642 \begin_inset Index idx
46645 \begin_layout Plain Layout
46647 -packages ! caption
46655 \begin_layout Bibliography
46656 \begin_inset CommandInset bibitem
46657 LatexCommand bibitem
46662 Documentation of the \SpecialChar LaTeX
46666 \begin_inset CommandInset href
46669 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46676 \begin_inset Index idx
46679 \begin_layout Plain Layout
46681 -packages ! diagbox
46689 \begin_layout Bibliography
46690 \begin_inset CommandInset bibitem
46691 LatexCommand bibitem
46696 Documentation of the \SpecialChar LaTeX
46700 \begin_inset CommandInset href
46703 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46710 \begin_inset Index idx
46713 \begin_layout Plain Layout
46715 -packages ! endfloat
46723 \begin_layout Bibliography
46724 \begin_inset CommandInset bibitem
46725 LatexCommand bibitem
46730 Documentation of the \SpecialChar LaTeX
46734 \begin_inset CommandInset href
46737 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46744 \begin_inset Index idx
46747 \begin_layout Plain Layout
46749 -packages ! footmisc
46757 \begin_layout Bibliography
46758 \begin_inset CommandInset bibitem
46759 LatexCommand bibitem
46764 Documentation of the \SpecialChar LaTeX
46768 \begin_inset CommandInset href
46771 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46778 \begin_inset Index idx
46781 \begin_layout Plain Layout
46783 -packages ! hyperref
46791 \begin_layout Bibliography
46792 \begin_inset CommandInset bibitem
46793 LatexCommand bibitem
46798 Documentation of the \SpecialChar LaTeX
46802 \begin_inset CommandInset href
46805 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46812 \begin_inset Index idx
46815 \begin_layout Plain Layout
46817 -packages ! hyperref
46825 \begin_layout Bibliography
46826 \begin_inset CommandInset bibitem
46827 LatexCommand bibitem
46832 Documentation of the \SpecialChar LaTeX
46836 \begin_inset CommandInset href
46839 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46846 \begin_inset Index idx
46849 \begin_layout Plain Layout
46851 -packages ! KOMA-Script
46859 \begin_layout Bibliography
46860 \begin_inset CommandInset bibitem
46861 LatexCommand bibitem
46866 Documentation of the \SpecialChar LaTeX
46870 \begin_inset CommandInset href
46873 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46880 \begin_inset CommandInset href
46883 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46888 \begin_inset Index idx
46891 \begin_layout Plain Layout
46893 -packages ! lettrine
46901 \begin_layout Bibliography
46902 \begin_inset CommandInset bibitem
46903 LatexCommand bibitem
46908 Documentation of the \SpecialChar LaTeX
46912 \begin_inset CommandInset href
46915 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
46922 \begin_inset Index idx
46925 \begin_layout Plain Layout
46927 -packages ! listings
46935 \begin_layout Bibliography
46936 \begin_inset CommandInset bibitem
46937 LatexCommand bibitem
46942 Documentation of the \SpecialChar LaTeX
46946 \begin_inset CommandInset href
46949 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
46956 \begin_inset Index idx
46959 \begin_layout Plain Layout
46961 -packages ! marginnote
46969 \begin_layout Bibliography
46970 \begin_inset CommandInset bibitem
46971 LatexCommand bibitem
46976 Documentation of the \SpecialChar LaTeX
46980 \begin_inset CommandInset href
46983 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
46990 \begin_inset Index idx
46993 \begin_layout Plain Layout
46995 -packages ! pdfpages
47003 \begin_layout Bibliography
47004 \begin_inset CommandInset bibitem
47005 LatexCommand bibitem
47010 Documentation of the \SpecialChar LaTeX
47014 \begin_inset CommandInset href
47017 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47024 \begin_inset Index idx
47027 \begin_layout Plain Layout
47029 -packages ! prettyref
47037 \begin_layout Bibliography
47038 \begin_inset CommandInset bibitem
47039 LatexCommand bibitem
47044 Web page of the \SpecialChar LaTeX
47048 \begin_inset CommandInset href
47051 target "http://tug.org/PSTricks/"
47058 \begin_inset Index idx
47061 \begin_layout Plain Layout
47063 -packages ! PSTricks
47071 \begin_layout Bibliography
47072 \begin_inset CommandInset bibitem
47073 LatexCommand bibitem
47078 Documentation of the \SpecialChar LaTeX
47082 \begin_inset CommandInset href
47085 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47092 \begin_inset Index idx
47095 \begin_layout Plain Layout
47097 -packages ! refstyle
47105 \begin_layout Bibliography
47106 \begin_inset CommandInset bibitem
47107 LatexCommand bibitem
47112 Documentation of the \SpecialChar LaTeX
47116 \begin_inset CommandInset href
47119 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47126 \begin_inset Index idx
47129 \begin_layout Plain Layout
47131 -packages ! sidecap
47139 \begin_layout Bibliography
47140 \begin_inset CommandInset bibitem
47141 LatexCommand bibitem
47147 \begin_inset CommandInset href
47150 target "http://wiki.lyx.org/LyX/NewInLyX20"
47154 about new features in
47162 \begin_layout Standard
47163 \begin_inset CommandInset index_print
47164 LatexCommand printindex