1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \use_dash_ligatures true
177 \default_output_format pdf2
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \use_package amsmath 2
201 \use_package amssymb 2
202 \use_package cancel 0
204 \use_package mathdots 1
205 \use_package mathtools 0
206 \use_package mhchem 1
207 \use_package stackrel 0
208 \use_package stmaryrd 0
209 \use_package undertilde 0
211 \cite_engine_type default
215 \paperorientation portrait
219 \notefontcolor #0000ff
226 \paragraph_separation skip
229 \math_numbering_side default
230 \quotes_style english
234 \paperpagestyle default
235 \tracking_changes true
236 \output_changes false
239 \html_be_strict false
240 \author 227574939 "Kyttj"
241 \author 2047637253 "Guillaume Munch"
248 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
252 by the \SpecialChar LyX
257 \begin_layout Plain Layout
259 If you have comments or error corrections, please send them to the \SpecialChar LyX
262 \begin_inset CommandInset href
264 name "lyx-docs@lists.lyx.org"
265 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
277 \begin_inset Note Note
280 \begin_layout Plain Layout
287 \begin_inset Newline newline
291 \begin_inset Newline newline
299 \begin_layout Standard
300 \begin_inset CommandInset toc
301 LatexCommand tableofcontents
308 \begin_layout Standard
309 \begin_inset Note Note
312 \begin_layout Plain Layout
313 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
324 diagbox, lettrine, marginnote, picinpar
331 If they are not installed you can export the document anyway but the sections
332 where the packages are required won't appear in the output.
335 \begin_layout Plain Layout
336 The latest PDF-version of this document can be found here:
337 \begin_inset Newline newline
342 http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
350 \begin_layout Chapter
352 \begin_inset Index idx
355 \begin_layout Plain Layout
362 \begin_inset Index idx
365 \begin_layout Plain Layout
370 \begin_layout Plain Layout
381 \begin_layout Plain Layout
396 \begin_layout Section
398 \begin_inset Index idx
401 \begin_layout Plain Layout
402 Figures ! Graphics Dialog
408 \begin_inset CommandInset label
410 name "sec:Graphics-Dialog"
417 \begin_layout Standard
418 To insert an image into your document, place the cursor at the text position
419 you want and click on the toolbar icon
422 arg "dialog-show-new-inset graphics"
427 Insert\SpecialChar menuseparator
431 Then a dialog will appear to choose the file to load.
432 The image will appear in the output exactly at the position where it is
436 \begin_layout Standard
437 The graphics dialog can be called at any time by clicking on an image.
438 This dialog has three tabs:
441 \begin_layout Description
446 Here you can choose an image file and adjust its appearance in the output.
447 The available units for the image size are explained in appendix
452 \begin_inset CommandInset ref
454 reference "cha:Units-available-in"
459 \begin_inset Newline newline
463 \begin_inset Index idx
466 \begin_layout Plain Layout
472 You can rotate images counter-clockwise by setting a rotation angle and
474 The image will also be rotated inside \SpecialChar LyX
476 \begin_inset Newline newline
480 \begin_inset Index idx
483 \begin_layout Plain Layout
489 Images can be scaled by using a percentage value or by setting the width
490 and height explicitly.
491 If you set only the width or only the height, the other size will be determined
493 If you set both, then the image will be transformed to the given size,
494 possibly distorting it.
495 To prevent the image from distortion, use the option
497 Maintain aspect ratio
500 The image will then be scaled so that its width and height don't exceed
501 the specified dimensions.
502 \begin_inset Newline newline
505 Images can be opened in a program of your choice by right-clicking on it
506 and choosing the entry
515 The program can be set for every image format in the file format settings
520 \begin_layout Description
525 Alternatively to the usage of scaling units it is possible to set image
526 coordinates to adjust the height and width of the image in the output.
527 The coordinates can also be calculated automatically by pressing the button
557 will only print the image region within the given coordinates.
558 Normally you don't need to worry about image coordinates and can ignore
562 \begin_layout Description
579 In this tab you can modify the appearance of the image within \SpecialChar LyX
580 and \SpecialChar LaTeX
582 can specify additional \SpecialChar LaTeX
584 \begin_inset Newline newline
595 makes the image appear in the output only as a frame with the size of the
597 \begin_inset Newline newline
608 you can define or join an image settings group.
609 \begin_inset Index idx
612 \begin_layout Plain Layout
613 Figures ! Settings grouping
618 Images within such a group share their settings, so adjusting one image
619 of the group automatically also adjusts all other images of the group in
621 So you can for example change the size for a bunch of images without the
622 need to manually change each of them.
623 Joining an existing group can also be done using the context menu of the
624 image by checking the name of the desired group.
627 \begin_layout Standard
628 \begin_inset VSpace bigskip
634 \begin_layout Standard
635 This is an example image in PDF format
639 \begin_layout Plain Layout
640 Image formats are explained in section
645 \begin_inset CommandInset ref
647 reference "sec:Image-Formats"
656 within a separate, horizontally centered paragraph:
659 \begin_layout Standard
661 \begin_inset Graphics
662 filename clipart/2D-intensity-plot.pdf
671 \begin_layout Standard
672 This is the same image like the one above but in draft mode:
675 \begin_layout Standard
677 \begin_inset Graphics
678 filename clipart/2D-intensity-plot.pdf
688 \begin_layout Standard
689 \begin_inset Newpage newpage
695 \begin_layout Section
697 \begin_inset CommandInset label
699 name "sec:Figure-Floats"
704 \begin_inset Index idx
707 \begin_layout Plain Layout
714 \begin_inset Index idx
717 \begin_layout Plain Layout
726 \begin_layout Standard
727 For general explanations about floats, have a look at section
732 \begin_inset CommandInset ref
734 reference "sec:FloatIntroduction"
741 \begin_layout Standard
745 arg "float-insert figure"
750 Insert\SpecialChar menuseparator
751 Float\SpecialChar menuseparator
754 inserts a float with a caption that has the label
755 \begin_inset Quotes eld
763 \begin_inset Quotes erd
766 (# is the actual number).
767 You can insert the image above the caption, like in Figure
772 \begin_inset CommandInset ref
774 reference "fig:A-star-structure"
778 or below the caption, like in Figure
783 \begin_inset CommandInset ref
785 reference "fig:A-3D-object"
790 More about caption placement is described in section
795 \begin_inset CommandInset ref
797 reference "sec:Caption-Placement"
804 \begin_layout Standard
805 \begin_inset Float figure
810 \begin_layout Plain Layout
812 \begin_inset Graphics
813 filename clipart/Star-structure.pdf
823 \begin_layout Plain Layout
824 \begin_inset Caption Standard
826 \begin_layout Plain Layout
827 \begin_inset CommandInset label
829 name "fig:A-star-structure"
833 A star structure in a float.
846 \begin_layout Standard
847 \begin_inset Float figure
852 \begin_layout Plain Layout
853 \begin_inset Caption Standard
855 \begin_layout Plain Layout
856 \begin_inset CommandInset label
858 name "fig:A-3D-object"
870 \begin_layout Plain Layout
872 \begin_inset Graphics
873 filename clipart/3D-structure-distort.pdf
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:A-star-structure"
910 \begin_inset CommandInset ref
912 reference "fig:A-3D-object"
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:Pink-object"
1013 \begin_inset CommandInset ref
1015 reference "fig:A-star"
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:Pink-object"
1056 \begin_layout Plain Layout
1057 \begin_inset Graphics
1058 filename clipart/3D-structure-distort.pdf
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
1098 \begin_layout Plain Layout
1099 \begin_inset Graphics
1100 filename clipart/Star-structure.pdf
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
14686 \begin_layout Section
14688 \begin_inset CommandInset label
14690 name "sec:Formal-Tables"
14695 \begin_inset Index idx
14698 \begin_layout Plain Layout
14707 \begin_layout Standard
14708 Tables are often typeset in books similar to Table
14709 \begin_inset space ~
14713 \begin_inset CommandInset ref
14715 reference "tab:Example-booktabs-table"
14720 This kind of tables is called
14721 \begin_inset Quotes eld
14729 \begin_inset Quotes erd
14733 To make a table a formal table use the option
14741 tab of the table dialog.
14744 \begin_layout Standard
14745 \begin_inset Float table
14751 \begin_layout Plain Layout
14752 \begin_inset Caption Standard
14754 \begin_layout Plain Layout
14755 \begin_inset CommandInset label
14757 name "tab:Example-booktabs-table"
14761 Example booktabs-table
14769 \begin_layout Plain Layout
14771 \begin_inset Tabular
14772 <lyxtabular version="3" rows="8" columns="4">
14773 <features booktabs="true" tabularvalignment="middle">
14774 <column alignment="center" valignment="top">
14775 <column alignment="center" valignment="top">
14776 <column alignment="center" valignment="top">
14777 <column alignment="center" valignment="top">
14779 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14782 \begin_layout Plain Layout
14788 <cell alignment="center" valignment="top" topline="true" usebox="none">
14791 \begin_layout Plain Layout
14793 \begin_inset space \thinspace{}
14801 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14804 \begin_layout Plain Layout
14806 \begin_inset space \thinspace{}
14814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14817 \begin_layout Plain Layout
14825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14828 \begin_layout Plain Layout
14832 \begin_layout Plain Layout
14845 \begin_layout Plain Layout
14854 Detector thickness in µm
14859 <cell alignment="center" valignment="top" usebox="none">
14862 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" usebox="none">
14871 \begin_layout Plain Layout
14877 <cell alignment="center" valignment="top" usebox="none">
14880 \begin_layout Plain Layout
14888 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14891 \begin_layout Plain Layout
14897 <cell alignment="center" valignment="top" topline="true" usebox="none">
14900 \begin_layout Plain Layout
14906 <cell alignment="center" valignment="top" topline="true" usebox="none">
14909 \begin_layout Plain Layout
14915 <cell alignment="center" valignment="top" topline="true" usebox="none">
14918 \begin_layout Plain Layout
14925 <row topspace="default">
14926 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14929 \begin_layout Plain Layout
14930 Spatial resolution in µm
14935 <cell alignment="center" valignment="top" usebox="none">
14938 \begin_layout Plain Layout
14944 <cell alignment="center" valignment="top" usebox="none">
14947 \begin_layout Plain Layout
14953 <cell alignment="center" valignment="top" usebox="none">
14956 \begin_layout Plain Layout
14963 <row topspace="default">
14964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14967 \begin_layout Plain Layout
14969 \begin_inset Formula $f_{\mathrm{max}}$
14977 <cell alignment="center" valignment="top" usebox="none">
14980 \begin_layout Plain Layout
14986 <cell alignment="center" valignment="top" usebox="none">
14989 \begin_layout Plain Layout
14995 <cell alignment="center" valignment="top" usebox="none">
14998 \begin_layout Plain Layout
15005 <row topspace="default">
15006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15009 \begin_layout Plain Layout
15013 \begin_layout Plain Layout
15017 cmidrule[2pt](l{10pt}){1-1}
15022 LSF-spatial resolution
15027 <cell alignment="center" valignment="top" usebox="none">
15030 \begin_layout Plain Layout
15036 <cell alignment="center" valignment="top" usebox="none">
15039 \begin_layout Plain Layout
15045 <cell alignment="center" valignment="top" usebox="none">
15048 \begin_layout Plain Layout
15056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15059 \begin_layout Plain Layout
15065 <cell alignment="center" valignment="top" usebox="none">
15068 \begin_layout Plain Layout
15074 <cell alignment="center" valignment="top" usebox="none">
15077 \begin_layout Plain Layout
15083 <cell alignment="center" valignment="top" usebox="none">
15086 \begin_layout Plain Layout
15094 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15097 \begin_layout Plain Layout
15103 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15106 \begin_layout Plain Layout
15112 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15115 \begin_layout Plain Layout
15121 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15124 \begin_layout Plain Layout
15143 \begin_layout Standard
15144 Spaces to table rows can be added using the
15148 tab of the table dialog as described in section
15149 \begin_inset space ~
15153 \begin_inset CommandInset ref
15155 reference "subsec:Row-Spacing"
15162 \begin_layout Standard
15163 Unlike normal tables, formal tables have no vertical table lines.
15164 The horizontal table lines can be set as for normal tables but they appear
15165 with different widths in the output:
15166 \begin_inset Newline newline
15169 The first and the last table line have a default width of 0.08
15170 \begin_inset space \thinspace{}
15173 em while the other lines have a default width of 0.05
15174 \begin_inset space \thinspace{}
15180 \begin_layout Standard
15181 The default widths can be changed with the following preamble lines
15184 \begin_layout Standard
15194 \begin_inset Newline newline
15206 \begin_layout Standard
15207 This example is for the first line, the so called
15212 If you want to change the width for the last line, replace
15221 To change the width for the other lines replace
15230 You can use all units listed in appendix
15231 \begin_inset space ~
15235 \begin_inset CommandInset ref
15237 reference "cha:Units-available-in"
15244 \begin_layout Standard
15245 Lines that do not span all table columns can be created by setting a table
15246 line for multicolumn cells.
15248 will then internally use the command
15254 to create this line.
15258 \begin_layout Standard
15263 cmidrule[height](trim){startcol-endcol}
15266 \begin_layout Standard
15273 are currently not supported by \SpecialChar LyX
15274 so you have to use \SpecialChar TeX
15283 s can manually be created by inserting the command as \SpecialChar TeX
15285 cell entry of the first cell of a row.
15286 The line is then drawn in the output above the current row.
15289 \begin_layout Standard
15290 The default for the optional
15295 \begin_inset space \thinspace{}
15303 is the number of the column where the line starts and
15307 the column number where the line ends.
15312 always needs to be specified, also when the line should span only one column.
15313 The optional parameter
15330 Using for example the parameter
15334 means that the line is trimmed from its left end by 2
15335 \begin_inset space \thinspace{}
15339 If you don't specify the
15343 the line is trimmed by the default of 0.5
15344 \begin_inset space \thinspace{}
15350 \begin_layout Standard
15351 \begin_inset VSpace bigskip
15355 \begin_inset space ~
15359 \begin_inset CommandInset ref
15361 reference "tab:Example-booktabs-table"
15365 was created using the commands
15368 \begin_layout Standard
15378 \begin_layout Standard
15379 at the beginning of the second row and
15382 \begin_layout Standard
15387 cmidrule[2pt](l{10pt}){1-1}
15390 \begin_layout Standard
15394 \begin_layout Standard
15395 \begin_inset VSpace bigskip
15401 \begin_layout Standard
15402 You might want to have overlapping
15409 \begin_inset space ~
15413 \begin_inset CommandInset ref
15415 reference "tab:Special-booktabs-table"
15420 This can be achieved with the \SpecialChar TeX
15424 \begin_layout Standard
15432 \begin_layout Standard
15433 The command that was used for the second row of Table
15434 \begin_inset space ~
15438 \begin_inset CommandInset ref
15440 reference "tab:Special-booktabs-table"
15447 \begin_layout Standard
15461 \begin_layout Standard
15462 The command for the sixth row is
15465 \begin_layout Standard
15477 \begin_layout Standard
15478 \begin_inset VSpace bigskip
15484 \begin_layout Standard
15485 If you are in any way not satisfied with the border line spacing, you can
15486 use the following command to produce lines that span over all table columns
15491 \begin_layout Standard
15496 specialrule{width}{space above}{space below}
15499 \begin_layout Standard
15500 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15507 \begin_inset CommandInset citation
15515 \begin_inset Index idx
15518 \begin_layout Plain Layout
15520 -packages ! booktabs
15528 \begin_layout Standard
15529 \begin_inset Float table
15535 \begin_layout Plain Layout
15536 \begin_inset Caption Standard
15538 \begin_layout Plain Layout
15539 \begin_inset CommandInset label
15541 name "tab:Special-booktabs-table"
15545 Special booktabs-table
15553 \begin_layout Plain Layout
15555 \begin_inset Tabular
15556 <lyxtabular version="3" rows="8" columns="4">
15557 <features booktabs="true" tabularvalignment="middle">
15558 <column alignment="center" valignment="top">
15559 <column alignment="center" valignment="top">
15560 <column alignment="center" valignment="top">
15561 <column alignment="center" valignment="top">
15563 <cell alignment="center" valignment="top" topline="true" usebox="none">
15566 \begin_layout Plain Layout
15572 <cell alignment="center" valignment="top" topline="true" usebox="none">
15575 \begin_layout Plain Layout
15577 \begin_inset space \thinspace{}
15585 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15588 \begin_layout Plain Layout
15590 \begin_inset space \thinspace{}
15598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15601 \begin_layout Plain Layout
15609 <cell alignment="center" valignment="top" usebox="none">
15612 \begin_layout Plain Layout
15616 \begin_layout Plain Layout
15629 \begin_layout Plain Layout
15642 \begin_layout Plain Layout
15655 \begin_layout Plain Layout
15664 Detector thickness in µm
15669 <cell alignment="center" valignment="top" usebox="none">
15672 \begin_layout Plain Layout
15678 <cell alignment="center" valignment="top" usebox="none">
15681 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" usebox="none">
15690 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" topline="true" usebox="none">
15701 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" usebox="none">
15710 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" usebox="none">
15728 \begin_layout Plain Layout
15735 <row topspace="default">
15736 <cell alignment="center" valignment="top" usebox="none">
15739 \begin_layout Plain Layout
15740 Spatial resolution in µm
15745 <cell alignment="center" valignment="top" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" usebox="none">
15757 \begin_layout Plain Layout
15763 <cell alignment="center" valignment="top" usebox="none">
15766 \begin_layout Plain Layout
15773 <row topspace="default">
15774 <cell alignment="center" valignment="top" usebox="none">
15777 \begin_layout Plain Layout
15779 \begin_inset Formula $f_{\mathrm{max}}$
15787 <cell alignment="center" valignment="top" usebox="none">
15790 \begin_layout Plain Layout
15796 <cell alignment="center" valignment="top" usebox="none">
15799 \begin_layout Plain Layout
15805 <cell alignment="center" valignment="top" usebox="none">
15808 \begin_layout Plain Layout
15816 <cell alignment="center" valignment="top" topline="true" usebox="none">
15819 \begin_layout Plain Layout
15823 \begin_layout Plain Layout
15836 \begin_layout Plain Layout
15845 LSF-spatial resolution
15850 <cell alignment="center" valignment="top" topline="true" usebox="none">
15853 \begin_layout Plain Layout
15859 <cell alignment="center" valignment="top" topline="true" usebox="none">
15862 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" topline="true" usebox="none">
15871 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" usebox="none">
15882 \begin_layout Plain Layout
15888 <cell alignment="center" valignment="top" usebox="none">
15891 \begin_layout Plain Layout
15897 <cell alignment="center" valignment="top" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" usebox="none">
15909 \begin_layout Plain Layout
15917 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15920 \begin_layout Plain Layout
15926 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15929 \begin_layout Plain Layout
15935 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15938 \begin_layout Plain Layout
15944 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15947 \begin_layout Plain Layout
15966 \begin_layout Section
15967 Vertical Table Alignment
15968 \begin_inset Index idx
15971 \begin_layout Plain Layout
15980 \begin_layout Standard
15981 To align tables vertically in a text line, the table must be inside a box.
15982 The box can then be vertically aligned as described in section
15983 \begin_inset space ~
15987 \begin_inset CommandInset ref
15989 reference "sec:Box-Dialog"
15996 \begin_layout Standard
15997 In the following example the tables are inside a minipage
16001 \begin_layout Plain Layout
16002 Minipages are described in section
16003 \begin_inset space ~
16007 \begin_inset CommandInset ref
16009 reference "sec:Minipages"
16018 box that has a width of 15
16019 \begin_inset space \thinspace{}
16025 \begin_layout Itemize
16027 \begin_inset Box Frameless
16037 height_special "totalheight"
16042 backgroundcolor "none"
16045 \begin_layout Plain Layout
16046 \begin_inset Tabular
16047 <lyxtabular version="3" rows="3" columns="3">
16048 <features tabularvalignment="middle">
16049 <column alignment="center" valignment="top">
16050 <column alignment="center" valignment="top">
16051 <column alignment="center" valignment="top">
16053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16056 \begin_layout Plain Layout
16062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16065 \begin_layout Plain Layout
16071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16074 \begin_layout Plain Layout
16082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16085 \begin_layout Plain Layout
16091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16094 \begin_layout Plain Layout
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_layout Plain Layout
16111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16114 \begin_layout Plain Layout
16120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16123 \begin_layout Plain Layout
16129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16132 \begin_layout Plain Layout
16152 \begin_layout Plain Layout
16164 \begin_inset Box Frameless
16174 height_special "totalheight"
16179 backgroundcolor "none"
16182 \begin_layout Plain Layout
16183 \begin_inset Tabular
16184 <lyxtabular version="3" rows="3" columns="3">
16185 <features tabularvalignment="middle">
16186 <column alignment="center" valignment="top">
16187 <column alignment="center" valignment="top">
16188 <column alignment="center" valignment="top">
16190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16193 \begin_layout Plain Layout
16199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16202 \begin_layout Plain Layout
16208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16211 \begin_layout Plain Layout
16219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16222 \begin_layout Plain Layout
16228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16231 \begin_layout Plain Layout
16237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16240 \begin_layout Plain Layout
16248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16251 \begin_layout Plain Layout
16257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16260 \begin_layout Plain Layout
16266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16269 \begin_layout Plain Layout
16289 \begin_layout Plain Layout
16299 \begin_layout Itemize
16301 \begin_inset Box Frameless
16311 height_special "totalheight"
16316 backgroundcolor "none"
16319 \begin_layout Plain Layout
16320 \begin_inset Tabular
16321 <lyxtabular version="3" rows="3" columns="3">
16322 <features tabularvalignment="middle">
16323 <column alignment="center" valignment="top">
16324 <column alignment="center" valignment="top">
16325 <column alignment="center" valignment="top">
16327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16330 \begin_layout Plain Layout
16336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16339 \begin_layout Plain Layout
16345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16348 \begin_layout Plain Layout
16356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16359 \begin_layout Plain Layout
16365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16368 \begin_layout Plain Layout
16374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16377 \begin_layout Plain Layout
16385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16388 \begin_layout Plain Layout
16394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16397 \begin_layout Plain Layout
16403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16406 \begin_layout Plain Layout
16425 \begin_layout Itemize
16427 \begin_inset Box Frameless
16437 height_special "totalheight"
16442 backgroundcolor "none"
16445 \begin_layout Plain Layout
16446 \begin_inset Tabular
16447 <lyxtabular version="3" rows="3" columns="3">
16448 <features tabularvalignment="middle">
16449 <column alignment="center" valignment="top">
16450 <column alignment="center" valignment="top">
16451 <column alignment="center" valignment="top">
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16465 \begin_layout Plain Layout
16471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16485 \begin_layout Plain Layout
16491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16494 \begin_layout Plain Layout
16500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16503 \begin_layout Plain Layout
16511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16514 \begin_layout Plain Layout
16520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16523 \begin_layout Plain Layout
16529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16532 \begin_layout Plain Layout
16552 \begin_layout Plain Layout
16564 \begin_inset Box Frameless
16574 height_special "totalheight"
16579 backgroundcolor "none"
16582 \begin_layout Plain Layout
16583 \begin_inset Tabular
16584 <lyxtabular version="3" rows="3" columns="3">
16585 <features tabularvalignment="middle">
16586 <column alignment="center" valignment="top">
16587 <column alignment="center" valignment="top">
16588 <column alignment="center" valignment="top">
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16593 \begin_layout Plain Layout
16599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16602 \begin_layout Plain Layout
16608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16611 \begin_layout Plain Layout
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16622 \begin_layout Plain Layout
16628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16631 \begin_layout Plain Layout
16637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16640 \begin_layout Plain Layout
16648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16651 \begin_layout Plain Layout
16657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16660 \begin_layout Plain Layout
16666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16669 \begin_layout Plain Layout
16689 \begin_layout Plain Layout
16699 \begin_layout Standard
16700 As you will see, the content of the first and last table row is not correctly
16702 To get this alignment, the minipage box must be set into a raisebox.
16706 \begin_layout Plain Layout
16707 Raiseboxes are described in section
16708 \begin_inset space ~
16712 \begin_inset CommandInset ref
16714 reference "subsec:Vertical-Alignment"
16723 In the example above the second table in the first item is aligned using
16724 the \SpecialChar TeX
16728 \begin_layout Standard
16738 \begin_layout Standard
16740 After the box the closing brace
16744 is inserted as \SpecialChar TeX
16746 For the second table in the last item the command
16749 \begin_layout Standard
16759 \begin_layout Standard
16763 \begin_layout Standard
16764 \begin_inset Note Greyedout
16767 \begin_layout Plain Layout
16772 The alignment of the table row content to the surrounding text line is
16774 The required value for the
16780 command for this alignment depends on the document font, the font size,
16781 and the table line thickness.
16789 \begin_layout Section
16791 \begin_inset CommandInset label
16793 name "sec:Colored-Tables"
16798 \begin_inset Index idx
16801 \begin_layout Plain Layout
16810 \begin_layout Subsection
16812 \begin_inset Index idx
16815 \begin_layout Plain Layout
16816 Table Color ! for Cells
16822 \begin_inset Index idx
16825 \begin_layout Plain Layout
16826 Color ! for Table Cells
16834 \begin_layout Standard
16835 \begin_inset Float table
16841 \begin_layout Plain Layout
16842 \begin_inset Caption Standard
16844 \begin_layout Plain Layout
16845 \begin_inset CommandInset label
16847 name "tab:Table-colored-without"
16851 Table colored without using the package
16856 \begin_inset Argument 1
16859 \begin_layout Plain Layout
16860 Table without colortbl
16873 \begin_layout Plain Layout
16875 \begin_inset Tabular
16876 <lyxtabular version="3" rows="3" columns="3">
16877 <features tabularvalignment="middle">
16878 <column alignment="center" valignment="top">
16879 <column alignment="center" valignment="top">
16880 <column alignment="center" valignment="top">
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16885 \begin_layout Plain Layout
16893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16896 \begin_layout Plain Layout
16904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16907 \begin_layout Plain Layout
16917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16920 \begin_layout Plain Layout
16928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16931 \begin_layout Plain Layout
16939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16942 \begin_layout Plain Layout
16952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16955 \begin_layout Plain Layout
16963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16966 \begin_layout Plain Layout
16974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16977 \begin_layout Plain Layout
16998 \begin_layout Standard
16999 If you only need colored text, mark the cells and choose a color in the
17003 \begin_inset space ~
17008 dialog (toolbar button
17011 arg "dialog-show character"
17015 This was used to create Table
17016 \begin_inset space ~
17020 \begin_inset CommandInset ref
17022 reference "tab:Table-colored-without"
17027 In any other case you have to use the \SpecialChar LaTeX
17033 \begin_inset Index idx
17036 \begin_layout Plain Layout
17038 -packages ! colortbl
17046 \begin_layout Standard
17050 \begin_layout Plain Layout
17060 \begin_inset Note Note
17063 \begin_layout Plain Layout
17064 The following section part will only be displayed when the \SpecialChar LaTeX
17077 \begin_layout Standard
17078 To create colored tables,
17082 must be loaded in the preamble with the line
17085 \begin_layout Standard
17090 usepackage{colortbl}
17093 \begin_layout Standard
17094 The color of a column is adjusted with the command
17097 \begin_layout Standard
17102 columncolor{name of color}
17105 \begin_layout Standard
17111 More about the command
17115 is contained in section
17116 \begin_inset space ~
17120 \begin_inset CommandInset ref
17122 reference "subsec:Multicolumn-Calculations"
17129 \begin_layout Standard
17130 The following color names are predefined:
17133 \begin_layout Standard
17167 \begin_layout Standard
17168 \begin_inset VSpace medskip
17174 \begin_layout Standard
17175 If you add the option
17178 \begin_layout Standard
17184 \begin_layout Standard
17185 to the document class options in the document settings, you can additionally
17187 \begin_inset space ~
17191 These colors are listed in appendix
17192 \begin_inset space ~
17196 \begin_inset CommandInset ref
17198 reference "chap:List-of-dvips-colornames"
17203 One of these colors,
17207 , is used as example in Table
17208 \begin_inset space ~
17212 \begin_inset CommandInset ref
17214 reference "tab:Table-colored-using"
17221 \begin_layout Standard
17222 \begin_inset VSpace medskip
17228 \begin_layout Standard
17229 You can also define your own color with the command
17232 \begin_layout Standard
17237 definecolor{color name}{color model}{color values}
17240 \begin_layout Standard
17241 The color model can be
17244 \begin_layout Labeling
17245 \labelwidthstring 00.00.0000
17246 cmyk: cyan, magenta, yellow, black
17249 \begin_layout Labeling
17250 \labelwidthstring 00.00.0000
17251 rgb: red, green blue
17254 \begin_layout Labeling
17255 \labelwidthstring 00.00.0000
17259 \begin_layout Standard
17260 and the color values are comma separated numbers between 0 and 1 describing
17261 the factor for the corresponding color of the color model.
17264 \begin_layout Standard
17266 \begin_inset space \thinspace{}
17270 \begin_inset space \space{}
17277 " in the preamble with
17280 \begin_layout Standard
17285 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17288 \begin_layout Standard
17296 \begin_layout Standard
17301 definecolor{lightgray}{gray}{0.8}
17304 \begin_layout Standard
17305 \begin_inset VSpace medskip
17311 \begin_layout Standard
17312 Lines are colored with the command
17315 \begin_layout Standard
17320 rowcolor{name of color}
17323 \begin_layout Standard
17324 and cells are colored with the command
17327 \begin_layout Standard
17332 cellcolor{name of color}
17335 \begin_layout Standard
17336 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17340 \begin_layout Standard
17341 To color characters in the table, mark the cells and use the
17344 \begin_inset space ~
17350 If a cell contains \SpecialChar TeX
17351 Code mark only the characters, otherwise the colored
17353 Code will cause \SpecialChar LaTeX
17357 \begin_layout Standard
17358 \begin_inset Note Greyedout
17361 \begin_layout Plain Layout
17366 Not all DVI-viewers are able to display self-defined colors.
17374 \begin_layout Standard
17375 \begin_inset VSpace bigskip
17381 \begin_layout Standard
17383 \begin_inset space ~
17387 \begin_inset CommandInset ref
17389 reference "tab:Table-colored-using"
17393 do the following: The color of the first column should be
17401 \begin_layout Standard
17406 columncolor{darkgreen}
17411 \begin_layout Standard
17412 as \SpecialChar LaTeX
17413 -argument for this column.
17414 The first row should be light blue, therefore the \SpecialChar TeX
17418 \begin_layout Standard
17426 \begin_layout Standard
17427 is inserted to the first cell of this row.
17428 Note that this overwrites the column color for the first cell.
17429 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17434 \begin_layout Standard
17442 \begin_layout Standard
17443 The characters could now be colored using the menu
17445 Edit\SpecialChar menuseparator
17447 \begin_inset space ~
17455 \begin_layout Standard
17456 \begin_inset Float table
17462 \begin_layout Plain Layout
17463 \begin_inset Caption Standard
17465 \begin_layout Plain Layout
17466 \begin_inset CommandInset label
17468 name "tab:Table-colored-using"
17472 Table colored using the package
17477 \begin_inset Argument 1
17480 \begin_layout Plain Layout
17481 Table with colortbl
17494 \begin_layout Plain Layout
17496 \begin_inset Tabular
17497 <lyxtabular version="3" rows="3" columns="3">
17498 <features tabularvalignment="middle">
17499 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17500 <column alignment="center" valignment="top">
17501 <column alignment="center" valignment="top">
17503 <cell alignment="center" valignment="top" usebox="none">
17506 \begin_layout Plain Layout
17510 \begin_layout Plain Layout
17526 <cell alignment="center" valignment="top" usebox="none">
17529 \begin_layout Plain Layout
17537 <cell alignment="center" valignment="top" usebox="none">
17540 \begin_layout Plain Layout
17550 <cell alignment="center" valignment="top" usebox="none">
17553 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" usebox="none">
17564 \begin_layout Plain Layout
17572 <cell alignment="center" valignment="top" usebox="none">
17575 \begin_layout Plain Layout
17585 <cell alignment="center" valignment="top" usebox="none">
17588 \begin_layout Plain Layout
17596 <cell alignment="center" valignment="top" usebox="none">
17599 \begin_layout Plain Layout
17607 <cell alignment="center" valignment="top" usebox="none">
17610 \begin_layout Plain Layout
17614 \begin_layout Plain Layout
17643 \begin_layout Standard
17647 \begin_layout Plain Layout
17657 \begin_inset Note Note
17660 \begin_layout Plain Layout
17661 The following will be displayed when the \SpecialChar LaTeX
17674 \begin_layout Standard
17675 You need to install the package
17679 to see the content of this section in the output.
17682 \begin_layout Standard
17686 \begin_layout Plain Layout
17698 \begin_layout Subsection
17700 \begin_inset Index idx
17703 \begin_layout Plain Layout
17704 Table Color ! for Rows
17710 \begin_inset Index idx
17713 \begin_layout Plain Layout
17714 Color ! for Table Rows
17722 \begin_layout Standard
17723 In case every second table row needs to be colored there is an alternative
17724 to the method described in the previous section: One loads the package
17730 \begin_inset Index idx
17733 \begin_layout Plain Layout
17739 \begin_layout Plain Layout
17753 in the document preamble with the command
17756 \begin_layout Standard
17761 usepackage[table]{xcolor}
17764 \begin_layout Standard
17769 automatically loads also the package
17774 \begin_inset Index idx
17777 \begin_layout Plain Layout
17779 -packages ! colortbl
17788 must be installed in your \SpecialChar LaTeX
17789 -distribution, otherwise you get \SpecialChar LaTeX
17793 \begin_layout Standard
17797 \begin_layout Plain Layout
17807 \begin_inset Note Note
17810 \begin_layout Plain Layout
17811 The following section part will only be displayed when the \SpecialChar LaTeX
17824 \begin_layout Standard
17825 The table rows are colored with the command
17828 \begin_layout Standard
17833 rowcolors[commands]{row number}{odd row color}{even row color}
17836 \begin_layout Standard
17837 that is either inserted in the document preamble or as \SpecialChar TeX
17839 first table to be colored.
17841 \begin_inset space ~
17844 number is the number of the first row which should be colored according
17845 to the odd row color.
17846 commands can be additional commands that are executed before every table
17848 So for example the command
17851 \begin_layout Standard
17856 rowcolors{1}{white}{lightgray}
17859 \begin_layout Standard
17860 leads to the coloring scheme of Table
17861 \begin_inset space ~
17865 \begin_inset CommandInset ref
17867 reference "tab:Table-rowcolors"
17875 \begin_layout Standard
17882 hline]{1}{lightgray}{cyan}
17885 \begin_layout Standard
17886 leads to the coloring scheme of Table
17887 \begin_inset space ~
17891 \begin_inset CommandInset ref
17893 reference "tab:Table-rowcolors-2"
17899 \begin_inset space ~
17903 \begin_inset space ~
17907 \begin_inset space ~
17911 \begin_inset space ~
17914 color are left empty, no color will be used so that the command
17917 \begin_layout Standard
17925 \begin_layout Standard
17926 deletes all colors.
17933 affects all tables following that command.
17936 \begin_layout Standard
17940 \begin_layout Plain Layout
17944 rowcolors{1}{white}{lightgray}
17952 \begin_layout Standard
17953 \begin_inset Float table
17959 \begin_layout Plain Layout
17960 \begin_inset Caption Standard
17962 \begin_layout Plain Layout
17963 \begin_inset CommandInset label
17965 name "tab:Table-rowcolors"
17969 Table where every second row is colored light gray.
17977 \begin_layout Plain Layout
17979 \begin_inset Tabular
17980 <lyxtabular version="3" rows="4" columns="3">
17981 <features tabularvalignment="middle">
17982 <column alignment="center" valignment="top">
17983 <column alignment="center" valignment="top" width="0pt">
17984 <column alignment="center" valignment="top" width="0pt">
17986 <cell alignment="center" valignment="top" usebox="none">
17989 \begin_layout Plain Layout
17995 <cell alignment="center" valignment="top" usebox="none">
17998 \begin_layout Plain Layout
18004 <cell alignment="center" valignment="top" usebox="none">
18007 \begin_layout Plain Layout
18015 <cell alignment="center" valignment="top" usebox="none">
18018 \begin_layout Plain Layout
18024 <cell alignment="center" valignment="top" usebox="none">
18027 \begin_layout Plain Layout
18033 <cell alignment="center" valignment="top" usebox="none">
18036 \begin_layout Plain Layout
18044 <cell alignment="center" valignment="top" usebox="none">
18047 \begin_layout Plain Layout
18053 <cell alignment="center" valignment="top" usebox="none">
18056 \begin_layout Plain Layout
18062 <cell alignment="center" valignment="top" usebox="none">
18065 \begin_layout Plain Layout
18073 <cell alignment="center" valignment="top" usebox="none">
18076 \begin_layout Plain Layout
18082 <cell alignment="center" valignment="top" usebox="none">
18085 \begin_layout Plain Layout
18091 <cell alignment="center" valignment="top" usebox="none">
18094 \begin_layout Plain Layout
18113 \begin_layout Standard
18117 \begin_layout Plain Layout
18123 hline]{1}{lightgray}{cyan}
18131 \begin_layout Standard
18132 \begin_inset Float table
18138 \begin_layout Plain Layout
18139 \begin_inset Caption Standard
18141 \begin_layout Plain Layout
18142 \begin_inset CommandInset label
18144 name "tab:Table-rowcolors-2"
18148 Table where every second row is colored cyan and at which there is a line
18157 \begin_layout Plain Layout
18159 \begin_inset Tabular
18160 <lyxtabular version="3" rows="4" columns="3">
18161 <features tabularvalignment="middle">
18162 <column alignment="center" valignment="top">
18163 <column alignment="center" valignment="top">
18164 <column alignment="center" valignment="top" width="0pt">
18166 <cell alignment="center" valignment="top" usebox="none">
18169 \begin_layout Plain Layout
18175 <cell alignment="center" valignment="top" usebox="none">
18178 \begin_layout Plain Layout
18184 <cell alignment="center" valignment="top" usebox="none">
18187 \begin_layout Plain Layout
18195 <cell alignment="center" valignment="top" usebox="none">
18198 \begin_layout Plain Layout
18204 <cell alignment="center" valignment="top" usebox="none">
18207 \begin_layout Plain Layout
18213 <cell alignment="center" valignment="top" usebox="none">
18216 \begin_layout Plain Layout
18224 <cell alignment="center" valignment="top" usebox="none">
18227 \begin_layout Plain Layout
18233 <cell alignment="center" valignment="top" usebox="none">
18236 \begin_layout Plain Layout
18242 <cell alignment="center" valignment="top" usebox="none">
18245 \begin_layout Plain Layout
18253 <cell alignment="center" valignment="top" usebox="none">
18256 \begin_layout Plain Layout
18262 <cell alignment="center" valignment="top" usebox="none">
18265 \begin_layout Plain Layout
18271 <cell alignment="center" valignment="top" usebox="none">
18274 \begin_layout Plain Layout
18293 \begin_layout Standard
18297 \begin_layout Plain Layout
18307 \begin_inset Note Note
18310 \begin_layout Plain Layout
18311 turns off the row coloring
18319 \begin_layout Standard
18323 \begin_layout Plain Layout
18333 \begin_inset Note Note
18336 \begin_layout Plain Layout
18337 The following will be displayed when the \SpecialChar LaTeX
18350 \begin_layout Standard
18351 You need to install the package
18355 to see the content of this section in the output.
18358 \begin_layout Standard
18362 \begin_layout Plain Layout
18374 \begin_layout Subsection
18376 \begin_inset Index idx
18379 \begin_layout Plain Layout
18380 Table Color ! for Lines
18386 \begin_inset Index idx
18389 \begin_layout Plain Layout
18390 Color ! for Table Lines
18398 \begin_layout Standard
18399 As described in section
18400 \begin_inset space ~
18404 \begin_inset CommandInset ref
18406 reference "subsec:Line-Thickness"
18410 , the line thickness for all lines in a table can be adjusted with the length
18419 \begin_inset space \thinspace{}
18422 pt for all tables of this section.
18426 \begin_layout Plain Layout
18432 arrayrulewidth}{1.5pt}
18440 \begin_layout Standard
18441 To color vertical lines for example with green, create the following column
18442 format in the document preamble, according to the description in section
18443 \begin_inset space ~
18447 \begin_inset CommandInset ref
18449 reference "subsec:Customized-Format"
18456 \begin_layout Standard
18461 newcolumntype{W}{!{
18468 \begin_layout Standard
18470 \begin_inset space ~
18474 \begin_inset CommandInset ref
18476 reference "tab:Table-with-vertical-colored"
18480 the \SpecialChar LaTeX
18485 was used for the last column and
18489 for the other columns.
18492 \begin_layout Standard
18493 If you want to have several colors, define more column formats.
18496 \begin_layout Standard
18497 \begin_inset Float table
18503 \begin_layout Plain Layout
18504 \begin_inset Caption Standard
18506 \begin_layout Plain Layout
18507 \begin_inset CommandInset label
18509 name "tab:Table-with-vertical-colored"
18513 Table with colored vertical lines
18521 \begin_layout Plain Layout
18523 \begin_inset Tabular
18524 <lyxtabular version="3" rows="3" columns="3">
18525 <features tabularvalignment="middle">
18526 <column alignment="center" valignment="top" special="Wc">
18527 <column alignment="center" valignment="top" special="Wc">
18528 <column alignment="center" valignment="top" special="WcW">
18530 <cell alignment="center" valignment="top" topline="true" usebox="none">
18533 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" topline="true" usebox="none">
18542 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" topline="true" usebox="none">
18551 \begin_layout Plain Layout
18559 <cell alignment="center" valignment="top" topline="true" usebox="none">
18562 \begin_layout Plain Layout
18568 <cell alignment="center" valignment="top" topline="true" usebox="none">
18571 \begin_layout Plain Layout
18577 <cell alignment="center" valignment="top" topline="true" usebox="none">
18580 \begin_layout Plain Layout
18588 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18591 \begin_layout Plain Layout
18597 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18600 \begin_layout Plain Layout
18606 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18609 \begin_layout Plain Layout
18628 \begin_layout Standard
18629 \begin_inset VSpace bigskip
18632 To color all horizontal lines for example with red, as in Table
18633 \begin_inset space ~
18637 \begin_inset CommandInset ref
18639 reference "tab:Table-with-horizontal-colored"
18643 , insert these commands in \SpecialChar TeX
18644 code before the table or table float:
18647 \begin_layout Standard
18657 \begin_inset Newline newline
18665 \begin_inset Newline newline
18669 \begin_inset Phantom HPhantom
18672 \begin_layout Plain Layout
18675 \begin_inset space ~
18685 arrayrulecolor{red}
18689 arrayrulecolor{black}}
18692 \begin_layout Standard
18696 \begin_layout Plain Layout
18707 \begin_layout Plain Layout
18716 \begin_layout Plain Layout
18720 arrayrulecolor{red}
18724 arrayrulecolor{black}}
18730 \begin_inset Float table
18736 \begin_layout Plain Layout
18737 \begin_inset Caption Standard
18739 \begin_layout Plain Layout
18740 \begin_inset CommandInset label
18742 name "tab:Table-with-horizontal-colored"
18746 Table with colored horizontal lines
18754 \begin_layout Plain Layout
18756 \begin_inset Tabular
18757 <lyxtabular version="3" rows="3" columns="3">
18758 <features tabularvalignment="middle">
18759 <column alignment="center" valignment="top">
18760 <column alignment="center" valignment="top">
18761 <column alignment="center" valignment="top">
18763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18766 \begin_layout Plain Layout
18772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18775 \begin_layout Plain Layout
18781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18784 \begin_layout Plain Layout
18792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18795 \begin_layout Plain Layout
18801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18804 \begin_layout Plain Layout
18810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18813 \begin_layout Plain Layout
18821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18824 \begin_layout Plain Layout
18830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18842 \begin_layout Plain Layout
18861 \begin_layout Standard
18862 To return to the default line color black, insert this command in \SpecialChar TeX
18864 after the table or table float:
18867 \begin_layout Standard
18879 \begin_layout Standard
18881 \begin_inset space ~
18885 \begin_inset CommandInset ref
18887 reference "tab:Table-with-colored"
18891 is an example with colored vertical and horizontal lines.
18894 \begin_layout Standard
18895 \begin_inset Float table
18901 \begin_layout Plain Layout
18902 \begin_inset Caption Standard
18904 \begin_layout Plain Layout
18905 \begin_inset CommandInset label
18907 name "tab:Table-with-colored"
18911 Table with colored lines
18919 \begin_layout Plain Layout
18921 \begin_inset Tabular
18922 <lyxtabular version="3" rows="3" columns="3">
18923 <features tabularvalignment="middle">
18924 <column alignment="center" valignment="top" special="Wc">
18925 <column alignment="center" valignment="top" special="Wc">
18926 <column alignment="center" valignment="top" special="WcW">
18928 <cell alignment="center" valignment="top" topline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" usebox="none">
18940 \begin_layout Plain Layout
18946 <cell alignment="center" valignment="top" topline="true" usebox="none">
18949 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" usebox="none">
18969 \begin_layout Plain Layout
18975 <cell alignment="center" valignment="top" topline="true" usebox="none">
18978 \begin_layout Plain Layout
18985 <row topspace="default">
18986 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18989 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19007 \begin_layout Plain Layout
19026 \begin_layout Standard
19030 \begin_layout Plain Layout
19046 \begin_layout Standard
19050 \begin_layout Plain Layout
19056 arrayrulewidth}{1.2pt}
19064 \begin_layout Standard
19065 To color only some of the table lines another strategy is necessary.
19066 To color all following horizontal lines, insert this command as \SpecialChar TeX
19068 last thing in the row that should be above the first colored line:
19071 \begin_layout Standard
19080 arrayrulecolor{blue}%
19083 \begin_layout Standard
19084 To go back to black lines, add this command as first thing in the row that
19085 is above the black lines:
19088 \begin_layout Standard
19093 arrayrulecolor{black}
19096 \begin_layout Standard
19097 With this one can color table lines like in Table
19098 \begin_inset space ~
19102 \begin_inset CommandInset ref
19104 reference "tab:Table-with-different-hor"
19109 However, with this method it is not possible to color the line above the
19110 first row of a table.
19113 \begin_layout Standard
19114 \begin_inset Float table
19119 \begin_layout Plain Layout
19120 \begin_inset Caption Standard
19122 \begin_layout Plain Layout
19123 \begin_inset CommandInset label
19125 name "tab:Table-with-different-hor"
19129 Table with different horizontal line colors.
19137 \begin_layout Plain Layout
19139 \begin_inset Tabular
19140 <lyxtabular version="3" rows="6" columns="7">
19141 <features tabularvalignment="middle">
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">
19147 <column alignment="center" valignment="top">
19148 <column alignment="center" valignment="top">
19150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19153 \begin_layout Plain Layout
19159 <cell alignment="center" valignment="top" topline="true" usebox="none">
19162 \begin_layout Plain Layout
19168 <cell alignment="center" valignment="top" topline="true" usebox="none">
19171 \begin_layout Plain Layout
19177 <cell alignment="center" valignment="top" topline="true" usebox="none">
19180 \begin_layout Plain Layout
19186 <cell alignment="center" valignment="top" topline="true" usebox="none">
19189 \begin_layout Plain Layout
19195 <cell alignment="center" valignment="top" topline="true" usebox="none">
19198 \begin_layout Plain Layout
19204 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19207 \begin_layout Plain Layout
19211 \begin_layout Plain Layout
19219 arrayrulecolor{blue}%
19231 <cell alignment="center" valignment="top" usebox="none">
19234 \begin_layout Plain Layout
19240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19243 \begin_layout Plain Layout
19249 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19252 \begin_layout Plain Layout
19258 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19261 \begin_layout Plain Layout
19267 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19270 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19279 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" usebox="none">
19288 \begin_layout Plain Layout
19296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19299 \begin_layout Plain Layout
19303 \begin_layout Plain Layout
19307 arrayrulecolor{black}
19317 <cell alignment="center" valignment="top" usebox="none">
19320 \begin_layout Plain Layout
19326 <cell alignment="center" valignment="top" usebox="none">
19329 \begin_layout Plain Layout
19335 <cell alignment="center" valignment="top" usebox="none">
19338 \begin_layout Plain Layout
19344 <cell alignment="center" valignment="top" usebox="none">
19347 \begin_layout Plain Layout
19353 <cell alignment="center" valignment="top" usebox="none">
19356 \begin_layout Plain Layout
19362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19365 \begin_layout Plain Layout
19373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19376 \begin_layout Plain Layout
19382 <cell alignment="center" valignment="top" usebox="none">
19385 \begin_layout Plain Layout
19391 <cell alignment="center" valignment="top" usebox="none">
19394 \begin_layout Plain Layout
19400 <cell alignment="center" valignment="top" usebox="none">
19403 \begin_layout Plain Layout
19409 <cell alignment="center" valignment="top" usebox="none">
19412 \begin_layout Plain Layout
19418 <cell alignment="center" valignment="top" usebox="none">
19421 \begin_layout Plain Layout
19427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19430 \begin_layout Plain Layout
19434 \begin_layout Plain Layout
19442 arrayrulecolor{green}%
19454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19457 \begin_layout Plain Layout
19463 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19466 \begin_layout Plain Layout
19472 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19475 \begin_layout Plain Layout
19481 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19484 \begin_layout Plain Layout
19490 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19493 \begin_layout Plain Layout
19499 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19502 \begin_layout Plain Layout
19508 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19511 \begin_layout Plain Layout
19519 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19522 \begin_layout Plain Layout
19526 \begin_layout Plain Layout
19530 arrayrulecolor{black}
19540 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19543 \begin_layout Plain Layout
19549 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19552 \begin_layout Plain Layout
19558 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19561 \begin_layout Plain Layout
19567 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19570 \begin_layout Plain Layout
19576 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19579 \begin_layout Plain Layout
19585 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19588 \begin_layout Plain Layout
19592 \begin_layout Plain Layout
19600 arrayrulecolor{blue}%
19623 \begin_layout Standard
19624 To change the color of vertical lines within a row, like in Table
19625 \begin_inset space ~
19629 \begin_inset CommandInset ref
19631 reference "tab:Table-with-different-ver"
19635 , one needs to use multicolumns.
19636 At first one needs to remove all vertical lines that don't run along the
19638 Now one colors all lines using the command
19641 \begin_layout Standard
19650 arrayrulecolor{blue}%
19653 \begin_layout Standard
19655 Finally one inserts this command as \SpecialChar TeX
19656 code to every cell in the row where
19657 one needs a vertical line in a different color:
19660 \begin_layout Standard
19676 \begin_layout Standard
19677 This adds a vertical line to both sides of the cell.
19678 The left one will be green, the right one red.
19679 If no color change is necessary one can omit the
19685 command in the above command.
19686 To get for example a black left line and a blue right line you can write:
19689 \begin_layout Standard
19701 \begin_layout Standard
19702 because the color blue was already set for all lines.
19707 creates hereby the vertical line while
19720 To set vertical lines without changing any color use
19723 \begin_layout Standard
19728 multicolumn{1}{|c|}{
19731 \begin_layout Standard
19732 After this command insert the cell content the normal way and end the cell
19733 with a closing brace
19737 in \SpecialChar TeX
19741 \begin_layout Standard
19742 \begin_inset Float table
19747 \begin_layout Plain Layout
19748 \begin_inset Caption Standard
19750 \begin_layout Plain Layout
19751 \begin_inset CommandInset label
19753 name "tab:Table-with-different-ver"
19757 Table with different vertical line colors in one row.
19765 \begin_layout Plain Layout
19767 \begin_inset Tabular
19768 <lyxtabular version="3" rows="5" columns="7">
19769 <features tabularvalignment="middle">
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">
19775 <column alignment="center" valignment="top">
19776 <column alignment="center" valignment="top">
19778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19781 \begin_layout Plain Layout
19787 <cell alignment="center" valignment="top" topline="true" usebox="none">
19790 \begin_layout Plain Layout
19796 <cell alignment="center" valignment="top" topline="true" usebox="none">
19799 \begin_layout Plain Layout
19805 <cell alignment="center" valignment="top" topline="true" usebox="none">
19808 \begin_layout Plain Layout
19814 <cell alignment="center" valignment="top" topline="true" usebox="none">
19817 \begin_layout Plain Layout
19823 <cell alignment="center" valignment="top" topline="true" usebox="none">
19826 \begin_layout Plain Layout
19832 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19835 \begin_layout Plain Layout
19839 \begin_layout Plain Layout
19847 arrayrulecolor{red}%
19859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19862 \begin_layout Plain Layout
19866 \begin_layout Plain Layout
19883 \begin_layout Plain Layout
19895 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19898 \begin_layout Plain Layout
19904 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19907 \begin_layout Plain Layout
19913 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19916 \begin_layout Plain Layout
19922 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19925 \begin_layout Plain Layout
19931 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19934 \begin_layout Plain Layout
19938 \begin_layout Plain Layout
19942 multicolumn{1}{c|}{
19951 \begin_layout Plain Layout
19963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19966 \begin_layout Plain Layout
19970 \begin_layout Plain Layout
19987 \begin_layout Plain Layout
20001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20004 \begin_layout Plain Layout
20008 \begin_layout Plain Layout
20012 arrayrulecolor{black}
20022 <cell alignment="center" valignment="top" usebox="none">
20025 \begin_layout Plain Layout
20031 <cell alignment="center" valignment="top" usebox="none">
20034 \begin_layout Plain Layout
20040 <cell alignment="center" valignment="top" usebox="none">
20043 \begin_layout Plain Layout
20049 <cell alignment="center" valignment="top" usebox="none">
20052 \begin_layout Plain Layout
20058 <cell alignment="center" valignment="top" usebox="none">
20061 \begin_layout Plain Layout
20067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20070 \begin_layout Plain Layout
20074 \begin_layout Plain Layout
20082 arrayrulecolor{magenta}%
20094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20097 \begin_layout Plain Layout
20101 \begin_layout Plain Layout
20105 multicolumn{1}{|c!{
20118 \begin_layout Plain Layout
20130 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20133 \begin_layout Plain Layout
20137 \begin_layout Plain Layout
20154 \begin_layout Plain Layout
20166 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20169 \begin_layout Plain Layout
20173 \begin_layout Plain Layout
20190 \begin_layout Plain Layout
20202 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20205 \begin_layout Plain Layout
20209 \begin_layout Plain Layout
20226 \begin_layout Plain Layout
20238 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20241 \begin_layout Plain Layout
20245 \begin_layout Plain Layout
20262 \begin_layout Plain Layout
20274 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20277 \begin_layout Plain Layout
20281 \begin_layout Plain Layout
20298 \begin_layout Plain Layout
20310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20313 \begin_layout Plain Layout
20317 \begin_layout Plain Layout
20321 multicolumn{1}{c|}{
20330 \begin_layout Plain Layout
20344 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20347 \begin_layout Plain Layout
20351 \begin_layout Plain Layout
20355 arrayrulecolor{black}
20365 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20368 \begin_layout Plain Layout
20374 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20377 \begin_layout Plain Layout
20383 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20386 \begin_layout Plain Layout
20392 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20395 \begin_layout Plain Layout
20401 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20404 \begin_layout Plain Layout
20410 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20413 \begin_layout Plain Layout
20432 \begin_layout Standard
20436 \begin_layout Plain Layout
20442 arrayrulewidth}{0.4pt}
20450 \begin_layout Section
20451 Rotated Table Cells
20452 \begin_inset CommandInset label
20454 name "sec:Rotated-Table-Cells"
20459 \begin_inset Index idx
20462 \begin_layout Plain Layout
20463 Table ! Rotated Cells
20469 \begin_inset Index idx
20472 \begin_layout Plain Layout
20481 \begin_layout Standard
20482 \begin_inset Note Greyedout
20485 \begin_layout Plain Layout
20490 Not all DVI-viewers are able to display rotations.
20498 \begin_layout Standard
20500 \begin_inset space ~
20504 \begin_inset CommandInset ref
20506 reference "tab:Table-with-rotated-multi"
20510 is an example where 3
20511 \begin_inset space ~
20514 cells were rotated by 45
20515 \begin_inset space \thinspace{}
20521 \begin_layout Standard
20522 \begin_inset Float table
20528 \begin_layout Plain Layout
20529 \begin_inset Caption Standard
20531 \begin_layout Plain Layout
20532 \begin_inset CommandInset label
20534 name "tab:Table-with-rotated"
20538 Table with rotated cells in the first row.
20546 \begin_layout Plain Layout
20549 \begin_inset Tabular
20550 <lyxtabular version="3" rows="2" columns="3">
20551 <features tabularvalignment="middle">
20552 <column alignment="center" valignment="top" width="0pt">
20553 <column alignment="center" valignment="top" width="0pt">
20554 <column alignment="center" valignment="top" width="0pt">
20556 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20559 \begin_layout Plain Layout
20565 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20568 \begin_layout Plain Layout
20574 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20577 \begin_layout Plain Layout
20585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20588 \begin_layout Plain Layout
20594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20597 \begin_layout Plain Layout
20603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20606 \begin_layout Plain Layout
20625 \begin_layout Standard
20626 \begin_inset Note Greyedout
20629 \begin_layout Plain Layout
20634 Line breaks (shortcut
20637 arg "newline-insert newline"
20640 ) are not allowed in rotated cells.
20648 \begin_layout Standard
20649 If you want to rotate table cells containing line breaks, you have to put
20650 the cell content into a minipage or a parbox.
20654 \begin_layout Plain Layout
20655 For more about these boxes see sec.
20656 \begin_inset space \thinspace{}
20660 \begin_inset CommandInset ref
20662 reference "sec:Minipages"
20667 \begin_inset CommandInset ref
20669 reference "sec:Parboxes"
20678 If you rotate this cell by 90
20679 \begin_inset space \thinspace{}
20682 ° the width of the box is the height of the cell.
20684 \begin_inset space ~
20688 \begin_inset CommandInset ref
20690 reference "tab:Table-with-rotated-multi"
20694 is an example for a rotated multiline cell where the box width was set
20696 \begin_inset space \thinspace{}
20702 \begin_layout Standard
20703 \begin_inset Float table
20708 \begin_layout Plain Layout
20709 \begin_inset Caption Standard
20711 \begin_layout Plain Layout
20712 \begin_inset CommandInset label
20714 name "tab:Table-with-rotated-multi"
20718 Table with rotated multiline cell.
20726 \begin_layout Plain Layout
20729 \begin_inset Tabular
20730 <lyxtabular version="3" rows="2" columns="3">
20731 <features tabularvalignment="middle">
20732 <column alignment="center" valignment="top">
20733 <column alignment="center" valignment="top" width="0pt">
20734 <column alignment="center" valignment="top">
20736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20739 \begin_layout Plain Layout
20745 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20748 \begin_layout Plain Layout
20749 \begin_inset Box Frameless
20759 height_special "totalheight"
20764 backgroundcolor "none"
20767 \begin_layout Plain Layout
20769 \begin_inset Newline newline
20782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20785 \begin_layout Plain Layout
20793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20796 \begin_layout Plain Layout
20802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20805 \begin_layout Plain Layout
20811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20814 \begin_layout Plain Layout
20833 \begin_layout Section
20834 Table Width Calculation
20835 \begin_inset CommandInset label
20837 name "sec:Table-Width-Calculation"
20844 \begin_layout Standard
20845 For wide tables it is sometimes difficult to assure that the table does
20846 not protrude over the page margin.
20847 Setting a fixed width for every column of the table is the solution, but
20848 what amount of space is needed for each column?
20851 \begin_layout Standard
20853 \begin_inset Formula $W_{\mathrm{table}}$
20856 can be calculated: Every column has the width of the specified column width
20858 \begin_inset Formula $W_{\mathrm{column}}$
20861 (that the content of the column can consume) plus two times the separation
20862 between the column content and the column border (\SpecialChar LaTeX
20870 \begin_inset space \thinspace{}
20873 pt) plus the width of a border line (\SpecialChar LaTeX
20881 \begin_inset space \thinspace{}
20885 \begin_inset Formula $n$
20889 \begin_inset space ~
20892 columns have the same width, the table width is
20893 \begin_inset Formula
20895 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20903 \begin_layout Standard
20904 The available width for a table is the space between the page margins or
20905 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20913 If all table columns should have the same width and
20914 \begin_inset Formula $W_{\mathrm{table}}$
20918 \begin_inset space \thinspace{}
20924 \begin_inset Formula $W_{\mathrm{column}}$
20927 can easily be calculated.
20930 \begin_layout Standard
20931 To be able to perform calculations you need to load the \SpecialChar LaTeX
20937 \begin_inset Index idx
20940 \begin_layout Plain Layout
20947 in the document preamble.
20948 To set the width in the table dialog you have to use the field
20954 The command scheme for this field is the same that is explained in section
20955 \begin_inset space ~
20959 \begin_inset CommandInset ref
20961 reference "subsec:Multicolumn-Calculations"
20967 \begin_inset space \thinspace{}
20970 columns with an uniform width and centered text, enter there for each column
20974 \begin_layout Standard
20981 columnwidth-62.4pt)/5}
20984 \begin_layout Standard
20986 \begin_inset space \thinspace{}
20989 columns where 2 should have 0.75
20990 \begin_inset space ~
20993 times the width than the 3 others, the calculation is
20994 \begin_inset Formula
20996 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
20997 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
20998 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
20999 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21007 \begin_layout Standard
21008 In the table therefore the command
21011 \begin_layout Standard
21018 columnwidth-62.4pt)/
21023 \begin_layout Standard
21024 is used for the wider columns and
21027 \begin_layout Standard
21034 columnwidth-62.4pt)/
21041 \begin_layout Standard
21042 for the smaller ones:
21045 \begin_layout Standard
21046 \begin_inset Tabular
21047 <lyxtabular version="3" rows="2" columns="5">
21048 <features tabularvalignment="middle">
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}}">
21052 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21053 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21058 \begin_layout Plain Layout
21064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21067 \begin_layout Plain Layout
21073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21076 \begin_layout Plain Layout
21082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21085 \begin_layout Plain Layout
21091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21094 \begin_layout Plain Layout
21102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21105 \begin_layout Plain Layout
21106 111111 1111111 111111 111111111 11111 11111 1111
21111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21114 \begin_layout Plain Layout
21120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21123 \begin_layout Plain Layout
21124 2222 22222 222222 222222222 2222222 22 22222
21129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21132 \begin_layout Plain Layout
21138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21141 \begin_layout Plain Layout
21142 333333 333333 333333 33333 3333333 333
21155 \begin_layout Section
21156 Table Customization
21157 \begin_inset Index idx
21160 \begin_layout Plain Layout
21161 Table Customization
21167 \begin_inset Index idx
21170 \begin_layout Plain Layout
21171 Table ! Customization
21179 \begin_layout Subsection
21181 \begin_inset CommandInset label
21183 name "subsec:Row-Spacing"
21188 \begin_inset Index idx
21191 \begin_layout Plain Layout
21192 Table Customization ! Row Spacing
21200 \begin_layout Standard
21201 You can add vertical space to table rows in the
21205 tab of the table dialog.
21206 You find there three possibilities:
21209 \begin_layout Description
21211 \begin_inset space ~
21215 \begin_inset space ~
21218 row will add space above the characters of the table row.
21219 If the table is a formal table
21223 \begin_layout Plain Layout
21224 Formal tables are explained in section
21225 \begin_inset space ~
21229 \begin_inset CommandInset ref
21231 reference "sec:Formal-Tables"
21241 will insert as default 0.5
21242 \begin_inset space \thinspace{}
21246 For normal tables the inserted space will unfortunately destroy the vertical
21247 table lines as in the following table:
21248 \begin_inset VSpace medskip
21252 \begin_inset Newline newline
21256 \begin_inset space \hspace*{}
21261 \begin_inset space \hfill{}
21265 \begin_inset Tabular
21266 <lyxtabular version="3" rows="3" columns="1">
21267 <features tabularvalignment="middle">
21268 <column alignment="center" valignment="top">
21270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21273 \begin_layout Plain Layout
21280 <row topspace="3mm">
21281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21284 \begin_layout Plain Layout
21286 \begin_inset space \thinspace{}
21289 mm space top of row
21296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21299 \begin_layout Plain Layout
21311 \begin_inset space \hfill{}
21315 \begin_inset space \hspace*{}
21320 \begin_inset VSpace medskip
21324 \begin_inset Newline newline
21327 So inserting space in the top of row for normal tables is only useful when
21328 you don't have vertical lines.
21331 \begin_layout Description
21333 \begin_inset space ~
21337 \begin_inset space ~
21340 row will add space below the characters of the table row.
21341 If the table is a formal table \SpecialChar LyX
21342 will insert as default 0.5
21343 \begin_inset space \thinspace{}
21346 em space, for normal tables the default size is 2
21347 \begin_inset space \thinspace{}
21353 \begin_layout Description
21355 \begin_inset space ~
21358 rows adds space between the current and the following row.
21359 If the table is a formal table \SpecialChar LyX
21360 will insert as default 0.5
21361 \begin_inset space \thinspace{}
21365 For normal tables the inserted space will unfortunately destroy the vertical
21366 table lines as in the following table:
21367 \begin_inset VSpace medskip
21371 \begin_inset Newline newline
21375 \begin_inset space \hspace*{}
21380 \begin_inset space \hfill{}
21384 \begin_inset Tabular
21385 <lyxtabular version="3" rows="3" columns="1">
21386 <features tabularvalignment="middle">
21387 <column alignment="center" valignment="top">
21389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21392 \begin_layout Plain Layout
21399 <row interlinespace="3mm">
21400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21403 \begin_layout Plain Layout
21404 \begin_inset Formula $\downarrow$
21408 \begin_inset space \thinspace{}
21411 mm space between row
21412 \begin_inset Formula $\downarrow$
21422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21425 \begin_layout Plain Layout
21426 \begin_inset Formula $\uparrow$
21430 \begin_inset space \thinspace{}
21433 mm space between row
21434 \begin_inset Formula $\uparrow$
21448 \begin_inset space \hfill{}
21452 \begin_inset space \hspace*{}
21457 \begin_inset VSpace medskip
21461 \begin_inset Newline newline
21464 So inserting space between rows for normal tables is only useful when you
21465 don't have vertical lines.
21468 \begin_layout Standard
21469 \begin_inset VSpace bigskip
21472 When you want to add extra height to all cells of all tables, you can do
21473 this with the following preamble lines:
21476 \begin_layout Standard
21481 @ifundefined{extrarowheight}
21482 \begin_inset Newline newline
21486 \begin_inset Phantom HPhantom
21489 \begin_layout Plain Layout
21492 \begin_inset space ~
21502 usepackage{array}}{}
21503 \begin_inset Newline newline
21510 extrarowheight}{height}
21513 \begin_inset Note Note
21516 \begin_layout Plain Layout
21521 will be loaded automatically by \SpecialChar LyX
21522 when you use self defined table formats.
21523 To avoid that it being loaded twice the command
21529 is used in the above command.
21537 \begin_layout Standard
21542 can have one of the units listed in appendix
21543 \begin_inset space ~
21547 \begin_inset CommandInset ref
21549 reference "cha:Units-available-in"
21554 But this has the disadvantage that the cell texts are no longer exactly
21555 vertically centered.
21558 \begin_layout Standard
21559 If you are using font sizes larger than the normal size, the table borders
21560 are often too close to the letters.
21561 This can be corrected by inserting the command
21567 in \SpecialChar TeX
21568 Code at the beginning of a table row.
21570 \begin_inset space ~
21574 \begin_inset CommandInset ref
21576 reference "tab:Vertical-alignment-of"
21580 illustrates the effect.
21583 \begin_layout Standard
21585 \begin_inset Float table
21591 \begin_layout Plain Layout
21592 \begin_inset Caption Standard
21594 \begin_layout Plain Layout
21595 \begin_inset CommandInset label
21597 name "tab:Vertical-alignment-of"
21601 Vertical alignment of text with large font sizes.
21609 \begin_layout Plain Layout
21610 \begin_inset space \hfill{}
21614 \begin_inset Float table
21619 \begin_layout Plain Layout
21620 \begin_inset Caption Standard
21622 \begin_layout Plain Layout
21631 \begin_layout Plain Layout
21634 \begin_inset Tabular
21635 <lyxtabular version="3" rows="6" columns="1">
21636 <features tabularvalignment="middle">
21637 <column alignment="left" valignment="top">
21639 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21642 \begin_layout Plain Layout
21650 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21653 \begin_layout Plain Layout
21663 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21666 \begin_layout Plain Layout
21676 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21679 \begin_layout Plain Layout
21689 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21692 \begin_layout Plain Layout
21702 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21705 \begin_layout Plain Layout
21724 \begin_inset space \hfill{}
21728 \begin_inset Float table
21733 \begin_layout Plain Layout
21734 \begin_inset Caption Standard
21736 \begin_layout Plain Layout
21737 Table using the command
21751 \begin_layout Plain Layout
21754 \begin_inset Tabular
21755 <lyxtabular version="3" rows="6" columns="1">
21756 <features tabularvalignment="middle">
21757 <column alignment="left" valignment="top">
21759 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21762 \begin_layout Plain Layout
21770 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21773 \begin_layout Plain Layout
21779 \begin_layout Plain Layout
21795 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21798 \begin_layout Plain Layout
21804 \begin_layout Plain Layout
21820 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21823 \begin_layout Plain Layout
21829 \begin_layout Plain Layout
21845 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21848 \begin_layout Plain Layout
21854 \begin_layout Plain Layout
21870 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21873 \begin_layout Plain Layout
21879 \begin_layout Plain Layout
21906 \begin_inset space \hfill{}
21917 \begin_layout Subsection
21918 Special Cell Alignment
21919 \begin_inset CommandInset label
21921 name "subsec:Special-Cell-Alignment"
21926 \begin_inset Index idx
21929 \begin_layout Plain Layout
21930 Table Customization ! Special Cell Alignment
21938 \begin_layout Standard
21939 Sometimes it looks better when the cell entries of a column are aligned
21940 with a special character, e.
21941 \begin_inset space \thinspace{}
21945 \begin_inset space \space{}
21948 with the decimal separator as in Table
21949 \begin_inset space ~
21953 \begin_inset CommandInset ref
21955 reference "tab:Table-cells-align"
21960 This alignment is achieved by setting the cursor into the column and then
21961 either pressing the toolbar button
21964 arg "tabular-feature align-decimal"
21967 or setting the alignment in the table settings to
21970 \begin_inset space ~
21974 \begin_inset space ~
21980 The alignment character can be a character of your choice and is specified
21981 in the table settings.
21984 \begin_layout Standard
21985 \begin_inset Float table
21991 \begin_layout Plain Layout
21992 \begin_inset Caption Standard
21994 \begin_layout Plain Layout
21995 \begin_inset CommandInset label
21997 name "tab:Table-cells-align"
22001 Table cells of a column aligned with the decimal separator.
22009 \begin_layout Plain Layout
22011 \begin_inset Tabular
22012 <lyxtabular version="3" rows="4" columns="1">
22013 <features booktabs="true" tabularvalignment="middle">
22014 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22019 \begin_layout Plain Layout
22027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22030 \begin_layout Plain Layout
22038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22041 \begin_layout Plain Layout
22049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22052 \begin_layout Plain Layout
22071 \begin_layout Standard
22072 \begin_inset Float table
22078 \begin_layout Plain Layout
22079 \begin_inset Caption Standard
22081 \begin_layout Plain Layout
22082 \begin_inset CommandInset label
22084 name "tab:Table-align-operator"
22088 Table cells of a column aligned with the operators.
22096 \begin_layout Plain Layout
22098 \begin_inset Tabular
22099 <lyxtabular version="3" rows="4" columns="2">
22100 <features booktabs="true" tabularvalignment="middle">
22101 <column alignment="right" valignment="top" width="0pt">
22102 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22104 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22107 \begin_layout Plain Layout
22113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22116 \begin_layout Plain Layout
22124 <cell alignment="center" valignment="top" usebox="none">
22127 \begin_layout Plain Layout
22128 \begin_inset Formula $12\,+$
22136 <cell alignment="center" valignment="top" usebox="none">
22139 \begin_layout Plain Layout
22140 \begin_inset Formula $\,6$
22150 <cell alignment="center" valignment="top" usebox="none">
22153 \begin_layout Plain Layout
22154 \begin_inset Formula $0\,-$
22162 <cell alignment="center" valignment="top" usebox="none">
22165 \begin_layout Plain Layout
22166 \begin_inset Formula $\,68$
22176 <cell alignment="center" valignment="top" usebox="none">
22179 \begin_layout Plain Layout
22180 \begin_inset Formula $-123\,/$
22188 <cell alignment="center" valignment="top" usebox="none">
22191 \begin_layout Plain Layout
22192 \begin_inset Formula $\,0$
22213 \begin_layout Standard
22214 For alignments at characters in formulas this method does not work because
22215 the field to specify the alignment character does not allow formulas.
22216 In this case one need to use the method from Table
22217 \begin_inset space ~
22221 \begin_inset CommandInset ref
22223 reference "tab:Table-align-operator"
22228 This table was created with a 4×2 table.
22229 The heading is a centered multicolumn.
22230 The first column is right-aligned and contains the first part including
22232 The second column is left aligned and contains the rest.
22233 A small space was added at the beginning of each cell of the second column
22234 to get the space that is usually around operators.
22235 To omit the space that is normally between two table columns, the following
22237 -argument was used for the second column:
22240 \begin_layout Standard
22246 \begin_layout Standard
22248 \begin_inset space ~
22252 \begin_inset CommandInset ref
22254 reference "tab:Several-table-cell"
22258 shows some example alignments.
22259 For the alignment with the relation sign, a small space was added like
22260 for the second column of Table
22261 \begin_inset space ~
22265 \begin_inset CommandInset ref
22267 reference "tab:Table-align-operator"
22274 \begin_layout Standard
22275 \begin_inset Float table
22281 \begin_layout Plain Layout
22282 \begin_inset Caption Standard
22284 \begin_layout Plain Layout
22285 \begin_inset CommandInset label
22287 name "tab:Several-table-cell"
22291 Several table cell alignments.
22299 \begin_layout Plain Layout
22301 \begin_inset Tabular
22302 <lyxtabular version="3" rows="4" columns="6">
22303 <features tabularvalignment="middle">
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">
22308 <column alignment="right" valignment="top">
22309 <column alignment="left" valignment="top" special="@{}l">
22311 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22314 \begin_layout Plain Layout
22320 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22323 \begin_layout Plain Layout
22329 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22332 \begin_layout Plain Layout
22338 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22341 \begin_layout Plain Layout
22347 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22350 \begin_layout Plain Layout
22356 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22359 \begin_layout Plain Layout
22367 <cell alignment="center" valignment="top" usebox="none">
22370 \begin_layout Plain Layout
22376 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22379 \begin_layout Plain Layout
22381 \begin_inset space \thinspace{}
22389 <cell alignment="center" valignment="top" usebox="none">
22392 \begin_layout Plain Layout
22393 \begin_inset Formula $10\cdot$
22401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22404 \begin_layout Plain Layout
22405 \begin_inset Formula $10^{\mbox{-}17}$
22413 <cell alignment="center" valignment="top" usebox="none">
22416 \begin_layout Plain Layout
22417 \begin_inset Formula $\Gamma(t)\propto$
22425 <cell alignment="center" valignment="top" usebox="none">
22428 \begin_layout Plain Layout
22429 \begin_inset Formula $\:\Upsilon(t)$
22439 <cell alignment="center" valignment="top" usebox="none">
22442 \begin_layout Plain Layout
22448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22451 \begin_layout Plain Layout
22453 \begin_inset space \thinspace{}
22461 <cell alignment="center" valignment="top" usebox="none">
22464 \begin_layout Plain Layout
22465 \begin_inset Formula $5.78\cdot$
22473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22476 \begin_layout Plain Layout
22477 \begin_inset Formula $10^{7}$
22485 <cell alignment="center" valignment="top" usebox="none">
22488 \begin_layout Plain Layout
22489 \begin_inset Formula $A\ne$
22497 <cell alignment="center" valignment="top" usebox="none">
22500 \begin_layout Plain Layout
22501 \begin_inset Formula $\:B_{\mathrm{red}}$
22511 <cell alignment="center" valignment="top" usebox="none">
22514 \begin_layout Plain Layout
22520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22523 \begin_layout Plain Layout
22525 \begin_inset space \thinspace{}
22533 <cell alignment="center" valignment="top" usebox="none">
22536 \begin_layout Plain Layout
22538 \begin_inset Formula $33.5\cdot$
22546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22549 \begin_layout Plain Layout
22550 \begin_inset Formula $10^{4}$
22558 <cell alignment="center" valignment="top" usebox="none">
22561 \begin_layout Plain Layout
22562 \begin_inset Formula $\sin(\alpha)\ge$
22570 <cell alignment="center" valignment="top" usebox="none">
22573 \begin_layout Plain Layout
22574 \begin_inset Formula $\:\sin(\beta)$
22595 \begin_layout Subsection
22596 Customized Cell/Column Format
22597 \begin_inset CommandInset label
22599 name "subsec:Customized-Format"
22604 \begin_inset Index idx
22607 \begin_layout Plain Layout
22608 Table Customization ! Cell/Column Format
22616 \begin_layout Standard
22617 Calculating the required width for normal columns as described in section
22618 \begin_inset space ~
22622 \begin_inset CommandInset ref
22624 reference "sec:Table-Width-Calculation"
22628 or for spanned columns as described in section
22629 \begin_inset space ~
22633 \begin_inset CommandInset ref
22635 reference "subsec:Multicolumn-Calculations"
22639 is very annoying if you have several tables where a calculation is necessary.
22640 To make life easier, you can define a cell/column format in the preamble,
22641 that can be used in all tables of the document.
22642 The format is defined with the command
22645 \begin_layout Standard
22650 newcolumntype{name of format}[number of arguments]{commands}
22653 \begin_layout Standard
22654 The format name may only consist of one letter.
22679 are predefined and cannot be used.
22680 But all letters are allowed as capitals.
22683 \begin_layout Standard
22684 \begin_inset VSpace medskip
22690 \begin_layout Standard
22691 For vertically and horizontally centered multicolumn cells with a fixed
22692 width you can define the cell format
22695 \begin_layout Standard
22700 newcolumntype{M}[1]{>{
22707 \begin_layout Standard
22714 avoids the problem of hyphenating the first word, as described in section
22715 \begin_inset space ~
22719 \begin_inset CommandInset ref
22721 reference "subsec:Multiple-Lines-in"
22726 Now you can simply enter
22729 \begin_layout Standard
22735 \begin_layout Standard
22741 in the table dialog to create a multicolumn.
22744 \begin_layout Standard
22745 \begin_inset VSpace bigskip
22751 \begin_layout Standard
22752 For cells spanned by a multicolumn cell, you can define the format
22755 \begin_layout Standard
22760 newcolumntype{S}[2]{>{
22765 \begin_inset Newline newline
22769 \begin_inset Phantom HPhantom
22772 \begin_layout Plain Layout
22786 arrayrulewidth)*(1-#2))/#2}}
22789 \begin_layout Standard
22790 This format uses equation
22791 \begin_inset CommandInset ref
22797 to calculate the required width so that each spanned cell has the same
22801 \begin_layout Standard
22805 \begin_layout Standard
22808 S{width of multicolumn cell}{number of spanned columns}
22811 \begin_layout Standard
22812 as \SpecialChar LaTeX
22813 -argument of the column.
22816 \begin_layout Standard
22817 \begin_inset VSpace bigskip
22823 \begin_layout Standard
22824 For colored columns, you can define
22827 \begin_layout Standard
22832 newcolumntype{K}[1]{>{
22839 \begin_layout Standard
22841 \begin_inset Quotes eld
22845 \begin_inset Quotes erd
22848 at the end creates a column with a flexible width whose text is horizontally
22853 \begin_layout Standard
22859 \begin_layout Standard
22860 as \SpecialChar LaTeX
22864 \begin_layout Standard
22865 \begin_inset VSpace bigskip
22871 \begin_layout Standard
22873 \begin_inset space ~
22877 \begin_inset CommandInset ref
22879 reference "tab:Table-using-user-defined"
22883 use the \SpecialChar LaTeX
22887 \begin_layout Standard
22893 \begin_layout Standard
22894 for the first column and the multicolumn,
22897 \begin_layout Standard
22903 \begin_layout Standard
22904 for the last column, and
22907 \begin_layout Standard
22913 \begin_layout Standard
22914 for the cells in the second column.
22917 \begin_layout Standard
22918 \begin_inset Float table
22924 \begin_layout Plain Layout
22925 \begin_inset Caption Standard
22927 \begin_layout Plain Layout
22928 \begin_inset CommandInset label
22930 name "tab:Table-using-user-defined"
22934 Table using user-defined table formats
22942 \begin_layout Plain Layout
22944 \begin_inset Tabular
22945 <lyxtabular version="3" rows="3" columns="4">
22946 <features tabularvalignment="middle">
22947 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22948 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22949 <column alignment="center" valignment="middle">
22950 <column alignment="center" valignment="middle" special="K{red}">
22952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22955 \begin_layout Plain Layout
22956 verylongtablecellword
22961 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22964 \begin_layout Plain Layout
22965 multiple lines multicolumn
22970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22973 \begin_layout Plain Layout
22979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22982 \begin_layout Plain Layout
22990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22993 \begin_layout Plain Layout
22999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23002 \begin_layout Plain Layout
23008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23011 \begin_layout Plain Layout
23017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23020 \begin_layout Plain Layout
23028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23031 \begin_layout Plain Layout
23037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23040 \begin_layout Plain Layout
23046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23049 \begin_layout Plain Layout
23055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23058 \begin_layout Plain Layout
23077 \begin_layout Subsection
23079 \begin_inset CommandInset label
23081 name "subsec:Line-Thickness"
23086 \begin_inset Index idx
23089 \begin_layout Plain Layout
23090 Table Customization ! Line Thickness
23098 \begin_layout Standard
23099 The line thickness for all lines in a table can be adjusted with the length
23107 To set for example a line thickness of 1.5
23108 \begin_inset space \thinspace{}
23112 \begin_inset space ~
23116 \begin_inset CommandInset ref
23118 reference "tab:Table-with-1.5"
23122 , insert the command
23125 \begin_layout Standard
23132 arrayrulewidth}{1.5pt}
23135 \begin_layout Standard
23136 in \SpecialChar TeX
23137 Code before the table or table float.
23138 The changed thickness is valid for all subsequent tables.
23139 To use the default value again, set
23146 \begin_inset space \thinspace{}
23149 pt in \SpecialChar TeX
23150 Code after the table or table float.
23153 \begin_layout Standard
23157 \begin_layout Plain Layout
23163 arrayrulewidth}{1.5pt}
23169 \begin_inset Float table
23174 \begin_layout Plain Layout
23175 \begin_inset Caption Standard
23177 \begin_layout Plain Layout
23178 \begin_inset CommandInset label
23180 name "tab:Table-with-1.5"
23185 \begin_inset space \thinspace{}
23196 \begin_layout Plain Layout
23198 \begin_inset Tabular
23199 <lyxtabular version="3" rows="3" columns="3">
23200 <features tabularvalignment="middle">
23201 <column alignment="center" valignment="top">
23202 <column alignment="center" valignment="top">
23203 <column alignment="center" valignment="top">
23205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23208 \begin_layout Plain Layout
23214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23217 \begin_layout Plain Layout
23223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23226 \begin_layout Plain Layout
23234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23237 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23246 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23255 \begin_layout Plain Layout
23263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23266 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23275 \begin_layout Plain Layout
23281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23284 \begin_layout Plain Layout
23304 \begin_layout Plain Layout
23310 arrayrulewidth}{0.4pt}
23318 \begin_layout Standard
23319 \begin_inset VSpace bigskip
23322 To set the line thickness to 1.5
23323 \begin_inset space \thinspace{}
23326 pt only for horizontal lines, as in Table
23327 \begin_inset space ~
23331 \begin_inset CommandInset ref
23333 reference "tab:Table-with-horizontal"
23337 , insert these commands in \SpecialChar TeX
23338 Code before the table or table float:
23341 \begin_layout Standard
23351 \begin_inset Newline newline
23359 \begin_inset Newline newline
23368 arrayrulewidth 1.5pt}
23369 \begin_inset Newline newline
23380 arrayrulewidth 0.4pt}}
23383 \begin_layout Standard
23384 To return to the default line thickness, insert this command in \SpecialChar TeX
23386 the table or table float:
23389 \begin_layout Standard
23401 \begin_layout Standard
23405 \begin_layout Plain Layout
23416 \begin_layout Plain Layout
23425 \begin_layout Plain Layout
23433 arrayrulewidth 1.5pt}
23436 \begin_layout Plain Layout
23446 arrayrulewidth 0.4pt}}
23452 \begin_inset Float table
23457 \begin_layout Plain Layout
23458 \begin_inset Caption Standard
23460 \begin_layout Plain Layout
23461 \begin_inset CommandInset label
23463 name "tab:Table-with-horizontal"
23468 \begin_inset space \thinspace{}
23471 pt thick horizontal lines
23479 \begin_layout Plain Layout
23481 \begin_inset Tabular
23482 <lyxtabular version="3" rows="3" columns="3">
23483 <features tabularvalignment="middle">
23484 <column alignment="center" valignment="top">
23485 <column alignment="center" valignment="top">
23486 <column alignment="center" valignment="top">
23488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23491 \begin_layout Plain Layout
23497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23500 \begin_layout Plain Layout
23506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23509 \begin_layout Plain Layout
23517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23520 \begin_layout Plain Layout
23526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23529 \begin_layout Plain Layout
23535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23538 \begin_layout Plain Layout
23546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23549 \begin_layout Plain Layout
23555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23558 \begin_layout Plain Layout
23564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23567 \begin_layout Plain Layout
23587 \begin_layout Plain Layout
23603 \begin_layout Standard
23604 \begin_inset VSpace bigskip
23607 To set the line thickness to 1.5
23608 \begin_inset space \thinspace{}
23611 pt only for vertical lines, create the following column format in the document
23612 preamble, according to the description in section
23613 \begin_inset space ~
23617 \begin_inset CommandInset ref
23619 reference "subsec:Customized-Format"
23626 \begin_layout Standard
23631 newcolumntype{V}{!{
23633 vrule width 1.5pt}}
23636 \begin_layout Standard
23638 \begin_inset space ~
23642 \begin_inset CommandInset ref
23644 reference "tab:Table-with-vertical"
23648 the \SpecialChar LaTeX
23652 \begin_layout Standard
23658 \begin_layout Standard
23659 was used for the last column and
23662 \begin_layout Standard
23668 \begin_layout Standard
23669 for the other columns.
23672 \begin_layout Standard
23673 \begin_inset Float table
23678 \begin_layout Plain Layout
23679 \begin_inset Caption Standard
23681 \begin_layout Plain Layout
23682 \begin_inset CommandInset label
23684 name "tab:Table-with-vertical"
23689 \begin_inset space \thinspace{}
23692 pt thick vertical lines
23700 \begin_layout Plain Layout
23702 \begin_inset Tabular
23703 <lyxtabular version="3" rows="3" columns="3">
23704 <features tabularvalignment="middle">
23705 <column alignment="center" valignment="top" special="Vc">
23706 <column alignment="center" valignment="top" special="Vc">
23707 <column alignment="center" valignment="top" special="VcV">
23709 <cell alignment="center" valignment="top" topline="true" usebox="none">
23712 \begin_layout Plain Layout
23718 <cell alignment="center" valignment="top" topline="true" usebox="none">
23721 \begin_layout Plain Layout
23727 <cell alignment="center" valignment="top" topline="true" usebox="none">
23730 \begin_layout Plain Layout
23738 <cell alignment="center" valignment="top" topline="true" usebox="none">
23741 \begin_layout Plain Layout
23747 <cell alignment="center" valignment="top" topline="true" usebox="none">
23750 \begin_layout Plain Layout
23756 <cell alignment="center" valignment="top" topline="true" usebox="none">
23759 \begin_layout Plain Layout
23767 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23770 \begin_layout Plain Layout
23776 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23779 \begin_layout Plain Layout
23785 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23788 \begin_layout Plain Layout
23807 \begin_layout Subsection
23809 \begin_inset Index idx
23812 \begin_layout Plain Layout
23813 Table Customization ! Dashed Lines
23821 \begin_layout Standard
23825 \begin_layout Plain Layout
23835 \begin_inset Note Note
23838 \begin_layout Plain Layout
23839 The following section will only be displayed when the \SpecialChar LaTeX
23852 \begin_layout Standard
23853 \begin_inset Float table
23859 \begin_layout Plain Layout
23860 \begin_inset Caption Standard
23862 \begin_layout Plain Layout
23863 \begin_inset CommandInset label
23865 name "tab:Table-with-dashed"
23869 Table with dashed lines
23877 \begin_layout Plain Layout
23879 \begin_inset Tabular
23880 <lyxtabular version="3" rows="5" columns="5">
23881 <features tabularvalignment="middle">
23882 <column alignment="center" valignment="top">
23883 <column alignment="center" valignment="top">
23884 <column alignment="center" valignment="top" special=":c">
23885 <column alignment="center" valignment="top">
23886 <column alignment="center" valignment="top">
23888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23891 \begin_layout Plain Layout
23897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23900 \begin_layout Plain Layout
23906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23909 \begin_layout Plain Layout
23915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23918 \begin_layout Plain Layout
23924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23927 \begin_layout Plain Layout
23935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23938 \begin_layout Plain Layout
23944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23947 \begin_layout Plain Layout
23953 <cell alignment="center" valignment="top" topline="true" usebox="none">
23956 \begin_layout Plain Layout
23962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23965 \begin_layout Plain Layout
23971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23974 \begin_layout Plain Layout
23982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23985 \begin_layout Plain Layout
23989 \begin_layout Plain Layout
24003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24006 \begin_layout Plain Layout
24012 <cell alignment="center" valignment="top" usebox="none">
24015 \begin_layout Plain Layout
24021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24024 \begin_layout Plain Layout
24030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24033 \begin_layout Plain Layout
24041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24044 \begin_layout Plain Layout
24048 \begin_layout Plain Layout
24062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24065 \begin_layout Plain Layout
24071 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24074 \begin_layout Plain Layout
24080 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24083 \begin_layout Plain Layout
24089 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24092 \begin_layout Plain Layout
24100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24103 \begin_layout Plain Layout
24109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24112 \begin_layout Plain Layout
24118 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24121 \begin_layout Plain Layout
24127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24130 \begin_layout Plain Layout
24136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24139 \begin_layout Plain Layout
24158 \begin_layout Standard
24160 does not natively support dashed lines, so you have to use \SpecialChar TeX
24162 As a prerequisite the \SpecialChar LaTeX
24168 \begin_inset Index idx
24171 \begin_layout Plain Layout
24173 -packages ! arydshln
24178 must be loaded in the document preamble with the command
24181 \begin_layout Standard
24186 usepackage{arydshln}
24189 \begin_layout Standard
24190 To make a vertical line dashed, enter the colon
24191 \begin_inset Quotes eld
24195 \begin_inset Quotes erd
24198 together with the character for the horizontal alignment as \SpecialChar LaTeX
24200 the table cell dialog.
24203 \begin_layout Standard
24204 For a horizontal dashed line add the command
24207 \begin_layout Standard
24215 \begin_layout Standard
24216 in \SpecialChar TeX
24217 Code as first element of the first cell in the table row.
24220 \begin_layout Standard
24221 For dashed multicolumn lines use the command
24224 \begin_layout Standard
24229 cdashline{line number
24234 \begin_layout Standard
24235 in \SpecialChar TeX
24236 Code as the first element of the first cell in the table row.
24237 If you have for example a multicolumn spanning columns 2 to 4 and you want
24238 to have a dashed line above, add the command
24241 \begin_layout Standard
24249 \begin_layout Standard
24250 as the first element of the first cell in the row of the multicolumn.
24253 \begin_layout Standard
24254 \begin_inset VSpace bigskip
24260 \begin_layout Standard
24262 \begin_inset space ~
24266 \begin_inset CommandInset ref
24268 reference "tab:Table-with-dashed"
24273 \begin_inset Quotes eld
24281 \begin_inset Quotes erd
24284 as \SpecialChar LaTeX
24285 argument of the third column.
24286 The \SpecialChar TeX
24293 was inserted in the first cell of the third row and the \SpecialChar TeX
24295 \begin_inset Newline newline
24304 was inserted in the first cell of the fourth row.
24307 \begin_layout Standard
24308 \begin_inset VSpace bigskip
24314 \begin_layout Standard
24315 Tables with dashed lines can also be colored as shown by Table
24316 \begin_inset space ~
24320 \begin_inset CommandInset ref
24322 reference "tab:Colored-table-with"
24329 \begin_layout Standard
24333 \begin_layout Plain Layout
24339 arrayrulewidth}{1pt}
24345 \begin_inset Note Note
24348 \begin_layout Plain Layout
24349 thicker lines for better visualization of the line color
24357 \begin_layout Standard
24361 \begin_layout Plain Layout
24365 dashgapcolor{green}
24371 \begin_inset Note Note
24374 \begin_layout Plain Layout
24375 color gaps between dashes green
24383 \begin_layout Standard
24387 \begin_layout Plain Layout
24398 \begin_layout Plain Layout
24407 \begin_layout Plain Layout
24411 arrayrulecolor{red}
24415 arrayrulecolor{black}}
24421 \begin_inset Note Note
24424 \begin_layout Plain Layout
24425 color horizontal, dashed lines red
24433 \begin_layout Standard
24437 \begin_layout Plain Layout
24448 \begin_layout Plain Layout
24457 \begin_layout Plain Layout
24461 arrayrulecolor{yellow}
24465 arrayrulecolor{black}}
24471 \begin_inset Note Note
24474 \begin_layout Plain Layout
24475 color partial horizontal, dashed lines yellow
24483 \begin_layout Standard
24484 \begin_inset Float table
24490 \begin_layout Plain Layout
24491 \begin_inset Caption Standard
24493 \begin_layout Plain Layout
24494 \begin_inset CommandInset label
24496 name "tab:Colored-table-with"
24500 Colored table with dashed lines
24508 \begin_layout Plain Layout
24510 \begin_inset Tabular
24511 <lyxtabular version="3" rows="5" columns="5">
24512 <features tabularvalignment="middle">
24513 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24514 <column alignment="center" valignment="top" width="0pt">
24515 <column alignment="center" valignment="top" width="0pt" special=":c">
24516 <column alignment="center" valignment="top">
24517 <column alignment="center" valignment="top">
24519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24522 \begin_layout Plain Layout
24528 <cell alignment="center" valignment="top" topline="true" usebox="none">
24531 \begin_layout Plain Layout
24537 <cell alignment="center" valignment="top" topline="true" usebox="none">
24540 \begin_layout Plain Layout
24546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24549 \begin_layout Plain Layout
24555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24558 \begin_layout Plain Layout
24566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24569 \begin_layout Plain Layout
24575 <cell alignment="center" valignment="top" topline="true" usebox="none">
24578 \begin_layout Plain Layout
24584 <cell alignment="center" valignment="top" topline="true" usebox="none">
24587 \begin_layout Plain Layout
24593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24596 \begin_layout Plain Layout
24602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24605 \begin_layout Plain Layout
24613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24616 \begin_layout Plain Layout
24620 \begin_layout Plain Layout
24633 \begin_layout Plain Layout
24647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24650 \begin_layout Plain Layout
24656 <cell alignment="center" valignment="top" usebox="none">
24659 \begin_layout Plain Layout
24665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24668 \begin_layout Plain Layout
24674 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24677 \begin_layout Plain Layout
24685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24688 \begin_layout Plain Layout
24692 \begin_layout Plain Layout
24706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24709 \begin_layout Plain Layout
24715 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24718 \begin_layout Plain Layout
24724 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24727 \begin_layout Plain Layout
24733 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24736 \begin_layout Plain Layout
24744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24747 \begin_layout Plain Layout
24753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24756 \begin_layout Plain Layout
24762 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24765 \begin_layout Plain Layout
24771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24774 \begin_layout Plain Layout
24780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24783 \begin_layout Plain Layout
24787 \begin_layout Plain Layout
24814 \begin_layout Standard
24818 \begin_layout Plain Layout
24832 \begin_inset Note Note
24835 \begin_layout Plain Layout
24844 \begin_layout Standard
24848 \begin_layout Plain Layout
24862 \begin_inset Note Note
24865 \begin_layout Plain Layout
24874 \begin_layout Standard
24878 \begin_layout Plain Layout
24888 \begin_inset Note Note
24891 \begin_layout Plain Layout
24900 \begin_layout Standard
24904 \begin_layout Plain Layout
24910 arrayrulewidth}{0.4pt}
24916 \begin_inset Note Note
24919 \begin_layout Plain Layout
24928 \begin_layout Standard
24929 The coloring of lines, columns and lines works as decribed in section
24930 \begin_inset space ~
24934 \begin_inset CommandInset ref
24936 reference "sec:Colored-Tables"
24941 Coloring horizontal lines works analogically as described there as well,
24942 one only needs to replace in the commands
24966 ; so one uses the command
24969 \begin_layout Standard
24979 \begin_inset Newline newline
24987 \begin_inset Newline newline
24991 \begin_inset Phantom HPhantom
24994 \begin_layout Plain Layout
24995 \begin_inset space ~
25005 arrayrulecolor{red}
25009 arrayrulecolor{black}}
25012 \begin_layout Standard
25022 \begin_layout Standard
25032 \begin_inset Newline newline
25040 \begin_inset Newline newline
25044 \begin_inset Phantom HPhantom
25047 \begin_layout Plain Layout
25048 \begin_inset space ~
25058 arrayrulecolor{red}
25062 arrayrulecolor{black}}
25065 \begin_layout Standard
25066 To get back the black line color, one needs to insert the following commands
25067 as \SpecialChar TeX
25068 Code behind the table:
25071 \begin_layout Standard
25079 \begin_layout Standard
25091 \begin_layout Standard
25099 \begin_layout Standard
25111 \begin_layout Standard
25112 To color the gaps between the dashes the command
25115 \begin_layout Standard
25120 dashgapcolor{color}
25123 \begin_layout Standard
25124 can be used in front of a table as \SpecialChar TeX
25126 color is hereby the name of a defined color.
25130 \begin_layout Standard
25138 \begin_layout Standard
25139 unsets the changes made by
25148 \begin_layout Standard
25149 \begin_inset Note Greyedout
25152 \begin_layout Plain Layout
25158 : If there are multiple commands in a cell, the command of
25162 needs to be the first one in the cell.
25168 \begin_inset space ~
25172 \begin_inset CommandInset ref
25174 reference "tab:Colored-table-with"
25198 \begin_layout Standard
25199 \begin_inset Note Greyedout
25202 \begin_layout Plain Layout
25208 The \SpecialChar LaTeX
25213 must be loaded in the document preamble before the \SpecialChar LaTeX
25219 \begin_inset Index idx
25222 \begin_layout Plain Layout
25224 -packages ! colortbl
25237 \begin_layout Standard
25241 \begin_layout Plain Layout
25251 \begin_inset Note Note
25254 \begin_layout Plain Layout
25255 The following will be displayed when the \SpecialChar LaTeX
25268 \begin_layout Standard
25269 You need to install the package
25273 to see the content of this section in the output.
25276 \begin_layout Standard
25280 \begin_layout Plain Layout
25292 \begin_layout Standard
25293 For more information about dashed lines see the documentation of
25298 \begin_inset CommandInset citation
25308 \begin_layout Chapter
25310 \begin_inset CommandInset label
25317 \begin_inset Index idx
25320 \begin_layout Plain Layout
25329 \begin_layout Section
25331 \begin_inset CommandInset label
25333 name "sec:FloatIntroduction"
25338 \begin_inset Index idx
25341 \begin_layout Plain Layout
25342 Floats ! Introduction
25350 \begin_layout Standard
25351 A float is a block of text associated with some sort of label, which doesn't
25352 have a fixed location.
25354 \begin_inset Quotes eld
25358 \begin_inset Quotes erd
25361 forward or backward a page or two, to wherever it fits best.
25369 \begin_inset space ~
25374 are also floats because they can float to the next page when there are
25375 too many notes on the page.
25378 \begin_layout Standard
25379 Floats allow a high quality layout.
25380 Images and tables can be spread evenly among the pages to avoid white space
25381 and pages without text.
25382 As the floating often destroys the context between the text and the image/table
25383 , every float can be referenced in the text.
25384 Floats are therefore numbered.
25385 Referencing is described in section
25386 \begin_inset space ~
25390 \begin_inset CommandInset ref
25392 reference "sec:Referencing-Floats"
25399 \begin_layout Standard
25400 To insert a float, use the menu
25402 Insert\SpecialChar menuseparator
25408 arg "float-insert figure"
25414 arg "float-insert table"
25422 inset, a box with a label.
25423 The label will automatically be translated to the document language in
25425 After the label you can insert the caption text.
25426 The image or table is inserted above or below the caption in a separate
25427 paragraph within the float.
25428 More about the caption placement is contained in section
25429 \begin_inset space ~
25433 \begin_inset CommandInset ref
25435 reference "sec:Caption-Placement"
25440 To keep your \SpecialChar LyX
25441 document readable, you can open and close the float box by
25442 left-clicking on the box label.
25443 A closed float box looks like this:
25444 \begin_inset Graphics
25445 filename clipart/float.png
25447 scaleBeforeRotation
25451 – a gray button with a red label.
25454 \begin_layout Standard
25455 It is recommended that you insert floats as separate standard paragraphs
25456 to avoid possible \SpecialChar LaTeX
25457 -errors that can occur when the surrounding text is specially
25461 \begin_layout Standard
25462 Existing figures or tables can be put into a float by highlighting them
25463 and then pressing the corresponding toolbar button for a new float.
25466 \begin_layout Section
25470 \begin_layout Standard
25471 Besides figure and table floats that are described in sections
25472 \begin_inset space ~
25476 \begin_inset CommandInset ref
25478 reference "sec:Figure-Floats"
25483 \begin_inset CommandInset ref
25485 reference "sec:Table-Floats"
25489 respectively, \SpecialChar LyX
25490 offers the float types
25499 The latter are explained in sec.
25500 \begin_inset space \thinspace{}
25504 \begin_inset CommandInset ref
25506 reference "sec:Wrap-Floats"
25513 \begin_layout Subsection
25515 \begin_inset Index idx
25518 \begin_layout Plain Layout
25519 Floats ! Algorithms
25527 \begin_layout Standard
25528 \begin_inset Float algorithm
25534 \begin_layout Plain Layout
25535 \begin_inset Caption Standard
25537 \begin_layout Plain Layout
25538 \begin_inset CommandInset label
25540 name "alg:Example-Algorithm-float"
25544 Example Algorithm float
25552 \begin_layout LyX-Code
25554 \begin_inset Newline newline
25557 Sum:= Sum + A(I); /*comment*/
25558 \begin_inset Newline newline
25562 \begin_inset VSpace -4mm
25573 \begin_layout Standard
25574 This float type is inserted with the menu
25576 Insert\SpecialChar menuseparator
25577 Float\SpecialChar menuseparator
25581 It is used for program codes and descriptions of algorithms and can be
25582 seen as an alternative to program code listings that are explained in chapter
25583 \begin_inset space ~
25587 \begin_inset CommandInset ref
25589 reference "cha:Program-Code-Listings"
25594 A possible environment for algorithms is the
25599 , described in \SpecialChar LyX
25606 \begin_inset space ~
25610 \begin_inset CommandInset ref
25612 reference "alg:Example-Algorithm-float"
25616 is an example of an algorithm float where -4
25617 \begin_inset space \thinspace{}
25620 mm vertical space was added at the end of the float to have the bottom rule
25621 exactly below the last text line.
25624 \begin_layout Standard
25625 The float label is not automatically translated into the document language.
25626 If your document is not in English, you have to do this manually by adding
25627 the following line to the document preamble
25632 \begin_layout Standard
25637 floatname{algorithm}{your
25638 \begin_inset space ~
25644 \begin_layout Standard
25648 \begin_inset space ~
25654 \begin_inset Quotes eld
25662 \begin_inset Quotes erd
25668 \begin_layout Standard
25669 To insert the list of algorithms you can use the menu
25671 Insert\SpecialChar menuseparator
25673 \begin_inset space \thinspace{}
25677 \begin_inset space \thinspace{}
25680 TOC\SpecialChar menuseparator
25683 when your document has the same language as \SpecialChar LyX
25685 In other cases use this command in \SpecialChar TeX
25689 \begin_layout Standard
25694 listof{algorithm}{your
25695 \begin_inset space ~
25701 \begin_layout Standard
25705 \begin_inset space ~
25711 \begin_inset Quotes eld
25719 \begin_inset Quotes erd
25725 \begin_layout Standard
25726 Algorithm floats are not by default numbered in the scheme
25727 \begin_inset Quotes eld
25731 \begin_inset Quotes erd
25734 as is the case for table and figure floats in many document-classes.
25735 To number algorithm floats in the same scheme, add this command to your
25739 \begin_layout Standard
25744 numberwithin{algorithm}{chapter}
25747 \begin_layout Standard
25748 To be able to use the command
25757 \begin_inset space ~
25762 in the document settings the option
25765 \begin_inset space ~
25769 \begin_inset space ~
25773 \begin_inset space ~
25781 \begin_layout Section
25783 \begin_inset Index idx
25786 \begin_layout Plain Layout
25795 \begin_layout Standard
25796 Floats are usually numbered either independently from the sections the floats
25797 are in, or in the scheme
25798 \begin_inset Quotes eld
25802 \begin_inset Quotes erd
25806 \begin_inset Quotes eld
25810 \begin_inset Quotes erd
25814 This depends on the document class used.
25817 \begin_layout Standard
25818 To change section-independent numbering, you can use this command in the
25822 \begin_layout Standard
25834 \begin_layout Standard
25841 is the command that prints the table number.
25842 For figure floats, the command would be
25855 in the command above prints the table number as a small roman number.
25858 \begin_layout Standard
25859 To change the numbering scheme for example to
25860 \begin_inset Quotes eld
25864 \begin_inset Quotes erd
25867 , use this command in the preamble:
25870 \begin_layout Standard
25875 numberwithin{table}{subsection}
25878 \begin_layout Standard
25879 To be able to use the command
25888 \begin_inset space ~
25893 in the document settings the option
25896 \begin_inset space ~
25900 \begin_inset space ~
25904 \begin_inset space ~
25912 \begin_layout Standard
25913 Please also have a look at section
25914 \begin_inset space ~
25918 \begin_inset CommandInset ref
25920 reference "subsec:Footnote-Numbering"
25924 for the details and important notes about the numbering commands.
25927 \begin_layout Section
25929 \begin_inset CommandInset label
25931 name "sec:Referencing-Floats"
25936 \begin_inset Index idx
25939 \begin_layout Plain Layout
25940 Floats ! References
25946 \begin_inset Index idx
25949 \begin_layout Plain Layout
25950 References ! to Floats
25958 \begin_layout Standard
25959 To reference a float, insert a label into its caption using the menu
25961 Insert\SpecialChar menuseparator
25964 or the toolbar button
25971 A grey label box like this one:
25972 \begin_inset Graphics
25973 filename clipart/label.png
25974 scaleBeforeRotation
25978 will be inserted and the label window pops up asking for the label text.
25980 offers as text the first words of the caption with a prefix.
25981 The prefix depends on the float type, e.
25982 \begin_inset space \thinspace{}
25986 \begin_inset space \space{}
25989 for figure floats the prefix will be "
25996 \begin_layout Standard
25997 The label is used as anchor and name for the reference.
25998 You can refer to the label using the menu
26000 Insert\SpecialChar menuseparator
26003 or the toolbar button
26006 arg "dialog-show-new-inset ref"
26010 The cross-reference window appears showing all labels of the document.
26011 If you have multiple \SpecialChar LyX
26012 documents opened, choose the one you are working
26013 on from the drop-list at the top of the dialog.
26014 You can now sort the labels alphabetically and then choose one.
26015 A grey cross-reference box like this one:
26016 \begin_inset Graphics
26017 filename clipart/reference.png
26018 scaleBeforeRotation
26023 At the position of the cross-reference box the float number will appear
26027 \begin_layout Standard
26028 It is recommended that you use a protected space between the cross-reference
26029 name and its number to avoid line breaks between them.
26030 If a cross-reference refers to a non-existing label, you will see two question
26031 marks in the output instead of the reference.
26034 \begin_layout Standard
26035 You can change labels at any time by clicking on the label box.
26036 References to the changed label will automatically update their links to
26037 the new label text.
26040 \begin_layout Standard
26044 \begin_inset space ~
26048 \begin_inset space ~
26053 in the cross-reference window sets the cursor before the referred label.
26054 The button text changes then to Go
26055 \begin_inset space ~
26058 Back and you can use it to set the cursor back to the cross-reference.
26061 \begin_layout Subsection
26062 Cross-Reference Formats
26063 \begin_inset CommandInset label
26065 name "subsec:Cross-Reference-Formats"
26070 \begin_inset Index idx
26073 \begin_layout Plain Layout
26074 References ! Formats
26082 \begin_layout Standard
26083 There are six varieties of cross-references:
26086 \begin_layout Description
26087 <reference>: prints the float number, this is the default:
26088 \begin_inset CommandInset ref
26090 reference "fig:Two-distorted-images"
26097 \begin_layout Description
26098 (<reference>): prints the float number within two parentheses, this is the
26099 style normally used to reference formulas, especially when the reference
26101 \begin_inset Quotes eld
26105 \begin_inset Quotes erd
26109 \begin_inset CommandInset ref
26118 \begin_layout Description
26119 <page>: prints the page number: Page
26120 \begin_inset space ~
26124 \begin_inset CommandInset ref
26125 LatexCommand pageref
26126 reference "fig:Two-distorted-images"
26133 \begin_layout Description
26135 \begin_inset space ~
26139 \begin_inset space ~
26142 <page>: prints the text "on page" and the page number:
26143 \begin_inset CommandInset ref
26144 LatexCommand vpageref
26145 reference "fig:Two-distorted-images"
26152 \begin_layout Description
26154 \begin_inset space ~
26158 \begin_inset space ~
26162 \begin_inset space ~
26165 <page>: prints the float number, the text "on page", and the page number:
26167 \begin_inset CommandInset ref
26169 reference "fig:Two-distorted-images"
26176 \begin_layout Description
26178 \begin_inset space ~
26181 reference: prints a self-defined cross-reference format.
26182 \begin_inset Newline newline
26186 \begin_inset Note Greyedout
26189 \begin_layout Plain Layout
26194 This feature is only available when you have the \SpecialChar LaTeX
26204 \begin_inset Index idx
26207 \begin_layout Plain Layout
26209 -packages ! prettyref
26215 \begin_inset Index idx
26218 \begin_layout Plain Layout
26220 -packages ! refstyle
26231 \begin_inset Newline newline
26234 You can select which \SpecialChar LaTeX
26235 -package should be used for this feature by setting
26238 Use refstyle (not prettyref) for cross-references
26242 Document\SpecialChar menuseparator
26243 Settings\SpecialChar menuseparator
26247 The format is specified by adding the command
26259 (refstyle) to the preamble of the document.
26260 For example redefining all references to figures (which have the label
26262 \begin_inset Quotes eld
26270 \begin_inset Quotes erd
26273 ) can be done with this command
26274 \begin_inset Newline newline
26281 newref{fig}{refcmd={Image on page
26286 \begin_inset Newline newline
26289 For more information about the format, have a look at the package documentations
26291 \begin_inset CommandInset citation
26293 key "prettyref,refstyle"
26299 \begin_inset Newline newline
26310 are only available if you use the \SpecialChar LaTeX
26325 \begin_inset space \thinspace{}
26329 \begin_inset space \space{}
26333 \begin_inset Quotes eld
26337 \begin_inset Quotes erd
26344 outputs the name capitalized, e.
26345 \begin_inset space \thinspace{}
26349 \begin_inset space \space{}
26353 \begin_inset Quotes eld
26357 \begin_inset Quotes erd
26361 Both options can be combined to get e.
26362 \begin_inset space \thinspace{}
26366 \begin_inset space \space{}
26370 \begin_inset Quotes eld
26374 \begin_inset Quotes erd
26380 \begin_layout Description
26382 \begin_inset space ~
26385 reference: prints the caption of the reference:
26386 \begin_inset CommandInset ref
26387 LatexCommand nameref
26388 reference "fig:Two-distorted-images"
26395 \begin_layout Description
26397 \begin_inset space ~
26400 only: prints only the \SpecialChar LaTeX
26401 label for the reference:
26402 \begin_inset CommandInset ref
26403 LatexCommand labelonly
26404 reference "fig:Two-distorted-images"
26412 \begin_inset Newline newline
26415 This allows to use the label for commands in \SpecialChar TeX
26421 one can omit the prefix of the label name:
26422 \begin_inset CommandInset ref
26423 LatexCommand labelonly
26424 reference "fig:Two-distorted-images"
26434 \begin_layout Standard
26439 will not print the page number if the label is on the previous, the same,
26442 \begin_inset space \thinspace{}
26446 \begin_inset space \space{}
26450 \begin_inset Quotes eld
26458 \begin_inset Quotes erd
26464 <reference> on page <page>
26466 will not print anything about the page if the label is on the same page.
26469 \begin_layout Standard
26470 The number and current page of the part of the document referred to in the
26471 output is automatically calculated by \SpecialChar LaTeX
26473 The varieties are adjusted in the field
26477 of the cross-reference window that appears when you click on the cross-referenc
26481 \begin_layout Standard
26482 \begin_inset Note Greyedout
26485 \begin_layout Plain Layout
26490 It is recommended to use the \SpecialChar LaTeX
26496 \begin_inset Index idx
26499 \begin_layout Plain Layout
26501 -packages ! refstyle
26511 \begin_inset Index idx
26514 \begin_layout Plain Layout
26516 -packages ! prettyref
26521 does not know all of \SpecialChar LyX
26522 's possible label shortcuts
26526 \begin_layout Plain Layout
26527 \begin_inset Quotes eld
26531 \begin_inset Quotes erd
26534 is for example \SpecialChar LyX
26535 's shortcut for labels in figure captions.
26540 and is not internationalized.
26548 \begin_layout Subsection
26549 Automatic Reference Naming
26550 \begin_inset Index idx
26553 \begin_layout Plain Layout
26554 References ! Automatic Reference Naming
26562 \begin_layout Standard
26563 The \SpecialChar LaTeX
26569 \begin_inset Index idx
26572 \begin_layout Plain Layout
26574 -packages ! hyperref
26579 , that is enabled in the
26587 dialog, provides a very useful feature that cross-references automatically
26588 include the name of the referenced floats (or text parts like
26593 So you will save having to write e.
26594 \begin_inset space \thinspace{}
26598 \begin_inset space \space{}
26602 \begin_inset Quotes eld
26606 \begin_inset Quotes erd
26609 before every reference to a figure.
26610 To use this feature, enable
26614 and insert this line to the \SpecialChar LaTeX
26618 \begin_layout Standard
26634 \begin_layout Standard
26635 When you prefer other reference names than the default ones, for example
26636 you want instead of
26637 \begin_inset Quotes eld
26641 \begin_inset Quotes erd
26645 \begin_inset Quotes eld
26649 \begin_inset space \thinspace{}
26653 \begin_inset Quotes eld
26656 , you can redefine the name by inserting this in the preamble:
26659 \begin_layout Standard
26670 sectionautorefname}
26671 \begin_inset Newline newline
26675 \begin_inset Phantom HPhantom
26678 \begin_layout Plain Layout
26681 \begin_inset space ~
26694 \begin_layout Standard
26695 When you are using another document language than English, replace
26696 \begin_inset Newline newline
26711 , where *** is the name of the language used.
26714 \begin_layout Standard
26715 To get automatic names, but not for certain reference types, for example
26716 not for equations, use this preamble code:
26719 \begin_layout Standard
26730 equationautorefname}[1]{}}
26733 \begin_layout Standard
26734 More about this topic can be found in
26739 \begin_inset CommandInset citation
26749 \begin_layout Standard
26750 \begin_inset Note Greyedout
26753 \begin_layout Plain Layout
26758 Automatic reference naming cannot be used when you use cross-references
26762 \begin_inset space ~
26767 style, as described in section
26768 \begin_inset space ~
26772 \begin_inset CommandInset ref
26774 reference "subsec:Cross-Reference-Formats"
26786 \begin_layout Standard
26791 manual is an example where automatic reference naming is used.
26794 \begin_layout Subsection
26796 \begin_inset CommandInset label
26798 name "subsec:Reference-Position"
26803 \begin_inset Index idx
26806 \begin_layout Plain Layout
26807 References ! Reference Position
26815 \begin_layout Standard
26821 \begin_inset Index idx
26824 \begin_layout Plain Layout
26826 -packages ! hyperref
26839 dialog to link cross-references in the output, you will see that clicking
26840 on an image float reference jumps to the image label.
26841 The caption will be the first text part on the screen, so that you cannot
26842 see the image without scrolling.
26843 This is because the reference link anchor is placed at the position of
26845 With the use of the package
26850 \begin_inset Index idx
26853 \begin_layout Plain Layout
26860 , which is part of the \SpecialChar LaTeX
26866 \begin_inset Index idx
26869 \begin_layout Plain Layout
26871 -packages ! oberdiek
26876 , the link anchor is placed at the beginning of a float.
26877 To use this feature for figure floats, load
26881 in the document preamble with the line
26884 \begin_layout Standard
26889 usepackage[figure]{hypcap}
26892 \begin_layout Standard
26897 for all float types but this is not recommended for stability reasons.
26898 For more information, have a look at
26903 \begin_inset CommandInset citation
26913 \begin_layout Standard
26914 \begin_inset Note Greyedout
26917 \begin_layout Plain Layout
26926 has no effect on references to subfigures.
26934 \begin_layout Section
26936 \begin_inset CommandInset label
26938 name "sec:Float-Placement"
26943 \begin_inset Index idx
26946 \begin_layout Plain Layout
26955 \begin_layout Standard
26956 Right-clicking on a float-box and clicking on
26960 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26962 positioning the float.
26963 \begin_inset Newline newline
26969 \begin_inset space ~
26974 is only useful for two-column documents: If you select it, the float will
26975 span both columns on the page instead of being confined to just one.
26976 \begin_inset Newline newline
26982 \begin_inset space ~
26987 is used to rotate floats, see section
26988 \begin_inset CommandInset ref
26990 reference "sec:Rotated-Floats"
26997 \begin_layout Standard
26998 You can use one or more of the following options in the float dialog to
26999 set the placement for a particular float when you uncheck the option
27002 \begin_inset space ~
27006 \begin_inset space ~
27014 \begin_layout Description
27016 \begin_inset space ~
27020 \begin_inset space ~
27023 possible try to place the float on the position where it has been inserted
27026 \begin_layout Description
27028 \begin_inset space ~
27032 \begin_inset space ~
27035 page try to place the float at the top of the current page
27038 \begin_layout Description
27040 \begin_inset space ~
27044 \begin_inset space ~
27047 page try to place the float at the bottom of the current page
27050 \begin_layout Description
27052 \begin_inset space ~
27056 \begin_inset space ~
27059 floats try to place the float on its own page
27062 \begin_layout Standard
27063 The order of the above option is
27067 used by \SpecialChar LaTeX
27069 That means, if you use the default placement, \SpecialChar LaTeX
27073 \begin_inset space ~
27077 \begin_inset space ~
27085 \begin_inset space ~
27089 \begin_inset space ~
27094 , and then the others.
27095 If you do not use the default, \SpecialChar LaTeX
27096 will try only the checked options but in
27099 \begin_inset space ~
27102 placements is possible the procedure is internally repeated trying to put
27103 the float on the following page.
27106 \begin_layout Standard
27107 By default, each option has its own rules:
27110 \begin_layout Labeling
27111 \labelwidthstring 00.00.0000
27115 \begin_inset space ~
27119 \begin_inset space ~
27124 only floats occupying less than 70
27125 \begin_inset space \thinspace{}
27128 % of the page can be placed at the top of a page (
27137 \begin_layout Labeling
27138 \labelwidthstring 00.00.0000
27142 \begin_inset space ~
27146 \begin_inset space ~
27151 : only floats occupying less than 30
27152 \begin_inset space \thinspace{}
27155 % of the page can be placed at the bottom of a page.
27165 \begin_layout Labeling
27166 \labelwidthstring 00.00.0000
27170 \begin_inset space ~
27174 \begin_inset space ~
27179 : only if more than 50
27180 \begin_inset space \thinspace{}
27183 % of the page is occupied by floats, several floats can be set together
27194 \begin_layout Standard
27195 If you don't like these rules, you can ignore them by using the additional
27199 \begin_inset space ~
27204 \begin_inset space ~
27210 \begin_inset Newline newline
27213 You can also redefine the rules with \SpecialChar LaTeX
27214 -commands that are given in parentheses
27215 after the rules description above.
27216 To increase for example the often too small default of the bottom-rule
27218 \begin_inset space \thinspace{}
27221 % of the page, add this line to your document preamble:
27224 \begin_layout Standard
27231 bottomfraction}{0.5}
27234 \begin_layout Standard
27235 Sometimes you might need, under all circumstances, a float to be placed
27236 exactly at the position where it is inserted.
27237 For this case you can use the option
27240 \begin_inset space ~
27246 Use this option very rarely and only if the document is almost ready to
27247 be printed, because the float is then no longer able to
27248 \begin_inset Quotes eld
27252 \begin_inset Quotes erd
27255 when you change your document and this will often destroy the page layout.
27258 \begin_layout Standard
27259 There are no placement options for text wrap floats, because they are always
27260 surrounded by the text of a certain paragraph.
27261 \begin_inset VSpace bigskip
27267 \begin_layout Standard
27268 Sometimes you have the problem that a float is placed at the top of a page
27269 while its corresponding section starts at the middle of the page, so that
27270 the reader could think the float is part of the previous section.
27271 To avoid this the \SpecialChar LaTeX
27279 It suppresses a given float placement for the page where it is inserted
27280 and can therefore be used to avoid floats being set before a section starts.
27281 To get this, add these commands to your document preamble:
27284 \begin_layout Standard
27294 \begin_inset Newline newline
27308 \begin_layout Standard
27309 You can define the same for all section headings, like chapters and subsections.
27310 This definition is not recommended to be used for small text parts like
27311 subsubsections because \SpecialChar LaTeX
27312 may then have problems finding a suitable placement.
27315 \begin_layout Standard
27316 \begin_inset VSpace bigskip
27319 In some cases it is required to have all figures/tables at the end of the
27321 For this purpose the \SpecialChar LaTeX
27327 \begin_inset Index idx
27330 \begin_layout Plain Layout
27332 -packages ! endfloat
27338 It puts all figure and table floats at the end of the document into their
27340 At the original float position a text hint like
27341 \begin_inset Quotes eld
27347 \begin_inset space ~
27353 \begin_inset Quotes erd
27357 The endfloat-package is loaded in the preamble with the line
27360 \begin_layout Standard
27365 usepackage[options]{endfloat}
27368 \begin_layout Standard
27369 There are various package options to format the created figure/table sections.
27370 For more information we refer you to the
27375 \begin_inset CommandInset citation
27383 \begin_inset Newline newline
27387 \begin_inset Note Greyedout
27390 \begin_layout Plain Layout
27395 doesn't provide an automatic translation for the text hint, you have to
27396 do this manually, see section
27397 \begin_inset space ~
27401 \begin_inset CommandInset citation
27414 \begin_inset Newline newline
27418 \begin_inset Note Greyedout
27421 \begin_layout Plain Layout
27426 There is currently a bug in
27430 when the caption contains a German
27431 \begin_inset Quotes eld
27435 \begin_inset Quotes erd
27439 Use in this case the command
27440 \begin_inset Quotes eld
27450 \begin_inset Quotes erd
27453 in \SpecialChar TeX
27455 \begin_inset Quotes eld
27459 \begin_inset Quotes erd
27470 \begin_layout Standard
27471 \begin_inset VSpace bigskip
27474 For more details about float placements, have a look at \SpecialChar LaTeX
27476 \begin_inset CommandInset citation
27478 key "latexcompanion,latexguide,latexbook"
27486 \begin_layout Section
27488 \begin_inset CommandInset label
27490 name "sec:Rotated-Floats"
27495 \begin_inset Index idx
27498 \begin_layout Plain Layout
27507 \begin_layout Standard
27508 Especially for wide tables you might have floats rotated.
27509 To rotate a whole float including the caption, right-click on the float-box
27513 \begin_inset space ~
27521 \begin_layout Standard
27522 Rotated floats are always placed on a page of their own (or column of their
27523 own; in case you have a multi-column document).
27524 You can let them span several columns using the float settings option
27527 \begin_inset space ~
27533 Floats are rotated so that you can read them from the outside margin.
27534 To force a certain rotation direction for all pages, you can add either
27543 to the document class options.
27546 \begin_layout Standard
27547 Referencing rotated floats is the same as for normal floats, the caption
27548 format is also the same: Table
27549 \begin_inset space ~
27553 \begin_inset CommandInset ref
27555 reference "tab:Rotated-table"
27559 is an example of a rotated table float.
27562 \begin_layout Standard
27563 \begin_inset Note Greyedout
27566 \begin_layout Plain Layout
27571 Not all DVI-viewers are able to display rotated floats.
27579 \begin_layout Standard
27580 \begin_inset Float table
27585 \begin_layout Plain Layout
27586 \begin_inset Caption Standard
27588 \begin_layout Plain Layout
27589 \begin_inset CommandInset label
27591 name "tab:Rotated-table"
27603 \begin_layout Plain Layout
27605 \begin_inset Tabular
27606 <lyxtabular version="3" rows="1" columns="5">
27607 <features tabularvalignment="middle">
27608 <column alignment="center" valignment="top">
27609 <column alignment="center" valignment="top">
27610 <column alignment="center" valignment="top">
27611 <column alignment="center" valignment="top">
27612 <column alignment="center" valignment="top">
27614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27617 \begin_layout Plain Layout
27623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27626 \begin_layout Plain Layout
27632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27635 \begin_layout Plain Layout
27641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27644 \begin_layout Plain Layout
27650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27653 \begin_layout Plain Layout
27672 \begin_layout Section
27674 \begin_inset Index idx
27677 \begin_layout Plain Layout
27686 \begin_layout Standard
27687 Subfloats are for example used when a figure consists of several images.
27688 They are created by inserting a float into an existing float.
27689 The placement of the subfloats can be controlled in the same way as for
27690 paragraphs as shown in table
27691 \begin_inset space ~
27695 \begin_inset CommandInset ref
27697 reference "tab:Two-subtables-side"
27702 \begin_inset CommandInset ref
27704 reference "tab:Two-subtables-upon"
27711 \begin_layout Standard
27712 Referencing subfloats works as for normal floats: Table
27713 \begin_inset space ~
27717 \begin_inset CommandInset ref
27719 reference "tab:This-is-subtable-a"
27724 \begin_inset CommandInset ref
27726 reference "tab:This-is-subtable-b"
27730 are subtables of table
27731 \begin_inset space ~
27735 \begin_inset CommandInset ref
27737 reference "tab:Two-subtables-side"
27744 \begin_layout Standard
27745 \begin_inset Float table
27750 \begin_layout Plain Layout
27751 \begin_inset Caption Standard
27753 \begin_layout Plain Layout
27754 \begin_inset CommandInset label
27756 name "tab:Two-subtables-side"
27760 Two subtables placed side by side.
27768 \begin_layout Plain Layout
27770 \begin_inset space \hfill{}
27774 \begin_inset Float table
27779 \begin_layout Plain Layout
27780 \begin_inset Caption Standard
27782 \begin_layout Plain Layout
27783 \begin_inset CommandInset label
27785 name "tab:This-is-subtable-a"
27789 This is subtable a.
27797 \begin_layout Plain Layout
27799 \begin_inset Tabular
27800 <lyxtabular version="3" rows="1" columns="5">
27801 <features tabularvalignment="middle">
27802 <column alignment="center" valignment="top">
27803 <column alignment="center" valignment="top">
27804 <column alignment="center" valignment="top">
27805 <column alignment="center" valignment="top">
27806 <column alignment="center" valignment="top">
27808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27811 \begin_layout Plain Layout
27817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27820 \begin_layout Plain Layout
27826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27829 \begin_layout Plain Layout
27835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27838 \begin_layout Plain Layout
27844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27847 \begin_layout Plain Layout
27864 \begin_inset space \hfill{}
27868 \begin_inset Float table
27873 \begin_layout Plain Layout
27874 \begin_inset Caption Standard
27876 \begin_layout Plain Layout
27877 \begin_inset CommandInset label
27879 name "tab:This-is-subtable-b"
27883 This is subtable b.
27891 \begin_layout Plain Layout
27893 \begin_inset Tabular
27894 <lyxtabular version="3" rows="1" columns="5">
27895 <features tabularvalignment="middle">
27896 <column alignment="center" valignment="top">
27897 <column alignment="center" valignment="top">
27898 <column alignment="center" valignment="top">
27899 <column alignment="center" valignment="top">
27900 <column alignment="center" valignment="top">
27902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27905 \begin_layout Plain Layout
27911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27914 \begin_layout Plain Layout
27920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27923 \begin_layout Plain Layout
27929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27932 \begin_layout Plain Layout
27938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27941 \begin_layout Plain Layout
27958 \begin_inset space \hfill{}
27969 \begin_layout Standard
27970 \begin_inset Float table
27975 \begin_layout Plain Layout
27976 \begin_inset Caption Standard
27978 \begin_layout Plain Layout
27979 \begin_inset CommandInset label
27981 name "tab:Two-subtables-upon"
27985 Two subtables placed one above the other.
27986 (a) table with 4 cells, (b) table with 5 cells.
27994 \begin_layout Plain Layout
27996 \begin_inset Float table
28001 \begin_layout Plain Layout
28002 \begin_inset Caption Standard
28004 \begin_layout Plain Layout
28013 \begin_layout Plain Layout
28015 \begin_inset Tabular
28016 <lyxtabular version="3" rows="1" columns="4">
28017 <features tabularvalignment="middle">
28018 <column alignment="center" valignment="top">
28019 <column alignment="center" valignment="top">
28020 <column alignment="center" valignment="top">
28021 <column alignment="center" valignment="top">
28023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28026 \begin_layout Plain Layout
28032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28035 \begin_layout Plain Layout
28041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28044 \begin_layout Plain Layout
28050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28053 \begin_layout Plain Layout
28072 \begin_layout Plain Layout
28074 \begin_inset Float table
28079 \begin_layout Plain Layout
28080 \begin_inset Caption Standard
28082 \begin_layout Plain Layout
28091 \begin_layout Plain Layout
28093 \begin_inset Tabular
28094 <lyxtabular version="3" rows="1" columns="5">
28095 <features tabularvalignment="middle">
28096 <column alignment="center" valignment="top">
28097 <column alignment="center" valignment="top">
28098 <column alignment="center" valignment="top">
28099 <column alignment="center" valignment="top">
28100 <column alignment="center" valignment="top">
28102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28105 \begin_layout Plain Layout
28111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28114 \begin_layout Plain Layout
28120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28123 \begin_layout Plain Layout
28129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28132 \begin_layout Plain Layout
28138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28141 \begin_layout Plain Layout
28165 \begin_layout Section
28166 Floats Side by Side
28167 \begin_inset Index idx
28170 \begin_layout Plain Layout
28171 Floats ! Side by side
28179 \begin_layout Standard
28180 To place floats side by side, as in Figures
28181 \begin_inset space ~
28185 \begin_inset CommandInset ref
28187 reference "fig:Float-left"
28192 \begin_inset CommandInset ref
28194 reference "fig:Float-right"
28203 In it two minipage boxes are inserted.
28207 \begin_layout Plain Layout
28208 Minipages are explained in section
28209 \begin_inset space ~
28213 \begin_inset CommandInset ref
28215 reference "sec:Minipages"
28224 The width is set to 45
28225 \begin_inset space \thinspace{}
28229 \begin_inset space \thinspace{}
28232 column% and the box alignment to
28237 The minipage boxes contain the image and the caption in the same way as
28238 they are in a float.
28239 The only difference is that the image unit
28242 \begin_inset space ~
28246 \begin_inset space ~
28251 is now calculated according to the width of the minipage boxes.
28254 \begin_layout Standard
28255 \begin_inset Float figure
28260 \begin_layout Plain Layout
28261 \begin_inset Box Frameless
28271 height_special "totalheight"
28276 backgroundcolor "none"
28279 \begin_layout Plain Layout
28281 \begin_inset Graphics
28282 filename clipart/mobius.eps
28285 scaleBeforeRotation
28292 \begin_layout Plain Layout
28293 \begin_inset Caption Standard
28295 \begin_layout Plain Layout
28296 \begin_inset CommandInset label
28298 name "fig:Float-left"
28302 Float on the left side.
28313 \begin_inset space \hfill{}
28317 \begin_inset Box Frameless
28327 height_special "totalheight"
28332 backgroundcolor "none"
28335 \begin_layout Plain Layout
28337 \begin_inset Graphics
28338 filename clipart/platypus.eps
28341 scaleBeforeRotation
28348 \begin_layout Plain Layout
28349 \begin_inset Caption Standard
28351 \begin_layout Plain Layout
28352 \begin_inset CommandInset label
28354 name "fig:Float-right"
28358 Float on the right side.
28376 \begin_layout Standard
28377 An alternative and simpler solution is to use the module
28379 Variable-width Minipages
28382 \begin_inset space \thinspace{}
28386 \begin_inset CommandInset ref
28388 reference "sec:Minipages"
28393 Variable-width minipages adapt automatically to the width of the figures
28395 They do not require an explicit width to be given, and they improve the
28396 horizontal alignment of the figures.
28397 The LyX example file
28399 varwidth-floats-side-by-side
28401 gives examples of how to do this.
28404 \begin_layout Section
28406 \begin_inset Index idx
28409 \begin_layout Plain Layout
28410 Caption ! Formatting
28416 \begin_inset Index idx
28419 \begin_layout Plain Layout
28420 Floats ! Caption Formatting
28426 \begin_inset CommandInset label
28428 name "sec:Caption-Formatting"
28435 \begin_layout Standard
28440 environment is the default paragraph environment for
28445 On the \SpecialChar LyX
28446 screen captions appear as a label, e.
28447 \begin_inset space \thinspace{}
28451 \begin_inset space \space{}
28455 \begin_inset Quotes eld
28463 \begin_inset Quotes erd
28466 followed by the caption text.
28468 \begin_inset Quotes eld
28472 \begin_inset Quotes erd
28475 is the actual reference number.
28476 By default the label and the number are in the same font as the caption
28477 text and a colon follows the number to divide the label from the text.
28478 This caption format is suitable for many but not all documents.
28482 \begin_layout Standard
28483 To change the default caption format, load the \SpecialChar LaTeX
28489 \begin_inset Index idx
28492 \begin_layout Plain Layout
28494 -packages ! caption
28499 in the document preamble with this line:
28502 \begin_layout Standard
28507 usepackage[format definition]{caption}
28510 \begin_layout Standard
28511 To have for example the label and the number in sans-serif, bold font and
28512 the table captions always above the table as in this document, use the
28516 \begin_layout Standard
28521 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28524 \begin_layout Standard
28525 You can also define different caption formats for the different float types.
28526 In this case load the
28530 package without format specific options and define the different formats
28531 with the help of the command
28534 \begin_layout Standard
28539 captionsetup[float type]{format definition}
28542 \begin_layout Standard
28543 in the document preamble.
28544 For example the caption formats of Figure
28545 \begin_inset space ~
28549 \begin_inset CommandInset ref
28551 reference "fig:This-is-an-fig"
28556 \begin_inset space ~
28560 \begin_inset CommandInset ref
28562 reference "tab:This-is-an-tab"
28566 can be created using these commands in the document preamble:
28569 \begin_layout Standard
28574 usepackage[tableposition=top]{caption}
28577 \begin_inset Newline newline
28584 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28585 \begin_inset Newline newline
28589 \begin_inset Phantom HPhantom
28592 \begin_layout Plain Layout
28597 captionsetup[figure]{
28603 \begin_inset Newline newline
28608 captionsetup[table]{labelfont={bf,sf}}
28611 \begin_layout Standard
28612 \begin_inset Note Greyedout
28615 \begin_layout Plain Layout
28624 has no effect when a
28629 \begin_inset Index idx
28632 \begin_layout Plain Layout
28634 -packages ! KOMA-Script
28639 document class is used.
28640 In this case the document class option
28642 captions=tableheading
28652 \begin_layout Standard
28653 For more information about the package
28657 we refer to its documentation
28658 \begin_inset CommandInset citation
28668 \begin_layout Standard
28669 To change the label name from e.
28670 \begin_inset space \thinspace{}
28674 \begin_inset space \space{}
28678 \begin_inset Quotes eld
28682 \begin_inset Quotes erd
28686 \begin_inset Quotes eld
28690 \begin_inset Quotes erd
28693 use this preamble command:
28696 \begin_layout Standard
28703 fnum@figure}{Image~
28708 \begin_layout Standard
28715 inserts the figure number and
28718 \begin_inset Quotes eld
28724 \begin_inset Quotes erd
28727 creates a protected space.
28730 \begin_layout Standard
28731 \begin_inset VSpace bigskip
28739 \begin_inset Index idx
28742 \begin_layout Plain Layout
28744 -packages ! KOMA-Script
28751 article (KOMA-Script)
28759 letter (KOMA-Script)
28763 report (KOMA-Script)
28766 \begin_inset space \thinspace{}
28769 ), you can alternatively to the
28777 's built-in command
28784 For example, to have the caption label in bold, add this command to your
28788 \begin_layout Standard
28793 setkomafont{captionlabel}{
28798 \begin_layout Standard
28799 For more information about
28810 \begin_inset CommandInset citation
28820 \begin_layout Standard
28824 \begin_layout Plain Layout
28828 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28835 \begin_inset Note Note
28838 \begin_layout Plain Layout
28839 The caption format is changed only for this example.
28847 \begin_layout Standard
28848 \begin_inset Float figure
28854 \begin_layout Plain Layout
28856 \begin_inset Graphics
28857 filename clipart/mobius.eps
28860 scaleBeforeRotation
28867 \begin_layout Plain Layout
28868 \begin_inset Caption Standard
28870 \begin_layout Plain Layout
28871 \begin_inset CommandInset label
28873 name "fig:This-is-an-fig"
28877 This is an example figure caption that is longer than one line to show the
28878 different caption format.
28879 Here a self-defined caption format is used.
28892 \begin_layout Standard
28896 \begin_layout Plain Layout
28900 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28909 \begin_layout Standard
28910 \begin_inset Float table
28916 \begin_layout Plain Layout
28917 \begin_inset Caption Standard
28919 \begin_layout Plain Layout
28920 \begin_inset CommandInset label
28922 name "tab:This-is-an-tab"
28926 This is an example table caption that is longer than one line to show the
28927 different caption format.
28928 Here the standard caption format for tables in this document is used.
28936 \begin_layout Plain Layout
28938 \begin_inset Tabular
28939 <lyxtabular version="3" rows="1" columns="5">
28940 <features tabularvalignment="middle">
28941 <column alignment="center" valignment="top">
28942 <column alignment="center" valignment="top">
28943 <column alignment="center" valignment="top">
28944 <column alignment="center" valignment="top">
28945 <column alignment="center" valignment="top">
28947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28950 \begin_layout Plain Layout
28956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28959 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28977 \begin_layout Plain Layout
28983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28986 \begin_layout Plain Layout
29005 \begin_layout Section
29007 \begin_inset Index idx
29010 \begin_layout Plain Layout
29011 Caption ! Placement
29017 \begin_inset Index idx
29020 \begin_layout Plain Layout
29021 Floats ! Caption Placement
29027 \begin_inset CommandInset label
29029 name "sec:Caption-Placement"
29036 \begin_layout Standard
29037 The common caption placement rule is:
29040 \begin_layout Description
29041 Figure: Caption is set below the figure
29044 \begin_layout Description
29045 Table: Caption is set above the table
29048 \begin_layout Standard
29049 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29052 That means if you are using the document classes
29068 there will be no space between the caption and the table.
29069 To insert the necessary space, load the \SpecialChar LaTeX
29075 \begin_inset Index idx
29078 \begin_layout Plain Layout
29080 -packages ! caption
29085 in your document preamble with the option
29089 \begin_layout Plain Layout
29091 \begin_inset space ~
29095 \begin_inset CommandInset ref
29097 reference "sec:Caption-Formatting"
29101 for more information of the package
29113 \begin_layout Standard
29119 \begin_layout Standard
29125 \begin_inset Index idx
29128 \begin_layout Plain Layout
29130 -packages ! KOMA-Script
29137 article (KOMA-Script)
29145 letter (KOMA-Script)
29149 report (KOMA-Script)
29152 \begin_inset space \thinspace{}
29155 ), you can alternatively to the
29159 package set the document class option
29163 \begin_layout Plain Layout
29164 That option is used in this document.
29172 \begin_layout Standard
29175 captions=tableheading
29178 \begin_layout Standard
29179 In documents with a KOMA-Script document class you can also right-click
29180 on a caption and mark in the context menu if this should be a caption above
29181 or below the table/figure.
29182 This way you can override the document-wide caption placement for certain
29185 \begin_inset space ~
29189 \begin_inset CommandInset ref
29191 reference "tab:A-caption-marked"
29195 is an example where the caption is marked a being below the table while
29197 For comparison the caption in Table
29198 \begin_inset space ~
29202 \begin_inset CommandInset ref
29204 reference "tab:A-standard-table"
29211 \begin_layout Standard
29212 \begin_inset Float table
29217 \begin_layout Plain Layout
29218 \begin_inset Caption Below
29220 \begin_layout Plain Layout
29221 \begin_inset CommandInset label
29223 name "tab:A-caption-marked"
29227 A caption marked as being below the table.
29235 \begin_layout Plain Layout
29237 \begin_inset Tabular
29238 <lyxtabular version="3" rows="3" columns="3">
29239 <features tabularvalignment="middle">
29240 <column alignment="center" valignment="top" width="0pt">
29241 <column alignment="center" valignment="top" width="0pt">
29242 <column alignment="center" valignment="top" width="0pt">
29244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29247 \begin_layout Plain Layout
29253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29256 \begin_layout Plain Layout
29262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29265 \begin_layout Plain Layout
29273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29276 \begin_layout Plain Layout
29282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29285 \begin_layout Plain Layout
29291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29294 \begin_layout Plain Layout
29302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29305 \begin_layout Plain Layout
29306 \begin_inset Formula $\int x^{2}dx$
29314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29317 \begin_layout Plain Layout
29318 \begin_inset Formula $\left[\begin{array}{cc}
29321 \end{array}\right]$
29329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29332 \begin_layout Plain Layout
29333 \begin_inset Formula $1+1=2$
29354 \begin_layout Standard
29355 \begin_inset Float table
29360 \begin_layout Plain Layout
29361 \begin_inset Caption Standard
29363 \begin_layout Plain Layout
29364 \begin_inset CommandInset label
29366 name "tab:A-standard-table"
29370 A standard table caption.
29378 \begin_layout Plain Layout
29380 \begin_inset Tabular
29381 <lyxtabular version="3" rows="3" columns="3">
29382 <features tabularvalignment="middle">
29383 <column alignment="center" valignment="top" width="0pt">
29384 <column alignment="center" valignment="top" width="0pt">
29385 <column alignment="center" valignment="top" width="0pt">
29387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29390 \begin_layout Plain Layout
29396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29399 \begin_layout Plain Layout
29405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29408 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29419 \begin_layout Plain Layout
29425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29428 \begin_layout Plain Layout
29434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29437 \begin_layout Plain Layout
29445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29448 \begin_layout Plain Layout
29449 \begin_inset Formula $\int x^{2}dx$
29457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29460 \begin_layout Plain Layout
29461 \begin_inset Formula $\left[\begin{array}{cc}
29464 \end{array}\right]$
29472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29475 \begin_layout Plain Layout
29476 \begin_inset Formula $1+1=2$
29497 \begin_layout Standard
29498 \begin_inset VSpace bigskip
29501 It is also possible to set the caption beside a figure or table.
29502 To get this the \SpecialChar LaTeX
29508 \begin_inset Index idx
29511 \begin_layout Plain Layout
29513 -packages ! sidecap
29518 has to be loaded in the document preamble with the line
29521 \begin_layout Standard
29526 usepackage[option]{sidecap}
29529 \begin_layout Standard
29530 If you set no option, the caption is placed on the side of the outer page
29531 margin – to the right on odd pages, to the left on even pages.
29532 You can change the placement to inner margin with the option
29537 To force the placement always to the right or left, use the option
29548 \begin_layout Standard
29552 \begin_layout Plain Layout
29562 \begin_inset Note Note
29565 \begin_layout Plain Layout
29566 The following section will only be displayed when the \SpecialChar LaTeX
29579 \begin_layout Standard
29580 To place in \SpecialChar LyX
29581 the caption of a float on the side, it is necessary to add
29582 these commands to the document preamble:
29585 \begin_layout Standard
29587 \begin_inset CommandInset line
29598 \begin_layout Standard
29605 TabBesBeg}[1][1.0]{%
29606 \begin_inset Newline newline
29610 \begin_inset Phantom HPhantom
29613 \begin_layout Plain Layout
29614 \begin_inset space ~
29629 \begin_inset Newline newline
29633 \begin_inset Phantom HPhantom
29636 \begin_layout Plain Layout
29639 \begin_inset space ~
29654 \begin_inset Newline newline
29658 \begin_inset Phantom HPhantom
29661 \begin_layout Plain Layout
29664 \begin_inset space ~
29674 renewenvironment{table}[1]{
29676 begin{SCtable}[#1]##1}{
29681 \begin_layout Standard
29689 \begin_inset Newline newline
29693 \begin_inset Phantom HPhantom
29696 \begin_layout Plain Layout
29697 \begin_inset space ~
29712 \begin_inset Newline newline
29716 \begin_inset Phantom HPhantom
29719 \begin_layout Plain Layout
29720 \begin_inset space ~
29737 \begin_layout Standard
29744 FigBesBeg}[1][1.0]{%
29745 \begin_inset Newline newline
29749 \begin_inset Phantom HPhantom
29752 \begin_layout Plain Layout
29753 \begin_inset space ~
29768 \begin_inset Newline newline
29772 \begin_inset Phantom HPhantom
29775 \begin_layout Plain Layout
29776 \begin_inset space ~
29791 \begin_inset Newline newline
29795 \begin_inset Phantom HPhantom
29798 \begin_layout Plain Layout
29799 \begin_inset space ~
29809 renewenvironment{figure}[1]{
29811 begin{SCfigure}[#1]##1}{
29816 \begin_layout Standard
29824 \begin_inset Newline newline
29828 \begin_inset Phantom HPhantom
29831 \begin_layout Plain Layout
29832 \begin_inset space ~
29847 \begin_inset Newline newline
29851 \begin_inset Phantom HPhantom
29854 \begin_layout Plain Layout
29855 \begin_inset space ~
29872 \begin_layout Standard
29874 \begin_inset CommandInset line
29885 \begin_layout Standard
29886 The commands allow you to redefine the floats so that the caption is set
29888 For figure floats use the command
29891 \begin_layout Standard
29899 \begin_layout Standard
29900 in \SpecialChar TeX
29901 Code before the float.
29902 And insert the command
29905 \begin_layout Standard
29913 \begin_layout Standard
29914 in \SpecialChar TeX
29915 Code at the point where you want to get back to the original float definitio
29919 \begin_layout Standard
29920 For table floats use the corresponding commands
29923 \begin_layout Standard
29937 \begin_layout Standard
29939 \begin_inset space ~
29943 \begin_inset CommandInset ref
29945 reference "fig:cap-beside-fig"
29950 \begin_inset space ~
29954 \begin_inset CommandInset ref
29956 reference "tab:cap-beside-tab"
29960 are examples where the caption is set beside.
29963 \begin_layout Standard
29964 You can see in the examples that the caption text appears at the top of
29965 the floats for table floats and at the bottom for figure floats.
29966 To change this, you can use the command
29969 \begin_layout Standard
29974 sidecaptionvpos{float type}{placement}
29977 \begin_layout Standard
29978 in the document preamble or in \SpecialChar TeX
29979 Code before the float.
29980 The float type is either
29988 , the placement can be
29989 \begin_inset Quotes eld
29997 \begin_inset Quotes erd
30001 \begin_inset Quotes eld
30009 \begin_inset Quotes erd
30013 \begin_inset Quotes eld
30021 \begin_inset Quotes erd
30025 To have for example the caption of figure floats vertically centered, use
30029 \begin_layout Standard
30034 sidecaptionvpos{figure}{c}
30037 \begin_layout Standard
30038 This was used for Figure
30039 \begin_inset space ~
30043 \begin_inset CommandInset ref
30045 reference "fig:cap-beside-fig-2"
30052 \begin_layout Standard
30053 \begin_inset VSpace medskip
30059 \begin_layout Standard
30060 The default caption width is the width of the image/table.
30061 For thin image/tables, like in Table
30062 \begin_inset space ~
30066 \begin_inset CommandInset ref
30068 reference "tab:cap-beside-tab"
30072 , this leads to captions that are too thin.
30073 You can increase the width by specifying a factor that will be multiplied
30074 with the image/table width to get the caption width.
30075 The caption width will automatically be recalculated in case it would protrude
30076 over the page or column margin due to the specified width.
30081 can either be given as optional argument for
30090 \begin_layout Standard
30098 \begin_layout Standard
30099 or in the definition of
30109 with another value.
30110 If you do the latter, your factor will be the default if
30116 is used without an argument.
30118 \begin_inset space ~
30122 \begin_inset CommandInset ref
30124 reference "tab:cap-beside-tab-wider"
30128 the factor 5 was used.
30131 \begin_layout Standard
30132 \begin_inset Note Greyedout
30135 \begin_layout Plain Layout
30140 For floats with captions set beside, you cannot use the float placement
30144 \begin_inset space ~
30149 because it is not supported by
30161 \begin_layout Standard
30162 \begin_inset VSpace medskip
30165 For more information about the package
30169 we refer to its documentation
30170 \begin_inset CommandInset citation
30180 \begin_layout Standard
30181 \begin_inset Note Greyedout
30184 \begin_layout Plain Layout
30189 The \SpecialChar LaTeX
30195 \begin_inset Index idx
30198 \begin_layout Plain Layout
30205 , described in section
30206 \begin_inset space ~
30210 \begin_inset CommandInset ref
30212 reference "subsec:Reference-Position"
30216 , has no effect on floats with the caption set beside.
30224 \begin_layout Standard
30228 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 \begin_inset Float figure
30246 \begin_layout Plain Layout
30247 \begin_inset Graphics
30248 filename clipart/escher-lsd.eps
30250 scaleBeforeRotation
30257 \begin_layout Plain Layout
30258 \begin_inset Caption Standard
30260 \begin_layout Plain Layout
30261 \begin_inset CommandInset label
30263 name "fig:cap-beside-fig"
30267 This is a caption beside a figure.
30280 \begin_layout Standard
30284 \begin_layout Plain Layout
30296 \begin_layout Standard
30300 \begin_layout Plain Layout
30312 \begin_layout Standard
30313 \begin_inset Float table
30318 \begin_layout Plain Layout
30319 \begin_inset Caption Standard
30321 \begin_layout Plain Layout
30322 \begin_inset CommandInset label
30324 name "tab:cap-beside-tab"
30328 This is a caption beside a table.
30336 \begin_layout Plain Layout
30337 \begin_inset Tabular
30338 <lyxtabular version="3" rows="4" columns="5">
30339 <features tabularvalignment="middle">
30340 <column alignment="center" valignment="top">
30341 <column alignment="center" valignment="top">
30342 <column alignment="center" valignment="top">
30343 <column alignment="center" valignment="top">
30344 <column alignment="center" valignment="top">
30346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30349 \begin_layout Plain Layout
30355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30358 \begin_layout Plain Layout
30364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30367 \begin_layout Plain Layout
30373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30376 \begin_layout Plain Layout
30382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30385 \begin_layout Plain Layout
30393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30396 \begin_layout Plain Layout
30402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30405 \begin_layout Plain Layout
30411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30414 \begin_layout Plain Layout
30420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30423 \begin_layout Plain Layout
30429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30432 \begin_layout Plain Layout
30440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30443 \begin_layout Plain Layout
30449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30452 \begin_layout Plain Layout
30458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30461 \begin_layout Plain Layout
30467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30470 \begin_layout Plain Layout
30476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30479 \begin_layout Plain Layout
30487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30490 \begin_layout Plain Layout
30496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30499 \begin_layout Plain Layout
30505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30508 \begin_layout Plain Layout
30514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30517 \begin_layout Plain Layout
30523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30526 \begin_layout Plain Layout
30545 \begin_layout Standard
30549 \begin_layout Plain Layout
30561 \begin_layout Standard
30565 \begin_layout Plain Layout
30578 \begin_layout Plain Layout
30582 sidecaptionvpos{figure}{c}
30588 \begin_inset Float figure
30593 \begin_layout Plain Layout
30594 \begin_inset Graphics
30595 filename clipart/escher-lsd.eps
30597 scaleBeforeRotation
30604 \begin_layout Plain Layout
30605 \begin_inset Caption Standard
30607 \begin_layout Plain Layout
30608 \begin_inset CommandInset label
30610 name "fig:cap-beside-fig-2"
30614 This is a vertically centered caption beside a figure.
30627 \begin_layout Standard
30631 \begin_layout Plain Layout
30643 \begin_layout Standard
30647 \begin_layout Plain Layout
30659 \begin_layout Standard
30660 \begin_inset Float table
30665 \begin_layout Plain Layout
30666 \begin_inset Caption Standard
30668 \begin_layout Plain Layout
30669 \begin_inset CommandInset label
30671 name "tab:cap-beside-tab-wider"
30675 This caption is wider than the one in Table
30676 \begin_inset space ~
30680 \begin_inset CommandInset ref
30682 reference "tab:cap-beside-tab"
30694 \begin_layout Plain Layout
30695 \begin_inset Tabular
30696 <lyxtabular version="3" rows="4" columns="5">
30697 <features tabularvalignment="middle">
30698 <column alignment="center" valignment="top">
30699 <column alignment="center" valignment="top">
30700 <column alignment="center" valignment="top">
30701 <column alignment="center" valignment="top">
30702 <column alignment="center" valignment="top">
30704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30707 \begin_layout Plain Layout
30713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30716 \begin_layout Plain Layout
30722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30725 \begin_layout Plain Layout
30731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30734 \begin_layout Plain Layout
30740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30743 \begin_layout Plain Layout
30751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30754 \begin_layout Plain Layout
30760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30763 \begin_layout Plain Layout
30769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30772 \begin_layout Plain Layout
30778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30781 \begin_layout Plain Layout
30787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30790 \begin_layout Plain Layout
30798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30801 \begin_layout Plain Layout
30807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30810 \begin_layout Plain Layout
30816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30819 \begin_layout Plain Layout
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30828 \begin_layout Plain Layout
30834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30837 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30848 \begin_layout Plain Layout
30854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30857 \begin_layout Plain Layout
30863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30866 \begin_layout Plain Layout
30872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30875 \begin_layout Plain Layout
30881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30884 \begin_layout Plain Layout
30903 \begin_layout Standard
30907 \begin_layout Plain Layout
30919 \begin_layout Standard
30923 \begin_layout Plain Layout
30933 \begin_inset Note Note
30936 \begin_layout Plain Layout
30937 The following will be displayed when the \SpecialChar LaTeX
30950 \begin_layout Standard
30951 You need to install the \SpecialChar LaTeX
30956 to see the following part of this section in the output.
30959 \begin_layout Standard
30963 \begin_layout Plain Layout
30975 \begin_layout Section
30977 \begin_inset Index idx
30980 \begin_layout Plain Layout
30981 Floats ! Float Lists
30989 \begin_layout Standard
30990 Similar to the table of contents where the sections of the document are
30991 listed, there are listings for all float types, like the figures of the
30993 You can insert them via the
30995 Insert\SpecialChar menuseparator
30997 \begin_inset space ~
31001 \begin_inset space ~
31009 \begin_layout Standard
31010 The list entries are the float captions or its short title, the float number,
31011 and the page number where they appear in the document.
31014 \begin_layout Standard
31015 You can find the list of figures and tables at the end of this document.
31018 \begin_layout Chapter
31022 \begin_layout Section
31025 \begin_inset Index idx
31028 \begin_layout Plain Layout
31029 Notes ! \SpecialChar LyX
31038 \begin_layout Standard
31039 Notes are inserted with the toolbar button
31047 Insert\SpecialChar menuseparator
31051 There are three types of notes:
31054 \begin_layout Description
31057 \begin_inset space ~
31060 Note This note type is for internal notes that won't appear in the output.
31061 Its note-box looks like this:
31062 \begin_inset Newline newline
31066 \begin_inset Newline newline
31070 \begin_inset Graphics
31071 filename clipart/LyXNoteImage.png
31073 scaleBeforeRotation
31078 \begin_inset Note Note
31081 \begin_layout Plain Layout
31082 This is text in a note box that doesn't appear in the output.
31090 \begin_layout Description
31091 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31093 when you export the document to \SpecialChar LaTeX
31096 File\SpecialChar menuseparator
31097 Export\SpecialChar menuseparator
31099 \begin_inset space ~
31102 (pdflatex) / (plain)
31105 Its note-box looks like this:
31106 \begin_inset Newline newline
31110 \begin_inset Newline newline
31114 \begin_inset Graphics
31115 filename clipart/CommentNoteImage.png
31117 scaleBeforeRotation
31122 \begin_inset Note Comment
31125 \begin_layout Plain Layout
31126 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31135 \begin_layout Description
31137 \begin_inset space ~
31140 Out This note will appear in the output as grey text.
31141 Its note-box looks like this:
31142 \begin_inset Newline newline
31146 \begin_inset Newline newline
31150 \begin_inset Graphics
31151 filename clipart/GreyedOutNoteImage.png
31153 scaleBeforeRotation
31158 \begin_inset Newline newline
31165 \begin_layout Plain Layout
31169 renewenvironment{lyxgreyedout}
31172 \begin_layout Plain Layout
31176 textcolor[gray]{0.8}
31186 \begin_inset Note Greyedout
31189 \begin_layout Plain Layout
31190 This is text of a comment that appears grey in the output.
31199 \begin_layout Plain Layout
31203 renewenvironment{lyxgreyedout}
31206 \begin_layout Plain Layout
31220 \begin_inset Note Note
31223 \begin_layout Plain Layout
31224 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31226 because greyed out notes are redefined in the preamble of this document,
31227 as described below, to have blue text.
31233 \begin_inset Newline newline
31237 \begin_inset Newline newline
31240 As you can see in the example, the first line of greyed out notes is a bit
31241 indented and greyed out notes can have footnotes.
31244 \begin_layout Standard
31245 \begin_inset VSpace bigskip
31248 When you use the toolbar button
31258 \begin_inset space ~
31264 You can switch between the three note types by right-clicking on the note-box.
31269 If you want to turn existing text into a note, mark it and click on the
31283 To change a note to text, press the backspace key when the cursor is in
31284 the first position of a note, or press the delete key when the cursor is
31285 in the very last position of the note, respectively.
31288 \begin_layout Standard
31289 \begin_inset VSpace bigskip
31292 You can change the text color of the greyed out notes in the menu
31294 Document\SpecialChar menuseparator
31295 Settings\SpecialChar menuseparator
31301 \begin_layout Section
31303 \begin_inset CommandInset label
31305 name "sec:Footnotes"
31310 \begin_inset Index idx
31313 \begin_layout Plain Layout
31320 \begin_inset Index idx
31323 \begin_layout Plain Layout
31332 \begin_layout Standard
31333 Footnotes can be inserted using the toolbar button
31336 arg "footnote-insert"
31341 Insert\SpecialChar menuseparator
31345 You will then see the following footnote-box:
31346 \begin_inset Graphics
31347 filename clipart/footnote.png
31349 scaleBeforeRotation
31357 where you can enter the footnote text.
31358 If you want to turn existing text into a footnote, mark it and click on
31384 key when the cursor is in the first position of a
31396 key when the cursor is in the very last position of the
31407 \begin_layout Standard
31408 Here is an example footnote:
31416 \begin_layout Plain Layout
31417 \begin_inset CommandInset label
31419 name "foot:This-is-an"
31423 This is an example footnote.
31436 \begin_layout Plain Layout
31440 newcounter{MyRepeatFoot}
31443 \begin_layout Plain Layout
31447 setcounter{MyRepeatFoot}{
31457 \begin_layout Standard
31458 The footnote will appear in the output as a superscript number at the text
31459 position where the footnote box is placed.
31460 The footnote text is placed at the bottom of the current page.
31461 The footnote number is calculated by \SpecialChar LaTeX
31462 ; the numbers are consecutive.
31463 Whether the footnote number is reset for every chapter depends on your
31467 \begin_layout Standard
31468 Footnotes can be referenced like floats: Insert a label into the footnote
31469 and cross-reference this label in the text as described in section
31470 \begin_inset space ~
31474 \begin_inset CommandInset ref
31476 reference "sec:Referencing-Floats"
31481 \begin_inset Newline newline
31484 This is a cross-reference of Footnote
31485 \begin_inset space ~
31489 \begin_inset CommandInset ref
31491 reference "foot:This-is-an"
31498 \begin_layout Standard
31499 \begin_inset VSpace defskip
31502 Footnotes in title environments are usually not numbered with symbols and
31503 they cannot contain several paragraphs.
31504 See for example the footnote in the titling of this document.
31507 \begin_layout Standard
31508 \begin_inset VSpace defskip
31511 Footnotes in tables are not printed by \SpecialChar LaTeX
31512 due to technical reasons.
31513 However there exists another method to print them: Instead of the footnote
31520 is inserted as \SpecialChar TeX
31522 The text of the footnote is entered as an argument of the \SpecialChar TeX
31531 \begin_inset Newline newline
31534 This was done for the following table with the command
31537 \begin_layout Standard
31544 Printed table footnote.
31549 \begin_layout Standard
31550 \begin_inset Tabular
31551 <lyxtabular version="3" rows="2" columns="1">
31552 <features tabularvalignment="middle">
31553 <column alignment="center" valignment="top">
31555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31558 \begin_layout Plain Layout
31559 This an example text.
31563 \begin_layout Plain Layout
31564 This footnote will not be printed!
31576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31579 \begin_layout Plain Layout
31580 This an example text.
31584 \begin_layout Plain Layout
31607 \begin_layout Plain Layout
31616 Printed table footnote.
31620 \begin_layout Plain Layout
31630 \begin_layout Standard
31631 Footnotes in multi-page tables are described in section
31632 \begin_inset space ~
31636 \begin_inset CommandInset ref
31638 reference "subsec:Footnotes-in-Multi-page"
31645 \begin_layout Standard
31646 Footnotes in minipage boxes are printed, but inside the box and with a different
31647 numbering because a minipage box is like a page inside a page.
31648 (For more about minipages, see section
31649 \begin_inset space ~
31653 \begin_inset CommandInset ref
31655 reference "sec:Minipages"
31659 .) To get a footnote in the minipage that is output at the bottom of the
31660 page like normal footnotes, also use the method of
31675 \begin_layout Standard
31676 \begin_inset Box Frameless
31686 height_special "totalheight"
31691 backgroundcolor "none"
31694 \begin_layout Plain Layout
31695 This an example text in a minipage.
31699 \begin_layout Plain Layout
31700 Footnote in the minipage.
31708 \begin_layout Plain Layout
31709 This an example text in a minipage.
31713 \begin_layout Plain Layout
31730 \begin_layout Standard
31734 \begin_layout Plain Layout
31743 Footnote outside the minipage.
31747 \begin_layout Plain Layout
31757 \begin_layout Standard
31758 \begin_inset VSpace defskip
31764 \begin_layout Standard
31765 To refer to the same footnote several times without printing the footnote
31766 text every time, use the command
31770 footnotemark[number]
31772 in \SpecialChar TeX
31774 \begin_inset Newline newline
31777 As you do not know the number of the repeating footnote while you are writing
31778 the text, you have to store its number.
31779 For the following footnote mark example, these commands were inserted in
31781 code after Footnote
31782 \begin_inset space ~
31786 \begin_inset CommandInset ref
31788 reference "foot:This-is-an"
31792 to store the footnote number:
31795 \begin_layout Standard
31800 newcounter{MyRepeatFoot}
31801 \begin_inset Newline newline
31806 setcounter{MyRepeatFoot}{
31811 \begin_layout Standard
31812 The footnote mark was then created with this command:
31815 \begin_layout Standard
31825 \begin_layout Standard
31826 Here is a repeated footnote:
31834 \begin_layout Plain Layout
31848 \begin_layout Standard
31849 If you want to repeat the previous footnote, you can omit the storage of
31850 the footnote number and just use this command instead:
31853 \begin_layout Standard
31863 \begin_layout Standard
31864 Here is another repeated footnote:
31872 \begin_layout Plain Layout
31886 \begin_layout Subsection
31888 \begin_inset CommandInset label
31890 name "subsec:Footnote-Numbering"
31895 \begin_inset Index idx
31898 \begin_layout Plain Layout
31899 Footnotes ! Numbering
31907 \begin_layout Standard
31908 To reset the footnote number back to 1 after each section
31910 , add this command to your document preamble:
31913 \begin_layout Standard
31918 @addtoreset{footnote}{section}
31921 \begin_layout Standard
31922 \begin_inset VSpace bigskip
31925 The following preamble command changes the footnote numbering style to small
31929 \begin_layout Standard
31941 \begin_layout Standard
31945 \begin_layout Plain Layout
31958 This is a footnote with roman numbering:
31962 \begin_layout Plain Layout
31963 This is an example footnote with roman numbering.
31971 \begin_layout Standard
31972 To change the numbering style to capital roman numerals replace in the command
31987 \begin_inset Quotes eld
31991 \begin_inset Quotes erd
31994 footnotes with capital or small Latin letters use
32008 \begin_inset Quotes eld
32012 \begin_inset Quotes erd
32015 footnotes with symbols use
32024 \begin_layout Standard
32025 \begin_inset Note Greyedout
32028 \begin_layout Plain Layout
32033 You can only number 26 footnotes with Latin letters, because this numbering
32034 is limited to single letters.
32040 \begin_inset Newline newline
32044 \begin_inset Note Greyedout
32047 \begin_layout Plain Layout
32052 You can only number 9 footnotes with symbols.
32060 \begin_layout Standard
32061 To return to the default numbering style after you have changed to another
32074 in the command above.
32078 \begin_layout Plain Layout
32094 \begin_layout Standard
32095 \begin_inset VSpace bigskip
32101 \begin_layout Standard
32102 If you want to have footnotes numbered in the scheme
32103 \begin_inset Quotes eld
32107 \begin_inset Quotes erd
32110 , add the following command to your document preamble:
32113 \begin_layout Standard
32118 numberwithin{footnote}{chapter}
32121 \begin_layout Standard
32122 To be able to use the command
32131 \begin_inset space ~
32136 in the document settings the option
32139 \begin_inset space ~
32143 \begin_inset space ~
32147 \begin_inset space ~
32155 \begin_layout Standard
32159 \begin_layout Plain Layout
32163 numberwithin{footnote}{chapter}
32168 This is another example footnote:
32174 \begin_layout Plain Layout
32175 This is a footnote numbered in the scheme
32176 \begin_inset Quotes eld
32180 \begin_inset Quotes erd
32194 \begin_layout Plain Layout
32210 \begin_layout Standard
32211 \begin_inset Note Greyedout
32214 \begin_layout Plain Layout
32225 always prints out the footnote number as arabic number; previous redefinitions
32226 to get non-arabic numbers are overwritten.
32234 \begin_layout Standard
32235 So to get for example the scheme
32236 \begin_inset Quotes eld
32242 \begin_inset Quotes erd
32245 , use this command instead of
32254 \begin_layout Standard
32268 \begin_layout Subsection
32270 \begin_inset Index idx
32273 \begin_layout Plain Layout
32274 Footnotes ! Placement
32282 \begin_layout Standard
32283 If you have several footnotes in one page, they appear without vertical
32284 space between them at the bottom of the page.
32285 To make them more readable you can e.
32286 \begin_inset space \thinspace{}
32290 \begin_inset space \space{}
32294 \begin_inset space \thinspace{}
32297 mm space with the following preamble command:
32300 \begin_layout Standard
32310 \begin_inset Newline newline
32324 \begin_layout Standard
32325 \begin_inset VSpace bigskip
32328 In a two-column document the footnotes appear at the bottom of every column,
32330 \begin_inset space ~
32334 \begin_inset CommandInset ref
32336 reference "fig:Standard-footnote-placement"
32341 If the footnotes should only appear at the bottom of the right column,
32343 \begin_inset space ~
32347 \begin_inset CommandInset ref
32349 reference "fig:Footnote-placement-in"
32353 , use the \SpecialChar LaTeX
32359 \begin_inset Index idx
32362 \begin_layout Plain Layout
32364 -packages ! ftnright
32369 with this command in the document preamble:
32372 \begin_layout Standard
32377 usepackage{ftnright}
32380 \begin_layout Standard
32381 \begin_inset Float figure
32387 \begin_layout Plain Layout
32390 \begin_inset Box Boxed
32400 height_special "totalheight"
32405 backgroundcolor "none"
32408 \begin_layout Plain Layout
32409 \begin_inset Graphics
32410 filename clipart/without_fntright.pdf
32412 scaleBeforeRotation
32424 \begin_layout Plain Layout
32425 \begin_inset Caption Standard
32427 \begin_layout Plain Layout
32428 \begin_inset CommandInset label
32430 name "fig:Standard-footnote-placement"
32434 Standard footnote placement in two-column documents.
32447 \begin_layout Standard
32448 \begin_inset Float figure
32454 \begin_layout Plain Layout
32457 \begin_inset Box Boxed
32467 height_special "totalheight"
32472 backgroundcolor "none"
32475 \begin_layout Plain Layout
32476 \begin_inset Graphics
32477 filename clipart/with_fntright.pdf
32479 scaleBeforeRotation
32491 \begin_layout Plain Layout
32492 \begin_inset Caption Standard
32494 \begin_layout Plain Layout
32495 \begin_inset CommandInset label
32497 name "fig:Footnote-placement-in"
32501 Footnote placement in two-column documents when the \SpecialChar LaTeX
32519 \begin_layout Standard
32520 \begin_inset VSpace bigskip
32523 In some scientific literature it is usual to collect the footnotes and print
32524 them in a separate paragraph at the end of a section, as in Figure
32525 \begin_inset space ~
32529 \begin_inset CommandInset ref
32531 reference "fig:Endnotes"
32536 They are then called
32537 \begin_inset Quotes eld
32541 \begin_inset Quotes erd
32545 \begin_inset Index idx
32548 \begin_layout Plain Layout
32554 To use endnotes instead of footnotes in your document, load in the menu
32557 Document\SpecialChar menuseparator
32558 Settings\SpecialChar menuseparator
32564 \begin_inset space ~
32568 \begin_inset space ~
32574 To insert the collected footnotes, insert the command
32577 \begin_layout Standard
32585 \begin_layout Standard
32586 in \SpecialChar TeX
32587 Code at the end of a section or chapter.
32590 \begin_layout Standard
32591 \begin_inset Float figure
32596 \begin_layout Plain Layout
32599 \begin_inset Box Boxed
32609 height_special "totalheight"
32614 backgroundcolor "none"
32617 \begin_layout Plain Layout
32618 \begin_inset Graphics
32619 filename clipart/endnotes.pdf
32621 scaleBeforeRotation
32633 \begin_layout Plain Layout
32634 \begin_inset Caption Standard
32636 \begin_layout Plain Layout
32637 \begin_inset CommandInset label
32639 name "fig:Endnotes"
32643 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32657 \begin_layout Standard
32658 \begin_inset VSpace medskip
32661 The paragraph heading for the endnotes isn't automatically translated into
32662 the document language, this must be done manually.
32663 The following preamble command translates the default English
32664 \begin_inset Quotes eld
32668 \begin_inset Quotes erd
32672 \begin_inset Quotes eld
32676 \begin_inset Quotes erd
32682 \begin_layout Standard
32689 notesname}{Anmerkungen}
32692 \begin_layout Standard
32693 \begin_inset VSpace medskip
32696 The numbering of endnotes can be changed like the footnote numbering as
32697 described in section
32698 \begin_inset space ~
32702 \begin_inset CommandInset ref
32704 reference "subsec:Footnote-Numbering"
32708 ; just replace the command
32721 To reset the endnote number use the command
32727 as described in section
32728 \begin_inset space ~
32732 \begin_inset CommandInset ref
32734 reference "subsec:Footnote-Numbering"
32738 and replace the command parameter
32749 \begin_layout Standard
32750 For endnotes there is the command
32754 endnotemark[number]
32756 similar to the command
32762 , that is described in section
32763 \begin_inset space ~
32767 \begin_inset CommandInset ref
32769 reference "sec:Footnotes"
32776 \begin_layout Standard
32777 \begin_inset VSpace bigskip
32780 Footnotes can also be placed in the page margin and the footnote text alignment
32781 can be changed, see the \SpecialChar LaTeX
32787 \begin_inset Index idx
32790 \begin_layout Plain Layout
32792 -packages ! footmisc
32798 \begin_inset CommandInset citation
32805 for more information about this.
32808 \begin_layout Standard
32809 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32811 \begin_inset CommandInset citation
32813 key "latexcompanion,latexguide,latexbook"
32824 \begin_inset Index idx
32827 \begin_layout Plain Layout
32829 -packages ! KOMA-Script
32834 document class, you can adjust all footnote settings using class-specific
32836 \begin_inset CommandInset citation
32846 \begin_layout Section
32848 \begin_inset Index idx
32851 \begin_layout Plain Layout
32852 Notes ! Margin Notes
32860 \begin_layout Standard
32861 Margin notes look and behave in \SpecialChar LyX
32863 They are inserted via the menu
32865 Insert\SpecialChar menuseparator
32867 \begin_inset space ~
32872 or the toolbar button
32875 arg "marginalnote-insert"
32889 \begin_inset Quotes eld
32893 \begin_inset Quotes erd
32896 appears where you can enter the text of the margin note.
32899 \begin_layout Standard
32900 At the side is an example margin note.
32905 \begin_inset Marginal
32908 \begin_layout Plain Layout
32909 This is a margin note.
32917 \begin_layout Standard
32918 Margin notes appear at the right side in single-sided documents.
32919 In double-sided documents they appear in the outer margin – left on even
32920 pages, right on odd pages.
32921 The text of margin notes is aligned opposite to the outer margin – right-aligne
32922 d when the note appears in the left margin.
32923 The first line of the margin note is placed at the position of the text
32924 line where it is inserted in the document.
32927 \begin_layout Standard
32928 \begin_inset VSpace bigskip
32931 To place the margin note in the inner margin, add the command
32934 \begin_layout Standard
32942 \begin_layout Standard
32943 in \SpecialChar TeX
32944 Code before a margin note.
32945 The new placement is valid for all subsequent margin notes.
32950 \begin_layout Plain Layout
32960 \begin_inset Marginal
32963 \begin_layout Plain Layout
32964 This is a margin note in the inner margin.
32972 \begin_inset Newline newline
32978 \begin_inset Note Greyedout
32981 \begin_layout Plain Layout
32986 There is often not enough space in the inner margin so that the notes are
32987 not correctly displayed in the output.
32995 \begin_layout Standard
32996 To return to the default placement insert the command
32999 \begin_layout Standard
33007 \begin_layout Standard
33008 in \SpecialChar TeX
33013 \begin_layout Plain Layout
33023 \begin_inset Note Greyedout
33026 \begin_layout Plain Layout
33031 The command is ignored when it is within a paragraph where also the command
33046 \begin_layout Standard
33047 \begin_inset VSpace bigskip
33054 \begin_inset Marginal
33057 \begin_layout Plain Layout
33058 AVeryLongMarginParWord that isn't hyphenated.
33066 Similar to the case described in section
33067 \begin_inset space ~
33071 \begin_inset CommandInset ref
33073 reference "subsec:Multiple-Lines-in"
33077 , long words cannot be hyphenated when they are the first word in a margin
33079 To avoid this, insert 0
33080 \begin_inset space \thinspace{}
33083 pt horizontal space before the word
33088 \begin_inset Marginal
33091 \begin_layout Plain Layout
33092 \begin_inset space \hspace*{}
33096 AVeryLongMarginParWord that is hyphenated.
33104 \begin_layout Standard
33105 \begin_inset VSpace bigskip
33111 \begin_layout Standard
33112 \begin_inset Note Greyedout
33115 \begin_layout Plain Layout
33120 Margin notes can normally not be used inside tables, floats, and footnotes.
33128 \begin_layout Standard
33129 \begin_inset VSpace bigskip
33135 \begin_layout Standard
33139 \begin_layout Plain Layout
33149 \begin_inset Note Note
33152 \begin_layout Plain Layout
33153 The following section will only be displayed when the \SpecialChar LaTeX
33166 \begin_layout Standard
33167 This restriction can be evaded by using the \SpecialChar LaTeX
33173 \begin_inset Index idx
33176 \begin_layout Plain Layout
33178 -packages ! marginnote
33184 By adding these two lines to your document preamble, the command used by
33186 for margin notes is redefined to use the command provided by the
33193 \begin_layout Standard
33198 usepackage{marginnote}
33199 \begin_inset Newline newline
33211 \begin_layout Standard
33212 This is also used in this document because
33216 has another useful feature: You can set a vertical offset for the note.
33217 This is often needed when too many margin notes are too close together
33218 or for a better page layout.
33219 The offset is set in \SpecialChar LyX
33220 as \SpecialChar TeX
33221 Code directly after the margin note in the scheme
33224 \begin_layout Standard
33230 \begin_layout Standard
33231 where the offset is a length with one of the units listed in Table
33232 \begin_inset space ~
33236 \begin_inset CommandInset ref
33238 reference "tab:Units"
33243 A negative value shifts the note up, a positive value shifts it down.
33247 For example the margin note beside this text line is shifted up 1.5
33248 \begin_inset space \thinspace{}
33251 cm with the \SpecialChar TeX
33253 \begin_inset Quotes eld
33263 \begin_inset Quotes erd
33267 \begin_inset Marginal
33270 \begin_layout Plain Layout
33271 This margin note is shifted up 1.5
33272 \begin_inset space \thinspace{}
33275 cm from its original position.
33287 \begin_layout Plain Layout
33297 \begin_layout Standard
33298 \begin_inset VSpace medskip
33305 you can also change the alignment of the text in the margin note.
33306 For example the commands
33309 \begin_layout Standard
33316 raggedleftmarginnote}{
33319 \begin_inset Newline newline
33326 raggedrightmarginnote}{
33331 \begin_layout Standard
33332 set the alignment to centered.
33337 raggedleftmarginnote
33339 denotes margin notes that appear at the left side.
33346 \begin_layout Plain Layout
33352 raggedleftmarginnote}{
33357 \begin_layout Plain Layout
33363 raggedrightmarginnote}{
33371 \begin_inset Marginal
33374 \begin_layout Plain Layout
33375 The text of this margin note is centered.
33386 \begin_layout Standard
33393 raggedleftmarginnote}{
33396 \begin_inset Newline newline
33403 raggedrightmarginnote}{
33412 \begin_layout Plain Layout
33418 raggedleftmarginnote}{
33423 \begin_layout Plain Layout
33429 raggedrightmarginnote}{
33439 \begin_layout Standard
33440 \begin_inset VSpace medskip
33443 For the other features of
33447 refer to its documentation
33448 \begin_inset CommandInset citation
33458 \begin_layout Standard
33459 \begin_inset VSpace bigskip
33462 You can adjust the layout of margin notes by changing its definition.
33463 To create for example a header for all margin notes with the underlined,
33464 sans-serif, and bold header text
33465 \begin_inset Quotes eld
33477 \begin_inset Quotes erd
33480 , add this to your document preamble:
33483 \begin_layout Standard
33493 \begin_inset Newline newline
33503 \begin_inset Newline newline
33507 \begin_inset Phantom HPhantom
33510 \begin_layout Plain Layout
33513 \begin_inset space ~
33529 underbar{Attention!}}}%
33530 \begin_inset Newline newline
33534 \begin_inset Phantom HPhantom
33537 \begin_layout Plain Layout
33540 \begin_inset space ~
33557 \begin_layout Standard
33564 \begin_layout Plain Layout
33575 \begin_layout Plain Layout
33586 \begin_layout Plain Layout
33594 underbar{Attention!}}}%
33597 \begin_layout Plain Layout
33611 \begin_inset Marginal
33614 \begin_layout Plain Layout
33615 This is a margin note with a defined heading.
33627 \begin_layout Plain Layout
33641 \begin_layout Plain Layout
33658 \begin_inset Note Note
33661 \begin_layout Plain Layout
33662 The margin note format is changed only for this example.
33670 \begin_layout Standard
33674 \begin_layout Plain Layout
33684 \begin_inset Note Note
33687 \begin_layout Plain Layout
33688 The following will be displayed when the \SpecialChar LaTeX
33701 \begin_layout Standard
33702 You need to install the \SpecialChar LaTeX
33707 to see the following part of this section in the output.
33710 \begin_layout Standard
33714 \begin_layout Plain Layout
33726 \begin_layout Chapter
33730 \begin_layout Section
33732 \begin_inset Index idx
33735 \begin_layout Plain Layout
33736 Boxes ! Introduction
33744 \begin_layout Standard
33745 Boxes are used to format a block of text.
33746 Boxes can be used to write documents with multiple languages, see section
33747 \begin_inset space ~
33751 \begin_inset CommandInset ref
33753 reference "sec:Minipages"
33757 , to frame texts, see section
33758 \begin_inset space ~
33762 \begin_inset CommandInset ref
33764 reference "sec:Decoration"
33768 , to prevent words from being hyphenated, see section
33769 \begin_inset space ~
33773 \begin_inset CommandInset ref
33775 reference "sec:Prevent-Hyphenation"
33779 , to align text, see section
33780 \begin_inset space ~
33784 \begin_inset CommandInset ref
33786 reference "subsec:Vertical-Alignment"
33790 , or to set the background color of texts, see section
33791 \begin_inset space ~
33795 \begin_inset CommandInset ref
33797 reference "sec:Colored-Boxes"
33804 \begin_layout Standard
33805 Boxes can be inserted with the menu
33807 Insert\SpecialChar menuseparator
33810 or the toolbar button
33813 arg "box-insert Frameless"
33817 A grey box with the label
33822 \begin_inset Graphics
33823 filename clipart/BoxInsetDefault.png
33825 scaleBeforeRotation
33830 The box type can be specified by right-clicking on the box and selecting
33836 The box dialog offers the
33839 \begin_inset space ~
33861 is the default for new boxes and is explained in section
33862 \begin_inset space ~
33866 \begin_inset CommandInset ref
33868 reference "sec:Minipages"
33876 is described in section
33877 \begin_inset space ~
33881 \begin_inset CommandInset ref
33883 reference "sec:Parboxes"
33892 \begin_inset CommandInset ref
33894 reference "sec:Prevent-Hyphenation"
33901 \begin_layout Standard
33902 Boxes are not numbered and can therefore not be referenced like floats or
33906 \begin_layout Standard
33907 \begin_inset Note Greyedout
33910 \begin_layout Plain Layout
33915 Boxes must not be the item in an
33931 \begin_layout Standard
33932 \begin_inset Note Greyedout
33935 \begin_layout Plain Layout
33940 For an unknown reason you can only set the
33943 \begin_inset space ~
33952 when you use a framed box.
33956 \begin_inset space ~
33961 type and without frames are explained in section
33962 \begin_inset space ~
33966 \begin_inset CommandInset ref
33968 reference "sec:Prevent-Hyphenation"
33980 \begin_layout Section
33982 \begin_inset CommandInset label
33984 name "sec:Box-Dialog"
33989 \begin_inset Index idx
33992 \begin_layout Plain Layout
34001 \begin_layout Subsection
34003 \begin_inset Index idx
34006 \begin_layout Plain Layout
34015 \begin_layout Standard
34016 In the box dialog you can adjust the box geometry in the fields
34025 The available units for the geometry are explained in Table
34026 \begin_inset space ~
34030 \begin_inset CommandInset ref
34032 reference "tab:Units"
34041 offers the following additional sizes:
34044 \begin_layout Description
34045 Depth This is the plain text
34046 \begin_inset Quotes eld
34050 \begin_inset Quotes erd
34054 It ignores the total depth when there are multiple text lines in the box:
34055 \begin_inset Newline newline
34059 \begin_inset Newline newline
34063 \begin_inset Newline newline
34067 \begin_inset Box Boxed
34077 height_special "depth"
34082 backgroundcolor "none"
34085 \begin_layout Plain Layout
34087 Box height set to 1
34088 \begin_inset space \thinspace{}
34097 \begin_inset Newline newline
34101 \begin_inset Newline newline
34107 \begin_layout Description
34108 Height This is the height of the text that is inside the box.
34110 \begin_inset space \thinspace{}
34114 \begin_inset space \space{}
34117 2 for this size will set the box height to 2
34118 \begin_inset space ~
34121 times the text height:
34122 \begin_inset Box Boxed
34132 height_special "height"
34137 backgroundcolor "none"
34140 \begin_layout Plain Layout
34142 Box height set to 2
34143 \begin_inset space \thinspace{}
34154 \begin_layout Description
34156 \begin_inset space ~
34159 Height This is the Height
34160 \begin_inset space \thinspace{}
34164 \begin_inset space \thinspace{}
34168 \begin_inset Box Boxed
34178 height_special "totalheight"
34183 backgroundcolor "none"
34186 \begin_layout Plain Layout
34188 Box height set to 1
34189 \begin_inset space \thinspace{}
34193 \begin_inset space ~
34204 \begin_layout Description
34205 Width This sets the width of the box as height:
34206 \begin_inset Box Boxed
34216 height_special "width"
34221 backgroundcolor "none"
34224 \begin_layout Plain Layout
34226 Box height set to 1
34227 \begin_inset space \thinspace{}
34238 \begin_layout Subsection
34240 \begin_inset Index idx
34243 \begin_layout Plain Layout
34252 \begin_layout Standard
34253 When you have chosen an
34256 \begin_inset space ~
34261 , the vertical box alignment can be:
34264 \begin_layout Description
34265 Top This is an example text line.
34267 \begin_inset Box Boxed
34277 height_special "totalheight"
34282 backgroundcolor "none"
34285 \begin_layout Plain Layout
34287 This box is top-aligned.
34292 This is an example text line.
34295 \begin_layout Description
34296 Middle This is an example text line.
34298 \begin_inset Box Boxed
34308 height_special "totalheight"
34313 backgroundcolor "none"
34316 \begin_layout Plain Layout
34318 This box is middle-aligned.
34323 This is an example text line.
34326 \begin_layout Description
34327 Bottom This is an example text line.
34329 \begin_inset Box Boxed
34339 height_special "totalheight"
34344 backgroundcolor "none"
34347 \begin_layout Plain Layout
34349 This box is bottom-aligned.
34354 This is an example text line.
34357 \begin_layout Standard
34358 \begin_inset Note Greyedout
34361 \begin_layout Plain Layout
34366 The vertical box alignment can be lost in the output when you have two
34367 boxes in a line and one has e.
34368 \begin_inset space \thinspace{}
34372 \begin_inset space \space{}
34375 a shadow and the other one not.
34383 \begin_layout Standard
34384 The horizontal box alignment can be set via \SpecialChar LyX
34385 's paragraph dialog when you
34386 set the box into its own paragraph.
34389 \begin_layout Standard
34390 \begin_inset VSpace bigskip
34393 When you have chosen an
34396 \begin_inset space ~
34401 , the box content can be aligned vertically to:
34404 \begin_layout Description
34405 top This is an example text line.
34407 \begin_inset Box Boxed
34417 height_special "totalheight"
34422 backgroundcolor "none"
34425 \begin_layout Plain Layout
34427 This box text is top-aligned.
34432 This is an example text line.
34435 \begin_layout Description
34436 middle This is an example text line.
34438 \begin_inset Box Boxed
34448 height_special "totalheight"
34453 backgroundcolor "none"
34456 \begin_layout Plain Layout
34458 This box text is middle-aligned.
34463 This is an example text line.
34466 \begin_layout Description
34467 bottom This is an example text line.
34469 \begin_inset Box Boxed
34479 height_special "totalheight"
34484 backgroundcolor "none"
34487 \begin_layout Plain Layout
34489 This box text is bottom-aligned.
34494 This is an example text line.
34497 \begin_layout Description
34498 stretch This is an example text line.
34500 \begin_inset Box Boxed
34510 height_special "totalheight"
34515 backgroundcolor "none"
34518 \begin_layout Plain Layout
34523 \begin_layout Plain Layout
34528 \begin_layout Plain Layout
34535 This is an example text line.
34538 \begin_layout Standard
34539 To stretch the box content, it must consist of more than one paragraph.
34540 In the example above every text line is in an own paragraph.
34543 \begin_layout Standard
34544 \begin_inset VSpace bigskip
34547 To align the box content horizontally you can use \SpecialChar LyX
34548 's paragraph dialog when
34552 \begin_inset space ~
34560 \begin_layout Standard
34562 \begin_inset Box Boxed
34572 height_special "totalheight"
34577 backgroundcolor "none"
34580 \begin_layout Plain Layout
34585 \begin_layout Plain Layout
34590 \begin_layout Plain Layout
34600 \begin_layout Standard
34601 If you have not set an
34604 \begin_inset space ~
34609 , you can align the box content horizontally in the box dialog.
34612 \begin_layout Standard
34614 \begin_inset Box Boxed
34624 height_special "totalheight"
34629 backgroundcolor "none"
34632 \begin_layout Plain Layout
34633 This box text is horizontally stretched.
34641 \begin_layout Subsection
34643 \begin_inset CommandInset label
34645 name "sec:Decoration"
34650 \begin_inset Index idx
34653 \begin_layout Plain Layout
34662 \begin_layout Standard
34663 The type of the box can be specified in the box dialog in the drop-down
34669 The following types are possible:
34672 \begin_layout Description
34674 \begin_inset space ~
34677 frame Nothing is drawn.
34680 \begin_layout Description
34682 \begin_inset space ~
34686 \begin_inset space ~
34689 frame This draws a rectangular frame around the box.
34690 The frame line thickness can be specified.
34692 \begin_inset Box Boxed
34702 height_special "totalheight"
34707 backgroundcolor "none"
34710 \begin_layout Plain Layout
34720 \begin_layout Description
34722 \begin_inset space ~
34726 \begin_inset space ~
34729 thin This draws an oval frame around the box.
34730 The frame line thickness has the size 0.4
34731 \begin_inset space \thinspace{}
34736 \begin_inset Box ovalbox
34746 height_special "totalheight"
34751 backgroundcolor "none"
34754 \begin_layout Plain Layout
34764 \begin_layout Description
34766 \begin_inset space ~
34770 \begin_inset space ~
34773 thick This draws an oval frame around the box.
34774 The frame line thickness has the size 0.8
34775 \begin_inset space \thinspace{}
34780 \begin_inset Box Ovalbox
34790 height_special "totalheight"
34795 backgroundcolor "none"
34798 \begin_layout Plain Layout
34808 \begin_layout Description
34810 \begin_inset space ~
34813 shadow This draws a rectangular frame with a shadow around the box.
34814 The frame line thickness and the shadow can be specified.
34816 \begin_inset Box Shadowbox
34826 height_special "totalheight"
34831 backgroundcolor "none"
34834 \begin_layout Plain Layout
34844 \begin_layout Description
34846 \begin_inset space ~
34849 background This draws a box with a red background.
34850 Unlike colored boxes
34854 \begin_layout Plain Layout
34856 \begin_inset space \thinspace{}
34860 \begin_inset CommandInset ref
34862 reference "sec:Colored-Boxes"
34871 , it always uses the whole column width and the box is set as its own paragraph.
34873 \begin_inset Box Shaded
34883 height_special "totalheight"
34888 backgroundcolor "none"
34891 \begin_layout Plain Layout
34892 Shaded background box
34900 \begin_layout Description
34902 \begin_inset space ~
34906 \begin_inset space ~
34909 frame This draws a double-line rectangular frame around the box.
34910 The line thickness of the inner frame is 0.75
34911 \begin_inset space \thinspace{}
34915 \begin_inset space ~
34918 thickness, the thickness of the outer frame is 1.5
34919 \begin_inset space \thinspace{}
34923 \begin_inset space ~
34927 The distance between the lines is 1.5
34928 \begin_inset space \thinspace{}
34932 \begin_inset space ~
34936 \begin_inset space \thinspace{}
34940 \begin_inset space \thinspace{}
34944 \begin_inset space \thinspace{}
34949 \begin_inset Box Doublebox
34959 height_special "totalheight"
34964 backgroundcolor "none"
34967 \begin_layout Plain Layout
34969 Double rectangular box
34977 \begin_layout Standard
34978 \begin_inset VSpace bigskip
34982 's box label will reflect the different frame types.
34983 To be able to use all types, the \SpecialChar LaTeX
34989 \begin_inset Index idx
34992 \begin_layout Plain Layout
34994 -packages ! fancybox
35002 \begin_layout Standard
35003 \begin_inset VSpace bigskip
35006 When you use the decoration
35008 simple rectangular frame
35010 and no inner box, you can allow page breaks within a box.
35011 Note that then, unlike other framed boxes, the frame always uses the whole
35012 column width and the box is set as its own paragraph:
35013 \begin_inset Box Framed
35023 height_special "totalheight"
35028 backgroundcolor "none"
35031 \begin_layout Plain Layout
35032 Allow page break box
35040 \begin_layout Section
35042 \begin_inset Index idx
35045 \begin_layout Plain Layout
35046 Boxes ! Customization
35054 \begin_layout Standard
35055 The diameter of the round corners of the oval boxes can be set with the
35066 \begin_layout Standard
35074 \begin_layout Standard
35075 sets the diameter to 1
35076 \begin_inset space \thinspace{}
35083 \begin_layout Standard
35091 \begin_layout Standard
35092 sets the diameter to
35095 \begin_inset space \thinspace{}
35099 \begin_inset space \thinspace{}
35102 minimum(width and height of box)
35114 \begin_layout Standard
35118 \begin_layout Plain Layout
35128 \begin_inset Box Ovalbox
35138 height_special "totalheight"
35143 backgroundcolor "none"
35146 \begin_layout Plain Layout
35155 \begin_inset space \thinspace{}
35159 \begin_inset space \thinspace{}
35163 \begin_inset space \thinspace{}
35175 \begin_layout Plain Layout
35187 \begin_layout Standard
35188 \begin_inset VSpace bigskip
35194 \begin_layout Standard
35195 The default background color red of
35199 boxes can either be changed locally with the command
35203 definecolor{shadecolor}
35205 or globally with the menu
35207 Tools\SpecialChar menuseparator
35208 Preferences\SpecialChar menuseparator
35209 Colors\SpecialChar menuseparator
35211 \begin_inset space ~
35223 command is explained in section
35224 \begin_inset space ~
35228 \begin_inset CommandInset ref
35230 reference "sec:Colored-Tables"
35238 \begin_layout Plain Layout
35245 requires the \SpecialChar LaTeX
35250 in the preamble, see section
35251 \begin_inset space ~
35255 \begin_inset CommandInset ref
35257 reference "sec:Colored-Boxes"
35266 For example the appearance of the following shaded background box is set
35267 with the \SpecialChar TeX
35271 \begin_layout Standard
35276 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35279 \begin_layout Standard
35283 \begin_layout Plain Layout
35287 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35293 \begin_inset Box Shaded
35303 height_special "totalheight"
35308 backgroundcolor "none"
35311 \begin_layout Plain Layout
35314 This is yellow text in a
35324 box with dark green background.
35333 \begin_layout Plain Layout
35337 definecolor{shadecolor}{rgb}{1,0,0}
35345 \begin_layout Standard
35346 \begin_inset VSpace bigskip
35349 Manually changed sizes and colors are valid for all boxes following the
35350 commands that change them.
35353 \begin_layout Section
35355 \begin_inset CommandInset label
35357 name "sec:Minipages"
35362 \begin_inset Index idx
35365 \begin_layout Plain Layout
35374 \begin_layout Standard
35375 Minipages are treated by \SpecialChar LaTeX
35376 as pages within pages and can therefore for example
35377 have their own footnotes.
35380 \begin_layout Standard
35381 Minipages are useful when you write documents with different languages.
35384 \begin_layout Standard
35385 Below are two example minipages side by side.
35386 Their width is set to 45
35387 \begin_inset space \thinspace{}
35390 col% and they are separated by a horizontal fill, that was inserted via
35393 Insert\SpecialChar menuseparator
35395 \begin_inset space ~
35398 Formatting\SpecialChar menuseparator
35400 \begin_inset space ~
35406 \begin_inset Newpage newpage
35412 \begin_layout Standard
35413 \begin_inset Box Frameless
35423 height_special "totalheight"
35428 backgroundcolor "none"
35431 \begin_layout Plain Layout
35434 Dies ist ein deutscher Text.
35435 Dies ist ein deutscher Text.
35436 Dies ist ein deutscher Text.
35437 Dies ist ein deutscher Text.
35438 Dies ist ein deutscher Text.
35439 Dies ist ein deutscher Text.
35440 Dies ist ein deutscher Text.
35441 Dies ist ein deutscher Text.
35442 Dies ist ein deutscher Text.
35443 Dies ist ein deutscher Text.
35444 Dies ist ein deutscher Text.
35445 Dies ist ein deutscher Text.
35446 Dies ist ein deutscher Text
35450 \begin_layout Plain Layout
35453 Dies ist eine deutsche Fußnote.
35459 Dies ist ein deutscher Text.
35460 Dies ist ein deutscher Text.
35466 \begin_inset space \hfill{}
35470 \begin_inset Box Frameless
35480 height_special "totalheight"
35485 backgroundcolor "none"
35488 \begin_layout Plain Layout
35489 This is an English Text.
35490 This is an English Text.
35491 This is an English Text.
35492 This is an English Text.
35493 This is an English Text.
35494 This is an English Text.
35495 This is an English Text.
35496 This is an English Text.
35497 This is an English Text.
35498 This is an English Text.
35499 This is an English Text.
35500 This is an English Text.
35501 This is an English Text.
35502 This is an English Text.
35503 This is an English Text.
35504 This is an English Text.
35508 \begin_layout Plain Layout
35509 This is an English footnote.
35514 This is an English Text.
35522 \begin_layout Standard
35523 \begin_inset VSpace bigskip
35526 The document-wide paragraph settings are ignored within minipages.
35527 That means that there will be no space between paragraphs in minipages
35528 although you set it to e.
35529 \begin_inset space \thinspace{}
35533 \begin_inset space \space{}
35540 in the document settings.
35543 \begin_layout Standard
35544 Minipages can also be used to set a background color for text parts, see
35546 \begin_inset space ~
35550 \begin_inset CommandInset ref
35552 reference "sec:Colored-Boxes"
35559 \begin_layout Standard
35560 \begin_inset Note Greyedout
35563 \begin_layout Plain Layout
35568 You cannot have floats or margin notes inside minipages but minipages can
35569 be used inside tables, floats, and other boxes.
35577 \begin_layout Standard
35578 \begin_inset VSpace bigskip
35584 \begin_layout Standard
35586 has also basic support for minipages whose size is automatically determined
35587 by the width of their contents, via the module
35589 Variable-width Minipages
35592 The \SpecialChar LyX
35595 varwidth-floats-side-by-side
35597 gives examples of variable-width minipages used for placing two floats
35601 \begin_layout Section
35603 \begin_inset CommandInset label
35605 name "sec:Parboxes"
35610 \begin_inset Index idx
35613 \begin_layout Plain Layout
35622 \begin_layout Standard
35623 Parboxes are very similar to minipages with the difference that they cannot
35627 \begin_layout Standard
35629 \begin_inset Box Frameless
35639 height_special "totalheight"
35644 backgroundcolor "none"
35647 \begin_layout Plain Layout
35648 This a text within a parbox.
35649 This a text within a parbox.
35652 \begin_layout Plain Layout
35653 This footnote won't appear:
35657 \begin_layout Plain Layout
35658 This footnote is inside a parbox and will therefore not appear.
35671 \begin_layout Section
35672 Boxes for Words and Characters
35673 \begin_inset Index idx
35676 \begin_layout Plain Layout
35677 Boxes ! for Characters
35685 \begin_layout Subsection
35686 Prevent Hyphenation
35687 \begin_inset CommandInset label
35689 name "sec:Prevent-Hyphenation"
35694 \begin_inset Index idx
35697 \begin_layout Plain Layout
35698 Boxes ! to Prevent Hyphenation
35706 \begin_layout Standard
35707 You can use the box type
35711 to prevent words or text from being hyphenated.
35712 \begin_inset Newline newline
35715 Here is an example text:
35718 \begin_layout Standard
35719 This line is an example to show how you can prevent the hyphenation of
35720 \begin_inset Quotes eld
35724 \begin_inset Quotes erd
35730 \begin_layout Standard
35731 To prevent the hyphenation of the word
35732 \begin_inset Quotes eld
35736 \begin_inset Quotes erd
35739 , put the word into a box, set the
35742 \begin_inset space ~
35751 and use no explicit width.
35754 \begin_layout Standard
35755 This is the result:
35758 \begin_layout Standard
35759 This line is an example to show how you can prevent the hyphenation of
35760 \begin_inset Box Frameless
35770 height_special "totalheight"
35775 backgroundcolor "none"
35778 \begin_layout Plain Layout
35779 \begin_inset Quotes eld
35783 \begin_inset Quotes erd
35794 \begin_layout Standard
35795 You can alternatively set the command
35796 \begin_inset Quotes eld
35806 \begin_inset Quotes grd
35809 as \SpecialChar TeX
35810 Code directly before the word:
35813 \begin_layout Standard
35814 This line is an example to show how you can prevent the hyphenation of
35815 \begin_inset Quotes eld
35822 \begin_layout Plain Layout
35832 \begin_inset Quotes erd
35838 \begin_layout Standard
35839 Of course the word now protrudes over the side margin.
35840 To avoid this, add via the menu
35842 Insert\SpecialChar menuseparator
35843 Formatting\SpecialChar menuseparator
35845 \begin_inset space ~
35849 \begin_inset space ~
35857 arg "newline-insert newline"
35860 ) a line break before the word:
35863 \begin_layout Standard
35864 This line is an example to show how you can prevent the hyphenation of
35865 \begin_inset Newline newline
35869 \begin_inset Box Frameless
35879 height_special "totalheight"
35884 backgroundcolor "none"
35887 \begin_layout Plain Layout
35888 \begin_inset Quotes eld
35892 \begin_inset Quotes erd
35903 \begin_layout Subsection
35905 \begin_inset CommandInset label
35907 name "subsec:Vertical-Alignment"
35912 \begin_inset Index idx
35915 \begin_layout Plain Layout
35916 Boxes ! for Vertical Alignment
35922 \begin_inset Index idx
35925 \begin_layout Plain Layout
35934 \begin_layout Standard
35935 With the help of the command
35941 you can align words, characters or other boxes vertically relative to the
35949 is used with the following scheme:
35952 \begin_layout Standard
35957 raisebox{lift}[height][depth]{box content}
35960 \begin_layout Standard
35961 The lift can be a positive value to raise the box or a negative value to
35965 \begin_layout Standard
35966 To align for example the word
35967 \begin_inset Quotes eld
35971 \begin_inset Quotes erd
35974 so that the bottom of the
35975 \begin_inset Quotes eld
35979 \begin_inset Quotes erd
35983 \begin_inset Quotes eld
35987 \begin_inset Quotes erd
35990 is at the baseline, insert the command
35993 \begin_layout Standard
36003 \begin_layout Standard
36004 in \SpecialChar TeX
36005 Code before the word.
36006 After the word insert a closing brace
36007 \begin_inset Quotes eld
36015 \begin_inset Quotes erd
36018 in \SpecialChar TeX
36020 \begin_inset Newline newline
36023 This is the result:
36026 \begin_layout Standard
36027 This is a text line with the word
36031 \begin_layout Plain Layout
36043 \begin_inset Quotes eld
36047 \begin_inset Quotes erd
36054 \begin_layout Plain Layout
36064 \begin_layout Standard
36065 \begin_inset VSpace bigskip
36068 When you raise or lower characters in a line, the line distance will be
36072 \begin_layout Standard
36073 This is a text line with the word
36077 \begin_layout Plain Layout
36089 \begin_inset Quotes eld
36093 \begin_inset Quotes erd
36100 \begin_layout Plain Layout
36108 \begin_inset Newline newline
36111 This is a text line with the word
36115 \begin_layout Plain Layout
36125 \begin_inset Quotes eld
36129 \begin_inset Quotes erd
36136 \begin_layout Plain Layout
36146 \begin_layout Standard
36147 If you want to prevent this for a certain reason, set the box height to
36152 \begin_layout Standard
36162 \begin_layout Standard
36163 This is a text line with the word
36167 \begin_layout Plain Layout
36179 \begin_inset Quotes eld
36183 \begin_inset Quotes erd
36190 \begin_layout Plain Layout
36198 \begin_inset Newline newline
36202 \begin_inset Newline newline
36205 This is a text line with the word
36209 \begin_layout Plain Layout
36213 raisebox{0.5cm}[0pt]{
36219 \begin_inset Quotes eld
36223 \begin_inset Quotes erd
36230 \begin_layout Plain Layout
36240 \begin_layout Section
36242 \begin_inset CommandInset label
36244 name "sec:Colored-Boxes"
36249 \begin_inset Index idx
36252 \begin_layout Plain Layout
36261 \begin_layout Standard
36262 To color the background of a box just select the color you like in the box
36264 This is for example a box with orange background:
36265 \begin_inset Box Frameless
36275 height_special "totalheight"
36280 backgroundcolor "orange"
36283 \begin_layout Plain Layout
36284 Box with orange background
36292 \begin_layout Standard
36293 If you use the decoration
36296 \begin_inset space ~
36300 \begin_inset space ~
36305 you can set a frame color.
36306 In this case you must also specify a background color (LyX sets white as
36308 Here is an example:
36309 \begin_inset Box Boxed
36319 height_special "totalheight"
36324 backgroundcolor "yellow"
36327 \begin_layout Plain Layout
36328 Box with teal frame color and yellow background color
36336 \begin_layout Standard
36337 \begin_inset VSpace bigskip
36340 Of course you can also have colored text inside a colored box:
36341 \begin_inset Newline newline
36345 \begin_inset Box Boxed
36355 height_special "totalheight"
36360 backgroundcolor "magenta"
36363 \begin_layout Plain Layout
36366 This is colored text within a colored, framed box
36374 \begin_layout Standard
36375 \begin_inset VSpace bigskip
36381 \begin_layout Standard
36382 If you need another color than the predefined ones, you can define your
36383 own color as described in section
36384 \begin_inset space ~
36388 \begin_inset CommandInset ref
36390 reference "sec:Colored-Tables"
36395 To use your own color you must typeset the box by using TeX code:
36398 \begin_layout Standard
36399 Colored boxes without frame are created with the command
36406 It has the following scheme:
36409 \begin_layout Standard
36414 colorbox{color}{box content}
36417 \begin_layout Standard
36418 The box content can also be a box and colored boxes can also be within other
36421 \begin_inset space \thinspace{}
36425 \begin_inset space \space{}
36428 a darkgreen background for a word, insert the command
36431 \begin_layout Standard
36436 colorbox{darkgreen}{
36439 \begin_layout Standard
36440 before the word in \SpecialChar TeX
36442 After the word insert a closing brace
36443 \begin_inset Quotes eld
36451 \begin_inset Quotes erd
36454 in \SpecialChar TeX
36456 \begin_inset Newline newline
36459 This is the result:
36462 \begin_layout Standard
36463 This is a line where the word
36467 \begin_layout Plain Layout
36471 colorbox{darkgreen}{
36477 \begin_inset Quotes eld
36481 \begin_inset Quotes erd
36488 \begin_layout Plain Layout
36495 has a darkgreen background.
36498 \begin_layout Standard
36499 Framed, colored boxes are created with the command
36506 It has the following scheme:
36509 \begin_layout Standard
36514 fcolorbox{frame color}{box color}{box content}
36517 \begin_layout Section
36518 Rotated and Scaled Boxes
36521 \begin_layout Standard
36522 To use the boxes described in this section, the module
36526 must be loaded in the document settings.
36529 \begin_layout Standard
36530 \begin_inset Note Greyedout
36533 \begin_layout Plain Layout
36538 Not all DVI viewers are able to display rotated or scaled material.
36546 \begin_layout Standard
36547 \begin_inset Note Greyedout
36550 \begin_layout Plain Layout
36555 Floats are not allowed inside a rotated or scaled box.
36563 \begin_layout Subsection
36565 \begin_inset Index idx
36568 \begin_layout Plain Layout
36575 \begin_inset Index idx
36578 \begin_layout Plain Layout
36587 \begin_layout Standard
36588 To rotate material, you can put it into a
36593 Such a box is inserted via the menu
36595 Insert\SpecialChar menuseparator
36596 Custom Insets\SpecialChar menuseparator
36602 \begin_layout Standard
36603 The rotation origin can be specified via the inset
36609 Insert\SpecialChar menuseparator
36617 The following positions are possible:
36637 (top), along with meaningful combinations of the four base positions.
36642 means that the rotation origin is at the top left corner of the box.
36643 When no rotation origin is specified, the position
36648 The rotation angle is a number that can be negative that specifies the
36650 The rotation direction is counterclockwise.
36653 \begin_layout Standard
36654 In the following example
36658 was inserted to the
36666 was inserted to the
36673 \begin_layout Standard
36675 \begin_inset Flex Rotatebox
36678 \begin_layout Plain Layout
36679 \begin_inset Argument 1
36682 \begin_layout Plain Layout
36689 \begin_inset Argument 2
36692 \begin_layout Plain Layout
36706 \begin_layout Standard
36707 The box content can also be another box or an inline formula:
36710 \begin_layout Standard
36712 \begin_inset Flex Rotatebox
36715 \begin_layout Plain Layout
36716 \begin_inset Argument 1
36719 \begin_layout Plain Layout
36726 \begin_inset Argument 2
36729 \begin_layout Plain Layout
36736 \begin_inset Box Doublebox
36746 height_special "totalheight"
36751 backgroundcolor "none"
36754 \begin_layout Plain Layout
36766 \begin_inset Flex Rotatebox
36769 \begin_layout Plain Layout
36770 \begin_inset Argument 1
36773 \begin_layout Plain Layout
36780 \begin_inset Argument 2
36783 \begin_layout Plain Layout
36790 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36801 \begin_layout Standard
36802 or an image or table:
36805 \begin_layout Standard
36807 \begin_inset Flex Rotatebox
36810 \begin_layout Plain Layout
36811 \begin_inset Argument 1
36814 \begin_layout Plain Layout
36821 \begin_inset Argument 2
36824 \begin_layout Plain Layout
36831 \begin_inset Graphics
36832 filename clipart/platypus.eps
36843 with a rotated image
36844 \begin_inset Flex Rotatebox
36847 \begin_layout Plain Layout
36848 \begin_inset Argument 2
36851 \begin_layout Plain Layout
36858 \begin_inset Tabular
36859 <lyxtabular version="3" rows="2" columns="2">
36860 <features tabularvalignment="middle">
36861 <column alignment="center" valignment="top">
36862 <column alignment="center" valignment="top">
36864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36867 \begin_layout Plain Layout
36873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36876 \begin_layout Plain Layout
36884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36887 \begin_layout Plain Layout
36893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36896 \begin_layout Plain Layout
36913 \begin_inset Index idx
36916 \begin_layout Plain Layout
36923 \begin_inset Index idx
36926 \begin_layout Plain Layout
36927 Table Customization ! Rotating
36935 \begin_layout Standard
36936 \begin_inset Note Greyedout
36939 \begin_layout Plain Layout
36948 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36950 errors when viewing/exporting the document.
36958 \begin_layout Subsection
36960 \begin_inset Index idx
36963 \begin_layout Plain Layout
36970 \begin_inset Index idx
36973 \begin_layout Plain Layout
36982 \begin_layout Standard
36983 To scale material put it into a
36988 Such a box is inserted via the menu
36990 Insert\SpecialChar menuseparator
36991 Custom Insets\SpecialChar menuseparator
36997 \begin_layout Standard
37002 inset has the mandatory inset
37006 and the optional inset
37010 (inserted via the menu
37012 Insert\SpecialChar menuseparator
37016 Input there the horizontal and vertical scale factor, respectively.
37021 inset is used, the horizontal factor will also be used as the vertical
37025 \begin_layout Standard
37026 To get for example the double text size, compared to the document text size,
37037 \begin_inset Flex Scalebox
37040 \begin_layout Plain Layout
37041 \begin_inset Argument 1
37044 \begin_layout Plain Layout
37058 \begin_layout Standard
37076 \begin_inset Flex Scalebox
37079 \begin_layout Plain Layout
37080 \begin_inset Argument 1
37083 \begin_layout Plain Layout
37090 \begin_inset Argument 2
37093 \begin_layout Plain Layout
37107 \begin_layout Standard
37108 If the scaling factor is negative, the box content will be mirrored.
37125 can be used to create mirror writing:
37126 \begin_inset Flex Scalebox
37129 \begin_layout Plain Layout
37130 \begin_inset Argument 1
37133 \begin_layout Plain Layout
37140 \begin_inset Argument 2
37143 \begin_layout Plain Layout
37157 \begin_layout Standard
37175 \begin_inset Flex Scalebox
37178 \begin_layout Plain Layout
37179 \begin_inset Argument 1
37182 \begin_layout Plain Layout
37189 \begin_inset Argument 2
37192 \begin_layout Plain Layout
37206 \begin_layout Standard
37213 Insert\SpecialChar menuseparator
37214 Custom Insets\SpecialChar menuseparator
37240 \begin_layout Standard
37241 \begin_inset Note Greyedout
37244 \begin_layout Plain Layout
37253 inset is empty or contains other characters than numbers you will get LaTeX
37254 errors when viewing/exporting the document.
37262 \begin_layout Standard
37263 \begin_inset VSpace bigskip
37272 Insert\SpecialChar menuseparator
37273 Custom Insets\SpecialChar menuseparator
37276 ) is used to scale the content to a defined width and height.
37281 inset has the mandatory inset
37285 and the optional inset
37289 (inserted via the menu
37291 Insert\SpecialChar menuseparator
37295 Input there the width and height, respectively, as value with a unit.
37297 \begin_inset CommandInset ref
37299 reference "tab:Units"
37303 lists the possible units.
37304 If there is an exclamation mark
37308 in of of the two insets, the size is set so that the aspect ratio of the
37309 box content is kept.
37314 inset is used an exclamation mark will internally be used for the height.
37317 \begin_layout Standard
37335 \begin_inset Flex Resizebox
37338 \begin_layout Plain Layout
37339 \begin_inset Argument 1
37342 \begin_layout Plain Layout
37349 \begin_inset Argument 2
37352 \begin_layout Plain Layout
37364 \begin_inset Newline newline
37388 \begin_inset Flex Resizebox
37391 \begin_layout Plain Layout
37392 \begin_inset Argument 1
37395 \begin_layout Plain Layout
37402 \begin_inset Argument 2
37405 \begin_layout Plain Layout
37419 \begin_layout Standard
37420 \begin_inset Note Greyedout
37423 \begin_layout Plain Layout
37432 inset is empty or contains an invalid unit you will get LaTeX errors when
37433 viewing/exporting the document.
37441 \begin_layout Standard
37442 \begin_inset VSpace bigskip
37448 \begin_layout Standard
37449 The boxes can be combined in any order.
37458 which is in turn inside a
37465 \begin_layout Standard
37468 \begin_inset Flex Rotatebox
37471 \begin_layout Plain Layout
37472 \begin_inset Argument 1
37475 \begin_layout Plain Layout
37482 \begin_inset Argument 2
37485 \begin_layout Plain Layout
37492 \begin_inset Flex Resizebox
37495 \begin_layout Plain Layout
37496 \begin_inset Argument 1
37499 \begin_layout Plain Layout
37506 \begin_inset Flex Reflectbox
37509 \begin_layout Plain Layout
37528 \begin_layout Standard
37530 Images, tables, and inline formulas are allowed as box content:
37533 \begin_layout Standard
37536 \begin_inset Flex Resizebox
37539 \begin_layout Plain Layout
37540 \begin_inset Argument 1
37543 \begin_layout Plain Layout
37550 \begin_inset Flex Reflectbox
37553 \begin_layout Plain Layout
37554 \begin_inset Graphics
37555 filename clipart/platypus.eps
37572 \begin_inset Flex Resizebox
37575 \begin_layout Plain Layout
37576 \begin_inset Argument 1
37579 \begin_layout Plain Layout
37586 \begin_inset Flex Reflectbox
37589 \begin_layout Plain Layout
37590 \begin_inset Tabular
37591 <lyxtabular version="3" rows="2" columns="2">
37592 <features tabularvalignment="middle">
37593 <column alignment="center" valignment="top">
37594 <column alignment="center" valignment="top">
37596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37599 \begin_layout Plain Layout
37605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37608 \begin_layout Plain Layout
37616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37619 \begin_layout Plain Layout
37625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37628 \begin_layout Plain Layout
37650 \begin_inset Flex Resizebox
37653 \begin_layout Plain Layout
37654 \begin_inset Argument 1
37657 \begin_layout Plain Layout
37664 \begin_inset Flex Reflectbox
37667 \begin_layout Plain Layout
37668 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37682 \begin_inset Index idx
37685 \begin_layout Plain Layout
37692 \begin_inset Index idx
37695 \begin_layout Plain Layout
37696 Table Customization ! Scaling
37704 \begin_layout Standard
37705 When the global formula style
37709 is used in the document
37713 \begin_layout Plain Layout
37715 \begin_inset Quotes eld
37719 \begin_inset Quotes erd
37722 is added to the document class options.
37727 , display style formulas can also be scaled.
37730 \begin_layout Chapter
37731 Objects Surrounded by Text
37732 \begin_inset Index idx
37735 \begin_layout Plain Layout
37744 \begin_layout Section
37746 \begin_inset CommandInset label
37748 name "sec:Wrap-Floats"
37753 \begin_inset Index idx
37756 \begin_layout Plain Layout
37757 Floats ! Wrap Floats
37763 \begin_inset Index idx
37766 \begin_layout Plain Layout
37767 Surrounded by text ! Wrap Floats
37775 \begin_layout Standard
37776 \begin_inset Wrap figure
37783 \begin_layout Plain Layout
37784 \begin_inset Graphics
37785 filename clipart/mobius.eps
37787 scaleBeforeRotation
37788 rotateOrigin center
37795 \begin_layout Plain Layout
37796 \begin_inset Caption Standard
37798 \begin_layout Plain Layout
37799 \begin_inset CommandInset label
37801 name "fig:This-is-a"
37805 This is a figure wrap float.
37815 This float type is used if you want to wrap text around a figure or table
37816 so that it only occupies some fraction of the column width.
37817 It can be inserted using the menu
37819 Insert\SpecialChar menuseparator
37820 Floats\SpecialChar menuseparator
37822 \begin_inset space ~
37826 \begin_inset space ~
37834 \begin_inset space ~
37838 \begin_inset space ~
37843 if the \SpecialChar LaTeX
37849 \begin_inset Index idx
37852 \begin_layout Plain Layout
37854 -packages ! wrapfig
37863 \begin_layout Plain Layout
37864 Installing a \SpecialChar LaTeX
37865 -package is explained it in the
37869 \begin_inset space ~
37879 The settings of the float can be modified by right-clicking on the float
37881 The mandatory settings are the float
37894 that specifies how much the float is set into the paragraph
37895 \begin_inset space \thinspace{}
37899 \begin_inset space \thinspace{}
37902 page margin, and the
37905 \begin_inset space ~
37910 that specifies how many text lines the float will approximately need.
37911 The line span is often hard to approximate; so it is better only to use
37912 it when you encounter float placement problems.
37913 You can furthermore decide if \SpecialChar LaTeX
37914 is allowed to let the float float within
37915 the paragraph or to surrounding paragraphs.
37917 \begin_inset space ~
37921 \begin_inset CommandInset ref
37923 reference "fig:This-is-a"
37927 is an example text wrap float with a width of 40
37928 \begin_inset space \thinspace{}
37932 \begin_inset space \thinspace{}
37935 cm overhang, set to the left.
37938 \begin_layout Standard
37939 \begin_inset Note Greyedout
37942 \begin_layout Plain Layout
37948 \begin_inset space ~
37951 wrap float floats are fragile! E.
37952 \begin_inset space \thinspace{}
37956 \begin_inset space \space{}
37959 having a figure too close to the bottom of the page can mess things up in
37960 such a way that the float does not appear in the output or that it is placed
37961 over some other text.
37969 \begin_layout Standard
37970 In general, the following applies for wrap floats:
37973 \begin_layout Itemize
37974 They should not be placed in paragraphs that run over a page break.
37975 That means that wrap floats are better inserted in their exact place when
37976 the document is almost finished and you are able to estimate where page
37977 breaks will appear.
37980 \begin_layout Itemize
37981 They should either be placed in their own paragraph before the paragraph
37982 where they should wrap into or within a paragraph.
37985 \begin_layout Itemize
37986 In consecutive paragraphs they may cause troubles, so ensure that there
37987 is a text paragraph between them as separator.
37990 \begin_layout Itemize
37991 They are not allowed in section headings or tables.
37994 \begin_layout Itemize
37995 Their numbering and referencing works as described in chap.
37996 \begin_inset space \thinspace{}
38000 \begin_inset CommandInset ref
38002 reference "chap:Floats"
38009 \begin_layout Section
38010 Surrounded Fixed Objects
38011 \begin_inset Index idx
38014 \begin_layout Plain Layout
38015 Surrounded by text ! Fixed objects
38023 \begin_layout Standard
38024 The wrap floats described in sec.
38025 \begin_inset space \thinspace{}
38029 \begin_inset CommandInset ref
38031 reference "sec:Wrap-Floats"
38035 have these positions in the paragraph:
38038 \begin_layout Standard
38041 \begin_inset Tabular
38042 <lyxtabular version="3" rows="2" columns="2">
38043 <features tabularvalignment="middle">
38044 <column alignment="center" valignment="top">
38045 <column alignment="center" valignment="top">
38047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38050 \begin_layout Plain Layout
38053 arg "dialog-show-new-inset graphics"
38061 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38064 \begin_layout Plain Layout
38072 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38075 \begin_layout Plain Layout
38081 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38084 \begin_layout Plain Layout
38096 \begin_inset Tabular
38097 <lyxtabular version="3" rows="2" columns="2">
38098 <features tabularvalignment="middle">
38099 <column alignment="center" valignment="top">
38100 <column alignment="center" valignment="top">
38102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38105 \begin_layout Plain Layout
38111 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38114 \begin_layout Plain Layout
38117 arg "dialog-show-new-inset graphics"
38127 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38130 \begin_layout Plain Layout
38136 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38139 \begin_layout Plain Layout
38153 \begin_layout Standard
38154 To get an object exactly at the position where it is inserted, for example
38155 to get one of these positions:
38156 \begin_inset VSpace defskip
38162 \begin_layout Standard
38165 \begin_inset Tabular
38166 <lyxtabular version="3" rows="2" columns="2">
38167 <features tabularvalignment="middle">
38168 <column alignment="center" valignment="top">
38169 <column alignment="center" valignment="top">
38171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38174 \begin_layout Plain Layout
38180 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38183 \begin_layout Plain Layout
38191 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38194 \begin_layout Plain Layout
38197 arg "dialog-show-new-inset graphics"
38205 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38208 \begin_layout Plain Layout
38220 \begin_inset Tabular
38221 <lyxtabular version="3" rows="2" columns="2">
38222 <features tabularvalignment="middle">
38223 <column alignment="center" valignment="top">
38224 <column alignment="center" valignment="top">
38226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38229 \begin_layout Plain Layout
38235 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38238 \begin_layout Plain Layout
38246 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38249 \begin_layout Plain Layout
38255 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38258 \begin_layout Plain Layout
38261 arg "dialog-show-new-inset graphics"
38275 \begin_inset Tabular
38276 <lyxtabular version="3" rows="2" columns="3">
38277 <features tabularvalignment="middle">
38278 <column alignment="center" valignment="top">
38279 <column alignment="center" valignment="top">
38280 <column alignment="center" valignment="top">
38282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38285 \begin_layout Plain Layout
38291 <cell alignment="center" valignment="top" topline="true" usebox="none">
38294 \begin_layout Plain Layout
38297 arg "dialog-show-new-inset graphics"
38305 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38308 \begin_layout Plain Layout
38316 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38319 \begin_layout Plain Layout
38325 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38328 \begin_layout Plain Layout
38334 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38337 \begin_layout Plain Layout
38349 \begin_inset Tabular
38350 <lyxtabular version="3" rows="2" columns="3">
38351 <features tabularvalignment="middle">
38352 <column alignment="center" valignment="top">
38353 <column alignment="center" valignment="top">
38354 <column alignment="center" valignment="top">
38356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38359 \begin_layout Plain Layout
38365 <cell alignment="center" valignment="top" topline="true" usebox="none">
38368 \begin_layout Plain Layout
38374 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38377 \begin_layout Plain Layout
38385 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38388 \begin_layout Plain Layout
38394 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38397 \begin_layout Plain Layout
38400 arg "dialog-show-new-inset graphics"
38408 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38411 \begin_layout Plain Layout
38425 \begin_layout Standard
38428 \begin_inset Tabular
38429 <lyxtabular version="3" rows="3" columns="2">
38430 <features tabularvalignment="middle">
38431 <column alignment="center" valignment="top">
38432 <column alignment="center" valignment="top">
38434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38437 \begin_layout Plain Layout
38443 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38446 \begin_layout Plain Layout
38454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38457 \begin_layout Plain Layout
38460 arg "dialog-show-new-inset graphics"
38468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38471 \begin_layout Plain Layout
38479 <cell alignment="center" valignment="top" bottomline="true" leftline="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="3">
38505 <features tabularvalignment="middle">
38506 <column alignment="center" valignment="top">
38507 <column alignment="center" valignment="top">
38508 <column alignment="center" valignment="top">
38510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38513 \begin_layout Plain Layout
38519 <cell alignment="center" valignment="top" topline="true" usebox="none">
38522 \begin_layout Plain Layout
38528 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38531 \begin_layout Plain Layout
38539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38542 \begin_layout Plain Layout
38548 <cell alignment="center" valignment="top" usebox="none">
38551 \begin_layout Plain Layout
38554 arg "dialog-show-new-inset graphics"
38562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38565 \begin_layout Plain Layout
38573 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38576 \begin_layout Plain Layout
38582 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38585 \begin_layout Plain Layout
38591 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38594 \begin_layout Plain Layout
38606 \begin_inset Tabular
38607 <lyxtabular version="3" rows="3" columns="2">
38608 <features tabularvalignment="middle">
38609 <column alignment="center" valignment="top">
38610 <column alignment="center" valignment="top">
38612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38615 \begin_layout Plain Layout
38621 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38624 \begin_layout Plain Layout
38632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38635 \begin_layout Plain Layout
38641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38644 \begin_layout Plain Layout
38647 arg "dialog-show-new-inset graphics"
38657 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38660 \begin_layout Plain Layout
38666 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38669 \begin_layout Plain Layout
38683 \begin_layout Standard
38685 you can use the \SpecialChar LaTeX
38691 \begin_inset Index idx
38694 \begin_layout Plain Layout
38696 -packages ! picinpar
38702 Here is an example:
38705 \begin_layout Standard
38709 \begin_layout Plain Layout
38719 \begin_inset Note Note
38722 \begin_layout Plain Layout
38723 The following section will only be displayed when the \SpecialChar LaTeX
38736 \begin_layout Standard
38740 \begin_layout Plain Layout
38744 begin{window}[2,c,{
38750 \begin_inset Graphics
38751 filename clipart/mobius.eps
38754 scaleBeforeRotation
38755 rotateOrigin center
38763 \begin_layout Plain Layout
38768 \begin_layout Plain Layout
38777 It was in the spring of the year 1894 that all London was interested, and
38778 the fashionable world dismayed, by the murder of the Honourable Ronald
38779 Adair under most unusual and inexplicable circumstances.
38780 The public has already learned those particulars of the crime which
38786 \begin_layout Plain Layout
38797 came out in the police investigation, but a good deal was suppressed upon
38798 that occasion, since the case for the prosecution was so overwhelmingly
38799 strong that it was not necessary to bring forward all the facts.
38800 Only now, at the end of nearly ten years, am I allowed to supply those
38801 missing links which make up the whole of that remarkable chain.
38807 \begin_layout Plain Layout
38819 \begin_layout Standard
38823 \begin_layout Plain Layout
38832 Footnote of the paragraph with the fixed object.
38836 \begin_layout Plain Layout
38846 \begin_layout Standard
38847 Surrounded fixed objects are used to let text float around them, at which
38848 the object's position in the paragraph can be determined by the number
38850 In contrary to floats is it not possible to have a numbered caption.
38853 \begin_layout Standard
38854 A fixed object is inserted by adding the command
38857 \begin_layout Standard
38862 begin{window}[2,c,{
38865 \begin_layout Standard
38866 as \SpecialChar TeX
38867 Code at the beginning of the paragraph.
38868 The first parameter in the bracket, here '2', defines the number of lines
38869 above the object, the second, here 'c', the position of the object.
38870 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38871 Behind the command you insert the object.
38872 In this example an image with a width of 40
38873 \begin_inset space \thinspace{}
38876 % of the text column width was inserted.
38877 The object can also be a table, a box or an equation.
38878 Behind the object the command
38881 \begin_layout Standard
38884 },description text]
38885 \begin_inset Newline newline
38891 \begin_layout Standard
38894 \begin_inset Quotes eld
38902 \begin_inset Quotes erd
38905 is in the second line.
38906 The description text is optional.
38907 The text surrounding the object must be in the same paragraph as the object,
38908 so it must begin directly after the
38913 At the end of the paragraph insert the command:
38916 \begin_layout Standard
38924 \begin_layout Standard
38925 Within a paragraph with a fixed object, you cannot insert footnotes in the
38927 You have to use instead the command
38933 inside the paragraph and outside the command
38939 as described in sec.
38940 \begin_inset space \thinspace{}
38944 \begin_inset CommandInset ref
38946 reference "sec:Footnotes"
38953 \begin_layout Standard
38957 \begin_layout Plain Layout
38967 \begin_inset Note Note
38970 \begin_layout Plain Layout
38971 The following will be displayed when the \SpecialChar LaTeX
38984 \begin_layout Standard
38985 You need to install the \SpecialChar LaTeX
38990 to see the following part of this section in the output.
38993 \begin_layout Standard
38997 \begin_layout Plain Layout
39009 \begin_layout Section
39011 \begin_inset Index idx
39014 \begin_layout Plain Layout
39021 \begin_inset Index idx
39024 \begin_layout Plain Layout
39025 Surrounded by text ! Initials
39033 \begin_layout Standard
39034 To use initials, you must have the \SpecialChar LaTeX
39040 \begin_inset Index idx
39043 \begin_layout Plain Layout
39045 -packages ! lettrine
39050 installed and use the module
39054 in your document (menu
39056 Document\SpecialChar menuseparator
39057 Settings\SpecialChar menuseparator
39061 To insert an initial, use the style
39066 This style has a mandatory and two optional arguments.
39067 The arguments are inserted via the
39072 The mandatory argument
39076 contains the letter(s) that is the initial, the argument
39079 \begin_inset space ~
39083 \begin_inset space ~
39088 contains the rest of the word or text of the initial letter(s).
39093 contains parameters to modify the initial.
39094 For more information about the possible parameters see the documentation
39100 \begin_inset CommandInset citation
39108 The style itself contains the text that is surrounding the initial.
39109 The usual style is hereby that the word whose first letter is the initial,
39117 \begin_layout Standard
39118 Here are some examples:
39121 \begin_layout Standard
39125 \begin_layout Plain Layout
39135 \begin_inset Note Note
39138 \begin_layout Plain Layout
39139 The following section will only be displayed when the \SpecialChar LaTeX
39152 \begin_layout Enumerate
39153 No optional argument, the initial is the letter 'I' in the math font
39154 \begin_inset Formula $\mathfrak{Fraktur}$
39161 \begin_layout Initial
39162 \begin_inset Argument 2
39165 \begin_layout Plain Layout
39166 \begin_inset Formula $\mathfrak{I}$
39175 \begin_inset Argument 3
39178 \begin_layout Plain Layout
39184 was in the spring of the year 1894 that all London was interested, and
39185 the fashionable world dismayed, by the murder of the Honourable Ronald
39186 Adair under most unusual and inexplicable circumstances.
39187 The public has already learned those particulars of the crime which came
39188 out in the police investigation, but a good deal was suppressed upon that
39189 occasion, since the case for the prosecution was so overwhelmingly strong
39190 that it was not necessary to bring forward all the facts.
39191 \begin_inset Newpage newpage
39198 \begin_layout Enumerate
39199 Only one line is surrounding the initial, which is formed by two letters
39200 in standard font and no text is printed in small caps:
39204 \begin_layout Initial
39205 \begin_inset Argument 1
39208 \begin_layout Plain Layout
39215 \begin_inset Argument 2
39218 \begin_layout Plain Layout
39224 was in the spring of the year 1894 that all London was interested, and
39225 the fashionable world dismayed, by the murder of the Honourable Ronald
39226 Adair under most unusual and inexplicable circumstances.
39227 The public has already learned those particulars of the crime which came
39228 out in the police investigation, but a good deal was suppressed upon that
39229 occasion, since the case for the prosecution was so overwhelmingly strong
39230 that it was not necessary to bring forward all the facts.
39234 \begin_layout Enumerate
39235 Magenta, hanging initial over 3
39236 \begin_inset space ~
39239 lines in the math font
39240 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39244 \begin_inset Quotes eld
39247 t was in the spring
39248 \begin_inset Quotes erd
39255 ; to color the initial, you must insert this command before the initial:
39256 \begin_inset Newline newline
39270 \begin_inset Newline newline
39278 \begin_inset Quotes eld
39282 \begin_inset Quotes erd
39286 \begin_inset Quotes eld
39290 \begin_inset Quotes erd
39294 \begin_inset Quotes eld
39298 \begin_inset Quotes erd
39302 \begin_inset Quotes eld
39306 \begin_inset Quotes erd
39310 \begin_inset Quotes eld
39314 \begin_inset Quotes erd
39318 \begin_inset Quotes eld
39322 \begin_inset Quotes erd
39326 \begin_inset Quotes eld
39330 \begin_inset Quotes erd
39334 \begin_inset Quotes eld
39338 \begin_inset Quotes erd
39341 , and add this command to the document preamble:
39342 \begin_inset Newline newline
39349 @ifundefined{textcolor}
39350 \begin_inset Newline newline
39354 \begin_inset space ~
39359 usepackage{color}}{}
39363 \begin_layout Standard
39367 \begin_layout Plain Layout
39381 \begin_inset Note Note
39384 \begin_layout Plain Layout
39385 makes the initial magenta
39393 \begin_layout Initial
39394 \begin_inset Argument 1
39397 \begin_layout Plain Layout
39398 lines=3, lhang=0.33, loversize=0.25
39404 \begin_inset Argument 2
39407 \begin_layout Plain Layout
39408 \begin_inset Formula $\mathcal{I}$
39417 \begin_inset Argument 3
39420 \begin_layout Plain Layout
39421 t was in the spring
39426 of the year 1894 that all London was interested, and the fashionable world
39427 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39428 and inexplicable circumstances.
39429 The public has already learned those particulars of the crime which came
39430 out in the police investigation, but a good deal was suppressed upon that
39431 occasion, since the case for the prosecution was so overwhelmingly strong
39432 that it was not necessary to bring forward all the facts.
39436 \begin_layout Standard
39440 \begin_layout Plain Layout
39450 \begin_inset Note Note
39453 \begin_layout Plain Layout
39454 The following will be displayed when the \SpecialChar LaTeX
39467 \begin_layout Standard
39468 You need to install the \SpecialChar LaTeX
39473 to see the following part of this section in the output.
39476 \begin_layout Standard
39480 \begin_layout Plain Layout
39492 \begin_layout Chapter
39493 External Document Parts
39494 \begin_inset Index idx
39497 \begin_layout Plain Layout
39498 External Document Parts
39506 \begin_layout Standard
39509 Insert\SpecialChar menuseparator
39512 you can insert external material into your document.
39516 \begin_layout Description
39518 \begin_inset space ~
39521 Document Another \SpecialChar LyX
39522 document; its content is directly inserted to your document.
39525 \begin_layout Description
39527 \begin_inset space ~
39530 Text A text document; each line is inserted in your document as a separate
39534 \begin_layout Description
39536 \begin_inset space ~
39540 \begin_inset space ~
39544 \begin_inset space ~
39547 Lines A text document; text lines are inserted in your document continuously
39548 but an empty text line creates a new paragraph.
39551 \begin_layout Description
39553 \begin_inset space ~
39556 Material Files in various formats.
39559 \begin_layout Description
39561 \begin_inset space ~
39564 Document \SpecialChar LyX
39565 or \SpecialChar LaTeX
39569 \begin_layout Section
39571 \begin_inset Index idx
39574 \begin_layout Plain Layout
39575 External Document Parts ! External Material
39583 \begin_layout Standard
39584 The external material feature allows you to insert files into your document
39585 without converting them to a format that can be read by the document output
39588 takes care of the necessary conversions.
39589 This is similar to images that can be inserted in various image formats
39590 in \SpecialChar LyX
39592 When you have enabled Instant Preview in \SpecialChar LyX
39593 's preferences under
39596 \begin_inset space ~
39600 \begin_inset space ~
39603 feel\SpecialChar menuseparator
39606 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39610 \begin_layout Standard
39611 External material can be inserted via the
39615 dialog that is accessible with the menu
39617 Insert\SpecialChar menuseparator
39618 File\SpecialChar menuseparator
39620 \begin_inset space ~
39626 Currently the following file types (
39633 \begin_layout Description
39635 \begin_inset space ~
39638 diagram This template supports chess position diagrams made with the program
39642 \begin_inset CommandInset href
39645 target "http://en.wikipedia.org/wiki/XBoard"
39655 \begin_layout Description
39657 \begin_inset space ~
39660 diagram This template supports diagrams created with the program
39663 \begin_inset CommandInset href
39666 target "http://en.wikipedia.org/wiki/Dia_(software)"
39676 \begin_layout Description
39677 Spreadsheet With this template you can insert spreadsheets
39678 \begin_inset space \thinspace{}
39682 \begin_inset space \thinspace{}
39685 tables in the format of
39688 \begin_inset CommandInset href
39691 target "http://en.wikipedia.org/wiki/Gnumeric"
39699 \begin_inset CommandInset href
39701 name "OpenDocument"
39702 target "http://en.wikipedia.org/wiki/OpenDocument"
39708 \begin_inset CommandInset href
39710 name "Microsoft Office XML"
39711 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39717 \begin_inset CommandInset href
39719 name "Office Open XML"
39720 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39726 For this feature \SpecialChar LyX
39727 must have found the program
39731 during its configuration.
39732 This program is part of Gnumeric, so that you must have Gnumeric installed,
39733 also if you don't have tables in the Gnumeric format.
39734 For examples and possible limitations have a look at \SpecialChar LyX
39742 \begin_layout Description
39744 \begin_inset space ~
39748 \begin_inset space ~
39751 music This template is used for music notation typeset with the program
39752 \begin_inset Newline linebreak
39758 \begin_inset CommandInset href
39761 target "http://en.wikipedia.org/wiki/LilyPond"
39769 For \SpecialChar LyX
39770 's extended support for LilyPond have a look at \SpecialChar LyX
39778 \begin_layout Description
39780 \begin_inset space ~
39783 pages With this template you can insert PDF documents to your document.
39784 To specify the range of pages that should be included, use the option
39794 LaTeX and LyX options
39797 The argument of this option is a comma separated list, containing page
39798 numbers (insert as option
39802 ), ranges of page numbers (
39806 ) or any combination.
39807 To insert empty pages use {}.
39809 \begin_inset space \thinspace{}
39813 \begin_inset space ~
39818 pages={3,{},8-11,15}
39820 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39821 Page ranges are specified in the syntax
39830 This selects all pages from
39843 defaults to the first page; omitting
39847 defaults to the last page of the document.
39848 The last page can also be selected with the keyword
39853 (This is only permitted in a page range.) So
39857 will insert all pages of the document and
39861 will insert all pages in reverse order.
39862 If the pages option is not specified, only the first page of the PDF is
39864 \begin_inset Newline newline
39871 inserts the pages with their original size, if this option is not given,
39872 the pages will be resized to fith the width of the page of your document.
39877 you can specify the width and height of the input pages and their rotation.
39878 If another width than 100
39879 \begin_inset space \thinspace{}
39882 Scale% is used, the option
39886 will be overwritten.
39887 For more info and possible options, have a look into the documentation
39888 of the \SpecialChar LaTeX
39894 \begin_inset CommandInset citation
39902 \begin_inset Index idx
39905 \begin_layout Plain Layout
39907 -packages ! pdfpages
39913 \begin_inset Newline newline
39916 To use this template in a
39920 presentation you need to first insert an
39924 environment and in a subsequent paragraph a \SpecialChar TeX
39925 Code box containing the command
39930 setbeamertemplate{background canvas}{}
39933 Then you can insert as many paragraphs containing the PDFPages template
39935 Behind the included PDF pages you can resume the Beamer presentation by
39936 beginning a new frame or by starting a new section.
39937 To avoid stray blank pages prior to the PDF pages, make sure to use the
39942 alignment for the paragraph containing the template.
39943 \begin_inset Newline newline
39946 Here is an included PDF which is rotated by -5°:
39947 \begin_inset External
39949 filename clipart/Abstract.pdf
39950 extra LaTeX "noautoscale, pages=-"
39952 rotateOrigin bottomleft
39959 \begin_layout Description
39961 \begin_inset space ~
39964 image This can be used for bitmap images.
39965 The image can be treated in the
39969 dialog like the images that are usually included via the
39973 dialog as described in section
39974 \begin_inset space ~
39978 \begin_inset CommandInset ref
39980 reference "sec:Graphics-Dialog"
39985 Here is an inserted raster image:
39986 \begin_inset External
39987 template RasterImage
39988 filename clipart/ToolbarEnvBox.png
39995 \begin_layout Description
39997 \begin_inset space ~
40000 graphics This can be used for vector graphics.
40001 The image can be treated in the
40005 dialog like the images that are usually included via the
40009 dialog as described in section
40010 \begin_inset space ~
40014 \begin_inset CommandInset ref
40016 reference "sec:Graphics-Dialog"
40021 Here is an inserted vector graphics:
40022 \begin_inset External
40023 template VectorGraphics
40024 filename clipart/SVG-Drawing.svg
40033 \begin_layout Description
40035 \begin_inset space ~
40038 figure This template supports images created with the program
40041 \begin_inset CommandInset href
40044 target "http://en.wikipedia.org/wiki/Xfig"
40052 \change_inserted 227574939 1473131626
40056 \begin_layout Description
40058 \change_inserted 227574939 1473131628
40060 \begin_inset space ~
40063 figure This experimental template supports
40064 \change_inserted 2047637253 1475533187
40066 \change_inserted 227574939 1473131628
40068 \change_inserted 2047637253 1475533525
40069 that contain text written in \SpecialChar LaTeX
40072 \change_inserted 227574939 1473131628
40074 \change_inserted 2047637253 1475533551
40075 It relies on the PDF/PS+\SpecialChar LaTeX
40077 \change_deleted 2047637253 1475533556
40079 \change_inserted 227574939 1473131628
40081 \begin_inset CommandInset href
40084 target "https://en.wikipedia.org/wiki/Inkscape"
40091 \change_inserted 2047637253 1475534005
40092 As described by the CTAN demonstration package
40100 \begin_layout Quote
40102 \change_inserted 2047637253 1475534064
40106 \begin_inset Quotes eld
40109 PDF+\SpecialChar LaTeX
40111 \begin_inset Quotes erd
40114 option of Inkscape, it is possible to include SVG in documents, in which
40117 This results in uniform text style throughout the document, including text
40118 in images; moreover, \SpecialChar LaTeX
40119 commands may be used in the image’s text, providing
40120 such things as mathematics and references.
40123 \begin_layout Standard
40125 \change_inserted 2047637253 1475534692
40126 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
40129 Of course, you can always embed \SpecialChar LaTeX
40143 into your figure text strings.
40148 documentation package for more information and examples.
40151 \begin_layout Standard
40153 \change_inserted 2047637253 1475534902
40154 It should be noted that while the image takes into account the surrounding
40155 font, its preview in \SpecialChar LyX
40157 Wrapping the external inset in a preview inset gives better results in
40161 \begin_layout Standard
40163 \change_deleted 2047637253 1475534821
40165 \change_inserted 2047637253 1475534913
40167 \change_inserted 227574939 1473131628
40168 works very similarly to Xfig support, except that Inkscape is a more modern
40169 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
40174 \change_inserted 227574939 1473131628
40175 LyX will process the image file in much the same way as it does an Xfig
40176 image, extracting the text into a separate TeX file for the text strings,
40177 and a PDF file for the rest.
40180 \begin_layout Description
40182 \change_inserted 227574939 1473131628
40183 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
40184 with multi-page PDFs, the TeX file will sometimes reference more pages
40185 than the PDF file contains.
40186 This is the version that ships with Ubuntu 16.04.
40187 Its use with LyX can therefore not be recommended, until the bug is fixed
40191 \begin_layout Plain Layout
40193 \change_inserted 227574939 1473131628
40194 A workaround for those who have already SVG figures in their document is,
40195 to manually do the LaTeX+PDF output from Inkscape, edit the
40199 file to remove the erroneous references, and
40205 it directly into LyX, i.e., not use the external-template mechanism:
40208 \begin_layout Plain Layout
40210 \change_inserted 227574939 1473131628
40211 \begin_inset Graphics
40212 filename clipart/workaround.png
40220 \begin_layout Plain Layout
40222 \change_inserted 227574939 1473131628
40223 Here, the child document input inset (
40225 Insert\SpecialChar menuseparator
40226 File\SpecialChar menuseparator
40229 ) was used, which allows you do directly edit the
40233 file in a text editor.
40234 The LaTeX output is based on this edited snippet as re-generation from
40235 the SVG file has been commented out.
40241 \change_deleted 2047637253 1475534230
40245 \begin_layout Standard
40247 \change_deleted 2047637253 1475534225
40248 The reason why we would use this complicated process at all, like in the
40249 case of Xfig, is that it makes the text strings inside the figure of the
40250 same font type and attributes as the surrounding text, which looks so much
40252 With Inkscape, even the
40256 of the font is taken from the surrounding LaTeX document – in Xfig, you
40257 have to set it by hand to be the same.
40258 Of course you can always embed LaTeX modifiers like
40271 into your figure text strings.
40272 \change_inserted 227574939 1473131628
40277 \begin_layout Standard
40278 \begin_inset Float table
40284 \begin_layout Plain Layout
40285 \begin_inset Caption Standard
40287 \begin_layout Plain Layout
40288 \begin_inset CommandInset label
40290 name "tab:Comparison-of-the"
40294 Comparison of the date input methods.
40302 \begin_layout Plain Layout
40304 \begin_inset Tabular
40305 <lyxtabular version="3" rows="4" columns="3">
40306 <features tabularvalignment="middle">
40307 <column alignment="center" valignment="top">
40308 <column alignment="center" valignment="top">
40309 <column alignment="center" valignment="top">
40311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40314 \begin_layout Plain Layout
40320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40323 \begin_layout Plain Layout
40326 Insert\SpecialChar menuseparator
40332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40335 \begin_layout Plain Layout
40347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40350 \begin_layout Plain Layout
40357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40360 \begin_layout Plain Layout
40366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40369 \begin_layout Plain Layout
40370 as \SpecialChar TeX
40378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40381 \begin_layout Plain Layout
40388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40391 \begin_layout Plain Layout
40397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40400 \begin_layout Plain Layout
40408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40411 \begin_layout Plain Layout
40417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40420 \begin_layout Plain Layout
40426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40429 \begin_layout Plain Layout
40448 \begin_layout Standard
40449 When you use the option
40461 dialog, only the path to the inserted file is shown in the output.
40462 \begin_inset Newline newline
40465 External material is displayed in \SpecialChar LyX
40466 either as a box like this:
40467 \begin_inset Graphics
40468 filename clipart/ExternalMaterial.png
40470 scaleBeforeRotation
40474 or as image, depending on the option
40480 LaTeX and LyX options
40485 \begin_layout Standard
40492 manual explains how you can define your own templates.
40495 \begin_layout Section
40497 \begin_inset CommandInset label
40499 name "sec:Child-Documents"
40504 \begin_inset Index idx
40507 \begin_layout Plain Layout
40508 External Document Parts ! Child Documents
40514 \begin_inset Index idx
40517 \begin_layout Plain Layout
40526 \begin_layout Standard
40527 Child documents are used if you have a long document consisting of several
40528 larger parts or sections.
40529 For maintenance it is often useful and sometimes even required to split
40530 the document into several files that can be revised separately.
40531 The different documents are then the so called
40532 \begin_inset Quotes eld
40536 \begin_inset Quotes erd
40539 , and a master document connects them to print the full document or parts
40541 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40543 the bibliography, and labels for cross-references.
40546 \begin_layout Standard
40547 To be able to work on child documents without the need to open their master,
40548 specify in the child document the master in the menu
40550 Document\SpecialChar menuseparator
40551 Settings\SpecialChar menuseparator
40553 \begin_inset space ~
40559 This master document will then be used in the background by \SpecialChar LyX
40561 the child document.
40564 \begin_layout Standard
40565 Included documents are displayed in \SpecialChar LyX
40566 as a box like this:
40567 \begin_inset Graphics
40568 filename clipart/ChildDocument.png
40570 scaleBeforeRotation
40574 To include child documents in a master document use the menu
40576 Insert\SpecialChar menuseparator
40577 File\SpecialChar menuseparator
40579 \begin_inset space ~
40585 A dialog pops up where you can choose between four include methods:
40588 \begin_layout Description
40589 Include You can include \SpecialChar LyX
40590 and \SpecialChar LaTeX
40600 dialog, the included document will be opened in \SpecialChar LyX
40601 in a new file tab so that
40603 \begin_inset Newline newline
40609 \begin_layout Standard
40610 Here is a child document inserted using
40615 \begin_inset CommandInset include
40616 LatexCommand include
40617 filename "DummyDocument1.lyx"
40624 \begin_layout Standard
40625 The section numbering includes the sections of the included files in the
40626 order they are inserted in the master document.
40627 The included example document has for example a subsection that is numbered
40628 as a subsection of this section.
40629 Labels of included documents can be referenced: Subsection
40630 \begin_inset space ~
40634 \begin_inset CommandInset ref
40636 reference "subsec:External-Subsection-1"
40643 \begin_layout Standard
40644 The preamble of the child document is ignored; only the preamble of the
40645 master document is used.
40646 Branches in child documents will be ignored by the master document when
40647 the master document does not have a branch with the same name.
40648 Included documents are inserted starting on a new page and ending with
40652 \begin_layout Standard
40653 \begin_inset Note Greyedout
40656 \begin_layout Plain Layout
40661 If you have included a \SpecialChar LyX
40662 or \SpecialChar LaTeX
40663 file, you are warned when you export/view the
40664 document in case the child document uses another document class than the
40665 master document as this will lead to unexpected outputs.
40673 \begin_layout Description
40674 Input This method is very similar to the Include method.
40675 The differences are:
40679 \begin_layout Itemize
40680 Input files don't start with a new page and don't end with a page break.
40683 \begin_layout Itemize
40684 Input files can be previewed in \SpecialChar LyX
40688 \begin_inset space ~
40693 is enabled in \SpecialChar LyX
40694 's preferences under
40697 \begin_inset space ~
40701 \begin_inset space ~
40704 feel\SpecialChar menuseparator
40710 \begin_layout Itemize
40711 You cannot exclude Input files via the menu
40713 Document\SpecialChar menuseparator
40714 Settings\SpecialChar menuseparator
40721 \begin_layout Standard
40722 Here is a child document inserted using
40727 \begin_inset CommandInset include
40729 filename "DummyDocument2.lyx"
40736 \begin_layout Description
40737 Verbatim With this method any text file can be included.
40738 The file is shown in the output with its source code; no command used in
40739 the text is invoked.
40740 You can use the option
40742 Mark spaces in output
40744 that displays the character
40745 \begin_inset Quotes eld
40752 \begin_layout Plain Layout
40762 \begin_inset Quotes erd
40765 for every space character in the source code.
40766 The difference from the method via the menu
40768 Insert\SpecialChar menuseparator
40769 File\SpecialChar menuseparator
40771 \begin_inset space ~
40776 is that the document content is not shown in \SpecialChar LyX
40780 \begin_layout Standard
40781 Here is a child document inserted as Verbatim:
40782 \begin_inset CommandInset include
40783 LatexCommand verbatiminput
40784 filename "DummyTextDocument.txt"
40789 \begin_inset VSpace bigskip
40792 Here is a child document inserted as Verbatim using the
40794 Mark spaces in output
40797 \begin_inset CommandInset include
40798 LatexCommand verbatiminput*
40799 filename "DummyTextDocument.txt"
40806 \begin_layout Standard
40807 \begin_inset VSpace bigskip
40813 \begin_layout Standard
40814 \begin_inset Note Greyedout
40817 \begin_layout Plain Layout
40822 As you can see in the examples above, the text of the documents included
40827 is not broken at the end of the document lines.
40835 \begin_layout Description
40836 Listings This type is described in chapter
40837 \begin_inset space ~
40841 \begin_inset CommandInset ref
40843 reference "cha:Program-Code-Listings"
40850 \begin_layout Standard
40851 \begin_inset Note Greyedout
40854 \begin_layout Plain Layout
40859 Including the same document twice in a document using different methods
40860 could cause \SpecialChar LaTeX
40869 \begin_layout Standard
40870 If you want to view/export only selected children of your master document,
40871 either because you want to save compiling time or because you want to distribut
40872 e single chapters of the book you are just writing, you can exclude children
40874 This is done via the menu
40876 Document\SpecialChar menuseparator
40877 Settings\SpecialChar menuseparator
40881 You can exclude\SpecialChar breakableslash
40882 include children by double-clicking on the
40886 column of the respective child document in the list (note that this only
40887 works for documents embedded via
40888 \begin_inset Quotes eld
40892 \begin_inset Quotes erd
40896 \begin_inset Quotes eld
40900 \begin_inset Quotes erd
40906 Maintain counters and references
40908 is enabled, \SpecialChar LyX
40909 will assure that all page numbers, references etc.
40910 \begin_inset space ~
40913 are correct as if the whole document was processed.
40914 This is useful if you want the selected sub-documents to look exactly as
40915 in the context of the whole document.
40916 However, \SpecialChar LyX
40917 needs to process the whole document in the background for this
40919 So if you want to save compile time and if counters and references do not
40920 need to be correct, disable this checkbox.
40923 \begin_layout Standard
40924 Alternatively, you can put each included file into a branch.
40928 \begin_layout Plain Layout
40929 Branches are described in section
40933 of the \SpecialChar LyX
40943 By enabling\SpecialChar breakableslash
40944 disabling branches you can decide which included files will
40945 appear in the output.
40946 This has the advantage that it also works with Input'ed sub-documents.
40947 However, counters and references will not be maintained with this approach.
40950 \begin_layout Chapter
40951 Program Code Listings
40952 \begin_inset CommandInset label
40954 name "cha:Program-Code-Listings"
40959 \begin_inset Index idx
40962 \begin_layout Plain Layout
40969 \begin_inset Index idx
40972 \begin_layout Plain Layout
40979 \begin_inset Index idx
40982 \begin_layout Plain Layout
40991 \begin_layout Standard
40992 To include and typeset program code you can use the
40996 inset that can be inserted via the menu
40998 Insert\SpecialChar menuseparator
41002 The \SpecialChar LaTeX
41008 \begin_inset Index idx
41011 \begin_layout Plain Layout
41013 -packages ! listings
41018 provides a powerful and flexible way to insert program source code into
41022 \begin_layout Standard
41023 Right-clicking on a listings inset opens the context menu containing where
41024 you can set the listings format.
41027 \begin_layout Standard
41028 By default, a listing starts a new paragraph in the output.
41029 The placement option
41032 \begin_inset space ~
41037 prints the listing inline like this:
41038 \begin_inset listings
41039 lstparams "language={C++}"
41043 \begin_layout Plain Layout
41051 \begin_inset Newline newline
41058 creates a listings float where you can specify the placement options
41059 \begin_inset Quotes eld
41067 \begin_inset Quotes erd
41071 \begin_inset Quotes eld
41079 \begin_inset Quotes erd
41083 \begin_inset Quotes eld
41091 \begin_inset Quotes erd
41095 \begin_inset Quotes eld
41103 \begin_inset Quotes erd
41106 corresponding to the float placement options described in section
41107 \begin_inset space ~
41111 \begin_inset CommandInset ref
41113 reference "sec:Float-Placement"
41118 The placement options can be mixed and are inserted without any separation,
41120 \begin_inset space \thinspace{}
41124 \begin_inset space \space{}
41128 \begin_inset Quotes eld
41136 \begin_inset Quotes erd
41141 \begin_inset Quotes eld
41145 \begin_inset Quotes erd
41148 has sometimes no effect, but you don't need to use the
41152 option in this case as also non-float listings can have captions and be
41156 \begin_layout Standard
41157 You can add captions to listings with the menu
41159 Insert\SpecialChar menuseparator
41163 Listings can be referenced like floats: Listing
41164 \begin_inset space ~
41168 \begin_inset CommandInset ref
41170 reference "lst:Example-Listing"
41175 A list of listings which contains all listings with captions can be created
41178 Insert\SpecialChar menuseparator
41180 \begin_inset space ~
41184 \begin_inset space ~
41187 TOC\SpecialChar menuseparator
41191 The list entries are the listing caption and the listing number.
41194 \begin_layout Standard
41195 \begin_inset listings
41196 lstparams "language=Python"
41200 \begin_layout Plain Layout
41202 \begin_inset Caption Standard
41204 \begin_layout Plain Layout
41205 \begin_inset CommandInset label
41207 name "lst:Example-Listing"
41211 Example Listing float
41216 # Example listing float
41219 \begin_layout Plain Layout
41224 \begin_layout Plain Layout
41226 'this is a python function'
41229 \begin_layout Plain Layout
41239 \begin_layout Standard
41240 When you have set a programming language in the listings dialog, the keywords
41241 of this language will be recognized and specially typeset in the output.
41242 In the example listings the Python keyword
41243 \begin_inset Quotes eld
41247 \begin_inset Quotes erd
41250 is recognized and printed bold in the output.
41253 \begin_layout Standard
41254 \begin_inset Note Greyedout
41257 \begin_layout Plain Layout
41262 If you don't get bold keywords when using typewriter fonts, your
41266 font probably doesn't provide a bold shape.
41267 In this case select a different one in the menu
41269 Document\SpecialChar menuseparator
41270 Settings\SpecialChar menuseparator
41282 provide bold shapes.)
41290 \begin_layout Standard
41294 \begin_inset space ~
41299 of the listings dialog you can specify the line numbering style.
41300 You can insert a number to specify which lines are numbered in the field
41307 \begin_inset space \thinspace{}
41311 \begin_inset space \space{}
41315 \begin_inset Quotes eld
41319 \begin_inset Quotes erd
41322 , only every 3rd line will be numbered.
41325 \begin_layout Standard
41326 You can furthermore specify a range of lines; only these will then appear
41330 Extended character table
41332 should be used when you use national characters like the German umlauts
41334 \begin_inset Newline newline
41337 Here is an example listing with left line numbering, step
41338 \begin_inset Quotes eld
41342 \begin_inset Quotes erd
41346 \begin_inset Quotes eld
41350 \begin_inset Quotes erd
41354 \begin_inset Quotes eld
41357 Extended character table
41358 \begin_inset Quotes erd
41362 \begin_inset Quotes eld
41366 \begin_inset space ~
41370 \begin_inset space ~
41374 \begin_inset Quotes erd
41378 \begin_inset space \thinspace{}
41382 \begin_inset space \thinspace{}
41388 \begin_layout Standard
41389 \begin_inset listings
41390 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41394 \begin_layout Plain Layout
41399 \begin_layout Plain Layout
41401 'this is a python function'
41404 \begin_layout Plain Layout
41409 \begin_layout Plain Layout
41414 \begin_layout Plain Layout
41416 'This is a German word: Tschüß'
41419 \begin_layout Plain Layout
41424 \begin_layout Plain Layout
41429 \begin_layout Plain Layout
41431 'this is a python function'
41434 \begin_layout Plain Layout
41444 \begin_layout Standard
41445 When you have tabulators in your listing, you can specify the number of
41446 characters that are spanned by a tabulator in the field
41449 \begin_inset space ~
41457 \begin_layout Standard
41458 \begin_inset Note Greyedout
41461 \begin_layout Plain Layout
41466 Due to a bug in the
41470 package the line numbering is shifted by a line by every previous listing.
41471 That's the reason why the lines 2 and 5 are numbered in the above listing
41472 and not the lines 3 and 6.
41480 \begin_layout Standard
41481 \begin_inset VSpace bigskip
41487 \begin_layout Standard
41488 It is also possible to print lines from a file as listing.
41489 To do this, use the menu
41491 Insert\SpecialChar menuseparator
41492 File\SpecialChar menuseparator
41495 and choose the type
41503 \begin_layout Plain Layout
41504 The other child document types are described in section
41505 \begin_inset space ~
41509 \begin_inset CommandInset ref
41511 reference "sec:Child-Documents"
41520 In the child document dialog you can specify the listing parameters in
41522 To show a list of all available parameters, type in a question mark
41523 \begin_inset Quotes eld
41527 \begin_inset Quotes erd
41533 \begin_layout Standard
41534 To reference child document listings, write a label text into the corresponding
41535 field of the child document dialog.
41536 The label can then be referenced using the menu
41538 Insert\SpecialChar menuseparator
41544 \begin_layout Standard
41546 \begin_inset space ~
41550 \begin_inset CommandInset ref
41552 reference "lst:file-listing"
41556 is an example for a listing of a file; there the lines 10
41557 \begin_inset space \thinspace{}
41561 \begin_inset space \thinspace{}
41564 15 of this \SpecialChar LyX
41568 \begin_layout Standard
41569 \begin_inset CommandInset include
41570 LatexCommand lstinputlisting
41571 filename "EmbeddedObjects.lyx"
41572 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41579 \begin_layout Standard
41580 \begin_inset VSpace bigskip
41586 \begin_layout Standard
41587 Inserting a formula into a listing can be done the following way:
41590 \begin_layout Enumerate
41591 Open the listings dialog and add
41592 \begin_inset Newline newline
41600 \begin_inset Newline newline
41603 to the field of the
41610 \begin_layout Enumerate
41611 Create a formula outside the listing
41614 \begin_layout Enumerate
41615 Copy the content of the formula (not the formula inset) to the clipboard
41625 \begin_layout Enumerate
41626 In the listing write
41627 \begin_inset Quotes eld
41635 \begin_inset Quotes erd
41638 and copy from the clipboard between the dollar-signs (shortcut
41647 \begin_layout Standard
41648 \begin_inset listings
41649 lstparams "language=Python,mathescape=true"
41653 \begin_layout Plain Layout
41655 \begin_inset Caption Standard
41657 \begin_layout Plain Layout
41658 Example Listing float containing a formula
41663 # Example listing float
41666 \begin_layout Plain Layout
41671 \begin_layout Plain Layout
41684 \begin_layout Plain Layout
41694 \begin_layout Standard
41695 \begin_inset VSpace bigskip
41701 \begin_layout Standard
41702 Global listings settings can be set in the
41704 Document\SpecialChar menuseparator
41705 Settings\SpecialChar menuseparator
41709 To get there a list of available options, type in a question mark
41710 \begin_inset Quotes eld
41714 \begin_inset Quotes erd
41720 \begin_layout Standard
41721 For more information about the
41725 package, we refer to its documentation
41726 \begin_inset CommandInset citation
41736 \begin_layout Standard
41737 \begin_inset Newpage newpage
41743 \begin_layout Chapter
41745 Units available in \SpecialChar LyX
41747 \begin_inset Index idx
41750 \begin_layout Plain Layout
41757 \begin_inset CommandInset label
41759 name "cha:Units-available-in"
41766 \begin_layout Standard
41767 To understand the units described in this documentation, Table
41768 \begin_inset space ~
41772 \begin_inset CommandInset ref
41774 reference "tab:Units"
41778 explains all units available in \SpecialChar LyX
41782 \begin_layout Standard
41783 \begin_inset Float table
41789 \begin_layout Plain Layout
41790 \begin_inset Caption Standard
41792 \begin_layout Plain Layout
41793 \begin_inset CommandInset label
41807 \begin_layout Plain Layout
41808 \begin_inset VSpace medskip
41814 \begin_layout Plain Layout
41816 \begin_inset Tabular
41817 <lyxtabular version="3" rows="20" columns="3">
41818 <features tabularvalignment="middle">
41819 <column alignment="center" valignment="top">
41820 <column alignment="center" valignment="top">
41821 <column alignment="center" valignment="top">
41823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41826 \begin_layout Plain Layout
41832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41835 \begin_layout Plain Layout
41841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41844 \begin_layout Plain Layout
41853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41856 \begin_layout Plain Layout
41862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41865 \begin_layout Plain Layout
41871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41874 \begin_layout Plain Layout
41882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41885 \begin_layout Plain Layout
41891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41894 \begin_layout Plain Layout
41900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41903 \begin_layout Plain Layout
41911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41914 \begin_layout Plain Layout
41920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41923 \begin_layout Plain Layout
41929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41932 \begin_layout Plain Layout
41940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41943 \begin_layout Plain Layout
41949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41952 \begin_layout Plain Layout
41954 \begin_inset space \thinspace{}
41958 \begin_inset space \thinspace{}
41966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41969 \begin_layout Plain Layout
41977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41980 \begin_layout Plain Layout
41986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41989 \begin_layout Plain Layout
41991 \begin_inset space \thinspace{}
41995 \begin_inset space \thinspace{}
42003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42006 \begin_layout Plain Layout
42014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42017 \begin_layout Plain Layout
42023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42026 \begin_layout Plain Layout
42027 scaled point (65536
42028 \begin_inset space \thinspace{}
42032 \begin_inset space \thinspace{}
42040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42043 \begin_layout Plain Layout
42051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42054 \begin_layout Plain Layout
42060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42063 \begin_layout Plain Layout
42065 \begin_inset space \thinspace{}
42069 \begin_inset space \thinspace{}
42077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42080 \begin_layout Plain Layout
42088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42091 \begin_layout Plain Layout
42097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42100 \begin_layout Plain Layout
42102 \begin_inset space \thinspace{}
42106 \begin_inset Formula $\approx$
42110 \begin_inset space \thinspace{}
42118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42121 \begin_layout Plain Layout
42129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42132 \begin_layout Plain Layout
42138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42141 \begin_layout Plain Layout
42143 \begin_inset space \thinspace{}
42147 \begin_inset space \thinspace{}
42155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42158 \begin_layout Plain Layout
42166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42169 \begin_layout Plain Layout
42175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42178 \begin_layout Plain Layout
42179 % of original image width
42184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42187 \begin_layout Plain Layout
42195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42198 \begin_layout Plain Layout
42204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42207 \begin_layout Plain Layout
42213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42216 \begin_layout Plain Layout
42226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42229 \begin_layout Plain Layout
42235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42238 \begin_layout Plain Layout
42244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42247 \begin_layout Plain Layout
42257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42260 \begin_layout Plain Layout
42266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42269 \begin_layout Plain Layout
42275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42278 \begin_layout Plain Layout
42288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42291 \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" rightline="true" usebox="none">
42309 \begin_layout Plain Layout
42319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42322 \begin_layout Plain Layout
42328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42331 \begin_layout Plain Layout
42337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42340 \begin_layout Plain Layout
42350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42353 \begin_layout Plain Layout
42359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42362 \begin_layout Plain Layout
42368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42371 \begin_layout Plain Layout
42381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42384 \begin_layout Plain Layout
42390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42393 \begin_layout Plain Layout
42403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42406 \begin_layout Plain Layout
42414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42417 \begin_layout Plain Layout
42423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42426 \begin_layout Plain Layout
42436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42439 \begin_layout Plain Layout
42447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42450 \begin_layout Plain Layout
42456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42459 \begin_layout Plain Layout
42461 \begin_inset space \thinspace{}
42465 \begin_inset space \thinspace{}
42473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42476 \begin_layout Plain Layout
42495 \begin_layout Chapter
42496 Output File Formats with Graphics
42497 \begin_inset CommandInset label
42499 name "cha:Output-File-Formats"
42506 \begin_layout Section
42508 \begin_inset Index idx
42511 \begin_layout Plain Layout
42518 \begin_inset Index idx
42521 \begin_layout Plain Layout
42526 \begin_layout Plain Layout
42537 \begin_layout Plain Layout
42552 \begin_layout Standard
42553 This file type has the extension
42554 \begin_inset Quotes eld
42562 \begin_inset Quotes erd
42567 \begin_inset Quotes eld
42571 \begin_inset Quotes erd
42574 (DVI), because it is completely portable; you can move them from one machine
42575 to another without needing to do any sort of conversion.
42576 At the time when this file-format was developed, this was no matter of
42578 DVIs are used for quick previews and as pre-stage for other output formats,
42582 \begin_layout Standard
42583 \begin_inset Note Greyedout
42586 \begin_layout Plain Layout
42591 DVI-files do not contain images; they will only be a linked.
42596 So don't forget this, if you move your
42600 file to another computer.
42601 This property can also slow down your computer when you view the DVI, because
42602 the DVI-viewer has to convert the image in the background to make it visible
42603 when you scroll in the DVI.
42604 So it is recommended that you use PDF for files with many images.
42607 \begin_layout Standard
42608 You can export your document to DVI by using the menu
42610 File\SpecialChar menuseparator
42611 Export\SpecialChar menuseparator
42615 You can view your document as DVI via the
42622 \begin_layout Section
42624 \begin_inset Index idx
42627 \begin_layout Plain Layout
42628 File Formats ! PostScript
42634 \begin_inset Index idx
42637 \begin_layout Plain Layout
42642 \begin_layout Plain Layout
42653 \begin_layout Plain Layout
42668 \begin_layout Standard
42669 This file type has the extension
42670 \begin_inset Quotes eld
42678 \begin_inset Quotes erd
42682 PostScript was developed by the company
42686 as a printer language.
42687 The file therefore contains commands that the printer uses to print the
42689 PostScript can be seen as a
42690 \begin_inset Quotes eld
42693 programming language
42694 \begin_inset Quotes erd
42697 ; you can calculate with it and draw diagrams and images.
42701 \begin_layout Plain Layout
42702 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42709 \begin_inset CommandInset citation
42721 Due to this ability, the files are often bigger than PDFs.
42724 \begin_layout Standard
42725 PostScript can only contain images in the format
42726 \begin_inset Quotes eld
42729 Encapsulated PostScript
42730 \begin_inset Quotes erd
42733 (EPS, file extension
42734 \begin_inset Quotes eld
42742 \begin_inset Quotes erd
42746 As \SpecialChar LyX
42747 allows you to use any known image format in your document, it has to
42748 convert images in the background to EPS.
42750 \begin_inset space ~
42754 \begin_inset space ~
42757 images in your document, \SpecialChar LyX
42759 \begin_inset space ~
42762 conversions whenever you view or export your document.
42763 This will slow down your work flow with \SpecialChar LyX
42765 So if you plan to use PostScript, you can insert your images directly as
42766 EPS to avoid this problem.
42769 \begin_layout Standard
42770 You can export your document to PostScript using the menu
42772 File\SpecialChar menuseparator
42773 Export\SpecialChar menuseparator
42777 You can view your document as PostScript via the
42784 \begin_layout Section
42786 \begin_inset Index idx
42789 \begin_layout Plain Layout
42796 \begin_inset Index idx
42799 \begin_layout Plain Layout
42808 \begin_layout Standard
42809 This file type has the extension
42810 \begin_inset Quotes eld
42818 \begin_inset Quotes erd
42823 \begin_inset Quotes eld
42826 Portable Document Format
42827 \begin_inset Quotes erd
42830 (PDF) was developed by
42834 as a derivative of PostScript.
42835 It is more compressed and it uses fewer commands than PostScript.
42837 \begin_inset Quotes eld
42841 \begin_inset Quotes erd
42844 implies, it can be processed at any computer system and the printed output
42845 looks exactly the same.
42848 \begin_layout Standard
42849 PDF can contain images in its own PDF format, in the format
42850 \begin_inset Quotes eld
42853 Joint Photographic Experts Group
42854 \begin_inset Quotes erd
42857 (JPG, file extension
42858 \begin_inset Quotes eld
42866 \begin_inset Quotes erd
42870 \begin_inset Quotes eld
42878 \begin_inset Quotes erd
42881 ), and in the format
42882 \begin_inset Quotes eld
42885 Portable Network Graphics
42886 \begin_inset Quotes erd
42889 (PNG, file extension
42890 \begin_inset Quotes eld
42898 \begin_inset Quotes erd
42902 Nevertheless you can use any other image format, because \SpecialChar LyX
42904 in the background to one of these formats.
42905 But as described in the section about PostScript, the image conversion
42906 will slow down your work flow.
42907 So it is recommended that you use images in one of the three mentioned
42911 \begin_layout Standard
42912 You can export your document to PDF via the menu
42914 File\SpecialChar menuseparator
42917 in three different ways:
42920 \begin_layout Description
42922 \begin_inset space ~
42925 (ps2pdf) This uses the program
42929 that creates a PDF from a PostScript-version of your file.
42930 The PostScript-version is produced by the program
42934 which uses a DVI-version as intermediate step.
42935 So this export variant consists of three conversions.
42938 \begin_layout Description
42940 \begin_inset space ~
42943 (dvipdfm) This uses the program
42947 that converts your file in the background to DVI and in a second step to
42951 \begin_layout Description
42953 \begin_inset space ~
42956 (pdflatex) This uses the program
42960 that converts your file directly to PDF.
42963 \begin_layout Standard
42964 It is recommended that you use
42967 \begin_inset space ~
42976 supports all features of actual PDF-versions, is quick and works stable.
42981 is not under development and therefore a bit outdated.
42984 \begin_layout Standard
42985 You can view your document as PDF via the
42989 menu or by using a toolbar button.
42992 \begin_layout Chapter
42993 List of dvips color names
42994 \begin_inset CommandInset label
42996 name "chap:List-of-dvips-colornames"
43003 \begin_layout Standard
43004 \begin_inset Tabular
43005 <lyxtabular version="3" rows="17" columns="4">
43006 <features tabularvalignment="middle">
43007 <column alignment="left" valignment="top" width="0pt">
43008 <column alignment="left" valignment="top" width="0pt">
43009 <column alignment="left" valignment="top" width="0pt">
43010 <column alignment="left" valignment="top" width="0pt">
43012 <cell alignment="left" valignment="top" usebox="none">
43015 \begin_layout Plain Layout
43019 \begin_layout Plain Layout
43032 \begin_layout Plain Layout
43043 \begin_layout Plain Layout
43055 <cell alignment="left" valignment="top" usebox="none">
43058 \begin_layout Plain Layout
43062 \begin_layout Plain Layout
43075 \begin_layout Plain Layout
43086 \begin_layout Plain Layout
43098 <cell alignment="left" valignment="top" usebox="none">
43101 \begin_layout Plain Layout
43105 \begin_layout Plain Layout
43118 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43141 <cell alignment="left" valignment="top" usebox="none">
43144 \begin_layout Plain Layout
43148 \begin_layout Plain Layout
43161 \begin_layout Plain Layout
43172 \begin_layout Plain Layout
43186 <cell alignment="center" valignment="top" usebox="none">
43189 \begin_layout Plain Layout
43193 \begin_layout Plain Layout
43206 \begin_layout Plain Layout
43214 \begin_inset Phantom Phantom
43217 \begin_layout Plain Layout
43227 \begin_layout Plain Layout
43239 <cell alignment="center" valignment="top" usebox="none">
43242 \begin_layout Plain Layout
43246 \begin_layout Plain Layout
43259 \begin_layout Plain Layout
43267 \begin_inset Phantom Phantom
43270 \begin_layout Plain Layout
43280 \begin_layout Plain Layout
43292 <cell alignment="center" valignment="top" usebox="none">
43295 \begin_layout Plain Layout
43299 \begin_layout Plain Layout
43312 \begin_layout Plain Layout
43320 \begin_inset Phantom Phantom
43323 \begin_layout Plain Layout
43333 \begin_layout Plain Layout
43345 <cell alignment="center" valignment="top" usebox="none">
43348 \begin_layout Plain Layout
43352 \begin_layout Plain Layout
43365 \begin_layout Plain Layout
43373 \begin_inset Phantom Phantom
43376 \begin_layout Plain Layout
43386 \begin_layout Plain Layout
43400 <cell alignment="left" valignment="top" usebox="none">
43403 \begin_layout Plain Layout
43407 \begin_layout Plain Layout
43420 \begin_layout Plain Layout
43428 \begin_inset Phantom Phantom
43431 \begin_layout Plain Layout
43441 \begin_layout Plain Layout
43453 <cell alignment="left" valignment="top" usebox="none">
43456 \begin_layout Plain Layout
43460 \begin_layout Plain Layout
43473 \begin_layout Plain Layout
43481 \begin_inset Phantom Phantom
43484 \begin_layout Plain Layout
43494 \begin_layout Plain Layout
43506 <cell alignment="left" valignment="top" usebox="none">
43509 \begin_layout Plain Layout
43513 \begin_layout Plain Layout
43526 \begin_layout Plain Layout
43534 \begin_inset Phantom Phantom
43537 \begin_layout Plain Layout
43547 \begin_layout Plain Layout
43559 <cell alignment="left" valignment="top" usebox="none">
43562 \begin_layout Plain Layout
43566 \begin_layout Plain Layout
43579 \begin_layout Plain Layout
43587 \begin_inset Phantom Phantom
43590 \begin_layout Plain Layout
43600 \begin_layout Plain Layout
43614 <cell alignment="left" valignment="top" usebox="none">
43617 \begin_layout Plain Layout
43621 \begin_layout Plain Layout
43634 \begin_layout Plain Layout
43642 \begin_inset Phantom Phantom
43645 \begin_layout Plain Layout
43655 \begin_layout Plain Layout
43667 <cell alignment="left" valignment="top" usebox="none">
43670 \begin_layout Plain Layout
43674 \begin_layout Plain Layout
43687 \begin_layout Plain Layout
43695 \begin_inset Phantom Phantom
43698 \begin_layout Plain Layout
43708 \begin_layout Plain Layout
43720 <cell alignment="left" valignment="top" usebox="none">
43723 \begin_layout Plain Layout
43727 \begin_layout Plain Layout
43740 \begin_layout Plain Layout
43748 \begin_inset Phantom Phantom
43751 \begin_layout Plain Layout
43761 \begin_layout Plain Layout
43773 <cell alignment="left" valignment="top" usebox="none">
43776 \begin_layout Plain Layout
43780 \begin_layout Plain Layout
43793 \begin_layout Plain Layout
43801 \begin_inset Phantom Phantom
43804 \begin_layout Plain Layout
43814 \begin_layout Plain Layout
43828 <cell alignment="left" valignment="top" usebox="none">
43831 \begin_layout Plain Layout
43835 \begin_layout Plain Layout
43848 \begin_layout Plain Layout
43856 \begin_inset Phantom Phantom
43859 \begin_layout Plain Layout
43869 \begin_layout Plain Layout
43881 <cell alignment="left" valignment="top" usebox="none">
43884 \begin_layout Plain Layout
43888 \begin_layout Plain Layout
43901 \begin_layout Plain Layout
43909 \begin_inset Phantom Phantom
43912 \begin_layout Plain Layout
43922 \begin_layout Plain Layout
43934 <cell alignment="left" valignment="top" usebox="none">
43937 \begin_layout Plain Layout
43941 \begin_layout Plain Layout
43954 \begin_layout Plain Layout
43962 \begin_inset Phantom Phantom
43965 \begin_layout Plain Layout
43975 \begin_layout Plain Layout
43987 <cell alignment="left" valignment="top" usebox="none">
43990 \begin_layout Plain Layout
43994 \begin_layout Plain Layout
44007 \begin_layout Plain Layout
44015 \begin_inset Phantom Phantom
44018 \begin_layout Plain Layout
44028 \begin_layout Plain Layout
44042 <cell alignment="left" valignment="top" usebox="none">
44045 \begin_layout Plain Layout
44049 \begin_layout Plain Layout
44062 \begin_layout Plain Layout
44070 \begin_inset Phantom Phantom
44073 \begin_layout Plain Layout
44083 \begin_layout Plain Layout
44095 <cell alignment="left" valignment="top" usebox="none">
44098 \begin_layout Plain Layout
44102 \begin_layout Plain Layout
44115 \begin_layout Plain Layout
44123 \begin_inset Phantom Phantom
44126 \begin_layout Plain Layout
44136 \begin_layout Plain Layout
44148 <cell alignment="left" valignment="top" usebox="none">
44151 \begin_layout Plain Layout
44155 \begin_layout Plain Layout
44168 \begin_layout Plain Layout
44176 \begin_inset Phantom Phantom
44179 \begin_layout Plain Layout
44189 \begin_layout Plain Layout
44201 <cell alignment="left" valignment="top" usebox="none">
44204 \begin_layout Plain Layout
44208 \begin_layout Plain Layout
44221 \begin_layout Plain Layout
44229 \begin_inset Phantom Phantom
44232 \begin_layout Plain Layout
44242 \begin_layout Plain Layout
44256 <cell alignment="center" valignment="top" usebox="none">
44259 \begin_layout Plain Layout
44263 \begin_layout Plain Layout
44276 \begin_layout Plain Layout
44284 \begin_inset Phantom Phantom
44287 \begin_layout Plain Layout
44297 \begin_layout Plain Layout
44309 <cell alignment="center" valignment="top" usebox="none">
44312 \begin_layout Plain Layout
44316 \begin_layout Plain Layout
44329 \begin_layout Plain Layout
44337 \begin_inset Phantom Phantom
44340 \begin_layout Plain Layout
44350 \begin_layout Plain Layout
44362 <cell alignment="center" valignment="top" usebox="none">
44365 \begin_layout Plain Layout
44369 \begin_layout Plain Layout
44382 \begin_layout Plain Layout
44390 \begin_inset Phantom Phantom
44393 \begin_layout Plain Layout
44403 \begin_layout Plain Layout
44415 <cell alignment="center" valignment="top" usebox="none">
44418 \begin_layout Plain Layout
44422 \begin_layout Plain Layout
44435 \begin_layout Plain Layout
44443 \begin_inset Phantom Phantom
44446 \begin_layout Plain Layout
44456 \begin_layout Plain Layout
44470 <cell alignment="left" valignment="top" usebox="none">
44473 \begin_layout Plain Layout
44477 \begin_layout Plain Layout
44490 \begin_layout Plain Layout
44498 \begin_inset Phantom Phantom
44501 \begin_layout Plain Layout
44511 \begin_layout Plain Layout
44523 <cell alignment="left" valignment="top" usebox="none">
44526 \begin_layout Plain Layout
44530 \begin_layout Plain Layout
44543 \begin_layout Plain Layout
44551 \begin_inset Phantom Phantom
44554 \begin_layout Plain Layout
44564 \begin_layout Plain Layout
44576 <cell alignment="left" valignment="top" usebox="none">
44579 \begin_layout Plain Layout
44583 \begin_layout Plain Layout
44596 \begin_layout Plain Layout
44604 \begin_inset Phantom Phantom
44607 \begin_layout Plain Layout
44617 \begin_layout Plain Layout
44629 <cell alignment="left" valignment="top" usebox="none">
44632 \begin_layout Plain Layout
44636 \begin_layout Plain Layout
44649 \begin_layout Plain Layout
44657 \begin_inset Phantom Phantom
44660 \begin_layout Plain Layout
44670 \begin_layout Plain Layout
44684 <cell alignment="left" valignment="top" usebox="none">
44687 \begin_layout Plain Layout
44691 \begin_layout Plain Layout
44704 \begin_layout Plain Layout
44712 \begin_inset Phantom Phantom
44715 \begin_layout Plain Layout
44725 \begin_layout Plain Layout
44737 <cell alignment="left" valignment="top" usebox="none">
44740 \begin_layout Plain Layout
44744 \begin_layout Plain Layout
44757 \begin_layout Plain Layout
44765 \begin_inset Phantom Phantom
44768 \begin_layout Plain Layout
44778 \begin_layout Plain Layout
44790 <cell alignment="left" valignment="top" usebox="none">
44793 \begin_layout Plain Layout
44797 \begin_layout Plain Layout
44810 \begin_layout Plain Layout
44818 \begin_inset Phantom Phantom
44821 \begin_layout Plain Layout
44831 \begin_layout Plain Layout
44843 <cell alignment="left" valignment="top" usebox="none">
44846 \begin_layout Plain Layout
44850 \begin_layout Plain Layout
44863 \begin_layout Plain Layout
44871 \begin_inset Phantom Phantom
44874 \begin_layout Plain Layout
44884 \begin_layout Plain Layout
44898 <cell alignment="left" valignment="top" usebox="none">
44901 \begin_layout Plain Layout
44905 \begin_layout Plain Layout
44918 \begin_layout Plain Layout
44926 \begin_inset Phantom Phantom
44929 \begin_layout Plain Layout
44939 \begin_layout Plain Layout
44951 <cell alignment="left" valignment="top" usebox="none">
44954 \begin_layout Plain Layout
44958 \begin_layout Plain Layout
44971 \begin_layout Plain Layout
44979 \begin_inset Phantom Phantom
44982 \begin_layout Plain Layout
44992 \begin_layout Plain Layout
45004 <cell alignment="left" valignment="top" usebox="none">
45007 \begin_layout Plain Layout
45011 \begin_layout Plain Layout
45024 \begin_layout Plain Layout
45032 \begin_inset Phantom Phantom
45035 \begin_layout Plain Layout
45045 \begin_layout Plain Layout
45057 <cell alignment="left" valignment="top" usebox="none">
45060 \begin_layout Plain Layout
45064 \begin_layout Plain Layout
45077 \begin_layout Plain Layout
45085 \begin_inset Phantom Phantom
45088 \begin_layout Plain Layout
45098 \begin_layout Plain Layout
45112 <cell alignment="left" valignment="top" usebox="none">
45115 \begin_layout Plain Layout
45119 \begin_layout Plain Layout
45132 \begin_layout Plain Layout
45140 \begin_inset Phantom Phantom
45143 \begin_layout Plain Layout
45153 \begin_layout Plain Layout
45165 <cell alignment="left" valignment="top" usebox="none">
45168 \begin_layout Plain Layout
45172 \begin_layout Plain Layout
45185 \begin_layout Plain Layout
45193 \begin_inset Phantom Phantom
45196 \begin_layout Plain Layout
45206 \begin_layout Plain Layout
45218 <cell alignment="left" valignment="top" usebox="none">
45221 \begin_layout Plain Layout
45225 \begin_layout Plain Layout
45238 \begin_layout Plain Layout
45246 \begin_inset Phantom Phantom
45249 \begin_layout Plain Layout
45259 \begin_layout Plain Layout
45271 <cell alignment="left" valignment="top" usebox="none">
45274 \begin_layout Plain Layout
45278 \begin_layout Plain Layout
45291 \begin_layout Plain Layout
45299 \begin_inset Phantom Phantom
45302 \begin_layout Plain Layout
45312 \begin_layout Plain Layout
45326 <cell alignment="left" valignment="top" usebox="none">
45329 \begin_layout Plain Layout
45333 \begin_layout Plain Layout
45346 \begin_layout Plain Layout
45354 \begin_inset Phantom Phantom
45357 \begin_layout Plain Layout
45367 \begin_layout Plain Layout
45379 <cell alignment="left" valignment="top" usebox="none">
45382 \begin_layout Plain Layout
45386 \begin_layout Plain Layout
45399 \begin_layout Plain Layout
45407 \begin_inset Phantom Phantom
45410 \begin_layout Plain Layout
45420 \begin_layout Plain Layout
45432 <cell alignment="left" valignment="top" usebox="none">
45435 \begin_layout Plain Layout
45439 \begin_layout Plain Layout
45452 \begin_layout Plain Layout
45460 \begin_inset Phantom Phantom
45463 \begin_layout Plain Layout
45473 \begin_layout Plain Layout
45485 <cell alignment="left" valignment="top" usebox="none">
45488 \begin_layout Plain Layout
45492 \begin_layout Plain Layout
45505 \begin_layout Plain Layout
45513 \begin_inset Phantom Phantom
45516 \begin_layout Plain Layout
45526 \begin_layout Plain Layout
45540 <cell alignment="left" valignment="top" usebox="none">
45543 \begin_layout Plain Layout
45547 \begin_layout Plain Layout
45560 \begin_layout Plain Layout
45568 \begin_inset Phantom Phantom
45571 \begin_layout Plain Layout
45581 \begin_layout Plain Layout
45593 <cell alignment="left" valignment="top" usebox="none">
45596 \begin_layout Plain Layout
45600 \begin_layout Plain Layout
45613 \begin_layout Plain Layout
45621 \begin_inset Phantom Phantom
45624 \begin_layout Plain Layout
45634 \begin_layout Plain Layout
45646 <cell alignment="left" valignment="top" usebox="none">
45649 \begin_layout Plain Layout
45653 \begin_layout Plain Layout
45666 \begin_layout Plain Layout
45674 \begin_inset Phantom Phantom
45677 \begin_layout Plain Layout
45687 \begin_layout Plain Layout
45699 <cell alignment="left" valignment="top" usebox="none">
45702 \begin_layout Plain Layout
45706 \begin_layout Plain Layout
45719 \begin_layout Plain Layout
45727 \begin_inset Phantom Phantom
45730 \begin_layout Plain Layout
45740 \begin_layout Plain Layout
45754 <cell alignment="left" valignment="top" usebox="none">
45757 \begin_layout Plain Layout
45761 \begin_layout Plain Layout
45774 \begin_layout Plain Layout
45782 \begin_inset Phantom Phantom
45785 \begin_layout Plain Layout
45795 \begin_layout Plain Layout
45807 <cell alignment="left" valignment="top" usebox="none">
45810 \begin_layout Plain Layout
45814 \begin_layout Plain Layout
45827 \begin_layout Plain Layout
45835 \begin_inset Phantom Phantom
45838 \begin_layout Plain Layout
45848 \begin_layout Plain Layout
45860 <cell alignment="left" valignment="top" usebox="none">
45863 \begin_layout Plain Layout
45867 \begin_layout Plain Layout
45880 \begin_layout Plain Layout
45888 \begin_inset Phantom Phantom
45891 \begin_layout Plain Layout
45901 \begin_layout Plain Layout
45913 <cell alignment="left" valignment="top" usebox="none">
45916 \begin_layout Plain Layout
45920 \begin_layout Plain Layout
45933 \begin_layout Plain Layout
45941 \begin_inset Phantom Phantom
45944 \begin_layout Plain Layout
45954 \begin_layout Plain Layout
45968 <cell alignment="left" valignment="top" usebox="none">
45971 \begin_layout Plain Layout
45975 \begin_layout Plain Layout
45988 \begin_layout Plain Layout
45996 \begin_inset Phantom Phantom
45999 \begin_layout Plain Layout
46009 \begin_layout Plain Layout
46021 <cell alignment="left" valignment="top" usebox="none">
46024 \begin_layout Plain Layout
46028 \begin_layout Plain Layout
46041 \begin_layout Plain Layout
46049 \begin_inset Phantom Phantom
46052 \begin_layout Plain Layout
46062 \begin_layout Plain Layout
46074 <cell alignment="left" valignment="top" usebox="none">
46077 \begin_layout Plain Layout
46081 \begin_layout Plain Layout
46094 \begin_layout Plain Layout
46102 \begin_inset Phantom Phantom
46105 \begin_layout Plain Layout
46115 \begin_layout Plain Layout
46127 <cell alignment="left" valignment="top" usebox="none">
46130 \begin_layout Plain Layout
46134 \begin_layout Plain Layout
46147 \begin_layout Plain Layout
46155 \begin_inset Phantom Phantom
46158 \begin_layout Plain Layout
46168 \begin_layout Plain Layout
46182 <cell alignment="left" valignment="top" usebox="none">
46185 \begin_layout Plain Layout
46189 \begin_layout Plain Layout
46202 \begin_layout Plain Layout
46210 \begin_inset Phantom Phantom
46213 \begin_layout Plain Layout
46223 \begin_layout Plain Layout
46235 <cell alignment="left" valignment="top" usebox="none">
46238 \begin_layout Plain Layout
46242 \begin_layout Plain Layout
46255 \begin_layout Plain Layout
46263 \begin_inset Phantom Phantom
46266 \begin_layout Plain Layout
46276 \begin_layout Plain Layout
46288 <cell alignment="left" valignment="top" usebox="none">
46291 \begin_layout Plain Layout
46295 \begin_layout Plain Layout
46308 \begin_layout Plain Layout
46316 \begin_inset Phantom Phantom
46319 \begin_layout Plain Layout
46329 \begin_layout Plain Layout
46341 <cell alignment="left" valignment="top" usebox="none">
46344 \begin_layout Plain Layout
46348 \begin_layout Plain Layout
46361 \begin_layout Plain Layout
46369 \begin_inset Phantom Phantom
46372 \begin_layout Plain Layout
46382 \begin_layout Plain Layout
46396 <cell alignment="left" valignment="top" usebox="none">
46399 \begin_layout Plain Layout
46403 \begin_layout Plain Layout
46416 \begin_layout Plain Layout
46424 \begin_inset Phantom Phantom
46427 \begin_layout Plain Layout
46437 \begin_layout Plain Layout
46449 <cell alignment="left" valignment="top" usebox="none">
46452 \begin_layout Plain Layout
46458 <cell alignment="left" valignment="top" usebox="none">
46461 \begin_layout Plain Layout
46467 <cell alignment="left" valignment="top" usebox="none">
46470 \begin_layout Plain Layout
46484 \begin_layout Chapter
46485 Explanation of Equation
46486 \begin_inset space ~
46490 \begin_inset CommandInset ref
46497 \begin_inset CommandInset label
46499 name "cha:Explanation-of-Equation"
46506 \begin_layout Standard
46507 We can calculate the total width of
46512 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46516 \begin_inset Formula
46518 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46524 \begin_inset Formula $W_{g\,n}$
46527 is the given width of all cells,
46533 is the \SpecialChar LaTeX
46534 -length between the cell text and the cell border (its default value
46536 \begin_inset space \thinspace{}
46546 is the thickness of the cell border line, the default is 0.4
46547 \begin_inset space \thinspace{}
46553 \begin_layout Standard
46555 \begin_inset space ~
46559 \begin_inset CommandInset ref
46561 reference "eq:Wtot_n"
46565 , the total width of a multicolumn
46566 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46570 \begin_inset Formula
46572 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46580 \begin_layout Standard
46581 By setting equation
46582 \begin_inset space ~
46586 \begin_inset CommandInset ref
46588 reference "eq:Wtot_n"
46593 \begin_inset CommandInset ref
46595 reference "eq:Wtot_mult"
46599 equal we can calculate the needed given width
46600 \begin_inset Formula $W_{g\,n}$
46607 columns are spanned, so that each column has a total width of
46608 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46612 \begin_inset Formula
46614 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46622 \begin_layout Bibliography
46623 \begin_inset CommandInset bibitem
46624 LatexCommand bibitem
46625 key "latexcompanion"
46630 Frank Mittelbach and Michel Goossens:
46632 The \SpecialChar LaTeX
46633 Companion Second Edition.
46636 Addison-Wesley, 2004
46639 \begin_layout Bibliography
46640 \begin_inset CommandInset bibitem
46641 LatexCommand bibitem
46647 Helmut Kopka and Patrick W.
46650 A Guide to \SpecialChar LaTeX
46654 Addison-Wesley, 2003
46657 \begin_layout Bibliography
46658 \begin_inset CommandInset bibitem
46659 LatexCommand bibitem
46668 : A Document Preparation System.
46671 Addison-Wesley, second edition, 1994
46674 \begin_layout Bibliography
46675 \begin_inset CommandInset bibitem
46676 LatexCommand bibitem
46682 Documentation of the \SpecialChar LaTeX
46686 \begin_inset CommandInset href
46689 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46697 \begin_inset Index idx
46700 \begin_layout Plain Layout
46702 -packages ! arydshln
46710 \begin_layout Bibliography
46711 \begin_inset CommandInset bibitem
46712 LatexCommand bibitem
46718 Documentation of the \SpecialChar LaTeX
46722 \begin_inset CommandInset href
46725 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46733 \begin_inset Index idx
46736 \begin_layout Plain Layout
46738 -packages ! booktabs
46746 \begin_layout Bibliography
46747 \begin_inset CommandInset bibitem
46748 LatexCommand bibitem
46754 Documentation of the \SpecialChar LaTeX
46758 \begin_inset CommandInset href
46761 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46769 \begin_inset Index idx
46772 \begin_layout Plain Layout
46774 -packages ! caption
46782 \begin_layout Bibliography
46783 \begin_inset CommandInset bibitem
46784 LatexCommand bibitem
46790 Documentation of the \SpecialChar LaTeX
46794 \begin_inset CommandInset href
46797 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46805 \begin_inset Index idx
46808 \begin_layout Plain Layout
46810 -packages ! diagbox
46818 \begin_layout Bibliography
46819 \begin_inset CommandInset bibitem
46820 LatexCommand bibitem
46826 Documentation of the \SpecialChar LaTeX
46830 \begin_inset CommandInset href
46833 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46841 \begin_inset Index idx
46844 \begin_layout Plain Layout
46846 -packages ! endfloat
46854 \begin_layout Bibliography
46855 \begin_inset CommandInset bibitem
46856 LatexCommand bibitem
46862 Documentation of the \SpecialChar LaTeX
46866 \begin_inset CommandInset href
46869 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46877 \begin_inset Index idx
46880 \begin_layout Plain Layout
46882 -packages ! footmisc
46890 \begin_layout Bibliography
46891 \begin_inset CommandInset bibitem
46892 LatexCommand bibitem
46898 Documentation of the \SpecialChar LaTeX
46902 \begin_inset CommandInset href
46905 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46913 \begin_inset Index idx
46916 \begin_layout Plain Layout
46918 -packages ! hyperref
46926 \begin_layout Bibliography
46927 \begin_inset CommandInset bibitem
46928 LatexCommand bibitem
46934 Documentation of the \SpecialChar LaTeX
46938 \begin_inset CommandInset href
46941 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46949 \begin_inset Index idx
46952 \begin_layout Plain Layout
46954 -packages ! hyperref
46962 \begin_layout Bibliography
46963 \begin_inset CommandInset bibitem
46964 LatexCommand bibitem
46970 Documentation of the \SpecialChar LaTeX
46974 \begin_inset CommandInset href
46977 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46985 \begin_inset Index idx
46988 \begin_layout Plain Layout
46990 -packages ! KOMA-Script
46998 \begin_layout Bibliography
46999 \begin_inset CommandInset bibitem
47000 LatexCommand bibitem
47006 Documentation of the \SpecialChar LaTeX
47010 \begin_inset CommandInset href
47013 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
47021 \begin_inset CommandInset href
47024 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
47030 \begin_inset Index idx
47033 \begin_layout Plain Layout
47035 -packages ! lettrine
47043 \begin_layout Bibliography
47044 \begin_inset CommandInset bibitem
47045 LatexCommand bibitem
47051 Documentation of the \SpecialChar LaTeX
47055 \begin_inset CommandInset href
47058 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
47066 \begin_inset Index idx
47069 \begin_layout Plain Layout
47071 -packages ! listings
47079 \begin_layout Bibliography
47080 \begin_inset CommandInset bibitem
47081 LatexCommand bibitem
47087 Documentation of the \SpecialChar LaTeX
47091 \begin_inset CommandInset href
47094 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
47102 \begin_inset Index idx
47105 \begin_layout Plain Layout
47107 -packages ! marginnote
47115 \begin_layout Bibliography
47116 \begin_inset CommandInset bibitem
47117 LatexCommand bibitem
47123 Documentation of the \SpecialChar LaTeX
47127 \begin_inset CommandInset href
47130 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47138 \begin_inset Index idx
47141 \begin_layout Plain Layout
47143 -packages ! pdfpages
47151 \begin_layout Bibliography
47152 \begin_inset CommandInset bibitem
47153 LatexCommand bibitem
47159 Documentation of the \SpecialChar LaTeX
47163 \begin_inset CommandInset href
47166 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47174 \begin_inset Index idx
47177 \begin_layout Plain Layout
47179 -packages ! prettyref
47187 \begin_layout Bibliography
47188 \begin_inset CommandInset bibitem
47189 LatexCommand bibitem
47195 Web page of the \SpecialChar LaTeX
47199 \begin_inset CommandInset href
47202 target "http://tug.org/PSTricks/"
47210 \begin_inset Index idx
47213 \begin_layout Plain Layout
47215 -packages ! PSTricks
47223 \begin_layout Bibliography
47224 \begin_inset CommandInset bibitem
47225 LatexCommand bibitem
47231 Documentation of the \SpecialChar LaTeX
47235 \begin_inset CommandInset href
47238 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47246 \begin_inset Index idx
47249 \begin_layout Plain Layout
47251 -packages ! refstyle
47259 \begin_layout Bibliography
47260 \begin_inset CommandInset bibitem
47261 LatexCommand bibitem
47267 Documentation of the \SpecialChar LaTeX
47271 \begin_inset CommandInset href
47274 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47282 \begin_inset Index idx
47285 \begin_layout Plain Layout
47287 -packages ! sidecap
47295 \begin_layout Bibliography
47296 \begin_inset CommandInset bibitem
47297 LatexCommand bibitem
47304 \begin_inset CommandInset href
47307 target "http://wiki.lyx.org/LyX/NewInLyX20"
47312 about new features in
47320 \begin_layout Standard
47321 \begin_inset CommandInset index_print
47322 LatexCommand printindex