1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \use_dash_ligatures true
177 \default_output_format pdf2
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \use_package amsmath 2
201 \use_package amssymb 2
202 \use_package cancel 0
204 \use_package mathdots 1
205 \use_package mathtools 0
206 \use_package mhchem 1
207 \use_package stackrel 0
208 \use_package stmaryrd 0
209 \use_package undertilde 0
211 \cite_engine_type default
215 \paperorientation portrait
219 \notefontcolor #0000ff
226 \paragraph_separation skip
229 \quotes_style english
233 \paperpagestyle default
234 \tracking_changes true
235 \output_changes false
238 \html_be_strict false
239 \author 227574939 "Kyttj"
240 \author 424524441 "rgheck"
241 \author 2047637253 "Guillaume Munch"
248 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
252 by the \SpecialChar LyX
257 \begin_layout Plain Layout
259 If you have comments or error corrections, please send them to the \SpecialChar LyX
262 \begin_inset CommandInset href
264 name "lyx-docs@lists.lyx.org"
265 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
277 \begin_inset Note Note
280 \begin_layout Plain Layout
287 \begin_inset Newline newline
291 \begin_inset Newline newline
299 \begin_layout Standard
300 \begin_inset CommandInset toc
301 LatexCommand tableofcontents
308 \begin_layout Standard
309 \begin_inset Note Note
312 \begin_layout Plain Layout
313 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
324 diagbox, lettrine, marginnote, picinpar
331 If they are not installed you can export the document anyway but the sections
332 where the packages are required won't appear in the output.
335 \begin_layout Plain Layout
336 The latest PDF-version of this document can be found here:
337 \begin_inset Newline newline
342 http://wiki.lyx.org/LyX/Manuals#EmbeddedObjects
350 \begin_layout Chapter
352 \begin_inset Index idx
355 \begin_layout Plain Layout
362 \begin_inset Index idx
365 \begin_layout Plain Layout
370 \begin_layout Plain Layout
381 \begin_layout Plain Layout
396 \begin_layout Section
398 \begin_inset Index idx
401 \begin_layout Plain Layout
402 Figures ! Graphics Dialog
408 \begin_inset CommandInset label
410 name "sec:Graphics-Dialog"
417 \begin_layout Standard
418 To insert an image into your document, place the cursor at the text position
419 you want and click on the toolbar icon
422 arg "dialog-show-new-inset graphics"
427 Insert\SpecialChar menuseparator
431 Then a dialog will appear to choose the file to load.
432 The image will appear in the output exactly at the position where it is
436 \begin_layout Standard
437 The graphics dialog can be called at any time by clicking on an image.
438 This dialog has three tabs:
441 \begin_layout Description
446 Here you can choose an image file and adjust its appearance in the output.
447 The available units for the image size are explained in appendix
452 \begin_inset CommandInset ref
454 reference "cha:Units-available-in"
459 \begin_inset Newline newline
463 \begin_inset Index idx
466 \begin_layout Plain Layout
472 You can rotate images counter-clockwise by setting a rotation angle and
474 The image will also be rotated inside \SpecialChar LyX
476 \begin_inset Newline newline
480 \begin_inset Index idx
483 \begin_layout Plain Layout
489 Images can be scaled by using a percentage value or by setting the width
490 and height explicitly.
491 If you set only the width or only the height, the other size will be determined
493 If you set both, then the image will be transformed to the given size,
494 possibly distorting it.
495 To prevent the image from distortion, use the option
497 Maintain aspect ratio
500 The image will then be scaled so that its width and height don't exceed
501 the specified dimensions.
502 \begin_inset Newline newline
505 Images can be opened in a program of your choice by right-clicking on it
506 and choosing the entry
515 The program can be set for every image format in the file format settings
520 \begin_layout Description
525 Alternatively to the usage of scaling units it is possible to set image
526 coordinates to adjust the height and width of the image in the output.
527 The coordinates can also be calculated automatically by pressing the button
557 will only print the image region within the given coordinates.
558 Normally you don't need to worry about image coordinates and can ignore
562 \begin_layout Description
579 In this tab you can modify the appearance of the image within \SpecialChar LyX
580 and \SpecialChar LaTeX
582 can specify additional \SpecialChar LaTeX
584 \begin_inset Newline newline
595 makes the image appear in the output only as a frame with the size of the
597 \begin_inset Newline newline
608 you can define or join an image settings group.
609 \begin_inset Index idx
612 \begin_layout Plain Layout
613 Figures ! Settings grouping
618 Images within such a group share their settings, so adjusting one image
619 of the group automatically also adjusts all other images of the group in
621 So you can for example change the size for a bunch of images without the
622 need to manually change each of them.
623 Joining an existing group can also be done using the context menu of the
624 image by checking the name of the desired group.
627 \begin_layout Standard
628 \begin_inset VSpace bigskip
634 \begin_layout Standard
635 This is an example image in EPS 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/mobius.eps
672 \begin_layout Standard
673 This is the same image like the one above but in draft mode:
676 \begin_layout Standard
678 \begin_inset Graphics
679 filename clipart/mobius.eps
690 \begin_layout Standard
691 \begin_inset Newpage newpage
697 \begin_layout Section
699 \begin_inset CommandInset label
701 name "sec:Figure-Floats"
706 \begin_inset Index idx
709 \begin_layout Plain Layout
716 \begin_inset Index idx
719 \begin_layout Plain Layout
728 \begin_layout Standard
729 For general explanations about floats, have a look at section
734 \begin_inset CommandInset ref
736 reference "sec:FloatIntroduction"
743 \begin_layout Standard
747 arg "float-insert figure"
752 Insert\SpecialChar menuseparator
753 Float\SpecialChar menuseparator
756 inserts a float with a caption that has the label
757 \begin_inset Quotes eld
765 \begin_inset Quotes erd
768 (# is the actual number).
769 You can insert the image above the caption, like in Figure
774 \begin_inset CommandInset ref
776 reference "fig:kill-plat"
780 or below the caption, like in Figure
785 \begin_inset CommandInset ref
787 reference "fig:escher"
792 More about caption placement is described in section
797 \begin_inset CommandInset ref
799 reference "sec:Caption-Placement"
806 \begin_layout Standard
807 \begin_inset Float figure
812 \begin_layout Plain Layout
814 \begin_inset Graphics
815 filename clipart/platypus.eps
825 \begin_layout Plain Layout
826 \begin_inset Caption Standard
828 \begin_layout Plain Layout
829 \begin_inset CommandInset label
835 A severely distorted platypus in a float.
848 \begin_layout Standard
849 \begin_inset Float figure
854 \begin_layout Plain Layout
855 \begin_inset Caption Standard
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
873 \begin_layout Plain Layout
875 \begin_inset Graphics
876 filename clipart/escher-lsd.eps
891 \begin_layout Standard
892 \begin_inset Index idx
895 \begin_layout Plain Layout
896 References ! to Figures
906 \begin_inset CommandInset ref
908 reference "fig:kill-plat"
913 \begin_inset CommandInset ref
915 reference "fig:escher"
919 are examples of referenced figures.
920 Figures can be referenced in the text by referencing their label.
921 To do this insert a label in the caption using the menu
923 Insert\SpecialChar menuseparator
926 or the toolbar button
933 You can now refer to the label using the menu
935 Insert\SpecialChar menuseparator
942 or the toolbar button
945 arg "dialog-show-new-inset ref"
949 It is important to use references to floats, rather than using vague references
951 \begin_inset Quotes eld
955 \begin_inset Quotes erd
958 , because \SpecialChar LaTeX
959 will reposition the floats in the final document and it might
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
969 \begin_inset Newline newline
972 Referencing is explained in detail in section
977 \begin_inset CommandInset ref
979 reference "sec:Referencing-Floats"
986 \begin_layout Standard
987 Normally only one image is inserted to a figure float, but sometimes you
988 might want to use two images with separate subcaptions.
989 This can be done by inserting image floats into existing image floats.
990 Note that only the main caption of the float is added to the List of Figures.
996 \begin_inset CommandInset ref
998 reference "fig:Two-distorted-images"
1002 is an example of a figure float with two images set side by side.
1003 You can also set the images one below the other.
1005 \begin_inset space ~
1009 \begin_inset CommandInset ref
1011 reference "fig:Undefinable-structure"
1016 \begin_inset CommandInset ref
1018 reference "fig:A-Platypus"
1025 \begin_layout Standard
1026 \begin_inset Float figure
1031 \begin_layout Plain Layout
1032 \begin_inset space \hfill{}
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset Caption Standard
1044 \begin_layout Plain Layout
1045 \begin_inset CommandInset label
1047 name "fig:Undefinable-structure"
1051 Undefinable structure.
1059 \begin_layout Plain Layout
1060 \begin_inset Graphics
1061 filename clipart/escher-lsd.eps
1074 \begin_inset space \hfill{}
1078 \begin_inset Float figure
1083 \begin_layout Plain Layout
1084 \begin_inset Caption Standard
1086 \begin_layout Plain Layout
1087 \begin_inset CommandInset label
1089 name "fig:A-Platypus"
1101 \begin_layout Plain Layout
1102 \begin_inset Graphics
1103 filename clipart/platypus.eps
1116 \begin_inset space \hfill{}
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Two-distorted-images"
1132 Two distorted images.
1133 Both images are in the image settings group named
1134 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1154 \begin_layout Standard
1155 \begin_inset Newpage newpage
1161 \begin_layout Section
1163 \begin_inset CommandInset label
1165 name "sec:Image-Formats"
1170 \begin_inset Index idx
1173 \begin_layout Plain Layout
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1184 Figures ! Image Formats
1192 \begin_layout Standard
1193 You can insert images in any known file format.
1194 But as explained in appendix
1195 \begin_inset space ~
1199 \begin_inset CommandInset ref
1201 reference "cha:Output-File-Formats"
1205 , each output document format allows only a few image formats.
1207 uses therefore the program
1211 in the background to convert the images to the right format.
1212 To increase your work flow by avoiding these conversions in the background,
1213 you could choose to use only the image formats that can directly be embedded
1214 in the output file format.
1215 The output file formats are explained in appendix
1216 \begin_inset space ~
1220 \begin_inset CommandInset ref
1222 reference "cha:Output-File-Formats"
1229 \begin_layout Standard
1230 Similar to fonts there are two types of image formats:
1233 \begin_layout Description
1235 \begin_inset space ~
1238 images consist of pixel values, often in a compressed form.
1239 They are therefore not fully scalable and look pixelated in large zooms.
1240 Well-known bitmap image formats are
1241 \begin_inset Quotes eld
1244 Graphics Interchange Format
1245 \begin_inset Quotes erd
1248 (GIF, file extension
1249 \begin_inset Quotes eld
1257 \begin_inset Quotes erd
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1269 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1293 \begin_inset Quotes eld
1296 Portable Network Graphics
1297 \begin_inset Quotes erd
1300 (PNG, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1313 \begin_inset Index idx
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Joint Photographic Experts Group
1349 \begin_inset Quotes erd
1352 (JPG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Index idx
1380 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1411 \begin_layout Description
1413 \begin_inset space ~
1416 images consist of vectors and can therefore be scaled to any size without
1418 The scaling ability is necessary if you want to create presentations, because
1419 presentations are always scaled by the video projector.
1420 Scaling is also useful for online documents to let the user zoom into diagrams.
1421 \begin_inset Newline newline
1424 Well-known scalable image formats are
1425 \begin_inset Quotes eld
1428 Scalable Vector Graphics
1429 \begin_inset Quotes erd
1432 (SVG, file extension
1433 \begin_inset Quotes eld
1441 \begin_inset Quotes erd
1445 \begin_inset Index idx
1448 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1477 \begin_inset Quotes eld
1480 Encapsulated PostScript
1481 \begin_inset Quotes erd
1484 (EPS, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1497 \begin_inset Index idx
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Portable Document Format
1533 \begin_inset Quotes erd
1536 (PDF, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1549 \begin_inset Index idx
1552 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1566 (WMF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 , because you can convert any bitmap image to a PDF or EPS-image and the
1620 result will still be a bitmap image.
1621 In such cases only a header with the image properties is added to the original
1626 \begin_layout Plain Layout
1627 In the case of PDF, the original image is additionally compressed.
1633 The PDF-files generated by
1637 are for example bitmap images.
1640 \begin_layout Standard
1641 Normally it is not possible to convert a bitmap image into a scalable one,
1643 Only the image formats PDF and EPS can directly be embedded to PDF and
1644 PostScript output files, respectively.
1645 SVG and WMF-images are recalculated to bitmaps when the output file is
1646 generated because there is currently no adequate WMF/SVG
1647 \begin_inset Formula $\to$
1650 PDF/EPS converter available.
1653 \begin_layout Chapter
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1667 \begin_layout Section
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1673 Table ! Introduction
1681 \begin_layout Standard
1682 You can insert a table using either the toolbar button
1685 arg "tabular-insert"
1690 Insert\SpecialChar menuseparator
1694 The toolbar button offers you a graphical selection: move the mouse to
1695 set the column/row number of the table that should be created and then
1696 press a mouse button.
1697 When you use the menu to create a table, a dialog will appear, asking you
1698 for the number of rows and columns.
1699 \begin_inset Newline newline
1702 The default table has lines around any cell and the first row appears separated
1703 from the rest of the table.
1704 This separation occurs due to a double line: The cells of the first row
1705 have a line below them and the cells of the second row have a line above
1707 Here is an example table:
1710 \begin_layout Standard
1712 \begin_inset Tabular
1713 <lyxtabular version="3" rows="4" columns="4">
1714 <features tabularvalignment="middle">
1715 <column alignment="center" valignment="top">
1716 <column alignment="center" valignment="top">
1717 <column alignment="center" valignment="top">
1718 <column alignment="center" valignment="top">
1720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1723 \begin_layout Plain Layout
1729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1732 \begin_layout Plain Layout
1747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1750 \begin_layout Plain Layout
1756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1759 \begin_layout Plain Layout
1767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1770 \begin_layout Plain Layout
1785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1788 \begin_layout Plain Layout
1794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1797 \begin_layout Plain Layout
1803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1806 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1817 \begin_layout Plain Layout
1832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1835 \begin_layout Plain Layout
1841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1844 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1853 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1864 \begin_layout Plain Layout
1879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1882 \begin_layout Plain Layout
1888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1891 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1900 \begin_layout Plain Layout
1914 \begin_layout Section
1916 \begin_inset Index idx
1919 \begin_layout Plain Layout
1928 \begin_layout Standard
1929 You can alter a table by clicking on it with the right mouse button, which
1930 brings up the context menu.
1931 Under the menu entry
1935 you can adjust the settings of that cell and row/column respectively where
1936 the cursor is currently placed.
1939 More\SpecialChar menuseparator
1942 opens the table dialog where you can adjust more things.
1943 Most of the dialog options also work on selections.
1944 This means if you select more cells, columns or rows, the action is done
1945 for the whole selection.
1946 Note that there is a difference between selecting the
1950 of the cell, and the cell itself.
1951 \begin_inset Newline newline
1954 With the dialog option
1957 \begin_inset space ~
1962 every change you make in the dialog is directly applied.
1963 If you move the cursor to another table cell the dialog will then also
1964 be updated with the parameters of the new cell.
1965 If you change length values in the dialog you must press
1969 to get the change applied.
1970 \begin_inset Newline newline
1973 You can alter tables with the following tabs of the table dialog:
1976 \begin_layout Description
1978 \begin_inset space ~
1981 Settings Here you can set the table width
1982 \begin_inset Index idx
1985 \begin_layout Plain Layout
1991 , and the horizontal alignment and the width of the current column.
1995 \begin_inset space ~
1999 \begin_inset space ~
2004 is described in section
2005 \begin_inset space ~
2009 \begin_inset CommandInset ref
2011 reference "subsec:Special-Cell-Alignment"
2016 When you have set a width you can also adjust the vertical alignment of
2018 A given width will allow the cell to have line breaks and multiple paragraphs
2020 \begin_inset space \thinspace{}
2024 \begin_inset CommandInset ref
2026 reference "subsec:Multiple-Lines-in"
2031 If you set no width, the column is as wide as the content of its widest
2033 \begin_inset Newline newline
2036 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2038 \begin_inset space \thinspace{}
2042 \begin_inset CommandInset ref
2044 reference "subsec:Multicolumns"
2048 or the cells of one column as multirow cell, see sec.
2049 \begin_inset space \thinspace{}
2053 \begin_inset CommandInset ref
2055 reference "subsec:Multirows"
2060 \begin_inset Newline newline
2063 The rotate check boxes rotate the current cell, a selection, or the whole
2064 table counter-clockwise by 90
2065 \begin_inset space \thinspace{}
2069 The rotation is not shown within \SpecialChar LyX
2070 , only in the output.
2071 For more information see sec.
2072 \begin_inset space \thinspace{}
2076 \begin_inset CommandInset ref
2078 reference "sec:Rotated-Table-Cells"
2083 \begin_inset Newline newline
2087 \begin_inset Note Greyedout
2090 \begin_layout Plain Layout
2095 Not all DVI-viewers are able to display rotations.
2101 \begin_inset Newline newline
2104 The table-wide vertical alignment is used for tables within text lines:
2105 \begin_inset Newline newline
2108 A line with tables with different alignments:
2109 \begin_inset Tabular
2110 <lyxtabular version="3" rows="2" columns="2">
2111 <features tabularvalignment="top">
2112 <column alignment="center" valignment="top" width="0pt">
2113 <column alignment="center" valignment="top">
2115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2118 \begin_layout Plain Layout
2124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2127 \begin_layout Plain Layout
2144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2147 \begin_layout Plain Layout
2162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2165 \begin_layout Plain Layout
2177 \begin_inset Tabular
2178 <lyxtabular version="3" rows="2" columns="2">
2179 <features tabularvalignment="middle">
2180 <column alignment="center" valignment="top">
2181 <column alignment="center" valignment="top">
2183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2186 \begin_layout Plain Layout
2192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2195 \begin_layout Plain Layout
2212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2215 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2233 \begin_layout Plain Layout
2245 \begin_inset Tabular
2246 <lyxtabular version="3" rows="2" columns="2">
2247 <features tabularvalignment="bottom">
2248 <column alignment="center" valignment="top" width="0pt">
2249 <column alignment="center" valignment="top">
2251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2254 \begin_layout Plain Layout
2260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2263 \begin_layout Plain Layout
2280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2283 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2301 \begin_layout Plain Layout
2313 \begin_inset Newline newline
2316 It is also possible to enter a \SpecialChar LaTeX
2317 -argument which is needed for special table
2318 formattings, see sec.
2319 \begin_inset space \thinspace{}
2323 \begin_inset CommandInset ref
2325 reference "subsec:Multicolumn-Calculations"
2330 \begin_inset CommandInset ref
2332 reference "sec:Colored-Tables"
2339 \begin_layout Description
2340 Borders In this tab you can add and delete border lines for the current
2342 \begin_inset Newline newline
2345 Using the style option
2349 will convert the table to a formal table as described in sec.
2350 \begin_inset space \thinspace{}
2354 \begin_inset CommandInset ref
2356 reference "sec:Formal-Tables"
2361 \begin_inset Newline newline
2364 You can also add space here to table rows as described in sec.
2365 \begin_inset space \thinspace{}
2369 \begin_inset CommandInset ref
2371 reference "subsec:Row-Spacing"
2378 \begin_layout Description
2380 \begin_inset space ~
2383 table This tab is to make a table a multi-page table that can run over several
2386 \begin_inset space ~
2390 \begin_inset CommandInset ref
2392 reference "sec:Multi-page-Tables"
2397 \begin_inset CommandInset ref
2399 reference "sec:Special-Longtable-Issues"
2403 describe the multi-page table features in detail.
2406 \begin_layout Section
2408 \begin_inset Index idx
2411 \begin_layout Plain Layout
2420 \begin_layout Standard
2421 The table toolbar is an alternative to the table dialog to be able to alter
2423 It should normally appear at the bottom of \SpecialChar LyX
2424 's main window when the cursor
2426 You can alternatively switch it on to appear always, by right-clicking
2431 \begin_layout Standard
2432 The toolbar has the following icons:
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2439 arg "tabular-feature append-row"
2442 adds a row below the current cell or selection
2445 \begin_layout Labeling
2446 \labelwidthstring 00.00.0000
2449 arg "tabular-feature append-column"
2452 adds a column right beside the current cell or selection
2455 \begin_layout Labeling
2456 \labelwidthstring 00.00.0000
2459 arg "tabular-feature delete-row"
2462 deletes the current row or selection
2465 \begin_layout Labeling
2466 \labelwidthstring 00.00.0000
2469 arg "tabular-feature delete-column"
2472 deletes the current column or selection
2475 \begin_layout Labeling
2476 \labelwidthstring 00.00.0000
2479 arg "tabular-feature move-row-up"
2485 \begin_layout Labeling
2486 \labelwidthstring 00.00.0000
2489 arg "tabular-feature move-column-left"
2492 moves the column to the left
2495 \begin_layout Labeling
2496 \labelwidthstring 00.00.0000
2499 arg "tabular-feature move-row-down"
2505 \begin_layout Labeling
2506 \labelwidthstring 00.00.0000
2509 arg "tabular-feature move-column-right"
2512 moves the column to the right
2515 \begin_layout Labeling
2516 \labelwidthstring 00.00.0000
2519 arg "tabular-feature toggle-line-top"
2522 adds a line at the top of the current cell / row or of a selection
2525 \begin_layout Labeling
2526 \labelwidthstring 00.00.0000
2529 arg "tabular-feature toggle-line-bottom"
2532 adds a line at the bottom of the current cell / row or of a selection
2535 \begin_layout Labeling
2536 \labelwidthstring 00.00.0000
2539 arg "tabular-feature toggle-line-left"
2542 adds a line at the left side of the current cell / row or of a selection
2545 \begin_layout Labeling
2546 \labelwidthstring 00.00.0000
2549 arg "tabular-feature toggle-line-right"
2552 adds a line at the right side of the current cell / row or of a selection
2555 \begin_layout Labeling
2556 \labelwidthstring 00.00.0000
2559 arg "tabular-feature set-all-lines"
2562 adds lines around the current or selected cells - if the current cell no
2563 multicolumn cell this also affects the current row and column
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2570 arg "tabular-feature unset-all-lines"
2573 deletes all lines of the current or selected cells - if the current cell
2574 no multicolumn cell this also affects the current row and column
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "tabular-feature m-align-left"
2584 left-aligns the content of the current cell / column
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2591 arg "tabular-feature m-align-center"
2594 centers the content of the current cell / column horizontally
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2601 arg "tabular-feature m-align-right"
2604 right-aligns the content of the current cell / column
2607 \begin_layout Labeling
2608 \labelwidthstring 00.00.0000
2611 arg "tabular-feature align-decimal"
2614 aligns the content of the current column at a character
2617 \begin_layout Labeling
2618 \labelwidthstring 00.00.0000
2621 arg "tabular-feature m-valign-top"
2624 aligns the content of the current cell vertically to the top
2627 \begin_layout Labeling
2628 \labelwidthstring 00.00.0000
2631 arg "tabular-feature m-valign-middle"
2634 centers the content of the current cell vertically
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2641 arg "tabular-feature m-valign-bottom"
2644 aligns the content of the current cell vertically to the bottom
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2651 arg "tabular-feature set-rotate-cell"
2654 rotates the current cell or selection counter-clockwise by 90°
2657 \begin_layout Labeling
2658 \labelwidthstring 00.00.0000
2661 arg "tabular-feature set-rotate-tabular"
2664 rotates the whole table counter-clockwise by 90°
2667 \begin_layout Labeling
2668 \labelwidthstring 00.00.0000
2671 arg "tabular-feature multicolumn"
2674 sets the current cell or selection as a multicolumn
2677 \begin_layout Labeling
2678 \labelwidthstring 00.00.0000
2681 arg "tabular-feature multirow"
2684 sets the current cell or selection as a multirow
2687 \begin_layout Standard
2688 \begin_inset Note Greyedout
2691 \begin_layout Plain Layout
2696 For the output the vertical alignment of the first cell in a row is used
2697 for all following cells in the row.
2705 \begin_layout Section
2707 \begin_inset Index idx
2710 \begin_layout Plain Layout
2719 \begin_layout Standard
2720 In addition to the table dialog and toolbar, the menu
2722 Edit\SpecialChar menuseparator
2725 allows you to add and delete border lines for the current row/column and
2726 to set the current selection as multicolumn.
2727 The menu is only available when the cursor is inside a table.
2730 \begin_layout Section
2732 \begin_inset CommandInset label
2734 name "sec:Table-Floats"
2739 \begin_inset Index idx
2742 \begin_layout Plain Layout
2749 \begin_inset Index idx
2752 \begin_layout Plain Layout
2761 \begin_layout Standard
2762 For general explanations about floats, have a look at section
2763 \begin_inset space ~
2767 \begin_inset CommandInset ref
2769 reference "sec:FloatIntroduction"
2776 \begin_layout Standard
2777 \begin_inset Float table
2783 \begin_layout Plain Layout
2784 \begin_inset Caption Standard
2786 \begin_layout Plain Layout
2787 \begin_inset CommandInset label
2789 name "tab:a table float"
2801 \begin_layout Plain Layout
2803 \begin_inset Tabular
2804 <lyxtabular version="3" rows="3" columns="3">
2805 <features tabularvalignment="middle">
2806 <column alignment="center" valignment="top" width="0pt">
2807 <column alignment="center" valignment="top" width="0pt">
2808 <column alignment="center" valignment="top" width="0pt">
2810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2813 \begin_layout Plain Layout
2828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2831 \begin_layout Plain Layout
2846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Plain Layout
2866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2869 \begin_layout Plain Layout
2884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2887 \begin_layout Plain Layout
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2905 \begin_layout Plain Layout
2922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2925 \begin_layout Plain Layout
2935 \begin_inset Formula $\int x^{2}dx$
2943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2946 \begin_layout Plain Layout
2956 \begin_inset Formula $\left[\begin{array}{cc}
2967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2970 \begin_layout Plain Layout
2980 \begin_inset Formula $1+1=2$
3001 \begin_layout Standard
3002 Table floats can be inserted using the menu
3004 Insert\SpecialChar menuseparator
3005 Float\SpecialChar menuseparator
3008 or the toolbar button
3011 arg "float-insert table"
3017 \begin_layout Standard
3018 The float appears as a collapsible box with a caption that has the label
3020 \begin_inset Quotes eld
3024 \begin_inset space ~
3028 \begin_inset Quotes erd
3031 (# is the actual table number).
3032 You can insert tables in the float above or below the caption.
3035 \begin_layout Standard
3037 \begin_inset space ~
3041 \begin_inset CommandInset ref
3043 reference "tab:a table float"
3047 is an example table within a table float.
3050 \begin_layout Standard
3051 Having the caption above the table is the common rule that is unfortunately
3052 not supported in \SpecialChar LaTeX
3053 's standard classes.
3054 This means that, if you are using the document classes
3070 , there will be no space between the caption and the table.
3071 To insert the needed space, add the following option to the load command
3072 of the \SpecialChar LaTeX
3078 \begin_inset Index idx
3081 \begin_layout Plain Layout
3088 in your document preamble:
3092 \begin_layout Plain Layout
3093 For more information have a look at section
3094 \begin_inset space ~
3098 \begin_inset CommandInset ref
3100 reference "sec:Caption-Placement"
3112 \begin_layout Standard
3118 \begin_layout Standard
3123 , which is described in section
3124 \begin_inset space ~
3128 \begin_inset CommandInset ref
3130 reference "sec:Caption-Formatting"
3134 , is used to adjust the caption format.
3137 \begin_layout Standard
3138 \begin_inset Index idx
3141 \begin_layout Plain Layout
3142 References ! to Tables
3147 Tables can be cross-referenced in the text by referencing their label.
3148 To do this insert a label in the caption using the menu
3150 Insert\SpecialChar menuseparator
3153 or the toolbar button
3160 You can now refer to the label using the menu
3162 Insert\SpecialChar menuseparator
3164 \begin_inset space ~
3169 or the toolbar button
3172 arg "dialog-show-new-inset ref"
3176 \begin_inset Newline newline
3179 Referencing is explained in detail in section
3180 \begin_inset space ~
3184 \begin_inset CommandInset ref
3186 reference "sec:Referencing-Floats"
3193 \begin_layout Section
3199 \begin_inset CommandInset label
3201 name "sec:Multi-page-Tables"
3206 \begin_inset Index idx
3209 \begin_layout Plain Layout
3216 \begin_inset Index idx
3219 \begin_layout Plain Layout
3220 Table ! Multi-page Table
3228 \begin_layout Standard
3229 If the table is too long to fit on one page, you can use the option
3232 \begin_inset space ~
3240 \begin_inset space ~
3245 of the table dialog to split the table automatically over more pages.
3246 Doing this enables the following options:
3249 \begin_layout Description
3250 Header: The current row is defined to be a header row that appears on all
3251 pages of the multi-page table; except for the first page, if
3254 \begin_inset space ~
3260 This is therefore called the main header.
3263 \begin_layout Description
3265 \begin_inset space ~
3268 header: The current row is defined to be a header row that appears on the
3269 first page of the multi-page table.
3272 \begin_layout Description
3273 Footer: The current row is defined to be a footer row that appears on all
3274 pages of the multi-page table; except for the last page, if
3277 \begin_inset space ~
3285 \begin_layout Description
3287 \begin_inset space ~
3290 footer: The current row is defined to be a footer row that appears on the
3291 last page of the multi-page table.
3294 \begin_layout Description
3295 Caption: The current row contains the table caption.
3296 The row is reset as single column and a caption is inserted.
3297 More about multi-page table captions is explained in sec.
3298 \begin_inset space \thinspace{}
3302 \begin_inset CommandInset ref
3304 reference "subsec:Multi-page-Table-Captions"
3311 \begin_layout Standard
3312 You can also specify a row where the table is split.
3313 See the following multi-page table to see how it works:
3316 \begin_layout Standard
3318 \begin_inset Tabular
3319 <lyxtabular version="3" rows="69" columns="3">
3320 <features islongtable="true" longtabularalignment="center">
3321 <column alignment="left" valignment="top" width="0cm">
3322 <column alignment="left" valignment="top" width="0pt">
3323 <column alignment="center" valignment="top" width="0pt">
3324 <row endfirsthead="true">
3325 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3328 \begin_layout Plain Layout
3331 Example Phone List (ignore the names)
3336 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3339 \begin_layout Plain Layout
3345 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3348 \begin_layout Plain Layout
3355 <row endfirsthead="true">
3356 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3359 \begin_layout Plain Layout
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3370 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Plain Layout
3388 <row endhead="true">
3389 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3392 \begin_layout Plain Layout
3400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3403 \begin_layout Plain Layout
3409 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3412 \begin_layout Plain Layout
3419 <row endhead="true">
3420 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3423 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3434 \begin_layout Plain Layout
3440 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3443 \begin_layout Plain Layout
3452 <row endfoot="true">
3453 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3457 continued on next page
3462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3465 \begin_layout Plain Layout
3471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3474 \begin_layout Plain Layout
3482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3485 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" usebox="none">
3496 \begin_layout Plain Layout
3502 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3505 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" usebox="none">
3527 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" usebox="none">
3558 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3567 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" usebox="none">
3589 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" usebox="none">
3620 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" usebox="none">
3651 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" usebox="none">
3682 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" usebox="none">
3713 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" usebox="none">
3744 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" usebox="none">
3775 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" usebox="none">
3806 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" usebox="none">
3837 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" usebox="none">
3868 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" usebox="none">
3899 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" usebox="none">
3930 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" usebox="none">
3961 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" usebox="none">
4054 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" usebox="none">
4085 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" usebox="none">
4116 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" usebox="none">
4147 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4187 \begin_layout Plain Layout
4195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4198 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" usebox="none">
4209 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4218 \begin_layout Plain Layout
4226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4229 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" usebox="none">
4240 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4260 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" usebox="none">
4271 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4291 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" usebox="none">
4302 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" usebox="none">
4333 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4353 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" usebox="none">
4364 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4384 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" usebox="none">
4395 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4415 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4426 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4455 \begin_layout Plain Layout
4461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4464 \begin_layout Plain Layout
4472 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" usebox="none">
4486 \begin_layout Plain Layout
4492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4495 \begin_layout Plain Layout
4503 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" usebox="none">
4517 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4526 \begin_layout Plain Layout
4534 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" usebox="none">
4548 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4557 \begin_layout Plain Layout
4565 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" usebox="none">
4579 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" usebox="none">
4610 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" usebox="none">
4641 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" usebox="none">
4672 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" usebox="none">
4703 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" usebox="none">
4734 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" usebox="none">
4765 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" usebox="none">
4796 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" usebox="none">
4827 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" usebox="none">
4858 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" usebox="none">
4889 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" usebox="none">
4920 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" usebox="none">
4951 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" usebox="none">
4982 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" usebox="none">
5013 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" usebox="none">
5044 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" usebox="none">
5075 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" usebox="none">
5106 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" usebox="none">
5137 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5146 \begin_layout Plain Layout
5154 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Plain Layout
5185 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5188 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" usebox="none">
5199 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5208 \begin_layout Plain Layout
5216 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5219 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" usebox="none">
5230 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5239 \begin_layout Plain Layout
5247 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5250 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" usebox="none">
5261 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5270 \begin_layout Plain Layout
5278 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5281 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" usebox="none">
5292 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5301 \begin_layout Plain Layout
5309 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5312 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" usebox="none">
5323 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5332 \begin_layout Plain Layout
5340 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5343 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" usebox="none">
5354 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5363 \begin_layout Plain Layout
5371 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5394 \begin_layout Plain Layout
5402 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5405 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5416 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5425 \begin_layout Plain Layout
5432 <row endlastfoot="true">
5433 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5436 \begin_layout Plain Layout
5442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5445 \begin_layout Plain Layout
5451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5454 \begin_layout Plain Layout
5469 \begin_layout Plain Layout
5473 addtocounter{table}{-1}
5479 \begin_inset Note Note
5482 \begin_layout Plain Layout
5483 See the first greyed-out note in section
5484 \begin_inset space ~
5488 \begin_inset CommandInset ref
5490 reference "subsec:Multi-page-Table-Captions"
5494 for an explanation of this command.
5502 \begin_layout Subsection
5503 Footnotes in Multi-page tables
5504 \begin_inset CommandInset label
5506 name "subsec:Footnotes-in-Multi-page"
5511 \begin_inset Index idx
5514 \begin_layout Plain Layout
5515 Table ! Multi-page Table ! Footnotes
5523 \begin_layout Standard
5524 Footnotes can be inserted to every Multi-page table cell.
5525 They appear at the bottom of the page where the table cell with the footnote
5528 \begin_inset space ~
5532 \begin_inset CommandInset ref
5534 reference "tab:DiffCaptions"
5538 has for example a footnote.
5541 \begin_layout Subsection
5542 Multi-page Table Alignment
5543 \begin_inset Index idx
5546 \begin_layout Plain Layout
5547 Table ! Multi-page Table ! Alignment
5555 \begin_layout Standard
5556 The horizontal alignment of multi-page tables can be set in the table settings
5558 For left- and right-alignment the table will be directly at the page border.
5559 To add space between the table and the border one has to set the alignment
5560 to center and change the value of the \SpecialChar LaTeX
5573 by inserting this line as \SpecialChar TeX
5574 Code before the multi-page table:
5577 \begin_layout Standard
5587 \begin_layout Standard
5588 The value can have any of the units listed in Table
5589 \begin_inset space ~
5593 \begin_inset CommandInset ref
5595 reference "tab:Units"
5606 controls the horizontal distance from the left page border to the multi-page
5613 the distance from the right side.
5614 The default value for both lengths is
5620 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5624 \begin_layout Standard
5625 The following multi-page table was centered and
5641 \begin_layout Plain Layout
5657 \begin_layout Standard
5658 \begin_inset Tabular
5659 <lyxtabular version="3" rows="5" columns="5">
5660 <features islongtable="true" longtabularalignment="center">
5661 <column alignment="center" valignment="top">
5662 <column alignment="center" valignment="top" width="0pt">
5663 <column alignment="center" valignment="top">
5664 <column alignment="center" valignment="top">
5665 <column alignment="center" valignment="top">
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5670 \begin_layout Plain Layout
5676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5679 \begin_layout Plain Layout
5685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_layout Plain Layout
5694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5697 \begin_layout Plain Layout
5703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5706 \begin_layout Plain Layout
5714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5717 \begin_layout Plain Layout
5723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_layout Plain Layout
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5735 \begin_layout Plain Layout
5741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5744 \begin_layout Plain Layout
5750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5753 \begin_layout Plain Layout
5761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5764 \begin_layout Plain Layout
5770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5773 \begin_layout Plain Layout
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5782 \begin_layout Plain Layout
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5791 \begin_layout Plain Layout
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5800 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5820 \begin_layout Plain Layout
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5829 \begin_layout Plain Layout
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5838 \begin_layout Plain Layout
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5847 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5867 \begin_layout Plain Layout
5873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5876 \begin_layout Plain Layout
5882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5885 \begin_layout Plain Layout
5891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5894 \begin_layout Plain Layout
5909 \begin_layout Plain Layout
5926 \begin_layout Plain Layout
5930 addtocounter{table}{-1}
5936 \begin_inset Note Note
5939 \begin_layout Plain Layout
5940 See the first greyed-out note in section
5941 \begin_inset space ~
5945 \begin_inset CommandInset ref
5947 reference "subsec:Multi-page-Table-Captions"
5951 for an explanation of this command.
5959 \begin_layout Subsection
5960 Multi-page Table Captions
5961 \begin_inset Index idx
5964 \begin_layout Plain Layout
5965 Table ! Multi-page Table ! Captions
5971 \begin_inset CommandInset label
5973 name "subsec:Multi-page-Table-Captions"
5980 \begin_layout Standard
5981 A multi-page table cannot be put into a table float because floats can only
5983 But the caption environment of floats can also be used for multi-page tables
5984 when you use the multi-page table option
5988 as described in sec.
5989 \begin_inset space \thinspace{}
5993 \begin_inset CommandInset ref
5995 reference "sec:Multi-page-Tables"
6000 Only one table row should contain a caption, either a header or a footer
6004 \begin_layout Standard
6005 Here is a short multi-page table to see how it works:
6008 \begin_layout Standard
6009 \begin_inset Tabular
6010 <lyxtabular version="3" rows="6" columns="5">
6011 <features islongtable="true" longtabularalignment="center">
6012 <column alignment="center" valignment="top">
6013 <column alignment="center" valignment="top">
6014 <column alignment="center" valignment="top">
6015 <column alignment="center" valignment="top">
6016 <column alignment="center" valignment="top">
6017 <row endfirsthead="true" caption="true">
6018 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6021 \begin_layout Plain Layout
6022 \begin_inset Caption Standard
6024 \begin_layout Plain Layout
6025 Multi-page table with caption
6026 \begin_inset Argument 1
6029 \begin_layout Plain Layout
6045 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6048 \begin_layout Plain Layout
6054 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6057 \begin_layout Plain Layout
6063 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6066 \begin_layout Plain Layout
6072 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Plain Layout
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Plain Layout
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Plain Layout
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6104 \begin_layout Plain Layout
6110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6113 \begin_layout Plain Layout
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6122 \begin_layout Plain Layout
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Plain Layout
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Plain Layout
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6151 \begin_layout Plain Layout
6157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6160 \begin_layout Plain Layout
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6169 \begin_layout Plain Layout
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Plain Layout
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Plain Layout
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6198 \begin_layout Plain Layout
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6207 \begin_layout Plain Layout
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_layout Plain Layout
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Plain Layout
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Plain Layout
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6245 \begin_layout Plain Layout
6251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6254 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6263 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6274 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6292 \begin_layout Plain Layout
6298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6301 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6310 \begin_layout Plain Layout
6324 \begin_layout Standard
6325 \begin_inset VSpace medskip
6329 \begin_inset Note Greyedout
6332 \begin_layout Plain Layout
6336 \begin_inset space ~
6341 The table number is increased for every multi-page table, even if you did
6342 not set a caption for it.
6343 For this reason you could have the case that e.
6344 \begin_inset space \thinspace{}
6348 \begin_inset space \space{}
6352 \begin_inset space ~
6356 \begin_inset space ~
6359 2.1 in the list of tables if there are two multi-page tables without captions.
6360 To avoid this you can add the following command in \SpecialChar TeX
6361 Code after every multi-page
6362 table without a caption:
6365 \begin_layout Plain Layout
6370 addtocounter{table}{-1}
6373 \begin_layout Plain Layout
6374 This is not needed when none of your multi-page tables has a caption and
6375 you add the following code to the document preamble:
6378 \begin_layout Plain Layout
6388 \begin_inset Newline newline
6399 addtocounter{table}{-1}}
6407 \begin_layout Standard
6408 \begin_inset Note Greyedout
6411 \begin_layout Plain Layout
6415 \begin_inset space ~
6425 \begin_inset Index idx
6428 \begin_layout Plain Layout
6430 -packages ! hyperref
6443 dialog to link cross-references, the link to a multi-page table caption
6444 will always point to the beginning of the document.
6452 \begin_layout Subsubsection
6453 References to multi-page tables
6454 \begin_inset Index idx
6457 \begin_layout Plain Layout
6458 Table ! Multi-page Table ! References
6466 \begin_layout Standard
6467 \begin_inset Tabular
6468 <lyxtabular version="3" rows="6" columns="5">
6469 <features islongtable="true" longtabularalignment="center">
6470 <column alignment="center" valignment="top">
6471 <column alignment="center" valignment="top">
6472 <column alignment="center" valignment="top">
6473 <column alignment="center" valignment="top">
6474 <column alignment="center" valignment="top">
6475 <row endfirsthead="true" caption="true">
6476 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6479 \begin_layout Plain Layout
6480 \begin_inset Caption Standard
6482 \begin_layout Plain Layout
6483 Referenced multi-page table
6484 \begin_inset CommandInset label
6486 name "tab:Referenced-multi-page-table"
6500 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6503 \begin_layout Plain Layout
6509 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6512 \begin_layout Plain Layout
6518 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6521 \begin_layout Plain Layout
6527 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6530 \begin_layout Plain Layout
6538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6541 \begin_layout Plain Layout
6547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6550 \begin_layout Plain Layout
6556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6559 \begin_layout Plain Layout
6565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6568 \begin_layout Plain Layout
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6577 \begin_layout Plain Layout
6585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6588 \begin_layout Plain Layout
6594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6615 \begin_layout Plain Layout
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6624 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6662 \begin_layout Plain Layout
6668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6671 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6709 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6718 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6756 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6765 \begin_layout Plain Layout
6779 \begin_layout Standard
6780 To reference a multi-page table, insert a label into the caption.
6783 \begin_layout Standard
6784 This is a reference to Table
6785 \begin_inset space ~
6789 \begin_inset CommandInset ref
6791 reference "tab:Referenced-multi-page-table"
6798 \begin_layout Standard
6799 The caption layout can be set together with all other captions of your document
6800 using the \SpecialChar LaTeX
6806 \begin_inset Index idx
6809 \begin_layout Plain Layout
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "sec:Caption-Formatting"
6830 \begin_layout Subsubsection
6832 \begin_inset Index idx
6835 \begin_layout Plain Layout
6836 Table ! Multi-page Table ! Caption Width
6844 \begin_layout Standard
6845 The maximal width of caption lines is defined by the length
6852 Its default value is 4
6853 \begin_inset space \thinspace{}
6857 To change it add the following command to your document preamble or as
6859 Code into your document before the multi-page table that should be affected
6862 \begin_layout Standard
6872 \begin_layout Standard
6877 can have one of the units listed in appendix
6878 \begin_inset space ~
6882 \begin_inset CommandInset ref
6884 reference "cha:Units-available-in"
6891 \begin_layout Standard
6892 The following tables show the difference:
6895 \begin_layout Standard
6896 \begin_inset Tabular
6897 <lyxtabular version="3" rows="6" columns="5">
6898 <features islongtable="true" longtabularalignment="center">
6899 <column alignment="center" valignment="top">
6900 <column alignment="center" valignment="top">
6901 <column alignment="center" valignment="top">
6902 <column alignment="center" valignment="top">
6903 <column alignment="center" valignment="top">
6904 <row endfirsthead="true" caption="true">
6905 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6908 \begin_layout Plain Layout
6909 \begin_inset Caption Standard
6911 \begin_layout Plain Layout
6912 Long full title with default width long full title with default width long
6913 full title with default width
6914 \begin_inset Argument 1
6917 \begin_layout Plain Layout
6918 caption with default width
6933 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6936 \begin_layout Plain Layout
6942 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6945 \begin_layout Plain Layout
6951 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Plain Layout
6971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7010 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7057 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7104 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7151 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7198 \begin_layout Plain Layout
7212 \begin_layout Standard
7216 \begin_layout Plain Layout
7228 \begin_inset Tabular
7229 <lyxtabular version="3" rows="6" columns="5">
7230 <features islongtable="true" longtabularalignment="center">
7231 <column alignment="center" valignment="top">
7232 <column alignment="center" valignment="top">
7233 <column alignment="center" valignment="top">
7234 <column alignment="center" valignment="top">
7235 <column alignment="center" valignment="top">
7236 <row endfirsthead="true" caption="true">
7237 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7240 \begin_layout Plain Layout
7241 \begin_inset Caption Standard
7243 \begin_layout Plain Layout
7244 Long full title with width set to 5
7245 \begin_inset space \thinspace{}
7248 cm long full title with width set to 5
7249 \begin_inset space \thinspace{}
7252 cm long full title with width set to 5
7253 \begin_inset space \thinspace{}
7257 \begin_inset Argument 1
7260 \begin_layout Plain Layout
7262 \begin_inset space \thinspace{}
7266 \begin_inset space \thinspace{}
7270 \begin_inset space \thinspace{}
7288 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7291 \begin_layout Plain Layout
7297 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7300 \begin_layout Plain Layout
7306 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7318 \begin_layout Plain Layout
7326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7329 \begin_layout Plain Layout
7335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7338 \begin_layout Plain Layout
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7365 \begin_layout Plain Layout
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7376 \begin_layout Plain Layout
7382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7385 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7412 \begin_layout Plain Layout
7420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7423 \begin_layout Plain Layout
7429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7432 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Plain Layout
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Plain Layout
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7479 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7506 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7526 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7535 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Plain Layout
7567 \begin_layout Standard
7571 \begin_layout Plain Layout
7585 \begin_layout Standard
7586 \begin_inset Note Greyedout
7589 \begin_layout Plain Layout
7594 When the \SpecialChar LaTeX
7600 \begin_inset Index idx
7603 \begin_layout Plain Layout
7610 is used, as in this document, the full page width is used for the caption
7611 when you use the default value of 4
7612 \begin_inset space \thinspace{}
7622 To get in this case exactly a 4
7623 \begin_inset space \thinspace{}
7626 in wide caption, you can either use a value slightly different from 4.0
7627 \begin_inset space \thinspace{}
7631 \begin_inset space \thinspace{}
7635 \begin_inset space \space{}
7639 \begin_inset space \thinspace{}
7642 in, or the \SpecialChar LaTeX
7647 captionsetup{width=value}
7649 that is provided by the
7661 \begin_layout Subsubsection
7662 Different Captions for Table Pages
7663 \begin_inset Index idx
7666 \begin_layout Plain Layout
7667 Table ! Multi-page Table ! Different Captions for Pages
7675 \begin_layout Standard
7676 When the table captions for the following pages should differ from the one
7677 of the first table page, mark a empty row as header which contains a caption.
7678 Then right-click on the caption and select in the context menu
7681 \begin_inset space ~
7688 \begin_inset space ~
7692 \begin_inset CommandInset ref
7694 reference "tab:DiffCaptions"
7698 is an example of a multi-page table with different heading where the second
7699 caption does not include the table number.
7702 \begin_layout Standard
7704 \begin_inset Tabular
7705 <lyxtabular version="3" rows="59" columns="3">
7706 <features islongtable="true" longtabularalignment="center">
7707 <column alignment="left" valignment="top" width="0cm">
7708 <column alignment="left" valignment="top" width="0pt">
7709 <column alignment="center" valignment="top" width="0pt">
7710 <row endfirsthead="true" caption="true">
7711 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7714 \begin_layout Plain Layout
7715 \begin_inset Caption Standard
7717 \begin_layout Plain Layout
7719 \begin_inset CommandInset label
7721 name "tab:DiffCaptions"
7726 \begin_inset Argument 1
7729 \begin_layout Plain Layout
7745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7748 \begin_layout Plain Layout
7754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7757 \begin_layout Plain Layout
7764 <row endfirsthead="true">
7765 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Plain Layout
7771 Example Phone List (ignore the names)
7776 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7779 \begin_layout Plain Layout
7785 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7788 \begin_layout Plain Layout
7795 <row endfirsthead="true">
7796 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7799 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7810 \begin_layout Plain Layout
7816 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7819 \begin_layout Plain Layout
7828 <row endhead="true" caption="true">
7829 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7832 \begin_layout Plain Layout
7833 \begin_inset Caption Unnumbered
7835 \begin_layout Plain Layout
7836 Continued Example Phone List
7846 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7849 \begin_layout Plain Layout
7855 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Plain Layout
7865 <row endhead="true">
7866 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7869 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7880 \begin_layout Plain Layout
7886 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Plain Layout
7896 <row endhead="true">
7897 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7900 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7911 \begin_layout Plain Layout
7917 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Plain Layout
7929 <row endfoot="true">
7930 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7933 \begin_layout Plain Layout
7934 continued on next page
7939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7942 \begin_layout Plain Layout
7948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Plain Layout
7959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7962 \begin_layout Plain Layout
7970 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
8001 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8032 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8063 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8094 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8106 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8117 \begin_layout Plain Layout
8125 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8137 \begin_layout Plain Layout
8145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8148 \begin_layout Plain Layout
8156 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8168 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8199 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8230 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8261 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8292 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8323 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8354 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8385 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8396 \begin_layout Plain Layout
8405 \begin_layout Plain Layout
8416 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8419 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8540 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8571 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8602 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8633 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8664 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8695 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8726 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8757 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8788 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8819 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8850 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8881 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8912 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8935 \begin_layout Plain Layout
8941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8944 \begin_layout Plain Layout
8950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8953 \begin_layout Plain Layout
8961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8964 \begin_layout Plain Layout
8972 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9003 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9034 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9065 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9096 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9127 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9158 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9189 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9220 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9251 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9282 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9294 \begin_layout Plain Layout
9302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9305 \begin_layout Plain Layout
9313 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9325 \begin_layout Plain Layout
9333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9336 \begin_layout Plain Layout
9344 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9356 \begin_layout Plain Layout
9364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9367 \begin_layout Plain Layout
9375 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9387 \begin_layout Plain Layout
9395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9398 \begin_layout Plain Layout
9406 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9418 \begin_layout Plain Layout
9426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9429 \begin_layout Plain Layout
9437 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9449 \begin_layout Plain Layout
9457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9460 \begin_layout Plain Layout
9468 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9480 \begin_layout Plain Layout
9488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9491 \begin_layout Plain Layout
9499 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9511 \begin_layout Plain Layout
9519 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9522 \begin_layout Plain Layout
9530 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9542 \begin_layout Plain Layout
9550 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9553 \begin_layout Plain Layout
9561 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9570 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9573 \begin_layout Plain Layout
9587 \begin_layout Section
9588 Special Multi-page Table Issues
9589 \begin_inset CommandInset label
9591 name "sec:Special-Longtable-Issues"
9598 \begin_layout Subsection
9599 Multi-page Table Calculation
9600 \begin_inset Index idx
9603 \begin_layout Plain Layout
9604 Table ! Multi-page Table ! Calculation
9612 \begin_layout Standard
9614 calculates the height of table pages and their page breaks using so called
9616 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9618 The default value was historically set to only 20
9619 \begin_inset space ~
9623 If you are using multi-page tables with many pages this may slow down the
9624 creation of your document.
9625 You can safely increase the chunk size to values of 100
9626 \begin_inset space \thinspace{}
9630 \begin_inset space \thinspace{}
9633 1000 by adding this command line to your document preamble:
9636 \begin_layout Standard
9641 setcounter{LTchunksize}{100}
9644 \begin_layout Subsection
9645 Floats and Multi-page Tables
9646 \begin_inset Index idx
9649 \begin_layout Plain Layout
9650 Table ! Multi-page Table ! Floats
9658 \begin_layout Standard
9659 There might be problems when a float appears on the same page where a multi-page
9661 To avoid such a situation, insert a
9662 \begin_inset Quotes eld
9666 \begin_inset Quotes erd
9671 Insert\SpecialChar menuseparator
9672 Formatting\SpecialChar menuseparator
9674 \begin_inset space ~
9679 ) before your multi-page table.
9682 \begin_layout Subsection
9684 \begin_inset Index idx
9687 \begin_layout Plain Layout
9688 Table ! Multi-page Table ! Forced Page Breaks
9696 \begin_layout Standard
9697 By default tables are only broken between rows.
9698 If you have a cell with multiples lines and want to have a page break within
9699 the cell, insert the new line command
9700 \begin_inset Quotes eld
9712 \begin_inset Quotes erd
9716 Code at the point of the cell where it can be broken.
9725 command you have to insert in \SpecialChar TeX
9727 \begin_inset Quotes eld
9735 \begin_inset Quotes erd
9738 characters as the number of the following table columns.
9743 is the character to separate table cells.
9744 Write in \SpecialChar TeX
9749 the content of the corresponding following cell and delete the content
9751 \begin_inset Newline newline
9762 command, insert as many
9766 characters as the number of table columns before the current column.
9768 \begin_inset space ~
9772 \begin_inset CommandInset ref
9774 reference "tab:ForcedPagebreak"
9778 the cell that should be broken is in the second column followed by another
9780 Therefore the following command was inserted in the cell as \SpecialChar TeX
9783 \begin_inset Quotes eld
9791 \begin_inset Quotes erd
9797 \begin_layout Standard
9807 \begin_inset Newline newline
9813 \begin_layout Standard
9815 \begin_inset Quotes eld
9819 \begin_inset Quotes erd
9822 in the third column of the row was deleted.
9829 is only needed when a page break should definitely occur at this position,
9830 otherwise it would be a conditional break.
9831 If your footer row of the multi-page table has for a certain reason no
9832 upper line but you would have a horizontal line where the cell is broken,
9833 use this command instead:
9836 \begin_layout Standard
9844 \begin_inset Newline newline
9852 \begin_layout Standard
9853 When the cell to be broken is in the last column, the command
9856 \begin_layout Standard
9866 \begin_layout Standard
9867 must be inserted as \SpecialChar TeX
9868 Code at the beginning of the cell.
9869 This ensures that the part of the cell that will be displayed on the new
9870 page appears with the full width.
9873 \begin_layout Standard
9875 \begin_inset Tabular
9876 <lyxtabular version="3" rows="38" columns="3">
9877 <features islongtable="true" longtabularalignment="center">
9878 <column alignment="left" valignment="top" width="0cm">
9879 <column alignment="left" valignment="top" width="3cm">
9880 <column alignment="center" valignment="top" width="0pt">
9881 <row endfirsthead="true" caption="true">
9882 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9885 \begin_layout Plain Layout
9886 \begin_inset Caption Standard
9888 \begin_layout Plain Layout
9889 Table with forced page break in table cell
9890 \begin_inset CommandInset label
9892 name "tab:ForcedPagebreak"
9897 \begin_inset Argument 1
9900 \begin_layout Plain Layout
9901 Table with forced page break in table cell
9916 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9919 \begin_layout Plain Layout
9925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9928 \begin_layout Plain Layout
9935 <row endfirsthead="true">
9936 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9939 \begin_layout Plain Layout
9942 Example Phone List (ignore the names)
9947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9950 \begin_layout Plain Layout
9956 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9959 \begin_layout Plain Layout
9966 <row endfirsthead="true">
9967 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9970 \begin_layout Plain Layout
9978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9981 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9990 \begin_layout Plain Layout
9999 <row endhead="true" caption="true">
10000 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10003 \begin_layout Plain Layout
10004 \begin_inset Caption Unnumbered
10006 \begin_layout Plain Layout
10007 Continued Example Phone List
10017 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10020 \begin_layout Plain Layout
10026 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10029 \begin_layout Plain Layout
10036 <row endhead="true">
10037 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10040 \begin_layout Plain Layout
10048 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10051 \begin_layout Plain Layout
10057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10060 \begin_layout Plain Layout
10067 <row endhead="true">
10068 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10071 \begin_layout Plain Layout
10079 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10082 \begin_layout Plain Layout
10088 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10091 \begin_layout Plain Layout
10100 <row endfoot="true">
10101 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10104 \begin_layout Plain Layout
10105 continued on next page
10110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10113 \begin_layout Plain Layout
10119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10122 \begin_layout Plain Layout
10130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10133 \begin_layout Plain Layout
10141 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10144 \begin_layout Plain Layout
10150 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10164 \begin_layout Plain Layout
10172 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10175 \begin_layout Plain Layout
10181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10184 \begin_layout Plain Layout
10192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10195 \begin_layout Plain Layout
10203 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10206 \begin_layout Plain Layout
10212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10215 \begin_layout Plain Layout
10223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10226 \begin_layout Plain Layout
10234 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10237 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10246 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10257 \begin_layout Plain Layout
10265 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10268 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10277 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10288 \begin_layout Plain Layout
10296 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10299 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10308 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10319 \begin_layout Plain Layout
10327 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10330 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10339 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10350 \begin_layout Plain Layout
10358 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10361 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10370 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10381 \begin_layout Plain Layout
10389 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10392 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10401 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10412 \begin_layout Plain Layout
10420 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10423 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10432 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10443 \begin_layout Plain Layout
10451 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10454 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10463 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10474 \begin_layout Plain Layout
10482 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10485 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10494 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10505 \begin_layout Plain Layout
10513 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10516 \begin_layout Plain Layout
10522 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10525 \begin_layout Plain Layout
10533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10536 \begin_layout Plain Layout
10544 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10547 \begin_layout Plain Layout
10553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10556 \begin_layout Plain Layout
10564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10567 \begin_layout Plain Layout
10575 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10578 \begin_layout Plain Layout
10584 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10587 \begin_layout Plain Layout
10595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10598 \begin_layout Plain Layout
10606 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10609 \begin_layout Plain Layout
10615 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10618 \begin_layout Plain Layout
10626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10629 \begin_layout Plain Layout
10637 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10640 \begin_layout Plain Layout
10646 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10649 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10660 \begin_layout Plain Layout
10668 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10671 \begin_layout Plain Layout
10677 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10680 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10691 \begin_layout Plain Layout
10699 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10702 \begin_layout Plain Layout
10708 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10711 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10722 \begin_layout Plain Layout
10730 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10733 \begin_layout Plain Layout
10739 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10742 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10753 \begin_layout Plain Layout
10761 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10764 \begin_layout Plain Layout
10770 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10773 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10784 \begin_layout Plain Layout
10792 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10795 \begin_layout Plain Layout
10801 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10804 \begin_layout Plain Layout
10812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10815 \begin_layout Plain Layout
10823 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10826 \begin_layout Plain Layout
10828 Fürst von Montecompatri, 11.
10829 Fürst von Sulmona und Vivaro, 10.
10830 Fürst von Rossano, 5.
10831 Herzog von Canemorte, 11.
10832 Herzog von Palombara, 5.
10833 Herzog von Castelchiodato,
10837 \begin_layout Plain Layout
10848 \begin_layout Plain Layout
10856 Herzog von Poggionativo, 11.
10857 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10858 Graf von Valinfreda, 11.
10859 Baron von Cropalati, 11.
10860 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10868 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10896 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10899 \begin_layout Plain Layout
10907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10910 \begin_layout Plain Layout
10918 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10921 \begin_layout Plain Layout
10927 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10930 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10961 \begin_layout Plain Layout
10969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10972 \begin_layout Plain Layout
10980 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10983 \begin_layout Plain Layout
10989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10992 \begin_layout Plain Layout
11000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11003 \begin_layout Plain Layout
11011 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11014 \begin_layout Plain Layout
11020 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11023 \begin_layout Plain Layout
11031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11034 \begin_layout Plain Layout
11042 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11045 \begin_layout Plain Layout
11051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11054 \begin_layout Plain Layout
11062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11065 \begin_layout Plain Layout
11073 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11076 \begin_layout Plain Layout
11082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11085 \begin_layout Plain Layout
11093 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11096 \begin_layout Plain Layout
11104 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11107 \begin_layout Plain Layout
11113 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11116 \begin_layout Plain Layout
11130 \begin_layout Section
11131 Multiple Lines, Columns and Rows
11134 \begin_layout Subsection
11135 Multiple Lines in Table Cells
11136 \begin_inset CommandInset label
11138 name "subsec:Multiple-Lines-in"
11143 \begin_inset Index idx
11146 \begin_layout Plain Layout
11147 Multiple Lines in Table Cells
11153 \begin_inset Index idx
11156 \begin_layout Plain Layout
11165 \begin_layout Standard
11167 \begin_inset Float table
11173 \begin_layout Plain Layout
11174 \begin_inset Caption Standard
11176 \begin_layout Plain Layout
11177 \begin_inset CommandInset label
11179 name "tab:Table-with-multiple"
11183 Table with multiple lines in cells
11191 \begin_layout Plain Layout
11193 \begin_inset Tabular
11194 <lyxtabular version="3" rows="3" columns="3">
11195 <features tabularvalignment="middle">
11196 <column alignment="center" valignment="middle" width="2.5cm">
11197 <column alignment="center" valignment="middle">
11198 <column alignment="center" valignment="middle">
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11205 \begin_inset Newline linebreak
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11216 \begin_layout Plain Layout
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11225 \begin_layout Plain Layout
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11254 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11283 \begin_layout Plain Layout
11302 \begin_layout Standard
11303 Setting a fixed width for a column enables you to enter text as a paragraph
11304 with multiple lines and hyphenation.
11307 \begin_layout Standard
11309 \begin_inset space ~
11313 \begin_inset CommandInset ref
11315 reference "tab:Table-with-multiple"
11319 , create a 3×3 table, mark the first cell and right-click on it.
11320 In the appearing table dialog we set a cell width of 2.5
11321 \begin_inset space \thinspace{}
11324 cm and choose centered for the vertical and horizontal alignment.
11325 The vertical alignment is used for all cells of the row.
11326 As our text is smaller than 2.5
11327 \begin_inset space \thinspace{}
11330 cm, only one line will appear.
11331 To get two lines, a justified line break (shortcut
11334 arg "newline-insert linebreak"
11338 If the text is wider than the set cell width, it will automatically be
11339 broken to several lines.
11342 \begin_layout Standard
11343 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11344 by \SpecialChar LaTeX
11345 if it is the first entry.
11346 Therefore you need to insert something to prevent the word not being the
11348 So add a horizontal space of 0
11349 \begin_inset space \thinspace{}
11352 pt before the word.
11353 As the space is zero, it doesn't change the output.
11355 \begin_inset space ~
11359 \begin_inset CommandInset ref
11361 reference "tab:Table-with-and"
11368 \begin_layout Standard
11369 \begin_inset Float table
11375 \begin_layout Plain Layout
11376 \begin_inset Caption Standard
11378 \begin_layout Plain Layout
11379 \begin_inset CommandInset label
11381 name "tab:Table-with-and"
11385 Table with and without hyphenation
11393 \begin_layout Plain Layout
11394 \begin_inset space \hfill{}
11398 \begin_inset Tabular
11399 <lyxtabular version="3" rows="3" columns="3">
11400 <features tabularvalignment="middle">
11401 <column alignment="center" valignment="middle" width="2.5cm">
11402 <column alignment="center" valignment="middle">
11403 <column alignment="center" valignment="middle">
11405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11408 \begin_layout Plain Layout
11409 verylongtablecellword
11414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11417 \begin_layout Plain Layout
11423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11426 \begin_layout Plain Layout
11434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11437 \begin_layout Plain Layout
11443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11446 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11475 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11484 \begin_layout Plain Layout
11496 \begin_inset space \hfill{}
11500 \begin_inset Tabular
11501 <lyxtabular version="3" rows="3" columns="3">
11502 <features tabularvalignment="middle">
11503 <column alignment="center" valignment="middle" width="2.5cm">
11504 <column alignment="center" valignment="middle">
11505 <column alignment="center" valignment="middle">
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11511 \begin_inset space \hspace{}
11515 verylongtablecellword
11520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11523 \begin_layout Plain Layout
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11552 \begin_layout Plain Layout
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11561 \begin_layout Plain Layout
11569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11572 \begin_layout Plain Layout
11578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11581 \begin_layout Plain Layout
11587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11590 \begin_layout Plain Layout
11602 \begin_inset space \hfill{}
11613 \begin_layout Subsection
11615 \begin_inset CommandInset label
11617 name "subsec:Multicolumns"
11622 \begin_inset Index idx
11625 \begin_layout Plain Layout
11632 \begin_inset Index idx
11635 \begin_layout Plain Layout
11636 Table ! Multicolumns
11644 \begin_layout Subsubsection
11648 \begin_layout Standard
11649 To merge cells over multiple columns, select as many cells within a row
11650 as you want to merge and use either the table-toolbar button
11653 arg "tabular-feature multicolumn"
11658 Edit\SpecialChar menuseparator
11659 Table\SpecialChar menuseparator
11662 , or right click on the marked cells and choose
11666 in the context menu.
11669 \begin_layout Standard
11670 Multicolumns have their own cell settings.
11671 That means changing cell borders, cell alignment, and the width only affects
11673 Here is an example table with a multicolumn cell in the first row and one
11674 in the last row without the upper border:
11677 \begin_layout Standard
11679 \begin_inset Tabular
11680 <lyxtabular version="3" rows="3" columns="4">
11681 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11682 <column alignment="center" valignment="top" width="0pt">
11683 <column alignment="center" valignment="middle">
11684 <column alignment="center" valignment="top" width="0in">
11685 <column alignment="center" valignment="top" width="0pt">
11687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11690 \begin_layout Plain Layout
11696 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11699 \begin_layout Plain Layout
11705 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11708 \begin_layout Plain Layout
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11717 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11746 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11764 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11775 \begin_layout Plain Layout
11781 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11784 \begin_layout Plain Layout
11790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11793 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11802 \begin_layout Plain Layout
11816 \begin_layout Subsubsection
11817 Multicolumn Calculations
11818 \begin_inset CommandInset label
11820 name "subsec:Multicolumn-Calculations"
11825 \begin_inset Index idx
11828 \begin_layout Plain Layout
11829 Multicolumns ! Calculations
11837 \begin_layout Standard
11839 supports multicolumns directly, but we have to take account of the cell
11840 width of the columns spanned by the multicolumn cell.
11843 \begin_layout Standard
11844 \begin_inset Float table
11850 \begin_layout Plain Layout
11851 \begin_inset Caption Standard
11853 \begin_layout Plain Layout
11854 \begin_inset CommandInset label
11856 name "tab:Table-with-centered"
11860 Table with centered multicolumn text above two columns that have exactly
11861 half the width of the multicolumn cell
11862 \begin_inset Argument 1
11865 \begin_layout Plain Layout
11866 Perfect multicolumn table
11879 \begin_layout Plain Layout
11881 \begin_inset Tabular
11882 <lyxtabular version="3" rows="3" columns="3">
11883 <features tabularvalignment="middle">
11884 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11885 <column alignment="center" valignment="middle">
11886 <column alignment="center" valignment="top">
11888 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11891 \begin_layout Plain Layout
11892 multiple lines multicolumn
11897 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11900 \begin_layout Plain Layout
11906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11909 \begin_layout Plain Layout
11917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11920 \begin_layout Plain Layout
11926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11929 \begin_layout Plain Layout
11935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11938 \begin_layout Plain Layout
11946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11949 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11958 \begin_layout Plain Layout
11964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11967 \begin_layout Plain Layout
11986 \begin_layout Standard
11987 To create for example Table
11988 \begin_inset space ~
11992 \begin_inset CommandInset ref
11994 reference "tab:Table-with-centered"
11998 , mark the first two cells in the first row of a 3×3 table and right-click
12000 Now choose for this cell
12009 \begin_inset space \thinspace{}
12012 cm in the table dialog.
12013 The merged columns should have exactly half the width of the multicolumn
12014 cell, so that you would set a width of 1.25
12015 \begin_inset space \thinspace{}
12018 cm for the first column.
12019 The second column has then automatically a width of 1.25
12020 \begin_inset space \thinspace{}
12023 cm (multicolumn width - width of first column).
12024 This was done for Table
12025 \begin_inset space ~
12029 \begin_inset CommandInset ref
12031 reference "tab:Table-without-half"
12038 \begin_layout Standard
12039 \begin_inset Float table
12044 \begin_layout Plain Layout
12045 \begin_inset Caption Standard
12047 \begin_layout Plain Layout
12048 \begin_inset CommandInset label
12050 name "tab:Table-without-half"
12054 Table where the spanned table columns are not exactly half the width of
12055 the multicolumn cell
12056 \begin_inset Argument 1
12059 \begin_layout Plain Layout
12060 Imperfect multicolumn table
12073 \begin_layout Plain Layout
12075 \begin_inset Tabular
12076 <lyxtabular version="3" rows="3" columns="3">
12077 <features tabularvalignment="middle">
12078 <column alignment="center" valignment="top" width="1.25cm">
12079 <column alignment="center" valignment="top">
12080 <column alignment="center" valignment="top">
12082 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12085 \begin_layout Plain Layout
12086 multiple lines multicolumn
12091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12094 \begin_layout Plain Layout
12100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12103 \begin_layout Plain Layout
12111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12114 \begin_layout Plain Layout
12120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12123 \begin_layout Plain Layout
12129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12132 \begin_layout Plain Layout
12140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12161 \begin_layout Plain Layout
12180 \begin_layout Standard
12181 You can see that the first column is not half the width of the multicolumn
12182 cell, it is a bit bigger.
12183 The reason is that the specified width of a cell
12184 \begin_inset Formula $W_{g}$
12187 is not its total width
12188 \begin_inset Formula $W_{\mathrm{tot}}$
12191 because a cell is always a bit larger than specified.
12193 \begin_inset space ~
12197 \begin_inset CommandInset ref
12199 reference "cha:Explanation-of-Equation"
12203 explains this in detail.
12206 \begin_layout Standard
12208 \begin_inset Formula $W_{g\,n}$
12211 which the user needs to set when
12215 columns are spanned can be calculated, so that each column has a total
12217 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12221 \begin_inset Formula
12223 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12231 \begin_layout Standard
12232 In our case we have
12233 \begin_inset Formula $n=2$
12237 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12240 cm and the default values for the lengths, so that equation
12241 \begin_inset CommandInset ref
12248 \begin_inset Formula
12250 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12258 \begin_layout Standard
12259 To enable calculations in \SpecialChar LaTeX
12260 , the \SpecialChar LaTeX
12265 must be loaded with the document preamble line
12266 \begin_inset Index idx
12269 \begin_layout Plain Layout
12279 \begin_layout Standard
12287 \begin_layout Standard
12289 does not allow you to calculate lengths in the
12293 field of the table dialog.
12294 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12297 Here is an overview about the arguments:
12300 \begin_layout Itemize
12305 creates cell with a fixed width, its text is vertically top-aligned
12308 \begin_layout Itemize
12313 creates cell with a fixed width, its text is vertically centered
12316 \begin_layout Itemize
12321 creates cell with a fixed width, its text is vertically bottom-aligned
12324 \begin_layout Standard
12325 By entering a \SpecialChar LaTeX
12326 -argument, all cell settings set in the table dialog are overwritt
12330 \begin_layout Standard
12331 \begin_inset Note Greyedout
12334 \begin_layout Plain Layout
12339 Due to a bug, \SpecialChar LyX
12340 shows the overwritten settings anyway.
12348 \begin_layout Standard
12349 As the text should be horizontally centered, the command
12356 You can now enter the following \SpecialChar LaTeX
12357 -argument for the first spanned column:
12360 \begin_layout Standard
12365 centering}m{1.25cm-6.2pt}
12368 \begin_layout Standard
12373 means, that the commands inside the braces are applied before the cell
12377 \begin_layout Standard
12378 Although we have chosen centered alignment for the text of the multicolumn
12379 cell, it is still left aligned.
12380 This is because \SpecialChar LyX
12381 only applies the alignment to single columns.
12382 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12386 \begin_layout Standard
12394 \begin_layout Subsection
12396 \begin_inset CommandInset label
12398 name "subsec:Multirows"
12403 \begin_inset Index idx
12406 \begin_layout Plain Layout
12413 \begin_inset Index idx
12416 \begin_layout Plain Layout
12425 \begin_layout Standard
12426 To merge cells over multiple rows, select as many cells within a column
12427 as you want to merge and use either the table-toolbar button
12430 arg "tabular-feature multirow"
12435 Edit\SpecialChar menuseparator
12436 Table\SpecialChar menuseparator
12439 , or right click on the marked cells and choose
12443 in the context menu.
12446 \begin_layout Standard
12447 Here is an example table with a multirow in the first column:
12450 \begin_layout Standard
12452 \begin_inset Tabular
12453 <lyxtabular version="3" rows="3" columns="3">
12454 <features tabularvalignment="middle">
12455 <column alignment="center" valignment="top" width="0pt">
12456 <column alignment="center" valignment="top">
12457 <column alignment="center" valignment="top">
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Plain Layout
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12471 \begin_layout Plain Layout
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12480 \begin_layout Plain Layout
12488 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12500 \begin_layout Plain Layout
12506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12509 \begin_layout Plain Layout
12517 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12529 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12538 \begin_layout Plain Layout
12552 \begin_layout Standard
12553 The width of multirow cells is set by setting the width and alignment for
12559 shifts the content of the multirow up/down if the offset is positive/negative.
12562 \begin_layout Standard
12563 If the column of a multirow cell has no explicit width, the multirow cell
12564 inherits the alignment of the column.
12565 Otherwise it is by default left-aligned.
12566 To override the default, renew the command
12575 \begin_layout Standard
12587 \begin_layout Standard
12588 in the document preamble.
12589 Then all entries of multirow cells in the document are centered.
12590 If centering is only needed for several tables, you can renew the command
12591 in a \SpecialChar TeX
12592 Code box just before the table instead of the preamble.
12593 If the text should be right-aligned, replace
12606 To return to left-alignment
12615 \begin_layout Standard
12616 This is an example table with a right-aligned multirow cell that has a vertical
12618 \begin_inset space \thinspace{}
12622 \begin_inset space \thinspace{}
12628 \begin_layout Standard
12634 \begin_layout Plain Layout
12648 \begin_inset Tabular
12649 <lyxtabular version="3" rows="4" columns="3">
12650 <features tabularvalignment="middle">
12651 <column alignment="center" valignment="top" width="3cm">
12652 <column alignment="center" valignment="top">
12653 <column alignment="center" valignment="top">
12655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12667 \begin_layout Plain Layout
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12676 \begin_layout Plain Layout
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12705 \begin_layout Plain Layout
12713 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12734 \begin_layout Plain Layout
12742 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12763 \begin_layout Plain Layout
12778 \begin_layout Plain Layout
12794 \begin_layout Standard
12795 To start a new line in a multirow you can use a forced line break (shortcut
12799 arg "newline-insert newline"
12802 ) but this will not respect the cell lines as demonstrated in this table:
12805 \begin_layout Standard
12808 \begin_inset Tabular
12809 <lyxtabular version="3" rows="3" columns="2">
12810 <features tabularvalignment="middle">
12811 <column alignment="left" valignment="middle" width="2cm">
12812 <column alignment="center" valignment="top">
12814 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12817 \begin_layout Plain Layout
12819 \begin_inset Newline newline
12823 \begin_inset Newline newline
12831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12834 \begin_layout Plain Layout
12842 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12845 \begin_layout Plain Layout
12851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12854 \begin_layout Plain Layout
12862 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12874 \begin_layout Plain Layout
12888 \begin_layout Standard
12889 Therefore be careful with forced line breaks.
12892 \begin_layout Subsection
12893 Cells with diagonal line(s)
12896 \begin_layout Standard
12897 To tell the reader what is meant by column and row headings in a table,
12898 it is helpful to split the first cell of the table by one or two diagonal
12900 This can be achieved by loading the \SpecialChar LaTeX
12906 \begin_inset Index idx
12909 \begin_layout Plain Layout
12911 -packages ! picinpar
12916 in the document preamble.
12917 The package provides the command
12923 that is inserted as \SpecialChar TeX
12924 Code and that can take 2 or 3
12925 \begin_inset space ~
12931 \begin_layout Standard
12936 diagbox[options]{lower left}{upper right}
12939 \begin_layout Standard
12944 diagbox[options]{lower left}{upper left}{upper right}
12947 \begin_layout Standard
12948 The first scheme divides the cell by a single diagonal line and the arguments
12949 are placed below and above this line.
12950 The second scheme divides the cell by 2
12951 \begin_inset space ~
12957 \begin_layout Standard
12961 \begin_layout Plain Layout
12971 \begin_inset Note Note
12974 \begin_layout Plain Layout
12975 The following section will only be displayed when the \SpecialChar LaTeX
12988 \begin_layout Standard
12989 Here is an example table where
12995 is used in the 2-argument scheme in the first cell:
12996 \begin_inset VSpace medskip
13002 \begin_layout Standard
13004 \begin_inset Tabular
13005 <lyxtabular version="3" rows="4" columns="4">
13006 <features tabularvalignment="middle">
13007 <column alignment="center" valignment="top">
13008 <column alignment="center" valignment="top">
13009 <column alignment="center" valignment="top">
13010 <column alignment="center" valignment="top">
13012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13015 \begin_layout Plain Layout
13019 \begin_layout Plain Layout
13032 \begin_layout Plain Layout
13043 \begin_layout Plain Layout
13055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13058 \begin_layout Plain Layout
13064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13067 \begin_layout Plain Layout
13073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13076 \begin_layout Plain Layout
13084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13087 \begin_layout Plain Layout
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13096 \begin_layout Plain Layout
13102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13105 \begin_layout Plain Layout
13111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13114 \begin_layout Plain Layout
13122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13125 \begin_layout Plain Layout
13131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13134 \begin_layout Plain Layout
13140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13143 \begin_layout Plain Layout
13149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13152 \begin_layout Plain Layout
13160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13163 \begin_layout Plain Layout
13169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13172 \begin_layout Plain Layout
13178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13181 \begin_layout Plain Layout
13187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13190 \begin_layout Plain Layout
13202 \begin_inset VSpace medskip
13208 \begin_layout Standard
13209 The 3-argument scheme is for example useful for cross-tables of sports leagues
13213 \begin_layout Standard
13216 \begin_inset Tabular
13217 <lyxtabular version="3" rows="4" columns="4">
13218 <features tabularvalignment="middle">
13219 <column alignment="center" valignment="top" width="0pt">
13220 <column alignment="center" valignment="top">
13221 <column alignment="center" valignment="top">
13222 <column alignment="center" valignment="top">
13224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13227 \begin_layout Plain Layout
13231 \begin_layout Plain Layout
13244 \begin_layout Plain Layout
13255 \begin_layout Plain Layout
13266 \begin_layout Plain Layout
13278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13281 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13290 \begin_layout Plain Layout
13296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13299 \begin_layout Plain Layout
13307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13310 \begin_layout Plain Layout
13316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13319 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13337 \begin_layout Plain Layout
13345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13348 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13375 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13413 \begin_layout Plain Layout
13427 \begin_layout Standard
13428 For larger cross-tables one might use split cells in 2 or every corner of
13429 the table like in this example:
13432 \begin_layout Standard
13435 \begin_inset Tabular
13436 <lyxtabular version="3" rows="5" columns="5">
13437 <features tabularvalignment="middle">
13438 <column alignment="center" valignment="top" width="0pt">
13439 <column alignment="center" valignment="top">
13440 <column alignment="center" valignment="top">
13441 <column alignment="center" valignment="top">
13442 <column alignment="center" valignment="top">
13444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13451 \begin_layout Plain Layout
13464 \begin_layout Plain Layout
13475 \begin_layout Plain Layout
13486 \begin_layout Plain Layout
13498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13501 \begin_layout Plain Layout
13507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13510 \begin_layout Plain Layout
13516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13519 \begin_layout Plain Layout
13525 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13528 \begin_layout Plain Layout
13532 \begin_layout Plain Layout
13545 \begin_layout Plain Layout
13556 \begin_layout Plain Layout
13567 \begin_layout Plain Layout
13581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13584 \begin_layout Plain Layout
13590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13593 \begin_layout Plain Layout
13599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13602 \begin_layout Plain Layout
13608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13611 \begin_layout Plain Layout
13617 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13620 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13696 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13729 \begin_layout Plain Layout
13742 \begin_layout Plain Layout
13753 \begin_layout Plain Layout
13764 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13788 \begin_layout Plain Layout
13794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13797 \begin_layout Plain Layout
13803 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13806 \begin_layout Plain Layout
13810 \begin_layout Plain Layout
13823 \begin_layout Plain Layout
13834 \begin_layout Plain Layout
13845 \begin_layout Plain Layout
13865 \begin_layout Standard
13866 To rotate the diagonal lines, the command option
13891 and represent a point of a compass.
13896 is for example the south-west corner.
13897 Thus in the lower left cell of the above table the command
13900 \begin_layout Standard
13905 diagbox[dir=SW]{Team home}{Result}{Team away}
13908 \begin_layout Standard
13910 If no direction is given, it will be NW.
13913 \begin_layout Standard
13914 The necessary width of split cells is automatically calculated.
13915 Thus if you set a fixed column width smaller than the calculated one, the
13916 cell's content will protrude the cell borders:
13919 \begin_layout Standard
13922 \begin_inset Tabular
13923 <lyxtabular version="3" rows="2" columns="2">
13924 <features tabularvalignment="middle">
13925 <column alignment="center" valignment="top" width="3cm">
13926 <column alignment="center" valignment="top">
13928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13931 \begin_layout Plain Layout
13935 \begin_layout Plain Layout
13948 \begin_layout Plain Layout
13959 \begin_layout Plain Layout
13971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13974 \begin_layout Plain Layout
13982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13985 \begin_layout Plain Layout
13991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13994 \begin_layout Plain Layout
14008 \begin_layout Standard
14009 If you need a certain width for columns with a split cell, use the command
14014 (replace '3cm' by the width you need).
14015 In the following table the width of the first column is set to 4
14016 \begin_inset space \thinspace{}
14027 \begin_inset space \thinspace{}
14031 \begin_inset space \thinspace{}
14036 tabcolsep is necessary because the overall width is the width for the text
14037 (in this case the 4
14038 \begin_inset space \thinspace{}
14041 cm) plus two times the separation of the text and the cell border.
14042 The calculation of the width cannot be done in the command option of
14048 so one needs to create a new length which can be used later.
14049 This is done with the \SpecialChar TeX
14053 \begin_layout Standard
14061 \begin_inset Newline newline
14073 \begin_layout Standard
14077 \begin_layout Plain Layout
14086 \begin_layout Plain Layout
14102 \begin_layout Standard
14103 To enable calculations in \SpecialChar LaTeX
14104 one needs to load the package
14109 \begin_inset Index idx
14112 \begin_layout Plain Layout
14119 in the document preamble.
14122 \begin_layout Standard
14123 In this table you can now use the command
14126 \begin_layout Standard
14136 \begin_layout Standard
14140 \begin_layout Standard
14143 \begin_inset Tabular
14144 <lyxtabular version="3" rows="2" columns="2">
14145 <features tabularvalignment="middle">
14146 <column alignment="center" valignment="top" width="4cm">
14147 <column alignment="center" valignment="top">
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14156 \begin_layout Plain Layout
14171 \begin_layout Plain Layout
14182 \begin_layout Plain Layout
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14197 \begin_layout Plain Layout
14205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14208 \begin_layout Plain Layout
14214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14217 \begin_layout Plain Layout
14231 \begin_layout Standard
14232 Note that the split cell needs to be the widest one in the column.
14233 Otherwise the length of the diagonal line cannot be calculated correctly
14234 like in this table:
14237 \begin_layout Standard
14240 \begin_inset Tabular
14241 <lyxtabular version="3" rows="2" columns="2">
14242 <features tabularvalignment="middle">
14243 <column alignment="center" valignment="top" width="0pt">
14244 <column alignment="center" valignment="top">
14246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14249 \begin_layout Plain Layout
14253 \begin_layout Plain Layout
14266 \begin_layout Plain Layout
14277 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14292 \begin_layout Plain Layout
14300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14303 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14312 \begin_layout Plain Layout
14326 \begin_layout Standard
14327 In this case use the
14338 It is then not necessary to add 2
14340 tabcolsep because the cell width is now the width of the column.
14341 In this table a width of 3
14342 \begin_inset space \thinspace{}
14348 \begin_layout Standard
14351 \begin_inset Tabular
14352 <lyxtabular version="3" rows="2" columns="2">
14353 <features tabularvalignment="middle">
14354 <column alignment="center" valignment="top" width="0pt">
14355 <column alignment="center" valignment="top">
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Plain Layout
14364 \begin_layout Plain Layout
14368 diagbox[width=3cm]{
14377 \begin_layout Plain Layout
14388 \begin_layout Plain Layout
14400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14403 \begin_layout Plain Layout
14411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14414 \begin_layout Plain Layout
14420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14423 \begin_layout Plain Layout
14437 \begin_layout Standard
14438 For multiple text lines in split cells one needs some extra height to fit
14439 the text to the cell.
14440 This can be achieved with the
14450 (replace '3cm' by the height you need).
14451 In the following table the command
14454 \begin_layout Standard
14459 diagbox[width=3cm,height=1.4cm]{A
14470 \begin_layout Standard
14471 is used in the first cell.
14480 creates hereby the line break.
14484 \begin_layout Plain Layout
14485 Breaking lines with
14489 is only possible when the column has a fixed width.
14497 \begin_layout Standard
14500 \begin_inset Tabular
14501 <lyxtabular version="3" rows="2" columns="2">
14502 <features tabularvalignment="middle">
14503 <column alignment="center" valignment="top">
14504 <column alignment="center" valignment="top">
14506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14509 \begin_layout Plain Layout
14513 \begin_layout Plain Layout
14517 diagbox[width=3cm,height=1.4cm]{
14526 \begin_layout Plain Layout
14541 \begin_layout Plain Layout
14552 \begin_layout Plain Layout
14567 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14582 \begin_layout Plain Layout
14590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14593 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Plain Layout
14616 \begin_layout Standard
14620 \begin_layout Plain Layout
14630 \begin_inset Note Note
14633 \begin_layout Plain Layout
14634 The following will be displayed when the \SpecialChar LaTeX
14647 \begin_layout Standard
14648 You need to install the \SpecialChar LaTeX
14653 to see the following part of this section in the output.
14656 \begin_layout Standard
14660 \begin_layout Plain Layout
14672 \begin_layout Standard
14673 For more info about the \SpecialChar LaTeX
14678 , see its documentation,
14679 \begin_inset CommandInset citation
14689 \begin_layout Section
14691 \begin_inset CommandInset label
14693 name "sec:Formal-Tables"
14698 \begin_inset Index idx
14701 \begin_layout Plain Layout
14710 \begin_layout Standard
14711 Tables are often typeset in books similar to Table
14712 \begin_inset space ~
14716 \begin_inset CommandInset ref
14718 reference "tab:Example-booktabs-table"
14723 This kind of tables is called
14724 \begin_inset Quotes eld
14732 \begin_inset Quotes erd
14736 To make a table a formal table use the option
14744 tab of the table dialog.
14747 \begin_layout Standard
14748 \begin_inset Float table
14754 \begin_layout Plain Layout
14755 \begin_inset Caption Standard
14757 \begin_layout Plain Layout
14758 \begin_inset CommandInset label
14760 name "tab:Example-booktabs-table"
14764 Example booktabs-table
14772 \begin_layout Plain Layout
14774 \begin_inset Tabular
14775 <lyxtabular version="3" rows="8" columns="4">
14776 <features booktabs="true" tabularvalignment="middle">
14777 <column alignment="center" valignment="top">
14778 <column alignment="center" valignment="top">
14779 <column alignment="center" valignment="top">
14780 <column alignment="center" valignment="top">
14782 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14785 \begin_layout Plain Layout
14791 <cell alignment="center" valignment="top" topline="true" usebox="none">
14794 \begin_layout Plain Layout
14796 \begin_inset space \thinspace{}
14804 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14807 \begin_layout Plain Layout
14809 \begin_inset space \thinspace{}
14817 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14820 \begin_layout Plain Layout
14828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14831 \begin_layout Plain Layout
14835 \begin_layout Plain Layout
14848 \begin_layout Plain Layout
14857 Detector thickness in µm
14862 <cell alignment="center" valignment="top" usebox="none">
14865 \begin_layout Plain Layout
14871 <cell alignment="center" valignment="top" usebox="none">
14874 \begin_layout Plain Layout
14880 <cell alignment="center" valignment="top" usebox="none">
14883 \begin_layout Plain Layout
14891 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14894 \begin_layout Plain Layout
14900 <cell alignment="center" valignment="top" topline="true" usebox="none">
14903 \begin_layout Plain Layout
14909 <cell alignment="center" valignment="top" topline="true" usebox="none">
14912 \begin_layout Plain Layout
14918 <cell alignment="center" valignment="top" topline="true" usebox="none">
14921 \begin_layout Plain Layout
14928 <row topspace="default">
14929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14932 \begin_layout Plain Layout
14933 Spatial resolution in µm
14938 <cell alignment="center" valignment="top" usebox="none">
14941 \begin_layout Plain Layout
14947 <cell alignment="center" valignment="top" usebox="none">
14950 \begin_layout Plain Layout
14956 <cell alignment="center" valignment="top" usebox="none">
14959 \begin_layout Plain Layout
14966 <row topspace="default">
14967 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14970 \begin_layout Plain Layout
14972 \begin_inset Formula $f_{\mathrm{max}}$
14980 <cell alignment="center" valignment="top" usebox="none">
14983 \begin_layout Plain Layout
14989 <cell alignment="center" valignment="top" usebox="none">
14992 \begin_layout Plain Layout
14998 <cell alignment="center" valignment="top" usebox="none">
15001 \begin_layout Plain Layout
15008 <row topspace="default">
15009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15012 \begin_layout Plain Layout
15016 \begin_layout Plain Layout
15020 cmidrule[2pt](l{10pt}){1-1}
15025 LSF-spatial resolution
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15048 <cell alignment="center" valignment="top" usebox="none">
15051 \begin_layout Plain Layout
15059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15062 \begin_layout Plain Layout
15068 <cell alignment="center" valignment="top" usebox="none">
15071 \begin_layout Plain Layout
15077 <cell alignment="center" valignment="top" usebox="none">
15080 \begin_layout Plain Layout
15086 <cell alignment="center" valignment="top" usebox="none">
15089 \begin_layout Plain Layout
15097 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15100 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15109 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15118 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15127 \begin_layout Plain Layout
15146 \begin_layout Standard
15147 Spaces to table rows can be added using the
15151 tab of the table dialog as described in section
15152 \begin_inset space ~
15156 \begin_inset CommandInset ref
15158 reference "subsec:Row-Spacing"
15165 \begin_layout Standard
15166 Unlike normal tables, formal tables have no vertical table lines.
15167 The horizontal table lines can be set as for normal tables but they appear
15168 with different widths in the output:
15169 \begin_inset Newline newline
15172 The first and the last table line have a default width of 0.08
15173 \begin_inset space \thinspace{}
15176 em while the other lines have a default width of 0.05
15177 \begin_inset space \thinspace{}
15183 \begin_layout Standard
15184 The default widths can be changed with the following preamble lines
15187 \begin_layout Standard
15197 \begin_inset Newline newline
15209 \begin_layout Standard
15210 This example is for the first line, the so called
15215 If you want to change the width for the last line, replace
15224 To change the width for the other lines replace
15233 You can use all units listed in appendix
15234 \begin_inset space ~
15238 \begin_inset CommandInset ref
15240 reference "cha:Units-available-in"
15247 \begin_layout Standard
15248 Lines that do not span all table columns can be created by setting a table
15249 line for multicolumn cells.
15251 will then internally use the command
15257 to create this line.
15261 \begin_layout Standard
15266 cmidrule[height](trim){startcol-endcol}
15269 \begin_layout Standard
15276 are currently not supported by \SpecialChar LyX
15277 so you have to use \SpecialChar TeX
15286 s can manually be created by inserting the command as \SpecialChar TeX
15288 cell entry of the first cell of a row.
15289 The line is then drawn in the output above the current row.
15292 \begin_layout Standard
15293 The default for the optional
15298 \begin_inset space \thinspace{}
15306 is the number of the column where the line starts and
15310 the column number where the line ends.
15315 always needs to be specified, also when the line should span only one column.
15316 The optional parameter
15333 Using for example the parameter
15337 means that the line is trimmed from its left end by 2
15338 \begin_inset space \thinspace{}
15342 If you don't specify the
15346 the line is trimmed by the default of 0.5
15347 \begin_inset space \thinspace{}
15353 \begin_layout Standard
15354 \begin_inset VSpace bigskip
15358 \begin_inset space ~
15362 \begin_inset CommandInset ref
15364 reference "tab:Example-booktabs-table"
15368 was created using the commands
15371 \begin_layout Standard
15381 \begin_layout Standard
15382 at the beginning of the second row and
15385 \begin_layout Standard
15390 cmidrule[2pt](l{10pt}){1-1}
15393 \begin_layout Standard
15397 \begin_layout Standard
15398 \begin_inset VSpace bigskip
15404 \begin_layout Standard
15405 You might want to have overlapping
15412 \begin_inset space ~
15416 \begin_inset CommandInset ref
15418 reference "tab:Special-booktabs-table"
15423 This can be achieved with the \SpecialChar TeX
15427 \begin_layout Standard
15435 \begin_layout Standard
15436 The command that was used for the second row of Table
15437 \begin_inset space ~
15441 \begin_inset CommandInset ref
15443 reference "tab:Special-booktabs-table"
15450 \begin_layout Standard
15464 \begin_layout Standard
15465 The command for the sixth row is
15468 \begin_layout Standard
15480 \begin_layout Standard
15481 \begin_inset VSpace bigskip
15487 \begin_layout Standard
15488 If you are in any way not satisfied with the border line spacing, you can
15489 use the following command to produce lines that span over all table columns
15494 \begin_layout Standard
15499 specialrule{width}{space above}{space below}
15502 \begin_layout Standard
15503 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15510 \begin_inset CommandInset citation
15518 \begin_inset Index idx
15521 \begin_layout Plain Layout
15523 -packages ! booktabs
15531 \begin_layout Standard
15532 \begin_inset Float table
15538 \begin_layout Plain Layout
15539 \begin_inset Caption Standard
15541 \begin_layout Plain Layout
15542 \begin_inset CommandInset label
15544 name "tab:Special-booktabs-table"
15548 Special booktabs-table
15556 \begin_layout Plain Layout
15558 \begin_inset Tabular
15559 <lyxtabular version="3" rows="8" columns="4">
15560 <features booktabs="true" tabularvalignment="middle">
15561 <column alignment="center" valignment="top">
15562 <column alignment="center" valignment="top">
15563 <column alignment="center" valignment="top">
15564 <column alignment="center" valignment="top">
15566 <cell alignment="center" valignment="top" topline="true" usebox="none">
15569 \begin_layout Plain Layout
15575 <cell alignment="center" valignment="top" topline="true" usebox="none">
15578 \begin_layout Plain Layout
15580 \begin_inset space \thinspace{}
15588 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15591 \begin_layout Plain Layout
15593 \begin_inset space \thinspace{}
15601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15604 \begin_layout Plain Layout
15612 <cell alignment="center" valignment="top" usebox="none">
15615 \begin_layout Plain Layout
15619 \begin_layout Plain Layout
15632 \begin_layout Plain Layout
15645 \begin_layout Plain Layout
15658 \begin_layout Plain Layout
15667 Detector thickness in µm
15672 <cell alignment="center" valignment="top" usebox="none">
15675 \begin_layout Plain Layout
15681 <cell alignment="center" valignment="top" usebox="none">
15684 \begin_layout Plain Layout
15690 <cell alignment="center" valignment="top" usebox="none">
15693 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" topline="true" usebox="none">
15704 \begin_layout Plain Layout
15710 <cell alignment="center" valignment="top" topline="true" usebox="none">
15713 \begin_layout Plain Layout
15719 <cell alignment="center" valignment="top" topline="true" usebox="none">
15722 \begin_layout Plain Layout
15728 <cell alignment="center" valignment="top" topline="true" usebox="none">
15731 \begin_layout Plain Layout
15738 <row topspace="default">
15739 <cell alignment="center" valignment="top" usebox="none">
15742 \begin_layout Plain Layout
15743 Spatial resolution in µm
15748 <cell alignment="center" valignment="top" usebox="none">
15751 \begin_layout Plain Layout
15757 <cell alignment="center" valignment="top" usebox="none">
15760 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" usebox="none">
15769 \begin_layout Plain Layout
15776 <row topspace="default">
15777 <cell alignment="center" valignment="top" usebox="none">
15780 \begin_layout Plain Layout
15782 \begin_inset Formula $f_{\mathrm{max}}$
15790 <cell alignment="center" valignment="top" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" usebox="none">
15802 \begin_layout Plain Layout
15808 <cell alignment="center" valignment="top" usebox="none">
15811 \begin_layout Plain Layout
15819 <cell alignment="center" valignment="top" topline="true" usebox="none">
15822 \begin_layout Plain Layout
15826 \begin_layout Plain Layout
15839 \begin_layout Plain Layout
15848 LSF-spatial resolution
15853 <cell alignment="center" valignment="top" topline="true" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15882 <cell alignment="center" valignment="top" usebox="none">
15885 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" usebox="none">
15894 \begin_layout Plain Layout
15900 <cell alignment="center" valignment="top" usebox="none">
15903 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" usebox="none">
15912 \begin_layout Plain Layout
15920 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15923 \begin_layout Plain Layout
15929 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15932 \begin_layout Plain Layout
15938 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15941 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15950 \begin_layout Plain Layout
15969 \begin_layout Section
15970 Vertical Table Alignment
15971 \begin_inset Index idx
15974 \begin_layout Plain Layout
15983 \begin_layout Standard
15984 To align tables vertically in a text line, the table must be inside a box.
15985 The box can then be vertically aligned as described in section
15986 \begin_inset space ~
15990 \begin_inset CommandInset ref
15992 reference "sec:Box-Dialog"
15999 \begin_layout Standard
16000 In the following example the tables are inside a minipage
16004 \begin_layout Plain Layout
16005 Minipages are described in section
16006 \begin_inset space ~
16010 \begin_inset CommandInset ref
16012 reference "sec:Minipages"
16021 box that has a width of 15
16022 \begin_inset space \thinspace{}
16028 \begin_layout Itemize
16030 \begin_inset Box Frameless
16040 height_special "totalheight"
16045 backgroundcolor "none"
16048 \begin_layout Plain Layout
16049 \begin_inset Tabular
16050 <lyxtabular version="3" rows="3" columns="3">
16051 <features tabularvalignment="middle">
16052 <column alignment="center" valignment="top">
16053 <column alignment="center" valignment="top">
16054 <column alignment="center" valignment="top">
16056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16059 \begin_layout Plain Layout
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16068 \begin_layout Plain Layout
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16077 \begin_layout Plain Layout
16085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16088 \begin_layout Plain Layout
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16097 \begin_layout Plain Layout
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Plain Layout
16114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16117 \begin_layout Plain Layout
16123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16126 \begin_layout Plain Layout
16132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Plain Layout
16155 \begin_layout Plain Layout
16167 \begin_inset Box Frameless
16177 height_special "totalheight"
16182 backgroundcolor "none"
16185 \begin_layout Plain Layout
16186 \begin_inset Tabular
16187 <lyxtabular version="3" rows="3" columns="3">
16188 <features tabularvalignment="middle">
16189 <column alignment="center" valignment="top">
16190 <column alignment="center" valignment="top">
16191 <column alignment="center" valignment="top">
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16196 \begin_layout Plain Layout
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16205 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16214 \begin_layout Plain Layout
16222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16225 \begin_layout Plain Layout
16231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16234 \begin_layout Plain Layout
16240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16243 \begin_layout Plain Layout
16251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16254 \begin_layout Plain Layout
16260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16263 \begin_layout Plain Layout
16269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16272 \begin_layout Plain Layout
16292 \begin_layout Plain Layout
16302 \begin_layout Itemize
16304 \begin_inset Box Frameless
16314 height_special "totalheight"
16319 backgroundcolor "none"
16322 \begin_layout Plain Layout
16323 \begin_inset Tabular
16324 <lyxtabular version="3" rows="3" columns="3">
16325 <features tabularvalignment="middle">
16326 <column alignment="center" valignment="top">
16327 <column alignment="center" valignment="top">
16328 <column alignment="center" valignment="top">
16330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16333 \begin_layout Plain Layout
16339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16342 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16351 \begin_layout Plain Layout
16359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16362 \begin_layout Plain Layout
16368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16371 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16380 \begin_layout Plain Layout
16388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16391 \begin_layout Plain Layout
16397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16400 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16409 \begin_layout Plain Layout
16428 \begin_layout Itemize
16430 \begin_inset Box Frameless
16440 height_special "totalheight"
16445 backgroundcolor "none"
16448 \begin_layout Plain Layout
16449 \begin_inset Tabular
16450 <lyxtabular version="3" rows="3" columns="3">
16451 <features tabularvalignment="middle">
16452 <column alignment="center" valignment="top">
16453 <column alignment="center" valignment="top">
16454 <column alignment="center" valignment="top">
16456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16459 \begin_layout Plain Layout
16465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16468 \begin_layout Plain Layout
16474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16477 \begin_layout Plain Layout
16485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16488 \begin_layout Plain Layout
16494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16497 \begin_layout Plain Layout
16503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16506 \begin_layout Plain Layout
16514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16517 \begin_layout Plain Layout
16523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16526 \begin_layout Plain Layout
16532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16555 \begin_layout Plain Layout
16567 \begin_inset Box Frameless
16577 height_special "totalheight"
16582 backgroundcolor "none"
16585 \begin_layout Plain Layout
16586 \begin_inset Tabular
16587 <lyxtabular version="3" rows="3" columns="3">
16588 <features tabularvalignment="middle">
16589 <column alignment="center" valignment="top">
16590 <column alignment="center" valignment="top">
16591 <column alignment="center" valignment="top">
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16605 \begin_layout Plain Layout
16611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16625 \begin_layout Plain Layout
16631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16643 \begin_layout Plain Layout
16651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16654 \begin_layout Plain Layout
16660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16663 \begin_layout Plain Layout
16669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16672 \begin_layout Plain Layout
16692 \begin_layout Plain Layout
16702 \begin_layout Standard
16703 As you will see, the content of the first and last table row is not correctly
16705 To get this alignment, the minipage box must be set into a raisebox.
16709 \begin_layout Plain Layout
16710 Raiseboxes are described in section
16711 \begin_inset space ~
16715 \begin_inset CommandInset ref
16717 reference "subsec:Vertical-Alignment"
16726 In the example above the second table in the first item is aligned using
16727 the \SpecialChar TeX
16731 \begin_layout Standard
16741 \begin_layout Standard
16743 After the box the closing brace
16747 is inserted as \SpecialChar TeX
16749 For the second table in the last item the command
16752 \begin_layout Standard
16762 \begin_layout Standard
16766 \begin_layout Standard
16767 \begin_inset Note Greyedout
16770 \begin_layout Plain Layout
16775 The alignment of the table row content to the surrounding text line is
16777 The required value for the
16783 command for this alignment depends on the document font, the font size,
16784 and the table line thickness.
16792 \begin_layout Section
16794 \begin_inset CommandInset label
16796 name "sec:Colored-Tables"
16801 \begin_inset Index idx
16804 \begin_layout Plain Layout
16813 \begin_layout Subsection
16815 \begin_inset Index idx
16818 \begin_layout Plain Layout
16819 Table Color ! for Cells
16825 \begin_inset Index idx
16828 \begin_layout Plain Layout
16829 Color ! for Table Cells
16837 \begin_layout Standard
16838 \begin_inset Float table
16844 \begin_layout Plain Layout
16845 \begin_inset Caption Standard
16847 \begin_layout Plain Layout
16848 \begin_inset CommandInset label
16850 name "tab:Table-colored-without"
16854 Table colored without using the package
16859 \begin_inset Argument 1
16862 \begin_layout Plain Layout
16863 Table without colortbl
16876 \begin_layout Plain Layout
16878 \begin_inset Tabular
16879 <lyxtabular version="3" rows="3" columns="3">
16880 <features tabularvalignment="middle">
16881 <column alignment="center" valignment="top">
16882 <column alignment="center" valignment="top">
16883 <column alignment="center" valignment="top">
16885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16888 \begin_layout Plain Layout
16896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16899 \begin_layout Plain Layout
16907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16910 \begin_layout Plain Layout
16920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16923 \begin_layout Plain Layout
16931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16934 \begin_layout Plain Layout
16942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16945 \begin_layout Plain Layout
16955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16958 \begin_layout Plain Layout
16966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16969 \begin_layout Plain Layout
16977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
17001 \begin_layout Standard
17002 If you only need colored text, mark the cells and choose a color in the
17006 \begin_inset space ~
17011 dialog (toolbar button
17014 arg "dialog-show character"
17018 This was used to create Table
17019 \begin_inset space ~
17023 \begin_inset CommandInset ref
17025 reference "tab:Table-colored-without"
17030 In any other case you have to use the \SpecialChar LaTeX
17036 \begin_inset Index idx
17039 \begin_layout Plain Layout
17041 -packages ! colortbl
17049 \begin_layout Standard
17053 \begin_layout Plain Layout
17063 \begin_inset Note Note
17066 \begin_layout Plain Layout
17067 The following section part will only be displayed when the \SpecialChar LaTeX
17080 \begin_layout Standard
17081 To create colored tables,
17085 must be loaded in the preamble with the line
17088 \begin_layout Standard
17093 usepackage{colortbl}
17096 \begin_layout Standard
17097 The color of a column is adjusted with the command
17100 \begin_layout Standard
17105 columncolor{name of color}
17108 \begin_layout Standard
17114 More about the command
17118 is contained in section
17119 \begin_inset space ~
17123 \begin_inset CommandInset ref
17125 reference "subsec:Multicolumn-Calculations"
17132 \begin_layout Standard
17133 The following color names are predefined:
17136 \begin_layout Standard
17170 \begin_layout Standard
17171 \begin_inset VSpace medskip
17177 \begin_layout Standard
17178 If you add the option
17181 \begin_layout Standard
17187 \begin_layout Standard
17188 to the document class options in the document settings, you can additionally
17190 \begin_inset space ~
17194 These colors are listed in appendix
17195 \begin_inset space ~
17199 \begin_inset CommandInset ref
17201 reference "chap:List-of-dvips-colornames"
17206 One of these colors,
17210 , is used as example in Table
17211 \begin_inset space ~
17215 \begin_inset CommandInset ref
17217 reference "tab:Table-colored-using"
17224 \begin_layout Standard
17225 \begin_inset VSpace medskip
17231 \begin_layout Standard
17232 You can also define your own color with the command
17235 \begin_layout Standard
17240 definecolor{color name}{color model}{color values}
17243 \begin_layout Standard
17244 The color model can be
17247 \begin_layout Labeling
17248 \labelwidthstring 00.00.0000
17249 cmyk: cyan, magenta, yellow, black
17252 \begin_layout Labeling
17253 \labelwidthstring 00.00.0000
17254 rgb: red, green blue
17257 \begin_layout Labeling
17258 \labelwidthstring 00.00.0000
17262 \begin_layout Standard
17263 and the color values are comma separated numbers between 0 and 1 describing
17264 the factor for the corresponding color of the color model.
17267 \begin_layout Standard
17269 \begin_inset space \thinspace{}
17273 \begin_inset space \space{}
17280 " in the preamble with
17283 \begin_layout Standard
17288 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17291 \begin_layout Standard
17299 \begin_layout Standard
17304 definecolor{lightgray}{gray}{0.8}
17307 \begin_layout Standard
17308 \begin_inset VSpace medskip
17314 \begin_layout Standard
17315 Lines are colored with the command
17318 \begin_layout Standard
17323 rowcolor{name of color}
17326 \begin_layout Standard
17327 and cells are colored with the command
17330 \begin_layout Standard
17335 cellcolor{name of color}
17338 \begin_layout Standard
17339 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17343 \begin_layout Standard
17344 To color characters in the table, mark the cells and use the
17347 \begin_inset space ~
17353 If a cell contains \SpecialChar TeX
17354 Code mark only the characters, otherwise the colored
17356 Code will cause \SpecialChar LaTeX
17360 \begin_layout Standard
17361 \begin_inset Note Greyedout
17364 \begin_layout Plain Layout
17369 Not all DVI-viewers are able to display self-defined colors.
17377 \begin_layout Standard
17378 \begin_inset VSpace bigskip
17384 \begin_layout Standard
17386 \begin_inset space ~
17390 \begin_inset CommandInset ref
17392 reference "tab:Table-colored-using"
17396 do the following: The color of the first column should be
17404 \begin_layout Standard
17409 columncolor{darkgreen}
17414 \begin_layout Standard
17415 as \SpecialChar LaTeX
17416 -argument for this column.
17417 The first row should be light blue, therefore the \SpecialChar TeX
17421 \begin_layout Standard
17429 \begin_layout Standard
17430 is inserted to the first cell of this row.
17431 Note that this overwrites the column color for the first cell.
17432 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17437 \begin_layout Standard
17445 \begin_layout Standard
17446 The characters could now be colored using the menu
17448 Edit\SpecialChar menuseparator
17450 \begin_inset space ~
17458 \begin_layout Standard
17459 \begin_inset Float table
17465 \begin_layout Plain Layout
17466 \begin_inset Caption Standard
17468 \begin_layout Plain Layout
17469 \begin_inset CommandInset label
17471 name "tab:Table-colored-using"
17475 Table colored using the package
17480 \begin_inset Argument 1
17483 \begin_layout Plain Layout
17484 Table with colortbl
17497 \begin_layout Plain Layout
17499 \begin_inset Tabular
17500 <lyxtabular version="3" rows="3" columns="3">
17501 <features tabularvalignment="middle">
17502 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17503 <column alignment="center" valignment="top">
17504 <column alignment="center" valignment="top">
17506 <cell alignment="center" valignment="top" usebox="none">
17509 \begin_layout Plain Layout
17513 \begin_layout Plain Layout
17529 <cell alignment="center" valignment="top" usebox="none">
17532 \begin_layout Plain Layout
17540 <cell alignment="center" valignment="top" usebox="none">
17543 \begin_layout Plain Layout
17553 <cell alignment="center" valignment="top" usebox="none">
17556 \begin_layout Plain Layout
17564 <cell alignment="center" valignment="top" usebox="none">
17567 \begin_layout Plain Layout
17575 <cell alignment="center" valignment="top" usebox="none">
17578 \begin_layout Plain Layout
17588 <cell alignment="center" valignment="top" usebox="none">
17591 \begin_layout Plain Layout
17599 <cell alignment="center" valignment="top" usebox="none">
17602 \begin_layout Plain Layout
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17617 \begin_layout Plain Layout
17646 \begin_layout Standard
17650 \begin_layout Plain Layout
17660 \begin_inset Note Note
17663 \begin_layout Plain Layout
17664 The following will be displayed when the \SpecialChar LaTeX
17677 \begin_layout Standard
17678 You need to install the package
17682 to see the content of this section in the output.
17685 \begin_layout Standard
17689 \begin_layout Plain Layout
17701 \begin_layout Subsection
17703 \begin_inset Index idx
17706 \begin_layout Plain Layout
17707 Table Color ! for Rows
17713 \begin_inset Index idx
17716 \begin_layout Plain Layout
17717 Color ! for Table Rows
17725 \begin_layout Standard
17726 In case every second table row needs to be colored there is an alternative
17727 to the method described in the previous section: One loads the package
17733 \begin_inset Index idx
17736 \begin_layout Plain Layout
17742 \begin_layout Plain Layout
17756 in the document preamble with the command
17759 \begin_layout Standard
17764 usepackage[table]{xcolor}
17767 \begin_layout Standard
17772 automatically loads also the package
17777 \begin_inset Index idx
17780 \begin_layout Plain Layout
17782 -packages ! colortbl
17791 must be installed in your \SpecialChar LaTeX
17792 -distribution, otherwise you get \SpecialChar LaTeX
17796 \begin_layout Standard
17800 \begin_layout Plain Layout
17810 \begin_inset Note Note
17813 \begin_layout Plain Layout
17814 The following section part will only be displayed when the \SpecialChar LaTeX
17827 \begin_layout Standard
17828 The table rows are colored with the command
17831 \begin_layout Standard
17836 rowcolors[commands]{row number}{odd row color}{even row color}
17839 \begin_layout Standard
17840 that is either inserted in the document preamble or as \SpecialChar TeX
17842 first table to be colored.
17844 \begin_inset space ~
17847 number is the number of the first row which should be colored according
17848 to the odd row color.
17849 commands can be additional commands that are executed before every table
17851 So for example the command
17854 \begin_layout Standard
17859 rowcolors{1}{white}{lightgray}
17862 \begin_layout Standard
17863 leads to the coloring scheme of Table
17864 \begin_inset space ~
17868 \begin_inset CommandInset ref
17870 reference "tab:Table-rowcolors"
17878 \begin_layout Standard
17885 hline]{1}{lightgray}{cyan}
17888 \begin_layout Standard
17889 leads to the coloring scheme of Table
17890 \begin_inset space ~
17894 \begin_inset CommandInset ref
17896 reference "tab:Table-rowcolors-2"
17902 \begin_inset space ~
17906 \begin_inset space ~
17910 \begin_inset space ~
17914 \begin_inset space ~
17917 color are left empty, no color will be used so that the command
17920 \begin_layout Standard
17928 \begin_layout Standard
17929 deletes all colors.
17936 affects all tables following that command.
17939 \begin_layout Standard
17943 \begin_layout Plain Layout
17947 rowcolors{1}{white}{lightgray}
17955 \begin_layout Standard
17956 \begin_inset Float table
17962 \begin_layout Plain Layout
17963 \begin_inset Caption Standard
17965 \begin_layout Plain Layout
17966 \begin_inset CommandInset label
17968 name "tab:Table-rowcolors"
17972 Table where every second row is colored light gray.
17980 \begin_layout Plain Layout
17982 \begin_inset Tabular
17983 <lyxtabular version="3" rows="4" columns="3">
17984 <features tabularvalignment="middle">
17985 <column alignment="center" valignment="top">
17986 <column alignment="center" valignment="top" width="0pt">
17987 <column alignment="center" valignment="top" width="0pt">
17989 <cell alignment="center" valignment="top" usebox="none">
17992 \begin_layout Plain Layout
17998 <cell alignment="center" valignment="top" usebox="none">
18001 \begin_layout Plain Layout
18007 <cell alignment="center" valignment="top" usebox="none">
18010 \begin_layout Plain Layout
18018 <cell alignment="center" valignment="top" usebox="none">
18021 \begin_layout Plain Layout
18027 <cell alignment="center" valignment="top" usebox="none">
18030 \begin_layout Plain Layout
18036 <cell alignment="center" valignment="top" usebox="none">
18039 \begin_layout Plain Layout
18047 <cell alignment="center" valignment="top" usebox="none">
18050 \begin_layout Plain Layout
18056 <cell alignment="center" valignment="top" usebox="none">
18059 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" usebox="none">
18068 \begin_layout Plain Layout
18076 <cell alignment="center" valignment="top" usebox="none">
18079 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" usebox="none">
18097 \begin_layout Plain Layout
18116 \begin_layout Standard
18120 \begin_layout Plain Layout
18126 hline]{1}{lightgray}{cyan}
18134 \begin_layout Standard
18135 \begin_inset Float table
18141 \begin_layout Plain Layout
18142 \begin_inset Caption Standard
18144 \begin_layout Plain Layout
18145 \begin_inset CommandInset label
18147 name "tab:Table-rowcolors-2"
18151 Table where every second row is colored cyan and at which there is a line
18160 \begin_layout Plain Layout
18162 \begin_inset Tabular
18163 <lyxtabular version="3" rows="4" columns="3">
18164 <features tabularvalignment="middle">
18165 <column alignment="center" valignment="top">
18166 <column alignment="center" valignment="top">
18167 <column alignment="center" valignment="top" width="0pt">
18169 <cell alignment="center" valignment="top" usebox="none">
18172 \begin_layout Plain Layout
18178 <cell alignment="center" valignment="top" usebox="none">
18181 \begin_layout Plain Layout
18187 <cell alignment="center" valignment="top" usebox="none">
18190 \begin_layout Plain Layout
18198 <cell alignment="center" valignment="top" usebox="none">
18201 \begin_layout Plain Layout
18207 <cell alignment="center" valignment="top" usebox="none">
18210 \begin_layout Plain Layout
18216 <cell alignment="center" valignment="top" usebox="none">
18219 \begin_layout Plain Layout
18227 <cell alignment="center" valignment="top" usebox="none">
18230 \begin_layout Plain Layout
18236 <cell alignment="center" valignment="top" usebox="none">
18239 \begin_layout Plain Layout
18245 <cell alignment="center" valignment="top" usebox="none">
18248 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" usebox="none">
18259 \begin_layout Plain Layout
18265 <cell alignment="center" valignment="top" usebox="none">
18268 \begin_layout Plain Layout
18274 <cell alignment="center" valignment="top" usebox="none">
18277 \begin_layout Plain Layout
18296 \begin_layout Standard
18300 \begin_layout Plain Layout
18310 \begin_inset Note Note
18313 \begin_layout Plain Layout
18314 turns off the row coloring
18322 \begin_layout Standard
18326 \begin_layout Plain Layout
18336 \begin_inset Note Note
18339 \begin_layout Plain Layout
18340 The following will be displayed when the \SpecialChar LaTeX
18353 \begin_layout Standard
18354 You need to install the package
18358 to see the content of this section in the output.
18361 \begin_layout Standard
18365 \begin_layout Plain Layout
18377 \begin_layout Subsection
18379 \begin_inset Index idx
18382 \begin_layout Plain Layout
18383 Table Color ! for Lines
18389 \begin_inset Index idx
18392 \begin_layout Plain Layout
18393 Color ! for Table Lines
18401 \begin_layout Standard
18402 As described in section
18403 \begin_inset space ~
18407 \begin_inset CommandInset ref
18409 reference "subsec:Line-Thickness"
18413 , the line thickness for all lines in a table can be adjusted with the length
18422 \begin_inset space \thinspace{}
18425 pt for all tables of this section.
18429 \begin_layout Plain Layout
18435 arrayrulewidth}{1.5pt}
18443 \begin_layout Standard
18444 To color vertical lines for example with green, create the following column
18445 format in the document preamble, according to the description in section
18446 \begin_inset space ~
18450 \begin_inset CommandInset ref
18452 reference "subsec:Customized-Format"
18459 \begin_layout Standard
18464 newcolumntype{W}{!{
18471 \begin_layout Standard
18473 \begin_inset space ~
18477 \begin_inset CommandInset ref
18479 reference "tab:Table-with-vertical-colored"
18483 the \SpecialChar LaTeX
18488 was used for the last column and
18492 for the other columns.
18495 \begin_layout Standard
18496 If you want to have several colors, define more column formats.
18499 \begin_layout Standard
18500 \begin_inset Float table
18506 \begin_layout Plain Layout
18507 \begin_inset Caption Standard
18509 \begin_layout Plain Layout
18510 \begin_inset CommandInset label
18512 name "tab:Table-with-vertical-colored"
18516 Table with colored vertical lines
18524 \begin_layout Plain Layout
18526 \begin_inset Tabular
18527 <lyxtabular version="3" rows="3" columns="3">
18528 <features tabularvalignment="middle">
18529 <column alignment="center" valignment="top" special="Wc">
18530 <column alignment="center" valignment="top" special="Wc">
18531 <column alignment="center" valignment="top" special="WcW">
18533 <cell alignment="center" valignment="top" topline="true" usebox="none">
18536 \begin_layout Plain Layout
18542 <cell alignment="center" valignment="top" topline="true" usebox="none">
18545 \begin_layout Plain Layout
18551 <cell alignment="center" valignment="top" topline="true" usebox="none">
18554 \begin_layout Plain Layout
18562 <cell alignment="center" valignment="top" topline="true" usebox="none">
18565 \begin_layout Plain Layout
18571 <cell alignment="center" valignment="top" topline="true" usebox="none">
18574 \begin_layout Plain Layout
18580 <cell alignment="center" valignment="top" topline="true" usebox="none">
18583 \begin_layout Plain Layout
18591 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18594 \begin_layout Plain Layout
18600 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18603 \begin_layout Plain Layout
18609 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18612 \begin_layout Plain Layout
18631 \begin_layout Standard
18632 \begin_inset VSpace bigskip
18635 To color all horizontal lines for example with red, as in Table
18636 \begin_inset space ~
18640 \begin_inset CommandInset ref
18642 reference "tab:Table-with-horizontal-colored"
18646 , insert these commands in \SpecialChar TeX
18647 code before the table or table float:
18650 \begin_layout Standard
18660 \begin_inset Newline newline
18668 \begin_inset Newline newline
18672 \begin_inset Phantom HPhantom
18675 \begin_layout Plain Layout
18678 \begin_inset space ~
18688 arrayrulecolor{red}
18692 arrayrulecolor{black}}
18695 \begin_layout Standard
18699 \begin_layout Plain Layout
18710 \begin_layout Plain Layout
18719 \begin_layout Plain Layout
18723 arrayrulecolor{red}
18727 arrayrulecolor{black}}
18733 \begin_inset Float table
18739 \begin_layout Plain Layout
18740 \begin_inset Caption Standard
18742 \begin_layout Plain Layout
18743 \begin_inset CommandInset label
18745 name "tab:Table-with-horizontal-colored"
18749 Table with colored horizontal lines
18757 \begin_layout Plain Layout
18759 \begin_inset Tabular
18760 <lyxtabular version="3" rows="3" columns="3">
18761 <features tabularvalignment="middle">
18762 <column alignment="center" valignment="top">
18763 <column alignment="center" valignment="top">
18764 <column alignment="center" valignment="top">
18766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18769 \begin_layout Plain Layout
18775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18778 \begin_layout Plain Layout
18784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18787 \begin_layout Plain Layout
18795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18798 \begin_layout Plain Layout
18804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18807 \begin_layout Plain Layout
18813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18816 \begin_layout Plain Layout
18824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18827 \begin_layout Plain Layout
18833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18845 \begin_layout Plain Layout
18864 \begin_layout Standard
18865 To return to the default line color black, insert this command in \SpecialChar TeX
18867 after the table or table float:
18870 \begin_layout Standard
18882 \begin_layout Standard
18884 \begin_inset space ~
18888 \begin_inset CommandInset ref
18890 reference "tab:Table-with-colored"
18894 is an example with colored vertical and horizontal lines.
18897 \begin_layout Standard
18898 \begin_inset Float table
18904 \begin_layout Plain Layout
18905 \begin_inset Caption Standard
18907 \begin_layout Plain Layout
18908 \begin_inset CommandInset label
18910 name "tab:Table-with-colored"
18914 Table with colored lines
18922 \begin_layout Plain Layout
18924 \begin_inset Tabular
18925 <lyxtabular version="3" rows="3" columns="3">
18926 <features tabularvalignment="middle">
18927 <column alignment="center" valignment="top" special="Wc">
18928 <column alignment="center" valignment="top" special="Wc">
18929 <column alignment="center" valignment="top" special="WcW">
18931 <cell alignment="center" valignment="top" topline="true" usebox="none">
18934 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" topline="true" usebox="none">
18943 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" topline="true" usebox="none">
18952 \begin_layout Plain Layout
18960 <cell alignment="center" valignment="top" topline="true" usebox="none">
18963 \begin_layout Plain Layout
18969 <cell alignment="center" valignment="top" topline="true" usebox="none">
18972 \begin_layout Plain Layout
18978 <cell alignment="center" valignment="top" topline="true" usebox="none">
18981 \begin_layout Plain Layout
18988 <row topspace="default">
18989 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18992 \begin_layout Plain Layout
18998 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19001 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19010 \begin_layout Plain Layout
19029 \begin_layout Standard
19033 \begin_layout Plain Layout
19049 \begin_layout Standard
19053 \begin_layout Plain Layout
19059 arrayrulewidth}{1.2pt}
19067 \begin_layout Standard
19068 To color only some of the table lines another strategy is necessary.
19069 To color all following horizontal lines, insert this command as \SpecialChar TeX
19071 last thing in the row that should be above the first colored line:
19074 \begin_layout Standard
19083 arrayrulecolor{blue}%
19086 \begin_layout Standard
19087 To go back to black lines, add this command as first thing in the row that
19088 is above the black lines:
19091 \begin_layout Standard
19096 arrayrulecolor{black}
19099 \begin_layout Standard
19100 With this one can color table lines like in Table
19101 \begin_inset space ~
19105 \begin_inset CommandInset ref
19107 reference "tab:Table-with-different-hor"
19112 However, with this method it is not possible to color the line above the
19113 first row of a table.
19116 \begin_layout Standard
19117 \begin_inset Float table
19122 \begin_layout Plain Layout
19123 \begin_inset Caption Standard
19125 \begin_layout Plain Layout
19126 \begin_inset CommandInset label
19128 name "tab:Table-with-different-hor"
19132 Table with different horizontal line colors.
19140 \begin_layout Plain Layout
19142 \begin_inset Tabular
19143 <lyxtabular version="3" rows="6" columns="7">
19144 <features tabularvalignment="middle">
19145 <column alignment="center" valignment="top">
19146 <column alignment="center" valignment="top">
19147 <column alignment="center" valignment="top">
19148 <column alignment="center" valignment="top">
19149 <column alignment="center" valignment="top">
19150 <column alignment="center" valignment="top">
19151 <column alignment="center" valignment="top">
19153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19156 \begin_layout Plain Layout
19162 <cell alignment="center" valignment="top" topline="true" usebox="none">
19165 \begin_layout Plain Layout
19171 <cell alignment="center" valignment="top" topline="true" usebox="none">
19174 \begin_layout Plain Layout
19180 <cell alignment="center" valignment="top" topline="true" usebox="none">
19183 \begin_layout Plain Layout
19189 <cell alignment="center" valignment="top" topline="true" usebox="none">
19192 \begin_layout Plain Layout
19198 <cell alignment="center" valignment="top" topline="true" usebox="none">
19201 \begin_layout Plain Layout
19207 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19210 \begin_layout Plain Layout
19214 \begin_layout Plain Layout
19222 arrayrulecolor{blue}%
19234 <cell alignment="center" valignment="top" usebox="none">
19237 \begin_layout Plain Layout
19243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19246 \begin_layout Plain Layout
19252 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19255 \begin_layout Plain Layout
19261 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19264 \begin_layout Plain Layout
19270 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19273 \begin_layout Plain Layout
19279 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19282 \begin_layout Plain Layout
19288 <cell alignment="center" valignment="top" usebox="none">
19291 \begin_layout Plain Layout
19299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19302 \begin_layout Plain Layout
19306 \begin_layout Plain Layout
19310 arrayrulecolor{black}
19320 <cell alignment="center" valignment="top" usebox="none">
19323 \begin_layout Plain Layout
19329 <cell alignment="center" valignment="top" usebox="none">
19332 \begin_layout Plain Layout
19338 <cell alignment="center" valignment="top" usebox="none">
19341 \begin_layout Plain Layout
19347 <cell alignment="center" valignment="top" usebox="none">
19350 \begin_layout Plain Layout
19356 <cell alignment="center" valignment="top" usebox="none">
19359 \begin_layout Plain Layout
19365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19368 \begin_layout Plain Layout
19376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19379 \begin_layout Plain Layout
19385 <cell alignment="center" valignment="top" usebox="none">
19388 \begin_layout Plain Layout
19394 <cell alignment="center" valignment="top" usebox="none">
19397 \begin_layout Plain Layout
19403 <cell alignment="center" valignment="top" usebox="none">
19406 \begin_layout Plain Layout
19412 <cell alignment="center" valignment="top" usebox="none">
19415 \begin_layout Plain Layout
19421 <cell alignment="center" valignment="top" usebox="none">
19424 \begin_layout Plain Layout
19430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19433 \begin_layout Plain Layout
19437 \begin_layout Plain Layout
19445 arrayrulecolor{green}%
19457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19460 \begin_layout Plain Layout
19466 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19469 \begin_layout Plain Layout
19475 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19478 \begin_layout Plain Layout
19484 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19487 \begin_layout Plain Layout
19493 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19496 \begin_layout Plain Layout
19502 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19505 \begin_layout Plain Layout
19511 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
19514 \begin_layout Plain Layout
19522 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
19525 \begin_layout Plain Layout
19529 \begin_layout Plain Layout
19533 arrayrulecolor{black}
19543 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19546 \begin_layout Plain Layout
19552 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19555 \begin_layout Plain Layout
19561 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19564 \begin_layout Plain Layout
19570 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19573 \begin_layout Plain Layout
19579 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
19582 \begin_layout Plain Layout
19588 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19591 \begin_layout Plain Layout
19595 \begin_layout Plain Layout
19603 arrayrulecolor{blue}%
19626 \begin_layout Standard
19627 To change the color of vertical lines within a row, like in Table
19628 \begin_inset space ~
19632 \begin_inset CommandInset ref
19634 reference "tab:Table-with-different-ver"
19638 , one needs to use multicolumns.
19639 At first one needs to remove all vertical lines that don't run along the
19641 Now one colors all lines using the command
19644 \begin_layout Standard
19653 arrayrulecolor{blue}%
19656 \begin_layout Standard
19658 Finally one inserts this command as \SpecialChar TeX
19659 code to every cell in the row where
19660 one needs a vertical line in a different color:
19663 \begin_layout Standard
19679 \begin_layout Standard
19680 This adds a vertical line to both sides of the cell.
19681 The left one will be green, the right one red.
19682 If no color change is necessary one can omit the
19688 command in the above command.
19689 To get for example a black left line and a blue right line you can write:
19692 \begin_layout Standard
19704 \begin_layout Standard
19705 because the color blue was already set for all lines.
19710 creates hereby the vertical line while
19723 To set vertical lines without changing any color use
19726 \begin_layout Standard
19731 multicolumn{1}{|c|}{
19734 \begin_layout Standard
19735 After this command insert the cell content the normal way and end the cell
19736 with a closing brace
19740 in \SpecialChar TeX
19744 \begin_layout Standard
19745 \begin_inset Float table
19750 \begin_layout Plain Layout
19751 \begin_inset Caption Standard
19753 \begin_layout Plain Layout
19754 \begin_inset CommandInset label
19756 name "tab:Table-with-different-ver"
19760 Table with different vertical line colors in one row.
19768 \begin_layout Plain Layout
19770 \begin_inset Tabular
19771 <lyxtabular version="3" rows="5" columns="7">
19772 <features tabularvalignment="middle">
19773 <column alignment="center" valignment="top">
19774 <column alignment="center" valignment="top">
19775 <column alignment="center" valignment="top">
19776 <column alignment="center" valignment="top">
19777 <column alignment="center" valignment="top">
19778 <column alignment="center" valignment="top">
19779 <column alignment="center" valignment="top">
19781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19784 \begin_layout Plain Layout
19790 <cell alignment="center" valignment="top" topline="true" usebox="none">
19793 \begin_layout Plain Layout
19799 <cell alignment="center" valignment="top" topline="true" usebox="none">
19802 \begin_layout Plain Layout
19808 <cell alignment="center" valignment="top" topline="true" usebox="none">
19811 \begin_layout Plain Layout
19817 <cell alignment="center" valignment="top" topline="true" usebox="none">
19820 \begin_layout Plain Layout
19826 <cell alignment="center" valignment="top" topline="true" usebox="none">
19829 \begin_layout Plain Layout
19835 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
19838 \begin_layout Plain Layout
19842 \begin_layout Plain Layout
19850 arrayrulecolor{red}%
19862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19865 \begin_layout Plain Layout
19869 \begin_layout Plain Layout
19886 \begin_layout Plain Layout
19898 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19901 \begin_layout Plain Layout
19907 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19910 \begin_layout Plain Layout
19916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19919 \begin_layout Plain Layout
19925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19928 \begin_layout Plain Layout
19934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19937 \begin_layout Plain Layout
19941 \begin_layout Plain Layout
19945 multicolumn{1}{c|}{
19954 \begin_layout Plain Layout
19966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19969 \begin_layout Plain Layout
19973 \begin_layout Plain Layout
19990 \begin_layout Plain Layout
20004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20007 \begin_layout Plain Layout
20011 \begin_layout Plain Layout
20015 arrayrulecolor{black}
20025 <cell alignment="center" valignment="top" usebox="none">
20028 \begin_layout Plain Layout
20034 <cell alignment="center" valignment="top" usebox="none">
20037 \begin_layout Plain Layout
20043 <cell alignment="center" valignment="top" usebox="none">
20046 \begin_layout Plain Layout
20052 <cell alignment="center" valignment="top" usebox="none">
20055 \begin_layout Plain Layout
20061 <cell alignment="center" valignment="top" usebox="none">
20064 \begin_layout Plain Layout
20070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20073 \begin_layout Plain Layout
20077 \begin_layout Plain Layout
20085 arrayrulecolor{magenta}%
20097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
20100 \begin_layout Plain Layout
20104 \begin_layout Plain Layout
20108 multicolumn{1}{|c!{
20121 \begin_layout Plain Layout
20133 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20136 \begin_layout Plain Layout
20140 \begin_layout Plain Layout
20157 \begin_layout Plain Layout
20169 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20172 \begin_layout Plain Layout
20176 \begin_layout Plain Layout
20193 \begin_layout Plain Layout
20205 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20208 \begin_layout Plain Layout
20212 \begin_layout Plain Layout
20229 \begin_layout Plain Layout
20241 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20244 \begin_layout Plain Layout
20248 \begin_layout Plain Layout
20265 \begin_layout Plain Layout
20277 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
20280 \begin_layout Plain Layout
20284 \begin_layout Plain Layout
20301 \begin_layout Plain Layout
20313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20316 \begin_layout Plain Layout
20320 \begin_layout Plain Layout
20324 multicolumn{1}{c|}{
20333 \begin_layout Plain Layout
20347 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
20350 \begin_layout Plain Layout
20354 \begin_layout Plain Layout
20358 arrayrulecolor{black}
20368 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20371 \begin_layout Plain Layout
20377 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20380 \begin_layout Plain Layout
20386 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20389 \begin_layout Plain Layout
20395 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20398 \begin_layout Plain Layout
20404 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
20407 \begin_layout Plain Layout
20413 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20416 \begin_layout Plain Layout
20435 \begin_layout Standard
20439 \begin_layout Plain Layout
20445 arrayrulewidth}{0.4pt}
20453 \begin_layout Section
20454 Rotated Table Cells
20455 \begin_inset CommandInset label
20457 name "sec:Rotated-Table-Cells"
20462 \begin_inset Index idx
20465 \begin_layout Plain Layout
20466 Table ! Rotated Cells
20472 \begin_inset Index idx
20475 \begin_layout Plain Layout
20484 \begin_layout Standard
20485 \begin_inset Note Greyedout
20488 \begin_layout Plain Layout
20493 Not all DVI-viewers are able to display rotations.
20501 \begin_layout Standard
20503 \begin_inset space ~
20507 \begin_inset CommandInset ref
20509 reference "tab:Table-with-rotated-multi"
20513 is an example where 3
20514 \begin_inset space ~
20517 cells were rotated by 45
20518 \begin_inset space \thinspace{}
20524 \begin_layout Standard
20525 \begin_inset Float table
20531 \begin_layout Plain Layout
20532 \begin_inset Caption Standard
20534 \begin_layout Plain Layout
20535 \begin_inset CommandInset label
20537 name "tab:Table-with-rotated"
20541 Table with rotated cells in the first row.
20549 \begin_layout Plain Layout
20552 \begin_inset Tabular
20553 <lyxtabular version="3" rows="2" columns="3">
20554 <features tabularvalignment="middle">
20555 <column alignment="center" valignment="top" width="0pt">
20556 <column alignment="center" valignment="top" width="0pt">
20557 <column alignment="center" valignment="top" width="0pt">
20559 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20562 \begin_layout Plain Layout
20568 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20571 \begin_layout Plain Layout
20577 <cell alignment="center" valignment="top" rotate="45" usebox="none">
20580 \begin_layout Plain Layout
20588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20591 \begin_layout Plain Layout
20597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20600 \begin_layout Plain Layout
20606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20609 \begin_layout Plain Layout
20628 \begin_layout Standard
20629 \begin_inset Note Greyedout
20632 \begin_layout Plain Layout
20637 Line breaks (shortcut
20640 arg "newline-insert newline"
20643 ) are not allowed in rotated cells.
20651 \begin_layout Standard
20652 If you want to rotate table cells containing line breaks, you have to put
20653 the cell content into a minipage or a parbox.
20657 \begin_layout Plain Layout
20658 For more about these boxes see sec.
20659 \begin_inset space \thinspace{}
20663 \begin_inset CommandInset ref
20665 reference "sec:Minipages"
20670 \begin_inset CommandInset ref
20672 reference "sec:Parboxes"
20681 If you rotate this cell by 90
20682 \begin_inset space \thinspace{}
20685 ° the width of the box is the height of the cell.
20687 \begin_inset space ~
20691 \begin_inset CommandInset ref
20693 reference "tab:Table-with-rotated-multi"
20697 is an example for a rotated multiline cell where the box width was set
20699 \begin_inset space \thinspace{}
20705 \begin_layout Standard
20706 \begin_inset Float table
20711 \begin_layout Plain Layout
20712 \begin_inset Caption Standard
20714 \begin_layout Plain Layout
20715 \begin_inset CommandInset label
20717 name "tab:Table-with-rotated-multi"
20721 Table with rotated multiline cell.
20729 \begin_layout Plain Layout
20732 \begin_inset Tabular
20733 <lyxtabular version="3" rows="2" columns="3">
20734 <features tabularvalignment="middle">
20735 <column alignment="center" valignment="top">
20736 <column alignment="center" valignment="top" width="0pt">
20737 <column alignment="center" valignment="top">
20739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20742 \begin_layout Plain Layout
20748 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
20751 \begin_layout Plain Layout
20752 \begin_inset Box Frameless
20762 height_special "totalheight"
20767 backgroundcolor "none"
20770 \begin_layout Plain Layout
20772 \begin_inset Newline newline
20785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20788 \begin_layout Plain Layout
20796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20799 \begin_layout Plain Layout
20805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20808 \begin_layout Plain Layout
20814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20817 \begin_layout Plain Layout
20836 \begin_layout Section
20837 Table Width Calculation
20838 \begin_inset CommandInset label
20840 name "sec:Table-Width-Calculation"
20847 \begin_layout Standard
20848 For wide tables it is sometimes difficult to assure that the table does
20849 not protrude over the page margin.
20850 Setting a fixed width for every column of the table is the solution, but
20851 what amount of space is needed for each column?
20854 \begin_layout Standard
20856 \begin_inset Formula $W_{\mathrm{table}}$
20859 can be calculated: Every column has the width of the specified column width
20861 \begin_inset Formula $W_{\mathrm{column}}$
20864 (that the content of the column can consume) plus two times the separation
20865 between the column content and the column border (\SpecialChar LaTeX
20873 \begin_inset space \thinspace{}
20876 pt) plus the width of a border line (\SpecialChar LaTeX
20884 \begin_inset space \thinspace{}
20888 \begin_inset Formula $n$
20892 \begin_inset space ~
20895 columns have the same width, the table width is
20896 \begin_inset Formula
20898 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
20906 \begin_layout Standard
20907 The available width for a table is the space between the page margins or
20908 the width of a text column (for a two-column document) (\SpecialChar LaTeX
20916 If all table columns should have the same width and
20917 \begin_inset Formula $W_{\mathrm{table}}$
20921 \begin_inset space \thinspace{}
20927 \begin_inset Formula $W_{\mathrm{column}}$
20930 can easily be calculated.
20933 \begin_layout Standard
20934 To be able to perform calculations you need to load the \SpecialChar LaTeX
20940 \begin_inset Index idx
20943 \begin_layout Plain Layout
20950 in the document preamble.
20951 To set the width in the table dialog you have to use the field
20957 The command scheme for this field is the same that is explained in section
20958 \begin_inset space ~
20962 \begin_inset CommandInset ref
20964 reference "subsec:Multicolumn-Calculations"
20970 \begin_inset space \thinspace{}
20973 columns with an uniform width and centered text, enter there for each column
20977 \begin_layout Standard
20984 columnwidth-62.4pt)/5}
20987 \begin_layout Standard
20989 \begin_inset space \thinspace{}
20992 columns where 2 should have 0.75
20993 \begin_inset space ~
20996 times the width than the 3 others, the calculation is
20997 \begin_inset Formula
20999 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
21000 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
21001 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
21002 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
21010 \begin_layout Standard
21011 In the table therefore the command
21014 \begin_layout Standard
21021 columnwidth-62.4pt)/
21026 \begin_layout Standard
21027 is used for the wider columns and
21030 \begin_layout Standard
21037 columnwidth-62.4pt)/
21044 \begin_layout Standard
21045 for the smaller ones:
21048 \begin_layout Standard
21049 \begin_inset Tabular
21050 <lyxtabular version="3" rows="2" columns="5">
21051 <features tabularvalignment="middle">
21052 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21053 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21054 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21055 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
21056 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
21058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21061 \begin_layout Plain Layout
21067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21070 \begin_layout Plain Layout
21076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21079 \begin_layout Plain Layout
21085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21088 \begin_layout Plain Layout
21094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21097 \begin_layout Plain Layout
21105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21108 \begin_layout Plain Layout
21109 111111 1111111 111111 111111111 11111 11111 1111
21114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21117 \begin_layout Plain Layout
21123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21126 \begin_layout Plain Layout
21127 2222 22222 222222 222222222 2222222 22 22222
21132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21135 \begin_layout Plain Layout
21141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21144 \begin_layout Plain Layout
21145 333333 333333 333333 33333 3333333 333
21158 \begin_layout Section
21159 Table Customization
21160 \begin_inset Index idx
21163 \begin_layout Plain Layout
21164 Table Customization
21170 \begin_inset Index idx
21173 \begin_layout Plain Layout
21174 Table ! Customization
21182 \begin_layout Subsection
21184 \begin_inset CommandInset label
21186 name "subsec:Row-Spacing"
21191 \begin_inset Index idx
21194 \begin_layout Plain Layout
21195 Table Customization ! Row Spacing
21203 \begin_layout Standard
21204 You can add vertical space to table rows in the
21208 tab of the table dialog.
21209 You find there three possibilities:
21212 \begin_layout Description
21214 \begin_inset space ~
21218 \begin_inset space ~
21221 row will add space above the characters of the table row.
21222 If the table is a formal table
21226 \begin_layout Plain Layout
21227 Formal tables are explained in section
21228 \begin_inset space ~
21232 \begin_inset CommandInset ref
21234 reference "sec:Formal-Tables"
21244 will insert as default 0.5
21245 \begin_inset space \thinspace{}
21249 For normal tables the inserted space will unfortunately destroy the vertical
21250 table lines as in the following table:
21251 \begin_inset VSpace medskip
21255 \begin_inset Newline newline
21259 \begin_inset space \hspace*{}
21264 \begin_inset space \hfill{}
21268 \begin_inset Tabular
21269 <lyxtabular version="3" rows="3" columns="1">
21270 <features tabularvalignment="middle">
21271 <column alignment="center" valignment="top">
21273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21276 \begin_layout Plain Layout
21283 <row topspace="3mm">
21284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21287 \begin_layout Plain Layout
21289 \begin_inset space \thinspace{}
21292 mm space top of row
21299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21302 \begin_layout Plain Layout
21314 \begin_inset space \hfill{}
21318 \begin_inset space \hspace*{}
21323 \begin_inset VSpace medskip
21327 \begin_inset Newline newline
21330 So inserting space in the top of row for normal tables is only useful when
21331 you don't have vertical lines.
21334 \begin_layout Description
21336 \begin_inset space ~
21340 \begin_inset space ~
21343 row will add space below the characters of the table row.
21344 If the table is a formal table \SpecialChar LyX
21345 will insert as default 0.5
21346 \begin_inset space \thinspace{}
21349 em space, for normal tables the default size is 2
21350 \begin_inset space \thinspace{}
21356 \begin_layout Description
21358 \begin_inset space ~
21361 rows adds space between the current and the following row.
21362 If the table is a formal table \SpecialChar LyX
21363 will insert as default 0.5
21364 \begin_inset space \thinspace{}
21368 For normal tables the inserted space will unfortunately destroy the vertical
21369 table lines as in the following table:
21370 \begin_inset VSpace medskip
21374 \begin_inset Newline newline
21378 \begin_inset space \hspace*{}
21383 \begin_inset space \hfill{}
21387 \begin_inset Tabular
21388 <lyxtabular version="3" rows="3" columns="1">
21389 <features tabularvalignment="middle">
21390 <column alignment="center" valignment="top">
21392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21395 \begin_layout Plain Layout
21402 <row interlinespace="3mm">
21403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21406 \begin_layout Plain Layout
21407 \begin_inset Formula $\downarrow$
21411 \begin_inset space \thinspace{}
21414 mm space between row
21415 \begin_inset Formula $\downarrow$
21425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21428 \begin_layout Plain Layout
21429 \begin_inset Formula $\uparrow$
21433 \begin_inset space \thinspace{}
21436 mm space between row
21437 \begin_inset Formula $\uparrow$
21451 \begin_inset space \hfill{}
21455 \begin_inset space \hspace*{}
21460 \begin_inset VSpace medskip
21464 \begin_inset Newline newline
21467 So inserting space between rows for normal tables is only useful when you
21468 don't have vertical lines.
21471 \begin_layout Standard
21472 \begin_inset VSpace bigskip
21475 When you want to add extra height to all cells of all tables, you can do
21476 this with the following preamble lines:
21479 \begin_layout Standard
21484 @ifundefined{extrarowheight}
21485 \begin_inset Newline newline
21489 \begin_inset Phantom HPhantom
21492 \begin_layout Plain Layout
21495 \begin_inset space ~
21505 usepackage{array}}{}
21506 \begin_inset Newline newline
21513 extrarowheight}{height}
21516 \begin_inset Note Note
21519 \begin_layout Plain Layout
21524 will be loaded automatically by \SpecialChar LyX
21525 when you use self defined table formats.
21526 To avoid that it being loaded twice the command
21532 is used in the above command.
21540 \begin_layout Standard
21545 can have one of the units listed in appendix
21546 \begin_inset space ~
21550 \begin_inset CommandInset ref
21552 reference "cha:Units-available-in"
21557 But this has the disadvantage that the cell texts are no longer exactly
21558 vertically centered.
21561 \begin_layout Standard
21562 If you are using font sizes larger than the normal size, the table borders
21563 are often too close to the letters.
21564 This can be corrected by inserting the command
21570 in \SpecialChar TeX
21571 Code at the beginning of a table row.
21573 \begin_inset space ~
21577 \begin_inset CommandInset ref
21579 reference "tab:Vertical-alignment-of"
21583 illustrates the effect.
21586 \begin_layout Standard
21588 \begin_inset Float table
21594 \begin_layout Plain Layout
21595 \begin_inset Caption Standard
21597 \begin_layout Plain Layout
21598 \begin_inset CommandInset label
21600 name "tab:Vertical-alignment-of"
21604 Vertical alignment of text with large font sizes.
21612 \begin_layout Plain Layout
21613 \begin_inset space \hfill{}
21617 \begin_inset Float table
21622 \begin_layout Plain Layout
21623 \begin_inset Caption Standard
21625 \begin_layout Plain Layout
21634 \begin_layout Plain Layout
21637 \begin_inset Tabular
21638 <lyxtabular version="3" rows="6" columns="1">
21639 <features tabularvalignment="middle">
21640 <column alignment="left" valignment="top">
21642 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21645 \begin_layout Plain Layout
21653 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21656 \begin_layout Plain Layout
21666 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21669 \begin_layout Plain Layout
21679 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21682 \begin_layout Plain Layout
21692 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21695 \begin_layout Plain Layout
21705 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21708 \begin_layout Plain Layout
21727 \begin_inset space \hfill{}
21731 \begin_inset Float table
21736 \begin_layout Plain Layout
21737 \begin_inset Caption Standard
21739 \begin_layout Plain Layout
21740 Table using the command
21754 \begin_layout Plain Layout
21757 \begin_inset Tabular
21758 <lyxtabular version="3" rows="6" columns="1">
21759 <features tabularvalignment="middle">
21760 <column alignment="left" valignment="top">
21762 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21765 \begin_layout Plain Layout
21773 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21776 \begin_layout Plain Layout
21782 \begin_layout Plain Layout
21798 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21801 \begin_layout Plain Layout
21807 \begin_layout Plain Layout
21823 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21826 \begin_layout Plain Layout
21832 \begin_layout Plain Layout
21848 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21851 \begin_layout Plain Layout
21857 \begin_layout Plain Layout
21873 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21876 \begin_layout Plain Layout
21882 \begin_layout Plain Layout
21909 \begin_inset space \hfill{}
21920 \begin_layout Subsection
21921 Special Cell Alignment
21922 \begin_inset CommandInset label
21924 name "subsec:Special-Cell-Alignment"
21929 \begin_inset Index idx
21932 \begin_layout Plain Layout
21933 Table Customization ! Special Cell Alignment
21941 \begin_layout Standard
21942 Sometimes it looks better when the cell entries of a column are aligned
21943 with a special character, e.
21944 \begin_inset space \thinspace{}
21948 \begin_inset space \space{}
21951 with the decimal separator as in Table
21952 \begin_inset space ~
21956 \begin_inset CommandInset ref
21958 reference "tab:Table-cells-align"
21963 This alignment is achieved by setting the cursor into the column and then
21964 either pressing the toolbar button
21967 arg "tabular-feature align-decimal"
21970 or setting the alignment in the table settings to
21973 \begin_inset space ~
21977 \begin_inset space ~
21983 The alignment character can be a character of your choice and is specified
21984 in the table settings.
21987 \begin_layout Standard
21988 \begin_inset Float table
21994 \begin_layout Plain Layout
21995 \begin_inset Caption Standard
21997 \begin_layout Plain Layout
21998 \begin_inset CommandInset label
22000 name "tab:Table-cells-align"
22004 Table cells of a column aligned with the decimal separator.
22012 \begin_layout Plain Layout
22014 \begin_inset Tabular
22015 <lyxtabular version="3" rows="4" columns="1">
22016 <features booktabs="true" tabularvalignment="middle">
22017 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
22019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22022 \begin_layout Plain Layout
22030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22033 \begin_layout Plain Layout
22041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22044 \begin_layout Plain Layout
22052 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22055 \begin_layout Plain Layout
22074 \begin_layout Standard
22075 \begin_inset Float table
22081 \begin_layout Plain Layout
22082 \begin_inset Caption Standard
22084 \begin_layout Plain Layout
22085 \begin_inset CommandInset label
22087 name "tab:Table-align-operator"
22091 Table cells of a column aligned with the operators.
22099 \begin_layout Plain Layout
22101 \begin_inset Tabular
22102 <lyxtabular version="3" rows="4" columns="2">
22103 <features booktabs="true" tabularvalignment="middle">
22104 <column alignment="right" valignment="top" width="0pt">
22105 <column alignment="left" valignment="top" width="0pt" special="@{}l">
22107 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22110 \begin_layout Plain Layout
22116 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22119 \begin_layout Plain Layout
22127 <cell alignment="center" valignment="top" usebox="none">
22130 \begin_layout Plain Layout
22131 \begin_inset Formula $12\,+$
22139 <cell alignment="center" valignment="top" usebox="none">
22142 \begin_layout Plain Layout
22143 \begin_inset Formula $\,6$
22153 <cell alignment="center" valignment="top" usebox="none">
22156 \begin_layout Plain Layout
22157 \begin_inset Formula $0\,-$
22165 <cell alignment="center" valignment="top" usebox="none">
22168 \begin_layout Plain Layout
22169 \begin_inset Formula $\,68$
22179 <cell alignment="center" valignment="top" usebox="none">
22182 \begin_layout Plain Layout
22183 \begin_inset Formula $-123\,/$
22191 <cell alignment="center" valignment="top" usebox="none">
22194 \begin_layout Plain Layout
22195 \begin_inset Formula $\,0$
22216 \begin_layout Standard
22217 For alignments at characters in formulas this method does not work because
22218 the field to specify the alignment character does not allow formulas.
22219 In this case one need to use the method from Table
22220 \begin_inset space ~
22224 \begin_inset CommandInset ref
22226 reference "tab:Table-align-operator"
22231 This table was created with a 4×2 table.
22232 The heading is a centered multicolumn.
22233 The first column is right-aligned and contains the first part including
22235 The second column is left aligned and contains the rest.
22236 A small space was added at the beginning of each cell of the second column
22237 to get the space that is usually around operators.
22238 To omit the space that is normally between two table columns, the following
22240 -argument was used for the second column:
22243 \begin_layout Standard
22249 \begin_layout Standard
22251 \begin_inset space ~
22255 \begin_inset CommandInset ref
22257 reference "tab:Several-table-cell"
22261 shows some example alignments.
22262 For the alignment with the relation sign, a small space was added like
22263 for the second column of Table
22264 \begin_inset space ~
22268 \begin_inset CommandInset ref
22270 reference "tab:Table-align-operator"
22277 \begin_layout Standard
22278 \begin_inset Float table
22284 \begin_layout Plain Layout
22285 \begin_inset Caption Standard
22287 \begin_layout Plain Layout
22288 \begin_inset CommandInset label
22290 name "tab:Several-table-cell"
22294 Several table cell alignments.
22302 \begin_layout Plain Layout
22304 \begin_inset Tabular
22305 <lyxtabular version="3" rows="4" columns="6">
22306 <features tabularvalignment="middle">
22307 <column alignment="right" valignment="top">
22308 <column alignment="left" valignment="top" special="@{}l">
22309 <column alignment="right" valignment="top">
22310 <column alignment="left" valignment="top" special="@{}l">
22311 <column alignment="right" valignment="top">
22312 <column alignment="left" valignment="top" special="@{}l">
22314 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22317 \begin_layout Plain Layout
22323 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22326 \begin_layout Plain Layout
22332 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
22335 \begin_layout Plain Layout
22341 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22344 \begin_layout Plain Layout
22350 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
22353 \begin_layout Plain Layout
22359 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22362 \begin_layout Plain Layout
22370 <cell alignment="center" valignment="top" usebox="none">
22373 \begin_layout Plain Layout
22379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22382 \begin_layout Plain Layout
22384 \begin_inset space \thinspace{}
22392 <cell alignment="center" valignment="top" usebox="none">
22395 \begin_layout Plain Layout
22396 \begin_inset Formula $10\cdot$
22404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22407 \begin_layout Plain Layout
22408 \begin_inset Formula $10^{\mbox{-}17}$
22416 <cell alignment="center" valignment="top" usebox="none">
22419 \begin_layout Plain Layout
22420 \begin_inset Formula $\Gamma(t)\propto$
22428 <cell alignment="center" valignment="top" usebox="none">
22431 \begin_layout Plain Layout
22432 \begin_inset Formula $\:\Upsilon(t)$
22442 <cell alignment="center" valignment="top" usebox="none">
22445 \begin_layout Plain Layout
22451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22454 \begin_layout Plain Layout
22456 \begin_inset space \thinspace{}
22464 <cell alignment="center" valignment="top" usebox="none">
22467 \begin_layout Plain Layout
22468 \begin_inset Formula $5.78\cdot$
22476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22479 \begin_layout Plain Layout
22480 \begin_inset Formula $10^{7}$
22488 <cell alignment="center" valignment="top" usebox="none">
22491 \begin_layout Plain Layout
22492 \begin_inset Formula $A\ne$
22500 <cell alignment="center" valignment="top" usebox="none">
22503 \begin_layout Plain Layout
22504 \begin_inset Formula $\:B_{\mathrm{red}}$
22514 <cell alignment="center" valignment="top" usebox="none">
22517 \begin_layout Plain Layout
22523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22526 \begin_layout Plain Layout
22528 \begin_inset space \thinspace{}
22536 <cell alignment="center" valignment="top" usebox="none">
22539 \begin_layout Plain Layout
22541 \begin_inset Formula $33.5\cdot$
22549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
22552 \begin_layout Plain Layout
22553 \begin_inset Formula $10^{4}$
22561 <cell alignment="center" valignment="top" usebox="none">
22564 \begin_layout Plain Layout
22565 \begin_inset Formula $\sin(\alpha)\ge$
22573 <cell alignment="center" valignment="top" usebox="none">
22576 \begin_layout Plain Layout
22577 \begin_inset Formula $\:\sin(\beta)$
22598 \begin_layout Subsection
22599 Customized Cell/Column Format
22600 \begin_inset CommandInset label
22602 name "subsec:Customized-Format"
22607 \begin_inset Index idx
22610 \begin_layout Plain Layout
22611 Table Customization ! Cell/Column Format
22619 \begin_layout Standard
22620 Calculating the required width for normal columns as described in section
22621 \begin_inset space ~
22625 \begin_inset CommandInset ref
22627 reference "sec:Table-Width-Calculation"
22631 or for spanned columns as described in section
22632 \begin_inset space ~
22636 \begin_inset CommandInset ref
22638 reference "subsec:Multicolumn-Calculations"
22642 is very annoying if you have several tables where a calculation is necessary.
22643 To make life easier, you can define a cell/column format in the preamble,
22644 that can be used in all tables of the document.
22645 The format is defined with the command
22648 \begin_layout Standard
22653 newcolumntype{name of format}[number of arguments]{commands}
22656 \begin_layout Standard
22657 The format name may only consist of one letter.
22682 are predefined and cannot be used.
22683 But all letters are allowed as capitals.
22686 \begin_layout Standard
22687 \begin_inset VSpace medskip
22693 \begin_layout Standard
22694 For vertically and horizontally centered multicolumn cells with a fixed
22695 width you can define the cell format
22698 \begin_layout Standard
22703 newcolumntype{M}[1]{>{
22710 \begin_layout Standard
22717 avoids the problem of hyphenating the first word, as described in section
22718 \begin_inset space ~
22722 \begin_inset CommandInset ref
22724 reference "subsec:Multiple-Lines-in"
22729 Now you can simply enter
22732 \begin_layout Standard
22738 \begin_layout Standard
22744 in the table dialog to create a multicolumn.
22747 \begin_layout Standard
22748 \begin_inset VSpace bigskip
22754 \begin_layout Standard
22755 For cells spanned by a multicolumn cell, you can define the format
22758 \begin_layout Standard
22763 newcolumntype{S}[2]{>{
22768 \begin_inset Newline newline
22772 \begin_inset Phantom HPhantom
22775 \begin_layout Plain Layout
22789 arrayrulewidth)*(1-#2))/#2}}
22792 \begin_layout Standard
22793 This format uses equation
22794 \begin_inset CommandInset ref
22800 to calculate the required width so that each spanned cell has the same
22804 \begin_layout Standard
22808 \begin_layout Standard
22811 S{width of multicolumn cell}{number of spanned columns}
22814 \begin_layout Standard
22815 as \SpecialChar LaTeX
22816 -argument of the column.
22819 \begin_layout Standard
22820 \begin_inset VSpace bigskip
22826 \begin_layout Standard
22827 For colored columns, you can define
22830 \begin_layout Standard
22835 newcolumntype{K}[1]{>{
22842 \begin_layout Standard
22844 \begin_inset Quotes eld
22848 \begin_inset Quotes erd
22851 at the end creates a column with a flexible width whose text is horizontally
22856 \begin_layout Standard
22862 \begin_layout Standard
22863 as \SpecialChar LaTeX
22867 \begin_layout Standard
22868 \begin_inset VSpace bigskip
22874 \begin_layout Standard
22876 \begin_inset space ~
22880 \begin_inset CommandInset ref
22882 reference "tab:Table-using-user-defined"
22886 use the \SpecialChar LaTeX
22890 \begin_layout Standard
22896 \begin_layout Standard
22897 for the first column and the multicolumn,
22900 \begin_layout Standard
22906 \begin_layout Standard
22907 for the last column, and
22910 \begin_layout Standard
22916 \begin_layout Standard
22917 for the cells in the second column.
22920 \begin_layout Standard
22921 \begin_inset Float table
22927 \begin_layout Plain Layout
22928 \begin_inset Caption Standard
22930 \begin_layout Plain Layout
22931 \begin_inset CommandInset label
22933 name "tab:Table-using-user-defined"
22937 Table using user-defined table formats
22945 \begin_layout Plain Layout
22947 \begin_inset Tabular
22948 <lyxtabular version="3" rows="3" columns="4">
22949 <features tabularvalignment="middle">
22950 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
22951 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
22952 <column alignment="center" valignment="middle">
22953 <column alignment="center" valignment="middle" special="K{red}">
22955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22958 \begin_layout Plain Layout
22959 verylongtablecellword
22964 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
22967 \begin_layout Plain Layout
22968 multiple lines multicolumn
22973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22976 \begin_layout Plain Layout
22982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22985 \begin_layout Plain Layout
22993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22996 \begin_layout Plain Layout
23002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23005 \begin_layout Plain Layout
23011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23014 \begin_layout Plain Layout
23020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23023 \begin_layout Plain Layout
23031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23034 \begin_layout Plain Layout
23040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23043 \begin_layout Plain Layout
23049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23052 \begin_layout Plain Layout
23058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23061 \begin_layout Plain Layout
23080 \begin_layout Subsection
23082 \begin_inset CommandInset label
23084 name "subsec:Line-Thickness"
23089 \begin_inset Index idx
23092 \begin_layout Plain Layout
23093 Table Customization ! Line Thickness
23101 \begin_layout Standard
23102 The line thickness for all lines in a table can be adjusted with the length
23110 To set for example a line thickness of 1.5
23111 \begin_inset space \thinspace{}
23115 \begin_inset space ~
23119 \begin_inset CommandInset ref
23121 reference "tab:Table-with-1.5"
23125 , insert the command
23128 \begin_layout Standard
23135 arrayrulewidth}{1.5pt}
23138 \begin_layout Standard
23139 in \SpecialChar TeX
23140 Code before the table or table float.
23141 The changed thickness is valid for all subsequent tables.
23142 To use the default value again, set
23149 \begin_inset space \thinspace{}
23152 pt in \SpecialChar TeX
23153 Code after the table or table float.
23156 \begin_layout Standard
23160 \begin_layout Plain Layout
23166 arrayrulewidth}{1.5pt}
23172 \begin_inset Float table
23177 \begin_layout Plain Layout
23178 \begin_inset Caption Standard
23180 \begin_layout Plain Layout
23181 \begin_inset CommandInset label
23183 name "tab:Table-with-1.5"
23188 \begin_inset space \thinspace{}
23199 \begin_layout Plain Layout
23201 \begin_inset Tabular
23202 <lyxtabular version="3" rows="3" columns="3">
23203 <features tabularvalignment="middle">
23204 <column alignment="center" valignment="top">
23205 <column alignment="center" valignment="top">
23206 <column alignment="center" valignment="top">
23208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23211 \begin_layout Plain Layout
23217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23220 \begin_layout Plain Layout
23226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23229 \begin_layout Plain Layout
23237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23240 \begin_layout Plain Layout
23246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23249 \begin_layout Plain Layout
23255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23258 \begin_layout Plain Layout
23266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23269 \begin_layout Plain Layout
23275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23278 \begin_layout Plain Layout
23284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23287 \begin_layout Plain Layout
23307 \begin_layout Plain Layout
23313 arrayrulewidth}{0.4pt}
23321 \begin_layout Standard
23322 \begin_inset VSpace bigskip
23325 To set the line thickness to 1.5
23326 \begin_inset space \thinspace{}
23329 pt only for horizontal lines, as in Table
23330 \begin_inset space ~
23334 \begin_inset CommandInset ref
23336 reference "tab:Table-with-horizontal"
23340 , insert these commands in \SpecialChar TeX
23341 Code before the table or table float:
23344 \begin_layout Standard
23354 \begin_inset Newline newline
23362 \begin_inset Newline newline
23371 arrayrulewidth 1.5pt}
23372 \begin_inset Newline newline
23383 arrayrulewidth 0.4pt}}
23386 \begin_layout Standard
23387 To return to the default line thickness, insert this command in \SpecialChar TeX
23389 the table or table float:
23392 \begin_layout Standard
23404 \begin_layout Standard
23408 \begin_layout Plain Layout
23419 \begin_layout Plain Layout
23428 \begin_layout Plain Layout
23436 arrayrulewidth 1.5pt}
23439 \begin_layout Plain Layout
23449 arrayrulewidth 0.4pt}}
23455 \begin_inset Float table
23460 \begin_layout Plain Layout
23461 \begin_inset Caption Standard
23463 \begin_layout Plain Layout
23464 \begin_inset CommandInset label
23466 name "tab:Table-with-horizontal"
23471 \begin_inset space \thinspace{}
23474 pt thick horizontal lines
23482 \begin_layout Plain Layout
23484 \begin_inset Tabular
23485 <lyxtabular version="3" rows="3" columns="3">
23486 <features tabularvalignment="middle">
23487 <column alignment="center" valignment="top">
23488 <column alignment="center" valignment="top">
23489 <column alignment="center" valignment="top">
23491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23494 \begin_layout Plain Layout
23500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23503 \begin_layout Plain Layout
23509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23512 \begin_layout Plain Layout
23520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23523 \begin_layout Plain Layout
23529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23532 \begin_layout Plain Layout
23538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23541 \begin_layout Plain Layout
23549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23552 \begin_layout Plain Layout
23558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23561 \begin_layout Plain Layout
23567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23570 \begin_layout Plain Layout
23590 \begin_layout Plain Layout
23606 \begin_layout Standard
23607 \begin_inset VSpace bigskip
23610 To set the line thickness to 1.5
23611 \begin_inset space \thinspace{}
23614 pt only for vertical lines, create the following column format in the document
23615 preamble, according to the description in section
23616 \begin_inset space ~
23620 \begin_inset CommandInset ref
23622 reference "subsec:Customized-Format"
23629 \begin_layout Standard
23634 newcolumntype{V}{!{
23636 vrule width 1.5pt}}
23639 \begin_layout Standard
23641 \begin_inset space ~
23645 \begin_inset CommandInset ref
23647 reference "tab:Table-with-vertical"
23651 the \SpecialChar LaTeX
23655 \begin_layout Standard
23661 \begin_layout Standard
23662 was used for the last column and
23665 \begin_layout Standard
23671 \begin_layout Standard
23672 for the other columns.
23675 \begin_layout Standard
23676 \begin_inset Float table
23681 \begin_layout Plain Layout
23682 \begin_inset Caption Standard
23684 \begin_layout Plain Layout
23685 \begin_inset CommandInset label
23687 name "tab:Table-with-vertical"
23692 \begin_inset space \thinspace{}
23695 pt thick vertical lines
23703 \begin_layout Plain Layout
23705 \begin_inset Tabular
23706 <lyxtabular version="3" rows="3" columns="3">
23707 <features tabularvalignment="middle">
23708 <column alignment="center" valignment="top" special="Vc">
23709 <column alignment="center" valignment="top" special="Vc">
23710 <column alignment="center" valignment="top" special="VcV">
23712 <cell alignment="center" valignment="top" topline="true" usebox="none">
23715 \begin_layout Plain Layout
23721 <cell alignment="center" valignment="top" topline="true" usebox="none">
23724 \begin_layout Plain Layout
23730 <cell alignment="center" valignment="top" topline="true" usebox="none">
23733 \begin_layout Plain Layout
23741 <cell alignment="center" valignment="top" topline="true" usebox="none">
23744 \begin_layout Plain Layout
23750 <cell alignment="center" valignment="top" topline="true" usebox="none">
23753 \begin_layout Plain Layout
23759 <cell alignment="center" valignment="top" topline="true" usebox="none">
23762 \begin_layout Plain Layout
23770 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23773 \begin_layout Plain Layout
23779 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23782 \begin_layout Plain Layout
23788 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23791 \begin_layout Plain Layout
23810 \begin_layout Subsection
23812 \begin_inset Index idx
23815 \begin_layout Plain Layout
23816 Table Customization ! Dashed Lines
23824 \begin_layout Standard
23828 \begin_layout Plain Layout
23838 \begin_inset Note Note
23841 \begin_layout Plain Layout
23842 The following section will only be displayed when the \SpecialChar LaTeX
23855 \begin_layout Standard
23856 \begin_inset Float table
23862 \begin_layout Plain Layout
23863 \begin_inset Caption Standard
23865 \begin_layout Plain Layout
23866 \begin_inset CommandInset label
23868 name "tab:Table-with-dashed"
23872 Table with dashed lines
23880 \begin_layout Plain Layout
23882 \begin_inset Tabular
23883 <lyxtabular version="3" rows="5" columns="5">
23884 <features tabularvalignment="middle">
23885 <column alignment="center" valignment="top">
23886 <column alignment="center" valignment="top">
23887 <column alignment="center" valignment="top" special=":c">
23888 <column alignment="center" valignment="top">
23889 <column alignment="center" valignment="top">
23891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23894 \begin_layout Plain Layout
23900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23903 \begin_layout Plain Layout
23909 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23912 \begin_layout Plain Layout
23918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23921 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23930 \begin_layout Plain Layout
23938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23941 \begin_layout Plain Layout
23947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23950 \begin_layout Plain Layout
23956 <cell alignment="center" valignment="top" topline="true" usebox="none">
23959 \begin_layout Plain Layout
23965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23968 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23977 \begin_layout Plain Layout
23985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23988 \begin_layout Plain Layout
23992 \begin_layout Plain Layout
24006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24009 \begin_layout Plain Layout
24015 <cell alignment="center" valignment="top" usebox="none">
24018 \begin_layout Plain Layout
24024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24027 \begin_layout Plain Layout
24033 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24036 \begin_layout Plain Layout
24044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24047 \begin_layout Plain Layout
24051 \begin_layout Plain Layout
24065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24068 \begin_layout Plain Layout
24074 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24077 \begin_layout Plain Layout
24083 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24086 \begin_layout Plain Layout
24092 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24095 \begin_layout Plain Layout
24103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24106 \begin_layout Plain Layout
24112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24115 \begin_layout Plain Layout
24121 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24124 \begin_layout Plain Layout
24130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24133 \begin_layout Plain Layout
24139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24142 \begin_layout Plain Layout
24161 \begin_layout Standard
24163 does not natively support dashed lines, so you have to use \SpecialChar TeX
24165 As a prerequisite the \SpecialChar LaTeX
24171 \begin_inset Index idx
24174 \begin_layout Plain Layout
24176 -packages ! arydshln
24181 must be loaded in the document preamble with the command
24184 \begin_layout Standard
24189 usepackage{arydshln}
24192 \begin_layout Standard
24193 To make a vertical line dashed, enter the colon
24194 \begin_inset Quotes eld
24198 \begin_inset Quotes erd
24201 together with the character for the horizontal alignment as \SpecialChar LaTeX
24203 the table cell dialog.
24206 \begin_layout Standard
24207 For a horizontal dashed line add the command
24210 \begin_layout Standard
24218 \begin_layout Standard
24219 in \SpecialChar TeX
24220 Code as first element of the first cell in the table row.
24223 \begin_layout Standard
24224 For dashed multicolumn lines use the command
24227 \begin_layout Standard
24232 cdashline{line number
24237 \begin_layout Standard
24238 in \SpecialChar TeX
24239 Code as the first element of the first cell in the table row.
24240 If you have for example a multicolumn spanning columns 2 to 4 and you want
24241 to have a dashed line above, add the command
24244 \begin_layout Standard
24252 \begin_layout Standard
24253 as the first element of the first cell in the row of the multicolumn.
24256 \begin_layout Standard
24257 \begin_inset VSpace bigskip
24263 \begin_layout Standard
24265 \begin_inset space ~
24269 \begin_inset CommandInset ref
24271 reference "tab:Table-with-dashed"
24276 \begin_inset Quotes eld
24284 \begin_inset Quotes erd
24287 as \SpecialChar LaTeX
24288 argument of the third column.
24289 The \SpecialChar TeX
24296 was inserted in the first cell of the third row and the \SpecialChar TeX
24298 \begin_inset Newline newline
24307 was inserted in the first cell of the fourth row.
24310 \begin_layout Standard
24311 \begin_inset VSpace bigskip
24317 \begin_layout Standard
24318 Tables with dashed lines can also be colored as shown by Table
24319 \begin_inset space ~
24323 \begin_inset CommandInset ref
24325 reference "tab:Colored-table-with"
24332 \begin_layout Standard
24336 \begin_layout Plain Layout
24342 arrayrulewidth}{1pt}
24348 \begin_inset Note Note
24351 \begin_layout Plain Layout
24352 thicker lines for better visualization of the line color
24360 \begin_layout Standard
24364 \begin_layout Plain Layout
24368 dashgapcolor{green}
24374 \begin_inset Note Note
24377 \begin_layout Plain Layout
24378 color gaps between dashes green
24386 \begin_layout Standard
24390 \begin_layout Plain Layout
24401 \begin_layout Plain Layout
24410 \begin_layout Plain Layout
24414 arrayrulecolor{red}
24418 arrayrulecolor{black}}
24424 \begin_inset Note Note
24427 \begin_layout Plain Layout
24428 color horizontal, dashed lines red
24436 \begin_layout Standard
24440 \begin_layout Plain Layout
24451 \begin_layout Plain Layout
24460 \begin_layout Plain Layout
24464 arrayrulecolor{yellow}
24468 arrayrulecolor{black}}
24474 \begin_inset Note Note
24477 \begin_layout Plain Layout
24478 color partial horizontal, dashed lines yellow
24486 \begin_layout Standard
24487 \begin_inset Float table
24493 \begin_layout Plain Layout
24494 \begin_inset Caption Standard
24496 \begin_layout Plain Layout
24497 \begin_inset CommandInset label
24499 name "tab:Colored-table-with"
24503 Colored table with dashed lines
24511 \begin_layout Plain Layout
24513 \begin_inset Tabular
24514 <lyxtabular version="3" rows="5" columns="5">
24515 <features tabularvalignment="middle">
24516 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
24517 <column alignment="center" valignment="top" width="0pt">
24518 <column alignment="center" valignment="top" width="0pt" special=":c">
24519 <column alignment="center" valignment="top">
24520 <column alignment="center" valignment="top">
24522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24525 \begin_layout Plain Layout
24531 <cell alignment="center" valignment="top" topline="true" usebox="none">
24534 \begin_layout Plain Layout
24540 <cell alignment="center" valignment="top" topline="true" usebox="none">
24543 \begin_layout Plain Layout
24549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24552 \begin_layout Plain Layout
24558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24561 \begin_layout Plain Layout
24569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24572 \begin_layout Plain Layout
24578 <cell alignment="center" valignment="top" topline="true" usebox="none">
24581 \begin_layout Plain Layout
24587 <cell alignment="center" valignment="top" topline="true" usebox="none">
24590 \begin_layout Plain Layout
24596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24599 \begin_layout Plain Layout
24605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24608 \begin_layout Plain Layout
24616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24619 \begin_layout Plain Layout
24623 \begin_layout Plain Layout
24636 \begin_layout Plain Layout
24650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24653 \begin_layout Plain Layout
24659 <cell alignment="center" valignment="top" usebox="none">
24662 \begin_layout Plain Layout
24668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
24671 \begin_layout Plain Layout
24677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24680 \begin_layout Plain Layout
24688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24691 \begin_layout Plain Layout
24695 \begin_layout Plain Layout
24709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24712 \begin_layout Plain Layout
24718 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
24721 \begin_layout Plain Layout
24727 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
24730 \begin_layout Plain Layout
24736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24739 \begin_layout Plain Layout
24747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24750 \begin_layout Plain Layout
24756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24759 \begin_layout Plain Layout
24765 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
24768 \begin_layout Plain Layout
24774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24777 \begin_layout Plain Layout
24783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24786 \begin_layout Plain Layout
24790 \begin_layout Plain Layout
24817 \begin_layout Standard
24821 \begin_layout Plain Layout
24835 \begin_inset Note Note
24838 \begin_layout Plain Layout
24847 \begin_layout Standard
24851 \begin_layout Plain Layout
24865 \begin_inset Note Note
24868 \begin_layout Plain Layout
24877 \begin_layout Standard
24881 \begin_layout Plain Layout
24891 \begin_inset Note Note
24894 \begin_layout Plain Layout
24903 \begin_layout Standard
24907 \begin_layout Plain Layout
24913 arrayrulewidth}{0.4pt}
24919 \begin_inset Note Note
24922 \begin_layout Plain Layout
24931 \begin_layout Standard
24932 The coloring of lines, columns and lines works as decribed in section
24933 \begin_inset space ~
24937 \begin_inset CommandInset ref
24939 reference "sec:Colored-Tables"
24944 Coloring horizontal lines works analogically as described there as well,
24945 one only needs to replace in the commands
24969 ; so one uses the command
24972 \begin_layout Standard
24982 \begin_inset Newline newline
24990 \begin_inset Newline newline
24994 \begin_inset Phantom HPhantom
24997 \begin_layout Plain Layout
24998 \begin_inset space ~
25008 arrayrulecolor{red}
25012 arrayrulecolor{black}}
25015 \begin_layout Standard
25025 \begin_layout Standard
25035 \begin_inset Newline newline
25043 \begin_inset Newline newline
25047 \begin_inset Phantom HPhantom
25050 \begin_layout Plain Layout
25051 \begin_inset space ~
25061 arrayrulecolor{red}
25065 arrayrulecolor{black}}
25068 \begin_layout Standard
25069 To get back the black line color, one needs to insert the following commands
25070 as \SpecialChar TeX
25071 Code behind the table:
25074 \begin_layout Standard
25082 \begin_layout Standard
25094 \begin_layout Standard
25102 \begin_layout Standard
25114 \begin_layout Standard
25115 To color the gaps between the dashes the command
25118 \begin_layout Standard
25123 dashgapcolor{color}
25126 \begin_layout Standard
25127 can be used in front of a table as \SpecialChar TeX
25129 color is hereby the name of a defined color.
25133 \begin_layout Standard
25141 \begin_layout Standard
25142 unsets the changes made by
25151 \begin_layout Standard
25152 \begin_inset Note Greyedout
25155 \begin_layout Plain Layout
25161 : If there are multiple commands in a cell, the command of
25165 needs to be the first one in the cell.
25171 \begin_inset space ~
25175 \begin_inset CommandInset ref
25177 reference "tab:Colored-table-with"
25201 \begin_layout Standard
25202 \begin_inset Note Greyedout
25205 \begin_layout Plain Layout
25211 The \SpecialChar LaTeX
25216 must be loaded in the document preamble before the \SpecialChar LaTeX
25222 \begin_inset Index idx
25225 \begin_layout Plain Layout
25227 -packages ! colortbl
25240 \begin_layout Standard
25244 \begin_layout Plain Layout
25254 \begin_inset Note Note
25257 \begin_layout Plain Layout
25258 The following will be displayed when the \SpecialChar LaTeX
25271 \begin_layout Standard
25272 You need to install the package
25276 to see the content of this section in the output.
25279 \begin_layout Standard
25283 \begin_layout Plain Layout
25295 \begin_layout Standard
25296 For more information about dashed lines see the documentation of
25301 \begin_inset CommandInset citation
25311 \begin_layout Chapter
25313 \begin_inset CommandInset label
25320 \begin_inset Index idx
25323 \begin_layout Plain Layout
25332 \begin_layout Section
25334 \begin_inset CommandInset label
25336 name "sec:FloatIntroduction"
25341 \begin_inset Index idx
25344 \begin_layout Plain Layout
25345 Floats ! Introduction
25353 \begin_layout Standard
25354 A float is a block of text associated with some sort of label, which doesn't
25355 have a fixed location.
25357 \begin_inset Quotes eld
25361 \begin_inset Quotes erd
25364 forward or backward a page or two, to wherever it fits best.
25372 \begin_inset space ~
25377 are also floats because they can float to the next page when there are
25378 too many notes on the page.
25381 \begin_layout Standard
25382 Floats allow a high quality layout.
25383 Images and tables can be spread evenly among the pages to avoid white space
25384 and pages without text.
25385 As the floating often destroys the context between the text and the image/table
25386 , every float can be referenced in the text.
25387 Floats are therefore numbered.
25388 Referencing is described in section
25389 \begin_inset space ~
25393 \begin_inset CommandInset ref
25395 reference "sec:Referencing-Floats"
25402 \begin_layout Standard
25403 To insert a float, use the menu
25405 Insert\SpecialChar menuseparator
25411 arg "float-insert figure"
25417 arg "float-insert table"
25425 inset, a box with a label.
25426 The label will automatically be translated to the document language in
25428 After the label you can insert the caption text.
25429 The image or table is inserted above or below the caption in a separate
25430 paragraph within the float.
25431 More about the caption placement is contained in section
25432 \begin_inset space ~
25436 \begin_inset CommandInset ref
25438 reference "sec:Caption-Placement"
25443 To keep your \SpecialChar LyX
25444 document readable, you can open and close the float box by
25445 left-clicking on the box label.
25446 A closed float box looks like this:
25447 \begin_inset Graphics
25448 filename clipart/float.png
25450 scaleBeforeRotation
25454 – a gray button with a red label.
25457 \begin_layout Standard
25458 It is recommended that you insert floats as separate standard paragraphs
25459 to avoid possible \SpecialChar LaTeX
25460 -errors that can occur when the surrounding text is specially
25464 \begin_layout Standard
25465 Existing figures or tables can be put into a float by highlighting them
25466 and then pressing the corresponding toolbar button for a new float.
25469 \begin_layout Section
25473 \begin_layout Standard
25474 Besides figure and table floats that are described in sections
25475 \begin_inset space ~
25479 \begin_inset CommandInset ref
25481 reference "sec:Figure-Floats"
25486 \begin_inset CommandInset ref
25488 reference "sec:Table-Floats"
25492 respectively, \SpecialChar LyX
25493 offers the float types
25502 The latter are explained in sec.
25503 \begin_inset space \thinspace{}
25507 \begin_inset CommandInset ref
25509 reference "sec:Wrap-Floats"
25516 \begin_layout Subsection
25518 \begin_inset Index idx
25521 \begin_layout Plain Layout
25522 Floats ! Algorithms
25530 \begin_layout Standard
25531 \begin_inset Float algorithm
25537 \begin_layout Plain Layout
25538 \begin_inset Caption Standard
25540 \begin_layout Plain Layout
25541 \begin_inset CommandInset label
25543 name "alg:Example-Algorithm-float"
25547 Example Algorithm float
25555 \begin_layout LyX-Code
25557 \begin_inset Newline newline
25560 Sum:= Sum + A(I); /*comment*/
25561 \begin_inset Newline newline
25565 \begin_inset VSpace -4mm
25576 \begin_layout Standard
25577 This float type is inserted with the menu
25579 Insert\SpecialChar menuseparator
25580 Float\SpecialChar menuseparator
25584 It is used for program codes and descriptions of algorithms and can be
25585 seen as an alternative to program code listings that are explained in chapter
25586 \begin_inset space ~
25590 \begin_inset CommandInset ref
25592 reference "cha:Program-Code-Listings"
25597 A possible environment for algorithms is the
25602 , described in \SpecialChar LyX
25609 \begin_inset space ~
25613 \begin_inset CommandInset ref
25615 reference "alg:Example-Algorithm-float"
25619 is an example of an algorithm float where -4
25620 \begin_inset space \thinspace{}
25623 mm vertical space was added at the end of the float to have the bottom rule
25624 exactly below the last text line.
25627 \begin_layout Standard
25628 The float label is not automatically translated into the document language.
25629 If your document is not in English, you have to do this manually by adding
25630 the following line to the document preamble
25635 \begin_layout Standard
25640 floatname{algorithm}{your
25641 \begin_inset space ~
25647 \begin_layout Standard
25651 \begin_inset space ~
25657 \begin_inset Quotes eld
25665 \begin_inset Quotes erd
25671 \begin_layout Standard
25672 To insert the list of algorithms you can use the menu
25674 Insert\SpecialChar menuseparator
25676 \begin_inset space \thinspace{}
25680 \begin_inset space \thinspace{}
25683 TOC\SpecialChar menuseparator
25686 when your document has the same language as \SpecialChar LyX
25688 In other cases use this command in \SpecialChar TeX
25692 \begin_layout Standard
25697 listof{algorithm}{your
25698 \begin_inset space ~
25704 \begin_layout Standard
25708 \begin_inset space ~
25714 \begin_inset Quotes eld
25722 \begin_inset Quotes erd
25728 \begin_layout Standard
25729 Algorithm floats are not by default numbered in the scheme
25730 \begin_inset Quotes eld
25734 \begin_inset Quotes erd
25737 as is the case for table and figure floats in many document-classes.
25738 To number algorithm floats in the same scheme, add this command to your
25742 \begin_layout Standard
25747 numberwithin{algorithm}{chapter}
25750 \begin_layout Standard
25751 To be able to use the command
25760 \begin_inset space ~
25765 in the document settings the option
25768 \begin_inset space ~
25772 \begin_inset space ~
25776 \begin_inset space ~
25784 \begin_layout Section
25786 \begin_inset Index idx
25789 \begin_layout Plain Layout
25798 \begin_layout Standard
25799 Floats are usually numbered either independently from the sections the floats
25800 are in, or in the scheme
25801 \begin_inset Quotes eld
25805 \begin_inset Quotes erd
25809 \begin_inset Quotes eld
25813 \begin_inset Quotes erd
25817 This depends on the document class used.
25820 \begin_layout Standard
25821 To change section-independent numbering, you can use this command in the
25825 \begin_layout Standard
25837 \begin_layout Standard
25844 is the command that prints the table number.
25845 For figure floats, the command would be
25858 in the command above prints the table number as a small roman number.
25861 \begin_layout Standard
25862 To change the numbering scheme for example to
25863 \begin_inset Quotes eld
25867 \begin_inset Quotes erd
25870 , use this command in the preamble:
25873 \begin_layout Standard
25878 numberwithin{table}{subsection}
25881 \begin_layout Standard
25882 To be able to use the command
25891 \begin_inset space ~
25896 in the document settings the option
25899 \begin_inset space ~
25903 \begin_inset space ~
25907 \begin_inset space ~
25915 \begin_layout Standard
25916 Please also have a look at section
25917 \begin_inset space ~
25921 \begin_inset CommandInset ref
25923 reference "subsec:Footnote-Numbering"
25927 for the details and important notes about the numbering commands.
25930 \begin_layout Section
25932 \begin_inset CommandInset label
25934 name "sec:Referencing-Floats"
25939 \begin_inset Index idx
25942 \begin_layout Plain Layout
25943 Floats ! References
25949 \begin_inset Index idx
25952 \begin_layout Plain Layout
25953 References ! to Floats
25961 \begin_layout Standard
25962 To reference a float, insert a label into its caption using the menu
25964 Insert\SpecialChar menuseparator
25967 or the toolbar button
25974 A grey label box like this one:
25975 \begin_inset Graphics
25976 filename clipart/label.png
25977 scaleBeforeRotation
25981 will be inserted and the label window pops up asking for the label text.
25983 offers as text the first words of the caption with a prefix.
25984 The prefix depends on the float type, e.
25985 \begin_inset space \thinspace{}
25989 \begin_inset space \space{}
25992 for figure floats the prefix will be "
25999 \begin_layout Standard
26000 The label is used as anchor and name for the reference.
26001 You can refer to the label using the menu
26003 Insert\SpecialChar menuseparator
26006 or the toolbar button
26009 arg "dialog-show-new-inset ref"
26013 The cross-reference window appears showing all labels of the document.
26014 If you have multiple \SpecialChar LyX
26015 documents opened, choose the one you are working
26016 on from the drop-list at the top of the dialog.
26017 You can now sort the labels alphabetically and then choose one.
26018 A grey cross-reference box like this one:
26019 \begin_inset Graphics
26020 filename clipart/reference.png
26021 scaleBeforeRotation
26026 At the position of the cross-reference box the float number will appear
26030 \begin_layout Standard
26031 It is recommended that you use a protected space between the cross-reference
26032 name and its number to avoid line breaks between them.
26033 If a cross-reference refers to a non-existing label, you will see two question
26034 marks in the output instead of the reference.
26037 \begin_layout Standard
26038 You can change labels at any time by clicking on the label box.
26039 References to the changed label will automatically update their links to
26040 the new label text.
26043 \begin_layout Standard
26047 \begin_inset space ~
26051 \begin_inset space ~
26056 in the cross-reference window sets the cursor before the referred label.
26057 The button text changes then to Go
26058 \begin_inset space ~
26061 Back and you can use it to set the cursor back to the cross-reference.
26064 \begin_layout Subsection
26065 Cross-Reference Formats
26066 \begin_inset CommandInset label
26068 name "subsec:Cross-Reference-Formats"
26073 \begin_inset Index idx
26076 \begin_layout Plain Layout
26077 References ! Formats
26085 \begin_layout Standard
26086 There are six varieties of cross-references:
26089 \begin_layout Description
26090 <reference>: prints the float number, this is the default:
26091 \begin_inset CommandInset ref
26093 reference "fig:Two-distorted-images"
26100 \begin_layout Description
26101 (<reference>): prints the float number within two parentheses, this is the
26102 style normally used to reference formulas, especially when the reference
26104 \begin_inset Quotes eld
26108 \begin_inset Quotes erd
26112 \begin_inset CommandInset ref
26121 \begin_layout Description
26122 <page>: prints the page number: Page
26123 \begin_inset space ~
26127 \begin_inset CommandInset ref
26128 LatexCommand pageref
26129 reference "fig:Two-distorted-images"
26136 \begin_layout Description
26138 \begin_inset space ~
26142 \begin_inset space ~
26145 <page>: prints the text "on page" and the page number:
26146 \begin_inset CommandInset ref
26147 LatexCommand vpageref
26148 reference "fig:Two-distorted-images"
26155 \begin_layout Description
26157 \begin_inset space ~
26161 \begin_inset space ~
26165 \begin_inset space ~
26168 <page>: prints the float number, the text "on page", and the page number:
26170 \begin_inset CommandInset ref
26172 reference "fig:Two-distorted-images"
26179 \begin_layout Description
26181 \begin_inset space ~
26184 reference: prints a self-defined cross-reference format.
26185 \begin_inset Newline newline
26189 \begin_inset Note Greyedout
26192 \begin_layout Plain Layout
26197 This feature is only available when you have the \SpecialChar LaTeX
26207 \begin_inset Index idx
26210 \begin_layout Plain Layout
26212 -packages ! prettyref
26218 \begin_inset Index idx
26221 \begin_layout Plain Layout
26223 -packages ! refstyle
26234 \begin_inset Newline newline
26237 You can select which \SpecialChar LaTeX
26238 -package should be used for this feature by setting
26241 Use refstyle (not prettyref) for cross-references
26245 Document\SpecialChar menuseparator
26246 Settings\SpecialChar menuseparator
26250 The format is specified by adding the command
26262 (refstyle) to the preamble of the document.
26263 For example redefining all references to figures (which have the label
26265 \begin_inset Quotes eld
26273 \begin_inset Quotes erd
26276 ) can be done with this command
26277 \begin_inset Newline newline
26284 newref{fig}{refcmd={Image on page
26289 \begin_inset Newline newline
26292 For more information about the format, have a look at the package documentations
26294 \begin_inset CommandInset citation
26296 key "prettyref,refstyle"
26302 \change_inserted 424524441 1483414725
26304 \begin_inset Newline newline
26307 The `Plural' and `Capitalized' options will be available with formatted
26308 references only if you are using the
26313 See its documentation, again, for more information.
26318 \begin_layout Description
26320 \begin_inset space ~
26323 reference: prints the caption of the reference:
26324 \begin_inset CommandInset ref
26325 LatexCommand nameref
26326 reference "fig:Two-distorted-images"
26331 \change_inserted 424524441 1483414735
26335 \begin_layout Description
26337 \change_inserted 424524441 1483817911
26339 \begin_inset space ~
26342 only: prints only the \SpecialChar LaTeX
26343 label for the reference.
26344 This allows for customization, using ERT, if you want to issue a command
26345 that LyX does not support.
26350 , then you may want to use the
26351 \begin_inset Quotes eld
26355 \begin_inset Quotes erd
26358 option, which will output only the part of the reference following the
26360 \begin_inset Quotes eld
26364 \begin_inset Quotes erd
26368 This is the form needed for, e.g.,
26377 \begin_layout Standard
26382 will not print the page number if the label is on the previous, the same,
26385 \begin_inset space \thinspace{}
26389 \begin_inset space \space{}
26393 \begin_inset Quotes eld
26401 \begin_inset Quotes erd
26407 <reference> on page <page>
26409 will not print anything about the page if the label is on the same page.
26412 \begin_layout Standard
26413 The number and current page of the part of the document referred to in the
26414 output is automatically calculated by \SpecialChar LaTeX
26416 The varieties are adjusted in the field
26420 of the cross-reference window that appears when you click on the cross-referenc
26424 \begin_layout Standard
26425 \begin_inset Note Greyedout
26428 \begin_layout Plain Layout
26433 It is recommended to use the \SpecialChar LaTeX
26439 \begin_inset Index idx
26442 \begin_layout Plain Layout
26444 -packages ! refstyle
26454 \begin_inset Index idx
26457 \begin_layout Plain Layout
26459 -packages ! prettyref
26464 does not know all of \SpecialChar LyX
26465 's possible label shortcuts
26469 \begin_layout Plain Layout
26470 \begin_inset Quotes eld
26474 \begin_inset Quotes erd
26477 is for example \SpecialChar LyX
26478 's shortcut for labels in figure captions.
26483 and is not internationalized.
26491 \begin_layout Subsection
26492 Automatic Reference Naming
26493 \begin_inset Index idx
26496 \begin_layout Plain Layout
26497 References ! Automatic Reference Naming
26505 \begin_layout Standard
26506 The \SpecialChar LaTeX
26512 \begin_inset Index idx
26515 \begin_layout Plain Layout
26517 -packages ! hyperref
26522 , that is enabled in the
26530 dialog, provides a very useful feature that cross-references automatically
26531 include the name of the referenced floats (or text parts like
26536 So you will save having to write e.
26537 \begin_inset space \thinspace{}
26541 \begin_inset space \space{}
26545 \begin_inset Quotes eld
26549 \begin_inset Quotes erd
26552 before every reference to a figure.
26553 To use this feature, enable
26557 and insert this line to the \SpecialChar LaTeX
26561 \begin_layout Standard
26577 \begin_layout Standard
26578 When you prefer other reference names than the default ones, for example
26579 you want instead of
26580 \begin_inset Quotes eld
26584 \begin_inset Quotes erd
26588 \begin_inset Quotes eld
26592 \begin_inset space \thinspace{}
26596 \begin_inset Quotes eld
26599 , you can redefine the name by inserting this in the preamble:
26602 \begin_layout Standard
26613 sectionautorefname}
26614 \begin_inset Newline newline
26618 \begin_inset Phantom HPhantom
26621 \begin_layout Plain Layout
26624 \begin_inset space ~
26637 \begin_layout Standard
26638 When you are using another document language than English, replace
26639 \begin_inset Newline newline
26654 , where *** is the name of the language used.
26657 \begin_layout Standard
26658 To get automatic names, but not for certain reference types, for example
26659 not for equations, use this preamble code:
26662 \begin_layout Standard
26673 equationautorefname}[1]{}}
26676 \begin_layout Standard
26677 More about this topic can be found in
26682 \begin_inset CommandInset citation
26692 \begin_layout Standard
26693 \begin_inset Note Greyedout
26696 \begin_layout Plain Layout
26701 Automatic reference naming cannot be used when you use cross-references
26705 \begin_inset space ~
26710 style, as described in section
26711 \begin_inset space ~
26715 \begin_inset CommandInset ref
26717 reference "subsec:Cross-Reference-Formats"
26729 \begin_layout Standard
26734 manual is an example where automatic reference naming is used.
26737 \begin_layout Subsection
26739 \begin_inset CommandInset label
26741 name "subsec:Reference-Position"
26746 \begin_inset Index idx
26749 \begin_layout Plain Layout
26750 References ! Reference Position
26758 \begin_layout Standard
26764 \begin_inset Index idx
26767 \begin_layout Plain Layout
26769 -packages ! hyperref
26782 dialog to link cross-references in the output, you will see that clicking
26783 on an image float reference jumps to the image label.
26784 The caption will be the first text part on the screen, so that you cannot
26785 see the image without scrolling.
26786 This is because the reference link anchor is placed at the position of
26788 With the use of the package
26793 \begin_inset Index idx
26796 \begin_layout Plain Layout
26803 , which is part of the \SpecialChar LaTeX
26809 \begin_inset Index idx
26812 \begin_layout Plain Layout
26814 -packages ! oberdiek
26819 , the link anchor is placed at the beginning of a float.
26820 To use this feature for figure floats, load
26824 in the document preamble with the line
26827 \begin_layout Standard
26832 usepackage[figure]{hypcap}
26835 \begin_layout Standard
26840 for all float types but this is not recommended for stability reasons.
26841 For more information, have a look at
26846 \begin_inset CommandInset citation
26856 \begin_layout Standard
26857 \begin_inset Note Greyedout
26860 \begin_layout Plain Layout
26869 has no effect on references to subfigures.
26877 \begin_layout Section
26879 \begin_inset CommandInset label
26881 name "sec:Float-Placement"
26886 \begin_inset Index idx
26889 \begin_layout Plain Layout
26898 \begin_layout Standard
26899 Right-clicking on a float-box and clicking on
26903 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
26905 positioning the float.
26906 \begin_inset Newline newline
26912 \begin_inset space ~
26917 is only useful for two-column documents: If you select it, the float will
26918 span both columns on the page instead of being confined to just one.
26919 \begin_inset Newline newline
26925 \begin_inset space ~
26930 is used to rotate floats, see section
26931 \begin_inset CommandInset ref
26933 reference "sec:Rotated-Floats"
26940 \begin_layout Standard
26941 You can use one or more of the following options in the float dialog to
26942 set the placement for a particular float when you uncheck the option
26945 \begin_inset space ~
26949 \begin_inset space ~
26957 \begin_layout Description
26959 \begin_inset space ~
26963 \begin_inset space ~
26966 possible try to place the float on the position where it has been inserted
26969 \begin_layout Description
26971 \begin_inset space ~
26975 \begin_inset space ~
26978 page try to place the float at the top of the current page
26981 \begin_layout Description
26983 \begin_inset space ~
26987 \begin_inset space ~
26990 page try to place the float at the bottom of the current page
26993 \begin_layout Description
26995 \begin_inset space ~
26999 \begin_inset space ~
27002 floats try to place the float on its own page
27005 \begin_layout Standard
27006 The order of the above option is
27010 used by \SpecialChar LaTeX
27012 That means, if you use the default placement, \SpecialChar LaTeX
27016 \begin_inset space ~
27020 \begin_inset space ~
27028 \begin_inset space ~
27032 \begin_inset space ~
27037 , and then the others.
27038 If you do not use the default, \SpecialChar LaTeX
27039 will try only the checked options but in
27042 \begin_inset space ~
27045 placements is possible the procedure is internally repeated trying to put
27046 the float on the following page.
27049 \begin_layout Standard
27050 By default, each option has its own rules:
27053 \begin_layout Labeling
27054 \labelwidthstring 00.00.0000
27058 \begin_inset space ~
27062 \begin_inset space ~
27067 only floats occupying less than 70
27068 \begin_inset space \thinspace{}
27071 % of the page can be placed at the top of a page (
27080 \begin_layout Labeling
27081 \labelwidthstring 00.00.0000
27085 \begin_inset space ~
27089 \begin_inset space ~
27094 : only floats occupying less than 30
27095 \begin_inset space \thinspace{}
27098 % of the page can be placed at the bottom of a page.
27108 \begin_layout Labeling
27109 \labelwidthstring 00.00.0000
27113 \begin_inset space ~
27117 \begin_inset space ~
27122 : only if more than 50
27123 \begin_inset space \thinspace{}
27126 % of the page is occupied by floats, several floats can be set together
27137 \begin_layout Standard
27138 If you don't like these rules, you can ignore them by using the additional
27142 \begin_inset space ~
27147 \begin_inset space ~
27153 \begin_inset Newline newline
27156 You can also redefine the rules with \SpecialChar LaTeX
27157 -commands that are given in parentheses
27158 after the rules description above.
27159 To increase for example the often too small default of the bottom-rule
27161 \begin_inset space \thinspace{}
27164 % of the page, add this line to your document preamble:
27167 \begin_layout Standard
27174 bottomfraction}{0.5}
27177 \begin_layout Standard
27178 Sometimes you might need, under all circumstances, a float to be placed
27179 exactly at the position where it is inserted.
27180 For this case you can use the option
27183 \begin_inset space ~
27189 Use this option very rarely and only if the document is almost ready to
27190 be printed, because the float is then no longer able to
27191 \begin_inset Quotes eld
27195 \begin_inset Quotes erd
27198 when you change your document and this will often destroy the page layout.
27201 \begin_layout Standard
27202 There are no placement options for text wrap floats, because they are always
27203 surrounded by the text of a certain paragraph.
27204 \begin_inset VSpace bigskip
27210 \begin_layout Standard
27211 Sometimes you have the problem that a float is placed at the top of a page
27212 while its corresponding section starts at the middle of the page, so that
27213 the reader could think the float is part of the previous section.
27214 To avoid this the \SpecialChar LaTeX
27222 It suppresses a given float placement for the page where it is inserted
27223 and can therefore be used to avoid floats being set before a section starts.
27224 To get this, add these commands to your document preamble:
27227 \begin_layout Standard
27237 \begin_inset Newline newline
27251 \begin_layout Standard
27252 You can define the same for all section headings, like chapters and subsections.
27253 This definition is not recommended to be used for small text parts like
27254 subsubsections because \SpecialChar LaTeX
27255 may then have problems finding a suitable placement.
27258 \begin_layout Standard
27259 \begin_inset VSpace bigskip
27262 In some cases it is required to have all figures/tables at the end of the
27264 For this purpose the \SpecialChar LaTeX
27270 \begin_inset Index idx
27273 \begin_layout Plain Layout
27275 -packages ! endfloat
27281 It puts all figure and table floats at the end of the document into their
27283 At the original float position a text hint like
27284 \begin_inset Quotes eld
27290 \begin_inset space ~
27296 \begin_inset Quotes erd
27300 The endfloat-package is loaded in the preamble with the line
27303 \begin_layout Standard
27308 usepackage[options]{endfloat}
27311 \begin_layout Standard
27312 There are various package options to format the created figure/table sections.
27313 For more information we refer you to the
27318 \begin_inset CommandInset citation
27326 \begin_inset Newline newline
27330 \begin_inset Note Greyedout
27333 \begin_layout Plain Layout
27338 doesn't provide an automatic translation for the text hint, you have to
27339 do this manually, see section
27340 \begin_inset space ~
27344 \begin_inset CommandInset citation
27357 \begin_inset Newline newline
27361 \begin_inset Note Greyedout
27364 \begin_layout Plain Layout
27369 There is currently a bug in
27373 when the caption contains a German
27374 \begin_inset Quotes eld
27378 \begin_inset Quotes erd
27382 Use in this case the command
27383 \begin_inset Quotes eld
27393 \begin_inset Quotes erd
27396 in \SpecialChar TeX
27398 \begin_inset Quotes eld
27402 \begin_inset Quotes erd
27413 \begin_layout Standard
27414 \begin_inset VSpace bigskip
27417 For more details about float placements, have a look at \SpecialChar LaTeX
27419 \begin_inset CommandInset citation
27421 key "latexcompanion,latexguide,latexbook"
27429 \begin_layout Section
27431 \begin_inset CommandInset label
27433 name "sec:Rotated-Floats"
27438 \begin_inset Index idx
27441 \begin_layout Plain Layout
27450 \begin_layout Standard
27451 Especially for wide tables you might have floats rotated.
27452 To rotate a whole float including the caption, right-click on the float-box
27456 \begin_inset space ~
27464 \begin_layout Standard
27465 Rotated floats are always placed on a page of their own (or column of their
27466 own; in case you have a multi-column document).
27467 You can let them span several columns using the float settings option
27470 \begin_inset space ~
27476 Floats are rotated so that you can read them from the outside margin.
27477 To force a certain rotation direction for all pages, you can add either
27486 to the document class options.
27489 \begin_layout Standard
27490 Referencing rotated floats is the same as for normal floats, the caption
27491 format is also the same: Table
27492 \begin_inset space ~
27496 \begin_inset CommandInset ref
27498 reference "tab:Rotated-table"
27502 is an example of a rotated table float.
27505 \begin_layout Standard
27506 \begin_inset Note Greyedout
27509 \begin_layout Plain Layout
27514 Not all DVI-viewers are able to display rotated floats.
27522 \begin_layout Standard
27523 \begin_inset Float table
27528 \begin_layout Plain Layout
27529 \begin_inset Caption Standard
27531 \begin_layout Plain Layout
27532 \begin_inset CommandInset label
27534 name "tab:Rotated-table"
27546 \begin_layout Plain Layout
27548 \begin_inset Tabular
27549 <lyxtabular version="3" rows="1" columns="5">
27550 <features tabularvalignment="middle">
27551 <column alignment="center" valignment="top">
27552 <column alignment="center" valignment="top">
27553 <column alignment="center" valignment="top">
27554 <column alignment="center" valignment="top">
27555 <column alignment="center" valignment="top">
27557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27560 \begin_layout Plain Layout
27566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27569 \begin_layout Plain Layout
27575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27578 \begin_layout Plain Layout
27584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27587 \begin_layout Plain Layout
27593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27596 \begin_layout Plain Layout
27615 \begin_layout Section
27617 \begin_inset Index idx
27620 \begin_layout Plain Layout
27629 \begin_layout Standard
27630 Subfloats are for example used when a figure consists of several images.
27631 They are created by inserting a float into an existing float.
27632 The placement of the subfloats can be controlled in the same way as for
27633 paragraphs as shown in table
27634 \begin_inset space ~
27638 \begin_inset CommandInset ref
27640 reference "tab:Two-subtables-side"
27645 \begin_inset CommandInset ref
27647 reference "tab:Two-subtables-upon"
27654 \begin_layout Standard
27655 Referencing subfloats works as for normal floats: Table
27656 \begin_inset space ~
27660 \begin_inset CommandInset ref
27662 reference "tab:This-is-subtable-a"
27667 \begin_inset CommandInset ref
27669 reference "tab:This-is-subtable-b"
27673 are subtables of table
27674 \begin_inset space ~
27678 \begin_inset CommandInset ref
27680 reference "tab:Two-subtables-side"
27687 \begin_layout Standard
27688 \begin_inset Float table
27693 \begin_layout Plain Layout
27694 \begin_inset Caption Standard
27696 \begin_layout Plain Layout
27697 \begin_inset CommandInset label
27699 name "tab:Two-subtables-side"
27703 Two subtables placed side by side.
27711 \begin_layout Plain Layout
27713 \begin_inset space \hfill{}
27717 \begin_inset Float table
27722 \begin_layout Plain Layout
27723 \begin_inset Caption Standard
27725 \begin_layout Plain Layout
27726 \begin_inset CommandInset label
27728 name "tab:This-is-subtable-a"
27732 This is subtable a.
27740 \begin_layout Plain Layout
27742 \begin_inset Tabular
27743 <lyxtabular version="3" rows="1" columns="5">
27744 <features tabularvalignment="middle">
27745 <column alignment="center" valignment="top">
27746 <column alignment="center" valignment="top">
27747 <column alignment="center" valignment="top">
27748 <column alignment="center" valignment="top">
27749 <column alignment="center" valignment="top">
27751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27754 \begin_layout Plain Layout
27760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27763 \begin_layout Plain Layout
27769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27772 \begin_layout Plain Layout
27778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27781 \begin_layout Plain Layout
27787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27790 \begin_layout Plain Layout
27807 \begin_inset space \hfill{}
27811 \begin_inset Float table
27816 \begin_layout Plain Layout
27817 \begin_inset Caption Standard
27819 \begin_layout Plain Layout
27820 \begin_inset CommandInset label
27822 name "tab:This-is-subtable-b"
27826 This is subtable b.
27834 \begin_layout Plain Layout
27836 \begin_inset Tabular
27837 <lyxtabular version="3" rows="1" columns="5">
27838 <features tabularvalignment="middle">
27839 <column alignment="center" valignment="top">
27840 <column alignment="center" valignment="top">
27841 <column alignment="center" valignment="top">
27842 <column alignment="center" valignment="top">
27843 <column alignment="center" valignment="top">
27845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27848 \begin_layout Plain Layout
27854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27857 \begin_layout Plain Layout
27863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27866 \begin_layout Plain Layout
27872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27875 \begin_layout Plain Layout
27881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27884 \begin_layout Plain Layout
27901 \begin_inset space \hfill{}
27912 \begin_layout Standard
27913 \begin_inset Float table
27918 \begin_layout Plain Layout
27919 \begin_inset Caption Standard
27921 \begin_layout Plain Layout
27922 \begin_inset CommandInset label
27924 name "tab:Two-subtables-upon"
27928 Two subtables placed one above the other.
27929 (a) table with 4 cells, (b) table with 5 cells.
27937 \begin_layout Plain Layout
27939 \begin_inset Float table
27944 \begin_layout Plain Layout
27945 \begin_inset Caption Standard
27947 \begin_layout Plain Layout
27956 \begin_layout Plain Layout
27958 \begin_inset Tabular
27959 <lyxtabular version="3" rows="1" columns="4">
27960 <features tabularvalignment="middle">
27961 <column alignment="center" valignment="top">
27962 <column alignment="center" valignment="top">
27963 <column alignment="center" valignment="top">
27964 <column alignment="center" valignment="top">
27966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27969 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27987 \begin_layout Plain Layout
27993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27996 \begin_layout Plain Layout
28015 \begin_layout Plain Layout
28017 \begin_inset Float table
28022 \begin_layout Plain Layout
28023 \begin_inset Caption Standard
28025 \begin_layout Plain Layout
28034 \begin_layout Plain Layout
28036 \begin_inset Tabular
28037 <lyxtabular version="3" rows="1" columns="5">
28038 <features tabularvalignment="middle">
28039 <column alignment="center" valignment="top">
28040 <column alignment="center" valignment="top">
28041 <column alignment="center" valignment="top">
28042 <column alignment="center" valignment="top">
28043 <column alignment="center" valignment="top">
28045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28048 \begin_layout Plain Layout
28054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28057 \begin_layout Plain Layout
28063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28066 \begin_layout Plain Layout
28072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28075 \begin_layout Plain Layout
28081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28084 \begin_layout Plain Layout
28108 \begin_layout Section
28109 Floats Side by Side
28110 \begin_inset Index idx
28113 \begin_layout Plain Layout
28114 Floats ! Side by side
28122 \begin_layout Standard
28123 To place floats side by side, as in Figures
28124 \begin_inset space ~
28128 \begin_inset CommandInset ref
28130 reference "fig:Float-left"
28135 \begin_inset CommandInset ref
28137 reference "fig:Float-right"
28146 In it two minipage boxes are inserted.
28150 \begin_layout Plain Layout
28151 Minipages are explained in section
28152 \begin_inset space ~
28156 \begin_inset CommandInset ref
28158 reference "sec:Minipages"
28167 The width is set to 45
28168 \begin_inset space \thinspace{}
28172 \begin_inset space \thinspace{}
28175 column% and the box alignment to
28180 The minipage boxes contain the image and the caption in the same way as
28181 they are in a float.
28182 The only difference is that the image unit
28185 \begin_inset space ~
28189 \begin_inset space ~
28194 is now calculated according to the width of the minipage boxes.
28197 \begin_layout Standard
28198 \begin_inset Float figure
28203 \begin_layout Plain Layout
28204 \begin_inset Box Frameless
28214 height_special "totalheight"
28219 backgroundcolor "none"
28222 \begin_layout Plain Layout
28224 \begin_inset Graphics
28225 filename clipart/mobius.eps
28228 scaleBeforeRotation
28235 \begin_layout Plain Layout
28236 \begin_inset Caption Standard
28238 \begin_layout Plain Layout
28239 \begin_inset CommandInset label
28241 name "fig:Float-left"
28245 Float on the left side.
28256 \begin_inset space \hfill{}
28260 \begin_inset Box Frameless
28270 height_special "totalheight"
28275 backgroundcolor "none"
28278 \begin_layout Plain Layout
28280 \begin_inset Graphics
28281 filename clipart/platypus.eps
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-right"
28301 Float on the right side.
28319 \begin_layout Standard
28320 An alternative and simpler solution is to use the module
28322 Variable-width Minipages
28325 \begin_inset space \thinspace{}
28329 \begin_inset CommandInset ref
28331 reference "sec:Minipages"
28336 Variable-width minipages adapt automatically to the width of the figures
28338 They do not require an explicit width to be given, and they improve the
28339 horizontal alignment of the figures.
28340 The LyX example file
28342 varwidth-floats-side-by-side
28344 gives examples of how to do this.
28347 \begin_layout Section
28349 \begin_inset Index idx
28352 \begin_layout Plain Layout
28353 Caption ! Formatting
28359 \begin_inset Index idx
28362 \begin_layout Plain Layout
28363 Floats ! Caption Formatting
28369 \begin_inset CommandInset label
28371 name "sec:Caption-Formatting"
28378 \begin_layout Standard
28383 environment is the default paragraph environment for
28388 On the \SpecialChar LyX
28389 screen captions appear as a label, e.
28390 \begin_inset space \thinspace{}
28394 \begin_inset space \space{}
28398 \begin_inset Quotes eld
28406 \begin_inset Quotes erd
28409 followed by the caption text.
28411 \begin_inset Quotes eld
28415 \begin_inset Quotes erd
28418 is the actual reference number.
28419 By default the label and the number are in the same font as the caption
28420 text and a colon follows the number to divide the label from the text.
28421 This caption format is suitable for many but not all documents.
28425 \begin_layout Standard
28426 To change the default caption format, load the \SpecialChar LaTeX
28432 \begin_inset Index idx
28435 \begin_layout Plain Layout
28437 -packages ! caption
28442 in the document preamble with this line:
28445 \begin_layout Standard
28450 usepackage[format definition]{caption}
28453 \begin_layout Standard
28454 To have for example the label and the number in sans-serif, bold font and
28455 the table captions always above the table as in this document, use the
28459 \begin_layout Standard
28464 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
28467 \begin_layout Standard
28468 You can also define different caption formats for the different float types.
28469 In this case load the
28473 package without format specific options and define the different formats
28474 with the help of the command
28477 \begin_layout Standard
28482 captionsetup[float type]{format definition}
28485 \begin_layout Standard
28486 in the document preamble.
28487 For example the caption formats of Figure
28488 \begin_inset space ~
28492 \begin_inset CommandInset ref
28494 reference "fig:This-is-an-fig"
28499 \begin_inset space ~
28503 \begin_inset CommandInset ref
28505 reference "tab:This-is-an-tab"
28509 can be created using these commands in the document preamble:
28512 \begin_layout Standard
28517 usepackage[tableposition=top]{caption}
28520 \begin_inset Newline newline
28527 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
28528 \begin_inset Newline newline
28532 \begin_inset Phantom HPhantom
28535 \begin_layout Plain Layout
28540 captionsetup[figure]{
28546 \begin_inset Newline newline
28551 captionsetup[table]{labelfont={bf,sf}}
28554 \begin_layout Standard
28555 \begin_inset Note Greyedout
28558 \begin_layout Plain Layout
28567 has no effect when a
28572 \begin_inset Index idx
28575 \begin_layout Plain Layout
28577 -packages ! KOMA-Script
28582 document class is used.
28583 In this case the document class option
28585 captions=tableheading
28595 \begin_layout Standard
28596 For more information about the package
28600 we refer to its documentation
28601 \begin_inset CommandInset citation
28611 \begin_layout Standard
28612 To change the label name from e.
28613 \begin_inset space \thinspace{}
28617 \begin_inset space \space{}
28621 \begin_inset Quotes eld
28625 \begin_inset Quotes erd
28629 \begin_inset Quotes eld
28633 \begin_inset Quotes erd
28636 use this preamble command:
28639 \begin_layout Standard
28646 fnum@figure}{Image~
28651 \begin_layout Standard
28658 inserts the figure number and
28661 \begin_inset Quotes eld
28667 \begin_inset Quotes erd
28670 creates a protected space.
28673 \begin_layout Standard
28674 \begin_inset VSpace bigskip
28682 \begin_inset Index idx
28685 \begin_layout Plain Layout
28687 -packages ! KOMA-Script
28694 article (KOMA-Script)
28702 letter (KOMA-Script)
28706 report (KOMA-Script)
28709 \begin_inset space \thinspace{}
28712 ), you can alternatively to the
28720 's built-in command
28727 For example, to have the caption label in bold, add this command to your
28731 \begin_layout Standard
28736 setkomafont{captionlabel}{
28741 \begin_layout Standard
28742 For more information about
28753 \begin_inset CommandInset citation
28763 \begin_layout Standard
28767 \begin_layout Plain Layout
28771 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
28778 \begin_inset Note Note
28781 \begin_layout Plain Layout
28782 The caption format is changed only for this example.
28790 \begin_layout Standard
28791 \begin_inset Float figure
28797 \begin_layout Plain Layout
28799 \begin_inset Graphics
28800 filename clipart/mobius.eps
28803 scaleBeforeRotation
28810 \begin_layout Plain Layout
28811 \begin_inset Caption Standard
28813 \begin_layout Plain Layout
28814 \begin_inset CommandInset label
28816 name "fig:This-is-an-fig"
28820 This is an example figure caption that is longer than one line to show the
28821 different caption format.
28822 Here a self-defined caption format is used.
28835 \begin_layout Standard
28839 \begin_layout Plain Layout
28843 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
28852 \begin_layout Standard
28853 \begin_inset Float table
28859 \begin_layout Plain Layout
28860 \begin_inset Caption Standard
28862 \begin_layout Plain Layout
28863 \begin_inset CommandInset label
28865 name "tab:This-is-an-tab"
28869 This is an example table caption that is longer than one line to show the
28870 different caption format.
28871 Here the standard caption format for tables in this document is used.
28879 \begin_layout Plain Layout
28881 \begin_inset Tabular
28882 <lyxtabular version="3" rows="1" columns="5">
28883 <features tabularvalignment="middle">
28884 <column alignment="center" valignment="top">
28885 <column alignment="center" valignment="top">
28886 <column alignment="center" valignment="top">
28887 <column alignment="center" valignment="top">
28888 <column alignment="center" valignment="top">
28890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28893 \begin_layout Plain Layout
28899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28902 \begin_layout Plain Layout
28908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28911 \begin_layout Plain Layout
28917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28920 \begin_layout Plain Layout
28926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28929 \begin_layout Plain Layout
28948 \begin_layout Section
28950 \begin_inset Index idx
28953 \begin_layout Plain Layout
28954 Caption ! Placement
28960 \begin_inset Index idx
28963 \begin_layout Plain Layout
28964 Floats ! Caption Placement
28970 \begin_inset CommandInset label
28972 name "sec:Caption-Placement"
28979 \begin_layout Standard
28980 The common caption placement rule is:
28983 \begin_layout Description
28984 Figure: Caption is set below the figure
28987 \begin_layout Description
28988 Table: Caption is set above the table
28991 \begin_layout Standard
28992 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
28995 That means if you are using the document classes
29011 there will be no space between the caption and the table.
29012 To insert the necessary space, load the \SpecialChar LaTeX
29018 \begin_inset Index idx
29021 \begin_layout Plain Layout
29023 -packages ! caption
29028 in your document preamble with the option
29032 \begin_layout Plain Layout
29034 \begin_inset space ~
29038 \begin_inset CommandInset ref
29040 reference "sec:Caption-Formatting"
29044 for more information of the package
29056 \begin_layout Standard
29062 \begin_layout Standard
29068 \begin_inset Index idx
29071 \begin_layout Plain Layout
29073 -packages ! KOMA-Script
29080 article (KOMA-Script)
29088 letter (KOMA-Script)
29092 report (KOMA-Script)
29095 \begin_inset space \thinspace{}
29098 ), you can alternatively to the
29102 package set the document class option
29106 \begin_layout Plain Layout
29107 That option is used in this document.
29115 \begin_layout Standard
29118 captions=tableheading
29121 \begin_layout Standard
29122 In documents with a KOMA-Script document class you can also right-click
29123 on a caption and mark in the context menu if this should be a caption above
29124 or below the table/figure.
29125 This way you can override the document-wide caption placement for certain
29128 \begin_inset space ~
29132 \begin_inset CommandInset ref
29134 reference "tab:A-caption-marked"
29138 is an example where the caption is marked a being below the table while
29140 For comparison the caption in Table
29141 \begin_inset space ~
29145 \begin_inset CommandInset ref
29147 reference "tab:A-standard-table"
29154 \begin_layout Standard
29155 \begin_inset Float table
29160 \begin_layout Plain Layout
29161 \begin_inset Caption Below
29163 \begin_layout Plain Layout
29164 \begin_inset CommandInset label
29166 name "tab:A-caption-marked"
29170 A caption marked as being below the table.
29178 \begin_layout Plain Layout
29180 \begin_inset Tabular
29181 <lyxtabular version="3" rows="3" columns="3">
29182 <features tabularvalignment="middle">
29183 <column alignment="center" valignment="top" width="0pt">
29184 <column alignment="center" valignment="top" width="0pt">
29185 <column alignment="center" valignment="top" width="0pt">
29187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29190 \begin_layout Plain Layout
29196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29199 \begin_layout Plain Layout
29205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29208 \begin_layout Plain Layout
29216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29219 \begin_layout Plain Layout
29225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29228 \begin_layout Plain Layout
29234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29237 \begin_layout Plain Layout
29245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29248 \begin_layout Plain Layout
29249 \begin_inset Formula $\int x^{2}dx$
29257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29260 \begin_layout Plain Layout
29261 \begin_inset Formula $\left[\begin{array}{cc}
29264 \end{array}\right]$
29272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29275 \begin_layout Plain Layout
29276 \begin_inset Formula $1+1=2$
29297 \begin_layout Standard
29298 \begin_inset Float table
29303 \begin_layout Plain Layout
29304 \begin_inset Caption Standard
29306 \begin_layout Plain Layout
29307 \begin_inset CommandInset label
29309 name "tab:A-standard-table"
29313 A standard table caption.
29321 \begin_layout Plain Layout
29323 \begin_inset Tabular
29324 <lyxtabular version="3" rows="3" columns="3">
29325 <features tabularvalignment="middle">
29326 <column alignment="center" valignment="top" width="0pt">
29327 <column alignment="center" valignment="top" width="0pt">
29328 <column alignment="center" valignment="top" width="0pt">
29330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29333 \begin_layout Plain Layout
29339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29342 \begin_layout Plain Layout
29348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29351 \begin_layout Plain Layout
29359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29362 \begin_layout Plain Layout
29368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29371 \begin_layout Plain Layout
29377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29380 \begin_layout Plain Layout
29388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29391 \begin_layout Plain Layout
29392 \begin_inset Formula $\int x^{2}dx$
29400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29403 \begin_layout Plain Layout
29404 \begin_inset Formula $\left[\begin{array}{cc}
29407 \end{array}\right]$
29415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29418 \begin_layout Plain Layout
29419 \begin_inset Formula $1+1=2$
29440 \begin_layout Standard
29441 \begin_inset VSpace bigskip
29444 It is also possible to set the caption beside a figure or table.
29445 To get this the \SpecialChar LaTeX
29451 \begin_inset Index idx
29454 \begin_layout Plain Layout
29456 -packages ! sidecap
29461 has to be loaded in the document preamble with the line
29464 \begin_layout Standard
29469 usepackage[option]{sidecap}
29472 \begin_layout Standard
29473 If you set no option, the caption is placed on the side of the outer page
29474 margin – to the right on odd pages, to the left on even pages.
29475 You can change the placement to inner margin with the option
29480 To force the placement always to the right or left, use the option
29491 \begin_layout Standard
29495 \begin_layout Plain Layout
29505 \begin_inset Note Note
29508 \begin_layout Plain Layout
29509 The following section will only be displayed when the \SpecialChar LaTeX
29522 \begin_layout Standard
29523 To place in \SpecialChar LyX
29524 the caption of a float on the side, it is necessary to add
29525 these commands to the document preamble:
29528 \begin_layout Standard
29530 \begin_inset CommandInset line
29541 \begin_layout Standard
29548 TabBesBeg}[1][1.0]{%
29549 \begin_inset Newline newline
29553 \begin_inset Phantom HPhantom
29556 \begin_layout Plain Layout
29557 \begin_inset space ~
29572 \begin_inset Newline newline
29576 \begin_inset Phantom HPhantom
29579 \begin_layout Plain Layout
29582 \begin_inset space ~
29597 \begin_inset Newline newline
29601 \begin_inset Phantom HPhantom
29604 \begin_layout Plain Layout
29607 \begin_inset space ~
29617 renewenvironment{table}[1]{
29619 begin{SCtable}[#1]##1}{
29624 \begin_layout Standard
29632 \begin_inset Newline newline
29636 \begin_inset Phantom HPhantom
29639 \begin_layout Plain Layout
29640 \begin_inset space ~
29655 \begin_inset Newline newline
29659 \begin_inset Phantom HPhantom
29662 \begin_layout Plain Layout
29663 \begin_inset space ~
29680 \begin_layout Standard
29687 FigBesBeg}[1][1.0]{%
29688 \begin_inset Newline newline
29692 \begin_inset Phantom HPhantom
29695 \begin_layout Plain Layout
29696 \begin_inset space ~
29711 \begin_inset Newline newline
29715 \begin_inset Phantom HPhantom
29718 \begin_layout Plain Layout
29719 \begin_inset space ~
29734 \begin_inset Newline newline
29738 \begin_inset Phantom HPhantom
29741 \begin_layout Plain Layout
29742 \begin_inset space ~
29752 renewenvironment{figure}[1]{
29754 begin{SCfigure}[#1]##1}{
29759 \begin_layout Standard
29767 \begin_inset Newline newline
29771 \begin_inset Phantom HPhantom
29774 \begin_layout Plain Layout
29775 \begin_inset space ~
29790 \begin_inset Newline newline
29794 \begin_inset Phantom HPhantom
29797 \begin_layout Plain Layout
29798 \begin_inset space ~
29815 \begin_layout Standard
29817 \begin_inset CommandInset line
29828 \begin_layout Standard
29829 The commands allow you to redefine the floats so that the caption is set
29831 For figure floats use the command
29834 \begin_layout Standard
29842 \begin_layout Standard
29843 in \SpecialChar TeX
29844 Code before the float.
29845 And insert the command
29848 \begin_layout Standard
29856 \begin_layout Standard
29857 in \SpecialChar TeX
29858 Code at the point where you want to get back to the original float definitio
29862 \begin_layout Standard
29863 For table floats use the corresponding commands
29866 \begin_layout Standard
29880 \begin_layout Standard
29882 \begin_inset space ~
29886 \begin_inset CommandInset ref
29888 reference "fig:cap-beside-fig"
29893 \begin_inset space ~
29897 \begin_inset CommandInset ref
29899 reference "tab:cap-beside-tab"
29903 are examples where the caption is set beside.
29906 \begin_layout Standard
29907 You can see in the examples that the caption text appears at the top of
29908 the floats for table floats and at the bottom for figure floats.
29909 To change this, you can use the command
29912 \begin_layout Standard
29917 sidecaptionvpos{float type}{placement}
29920 \begin_layout Standard
29921 in the document preamble or in \SpecialChar TeX
29922 Code before the float.
29923 The float type is either
29931 , the placement can be
29932 \begin_inset Quotes eld
29940 \begin_inset Quotes erd
29944 \begin_inset Quotes eld
29952 \begin_inset Quotes erd
29956 \begin_inset Quotes eld
29964 \begin_inset Quotes erd
29968 To have for example the caption of figure floats vertically centered, use
29972 \begin_layout Standard
29977 sidecaptionvpos{figure}{c}
29980 \begin_layout Standard
29981 This was used for Figure
29982 \begin_inset space ~
29986 \begin_inset CommandInset ref
29988 reference "fig:cap-beside-fig-2"
29995 \begin_layout Standard
29996 \begin_inset VSpace medskip
30002 \begin_layout Standard
30003 The default caption width is the width of the image/table.
30004 For thin image/tables, like in Table
30005 \begin_inset space ~
30009 \begin_inset CommandInset ref
30011 reference "tab:cap-beside-tab"
30015 , this leads to captions that are too thin.
30016 You can increase the width by specifying a factor that will be multiplied
30017 with the image/table width to get the caption width.
30018 The caption width will automatically be recalculated in case it would protrude
30019 over the page or column margin due to the specified width.
30024 can either be given as optional argument for
30033 \begin_layout Standard
30041 \begin_layout Standard
30042 or in the definition of
30052 with another value.
30053 If you do the latter, your factor will be the default if
30059 is used without an argument.
30061 \begin_inset space ~
30065 \begin_inset CommandInset ref
30067 reference "tab:cap-beside-tab-wider"
30071 the factor 5 was used.
30074 \begin_layout Standard
30075 \begin_inset Note Greyedout
30078 \begin_layout Plain Layout
30083 For floats with captions set beside, you cannot use the float placement
30087 \begin_inset space ~
30092 because it is not supported by
30104 \begin_layout Standard
30105 \begin_inset VSpace medskip
30108 For more information about the package
30112 we refer to its documentation
30113 \begin_inset CommandInset citation
30123 \begin_layout Standard
30124 \begin_inset Note Greyedout
30127 \begin_layout Plain Layout
30132 The \SpecialChar LaTeX
30138 \begin_inset Index idx
30141 \begin_layout Plain Layout
30148 , described in section
30149 \begin_inset space ~
30153 \begin_inset CommandInset ref
30155 reference "subsec:Reference-Position"
30159 , has no effect on floats with the caption set beside.
30167 \begin_layout Standard
30171 \begin_layout Plain Layout
30183 \begin_layout Standard
30184 \begin_inset Float figure
30189 \begin_layout Plain Layout
30190 \begin_inset Graphics
30191 filename clipart/escher-lsd.eps
30193 scaleBeforeRotation
30200 \begin_layout Plain Layout
30201 \begin_inset Caption Standard
30203 \begin_layout Plain Layout
30204 \begin_inset CommandInset label
30206 name "fig:cap-beside-fig"
30210 This is a caption beside a figure.
30223 \begin_layout Standard
30227 \begin_layout Plain Layout
30239 \begin_layout Standard
30243 \begin_layout Plain Layout
30255 \begin_layout Standard
30256 \begin_inset Float table
30261 \begin_layout Plain Layout
30262 \begin_inset Caption Standard
30264 \begin_layout Plain Layout
30265 \begin_inset CommandInset label
30267 name "tab:cap-beside-tab"
30271 This is a caption beside a table.
30279 \begin_layout Plain Layout
30280 \begin_inset Tabular
30281 <lyxtabular version="3" rows="4" columns="5">
30282 <features tabularvalignment="middle">
30283 <column alignment="center" valignment="top">
30284 <column alignment="center" valignment="top">
30285 <column alignment="center" valignment="top">
30286 <column alignment="center" valignment="top">
30287 <column alignment="center" valignment="top">
30289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30292 \begin_layout Plain Layout
30298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30301 \begin_layout Plain Layout
30307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30310 \begin_layout Plain Layout
30316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30319 \begin_layout Plain Layout
30325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30328 \begin_layout Plain Layout
30336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30339 \begin_layout Plain Layout
30345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30348 \begin_layout Plain Layout
30354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30357 \begin_layout Plain Layout
30363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30366 \begin_layout Plain Layout
30372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30375 \begin_layout Plain Layout
30383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30386 \begin_layout Plain Layout
30392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30395 \begin_layout Plain Layout
30401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30404 \begin_layout Plain Layout
30410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30413 \begin_layout Plain Layout
30419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30422 \begin_layout Plain Layout
30430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30433 \begin_layout Plain Layout
30439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30442 \begin_layout Plain Layout
30448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30451 \begin_layout Plain Layout
30457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30460 \begin_layout Plain Layout
30466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30469 \begin_layout Plain Layout
30488 \begin_layout Standard
30492 \begin_layout Plain Layout
30504 \begin_layout Standard
30508 \begin_layout Plain Layout
30521 \begin_layout Plain Layout
30525 sidecaptionvpos{figure}{c}
30531 \begin_inset Float figure
30536 \begin_layout Plain Layout
30537 \begin_inset Graphics
30538 filename clipart/escher-lsd.eps
30540 scaleBeforeRotation
30547 \begin_layout Plain Layout
30548 \begin_inset Caption Standard
30550 \begin_layout Plain Layout
30551 \begin_inset CommandInset label
30553 name "fig:cap-beside-fig-2"
30557 This is a vertically centered caption beside a figure.
30570 \begin_layout Standard
30574 \begin_layout Plain Layout
30586 \begin_layout Standard
30590 \begin_layout Plain Layout
30602 \begin_layout Standard
30603 \begin_inset Float table
30608 \begin_layout Plain Layout
30609 \begin_inset Caption Standard
30611 \begin_layout Plain Layout
30612 \begin_inset CommandInset label
30614 name "tab:cap-beside-tab-wider"
30618 This caption is wider than the one in Table
30619 \begin_inset space ~
30623 \begin_inset CommandInset ref
30625 reference "tab:cap-beside-tab"
30637 \begin_layout Plain Layout
30638 \begin_inset Tabular
30639 <lyxtabular version="3" rows="4" columns="5">
30640 <features tabularvalignment="middle">
30641 <column alignment="center" valignment="top">
30642 <column alignment="center" valignment="top">
30643 <column alignment="center" valignment="top">
30644 <column alignment="center" valignment="top">
30645 <column alignment="center" valignment="top">
30647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30650 \begin_layout Plain Layout
30656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30659 \begin_layout Plain Layout
30665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30668 \begin_layout Plain Layout
30674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30677 \begin_layout Plain Layout
30683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30686 \begin_layout Plain Layout
30694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30697 \begin_layout Plain Layout
30703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30706 \begin_layout Plain Layout
30712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30715 \begin_layout Plain Layout
30721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30724 \begin_layout Plain Layout
30730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30733 \begin_layout Plain Layout
30741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30744 \begin_layout Plain Layout
30750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30753 \begin_layout Plain Layout
30759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30762 \begin_layout Plain Layout
30768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30771 \begin_layout Plain Layout
30777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30780 \begin_layout Plain Layout
30788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30791 \begin_layout Plain Layout
30797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30800 \begin_layout Plain Layout
30806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30809 \begin_layout Plain Layout
30815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30818 \begin_layout Plain Layout
30824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30827 \begin_layout Plain Layout
30846 \begin_layout Standard
30850 \begin_layout Plain Layout
30862 \begin_layout Standard
30866 \begin_layout Plain Layout
30876 \begin_inset Note Note
30879 \begin_layout Plain Layout
30880 The following will be displayed when the \SpecialChar LaTeX
30893 \begin_layout Standard
30894 You need to install the \SpecialChar LaTeX
30899 to see the following part of this section in the output.
30902 \begin_layout Standard
30906 \begin_layout Plain Layout
30918 \begin_layout Section
30920 \begin_inset Index idx
30923 \begin_layout Plain Layout
30924 Floats ! Float Lists
30932 \begin_layout Standard
30933 Similar to the table of contents where the sections of the document are
30934 listed, there are listings for all float types, like the figures of the
30936 You can insert them via the
30938 Insert\SpecialChar menuseparator
30940 \begin_inset space ~
30944 \begin_inset space ~
30952 \begin_layout Standard
30953 The list entries are the float captions or its short title, the float number,
30954 and the page number where they appear in the document.
30957 \begin_layout Standard
30958 You can find the list of figures and tables at the end of this document.
30961 \begin_layout Chapter
30965 \begin_layout Section
30968 \begin_inset Index idx
30971 \begin_layout Plain Layout
30972 Notes ! \SpecialChar LyX
30981 \begin_layout Standard
30982 Notes are inserted with the toolbar button
30990 Insert\SpecialChar menuseparator
30994 There are three types of notes:
30997 \begin_layout Description
31000 \begin_inset space ~
31003 Note This note type is for internal notes that won't appear in the output.
31004 Its note-box looks like this:
31005 \begin_inset Newline newline
31009 \begin_inset Newline newline
31013 \begin_inset Graphics
31014 filename clipart/LyXNoteImage.png
31016 scaleBeforeRotation
31021 \begin_inset Note Note
31024 \begin_layout Plain Layout
31025 This is text in a note box that doesn't appear in the output.
31033 \begin_layout Description
31034 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
31036 when you export the document to \SpecialChar LaTeX
31039 File\SpecialChar menuseparator
31040 Export\SpecialChar menuseparator
31042 \begin_inset space ~
31045 (pdflatex) / (plain)
31048 Its note-box looks like this:
31049 \begin_inset Newline newline
31053 \begin_inset Newline newline
31057 \begin_inset Graphics
31058 filename clipart/CommentNoteImage.png
31060 scaleBeforeRotation
31065 \begin_inset Note Comment
31068 \begin_layout Plain Layout
31069 This is text in a note box that only appears as comment in \SpecialChar LaTeX
31078 \begin_layout Description
31080 \begin_inset space ~
31083 Out This note will appear in the output as grey text.
31084 Its note-box looks like this:
31085 \begin_inset Newline newline
31089 \begin_inset Newline newline
31093 \begin_inset Graphics
31094 filename clipart/GreyedOutNoteImage.png
31096 scaleBeforeRotation
31101 \begin_inset Newline newline
31108 \begin_layout Plain Layout
31112 renewenvironment{lyxgreyedout}
31115 \begin_layout Plain Layout
31119 textcolor[gray]{0.8}
31129 \begin_inset Note Greyedout
31132 \begin_layout Plain Layout
31133 This is text of a comment that appears grey in the output.
31142 \begin_layout Plain Layout
31146 renewenvironment{lyxgreyedout}
31149 \begin_layout Plain Layout
31163 \begin_inset Note Note
31166 \begin_layout Plain Layout
31167 The greyed out note is here redefined to show it with the original \SpecialChar LyX
31169 because greyed out notes are redefined in the preamble of this document,
31170 as described below, to have blue text.
31176 \begin_inset Newline newline
31180 \begin_inset Newline newline
31183 As you can see in the example, the first line of greyed out notes is a bit
31184 indented and greyed out notes can have footnotes.
31187 \begin_layout Standard
31188 \begin_inset VSpace bigskip
31191 When you use the toolbar button
31201 \begin_inset space ~
31207 You can switch between the three note types by right-clicking on the note-box.
31212 If you want to turn existing text into a note, mark it and click on the
31226 To change a note to text, press the backspace key when the cursor is in
31227 the first position of a note, or press the delete key when the cursor is
31228 in the very last position of the note, respectively.
31231 \begin_layout Standard
31232 \begin_inset VSpace bigskip
31235 You can change the text color of the greyed out notes in the menu
31237 Document\SpecialChar menuseparator
31238 Settings\SpecialChar menuseparator
31244 \begin_layout Section
31246 \begin_inset CommandInset label
31248 name "sec:Footnotes"
31253 \begin_inset Index idx
31256 \begin_layout Plain Layout
31263 \begin_inset Index idx
31266 \begin_layout Plain Layout
31275 \begin_layout Standard
31276 Footnotes can be inserted using the toolbar button
31279 arg "footnote-insert"
31284 Insert\SpecialChar menuseparator
31288 You will then see the following footnote-box:
31289 \begin_inset Graphics
31290 filename clipart/footnote.png
31292 scaleBeforeRotation
31300 where you can enter the footnote text.
31301 If you want to turn existing text into a footnote, mark it and click on
31327 key when the cursor is in the first position of a
31339 key when the cursor is in the very last position of the
31350 \begin_layout Standard
31351 Here is an example footnote:
31359 \begin_layout Plain Layout
31360 \begin_inset CommandInset label
31362 name "foot:This-is-an"
31366 This is an example footnote.
31379 \begin_layout Plain Layout
31383 newcounter{MyRepeatFoot}
31386 \begin_layout Plain Layout
31390 setcounter{MyRepeatFoot}{
31400 \begin_layout Standard
31401 The footnote will appear in the output as a superscript number at the text
31402 position where the footnote box is placed.
31403 The footnote text is placed at the bottom of the current page.
31404 The footnote number is calculated by \SpecialChar LaTeX
31405 ; the numbers are consecutive.
31406 Whether the footnote number is reset for every chapter depends on your
31410 \begin_layout Standard
31411 Footnotes can be referenced like floats: Insert a label into the footnote
31412 and cross-reference this label in the text as described in section
31413 \begin_inset space ~
31417 \begin_inset CommandInset ref
31419 reference "sec:Referencing-Floats"
31424 \begin_inset Newline newline
31427 This is a cross-reference of Footnote
31428 \begin_inset space ~
31432 \begin_inset CommandInset ref
31434 reference "foot:This-is-an"
31441 \begin_layout Standard
31442 \begin_inset VSpace defskip
31445 Footnotes in title environments are usually not numbered with symbols and
31446 they cannot contain several paragraphs.
31447 See for example the footnote in the titling of this document.
31450 \begin_layout Standard
31451 \begin_inset VSpace defskip
31454 Footnotes in tables are not printed by \SpecialChar LaTeX
31455 due to technical reasons.
31456 However there exists another method to print them: Instead of the footnote
31463 is inserted as \SpecialChar TeX
31465 The text of the footnote is entered as an argument of the \SpecialChar TeX
31474 \begin_inset Newline newline
31477 This was done for the following table with the command
31480 \begin_layout Standard
31487 Printed table footnote.
31492 \begin_layout Standard
31493 \begin_inset Tabular
31494 <lyxtabular version="3" rows="2" columns="1">
31495 <features tabularvalignment="middle">
31496 <column alignment="center" valignment="top">
31498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31501 \begin_layout Plain Layout
31502 This an example text.
31506 \begin_layout Plain Layout
31507 This footnote will not be printed!
31519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31522 \begin_layout Plain Layout
31523 This an example text.
31527 \begin_layout Plain Layout
31550 \begin_layout Plain Layout
31559 Printed table footnote.
31563 \begin_layout Plain Layout
31573 \begin_layout Standard
31574 Footnotes in multi-page tables are described in section
31575 \begin_inset space ~
31579 \begin_inset CommandInset ref
31581 reference "subsec:Footnotes-in-Multi-page"
31588 \begin_layout Standard
31589 Footnotes in minipage boxes are printed, but inside the box and with a different
31590 numbering because a minipage box is like a page inside a page.
31591 (For more about minipages, see section
31592 \begin_inset space ~
31596 \begin_inset CommandInset ref
31598 reference "sec:Minipages"
31602 .) To get a footnote in the minipage that is output at the bottom of the
31603 page like normal footnotes, also use the method of
31618 \begin_layout Standard
31619 \begin_inset Box Frameless
31629 height_special "totalheight"
31634 backgroundcolor "none"
31637 \begin_layout Plain Layout
31638 This an example text in a minipage.
31642 \begin_layout Plain Layout
31643 Footnote in the minipage.
31651 \begin_layout Plain Layout
31652 This an example text in a minipage.
31656 \begin_layout Plain Layout
31673 \begin_layout Standard
31677 \begin_layout Plain Layout
31686 Footnote outside the minipage.
31690 \begin_layout Plain Layout
31700 \begin_layout Standard
31701 \begin_inset VSpace defskip
31707 \begin_layout Standard
31708 To refer to the same footnote several times without printing the footnote
31709 text every time, use the command
31713 footnotemark[number]
31715 in \SpecialChar TeX
31717 \begin_inset Newline newline
31720 As you do not know the number of the repeating footnote while you are writing
31721 the text, you have to store its number.
31722 For the following footnote mark example, these commands were inserted in
31724 code after Footnote
31725 \begin_inset space ~
31729 \begin_inset CommandInset ref
31731 reference "foot:This-is-an"
31735 to store the footnote number:
31738 \begin_layout Standard
31743 newcounter{MyRepeatFoot}
31744 \begin_inset Newline newline
31749 setcounter{MyRepeatFoot}{
31754 \begin_layout Standard
31755 The footnote mark was then created with this command:
31758 \begin_layout Standard
31768 \begin_layout Standard
31769 Here is a repeated footnote:
31777 \begin_layout Plain Layout
31791 \begin_layout Standard
31792 If you want to repeat the previous footnote, you can omit the storage of
31793 the footnote number and just use this command instead:
31796 \begin_layout Standard
31806 \begin_layout Standard
31807 Here is another repeated footnote:
31815 \begin_layout Plain Layout
31829 \begin_layout Subsection
31831 \begin_inset CommandInset label
31833 name "subsec:Footnote-Numbering"
31838 \begin_inset Index idx
31841 \begin_layout Plain Layout
31842 Footnotes ! Numbering
31850 \begin_layout Standard
31851 To reset the footnote number back to 1 after each section
31853 , add this command to your document preamble:
31856 \begin_layout Standard
31861 @addtoreset{footnote}{section}
31864 \begin_layout Standard
31865 \begin_inset VSpace bigskip
31868 The following preamble command changes the footnote numbering style to small
31872 \begin_layout Standard
31884 \begin_layout Standard
31888 \begin_layout Plain Layout
31901 This is a footnote with roman numbering:
31905 \begin_layout Plain Layout
31906 This is an example footnote with roman numbering.
31914 \begin_layout Standard
31915 To change the numbering style to capital roman numerals replace in the command
31930 \begin_inset Quotes eld
31934 \begin_inset Quotes erd
31937 footnotes with capital or small Latin letters use
31951 \begin_inset Quotes eld
31955 \begin_inset Quotes erd
31958 footnotes with symbols use
31967 \begin_layout Standard
31968 \begin_inset Note Greyedout
31971 \begin_layout Plain Layout
31976 You can only number 26 footnotes with Latin letters, because this numbering
31977 is limited to single letters.
31983 \begin_inset Newline newline
31987 \begin_inset Note Greyedout
31990 \begin_layout Plain Layout
31995 You can only number 9 footnotes with symbols.
32003 \begin_layout Standard
32004 To return to the default numbering style after you have changed to another
32017 in the command above.
32021 \begin_layout Plain Layout
32037 \begin_layout Standard
32038 \begin_inset VSpace bigskip
32044 \begin_layout Standard
32045 If you want to have footnotes numbered in the scheme
32046 \begin_inset Quotes eld
32050 \begin_inset Quotes erd
32053 , add the following command to your document preamble:
32056 \begin_layout Standard
32061 numberwithin{footnote}{chapter}
32064 \begin_layout Standard
32065 To be able to use the command
32074 \begin_inset space ~
32079 in the document settings the option
32082 \begin_inset space ~
32086 \begin_inset space ~
32090 \begin_inset space ~
32098 \begin_layout Standard
32102 \begin_layout Plain Layout
32106 numberwithin{footnote}{chapter}
32111 This is another example footnote:
32117 \begin_layout Plain Layout
32118 This is a footnote numbered in the scheme
32119 \begin_inset Quotes eld
32123 \begin_inset Quotes erd
32137 \begin_layout Plain Layout
32153 \begin_layout Standard
32154 \begin_inset Note Greyedout
32157 \begin_layout Plain Layout
32168 always prints out the footnote number as arabic number; previous redefinitions
32169 to get non-arabic numbers are overwritten.
32177 \begin_layout Standard
32178 So to get for example the scheme
32179 \begin_inset Quotes eld
32185 \begin_inset Quotes erd
32188 , use this command instead of
32197 \begin_layout Standard
32211 \begin_layout Subsection
32213 \begin_inset Index idx
32216 \begin_layout Plain Layout
32217 Footnotes ! Placement
32225 \begin_layout Standard
32226 If you have several footnotes in one page, they appear without vertical
32227 space between them at the bottom of the page.
32228 To make them more readable you can e.
32229 \begin_inset space \thinspace{}
32233 \begin_inset space \space{}
32237 \begin_inset space \thinspace{}
32240 mm space with the following preamble command:
32243 \begin_layout Standard
32253 \begin_inset Newline newline
32267 \begin_layout Standard
32268 \begin_inset VSpace bigskip
32271 In a two-column document the footnotes appear at the bottom of every column,
32273 \begin_inset space ~
32277 \begin_inset CommandInset ref
32279 reference "fig:Standard-footnote-placement"
32284 If the footnotes should only appear at the bottom of the right column,
32286 \begin_inset space ~
32290 \begin_inset CommandInset ref
32292 reference "fig:Footnote-placement-in"
32296 , use the \SpecialChar LaTeX
32302 \begin_inset Index idx
32305 \begin_layout Plain Layout
32307 -packages ! ftnright
32312 with this command in the document preamble:
32315 \begin_layout Standard
32320 usepackage{ftnright}
32323 \begin_layout Standard
32324 \begin_inset Float figure
32330 \begin_layout Plain Layout
32333 \begin_inset Box Boxed
32343 height_special "totalheight"
32348 backgroundcolor "none"
32351 \begin_layout Plain Layout
32352 \begin_inset Graphics
32353 filename clipart/without_fntright.pdf
32355 scaleBeforeRotation
32367 \begin_layout Plain Layout
32368 \begin_inset Caption Standard
32370 \begin_layout Plain Layout
32371 \begin_inset CommandInset label
32373 name "fig:Standard-footnote-placement"
32377 Standard footnote placement in two-column documents.
32390 \begin_layout Standard
32391 \begin_inset Float figure
32397 \begin_layout Plain Layout
32400 \begin_inset Box Boxed
32410 height_special "totalheight"
32415 backgroundcolor "none"
32418 \begin_layout Plain Layout
32419 \begin_inset Graphics
32420 filename clipart/with_fntright.pdf
32422 scaleBeforeRotation
32434 \begin_layout Plain Layout
32435 \begin_inset Caption Standard
32437 \begin_layout Plain Layout
32438 \begin_inset CommandInset label
32440 name "fig:Footnote-placement-in"
32444 Footnote placement in two-column documents when the \SpecialChar LaTeX
32462 \begin_layout Standard
32463 \begin_inset VSpace bigskip
32466 In some scientific literature it is usual to collect the footnotes and print
32467 them in a separate paragraph at the end of a section, as in Figure
32468 \begin_inset space ~
32472 \begin_inset CommandInset ref
32474 reference "fig:Endnotes"
32479 They are then called
32480 \begin_inset Quotes eld
32484 \begin_inset Quotes erd
32488 \begin_inset Index idx
32491 \begin_layout Plain Layout
32497 To use endnotes instead of footnotes in your document, load in the menu
32500 Document\SpecialChar menuseparator
32501 Settings\SpecialChar menuseparator
32507 \begin_inset space ~
32511 \begin_inset space ~
32517 To insert the collected footnotes, insert the command
32520 \begin_layout Standard
32528 \begin_layout Standard
32529 in \SpecialChar TeX
32530 Code at the end of a section or chapter.
32533 \begin_layout Standard
32534 \begin_inset Float figure
32539 \begin_layout Plain Layout
32542 \begin_inset Box Boxed
32552 height_special "totalheight"
32557 backgroundcolor "none"
32560 \begin_layout Plain Layout
32561 \begin_inset Graphics
32562 filename clipart/endnotes.pdf
32564 scaleBeforeRotation
32576 \begin_layout Plain Layout
32577 \begin_inset Caption Standard
32579 \begin_layout Plain Layout
32580 \begin_inset CommandInset label
32582 name "fig:Endnotes"
32586 Endnotes – footnotes are printed in a separate paragraph at the end of sections
32600 \begin_layout Standard
32601 \begin_inset VSpace medskip
32604 The paragraph heading for the endnotes isn't automatically translated into
32605 the document language, this must be done manually.
32606 The following preamble command translates the default English
32607 \begin_inset Quotes eld
32611 \begin_inset Quotes erd
32615 \begin_inset Quotes eld
32619 \begin_inset Quotes erd
32625 \begin_layout Standard
32632 notesname}{Anmerkungen}
32635 \begin_layout Standard
32636 \begin_inset VSpace medskip
32639 The numbering of endnotes can be changed like the footnote numbering as
32640 described in section
32641 \begin_inset space ~
32645 \begin_inset CommandInset ref
32647 reference "subsec:Footnote-Numbering"
32651 ; just replace the command
32664 To reset the endnote number use the command
32670 as described in section
32671 \begin_inset space ~
32675 \begin_inset CommandInset ref
32677 reference "subsec:Footnote-Numbering"
32681 and replace the command parameter
32692 \begin_layout Standard
32693 For endnotes there is the command
32697 endnotemark[number]
32699 similar to the command
32705 , that is described in section
32706 \begin_inset space ~
32710 \begin_inset CommandInset ref
32712 reference "sec:Footnotes"
32719 \begin_layout Standard
32720 \begin_inset VSpace bigskip
32723 Footnotes can also be placed in the page margin and the footnote text alignment
32724 can be changed, see the \SpecialChar LaTeX
32730 \begin_inset Index idx
32733 \begin_layout Plain Layout
32735 -packages ! footmisc
32741 \begin_inset CommandInset citation
32748 for more information about this.
32751 \begin_layout Standard
32752 For various further footnote formatting issues have a look at \SpecialChar LaTeX
32754 \begin_inset CommandInset citation
32756 key "latexcompanion,latexguide,latexbook"
32767 \begin_inset Index idx
32770 \begin_layout Plain Layout
32772 -packages ! KOMA-Script
32777 document class, you can adjust all footnote settings using class-specific
32779 \begin_inset CommandInset citation
32789 \begin_layout Section
32791 \begin_inset Index idx
32794 \begin_layout Plain Layout
32795 Notes ! Margin Notes
32803 \begin_layout Standard
32804 Margin notes look and behave in \SpecialChar LyX
32806 They are inserted via the menu
32808 Insert\SpecialChar menuseparator
32810 \begin_inset space ~
32815 or the toolbar button
32818 arg "marginalnote-insert"
32832 \begin_inset Quotes eld
32836 \begin_inset Quotes erd
32839 appears where you can enter the text of the margin note.
32842 \begin_layout Standard
32843 At the side is an example margin note.
32848 \begin_inset Marginal
32851 \begin_layout Plain Layout
32852 This is a margin note.
32860 \begin_layout Standard
32861 Margin notes appear at the right side in single-sided documents.
32862 In double-sided documents they appear in the outer margin – left on even
32863 pages, right on odd pages.
32864 The text of margin notes is aligned opposite to the outer margin – right-aligne
32865 d when the note appears in the left margin.
32866 The first line of the margin note is placed at the position of the text
32867 line where it is inserted in the document.
32870 \begin_layout Standard
32871 \begin_inset VSpace bigskip
32874 To place the margin note in the inner margin, add the command
32877 \begin_layout Standard
32885 \begin_layout Standard
32886 in \SpecialChar TeX
32887 Code before a margin note.
32888 The new placement is valid for all subsequent margin notes.
32893 \begin_layout Plain Layout
32903 \begin_inset Marginal
32906 \begin_layout Plain Layout
32907 This is a margin note in the inner margin.
32915 \begin_inset Newline newline
32921 \begin_inset Note Greyedout
32924 \begin_layout Plain Layout
32929 There is often not enough space in the inner margin so that the notes are
32930 not correctly displayed in the output.
32938 \begin_layout Standard
32939 To return to the default placement insert the command
32942 \begin_layout Standard
32950 \begin_layout Standard
32951 in \SpecialChar TeX
32956 \begin_layout Plain Layout
32966 \begin_inset Note Greyedout
32969 \begin_layout Plain Layout
32974 The command is ignored when it is within a paragraph where also the command
32989 \begin_layout Standard
32990 \begin_inset VSpace bigskip
32997 \begin_inset Marginal
33000 \begin_layout Plain Layout
33001 AVeryLongMarginParWord that isn't hyphenated.
33009 Similar to the case described in section
33010 \begin_inset space ~
33014 \begin_inset CommandInset ref
33016 reference "subsec:Multiple-Lines-in"
33020 , long words cannot be hyphenated when they are the first word in a margin
33022 To avoid this, insert 0
33023 \begin_inset space \thinspace{}
33026 pt horizontal space before the word
33031 \begin_inset Marginal
33034 \begin_layout Plain Layout
33035 \begin_inset space \hspace*{}
33039 AVeryLongMarginParWord that is hyphenated.
33047 \begin_layout Standard
33048 \begin_inset VSpace bigskip
33054 \begin_layout Standard
33055 \begin_inset Note Greyedout
33058 \begin_layout Plain Layout
33063 Margin notes can normally not be used inside tables, floats, and footnotes.
33071 \begin_layout Standard
33072 \begin_inset VSpace bigskip
33078 \begin_layout Standard
33082 \begin_layout Plain Layout
33092 \begin_inset Note Note
33095 \begin_layout Plain Layout
33096 The following section will only be displayed when the \SpecialChar LaTeX
33109 \begin_layout Standard
33110 This restriction can be evaded by using the \SpecialChar LaTeX
33116 \begin_inset Index idx
33119 \begin_layout Plain Layout
33121 -packages ! marginnote
33127 By adding these two lines to your document preamble, the command used by
33129 for margin notes is redefined to use the command provided by the
33136 \begin_layout Standard
33141 usepackage{marginnote}
33142 \begin_inset Newline newline
33154 \begin_layout Standard
33155 This is also used in this document because
33159 has another useful feature: You can set a vertical offset for the note.
33160 This is often needed when too many margin notes are too close together
33161 or for a better page layout.
33162 The offset is set in \SpecialChar LyX
33163 as \SpecialChar TeX
33164 Code directly after the margin note in the scheme
33167 \begin_layout Standard
33173 \begin_layout Standard
33174 where the offset is a length with one of the units listed in Table
33175 \begin_inset space ~
33179 \begin_inset CommandInset ref
33181 reference "tab:Units"
33186 A negative value shifts the note up, a positive value shifts it down.
33190 For example the margin note beside this text line is shifted up 1.5
33191 \begin_inset space \thinspace{}
33194 cm with the \SpecialChar TeX
33196 \begin_inset Quotes eld
33206 \begin_inset Quotes erd
33210 \begin_inset Marginal
33213 \begin_layout Plain Layout
33214 This margin note is shifted up 1.5
33215 \begin_inset space \thinspace{}
33218 cm from its original position.
33230 \begin_layout Plain Layout
33240 \begin_layout Standard
33241 \begin_inset VSpace medskip
33248 you can also change the alignment of the text in the margin note.
33249 For example the commands
33252 \begin_layout Standard
33259 raggedleftmarginnote}{
33262 \begin_inset Newline newline
33269 raggedrightmarginnote}{
33274 \begin_layout Standard
33275 set the alignment to centered.
33280 raggedleftmarginnote
33282 denotes margin notes that appear at the left side.
33289 \begin_layout Plain Layout
33295 raggedleftmarginnote}{
33300 \begin_layout Plain Layout
33306 raggedrightmarginnote}{
33314 \begin_inset Marginal
33317 \begin_layout Plain Layout
33318 The text of this margin note is centered.
33329 \begin_layout Standard
33336 raggedleftmarginnote}{
33339 \begin_inset Newline newline
33346 raggedrightmarginnote}{
33355 \begin_layout Plain Layout
33361 raggedleftmarginnote}{
33366 \begin_layout Plain Layout
33372 raggedrightmarginnote}{
33382 \begin_layout Standard
33383 \begin_inset VSpace medskip
33386 For the other features of
33390 refer to its documentation
33391 \begin_inset CommandInset citation
33401 \begin_layout Standard
33402 \begin_inset VSpace bigskip
33405 You can adjust the layout of margin notes by changing its definition.
33406 To create for example a header for all margin notes with the underlined,
33407 sans-serif, and bold header text
33408 \begin_inset Quotes eld
33420 \begin_inset Quotes erd
33423 , add this to your document preamble:
33426 \begin_layout Standard
33436 \begin_inset Newline newline
33446 \begin_inset Newline newline
33450 \begin_inset Phantom HPhantom
33453 \begin_layout Plain Layout
33456 \begin_inset space ~
33472 underbar{Attention!}}}%
33473 \begin_inset Newline newline
33477 \begin_inset Phantom HPhantom
33480 \begin_layout Plain Layout
33483 \begin_inset space ~
33500 \begin_layout Standard
33507 \begin_layout Plain Layout
33518 \begin_layout Plain Layout
33529 \begin_layout Plain Layout
33537 underbar{Attention!}}}%
33540 \begin_layout Plain Layout
33554 \begin_inset Marginal
33557 \begin_layout Plain Layout
33558 This is a margin note with a defined heading.
33570 \begin_layout Plain Layout
33584 \begin_layout Plain Layout
33601 \begin_inset Note Note
33604 \begin_layout Plain Layout
33605 The margin note format is changed only for this example.
33613 \begin_layout Standard
33617 \begin_layout Plain Layout
33627 \begin_inset Note Note
33630 \begin_layout Plain Layout
33631 The following will be displayed when the \SpecialChar LaTeX
33644 \begin_layout Standard
33645 You need to install the \SpecialChar LaTeX
33650 to see the following part of this section in the output.
33653 \begin_layout Standard
33657 \begin_layout Plain Layout
33669 \begin_layout Chapter
33673 \begin_layout Section
33675 \begin_inset Index idx
33678 \begin_layout Plain Layout
33679 Boxes ! Introduction
33687 \begin_layout Standard
33688 Boxes are used to format a block of text.
33689 Boxes can be used to write documents with multiple languages, see section
33690 \begin_inset space ~
33694 \begin_inset CommandInset ref
33696 reference "sec:Minipages"
33700 , to frame texts, see section
33701 \begin_inset space ~
33705 \begin_inset CommandInset ref
33707 reference "sec:Decoration"
33711 , to prevent words from being hyphenated, see section
33712 \begin_inset space ~
33716 \begin_inset CommandInset ref
33718 reference "sec:Prevent-Hyphenation"
33722 , to align text, see section
33723 \begin_inset space ~
33727 \begin_inset CommandInset ref
33729 reference "subsec:Vertical-Alignment"
33733 , or to set the background color of texts, see section
33734 \begin_inset space ~
33738 \begin_inset CommandInset ref
33740 reference "sec:Colored-Boxes"
33747 \begin_layout Standard
33748 Boxes can be inserted with the menu
33750 Insert\SpecialChar menuseparator
33753 or the toolbar button
33756 arg "box-insert Frameless"
33760 A grey box with the label
33765 \begin_inset Graphics
33766 filename clipart/BoxInsetDefault.png
33768 scaleBeforeRotation
33773 The box type can be specified by right-clicking on the box and selecting
33779 The box dialog offers the
33782 \begin_inset space ~
33804 is the default for new boxes and is explained in section
33805 \begin_inset space ~
33809 \begin_inset CommandInset ref
33811 reference "sec:Minipages"
33819 is described in section
33820 \begin_inset space ~
33824 \begin_inset CommandInset ref
33826 reference "sec:Parboxes"
33835 \begin_inset CommandInset ref
33837 reference "sec:Prevent-Hyphenation"
33844 \begin_layout Standard
33845 Boxes are not numbered and can therefore not be referenced like floats or
33849 \begin_layout Standard
33850 \begin_inset Note Greyedout
33853 \begin_layout Plain Layout
33858 Boxes must not be the item in an
33874 \begin_layout Standard
33875 \begin_inset Note Greyedout
33878 \begin_layout Plain Layout
33883 For an unknown reason you can only set the
33886 \begin_inset space ~
33895 when you use a framed box.
33899 \begin_inset space ~
33904 type and without frames are explained in section
33905 \begin_inset space ~
33909 \begin_inset CommandInset ref
33911 reference "sec:Prevent-Hyphenation"
33923 \begin_layout Section
33925 \begin_inset CommandInset label
33927 name "sec:Box-Dialog"
33932 \begin_inset Index idx
33935 \begin_layout Plain Layout
33944 \begin_layout Subsection
33946 \begin_inset Index idx
33949 \begin_layout Plain Layout
33958 \begin_layout Standard
33959 In the box dialog you can adjust the box geometry in the fields
33968 The available units for the geometry are explained in Table
33969 \begin_inset space ~
33973 \begin_inset CommandInset ref
33975 reference "tab:Units"
33984 offers the following additional sizes:
33987 \begin_layout Description
33988 Depth This is the plain text
33989 \begin_inset Quotes eld
33993 \begin_inset Quotes erd
33997 It ignores the total depth when there are multiple text lines in the box:
33998 \begin_inset Newline newline
34002 \begin_inset Newline newline
34006 \begin_inset Newline newline
34010 \begin_inset Box Boxed
34020 height_special "depth"
34025 backgroundcolor "none"
34028 \begin_layout Plain Layout
34030 Box height set to 1
34031 \begin_inset space \thinspace{}
34040 \begin_inset Newline newline
34044 \begin_inset Newline newline
34050 \begin_layout Description
34051 Height This is the height of the text that is inside the box.
34053 \begin_inset space \thinspace{}
34057 \begin_inset space \space{}
34060 2 for this size will set the box height to 2
34061 \begin_inset space ~
34064 times the text height:
34065 \begin_inset Box Boxed
34075 height_special "height"
34080 backgroundcolor "none"
34083 \begin_layout Plain Layout
34085 Box height set to 2
34086 \begin_inset space \thinspace{}
34097 \begin_layout Description
34099 \begin_inset space ~
34102 Height This is the Height
34103 \begin_inset space \thinspace{}
34107 \begin_inset space \thinspace{}
34111 \begin_inset Box Boxed
34121 height_special "totalheight"
34126 backgroundcolor "none"
34129 \begin_layout Plain Layout
34131 Box height set to 1
34132 \begin_inset space \thinspace{}
34136 \begin_inset space ~
34147 \begin_layout Description
34148 Width This sets the width of the box as height:
34149 \begin_inset Box Boxed
34159 height_special "width"
34164 backgroundcolor "none"
34167 \begin_layout Plain Layout
34169 Box height set to 1
34170 \begin_inset space \thinspace{}
34181 \begin_layout Subsection
34183 \begin_inset Index idx
34186 \begin_layout Plain Layout
34195 \begin_layout Standard
34196 When you have chosen an
34199 \begin_inset space ~
34204 , the vertical box alignment can be:
34207 \begin_layout Description
34208 Top This is an example text line.
34210 \begin_inset Box Boxed
34220 height_special "totalheight"
34225 backgroundcolor "none"
34228 \begin_layout Plain Layout
34230 This box is top-aligned.
34235 This is an example text line.
34238 \begin_layout Description
34239 Middle This is an example text line.
34241 \begin_inset Box Boxed
34251 height_special "totalheight"
34256 backgroundcolor "none"
34259 \begin_layout Plain Layout
34261 This box is middle-aligned.
34266 This is an example text line.
34269 \begin_layout Description
34270 Bottom This is an example text line.
34272 \begin_inset Box Boxed
34282 height_special "totalheight"
34287 backgroundcolor "none"
34290 \begin_layout Plain Layout
34292 This box is bottom-aligned.
34297 This is an example text line.
34300 \begin_layout Standard
34301 \begin_inset Note Greyedout
34304 \begin_layout Plain Layout
34309 The vertical box alignment can be lost in the output when you have two
34310 boxes in a line and one has e.
34311 \begin_inset space \thinspace{}
34315 \begin_inset space \space{}
34318 a shadow and the other one not.
34326 \begin_layout Standard
34327 The horizontal box alignment can be set via \SpecialChar LyX
34328 's paragraph dialog when you
34329 set the box into its own paragraph.
34332 \begin_layout Standard
34333 \begin_inset VSpace bigskip
34336 When you have chosen an
34339 \begin_inset space ~
34344 , the box content can be aligned vertically to:
34347 \begin_layout Description
34348 top This is an example text line.
34350 \begin_inset Box Boxed
34360 height_special "totalheight"
34365 backgroundcolor "none"
34368 \begin_layout Plain Layout
34370 This box text is top-aligned.
34375 This is an example text line.
34378 \begin_layout Description
34379 middle This is an example text line.
34381 \begin_inset Box Boxed
34391 height_special "totalheight"
34396 backgroundcolor "none"
34399 \begin_layout Plain Layout
34401 This box text is middle-aligned.
34406 This is an example text line.
34409 \begin_layout Description
34410 bottom This is an example text line.
34412 \begin_inset Box Boxed
34422 height_special "totalheight"
34427 backgroundcolor "none"
34430 \begin_layout Plain Layout
34432 This box text is bottom-aligned.
34437 This is an example text line.
34440 \begin_layout Description
34441 stretch This is an example text line.
34443 \begin_inset Box Boxed
34453 height_special "totalheight"
34458 backgroundcolor "none"
34461 \begin_layout Plain Layout
34466 \begin_layout Plain Layout
34471 \begin_layout Plain Layout
34478 This is an example text line.
34481 \begin_layout Standard
34482 To stretch the box content, it must consist of more than one paragraph.
34483 In the example above every text line is in an own paragraph.
34486 \begin_layout Standard
34487 \begin_inset VSpace bigskip
34490 To align the box content horizontally you can use \SpecialChar LyX
34491 's paragraph dialog when
34495 \begin_inset space ~
34503 \begin_layout Standard
34505 \begin_inset Box Boxed
34515 height_special "totalheight"
34520 backgroundcolor "none"
34523 \begin_layout Plain Layout
34528 \begin_layout Plain Layout
34533 \begin_layout Plain Layout
34543 \begin_layout Standard
34544 If you have not set an
34547 \begin_inset space ~
34552 , you can align the box content horizontally in the box dialog.
34555 \begin_layout Standard
34557 \begin_inset Box Boxed
34567 height_special "totalheight"
34572 backgroundcolor "none"
34575 \begin_layout Plain Layout
34576 This box text is horizontally stretched.
34584 \begin_layout Subsection
34586 \begin_inset CommandInset label
34588 name "sec:Decoration"
34593 \begin_inset Index idx
34596 \begin_layout Plain Layout
34605 \begin_layout Standard
34606 The type of the box can be specified in the box dialog in the drop-down
34612 The following types are possible:
34615 \begin_layout Description
34617 \begin_inset space ~
34620 frame Nothing is drawn.
34623 \begin_layout Description
34625 \begin_inset space ~
34629 \begin_inset space ~
34632 frame This draws a rectangular frame around the box.
34633 The frame line thickness can be specified.
34635 \begin_inset Box Boxed
34645 height_special "totalheight"
34650 backgroundcolor "none"
34653 \begin_layout Plain Layout
34663 \begin_layout Description
34665 \begin_inset space ~
34669 \begin_inset space ~
34672 thin This draws an oval frame around the box.
34673 The frame line thickness has the size 0.4
34674 \begin_inset space \thinspace{}
34679 \begin_inset Box ovalbox
34689 height_special "totalheight"
34694 backgroundcolor "none"
34697 \begin_layout Plain Layout
34707 \begin_layout Description
34709 \begin_inset space ~
34713 \begin_inset space ~
34716 thick This draws an oval frame around the box.
34717 The frame line thickness has the size 0.8
34718 \begin_inset space \thinspace{}
34723 \begin_inset Box Ovalbox
34733 height_special "totalheight"
34738 backgroundcolor "none"
34741 \begin_layout Plain Layout
34751 \begin_layout Description
34753 \begin_inset space ~
34756 shadow This draws a rectangular frame with a shadow around the box.
34757 The frame line thickness and the shadow can be specified.
34759 \begin_inset Box Shadowbox
34769 height_special "totalheight"
34774 backgroundcolor "none"
34777 \begin_layout Plain Layout
34787 \begin_layout Description
34789 \begin_inset space ~
34792 background This draws a box with a red background.
34793 Unlike colored boxes
34797 \begin_layout Plain Layout
34799 \begin_inset space \thinspace{}
34803 \begin_inset CommandInset ref
34805 reference "sec:Colored-Boxes"
34814 , it always uses the whole column width and the box is set as its own paragraph.
34816 \begin_inset Box Shaded
34826 height_special "totalheight"
34831 backgroundcolor "none"
34834 \begin_layout Plain Layout
34835 Shaded background box
34843 \begin_layout Description
34845 \begin_inset space ~
34849 \begin_inset space ~
34852 frame This draws a double-line rectangular frame around the box.
34853 The line thickness of the inner frame is 0.75
34854 \begin_inset space \thinspace{}
34858 \begin_inset space ~
34861 thickness, the thickness of the outer frame is 1.5
34862 \begin_inset space \thinspace{}
34866 \begin_inset space ~
34870 The distance between the lines is 1.5
34871 \begin_inset space \thinspace{}
34875 \begin_inset space ~
34879 \begin_inset space \thinspace{}
34883 \begin_inset space \thinspace{}
34887 \begin_inset space \thinspace{}
34892 \begin_inset Box Doublebox
34902 height_special "totalheight"
34907 backgroundcolor "none"
34910 \begin_layout Plain Layout
34912 Double rectangular box
34920 \begin_layout Standard
34921 \begin_inset VSpace bigskip
34925 's box label will reflect the different frame types.
34926 To be able to use all types, the \SpecialChar LaTeX
34932 \begin_inset Index idx
34935 \begin_layout Plain Layout
34937 -packages ! fancybox
34945 \begin_layout Standard
34946 \begin_inset VSpace bigskip
34949 When you use the decoration
34951 simple rectangular frame
34953 and no inner box, you can allow page breaks within a box.
34954 Note that then, unlike other framed boxes, the frame always uses the whole
34955 column width and the box is set as its own paragraph:
34956 \begin_inset Box Framed
34966 height_special "totalheight"
34971 backgroundcolor "none"
34974 \begin_layout Plain Layout
34975 Allow page break box
34983 \begin_layout Section
34985 \begin_inset Index idx
34988 \begin_layout Plain Layout
34989 Boxes ! Customization
34997 \begin_layout Standard
34998 The diameter of the round corners of the oval boxes can be set with the
35009 \begin_layout Standard
35017 \begin_layout Standard
35018 sets the diameter to 1
35019 \begin_inset space \thinspace{}
35026 \begin_layout Standard
35034 \begin_layout Standard
35035 sets the diameter to
35038 \begin_inset space \thinspace{}
35042 \begin_inset space \thinspace{}
35045 minimum(width and height of box)
35057 \begin_layout Standard
35061 \begin_layout Plain Layout
35071 \begin_inset Box Ovalbox
35081 height_special "totalheight"
35086 backgroundcolor "none"
35089 \begin_layout Plain Layout
35098 \begin_inset space \thinspace{}
35102 \begin_inset space \thinspace{}
35106 \begin_inset space \thinspace{}
35118 \begin_layout Plain Layout
35130 \begin_layout Standard
35131 \begin_inset VSpace bigskip
35137 \begin_layout Standard
35138 The default background color red of
35142 boxes can either be changed locally with the command
35146 definecolor{shadecolor}
35148 or globally with the menu
35150 Tools\SpecialChar menuseparator
35151 Preferences\SpecialChar menuseparator
35152 Colors\SpecialChar menuseparator
35154 \begin_inset space ~
35166 command is explained in section
35167 \begin_inset space ~
35171 \begin_inset CommandInset ref
35173 reference "sec:Colored-Tables"
35181 \begin_layout Plain Layout
35188 requires the \SpecialChar LaTeX
35193 in the preamble, see section
35194 \begin_inset space ~
35198 \begin_inset CommandInset ref
35200 reference "sec:Colored-Boxes"
35209 For example the appearance of the following shaded background box is set
35210 with the \SpecialChar TeX
35214 \begin_layout Standard
35219 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35222 \begin_layout Standard
35226 \begin_layout Plain Layout
35230 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
35236 \begin_inset Box Shaded
35246 height_special "totalheight"
35251 backgroundcolor "none"
35254 \begin_layout Plain Layout
35257 This is yellow text in a
35267 box with dark green background.
35276 \begin_layout Plain Layout
35280 definecolor{shadecolor}{rgb}{1,0,0}
35288 \begin_layout Standard
35289 \begin_inset VSpace bigskip
35292 Manually changed sizes and colors are valid for all boxes following the
35293 commands that change them.
35296 \begin_layout Section
35298 \begin_inset CommandInset label
35300 name "sec:Minipages"
35305 \begin_inset Index idx
35308 \begin_layout Plain Layout
35317 \begin_layout Standard
35318 Minipages are treated by \SpecialChar LaTeX
35319 as pages within pages and can therefore for example
35320 have their own footnotes.
35323 \begin_layout Standard
35324 Minipages are useful when you write documents with different languages.
35327 \begin_layout Standard
35328 Below are two example minipages side by side.
35329 Their width is set to 45
35330 \begin_inset space \thinspace{}
35333 col% and they are separated by a horizontal fill, that was inserted via
35336 Insert\SpecialChar menuseparator
35338 \begin_inset space ~
35341 Formatting\SpecialChar menuseparator
35343 \begin_inset space ~
35349 \begin_inset Newpage newpage
35355 \begin_layout Standard
35356 \begin_inset Box Frameless
35366 height_special "totalheight"
35371 backgroundcolor "none"
35374 \begin_layout Plain Layout
35377 Dies ist ein deutscher Text.
35378 Dies ist ein deutscher Text.
35379 Dies ist ein deutscher Text.
35380 Dies ist ein deutscher Text.
35381 Dies ist ein deutscher Text.
35382 Dies ist ein deutscher Text.
35383 Dies ist ein deutscher Text.
35384 Dies ist ein deutscher Text.
35385 Dies ist ein deutscher Text.
35386 Dies ist ein deutscher Text.
35387 Dies ist ein deutscher Text.
35388 Dies ist ein deutscher Text.
35389 Dies ist ein deutscher Text
35393 \begin_layout Plain Layout
35396 Dies ist eine deutsche Fußnote.
35402 Dies ist ein deutscher Text.
35403 Dies ist ein deutscher Text.
35409 \begin_inset space \hfill{}
35413 \begin_inset Box Frameless
35423 height_special "totalheight"
35428 backgroundcolor "none"
35431 \begin_layout Plain Layout
35432 This is an English Text.
35433 This is an English Text.
35434 This is an English Text.
35435 This is an English Text.
35436 This is an English Text.
35437 This is an English Text.
35438 This is an English Text.
35439 This is an English Text.
35440 This is an English Text.
35441 This is an English Text.
35442 This is an English Text.
35443 This is an English Text.
35444 This is an English Text.
35445 This is an English Text.
35446 This is an English Text.
35447 This is an English Text.
35451 \begin_layout Plain Layout
35452 This is an English footnote.
35457 This is an English Text.
35465 \begin_layout Standard
35466 \begin_inset VSpace bigskip
35469 The document-wide paragraph settings are ignored within minipages.
35470 That means that there will be no space between paragraphs in minipages
35471 although you set it to e.
35472 \begin_inset space \thinspace{}
35476 \begin_inset space \space{}
35483 in the document settings.
35486 \begin_layout Standard
35487 Minipages can also be used to set a background color for text parts, see
35489 \begin_inset space ~
35493 \begin_inset CommandInset ref
35495 reference "sec:Colored-Boxes"
35502 \begin_layout Standard
35503 \begin_inset Note Greyedout
35506 \begin_layout Plain Layout
35511 You cannot have floats or margin notes inside minipages but minipages can
35512 be used inside tables, floats, and other boxes.
35520 \begin_layout Standard
35521 \begin_inset VSpace bigskip
35527 \begin_layout Standard
35529 has also basic support for minipages whose size is automatically determined
35530 by the width of their contents, via the module
35532 Variable-width Minipages
35535 The \SpecialChar LyX
35538 varwidth-floats-side-by-side
35540 gives examples of variable-width minipages used for placing two floats
35544 \begin_layout Section
35546 \begin_inset CommandInset label
35548 name "sec:Parboxes"
35553 \begin_inset Index idx
35556 \begin_layout Plain Layout
35565 \begin_layout Standard
35566 Parboxes are very similar to minipages with the difference that they cannot
35570 \begin_layout Standard
35572 \begin_inset Box Frameless
35582 height_special "totalheight"
35587 backgroundcolor "none"
35590 \begin_layout Plain Layout
35591 This a text within a parbox.
35592 This a text within a parbox.
35595 \begin_layout Plain Layout
35596 This footnote won't appear:
35600 \begin_layout Plain Layout
35601 This footnote is inside a parbox and will therefore not appear.
35614 \begin_layout Section
35615 Boxes for Words and Characters
35616 \begin_inset Index idx
35619 \begin_layout Plain Layout
35620 Boxes ! for Characters
35628 \begin_layout Subsection
35629 Prevent Hyphenation
35630 \begin_inset CommandInset label
35632 name "sec:Prevent-Hyphenation"
35637 \begin_inset Index idx
35640 \begin_layout Plain Layout
35641 Boxes ! to Prevent Hyphenation
35649 \begin_layout Standard
35650 You can use the box type
35654 to prevent words or text from being hyphenated.
35655 \begin_inset Newline newline
35658 Here is an example text:
35661 \begin_layout Standard
35662 This line is an example to show how you can prevent the hyphenation of
35663 \begin_inset Quotes eld
35667 \begin_inset Quotes erd
35673 \begin_layout Standard
35674 To prevent the hyphenation of the word
35675 \begin_inset Quotes eld
35679 \begin_inset Quotes erd
35682 , put the word into a box, set the
35685 \begin_inset space ~
35694 and use no explicit width.
35697 \begin_layout Standard
35698 This is the result:
35701 \begin_layout Standard
35702 This line is an example to show how you can prevent the hyphenation of
35703 \begin_inset Box Frameless
35713 height_special "totalheight"
35718 backgroundcolor "none"
35721 \begin_layout Plain Layout
35722 \begin_inset Quotes eld
35726 \begin_inset Quotes erd
35737 \begin_layout Standard
35738 You can alternatively set the command
35739 \begin_inset Quotes eld
35749 \begin_inset Quotes grd
35752 as \SpecialChar TeX
35753 Code directly before the word:
35756 \begin_layout Standard
35757 This line is an example to show how you can prevent the hyphenation of
35758 \begin_inset Quotes eld
35765 \begin_layout Plain Layout
35775 \begin_inset Quotes erd
35781 \begin_layout Standard
35782 Of course the word now protrudes over the side margin.
35783 To avoid this, add via the menu
35785 Insert\SpecialChar menuseparator
35786 Formatting\SpecialChar menuseparator
35788 \begin_inset space ~
35792 \begin_inset space ~
35800 arg "newline-insert newline"
35803 ) a line break before the word:
35806 \begin_layout Standard
35807 This line is an example to show how you can prevent the hyphenation of
35808 \begin_inset Newline newline
35812 \begin_inset Box Frameless
35822 height_special "totalheight"
35827 backgroundcolor "none"
35830 \begin_layout Plain Layout
35831 \begin_inset Quotes eld
35835 \begin_inset Quotes erd
35846 \begin_layout Subsection
35848 \begin_inset CommandInset label
35850 name "subsec:Vertical-Alignment"
35855 \begin_inset Index idx
35858 \begin_layout Plain Layout
35859 Boxes ! for Vertical Alignment
35865 \begin_inset Index idx
35868 \begin_layout Plain Layout
35877 \begin_layout Standard
35878 With the help of the command
35884 you can align words, characters or other boxes vertically relative to the
35892 is used with the following scheme:
35895 \begin_layout Standard
35900 raisebox{lift}[height][depth]{box content}
35903 \begin_layout Standard
35904 The lift can be a positive value to raise the box or a negative value to
35908 \begin_layout Standard
35909 To align for example the word
35910 \begin_inset Quotes eld
35914 \begin_inset Quotes erd
35917 so that the bottom of the
35918 \begin_inset Quotes eld
35922 \begin_inset Quotes erd
35926 \begin_inset Quotes eld
35930 \begin_inset Quotes erd
35933 is at the baseline, insert the command
35936 \begin_layout Standard
35946 \begin_layout Standard
35947 in \SpecialChar TeX
35948 Code before the word.
35949 After the word insert a closing brace
35950 \begin_inset Quotes eld
35958 \begin_inset Quotes erd
35961 in \SpecialChar TeX
35963 \begin_inset Newline newline
35966 This is the result:
35969 \begin_layout Standard
35970 This is a text line with the word
35974 \begin_layout Plain Layout
35986 \begin_inset Quotes eld
35990 \begin_inset Quotes erd
35997 \begin_layout Plain Layout
36007 \begin_layout Standard
36008 \begin_inset VSpace bigskip
36011 When you raise or lower characters in a line, the line distance will be
36015 \begin_layout Standard
36016 This is a text line with the word
36020 \begin_layout Plain Layout
36032 \begin_inset Quotes eld
36036 \begin_inset Quotes erd
36043 \begin_layout Plain Layout
36051 \begin_inset Newline newline
36054 This is a text line with the word
36058 \begin_layout Plain Layout
36068 \begin_inset Quotes eld
36072 \begin_inset Quotes erd
36079 \begin_layout Plain Layout
36089 \begin_layout Standard
36090 If you want to prevent this for a certain reason, set the box height to
36095 \begin_layout Standard
36105 \begin_layout Standard
36106 This is a text line with the word
36110 \begin_layout Plain Layout
36122 \begin_inset Quotes eld
36126 \begin_inset Quotes erd
36133 \begin_layout Plain Layout
36141 \begin_inset Newline newline
36145 \begin_inset Newline newline
36148 This is a text line with the word
36152 \begin_layout Plain Layout
36156 raisebox{0.5cm}[0pt]{
36162 \begin_inset Quotes eld
36166 \begin_inset Quotes erd
36173 \begin_layout Plain Layout
36183 \begin_layout Section
36185 \begin_inset CommandInset label
36187 name "sec:Colored-Boxes"
36192 \begin_inset Index idx
36195 \begin_layout Plain Layout
36204 \begin_layout Standard
36205 To color the background of a box just select the color you like in the box
36207 This is for example a box with orange background:
36208 \begin_inset Box Frameless
36218 height_special "totalheight"
36223 backgroundcolor "orange"
36226 \begin_layout Plain Layout
36227 Box with orange background
36235 \begin_layout Standard
36236 If you use the decoration
36239 \begin_inset space ~
36243 \begin_inset space ~
36248 you can set a frame color.
36249 In this case you must also specify a background color (LyX sets white as
36251 Here is an example:
36252 \begin_inset Box Boxed
36262 height_special "totalheight"
36267 backgroundcolor "yellow"
36270 \begin_layout Plain Layout
36271 Box with teal frame color and yellow background color
36279 \begin_layout Standard
36280 \begin_inset VSpace bigskip
36283 Of course you can also have colored text inside a colored box:
36284 \begin_inset Newline newline
36288 \begin_inset Box Boxed
36298 height_special "totalheight"
36303 backgroundcolor "magenta"
36306 \begin_layout Plain Layout
36309 This is colored text within a colored, framed box
36317 \begin_layout Standard
36318 \begin_inset VSpace bigskip
36324 \begin_layout Standard
36325 If you need another color than the predefined ones, you can define your
36326 own color as described in section
36327 \begin_inset space ~
36331 \begin_inset CommandInset ref
36333 reference "sec:Colored-Tables"
36338 To use your own color you must typeset the box by using TeX code:
36341 \begin_layout Standard
36342 Colored boxes without frame are created with the command
36349 It has the following scheme:
36352 \begin_layout Standard
36357 colorbox{color}{box content}
36360 \begin_layout Standard
36361 The box content can also be a box and colored boxes can also be within other
36364 \begin_inset space \thinspace{}
36368 \begin_inset space \space{}
36371 a darkgreen background for a word, insert the command
36374 \begin_layout Standard
36379 colorbox{darkgreen}{
36382 \begin_layout Standard
36383 before the word in \SpecialChar TeX
36385 After the word insert a closing brace
36386 \begin_inset Quotes eld
36394 \begin_inset Quotes erd
36397 in \SpecialChar TeX
36399 \begin_inset Newline newline
36402 This is the result:
36405 \begin_layout Standard
36406 This is a line where the word
36410 \begin_layout Plain Layout
36414 colorbox{darkgreen}{
36420 \begin_inset Quotes eld
36424 \begin_inset Quotes erd
36431 \begin_layout Plain Layout
36438 has a darkgreen background.
36441 \begin_layout Standard
36442 Framed, colored boxes are created with the command
36449 It has the following scheme:
36452 \begin_layout Standard
36457 fcolorbox{frame color}{box color}{box content}
36460 \begin_layout Section
36461 Rotated and Scaled Boxes
36464 \begin_layout Standard
36465 To use the boxes described in this section, the module
36469 must be loaded in the document settings.
36472 \begin_layout Standard
36473 \begin_inset Note Greyedout
36476 \begin_layout Plain Layout
36481 Not all DVI viewers are able to display rotated or scaled material.
36489 \begin_layout Standard
36490 \begin_inset Note Greyedout
36493 \begin_layout Plain Layout
36498 Floats are not allowed inside a rotated or scaled box.
36506 \begin_layout Subsection
36508 \begin_inset Index idx
36511 \begin_layout Plain Layout
36518 \begin_inset Index idx
36521 \begin_layout Plain Layout
36530 \begin_layout Standard
36531 To rotate material, you can put it into a
36536 Such a box is inserted via the menu
36538 Insert\SpecialChar menuseparator
36539 Custom Insets\SpecialChar menuseparator
36545 \begin_layout Standard
36546 The rotation origin can be specified via the inset
36552 Insert\SpecialChar menuseparator
36560 The following positions are possible:
36580 (top), along with meaningful combinations of the four base positions.
36585 means that the rotation origin is at the top left corner of the box.
36586 When no rotation origin is specified, the position
36591 The rotation angle is a number that can be negative that specifies the
36593 The rotation direction is counterclockwise.
36596 \begin_layout Standard
36597 In the following example
36601 was inserted to the
36609 was inserted to the
36616 \begin_layout Standard
36618 \begin_inset Flex Rotatebox
36621 \begin_layout Plain Layout
36622 \begin_inset Argument 1
36625 \begin_layout Plain Layout
36632 \begin_inset Argument 2
36635 \begin_layout Plain Layout
36649 \begin_layout Standard
36650 The box content can also be another box or an inline formula:
36653 \begin_layout Standard
36655 \begin_inset Flex Rotatebox
36658 \begin_layout Plain Layout
36659 \begin_inset Argument 1
36662 \begin_layout Plain Layout
36669 \begin_inset Argument 2
36672 \begin_layout Plain Layout
36679 \begin_inset Box Doublebox
36689 height_special "totalheight"
36694 backgroundcolor "none"
36697 \begin_layout Plain Layout
36709 \begin_inset Flex Rotatebox
36712 \begin_layout Plain Layout
36713 \begin_inset Argument 1
36716 \begin_layout Plain Layout
36723 \begin_inset Argument 2
36726 \begin_layout Plain Layout
36733 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36744 \begin_layout Standard
36745 or an image or table:
36748 \begin_layout Standard
36750 \begin_inset Flex Rotatebox
36753 \begin_layout Plain Layout
36754 \begin_inset Argument 1
36757 \begin_layout Plain Layout
36764 \begin_inset Argument 2
36767 \begin_layout Plain Layout
36774 \begin_inset Graphics
36775 filename clipart/platypus.eps
36786 with a rotated image
36787 \begin_inset Flex Rotatebox
36790 \begin_layout Plain Layout
36791 \begin_inset Argument 2
36794 \begin_layout Plain Layout
36801 \begin_inset Tabular
36802 <lyxtabular version="3" rows="2" columns="2">
36803 <features tabularvalignment="middle">
36804 <column alignment="center" valignment="top">
36805 <column alignment="center" valignment="top">
36807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36810 \begin_layout Plain Layout
36816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36819 \begin_layout Plain Layout
36827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36830 \begin_layout Plain Layout
36836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36839 \begin_layout Plain Layout
36856 \begin_inset Index idx
36859 \begin_layout Plain Layout
36866 \begin_inset Index idx
36869 \begin_layout Plain Layout
36870 Table Customization ! Rotating
36878 \begin_layout Standard
36879 \begin_inset Note Greyedout
36882 \begin_layout Plain Layout
36891 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
36893 errors when viewing/exporting the document.
36901 \begin_layout Subsection
36903 \begin_inset Index idx
36906 \begin_layout Plain Layout
36913 \begin_inset Index idx
36916 \begin_layout Plain Layout
36925 \begin_layout Standard
36926 To scale material put it into a
36931 Such a box is inserted via the menu
36933 Insert\SpecialChar menuseparator
36934 Custom Insets\SpecialChar menuseparator
36940 \begin_layout Standard
36945 inset has the mandatory inset
36949 and the optional inset
36953 (inserted via the menu
36955 Insert\SpecialChar menuseparator
36959 Input there the horizontal and vertical scale factor, respectively.
36964 inset is used, the horizontal factor will also be used as the vertical
36968 \begin_layout Standard
36969 To get for example the double text size, compared to the document text size,
36980 \begin_inset Flex Scalebox
36983 \begin_layout Plain Layout
36984 \begin_inset Argument 1
36987 \begin_layout Plain Layout
37001 \begin_layout Standard
37019 \begin_inset Flex Scalebox
37022 \begin_layout Plain Layout
37023 \begin_inset Argument 1
37026 \begin_layout Plain Layout
37033 \begin_inset Argument 2
37036 \begin_layout Plain Layout
37050 \begin_layout Standard
37051 If the scaling factor is negative, the box content will be mirrored.
37068 can be used to create mirror writing:
37069 \begin_inset Flex Scalebox
37072 \begin_layout Plain Layout
37073 \begin_inset Argument 1
37076 \begin_layout Plain Layout
37083 \begin_inset Argument 2
37086 \begin_layout Plain Layout
37100 \begin_layout Standard
37118 \begin_inset Flex Scalebox
37121 \begin_layout Plain Layout
37122 \begin_inset Argument 1
37125 \begin_layout Plain Layout
37132 \begin_inset Argument 2
37135 \begin_layout Plain Layout
37149 \begin_layout Standard
37156 Insert\SpecialChar menuseparator
37157 Custom Insets\SpecialChar menuseparator
37183 \begin_layout Standard
37184 \begin_inset Note Greyedout
37187 \begin_layout Plain Layout
37196 inset is empty or contains other characters than numbers you will get LaTeX
37197 errors when viewing/exporting the document.
37205 \begin_layout Standard
37206 \begin_inset VSpace bigskip
37215 Insert\SpecialChar menuseparator
37216 Custom Insets\SpecialChar menuseparator
37219 ) is used to scale the content to a defined width and height.
37224 inset has the mandatory inset
37228 and the optional inset
37232 (inserted via the menu
37234 Insert\SpecialChar menuseparator
37238 Input there the width and height, respectively, as value with a unit.
37240 \begin_inset CommandInset ref
37242 reference "tab:Units"
37246 lists the possible units.
37247 If there is an exclamation mark
37251 in of of the two insets, the size is set so that the aspect ratio of the
37252 box content is kept.
37257 inset is used an exclamation mark will internally be used for the height.
37260 \begin_layout Standard
37278 \begin_inset Flex Resizebox
37281 \begin_layout Plain Layout
37282 \begin_inset Argument 1
37285 \begin_layout Plain Layout
37292 \begin_inset Argument 2
37295 \begin_layout Plain Layout
37307 \begin_inset Newline newline
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
37362 \begin_layout Standard
37363 \begin_inset Note Greyedout
37366 \begin_layout Plain Layout
37375 inset is empty or contains an invalid unit you will get LaTeX errors when
37376 viewing/exporting the document.
37384 \begin_layout Standard
37385 \begin_inset VSpace bigskip
37391 \begin_layout Standard
37392 The boxes can be combined in any order.
37401 which is in turn inside a
37408 \begin_layout Standard
37411 \begin_inset Flex Rotatebox
37414 \begin_layout Plain Layout
37415 \begin_inset Argument 1
37418 \begin_layout Plain Layout
37425 \begin_inset Argument 2
37428 \begin_layout Plain Layout
37435 \begin_inset Flex Resizebox
37438 \begin_layout Plain Layout
37439 \begin_inset Argument 1
37442 \begin_layout Plain Layout
37449 \begin_inset Flex Reflectbox
37452 \begin_layout Plain Layout
37471 \begin_layout Standard
37473 Images, tables, and inline formulas are allowed as box content:
37476 \begin_layout Standard
37479 \begin_inset Flex Resizebox
37482 \begin_layout Plain Layout
37483 \begin_inset Argument 1
37486 \begin_layout Plain Layout
37493 \begin_inset Flex Reflectbox
37496 \begin_layout Plain Layout
37497 \begin_inset Graphics
37498 filename clipart/platypus.eps
37515 \begin_inset Flex Resizebox
37518 \begin_layout Plain Layout
37519 \begin_inset Argument 1
37522 \begin_layout Plain Layout
37529 \begin_inset Flex Reflectbox
37532 \begin_layout Plain Layout
37533 \begin_inset Tabular
37534 <lyxtabular version="3" rows="2" columns="2">
37535 <features tabularvalignment="middle">
37536 <column alignment="center" valignment="top">
37537 <column alignment="center" valignment="top">
37539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37542 \begin_layout Plain Layout
37548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37551 \begin_layout Plain Layout
37559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37562 \begin_layout Plain Layout
37568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37571 \begin_layout Plain Layout
37593 \begin_inset Flex Resizebox
37596 \begin_layout Plain Layout
37597 \begin_inset Argument 1
37600 \begin_layout Plain Layout
37607 \begin_inset Flex Reflectbox
37610 \begin_layout Plain Layout
37611 \begin_inset Formula $\int A\,\mathrm{d}x=B$
37625 \begin_inset Index idx
37628 \begin_layout Plain Layout
37635 \begin_inset Index idx
37638 \begin_layout Plain Layout
37639 Table Customization ! Scaling
37647 \begin_layout Standard
37648 When the global formula style
37652 is used in the document
37656 \begin_layout Plain Layout
37658 \begin_inset Quotes eld
37662 \begin_inset Quotes erd
37665 is added to the document class options.
37670 , display style formulas can also be scaled.
37673 \begin_layout Chapter
37674 Objects Surrounded by Text
37675 \begin_inset Index idx
37678 \begin_layout Plain Layout
37687 \begin_layout Section
37689 \begin_inset CommandInset label
37691 name "sec:Wrap-Floats"
37696 \begin_inset Index idx
37699 \begin_layout Plain Layout
37700 Floats ! Wrap Floats
37706 \begin_inset Index idx
37709 \begin_layout Plain Layout
37710 Surrounded by text ! Wrap Floats
37718 \begin_layout Standard
37719 \begin_inset Wrap figure
37726 \begin_layout Plain Layout
37727 \begin_inset Graphics
37728 filename clipart/mobius.eps
37730 scaleBeforeRotation
37731 rotateOrigin center
37738 \begin_layout Plain Layout
37739 \begin_inset Caption Standard
37741 \begin_layout Plain Layout
37742 \begin_inset CommandInset label
37744 name "fig:This-is-a"
37748 This is a figure wrap float.
37758 This float type is used if you want to wrap text around a figure or table
37759 so that it only occupies some fraction of the column width.
37760 It can be inserted using the menu
37762 Insert\SpecialChar menuseparator
37763 Floats\SpecialChar menuseparator
37765 \begin_inset space ~
37769 \begin_inset space ~
37777 \begin_inset space ~
37781 \begin_inset space ~
37786 if the \SpecialChar LaTeX
37792 \begin_inset Index idx
37795 \begin_layout Plain Layout
37797 -packages ! wrapfig
37806 \begin_layout Plain Layout
37807 Installing a \SpecialChar LaTeX
37808 -package is explained it in the
37812 \begin_inset space ~
37822 The settings of the float can be modified by right-clicking on the float
37824 The mandatory settings are the float
37837 that specifies how much the float is set into the paragraph
37838 \begin_inset space \thinspace{}
37842 \begin_inset space \thinspace{}
37845 page margin, and the
37848 \begin_inset space ~
37853 that specifies how many text lines the float will approximately need.
37854 The line span is often hard to approximate; so it is better only to use
37855 it when you encounter float placement problems.
37856 You can furthermore decide if \SpecialChar LaTeX
37857 is allowed to let the float float within
37858 the paragraph or to surrounding paragraphs.
37860 \begin_inset space ~
37864 \begin_inset CommandInset ref
37866 reference "fig:This-is-a"
37870 is an example text wrap float with a width of 40
37871 \begin_inset space \thinspace{}
37875 \begin_inset space \thinspace{}
37878 cm overhang, set to the left.
37881 \begin_layout Standard
37882 \begin_inset Note Greyedout
37885 \begin_layout Plain Layout
37891 \begin_inset space ~
37894 wrap float floats are fragile! E.
37895 \begin_inset space \thinspace{}
37899 \begin_inset space \space{}
37902 having a figure too close to the bottom of the page can mess things up in
37903 such a way that the float does not appear in the output or that it is placed
37904 over some other text.
37912 \begin_layout Standard
37913 In general, the following applies for wrap floats:
37916 \begin_layout Itemize
37917 They should not be placed in paragraphs that run over a page break.
37918 That means that wrap floats are better inserted in their exact place when
37919 the document is almost finished and you are able to estimate where page
37920 breaks will appear.
37923 \begin_layout Itemize
37924 They should either be placed in their own paragraph before the paragraph
37925 where they should wrap into or within a paragraph.
37928 \begin_layout Itemize
37929 In consecutive paragraphs they may cause troubles, so ensure that there
37930 is a text paragraph between them as separator.
37933 \begin_layout Itemize
37934 They are not allowed in section headings or tables.
37937 \begin_layout Itemize
37938 Their numbering and referencing works as described in chap.
37939 \begin_inset space \thinspace{}
37943 \begin_inset CommandInset ref
37945 reference "chap:Floats"
37952 \begin_layout Section
37953 Surrounded Fixed Objects
37954 \begin_inset Index idx
37957 \begin_layout Plain Layout
37958 Surrounded by text ! Fixed objects
37966 \begin_layout Standard
37967 The wrap floats described in sec.
37968 \begin_inset space \thinspace{}
37972 \begin_inset CommandInset ref
37974 reference "sec:Wrap-Floats"
37978 have these positions in the paragraph:
37981 \begin_layout Standard
37984 \begin_inset Tabular
37985 <lyxtabular version="3" rows="2" columns="2">
37986 <features tabularvalignment="middle">
37987 <column alignment="center" valignment="top">
37988 <column alignment="center" valignment="top">
37990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37993 \begin_layout Plain Layout
37996 arg "dialog-show-new-inset graphics"
38004 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38007 \begin_layout Plain Layout
38015 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38018 \begin_layout Plain Layout
38024 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38027 \begin_layout Plain Layout
38039 \begin_inset Tabular
38040 <lyxtabular version="3" rows="2" columns="2">
38041 <features tabularvalignment="middle">
38042 <column alignment="center" valignment="top">
38043 <column alignment="center" valignment="top">
38045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38048 \begin_layout Plain Layout
38054 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38057 \begin_layout Plain Layout
38060 arg "dialog-show-new-inset graphics"
38070 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38073 \begin_layout Plain Layout
38079 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38082 \begin_layout Plain Layout
38096 \begin_layout Standard
38097 To get an object exactly at the position where it is inserted, for example
38098 to get one of these positions:
38099 \begin_inset VSpace defskip
38105 \begin_layout Standard
38108 \begin_inset Tabular
38109 <lyxtabular version="3" rows="2" columns="2">
38110 <features tabularvalignment="middle">
38111 <column alignment="center" valignment="top">
38112 <column alignment="center" valignment="top">
38114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38117 \begin_layout Plain Layout
38123 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38126 \begin_layout Plain Layout
38134 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38137 \begin_layout Plain Layout
38140 arg "dialog-show-new-inset graphics"
38148 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38151 \begin_layout Plain Layout
38163 \begin_inset Tabular
38164 <lyxtabular version="3" rows="2" columns="2">
38165 <features tabularvalignment="middle">
38166 <column alignment="center" valignment="top">
38167 <column alignment="center" valignment="top">
38169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38172 \begin_layout Plain Layout
38178 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38181 \begin_layout Plain Layout
38189 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38192 \begin_layout Plain Layout
38198 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38201 \begin_layout Plain Layout
38204 arg "dialog-show-new-inset graphics"
38218 \begin_inset Tabular
38219 <lyxtabular version="3" rows="2" columns="3">
38220 <features tabularvalignment="middle">
38221 <column alignment="center" valignment="top">
38222 <column alignment="center" valignment="top">
38223 <column alignment="center" valignment="top">
38225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38228 \begin_layout Plain Layout
38234 <cell alignment="center" valignment="top" topline="true" usebox="none">
38237 \begin_layout Plain Layout
38240 arg "dialog-show-new-inset graphics"
38248 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38251 \begin_layout Plain Layout
38259 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38262 \begin_layout Plain Layout
38268 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38271 \begin_layout Plain Layout
38277 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38280 \begin_layout Plain Layout
38292 \begin_inset Tabular
38293 <lyxtabular version="3" rows="2" columns="3">
38294 <features tabularvalignment="middle">
38295 <column alignment="center" valignment="top">
38296 <column alignment="center" valignment="top">
38297 <column alignment="center" valignment="top">
38299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38302 \begin_layout Plain Layout
38308 <cell alignment="center" valignment="top" topline="true" usebox="none">
38311 \begin_layout Plain Layout
38317 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38320 \begin_layout Plain Layout
38328 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38331 \begin_layout Plain Layout
38337 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38340 \begin_layout Plain Layout
38343 arg "dialog-show-new-inset graphics"
38351 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38354 \begin_layout Plain Layout
38368 \begin_layout Standard
38371 \begin_inset Tabular
38372 <lyxtabular version="3" rows="3" columns="2">
38373 <features tabularvalignment="middle">
38374 <column alignment="center" valignment="top">
38375 <column alignment="center" valignment="top">
38377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38380 \begin_layout Plain Layout
38386 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38389 \begin_layout Plain Layout
38397 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38400 \begin_layout Plain Layout
38403 arg "dialog-show-new-inset graphics"
38411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38414 \begin_layout Plain Layout
38422 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38425 \begin_layout Plain Layout
38431 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38434 \begin_layout Plain Layout
38446 \begin_inset Tabular
38447 <lyxtabular version="3" rows="3" columns="3">
38448 <features tabularvalignment="middle">
38449 <column alignment="center" valignment="top">
38450 <column alignment="center" valignment="top">
38451 <column alignment="center" valignment="top">
38453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38456 \begin_layout Plain Layout
38462 <cell alignment="center" valignment="top" topline="true" usebox="none">
38465 \begin_layout Plain Layout
38471 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38474 \begin_layout Plain Layout
38482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38485 \begin_layout Plain Layout
38491 <cell alignment="center" valignment="top" usebox="none">
38494 \begin_layout Plain Layout
38497 arg "dialog-show-new-inset graphics"
38505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38508 \begin_layout Plain Layout
38516 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38519 \begin_layout Plain Layout
38525 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
38528 \begin_layout Plain Layout
38534 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38537 \begin_layout Plain Layout
38549 \begin_inset Tabular
38550 <lyxtabular version="3" rows="3" columns="2">
38551 <features tabularvalignment="middle">
38552 <column alignment="center" valignment="top">
38553 <column alignment="center" valignment="top">
38555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38558 \begin_layout Plain Layout
38564 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
38567 \begin_layout Plain Layout
38575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
38578 \begin_layout Plain Layout
38584 <cell alignment="center" valignment="top" rightline="true" usebox="none">
38587 \begin_layout Plain Layout
38590 arg "dialog-show-new-inset graphics"
38600 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
38603 \begin_layout Plain Layout
38609 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
38612 \begin_layout Plain Layout
38626 \begin_layout Standard
38628 you can use the \SpecialChar LaTeX
38634 \begin_inset Index idx
38637 \begin_layout Plain Layout
38639 -packages ! picinpar
38645 Here is an example:
38648 \begin_layout Standard
38652 \begin_layout Plain Layout
38662 \begin_inset Note Note
38665 \begin_layout Plain Layout
38666 The following section will only be displayed when the \SpecialChar LaTeX
38679 \begin_layout Standard
38683 \begin_layout Plain Layout
38687 begin{window}[2,c,{
38693 \begin_inset Graphics
38694 filename clipart/mobius.eps
38697 scaleBeforeRotation
38698 rotateOrigin center
38706 \begin_layout Plain Layout
38711 \begin_layout Plain Layout
38720 It was in the spring of the year 1894 that all London was interested, and
38721 the fashionable world dismayed, by the murder of the Honourable Ronald
38722 Adair under most unusual and inexplicable circumstances.
38723 The public has already learned those particulars of the crime which
38729 \begin_layout Plain Layout
38740 came out in the police investigation, but a good deal was suppressed upon
38741 that occasion, since the case for the prosecution was so overwhelmingly
38742 strong that it was not necessary to bring forward all the facts.
38743 Only now, at the end of nearly ten years, am I allowed to supply those
38744 missing links which make up the whole of that remarkable chain.
38750 \begin_layout Plain Layout
38762 \begin_layout Standard
38766 \begin_layout Plain Layout
38775 Footnote of the paragraph with the fixed object.
38779 \begin_layout Plain Layout
38789 \begin_layout Standard
38790 Surrounded fixed objects are used to let text float around them, at which
38791 the object's position in the paragraph can be determined by the number
38793 In contrary to floats is it not possible to have a numbered caption.
38796 \begin_layout Standard
38797 A fixed object is inserted by adding the command
38800 \begin_layout Standard
38805 begin{window}[2,c,{
38808 \begin_layout Standard
38809 as \SpecialChar TeX
38810 Code at the beginning of the paragraph.
38811 The first parameter in the bracket, here '2', defines the number of lines
38812 above the object, the second, here 'c', the position of the object.
38813 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
38814 Behind the command you insert the object.
38815 In this example an image with a width of 40
38816 \begin_inset space \thinspace{}
38819 % of the text column width was inserted.
38820 The object can also be a table, a box or an equation.
38821 Behind the object the command
38824 \begin_layout Standard
38827 },description text]
38828 \begin_inset Newline newline
38834 \begin_layout Standard
38837 \begin_inset Quotes eld
38845 \begin_inset Quotes erd
38848 is in the second line.
38849 The description text is optional.
38850 The text surrounding the object must be in the same paragraph as the object,
38851 so it must begin directly after the
38856 At the end of the paragraph insert the command:
38859 \begin_layout Standard
38867 \begin_layout Standard
38868 Within a paragraph with a fixed object, you cannot insert footnotes in the
38870 You have to use instead the command
38876 inside the paragraph and outside the command
38882 as described in sec.
38883 \begin_inset space \thinspace{}
38887 \begin_inset CommandInset ref
38889 reference "sec:Footnotes"
38896 \begin_layout Standard
38900 \begin_layout Plain Layout
38910 \begin_inset Note Note
38913 \begin_layout Plain Layout
38914 The following will be displayed when the \SpecialChar LaTeX
38927 \begin_layout Standard
38928 You need to install the \SpecialChar LaTeX
38933 to see the following part of this section in the output.
38936 \begin_layout Standard
38940 \begin_layout Plain Layout
38952 \begin_layout Section
38954 \begin_inset Index idx
38957 \begin_layout Plain Layout
38964 \begin_inset Index idx
38967 \begin_layout Plain Layout
38968 Surrounded by text ! Initials
38976 \begin_layout Standard
38977 To use initials, you must have the \SpecialChar LaTeX
38983 \begin_inset Index idx
38986 \begin_layout Plain Layout
38988 -packages ! lettrine
38993 installed and use the module
38997 in your document (menu
38999 Document\SpecialChar menuseparator
39000 Settings\SpecialChar menuseparator
39004 To insert an initial, use the style
39009 This style has a mandatory and two optional arguments.
39010 The arguments are inserted via the
39015 The mandatory argument
39019 contains the letter(s) that is the initial, the argument
39022 \begin_inset space ~
39026 \begin_inset space ~
39031 contains the rest of the word or text of the initial letter(s).
39036 contains parameters to modify the initial.
39037 For more information about the possible parameters see the documentation
39043 \begin_inset CommandInset citation
39051 The style itself contains the text that is surrounding the initial.
39052 The usual style is hereby that the word whose first letter is the initial,
39060 \begin_layout Standard
39061 Here are some examples:
39064 \begin_layout Standard
39068 \begin_layout Plain Layout
39078 \begin_inset Note Note
39081 \begin_layout Plain Layout
39082 The following section will only be displayed when the \SpecialChar LaTeX
39095 \begin_layout Enumerate
39096 No optional argument, the initial is the letter 'I' in the math font
39097 \begin_inset Formula $\mathfrak{Fraktur}$
39104 \begin_layout Initial
39105 \begin_inset Argument 2
39108 \begin_layout Plain Layout
39109 \begin_inset Formula $\mathfrak{I}$
39118 \begin_inset Argument 3
39121 \begin_layout Plain Layout
39127 was in the spring of the year 1894 that all London was interested, and
39128 the fashionable world dismayed, by the murder of the Honourable Ronald
39129 Adair under most unusual and inexplicable circumstances.
39130 The public has already learned those particulars of the crime which came
39131 out in the police investigation, but a good deal was suppressed upon that
39132 occasion, since the case for the prosecution was so overwhelmingly strong
39133 that it was not necessary to bring forward all the facts.
39134 \begin_inset Newpage newpage
39141 \begin_layout Enumerate
39142 Only one line is surrounding the initial, which is formed by two letters
39143 in standard font and no text is printed in small caps:
39147 \begin_layout Initial
39148 \begin_inset Argument 1
39151 \begin_layout Plain Layout
39158 \begin_inset Argument 2
39161 \begin_layout Plain Layout
39167 was in the spring of the year 1894 that all London was interested, and
39168 the fashionable world dismayed, by the murder of the Honourable Ronald
39169 Adair under most unusual and inexplicable circumstances.
39170 The public has already learned those particulars of the crime which came
39171 out in the police investigation, but a good deal was suppressed upon that
39172 occasion, since the case for the prosecution was so overwhelmingly strong
39173 that it was not necessary to bring forward all the facts.
39177 \begin_layout Enumerate
39178 Magenta, hanging initial over 3
39179 \begin_inset space ~
39182 lines in the math font
39183 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
39187 \begin_inset Quotes eld
39190 t was in the spring
39191 \begin_inset Quotes erd
39198 ; to color the initial, you must insert this command before the initial:
39199 \begin_inset Newline newline
39213 \begin_inset Newline newline
39221 \begin_inset Quotes eld
39225 \begin_inset Quotes erd
39229 \begin_inset Quotes eld
39233 \begin_inset Quotes erd
39237 \begin_inset Quotes eld
39241 \begin_inset Quotes erd
39245 \begin_inset Quotes eld
39249 \begin_inset Quotes erd
39253 \begin_inset Quotes eld
39257 \begin_inset Quotes erd
39261 \begin_inset Quotes eld
39265 \begin_inset Quotes erd
39269 \begin_inset Quotes eld
39273 \begin_inset Quotes erd
39277 \begin_inset Quotes eld
39281 \begin_inset Quotes erd
39284 , and add this command to the document preamble:
39285 \begin_inset Newline newline
39292 @ifundefined{textcolor}
39293 \begin_inset Newline newline
39297 \begin_inset space ~
39302 usepackage{color}}{}
39306 \begin_layout Standard
39310 \begin_layout Plain Layout
39324 \begin_inset Note Note
39327 \begin_layout Plain Layout
39328 makes the initial magenta
39336 \begin_layout Initial
39337 \begin_inset Argument 1
39340 \begin_layout Plain Layout
39341 lines=3, lhang=0.33, loversize=0.25
39347 \begin_inset Argument 2
39350 \begin_layout Plain Layout
39351 \begin_inset Formula $\mathcal{I}$
39360 \begin_inset Argument 3
39363 \begin_layout Plain Layout
39364 t was in the spring
39369 of the year 1894 that all London was interested, and the fashionable world
39370 dismayed, by the murder of the Honourable Ronald Adair under most unusual
39371 and inexplicable circumstances.
39372 The public has already learned those particulars of the crime which came
39373 out in the police investigation, but a good deal was suppressed upon that
39374 occasion, since the case for the prosecution was so overwhelmingly strong
39375 that it was not necessary to bring forward all the facts.
39379 \begin_layout Standard
39383 \begin_layout Plain Layout
39393 \begin_inset Note Note
39396 \begin_layout Plain Layout
39397 The following will be displayed when the \SpecialChar LaTeX
39410 \begin_layout Standard
39411 You need to install the \SpecialChar LaTeX
39416 to see the following part of this section in the output.
39419 \begin_layout Standard
39423 \begin_layout Plain Layout
39435 \begin_layout Chapter
39436 External Document Parts
39437 \begin_inset Index idx
39440 \begin_layout Plain Layout
39441 External Document Parts
39449 \begin_layout Standard
39452 Insert\SpecialChar menuseparator
39455 you can insert external material into your document.
39459 \begin_layout Description
39461 \begin_inset space ~
39464 Document Another \SpecialChar LyX
39465 document; its content is directly inserted to your document.
39468 \begin_layout Description
39470 \begin_inset space ~
39473 Text A text document; each line is inserted in your document as a separate
39477 \begin_layout Description
39479 \begin_inset space ~
39483 \begin_inset space ~
39487 \begin_inset space ~
39490 Lines A text document; text lines are inserted in your document continuously
39491 but an empty text line creates a new paragraph.
39494 \begin_layout Description
39496 \begin_inset space ~
39499 Material Files in various formats.
39502 \begin_layout Description
39504 \begin_inset space ~
39507 Document \SpecialChar LyX
39508 or \SpecialChar LaTeX
39512 \begin_layout Section
39514 \begin_inset Index idx
39517 \begin_layout Plain Layout
39518 External Document Parts ! External Material
39526 \begin_layout Standard
39527 The external material feature allows you to insert files into your document
39528 without converting them to a format that can be read by the document output
39531 takes care of the necessary conversions.
39532 This is similar to images that can be inserted in various image formats
39533 in \SpecialChar LyX
39535 When you have enabled Instant Preview in \SpecialChar LyX
39536 's preferences under
39539 \begin_inset space ~
39543 \begin_inset space ~
39546 feel\SpecialChar menuseparator
39549 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
39553 \begin_layout Standard
39554 External material can be inserted via the
39558 dialog that is accessible with the menu
39560 Insert\SpecialChar menuseparator
39561 File\SpecialChar menuseparator
39563 \begin_inset space ~
39569 Currently the following file types (
39576 \begin_layout Description
39578 \begin_inset space ~
39581 diagram This template supports chess position diagrams made with the program
39585 \begin_inset CommandInset href
39588 target "http://en.wikipedia.org/wiki/XBoard"
39598 \begin_layout Description
39600 \begin_inset space ~
39603 diagram This template supports diagrams created with the program
39606 \begin_inset CommandInset href
39609 target "http://en.wikipedia.org/wiki/Dia_(software)"
39619 \begin_layout Description
39620 Spreadsheet With this template you can insert spreadsheets
39621 \begin_inset space \thinspace{}
39625 \begin_inset space \thinspace{}
39628 tables in the format of
39631 \begin_inset CommandInset href
39634 target "http://en.wikipedia.org/wiki/Gnumeric"
39642 \begin_inset CommandInset href
39644 name "OpenDocument"
39645 target "http://en.wikipedia.org/wiki/OpenDocument"
39651 \begin_inset CommandInset href
39653 name "Microsoft Office XML"
39654 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
39660 \begin_inset CommandInset href
39662 name "Office Open XML"
39663 target "http://en.wikipedia.org/wiki/Office_Open_XML"
39669 For this feature \SpecialChar LyX
39670 must have found the program
39674 during its configuration.
39675 This program is part of Gnumeric, so that you must have Gnumeric installed,
39676 also if you don't have tables in the Gnumeric format.
39677 For examples and possible limitations have a look at \SpecialChar LyX
39685 \begin_layout Description
39687 \begin_inset space ~
39691 \begin_inset space ~
39694 music This template is used for music notation typeset with the program
39695 \begin_inset Newline linebreak
39701 \begin_inset CommandInset href
39704 target "http://en.wikipedia.org/wiki/LilyPond"
39712 For \SpecialChar LyX
39713 's extended support for LilyPond have a look at \SpecialChar LyX
39721 \begin_layout Description
39723 \begin_inset space ~
39726 pages With this template you can insert PDF documents to your document.
39727 To specify the range of pages that should be included, use the option
39737 LaTeX and LyX options
39740 The argument of this option is a comma separated list, containing page
39741 numbers (insert as option
39745 ), ranges of page numbers (
39749 ) or any combination.
39750 To insert empty pages use {}.
39752 \begin_inset space \thinspace{}
39756 \begin_inset space ~
39761 pages={3,{},8-11,15}
39763 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
39764 Page ranges are specified in the syntax
39773 This selects all pages from
39786 defaults to the first page; omitting
39790 defaults to the last page of the document.
39791 The last page can also be selected with the keyword
39796 (This is only permitted in a page range.) So
39800 will insert all pages of the document and
39804 will insert all pages in reverse order.
39805 If the pages option is not specified, only the first page of the PDF is
39807 \begin_inset Newline newline
39814 inserts the pages with their original size, if this option is not given,
39815 the pages will be resized to fith the width of the page of your document.
39820 you can specify the width and height of the input pages and their rotation.
39821 If another width than 100
39822 \begin_inset space \thinspace{}
39825 Scale% is used, the option
39829 will be overwritten.
39830 For more info and possible options, have a look into the documentation
39831 of the \SpecialChar LaTeX
39837 \begin_inset CommandInset citation
39845 \begin_inset Index idx
39848 \begin_layout Plain Layout
39850 -packages ! pdfpages
39856 \begin_inset Newline newline
39859 To use this template in a
39863 presentation you need to first insert an
39867 environment and in a subsequent paragraph a \SpecialChar TeX
39868 Code box containing the command
39873 setbeamertemplate{background canvas}{}
39876 Then you can insert as many paragraphs containing the PDFPages template
39878 Behind the included PDF pages you can resume the Beamer presentation by
39879 beginning a new frame or by starting a new section.
39880 To avoid stray blank pages prior to the PDF pages, make sure to use the
39885 alignment for the paragraph containing the template.
39886 \begin_inset Newline newline
39889 Here is an included PDF which is rotated by -5°:
39890 \begin_inset External
39892 filename clipart/Abstract.pdf
39893 extra LaTeX "noautoscale, pages=-"
39895 rotateOrigin bottomleft
39902 \begin_layout Description
39904 \begin_inset space ~
39907 image This can be used for bitmap images.
39908 The image can be treated in the
39912 dialog like the images that are usually included via the
39916 dialog as described in section
39917 \begin_inset space ~
39921 \begin_inset CommandInset ref
39923 reference "sec:Graphics-Dialog"
39928 Here is an inserted raster image:
39929 \begin_inset External
39930 template RasterImage
39931 filename clipart/ToolbarEnvBox.png
39938 \begin_layout Description
39940 \begin_inset space ~
39943 graphics This can be used for vector graphics.
39944 The image can be treated in the
39948 dialog like the images that are usually included via the
39952 dialog as described in section
39953 \begin_inset space ~
39957 \begin_inset CommandInset ref
39959 reference "sec:Graphics-Dialog"
39964 Here is an inserted vector graphics:
39965 \begin_inset External
39966 template VectorGraphics
39967 filename clipart/SVG-Drawing.svg
39976 \begin_layout Description
39978 \begin_inset space ~
39981 figure This template supports images created with the program
39984 \begin_inset CommandInset href
39987 target "http://en.wikipedia.org/wiki/Xfig"
39995 \change_inserted 227574939 1473131626
39999 \begin_layout Description
40001 \change_inserted 227574939 1473131628
40003 \begin_inset space ~
40006 figure This experimental template supports
40007 \change_inserted 2047637253 1475533187
40009 \change_inserted 227574939 1473131628
40011 \change_inserted 2047637253 1475533525
40012 that contain text written in \SpecialChar LaTeX
40015 \change_inserted 227574939 1473131628
40017 \change_inserted 2047637253 1475533551
40018 It relies on the PDF/PS+\SpecialChar LaTeX
40020 \change_deleted 2047637253 1475533556
40022 \change_inserted 227574939 1473131628
40024 \begin_inset CommandInset href
40027 target "https://en.wikipedia.org/wiki/Inkscape"
40034 \change_inserted 2047637253 1475534005
40035 As described by the CTAN demonstration package
40043 \begin_layout Quote
40045 \change_inserted 2047637253 1475534064
40049 \begin_inset Quotes eld
40052 PDF+\SpecialChar LaTeX
40054 \begin_inset Quotes erd
40057 option of Inkscape, it is possible to include SVG in documents, in which
40060 This results in uniform text style throughout the document, including text
40061 in images; moreover, \SpecialChar LaTeX
40062 commands may be used in the image’s text, providing
40063 such things as mathematics and references.
40066 \begin_layout Standard
40068 \change_inserted 2047637253 1475534692
40069 With Inkscape, even the size of the font is taken from the surrounding \SpecialChar LaTeX
40072 Of course, you can always embed \SpecialChar LaTeX
40086 into your figure text strings.
40091 documentation package for more information and examples.
40094 \begin_layout Standard
40096 \change_inserted 2047637253 1475534902
40097 It should be noted that while the image takes into account the surrounding
40098 font, its preview in \SpecialChar LyX
40100 Wrapping the external inset in a preview inset gives better results in
40104 \begin_layout Standard
40106 \change_deleted 2047637253 1475534821
40108 \change_inserted 2047637253 1475534913
40110 \change_inserted 227574939 1473131628
40111 works very similarly to Xfig support, except that Inkscape is a more modern
40112 image editor than Xfig, which uses Scalable Vector Graphics (SVG) as its
40117 \change_inserted 227574939 1473131628
40118 LyX will process the image file in much the same way as it does an Xfig
40119 image, extracting the text into a separate TeX file for the text strings,
40120 and a PDF file for the rest.
40123 \begin_layout Description
40125 \change_inserted 227574939 1473131628
40126 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
40127 with multi-page PDFs, the TeX file will sometimes reference more pages
40128 than the PDF file contains.
40129 This is the version that ships with Ubuntu 16.04.
40130 Its use with LyX can therefore not be recommended, until the bug is fixed
40134 \begin_layout Plain Layout
40136 \change_inserted 227574939 1473131628
40137 A workaround for those who have already SVG figures in their document is,
40138 to manually do the LaTeX+PDF output from Inkscape, edit the
40142 file to remove the erroneous references, and
40148 it directly into LyX, i.e., not use the external-template mechanism:
40151 \begin_layout Plain Layout
40153 \change_inserted 227574939 1473131628
40154 \begin_inset Graphics
40155 filename clipart/workaround.png
40163 \begin_layout Plain Layout
40165 \change_inserted 227574939 1473131628
40166 Here, the child document input inset (
40168 Insert\SpecialChar menuseparator
40169 File\SpecialChar menuseparator
40172 ) was used, which allows you do directly edit the
40176 file in a text editor.
40177 The LaTeX output is based on this edited snippet as re-generation from
40178 the SVG file has been commented out.
40184 \change_deleted 2047637253 1475534230
40188 \begin_layout Standard
40190 \change_deleted 2047637253 1475534225
40191 The reason why we would use this complicated process at all, like in the
40192 case of Xfig, is that it makes the text strings inside the figure of the
40193 same font type and attributes as the surrounding text, which looks so much
40195 With Inkscape, even the
40199 of the font is taken from the surrounding LaTeX document – in Xfig, you
40200 have to set it by hand to be the same.
40201 Of course you can always embed LaTeX modifiers like
40214 into your figure text strings.
40215 \change_inserted 227574939 1473131628
40220 \begin_layout Standard
40221 \begin_inset Float table
40227 \begin_layout Plain Layout
40228 \begin_inset Caption Standard
40230 \begin_layout Plain Layout
40231 \begin_inset CommandInset label
40233 name "tab:Comparison-of-the"
40237 Comparison of the date input methods.
40245 \begin_layout Plain Layout
40247 \begin_inset Tabular
40248 <lyxtabular version="3" rows="4" columns="3">
40249 <features tabularvalignment="middle">
40250 <column alignment="center" valignment="top">
40251 <column alignment="center" valignment="top">
40252 <column alignment="center" valignment="top">
40254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40257 \begin_layout Plain Layout
40263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40266 \begin_layout Plain Layout
40269 Insert\SpecialChar menuseparator
40275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40278 \begin_layout Plain Layout
40290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40293 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40313 as \SpecialChar TeX
40321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40324 \begin_layout Plain Layout
40331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40334 \begin_layout Plain Layout
40340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40343 \begin_layout Plain Layout
40351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40354 \begin_layout Plain Layout
40360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40363 \begin_layout Plain Layout
40369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40372 \begin_layout Plain Layout
40391 \begin_layout Standard
40392 When you use the option
40404 dialog, only the path to the inserted file is shown in the output.
40405 \begin_inset Newline newline
40408 External material is displayed in \SpecialChar LyX
40409 either as a box like this:
40410 \begin_inset Graphics
40411 filename clipart/ExternalMaterial.png
40413 scaleBeforeRotation
40417 or as image, depending on the option
40423 LaTeX and LyX options
40428 \begin_layout Standard
40435 manual explains how you can define your own templates.
40438 \begin_layout Section
40440 \begin_inset CommandInset label
40442 name "sec:Child-Documents"
40447 \begin_inset Index idx
40450 \begin_layout Plain Layout
40451 External Document Parts ! Child Documents
40457 \begin_inset Index idx
40460 \begin_layout Plain Layout
40469 \begin_layout Standard
40470 Child documents are used if you have a long document consisting of several
40471 larger parts or sections.
40472 For maintenance it is often useful and sometimes even required to split
40473 the document into several files that can be revised separately.
40474 The different documents are then the so called
40475 \begin_inset Quotes eld
40479 \begin_inset Quotes erd
40482 , and a master document connects them to print the full document or parts
40484 A child document inherits elements from its master, for example the \SpecialChar LaTeX
40486 the bibliography, and labels for cross-references.
40489 \begin_layout Standard
40490 To be able to work on child documents without the need to open their master,
40491 specify in the child document the master in the menu
40493 Document\SpecialChar menuseparator
40494 Settings\SpecialChar menuseparator
40496 \begin_inset space ~
40502 This master document will then be used in the background by \SpecialChar LyX
40504 the child document.
40507 \begin_layout Standard
40508 Included documents are displayed in \SpecialChar LyX
40509 as a box like this:
40510 \begin_inset Graphics
40511 filename clipart/ChildDocument.png
40513 scaleBeforeRotation
40517 To include child documents in a master document use the menu
40519 Insert\SpecialChar menuseparator
40520 File\SpecialChar menuseparator
40522 \begin_inset space ~
40528 A dialog pops up where you can choose between four include methods:
40531 \begin_layout Description
40532 Include You can include \SpecialChar LyX
40533 and \SpecialChar LaTeX
40543 dialog, the included document will be opened in \SpecialChar LyX
40544 in a new file tab so that
40546 \begin_inset Newline newline
40552 \begin_layout Standard
40553 Here is a child document inserted using
40558 \begin_inset CommandInset include
40559 LatexCommand include
40560 filename "DummyDocument1.lyx"
40567 \begin_layout Standard
40568 The section numbering includes the sections of the included files in the
40569 order they are inserted in the master document.
40570 The included example document has for example a subsection that is numbered
40571 as a subsection of this section.
40572 Labels of included documents can be referenced: Subsection
40573 \begin_inset space ~
40577 \begin_inset CommandInset ref
40579 reference "subsec:External-Subsection-1"
40586 \begin_layout Standard
40587 The preamble of the child document is ignored; only the preamble of the
40588 master document is used.
40589 Branches in child documents will be ignored by the master document when
40590 the master document does not have a branch with the same name.
40591 Included documents are inserted starting on a new page and ending with
40595 \begin_layout Standard
40596 \begin_inset Note Greyedout
40599 \begin_layout Plain Layout
40604 If you have included a \SpecialChar LyX
40605 or \SpecialChar LaTeX
40606 file, you are warned when you export/view the
40607 document in case the child document uses another document class than the
40608 master document as this will lead to unexpected outputs.
40616 \begin_layout Description
40617 Input This method is very similar to the Include method.
40618 The differences are:
40622 \begin_layout Itemize
40623 Input files don't start with a new page and don't end with a page break.
40626 \begin_layout Itemize
40627 Input files can be previewed in \SpecialChar LyX
40631 \begin_inset space ~
40636 is enabled in \SpecialChar LyX
40637 's preferences under
40640 \begin_inset space ~
40644 \begin_inset space ~
40647 feel\SpecialChar menuseparator
40653 \begin_layout Itemize
40654 You cannot exclude Input files via the menu
40656 Document\SpecialChar menuseparator
40657 Settings\SpecialChar menuseparator
40664 \begin_layout Standard
40665 Here is a child document inserted using
40670 \begin_inset CommandInset include
40672 filename "DummyDocument2.lyx"
40679 \begin_layout Description
40680 Verbatim With this method any text file can be included.
40681 The file is shown in the output with its source code; no command used in
40682 the text is invoked.
40683 You can use the option
40685 Mark spaces in output
40687 that displays the character
40688 \begin_inset Quotes eld
40695 \begin_layout Plain Layout
40705 \begin_inset Quotes erd
40708 for every space character in the source code.
40709 The difference from the method via the menu
40711 Insert\SpecialChar menuseparator
40712 File\SpecialChar menuseparator
40714 \begin_inset space ~
40719 is that the document content is not shown in \SpecialChar LyX
40723 \begin_layout Standard
40724 Here is a child document inserted as Verbatim:
40725 \begin_inset CommandInset include
40726 LatexCommand verbatiminput
40727 filename "DummyTextDocument.txt"
40732 \begin_inset VSpace bigskip
40735 Here is a child document inserted as Verbatim using the
40737 Mark spaces in output
40740 \begin_inset CommandInset include
40741 LatexCommand verbatiminput*
40742 filename "DummyTextDocument.txt"
40749 \begin_layout Standard
40750 \begin_inset VSpace bigskip
40756 \begin_layout Standard
40757 \begin_inset Note Greyedout
40760 \begin_layout Plain Layout
40765 As you can see in the examples above, the text of the documents included
40770 is not broken at the end of the document lines.
40778 \begin_layout Description
40779 Listings This type is described in chapter
40780 \begin_inset space ~
40784 \begin_inset CommandInset ref
40786 reference "cha:Program-Code-Listings"
40793 \begin_layout Standard
40794 \begin_inset Note Greyedout
40797 \begin_layout Plain Layout
40802 Including the same document twice in a document using different methods
40803 could cause \SpecialChar LaTeX
40812 \begin_layout Standard
40813 If you want to view/export only selected children of your master document,
40814 either because you want to save compiling time or because you want to distribut
40815 e single chapters of the book you are just writing, you can exclude children
40817 This is done via the menu
40819 Document\SpecialChar menuseparator
40820 Settings\SpecialChar menuseparator
40824 You can exclude\SpecialChar breakableslash
40825 include children by double-clicking on the
40829 column of the respective child document in the list (note that this only
40830 works for documents embedded via
40831 \begin_inset Quotes eld
40835 \begin_inset Quotes erd
40839 \begin_inset Quotes eld
40843 \begin_inset Quotes erd
40849 Maintain counters and references
40851 is enabled, \SpecialChar LyX
40852 will assure that all page numbers, references etc.
40853 \begin_inset space ~
40856 are correct as if the whole document was processed.
40857 This is useful if you want the selected sub-documents to look exactly as
40858 in the context of the whole document.
40859 However, \SpecialChar LyX
40860 needs to process the whole document in the background for this
40862 So if you want to save compile time and if counters and references do not
40863 need to be correct, disable this checkbox.
40866 \begin_layout Standard
40867 Alternatively, you can put each included file into a branch.
40871 \begin_layout Plain Layout
40872 Branches are described in section
40876 of the \SpecialChar LyX
40886 By enabling\SpecialChar breakableslash
40887 disabling branches you can decide which included files will
40888 appear in the output.
40889 This has the advantage that it also works with Input'ed sub-documents.
40890 However, counters and references will not be maintained with this approach.
40893 \begin_layout Chapter
40894 Program Code Listings
40895 \begin_inset CommandInset label
40897 name "cha:Program-Code-Listings"
40902 \begin_inset Index idx
40905 \begin_layout Plain Layout
40912 \begin_inset Index idx
40915 \begin_layout Plain Layout
40922 \begin_inset Index idx
40925 \begin_layout Plain Layout
40934 \begin_layout Standard
40935 To include and typeset program code you can use the
40939 inset that can be inserted via the menu
40941 Insert\SpecialChar menuseparator
40945 The \SpecialChar LaTeX
40951 \begin_inset Index idx
40954 \begin_layout Plain Layout
40956 -packages ! listings
40961 provides a powerful and flexible way to insert program source code into
40965 \begin_layout Standard
40966 Right-clicking on a listings inset opens the context menu containing where
40967 you can set the listings format.
40970 \begin_layout Standard
40971 By default, a listing starts a new paragraph in the output.
40972 The placement option
40975 \begin_inset space ~
40980 prints the listing inline like this:
40981 \begin_inset listings
40982 lstparams "language={C++}"
40986 \begin_layout Plain Layout
40994 \begin_inset Newline newline
41001 creates a listings float where you can specify the placement options
41002 \begin_inset Quotes eld
41010 \begin_inset Quotes erd
41014 \begin_inset Quotes eld
41022 \begin_inset Quotes erd
41026 \begin_inset Quotes eld
41034 \begin_inset Quotes erd
41038 \begin_inset Quotes eld
41046 \begin_inset Quotes erd
41049 corresponding to the float placement options described in section
41050 \begin_inset space ~
41054 \begin_inset CommandInset ref
41056 reference "sec:Float-Placement"
41061 The placement options can be mixed and are inserted without any separation,
41063 \begin_inset space \thinspace{}
41067 \begin_inset space \space{}
41071 \begin_inset Quotes eld
41079 \begin_inset Quotes erd
41084 \begin_inset Quotes eld
41088 \begin_inset Quotes erd
41091 has sometimes no effect, but you don't need to use the
41095 option in this case as also non-float listings can have captions and be
41099 \begin_layout Standard
41100 You can add captions to listings with the menu
41102 Insert\SpecialChar menuseparator
41106 Listings can be referenced like floats: Listing
41107 \begin_inset space ~
41111 \begin_inset CommandInset ref
41113 reference "lst:Example-Listing"
41118 A list of listings which contains all listings with captions can be created
41121 Insert\SpecialChar menuseparator
41123 \begin_inset space ~
41127 \begin_inset space ~
41130 TOC\SpecialChar menuseparator
41134 The list entries are the listing caption and the listing number.
41137 \begin_layout Standard
41138 \begin_inset listings
41139 lstparams "language=Python"
41143 \begin_layout Plain Layout
41145 \begin_inset Caption Standard
41147 \begin_layout Plain Layout
41148 \begin_inset CommandInset label
41150 name "lst:Example-Listing"
41154 Example Listing float
41159 # Example listing float
41162 \begin_layout Plain Layout
41167 \begin_layout Plain Layout
41169 'this is a python function'
41172 \begin_layout Plain Layout
41182 \begin_layout Standard
41183 When you have set a programming language in the listings dialog, the keywords
41184 of this language will be recognized and specially typeset in the output.
41185 In the example listings the Python keyword
41186 \begin_inset Quotes eld
41190 \begin_inset Quotes erd
41193 is recognized and printed bold in the output.
41196 \begin_layout Standard
41197 \begin_inset Note Greyedout
41200 \begin_layout Plain Layout
41205 If you don't get bold keywords when using typewriter fonts, your
41209 font probably doesn't provide a bold shape.
41210 In this case select a different one in the menu
41212 Document\SpecialChar menuseparator
41213 Settings\SpecialChar menuseparator
41225 provide bold shapes.)
41233 \begin_layout Standard
41237 \begin_inset space ~
41242 of the listings dialog you can specify the line numbering style.
41243 You can insert a number to specify which lines are numbered in the field
41250 \begin_inset space \thinspace{}
41254 \begin_inset space \space{}
41258 \begin_inset Quotes eld
41262 \begin_inset Quotes erd
41265 , only every 3rd line will be numbered.
41268 \begin_layout Standard
41269 You can furthermore specify a range of lines; only these will then appear
41273 Extended character table
41275 should be used when you use national characters like the German umlauts
41277 \begin_inset Newline newline
41280 Here is an example listing with left line numbering, step
41281 \begin_inset Quotes eld
41285 \begin_inset Quotes erd
41289 \begin_inset Quotes eld
41293 \begin_inset Quotes erd
41297 \begin_inset Quotes eld
41300 Extended character table
41301 \begin_inset Quotes erd
41305 \begin_inset Quotes eld
41309 \begin_inset space ~
41313 \begin_inset space ~
41317 \begin_inset Quotes erd
41321 \begin_inset space \thinspace{}
41325 \begin_inset space \thinspace{}
41331 \begin_layout Standard
41332 \begin_inset listings
41333 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
41337 \begin_layout Plain Layout
41342 \begin_layout Plain Layout
41344 'this is a python function'
41347 \begin_layout Plain Layout
41352 \begin_layout Plain Layout
41357 \begin_layout Plain Layout
41359 'This is a German word: Tschüß'
41362 \begin_layout Plain Layout
41367 \begin_layout Plain Layout
41372 \begin_layout Plain Layout
41374 'this is a python function'
41377 \begin_layout Plain Layout
41387 \begin_layout Standard
41388 When you have tabulators in your listing, you can specify the number of
41389 characters that are spanned by a tabulator in the field
41392 \begin_inset space ~
41400 \begin_layout Standard
41401 \begin_inset Note Greyedout
41404 \begin_layout Plain Layout
41409 Due to a bug in the
41413 package the line numbering is shifted by a line by every previous listing.
41414 That's the reason why the lines 2 and 5 are numbered in the above listing
41415 and not the lines 3 and 6.
41423 \begin_layout Standard
41424 \begin_inset VSpace bigskip
41430 \begin_layout Standard
41431 It is also possible to print lines from a file as listing.
41432 To do this, use the menu
41434 Insert\SpecialChar menuseparator
41435 File\SpecialChar menuseparator
41438 and choose the type
41446 \begin_layout Plain Layout
41447 The other child document types are described in section
41448 \begin_inset space ~
41452 \begin_inset CommandInset ref
41454 reference "sec:Child-Documents"
41463 In the child document dialog you can specify the listing parameters in
41465 To show a list of all available parameters, type in a question mark
41466 \begin_inset Quotes eld
41470 \begin_inset Quotes erd
41476 \begin_layout Standard
41477 To reference child document listings, write a label text into the corresponding
41478 field of the child document dialog.
41479 The label can then be referenced using the menu
41481 Insert\SpecialChar menuseparator
41487 \begin_layout Standard
41489 \begin_inset space ~
41493 \begin_inset CommandInset ref
41495 reference "lst:file-listing"
41499 is an example for a listing of a file; there the lines 10
41500 \begin_inset space \thinspace{}
41504 \begin_inset space \thinspace{}
41507 15 of this \SpecialChar LyX
41511 \begin_layout Standard
41512 \begin_inset CommandInset include
41513 LatexCommand lstinputlisting
41514 filename "EmbeddedObjects.lyx"
41515 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
41522 \begin_layout Standard
41523 \begin_inset VSpace bigskip
41529 \begin_layout Standard
41530 Inserting a formula into a listing can be done the following way:
41533 \begin_layout Enumerate
41534 Open the listings dialog and add
41535 \begin_inset Newline newline
41543 \begin_inset Newline newline
41546 to the field of the
41553 \begin_layout Enumerate
41554 Create a formula outside the listing
41557 \begin_layout Enumerate
41558 Copy the content of the formula (not the formula inset) to the clipboard
41568 \begin_layout Enumerate
41569 In the listing write
41570 \begin_inset Quotes eld
41578 \begin_inset Quotes erd
41581 and copy from the clipboard between the dollar-signs (shortcut
41590 \begin_layout Standard
41591 \begin_inset listings
41592 lstparams "language=Python,mathescape=true"
41596 \begin_layout Plain Layout
41598 \begin_inset Caption Standard
41600 \begin_layout Plain Layout
41601 Example Listing float containing a formula
41606 # Example listing float
41609 \begin_layout Plain Layout
41614 \begin_layout Plain Layout
41627 \begin_layout Plain Layout
41637 \begin_layout Standard
41638 \begin_inset VSpace bigskip
41644 \begin_layout Standard
41645 Global listings settings can be set in the
41647 Document\SpecialChar menuseparator
41648 Settings\SpecialChar menuseparator
41652 To get there a list of available options, type in a question mark
41653 \begin_inset Quotes eld
41657 \begin_inset Quotes erd
41663 \begin_layout Standard
41664 For more information about the
41668 package, we refer to its documentation
41669 \begin_inset CommandInset citation
41679 \begin_layout Standard
41680 \begin_inset Newpage newpage
41686 \begin_layout Chapter
41688 Units available in \SpecialChar LyX
41690 \begin_inset Index idx
41693 \begin_layout Plain Layout
41700 \begin_inset CommandInset label
41702 name "cha:Units-available-in"
41709 \begin_layout Standard
41710 To understand the units described in this documentation, Table
41711 \begin_inset space ~
41715 \begin_inset CommandInset ref
41717 reference "tab:Units"
41721 explains all units available in \SpecialChar LyX
41725 \begin_layout Standard
41726 \begin_inset Float table
41732 \begin_layout Plain Layout
41733 \begin_inset Caption Standard
41735 \begin_layout Plain Layout
41736 \begin_inset CommandInset label
41750 \begin_layout Plain Layout
41751 \begin_inset VSpace medskip
41757 \begin_layout Plain Layout
41759 \begin_inset Tabular
41760 <lyxtabular version="3" rows="20" columns="3">
41761 <features tabularvalignment="middle">
41762 <column alignment="center" valignment="top">
41763 <column alignment="center" valignment="top">
41764 <column alignment="center" valignment="top">
41766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41769 \begin_layout Plain Layout
41775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41778 \begin_layout Plain Layout
41784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41787 \begin_layout Plain Layout
41796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41799 \begin_layout Plain Layout
41805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41808 \begin_layout Plain Layout
41814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41817 \begin_layout Plain Layout
41825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41828 \begin_layout Plain Layout
41834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41837 \begin_layout Plain Layout
41843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41846 \begin_layout Plain Layout
41854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41857 \begin_layout Plain Layout
41863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41866 \begin_layout Plain Layout
41872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41875 \begin_layout Plain Layout
41883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41886 \begin_layout Plain Layout
41892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41895 \begin_layout Plain Layout
41897 \begin_inset space \thinspace{}
41901 \begin_inset space \thinspace{}
41909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41912 \begin_layout Plain Layout
41920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41923 \begin_layout Plain Layout
41929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41932 \begin_layout Plain Layout
41934 \begin_inset space \thinspace{}
41938 \begin_inset space \thinspace{}
41946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41949 \begin_layout Plain Layout
41957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41960 \begin_layout Plain Layout
41966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41969 \begin_layout Plain Layout
41970 scaled point (65536
41971 \begin_inset space \thinspace{}
41975 \begin_inset space \thinspace{}
41983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41986 \begin_layout Plain Layout
41994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41997 \begin_layout Plain Layout
42003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42006 \begin_layout Plain Layout
42008 \begin_inset space \thinspace{}
42012 \begin_inset space \thinspace{}
42020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42023 \begin_layout Plain Layout
42031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42034 \begin_layout Plain Layout
42040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42043 \begin_layout Plain Layout
42045 \begin_inset space \thinspace{}
42049 \begin_inset Formula $\approx$
42053 \begin_inset space \thinspace{}
42061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42064 \begin_layout Plain Layout
42072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42075 \begin_layout Plain Layout
42081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42084 \begin_layout Plain Layout
42086 \begin_inset space \thinspace{}
42090 \begin_inset space \thinspace{}
42098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42101 \begin_layout Plain Layout
42109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42112 \begin_layout Plain Layout
42118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42121 \begin_layout Plain Layout
42122 % of original image width
42127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42130 \begin_layout Plain Layout
42138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42141 \begin_layout Plain Layout
42147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42150 \begin_layout Plain Layout
42156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42159 \begin_layout Plain Layout
42169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42172 \begin_layout Plain Layout
42178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42181 \begin_layout Plain Layout
42187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42190 \begin_layout Plain Layout
42200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42203 \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" rightline="true" usebox="none">
42221 \begin_layout Plain Layout
42231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42234 \begin_layout Plain Layout
42240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42243 \begin_layout Plain Layout
42249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42252 \begin_layout Plain Layout
42262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42265 \begin_layout Plain Layout
42271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42274 \begin_layout Plain Layout
42280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42283 \begin_layout Plain Layout
42293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42296 \begin_layout Plain Layout
42302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42305 \begin_layout Plain Layout
42311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42314 \begin_layout Plain Layout
42324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42327 \begin_layout Plain Layout
42333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42336 \begin_layout Plain Layout
42346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42349 \begin_layout Plain Layout
42357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42360 \begin_layout Plain Layout
42366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
42369 \begin_layout Plain Layout
42379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
42382 \begin_layout Plain Layout
42390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42393 \begin_layout Plain Layout
42399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
42402 \begin_layout Plain Layout
42404 \begin_inset space \thinspace{}
42408 \begin_inset space \thinspace{}
42416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
42419 \begin_layout Plain Layout
42438 \begin_layout Chapter
42439 Output File Formats with Graphics
42440 \begin_inset CommandInset label
42442 name "cha:Output-File-Formats"
42449 \begin_layout Section
42451 \begin_inset Index idx
42454 \begin_layout Plain Layout
42461 \begin_inset Index idx
42464 \begin_layout Plain Layout
42469 \begin_layout Plain Layout
42480 \begin_layout Plain Layout
42495 \begin_layout Standard
42496 This file type has the extension
42497 \begin_inset Quotes eld
42505 \begin_inset Quotes erd
42510 \begin_inset Quotes eld
42514 \begin_inset Quotes erd
42517 (DVI), because it is completely portable; you can move them from one machine
42518 to another without needing to do any sort of conversion.
42519 At the time when this file-format was developed, this was no matter of
42521 DVIs are used for quick previews and as pre-stage for other output formats,
42525 \begin_layout Standard
42526 \begin_inset Note Greyedout
42529 \begin_layout Plain Layout
42534 DVI-files do not contain images; they will only be a linked.
42539 So don't forget this, if you move your
42543 file to another computer.
42544 This property can also slow down your computer when you view the DVI, because
42545 the DVI-viewer has to convert the image in the background to make it visible
42546 when you scroll in the DVI.
42547 So it is recommended that you use PDF for files with many images.
42550 \begin_layout Standard
42551 You can export your document to DVI by using the menu
42553 File\SpecialChar menuseparator
42554 Export\SpecialChar menuseparator
42558 You can view your document as DVI via the
42565 \begin_layout Section
42567 \begin_inset Index idx
42570 \begin_layout Plain Layout
42571 File Formats ! PostScript
42577 \begin_inset Index idx
42580 \begin_layout Plain Layout
42585 \begin_layout Plain Layout
42596 \begin_layout Plain Layout
42611 \begin_layout Standard
42612 This file type has the extension
42613 \begin_inset Quotes eld
42621 \begin_inset Quotes erd
42625 PostScript was developed by the company
42629 as a printer language.
42630 The file therefore contains commands that the printer uses to print the
42632 PostScript can be seen as a
42633 \begin_inset Quotes eld
42636 programming language
42637 \begin_inset Quotes erd
42640 ; you can calculate with it and draw diagrams and images.
42644 \begin_layout Plain Layout
42645 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
42652 \begin_inset CommandInset citation
42664 Due to this ability, the files are often bigger than PDFs.
42667 \begin_layout Standard
42668 PostScript can only contain images in the format
42669 \begin_inset Quotes eld
42672 Encapsulated PostScript
42673 \begin_inset Quotes erd
42676 (EPS, file extension
42677 \begin_inset Quotes eld
42685 \begin_inset Quotes erd
42689 As \SpecialChar LyX
42690 allows you to use any known image format in your document, it has to
42691 convert images in the background to EPS.
42693 \begin_inset space ~
42697 \begin_inset space ~
42700 images in your document, \SpecialChar LyX
42702 \begin_inset space ~
42705 conversions whenever you view or export your document.
42706 This will slow down your work flow with \SpecialChar LyX
42708 So if you plan to use PostScript, you can insert your images directly as
42709 EPS to avoid this problem.
42712 \begin_layout Standard
42713 You can export your document to PostScript using the menu
42715 File\SpecialChar menuseparator
42716 Export\SpecialChar menuseparator
42720 You can view your document as PostScript via the
42727 \begin_layout Section
42729 \begin_inset Index idx
42732 \begin_layout Plain Layout
42739 \begin_inset Index idx
42742 \begin_layout Plain Layout
42751 \begin_layout Standard
42752 This file type has the extension
42753 \begin_inset Quotes eld
42761 \begin_inset Quotes erd
42766 \begin_inset Quotes eld
42769 Portable Document Format
42770 \begin_inset Quotes erd
42773 (PDF) was developed by
42777 as a derivative of PostScript.
42778 It is more compressed and it uses fewer commands than PostScript.
42780 \begin_inset Quotes eld
42784 \begin_inset Quotes erd
42787 implies, it can be processed at any computer system and the printed output
42788 looks exactly the same.
42791 \begin_layout Standard
42792 PDF can contain images in its own PDF format, in the format
42793 \begin_inset Quotes eld
42796 Joint Photographic Experts Group
42797 \begin_inset Quotes erd
42800 (JPG, file extension
42801 \begin_inset Quotes eld
42809 \begin_inset Quotes erd
42813 \begin_inset Quotes eld
42821 \begin_inset Quotes erd
42824 ), and in the format
42825 \begin_inset Quotes eld
42828 Portable Network Graphics
42829 \begin_inset Quotes erd
42832 (PNG, file extension
42833 \begin_inset Quotes eld
42841 \begin_inset Quotes erd
42845 Nevertheless you can use any other image format, because \SpecialChar LyX
42847 in the background to one of these formats.
42848 But as described in the section about PostScript, the image conversion
42849 will slow down your work flow.
42850 So it is recommended that you use images in one of the three mentioned
42854 \begin_layout Standard
42855 You can export your document to PDF via the menu
42857 File\SpecialChar menuseparator
42860 in three different ways:
42863 \begin_layout Description
42865 \begin_inset space ~
42868 (ps2pdf) This uses the program
42872 that creates a PDF from a PostScript-version of your file.
42873 The PostScript-version is produced by the program
42877 which uses a DVI-version as intermediate step.
42878 So this export variant consists of three conversions.
42881 \begin_layout Description
42883 \begin_inset space ~
42886 (dvipdfm) This uses the program
42890 that converts your file in the background to DVI and in a second step to
42894 \begin_layout Description
42896 \begin_inset space ~
42899 (pdflatex) This uses the program
42903 that converts your file directly to PDF.
42906 \begin_layout Standard
42907 It is recommended that you use
42910 \begin_inset space ~
42919 supports all features of actual PDF-versions, is quick and works stable.
42924 is not under development and therefore a bit outdated.
42927 \begin_layout Standard
42928 You can view your document as PDF via the
42932 menu or by using a toolbar button.
42935 \begin_layout Chapter
42936 List of dvips color names
42937 \begin_inset CommandInset label
42939 name "chap:List-of-dvips-colornames"
42946 \begin_layout Standard
42947 \begin_inset Tabular
42948 <lyxtabular version="3" rows="17" columns="4">
42949 <features tabularvalignment="middle">
42950 <column alignment="left" valignment="top" width="0pt">
42951 <column alignment="left" valignment="top" width="0pt">
42952 <column alignment="left" valignment="top" width="0pt">
42953 <column alignment="left" valignment="top" width="0pt">
42955 <cell alignment="left" valignment="top" usebox="none">
42958 \begin_layout Plain Layout
42962 \begin_layout Plain Layout
42975 \begin_layout Plain Layout
42986 \begin_layout Plain Layout
42998 <cell alignment="left" valignment="top" usebox="none">
43001 \begin_layout Plain Layout
43005 \begin_layout Plain Layout
43018 \begin_layout Plain Layout
43029 \begin_layout Plain Layout
43041 <cell alignment="left" valignment="top" usebox="none">
43044 \begin_layout Plain Layout
43048 \begin_layout Plain Layout
43061 \begin_layout Plain Layout
43072 \begin_layout Plain Layout
43084 <cell alignment="left" valignment="top" usebox="none">
43087 \begin_layout Plain Layout
43091 \begin_layout Plain Layout
43104 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43129 <cell alignment="center" valignment="top" usebox="none">
43132 \begin_layout Plain Layout
43136 \begin_layout Plain Layout
43149 \begin_layout Plain Layout
43157 \begin_inset Phantom Phantom
43160 \begin_layout Plain Layout
43170 \begin_layout Plain Layout
43182 <cell alignment="center" valignment="top" usebox="none">
43185 \begin_layout Plain Layout
43189 \begin_layout Plain Layout
43202 \begin_layout Plain Layout
43210 \begin_inset Phantom Phantom
43213 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43235 <cell alignment="center" valignment="top" usebox="none">
43238 \begin_layout Plain Layout
43242 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43263 \begin_inset Phantom Phantom
43266 \begin_layout Plain Layout
43276 \begin_layout Plain Layout
43288 <cell alignment="center" valignment="top" usebox="none">
43291 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43316 \begin_inset Phantom Phantom
43319 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43343 <cell alignment="left" valignment="top" usebox="none">
43346 \begin_layout Plain Layout
43350 \begin_layout Plain Layout
43363 \begin_layout Plain Layout
43371 \begin_inset Phantom Phantom
43374 \begin_layout Plain Layout
43384 \begin_layout Plain Layout
43396 <cell alignment="left" valignment="top" usebox="none">
43399 \begin_layout Plain Layout
43403 \begin_layout Plain Layout
43416 \begin_layout Plain Layout
43424 \begin_inset Phantom Phantom
43427 \begin_layout Plain Layout
43437 \begin_layout Plain Layout
43449 <cell alignment="left" valignment="top" usebox="none">
43452 \begin_layout Plain Layout
43456 \begin_layout Plain Layout
43469 \begin_layout Plain Layout
43477 \begin_inset Phantom Phantom
43480 \begin_layout Plain Layout
43490 \begin_layout Plain Layout
43502 <cell alignment="left" valignment="top" usebox="none">
43505 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43530 \begin_inset Phantom Phantom
43533 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43557 <cell alignment="left" valignment="top" usebox="none">
43560 \begin_layout Plain Layout
43564 \begin_layout Plain Layout
43577 \begin_layout Plain Layout
43585 \begin_inset Phantom Phantom
43588 \begin_layout Plain Layout
43598 \begin_layout Plain Layout
43610 <cell alignment="left" valignment="top" usebox="none">
43613 \begin_layout Plain Layout
43617 \begin_layout Plain Layout
43630 \begin_layout Plain Layout
43638 \begin_inset Phantom Phantom
43641 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43663 <cell alignment="left" valignment="top" usebox="none">
43666 \begin_layout Plain Layout
43670 \begin_layout Plain Layout
43683 \begin_layout Plain Layout
43691 \begin_inset Phantom Phantom
43694 \begin_layout Plain Layout
43704 \begin_layout Plain Layout
43716 <cell alignment="left" valignment="top" usebox="none">
43719 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43736 \begin_layout Plain Layout
43744 \begin_inset Phantom Phantom
43747 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43771 <cell alignment="left" valignment="top" usebox="none">
43774 \begin_layout Plain Layout
43778 \begin_layout Plain Layout
43791 \begin_layout Plain Layout
43799 \begin_inset Phantom Phantom
43802 \begin_layout Plain Layout
43812 \begin_layout Plain Layout
43824 <cell alignment="left" valignment="top" usebox="none">
43827 \begin_layout Plain Layout
43831 \begin_layout Plain Layout
43844 \begin_layout Plain Layout
43852 \begin_inset Phantom Phantom
43855 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43877 <cell alignment="left" valignment="top" usebox="none">
43880 \begin_layout Plain Layout
43884 \begin_layout Plain Layout
43897 \begin_layout Plain Layout
43905 \begin_inset Phantom Phantom
43908 \begin_layout Plain Layout
43918 \begin_layout Plain Layout
43930 <cell alignment="left" valignment="top" usebox="none">
43933 \begin_layout Plain Layout
43937 \begin_layout Plain Layout
43950 \begin_layout Plain Layout
43958 \begin_inset Phantom Phantom
43961 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43985 <cell alignment="left" valignment="top" usebox="none">
43988 \begin_layout Plain Layout
43992 \begin_layout Plain Layout
44005 \begin_layout Plain Layout
44013 \begin_inset Phantom Phantom
44016 \begin_layout Plain Layout
44026 \begin_layout Plain Layout
44038 <cell alignment="left" valignment="top" usebox="none">
44041 \begin_layout Plain Layout
44045 \begin_layout Plain Layout
44058 \begin_layout Plain Layout
44066 \begin_inset Phantom Phantom
44069 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44091 <cell alignment="left" valignment="top" usebox="none">
44094 \begin_layout Plain Layout
44098 \begin_layout Plain Layout
44111 \begin_layout Plain Layout
44119 \begin_inset Phantom Phantom
44122 \begin_layout Plain Layout
44132 \begin_layout Plain Layout
44144 <cell alignment="left" valignment="top" usebox="none">
44147 \begin_layout Plain Layout
44151 \begin_layout Plain Layout
44164 \begin_layout Plain Layout
44172 \begin_inset Phantom Phantom
44175 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44199 <cell alignment="center" valignment="top" usebox="none">
44202 \begin_layout Plain Layout
44206 \begin_layout Plain Layout
44219 \begin_layout Plain Layout
44227 \begin_inset Phantom Phantom
44230 \begin_layout Plain Layout
44240 \begin_layout Plain Layout
44252 <cell alignment="center" valignment="top" usebox="none">
44255 \begin_layout Plain Layout
44259 \begin_layout Plain Layout
44272 \begin_layout Plain Layout
44280 \begin_inset Phantom Phantom
44283 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44305 <cell alignment="center" valignment="top" usebox="none">
44308 \begin_layout Plain Layout
44312 \begin_layout Plain Layout
44325 \begin_layout Plain Layout
44333 \begin_inset Phantom Phantom
44336 \begin_layout Plain Layout
44346 \begin_layout Plain Layout
44358 <cell alignment="center" valignment="top" usebox="none">
44361 \begin_layout Plain Layout
44365 \begin_layout Plain Layout
44378 \begin_layout Plain Layout
44386 \begin_inset Phantom Phantom
44389 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44413 <cell alignment="left" valignment="top" usebox="none">
44416 \begin_layout Plain Layout
44420 \begin_layout Plain Layout
44433 \begin_layout Plain Layout
44441 \begin_inset Phantom Phantom
44444 \begin_layout Plain Layout
44454 \begin_layout Plain Layout
44466 <cell alignment="left" valignment="top" usebox="none">
44469 \begin_layout Plain Layout
44473 \begin_layout Plain Layout
44486 \begin_layout Plain Layout
44494 \begin_inset Phantom Phantom
44497 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44519 <cell alignment="left" valignment="top" usebox="none">
44522 \begin_layout Plain Layout
44526 \begin_layout Plain Layout
44539 \begin_layout Plain Layout
44547 \begin_inset Phantom Phantom
44550 \begin_layout Plain Layout
44560 \begin_layout Plain Layout
44572 <cell alignment="left" valignment="top" usebox="none">
44575 \begin_layout Plain Layout
44579 \begin_layout Plain Layout
44592 \begin_layout Plain Layout
44600 \begin_inset Phantom Phantom
44603 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44627 <cell alignment="left" valignment="top" usebox="none">
44630 \begin_layout Plain Layout
44634 \begin_layout Plain Layout
44647 \begin_layout Plain Layout
44655 \begin_inset Phantom Phantom
44658 \begin_layout Plain Layout
44668 \begin_layout Plain Layout
44680 <cell alignment="left" valignment="top" usebox="none">
44683 \begin_layout Plain Layout
44687 \begin_layout Plain Layout
44700 \begin_layout Plain Layout
44708 \begin_inset Phantom Phantom
44711 \begin_layout Plain Layout
44721 \begin_layout Plain Layout
44733 <cell alignment="left" valignment="top" usebox="none">
44736 \begin_layout Plain Layout
44740 \begin_layout Plain Layout
44753 \begin_layout Plain Layout
44761 \begin_inset Phantom Phantom
44764 \begin_layout Plain Layout
44774 \begin_layout Plain Layout
44786 <cell alignment="left" valignment="top" usebox="none">
44789 \begin_layout Plain Layout
44793 \begin_layout Plain Layout
44806 \begin_layout Plain Layout
44814 \begin_inset Phantom Phantom
44817 \begin_layout Plain Layout
44827 \begin_layout Plain Layout
44841 <cell alignment="left" valignment="top" usebox="none">
44844 \begin_layout Plain Layout
44848 \begin_layout Plain Layout
44861 \begin_layout Plain Layout
44869 \begin_inset Phantom Phantom
44872 \begin_layout Plain Layout
44882 \begin_layout Plain Layout
44894 <cell alignment="left" valignment="top" usebox="none">
44897 \begin_layout Plain Layout
44901 \begin_layout Plain Layout
44914 \begin_layout Plain Layout
44922 \begin_inset Phantom Phantom
44925 \begin_layout Plain Layout
44935 \begin_layout Plain Layout
44947 <cell alignment="left" valignment="top" usebox="none">
44950 \begin_layout Plain Layout
44954 \begin_layout Plain Layout
44967 \begin_layout Plain Layout
44975 \begin_inset Phantom Phantom
44978 \begin_layout Plain Layout
44988 \begin_layout Plain Layout
45000 <cell alignment="left" valignment="top" usebox="none">
45003 \begin_layout Plain Layout
45007 \begin_layout Plain Layout
45020 \begin_layout Plain Layout
45028 \begin_inset Phantom Phantom
45031 \begin_layout Plain Layout
45041 \begin_layout Plain Layout
45055 <cell alignment="left" valignment="top" usebox="none">
45058 \begin_layout Plain Layout
45062 \begin_layout Plain Layout
45075 \begin_layout Plain Layout
45083 \begin_inset Phantom Phantom
45086 \begin_layout Plain Layout
45096 \begin_layout Plain Layout
45108 <cell alignment="left" valignment="top" usebox="none">
45111 \begin_layout Plain Layout
45115 \begin_layout Plain Layout
45128 \begin_layout Plain Layout
45136 \begin_inset Phantom Phantom
45139 \begin_layout Plain Layout
45149 \begin_layout Plain Layout
45161 <cell alignment="left" valignment="top" usebox="none">
45164 \begin_layout Plain Layout
45168 \begin_layout Plain Layout
45181 \begin_layout Plain Layout
45189 \begin_inset Phantom Phantom
45192 \begin_layout Plain Layout
45202 \begin_layout Plain Layout
45214 <cell alignment="left" valignment="top" usebox="none">
45217 \begin_layout Plain Layout
45221 \begin_layout Plain Layout
45234 \begin_layout Plain Layout
45242 \begin_inset Phantom Phantom
45245 \begin_layout Plain Layout
45255 \begin_layout Plain Layout
45269 <cell alignment="left" valignment="top" usebox="none">
45272 \begin_layout Plain Layout
45276 \begin_layout Plain Layout
45289 \begin_layout Plain Layout
45297 \begin_inset Phantom Phantom
45300 \begin_layout Plain Layout
45310 \begin_layout Plain Layout
45322 <cell alignment="left" valignment="top" usebox="none">
45325 \begin_layout Plain Layout
45329 \begin_layout Plain Layout
45342 \begin_layout Plain Layout
45350 \begin_inset Phantom Phantom
45353 \begin_layout Plain Layout
45363 \begin_layout Plain Layout
45375 <cell alignment="left" valignment="top" usebox="none">
45378 \begin_layout Plain Layout
45382 \begin_layout Plain Layout
45395 \begin_layout Plain Layout
45403 \begin_inset Phantom Phantom
45406 \begin_layout Plain Layout
45416 \begin_layout Plain Layout
45428 <cell alignment="left" valignment="top" usebox="none">
45431 \begin_layout Plain Layout
45435 \begin_layout Plain Layout
45448 \begin_layout Plain Layout
45456 \begin_inset Phantom Phantom
45459 \begin_layout Plain Layout
45469 \begin_layout Plain Layout
45483 <cell alignment="left" valignment="top" usebox="none">
45486 \begin_layout Plain Layout
45490 \begin_layout Plain Layout
45503 \begin_layout Plain Layout
45511 \begin_inset Phantom Phantom
45514 \begin_layout Plain Layout
45524 \begin_layout Plain Layout
45536 <cell alignment="left" valignment="top" usebox="none">
45539 \begin_layout Plain Layout
45543 \begin_layout Plain Layout
45556 \begin_layout Plain Layout
45564 \begin_inset Phantom Phantom
45567 \begin_layout Plain Layout
45577 \begin_layout Plain Layout
45589 <cell alignment="left" valignment="top" usebox="none">
45592 \begin_layout Plain Layout
45596 \begin_layout Plain Layout
45609 \begin_layout Plain Layout
45617 \begin_inset Phantom Phantom
45620 \begin_layout Plain Layout
45630 \begin_layout Plain Layout
45642 <cell alignment="left" valignment="top" usebox="none">
45645 \begin_layout Plain Layout
45649 \begin_layout Plain Layout
45662 \begin_layout Plain Layout
45670 \begin_inset Phantom Phantom
45673 \begin_layout Plain Layout
45683 \begin_layout Plain Layout
45697 <cell alignment="left" valignment="top" usebox="none">
45700 \begin_layout Plain Layout
45704 \begin_layout Plain Layout
45717 \begin_layout Plain Layout
45725 \begin_inset Phantom Phantom
45728 \begin_layout Plain Layout
45738 \begin_layout Plain Layout
45750 <cell alignment="left" valignment="top" usebox="none">
45753 \begin_layout Plain Layout
45757 \begin_layout Plain Layout
45770 \begin_layout Plain Layout
45778 \begin_inset Phantom Phantom
45781 \begin_layout Plain Layout
45791 \begin_layout Plain Layout
45803 <cell alignment="left" valignment="top" usebox="none">
45806 \begin_layout Plain Layout
45810 \begin_layout Plain Layout
45823 \begin_layout Plain Layout
45831 \begin_inset Phantom Phantom
45834 \begin_layout Plain Layout
45844 \begin_layout Plain Layout
45856 <cell alignment="left" valignment="top" usebox="none">
45859 \begin_layout Plain Layout
45863 \begin_layout Plain Layout
45876 \begin_layout Plain Layout
45884 \begin_inset Phantom Phantom
45887 \begin_layout Plain Layout
45897 \begin_layout Plain Layout
45911 <cell alignment="left" valignment="top" usebox="none">
45914 \begin_layout Plain Layout
45918 \begin_layout Plain Layout
45931 \begin_layout Plain Layout
45939 \begin_inset Phantom Phantom
45942 \begin_layout Plain Layout
45952 \begin_layout Plain Layout
45964 <cell alignment="left" valignment="top" usebox="none">
45967 \begin_layout Plain Layout
45971 \begin_layout Plain Layout
45984 \begin_layout Plain Layout
45992 \begin_inset Phantom Phantom
45995 \begin_layout Plain Layout
46005 \begin_layout Plain Layout
46017 <cell alignment="left" valignment="top" usebox="none">
46020 \begin_layout Plain Layout
46024 \begin_layout Plain Layout
46037 \begin_layout Plain Layout
46045 \begin_inset Phantom Phantom
46048 \begin_layout Plain Layout
46058 \begin_layout Plain Layout
46070 <cell alignment="left" valignment="top" usebox="none">
46073 \begin_layout Plain Layout
46077 \begin_layout Plain Layout
46090 \begin_layout Plain Layout
46098 \begin_inset Phantom Phantom
46101 \begin_layout Plain Layout
46111 \begin_layout Plain Layout
46125 <cell alignment="left" valignment="top" usebox="none">
46128 \begin_layout Plain Layout
46132 \begin_layout Plain Layout
46145 \begin_layout Plain Layout
46153 \begin_inset Phantom Phantom
46156 \begin_layout Plain Layout
46166 \begin_layout Plain Layout
46178 <cell alignment="left" valignment="top" usebox="none">
46181 \begin_layout Plain Layout
46185 \begin_layout Plain Layout
46198 \begin_layout Plain Layout
46206 \begin_inset Phantom Phantom
46209 \begin_layout Plain Layout
46219 \begin_layout Plain Layout
46231 <cell alignment="left" valignment="top" usebox="none">
46234 \begin_layout Plain Layout
46238 \begin_layout Plain Layout
46251 \begin_layout Plain Layout
46259 \begin_inset Phantom Phantom
46262 \begin_layout Plain Layout
46272 \begin_layout Plain Layout
46284 <cell alignment="left" valignment="top" usebox="none">
46287 \begin_layout Plain Layout
46291 \begin_layout Plain Layout
46304 \begin_layout Plain Layout
46312 \begin_inset Phantom Phantom
46315 \begin_layout Plain Layout
46325 \begin_layout Plain Layout
46339 <cell alignment="left" valignment="top" usebox="none">
46342 \begin_layout Plain Layout
46346 \begin_layout Plain Layout
46359 \begin_layout Plain Layout
46367 \begin_inset Phantom Phantom
46370 \begin_layout Plain Layout
46380 \begin_layout Plain Layout
46392 <cell alignment="left" valignment="top" usebox="none">
46395 \begin_layout Plain Layout
46401 <cell alignment="left" valignment="top" usebox="none">
46404 \begin_layout Plain Layout
46410 <cell alignment="left" valignment="top" usebox="none">
46413 \begin_layout Plain Layout
46427 \begin_layout Chapter
46428 Explanation of Equation
46429 \begin_inset space ~
46433 \begin_inset CommandInset ref
46440 \begin_inset CommandInset label
46442 name "cha:Explanation-of-Equation"
46449 \begin_layout Standard
46450 We can calculate the total width of
46455 \begin_inset Formula $W_{\mathrm{tot\,n}}$
46459 \begin_inset Formula
46461 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
46467 \begin_inset Formula $W_{g\,n}$
46470 is the given width of all cells,
46476 is the \SpecialChar LaTeX
46477 -length between the cell text and the cell border (its default value
46479 \begin_inset space \thinspace{}
46489 is the thickness of the cell border line, the default is 0.4
46490 \begin_inset space \thinspace{}
46496 \begin_layout Standard
46498 \begin_inset space ~
46502 \begin_inset CommandInset ref
46504 reference "eq:Wtot_n"
46508 , the total width of a multicolumn
46509 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
46513 \begin_inset Formula
46515 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
46523 \begin_layout Standard
46524 By setting equation
46525 \begin_inset space ~
46529 \begin_inset CommandInset ref
46531 reference "eq:Wtot_n"
46536 \begin_inset CommandInset ref
46538 reference "eq:Wtot_mult"
46542 equal we can calculate the needed given width
46543 \begin_inset Formula $W_{g\,n}$
46550 columns are spanned, so that each column has a total width of
46551 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
46555 \begin_inset Formula
46557 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
46565 \begin_layout Bibliography
46566 \begin_inset CommandInset bibitem
46567 LatexCommand bibitem
46568 key "latexcompanion"
46573 Frank Mittelbach and Michel Goossens:
46575 The \SpecialChar LaTeX
46576 Companion Second Edition.
46579 Addison-Wesley, 2004
46582 \begin_layout Bibliography
46583 \begin_inset CommandInset bibitem
46584 LatexCommand bibitem
46590 Helmut Kopka and Patrick W.
46593 A Guide to \SpecialChar LaTeX
46597 Addison-Wesley, 2003
46600 \begin_layout Bibliography
46601 \begin_inset CommandInset bibitem
46602 LatexCommand bibitem
46611 : A Document Preparation System.
46614 Addison-Wesley, second edition, 1994
46617 \begin_layout Bibliography
46618 \begin_inset CommandInset bibitem
46619 LatexCommand bibitem
46625 Documentation of the \SpecialChar LaTeX
46629 \begin_inset CommandInset href
46632 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
46640 \begin_inset Index idx
46643 \begin_layout Plain Layout
46645 -packages ! arydshln
46653 \begin_layout Bibliography
46654 \begin_inset CommandInset bibitem
46655 LatexCommand bibitem
46661 Documentation of the \SpecialChar LaTeX
46665 \begin_inset CommandInset href
46668 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
46676 \begin_inset Index idx
46679 \begin_layout Plain Layout
46681 -packages ! booktabs
46689 \begin_layout Bibliography
46690 \begin_inset CommandInset bibitem
46691 LatexCommand bibitem
46697 Documentation of the \SpecialChar LaTeX
46701 \begin_inset CommandInset href
46704 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
46712 \begin_inset Index idx
46715 \begin_layout Plain Layout
46717 -packages ! caption
46725 \begin_layout Bibliography
46726 \begin_inset CommandInset bibitem
46727 LatexCommand bibitem
46733 Documentation of the \SpecialChar LaTeX
46737 \begin_inset CommandInset href
46740 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
46748 \begin_inset Index idx
46751 \begin_layout Plain Layout
46753 -packages ! diagbox
46761 \begin_layout Bibliography
46762 \begin_inset CommandInset bibitem
46763 LatexCommand bibitem
46769 Documentation of the \SpecialChar LaTeX
46773 \begin_inset CommandInset href
46776 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
46784 \begin_inset Index idx
46787 \begin_layout Plain Layout
46789 -packages ! endfloat
46797 \begin_layout Bibliography
46798 \begin_inset CommandInset bibitem
46799 LatexCommand bibitem
46805 Documentation of the \SpecialChar LaTeX
46809 \begin_inset CommandInset href
46812 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
46820 \begin_inset Index idx
46823 \begin_layout Plain Layout
46825 -packages ! footmisc
46833 \begin_layout Bibliography
46834 \begin_inset CommandInset bibitem
46835 LatexCommand bibitem
46841 Documentation of the \SpecialChar LaTeX
46845 \begin_inset CommandInset href
46848 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
46856 \begin_inset Index idx
46859 \begin_layout Plain Layout
46861 -packages ! hyperref
46869 \begin_layout Bibliography
46870 \begin_inset CommandInset bibitem
46871 LatexCommand bibitem
46877 Documentation of the \SpecialChar LaTeX
46881 \begin_inset CommandInset href
46884 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
46892 \begin_inset Index idx
46895 \begin_layout Plain Layout
46897 -packages ! hyperref
46905 \begin_layout Bibliography
46906 \begin_inset CommandInset bibitem
46907 LatexCommand bibitem
46913 Documentation of the \SpecialChar LaTeX
46917 \begin_inset CommandInset href
46920 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
46928 \begin_inset Index idx
46931 \begin_layout Plain Layout
46933 -packages ! KOMA-Script
46941 \begin_layout Bibliography
46942 \begin_inset CommandInset bibitem
46943 LatexCommand bibitem
46949 Documentation of the \SpecialChar LaTeX
46953 \begin_inset CommandInset href
46956 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
46964 \begin_inset CommandInset href
46967 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
46973 \begin_inset Index idx
46976 \begin_layout Plain Layout
46978 -packages ! lettrine
46986 \begin_layout Bibliography
46987 \begin_inset CommandInset bibitem
46988 LatexCommand bibitem
46994 Documentation of the \SpecialChar LaTeX
46998 \begin_inset CommandInset href
47001 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
47009 \begin_inset Index idx
47012 \begin_layout Plain Layout
47014 -packages ! listings
47022 \begin_layout Bibliography
47023 \begin_inset CommandInset bibitem
47024 LatexCommand bibitem
47030 Documentation of the \SpecialChar LaTeX
47034 \begin_inset CommandInset href
47037 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
47045 \begin_inset Index idx
47048 \begin_layout Plain Layout
47050 -packages ! marginnote
47058 \begin_layout Bibliography
47059 \begin_inset CommandInset bibitem
47060 LatexCommand bibitem
47066 Documentation of the \SpecialChar LaTeX
47070 \begin_inset CommandInset href
47073 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
47081 \begin_inset Index idx
47084 \begin_layout Plain Layout
47086 -packages ! pdfpages
47094 \begin_layout Bibliography
47095 \begin_inset CommandInset bibitem
47096 LatexCommand bibitem
47102 Documentation of the \SpecialChar LaTeX
47106 \begin_inset CommandInset href
47109 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
47117 \begin_inset Index idx
47120 \begin_layout Plain Layout
47122 -packages ! prettyref
47130 \begin_layout Bibliography
47131 \begin_inset CommandInset bibitem
47132 LatexCommand bibitem
47138 Web page of the \SpecialChar LaTeX
47142 \begin_inset CommandInset href
47145 target "http://tug.org/PSTricks/"
47153 \begin_inset Index idx
47156 \begin_layout Plain Layout
47158 -packages ! PSTricks
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 "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
47189 \begin_inset Index idx
47192 \begin_layout Plain Layout
47194 -packages ! refstyle
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 "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
47225 \begin_inset Index idx
47228 \begin_layout Plain Layout
47230 -packages ! sidecap
47238 \begin_layout Bibliography
47239 \begin_inset CommandInset bibitem
47240 LatexCommand bibitem
47247 \begin_inset CommandInset href
47250 target "http://wiki.lyx.org/LyX/NewInLyX20"
47255 about new features in
47263 \begin_layout Standard
47264 \begin_inset CommandInset index_print
47265 LatexCommand printindex