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
220 \notefontcolor #0000ff
227 \paragraph_separation skip
230 \math_numbering_side default
231 \quotes_style english
235 \paperpagestyle default
236 \tracking_changes true
237 \output_changes false
240 \html_be_strict false
248 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
252 by the \SpecialChar LyX
257 \begin_layout Plain Layout
259 If you have comments or error corrections, please send them to the \SpecialChar LyX
262 \begin_inset CommandInset href
264 name "lyx-docs@lists.lyx.org"
265 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
277 \begin_inset Note Note
280 \begin_layout Plain Layout
287 \begin_inset Newline newline
291 \begin_inset Newline newline
299 \begin_layout Standard
300 \begin_inset CommandInset toc
301 LatexCommand tableofcontents
308 \begin_layout Standard
309 \begin_inset Note Note
312 \begin_layout Plain Layout
313 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
324 diagbox, lettrine, marginnote, picinpar
331 If they are not installed you can export the document anyway but the sections
332 where the packages are required won't appear in the output.
335 \begin_layout Plain Layout
336 The latest PDF-version of this document can be found here:
337 \begin_inset Newline newline
342 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/2D-intensity-plot.pdf
28284 scaleBeforeRotation
28291 \begin_layout Plain Layout
28292 \begin_inset Caption Standard
28294 \begin_layout Plain Layout
28295 \begin_inset CommandInset label
28297 name "fig:Float-left"
28301 Float on the left side.
28312 \begin_inset space \hfill{}
28316 \begin_inset Box Frameless
28326 height_special "totalheight"
28331 backgroundcolor "none"
28334 \begin_layout Plain Layout
28336 \begin_inset Graphics
28337 filename clipart/Star-structure.pdf
28339 scaleBeforeRotation
28346 \begin_layout Plain Layout
28347 \begin_inset Caption Standard
28349 \begin_layout Plain Layout
28350 \begin_inset CommandInset label
28352 name "fig:Float-right"
28356 Float on the right side.
28374 \begin_layout Standard
28375 An alternative and simpler solution is to use the module
28377 Variable-width Minipages
28380 \begin_inset space \thinspace{}
28384 \begin_inset CommandInset ref
28386 reference "sec:Minipages"
28391 Variable-width minipages adapt automatically to the width of the figures
28393 They do not require an explicit width to be given, and they improve the
28394 horizontal alignment of the figures.
28395 The LyX example file
28397 varwidth-floats-side-by-side
28399 gives examples of how to do this.
28402 \begin_layout Section
28404 \begin_inset Index idx
28407 \begin_layout Plain Layout
28408 Caption ! Formatting
28414 \begin_inset Index idx
28417 \begin_layout Plain Layout
28418 Floats ! Caption Formatting
28424 \begin_inset CommandInset label
28426 name "sec:Caption-Formatting"
28433 \begin_layout Standard
28438 environment is the default paragraph environment for
28443 On the \SpecialChar LyX
28444 screen captions appear as a label, e.
28445 \begin_inset space \thinspace{}
28449 \begin_inset space \space{}
28453 \begin_inset Quotes eld
28461 \begin_inset Quotes erd
28464 followed by the caption text.
28466 \begin_inset Quotes eld
28470 \begin_inset Quotes erd
28473 is the actual reference number.
28474 By default the label and the number are in the same font as the caption
28475 text and a colon follows the number to divide the label from the text.
28476 This caption format is suitable for many but not all documents.
28480 \begin_layout Standard
28481 To change the default caption format, load the \SpecialChar LaTeX
28487 \begin_inset Index idx
28490 \begin_layout Plain Layout
28492 -packages ! caption
28497 in the document preamble with this line:
28500 \begin_layout Standard
28505 usepackage[format definition]{caption}
28508 \begin_layout Standard
28509 To have for example the label and the number in sans-serif, bold font and
28510 the table captions always above the table as in this document, use the
28514 \begin_layout Standard
28519 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28522 \begin_layout Standard
28523 You can also define different caption formats for the different float types.
28524 In this case load the
28528 package without format specific options and define the different formats
28529 with the help of the command
28532 \begin_layout Standard
28537 captionsetup[float type]{format definition}
28540 \begin_layout Standard
28541 in the document preamble.
28542 For example the caption formats of Figure
28543 \begin_inset space ~
28547 \begin_inset CommandInset ref
28549 reference "fig:This-is-an-fig"
28554 \begin_inset space ~
28558 \begin_inset CommandInset ref
28560 reference "tab:This-is-an-tab"
28564 can be created using these commands in the document preamble:
28567 \begin_layout Standard
28572 usepackage[tableposition=top]{caption}
28575 \begin_inset Newline newline
28582 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28583 \begin_inset Newline newline
28587 \begin_inset Phantom HPhantom
28590 \begin_layout Plain Layout
28595 captionsetup[figure]{
28601 \begin_inset Newline newline
28606 captionsetup[table]{labelfont={bf,sf}}
28609 \begin_layout Standard
28610 \begin_inset Note Greyedout
28613 \begin_layout Plain Layout
28622 has no effect when a
28627 \begin_inset Index idx
28630 \begin_layout Plain Layout
28632 -packages ! KOMA-Script
28637 document class is used.
28638 In this case the document class option
28640 captions=tableheading
28650 \begin_layout Standard
28651 For more information about the package
28655 we refer to its documentation
28656 \begin_inset CommandInset citation
28666 \begin_layout Standard
28667 To change the label name from e.
28668 \begin_inset space \thinspace{}
28672 \begin_inset space \space{}
28676 \begin_inset Quotes eld
28680 \begin_inset Quotes erd
28684 \begin_inset Quotes eld
28688 \begin_inset Quotes erd
28691 use this preamble command:
28694 \begin_layout Standard
28701 fnum@figure}{Image~
28706 \begin_layout Standard
28713 inserts the figure number and
28716 \begin_inset Quotes eld
28722 \begin_inset Quotes erd
28725 creates a protected space.
28728 \begin_layout Standard
28729 \begin_inset VSpace bigskip
28737 \begin_inset Index idx
28740 \begin_layout Plain Layout
28742 -packages ! KOMA-Script
28749 article (KOMA-Script)
28757 letter (KOMA-Script)
28761 report (KOMA-Script)
28764 \begin_inset space \thinspace{}
28767 ), you can alternatively to the
28775 's built-in command
28782 For example, to have the caption label in bold, add this command to your
28786 \begin_layout Standard
28791 setkomafont{captionlabel}{
28796 \begin_layout Standard
28797 For more information about
28808 \begin_inset CommandInset citation
28818 \begin_layout Standard
28822 \begin_layout Plain Layout
28826 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28833 \begin_inset Note Note
28836 \begin_layout Plain Layout
28837 The caption format is changed only for this example.
28845 \begin_layout Standard
28846 \begin_inset Float figure
28852 \begin_layout Plain Layout
28854 \begin_inset Graphics
28855 filename clipart/2D-intensity-plot.pdf
28856 scaleBeforeRotation
28863 \begin_layout Plain Layout
28864 \begin_inset Caption Standard
28866 \begin_layout Plain Layout
28867 \begin_inset CommandInset label
28869 name "fig:This-is-an-fig"
28873 This is an example figure caption that is longer than one line to show the
28874 different caption format.
28875 Here a self-defined caption format is used.
28888 \begin_layout Standard
28892 \begin_layout Plain Layout
28896 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28905 \begin_layout Standard
28906 \begin_inset Float table
28912 \begin_layout Plain Layout
28913 \begin_inset Caption Standard
28915 \begin_layout Plain Layout
28916 \begin_inset CommandInset label
28918 name "tab:This-is-an-tab"
28922 This is an example table caption that is longer than one line to show the
28923 different caption format.
28924 Here the standard caption format for tables in this document is used.
28932 \begin_layout Plain Layout
28934 \begin_inset Tabular
28935 <lyxtabular version="3" rows="1" columns="5">
28936 <features tabularvalignment="middle">
28937 <column alignment="center" valignment="top">
28938 <column alignment="center" valignment="top">
28939 <column alignment="center" valignment="top">
28940 <column alignment="center" valignment="top">
28941 <column alignment="center" valignment="top">
28943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28946 \begin_layout Plain Layout
28952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28955 \begin_layout Plain Layout
28961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28964 \begin_layout Plain Layout
28970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28973 \begin_layout Plain Layout
28979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28982 \begin_layout Plain Layout
29001 \begin_layout Section
29003 \begin_inset Index idx
29006 \begin_layout Plain Layout
29007 Caption ! Placement
29013 \begin_inset Index idx
29016 \begin_layout Plain Layout
29017 Floats ! Caption Placement
29023 \begin_inset CommandInset label
29025 name "sec:Caption-Placement"
29032 \begin_layout Standard
29033 The common caption placement rule is:
29036 \begin_layout Description
29037 Figure: Caption is set below the figure
29040 \begin_layout Description
29041 Table: Caption is set above the table
29044 \begin_layout Standard
29045 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
29048 That means if you are using the document classes
29064 there will be no space between the caption and the table.
29065 To insert the necessary space, load the \SpecialChar LaTeX
29071 \begin_inset Index idx
29074 \begin_layout Plain Layout
29076 -packages ! caption
29081 in your document preamble with the option
29085 \begin_layout Plain Layout
29087 \begin_inset space ~
29091 \begin_inset CommandInset ref
29093 reference "sec:Caption-Formatting"
29097 for more information of the package
29109 \begin_layout Standard
29115 \begin_layout Standard
29121 \begin_inset Index idx
29124 \begin_layout Plain Layout
29126 -packages ! KOMA-Script
29133 article (KOMA-Script)
29141 letter (KOMA-Script)
29145 report (KOMA-Script)
29148 \begin_inset space \thinspace{}
29151 ), you can alternatively to the
29155 package set the document class option
29159 \begin_layout Plain Layout
29160 That option is used in this document.
29168 \begin_layout Standard
29171 captions=tableheading
29174 \begin_layout Standard
29175 In documents with a KOMA-Script document class you can also right-click
29176 on a caption and mark in the context menu if this should be a caption above
29177 or below the table/figure.
29178 This way you can override the document-wide caption placement for certain
29181 \begin_inset space ~
29185 \begin_inset CommandInset ref
29187 reference "tab:A-caption-marked"
29191 is an example where the caption is marked a being below the table while
29193 For comparison the caption in Table
29194 \begin_inset space ~
29198 \begin_inset CommandInset ref
29200 reference "tab:A-standard-table"
29207 \begin_layout Standard
29208 \begin_inset Float table
29213 \begin_layout Plain Layout
29214 \begin_inset Caption Below
29216 \begin_layout Plain Layout
29217 \begin_inset CommandInset label
29219 name "tab:A-caption-marked"
29223 A caption marked as being below the table.
29231 \begin_layout Plain Layout
29233 \begin_inset Tabular
29234 <lyxtabular version="3" rows="3" columns="3">
29235 <features tabularvalignment="middle">
29236 <column alignment="center" valignment="top" width="0pt">
29237 <column alignment="center" valignment="top" width="0pt">
29238 <column alignment="center" valignment="top" width="0pt">
29240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29243 \begin_layout Plain Layout
29249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29252 \begin_layout Plain Layout
29258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29261 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29272 \begin_layout Plain Layout
29278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29281 \begin_layout Plain Layout
29287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29290 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29302 \begin_inset Formula $\int x^{2}dx$
29310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29313 \begin_layout Plain Layout
29314 \begin_inset Formula $\left[\begin{array}{cc}
29317 \end{array}\right]$
29325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29328 \begin_layout Plain Layout
29329 \begin_inset Formula $1+1=2$
29350 \begin_layout Standard
29351 \begin_inset Float table
29356 \begin_layout Plain Layout
29357 \begin_inset Caption Standard
29359 \begin_layout Plain Layout
29360 \begin_inset CommandInset label
29362 name "tab:A-standard-table"
29366 A standard table caption.
29374 \begin_layout Plain Layout
29376 \begin_inset Tabular
29377 <lyxtabular version="3" rows="3" columns="3">
29378 <features tabularvalignment="middle">
29379 <column alignment="center" valignment="top" width="0pt">
29380 <column alignment="center" valignment="top" width="0pt">
29381 <column alignment="center" valignment="top" width="0pt">
29383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29386 \begin_layout Plain Layout
29392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29395 \begin_layout Plain Layout
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29404 \begin_layout Plain Layout
29412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29415 \begin_layout Plain Layout
29421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29424 \begin_layout Plain Layout
29430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29433 \begin_layout Plain Layout
29441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29444 \begin_layout Plain Layout
29445 \begin_inset Formula $\int x^{2}dx$
29453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29456 \begin_layout Plain Layout
29457 \begin_inset Formula $\left[\begin{array}{cc}
29460 \end{array}\right]$
29468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29471 \begin_layout Plain Layout
29472 \begin_inset Formula $1+1=2$
29493 \begin_layout Standard
29494 \begin_inset VSpace bigskip
29497 It is also possible to set the caption beside a figure or table.
29498 To get this the \SpecialChar LaTeX
29504 \begin_inset Index idx
29507 \begin_layout Plain Layout
29509 -packages ! sidecap
29514 has to be loaded in the document preamble with the line
29517 \begin_layout Standard
29522 usepackage[option]{sidecap}
29525 \begin_layout Standard
29526 If you set no option, the caption is placed on the side of the outer page
29527 margin – to the right on odd pages, to the left on even pages.
29528 You can change the placement to inner margin with the option
29533 To force the placement always to the right or left, use the option
29544 \begin_layout Standard
29548 \begin_layout Plain Layout
29558 \begin_inset Note Note
29561 \begin_layout Plain Layout
29562 The following section will only be displayed when the \SpecialChar LaTeX
29575 \begin_layout Standard
29576 To place in \SpecialChar LyX
29577 the caption of a float on the side, it is necessary to add
29578 these commands to the document preamble:
29581 \begin_layout Standard
29583 \begin_inset CommandInset line
29594 \begin_layout Standard
29601 TabBesBeg}[1][1.0]{%
29602 \begin_inset Newline newline
29606 \begin_inset Phantom HPhantom
29609 \begin_layout Plain Layout
29610 \begin_inset space ~
29625 \begin_inset Newline newline
29629 \begin_inset Phantom HPhantom
29632 \begin_layout Plain Layout
29635 \begin_inset space ~
29650 \begin_inset Newline newline
29654 \begin_inset Phantom HPhantom
29657 \begin_layout Plain Layout
29660 \begin_inset space ~
29670 renewenvironment{table}[1]{
29672 begin{SCtable}[#1]##1}{
29677 \begin_layout Standard
29685 \begin_inset Newline newline
29689 \begin_inset Phantom HPhantom
29692 \begin_layout Plain Layout
29693 \begin_inset space ~
29708 \begin_inset Newline newline
29712 \begin_inset Phantom HPhantom
29715 \begin_layout Plain Layout
29716 \begin_inset space ~
29733 \begin_layout Standard
29740 FigBesBeg}[1][1.0]{%
29741 \begin_inset Newline newline
29745 \begin_inset Phantom HPhantom
29748 \begin_layout Plain Layout
29749 \begin_inset space ~
29764 \begin_inset Newline newline
29768 \begin_inset Phantom HPhantom
29771 \begin_layout Plain Layout
29772 \begin_inset space ~
29787 \begin_inset Newline newline
29791 \begin_inset Phantom HPhantom
29794 \begin_layout Plain Layout
29795 \begin_inset space ~
29805 renewenvironment{figure}[1]{
29807 begin{SCfigure}[#1]##1}{
29812 \begin_layout Standard
29820 \begin_inset Newline newline
29824 \begin_inset Phantom HPhantom
29827 \begin_layout Plain Layout
29828 \begin_inset space ~
29843 \begin_inset Newline newline
29847 \begin_inset Phantom HPhantom
29850 \begin_layout Plain Layout
29851 \begin_inset space ~
29868 \begin_layout Standard
29870 \begin_inset CommandInset line
29881 \begin_layout Standard
29882 The commands allow you to redefine the floats so that the caption is set
29884 For figure floats use the command
29887 \begin_layout Standard
29895 \begin_layout Standard
29896 in \SpecialChar TeX
29897 Code before the float.
29898 And insert the command
29901 \begin_layout Standard
29909 \begin_layout Standard
29910 in \SpecialChar TeX
29911 Code at the point where you want to get back to the original float definitio
29915 \begin_layout Standard
29916 For table floats use the corresponding commands
29919 \begin_layout Standard
29933 \begin_layout Standard
29935 \begin_inset space ~
29939 \begin_inset CommandInset ref
29941 reference "fig:cap-beside-fig"
29946 \begin_inset space ~
29950 \begin_inset CommandInset ref
29952 reference "tab:cap-beside-tab"
29956 are examples where the caption is set beside.
29959 \begin_layout Standard
29960 You can see in the examples that the caption text appears at the top of
29961 the floats for table floats and at the bottom for figure floats.
29962 To change this, you can use the command
29965 \begin_layout Standard
29970 sidecaptionvpos{float type}{placement}
29973 \begin_layout Standard
29974 in the document preamble or in \SpecialChar TeX
29975 Code before the float.
29976 The float type is either
29984 , the placement can be
29985 \begin_inset Quotes eld
29993 \begin_inset Quotes erd
29997 \begin_inset Quotes eld
30005 \begin_inset Quotes erd
30009 \begin_inset Quotes eld
30017 \begin_inset Quotes erd
30021 To have for example the caption of figure floats vertically centered, use
30025 \begin_layout Standard
30030 sidecaptionvpos{figure}{c}
30033 \begin_layout Standard
30034 This was used for Figure
30035 \begin_inset space ~
30039 \begin_inset CommandInset ref
30041 reference "fig:cap-beside-fig-2"
30048 \begin_layout Standard
30049 \begin_inset VSpace medskip
30055 \begin_layout Standard
30056 The default caption width is the width of the image/table.
30057 For thin image/tables, like in Table
30058 \begin_inset space ~
30062 \begin_inset CommandInset ref
30064 reference "tab:cap-beside-tab"
30068 , this leads to captions that are too thin.
30069 You can increase the width by specifying a factor that will be multiplied
30070 with the image/table width to get the caption width.
30071 The caption width will automatically be recalculated in case it would protrude
30072 over the page or column margin due to the specified width.
30077 can either be given as optional argument for
30086 \begin_layout Standard
30094 \begin_layout Standard
30095 or in the definition of
30105 with another value.
30106 If you do the latter, your factor will be the default if
30112 is used without an argument.
30114 \begin_inset space ~
30118 \begin_inset CommandInset ref
30120 reference "tab:cap-beside-tab-wider"
30124 the factor 5 was used.
30127 \begin_layout Standard
30128 \begin_inset Note Greyedout
30131 \begin_layout Plain Layout
30136 For floats with captions set beside, you cannot use the float placement
30140 \begin_inset space ~
30145 because it is not supported by
30157 \begin_layout Standard
30158 \begin_inset VSpace medskip
30161 For more information about the package
30165 we refer to its documentation
30166 \begin_inset CommandInset citation
30176 \begin_layout Standard
30177 \begin_inset Note Greyedout
30180 \begin_layout Plain Layout
30185 The \SpecialChar LaTeX
30191 \begin_inset Index idx
30194 \begin_layout Plain Layout
30201 , described in section
30202 \begin_inset space ~
30206 \begin_inset CommandInset ref
30208 reference "subsec:Reference-Position"
30212 , has no effect on floats with the caption set beside.
30220 \begin_layout Standard
30224 \begin_layout Plain Layout
30236 \begin_layout Standard
30237 \begin_inset Float figure
30242 \begin_layout Plain Layout
30243 \begin_inset Graphics
30244 filename clipart/3D-structure-distort.pdf
30246 scaleBeforeRotation
30253 \begin_layout Plain Layout
30254 \begin_inset Caption Standard
30256 \begin_layout Plain Layout
30257 \begin_inset CommandInset label
30259 name "fig:cap-beside-fig"
30263 This is a caption beside a figure.
30276 \begin_layout Standard
30280 \begin_layout Plain Layout
30292 \begin_layout Standard
30296 \begin_layout Plain Layout
30308 \begin_layout Standard
30309 \begin_inset Float table
30314 \begin_layout Plain Layout
30315 \begin_inset Caption Standard
30317 \begin_layout Plain Layout
30318 \begin_inset CommandInset label
30320 name "tab:cap-beside-tab"
30324 This is a caption beside a table.
30332 \begin_layout Plain Layout
30333 \begin_inset Tabular
30334 <lyxtabular version="3" rows="4" columns="5">
30335 <features tabularvalignment="middle">
30336 <column alignment="center" valignment="top">
30337 <column alignment="center" valignment="top">
30338 <column alignment="center" valignment="top">
30339 <column alignment="center" valignment="top">
30340 <column alignment="center" valignment="top">
30342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30345 \begin_layout Plain Layout
30351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30354 \begin_layout Plain Layout
30360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30363 \begin_layout Plain Layout
30369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30372 \begin_layout Plain Layout
30378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30381 \begin_layout Plain Layout
30389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30392 \begin_layout Plain Layout
30398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30401 \begin_layout Plain Layout
30407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30410 \begin_layout Plain Layout
30416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30419 \begin_layout Plain Layout
30425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30428 \begin_layout Plain Layout
30436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30439 \begin_layout Plain Layout
30445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30448 \begin_layout Plain Layout
30454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30457 \begin_layout Plain Layout
30463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30466 \begin_layout Plain Layout
30472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30475 \begin_layout Plain Layout
30483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30486 \begin_layout Plain Layout
30492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30495 \begin_layout Plain Layout
30501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30504 \begin_layout Plain Layout
30510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30513 \begin_layout Plain Layout
30519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30522 \begin_layout Plain Layout
30541 \begin_layout Standard
30545 \begin_layout Plain Layout
30557 \begin_layout Standard
30561 \begin_layout Plain Layout
30574 \begin_layout Plain Layout
30578 sidecaptionvpos{figure}{c}
30584 \begin_inset Float figure
30589 \begin_layout Plain Layout
30590 \begin_inset Graphics
30591 filename clipart/3D-structure-distort.pdf
30593 scaleBeforeRotation
30600 \begin_layout Plain Layout
30601 \begin_inset Caption Standard
30603 \begin_layout Plain Layout
30604 \begin_inset CommandInset label
30606 name "fig:cap-beside-fig-2"
30610 This is a vertically centered caption beside a figure.
30623 \begin_layout Standard
30627 \begin_layout Plain Layout
30639 \begin_layout Standard
30643 \begin_layout Plain Layout
30655 \begin_layout Standard
30656 \begin_inset Float table
30661 \begin_layout Plain Layout
30662 \begin_inset Caption Standard
30664 \begin_layout Plain Layout
30665 \begin_inset CommandInset label
30667 name "tab:cap-beside-tab-wider"
30671 This caption is wider than the one in Table
30672 \begin_inset space ~
30676 \begin_inset CommandInset ref
30678 reference "tab:cap-beside-tab"
30690 \begin_layout Plain Layout
30691 \begin_inset Tabular
30692 <lyxtabular version="3" rows="4" columns="5">
30693 <features tabularvalignment="middle">
30694 <column alignment="center" valignment="top">
30695 <column alignment="center" valignment="top">
30696 <column alignment="center" valignment="top">
30697 <column alignment="center" valignment="top">
30698 <column alignment="center" valignment="top">
30700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30703 \begin_layout Plain Layout
30709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30712 \begin_layout Plain Layout
30718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30721 \begin_layout Plain Layout
30727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30730 \begin_layout Plain Layout
30736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30739 \begin_layout Plain Layout
30747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30750 \begin_layout Plain Layout
30756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30759 \begin_layout Plain Layout
30765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30768 \begin_layout Plain Layout
30774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30777 \begin_layout Plain Layout
30783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30786 \begin_layout Plain Layout
30794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30797 \begin_layout Plain Layout
30803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30806 \begin_layout Plain Layout
30812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30815 \begin_layout Plain Layout
30821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30824 \begin_layout Plain Layout
30830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30833 \begin_layout Plain Layout
30841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30844 \begin_layout Plain Layout
30850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30853 \begin_layout Plain Layout
30859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30862 \begin_layout Plain Layout
30868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30871 \begin_layout Plain Layout
30877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30880 \begin_layout Plain Layout
30899 \begin_layout Standard
30903 \begin_layout Plain Layout
30915 \begin_layout Standard
30919 \begin_layout Plain Layout
30929 \begin_inset Note Note
30932 \begin_layout Plain Layout
30933 The following will be displayed when the \SpecialChar LaTeX
30946 \begin_layout Standard
30947 You need to install the \SpecialChar LaTeX
30952 to see the following part of this section in the output.
30955 \begin_layout Standard
30959 \begin_layout Plain Layout
30971 \begin_layout Section
30973 \begin_inset Index idx
30976 \begin_layout Plain Layout
30977 Floats ! Float Lists
30985 \begin_layout Standard
30986 Similar to the table of contents where the sections of the document are
30987 listed, there are listings for all float types, like the figures of the
30989 You can insert them via the
30991 Insert\SpecialChar menuseparator
30993 \begin_inset space ~
30997 \begin_inset space ~
31005 \begin_layout Standard
31006 The list entries are the float captions or its short title, the float number,
31007 and the page number where they appear in the document.
31010 \begin_layout Standard
31011 You can find the list of figures and tables at the end of this document.
31014 \begin_layout Chapter
31018 \begin_layout Section
31021 \begin_inset Index idx
31024 \begin_layout Plain Layout
31025 Notes ! \SpecialChar LyX
31034 \begin_layout Standard
31035 Notes are inserted with the toolbar button
31043 Insert\SpecialChar menuseparator
31047 There are three types of notes:
31050 \begin_layout Description
31053 \begin_inset space ~
31056 Note This note type is for internal notes that won't appear in the output.
31057 Its note-box looks like this:
31058 \begin_inset Newline newline
31062 \begin_inset Newline newline
31066 \begin_inset Graphics
31067 filename clipart/LyXNoteImage.png
31069 scaleBeforeRotation
31074 \begin_inset Note Note
31077 \begin_layout Plain Layout
31078 This is text in a note box that doesn't appear in the output.
31086 \begin_layout Description
31087 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31089 when you export the document to \SpecialChar LaTeX
31092 File\SpecialChar menuseparator
31093 Export\SpecialChar menuseparator
31095 \begin_inset space ~
31098 (pdflatex) / (plain)
31101 Its note-box looks like this:
31102 \begin_inset Newline newline
31106 \begin_inset Newline newline
31110 \begin_inset Graphics
31111 filename clipart/CommentNoteImage.png
31113 scaleBeforeRotation
31118 \begin_inset Note Comment
31121 \begin_layout Plain Layout
31122 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31131 \begin_layout Description
31133 \begin_inset space ~
31136 Out This note will appear in the output as grey text.
31137 Its note-box looks like this:
31138 \begin_inset Newline newline
31142 \begin_inset Newline newline
31146 \begin_inset Graphics
31147 filename clipart/GreyedOutNoteImage.png
31149 scaleBeforeRotation
31154 \begin_inset Newline newline
31161 \begin_layout Plain Layout
31165 renewenvironment{lyxgreyedout}
31168 \begin_layout Plain Layout
31172 textcolor[gray]{0.8}
31182 \begin_inset Note Greyedout
31185 \begin_layout Plain Layout
31186 This is text of a comment that appears grey in the output.
31195 \begin_layout Plain Layout
31199 renewenvironment{lyxgreyedout}
31202 \begin_layout Plain Layout
31216 \begin_inset Note Note
31219 \begin_layout Plain Layout
31220 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31222 because greyed out notes are redefined in the preamble of this document,
31223 as described below, to have blue text.
31229 \begin_inset Newline newline
31233 \begin_inset Newline newline
31236 As you can see in the example, the first line of greyed out notes is a bit
31237 indented and greyed out notes can have footnotes.
31240 \begin_layout Standard
31241 \begin_inset VSpace bigskip
31244 When you use the toolbar button
31254 \begin_inset space ~
31260 You can switch between the three note types by right-clicking on the note-box.
31265 If you want to turn existing text into a note, mark it and click on the
31279 To change a note to text, press the backspace key when the cursor is in
31280 the first position of a note, or press the delete key when the cursor is
31281 in the very last position of the note, respectively.
31284 \begin_layout Standard
31285 \begin_inset VSpace bigskip
31288 You can change the text color of the greyed out notes in the menu
31290 Document\SpecialChar menuseparator
31291 Settings\SpecialChar menuseparator
31297 \begin_layout Section
31299 \begin_inset CommandInset label
31301 name "sec:Footnotes"
31306 \begin_inset Index idx
31309 \begin_layout Plain Layout
31316 \begin_inset Index idx
31319 \begin_layout Plain Layout
31328 \begin_layout Standard
31329 Footnotes can be inserted using the toolbar button
31332 arg "footnote-insert"
31337 Insert\SpecialChar menuseparator
31341 You will then see the following footnote-box:
31342 \begin_inset Graphics
31343 filename clipart/footnote.png
31345 scaleBeforeRotation
31353 where you can enter the footnote text.
31354 If you want to turn existing text into a footnote, mark it and click on
31380 key when the cursor is in the first position of a
31392 key when the cursor is in the very last position of the
31403 \begin_layout Standard
31404 Here is an example footnote:
31412 \begin_layout Plain Layout
31413 \begin_inset CommandInset label
31415 name "foot:This-is-an"
31419 This is an example footnote.
31432 \begin_layout Plain Layout
31436 newcounter{MyRepeatFoot}
31439 \begin_layout Plain Layout
31443 setcounter{MyRepeatFoot}{
31453 \begin_layout Standard
31454 The footnote will appear in the output as a superscript number at the text
31455 position where the footnote box is placed.
31456 The footnote text is placed at the bottom of the current page.
31457 The footnote number is calculated by \SpecialChar LaTeX
31458 ; the numbers are consecutive.
31459 Whether the footnote number is reset for every chapter depends on your
31463 \begin_layout Standard
31464 Footnotes can be referenced like floats: Insert a label into the footnote
31465 and cross-reference this label in the text as described in section
31466 \begin_inset space ~
31470 \begin_inset CommandInset ref
31472 reference "sec:Referencing-Floats"
31477 \begin_inset Newline newline
31480 This is a cross-reference of Footnote
31481 \begin_inset space ~
31485 \begin_inset CommandInset ref
31487 reference "foot:This-is-an"
31494 \begin_layout Standard
31495 \begin_inset VSpace defskip
31498 Footnotes in title environments are usually not numbered with symbols and
31499 they cannot contain several paragraphs.
31500 See for example the footnote in the titling of this document.
31503 \begin_layout Standard
31504 \begin_inset VSpace defskip
31507 Footnotes in tables are not printed by \SpecialChar LaTeX
31508 due to technical reasons.
31509 However there exists another method to print them: Instead of the footnote
31516 is inserted as \SpecialChar TeX
31518 The text of the footnote is entered as an argument of the \SpecialChar TeX
31527 \begin_inset Newline newline
31530 This was done for the following table with the command
31533 \begin_layout Standard
31540 Printed table footnote.
31545 \begin_layout Standard
31546 \begin_inset Tabular
31547 <lyxtabular version="3" rows="2" columns="1">
31548 <features tabularvalignment="middle">
31549 <column alignment="center" valignment="top">
31551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31554 \begin_layout Plain Layout
31555 This an example text.
31559 \begin_layout Plain Layout
31560 This footnote will not be printed!
31572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31575 \begin_layout Plain Layout
31576 This an example text.
31580 \begin_layout Plain Layout
31603 \begin_layout Plain Layout
31612 Printed table footnote.
31616 \begin_layout Plain Layout
31626 \begin_layout Standard
31627 Footnotes in multi-page tables are described in section
31628 \begin_inset space ~
31632 \begin_inset CommandInset ref
31634 reference "subsec:Footnotes-in-Multi-page"
31641 \begin_layout Standard
31642 Footnotes in minipage boxes are printed, but inside the box and with a different
31643 numbering because a minipage box is like a page inside a page.
31644 (For more about minipages, see section
31645 \begin_inset space ~
31649 \begin_inset CommandInset ref
31651 reference "sec:Minipages"
31655 .) To get a footnote in the minipage that is output at the bottom of the
31656 page like normal footnotes, also use the method of
31671 \begin_layout Standard
31672 \begin_inset Box Frameless
31682 height_special "totalheight"
31687 backgroundcolor "none"
31690 \begin_layout Plain Layout
31691 This an example text in a minipage.
31695 \begin_layout Plain Layout
31696 Footnote in the minipage.
31704 \begin_layout Plain Layout
31705 This an example text in a minipage.
31709 \begin_layout Plain Layout
31726 \begin_layout Standard
31730 \begin_layout Plain Layout
31739 Footnote outside the minipage.
31743 \begin_layout Plain Layout
31753 \begin_layout Standard
31754 \begin_inset VSpace defskip
31760 \begin_layout Standard
31761 To refer to the same footnote several times without printing the footnote
31762 text every time, use the command
31766 footnotemark[number]
31768 in \SpecialChar TeX
31770 \begin_inset Newline newline
31773 As you do not know the number of the repeating footnote while you are writing
31774 the text, you have to store its number.
31775 For the following footnote mark example, these commands were inserted in
31777 code after Footnote
31778 \begin_inset space ~
31782 \begin_inset CommandInset ref
31784 reference "foot:This-is-an"
31788 to store the footnote number:
31791 \begin_layout Standard
31796 newcounter{MyRepeatFoot}
31797 \begin_inset Newline newline
31802 setcounter{MyRepeatFoot}{
31807 \begin_layout Standard
31808 The footnote mark was then created with this command:
31811 \begin_layout Standard
31821 \begin_layout Standard
31822 Here is a repeated footnote:
31830 \begin_layout Plain Layout
31844 \begin_layout Standard
31845 If you want to repeat the previous footnote, you can omit the storage of
31846 the footnote number and just use this command instead:
31849 \begin_layout Standard
31859 \begin_layout Standard
31860 Here is another repeated footnote:
31868 \begin_layout Plain Layout
31882 \begin_layout Subsection
31884 \begin_inset CommandInset label
31886 name "subsec:Footnote-Numbering"
31891 \begin_inset Index idx
31894 \begin_layout Plain Layout
31895 Footnotes ! Numbering
31903 \begin_layout Standard
31904 To reset the footnote number back to 1 after each section
31906 , add this command to your document preamble:
31909 \begin_layout Standard
31914 @addtoreset{footnote}{section}
31917 \begin_layout Standard
31918 \begin_inset VSpace bigskip
31921 The following preamble command changes the footnote numbering style to small
31925 \begin_layout Standard
31937 \begin_layout Standard
31941 \begin_layout Plain Layout
31954 This is a footnote with roman numbering:
31958 \begin_layout Plain Layout
31959 This is an example footnote with roman numbering.
31967 \begin_layout Standard
31968 To change the numbering style to capital roman numerals replace in the command
31983 \begin_inset Quotes eld
31987 \begin_inset Quotes erd
31990 footnotes with capital or small Latin letters use
32004 \begin_inset Quotes eld
32008 \begin_inset Quotes erd
32011 footnotes with symbols use
32020 \begin_layout Standard
32021 \begin_inset Note Greyedout
32024 \begin_layout Plain Layout
32029 You can only number 26 footnotes with Latin letters, because this numbering
32030 is limited to single letters.
32036 \begin_inset Newline newline
32040 \begin_inset Note Greyedout
32043 \begin_layout Plain Layout
32048 You can only number 9 footnotes with symbols.
32056 \begin_layout Standard
32057 To return to the default numbering style after you have changed to another
32070 in the command above.
32074 \begin_layout Plain Layout
32090 \begin_layout Standard
32091 \begin_inset VSpace bigskip
32097 \begin_layout Standard
32098 If you want to have footnotes numbered in the scheme
32099 \begin_inset Quotes eld
32103 \begin_inset Quotes erd
32106 , add the following command to your document preamble:
32109 \begin_layout Standard
32114 numberwithin{footnote}{chapter}
32117 \begin_layout Standard
32118 To be able to use the command
32127 \begin_inset space ~
32132 in the document settings the option
32135 \begin_inset space ~
32139 \begin_inset space ~
32143 \begin_inset space ~
32151 \begin_layout Standard
32155 \begin_layout Plain Layout
32159 numberwithin{footnote}{chapter}
32164 This is another example footnote:
32170 \begin_layout Plain Layout
32171 This is a footnote numbered in the scheme
32172 \begin_inset Quotes eld
32176 \begin_inset Quotes erd
32190 \begin_layout Plain Layout
32206 \begin_layout Standard
32207 \begin_inset Note Greyedout
32210 \begin_layout Plain Layout
32221 always prints out the footnote number as arabic number; previous redefinitions
32222 to get non-arabic numbers are overwritten.
32230 \begin_layout Standard
32231 So to get for example the scheme
32232 \begin_inset Quotes eld
32238 \begin_inset Quotes erd
32241 , use this command instead of
32250 \begin_layout Standard
32264 \begin_layout Subsection
32266 \begin_inset Index idx
32269 \begin_layout Plain Layout
32270 Footnotes ! Placement
32278 \begin_layout Standard
32279 If you have several footnotes in one page, they appear without vertical
32280 space between them at the bottom of the page.
32281 To make them more readable you can e.
32282 \begin_inset space \thinspace{}
32286 \begin_inset space \space{}
32290 \begin_inset space \thinspace{}
32293 mm space with the following preamble command:
32296 \begin_layout Standard
32306 \begin_inset Newline newline
32320 \begin_layout Standard
32321 \begin_inset VSpace bigskip
32324 In a two-column document the footnotes appear at the bottom of every column,
32326 \begin_inset space ~
32330 \begin_inset CommandInset ref
32332 reference "fig:Standard-footnote-placement"
32337 If the footnotes should only appear at the bottom of the right column,
32339 \begin_inset space ~
32343 \begin_inset CommandInset ref
32345 reference "fig:Footnote-placement-in"
32349 , use the \SpecialChar LaTeX
32355 \begin_inset Index idx
32358 \begin_layout Plain Layout
32360 -packages ! ftnright
32365 with this command in the document preamble:
32368 \begin_layout Standard
32373 usepackage{ftnright}
32376 \begin_layout Standard
32377 \begin_inset Float figure
32383 \begin_layout Plain Layout
32386 \begin_inset Box Boxed
32396 height_special "totalheight"
32401 backgroundcolor "none"
32404 \begin_layout Plain Layout
32405 \begin_inset Graphics
32406 filename clipart/without_fntright.pdf
32408 scaleBeforeRotation
32420 \begin_layout Plain Layout
32421 \begin_inset Caption Standard
32423 \begin_layout Plain Layout
32424 \begin_inset CommandInset label
32426 name "fig:Standard-footnote-placement"
32430 Standard footnote placement in two-column documents.
32443 \begin_layout Standard
32444 \begin_inset Float figure
32450 \begin_layout Plain Layout
32453 \begin_inset Box Boxed
32463 height_special "totalheight"
32468 backgroundcolor "none"
32471 \begin_layout Plain Layout
32472 \begin_inset Graphics
32473 filename clipart/with_fntright.pdf
32475 scaleBeforeRotation
32487 \begin_layout Plain Layout
32488 \begin_inset Caption Standard
32490 \begin_layout Plain Layout
32491 \begin_inset CommandInset label
32493 name "fig:Footnote-placement-in"
32497 Footnote placement in two-column documents when the \SpecialChar LaTeX
32515 \begin_layout Standard
32516 \begin_inset VSpace bigskip
32519 In some scientific literature it is usual to collect the footnotes and print
32520 them in a separate paragraph at the end of a section, as in Figure
32521 \begin_inset space ~
32525 \begin_inset CommandInset ref
32527 reference "fig:Endnotes"
32532 They are then called
32533 \begin_inset Quotes eld
32537 \begin_inset Quotes erd
32541 \begin_inset Index idx
32544 \begin_layout Plain Layout
32550 To use endnotes instead of footnotes in your document, load in the menu
32553 Document\SpecialChar menuseparator
32554 Settings\SpecialChar menuseparator
32560 \begin_inset space ~
32564 \begin_inset space ~
32570 To insert the collected footnotes, insert the command
32573 \begin_layout Standard
32581 \begin_layout Standard
32582 in \SpecialChar TeX
32583 Code at the end of a section or chapter.
32586 \begin_layout Standard
32587 \begin_inset Float figure
32592 \begin_layout Plain Layout
32595 \begin_inset Box Boxed
32605 height_special "totalheight"
32610 backgroundcolor "none"
32613 \begin_layout Plain Layout
32614 \begin_inset Graphics
32615 filename clipart/endnotes.pdf
32617 scaleBeforeRotation
32629 \begin_layout Plain Layout
32630 \begin_inset Caption Standard
32632 \begin_layout Plain Layout
32633 \begin_inset CommandInset label
32635 name "fig:Endnotes"
32639 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32653 \begin_layout Standard
32654 \begin_inset VSpace medskip
32657 The paragraph heading for the endnotes isn't automatically translated into
32658 the document language, this must be done manually.
32659 The following preamble command translates the default English
32660 \begin_inset Quotes eld
32664 \begin_inset Quotes erd
32668 \begin_inset Quotes eld
32672 \begin_inset Quotes erd
32678 \begin_layout Standard
32685 notesname}{Anmerkungen}
32688 \begin_layout Standard
32689 \begin_inset VSpace medskip
32692 The numbering of endnotes can be changed like the footnote numbering as
32693 described in section
32694 \begin_inset space ~
32698 \begin_inset CommandInset ref
32700 reference "subsec:Footnote-Numbering"
32704 ; just replace the command
32717 To reset the endnote number use the command
32723 as described in section
32724 \begin_inset space ~
32728 \begin_inset CommandInset ref
32730 reference "subsec:Footnote-Numbering"
32734 and replace the command parameter
32745 \begin_layout Standard
32746 For endnotes there is the command
32750 endnotemark[number]
32752 similar to the command
32758 , that is described in section
32759 \begin_inset space ~
32763 \begin_inset CommandInset ref
32765 reference "sec:Footnotes"
32772 \begin_layout Standard
32773 \begin_inset VSpace bigskip
32776 Footnotes can also be placed in the page margin and the footnote text alignment
32777 can be changed, see the \SpecialChar LaTeX
32783 \begin_inset Index idx
32786 \begin_layout Plain Layout
32788 -packages ! footmisc
32794 \begin_inset CommandInset citation
32801 for more information about this.
32804 \begin_layout Standard
32805 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32807 \begin_inset CommandInset citation
32809 key "latexcompanion,latexguide,latexbook"
32820 \begin_inset Index idx
32823 \begin_layout Plain Layout
32825 -packages ! KOMA-Script
32830 document class, you can adjust all footnote settings using class-specific
32832 \begin_inset CommandInset citation
32842 \begin_layout Section
32844 \begin_inset Index idx
32847 \begin_layout Plain Layout
32848 Notes ! Margin Notes
32856 \begin_layout Standard
32857 Margin notes look and behave in \SpecialChar LyX
32859 They are inserted via the menu
32861 Insert\SpecialChar menuseparator
32863 \begin_inset space ~
32868 or the toolbar button
32871 arg "marginalnote-insert"
32885 \begin_inset Quotes eld
32889 \begin_inset Quotes erd
32892 appears where you can enter the text of the margin note.
32895 \begin_layout Standard
32896 At the side is an example margin note.
32901 \begin_inset Marginal
32904 \begin_layout Plain Layout
32905 This is a margin note.
32913 \begin_layout Standard
32914 Margin notes appear at the right side in single-sided documents.
32915 In double-sided documents they appear in the outer margin – left on even
32916 pages, right on odd pages.
32917 The text of margin notes is aligned opposite to the outer margin – right-aligne
32918 d when the note appears in the left margin.
32919 The first line of the margin note is placed at the position of the text
32920 line where it is inserted in the document.
32923 \begin_layout Standard
32924 \begin_inset VSpace bigskip
32927 To place the margin note in the inner margin, add the command
32930 \begin_layout Standard
32938 \begin_layout Standard
32939 in \SpecialChar TeX
32940 Code before a margin note.
32941 The new placement is valid for all subsequent margin notes.
32946 \begin_layout Plain Layout
32956 \begin_inset Marginal
32959 \begin_layout Plain Layout
32960 This is a margin note in the inner margin.
32968 \begin_inset Newline newline
32974 \begin_inset Note Greyedout
32977 \begin_layout Plain Layout
32982 There is often not enough space in the inner margin so that the notes are
32983 not correctly displayed in the output.
32991 \begin_layout Standard
32992 To return to the default placement insert the command
32995 \begin_layout Standard
33003 \begin_layout Standard
33004 in \SpecialChar TeX
33009 \begin_layout Plain Layout
33019 \begin_inset Note Greyedout
33022 \begin_layout Plain Layout
33027 The command is ignored when it is within a paragraph where also the command
33042 \begin_layout Standard
33043 \begin_inset VSpace bigskip
33050 \begin_inset Marginal
33053 \begin_layout Plain Layout
33054 AVeryLongMarginParWord that isn't hyphenated.
33062 Similar to the case described in section
33063 \begin_inset space ~
33067 \begin_inset CommandInset ref
33069 reference "subsec:Multiple-Lines-in"
33073 , long words cannot be hyphenated when they are the first word in a margin
33075 To avoid this, insert 0
33076 \begin_inset space \thinspace{}
33079 pt horizontal space before the word
33084 \begin_inset Marginal
33087 \begin_layout Plain Layout
33088 \begin_inset space \hspace*{}
33092 AVeryLongMarginParWord that is hyphenated.
33100 \begin_layout Standard
33101 \begin_inset VSpace bigskip
33107 \begin_layout Standard
33108 \begin_inset Note Greyedout
33111 \begin_layout Plain Layout
33116 Margin notes can normally not be used inside tables, floats, and footnotes.
33124 \begin_layout Standard
33125 \begin_inset VSpace bigskip
33131 \begin_layout Standard
33135 \begin_layout Plain Layout
33145 \begin_inset Note Note
33148 \begin_layout Plain Layout
33149 The following section will only be displayed when the \SpecialChar LaTeX
33162 \begin_layout Standard
33163 This restriction can be evaded by using the \SpecialChar LaTeX
33169 \begin_inset Index idx
33172 \begin_layout Plain Layout
33174 -packages ! marginnote
33180 By adding these two lines to your document preamble, the command used by
33182 for margin notes is redefined to use the command provided by the
33189 \begin_layout Standard
33194 usepackage{marginnote}
33195 \begin_inset Newline newline
33207 \begin_layout Standard
33208 This is also used in this document because
33212 has another useful feature: You can set a vertical offset for the note.
33213 This is often needed when too many margin notes are too close together
33214 or for a better page layout.
33215 The offset is set in \SpecialChar LyX
33216 as \SpecialChar TeX
33217 Code directly after the margin note in the scheme
33220 \begin_layout Standard
33226 \begin_layout Standard
33227 where the offset is a length with one of the units listed in Table
33228 \begin_inset space ~
33232 \begin_inset CommandInset ref
33234 reference "tab:Units"
33239 A negative value shifts the note up, a positive value shifts it down.
33243 For example the margin note beside this text line is shifted up 1.5
33244 \begin_inset space \thinspace{}
33247 cm with the \SpecialChar TeX
33249 \begin_inset Quotes eld
33259 \begin_inset Quotes erd
33263 \begin_inset Marginal
33266 \begin_layout Plain Layout
33267 This margin note is shifted up 1.5
33268 \begin_inset space \thinspace{}
33271 cm from its original position.
33283 \begin_layout Plain Layout
33293 \begin_layout Standard
33294 \begin_inset VSpace medskip
33301 you can also change the alignment of the text in the margin note.
33302 For example the commands
33305 \begin_layout Standard
33312 raggedleftmarginnote}{
33315 \begin_inset Newline newline
33322 raggedrightmarginnote}{
33327 \begin_layout Standard
33328 set the alignment to centered.
33333 raggedleftmarginnote
33335 denotes margin notes that appear at the left side.
33342 \begin_layout Plain Layout
33348 raggedleftmarginnote}{
33353 \begin_layout Plain Layout
33359 raggedrightmarginnote}{
33367 \begin_inset Marginal
33370 \begin_layout Plain Layout
33371 The text of this margin note is centered.
33382 \begin_layout Standard
33389 raggedleftmarginnote}{
33392 \begin_inset Newline newline
33399 raggedrightmarginnote}{
33408 \begin_layout Plain Layout
33414 raggedleftmarginnote}{
33419 \begin_layout Plain Layout
33425 raggedrightmarginnote}{
33435 \begin_layout Standard
33436 \begin_inset VSpace medskip
33439 For the other features of
33443 refer to its documentation
33444 \begin_inset CommandInset citation
33454 \begin_layout Standard
33455 \begin_inset VSpace bigskip
33458 You can adjust the layout of margin notes by changing its definition.
33459 To create for example a header for all margin notes with the underlined,
33460 sans-serif, and bold header text
33461 \begin_inset Quotes eld
33473 \begin_inset Quotes erd
33476 , add this to your document preamble:
33479 \begin_layout Standard
33489 \begin_inset Newline newline
33499 \begin_inset Newline newline
33503 \begin_inset Phantom HPhantom
33506 \begin_layout Plain Layout
33509 \begin_inset space ~
33525 underbar{Attention!}}}%
33526 \begin_inset Newline newline
33530 \begin_inset Phantom HPhantom
33533 \begin_layout Plain Layout
33536 \begin_inset space ~
33553 \begin_layout Standard
33560 \begin_layout Plain Layout
33571 \begin_layout Plain Layout
33582 \begin_layout Plain Layout
33590 underbar{Attention!}}}%
33593 \begin_layout Plain Layout
33607 \begin_inset Marginal
33610 \begin_layout Plain Layout
33611 This is a margin note with a defined heading.
33623 \begin_layout Plain Layout
33637 \begin_layout Plain Layout
33654 \begin_inset Note Note
33657 \begin_layout Plain Layout
33658 The margin note format is changed only for this example.
33666 \begin_layout Standard
33670 \begin_layout Plain Layout
33680 \begin_inset Note Note
33683 \begin_layout Plain Layout
33684 The following will be displayed when the \SpecialChar LaTeX
33697 \begin_layout Standard
33698 You need to install the \SpecialChar LaTeX
33703 to see the following part of this section in the output.
33706 \begin_layout Standard
33710 \begin_layout Plain Layout
33722 \begin_layout Chapter
33726 \begin_layout Section
33728 \begin_inset Index idx
33731 \begin_layout Plain Layout
33732 Boxes ! Introduction
33740 \begin_layout Standard
33741 Boxes are used to format a block of text.
33742 Boxes can be used to write documents with multiple languages, see section
33743 \begin_inset space ~
33747 \begin_inset CommandInset ref
33749 reference "sec:Minipages"
33753 , to frame texts, see section
33754 \begin_inset space ~
33758 \begin_inset CommandInset ref
33760 reference "sec:Decoration"
33764 , to prevent words from being hyphenated, see section
33765 \begin_inset space ~
33769 \begin_inset CommandInset ref
33771 reference "sec:Prevent-Hyphenation"
33775 , to align text, see section
33776 \begin_inset space ~
33780 \begin_inset CommandInset ref
33782 reference "subsec:Vertical-Alignment"
33786 , or to set the background color of texts, see section
33787 \begin_inset space ~
33791 \begin_inset CommandInset ref
33793 reference "sec:Colored-Boxes"
33800 \begin_layout Standard
33801 Boxes can be inserted with the menu
33803 Insert\SpecialChar menuseparator
33806 or the toolbar button
33809 arg "box-insert Frameless"
33813 A grey box with the label
33818 \begin_inset Graphics
33819 filename clipart/BoxInsetDefault.png
33821 scaleBeforeRotation
33826 The box type can be specified by right-clicking on the box and selecting
33832 The box dialog offers the
33835 \begin_inset space ~
33857 is the default for new boxes and is explained in section
33858 \begin_inset space ~
33862 \begin_inset CommandInset ref
33864 reference "sec:Minipages"
33872 is described in section
33873 \begin_inset space ~
33877 \begin_inset CommandInset ref
33879 reference "sec:Parboxes"
33888 \begin_inset CommandInset ref
33890 reference "sec:Prevent-Hyphenation"
33897 \begin_layout Standard
33898 Boxes are not numbered and can therefore not be referenced like floats or
33902 \begin_layout Standard
33903 \begin_inset Note Greyedout
33906 \begin_layout Plain Layout
33911 Boxes must not be the item in an
33927 \begin_layout Standard
33928 \begin_inset Note Greyedout
33931 \begin_layout Plain Layout
33936 For an unknown reason you can only set the
33939 \begin_inset space ~
33948 when you use a framed box.
33952 \begin_inset space ~
33957 type and without frames are explained in section
33958 \begin_inset space ~
33962 \begin_inset CommandInset ref
33964 reference "sec:Prevent-Hyphenation"
33976 \begin_layout Section
33978 \begin_inset CommandInset label
33980 name "sec:Box-Dialog"
33985 \begin_inset Index idx
33988 \begin_layout Plain Layout
33997 \begin_layout Subsection
33999 \begin_inset Index idx
34002 \begin_layout Plain Layout
34011 \begin_layout Standard
34012 In the box dialog you can adjust the box geometry in the fields
34021 The available units for the geometry are explained in Table
34022 \begin_inset space ~
34026 \begin_inset CommandInset ref
34028 reference "tab:Units"
34037 offers the following additional sizes:
34040 \begin_layout Description
34041 Depth This is the plain text
34042 \begin_inset Quotes eld
34046 \begin_inset Quotes erd
34050 It ignores the total depth when there are multiple text lines in the box:
34051 \begin_inset Newline newline
34055 \begin_inset Newline newline
34059 \begin_inset Newline newline
34063 \begin_inset Box Boxed
34073 height_special "depth"
34078 backgroundcolor "none"
34081 \begin_layout Plain Layout
34083 Box height set to 1
34084 \begin_inset space \thinspace{}
34093 \begin_inset Newline newline
34097 \begin_inset Newline newline
34103 \begin_layout Description
34104 Height This is the height of the text that is inside the box.
34106 \begin_inset space \thinspace{}
34110 \begin_inset space \space{}
34113 2 for this size will set the box height to 2
34114 \begin_inset space ~
34117 times the text height:
34118 \begin_inset Box Boxed
34128 height_special "height"
34133 backgroundcolor "none"
34136 \begin_layout Plain Layout
34138 Box height set to 2
34139 \begin_inset space \thinspace{}
34150 \begin_layout Description
34152 \begin_inset space ~
34155 Height This is the Height
34156 \begin_inset space \thinspace{}
34160 \begin_inset space \thinspace{}
34164 \begin_inset Box Boxed
34174 height_special "totalheight"
34179 backgroundcolor "none"
34182 \begin_layout Plain Layout
34184 Box height set to 1
34185 \begin_inset space \thinspace{}
34189 \begin_inset space ~
34200 \begin_layout Description
34201 Width This sets the width of the box as height:
34202 \begin_inset Box Boxed
34212 height_special "width"
34217 backgroundcolor "none"
34220 \begin_layout Plain Layout
34222 Box height set to 1
34223 \begin_inset space \thinspace{}
34234 \begin_layout Subsection
34236 \begin_inset Index idx
34239 \begin_layout Plain Layout
34248 \begin_layout Standard
34249 When you have chosen an
34252 \begin_inset space ~
34257 , the vertical box alignment can be:
34260 \begin_layout Description
34261 Top This is an example text line.
34263 \begin_inset Box Boxed
34273 height_special "totalheight"
34278 backgroundcolor "none"
34281 \begin_layout Plain Layout
34283 This box is top-aligned.
34288 This is an example text line.
34291 \begin_layout Description
34292 Middle This is an example text line.
34294 \begin_inset Box Boxed
34304 height_special "totalheight"
34309 backgroundcolor "none"
34312 \begin_layout Plain Layout
34314 This box is middle-aligned.
34319 This is an example text line.
34322 \begin_layout Description
34323 Bottom This is an example text line.
34325 \begin_inset Box Boxed
34335 height_special "totalheight"
34340 backgroundcolor "none"
34343 \begin_layout Plain Layout
34345 This box is bottom-aligned.
34350 This is an example text line.
34353 \begin_layout Standard
34354 \begin_inset Note Greyedout
34357 \begin_layout Plain Layout
34362 The vertical box alignment can be lost in the output when you have two
34363 boxes in a line and one has e.
34364 \begin_inset space \thinspace{}
34368 \begin_inset space \space{}
34371 a shadow and the other one not.
34379 \begin_layout Standard
34380 The horizontal box alignment can be set via \SpecialChar LyX
34381 's paragraph dialog when you
34382 set the box into its own paragraph.
34385 \begin_layout Standard
34386 \begin_inset VSpace bigskip
34389 When you have chosen an
34392 \begin_inset space ~
34397 , the box content can be aligned vertically to:
34400 \begin_layout Description
34401 top This is an example text line.
34403 \begin_inset Box Boxed
34413 height_special "totalheight"
34418 backgroundcolor "none"
34421 \begin_layout Plain Layout
34423 This box text is top-aligned.
34428 This is an example text line.
34431 \begin_layout Description
34432 middle This is an example text line.
34434 \begin_inset Box Boxed
34444 height_special "totalheight"
34449 backgroundcolor "none"
34452 \begin_layout Plain Layout
34454 This box text is middle-aligned.
34459 This is an example text line.
34462 \begin_layout Description
34463 bottom This is an example text line.
34465 \begin_inset Box Boxed
34475 height_special "totalheight"
34480 backgroundcolor "none"
34483 \begin_layout Plain Layout
34485 This box text is bottom-aligned.
34490 This is an example text line.
34493 \begin_layout Description
34494 stretch This is an example text line.
34496 \begin_inset Box Boxed
34506 height_special "totalheight"
34511 backgroundcolor "none"
34514 \begin_layout Plain Layout
34519 \begin_layout Plain Layout
34524 \begin_layout Plain Layout
34531 This is an example text line.
34534 \begin_layout Standard
34535 To stretch the box content, it must consist of more than one paragraph.
34536 In the example above every text line is in an own paragraph.
34539 \begin_layout Standard
34540 \begin_inset VSpace bigskip
34543 To align the box content horizontally you can use \SpecialChar LyX
34544 's paragraph dialog when
34548 \begin_inset space ~
34556 \begin_layout Standard
34558 \begin_inset Box Boxed
34568 height_special "totalheight"
34573 backgroundcolor "none"
34576 \begin_layout Plain Layout
34581 \begin_layout Plain Layout
34586 \begin_layout Plain Layout
34596 \begin_layout Standard
34597 If you have not set an
34600 \begin_inset space ~
34605 , you can align the box content horizontally in the box dialog.
34608 \begin_layout Standard
34610 \begin_inset Box Boxed
34620 height_special "totalheight"
34625 backgroundcolor "none"
34628 \begin_layout Plain Layout
34629 This box text is horizontally stretched.
34637 \begin_layout Subsection
34639 \begin_inset CommandInset label
34641 name "sec:Decoration"
34646 \begin_inset Index idx
34649 \begin_layout Plain Layout
34658 \begin_layout Standard
34659 The type of the box can be specified in the box dialog in the drop-down
34665 The following types are possible:
34668 \begin_layout Description
34670 \begin_inset space ~
34673 frame Nothing is drawn.
34676 \begin_layout Description
34678 \begin_inset space ~
34682 \begin_inset space ~
34685 frame This draws a rectangular frame around the box.
34686 The frame line thickness can be specified.
34688 \begin_inset Box Boxed
34698 height_special "totalheight"
34703 backgroundcolor "none"
34706 \begin_layout Plain Layout
34716 \begin_layout Description
34718 \begin_inset space ~
34722 \begin_inset space ~
34725 thin This draws an oval frame around the box.
34726 The frame line thickness has the size 0.4
34727 \begin_inset space \thinspace{}
34732 \begin_inset Box ovalbox
34742 height_special "totalheight"
34747 backgroundcolor "none"
34750 \begin_layout Plain Layout
34760 \begin_layout Description
34762 \begin_inset space ~
34766 \begin_inset space ~
34769 thick This draws an oval frame around the box.
34770 The frame line thickness has the size 0.8
34771 \begin_inset space \thinspace{}
34776 \begin_inset Box Ovalbox
34786 height_special "totalheight"
34791 backgroundcolor "none"
34794 \begin_layout Plain Layout
34804 \begin_layout Description
34806 \begin_inset space ~
34809 shadow This draws a rectangular frame with a shadow around the box.
34810 The frame line thickness and the shadow can be specified.
34812 \begin_inset Box Shadowbox
34822 height_special "totalheight"
34827 backgroundcolor "none"
34830 \begin_layout Plain Layout
34840 \begin_layout Description
34842 \begin_inset space ~
34845 background This draws a box with a red background.
34846 Unlike colored boxes
34850 \begin_layout Plain Layout
34852 \begin_inset space \thinspace{}
34856 \begin_inset CommandInset ref
34858 reference "sec:Colored-Boxes"
34867 , it always uses the whole column width and the box is set as its own paragraph.
34869 \begin_inset Box Shaded
34879 height_special "totalheight"
34884 backgroundcolor "none"
34887 \begin_layout Plain Layout
34888 Shaded background box
34896 \begin_layout Description
34898 \begin_inset space ~
34902 \begin_inset space ~
34905 frame This draws a double-line rectangular frame around the box.
34906 The line thickness of the inner frame is 0.75
34907 \begin_inset space \thinspace{}
34911 \begin_inset space ~
34914 thickness, the thickness of the outer frame is 1.5
34915 \begin_inset space \thinspace{}
34919 \begin_inset space ~
34923 The distance between the lines is 1.5
34924 \begin_inset space \thinspace{}
34928 \begin_inset space ~
34932 \begin_inset space \thinspace{}
34936 \begin_inset space \thinspace{}
34940 \begin_inset space \thinspace{}
34945 \begin_inset Box Doublebox
34955 height_special "totalheight"
34960 backgroundcolor "none"
34963 \begin_layout Plain Layout
34965 Double rectangular box
34973 \begin_layout Standard
34974 \begin_inset VSpace bigskip
34978 's box label will reflect the different frame types.
34979 To be able to use all types, the \SpecialChar LaTeX
34985 \begin_inset Index idx
34988 \begin_layout Plain Layout
34990 -packages ! fancybox
34998 \begin_layout Standard
34999 \begin_inset VSpace bigskip
35002 When you use the decoration
35004 simple rectangular frame
35006 and no inner box, you can allow page breaks within a box.
35007 Note that then, unlike other framed boxes, the frame always uses the whole
35008 column width and the box is set as its own paragraph:
35009 \begin_inset Box Framed
35019 height_special "totalheight"
35024 backgroundcolor "none"
35027 \begin_layout Plain Layout
35028 Allow page break box
35036 \begin_layout Section
35038 \begin_inset Index idx
35041 \begin_layout Plain Layout
35042 Boxes ! Customization
35050 \begin_layout Standard
35051 The diameter of the round corners of the oval boxes can be set with the
35062 \begin_layout Standard
35070 \begin_layout Standard
35071 sets the diameter to 1
35072 \begin_inset space \thinspace{}
35079 \begin_layout Standard
35087 \begin_layout Standard
35088 sets the diameter to
35091 \begin_inset space \thinspace{}
35095 \begin_inset space \thinspace{}
35098 minimum(width and height of box)
35110 \begin_layout Standard
35114 \begin_layout Plain Layout
35124 \begin_inset Box Ovalbox
35134 height_special "totalheight"
35139 backgroundcolor "none"
35142 \begin_layout Plain Layout
35151 \begin_inset space \thinspace{}
35155 \begin_inset space \thinspace{}
35159 \begin_inset space \thinspace{}
35171 \begin_layout Plain Layout
35183 \begin_layout Standard
35184 \begin_inset VSpace bigskip
35190 \begin_layout Standard
35191 The default background color red of
35195 boxes can either be changed locally with the command
35199 definecolor{shadecolor}
35201 or globally with the menu
35203 Tools\SpecialChar menuseparator
35204 Preferences\SpecialChar menuseparator
35205 Colors\SpecialChar menuseparator
35207 \begin_inset space ~
35219 command is explained in section
35220 \begin_inset space ~
35224 \begin_inset CommandInset ref
35226 reference "sec:Colored-Tables"
35234 \begin_layout Plain Layout
35241 requires the \SpecialChar LaTeX
35246 in the preamble, see section
35247 \begin_inset space ~
35251 \begin_inset CommandInset ref
35253 reference "sec:Colored-Boxes"
35262 For example the appearance of the following shaded background box is set
35263 with the \SpecialChar TeX
35267 \begin_layout Standard
35272 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35275 \begin_layout Standard
35279 \begin_layout Plain Layout
35283 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35289 \begin_inset Box Shaded
35299 height_special "totalheight"
35304 backgroundcolor "none"
35307 \begin_layout Plain Layout
35310 This is yellow text in a
35320 box with dark green background.
35329 \begin_layout Plain Layout
35333 definecolor{shadecolor}{rgb}{1,0,0}
35341 \begin_layout Standard
35342 \begin_inset VSpace bigskip
35345 Manually changed sizes and colors are valid for all boxes following the
35346 commands that change them.
35349 \begin_layout Section
35351 \begin_inset CommandInset label
35353 name "sec:Minipages"
35358 \begin_inset Index idx
35361 \begin_layout Plain Layout
35370 \begin_layout Standard
35371 Minipages are treated by \SpecialChar LaTeX
35372 as pages within pages and can therefore for example
35373 have their own footnotes.
35376 \begin_layout Standard
35377 Minipages are useful when you write documents with different languages.
35380 \begin_layout Standard
35381 Below are two example minipages side by side.
35382 Their width is set to 45
35383 \begin_inset space \thinspace{}
35386 col% and they are separated by a horizontal fill, that was inserted via
35389 Insert\SpecialChar menuseparator
35391 \begin_inset space ~
35394 Formatting\SpecialChar menuseparator
35396 \begin_inset space ~
35402 \begin_inset Newpage newpage
35408 \begin_layout Standard
35409 \begin_inset Box Frameless
35419 height_special "totalheight"
35424 backgroundcolor "none"
35427 \begin_layout Plain Layout
35430 Dies ist ein deutscher Text.
35431 Dies ist ein deutscher Text.
35432 Dies ist ein deutscher Text.
35433 Dies ist ein deutscher Text.
35434 Dies ist ein deutscher Text.
35435 Dies ist ein deutscher Text.
35436 Dies ist ein deutscher Text.
35437 Dies ist ein deutscher Text.
35438 Dies ist ein deutscher Text.
35439 Dies ist ein deutscher Text.
35440 Dies ist ein deutscher Text.
35441 Dies ist ein deutscher Text.
35442 Dies ist ein deutscher Text
35446 \begin_layout Plain Layout
35449 Dies ist eine deutsche Fußnote.
35455 Dies ist ein deutscher Text.
35456 Dies ist ein deutscher Text.
35462 \begin_inset space \hfill{}
35466 \begin_inset Box Frameless
35476 height_special "totalheight"
35481 backgroundcolor "none"
35484 \begin_layout Plain Layout
35485 This is an English Text.
35486 This is an English Text.
35487 This is an English Text.
35488 This is an English Text.
35489 This is an English Text.
35490 This is an English Text.
35491 This is an English Text.
35492 This is an English Text.
35493 This is an English Text.
35494 This is an English Text.
35495 This is an English Text.
35496 This is an English Text.
35497 This is an English Text.
35498 This is an English Text.
35499 This is an English Text.
35500 This is an English Text.
35504 \begin_layout Plain Layout
35505 This is an English footnote.
35510 This is an English Text.
35518 \begin_layout Standard
35519 \begin_inset VSpace bigskip
35522 The document-wide paragraph settings are ignored within minipages.
35523 That means that there will be no space between paragraphs in minipages
35524 although you set it to e.
35525 \begin_inset space \thinspace{}
35529 \begin_inset space \space{}
35536 in the document settings.
35539 \begin_layout Standard
35540 Minipages can also be used to set a background color for text parts, see
35542 \begin_inset space ~
35546 \begin_inset CommandInset ref
35548 reference "sec:Colored-Boxes"
35555 \begin_layout Standard
35556 \begin_inset Note Greyedout
35559 \begin_layout Plain Layout
35564 You cannot have floats or margin notes inside minipages but minipages can
35565 be used inside tables, floats, and other boxes.
35573 \begin_layout Standard
35574 \begin_inset VSpace bigskip
35580 \begin_layout Standard
35582 has also basic support for minipages whose size is automatically determined
35583 by the width of their contents, via the module
35585 Variable-width Minipages
35588 The \SpecialChar LyX
35591 varwidth-floats-side-by-side
35593 gives examples of variable-width minipages used for placing two floats
35597 \begin_layout Section
35599 \begin_inset CommandInset label
35601 name "sec:Parboxes"
35606 \begin_inset Index idx
35609 \begin_layout Plain Layout
35618 \begin_layout Standard
35619 Parboxes are very similar to minipages with the difference that they cannot
35623 \begin_layout Standard
35625 \begin_inset Box Frameless
35635 height_special "totalheight"
35640 backgroundcolor "none"
35643 \begin_layout Plain Layout
35644 This a text within a parbox.
35645 This a text within a parbox.
35648 \begin_layout Plain Layout
35649 This footnote won't appear:
35653 \begin_layout Plain Layout
35654 This footnote is inside a parbox and will therefore not appear.
35667 \begin_layout Section
35668 Boxes for Words and Characters
35669 \begin_inset Index idx
35672 \begin_layout Plain Layout
35673 Boxes ! for Characters
35681 \begin_layout Subsection
35682 Prevent Hyphenation
35683 \begin_inset CommandInset label
35685 name "sec:Prevent-Hyphenation"
35690 \begin_inset Index idx
35693 \begin_layout Plain Layout
35694 Boxes ! to Prevent Hyphenation
35702 \begin_layout Standard
35703 You can use the box type
35707 to prevent words or text from being hyphenated.
35708 \begin_inset Newline newline
35711 Here is an example text:
35714 \begin_layout Standard
35715 This line is an example to show how you can prevent the hyphenation of
35716 \begin_inset Quotes eld
35720 \begin_inset Quotes erd
35726 \begin_layout Standard
35727 To prevent the hyphenation of the word
35728 \begin_inset Quotes eld
35732 \begin_inset Quotes erd
35735 , put the word into a box, set the
35738 \begin_inset space ~
35747 and use no explicit width.
35750 \begin_layout Standard
35751 This is the result:
35754 \begin_layout Standard
35755 This line is an example to show how you can prevent the hyphenation of
35756 \begin_inset Box Frameless
35766 height_special "totalheight"
35771 backgroundcolor "none"
35774 \begin_layout Plain Layout
35775 \begin_inset Quotes eld
35779 \begin_inset Quotes erd
35790 \begin_layout Standard
35791 You can alternatively set the command
35792 \begin_inset Quotes eld
35802 \begin_inset Quotes grd
35805 as \SpecialChar TeX
35806 Code directly before the word:
35809 \begin_layout Standard
35810 This line is an example to show how you can prevent the hyphenation of
35811 \begin_inset Quotes eld
35818 \begin_layout Plain Layout
35828 \begin_inset Quotes erd
35834 \begin_layout Standard
35835 Of course the word now protrudes over the side margin.
35836 To avoid this, add via the menu
35838 Insert\SpecialChar menuseparator
35839 Formatting\SpecialChar menuseparator
35841 \begin_inset space ~
35845 \begin_inset space ~
35853 arg "newline-insert newline"
35856 ) a line break before the word:
35859 \begin_layout Standard
35860 This line is an example to show how you can prevent the hyphenation of
35861 \begin_inset Newline newline
35865 \begin_inset Box Frameless
35875 height_special "totalheight"
35880 backgroundcolor "none"
35883 \begin_layout Plain Layout
35884 \begin_inset Quotes eld
35888 \begin_inset Quotes erd
35899 \begin_layout Subsection
35901 \begin_inset CommandInset label
35903 name "subsec:Vertical-Alignment"
35908 \begin_inset Index idx
35911 \begin_layout Plain Layout
35912 Boxes ! for Vertical Alignment
35918 \begin_inset Index idx
35921 \begin_layout Plain Layout
35930 \begin_layout Standard
35931 With the help of the command
35937 you can align words, characters or other boxes vertically relative to the
35945 is used with the following scheme:
35948 \begin_layout Standard
35953 raisebox{lift}[height][depth]{box content}
35956 \begin_layout Standard
35957 The lift can be a positive value to raise the box or a negative value to
35961 \begin_layout Standard
35962 To align for example the word
35963 \begin_inset Quotes eld
35967 \begin_inset Quotes erd
35970 so that the bottom of the
35971 \begin_inset Quotes eld
35975 \begin_inset Quotes erd
35979 \begin_inset Quotes eld
35983 \begin_inset Quotes erd
35986 is at the baseline, insert the command
35989 \begin_layout Standard
35999 \begin_layout Standard
36000 in \SpecialChar TeX
36001 Code before the word.
36002 After the word insert a closing brace
36003 \begin_inset Quotes eld
36011 \begin_inset Quotes erd
36014 in \SpecialChar TeX
36016 \begin_inset Newline newline
36019 This is the result:
36022 \begin_layout Standard
36023 This is a text line with the word
36027 \begin_layout Plain Layout
36039 \begin_inset Quotes eld
36043 \begin_inset Quotes erd
36050 \begin_layout Plain Layout
36060 \begin_layout Standard
36061 \begin_inset VSpace bigskip
36064 When you raise or lower characters in a line, the line distance will be
36068 \begin_layout Standard
36069 This is a text line with the word
36073 \begin_layout Plain Layout
36085 \begin_inset Quotes eld
36089 \begin_inset Quotes erd
36096 \begin_layout Plain Layout
36104 \begin_inset Newline newline
36107 This is a text line with the word
36111 \begin_layout Plain Layout
36121 \begin_inset Quotes eld
36125 \begin_inset Quotes erd
36132 \begin_layout Plain Layout
36142 \begin_layout Standard
36143 If you want to prevent this for a certain reason, set the box height to
36148 \begin_layout Standard
36158 \begin_layout Standard
36159 This is a text line with the word
36163 \begin_layout Plain Layout
36175 \begin_inset Quotes eld
36179 \begin_inset Quotes erd
36186 \begin_layout Plain Layout
36194 \begin_inset Newline newline
36198 \begin_inset Newline newline
36201 This is a text line with the word
36205 \begin_layout Plain Layout
36209 raisebox{0.5cm}[0pt]{
36215 \begin_inset Quotes eld
36219 \begin_inset Quotes erd
36226 \begin_layout Plain Layout
36236 \begin_layout Section
36238 \begin_inset CommandInset label
36240 name "sec:Colored-Boxes"
36245 \begin_inset Index idx
36248 \begin_layout Plain Layout
36257 \begin_layout Standard
36258 To color the background of a box just select the color you like in the box
36260 This is for example a box with orange background:
36261 \begin_inset Box Frameless
36271 height_special "totalheight"
36276 backgroundcolor "orange"
36279 \begin_layout Plain Layout
36280 Box with orange background
36288 \begin_layout Standard
36289 If you use the decoration
36292 \begin_inset space ~
36296 \begin_inset space ~
36301 you can set a frame color.
36302 In this case you must also specify a background color (LyX sets white as
36304 Here is an example:
36305 \begin_inset Box Boxed
36315 height_special "totalheight"
36320 backgroundcolor "yellow"
36323 \begin_layout Plain Layout
36324 Box with teal frame color and yellow background color
36332 \begin_layout Standard
36333 \begin_inset VSpace bigskip
36336 Of course you can also have colored text inside a colored box:
36337 \begin_inset Newline newline
36341 \begin_inset Box Boxed
36351 height_special "totalheight"
36356 backgroundcolor "magenta"
36359 \begin_layout Plain Layout
36362 This is colored text within a colored, framed box
36370 \begin_layout Standard
36371 \begin_inset VSpace bigskip
36377 \begin_layout Standard
36378 If you need another color than the predefined ones, you can define your
36379 own color as described in section
36380 \begin_inset space ~
36384 \begin_inset CommandInset ref
36386 reference "sec:Colored-Tables"
36391 To use your own color you must typeset the box by using TeX code:
36394 \begin_layout Standard
36395 Colored boxes without frame are created with the command
36402 It has the following scheme:
36405 \begin_layout Standard
36410 colorbox{color}{box content}
36413 \begin_layout Standard
36414 The box content can also be a box and colored boxes can also be within other
36417 \begin_inset space \thinspace{}
36421 \begin_inset space \space{}
36424 a darkgreen background for a word, insert the command
36427 \begin_layout Standard
36432 colorbox{darkgreen}{
36435 \begin_layout Standard
36436 before the word in \SpecialChar TeX
36438 After the word insert a closing brace
36439 \begin_inset Quotes eld
36447 \begin_inset Quotes erd
36450 in \SpecialChar TeX
36452 \begin_inset Newline newline
36455 This is the result:
36458 \begin_layout Standard
36459 This is a line where the word
36463 \begin_layout Plain Layout
36467 colorbox{darkgreen}{
36473 \begin_inset Quotes eld
36477 \begin_inset Quotes erd
36484 \begin_layout Plain Layout
36491 has a darkgreen background.
36494 \begin_layout Standard
36495 Framed, colored boxes are created with the command
36502 It has the following scheme:
36505 \begin_layout Standard
36510 fcolorbox{frame color}{box color}{box content}
36513 \begin_layout Section
36514 Rotated and Scaled Boxes
36517 \begin_layout Standard
36518 To use the boxes described in this section, the module
36522 must be loaded in the document settings.
36525 \begin_layout Standard
36526 \begin_inset Note Greyedout
36529 \begin_layout Plain Layout
36534 Not all DVI viewers are able to display rotated or scaled material.
36542 \begin_layout Standard
36543 \begin_inset Note Greyedout
36546 \begin_layout Plain Layout
36551 Floats are not allowed inside a rotated or scaled box.
36559 \begin_layout Subsection
36561 \begin_inset Index idx
36564 \begin_layout Plain Layout
36571 \begin_inset Index idx
36574 \begin_layout Plain Layout
36583 \begin_layout Standard
36584 To rotate material, you can put it into a
36589 Such a box is inserted via the menu
36591 Insert\SpecialChar menuseparator
36592 Custom Insets\SpecialChar menuseparator
36598 \begin_layout Standard
36599 The rotation origin can be specified via the inset
36605 Insert\SpecialChar menuseparator
36613 The following positions are possible:
36633 (top), along with meaningful combinations of the four base positions.
36638 means that the rotation origin is at the top left corner of the box.
36639 When no rotation origin is specified, the position
36644 The rotation angle is a number that can be negative that specifies the
36646 The rotation direction is counterclockwise.
36649 \begin_layout Standard
36650 In the following example
36654 was inserted to the
36662 was inserted to the
36669 \begin_layout Standard
36671 \begin_inset Flex Rotatebox
36674 \begin_layout Plain Layout
36675 \begin_inset Argument 1
36678 \begin_layout Plain Layout
36685 \begin_inset Argument 2
36688 \begin_layout Plain Layout
36702 \begin_layout Standard
36703 The box content can also be another box or an inline formula:
36706 \begin_layout Standard
36708 \begin_inset Flex Rotatebox
36711 \begin_layout Plain Layout
36712 \begin_inset Argument 1
36715 \begin_layout Plain Layout
36722 \begin_inset Argument 2
36725 \begin_layout Plain Layout
36732 \begin_inset Box Doublebox
36742 height_special "totalheight"
36747 backgroundcolor "none"
36750 \begin_layout Plain Layout
36762 \begin_inset Flex Rotatebox
36765 \begin_layout Plain Layout
36766 \begin_inset Argument 1
36769 \begin_layout Plain Layout
36776 \begin_inset Argument 2
36779 \begin_layout Plain Layout
36786 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36797 \begin_layout Standard
36798 or an image or table:
36801 \begin_layout Standard
36803 \begin_inset Flex Rotatebox
36806 \begin_layout Plain Layout
36807 \begin_inset Argument 1
36810 \begin_layout Plain Layout
36817 \begin_inset Argument 2
36820 \begin_layout Plain Layout
36827 \begin_inset Graphics
36828 filename clipart/platypus.eps
36839 with a rotated image
36840 \begin_inset Flex Rotatebox
36843 \begin_layout Plain Layout
36844 \begin_inset Argument 2
36847 \begin_layout Plain Layout
36854 \begin_inset Tabular
36855 <lyxtabular version="3" rows="2" columns="2">
36856 <features tabularvalignment="middle">
36857 <column alignment="center" valignment="top">
36858 <column alignment="center" valignment="top">
36860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36863 \begin_layout Plain Layout
36869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36872 \begin_layout Plain Layout
36880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36883 \begin_layout Plain Layout
36889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36892 \begin_layout Plain Layout
36909 \begin_inset Index idx
36912 \begin_layout Plain Layout
36919 \begin_inset Index idx
36922 \begin_layout Plain Layout
36923 Table Customization ! Rotating
36931 \begin_layout Standard
36932 \begin_inset Note Greyedout
36935 \begin_layout Plain Layout
36944 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36946 errors when viewing/exporting the document.
36954 \begin_layout Subsection
36956 \begin_inset Index idx
36959 \begin_layout Plain Layout
36966 \begin_inset Index idx
36969 \begin_layout Plain Layout
36978 \begin_layout Standard
36979 To scale material put it into a
36984 Such a box is inserted via the menu
36986 Insert\SpecialChar menuseparator
36987 Custom Insets\SpecialChar menuseparator
36993 \begin_layout Standard
36998 inset has the mandatory inset
37002 and the optional inset
37006 (inserted via the menu
37008 Insert\SpecialChar menuseparator
37012 Input there the horizontal and vertical scale factor, respectively.
37017 inset is used, the horizontal factor will also be used as the vertical
37021 \begin_layout Standard
37022 To get for example the double text size, compared to the document text size,
37033 \begin_inset Flex Scalebox
37036 \begin_layout Plain Layout
37037 \begin_inset Argument 1
37040 \begin_layout Plain Layout
37054 \begin_layout Standard
37072 \begin_inset Flex Scalebox
37075 \begin_layout Plain Layout
37076 \begin_inset Argument 1
37079 \begin_layout Plain Layout
37086 \begin_inset Argument 2
37089 \begin_layout Plain Layout
37103 \begin_layout Standard
37104 If the scaling factor is negative, the box content will be mirrored.
37121 can be used to create mirror writing:
37122 \begin_inset Flex Scalebox
37125 \begin_layout Plain Layout
37126 \begin_inset Argument 1
37129 \begin_layout Plain Layout
37136 \begin_inset Argument 2
37139 \begin_layout Plain Layout
37153 \begin_layout Standard
37171 \begin_inset Flex Scalebox
37174 \begin_layout Plain Layout
37175 \begin_inset Argument 1
37178 \begin_layout Plain Layout
37185 \begin_inset Argument 2
37188 \begin_layout Plain Layout
37202 \begin_layout Standard
37209 Insert\SpecialChar menuseparator
37210 Custom Insets\SpecialChar menuseparator
37236 \begin_layout Standard
37237 \begin_inset Note Greyedout
37240 \begin_layout Plain Layout
37249 inset is empty or contains other characters than numbers you will get LaTeX
37250 errors when viewing/exporting the document.
37258 \begin_layout Standard
37259 \begin_inset VSpace bigskip
37268 Insert\SpecialChar menuseparator
37269 Custom Insets\SpecialChar menuseparator
37272 ) is used to scale the content to a defined width and height.
37277 inset has the mandatory inset
37281 and the optional inset
37285 (inserted via the menu
37287 Insert\SpecialChar menuseparator
37291 Input there the width and height, respectively, as value with a unit.
37293 \begin_inset CommandInset ref
37295 reference "tab:Units"
37299 lists the possible units.
37300 If there is an exclamation mark
37304 in of of the two insets, the size is set so that the aspect ratio of the
37305 box content is kept.
37310 inset is used an exclamation mark will internally be used for the height.
37313 \begin_layout Standard
37331 \begin_inset Flex Resizebox
37334 \begin_layout Plain Layout
37335 \begin_inset Argument 1
37338 \begin_layout Plain Layout
37345 \begin_inset Argument 2
37348 \begin_layout Plain Layout
37360 \begin_inset Newline newline
37384 \begin_inset Flex Resizebox
37387 \begin_layout Plain Layout
37388 \begin_inset Argument 1
37391 \begin_layout Plain Layout
37398 \begin_inset Argument 2
37401 \begin_layout Plain Layout
37415 \begin_layout Standard
37416 \begin_inset Note Greyedout
37419 \begin_layout Plain Layout
37428 inset is empty or contains an invalid unit you will get LaTeX errors when
37429 viewing/exporting the document.
37437 \begin_layout Standard
37438 \begin_inset VSpace bigskip
37444 \begin_layout Standard
37445 The boxes can be combined in any order.
37454 which is in turn inside a
37461 \begin_layout Standard
37464 \begin_inset Flex Rotatebox
37467 \begin_layout Plain Layout
37468 \begin_inset Argument 1
37471 \begin_layout Plain Layout
37478 \begin_inset Argument 2
37481 \begin_layout Plain Layout
37488 \begin_inset Flex Resizebox
37491 \begin_layout Plain Layout
37492 \begin_inset Argument 1
37495 \begin_layout Plain Layout
37502 \begin_inset Flex Reflectbox
37505 \begin_layout Plain Layout
37524 \begin_layout Standard
37526 Images, tables, and inline formulas are allowed as box content:
37529 \begin_layout Standard
37532 \begin_inset Flex Resizebox
37535 \begin_layout Plain Layout
37536 \begin_inset Argument 1
37539 \begin_layout Plain Layout
37546 \begin_inset Flex Reflectbox
37549 \begin_layout Plain Layout
37550 \begin_inset Graphics
37551 filename clipart/platypus.eps
37568 \begin_inset Flex Resizebox
37571 \begin_layout Plain Layout
37572 \begin_inset Argument 1
37575 \begin_layout Plain Layout
37582 \begin_inset Flex Reflectbox
37585 \begin_layout Plain Layout
37586 \begin_inset Tabular
37587 <lyxtabular version="3" rows="2" columns="2">
37588 <features tabularvalignment="middle">
37589 <column alignment="center" valignment="top">
37590 <column alignment="center" valignment="top">
37592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37595 \begin_layout Plain Layout
37601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37604 \begin_layout Plain Layout
37612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37615 \begin_layout Plain Layout
37621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37624 \begin_layout Plain Layout
37646 \begin_inset Flex Resizebox
37649 \begin_layout Plain Layout
37650 \begin_inset Argument 1
37653 \begin_layout Plain Layout
37660 \begin_inset Flex Reflectbox
37663 \begin_layout Plain Layout
37664 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37678 \begin_inset Index idx
37681 \begin_layout Plain Layout
37688 \begin_inset Index idx
37691 \begin_layout Plain Layout
37692 Table Customization ! Scaling
37700 \begin_layout Standard
37701 When the global formula style
37705 is used in the document
37709 \begin_layout Plain Layout
37711 \begin_inset Quotes eld
37715 \begin_inset Quotes erd
37718 is added to the document class options.
37723 , display style formulas can also be scaled.
37726 \begin_layout Chapter
37727 Objects Surrounded by Text
37728 \begin_inset Index idx
37731 \begin_layout Plain Layout
37740 \begin_layout Section
37742 \begin_inset CommandInset label
37744 name "sec:Wrap-Floats"
37749 \begin_inset Index idx
37752 \begin_layout Plain Layout
37753 Floats ! Wrap Floats
37759 \begin_inset Index idx
37762 \begin_layout Plain Layout
37763 Surrounded by text ! Wrap Floats
37771 \begin_layout Standard
37772 \begin_inset Wrap figure
37779 \begin_layout Plain Layout
37780 \begin_inset Graphics
37781 filename clipart/mobius.eps
37783 scaleBeforeRotation
37784 rotateOrigin center
37791 \begin_layout Plain Layout
37792 \begin_inset Caption Standard
37794 \begin_layout Plain Layout
37795 \begin_inset CommandInset label
37797 name "fig:This-is-a"
37801 This is a figure wrap float.
37811 This float type is used if you want to wrap text around a figure or table
37812 so that it only occupies some fraction of the column width.
37813 It can be inserted using the menu
37815 Insert\SpecialChar menuseparator
37816 Floats\SpecialChar menuseparator
37818 \begin_inset space ~
37822 \begin_inset space ~
37830 \begin_inset space ~
37834 \begin_inset space ~
37839 if the \SpecialChar LaTeX
37845 \begin_inset Index idx
37848 \begin_layout Plain Layout
37850 -packages ! wrapfig
37859 \begin_layout Plain Layout
37860 Installing a \SpecialChar LaTeX
37861 -package is explained it in the
37865 \begin_inset space ~
37875 The settings of the float can be modified by right-clicking on the float
37877 The mandatory settings are the float
37890 that specifies how much the float is set into the paragraph
37891 \begin_inset space \thinspace{}
37895 \begin_inset space \thinspace{}
37898 page margin, and the
37901 \begin_inset space ~
37906 that specifies how many text lines the float will approximately need.
37907 The line span is often hard to approximate; so it is better only to use
37908 it when you encounter float placement problems.
37909 You can furthermore decide if \SpecialChar LaTeX
37910 is allowed to let the float float within
37911 the paragraph or to surrounding paragraphs.
37913 \begin_inset space ~
37917 \begin_inset CommandInset ref
37919 reference "fig:This-is-a"
37923 is an example text wrap float with a width of 40
37924 \begin_inset space \thinspace{}
37928 \begin_inset space \thinspace{}
37931 cm overhang, set to the left.
37934 \begin_layout Standard
37935 \begin_inset Note Greyedout
37938 \begin_layout Plain Layout
37944 \begin_inset space ~
37947 wrap float floats are fragile! E.
37948 \begin_inset space \thinspace{}
37952 \begin_inset space \space{}
37955 having a figure too close to the bottom of the page can mess things up in
37956 such a way that the float does not appear in the output or that it is placed
37957 over some other text.
37965 \begin_layout Standard
37966 In general, the following applies for wrap floats:
37969 \begin_layout Itemize
37970 They should not be placed in paragraphs that run over a page break.
37971 That means that wrap floats are better inserted in their exact place when
37972 the document is almost finished and you are able to estimate where page
37973 breaks will appear.
37976 \begin_layout Itemize
37977 They should either be placed in their own paragraph before the paragraph
37978 where they should wrap into or within a paragraph.
37981 \begin_layout Itemize
37982 In consecutive paragraphs they may cause troubles, so ensure that there
37983 is a text paragraph between them as separator.
37986 \begin_layout Itemize
37987 They are not allowed in section headings or tables.
37990 \begin_layout Itemize
37991 Their numbering and referencing works as described in chap.
37992 \begin_inset space \thinspace{}
37996 \begin_inset CommandInset ref
37998 reference "chap:Floats"
38005 \begin_layout Section
38006 Surrounded Fixed Objects
38007 \begin_inset Index idx
38010 \begin_layout Plain Layout
38011 Surrounded by text ! Fixed objects
38019 \begin_layout Standard
38020 The wrap floats described in sec.
38021 \begin_inset space \thinspace{}
38025 \begin_inset CommandInset ref
38027 reference "sec:Wrap-Floats"
38031 have these positions in the paragraph:
38034 \begin_layout Standard
38037 \begin_inset Tabular
38038 <lyxtabular version="3" rows="2" columns="2">
38039 <features tabularvalignment="middle">
38040 <column alignment="center" valignment="top">
38041 <column alignment="center" valignment="top">
38043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38046 \begin_layout Plain Layout
38049 arg "dialog-show-new-inset graphics"
38057 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38060 \begin_layout Plain Layout
38068 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38071 \begin_layout Plain Layout
38077 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38080 \begin_layout Plain Layout
38092 \begin_inset Tabular
38093 <lyxtabular version="3" rows="2" columns="2">
38094 <features tabularvalignment="middle">
38095 <column alignment="center" valignment="top">
38096 <column alignment="center" valignment="top">
38098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38101 \begin_layout Plain Layout
38107 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38110 \begin_layout Plain Layout
38113 arg "dialog-show-new-inset graphics"
38123 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38126 \begin_layout Plain Layout
38132 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38135 \begin_layout Plain Layout
38149 \begin_layout Standard
38150 To get an object exactly at the position where it is inserted, for example
38151 to get one of these positions:
38152 \begin_inset VSpace defskip
38158 \begin_layout Standard
38161 \begin_inset Tabular
38162 <lyxtabular version="3" rows="2" columns="2">
38163 <features tabularvalignment="middle">
38164 <column alignment="center" valignment="top">
38165 <column alignment="center" valignment="top">
38167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38170 \begin_layout Plain Layout
38176 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38179 \begin_layout Plain Layout
38187 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38190 \begin_layout Plain Layout
38193 arg "dialog-show-new-inset graphics"
38201 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38204 \begin_layout Plain Layout
38216 \begin_inset Tabular
38217 <lyxtabular version="3" rows="2" columns="2">
38218 <features tabularvalignment="middle">
38219 <column alignment="center" valignment="top">
38220 <column alignment="center" valignment="top">
38222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38225 \begin_layout Plain Layout
38231 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38234 \begin_layout Plain Layout
38242 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38245 \begin_layout Plain Layout
38251 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38254 \begin_layout Plain Layout
38257 arg "dialog-show-new-inset graphics"
38271 \begin_inset Tabular
38272 <lyxtabular version="3" rows="2" columns="3">
38273 <features tabularvalignment="middle">
38274 <column alignment="center" valignment="top">
38275 <column alignment="center" valignment="top">
38276 <column alignment="center" valignment="top">
38278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38281 \begin_layout Plain Layout
38287 <cell alignment="center" valignment="top" topline="true" usebox="none">
38290 \begin_layout Plain Layout
38293 arg "dialog-show-new-inset graphics"
38301 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38304 \begin_layout Plain Layout
38312 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38315 \begin_layout Plain Layout
38321 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38324 \begin_layout Plain Layout
38330 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38333 \begin_layout Plain Layout
38345 \begin_inset Tabular
38346 <lyxtabular version="3" rows="2" columns="3">
38347 <features tabularvalignment="middle">
38348 <column alignment="center" valignment="top">
38349 <column alignment="center" valignment="top">
38350 <column alignment="center" valignment="top">
38352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38355 \begin_layout Plain Layout
38361 <cell alignment="center" valignment="top" topline="true" usebox="none">
38364 \begin_layout Plain Layout
38370 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38373 \begin_layout Plain Layout
38381 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38384 \begin_layout Plain Layout
38390 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38393 \begin_layout Plain Layout
38396 arg "dialog-show-new-inset graphics"
38404 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38407 \begin_layout Plain Layout
38421 \begin_layout Standard
38424 \begin_inset Tabular
38425 <lyxtabular version="3" rows="3" columns="2">
38426 <features tabularvalignment="middle">
38427 <column alignment="center" valignment="top">
38428 <column alignment="center" valignment="top">
38430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38433 \begin_layout Plain Layout
38439 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38442 \begin_layout Plain Layout
38450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38453 \begin_layout Plain Layout
38456 arg "dialog-show-new-inset graphics"
38464 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38467 \begin_layout Plain Layout
38475 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38478 \begin_layout Plain Layout
38484 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38487 \begin_layout Plain Layout
38499 \begin_inset Tabular
38500 <lyxtabular version="3" rows="3" columns="3">
38501 <features tabularvalignment="middle">
38502 <column alignment="center" valignment="top">
38503 <column alignment="center" valignment="top">
38504 <column alignment="center" valignment="top">
38506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38509 \begin_layout Plain Layout
38515 <cell alignment="center" valignment="top" topline="true" usebox="none">
38518 \begin_layout Plain Layout
38524 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38527 \begin_layout Plain Layout
38535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38538 \begin_layout Plain Layout
38544 <cell alignment="center" valignment="top" usebox="none">
38547 \begin_layout Plain Layout
38550 arg "dialog-show-new-inset graphics"
38558 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38561 \begin_layout Plain Layout
38569 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38572 \begin_layout Plain Layout
38578 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38581 \begin_layout Plain Layout
38587 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38590 \begin_layout Plain Layout
38602 \begin_inset Tabular
38603 <lyxtabular version="3" rows="3" columns="2">
38604 <features tabularvalignment="middle">
38605 <column alignment="center" valignment="top">
38606 <column alignment="center" valignment="top">
38608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38611 \begin_layout Plain Layout
38617 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38620 \begin_layout Plain Layout
38628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38631 \begin_layout Plain Layout
38637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38640 \begin_layout Plain Layout
38643 arg "dialog-show-new-inset graphics"
38653 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38656 \begin_layout Plain Layout
38662 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38665 \begin_layout Plain Layout
38679 \begin_layout Standard
38681 you can use the \SpecialChar LaTeX
38687 \begin_inset Index idx
38690 \begin_layout Plain Layout
38692 -packages ! picinpar
38698 Here is an example:
38701 \begin_layout Standard
38705 \begin_layout Plain Layout
38715 \begin_inset Note Note
38718 \begin_layout Plain Layout
38719 The following section will only be displayed when the \SpecialChar LaTeX
38732 \begin_layout Standard
38736 \begin_layout Plain Layout
38740 begin{window}[2,c,{
38746 \begin_inset Graphics
38747 filename clipart/mobius.eps
38750 scaleBeforeRotation
38751 rotateOrigin center
38759 \begin_layout Plain Layout
38764 \begin_layout Plain Layout
38773 It was in the spring of the year 1894 that all London was interested, and
38774 the fashionable world dismayed, by the murder of the Honourable Ronald
38775 Adair under most unusual and inexplicable circumstances.
38776 The public has already learned those particulars of the crime which
38782 \begin_layout Plain Layout
38793 came out in the police investigation, but a good deal was suppressed upon
38794 that occasion, since the case for the prosecution was so overwhelmingly
38795 strong that it was not necessary to bring forward all the facts.
38796 Only now, at the end of nearly ten years, am I allowed to supply those
38797 missing links which make up the whole of that remarkable chain.
38803 \begin_layout Plain Layout
38815 \begin_layout Standard
38819 \begin_layout Plain Layout
38828 Footnote of the paragraph with the fixed object.
38832 \begin_layout Plain Layout
38842 \begin_layout Standard
38843 Surrounded fixed objects are used to let text float around them, at which
38844 the object's position in the paragraph can be determined by the number
38846 In contrary to floats is it not possible to have a numbered caption.
38849 \begin_layout Standard
38850 A fixed object is inserted by adding the command
38853 \begin_layout Standard
38858 begin{window}[2,c,{
38861 \begin_layout Standard
38862 as \SpecialChar TeX
38863 Code at the beginning of the paragraph.
38864 The first parameter in the bracket, here '2', defines the number of lines
38865 above the object, the second, here 'c', the position of the object.
38866 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38867 Behind the command you insert the object.
38868 In this example an image with a width of 40
38869 \begin_inset space \thinspace{}
38872 % of the text column width was inserted.
38873 The object can also be a table, a box or an equation.
38874 Behind the object the command
38877 \begin_layout Standard
38880 },description text]
38881 \begin_inset Newline newline
38887 \begin_layout Standard
38890 \begin_inset Quotes eld
38898 \begin_inset Quotes erd
38901 is in the second line.
38902 The description text is optional.
38903 The text surrounding the object must be in the same paragraph as the object,
38904 so it must begin directly after the
38909 At the end of the paragraph insert the command:
38912 \begin_layout Standard
38920 \begin_layout Standard
38921 Within a paragraph with a fixed object, you cannot insert footnotes in the
38923 You have to use instead the command
38929 inside the paragraph and outside the command
38935 as described in sec.
38936 \begin_inset space \thinspace{}
38940 \begin_inset CommandInset ref
38942 reference "sec:Footnotes"
38949 \begin_layout Standard
38953 \begin_layout Plain Layout
38963 \begin_inset Note Note
38966 \begin_layout Plain Layout
38967 The following will be displayed when the \SpecialChar LaTeX
38980 \begin_layout Standard
38981 You need to install the \SpecialChar LaTeX
38986 to see the following part of this section in the output.
38989 \begin_layout Standard
38993 \begin_layout Plain Layout
39005 \begin_layout Section
39007 \begin_inset Index idx
39010 \begin_layout Plain Layout
39017 \begin_inset Index idx
39020 \begin_layout Plain Layout
39021 Surrounded by text ! Initials
39029 \begin_layout Standard
39030 To use initials, you must have the \SpecialChar LaTeX
39036 \begin_inset Index idx
39039 \begin_layout Plain Layout
39041 -packages ! lettrine
39046 installed and use the module
39050 in your document (menu
39052 Document\SpecialChar menuseparator
39053 Settings\SpecialChar menuseparator
39057 To insert an initial, use the style
39062 This style has a mandatory and two optional arguments.
39063 The arguments are inserted via the
39068 The mandatory argument
39072 contains the letter(s) that is the initial, the argument
39075 \begin_inset space ~
39079 \begin_inset space ~
39084 contains the rest of the word or text of the initial letter(s).
39089 contains parameters to modify the initial.
39090 For more information about the possible parameters see the documentation
39096 \begin_inset CommandInset citation
39104 The style itself contains the text that is surrounding the initial.
39105 The usual style is hereby that the word whose first letter is the initial,
39113 \begin_layout Standard
39114 Here are some examples:
39117 \begin_layout Standard
39121 \begin_layout Plain Layout
39131 \begin_inset Note Note
39134 \begin_layout Plain Layout
39135 The following section will only be displayed when the \SpecialChar LaTeX
39148 \begin_layout Enumerate
39149 No optional argument, the initial is the letter 'I' in the math font
39150 \begin_inset Formula $\mathfrak{Fraktur}$
39157 \begin_layout Initial
39158 \begin_inset Argument 2
39161 \begin_layout Plain Layout
39162 \begin_inset Formula $\mathfrak{I}$
39171 \begin_inset Argument 3
39174 \begin_layout Plain Layout
39180 was in the spring of the year 1894 that all London was interested, and
39181 the fashionable world dismayed, by the murder of the Honourable Ronald
39182 Adair under most unusual and inexplicable circumstances.
39183 The public has already learned those particulars of the crime which came
39184 out in the police investigation, but a good deal was suppressed upon that
39185 occasion, since the case for the prosecution was so overwhelmingly strong
39186 that it was not necessary to bring forward all the facts.
39187 \begin_inset Newpage newpage
39194 \begin_layout Enumerate
39195 Only one line is surrounding the initial, which is formed by two letters
39196 in standard font and no text is printed in small caps:
39200 \begin_layout Initial
39201 \begin_inset Argument 1
39204 \begin_layout Plain Layout
39211 \begin_inset Argument 2
39214 \begin_layout Plain Layout
39220 was in the spring of the year 1894 that all London was interested, and
39221 the fashionable world dismayed, by the murder of the Honourable Ronald
39222 Adair under most unusual and inexplicable circumstances.
39223 The public has already learned those particulars of the crime which came
39224 out in the police investigation, but a good deal was suppressed upon that
39225 occasion, since the case for the prosecution was so overwhelmingly strong
39226 that it was not necessary to bring forward all the facts.
39230 \begin_layout Enumerate
39231 Magenta, hanging initial over 3
39232 \begin_inset space ~
39235 lines in the math font
39236 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39240 \begin_inset Quotes eld
39243 t was in the spring
39244 \begin_inset Quotes erd
39251 ; to color the initial, you must insert this command before the initial:
39252 \begin_inset Newline newline
39266 \begin_inset Newline newline
39274 \begin_inset Quotes eld
39278 \begin_inset Quotes erd
39282 \begin_inset Quotes eld
39286 \begin_inset Quotes erd
39290 \begin_inset Quotes eld
39294 \begin_inset Quotes erd
39298 \begin_inset Quotes eld
39302 \begin_inset Quotes erd
39306 \begin_inset Quotes eld
39310 \begin_inset Quotes erd
39314 \begin_inset Quotes eld
39318 \begin_inset Quotes erd
39322 \begin_inset Quotes eld
39326 \begin_inset Quotes erd
39330 \begin_inset Quotes eld
39334 \begin_inset Quotes erd
39337 , and add this command to the document preamble:
39338 \begin_inset Newline newline
39345 @ifundefined{textcolor}
39346 \begin_inset Newline newline
39350 \begin_inset space ~
39355 usepackage{color}}{}
39359 \begin_layout Standard
39363 \begin_layout Plain Layout
39377 \begin_inset Note Note
39380 \begin_layout Plain Layout
39381 makes the initial magenta
39389 \begin_layout Initial
39390 \begin_inset Argument 1
39393 \begin_layout Plain Layout
39394 lines=3, lhang=0.33, loversize=0.25
39400 \begin_inset Argument 2
39403 \begin_layout Plain Layout
39404 \begin_inset Formula $\mathcal{I}$
39413 \begin_inset Argument 3
39416 \begin_layout Plain Layout
39417 t was in the spring
39422 of the year 1894 that all London was interested, and the fashionable world
39423 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39424 and inexplicable circumstances.
39425 The public has already learned those particulars of the crime which came
39426 out in the police investigation, but a good deal was suppressed upon that
39427 occasion, since the case for the prosecution was so overwhelmingly strong
39428 that it was not necessary to bring forward all the facts.
39432 \begin_layout Standard
39436 \begin_layout Plain Layout
39446 \begin_inset Note Note
39449 \begin_layout Plain Layout
39450 The following will be displayed when the \SpecialChar LaTeX
39463 \begin_layout Standard
39464 You need to install the \SpecialChar LaTeX
39469 to see the following part of this section in the output.
39472 \begin_layout Standard
39476 \begin_layout Plain Layout
39488 \begin_layout Chapter
39489 External Document Parts
39490 \begin_inset Index idx
39493 \begin_layout Plain Layout
39494 External Document Parts
39502 \begin_layout Standard
39505 Insert\SpecialChar menuseparator
39508 you can insert external material into your document.
39512 \begin_layout Description
39514 \begin_inset space ~
39517 Document Another \SpecialChar LyX
39518 document; its content is directly inserted to your document.
39521 \begin_layout Description
39523 \begin_inset space ~
39526 Text A text document; each line is inserted in your document as a separate
39530 \begin_layout Description
39532 \begin_inset space ~
39536 \begin_inset space ~
39540 \begin_inset space ~
39543 Lines A text document; text lines are inserted in your document continuously
39544 but an empty text line creates a new paragraph.
39547 \begin_layout Description
39549 \begin_inset space ~
39552 Material Files in various formats.
39555 \begin_layout Description
39557 \begin_inset space ~
39560 Document \SpecialChar LyX
39561 or \SpecialChar LaTeX
39565 \begin_layout Section
39567 \begin_inset Index idx
39570 \begin_layout Plain Layout
39571 External Document Parts ! External Material
39579 \begin_layout Standard
39580 The external material feature allows you to insert files into your document
39581 without converting them to a format that can be read by the document output
39584 takes care of the necessary conversions.
39585 This is similar to images that can be inserted in various image formats
39586 in \SpecialChar LyX
39588 When you have enabled Instant Preview in \SpecialChar LyX
39589 's preferences under
39592 \begin_inset space ~
39596 \begin_inset space ~
39599 feel\SpecialChar menuseparator
39602 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39606 \begin_layout Standard
39607 External material can be inserted via the
39611 dialog that is accessible with the menu
39613 Insert\SpecialChar menuseparator
39614 File\SpecialChar menuseparator
39616 \begin_inset space ~
39622 Currently the following file types (
39629 \begin_layout Description
39631 \begin_inset space ~
39634 diagram This template supports chess position diagrams made with the program
39638 \begin_inset CommandInset href
39641 target "http://en.wikipedia.org/wiki/XBoard"
39651 \begin_layout Description
39653 \begin_inset space ~
39656 diagram This template supports diagrams created with the program
39659 \begin_inset CommandInset href
39662 target "http://en.wikipedia.org/wiki/Dia_(software)"
39672 \begin_layout Description
39673 Spreadsheet With this template you can insert spreadsheets
39674 \begin_inset space \thinspace{}
39678 \begin_inset space \thinspace{}
39681 tables in the format of
39684 \begin_inset CommandInset href
39687 target "http://en.wikipedia.org/wiki/Gnumeric"
39695 \begin_inset CommandInset href
39697 name "OpenDocument"
39698 target "http://en.wikipedia.org/wiki/OpenDocument"
39704 \begin_inset CommandInset href
39706 name "Microsoft Office XML"
39707 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39713 \begin_inset CommandInset href
39715 name "Office Open XML"
39716 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39722 For this feature \SpecialChar LyX
39723 must have found the program
39727 during its configuration.
39728 This program is part of Gnumeric, so that you must have Gnumeric installed,
39729 also if you don't have tables in the Gnumeric format.
39730 For examples and possible limitations have a look at \SpecialChar LyX
39738 \begin_layout Description
39740 \begin_inset space ~
39744 \begin_inset space ~
39747 music This template is used for music notation typeset with the program
39748 \begin_inset Newline linebreak
39754 \begin_inset CommandInset href
39757 target "http://en.wikipedia.org/wiki/LilyPond"
39765 For \SpecialChar LyX
39766 's extended support for LilyPond have a look at \SpecialChar LyX
39774 \begin_layout Description
39776 \begin_inset space ~
39779 pages With this template you can insert PDF documents to your document.
39780 To specify the range of pages that should be included, use the option
39790 LaTeX and LyX options
39793 The argument of this option is a comma separated list, containing page
39794 numbers (insert as option
39798 ), ranges of page numbers (
39802 ) or any combination.
39803 To insert empty pages use {}.
39805 \begin_inset space \thinspace{}
39809 \begin_inset space ~
39814 pages={3,{},8-11,15}
39816 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39817 Page ranges are specified in the syntax
39826 This selects all pages from
39839 defaults to the first page; omitting
39843 defaults to the last page of the document.
39844 The last page can also be selected with the keyword
39849 (This is only permitted in a page range.) So
39853 will insert all pages of the document and
39857 will insert all pages in reverse order.
39858 If the pages option is not specified, only the first page of the PDF is
39860 \begin_inset Newline newline
39867 inserts the pages with their original size, if this option is not given,
39868 the pages will be resized to fith the width of the page of your document.
39873 you can specify the width and height of the input pages and their rotation.
39874 If another width than 100
39875 \begin_inset space \thinspace{}
39878 Scale% is used, the option
39882 will be overwritten.
39883 For more info and possible options, have a look into the documentation
39884 of the \SpecialChar LaTeX
39890 \begin_inset CommandInset citation
39898 \begin_inset Index idx
39901 \begin_layout Plain Layout
39903 -packages ! pdfpages
39909 \begin_inset Newline newline
39912 To use this template in a
39916 presentation you need to first insert an
39920 environment and in a subsequent paragraph a \SpecialChar TeX
39921 Code box containing the command
39926 setbeamertemplate{background canvas}{}
39929 Then you can insert as many paragraphs containing the PDFPages template
39931 Behind the included PDF pages you can resume the Beamer presentation by
39932 beginning a new frame or by starting a new section.
39933 To avoid stray blank pages prior to the PDF pages, make sure to use the
39938 alignment for the paragraph containing the template.
39939 \begin_inset Newline newline
39942 Here is an included PDF which is rotated by -5°:
39943 \begin_inset External
39945 filename clipart/Abstract.pdf
39946 extra LaTeX "noautoscale, pages=-"
39948 rotateOrigin bottomleft
39955 \begin_layout Description
39957 \begin_inset space ~
39960 image This can be used for bitmap images.
39961 The image can be treated in the
39965 dialog like the images that are usually included via the
39969 dialog as described in section
39970 \begin_inset space ~
39974 \begin_inset CommandInset ref
39976 reference "sec:Graphics-Dialog"
39981 Here is an inserted raster image:
39982 \begin_inset External
39983 template RasterImage
39984 filename clipart/ToolbarEnvBox.png
39991 \begin_layout Description
39993 \begin_inset space ~
39996 graphics This can be used for vector graphics.
39997 The image can be treated in the
40001 dialog like the images that are usually included via the
40005 dialog as described in section
40006 \begin_inset space ~
40010 \begin_inset CommandInset ref
40012 reference "sec:Graphics-Dialog"
40017 Here is an inserted vector graphics:
40018 \begin_inset External
40019 template VectorGraphics
40020 filename clipart/SVG-Drawing.svg
40029 \begin_layout Description
40031 \begin_inset space ~
40034 figure This template supports images created with the program
40035 \begin_inset CommandInset href
40038 target "http://en.wikipedia.org/wiki/Xfig"
40046 \begin_layout Description
40048 \begin_inset space ~
40051 figure This experimental template supports vector graphics (SVG) images
40052 that contain text written in \SpecialChar LaTeX
40054 It relies on the option
40056 Omit text in PDF and create LaTeX file
40058 when saving a drawing as PDF with the program
40063 \begin_inset CommandInset citation
40071 This allows to include SVG documents in which \SpecialChar LaTeX
40072 will typeset the text.
40073 The benefit of such SVGs is a uniform text style throughout the whole document.
40074 \begin_inset Newline newline
40077 One can use \SpecialChar TeX
40091 \begin_inset space \space{}
40094 in the text of the SVG.
40095 The size of the font will be taken from the settings of the \SpecialChar LyX
40098 \begin_inset CommandInset citation
40105 for more information and examples.
40106 \begin_inset Newline newline
40109 Note that while the image text takes into account the surrounding font,
40110 its preview in \SpecialChar LyX
40112 Wrapping the external inset in a preview inset (menu
40114 Insert\SpecialChar menuseparator
40117 ) gives a better result.
40118 \begin_inset Newline newline
40121 The template works very similarly to Xfig support.
40123 will extract the text in the image into a separate \SpecialChar TeX
40125 PDF file for the rest.
40128 \begin_layout Standard
40129 \begin_inset Float table
40135 \begin_layout Plain Layout
40136 \begin_inset Caption Standard
40138 \begin_layout Plain Layout
40139 \begin_inset CommandInset label
40141 name "tab:Comparison-of-the"
40145 Comparison of the date input methods.
40153 \begin_layout Plain Layout
40155 \begin_inset Tabular
40156 <lyxtabular version="3" rows="4" columns="3">
40157 <features tabularvalignment="middle">
40158 <column alignment="center" valignment="top">
40159 <column alignment="center" valignment="top">
40160 <column alignment="center" valignment="top">
40162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40165 \begin_layout Plain Layout
40171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40174 \begin_layout Plain Layout
40177 Insert\SpecialChar menuseparator
40183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40186 \begin_layout Plain Layout
40198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40201 \begin_layout Plain Layout
40208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40211 \begin_layout Plain Layout
40217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40220 \begin_layout Plain Layout
40221 as \SpecialChar TeX
40229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40232 \begin_layout Plain Layout
40239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40242 \begin_layout Plain Layout
40248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40251 \begin_layout Plain Layout
40259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40262 \begin_layout Plain Layout
40268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40271 \begin_layout Plain Layout
40277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40280 \begin_layout Plain Layout
40299 \begin_layout Standard
40300 When you use the option
40312 dialog, only the path to the inserted file is shown in the output.
40313 \begin_inset Newline newline
40316 External material is displayed in \SpecialChar LyX
40317 either as a box like this:
40318 \begin_inset Graphics
40319 filename clipart/ExternalMaterial.png
40321 scaleBeforeRotation
40325 or as image, depending on the option
40331 LaTeX and LyX options
40336 \begin_layout Standard
40343 manual explains how you can define your own templates.
40346 \begin_layout Section
40348 \begin_inset CommandInset label
40350 name "sec:Child-Documents"
40355 \begin_inset Index idx
40358 \begin_layout Plain Layout
40359 External Document Parts ! Child Documents
40365 \begin_inset Index idx
40368 \begin_layout Plain Layout
40377 \begin_layout Standard
40378 Child documents are used if you have a long document consisting of several
40379 larger parts or sections.
40380 For maintenance it is often useful and sometimes even required to split
40381 the document into several files that can be revised separately.
40382 The different documents are then the so called
40383 \begin_inset Quotes eld
40387 \begin_inset Quotes erd
40390 , and a master document connects them to print the full document or parts
40392 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40394 the bibliography, and labels for cross-references.
40397 \begin_layout Standard
40398 To be able to work on child documents without the need to open their master,
40399 specify in the child document the master in the menu
40401 Document\SpecialChar menuseparator
40402 Settings\SpecialChar menuseparator
40404 \begin_inset space ~
40410 This master document will then be used in the background by \SpecialChar LyX
40412 the child document.
40415 \begin_layout Standard
40416 Included documents are displayed in \SpecialChar LyX
40417 as a box like this:
40418 \begin_inset Graphics
40419 filename clipart/ChildDocument.png
40421 scaleBeforeRotation
40425 To include child documents in a master document use the menu
40427 Insert\SpecialChar menuseparator
40428 File\SpecialChar menuseparator
40430 \begin_inset space ~
40436 A dialog pops up where you can choose between four include methods:
40439 \begin_layout Description
40440 Include You can include \SpecialChar LyX
40441 and \SpecialChar LaTeX
40451 dialog, the included document will be opened in \SpecialChar LyX
40452 in a new file tab so that
40454 \begin_inset Newline newline
40460 \begin_layout Standard
40461 Here is a child document inserted using
40466 \begin_inset CommandInset include
40467 LatexCommand include
40468 filename "DummyDocument1.lyx"
40475 \begin_layout Standard
40476 The section numbering includes the sections of the included files in the
40477 order they are inserted in the master document.
40478 The included example document has for example a subsection that is numbered
40479 as a subsection of this section.
40480 Labels of included documents can be referenced: Subsection
40481 \begin_inset space ~
40485 \begin_inset CommandInset ref
40487 reference "subsec:External-Subsection-1"
40494 \begin_layout Standard
40495 The preamble of the child document is ignored; only the preamble of the
40496 master document is used.
40497 Branches in child documents will be ignored by the master document when
40498 the master document does not have a branch with the same name.
40499 Included documents are inserted starting on a new page and ending with
40503 \begin_layout Standard
40504 \begin_inset Note Greyedout
40507 \begin_layout Plain Layout
40512 If you have included a \SpecialChar LyX
40513 or \SpecialChar LaTeX
40514 file, you are warned when you export/view the
40515 document in case the child document uses another document class than the
40516 master document as this will lead to unexpected outputs.
40524 \begin_layout Description
40525 Input This method is very similar to the Include method.
40526 The differences are:
40530 \begin_layout Itemize
40531 Input files don't start with a new page and don't end with a page break.
40534 \begin_layout Itemize
40535 Input files can be previewed in \SpecialChar LyX
40539 \begin_inset space ~
40544 is enabled in \SpecialChar LyX
40545 's preferences under
40548 \begin_inset space ~
40552 \begin_inset space ~
40555 feel\SpecialChar menuseparator
40561 \begin_layout Itemize
40562 You cannot exclude Input files via the menu
40564 Document\SpecialChar menuseparator
40565 Settings\SpecialChar menuseparator
40572 \begin_layout Standard
40573 Here is a child document inserted using
40578 \begin_inset CommandInset include
40580 filename "DummyDocument2.lyx"
40587 \begin_layout Description
40588 Verbatim With this method any text file can be included.
40589 The file is shown in the output with its source code; no command used in
40590 the text is invoked.
40591 You can use the option
40593 Mark spaces in output
40595 that displays the character
40596 \begin_inset Quotes eld
40603 \begin_layout Plain Layout
40613 \begin_inset Quotes erd
40616 for every space character in the source code.
40617 The difference from the method via the menu
40619 Insert\SpecialChar menuseparator
40620 File\SpecialChar menuseparator
40622 \begin_inset space ~
40627 is that the document content is not shown in \SpecialChar LyX
40631 \begin_layout Standard
40632 Here is a child document inserted as Verbatim:
40633 \begin_inset CommandInset include
40634 LatexCommand verbatiminput
40635 filename "DummyTextDocument.txt"
40640 \begin_inset VSpace bigskip
40643 Here is a child document inserted as Verbatim using the
40645 Mark spaces in output
40648 \begin_inset CommandInset include
40649 LatexCommand verbatiminput*
40650 filename "DummyTextDocument.txt"
40657 \begin_layout Standard
40658 \begin_inset VSpace bigskip
40664 \begin_layout Standard
40665 \begin_inset Note Greyedout
40668 \begin_layout Plain Layout
40673 As you can see in the examples above, the text of the documents included
40678 is not broken at the end of the document lines.
40686 \begin_layout Description
40687 Listings This type is described in chapter
40688 \begin_inset space ~
40692 \begin_inset CommandInset ref
40694 reference "cha:Program-Code-Listings"
40701 \begin_layout Standard
40702 \begin_inset Note Greyedout
40705 \begin_layout Plain Layout
40710 Including the same document twice in a document using different methods
40711 could cause \SpecialChar LaTeX
40720 \begin_layout Standard
40721 If you want to view/export only selected children of your master document,
40722 either because you want to save compiling time or because you want to distribut
40723 e single chapters of the book you are just writing, you can exclude children
40725 This is done via the menu
40727 Document\SpecialChar menuseparator
40728 Settings\SpecialChar menuseparator
40732 You can exclude\SpecialChar breakableslash
40733 include children by double-clicking on the
40737 column of the respective child document in the list (note that this only
40738 works for documents embedded via
40739 \begin_inset Quotes eld
40743 \begin_inset Quotes erd
40747 \begin_inset Quotes eld
40751 \begin_inset Quotes erd
40757 Maintain counters and references
40759 is enabled, \SpecialChar LyX
40760 will assure that all page numbers, references etc.
40761 \begin_inset space ~
40764 are correct as if the whole document was processed.
40765 This is useful if you want the selected sub-documents to look exactly as
40766 in the context of the whole document.
40767 However, \SpecialChar LyX
40768 needs to process the whole document in the background for this
40770 So if you want to save compile time and if counters and references do not
40771 need to be correct, disable this checkbox.
40774 \begin_layout Standard
40775 Alternatively, you can put each included file into a branch.
40779 \begin_layout Plain Layout
40780 Branches are described in section
40784 of the \SpecialChar LyX
40794 By enabling\SpecialChar breakableslash
40795 disabling branches you can decide which included files will
40796 appear in the output.
40797 This has the advantage that it also works with Input'ed sub-documents.
40798 However, counters and references will not be maintained with this approach.
40801 \begin_layout Chapter
40802 Program Code Listings
40803 \begin_inset CommandInset label
40805 name "cha:Program-Code-Listings"
40810 \begin_inset Index idx
40813 \begin_layout Plain Layout
40820 \begin_inset Index idx
40823 \begin_layout Plain Layout
40830 \begin_inset Index idx
40833 \begin_layout Plain Layout
40842 \begin_layout Standard
40843 To include and typeset program code you can use the
40847 inset that can be inserted via the menu
40849 Insert\SpecialChar menuseparator
40853 The \SpecialChar LaTeX
40855 \change_inserted 5863344 1497177967
40863 \begin_inset Index idx
40866 \begin_layout Plain Layout
40868 -packages ! listings
40874 \change_inserted 5863344 1497177997
40880 \begin_inset Index idx
40883 \begin_layout Plain Layout
40885 \change_inserted 5863344 1497178009
40895 \change_deleted 5863344 1497178016
40898 a powerful and flexible way to insert program source code into your document.
40900 \change_inserted 5863344 1497178383
40901 You can use either one in a document, but listings is used by default.
40902 In order to use minted, you need to check the box
40903 \begin_inset Quotes eld
40907 \begin_inset Quotes erd
40910 in Document\SpecialChar menuseparator
40911 Settings\SpecialChar menuseparator
40913 However, note that minted requires additional software (the pygments python
40918 option for the latex backend, which allows arbitrary code execution.
40923 \begin_layout Standard
40924 Right-clicking on a listings inset opens the context menu containing where
40925 you can set the listings format.
40928 \begin_layout Standard
40929 By default, a listing starts a new paragraph in the output.
40930 The placement option
40933 \begin_inset space ~
40938 prints the listing inline like this:
40939 \begin_inset listings
40940 lstparams "language={C++}"
40944 \begin_layout Plain Layout
40952 \begin_inset Newline newline
40959 creates a listings float where you can specify the placement options
40960 \begin_inset Quotes eld
40968 \begin_inset Quotes erd
40972 \begin_inset Quotes eld
40980 \begin_inset Quotes erd
40984 \begin_inset Quotes eld
40992 \begin_inset Quotes erd
40996 \begin_inset Quotes eld
41004 \begin_inset Quotes erd
41007 corresponding to the float placement options described in section
41008 \begin_inset space ~
41012 \begin_inset CommandInset ref
41014 reference "sec:Float-Placement"
41019 The placement options can be mixed and are inserted without any separation,
41021 \begin_inset space \thinspace{}
41025 \begin_inset space \space{}
41029 \begin_inset Quotes eld
41037 \begin_inset Quotes erd
41042 \begin_inset Quotes eld
41046 \begin_inset Quotes erd
41049 has sometimes no effect, but you don't need to use the
41053 option in this case as also non-float listings can have captions and be
41055 \change_inserted 5863344 1497179331
41059 \begin_layout Standard
41061 \change_inserted 5863344 1497179333
41062 \begin_inset listings
41063 lstparams "language=Python"
41067 \begin_layout Plain Layout
41069 \change_inserted 5863344 1497179333
41071 \begin_inset Caption Standard
41073 \begin_layout Plain Layout
41075 \change_inserted 5863344 1497179333
41076 \begin_inset CommandInset label
41078 name "lst:Example-Listing"
41082 Example Listing float
41087 # Example listing float
41090 \begin_layout Plain Layout
41092 \change_inserted 5863344 1497179333
41097 \begin_layout Plain Layout
41099 \change_inserted 5863344 1497179333
41101 'this is a python function'
41104 \begin_layout Plain Layout
41106 \change_inserted 5863344 1497179333
41118 \begin_layout Standard
41119 You can add captions to listings with the menu
41121 Insert\SpecialChar menuseparator
41125 Listings can be referenced like floats: Listing
41126 \begin_inset space ~
41130 \begin_inset CommandInset ref
41132 reference "lst:Example-Listing"
41137 A list of listings which contains all listings with captions can be created
41140 Insert\SpecialChar menuseparator
41142 \begin_inset space ~
41146 \begin_inset space ~
41149 TOC\SpecialChar menuseparator
41153 The list entries are the listing caption and the listing number.
41154 \change_inserted 5863344 1497179524
41158 \begin_layout Standard
41160 \change_inserted 5863344 1497179494
41161 \begin_inset Note Greyedout
41164 \begin_layout Plain Layout
41166 \change_inserted 5863344 1497179551
41171 The listings package places captions before the listing by default, while
41172 the minted package places them after the listing by default if it is floating.
41173 If the listing is not floating and minted is used, the place of the caption
41174 is determined by the position it is inserted in the inset.
41175 If it is inserted in the first line of the inset, the caption will be typeset
41176 before the listing, otherwise it will be typeset after the listing.
41177 If you use minted and would like to have captions before the listing even
41178 when it is a float, you have to add the following lines to the preamble:
41181 \begin_layout LyX-Code
41183 \change_inserted 5863344 1497179494
41189 \begin_layout LyX-Code
41191 \change_inserted 5863344 1497179494
41194 floatstyle{plaintop}
41206 \begin_layout Standard
41208 \change_deleted 5863344 1497179361
41209 \begin_inset listings
41210 lstparams "language=Python"
41214 \begin_layout Plain Layout
41216 \begin_inset Caption Standard
41218 \begin_layout Plain Layout
41219 \begin_inset CommandInset label
41221 name "lis:Example-Listing-old"
41225 Example Listing float
41230 # Example listing float
41233 \begin_layout Plain Layout
41238 \begin_layout Plain Layout
41240 'this is a python function'
41243 \begin_layout Plain Layout
41255 \begin_layout Standard
41256 When you have set a programming language in the listings dialog, the keywords
41257 of this language will be recognized and specially typeset in the output.
41258 In the example listings the Python keyword
41259 \begin_inset Quotes eld
41263 \begin_inset Quotes erd
41266 is recognized and printed bold in the output.
41269 \begin_layout Standard
41270 \begin_inset Note Greyedout
41273 \begin_layout Plain Layout
41278 If you don't get bold keywords when using typewriter fonts, your
41282 font probably doesn't provide a bold shape.
41283 In this case select a different one in the menu
41285 Document\SpecialChar menuseparator
41286 Settings\SpecialChar menuseparator
41298 provide bold shapes.)
41306 \begin_layout Standard
41310 \begin_inset space ~
41315 of the listings dialog you can specify the line numbering style.
41316 You can insert a number to specify which lines are numbered in the field
41323 \begin_inset space \thinspace{}
41327 \begin_inset space \space{}
41331 \begin_inset Quotes eld
41335 \begin_inset Quotes erd
41338 , only every 3rd line will be numbered.
41341 \begin_layout Standard
41342 You can furthermore specify a range of lines; only these will then appear
41346 Extended character table
41349 \change_inserted 5863344 1497179749
41350 is only meaningful for the listings package and
41352 should be used when you use national characters like the German umlauts
41355 \change_inserted 5863344 1497179779
41356 It is not needed with minted.
41359 \begin_inset Newline newline
41362 Here is an example listing with left line numbering, step
41363 \begin_inset Quotes eld
41367 \begin_inset Quotes erd
41371 \begin_inset Quotes eld
41375 \begin_inset Quotes erd
41379 \begin_inset Quotes eld
41382 Extended character table
41383 \begin_inset Quotes erd
41387 \begin_inset Quotes eld
41391 \begin_inset space ~
41395 \begin_inset space ~
41399 \begin_inset Quotes erd
41403 \begin_inset space \thinspace{}
41407 \begin_inset space \thinspace{}
41413 \begin_layout Standard
41414 \begin_inset listings
41415 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41419 \begin_layout Plain Layout
41424 \begin_layout Plain Layout
41426 'this is a python function'
41429 \begin_layout Plain Layout
41434 \begin_layout Plain Layout
41439 \begin_layout Plain Layout
41441 'This is a German word: Tschüß'
41444 \begin_layout Plain Layout
41449 \begin_layout Plain Layout
41454 \begin_layout Plain Layout
41456 'this is a python function'
41459 \begin_layout Plain Layout
41469 \begin_layout Standard
41470 When you have tabulators in your listing, you can specify the number of
41471 characters that are spanned by a tabulator in the field
41474 \begin_inset space ~
41482 \begin_layout Standard
41483 \begin_inset Note Greyedout
41486 \begin_layout Plain Layout
41491 Due to a bug in the
41495 package the line numbering is shifted by a line by every previous listing.
41496 That's the reason why the lines 2 and 5 are numbered in the above listing
41497 and not the lines 3 and 6.
41505 \begin_layout Standard
41506 \begin_inset VSpace bigskip
41512 \begin_layout Standard
41513 It is also possible to print lines from a file as listing.
41514 To do this, use the menu
41516 Insert\SpecialChar menuseparator
41517 File\SpecialChar menuseparator
41520 and choose the type
41528 \begin_layout Plain Layout
41529 The other child document types are described in section
41530 \begin_inset space ~
41534 \begin_inset CommandInset ref
41536 reference "sec:Child-Documents"
41545 In the child document dialog you can specify the listing parameters in
41547 To show a list of all available parameters, type in a question mark
41548 \begin_inset Quotes eld
41552 \begin_inset Quotes erd
41558 \begin_layout Standard
41559 To reference child document listings, write a label text into the corresponding
41560 field of the child document dialog.
41561 The label can then be referenced using the menu
41563 Insert\SpecialChar menuseparator
41569 \begin_layout Standard
41571 \begin_inset space ~
41575 \begin_inset CommandInset ref
41577 reference "lst:file-listing"
41581 is an example for a listing of a file; there the lines 10
41582 \begin_inset space \thinspace{}
41586 \begin_inset space \thinspace{}
41589 15 of this \SpecialChar LyX
41593 \begin_layout Standard
41594 \begin_inset CommandInset include
41595 LatexCommand lstinputlisting
41596 filename "EmbeddedObjects.lyx"
41597 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41604 \begin_layout Standard
41605 \begin_inset VSpace bigskip
41611 \begin_layout Standard
41612 Inserting a formula into a listing can be done the following way:
41615 \begin_layout Enumerate
41616 Open the listings dialog and add
41617 \begin_inset Newline newline
41625 \begin_inset Newline newline
41628 to the field of the
41635 \begin_layout Enumerate
41636 Create a formula outside the listing
41639 \begin_layout Enumerate
41640 Copy the content of the formula (not the formula inset) to the clipboard
41650 \begin_layout Enumerate
41651 In the listing write
41652 \begin_inset Quotes eld
41660 \begin_inset Quotes erd
41663 and copy from the clipboard between the dollar-signs (shortcut
41672 \begin_layout Standard
41673 \begin_inset listings
41674 lstparams "language=Python,mathescape=true"
41678 \begin_layout Plain Layout
41680 \begin_inset Caption Standard
41682 \begin_layout Plain Layout
41683 Example Listing float containing a formula
41688 # Example listing float
41691 \begin_layout Plain Layout
41696 \begin_layout Plain Layout
41709 \begin_layout Plain Layout
41719 \begin_layout Standard
41720 \begin_inset VSpace bigskip
41726 \begin_layout Standard
41727 Global listings settings can be set in the
41729 Document\SpecialChar menuseparator
41730 Settings\SpecialChar menuseparator
41734 To get there a list of available options, type in a question mark
41735 \begin_inset Quotes eld
41739 \begin_inset Quotes erd
41745 \begin_layout Standard
41746 For more information about the
41751 \change_inserted 5863344 1497179948
41759 \change_inserted 5863344 1497179951
41763 \change_deleted 5863344 1497179970
41765 \change_inserted 5863344 1497179971
41769 \begin_inset CommandInset citation
41771 key "listings,minted"
41779 \begin_layout Standard
41780 \begin_inset Newpage newpage
41786 \begin_layout Chapter
41788 Units available in \SpecialChar LyX
41790 \begin_inset Index idx
41793 \begin_layout Plain Layout
41800 \begin_inset CommandInset label
41802 name "cha:Units-available-in"
41809 \begin_layout Standard
41810 To understand the units described in this documentation, Table
41811 \begin_inset space ~
41815 \begin_inset CommandInset ref
41817 reference "tab:Units"
41821 explains all units available in \SpecialChar LyX
41825 \begin_layout Standard
41826 \begin_inset Float table
41832 \begin_layout Plain Layout
41833 \begin_inset Caption Standard
41835 \begin_layout Plain Layout
41836 \begin_inset CommandInset label
41850 \begin_layout Plain Layout
41851 \begin_inset VSpace medskip
41857 \begin_layout Plain Layout
41859 \begin_inset Tabular
41860 <lyxtabular version="3" rows="20" columns="3">
41861 <features tabularvalignment="middle">
41862 <column alignment="center" valignment="top">
41863 <column alignment="center" valignment="top">
41864 <column alignment="center" valignment="top">
41866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41869 \begin_layout Plain Layout
41875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41878 \begin_layout Plain Layout
41884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41887 \begin_layout Plain Layout
41896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41899 \begin_layout Plain Layout
41905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41908 \begin_layout Plain Layout
41914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41917 \begin_layout Plain Layout
41925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41928 \begin_layout Plain Layout
41934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41937 \begin_layout Plain Layout
41943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41946 \begin_layout Plain Layout
41954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41957 \begin_layout Plain Layout
41963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41966 \begin_layout Plain Layout
41972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41975 \begin_layout Plain Layout
41983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41986 \begin_layout Plain Layout
41992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41995 \begin_layout Plain Layout
41997 \begin_inset space \thinspace{}
42001 \begin_inset space \thinspace{}
42009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42012 \begin_layout Plain Layout
42020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42023 \begin_layout Plain Layout
42029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42032 \begin_layout Plain Layout
42034 \begin_inset space \thinspace{}
42038 \begin_inset space \thinspace{}
42046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42049 \begin_layout Plain Layout
42057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42060 \begin_layout Plain Layout
42066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42069 \begin_layout Plain Layout
42070 scaled point (65536
42071 \begin_inset space \thinspace{}
42075 \begin_inset space \thinspace{}
42083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42086 \begin_layout Plain Layout
42094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42097 \begin_layout Plain Layout
42103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42106 \begin_layout Plain Layout
42108 \begin_inset space \thinspace{}
42112 \begin_inset space \thinspace{}
42120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42123 \begin_layout Plain Layout
42131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42134 \begin_layout Plain Layout
42140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42143 \begin_layout Plain Layout
42145 \begin_inset space \thinspace{}
42149 \begin_inset Formula $\approx$
42153 \begin_inset space \thinspace{}
42161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42164 \begin_layout Plain Layout
42172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42175 \begin_layout Plain Layout
42181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42184 \begin_layout Plain Layout
42186 \begin_inset space \thinspace{}
42190 \begin_inset space \thinspace{}
42198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42201 \begin_layout Plain Layout
42209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42212 \begin_layout Plain Layout
42218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42221 \begin_layout Plain Layout
42222 % of original image width
42227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42230 \begin_layout Plain Layout
42238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42241 \begin_layout Plain Layout
42247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42250 \begin_layout Plain Layout
42256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42259 \begin_layout Plain Layout
42269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42272 \begin_layout Plain Layout
42278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42281 \begin_layout Plain Layout
42287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42290 \begin_layout Plain Layout
42300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42303 \begin_layout Plain Layout
42309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42312 \begin_layout Plain Layout
42318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42321 \begin_layout Plain Layout
42331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42334 \begin_layout Plain Layout
42340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42343 \begin_layout Plain Layout
42349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42352 \begin_layout Plain Layout
42362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42365 \begin_layout Plain Layout
42371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42374 \begin_layout Plain Layout
42380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42383 \begin_layout Plain Layout
42393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42396 \begin_layout Plain Layout
42402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42405 \begin_layout Plain Layout
42411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42414 \begin_layout Plain Layout
42424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42427 \begin_layout Plain Layout
42433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42436 \begin_layout Plain Layout
42446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42449 \begin_layout Plain Layout
42457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42460 \begin_layout Plain Layout
42466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42469 \begin_layout Plain Layout
42479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42482 \begin_layout Plain Layout
42490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42493 \begin_layout Plain Layout
42499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42502 \begin_layout Plain Layout
42504 \begin_inset space \thinspace{}
42508 \begin_inset space \thinspace{}
42516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42519 \begin_layout Plain Layout
42538 \begin_layout Chapter
42539 Output File Formats with Graphics
42540 \begin_inset CommandInset label
42542 name "cha:Output-File-Formats"
42549 \begin_layout Section
42551 \begin_inset Index idx
42554 \begin_layout Plain Layout
42561 \begin_inset Index idx
42564 \begin_layout Plain Layout
42569 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42595 \begin_layout Standard
42596 This file type has the extension
42597 \begin_inset Quotes eld
42605 \begin_inset Quotes erd
42610 \begin_inset Quotes eld
42614 \begin_inset Quotes erd
42617 (DVI), because it is completely portable; you can move them from one machine
42618 to another without needing to do any sort of conversion.
42619 At the time when this file-format was developed, this was no matter of
42621 DVIs are used for quick previews and as pre-stage for other output formats,
42625 \begin_layout Standard
42626 \begin_inset Note Greyedout
42629 \begin_layout Plain Layout
42634 DVI-files do not contain images; they will only be a linked.
42639 So don't forget this, if you move your
42643 file to another computer.
42644 This property can also slow down your computer when you view the DVI, because
42645 the DVI-viewer has to convert the image in the background to make it visible
42646 when you scroll in the DVI.
42647 So it is recommended that you use PDF for files with many images.
42650 \begin_layout Standard
42651 You can export your document to DVI by using the menu
42653 File\SpecialChar menuseparator
42654 Export\SpecialChar menuseparator
42658 You can view your document as DVI via the
42665 \begin_layout Section
42667 \begin_inset Index idx
42670 \begin_layout Plain Layout
42671 File Formats ! PostScript
42677 \begin_inset Index idx
42680 \begin_layout Plain Layout
42685 \begin_layout Plain Layout
42696 \begin_layout Plain Layout
42711 \begin_layout Standard
42712 This file type has the extension
42713 \begin_inset Quotes eld
42721 \begin_inset Quotes erd
42725 PostScript was developed by the company
42729 as a printer language.
42730 The file therefore contains commands that the printer uses to print the
42732 PostScript can be seen as a
42733 \begin_inset Quotes eld
42736 programming language
42737 \begin_inset Quotes erd
42740 ; you can calculate with it and draw diagrams and images.
42744 \begin_layout Plain Layout
42745 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42752 \begin_inset CommandInset citation
42764 Due to this ability, the files are often bigger than PDFs.
42767 \begin_layout Standard
42768 PostScript can only contain images in the format
42769 \begin_inset Quotes eld
42772 Encapsulated PostScript
42773 \begin_inset Quotes erd
42776 (EPS, file extension
42777 \begin_inset Quotes eld
42785 \begin_inset Quotes erd
42789 As \SpecialChar LyX
42790 allows you to use any known image format in your document, it has to
42791 convert images in the background to EPS.
42793 \begin_inset space ~
42797 \begin_inset space ~
42800 images in your document, \SpecialChar LyX
42802 \begin_inset space ~
42805 conversions whenever you view or export your document.
42806 This will slow down your work flow with \SpecialChar LyX
42808 So if you plan to use PostScript, you can insert your images directly as
42809 EPS to avoid this problem.
42812 \begin_layout Standard
42813 You can export your document to PostScript using the menu
42815 File\SpecialChar menuseparator
42816 Export\SpecialChar menuseparator
42820 You can view your document as PostScript via the
42827 \begin_layout Section
42829 \begin_inset Index idx
42832 \begin_layout Plain Layout
42839 \begin_inset Index idx
42842 \begin_layout Plain Layout
42851 \begin_layout Standard
42852 This file type has the extension
42853 \begin_inset Quotes eld
42861 \begin_inset Quotes erd
42866 \begin_inset Quotes eld
42869 Portable Document Format
42870 \begin_inset Quotes erd
42873 (PDF) was developed by
42877 as a derivative of PostScript.
42878 It is more compressed and it uses fewer commands than PostScript.
42880 \begin_inset Quotes eld
42884 \begin_inset Quotes erd
42887 implies, it can be processed at any computer system and the printed output
42888 looks exactly the same.
42891 \begin_layout Standard
42892 PDF can contain images in its own PDF format, in the format
42893 \begin_inset Quotes eld
42896 Joint Photographic Experts Group
42897 \begin_inset Quotes erd
42900 (JPG, file extension
42901 \begin_inset Quotes eld
42909 \begin_inset Quotes erd
42913 \begin_inset Quotes eld
42921 \begin_inset Quotes erd
42924 ), and in the format
42925 \begin_inset Quotes eld
42928 Portable Network Graphics
42929 \begin_inset Quotes erd
42932 (PNG, file extension
42933 \begin_inset Quotes eld
42941 \begin_inset Quotes erd
42945 Nevertheless you can use any other image format, because \SpecialChar LyX
42947 in the background to one of these formats.
42948 But as described in the section about PostScript, the image conversion
42949 will slow down your work flow.
42950 So it is recommended that you use images in one of the three mentioned
42954 \begin_layout Standard
42955 You can export your document to PDF via the menu
42957 File\SpecialChar menuseparator
42960 in three different ways:
42963 \begin_layout Description
42965 \begin_inset space ~
42968 (ps2pdf) This uses the program
42972 that creates a PDF from a PostScript-version of your file.
42973 The PostScript-version is produced by the program
42977 which uses a DVI-version as intermediate step.
42978 So this export variant consists of three conversions.
42981 \begin_layout Description
42983 \begin_inset space ~
42986 (dvipdfm) This uses the program
42990 that converts your file in the background to DVI and in a second step to
42994 \begin_layout Description
42996 \begin_inset space ~
42999 (pdflatex) This uses the program
43003 that converts your file directly to PDF.
43006 \begin_layout Standard
43007 It is recommended that you use
43010 \begin_inset space ~
43019 supports all features of actual PDF-versions, is quick and works stable.
43024 is not under development and therefore a bit outdated.
43027 \begin_layout Standard
43028 You can view your document as PDF via the
43032 menu or by using a toolbar button.
43035 \begin_layout Chapter
43036 List of dvips color names
43037 \begin_inset CommandInset label
43039 name "chap:List-of-dvips-colornames"
43046 \begin_layout Standard
43047 \begin_inset Tabular
43048 <lyxtabular version="3" rows="17" columns="4">
43049 <features tabularvalignment="middle">
43050 <column alignment="left" valignment="top" width="0pt">
43051 <column alignment="left" valignment="top" width="0pt">
43052 <column alignment="left" valignment="top" width="0pt">
43053 <column alignment="left" valignment="top" width="0pt">
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
43184 <cell alignment="left" valignment="top" usebox="none">
43187 \begin_layout Plain Layout
43191 \begin_layout Plain Layout
43204 \begin_layout Plain Layout
43215 \begin_layout Plain Layout
43229 <cell alignment="center" valignment="top" usebox="none">
43232 \begin_layout Plain Layout
43236 \begin_layout Plain Layout
43249 \begin_layout Plain Layout
43257 \begin_inset Phantom Phantom
43260 \begin_layout Plain Layout
43270 \begin_layout Plain Layout
43282 <cell alignment="center" valignment="top" usebox="none">
43285 \begin_layout Plain Layout
43289 \begin_layout Plain Layout
43302 \begin_layout Plain Layout
43310 \begin_inset Phantom Phantom
43313 \begin_layout Plain Layout
43323 \begin_layout Plain Layout
43335 <cell alignment="center" valignment="top" usebox="none">
43338 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43355 \begin_layout Plain Layout
43363 \begin_inset Phantom Phantom
43366 \begin_layout Plain Layout
43376 \begin_layout Plain Layout
43388 <cell alignment="center" valignment="top" usebox="none">
43391 \begin_layout Plain Layout
43395 \begin_layout Plain Layout
43408 \begin_layout Plain Layout
43416 \begin_inset Phantom Phantom
43419 \begin_layout Plain Layout
43429 \begin_layout Plain Layout
43443 <cell alignment="left" valignment="top" usebox="none">
43446 \begin_layout Plain Layout
43450 \begin_layout Plain Layout
43463 \begin_layout Plain Layout
43471 \begin_inset Phantom Phantom
43474 \begin_layout Plain Layout
43484 \begin_layout Plain Layout
43496 <cell alignment="left" valignment="top" usebox="none">
43499 \begin_layout Plain Layout
43503 \begin_layout Plain Layout
43516 \begin_layout Plain Layout
43524 \begin_inset Phantom Phantom
43527 \begin_layout Plain Layout
43537 \begin_layout Plain Layout
43549 <cell alignment="left" valignment="top" usebox="none">
43552 \begin_layout Plain Layout
43556 \begin_layout Plain Layout
43569 \begin_layout Plain Layout
43577 \begin_inset Phantom Phantom
43580 \begin_layout Plain Layout
43590 \begin_layout Plain Layout
43602 <cell alignment="left" valignment="top" usebox="none">
43605 \begin_layout Plain Layout
43609 \begin_layout Plain Layout
43622 \begin_layout Plain Layout
43630 \begin_inset Phantom Phantom
43633 \begin_layout Plain Layout
43643 \begin_layout Plain Layout
43657 <cell alignment="left" valignment="top" usebox="none">
43660 \begin_layout Plain Layout
43664 \begin_layout Plain Layout
43677 \begin_layout Plain Layout
43685 \begin_inset Phantom Phantom
43688 \begin_layout Plain Layout
43698 \begin_layout Plain Layout
43710 <cell alignment="left" valignment="top" usebox="none">
43713 \begin_layout Plain Layout
43717 \begin_layout Plain Layout
43730 \begin_layout Plain Layout
43738 \begin_inset Phantom Phantom
43741 \begin_layout Plain Layout
43751 \begin_layout Plain Layout
43763 <cell alignment="left" valignment="top" usebox="none">
43766 \begin_layout Plain Layout
43770 \begin_layout Plain Layout
43783 \begin_layout Plain Layout
43791 \begin_inset Phantom Phantom
43794 \begin_layout Plain Layout
43804 \begin_layout Plain Layout
43816 <cell alignment="left" valignment="top" usebox="none">
43819 \begin_layout Plain Layout
43823 \begin_layout Plain Layout
43836 \begin_layout Plain Layout
43844 \begin_inset Phantom Phantom
43847 \begin_layout Plain Layout
43857 \begin_layout Plain Layout
43871 <cell alignment="left" valignment="top" usebox="none">
43874 \begin_layout Plain Layout
43878 \begin_layout Plain Layout
43891 \begin_layout Plain Layout
43899 \begin_inset Phantom Phantom
43902 \begin_layout Plain Layout
43912 \begin_layout Plain Layout
43924 <cell alignment="left" valignment="top" usebox="none">
43927 \begin_layout Plain Layout
43931 \begin_layout Plain Layout
43944 \begin_layout Plain Layout
43952 \begin_inset Phantom Phantom
43955 \begin_layout Plain Layout
43965 \begin_layout Plain Layout
43977 <cell alignment="left" valignment="top" usebox="none">
43980 \begin_layout Plain Layout
43984 \begin_layout Plain Layout
43997 \begin_layout Plain Layout
44005 \begin_inset Phantom Phantom
44008 \begin_layout Plain Layout
44018 \begin_layout Plain Layout
44030 <cell alignment="left" valignment="top" usebox="none">
44033 \begin_layout Plain Layout
44037 \begin_layout Plain Layout
44050 \begin_layout Plain Layout
44058 \begin_inset Phantom Phantom
44061 \begin_layout Plain Layout
44071 \begin_layout Plain Layout
44085 <cell alignment="left" valignment="top" usebox="none">
44088 \begin_layout Plain Layout
44092 \begin_layout Plain Layout
44105 \begin_layout Plain Layout
44113 \begin_inset Phantom Phantom
44116 \begin_layout Plain Layout
44126 \begin_layout Plain Layout
44138 <cell alignment="left" valignment="top" usebox="none">
44141 \begin_layout Plain Layout
44145 \begin_layout Plain Layout
44158 \begin_layout Plain Layout
44166 \begin_inset Phantom Phantom
44169 \begin_layout Plain Layout
44179 \begin_layout Plain Layout
44191 <cell alignment="left" valignment="top" usebox="none">
44194 \begin_layout Plain Layout
44198 \begin_layout Plain Layout
44211 \begin_layout Plain Layout
44219 \begin_inset Phantom Phantom
44222 \begin_layout Plain Layout
44232 \begin_layout Plain Layout
44244 <cell alignment="left" valignment="top" usebox="none">
44247 \begin_layout Plain Layout
44251 \begin_layout Plain Layout
44264 \begin_layout Plain Layout
44272 \begin_inset Phantom Phantom
44275 \begin_layout Plain Layout
44285 \begin_layout Plain Layout
44299 <cell alignment="center" valignment="top" usebox="none">
44302 \begin_layout Plain Layout
44306 \begin_layout Plain Layout
44319 \begin_layout Plain Layout
44327 \begin_inset Phantom Phantom
44330 \begin_layout Plain Layout
44340 \begin_layout Plain Layout
44352 <cell alignment="center" valignment="top" usebox="none">
44355 \begin_layout Plain Layout
44359 \begin_layout Plain Layout
44372 \begin_layout Plain Layout
44380 \begin_inset Phantom Phantom
44383 \begin_layout Plain Layout
44393 \begin_layout Plain Layout
44405 <cell alignment="center" valignment="top" usebox="none">
44408 \begin_layout Plain Layout
44412 \begin_layout Plain Layout
44425 \begin_layout Plain Layout
44433 \begin_inset Phantom Phantom
44436 \begin_layout Plain Layout
44446 \begin_layout Plain Layout
44458 <cell alignment="center" valignment="top" usebox="none">
44461 \begin_layout Plain Layout
44465 \begin_layout Plain Layout
44478 \begin_layout Plain Layout
44486 \begin_inset Phantom Phantom
44489 \begin_layout Plain Layout
44499 \begin_layout Plain Layout
44513 <cell alignment="left" valignment="top" usebox="none">
44516 \begin_layout Plain Layout
44520 \begin_layout Plain Layout
44533 \begin_layout Plain Layout
44541 \begin_inset Phantom Phantom
44544 \begin_layout Plain Layout
44554 \begin_layout Plain Layout
44566 <cell alignment="left" valignment="top" usebox="none">
44569 \begin_layout Plain Layout
44573 \begin_layout Plain Layout
44586 \begin_layout Plain Layout
44594 \begin_inset Phantom Phantom
44597 \begin_layout Plain Layout
44607 \begin_layout Plain Layout
44619 <cell alignment="left" valignment="top" usebox="none">
44622 \begin_layout Plain Layout
44626 \begin_layout Plain Layout
44639 \begin_layout Plain Layout
44647 \begin_inset Phantom Phantom
44650 \begin_layout Plain Layout
44660 \begin_layout Plain Layout
44672 <cell alignment="left" valignment="top" usebox="none">
44675 \begin_layout Plain Layout
44679 \begin_layout Plain Layout
44692 \begin_layout Plain Layout
44700 \begin_inset Phantom Phantom
44703 \begin_layout Plain Layout
44713 \begin_layout Plain Layout
44727 <cell alignment="left" valignment="top" usebox="none">
44730 \begin_layout Plain Layout
44734 \begin_layout Plain Layout
44747 \begin_layout Plain Layout
44755 \begin_inset Phantom Phantom
44758 \begin_layout Plain Layout
44768 \begin_layout Plain Layout
44780 <cell alignment="left" valignment="top" usebox="none">
44783 \begin_layout Plain Layout
44787 \begin_layout Plain Layout
44800 \begin_layout Plain Layout
44808 \begin_inset Phantom Phantom
44811 \begin_layout Plain Layout
44821 \begin_layout Plain Layout
44833 <cell alignment="left" valignment="top" usebox="none">
44836 \begin_layout Plain Layout
44840 \begin_layout Plain Layout
44853 \begin_layout Plain Layout
44861 \begin_inset Phantom Phantom
44864 \begin_layout Plain Layout
44874 \begin_layout Plain Layout
44886 <cell alignment="left" valignment="top" usebox="none">
44889 \begin_layout Plain Layout
44893 \begin_layout Plain Layout
44906 \begin_layout Plain Layout
44914 \begin_inset Phantom Phantom
44917 \begin_layout Plain Layout
44927 \begin_layout Plain Layout
44941 <cell alignment="left" valignment="top" usebox="none">
44944 \begin_layout Plain Layout
44948 \begin_layout Plain Layout
44961 \begin_layout Plain Layout
44969 \begin_inset Phantom Phantom
44972 \begin_layout Plain Layout
44982 \begin_layout Plain Layout
44994 <cell alignment="left" valignment="top" usebox="none">
44997 \begin_layout Plain Layout
45001 \begin_layout Plain Layout
45014 \begin_layout Plain Layout
45022 \begin_inset Phantom Phantom
45025 \begin_layout Plain Layout
45035 \begin_layout Plain Layout
45047 <cell alignment="left" valignment="top" usebox="none">
45050 \begin_layout Plain Layout
45054 \begin_layout Plain Layout
45067 \begin_layout Plain Layout
45075 \begin_inset Phantom Phantom
45078 \begin_layout Plain Layout
45088 \begin_layout Plain Layout
45100 <cell alignment="left" valignment="top" usebox="none">
45103 \begin_layout Plain Layout
45107 \begin_layout Plain Layout
45120 \begin_layout Plain Layout
45128 \begin_inset Phantom Phantom
45131 \begin_layout Plain Layout
45141 \begin_layout Plain Layout
45155 <cell alignment="left" valignment="top" usebox="none">
45158 \begin_layout Plain Layout
45162 \begin_layout Plain Layout
45175 \begin_layout Plain Layout
45183 \begin_inset Phantom Phantom
45186 \begin_layout Plain Layout
45196 \begin_layout Plain Layout
45208 <cell alignment="left" valignment="top" usebox="none">
45211 \begin_layout Plain Layout
45215 \begin_layout Plain Layout
45228 \begin_layout Plain Layout
45236 \begin_inset Phantom Phantom
45239 \begin_layout Plain Layout
45249 \begin_layout Plain Layout
45261 <cell alignment="left" valignment="top" usebox="none">
45264 \begin_layout Plain Layout
45268 \begin_layout Plain Layout
45281 \begin_layout Plain Layout
45289 \begin_inset Phantom Phantom
45292 \begin_layout Plain Layout
45302 \begin_layout Plain Layout
45314 <cell alignment="left" valignment="top" usebox="none">
45317 \begin_layout Plain Layout
45321 \begin_layout Plain Layout
45334 \begin_layout Plain Layout
45342 \begin_inset Phantom Phantom
45345 \begin_layout Plain Layout
45355 \begin_layout Plain Layout
45369 <cell alignment="left" valignment="top" usebox="none">
45372 \begin_layout Plain Layout
45376 \begin_layout Plain Layout
45389 \begin_layout Plain Layout
45397 \begin_inset Phantom Phantom
45400 \begin_layout Plain Layout
45410 \begin_layout Plain Layout
45422 <cell alignment="left" valignment="top" usebox="none">
45425 \begin_layout Plain Layout
45429 \begin_layout Plain Layout
45442 \begin_layout Plain Layout
45450 \begin_inset Phantom Phantom
45453 \begin_layout Plain Layout
45463 \begin_layout Plain Layout
45475 <cell alignment="left" valignment="top" usebox="none">
45478 \begin_layout Plain Layout
45482 \begin_layout Plain Layout
45495 \begin_layout Plain Layout
45503 \begin_inset Phantom Phantom
45506 \begin_layout Plain Layout
45516 \begin_layout Plain Layout
45528 <cell alignment="left" valignment="top" usebox="none">
45531 \begin_layout Plain Layout
45535 \begin_layout Plain Layout
45548 \begin_layout Plain Layout
45556 \begin_inset Phantom Phantom
45559 \begin_layout Plain Layout
45569 \begin_layout Plain Layout
45583 <cell alignment="left" valignment="top" usebox="none">
45586 \begin_layout Plain Layout
45590 \begin_layout Plain Layout
45603 \begin_layout Plain Layout
45611 \begin_inset Phantom Phantom
45614 \begin_layout Plain Layout
45624 \begin_layout Plain Layout
45636 <cell alignment="left" valignment="top" usebox="none">
45639 \begin_layout Plain Layout
45643 \begin_layout Plain Layout
45656 \begin_layout Plain Layout
45664 \begin_inset Phantom Phantom
45667 \begin_layout Plain Layout
45677 \begin_layout Plain Layout
45689 <cell alignment="left" valignment="top" usebox="none">
45692 \begin_layout Plain Layout
45696 \begin_layout Plain Layout
45709 \begin_layout Plain Layout
45717 \begin_inset Phantom Phantom
45720 \begin_layout Plain Layout
45730 \begin_layout Plain Layout
45742 <cell alignment="left" valignment="top" usebox="none">
45745 \begin_layout Plain Layout
45749 \begin_layout Plain Layout
45762 \begin_layout Plain Layout
45770 \begin_inset Phantom Phantom
45773 \begin_layout Plain Layout
45783 \begin_layout Plain Layout
45797 <cell alignment="left" valignment="top" usebox="none">
45800 \begin_layout Plain Layout
45804 \begin_layout Plain Layout
45817 \begin_layout Plain Layout
45825 \begin_inset Phantom Phantom
45828 \begin_layout Plain Layout
45838 \begin_layout Plain Layout
45850 <cell alignment="left" valignment="top" usebox="none">
45853 \begin_layout Plain Layout
45857 \begin_layout Plain Layout
45870 \begin_layout Plain Layout
45878 \begin_inset Phantom Phantom
45881 \begin_layout Plain Layout
45891 \begin_layout Plain Layout
45903 <cell alignment="left" valignment="top" usebox="none">
45906 \begin_layout Plain Layout
45910 \begin_layout Plain Layout
45923 \begin_layout Plain Layout
45931 \begin_inset Phantom Phantom
45934 \begin_layout Plain Layout
45944 \begin_layout Plain Layout
45956 <cell alignment="left" valignment="top" usebox="none">
45959 \begin_layout Plain Layout
45963 \begin_layout Plain Layout
45976 \begin_layout Plain Layout
45984 \begin_inset Phantom Phantom
45987 \begin_layout Plain Layout
45997 \begin_layout Plain Layout
46011 <cell alignment="left" valignment="top" usebox="none">
46014 \begin_layout Plain Layout
46018 \begin_layout Plain Layout
46031 \begin_layout Plain Layout
46039 \begin_inset Phantom Phantom
46042 \begin_layout Plain Layout
46052 \begin_layout Plain Layout
46064 <cell alignment="left" valignment="top" usebox="none">
46067 \begin_layout Plain Layout
46071 \begin_layout Plain Layout
46084 \begin_layout Plain Layout
46092 \begin_inset Phantom Phantom
46095 \begin_layout Plain Layout
46105 \begin_layout Plain Layout
46117 <cell alignment="left" valignment="top" usebox="none">
46120 \begin_layout Plain Layout
46124 \begin_layout Plain Layout
46137 \begin_layout Plain Layout
46145 \begin_inset Phantom Phantom
46148 \begin_layout Plain Layout
46158 \begin_layout Plain Layout
46170 <cell alignment="left" valignment="top" usebox="none">
46173 \begin_layout Plain Layout
46177 \begin_layout Plain Layout
46190 \begin_layout Plain Layout
46198 \begin_inset Phantom Phantom
46201 \begin_layout Plain Layout
46211 \begin_layout Plain Layout
46225 <cell alignment="left" valignment="top" usebox="none">
46228 \begin_layout Plain Layout
46232 \begin_layout Plain Layout
46245 \begin_layout Plain Layout
46253 \begin_inset Phantom Phantom
46256 \begin_layout Plain Layout
46266 \begin_layout Plain Layout
46278 <cell alignment="left" valignment="top" usebox="none">
46281 \begin_layout Plain Layout
46285 \begin_layout Plain Layout
46298 \begin_layout Plain Layout
46306 \begin_inset Phantom Phantom
46309 \begin_layout Plain Layout
46319 \begin_layout Plain Layout
46331 <cell alignment="left" valignment="top" usebox="none">
46334 \begin_layout Plain Layout
46338 \begin_layout Plain Layout
46351 \begin_layout Plain Layout
46359 \begin_inset Phantom Phantom
46362 \begin_layout Plain Layout
46372 \begin_layout Plain Layout
46384 <cell alignment="left" valignment="top" usebox="none">
46387 \begin_layout Plain Layout
46391 \begin_layout Plain Layout
46404 \begin_layout Plain Layout
46412 \begin_inset Phantom Phantom
46415 \begin_layout Plain Layout
46425 \begin_layout Plain Layout
46439 <cell alignment="left" valignment="top" usebox="none">
46442 \begin_layout Plain Layout
46446 \begin_layout Plain Layout
46459 \begin_layout Plain Layout
46467 \begin_inset Phantom Phantom
46470 \begin_layout Plain Layout
46480 \begin_layout Plain Layout
46492 <cell alignment="left" valignment="top" usebox="none">
46495 \begin_layout Plain Layout
46501 <cell alignment="left" valignment="top" usebox="none">
46504 \begin_layout Plain Layout
46510 <cell alignment="left" valignment="top" usebox="none">
46513 \begin_layout Plain Layout
46527 \begin_layout Chapter
46528 Explanation of Equation
46529 \begin_inset space ~
46533 \begin_inset CommandInset ref
46540 \begin_inset CommandInset label
46542 name "cha:Explanation-of-Equation"
46549 \begin_layout Standard
46550 We can calculate the total width of
46555 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46559 \begin_inset Formula
46561 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46567 \begin_inset Formula $W_{g\,n}$
46570 is the given width of all cells,
46576 is the \SpecialChar LaTeX
46577 -length between the cell text and the cell border (its default value
46579 \begin_inset space \thinspace{}
46589 is the thickness of the cell border line, the default is 0.4
46590 \begin_inset space \thinspace{}
46596 \begin_layout Standard
46598 \begin_inset space ~
46602 \begin_inset CommandInset ref
46604 reference "eq:Wtot_n"
46608 , the total width of a multicolumn
46609 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46613 \begin_inset Formula
46615 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46623 \begin_layout Standard
46624 By setting equation
46625 \begin_inset space ~
46629 \begin_inset CommandInset ref
46631 reference "eq:Wtot_n"
46636 \begin_inset CommandInset ref
46638 reference "eq:Wtot_mult"
46642 equal we can calculate the needed given width
46643 \begin_inset Formula $W_{g\,n}$
46650 columns are spanned, so that each column has a total width of
46651 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46655 \begin_inset Formula
46657 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46665 \begin_layout Bibliography
46666 \begin_inset CommandInset bibitem
46667 LatexCommand bibitem
46668 key "latexcompanion"
46673 Frank Mittelbach and Michel Goossens:
46675 The \SpecialChar LaTeX
46676 Companion Second Edition.
46679 Addison-Wesley, 2004
46682 \begin_layout Bibliography
46683 \begin_inset CommandInset bibitem
46684 LatexCommand bibitem
46690 Helmut Kopka and Patrick W.
46693 A Guide to \SpecialChar LaTeX
46697 Addison-Wesley, 2003
46700 \begin_layout Bibliography
46701 \begin_inset CommandInset bibitem
46702 LatexCommand bibitem
46711 : A Document Preparation System.
46714 Addison-Wesley, second edition, 1994
46717 \begin_layout Bibliography
46718 \begin_inset CommandInset bibitem
46719 LatexCommand bibitem
46725 Documentation of the \SpecialChar LaTeX
46729 \begin_inset CommandInset href
46732 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46740 \begin_inset Index idx
46743 \begin_layout Plain Layout
46745 -packages ! arydshln
46753 \begin_layout Bibliography
46754 \begin_inset CommandInset bibitem
46755 LatexCommand bibitem
46761 Documentation of the \SpecialChar LaTeX
46765 \begin_inset CommandInset href
46768 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46776 \begin_inset Index idx
46779 \begin_layout Plain Layout
46781 -packages ! booktabs
46789 \begin_layout Bibliography
46790 \begin_inset CommandInset bibitem
46791 LatexCommand bibitem
46797 Documentation of the \SpecialChar LaTeX
46801 \begin_inset CommandInset href
46804 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46812 \begin_inset Index idx
46815 \begin_layout Plain Layout
46817 -packages ! caption
46825 \begin_layout Bibliography
46826 \begin_inset CommandInset bibitem
46827 LatexCommand bibitem
46833 Documentation of the \SpecialChar LaTeX
46837 \begin_inset CommandInset href
46840 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46848 \begin_inset Index idx
46851 \begin_layout Plain Layout
46853 -packages ! diagbox
46861 \begin_layout Bibliography
46862 \begin_inset CommandInset bibitem
46863 LatexCommand bibitem
46869 Documentation of the \SpecialChar LaTeX
46873 \begin_inset CommandInset href
46876 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46884 \begin_inset Index idx
46887 \begin_layout Plain Layout
46889 -packages ! endfloat
46897 \begin_layout Bibliography
46898 \begin_inset CommandInset bibitem
46899 LatexCommand bibitem
46905 Documentation of the \SpecialChar LaTeX
46909 \begin_inset CommandInset href
46912 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46920 \begin_inset Index idx
46923 \begin_layout Plain Layout
46925 -packages ! footmisc
46933 \begin_layout Bibliography
46934 \begin_inset CommandInset bibitem
46935 LatexCommand bibitem
46941 Documentation of the \SpecialChar LaTeX
46945 \begin_inset CommandInset href
46948 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46956 \begin_inset Index idx
46959 \begin_layout Plain Layout
46961 -packages ! hyperref
46969 \begin_layout Bibliography
46970 \begin_inset CommandInset bibitem
46971 LatexCommand bibitem
46977 Documentation of the \SpecialChar LaTeX
46981 \begin_inset CommandInset href
46984 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46992 \begin_inset Index idx
46995 \begin_layout Plain Layout
46997 -packages ! hyperref
47005 \begin_layout Bibliography
47006 \begin_inset CommandInset bibitem
47007 LatexCommand bibitem
47013 Documentation of the \SpecialChar LaTeX
47017 \begin_inset CommandInset href
47020 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
47028 \begin_inset Index idx
47031 \begin_layout Plain Layout
47033 -packages ! KOMA-Script
47041 \begin_layout Bibliography
47042 \begin_inset CommandInset bibitem
47043 LatexCommand bibitem
47049 Documentation of the \SpecialChar LaTeX
47053 \begin_inset CommandInset href
47056 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
47064 \begin_inset CommandInset href
47067 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
47073 \begin_inset Index idx
47076 \begin_layout Plain Layout
47078 -packages ! lettrine
47086 \begin_layout Bibliography
47087 \begin_inset CommandInset bibitem
47088 LatexCommand bibitem
47094 Documentation of the \SpecialChar LaTeX
47098 \begin_inset CommandInset href
47101 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
47109 \begin_inset Index idx
47112 \begin_layout Plain Layout
47114 -packages ! listings
47120 \change_inserted 5863344 1497180016
47124 \begin_layout Bibliography
47126 \change_inserted 5863344 1497180069
47127 \begin_inset CommandInset bibitem
47128 LatexCommand bibitem
47134 Documentation of the \SpecialChar LaTeX
47138 \begin_inset CommandInset href
47141 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
47149 \begin_inset Index idx
47152 \begin_layout Plain Layout
47154 \change_inserted 5863344 1497180164
47166 \begin_layout Bibliography
47167 \begin_inset CommandInset bibitem
47168 LatexCommand bibitem
47174 Documentation of the \SpecialChar LaTeX
47178 \begin_inset CommandInset href
47181 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
47189 \begin_inset Index idx
47192 \begin_layout Plain Layout
47194 -packages ! marginnote
47202 \begin_layout Bibliography
47203 \begin_inset CommandInset bibitem
47204 LatexCommand bibitem
47210 Documentation of the \SpecialChar LaTeX
47214 \begin_inset CommandInset href
47217 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47225 \begin_inset Index idx
47228 \begin_layout Plain Layout
47230 -packages ! pdfpages
47238 \begin_layout Bibliography
47239 \begin_inset CommandInset bibitem
47240 LatexCommand bibitem
47246 Documentation of the \SpecialChar LaTeX
47250 \begin_inset CommandInset href
47253 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47261 \begin_inset Index idx
47264 \begin_layout Plain Layout
47266 -packages ! prettyref
47274 \begin_layout Bibliography
47275 \begin_inset CommandInset bibitem
47276 LatexCommand bibitem
47282 Web page of the \SpecialChar LaTeX
47286 \begin_inset CommandInset href
47289 target "http://tug.org/PSTricks/"
47297 \begin_inset Index idx
47300 \begin_layout Plain Layout
47302 -packages ! PSTricks
47310 \begin_layout Bibliography
47311 \begin_inset CommandInset bibitem
47312 LatexCommand bibitem
47318 Documentation of the \SpecialChar LaTeX
47322 \begin_inset CommandInset href
47325 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47333 \begin_inset Index idx
47336 \begin_layout Plain Layout
47338 -packages ! refstyle
47346 \begin_layout Bibliography
47347 \begin_inset CommandInset bibitem
47348 LatexCommand bibitem
47354 Documentation of the \SpecialChar LaTeX
47358 \begin_inset CommandInset href
47361 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47369 \begin_inset Index idx
47372 \begin_layout Plain Layout
47374 -packages ! sidecap
47382 \begin_layout Bibliography
47383 \begin_inset CommandInset bibitem
47384 LatexCommand bibitem
47390 Documentation of the option
47391 \begin_inset CommandInset href
47393 name "Omit text in PDF"
47394 target "http://tug.ctan.org/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf"
47402 \begin_inset CommandInset href
47405 target "https://inkscape.org"
47413 \begin_layout Standard
47414 \begin_inset CommandInset index_print
47415 LatexCommand printindex