1 #LyX 2.2 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 \default_output_format pdf2
177 \bibtex_command default
178 \index_command default
182 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
183 \pdf_author "LyX Team, Uwe Stöhr"
184 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
185 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
187 \pdf_bookmarksnumbered true
188 \pdf_bookmarksopen true
189 \pdf_bookmarksopenlevel 1
190 \pdf_breaklinks false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
198 \use_package amsmath 2
199 \use_package amssymb 2
200 \use_package cancel 0
202 \use_package mathdots 1
203 \use_package mathtools 0
204 \use_package mhchem 1
205 \use_package stackrel 0
206 \use_package stmaryrd 0
207 \use_package undertilde 0
209 \cite_engine_type default
213 \paperorientation portrait
217 \notefontcolor #0000ff
224 \paragraph_separation skip
226 \quotes_language english
229 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
241 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
245 by the \SpecialChar LyX
250 \begin_layout Plain Layout
252 If you have comments or error corrections, please send them to the \SpecialChar LyX
255 \begin_inset CommandInset href
257 name "lyx-docs@lists.lyx.org"
258 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
269 \begin_inset Note Note
272 \begin_layout Plain Layout
279 \begin_inset Newline newline
283 \begin_inset Newline newline
291 \begin_layout Standard
292 \begin_inset CommandInset toc
293 LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Plain Layout
305 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
316 diagbox, lettrine, marginnote, picinpar
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Plain Layout
328 The latest PDF-version of this document can be found here:
329 \begin_inset Newline newline
334 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
342 \begin_layout Chapter
344 \begin_inset Index idx
347 \begin_layout Plain Layout
354 \begin_inset Index idx
357 \begin_layout Plain Layout
362 \begin_layout Plain Layout
373 \begin_layout Plain Layout
388 \begin_layout Section
390 \begin_inset Index idx
393 \begin_layout Plain Layout
394 Figures ! Graphics Dialog
400 \begin_inset CommandInset label
402 name "sec:Graphics-Dialog"
409 \begin_layout Standard
410 To insert an image into your document, place the cursor at the text position
411 you want and click on the toolbar icon
414 arg "dialog-show-new-inset graphics"
419 Insert\SpecialChar menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside \SpecialChar LyX
468 \begin_inset Newline newline
472 \begin_inset Index idx
475 \begin_layout Plain Layout
481 Images can be scaled by using a percentage value or by setting the width
482 and height explicitly.
483 If you set only the width or only the height, the other size will be determined
485 If you set both, then the image will be transformed to the given size,
486 possibly distorting it.
487 To prevent the image from distortion, use the option
489 Maintain aspect ratio
492 The image will then be scaled so that its width and height don't exceed
493 the specified dimensions.
494 \begin_inset Newline newline
497 Images can be opened in a program of your choice by right-clicking on it
498 and choosing the entry
507 The program can be set for every image format in the file format settings
512 \begin_layout Description
517 Alternatively to the usage of scaling units it is possible to set image
518 coordinates to adjust the height and width of the image in the output.
519 The coordinates can also be calculated automatically by pressing the button
549 will only print the image region within the given coordinates.
550 Normally you don't need to worry about image coordinates and can ignore
554 \begin_layout Description
571 In this tab you can modify the appearance of the image within \SpecialChar LyX
572 and \SpecialChar LaTeX
574 can specify additional \SpecialChar LaTeX
576 \begin_inset Newline newline
587 makes the image appear in the output only as a frame with the size of the
589 \begin_inset Newline newline
600 you can define or join an image settings group.
601 \begin_inset Index idx
604 \begin_layout Plain Layout
605 Figures ! Settings grouping
610 Images within such a group share their settings, so adjusting one image
611 of the group automatically also adjusts all other images of the group in
613 So you can for example change the size for a bunch of images without the
614 need to manually change each of them.
615 Joining an existing group can also be done using the context menu of the
616 image by checking the name of the desired group.
619 \begin_layout Standard
620 \begin_inset VSpace bigskip
626 \begin_layout Standard
627 This is an example image in EPS format
631 \begin_layout Plain Layout
632 Image formats are explained in section
637 \begin_inset CommandInset ref
639 reference "sec:Image-Formats"
648 within a separate, horizontally centered paragraph:
649 \begin_inset Separator parbreak
655 \begin_layout Standard
657 \begin_inset Graphics
658 filename clipart/mobius.eps
668 \begin_layout Standard
669 This is the same image like the one above but in draft mode:
670 \begin_inset Separator parbreak
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:
1708 \begin_inset Separator parbreak
1714 \begin_layout Standard
1716 \begin_inset Tabular
1717 <lyxtabular version="3" rows="4" columns="4">
1718 <features tabularvalignment="middle">
1719 <column alignment="center" valignment="top">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1736 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1754 \begin_layout Plain Layout
1760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1763 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1801 \begin_layout Plain Layout
1807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1810 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1848 \begin_layout Plain Layout
1854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1857 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1895 \begin_layout Plain Layout
1901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1904 \begin_layout Plain Layout
1918 \begin_layout Section
1920 \begin_inset Index idx
1923 \begin_layout Plain Layout
1932 \begin_layout Standard
1933 You can alter a table by clicking on it with the right mouse button, which
1934 brings up the context menu.
1935 Under the menu entry
1939 you can adjust the settings of that cell and row/column respectively where
1940 the cursor is currently placed.
1943 More\SpecialChar menuseparator
1946 opens the table dialog where you can adjust more things.
1947 Most of the dialog options also work on selections.
1948 This means if you select more cells, columns or rows, the action is done
1949 for the whole selection.
1950 Note that there is a difference between selecting the
1954 of the cell, and the cell itself.
1955 \begin_inset Newline newline
1958 With the dialog option
1961 \begin_inset space ~
1966 every change you make in the dialog is directly applied.
1967 If you move the cursor to another table cell the dialog will then also
1968 be updated with the parameters of the new cell.
1969 If you change length values in the dialog you must press
1973 to get the change applied.
1974 \begin_inset Newline newline
1977 You can alter tables with the following tabs of the table dialog:
1980 \begin_layout Description
1984 \begin_inset space ~
1989 Here you can set the table width
1990 \begin_inset Index idx
1993 \begin_layout Plain Layout
1999 , and the horizontal alignment and the width of the current column.
2003 \begin_inset space ~
2007 \begin_inset space ~
2012 is described in section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "subsec:Special-Cell-Alignment"
2024 When you have set a width you can also adjust the vertical alignment of
2026 A given width will allow the cell to have line breaks and multiple paragraphs
2028 \begin_inset space \thinspace{}
2032 \begin_inset CommandInset ref
2034 reference "subsec:Multiple-Lines-in"
2039 If you set no width, the column is as wide as the content of its widest
2041 \begin_inset Newline newline
2044 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2046 \begin_inset space \thinspace{}
2050 \begin_inset CommandInset ref
2052 reference "subsec:Multicolumns"
2056 or the cells of one column as multirow cell, see sec.
2057 \begin_inset space \thinspace{}
2061 \begin_inset CommandInset ref
2063 reference "subsec:Multirows"
2068 \begin_inset Newline newline
2071 The rotate check boxes rotate the current cell, a selection, or the whole
2072 table counter-clockwise by 90
2073 \begin_inset space \thinspace{}
2077 The rotation is not shown within \SpecialChar LyX
2078 , only in the output.
2079 For more information see sec.
2080 \begin_inset space \thinspace{}
2084 \begin_inset CommandInset ref
2086 reference "sec:Rotated-Table-Cells"
2091 \begin_inset Newline newline
2095 \begin_inset Note Greyedout
2098 \begin_layout Plain Layout
2103 Not all DVI-viewers are able to display rotations.
2109 \begin_inset Newline newline
2112 The table-wide vertical alignment is used for tables within text lines:
2113 \begin_inset Newline newline
2116 A line with tables with different alignments:
2117 \begin_inset Tabular
2118 <lyxtabular version="3" rows="2" columns="2">
2119 <features tabularvalignment="top">
2120 <column alignment="center" valignment="top" width="0pt">
2121 <column alignment="center" valignment="top">
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2126 \begin_layout Plain Layout
2132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2135 \begin_layout Plain Layout
2152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2155 \begin_layout Plain Layout
2170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2173 \begin_layout Plain Layout
2185 \begin_inset Tabular
2186 <lyxtabular version="3" rows="2" columns="2">
2187 <features tabularvalignment="middle">
2188 <column alignment="center" valignment="top">
2189 <column alignment="center" valignment="top">
2191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2194 \begin_layout Plain Layout
2200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2203 \begin_layout Plain Layout
2220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2223 \begin_layout Plain Layout
2238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2241 \begin_layout Plain Layout
2253 \begin_inset Tabular
2254 <lyxtabular version="3" rows="2" columns="2">
2255 <features tabularvalignment="bottom">
2256 <column alignment="center" valignment="top" width="0pt">
2257 <column alignment="center" valignment="top">
2259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2262 \begin_layout Plain Layout
2268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2271 \begin_layout Plain Layout
2288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2291 \begin_layout Plain Layout
2306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2309 \begin_layout Plain Layout
2321 \begin_inset Newline newline
2324 It is also possible to enter a \SpecialChar LaTeX
2325 -argument which is needed for special table
2326 formattings, see sec.
2327 \begin_inset space \thinspace{}
2331 \begin_inset CommandInset ref
2333 reference "subsec:Multicolumn-Calculations"
2338 \begin_inset CommandInset ref
2340 reference "sec:Colored-Tables"
2347 \begin_layout Description
2352 In this tab you can add and delete border lines for the current row/column.
2353 \begin_inset Newline newline
2356 Using the style option
2360 will convert the table to a formal table as described in sec.
2361 \begin_inset space \thinspace{}
2365 \begin_inset CommandInset ref
2367 reference "sec:Formal-Tables"
2372 \begin_inset Newline newline
2375 You can also add space here to table rows as described in sec.
2376 \begin_inset space \thinspace{}
2380 \begin_inset CommandInset ref
2382 reference "subsec:Row-Spacing"
2389 \begin_layout Description
2394 This tab is to make a table a so called
2395 \begin_inset Quotes eld
2403 \begin_inset Quotes erd
2406 that can run over several pages.
2408 \begin_inset space ~
2412 \begin_inset CommandInset ref
2414 reference "sec:Longtables"
2419 \begin_inset CommandInset ref
2421 reference "sec:Special-Longtable-Issues"
2425 describe the longtable features in detail.
2428 \begin_layout Section
2430 \begin_inset Index idx
2433 \begin_layout Plain Layout
2442 \begin_layout Standard
2443 The table toolbar is an alternative to the table dialog to be able to alter
2445 It should normally appear at the bottom of \SpecialChar LyX
2446 's main window when the cursor
2448 You can alternatively switch it on to appear always, by right-clicking
2453 \begin_layout Standard
2454 The toolbar has the following icons:
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2461 arg "inset-modify tabular append-row"
2464 adds a row below the current cell or selection
2467 \begin_layout Labeling
2468 \labelwidthstring 00.00.0000
2471 arg "inset-modify tabular append-column"
2474 adds a column right beside the current cell or selection
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2481 arg "inset-modify tabular delete-row"
2484 deletes the current row or selection
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2491 arg "inset-modify tabular delete-column"
2494 deletes the current column or selection
2497 \begin_layout Labeling
2498 \labelwidthstring 00.00.0000
2501 arg "inset-modify tabular move-row-up"
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2511 arg "inset-modify tabular move-column-left"
2514 moves the column to the left
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2521 arg "inset-modify tabular move-row-down"
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2531 arg "inset-modify tabular move-column-right"
2534 moves the column to the right
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2541 arg "inset-modify tabular toggle-line-top"
2544 adds a line at the top of the current cell / row or of a selection
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular toggle-line-bottom"
2554 adds a line at the bottom of the current cell / row or of a selection
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2561 arg "inset-modify tabular toggle-line-left"
2564 adds a line at the left side of the current cell / row or of a selection
2567 \begin_layout Labeling
2568 \labelwidthstring 00.00.0000
2571 arg "inset-modify tabular toggle-line-right"
2574 adds a line at the right side of the current cell / row or of a selection
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "inset-modify tabular set-all-lines"
2584 adds lines around the current or selected cells - if the current cell no
2585 multicolumn cell this also affects the current row and column
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2592 arg "inset-modify tabular unset-all-lines"
2595 deletes all lines of the current or selected cells - if the current cell
2596 no multicolumn cell this also affects the current row and column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular m-align-left"
2606 left-aligns the content of the current cell / column
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "inset-modify tabular m-align-center"
2616 centers the content of the current cell / column horizontally
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2623 arg "inset-modify tabular m-align-right"
2626 right-aligns the content of the current cell / column
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2633 arg "inset-modify tabular align-decimal"
2636 aligns the content of the current column at a character
2639 \begin_layout Labeling
2640 \labelwidthstring 00.00.0000
2643 arg "inset-modify tabular m-valign-top"
2646 aligns the content of the current cell vertically to the top
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2653 arg "inset-modify tabular m-valign-middle"
2656 centers the content of the current cell vertically
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2663 arg "inset-modify tabular m-valign-bottom"
2666 aligns the content of the current cell vertically to the bottom
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2673 arg "inset-modify tabular set-rotate-cell"
2676 rotates the current cell or selection counter-clockwise by 90°
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2683 arg "inset-modify tabular set-rotate-tabular"
2686 rotates the whole table counter-clockwise by 90°
2689 \begin_layout Labeling
2690 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular multicolumn"
2696 sets the current cell or selection as a multicolumn
2699 \begin_layout Labeling
2700 \labelwidthstring 00.00.0000
2703 arg "inset-modify tabular multirow"
2706 sets the current cell or selection as a multirow
2709 \begin_layout Standard
2710 \begin_inset Note Greyedout
2713 \begin_layout Plain Layout
2718 For the output the vertical alignment of the first cell in a row is used
2719 for all following cells in the row.
2727 \begin_layout Section
2729 \begin_inset Index idx
2732 \begin_layout Plain Layout
2741 \begin_layout Standard
2742 In addition to the table dialog and toolbar, the menu
2744 Edit\SpecialChar menuseparator
2747 allows you to add and delete border lines for the current row/column and
2748 to set the current selection as multicolumn.
2749 The menu is only available when the cursor is inside a table.
2752 \begin_layout Section
2754 \begin_inset CommandInset label
2756 name "sec:Table-Floats"
2761 \begin_inset Index idx
2764 \begin_layout Plain Layout
2771 \begin_inset Index idx
2774 \begin_layout Plain Layout
2783 \begin_layout Standard
2784 For general explanations about floats, have a look at section
2785 \begin_inset space ~
2789 \begin_inset CommandInset ref
2791 reference "sec:FloatIntroduction"
2798 \begin_layout Standard
2799 \begin_inset Float table
2805 \begin_layout Plain Layout
2806 \begin_inset Caption Standard
2808 \begin_layout Plain Layout
2809 \begin_inset CommandInset label
2811 name "tab:a table float"
2823 \begin_layout Plain Layout
2825 \begin_inset Tabular
2826 <lyxtabular version="3" rows="3" columns="3">
2827 <features tabularvalignment="middle">
2828 <column alignment="center" valignment="top" width="0pt">
2829 <column alignment="center" valignment="top" width="0pt">
2830 <column alignment="center" valignment="top" width="0pt">
2832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2835 \begin_layout Plain Layout
2850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2853 \begin_layout Plain Layout
2868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2871 \begin_layout Plain Layout
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Plain Layout
2906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2909 \begin_layout Plain Layout
2924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2927 \begin_layout Plain Layout
2944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2947 \begin_layout Plain Layout
2957 \begin_inset Formula $\int x^{2}dx$
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2968 \begin_layout Plain Layout
2978 \begin_inset Formula $\left[\begin{array}{cc}
2989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2992 \begin_layout Plain Layout
3002 \begin_inset Formula $1+1=2$
3023 \begin_layout Standard
3024 Table floats can be inserted using the menu
3026 Insert\SpecialChar menuseparator
3027 Float\SpecialChar menuseparator
3030 or the toolbar button
3033 arg "float-insert table"
3039 \begin_layout Standard
3040 The float appears as a collapsible box with a caption that has the label
3042 \begin_inset Quotes eld
3046 \begin_inset space ~
3050 \begin_inset Quotes erd
3053 (# is the actual table number).
3054 You can insert tables in the float above or below the caption.
3057 \begin_layout Standard
3059 \begin_inset space ~
3063 \begin_inset CommandInset ref
3065 reference "tab:a table float"
3069 is an example table within a table float.
3072 \begin_layout Standard
3073 Having the caption above the table is the common rule that is unfortunately
3074 not supported in \SpecialChar LaTeX
3075 's standard classes.
3076 This means that, if you are using the document classes
3092 , there will be no space between the caption and the table.
3093 To insert the needed space, add the following option to the load command
3094 of the \SpecialChar LaTeX
3100 \begin_inset Index idx
3103 \begin_layout Plain Layout
3110 in your document preamble
3114 \begin_layout Plain Layout
3115 For more information have a look at section
3116 \begin_inset space ~
3120 \begin_inset CommandInset ref
3122 reference "sec:Caption-Placement"
3134 \begin_layout Standard
3140 \begin_layout Standard
3145 , which is described in section
3146 \begin_inset space ~
3150 \begin_inset CommandInset ref
3152 reference "sec:Caption-Formatting"
3156 , is used to adjust the caption format.
3159 \begin_layout Standard
3160 \begin_inset Index idx
3163 \begin_layout Plain Layout
3164 References ! to Tables
3169 Tables can be cross-referenced in the text by referencing their label.
3170 To do this insert a label in the caption using the menu
3172 Insert\SpecialChar menuseparator
3175 or the toolbar button
3182 You can now refer to the label using the menu
3184 Insert\SpecialChar menuseparator
3186 \begin_inset space ~
3191 or the toolbar button
3194 arg "dialog-show-new-inset ref"
3198 \begin_inset Newline newline
3201 Referencing is explained in detail in section
3202 \begin_inset space ~
3206 \begin_inset CommandInset ref
3208 reference "sec:Referencing-Floats"
3215 \begin_layout Section
3217 \begin_inset CommandInset label
3219 name "sec:Longtables"
3224 \begin_inset Index idx
3227 \begin_layout Plain Layout
3234 \begin_inset Index idx
3237 \begin_layout Plain Layout
3246 \begin_layout Standard
3247 If the table is too long to fit on one page, you can use the option
3250 \begin_inset space ~
3254 \begin_inset space ~
3263 of the table dialog to split the table automatically over more pages.
3264 Doing this enables the following options:
3267 \begin_layout Description
3268 Header: The current row is defined to be a header row that appears on all
3269 pages of the longtable; except for the first page, if
3272 \begin_inset space ~
3278 This is therefore called the main header.
3281 \begin_layout Description
3283 \begin_inset space ~
3286 header: The current row is defined to be a header row that appears on the
3287 first page of the longtable.
3290 \begin_layout Description
3291 Footer: The current row is defined to be a footer row that appears on all
3292 pages of the longtable; except for the last page, if
3295 \begin_inset space ~
3303 \begin_layout Description
3305 \begin_inset space ~
3308 footer: The current row is defined to be a footer row that appears on the
3309 last page of the longtable.
3312 \begin_layout Description
3313 Caption: The current row contains the table caption.
3314 The row is reset as single column and a caption is inserted.
3315 More about longtable captions is explained in sec.
3316 \begin_inset space \thinspace{}
3320 \begin_inset CommandInset ref
3322 reference "subsec:Longtable-Captions"
3329 \begin_layout Standard
3330 You can also specify a row where the table is split.
3331 See the following longtable to see how it works:
3332 \begin_inset Separator parbreak
3338 \begin_layout Standard
3340 \begin_inset Tabular
3341 <lyxtabular version="3" rows="69" columns="3">
3342 <features islongtable="true" longtabularalignment="center">
3343 <column alignment="left" valignment="top" width="0cm">
3344 <column alignment="left" valignment="top" width="0pt">
3345 <column alignment="center" valignment="top" width="0pt">
3346 <row endfirsthead="true">
3347 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3350 \begin_layout Plain Layout
3353 Example Phone List (ignore the names)
3358 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3361 \begin_layout Plain Layout
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3370 \begin_layout Plain Layout
3377 <row endfirsthead="true">
3378 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3381 \begin_layout Plain Layout
3389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3392 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Plain Layout
3410 <row endhead="true">
3411 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3441 <row endhead="true">
3442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3474 <row endfoot="true">
3475 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3478 \begin_layout Plain Layout
3479 continued on next page
3484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4220 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" usebox="none">
4231 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4240 \begin_layout Plain Layout
4248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4251 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" usebox="none">
4262 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4271 \begin_layout Plain Layout
4279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4282 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" usebox="none">
4293 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4302 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4313 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" usebox="none">
4324 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4333 \begin_layout Plain Layout
4341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4344 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" usebox="none">
4355 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4364 \begin_layout Plain Layout
4372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4375 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" usebox="none">
4386 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4395 \begin_layout Plain Layout
4403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4406 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" usebox="none">
4417 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4426 \begin_layout Plain Layout
4434 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4437 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4448 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Plain Layout
4465 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4468 \begin_layout Plain Layout
4474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5207 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5210 \begin_layout Plain Layout
5218 <cell alignment="center" valignment="top" usebox="none">
5221 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5230 \begin_layout Plain Layout
5238 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5241 \begin_layout Plain Layout
5249 <cell alignment="center" valignment="top" usebox="none">
5252 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5261 \begin_layout Plain Layout
5269 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5272 \begin_layout Plain Layout
5280 <cell alignment="center" valignment="top" usebox="none">
5283 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5292 \begin_layout Plain Layout
5300 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5303 \begin_layout Plain Layout
5311 <cell alignment="center" valignment="top" usebox="none">
5314 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5323 \begin_layout Plain Layout
5331 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5334 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" usebox="none">
5345 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Plain Layout
5362 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5365 \begin_layout Plain Layout
5373 <cell alignment="center" valignment="top" usebox="none">
5376 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Plain Layout
5393 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5396 \begin_layout Plain Layout
5404 <cell alignment="center" valignment="top" usebox="none">
5407 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5416 \begin_layout Plain Layout
5424 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5427 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5438 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5447 \begin_layout Plain Layout
5454 <row endlastfoot="true">
5455 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5458 \begin_layout Plain Layout
5464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5476 \begin_layout Plain Layout
5491 \begin_layout Plain Layout
5495 addtocounter{table}{-1}
5501 \begin_inset Note Note
5504 \begin_layout Plain Layout
5505 See the first greyed-out note in section
5506 \begin_inset space ~
5510 \begin_inset CommandInset ref
5512 reference "subsec:Longtable-Captions"
5516 for an explanation of this command.
5524 \begin_layout Subsection
5525 Footnotes in Longtables
5526 \begin_inset CommandInset label
5528 name "subsec:Footnotes-in-Longtables"
5533 \begin_inset Index idx
5536 \begin_layout Plain Layout
5537 Longtables ! Footnotes
5545 \begin_layout Standard
5546 Footnotes can be inserted to every longtable cell.
5547 They appear at the bottom of the page where the table cell with the footnote
5550 \begin_inset space ~
5554 \begin_inset CommandInset ref
5556 reference "tab:DiffCaptions"
5560 has for example a footnote.
5563 \begin_layout Subsection
5565 \begin_inset Index idx
5568 \begin_layout Plain Layout
5569 Longtables ! Alignment
5577 \begin_layout Standard
5578 The horizontal alignment of longtables can be set in the table settings
5580 For left- and right-alignment the table will be directly at the page border.
5581 To add space between the table and the border one has to set the alignment
5582 to center and change the value of the \SpecialChar LaTeX
5595 by inserting this line as \SpecialChar TeX
5596 Code before the longtable:
5599 \begin_layout Standard
5609 \begin_layout Standard
5610 The value can have any of the units listed in Table
5611 \begin_inset space ~
5615 \begin_inset CommandInset ref
5617 reference "tab:Units"
5628 controls the horizontal distance from the left page border to the longtable,
5635 the distance from the right side.
5636 The default value for both lengths is
5642 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5646 \begin_layout Standard
5647 The following longtable was centered and
5663 \begin_layout Plain Layout
5679 \begin_layout Standard
5680 \begin_inset Tabular
5681 <lyxtabular version="3" rows="5" columns="5">
5682 <features islongtable="true" longtabularalignment="center">
5683 <column alignment="center" valignment="top">
5684 <column alignment="center" valignment="top" width="0pt">
5685 <column alignment="center" valignment="top">
5686 <column alignment="center" valignment="top">
5687 <column alignment="center" valignment="top">
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Plain Layout
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Plain Layout
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Plain Layout
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Plain Layout
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5728 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Plain Layout
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5775 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5822 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5869 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5889 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5916 \begin_layout Plain Layout
5931 \begin_layout Plain Layout
5948 \begin_layout Plain Layout
5952 addtocounter{table}{-1}
5958 \begin_inset Note Note
5961 \begin_layout Plain Layout
5962 See the first greyed-out note in section
5963 \begin_inset space ~
5967 \begin_inset CommandInset ref
5969 reference "subsec:Longtable-Captions"
5973 for an explanation of this command.
5981 \begin_layout Subsection
5983 \begin_inset Index idx
5986 \begin_layout Plain Layout
5987 Longtables ! Captions
5993 \begin_inset CommandInset label
5995 name "subsec:Longtable-Captions"
6002 \begin_layout Standard
6003 A longtable cannot be put into a table float because floats can only be
6005 But the caption environment of floats can also be used for longtables when
6006 you use the longtable option
6010 as described in sec.
6011 \begin_inset space \thinspace{}
6015 \begin_inset CommandInset ref
6017 reference "sec:Longtables"
6022 Only one table row should contain a caption, either a header or a footer
6026 \begin_layout Standard
6027 Here is a short longtable to see how it works:
6030 \begin_layout Standard
6031 \begin_inset Tabular
6032 <lyxtabular version="3" rows="6" columns="5">
6033 <features islongtable="true" longtabularalignment="center">
6034 <column alignment="center" valignment="top">
6035 <column alignment="center" valignment="top">
6036 <column alignment="center" valignment="top">
6037 <column alignment="center" valignment="top">
6038 <column alignment="center" valignment="top">
6039 <row endfirsthead="true" caption="true">
6040 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6043 \begin_layout Plain Layout
6044 \begin_inset Caption Standard
6046 \begin_layout Plain Layout
6047 Longtable with caption
6048 \begin_inset Argument 1
6051 \begin_layout Plain Layout
6067 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6070 \begin_layout Plain Layout
6076 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6079 \begin_layout Plain Layout
6085 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6088 \begin_layout Plain Layout
6094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6097 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Plain Layout
6114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6117 \begin_layout Plain Layout
6123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6126 \begin_layout Plain Layout
6132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6144 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6155 \begin_layout Plain Layout
6161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6164 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6191 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6211 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6238 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6285 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6332 \begin_layout Plain Layout
6346 \begin_layout Standard
6347 \begin_inset VSpace medskip
6351 \begin_inset Note Greyedout
6354 \begin_layout Plain Layout
6358 \begin_inset space ~
6363 The table number is increased for every longtable, even if you did not
6364 set a caption for it.
6365 For this reason you could have the case that e.
6366 \begin_inset space \thinspace{}
6370 \begin_inset space \space{}
6374 \begin_inset space ~
6378 \begin_inset space ~
6381 2.1 in the list of tables if there are two longtables without captions.
6382 To avoid this you can add the following command in \SpecialChar TeX
6383 Code after every longtable
6387 \begin_layout Plain Layout
6392 addtocounter{table}{-1}
6395 \begin_layout Plain Layout
6396 This is not needed when none of your longtables has a caption and you add
6397 the following code to the document preamble:
6400 \begin_layout Plain Layout
6410 \begin_inset Newline newline
6421 addtocounter{table}{-1}}
6429 \begin_layout Standard
6430 \begin_inset Note Greyedout
6433 \begin_layout Plain Layout
6437 \begin_inset space ~
6447 \begin_inset Index idx
6450 \begin_layout Plain Layout
6452 -packages ! hyperref
6465 dialog to link cross-references, the link to a longtable caption will always
6466 point to the beginning of the document.
6474 \begin_layout Subsubsection
6475 References to Longtables
6476 \begin_inset Index idx
6479 \begin_layout Plain Layout
6480 Longtables ! References
6488 \begin_layout Standard
6489 \begin_inset Tabular
6490 <lyxtabular version="3" rows="6" columns="5">
6491 <features islongtable="true" longtabularalignment="center">
6492 <column alignment="center" valignment="top">
6493 <column alignment="center" valignment="top">
6494 <column alignment="center" valignment="top">
6495 <column alignment="center" valignment="top">
6496 <column alignment="center" valignment="top">
6497 <row endfirsthead="true" caption="true">
6498 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6501 \begin_layout Plain Layout
6502 \begin_inset Caption Standard
6504 \begin_layout Plain Layout
6505 Referenced longtable
6506 \begin_inset CommandInset label
6508 name "tab:RefExample"
6522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6552 \begin_layout Plain Layout
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Plain Layout
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6581 \begin_layout Plain Layout
6587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6590 \begin_layout Plain Layout
6596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6599 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6801 \begin_layout Standard
6802 To reference a longtable, insert a label into the caption.
6805 \begin_layout Standard
6806 This is a reference to Table
6807 \begin_inset space ~
6811 \begin_inset CommandInset ref
6813 reference "tab:RefExample"
6820 \begin_layout Standard
6821 The caption layout can be set together with all other captions of your document
6822 using the \SpecialChar LaTeX
6828 \begin_inset Index idx
6831 \begin_layout Plain Layout
6839 \begin_inset space ~
6843 \begin_inset CommandInset ref
6845 reference "sec:Caption-Formatting"
6852 \begin_layout Subsubsection
6854 \begin_inset Index idx
6857 \begin_layout Plain Layout
6858 Longtables ! Caption Width
6866 \begin_layout Standard
6867 The maximal width of caption lines is defined by the length
6874 Its default value is 4
6875 \begin_inset space \thinspace{}
6879 To change it add the following command to your document preamble or as
6881 Code into your document before the longtable that should be affected
6884 \begin_layout Standard
6894 \begin_layout Standard
6895 where the width could have one of the units listed in appendix
6896 \begin_inset space ~
6900 \begin_inset CommandInset ref
6902 reference "cha:Units-available-in"
6909 \begin_layout Standard
6910 The following tables show the difference:
6913 \begin_layout Standard
6914 \begin_inset Tabular
6915 <lyxtabular version="3" rows="6" columns="5">
6916 <features islongtable="true" longtabularalignment="center">
6917 <column alignment="center" valignment="top">
6918 <column alignment="center" valignment="top">
6919 <column alignment="center" valignment="top">
6920 <column alignment="center" valignment="top">
6921 <column alignment="center" valignment="top">
6922 <row endfirsthead="true" caption="true">
6923 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6926 \begin_layout Plain Layout
6927 \begin_inset Caption Standard
6929 \begin_layout Plain Layout
6930 long full title with default width long full title with default width long
6931 full title with default width
6932 \begin_inset Argument 1
6935 \begin_layout Plain Layout
6936 caption with default width
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" usebox="none">
6963 \begin_layout Plain Layout
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6981 \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" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7028 \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" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \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" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7122 \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" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \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" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7216 \begin_layout Plain Layout
7230 \begin_layout Standard
7234 \begin_layout Plain Layout
7246 \begin_inset Tabular
7247 <lyxtabular version="3" rows="6" columns="5">
7248 <features islongtable="true" longtabularalignment="center">
7249 <column alignment="center" valignment="top">
7250 <column alignment="center" valignment="top">
7251 <column alignment="center" valignment="top">
7252 <column alignment="center" valignment="top">
7253 <column alignment="center" valignment="top">
7254 <row endfirsthead="true" caption="true">
7255 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7258 \begin_layout Plain Layout
7259 \begin_inset Caption Standard
7261 \begin_layout Plain Layout
7262 long full title with width set to 5
7263 \begin_inset space \thinspace{}
7266 cm long full title with width set to 5
7267 \begin_inset space \thinspace{}
7270 cm long full title with width set to 5
7271 \begin_inset space \thinspace{}
7275 \begin_inset Argument 1
7278 \begin_layout Plain Layout
7280 \begin_inset space \thinspace{}
7284 \begin_inset space \thinspace{}
7288 \begin_inset space \thinspace{}
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" usebox="none">
7318 \begin_layout Plain Layout
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7336 \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" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7383 \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" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7430 \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" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \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" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7524 \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" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7571 \begin_layout Plain Layout
7585 \begin_layout Standard
7589 \begin_layout Plain Layout
7603 \begin_layout Standard
7604 \begin_inset Note Greyedout
7607 \begin_layout Plain Layout
7612 When the \SpecialChar LaTeX
7618 \begin_inset Index idx
7621 \begin_layout Plain Layout
7628 is used, as in this document, the full page width is used for the caption
7629 when you use the default value of 4
7630 \begin_inset space \thinspace{}
7640 To get in this case exactly a 4
7641 \begin_inset space \thinspace{}
7644 in wide caption, you can either use a value slightly different from 4.0
7645 \begin_inset space \thinspace{}
7649 \begin_inset space \thinspace{}
7653 \begin_inset space \space{}
7657 \begin_inset space \thinspace{}
7660 in, or the \SpecialChar LaTeX
7665 captionsetup{width=value}
7667 that is provided by the
7679 \begin_layout Subsubsection
7680 Different Captions for Table Pages
7681 \begin_inset Index idx
7684 \begin_layout Plain Layout
7685 Longtables ! Different Captions for Pages
7693 \begin_layout Standard
7694 When the table captions for the following pages should differ from the one
7695 of the first table page, mark a empty row as header which contains a caption.
7696 Then right-click on the caption and select in the context menu
7699 \begin_inset space ~
7706 \begin_inset space ~
7710 \begin_inset CommandInset ref
7712 reference "tab:DiffCaptions"
7716 is an example of a longtable with different heading where the second caption
7717 does not include the table number.
7718 \begin_inset Separator parbreak
7724 \begin_layout Standard
7726 \begin_inset Tabular
7727 <lyxtabular version="3" rows="59" columns="3">
7728 <features islongtable="true" longtabularalignment="center">
7729 <column alignment="left" valignment="top" width="0cm">
7730 <column alignment="left" valignment="top" width="0pt">
7731 <column alignment="center" valignment="top" width="0pt">
7732 <row endfirsthead="true" caption="true">
7733 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7736 \begin_layout Plain Layout
7737 \begin_inset Caption Standard
7739 \begin_layout Plain Layout
7741 \begin_inset CommandInset label
7743 name "tab:DiffCaptions"
7748 \begin_inset Argument 1
7751 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7786 <row endfirsthead="true">
7787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7793 Example Phone List (ignore the names)
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7817 <row endfirsthead="true">
7818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7832 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Plain Layout
7850 <row endhead="true" caption="true">
7851 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7855 \begin_inset Caption LongTableNoNumber
7857 \begin_layout Plain Layout
7858 Continued Example Phone List
7868 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7887 <row endhead="true">
7888 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7918 <row endhead="true">
7919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7951 <row endfoot="true">
7952 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7955 \begin_layout Plain Layout
7956 continued on next page
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8427 \begin_layout Plain Layout
8438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9262 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9293 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9324 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9355 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9386 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9417 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9448 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9479 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9609 \begin_layout Section
9610 Special Longtable Issues
9611 \begin_inset CommandInset label
9613 name "sec:Special-Longtable-Issues"
9620 \begin_layout Subsection
9621 Longtable Calculation
9622 \begin_inset Index idx
9625 \begin_layout Plain Layout
9626 Longtables ! Calculation
9634 \begin_layout Standard
9636 calculates the height of table pages and their page breaks using so called
9638 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9640 The default value was historically set to only 20 table rows.
9641 If you are using longtables with many pages this may slow down the creation
9643 You can safely increase the chunk size to values of 100-1000 by adding
9644 this command line to your document preamble:
9647 \begin_layout Standard
9652 setcounter{LTchunksize}{100}
9655 \begin_layout Subsection
9656 Floats and Longtables
9657 \begin_inset Index idx
9660 \begin_layout Plain Layout
9669 \begin_layout Standard
9670 There might be problems when a float appears on the same page where a longtable
9672 To avoid such a situation, insert a
9673 \begin_inset Quotes eld
9677 \begin_inset Quotes erd
9682 Insert\SpecialChar menuseparator
9683 Formatting\SpecialChar menuseparator
9685 \begin_inset space ~
9690 ) before your longtable.
9693 \begin_layout Subsection
9695 \begin_inset Index idx
9698 \begin_layout Plain Layout
9699 Longtables ! Forced Page Breaks
9707 \begin_layout Standard
9708 By default tables are only broken between rows.
9709 If you have a cell with multiples lines and want to have a page break within
9710 the cell, insert the new line command
9711 \begin_inset Quotes eld
9723 \begin_inset Quotes erd
9727 Code at the point of the cell where it can be broken.
9736 command you have to insert in \SpecialChar TeX
9738 \begin_inset Quotes eld
9746 \begin_inset Quotes erd
9749 characters as the number of the following table columns.
9754 is the character to separate table cells.
9755 Write in \SpecialChar TeX
9760 the content of the corresponding following cell and delete the content
9762 \begin_inset Newline newline
9773 command, insert as many
9777 characters as the number of table columns before the current column.
9779 \begin_inset space ~
9783 \begin_inset CommandInset ref
9785 reference "tab:ForcedPagebreak"
9789 the cell that should be broken is in the second column followed by another
9791 Therefore the following command was inserted in the cell as \SpecialChar TeX
9794 \begin_inset Quotes eld
9802 \begin_inset Quotes erd
9808 \begin_layout Standard
9818 \begin_inset Newline newline
9824 \begin_layout Standard
9826 \begin_inset Quotes eld
9830 \begin_inset Quotes erd
9833 in the third column of the row was deleted.
9840 is only needed when a page break should definitely occur at this position,
9841 otherwise it would be a conditional break.
9842 If your footer row of the longtable has for a certain reason no upper line
9843 but you would have a horizontal line where the cell is broken, use this
9847 \begin_layout Standard
9855 \begin_inset Newline newline
9863 \begin_layout Standard
9864 When the cell to be broken is in the last column, the command
9867 \begin_layout Standard
9877 \begin_layout Standard
9878 must be inserted as \SpecialChar TeX
9879 Code at the beginning of the cell.
9880 This ensures that the part of the cell that will be displayed on the new
9881 page appears with the full width.
9882 \begin_inset Separator parbreak
9888 \begin_layout Standard
9890 \begin_inset Tabular
9891 <lyxtabular version="3" rows="38" columns="3">
9892 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9893 <column alignment="left" valignment="top" width="0cm">
9894 <column alignment="left" valignment="top" width="3cm">
9895 <column alignment="center" valignment="top" width="0pt">
9896 <row endfirsthead="true" caption="true">
9897 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9900 \begin_layout Plain Layout
9901 \begin_inset Caption Standard
9903 \begin_layout Plain Layout
9904 Table with forced page break in table cell
9905 \begin_inset CommandInset label
9907 name "tab:ForcedPagebreak"
9912 \begin_inset Argument 1
9915 \begin_layout Plain Layout
9916 Table with forced page break in table cell
9931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9950 <row endfirsthead="true">
9951 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9957 Example Phone List (ignore the names)
9962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9974 \begin_layout Plain Layout
9981 <row endfirsthead="true">
9982 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9985 \begin_layout Plain Layout
9993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9996 \begin_layout Plain Layout
10002 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10005 \begin_layout Plain Layout
10014 <row endhead="true">
10015 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10018 \begin_layout Plain Layout
10022 \begin_layout Plain Layout
10026 caption*{Continued Example Phone List}
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10059 <row endhead="true">
10060 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10074 \begin_layout Plain Layout
10080 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10083 \begin_layout Plain Layout
10090 <row endhead="true">
10091 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10094 \begin_layout Plain Layout
10102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10105 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Plain Layout
10123 <row endfoot="true">
10124 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10127 \begin_layout Plain Layout
10128 continued on next page
10133 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10136 \begin_layout Plain Layout
10142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10173 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10539 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10570 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10601 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10632 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10663 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10694 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10725 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10756 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10787 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10818 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10849 \begin_layout Plain Layout
10851 Fürst von Montecompatri, 11.
10852 Fürst von Sulmona und Vivaro, 10.
10853 Fürst von Rossano, 5.
10854 Herzog von Canemorte, 11.
10855 Herzog von Palombara, 5.
10856 Herzog von Castelchiodato,
10860 \begin_layout Plain Layout
10871 \begin_layout Plain Layout
10879 Herzog von Poggionativo, 11.
10880 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10881 Graf von Valinfreda, 11.
10882 Baron von Cropalati, 11.
10883 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10913 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10944 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10975 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11037 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11068 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11099 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11108 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11130 \begin_layout Plain Layout
11136 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11139 \begin_layout Plain Layout
11153 \begin_layout Section
11154 Multiple Lines, Columns and Rows
11157 \begin_layout Subsection
11158 Multiple Lines in Table Cells
11159 \begin_inset CommandInset label
11161 name "subsec:Multiple-Lines-in"
11166 \begin_inset Index idx
11169 \begin_layout Plain Layout
11170 Multiple Lines in Table Cells
11176 \begin_inset Index idx
11179 \begin_layout Plain Layout
11188 \begin_layout Standard
11190 \begin_inset Float table
11196 \begin_layout Plain Layout
11197 \begin_inset Caption Standard
11199 \begin_layout Plain Layout
11200 \begin_inset CommandInset label
11202 name "tab:Table-with-multiple"
11206 Table with multiple lines in cells
11214 \begin_layout Plain Layout
11216 \begin_inset Tabular
11217 <lyxtabular version="3" rows="3" columns="3">
11218 <features tabularvalignment="middle">
11219 <column alignment="center" valignment="middle" width="2.5cm">
11220 <column alignment="center" valignment="middle">
11221 <column alignment="center" valignment="middle">
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11228 \begin_inset Newline linebreak
11236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11239 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11248 \begin_layout Plain Layout
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11259 \begin_layout Plain Layout
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11277 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11288 \begin_layout Plain Layout
11294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11297 \begin_layout Plain Layout
11303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11306 \begin_layout Plain Layout
11325 \begin_layout Standard
11326 Setting a fixed width for a column enables you to enter text as a paragraph
11327 with multiple lines and hyphenation.
11330 \begin_layout Standard
11332 \begin_inset space ~
11336 \begin_inset CommandInset ref
11338 reference "tab:Table-with-multiple"
11342 , create a 3×3 table, mark the first cell and right-click on it.
11343 In the appearing table dialog we set a cell width of 2.5
11344 \begin_inset space \thinspace{}
11347 cm and choose centered for the vertical and horizontal alignment.
11348 The vertical alignment is used for all cells of the row.
11349 As our text is smaller than 2.5
11350 \begin_inset space \thinspace{}
11353 cm, only one line will appear.
11354 To get two lines, a justified line break (shortcut
11357 arg "newline-insert linebreak"
11361 If the text is wider than the set cell width, it will automatically be
11362 broken to several lines.
11365 \begin_layout Standard
11366 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11367 by \SpecialChar LaTeX
11368 if it is the first entry.
11369 Therefore you need to insert something to prevent the word not being the
11371 So add a horizontal space of 0
11372 \begin_inset space \thinspace{}
11375 pt before the word.
11376 As the space is zero, it doesn't change the output.
11378 \begin_inset space ~
11382 \begin_inset CommandInset ref
11384 reference "tab:Table-with-and"
11391 \begin_layout Standard
11392 \begin_inset Float table
11398 \begin_layout Plain Layout
11399 \begin_inset Caption Standard
11401 \begin_layout Plain Layout
11402 \begin_inset CommandInset label
11404 name "tab:Table-with-and"
11408 Table with and without hyphenation
11416 \begin_layout Plain Layout
11417 \begin_inset space \hfill{}
11421 \begin_inset Tabular
11422 <lyxtabular version="3" rows="3" columns="3">
11423 <features tabularvalignment="middle">
11424 <column alignment="center" valignment="middle" width="2.5cm">
11425 <column alignment="center" valignment="middle">
11426 <column alignment="center" valignment="middle">
11428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11431 \begin_layout Plain Layout
11432 verylongtablecellword
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11449 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11460 \begin_layout Plain Layout
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11469 \begin_layout Plain Layout
11475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11478 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11489 \begin_layout Plain Layout
11495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11498 \begin_layout Plain Layout
11504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11507 \begin_layout Plain Layout
11519 \begin_inset space \hfill{}
11523 \begin_inset Tabular
11524 <lyxtabular version="3" rows="3" columns="3">
11525 <features tabularvalignment="middle">
11526 <column alignment="center" valignment="middle" width="2.5cm">
11527 <column alignment="center" valignment="middle">
11528 <column alignment="center" valignment="middle">
11530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11533 \begin_layout Plain Layout
11534 \begin_inset space \hspace{}
11538 verylongtablecellword
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11546 \begin_layout Plain Layout
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11555 \begin_layout Plain Layout
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Plain Layout
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11575 \begin_layout Plain Layout
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11584 \begin_layout Plain Layout
11592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11595 \begin_layout Plain Layout
11601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11604 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11613 \begin_layout Plain Layout
11625 \begin_inset space \hfill{}
11636 \begin_layout Subsection
11638 \begin_inset CommandInset label
11640 name "subsec:Multicolumns"
11645 \begin_inset Index idx
11648 \begin_layout Plain Layout
11655 \begin_inset Index idx
11658 \begin_layout Plain Layout
11659 Table ! Multicolumns
11667 \begin_layout Subsubsection
11671 \begin_layout Standard
11672 To merge cells over multiple columns, select as many cells within a row
11673 as you want to merge and use either the table-toolbar button
11676 arg "inset-modify tabular multicolumn"
11681 Edit\SpecialChar menuseparator
11682 Table\SpecialChar menuseparator
11685 , or right click on the marked cells and choose
11689 in the context menu.
11692 \begin_layout Standard
11693 Multicolumns have there own cell settings.
11694 That means changing cell borders, cell alignment, and the width only affects
11696 Here is an example table with a multicolumn cell in the first row and one
11697 in the last row without the upper border:
11698 \begin_inset Separator parbreak
11704 \begin_layout Standard
11706 \begin_inset Tabular
11707 <lyxtabular version="3" rows="3" columns="4">
11708 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11709 <column alignment="center" valignment="top" width="0pt">
11710 <column alignment="center" valignment="middle">
11711 <column alignment="center" valignment="top" width="0in">
11712 <column alignment="center" valignment="top" width="0pt">
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11717 \begin_layout Plain Layout
11723 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11744 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11773 \begin_layout Plain Layout
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11802 \begin_layout Plain Layout
11808 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Plain Layout
11843 \begin_layout Subsubsection
11844 Multicolumn Calculations
11845 \begin_inset CommandInset label
11847 name "subsec:Multicolumn-Calculations"
11852 \begin_inset Index idx
11855 \begin_layout Plain Layout
11856 Multicolumns ! Calculations
11864 \begin_layout Standard
11866 supports multicolumns directly, but we have to take account of the cell
11867 width of the columns spanned by the multicolumn cell.
11870 \begin_layout Standard
11871 \begin_inset Float table
11877 \begin_layout Plain Layout
11878 \begin_inset Caption Standard
11880 \begin_layout Plain Layout
11881 \begin_inset CommandInset label
11883 name "tab:Table-with-centered"
11887 Table with centered multicolumn text above two columns that have exactly
11888 half the width of the multicolumn cell
11889 \begin_inset Argument 1
11892 \begin_layout Plain Layout
11893 Perfect multicolumn table
11906 \begin_layout Plain Layout
11908 \begin_inset Tabular
11909 <lyxtabular version="3" rows="3" columns="3">
11910 <features tabularvalignment="middle">
11911 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11912 <column alignment="center" valignment="middle">
11913 <column alignment="center" valignment="top">
11915 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11918 \begin_layout Plain Layout
11919 multiple lines multicolumn
11924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11936 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11976 \begin_layout Plain Layout
11982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11985 \begin_layout Plain Layout
11991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11994 \begin_layout Plain Layout
12013 \begin_layout Standard
12014 To create for example Table
12015 \begin_inset space ~
12019 \begin_inset CommandInset ref
12021 reference "tab:Table-with-centered"
12025 , mark the first two cells in the first row of a 3×3 table and right-click
12027 Now choose for this cell
12036 \begin_inset space \thinspace{}
12039 cm in the table dialog.
12040 The merged columns should have exactly half the width of the multicolumn
12041 cell, so that you would set a width of 1.25
12042 \begin_inset space \thinspace{}
12045 cm for the first column.
12046 The second column has then automatically a width of 1.25
12047 \begin_inset space \thinspace{}
12050 cm (multicolumn width - width of first column).
12051 This was done for Table
12052 \begin_inset space ~
12056 \begin_inset CommandInset ref
12058 reference "tab:Table-without-half"
12065 \begin_layout Standard
12066 \begin_inset Float table
12071 \begin_layout Plain Layout
12072 \begin_inset Caption Standard
12074 \begin_layout Plain Layout
12075 \begin_inset CommandInset label
12077 name "tab:Table-without-half"
12081 Table where the spanned table columns are not exactly half the width of
12082 the multicolumn cell
12083 \begin_inset Argument 1
12086 \begin_layout Plain Layout
12087 Imperfect multicolumn table
12100 \begin_layout Plain Layout
12102 \begin_inset Tabular
12103 <lyxtabular version="3" rows="3" columns="3">
12104 <features tabularvalignment="middle">
12105 <column alignment="center" valignment="top" width="1.25cm">
12106 <column alignment="center" valignment="top">
12107 <column alignment="center" valignment="top">
12109 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12112 \begin_layout Plain Layout
12113 multiple lines multicolumn
12118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12121 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12130 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12141 \begin_layout Plain Layout
12147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12150 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12159 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12170 \begin_layout Plain Layout
12176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12188 \begin_layout Plain Layout
12207 \begin_layout Standard
12208 You can see that the first column is not half the width of the multicolumn
12209 cell, it is a bit bigger.
12210 The reason is that the specified width of a cell
12211 \begin_inset Formula $W_{g}$
12214 is not its total width
12215 \begin_inset Formula $W_{\mathrm{tot}}$
12218 because a cell is always a bit larger than specified.
12220 \begin_inset space ~
12224 \begin_inset CommandInset ref
12226 reference "cha:Explanation-of-Equation"
12230 explains this in detail.
12233 \begin_layout Standard
12235 \begin_inset Formula $W_{g\,n}$
12238 which the user needs to set when
12242 columns are spanned can be calculated, so that each column has a total
12244 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12248 \begin_inset Formula
12250 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12258 \begin_layout Standard
12259 In our case we have
12260 \begin_inset Formula $n=2$
12264 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12267 cm and the default values for the lengths, so that equation
12268 \begin_inset CommandInset ref
12275 \begin_inset Formula
12277 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12285 \begin_layout Standard
12286 To enable calculations in \SpecialChar LaTeX
12287 , the \SpecialChar LaTeX
12292 must be loaded with the document preamble line
12293 \begin_inset Index idx
12296 \begin_layout Plain Layout
12306 \begin_layout Standard
12314 \begin_layout Standard
12316 does not allow you to calculate lengths in the
12320 field of the table dialog.
12321 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12324 Here is an overview about the arguments:
12327 \begin_layout Itemize
12332 creates cell with a fixed width, its text is vertically top-aligned
12335 \begin_layout Itemize
12340 creates cell with a fixed width, its text is vertically centered
12343 \begin_layout Itemize
12348 creates cell with a fixed width, its text is vertically bottom-aligned
12351 \begin_layout Standard
12352 By entering a \SpecialChar LaTeX
12353 -argument, all cell settings set in the table dialog are overwritt
12357 \begin_layout Standard
12358 \begin_inset Note Greyedout
12361 \begin_layout Plain Layout
12366 Due to a bug, \SpecialChar LyX
12367 shows the overwritten settings anyway.
12375 \begin_layout Standard
12376 As the text should be horizontally centered, the command
12383 You can now enter the following \SpecialChar LaTeX
12384 -argument for the first spanned column:
12387 \begin_layout Standard
12392 centering}m{1.25cm-6.2pt}
12395 \begin_layout Standard
12400 means, that the commands inside the braces are applied before the cell
12404 \begin_layout Standard
12405 Although we have chosen centered alignment for the text of the multicolumn
12406 cell, it is still left aligned.
12407 This is because \SpecialChar LyX
12408 only applies the alignment to single columns.
12409 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12413 \begin_layout Standard
12421 \begin_layout Subsection
12423 \begin_inset CommandInset label
12425 name "subsec:Multirows"
12430 \begin_inset Index idx
12433 \begin_layout Plain Layout
12440 \begin_inset Index idx
12443 \begin_layout Plain Layout
12452 \begin_layout Standard
12453 To merge cells over multiple rows, select as many cells within a column
12454 as you want to merge and use either the table-toolbar button
12457 arg "inset-modify tabular multirow"
12462 Edit\SpecialChar menuseparator
12463 Table\SpecialChar menuseparator
12466 , or right click on the marked cells and choose
12470 in the context menu.
12473 \begin_layout Standard
12474 Here is an example table with a multirow in the first column:
12475 \begin_inset Separator parbreak
12481 \begin_layout Standard
12483 \begin_inset Tabular
12484 <lyxtabular version="3" rows="3" columns="3">
12485 <features tabularvalignment="middle">
12486 <column alignment="center" valignment="top" width="0pt">
12487 <column alignment="center" valignment="top">
12488 <column alignment="center" valignment="top">
12490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12502 \begin_layout Plain Layout
12508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12511 \begin_layout Plain Layout
12519 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12522 \begin_layout Plain Layout
12528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12531 \begin_layout Plain Layout
12537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12540 \begin_layout Plain Layout
12548 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12551 \begin_layout Plain Layout
12557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12560 \begin_layout Plain Layout
12566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12569 \begin_layout Plain Layout
12583 \begin_layout Standard
12584 The width of multirow cells is set by setting the width and alignment for
12590 shifts the content of the multirow up/down if the offset is positive/negative.
12593 \begin_layout Standard
12594 If the column of a multirow cell has no explicit width, the multirow cell
12595 inherits the alignment of the column.
12596 Otherwise it is by default left-aligned.
12597 To override the default, renew the command
12606 \begin_layout Standard
12618 \begin_layout Standard
12619 in the document preamble.
12620 Then all entries of multirow cells in the document are centered.
12621 If centering is only needed for several tables, you can renew the command
12622 in a \SpecialChar TeX
12623 Code box just before the table instead of the preamble.
12624 If the text should be right-aligned, replace
12637 To return to left-alignment
12646 \begin_layout Standard
12647 This is an example table with a right-aligned multirow cell that has a vertical
12649 \begin_inset space \thinspace{}
12653 \begin_inset space \thinspace{}
12657 \begin_inset Separator parbreak
12663 \begin_layout Standard
12669 \begin_layout Plain Layout
12683 \begin_inset Tabular
12684 <lyxtabular version="3" rows="4" columns="3">
12685 <features tabularvalignment="middle">
12686 <column alignment="center" valignment="top" width="3cm">
12687 <column alignment="center" valignment="top">
12688 <column alignment="center" valignment="top">
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Plain Layout
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12702 \begin_layout Plain Layout
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12711 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Plain Layout
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12731 \begin_layout Plain Layout
12737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12740 \begin_layout Plain Layout
12748 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12760 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12769 \begin_layout Plain Layout
12777 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12798 \begin_layout Plain Layout
12813 \begin_layout Plain Layout
12829 \begin_layout Standard
12830 To start a new line in a multirow you can use a forced line break (shortcut
12834 arg "newline-insert newline"
12837 ) but this will not respect the cell lines as demonstrated in this table:
12838 \begin_inset Separator parbreak
12844 \begin_layout Standard
12847 \begin_inset Tabular
12848 <lyxtabular version="3" rows="3" columns="2">
12849 <features tabularvalignment="middle">
12850 <column alignment="left" valignment="middle" width="2cm">
12851 <column alignment="center" valignment="top">
12853 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12856 \begin_layout Plain Layout
12858 \begin_inset Newline newline
12862 \begin_inset Newline newline
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12881 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12884 \begin_layout Plain Layout
12890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12893 \begin_layout Plain Layout
12901 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12904 \begin_layout Plain Layout
12910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12913 \begin_layout Plain Layout
12927 \begin_layout Standard
12928 Therefore be careful with forced line breaks.
12931 \begin_layout Subsection
12932 Cells with diagonal line(s)
12935 \begin_layout Standard
12936 To tell the reader what is meant by column and row headings in a table,
12937 it is helpful to split the first cell of the table by one or two diagonal
12939 This can be achieved by loading the \SpecialChar LaTeX
12945 \begin_inset Index idx
12948 \begin_layout Plain Layout
12950 -packages ! picinpar
12955 in the document preamble.
12956 The package provides the command
12962 that is inserted as \SpecialChar TeX
12963 Code and that can take 2 or 3
12964 \begin_inset space ~
12970 \begin_layout Standard
12975 diagbox[options]{lower left}{upper right}
12978 \begin_layout Standard
12983 diagbox[options]{lower left}{upper left}{upper right}
12986 \begin_layout Standard
12987 The first scheme divides the cell by a single diagonal line and the arguments
12988 are placed below and above this line.
12989 The second scheme divides the cell by 2
12990 \begin_inset space ~
12996 \begin_layout Standard
13000 \begin_layout Plain Layout
13010 \begin_inset Note Note
13013 \begin_layout Plain Layout
13014 The following section will only be displayed when the \SpecialChar LaTeX
13027 \begin_layout Standard
13028 Here is an example table where
13034 is used in the 2-argument scheme in the first cell:
13035 \begin_inset VSpace medskip
13041 \begin_layout Standard
13043 \begin_inset Tabular
13044 <lyxtabular version="3" rows="4" columns="4">
13045 <features tabularvalignment="middle">
13046 <column alignment="center" valignment="top">
13047 <column alignment="center" valignment="top">
13048 <column alignment="center" valignment="top">
13049 <column alignment="center" valignment="top">
13051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13054 \begin_layout Plain Layout
13058 \begin_layout Plain Layout
13071 \begin_layout Plain Layout
13082 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13115 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13153 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13229 \begin_layout Plain Layout
13241 \begin_inset VSpace medskip
13247 \begin_layout Standard
13248 The 3-argument scheme is for example useful for cross-tables of sports leagues
13250 \begin_inset Separator parbreak
13256 \begin_layout Standard
13259 \begin_inset Tabular
13260 <lyxtabular version="3" rows="4" columns="4">
13261 <features tabularvalignment="middle">
13262 <column alignment="center" valignment="top" width="0pt">
13263 <column alignment="center" valignment="top">
13264 <column alignment="center" valignment="top">
13265 <column alignment="center" valignment="top">
13267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13270 \begin_layout Plain Layout
13274 \begin_layout Plain Layout
13287 \begin_layout Plain Layout
13298 \begin_layout Plain Layout
13309 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13324 \begin_layout Plain Layout
13330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13333 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13342 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Plain Layout
13368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13371 \begin_layout Plain Layout
13377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13380 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13400 \begin_layout Plain Layout
13406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13409 \begin_layout Plain Layout
13415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13418 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13438 \begin_layout Plain Layout
13444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13456 \begin_layout Plain Layout
13470 \begin_layout Standard
13471 For larger cross-tables one might use split cells in 2 or every corner of
13472 the table like in this example:
13473 \begin_inset Separator parbreak
13479 \begin_layout Standard
13482 \begin_inset Tabular
13483 <lyxtabular version="3" rows="5" columns="5">
13484 <features tabularvalignment="middle">
13485 <column alignment="center" valignment="top" width="0pt">
13486 <column alignment="center" valignment="top">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13489 <column alignment="center" valignment="top">
13491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13494 \begin_layout Plain Layout
13498 \begin_layout Plain Layout
13511 \begin_layout Plain Layout
13522 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13548 \begin_layout Plain Layout
13554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13557 \begin_layout Plain Layout
13563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13566 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13575 \begin_layout Plain Layout
13579 \begin_layout Plain Layout
13592 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \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" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13734 \begin_layout Plain Layout
13740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13743 \begin_layout Plain Layout
13749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13776 \begin_layout Plain Layout
13789 \begin_layout Plain Layout
13800 \begin_layout Plain Layout
13811 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13857 \begin_layout Plain Layout
13870 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13912 \begin_layout Standard
13913 To rotate the diagonal lines, the command option
13938 and represent a point of a compass.
13943 is for example the south-west corner.
13944 Thus in the lower left cell of the above table the command
13947 \begin_layout Standard
13952 diagbox[dir=SW]{Team home}{Result}{Team away}
13955 \begin_layout Standard
13957 If no direction is given, it will be NW.
13960 \begin_layout Standard
13961 The necessary width of split cells is automatically calculated.
13962 Thus if you set a fixed column width smaller than the calculated one, the
13963 cell's content will protrude the cell borders:
13964 \begin_inset Separator parbreak
13970 \begin_layout Standard
13973 \begin_inset Tabular
13974 <lyxtabular version="3" rows="2" columns="2">
13975 <features tabularvalignment="middle">
13976 <column alignment="center" valignment="top" width="3cm">
13977 <column alignment="center" valignment="top">
13979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13986 \begin_layout Plain Layout
13999 \begin_layout Plain Layout
14010 \begin_layout Plain Layout
14022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14025 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14036 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14045 \begin_layout Plain Layout
14059 \begin_layout Standard
14060 If you need a certain width for columns with a split cell, use the command
14065 (replace '3cm' by the width you need).
14066 In the following table the width of the first column is set to 4
14067 \begin_inset space \thinspace{}
14078 \begin_inset space \thinspace{}
14082 \begin_inset space \thinspace{}
14087 tabcolsep is necessary because the overall width is the width for the text
14088 (in this case the 4
14089 \begin_inset space \thinspace{}
14092 cm) plus two times the separation of the text and the cell border.
14093 The calculation of the width cannot be done in the command option of
14099 so one needs to create a new length which can be used later.
14100 This is done with the \SpecialChar TeX
14104 \begin_layout Standard
14112 \begin_inset Newline newline
14124 \begin_layout Standard
14128 \begin_layout Plain Layout
14137 \begin_layout Plain Layout
14153 \begin_layout Standard
14154 To enable calculations in \SpecialChar LaTeX
14155 one needs to load the package
14160 \begin_inset Index idx
14163 \begin_layout Plain Layout
14170 in the document preamble.
14173 \begin_layout Standard
14174 In this table you can now use the command
14177 \begin_layout Standard
14187 \begin_layout Standard
14189 \begin_inset Separator parbreak
14195 \begin_layout Standard
14198 \begin_inset Tabular
14199 <lyxtabular version="3" rows="2" columns="2">
14200 <features tabularvalignment="middle">
14201 <column alignment="center" valignment="top" width="4cm">
14202 <column alignment="center" valignment="top">
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14211 \begin_layout Plain Layout
14226 \begin_layout Plain Layout
14237 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14252 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14286 \begin_layout Standard
14287 Note that the split cell needs to be the widest one in the column.
14288 Otherwise the length of the diagonal line cannot be calculated correctly
14289 like in this table:
14290 \begin_inset Separator parbreak
14296 \begin_layout Standard
14299 \begin_inset Tabular
14300 <lyxtabular version="3" rows="2" columns="2">
14301 <features tabularvalignment="middle">
14302 <column alignment="center" valignment="top" width="0pt">
14303 <column alignment="center" valignment="top">
14305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14312 \begin_layout Plain Layout
14325 \begin_layout Plain Layout
14336 \begin_layout Plain Layout
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Plain Layout
14359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14362 \begin_layout Plain Layout
14368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14371 \begin_layout Plain Layout
14385 \begin_layout Standard
14386 In this case use the
14397 It is then not necessary to add 2
14399 tabcolsep because the cell width is now the width of the column.
14400 In this table a width of 3
14401 \begin_inset space \thinspace{}
14405 \begin_inset Separator parbreak
14411 \begin_layout Standard
14414 \begin_inset Tabular
14415 <lyxtabular version="3" rows="2" columns="2">
14416 <features tabularvalignment="middle">
14417 <column alignment="center" valignment="top" width="0pt">
14418 <column alignment="center" valignment="top">
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14423 \begin_layout Plain Layout
14427 \begin_layout Plain Layout
14431 diagbox[width=3cm]{
14440 \begin_layout Plain Layout
14451 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14466 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14477 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14486 \begin_layout Plain Layout
14500 \begin_layout Standard
14501 For multiple text lines in split cells one needs some extra height to fit
14502 the text to the cell.
14503 This can be achieved with the
14513 (replace '3cm' by the height you need).
14514 In the following table the command
14517 \begin_layout Standard
14522 diagbox[width=3cm,height=1.4cm]{A
14533 \begin_layout Standard
14534 is used in the first cell.
14543 creates hereby the line break.
14547 \begin_layout Plain Layout
14548 Breaking lines with
14552 is only possible when the column has a fixed width.
14558 \begin_inset Separator parbreak
14564 \begin_layout Standard
14567 \begin_inset Tabular
14568 <lyxtabular version="3" rows="2" columns="2">
14569 <features tabularvalignment="middle">
14570 <column alignment="center" valignment="top">
14571 <column alignment="center" valignment="top">
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14580 \begin_layout Plain Layout
14584 diagbox[width=3cm,height=1.4cm]{
14593 \begin_layout Plain Layout
14608 \begin_layout Plain Layout
14619 \begin_layout Plain Layout
14634 \begin_layout Plain Layout
14646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14649 \begin_layout Plain Layout
14657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14660 \begin_layout Plain Layout
14666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14669 \begin_layout Plain Layout
14683 \begin_layout Standard
14687 \begin_layout Plain Layout
14697 \begin_inset Note Note
14700 \begin_layout Plain Layout
14701 The following will be displayed when the \SpecialChar LaTeX
14714 \begin_layout Standard
14715 You need to install the \SpecialChar LaTeX
14720 to see the following part of this section in the output.
14723 \begin_layout Standard
14727 \begin_layout Plain Layout
14739 \begin_layout Standard
14740 For more info about the \SpecialChar LaTeX
14745 , see its documentation,
14746 \begin_inset CommandInset citation
14755 \begin_layout Section
14757 \begin_inset CommandInset label
14759 name "sec:Formal-Tables"
14764 \begin_inset Index idx
14767 \begin_layout Plain Layout
14776 \begin_layout Standard
14777 Tables are often typeset in books similar to Table
14778 \begin_inset space ~
14782 \begin_inset CommandInset ref
14784 reference "tab:Example-booktabs-table"
14789 This kind of tables is called
14790 \begin_inset Quotes eld
14798 \begin_inset Quotes erd
14802 To make a table a formal table use the option
14810 tab of the table dialog.
14813 \begin_layout Standard
14814 \begin_inset Float table
14820 \begin_layout Plain Layout
14821 \begin_inset Caption Standard
14823 \begin_layout Plain Layout
14824 \begin_inset CommandInset label
14826 name "tab:Example-booktabs-table"
14830 Example booktabs-table
14838 \begin_layout Plain Layout
14840 \begin_inset Tabular
14841 <lyxtabular version="3" rows="8" columns="4">
14842 <features booktabs="true" tabularvalignment="middle">
14843 <column alignment="center" valignment="top">
14844 <column alignment="center" valignment="top">
14845 <column alignment="center" valignment="top">
14846 <column alignment="center" valignment="top">
14848 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14851 \begin_layout Plain Layout
14857 <cell alignment="center" valignment="top" topline="true" usebox="none">
14860 \begin_layout Plain Layout
14862 \begin_inset space \thinspace{}
14870 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14873 \begin_layout Plain Layout
14875 \begin_inset space \thinspace{}
14883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14886 \begin_layout Plain Layout
14894 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14897 \begin_layout Plain Layout
14901 \begin_layout Plain Layout
14914 \begin_layout Plain Layout
14923 Detector thickness in µm
14928 <cell alignment="center" valignment="top" usebox="none">
14931 \begin_layout Plain Layout
14937 <cell alignment="center" valignment="top" usebox="none">
14940 \begin_layout Plain Layout
14946 <cell alignment="center" valignment="top" usebox="none">
14949 \begin_layout Plain Layout
14957 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14960 \begin_layout Plain Layout
14966 <cell alignment="center" valignment="top" topline="true" usebox="none">
14969 \begin_layout Plain Layout
14975 <cell alignment="center" valignment="top" topline="true" usebox="none">
14978 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" topline="true" usebox="none">
14987 \begin_layout Plain Layout
14994 <row topspace="default">
14995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14998 \begin_layout Plain Layout
14999 Spatial resolution in µm
15004 <cell alignment="center" valignment="top" usebox="none">
15007 \begin_layout Plain Layout
15013 <cell alignment="center" valignment="top" usebox="none">
15016 \begin_layout Plain Layout
15022 <cell alignment="center" valignment="top" usebox="none">
15025 \begin_layout Plain Layout
15032 <row topspace="default">
15033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15036 \begin_layout Plain Layout
15038 \begin_inset Formula $f_{\mathrm{max}}$
15046 <cell alignment="center" valignment="top" usebox="none">
15049 \begin_layout Plain Layout
15055 <cell alignment="center" valignment="top" usebox="none">
15058 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15074 <row topspace="default">
15075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15078 \begin_layout Plain Layout
15082 \begin_layout Plain Layout
15086 cmidrule[2pt](l{10pt}){1-1}
15091 LSF-spatial resolution
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15114 <cell alignment="center" valignment="top" usebox="none">
15117 \begin_layout Plain Layout
15125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15128 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" usebox="none">
15137 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15166 \begin_layout Plain Layout
15172 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15175 \begin_layout Plain Layout
15181 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15184 \begin_layout Plain Layout
15190 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15193 \begin_layout Plain Layout
15212 \begin_layout Standard
15213 Spaces to table rows can be added using the
15217 tab of the table dialog as described in section
15218 \begin_inset space ~
15222 \begin_inset CommandInset ref
15224 reference "subsec:Row-Spacing"
15231 \begin_layout Standard
15232 Unlike normal tables, formal tables have no vertical table lines.
15233 The horizontal table lines can be set as for normal tables but they appear
15234 with different widths in the output:
15235 \begin_inset Newline newline
15238 The first and the last table line have a default width of 0.08
15239 \begin_inset space \thinspace{}
15242 em while the other lines have a default width of 0.05
15243 \begin_inset space \thinspace{}
15249 \begin_layout Standard
15250 The default widths can be changed with the following preamble lines
15253 \begin_layout Standard
15263 \begin_inset Newline newline
15275 \begin_layout Standard
15276 This example is for the first line, the so called
15281 If you want to change the width for the last line, replace
15290 To change the width for the other lines replace
15299 You can use all units listed in appendix
15300 \begin_inset space ~
15304 \begin_inset CommandInset ref
15306 reference "cha:Units-available-in"
15313 \begin_layout Standard
15314 Lines that do not span all table columns can be created by setting a table
15315 line for multicolumn cells.
15317 will then internally use the command
15323 to create this line.
15327 \begin_layout Standard
15332 cmidrule[height](trim){startcol-endcol}
15335 \begin_layout Standard
15342 are currently not supported by \SpecialChar LyX
15343 so you have to use \SpecialChar TeX
15352 s can manually be created by inserting the command as \SpecialChar TeX
15354 cell entry of the first cell of a row.
15355 The line is then drawn in the output above the current row.
15358 \begin_layout Standard
15359 The default for the optional
15364 \begin_inset space \thinspace{}
15372 is the number of the column where the line starts and
15376 the column number where the line ends.
15381 always needs to be specified, also when the line should span only one column.
15382 The optional parameter
15399 Using for example the parameter
15403 means that the line is trimmed from its left end by 2
15404 \begin_inset space \thinspace{}
15408 If you don't specify the
15412 the line is trimmed by the default of 0.5
15413 \begin_inset space \thinspace{}
15419 \begin_layout Standard
15420 \begin_inset VSpace bigskip
15424 \begin_inset space ~
15428 \begin_inset CommandInset ref
15430 reference "tab:Example-booktabs-table"
15434 was created using the commands
15437 \begin_layout Standard
15447 \begin_layout Standard
15448 at the beginning of the second row and
15451 \begin_layout Standard
15456 cmidrule[2pt](l{10pt}){1-1}
15459 \begin_layout Standard
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15470 \begin_layout Standard
15471 You might want to have overlapping
15478 \begin_inset space ~
15482 \begin_inset CommandInset ref
15484 reference "tab:Special-booktabs-table"
15489 This can be achieved with the \SpecialChar TeX
15493 \begin_layout Standard
15501 \begin_layout Standard
15502 The command that was used for the second row of Table
15503 \begin_inset space ~
15507 \begin_inset CommandInset ref
15509 reference "tab:Special-booktabs-table"
15516 \begin_layout Standard
15530 \begin_layout Standard
15531 The command for the sixth row is
15534 \begin_layout Standard
15546 \begin_layout Standard
15547 \begin_inset VSpace bigskip
15553 \begin_layout Standard
15554 If you are in any way not satisfied with the border line spacing, you can
15555 use the following command to produce lines that span over all table columns
15560 \begin_layout Standard
15565 specialrule{width}{space above}{space below}
15568 \begin_layout Standard
15569 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15576 \begin_inset CommandInset citation
15583 \begin_inset Index idx
15586 \begin_layout Plain Layout
15588 -packages ! booktabs
15596 \begin_layout Standard
15597 \begin_inset Float table
15603 \begin_layout Plain Layout
15604 \begin_inset Caption Standard
15606 \begin_layout Plain Layout
15607 \begin_inset CommandInset label
15609 name "tab:Special-booktabs-table"
15613 Special booktabs-table
15621 \begin_layout Plain Layout
15623 \begin_inset Tabular
15624 <lyxtabular version="3" rows="8" columns="4">
15625 <features booktabs="true" tabularvalignment="middle">
15626 <column alignment="center" valignment="top">
15627 <column alignment="center" valignment="top">
15628 <column alignment="center" valignment="top">
15629 <column alignment="center" valignment="top">
15631 <cell alignment="center" valignment="top" topline="true" usebox="none">
15634 \begin_layout Plain Layout
15640 <cell alignment="center" valignment="top" topline="true" usebox="none">
15643 \begin_layout Plain Layout
15645 \begin_inset space \thinspace{}
15653 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15656 \begin_layout Plain Layout
15658 \begin_inset space \thinspace{}
15666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15669 \begin_layout Plain Layout
15677 <cell alignment="center" valignment="top" usebox="none">
15680 \begin_layout Plain Layout
15684 \begin_layout Plain Layout
15697 \begin_layout Plain Layout
15710 \begin_layout Plain Layout
15723 \begin_layout Plain Layout
15732 Detector thickness in µm
15737 <cell alignment="center" valignment="top" usebox="none">
15740 \begin_layout Plain Layout
15746 <cell alignment="center" valignment="top" usebox="none">
15749 \begin_layout Plain Layout
15755 <cell alignment="center" valignment="top" usebox="none">
15758 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" topline="true" usebox="none">
15769 \begin_layout Plain Layout
15775 <cell alignment="center" valignment="top" topline="true" usebox="none">
15778 \begin_layout Plain Layout
15784 <cell alignment="center" valignment="top" topline="true" usebox="none">
15787 \begin_layout Plain Layout
15793 <cell alignment="center" valignment="top" topline="true" usebox="none">
15796 \begin_layout Plain Layout
15803 <row topspace="default">
15804 <cell alignment="center" valignment="top" usebox="none">
15807 \begin_layout Plain Layout
15808 Spatial resolution in µm
15813 <cell alignment="center" valignment="top" usebox="none">
15816 \begin_layout Plain Layout
15822 <cell alignment="center" valignment="top" usebox="none">
15825 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" usebox="none">
15834 \begin_layout Plain Layout
15841 <row topspace="default">
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15847 \begin_inset Formula $f_{\mathrm{max}}$
15855 <cell alignment="center" valignment="top" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" usebox="none">
15876 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" topline="true" usebox="none">
15887 \begin_layout Plain Layout
15891 \begin_layout Plain Layout
15904 \begin_layout Plain Layout
15913 LSF-spatial resolution
15918 <cell alignment="center" valignment="top" topline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" topline="true" usebox="none">
15939 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" usebox="none">
15950 \begin_layout Plain Layout
15956 <cell alignment="center" valignment="top" usebox="none">
15959 \begin_layout Plain Layout
15965 <cell alignment="center" valignment="top" usebox="none">
15968 \begin_layout Plain Layout
15974 <cell alignment="center" valignment="top" usebox="none">
15977 \begin_layout Plain Layout
15985 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15988 \begin_layout Plain Layout
15994 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15997 \begin_layout Plain Layout
16003 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16006 \begin_layout Plain Layout
16012 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16015 \begin_layout Plain Layout
16034 \begin_layout Section
16035 Vertical Table Alignment
16036 \begin_inset Index idx
16039 \begin_layout Plain Layout
16048 \begin_layout Standard
16049 To align tables vertically in a text line, the table must be inside a box.
16050 The box can then be vertically aligned as described in section
16051 \begin_inset space ~
16055 \begin_inset CommandInset ref
16057 reference "sec:Box-Dialog"
16064 \begin_layout Standard
16065 In the following example the tables are inside a minipage
16069 \begin_layout Plain Layout
16070 Minipages are described in section
16071 \begin_inset space ~
16075 \begin_inset CommandInset ref
16077 reference "sec:Minipages"
16086 box that has a width of 15
16087 \begin_inset space \thinspace{}
16093 \begin_layout Itemize
16095 \begin_inset Box Frameless
16105 height_special "totalheight"
16110 backgroundcolor "none"
16113 \begin_layout Plain Layout
16114 \begin_inset Tabular
16115 <lyxtabular version="3" rows="3" columns="3">
16116 <features tabularvalignment="middle">
16117 <column alignment="center" valignment="top">
16118 <column alignment="center" valignment="top">
16119 <column alignment="center" valignment="top">
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16124 \begin_layout Plain Layout
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16133 \begin_layout Plain Layout
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Plain Layout
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16153 \begin_layout Plain Layout
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Plain Layout
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Plain Layout
16179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16182 \begin_layout Plain Layout
16188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Plain Layout
16220 \begin_layout Plain Layout
16232 \begin_inset Box Frameless
16242 height_special "totalheight"
16247 backgroundcolor "none"
16250 \begin_layout Plain Layout
16251 \begin_inset Tabular
16252 <lyxtabular version="3" rows="3" columns="3">
16253 <features tabularvalignment="middle">
16254 <column alignment="center" valignment="top">
16255 <column alignment="center" valignment="top">
16256 <column alignment="center" valignment="top">
16258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16270 \begin_layout Plain Layout
16276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16279 \begin_layout Plain Layout
16287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16290 \begin_layout Plain Layout
16296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16299 \begin_layout Plain Layout
16305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16308 \begin_layout Plain Layout
16316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16319 \begin_layout Plain Layout
16325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16328 \begin_layout Plain Layout
16334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16337 \begin_layout Plain Layout
16357 \begin_layout Plain Layout
16367 \begin_layout Itemize
16369 \begin_inset Box Frameless
16379 height_special "totalheight"
16384 backgroundcolor "none"
16387 \begin_layout Plain Layout
16388 \begin_inset Tabular
16389 <lyxtabular version="3" rows="3" columns="3">
16390 <features tabularvalignment="middle">
16391 <column alignment="center" valignment="top">
16392 <column alignment="center" valignment="top">
16393 <column alignment="center" valignment="top">
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Plain Layout
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16407 \begin_layout Plain Layout
16413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16416 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16427 \begin_layout Plain Layout
16433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16436 \begin_layout Plain Layout
16442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16445 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16465 \begin_layout Plain Layout
16471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Plain Layout
16493 \begin_layout Itemize
16495 \begin_inset Box Frameless
16505 height_special "totalheight"
16510 backgroundcolor "none"
16513 \begin_layout Plain Layout
16514 \begin_inset Tabular
16515 <lyxtabular version="3" rows="3" columns="3">
16516 <features tabularvalignment="middle">
16517 <column alignment="center" valignment="top">
16518 <column alignment="center" valignment="top">
16519 <column alignment="center" valignment="top">
16521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16533 \begin_layout Plain Layout
16539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16542 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16562 \begin_layout Plain Layout
16568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16582 \begin_layout Plain Layout
16588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16591 \begin_layout Plain Layout
16597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16620 \begin_layout Plain Layout
16632 \begin_inset Box Frameless
16642 height_special "totalheight"
16647 backgroundcolor "none"
16650 \begin_layout Plain Layout
16651 \begin_inset Tabular
16652 <lyxtabular version="3" rows="3" columns="3">
16653 <features tabularvalignment="middle">
16654 <column alignment="center" valignment="top">
16655 <column alignment="center" valignment="top">
16656 <column alignment="center" valignment="top">
16658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16661 \begin_layout Plain Layout
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Plain Layout
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16679 \begin_layout Plain Layout
16687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16690 \begin_layout Plain Layout
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Plain Layout
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16708 \begin_layout Plain Layout
16716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16719 \begin_layout Plain Layout
16725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16728 \begin_layout Plain Layout
16734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16737 \begin_layout Plain Layout
16757 \begin_layout Plain Layout
16767 \begin_layout Standard
16768 As you will see, the content of the first and last table row is not correctly
16770 To get this alignment, the minipage box must be set into a raisebox.
16774 \begin_layout Plain Layout
16775 Raiseboxes are described in section
16776 \begin_inset space ~
16780 \begin_inset CommandInset ref
16782 reference "subsec:Vertical-Alignment"
16791 In the example above the second table in the first item is aligned using
16792 the \SpecialChar TeX
16796 \begin_layout Standard
16806 \begin_layout Standard
16808 After the box the closing brace
16812 is inserted as \SpecialChar TeX
16814 For the second table in the last item the command
16817 \begin_layout Standard
16827 \begin_layout Standard
16831 \begin_layout Standard
16832 \begin_inset Note Greyedout
16835 \begin_layout Plain Layout
16840 The alignment of the table row content to the surrounding text line is
16842 The required value for the
16848 command for this alignment depends on the document font, the font size,
16849 and the table line thickness.
16857 \begin_layout Section
16859 \begin_inset CommandInset label
16861 name "sec:Colored-Tables"
16866 \begin_inset Index idx
16869 \begin_layout Plain Layout
16878 \begin_layout Subsection
16880 \begin_inset Index idx
16883 \begin_layout Plain Layout
16884 Table Color ! for Cells
16890 \begin_inset Index idx
16893 \begin_layout Plain Layout
16894 Color ! for Table Cells
16902 \begin_layout Standard
16903 \begin_inset Float table
16909 \begin_layout Plain Layout
16910 \begin_inset Caption Standard
16912 \begin_layout Plain Layout
16913 \begin_inset CommandInset label
16915 name "tab:Table-colored-without"
16919 Table colored without using the package
16924 \begin_inset Argument 1
16927 \begin_layout Plain Layout
16928 Table without colortbl
16941 \begin_layout Plain Layout
16943 \begin_inset Tabular
16944 <lyxtabular version="3" rows="3" columns="3">
16945 <features tabularvalignment="middle">
16946 <column alignment="center" valignment="top">
16947 <column alignment="center" valignment="top">
16948 <column alignment="center" valignment="top">
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Plain Layout
16961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16964 \begin_layout Plain Layout
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16975 \begin_layout Plain Layout
16985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16988 \begin_layout Plain Layout
16996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16999 \begin_layout Plain Layout
17007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17010 \begin_layout Plain Layout
17020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17023 \begin_layout Plain Layout
17031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17034 \begin_layout Plain Layout
17042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17066 \begin_layout Standard
17067 If you only need colored text, mark the cells and choose a color in the
17071 \begin_inset space ~
17076 dialog (toolbar button
17079 arg "dialog-show character"
17083 This was used to create Table
17084 \begin_inset space ~
17088 \begin_inset CommandInset ref
17090 reference "tab:Table-colored-without"
17095 In any other case you have to use the \SpecialChar LaTeX
17101 \begin_inset Index idx
17104 \begin_layout Plain Layout
17106 -packages ! colortbl
17114 \begin_layout Standard
17118 \begin_layout Plain Layout
17128 \begin_inset Note Note
17131 \begin_layout Plain Layout
17132 The following section part will only be displayed when the \SpecialChar LaTeX
17145 \begin_layout Standard
17146 To create colored tables,
17150 must be loaded in the preamble with the line
17153 \begin_layout Standard
17158 usepackage{colortbl}
17161 \begin_layout Standard
17162 The color of a column is adjusted with the command
17165 \begin_layout Standard
17170 columncolor{name of color}
17173 \begin_layout Standard
17179 More about the command
17183 is contained in section
17184 \begin_inset space ~
17188 \begin_inset CommandInset ref
17190 reference "subsec:Multicolumn-Calculations"
17197 \begin_layout Standard
17198 The following color names are predefined:
17201 \begin_layout Standard
17235 \begin_layout Standard
17236 \begin_inset VSpace medskip
17242 \begin_layout Standard
17243 If you add the option
17246 \begin_layout Standard
17252 \begin_layout Standard
17253 to the document class options in the document settings, you can additionally
17255 \begin_inset space ~
17259 These colors are listed in appendix
17260 \begin_inset space ~
17264 \begin_inset CommandInset ref
17266 reference "chap:List-of-dvips-colornames"
17271 One of these colors,
17275 , is used as example in Table
17276 \begin_inset space ~
17280 \begin_inset CommandInset ref
17282 reference "tab:Table-colored-using"
17289 \begin_layout Standard
17290 \begin_inset VSpace medskip
17296 \begin_layout Standard
17297 You can also define your own color with the command
17300 \begin_layout Standard
17305 definecolor{color name}{color model}{color values}
17308 \begin_layout Standard
17309 The color model can be
17312 \begin_layout Labeling
17313 \labelwidthstring 00.00.0000
17314 cmyk: cyan, magenta, yellow, black
17317 \begin_layout Labeling
17318 \labelwidthstring 00.00.0000
17319 rgb: red, green blue
17322 \begin_layout Labeling
17323 \labelwidthstring 00.00.0000
17327 \begin_layout Standard
17328 and the color values are comma separated numbers between 0 and 1 describing
17329 the factor for the corresponding color of the color model.
17332 \begin_layout Standard
17334 \begin_inset space \thinspace{}
17338 \begin_inset space \space{}
17345 " in the preamble with
17348 \begin_layout Standard
17353 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17356 \begin_layout Standard
17364 \begin_layout Standard
17369 definecolor{lightgray}{gray}{0.8}
17372 \begin_layout Standard
17373 \begin_inset VSpace medskip
17379 \begin_layout Standard
17380 Lines are colored with the command
17383 \begin_layout Standard
17388 rowcolor{name of color}
17391 \begin_layout Standard
17392 and cells are colored with the command
17395 \begin_layout Standard
17400 cellcolor{name of color}
17403 \begin_layout Standard
17404 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17408 \begin_layout Standard
17409 To color characters in the table, mark the cells and use the
17412 \begin_inset space ~
17418 If a cell contains \SpecialChar TeX
17419 Code mark only the characters, otherwise the colored
17421 Code will cause \SpecialChar LaTeX
17425 \begin_layout Standard
17426 \begin_inset Note Greyedout
17429 \begin_layout Plain Layout
17434 Not all DVI-viewers are able to display self-defined colors.
17442 \begin_layout Standard
17443 \begin_inset VSpace bigskip
17449 \begin_layout Standard
17451 \begin_inset space ~
17455 \begin_inset CommandInset ref
17457 reference "tab:Table-colored-using"
17461 do the following: The color of the first column should be
17469 \begin_layout Standard
17474 columncolor{darkgreen}
17479 \begin_layout Standard
17480 as \SpecialChar LaTeX
17481 -argument for this column.
17482 The first row should be light blue, therefore the \SpecialChar TeX
17486 \begin_layout Standard
17494 \begin_layout Standard
17495 is inserted to the first cell of this row.
17496 Note that this overwrites the column color for the first cell.
17497 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17502 \begin_layout Standard
17510 \begin_layout Standard
17511 The characters could now be colored using the menu
17513 Edit\SpecialChar menuseparator
17515 \begin_inset space ~
17523 \begin_layout Standard
17524 \begin_inset Float table
17530 \begin_layout Plain Layout
17531 \begin_inset Caption Standard
17533 \begin_layout Plain Layout
17534 \begin_inset CommandInset label
17536 name "tab:Table-colored-using"
17540 Table colored using the package
17545 \begin_inset Argument 1
17548 \begin_layout Plain Layout
17549 Table with colortbl
17562 \begin_layout Plain Layout
17564 \begin_inset Tabular
17565 <lyxtabular version="3" rows="3" columns="3">
17566 <features tabularvalignment="middle">
17567 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17568 <column alignment="center" valignment="top">
17569 <column alignment="center" valignment="top">
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17578 \begin_layout Plain Layout
17594 <cell alignment="center" valignment="top" usebox="none">
17597 \begin_layout Plain Layout
17605 <cell alignment="center" valignment="top" usebox="none">
17608 \begin_layout Plain Layout
17618 <cell alignment="center" valignment="top" usebox="none">
17621 \begin_layout Plain Layout
17629 <cell alignment="center" valignment="top" usebox="none">
17632 \begin_layout Plain Layout
17640 <cell alignment="center" valignment="top" usebox="none">
17643 \begin_layout Plain Layout
17653 <cell alignment="center" valignment="top" usebox="none">
17656 \begin_layout Plain Layout
17664 <cell alignment="center" valignment="top" usebox="none">
17667 \begin_layout Plain Layout
17675 <cell alignment="center" valignment="top" usebox="none">
17678 \begin_layout Plain Layout
17682 \begin_layout Plain Layout
17711 \begin_layout Standard
17715 \begin_layout Plain Layout
17725 \begin_inset Note Note
17728 \begin_layout Plain Layout
17729 The following will be displayed when the \SpecialChar LaTeX
17742 \begin_layout Standard
17743 You need to install the package
17747 to see the content of this section in the output.
17750 \begin_layout Standard
17754 \begin_layout Plain Layout
17766 \begin_layout Subsection
17768 \begin_inset Index idx
17771 \begin_layout Plain Layout
17772 Table Color ! for Rows
17778 \begin_inset Index idx
17781 \begin_layout Plain Layout
17782 Color ! for Table Rows
17790 \begin_layout Standard
17791 In case every second table row needs to be colored there is an alternative
17792 to the method described in the previous section: One loads the package
17798 \begin_inset Index idx
17801 \begin_layout Plain Layout
17807 \begin_layout Plain Layout
17821 in the document preamble with the command
17824 \begin_layout Standard
17829 usepackage[table]{xcolor}
17832 \begin_layout Standard
17837 automatically loads also the package
17842 \begin_inset Index idx
17845 \begin_layout Plain Layout
17847 -packages ! colortbl
17856 must be installed in your \SpecialChar LaTeX
17857 -distribution, otherwise you get \SpecialChar LaTeX
17861 \begin_layout Standard
17865 \begin_layout Plain Layout
17875 \begin_inset Note Note
17878 \begin_layout Plain Layout
17879 The following section part will only be displayed when the \SpecialChar LaTeX
17892 \begin_layout Standard
17893 The table rows are colored with the command
17896 \begin_layout Standard
17901 rowcolors[commands]{row number}{odd row color}{even row color}
17904 \begin_layout Standard
17905 that is either inserted in the document preamble or as \SpecialChar TeX
17907 first table to be colored.
17909 \begin_inset space ~
17912 number is the number of the first row which should be colored according
17913 to the odd row color.
17914 commands can be additional commands that are executed before every table
17916 So for example the command
17919 \begin_layout Standard
17924 rowcolors{1}{white}{lightgray}
17927 \begin_layout Standard
17928 leads to the coloring scheme of Table
17929 \begin_inset space ~
17933 \begin_inset CommandInset ref
17935 reference "tab:Table-rowcolors"
17943 \begin_layout Standard
17950 hline]{1}{lightgray}{cyan}
17953 \begin_layout Standard
17954 leads to the coloring scheme of Table
17955 \begin_inset space ~
17959 \begin_inset CommandInset ref
17961 reference "tab:Table-rowcolors-2"
17967 \begin_inset space ~
17971 \begin_inset space ~
17975 \begin_inset space ~
17979 \begin_inset space ~
17982 color are left empty, no color will be used so that the command
17985 \begin_layout Standard
17993 \begin_layout Standard
17994 deletes all colors.
18001 affects all tables following that command.
18004 \begin_layout Standard
18008 \begin_layout Plain Layout
18012 rowcolors{1}{white}{lightgray}
18020 \begin_layout Standard
18021 \begin_inset Float table
18027 \begin_layout Plain Layout
18028 \begin_inset Caption Standard
18030 \begin_layout Plain Layout
18031 \begin_inset CommandInset label
18033 name "tab:Table-rowcolors"
18037 Table where every second row is colored light gray.
18045 \begin_layout Plain Layout
18047 \begin_inset Tabular
18048 <lyxtabular version="3" rows="4" columns="3">
18049 <features tabularvalignment="middle">
18050 <column alignment="center" valignment="top">
18051 <column alignment="center" valignment="top" width="0pt">
18052 <column alignment="center" valignment="top" width="0pt">
18054 <cell alignment="center" valignment="top" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" usebox="none">
18066 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" usebox="none">
18075 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18181 \begin_layout Standard
18185 \begin_layout Plain Layout
18191 hline]{1}{lightgray}{cyan}
18199 \begin_layout Standard
18200 \begin_inset Float table
18206 \begin_layout Plain Layout
18207 \begin_inset Caption Standard
18209 \begin_layout Plain Layout
18210 \begin_inset CommandInset label
18212 name "tab:Table-rowcolors-2"
18216 Table where every second row is colored cyan and at which there is a line
18225 \begin_layout Plain Layout
18227 \begin_inset Tabular
18228 <lyxtabular version="3" rows="4" columns="3">
18229 <features tabularvalignment="middle">
18230 <column alignment="center" valignment="top">
18231 <column alignment="center" valignment="top">
18232 <column alignment="center" valignment="top" width="0pt">
18234 <cell alignment="center" valignment="top" usebox="none">
18237 \begin_layout Plain Layout
18243 <cell alignment="center" valignment="top" usebox="none">
18246 \begin_layout Plain Layout
18252 <cell alignment="center" valignment="top" usebox="none">
18255 \begin_layout Plain Layout
18263 <cell alignment="center" valignment="top" usebox="none">
18266 \begin_layout Plain Layout
18272 <cell alignment="center" valignment="top" usebox="none">
18275 \begin_layout Plain Layout
18281 <cell alignment="center" valignment="top" usebox="none">
18284 \begin_layout Plain Layout
18292 <cell alignment="center" valignment="top" usebox="none">
18295 \begin_layout Plain Layout
18301 <cell alignment="center" valignment="top" usebox="none">
18304 \begin_layout Plain Layout
18310 <cell alignment="center" valignment="top" usebox="none">
18313 \begin_layout Plain Layout
18321 <cell alignment="center" valignment="top" usebox="none">
18324 \begin_layout Plain Layout
18330 <cell alignment="center" valignment="top" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" usebox="none">
18342 \begin_layout Plain Layout
18361 \begin_layout Standard
18365 \begin_layout Plain Layout
18375 \begin_inset Note Note
18378 \begin_layout Plain Layout
18379 turns off the row coloring
18387 \begin_layout Standard
18391 \begin_layout Plain Layout
18401 \begin_inset Note Note
18404 \begin_layout Plain Layout
18405 The following will be displayed when the \SpecialChar LaTeX
18418 \begin_layout Standard
18419 You need to install the package
18423 to see the content of this section in the output.
18426 \begin_layout Standard
18430 \begin_layout Plain Layout
18442 \begin_layout Subsection
18444 \begin_inset Index idx
18447 \begin_layout Plain Layout
18448 Table Color ! for Lines
18454 \begin_inset Index idx
18457 \begin_layout Plain Layout
18458 Color ! for Table Lines
18466 \begin_layout Standard
18467 As described in section
18468 \begin_inset space ~
18472 \begin_inset CommandInset ref
18474 reference "subsec:Line-Thickness"
18478 , the line thickness for all lines in a table can be adjusted with the length
18487 \begin_inset space \thinspace{}
18490 pt for all tables of this section.
18494 \begin_layout Plain Layout
18500 arrayrulewidth}{1.5pt}
18508 \begin_layout Standard
18509 To color vertical lines for example with green, create the following column
18510 format in the document preamble, according to the description in section
18511 \begin_inset space ~
18515 \begin_inset CommandInset ref
18517 reference "subsec:Customized-Format"
18524 \begin_layout Standard
18529 newcolumntype{W}{!{
18536 \begin_layout Standard
18538 \begin_inset space ~
18542 \begin_inset CommandInset ref
18544 reference "tab:Table-with-vertical-colored"
18548 the \SpecialChar LaTeX
18553 was used for the last column and
18557 for the other columns.
18560 \begin_layout Standard
18561 If you want to have several colors, define more column formats.
18564 \begin_layout Standard
18565 \begin_inset Float table
18571 \begin_layout Plain Layout
18572 \begin_inset Caption Standard
18574 \begin_layout Plain Layout
18575 \begin_inset CommandInset label
18577 name "tab:Table-with-vertical-colored"
18581 Table with colored vertical lines
18589 \begin_layout Plain Layout
18591 \begin_inset Tabular
18592 <lyxtabular version="3" rows="3" columns="3">
18593 <features tabularvalignment="middle">
18594 <column alignment="center" valignment="top" special="Wc">
18595 <column alignment="center" valignment="top" special="Wc">
18596 <column alignment="center" valignment="top" special="WcW">
18598 <cell alignment="center" valignment="top" topline="true" usebox="none">
18601 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" usebox="none">
18610 \begin_layout Plain Layout
18616 <cell alignment="center" valignment="top" topline="true" usebox="none">
18619 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" usebox="none">
18639 \begin_layout Plain Layout
18645 <cell alignment="center" valignment="top" topline="true" usebox="none">
18648 \begin_layout Plain Layout
18656 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18659 \begin_layout Plain Layout
18665 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18668 \begin_layout Plain Layout
18674 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18677 \begin_layout Plain Layout
18696 \begin_layout Standard
18697 \begin_inset VSpace bigskip
18700 To color horizontal lines for example with red, as in Table
18701 \begin_inset space ~
18705 \begin_inset CommandInset ref
18707 reference "tab:Table-with-horizontal-colored"
18711 , insert these commands in \SpecialChar TeX
18712 Code before the table or table float:
18715 \begin_layout Standard
18725 \begin_inset Newline newline
18733 \begin_inset Newline newline
18737 \begin_inset Phantom HPhantom
18740 \begin_layout Plain Layout
18743 \begin_inset space ~
18753 arrayrulecolor{red}
18757 arrayrulecolor{black}}
18760 \begin_layout Standard
18764 \begin_layout Plain Layout
18775 \begin_layout Plain Layout
18784 \begin_layout Plain Layout
18788 arrayrulecolor{red}
18792 arrayrulecolor{black}}
18798 \begin_inset Float table
18804 \begin_layout Plain Layout
18805 \begin_inset Caption Standard
18807 \begin_layout Plain Layout
18808 \begin_inset CommandInset label
18810 name "tab:Table-with-horizontal-colored"
18814 Table with colored horizontal lines
18822 \begin_layout Plain Layout
18824 \begin_inset Tabular
18825 <lyxtabular version="3" rows="3" columns="3">
18826 <features tabularvalignment="middle">
18827 <column alignment="center" valignment="top">
18828 <column alignment="center" valignment="top">
18829 <column alignment="center" valignment="top">
18831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18834 \begin_layout Plain Layout
18840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18843 \begin_layout Plain Layout
18849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18852 \begin_layout Plain Layout
18860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18863 \begin_layout Plain Layout
18869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18872 \begin_layout Plain Layout
18878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18881 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18910 \begin_layout Plain Layout
18929 \begin_layout Standard
18930 To return to the default line color black, insert this command in \SpecialChar TeX
18932 after the table or table float:
18935 \begin_layout Standard
18947 \begin_layout Standard
18949 \begin_inset space ~
18953 \begin_inset CommandInset ref
18955 reference "tab:Table-with-colored"
18959 is an example with colored vertical and horizontal lines.
18962 \begin_layout Standard
18963 \begin_inset Float table
18969 \begin_layout Plain Layout
18970 \begin_inset Caption Standard
18972 \begin_layout Plain Layout
18973 \begin_inset CommandInset label
18975 name "tab:Table-with-colored"
18979 Table with colored lines
18987 \begin_layout Plain Layout
18989 \begin_inset Tabular
18990 <lyxtabular version="3" rows="3" columns="3">
18991 <features tabularvalignment="middle">
18992 <column alignment="center" valignment="top" special="Wc">
18993 <column alignment="center" valignment="top" special="Wc">
18994 <column alignment="center" valignment="top" special="WcW">
18996 <cell alignment="center" valignment="top" topline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" usebox="none">
19008 \begin_layout Plain Layout
19014 <cell alignment="center" valignment="top" topline="true" usebox="none">
19017 \begin_layout Plain Layout
19025 <cell alignment="center" valignment="top" topline="true" usebox="none">
19028 \begin_layout Plain Layout
19034 <cell alignment="center" valignment="top" topline="true" usebox="none">
19037 \begin_layout Plain Layout
19043 <cell alignment="center" valignment="top" topline="true" usebox="none">
19046 \begin_layout Plain Layout
19053 <row topspace="default">
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19066 \begin_layout Plain Layout
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19075 \begin_layout Plain Layout
19094 \begin_layout Standard
19098 \begin_layout Plain Layout
19114 \begin_layout Standard
19118 \begin_layout Plain Layout
19124 arrayrulewidth}{0.4pt}
19132 \begin_layout Section
19133 Rotated Table Cells
19134 \begin_inset CommandInset label
19136 name "sec:Rotated-Table-Cells"
19141 \begin_inset Index idx
19144 \begin_layout Plain Layout
19145 Table ! Rotated Cells
19151 \begin_inset Index idx
19154 \begin_layout Plain Layout
19163 \begin_layout Standard
19164 \begin_inset Note Greyedout
19167 \begin_layout Plain Layout
19172 Not all DVI-viewers are able to display rotations.
19180 \begin_layout Standard
19182 \begin_inset space ~
19186 \begin_inset CommandInset ref
19188 reference "tab:Table-with-rotated-multi"
19192 is an example where 3
19193 \begin_inset space ~
19196 cells were rotated by 45
19197 \begin_inset space \thinspace{}
19203 \begin_layout Standard
19204 \begin_inset Float table
19210 \begin_layout Plain Layout
19211 \begin_inset Caption Standard
19213 \begin_layout Plain Layout
19214 \begin_inset CommandInset label
19216 name "tab:Table-with-rotated"
19220 Table with rotated cells in the first row.
19228 \begin_layout Plain Layout
19231 \begin_inset Tabular
19232 <lyxtabular version="3" rows="2" columns="3">
19233 <features tabularvalignment="middle">
19234 <column alignment="center" valignment="top" width="0pt">
19235 <column alignment="center" valignment="top" width="0pt">
19236 <column alignment="center" valignment="top" width="0pt">
19238 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19241 \begin_layout Plain Layout
19247 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19250 \begin_layout Plain Layout
19256 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19259 \begin_layout Plain Layout
19267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19270 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19279 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19288 \begin_layout Plain Layout
19307 \begin_layout Standard
19308 \begin_inset Note Greyedout
19311 \begin_layout Plain Layout
19316 Line breaks (shortcut
19319 arg "newline-insert newline"
19322 ) are not allowed in rotated cells.
19330 \begin_layout Standard
19331 If you want to rotate table cells containing line breaks, you have to put
19332 the cell content into a minipage or a parbox.
19336 \begin_layout Plain Layout
19337 For more about these boxes see sec.
19338 \begin_inset space \thinspace{}
19342 \begin_inset CommandInset ref
19344 reference "sec:Minipages"
19349 \begin_inset CommandInset ref
19351 reference "sec:Parboxes"
19360 If you rotate this cell by 90
19361 \begin_inset space \thinspace{}
19364 ° the width of the box is the height of the cell.
19366 \begin_inset space ~
19370 \begin_inset CommandInset ref
19372 reference "tab:Table-with-rotated-multi"
19376 is an example for a rotated multiline cell where the box width was set
19378 \begin_inset space \thinspace{}
19384 \begin_layout Standard
19385 \begin_inset Float table
19390 \begin_layout Plain Layout
19391 \begin_inset Caption Standard
19393 \begin_layout Plain Layout
19394 \begin_inset CommandInset label
19396 name "tab:Table-with-rotated-multi"
19400 Table with rotated multiline cell.
19408 \begin_layout Plain Layout
19411 \begin_inset Tabular
19412 <lyxtabular version="3" rows="2" columns="3">
19413 <features tabularvalignment="middle">
19414 <column alignment="center" valignment="top">
19415 <column alignment="center" valignment="top" width="0pt">
19416 <column alignment="center" valignment="top">
19418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19421 \begin_layout Plain Layout
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19430 \begin_layout Plain Layout
19431 \begin_inset Box Frameless
19441 height_special "totalheight"
19446 backgroundcolor "none"
19449 \begin_layout Plain Layout
19451 \begin_inset Newline newline
19464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19467 \begin_layout Plain Layout
19475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19478 \begin_layout Plain Layout
19484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19487 \begin_layout Plain Layout
19493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19496 \begin_layout Plain Layout
19515 \begin_layout Section
19516 Table Width Calculation
19517 \begin_inset CommandInset label
19519 name "sec:Table-Width-Calculation"
19526 \begin_layout Standard
19527 For wide tables it is sometimes difficult to assure that the table does
19528 not protrude over the page margin.
19529 Setting a fixed width for every column of the table is the solution, but
19530 what amount of space is needed for each column?
19533 \begin_layout Standard
19535 \begin_inset Formula $W_{\mathrm{table}}$
19538 can be calculated: Every column has the width of the specified column width
19540 \begin_inset Formula $W_{\mathrm{column}}$
19543 (that the content of the column can consume) plus two times the separation
19544 between the column content and the column border (\SpecialChar LaTeX
19552 \begin_inset space \thinspace{}
19555 pt) plus the width of a border line (\SpecialChar LaTeX
19563 \begin_inset space \thinspace{}
19567 \begin_inset Formula $n$
19571 \begin_inset space ~
19574 columns have the same width, the table width is
19575 \begin_inset Formula
19577 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19585 \begin_layout Standard
19586 The available width for a table is the space between the page margins or
19587 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19595 If all table columns should have the same width and
19596 \begin_inset Formula $W_{\mathrm{table}}$
19600 \begin_inset space \thinspace{}
19606 \begin_inset Formula $W_{\mathrm{column}}$
19609 can easily be calculated.
19612 \begin_layout Standard
19613 To be able to perform calculations you need to load the \SpecialChar LaTeX
19619 \begin_inset Index idx
19622 \begin_layout Plain Layout
19629 in the document preamble.
19630 To set the width in the table dialog you have to use the field
19636 The command scheme for this field is the same that is explained in section
19637 \begin_inset space ~
19641 \begin_inset CommandInset ref
19643 reference "subsec:Multicolumn-Calculations"
19649 \begin_inset space \thinspace{}
19652 columns with an uniform width and centered text, enter there for each column
19656 \begin_layout Standard
19663 columnwidth-62.4pt)/5}
19666 \begin_layout Standard
19668 \begin_inset space \thinspace{}
19671 columns where 2 should have 0.75
19672 \begin_inset space ~
19675 times the width than the 3 others, the calculation is
19676 \begin_inset Formula
19678 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19679 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19680 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19681 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19689 \begin_layout Standard
19690 In the table therefore the command
19693 \begin_layout Standard
19700 columnwidth-62.4pt)/
19705 \begin_layout Standard
19706 is used for the wider columns and
19709 \begin_layout Standard
19716 columnwidth-62.4pt)/
19723 \begin_layout Standard
19724 for the smaller ones:
19727 \begin_layout Standard
19728 \begin_inset Tabular
19729 <lyxtabular version="3" rows="2" columns="5">
19730 <features tabularvalignment="middle">
19731 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19732 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19733 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19734 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19735 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19740 \begin_layout Plain Layout
19746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19749 \begin_layout Plain Layout
19755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19758 \begin_layout Plain Layout
19764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19767 \begin_layout Plain Layout
19773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19776 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19787 \begin_layout Plain Layout
19788 111111 1111111 111111 111111111 11111 11111 1111
19793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19796 \begin_layout Plain Layout
19802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19805 \begin_layout Plain Layout
19806 2222 22222 222222 222222222 2222222 22 22222
19811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19814 \begin_layout Plain Layout
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19823 \begin_layout Plain Layout
19824 333333 333333 333333 33333 3333333 333
19837 \begin_layout Section
19838 Table Customization
19839 \begin_inset Index idx
19842 \begin_layout Plain Layout
19843 Table Customization
19849 \begin_inset Index idx
19852 \begin_layout Plain Layout
19853 Table ! Customization
19861 \begin_layout Subsection
19863 \begin_inset CommandInset label
19865 name "subsec:Row-Spacing"
19870 \begin_inset Index idx
19873 \begin_layout Plain Layout
19874 Table Customization ! Row Spacing
19882 \begin_layout Standard
19883 You can add vertical space to table rows in the
19887 tab of the table dialog.
19888 You find there three possibilities:
19891 \begin_layout Description
19893 \begin_inset space ~
19897 \begin_inset space ~
19900 row will add space above the characters of the table row.
19901 If the table is a formal table
19905 \begin_layout Plain Layout
19906 Formal tables are explained in section
19907 \begin_inset space ~
19911 \begin_inset CommandInset ref
19913 reference "sec:Formal-Tables"
19923 will insert as default 0.5
19924 \begin_inset space \thinspace{}
19928 For normal tables the inserted space will unfortunately destroy the vertical
19929 table lines as in the following table:
19930 \begin_inset VSpace medskip
19934 \begin_inset Newline newline
19938 \begin_inset space \hspace*{}
19943 \begin_inset space \hfill{}
19947 \begin_inset Tabular
19948 <lyxtabular version="3" rows="3" columns="1">
19949 <features tabularvalignment="middle">
19950 <column alignment="center" valignment="top">
19952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19955 \begin_layout Plain Layout
19962 <row topspace="3mm">
19963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19966 \begin_layout Plain Layout
19968 \begin_inset space \thinspace{}
19971 mm space top of row
19978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19981 \begin_layout Plain Layout
19993 \begin_inset space \hfill{}
19997 \begin_inset space \hspace*{}
20002 \begin_inset VSpace medskip
20006 \begin_inset Newline newline
20009 So inserting space in the top of row for normal tables is only useful when
20010 you don't have vertical lines.
20013 \begin_layout Description
20015 \begin_inset space ~
20019 \begin_inset space ~
20022 row will add space below the characters of the table row.
20023 If the table is a formal table \SpecialChar LyX
20024 will insert as default 0.5
20025 \begin_inset space \thinspace{}
20028 em space, for normal tables the default size is 2
20029 \begin_inset space \thinspace{}
20035 \begin_layout Description
20037 \begin_inset space ~
20040 rows adds space between the current and the following row.
20041 If the table is a formal table \SpecialChar LyX
20042 will insert as default 0.5
20043 \begin_inset space \thinspace{}
20047 For normal tables the inserted space will unfortunately destroy the vertical
20048 table lines as in the following table:
20049 \begin_inset VSpace medskip
20053 \begin_inset Newline newline
20057 \begin_inset space \hspace*{}
20062 \begin_inset space \hfill{}
20066 \begin_inset Tabular
20067 <lyxtabular version="3" rows="3" columns="1">
20068 <features tabularvalignment="middle">
20069 <column alignment="center" valignment="top">
20071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20074 \begin_layout Plain Layout
20081 <row interlinespace="3mm">
20082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20085 \begin_layout Plain Layout
20086 \begin_inset Formula $\downarrow$
20090 \begin_inset space \thinspace{}
20093 mm space between row
20094 \begin_inset Formula $\downarrow$
20104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20107 \begin_layout Plain Layout
20108 \begin_inset Formula $\uparrow$
20112 \begin_inset space \thinspace{}
20115 mm space between row
20116 \begin_inset Formula $\uparrow$
20130 \begin_inset space \hfill{}
20134 \begin_inset space \hspace*{}
20139 \begin_inset VSpace medskip
20143 \begin_inset Newline newline
20146 So inserting space between rows for normal tables is only useful when you
20147 don't have vertical lines.
20150 \begin_layout Standard
20151 \begin_inset VSpace bigskip
20154 When you want to add extra height to all cells of all tables, you can do
20155 this with the following preamble lines:
20158 \begin_layout Standard
20163 @ifundefined{extrarowheight}
20164 \begin_inset Newline newline
20168 \begin_inset Phantom HPhantom
20171 \begin_layout Plain Layout
20174 \begin_inset space ~
20184 usepackage{array}}{}
20185 \begin_inset Newline newline
20192 extrarowheight}{height}
20195 \begin_layout Standard
20196 But this has the disadvantage that the cell texts are no longer exactly
20197 vertically centered.
20202 will be loaded automatically by \SpecialChar LyX
20203 when you use self defined table formats.
20204 To avoid that it being loaded twice the command
20210 is used in the above command.)
20213 \begin_layout Standard
20214 If you are using font sizes larger than the normal size, the table borders
20215 are often too close to the letters.
20216 This can be corrected by inserting the command
20222 in \SpecialChar TeX
20223 Code at the beginning of a table row.
20225 \begin_inset space ~
20229 \begin_inset CommandInset ref
20231 reference "tab:Vertical-alignment-of"
20235 illustrates the effect.
20238 \begin_layout Standard
20240 \begin_inset Float table
20246 \begin_layout Plain Layout
20247 \begin_inset Caption Standard
20249 \begin_layout Plain Layout
20250 \begin_inset CommandInset label
20252 name "tab:Vertical-alignment-of"
20256 Vertical alignment of text with large font sizes.
20264 \begin_layout Plain Layout
20265 \begin_inset space \hfill{}
20269 \begin_inset Float table
20274 \begin_layout Plain Layout
20275 \begin_inset Caption Standard
20277 \begin_layout Plain Layout
20286 \begin_layout Plain Layout
20289 \begin_inset Tabular
20290 <lyxtabular version="3" rows="6" columns="1">
20291 <features tabularvalignment="middle">
20292 <column alignment="left" valignment="top">
20294 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20297 \begin_layout Plain Layout
20305 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20308 \begin_layout Plain Layout
20318 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20321 \begin_layout Plain Layout
20331 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20334 \begin_layout Plain Layout
20344 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20347 \begin_layout Plain Layout
20357 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20360 \begin_layout Plain Layout
20379 \begin_inset space \hfill{}
20383 \begin_inset Float table
20388 \begin_layout Plain Layout
20389 \begin_inset Caption Standard
20391 \begin_layout Plain Layout
20392 Table using the command
20406 \begin_layout Plain Layout
20409 \begin_inset Tabular
20410 <lyxtabular version="3" rows="6" columns="1">
20411 <features tabularvalignment="middle">
20412 <column alignment="left" valignment="top">
20414 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20417 \begin_layout Plain Layout
20425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20428 \begin_layout Plain Layout
20434 \begin_layout Plain Layout
20450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20453 \begin_layout Plain Layout
20459 \begin_layout Plain Layout
20475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20478 \begin_layout Plain Layout
20484 \begin_layout Plain Layout
20500 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20503 \begin_layout Plain Layout
20509 \begin_layout Plain Layout
20525 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20528 \begin_layout Plain Layout
20534 \begin_layout Plain Layout
20561 \begin_inset space \hfill{}
20572 \begin_layout Subsection
20573 Special Cell Alignment
20574 \begin_inset CommandInset label
20576 name "subsec:Special-Cell-Alignment"
20581 \begin_inset Index idx
20584 \begin_layout Plain Layout
20585 Table Customization ! Special Cell Alignment
20593 \begin_layout Standard
20594 Sometimes it looks better when the cell entries of a column are aligned
20595 with a special character, e.
20596 \begin_inset space \thinspace{}
20600 \begin_inset space \space{}
20603 with the decimal separator as in Table
20604 \begin_inset space ~
20608 \begin_inset CommandInset ref
20610 reference "tab:Table-cells-align"
20615 This alignment is achieved by setting the cursor into the column and then
20616 either pressing the toolbar button
20619 arg "inset-modify tabular align-decimal"
20622 or setting the alignment in the table settings to
20625 \begin_inset space ~
20629 \begin_inset space ~
20635 The alignment character can be a character of your choice and is specified
20636 in the table settings.
20639 \begin_layout Standard
20640 \begin_inset Float table
20646 \begin_layout Plain Layout
20647 \begin_inset Caption Standard
20649 \begin_layout Plain Layout
20650 \begin_inset CommandInset label
20652 name "tab:Table-cells-align"
20656 Table cells of a column aligned with the decimal separator.
20664 \begin_layout Plain Layout
20666 \begin_inset Tabular
20667 <lyxtabular version="3" rows="4" columns="1">
20668 <features booktabs="true" tabularvalignment="middle">
20669 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20674 \begin_layout Plain Layout
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20685 \begin_layout Plain Layout
20693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20696 \begin_layout Plain Layout
20704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20707 \begin_layout Plain Layout
20726 \begin_layout Standard
20727 \begin_inset Float table
20733 \begin_layout Plain Layout
20734 \begin_inset Caption Standard
20736 \begin_layout Plain Layout
20737 \begin_inset CommandInset label
20739 name "tab:Table-align-operator"
20743 Table cells of a column aligned with the operators.
20751 \begin_layout Plain Layout
20753 \begin_inset Tabular
20754 <lyxtabular version="3" rows="4" columns="2">
20755 <features booktabs="true" tabularvalignment="middle">
20756 <column alignment="right" valignment="top" width="0pt">
20757 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20759 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20762 \begin_layout Plain Layout
20768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20771 \begin_layout Plain Layout
20779 <cell alignment="center" valignment="top" usebox="none">
20782 \begin_layout Plain Layout
20783 \begin_inset Formula $12\,+$
20791 <cell alignment="center" valignment="top" usebox="none">
20794 \begin_layout Plain Layout
20795 \begin_inset Formula $\,6$
20805 <cell alignment="center" valignment="top" usebox="none">
20808 \begin_layout Plain Layout
20809 \begin_inset Formula $0\,-$
20817 <cell alignment="center" valignment="top" usebox="none">
20820 \begin_layout Plain Layout
20821 \begin_inset Formula $\,68$
20831 <cell alignment="center" valignment="top" usebox="none">
20834 \begin_layout Plain Layout
20835 \begin_inset Formula $-123\,/$
20843 <cell alignment="center" valignment="top" usebox="none">
20846 \begin_layout Plain Layout
20847 \begin_inset Formula $\,0$
20868 \begin_layout Standard
20869 For alignments at characters in formulas this method does not work because
20870 the field to specify the alignment character does not allow formulas.
20871 In this case one need to use the method from Table
20872 \begin_inset space ~
20876 \begin_inset CommandInset ref
20878 reference "tab:Table-align-operator"
20883 This table was created with a 4×2 table.
20884 The heading is a centered multicolumn.
20885 The first column is right-aligned and contains the first part including
20887 The second column is left aligned and contains the rest.
20888 A small space was added at the beginning of each cell of the second column
20889 to get the space that is usually around operators.
20890 To omit the space that is normally between two table columns, the following
20892 -argument was used for the second column:
20895 \begin_layout Standard
20901 \begin_layout Standard
20903 \begin_inset space ~
20907 \begin_inset CommandInset ref
20909 reference "tab:Several-table-cell"
20913 shows some example alignments.
20914 For the alignment with the relation sign, a small space was added like
20915 for the second column of Table
20916 \begin_inset space ~
20920 \begin_inset CommandInset ref
20922 reference "tab:Table-align-operator"
20929 \begin_layout Standard
20930 \begin_inset Float table
20936 \begin_layout Plain Layout
20937 \begin_inset Caption Standard
20939 \begin_layout Plain Layout
20940 \begin_inset CommandInset label
20942 name "tab:Several-table-cell"
20946 Several table cell alignments.
20954 \begin_layout Plain Layout
20956 \begin_inset Tabular
20957 <lyxtabular version="3" rows="4" columns="6">
20958 <features tabularvalignment="middle">
20959 <column alignment="right" valignment="top">
20960 <column alignment="left" valignment="top" special="@{}l">
20961 <column alignment="right" valignment="top">
20962 <column alignment="left" valignment="top" special="@{}l">
20963 <column alignment="right" valignment="top">
20964 <column alignment="left" valignment="top" special="@{}l">
20966 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20969 \begin_layout Plain Layout
20975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20978 \begin_layout Plain Layout
20984 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20987 \begin_layout Plain Layout
20993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20996 \begin_layout Plain Layout
21002 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21005 \begin_layout Plain Layout
21011 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21014 \begin_layout Plain Layout
21022 <cell alignment="center" valignment="top" usebox="none">
21025 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21034 \begin_layout Plain Layout
21036 \begin_inset space \thinspace{}
21044 <cell alignment="center" valignment="top" usebox="none">
21047 \begin_layout Plain Layout
21048 \begin_inset Formula $10\cdot$
21056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21059 \begin_layout Plain Layout
21060 \begin_inset Formula $10^{\mbox{-}17}$
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $\Gamma(t)\propto$
21080 <cell alignment="center" valignment="top" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $\:\Upsilon(t)$
21094 <cell alignment="center" valignment="top" usebox="none">
21097 \begin_layout Plain Layout
21103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21106 \begin_layout Plain Layout
21108 \begin_inset space \thinspace{}
21116 <cell alignment="center" valignment="top" usebox="none">
21119 \begin_layout Plain Layout
21120 \begin_inset Formula $5.78\cdot$
21128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21131 \begin_layout Plain Layout
21132 \begin_inset Formula $10^{7}$
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21144 \begin_inset Formula $A\ne$
21152 <cell alignment="center" valignment="top" usebox="none">
21155 \begin_layout Plain Layout
21156 \begin_inset Formula $\:B_{\mathrm{red}}$
21166 <cell alignment="center" valignment="top" usebox="none">
21169 \begin_layout Plain Layout
21175 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21178 \begin_layout Plain Layout
21180 \begin_inset space \thinspace{}
21188 <cell alignment="center" valignment="top" usebox="none">
21191 \begin_layout Plain Layout
21193 \begin_inset Formula $33.5\cdot$
21201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21204 \begin_layout Plain Layout
21205 \begin_inset Formula $10^{4}$
21213 <cell alignment="center" valignment="top" usebox="none">
21216 \begin_layout Plain Layout
21217 \begin_inset Formula $\sin(\alpha)\ge$
21225 <cell alignment="center" valignment="top" usebox="none">
21228 \begin_layout Plain Layout
21229 \begin_inset Formula $\:\sin(\beta)$
21250 \begin_layout Subsection
21251 Customized Cell/Column Format
21252 \begin_inset CommandInset label
21254 name "subsec:Customized-Format"
21259 \begin_inset Index idx
21262 \begin_layout Plain Layout
21263 Table Customization ! Cell/Column Format
21271 \begin_layout Standard
21272 Calculating the required width for normal columns as described in section
21273 \begin_inset space ~
21277 \begin_inset CommandInset ref
21279 reference "sec:Table-Width-Calculation"
21283 or for spanned columns as described in section
21284 \begin_inset space ~
21288 \begin_inset CommandInset ref
21290 reference "subsec:Multicolumn-Calculations"
21294 is very annoying if you have several tables where a calculation is necessary.
21295 To make life easier, you can define a cell/column format in the preamble,
21296 that can be used in all tables of the document.
21297 The format is defined with the command
21300 \begin_layout Standard
21305 newcolumntype{name of format}[number of arguments]{commands}
21308 \begin_layout Standard
21309 The format name may only consist of one letter.
21334 are predefined and cannot be used.
21335 But all letters are allowed as capitals.
21338 \begin_layout Standard
21339 \begin_inset VSpace medskip
21345 \begin_layout Standard
21346 For vertically and horizontally centered multicolumn cells with a fixed
21347 width you can define the cell format
21350 \begin_layout Standard
21355 newcolumntype{M}[1]{>{
21362 \begin_layout Standard
21369 avoids the problem of hyphenating the first word, as described in section
21370 \begin_inset space ~
21374 \begin_inset CommandInset ref
21376 reference "subsec:Multiple-Lines-in"
21381 Now you can simply enter
21384 \begin_layout Standard
21390 \begin_layout Standard
21396 in the table dialog to create a multicolumn.
21399 \begin_layout Standard
21400 \begin_inset VSpace bigskip
21406 \begin_layout Standard
21407 For cells spanned by a multicolumn cell, you can define the format
21410 \begin_layout Standard
21415 newcolumntype{S}[2]{>{
21420 \begin_inset Newline newline
21424 \begin_inset Phantom HPhantom
21427 \begin_layout Plain Layout
21441 arrayrulewidth)*(1-#2))/#2}}
21444 \begin_layout Standard
21445 This format uses equation
21446 \begin_inset CommandInset ref
21452 to calculate the required width so that each spanned cell has the same
21456 \begin_layout Standard
21460 \begin_layout Standard
21463 S{width of multicolumn cell}{number of spanned columns}
21466 \begin_layout Standard
21467 as \SpecialChar LaTeX
21468 -argument of the column.
21471 \begin_layout Standard
21472 \begin_inset VSpace bigskip
21478 \begin_layout Standard
21479 For colored columns, you can define
21482 \begin_layout Standard
21487 newcolumntype{K}[1]{>{
21494 \begin_layout Standard
21496 \begin_inset Quotes eld
21500 \begin_inset Quotes erd
21503 at the end creates a column with a flexible width whose text is horizontally
21508 \begin_layout Standard
21514 \begin_layout Standard
21515 as \SpecialChar LaTeX
21519 \begin_layout Standard
21520 \begin_inset VSpace bigskip
21526 \begin_layout Standard
21528 \begin_inset space ~
21532 \begin_inset CommandInset ref
21534 reference "tab:Table-using-user-defined"
21538 use the \SpecialChar LaTeX
21542 \begin_layout Standard
21548 \begin_layout Standard
21549 for the first column and the multicolumn,
21552 \begin_layout Standard
21558 \begin_layout Standard
21559 for the last column, and
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the cells in the second column.
21572 \begin_layout Standard
21573 \begin_inset Float table
21579 \begin_layout Plain Layout
21580 \begin_inset Caption Standard
21582 \begin_layout Plain Layout
21583 \begin_inset CommandInset label
21585 name "tab:Table-using-user-defined"
21589 Table using user-defined table formats
21597 \begin_layout Plain Layout
21599 \begin_inset Tabular
21600 <lyxtabular version="3" rows="3" columns="4">
21601 <features tabularvalignment="middle">
21602 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21603 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21604 <column alignment="center" valignment="middle">
21605 <column alignment="center" valignment="middle" special="K{red}">
21607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21610 \begin_layout Plain Layout
21611 verylongtablecellword
21616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21619 \begin_layout Plain Layout
21620 multiple lines multicolumn
21625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_layout Plain Layout
21634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21637 \begin_layout Plain Layout
21645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21648 \begin_layout Plain Layout
21654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21657 \begin_layout Plain Layout
21663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21666 \begin_layout Plain Layout
21672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21675 \begin_layout Plain Layout
21683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21686 \begin_layout Plain Layout
21692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21695 \begin_layout Plain Layout
21701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21704 \begin_layout Plain Layout
21710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_layout Plain Layout
21732 \begin_layout Subsection
21734 \begin_inset CommandInset label
21736 name "subsec:Line-Thickness"
21741 \begin_inset Index idx
21744 \begin_layout Plain Layout
21745 Table Customization ! Line Thickness
21753 \begin_layout Standard
21754 The line thickness for all lines in a table can be adjusted with the length
21762 To set for example a line thickness of 1.5
21763 \begin_inset space \thinspace{}
21767 \begin_inset space ~
21771 \begin_inset CommandInset ref
21773 reference "tab:Table-with-1.5"
21777 , insert the command
21780 \begin_layout Standard
21787 arrayrulewidth}{1.5pt}
21790 \begin_layout Standard
21791 in \SpecialChar TeX
21792 Code before the table or table float.
21793 The changed thickness is valid for all subsequent tables.
21794 To use the default value again, set
21801 \begin_inset space \thinspace{}
21804 pt in \SpecialChar TeX
21805 Code after the table or table float.
21808 \begin_layout Standard
21812 \begin_layout Plain Layout
21818 arrayrulewidth}{1.5pt}
21824 \begin_inset Float table
21829 \begin_layout Plain Layout
21830 \begin_inset Caption Standard
21832 \begin_layout Plain Layout
21833 \begin_inset CommandInset label
21835 name "tab:Table-with-1.5"
21840 \begin_inset space \thinspace{}
21851 \begin_layout Plain Layout
21853 \begin_inset Tabular
21854 <lyxtabular version="3" rows="3" columns="3">
21855 <features tabularvalignment="middle">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21858 <column alignment="center" valignment="top">
21860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21863 \begin_layout Plain Layout
21869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21881 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21910 \begin_layout Plain Layout
21918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21921 \begin_layout Plain Layout
21927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21930 \begin_layout Plain Layout
21936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21939 \begin_layout Plain Layout
21959 \begin_layout Plain Layout
21965 arrayrulewidth}{0.4pt}
21973 \begin_layout Standard
21974 \begin_inset VSpace bigskip
21977 To set the line thickness to 1.5
21978 \begin_inset space \thinspace{}
21981 pt only for horizontal lines, as in Table
21982 \begin_inset space ~
21986 \begin_inset CommandInset ref
21988 reference "tab:Table-with-horizontal"
21992 , insert these commands in \SpecialChar TeX
21993 Code before the table or table float:
21996 \begin_layout Standard
22006 \begin_inset Newline newline
22014 \begin_inset Newline newline
22023 arrayrulewidth 1.5pt}
22024 \begin_inset Newline newline
22035 arrayrulewidth 0.4pt}}
22038 \begin_layout Standard
22039 To return to the default line thickness, insert this command in \SpecialChar TeX
22041 the table or table float:
22044 \begin_layout Standard
22056 \begin_layout Standard
22060 \begin_layout Plain Layout
22071 \begin_layout Plain Layout
22080 \begin_layout Plain Layout
22088 arrayrulewidth 1.5pt}
22091 \begin_layout Plain Layout
22101 arrayrulewidth 0.4pt}}
22107 \begin_inset Float table
22112 \begin_layout Plain Layout
22113 \begin_inset Caption Standard
22115 \begin_layout Plain Layout
22116 \begin_inset CommandInset label
22118 name "tab:Table-with-horizontal"
22123 \begin_inset space \thinspace{}
22126 pt thick horizontal lines
22134 \begin_layout Plain Layout
22136 \begin_inset Tabular
22137 <lyxtabular version="3" rows="3" columns="3">
22138 <features tabularvalignment="middle">
22139 <column alignment="center" valignment="top">
22140 <column alignment="center" valignment="top">
22141 <column alignment="center" valignment="top">
22143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22146 \begin_layout Plain Layout
22152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22155 \begin_layout Plain Layout
22161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22164 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22193 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22222 \begin_layout Plain Layout
22242 \begin_layout Plain Layout
22258 \begin_layout Standard
22259 \begin_inset VSpace bigskip
22262 To set the line thickness to 1.5
22263 \begin_inset space \thinspace{}
22266 pt only for vertical lines, create the following column format in the document
22267 preamble, according to the description in section
22268 \begin_inset space ~
22272 \begin_inset CommandInset ref
22274 reference "subsec:Customized-Format"
22281 \begin_layout Standard
22286 newcolumntype{V}{!{
22288 vrule width 1.5pt}}
22291 \begin_layout Standard
22293 \begin_inset space ~
22297 \begin_inset CommandInset ref
22299 reference "tab:Table-with-vertical"
22303 the \SpecialChar LaTeX
22307 \begin_layout Standard
22313 \begin_layout Standard
22314 was used for the last column and
22317 \begin_layout Standard
22323 \begin_layout Standard
22324 for the other columns.
22327 \begin_layout Standard
22328 \begin_inset Float table
22333 \begin_layout Plain Layout
22334 \begin_inset Caption Standard
22336 \begin_layout Plain Layout
22337 \begin_inset CommandInset label
22339 name "tab:Table-with-vertical"
22344 \begin_inset space \thinspace{}
22347 pt thick vertical lines
22355 \begin_layout Plain Layout
22357 \begin_inset Tabular
22358 <lyxtabular version="3" rows="3" columns="3">
22359 <features tabularvalignment="middle">
22360 <column alignment="center" valignment="top" special="Vc">
22361 <column alignment="center" valignment="top" special="Vc">
22362 <column alignment="center" valignment="top" special="VcV">
22364 <cell alignment="center" valignment="top" topline="true" usebox="none">
22367 \begin_layout Plain Layout
22373 <cell alignment="center" valignment="top" topline="true" usebox="none">
22376 \begin_layout Plain Layout
22382 <cell alignment="center" valignment="top" topline="true" usebox="none">
22385 \begin_layout Plain Layout
22393 <cell alignment="center" valignment="top" topline="true" usebox="none">
22396 \begin_layout Plain Layout
22402 <cell alignment="center" valignment="top" topline="true" usebox="none">
22405 \begin_layout Plain Layout
22411 <cell alignment="center" valignment="top" topline="true" usebox="none">
22414 \begin_layout Plain Layout
22422 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22425 \begin_layout Plain Layout
22431 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22434 \begin_layout Plain Layout
22440 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22443 \begin_layout Plain Layout
22462 \begin_layout Subsection
22464 \begin_inset Index idx
22467 \begin_layout Plain Layout
22468 Table Customization ! Dashed Lines
22476 \begin_layout Standard
22480 \begin_layout Plain Layout
22490 \begin_inset Note Note
22493 \begin_layout Plain Layout
22494 The following section will only be displayed when the \SpecialChar LaTeX
22507 \begin_layout Standard
22508 \begin_inset Float table
22514 \begin_layout Plain Layout
22515 \begin_inset Caption Standard
22517 \begin_layout Plain Layout
22518 \begin_inset CommandInset label
22520 name "tab:Table-with-dashed"
22524 Table with dashed lines
22532 \begin_layout Plain Layout
22534 \begin_inset Tabular
22535 <lyxtabular version="3" rows="5" columns="5">
22536 <features tabularvalignment="middle">
22537 <column alignment="center" valignment="top">
22538 <column alignment="center" valignment="top">
22539 <column alignment="center" valignment="top" special=":c">
22540 <column alignment="center" valignment="top">
22541 <column alignment="center" valignment="top">
22543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22546 \begin_layout Plain Layout
22552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22555 \begin_layout Plain Layout
22561 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22564 \begin_layout Plain Layout
22570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22573 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22582 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22602 \begin_layout Plain Layout
22608 <cell alignment="center" valignment="top" topline="true" usebox="none">
22611 \begin_layout Plain Layout
22617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22620 \begin_layout Plain Layout
22626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22629 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22640 \begin_layout Plain Layout
22644 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22679 \begin_layout Plain Layout
22685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22688 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22703 \begin_layout Plain Layout
22717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22720 \begin_layout Plain Layout
22726 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22729 \begin_layout Plain Layout
22735 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22738 \begin_layout Plain Layout
22744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22747 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22785 \begin_layout Plain Layout
22791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22794 \begin_layout Plain Layout
22813 \begin_layout Standard
22815 does not natively support dashed lines, so you have to use \SpecialChar TeX
22817 As a prerequisite the \SpecialChar LaTeX
22823 \begin_inset Index idx
22826 \begin_layout Plain Layout
22828 -packages ! arydshln
22833 must be loaded in the document preamble with the command
22836 \begin_layout Standard
22841 usepackage{arydshln}
22844 \begin_layout Standard
22845 To make a vertical line dashed, enter the colon
22846 \begin_inset Quotes eld
22850 \begin_inset Quotes erd
22853 together with the character for the horizontal alignment as \SpecialChar LaTeX
22855 the table cell dialog.
22858 \begin_layout Standard
22859 For a horizontal dashed line add the command
22862 \begin_layout Standard
22870 \begin_layout Standard
22871 in \SpecialChar TeX
22872 Code as first element of the first cell in the table row.
22875 \begin_layout Standard
22876 For dashed multicolumn lines use the command
22879 \begin_layout Standard
22884 cdashline{line number
22889 \begin_layout Standard
22890 in \SpecialChar TeX
22891 Code as the first element of the first cell in the table row.
22892 If you have for example a multicolumn spanning columns 2 to 4 and you want
22893 to have a dashed line above, add the command
22896 \begin_layout Standard
22904 \begin_layout Standard
22905 as the first element of the first cell in the row of the multicolumn.
22908 \begin_layout Standard
22909 \begin_inset VSpace bigskip
22915 \begin_layout Standard
22917 \begin_inset space ~
22921 \begin_inset CommandInset ref
22923 reference "tab:Table-with-dashed"
22928 \begin_inset Quotes eld
22936 \begin_inset Quotes erd
22939 as \SpecialChar LaTeX
22940 argument of the third column.
22941 The \SpecialChar TeX
22948 was inserted in the first cell of the third row and the \SpecialChar TeX
22950 \begin_inset Newline newline
22959 was inserted in the first cell of the fourth row.
22962 \begin_layout Standard
22963 \begin_inset VSpace bigskip
22969 \begin_layout Standard
22970 Tables with dashed lines can also be colored as shown by Table
22971 \begin_inset space ~
22975 \begin_inset CommandInset ref
22977 reference "tab:Colored-table-with"
22984 \begin_layout Standard
22988 \begin_layout Plain Layout
22994 arrayrulewidth}{1pt}
23000 \begin_inset Note Note
23003 \begin_layout Plain Layout
23004 thicker lines for better visualization of the line color
23012 \begin_layout Standard
23016 \begin_layout Plain Layout
23020 dashgapcolor{green}
23026 \begin_inset Note Note
23029 \begin_layout Plain Layout
23030 color gaps between dashes green
23038 \begin_layout Standard
23042 \begin_layout Plain Layout
23053 \begin_layout Plain Layout
23062 \begin_layout Plain Layout
23066 arrayrulecolor{red}
23070 arrayrulecolor{black}}
23076 \begin_inset Note Note
23079 \begin_layout Plain Layout
23080 color horizontal, dashed lines red
23088 \begin_layout Standard
23092 \begin_layout Plain Layout
23103 \begin_layout Plain Layout
23112 \begin_layout Plain Layout
23116 arrayrulecolor{yellow}
23120 arrayrulecolor{black}}
23126 \begin_inset Note Note
23129 \begin_layout Plain Layout
23130 color partial horizontal, dashed lines yellow
23138 \begin_layout Standard
23139 \begin_inset Float table
23145 \begin_layout Plain Layout
23146 \begin_inset Caption Standard
23148 \begin_layout Plain Layout
23149 \begin_inset CommandInset label
23151 name "tab:Colored-table-with"
23155 Colored table with dashed lines
23163 \begin_layout Plain Layout
23165 \begin_inset Tabular
23166 <lyxtabular version="3" rows="5" columns="5">
23167 <features tabularvalignment="middle">
23168 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23169 <column alignment="center" valignment="top" width="0pt">
23170 <column alignment="center" valignment="top" width="0pt" special=":c">
23171 <column alignment="center" valignment="top">
23172 <column alignment="center" valignment="top">
23174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23177 \begin_layout Plain Layout
23183 <cell alignment="center" valignment="top" topline="true" usebox="none">
23186 \begin_layout Plain Layout
23192 <cell alignment="center" valignment="top" topline="true" usebox="none">
23195 \begin_layout Plain Layout
23201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23213 \begin_layout Plain Layout
23221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23224 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" usebox="none">
23233 \begin_layout Plain Layout
23239 <cell alignment="center" valignment="top" topline="true" usebox="none">
23242 \begin_layout Plain Layout
23248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23251 \begin_layout Plain Layout
23257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23260 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23275 \begin_layout Plain Layout
23288 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23305 \begin_layout Plain Layout
23311 <cell alignment="center" valignment="top" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23323 \begin_layout Plain Layout
23329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23332 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23347 \begin_layout Plain Layout
23361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23364 \begin_layout Plain Layout
23370 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23373 \begin_layout Plain Layout
23379 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23382 \begin_layout Plain Layout
23388 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23391 \begin_layout Plain Layout
23399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23402 \begin_layout Plain Layout
23408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23411 \begin_layout Plain Layout
23417 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23420 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23429 \begin_layout Plain Layout
23435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23438 \begin_layout Plain Layout
23442 \begin_layout Plain Layout
23469 \begin_layout Standard
23473 \begin_layout Plain Layout
23487 \begin_inset Note Note
23490 \begin_layout Plain Layout
23499 \begin_layout Standard
23503 \begin_layout Plain Layout
23517 \begin_inset Note Note
23520 \begin_layout Plain Layout
23529 \begin_layout Standard
23533 \begin_layout Plain Layout
23543 \begin_inset Note Note
23546 \begin_layout Plain Layout
23555 \begin_layout Standard
23559 \begin_layout Plain Layout
23565 arrayrulewidth}{0.4pt}
23571 \begin_inset Note Note
23574 \begin_layout Plain Layout
23583 \begin_layout Standard
23584 The coloring of lines, columns and lines works as decribed in section
23585 \begin_inset space ~
23589 \begin_inset CommandInset ref
23591 reference "sec:Colored-Tables"
23596 Coloring horizontal lines works analogically as described there as well,
23597 one only needs to replace in the commands
23621 ; so one uses the command
23624 \begin_layout Standard
23634 \begin_inset Newline newline
23642 \begin_inset Newline newline
23646 \begin_inset Phantom HPhantom
23649 \begin_layout Plain Layout
23650 \begin_inset space ~
23660 arrayrulecolor{red}
23664 arrayrulecolor{black}}
23667 \begin_layout Standard
23677 \begin_layout Standard
23687 \begin_inset Newline newline
23695 \begin_inset Newline newline
23699 \begin_inset Phantom HPhantom
23702 \begin_layout Plain Layout
23703 \begin_inset space ~
23713 arrayrulecolor{red}
23717 arrayrulecolor{black}}
23720 \begin_layout Standard
23721 To get back the black line color, one needs to insert the following commands
23722 as \SpecialChar TeX
23723 Code behind the table:
23726 \begin_layout Standard
23734 \begin_layout Standard
23746 \begin_layout Standard
23754 \begin_layout Standard
23766 \begin_layout Standard
23767 To color the gaps between the dashes the command
23770 \begin_layout Standard
23775 dashgapcolor{color}
23778 \begin_layout Standard
23779 can be used in front of a table as \SpecialChar TeX
23781 color is hereby the name of a defined color.
23785 \begin_layout Standard
23793 \begin_layout Standard
23794 unsets the changes made by
23803 \begin_layout Standard
23804 \begin_inset Note Greyedout
23807 \begin_layout Plain Layout
23813 : If there are multiple commands in a cell, the command of
23817 needs to be the first one in the cell.
23823 \begin_inset space ~
23827 \begin_inset CommandInset ref
23829 reference "tab:Colored-table-with"
23853 \begin_layout Standard
23854 \begin_inset Note Greyedout
23857 \begin_layout Plain Layout
23863 The \SpecialChar LaTeX
23868 must be loaded in the document preamble before the \SpecialChar LaTeX
23874 \begin_inset Index idx
23877 \begin_layout Plain Layout
23879 -packages ! colortbl
23892 \begin_layout Standard
23896 \begin_layout Plain Layout
23906 \begin_inset Note Note
23909 \begin_layout Plain Layout
23910 The following will be displayed when the \SpecialChar LaTeX
23923 \begin_layout Standard
23924 You need to install the package
23928 to see the content of this section in the output.
23931 \begin_layout Standard
23935 \begin_layout Plain Layout
23947 \begin_layout Standard
23948 For more information about dashed lines see the documentation of
23953 \begin_inset CommandInset citation
23962 \begin_layout Chapter
23964 \begin_inset CommandInset label
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23983 \begin_layout Section
23985 \begin_inset CommandInset label
23987 name "sec:FloatIntroduction"
23992 \begin_inset Index idx
23995 \begin_layout Plain Layout
23996 Floats ! Introduction
24004 \begin_layout Standard
24005 A float is a block of text associated with some sort of label, which doesn't
24006 have a fixed location.
24008 \begin_inset Quotes eld
24012 \begin_inset Quotes erd
24015 forward or backward a page or two, to wherever it fits best.
24023 \begin_inset space ~
24028 are also floats because they can float to the next page when there are
24029 too many notes on the page.
24032 \begin_layout Standard
24033 Floats allow a high quality layout.
24034 Images and tables can be spread evenly among the pages to avoid white space
24035 and pages without text.
24036 As the floating often destroys the context between the text and the image/table
24037 , every float can be referenced in the text.
24038 Floats are therefore numbered.
24039 Referencing is described in section
24040 \begin_inset space ~
24044 \begin_inset CommandInset ref
24046 reference "sec:Referencing-Floats"
24053 \begin_layout Standard
24054 To insert a float, use the menu
24056 Insert\SpecialChar menuseparator
24062 arg "float-insert figure"
24068 arg "float-insert table"
24076 inset, a box with a label.
24077 The label will automatically be translated to the document language in
24079 After the label you can insert the caption text.
24080 The image or table is inserted above or below the caption in a separate
24081 paragraph within the float.
24082 More about the caption placement is contained in section
24083 \begin_inset space ~
24087 \begin_inset CommandInset ref
24089 reference "sec:Caption-Placement"
24094 To keep your \SpecialChar LyX
24095 document readable, you can open and close the float box by
24096 left-clicking on the box label.
24097 A closed float box looks like this:
24098 \begin_inset Graphics
24099 filename clipart/float.png
24101 scaleBeforeRotation
24105 – a gray button with a red label.
24108 \begin_layout Standard
24109 It is recommended that you insert floats as separate standard paragraphs
24110 to avoid possible \SpecialChar LaTeX
24111 -errors that can occur when the surrounding text is specially
24115 \begin_layout Standard
24116 Existing figures or tables can be put into a float by highlighting them
24117 and then pressing the corresponding toolbar button for a new float.
24120 \begin_layout Section
24124 \begin_layout Standard
24125 Besides figure and table floats that are described in sections
24126 \begin_inset space ~
24130 \begin_inset CommandInset ref
24132 reference "sec:Figure-Floats"
24137 \begin_inset CommandInset ref
24139 reference "sec:Table-Floats"
24143 respectively, \SpecialChar LyX
24144 offers the float types
24153 The latter are explained in sec.
24154 \begin_inset space \thinspace{}
24158 \begin_inset CommandInset ref
24160 reference "sec:Wrap-Floats"
24167 \begin_layout Subsection
24169 \begin_inset Index idx
24172 \begin_layout Plain Layout
24173 Floats ! Algorithms
24181 \begin_layout Standard
24182 \begin_inset Float algorithm
24188 \begin_layout Plain Layout
24189 \begin_inset Caption Standard
24191 \begin_layout Plain Layout
24192 \begin_inset CommandInset label
24194 name "alg:Example-Algorithm-float"
24198 Example Algorithm float
24206 \begin_layout LyX-Code
24208 \begin_inset Newline newline
24211 Sum:= Sum + A(I); /*comment*/
24212 \begin_inset Newline newline
24216 \begin_inset VSpace -4mm
24227 \begin_layout Standard
24228 This float type is inserted with the menu
24230 Insert\SpecialChar menuseparator
24231 Float\SpecialChar menuseparator
24235 It is used for program codes and descriptions of algorithms and can be
24236 seen as an alternative to program code listings that are explained in chapter
24237 \begin_inset space ~
24241 \begin_inset CommandInset ref
24243 reference "cha:Program-Code-Listings"
24248 A possible environment for algorithms is the
24253 , described in \SpecialChar LyX
24260 \begin_inset space ~
24264 \begin_inset CommandInset ref
24266 reference "alg:Example-Algorithm-float"
24270 is an example of an algorithm float where -4
24271 \begin_inset space \thinspace{}
24274 mm vertical space was added at the end of the float to have the bottom rule
24275 exactly below the last text line.
24278 \begin_layout Standard
24279 The float label is not automatically translated into the document language.
24280 If your document is not in English, you have to do this manually by adding
24281 the following line to the document preamble
24286 \begin_layout Standard
24291 floatname{algorithm}{your
24292 \begin_inset space ~
24298 \begin_layout Standard
24302 \begin_inset space ~
24308 \begin_inset Quotes eld
24316 \begin_inset Quotes erd
24322 \begin_layout Standard
24323 To insert the list of algorithms you can use the menu
24325 Insert\SpecialChar menuseparator
24327 \begin_inset space \thinspace{}
24331 \begin_inset space \thinspace{}
24334 TOC\SpecialChar menuseparator
24337 when your document has the same language as \SpecialChar LyX
24339 In other cases use this command in \SpecialChar TeX
24343 \begin_layout Standard
24348 listof{algorithm}{your
24349 \begin_inset space ~
24355 \begin_layout Standard
24359 \begin_inset space ~
24365 \begin_inset Quotes eld
24373 \begin_inset Quotes erd
24379 \begin_layout Standard
24380 Algorithm floats are not by default numbered in the scheme
24381 \begin_inset Quotes eld
24385 \begin_inset Quotes erd
24388 as is the case for table and figure floats in many document-classes.
24389 To number algorithm floats in the same scheme, add this command to your
24393 \begin_layout Standard
24398 numberwithin{algorithm}{chapter}
24401 \begin_layout Standard
24402 To be able to use the command
24411 \begin_inset space ~
24416 in the document settings the option
24419 \begin_inset space ~
24423 \begin_inset space ~
24427 \begin_inset space ~
24435 \begin_layout Section
24437 \begin_inset Index idx
24440 \begin_layout Plain Layout
24449 \begin_layout Standard
24450 Floats are usually numbered either independently from the sections the floats
24451 are in, or in the scheme
24452 \begin_inset Quotes eld
24456 \begin_inset Quotes erd
24460 \begin_inset Quotes eld
24464 \begin_inset Quotes erd
24468 This depends on the document class used.
24471 \begin_layout Standard
24472 To change section-independent numbering, you can use this command in the
24476 \begin_layout Standard
24488 \begin_layout Standard
24495 is the command that prints the table number.
24496 For figure floats, the command would be
24509 in the command above prints the table number as a small roman number.
24512 \begin_layout Standard
24513 To change the numbering scheme for example to
24514 \begin_inset Quotes eld
24518 \begin_inset Quotes erd
24521 , use this command in the preamble:
24524 \begin_layout Standard
24529 numberwithin{table}{subsection}
24532 \begin_layout Standard
24533 To be able to use the command
24542 \begin_inset space ~
24547 in the document settings the option
24550 \begin_inset space ~
24554 \begin_inset space ~
24558 \begin_inset space ~
24566 \begin_layout Standard
24567 Please also have a look at section
24568 \begin_inset space ~
24572 \begin_inset CommandInset ref
24574 reference "subsec:Footnote-Numbering"
24578 for the details and important notes about the numbering commands.
24581 \begin_layout Section
24583 \begin_inset CommandInset label
24585 name "sec:Referencing-Floats"
24590 \begin_inset Index idx
24593 \begin_layout Plain Layout
24594 Floats ! References
24600 \begin_inset Index idx
24603 \begin_layout Plain Layout
24604 References ! to Floats
24612 \begin_layout Standard
24613 To reference a float, insert a label into its caption using the menu
24615 Insert\SpecialChar menuseparator
24618 or the toolbar button
24625 A grey label box like this one:
24626 \begin_inset Graphics
24627 filename clipart/label.png
24629 scaleBeforeRotation
24633 will be inserted and the label window pops up asking for the label text.
24635 offers as text the first words of the caption with a prefix.
24636 The prefix depends on the float type, e.
24637 \begin_inset space \thinspace{}
24641 \begin_inset space \space{}
24644 for figure floats the prefix will be "
24651 \begin_layout Standard
24652 The label is used as anchor and name for the reference.
24653 You can refer to the label using the menu
24655 Insert\SpecialChar menuseparator
24658 or the toolbar button
24661 arg "dialog-show-new-inset ref"
24665 The cross-reference window appears showing all labels of the document.
24666 If you have multiple \SpecialChar LyX
24667 documents opened, choose the one you are working
24668 on from the drop-list at the top of the dialog.
24669 You can now sort the labels alphabetically and then choose one.
24670 A grey cross-reference box like this one:
24671 \begin_inset Graphics
24672 filename clipart/reference.png
24674 scaleBeforeRotation
24679 At the position of the cross-reference box the float number will appear
24683 \begin_layout Standard
24684 It is recommended that you use a protected space between the cross-reference
24685 name and its number to avoid line breaks between them.
24686 If a cross-reference refers to a non-existing label, you will see two question
24687 marks in the output instead of the reference.
24690 \begin_layout Standard
24691 You can change labels at any time by clicking on the label box.
24692 References to the changed label will automatically update their links to
24693 the new label text.
24696 \begin_layout Standard
24700 \begin_inset space ~
24704 \begin_inset space ~
24709 in the cross-reference window sets the cursor before the referred label.
24710 The button text changes then to Go
24711 \begin_inset space ~
24714 Back and you can use it to set the cursor back to the cross-reference.
24717 \begin_layout Subsection
24718 Cross-Reference Formats
24719 \begin_inset CommandInset label
24721 name "subsec:Cross-Reference-Formats"
24726 \begin_inset Index idx
24729 \begin_layout Plain Layout
24730 References ! Formats
24738 \begin_layout Standard
24739 There are six varieties of cross-references:
24742 \begin_layout Description
24743 <reference>: prints the float number, this is the default:
24744 \begin_inset CommandInset ref
24746 reference "fig:Two-distorted-images"
24753 \begin_layout Description
24754 (<reference>): prints the float number within two parentheses, this is the
24755 style normally used to reference formulas, especially when the reference
24757 \begin_inset Quotes eld
24761 \begin_inset Quotes erd
24765 \begin_inset CommandInset ref
24774 \begin_layout Description
24775 <page>: prints the page number: Page
24776 \begin_inset space ~
24780 \begin_inset CommandInset ref
24781 LatexCommand pageref
24782 reference "fig:Two-distorted-images"
24789 \begin_layout Description
24791 \begin_inset space ~
24795 \begin_inset space ~
24798 <page>: prints the text "on page" and the page number:
24799 \begin_inset CommandInset ref
24800 LatexCommand vpageref
24801 reference "fig:Two-distorted-images"
24808 \begin_layout Description
24810 \begin_inset space ~
24814 \begin_inset space ~
24818 \begin_inset space ~
24821 <page>: prints the float number, the text "on page", and the page number:
24823 \begin_inset CommandInset ref
24825 reference "fig:Two-distorted-images"
24832 \begin_layout Description
24834 \begin_inset space ~
24837 reference: prints a self-defined cross-reference format.
24838 \begin_inset Newline newline
24842 \begin_inset Note Greyedout
24845 \begin_layout Plain Layout
24850 This feature is only available when you have the \SpecialChar LaTeX
24860 \begin_inset Index idx
24863 \begin_layout Plain Layout
24865 -packages ! prettyref
24871 \begin_inset Index idx
24874 \begin_layout Plain Layout
24876 -packages ! refstyle
24887 \begin_inset Newline newline
24890 You can select which \SpecialChar LaTeX
24891 -package should be used for this feature by setting
24894 Use refstyle (not prettyref) for cross-references
24898 Document\SpecialChar menuseparator
24899 Settings\SpecialChar menuseparator
24903 The format is specified by adding the command
24915 (refstyle) to the preamble of the document.
24916 For example redefining all references to figures (which have the label
24918 \begin_inset Quotes eld
24926 \begin_inset Quotes erd
24929 ) can be done with this command
24930 \begin_inset Newline newline
24937 newref{fig}{refcmd={Image on page
24942 \begin_inset Newline newline
24945 For more information about the format, have a look at the package documentations
24947 \begin_inset CommandInset citation
24949 key "prettyref,refstyle"
24956 \begin_layout Description
24958 \begin_inset space ~
24961 reference: prints the caption of the reference:
24962 \begin_inset CommandInset ref
24963 LatexCommand nameref
24964 reference "fig:Two-distorted-images"
24971 \begin_layout Standard
24976 will not print the page number if the label is on the previous, the same,
24979 \begin_inset space \thinspace{}
24983 \begin_inset space \space{}
24987 \begin_inset Quotes eld
24995 \begin_inset Quotes erd
25001 <reference> on page <page>
25003 will not print anything about the page if the label is on the same page.
25006 \begin_layout Standard
25007 The number and current page of the part of the document referred to in the
25008 output is automatically calculated by \SpecialChar LaTeX
25010 The varieties are adjusted in the field
25014 of the cross-reference window that appears when you click on the cross-referenc
25018 \begin_layout Standard
25019 \begin_inset Note Greyedout
25022 \begin_layout Plain Layout
25027 It is recommended to use the \SpecialChar LaTeX
25033 \begin_inset Index idx
25036 \begin_layout Plain Layout
25038 -packages ! refstyle
25048 \begin_inset Index idx
25051 \begin_layout Plain Layout
25053 -packages ! prettyref
25058 does not know all of \SpecialChar LyX
25059 's possible label shortcuts
25063 \begin_layout Plain Layout
25064 \begin_inset Quotes eld
25068 \begin_inset Quotes erd
25071 is for example \SpecialChar LyX
25072 's shortcut for labels in figure captions.
25077 and is not internationalized.
25085 \begin_layout Subsection
25086 Automatic Reference Naming
25087 \begin_inset Index idx
25090 \begin_layout Plain Layout
25091 References ! Automatic Reference Naming
25099 \begin_layout Standard
25100 The \SpecialChar LaTeX
25106 \begin_inset Index idx
25109 \begin_layout Plain Layout
25111 -packages ! hyperref
25116 , that is enabled in the
25124 dialog, provides a very useful feature that cross-references automatically
25125 include the name of the referenced floats (or text parts like
25130 So you will save having to write e.
25131 \begin_inset space \thinspace{}
25135 \begin_inset space \space{}
25139 \begin_inset Quotes eld
25143 \begin_inset Quotes erd
25146 before every reference to a figure.
25147 To use this feature, enable
25151 and insert this line to the \SpecialChar LaTeX
25155 \begin_layout Standard
25171 \begin_layout Standard
25172 When you prefer other reference names than the default ones, for example
25173 you want instead of
25174 \begin_inset Quotes eld
25178 \begin_inset Quotes erd
25182 \begin_inset Quotes eld
25186 \begin_inset space \thinspace{}
25190 \begin_inset Quotes eld
25193 , you can redefine the name by inserting this in the preamble:
25196 \begin_layout Standard
25207 sectionautorefname}
25208 \begin_inset Newline newline
25212 \begin_inset Phantom HPhantom
25215 \begin_layout Plain Layout
25218 \begin_inset space ~
25231 \begin_layout Standard
25232 When you are using another document language than English, replace
25233 \begin_inset Newline newline
25248 , where *** is the name of the language used.
25251 \begin_layout Standard
25252 To get automatic names, but not for certain reference types, for example
25253 not for equations, use this preamble code:
25256 \begin_layout Standard
25267 equationautorefname}[1]{}}
25270 \begin_layout Standard
25271 More about this topic can be found in
25276 \begin_inset CommandInset citation
25285 \begin_layout Standard
25286 \begin_inset Note Greyedout
25289 \begin_layout Plain Layout
25294 Automatic reference naming cannot be used when you use cross-references
25298 \begin_inset space ~
25303 style, as described in section
25304 \begin_inset space ~
25308 \begin_inset CommandInset ref
25310 reference "subsec:Cross-Reference-Formats"
25322 \begin_layout Standard
25327 manual is an example where automatic reference naming is used.
25330 \begin_layout Subsection
25332 \begin_inset CommandInset label
25334 name "subsec:Reference-Position"
25339 \begin_inset Index idx
25342 \begin_layout Plain Layout
25343 References ! Reference Position
25351 \begin_layout Standard
25357 \begin_inset Index idx
25360 \begin_layout Plain Layout
25362 -packages ! hyperref
25375 dialog to link cross-references in the output, you will see that clicking
25376 on an image float reference jumps to the image label.
25377 The caption will be the first text part on the screen, so that you cannot
25378 see the image without scrolling.
25379 This is because the reference link anchor is placed at the position of
25381 With the use of the package
25386 \begin_inset Index idx
25389 \begin_layout Plain Layout
25396 , which is part of the \SpecialChar LaTeX
25402 \begin_inset Index idx
25405 \begin_layout Plain Layout
25407 -packages ! oberdiek
25412 , the link anchor is placed at the beginning of a float.
25413 To use this feature for figure floats, load
25417 in the document preamble with the line
25420 \begin_layout Standard
25425 usepackage[figure]{hypcap}
25428 \begin_layout Standard
25433 for all float types but this is not recommended for stability reasons.
25434 For more information, have a look at
25439 \begin_inset CommandInset citation
25448 \begin_layout Standard
25449 \begin_inset Note Greyedout
25452 \begin_layout Plain Layout
25461 has no effect on references to subfigures.
25469 \begin_layout Section
25471 \begin_inset CommandInset label
25473 name "sec:Float-Placement"
25478 \begin_inset Index idx
25481 \begin_layout Plain Layout
25490 \begin_layout Standard
25491 Right-clicking on a float-box and clicking on
25495 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25497 positioning the float.
25498 \begin_inset Newline newline
25504 \begin_inset space ~
25509 is only useful for two-column documents: If you select it, the float will
25510 span both columns on the page instead of being confined to just one.
25511 \begin_inset Newline newline
25517 \begin_inset space ~
25522 is used to rotate floats, see section
25523 \begin_inset CommandInset ref
25525 reference "sec:Rotated-Floats"
25532 \begin_layout Standard
25533 You can use one or more of the following options in the float dialog to
25534 set the placement for a particular float when you uncheck the option
25537 \begin_inset space ~
25541 \begin_inset space ~
25549 \begin_layout Description
25551 \begin_inset space ~
25555 \begin_inset space ~
25558 possible try to place the float on the position where it has been inserted
25561 \begin_layout Description
25563 \begin_inset space ~
25567 \begin_inset space ~
25570 page try to place the float at the top of the current page
25573 \begin_layout Description
25575 \begin_inset space ~
25579 \begin_inset space ~
25582 page try to place the float at the bottom of the current page
25585 \begin_layout Description
25587 \begin_inset space ~
25591 \begin_inset space ~
25594 floats try to place the float on its own page
25597 \begin_layout Standard
25598 The order of the above option is
25602 used by \SpecialChar LaTeX
25604 That means, if you use the default placement, \SpecialChar LaTeX
25608 \begin_inset space ~
25612 \begin_inset space ~
25620 \begin_inset space ~
25624 \begin_inset space ~
25629 , and then the others.
25630 If you do not use the default, \SpecialChar LaTeX
25631 will try only the checked options but in
25634 \begin_inset space ~
25637 placements is possible the procedure is internally repeated trying to put
25638 the float on the following page.
25641 \begin_layout Standard
25642 By default, each option has its own rules:
25645 \begin_layout Labeling
25646 \labelwidthstring 00.00.0000
25650 \begin_inset space ~
25654 \begin_inset space ~
25659 only floats occupying less than 70
25660 \begin_inset space \thinspace{}
25663 % of the page can be placed at the top of a page (
25672 \begin_layout Labeling
25673 \labelwidthstring 00.00.0000
25677 \begin_inset space ~
25681 \begin_inset space ~
25686 : only floats occupying less than 30
25687 \begin_inset space \thinspace{}
25690 % of the page can be placed at the bottom of a page.
25700 \begin_layout Labeling
25701 \labelwidthstring 00.00.0000
25705 \begin_inset space ~
25709 \begin_inset space ~
25714 : only if more than 50
25715 \begin_inset space \thinspace{}
25718 % of the page is occupied by floats, several floats can be set together
25729 \begin_layout Standard
25730 If you don't like these rules, you can ignore them by using the additional
25734 \begin_inset space ~
25739 \begin_inset space ~
25745 \begin_inset Newline newline
25748 You can also redefine the rules with \SpecialChar LaTeX
25749 -commands that are given in parentheses
25750 after the rules description above.
25751 To increase for example the often too small default of the bottom-rule
25753 \begin_inset space \thinspace{}
25756 % of the page, add this line to your document preamble:
25759 \begin_layout Standard
25766 bottomfraction}{0.5}
25769 \begin_layout Standard
25770 Sometimes you might need, under all circumstances, a float to be placed
25771 exactly at the position where it is inserted.
25772 For this case you can use the option
25775 \begin_inset space ~
25781 Use this option very rarely and only if the document is almost ready to
25782 be printed, because the float is then no longer able to
25783 \begin_inset Quotes eld
25787 \begin_inset Quotes erd
25790 when you change your document and this will often destroy the page layout.
25793 \begin_layout Standard
25794 There are no placement options for text wrap floats, because they are always
25795 surrounded by the text of a certain paragraph.
25796 \begin_inset VSpace bigskip
25802 \begin_layout Standard
25803 Sometimes you have the problem that a float is placed at the top of a page
25804 while its corresponding section starts at the middle of the page, so that
25805 the reader could think the float is part of the previous section.
25806 To avoid this the \SpecialChar LaTeX
25814 It suppresses a given float placement for the page where it is inserted
25815 and can therefore be used to avoid floats being set before a section starts.
25816 To get this, add these commands to your document preamble:
25819 \begin_layout Standard
25829 \begin_inset Newline newline
25843 \begin_layout Standard
25844 You can define the same for all section headings, like chapters and subsections.
25845 This definition is not recommended to be used for small text parts like
25846 subsubsections because \SpecialChar LaTeX
25847 may then have problems finding a suitable placement.
25850 \begin_layout Standard
25851 \begin_inset VSpace bigskip
25854 In some cases it is required to have all figures/tables at the end of the
25856 For this purpose the \SpecialChar LaTeX
25862 \begin_inset Index idx
25865 \begin_layout Plain Layout
25867 -packages ! endfloat
25873 It puts all figure and table floats at the end of the document into their
25875 At the original float position a text hint like
25876 \begin_inset Quotes eld
25882 \begin_inset space ~
25888 \begin_inset Quotes erd
25892 The endfloat-package is loaded in the preamble with the line
25895 \begin_layout Standard
25900 usepackage[options]{endfloat}
25903 \begin_layout Standard
25904 There are various package options to format the created figure/table sections.
25905 For more information we refer you to the
25910 \begin_inset CommandInset citation
25917 \begin_inset Newline newline
25921 \begin_inset Note Greyedout
25924 \begin_layout Plain Layout
25929 doesn't provide an automatic translation for the text hint, you have to
25930 do this manually, see section
25931 \begin_inset space ~
25935 \begin_inset CommandInset citation
25947 \begin_inset Newline newline
25951 \begin_inset Note Greyedout
25954 \begin_layout Plain Layout
25959 There is currently a bug in
25963 when the caption contains a German
25964 \begin_inset Quotes eld
25968 \begin_inset Quotes erd
25972 Use in this case the command
25973 \begin_inset Quotes eld
25983 \begin_inset Quotes erd
25986 in \SpecialChar TeX
25988 \begin_inset Quotes eld
25992 \begin_inset Quotes erd
26003 \begin_layout Standard
26004 \begin_inset VSpace bigskip
26007 For more details about float placements, have a look at \SpecialChar LaTeX
26009 \begin_inset CommandInset citation
26011 key "latexcompanion,latexguide,latexbook"
26018 \begin_layout Section
26020 \begin_inset CommandInset label
26022 name "sec:Rotated-Floats"
26027 \begin_inset Index idx
26030 \begin_layout Plain Layout
26039 \begin_layout Standard
26040 Especially for wide tables you might have floats rotated.
26041 To rotate a whole float including the caption, right-click on the float-box
26045 \begin_inset space ~
26053 \begin_layout Standard
26054 Rotated floats are always placed on a page of their own (or column of their
26055 own; in case you have a multi-column document).
26056 You can let them span several columns using the float settings option
26059 \begin_inset space ~
26065 Floats are rotated so that you can read them from the outside margin.
26066 To force a certain rotation direction for all pages, you can add either
26075 to the document class options.
26078 \begin_layout Standard
26079 Referencing rotated floats is the same as for normal floats, the caption
26080 format is also the same: Table
26081 \begin_inset space ~
26085 \begin_inset CommandInset ref
26087 reference "tab:Rotated-table"
26091 is an example of a rotated table float.
26094 \begin_layout Standard
26095 \begin_inset Note Greyedout
26098 \begin_layout Plain Layout
26103 Not all DVI-viewers are able to display rotated floats.
26111 \begin_layout Standard
26112 \begin_inset Float table
26117 \begin_layout Plain Layout
26118 \begin_inset Caption Standard
26120 \begin_layout Plain Layout
26121 \begin_inset CommandInset label
26123 name "tab:Rotated-table"
26135 \begin_layout Plain Layout
26137 \begin_inset Tabular
26138 <lyxtabular version="3" rows="1" columns="5">
26139 <features tabularvalignment="middle">
26140 <column alignment="center" valignment="top">
26141 <column alignment="center" valignment="top">
26142 <column alignment="center" valignment="top">
26143 <column alignment="center" valignment="top">
26144 <column alignment="center" valignment="top">
26146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26149 \begin_layout Plain Layout
26155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26158 \begin_layout Plain Layout
26164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26167 \begin_layout Plain Layout
26173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26176 \begin_layout Plain Layout
26182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26185 \begin_layout Plain Layout
26204 \begin_layout Section
26206 \begin_inset Index idx
26209 \begin_layout Plain Layout
26218 \begin_layout Standard
26219 Subfloats are for example used when a figure consists of several images.
26220 They are created by inserting a float into an existing float.
26221 The placement of the subfloats can be controlled in the same way as for
26222 paragraphs as shown in table
26223 \begin_inset space ~
26227 \begin_inset CommandInset ref
26229 reference "tab:Two-subtables-side"
26234 \begin_inset CommandInset ref
26236 reference "tab:Two-subtables-upon"
26243 \begin_layout Standard
26244 Referencing subfloats works as for normal floats: Table
26245 \begin_inset space ~
26249 \begin_inset CommandInset ref
26251 reference "tab:This-is-subtable-a"
26256 \begin_inset CommandInset ref
26258 reference "tab:This-is-subtable-b"
26262 are subtables of table
26263 \begin_inset space ~
26267 \begin_inset CommandInset ref
26269 reference "tab:Two-subtables-side"
26276 \begin_layout Standard
26277 \begin_inset Float table
26282 \begin_layout Plain Layout
26283 \begin_inset Caption Standard
26285 \begin_layout Plain Layout
26286 \begin_inset CommandInset label
26288 name "tab:Two-subtables-side"
26292 Two subtables placed side by side.
26300 \begin_layout Plain Layout
26302 \begin_inset space \hfill{}
26306 \begin_inset Float table
26311 \begin_layout Plain Layout
26312 \begin_inset Caption Standard
26314 \begin_layout Plain Layout
26315 \begin_inset CommandInset label
26317 name "tab:This-is-subtable-a"
26321 This is subtable a.
26329 \begin_layout Plain Layout
26331 \begin_inset Tabular
26332 <lyxtabular version="3" rows="1" columns="5">
26333 <features tabularvalignment="middle">
26334 <column alignment="center" valignment="top">
26335 <column alignment="center" valignment="top">
26336 <column alignment="center" valignment="top">
26337 <column alignment="center" valignment="top">
26338 <column alignment="center" valignment="top">
26340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26343 \begin_layout Plain Layout
26349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26352 \begin_layout Plain Layout
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26379 \begin_layout Plain Layout
26396 \begin_inset space \hfill{}
26400 \begin_inset Float table
26405 \begin_layout Plain Layout
26406 \begin_inset Caption Standard
26408 \begin_layout Plain Layout
26409 \begin_inset CommandInset label
26411 name "tab:This-is-subtable-b"
26415 This is subtable b.
26423 \begin_layout Plain Layout
26425 \begin_inset Tabular
26426 <lyxtabular version="3" rows="1" columns="5">
26427 <features tabularvalignment="middle">
26428 <column alignment="center" valignment="top">
26429 <column alignment="center" valignment="top">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26432 <column alignment="center" valignment="top">
26434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26437 \begin_layout Plain Layout
26443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26446 \begin_layout Plain Layout
26452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26455 \begin_layout Plain Layout
26461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26464 \begin_layout Plain Layout
26470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26473 \begin_layout Plain Layout
26490 \begin_inset space \hfill{}
26501 \begin_layout Standard
26502 \begin_inset Float table
26507 \begin_layout Plain Layout
26508 \begin_inset Caption Standard
26510 \begin_layout Plain Layout
26511 \begin_inset CommandInset label
26513 name "tab:Two-subtables-upon"
26517 Two subtables placed one above the other.
26518 (a) table with 4 cells, (b) table with 5 cells.
26526 \begin_layout Plain Layout
26528 \begin_inset Float table
26533 \begin_layout Plain Layout
26534 \begin_inset Caption Standard
26536 \begin_layout Plain Layout
26545 \begin_layout Plain Layout
26547 \begin_inset Tabular
26548 <lyxtabular version="3" rows="1" columns="4">
26549 <features tabularvalignment="middle">
26550 <column alignment="center" valignment="top">
26551 <column alignment="center" valignment="top">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26558 \begin_layout Plain Layout
26564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26567 \begin_layout Plain Layout
26573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26576 \begin_layout Plain Layout
26582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26585 \begin_layout Plain Layout
26604 \begin_layout Plain Layout
26606 \begin_inset Float table
26611 \begin_layout Plain Layout
26612 \begin_inset Caption Standard
26614 \begin_layout Plain Layout
26623 \begin_layout Plain Layout
26625 \begin_inset Tabular
26626 <lyxtabular version="3" rows="1" columns="5">
26627 <features tabularvalignment="middle">
26628 <column alignment="center" valignment="top">
26629 <column alignment="center" valignment="top">
26630 <column alignment="center" valignment="top">
26631 <column alignment="center" valignment="top">
26632 <column alignment="center" valignment="top">
26634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26637 \begin_layout Plain Layout
26643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26646 \begin_layout Plain Layout
26652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26655 \begin_layout Plain Layout
26661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26664 \begin_layout Plain Layout
26670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26673 \begin_layout Plain Layout
26697 \begin_layout Section
26698 Floats Side by Side
26699 \begin_inset Index idx
26702 \begin_layout Plain Layout
26703 Floats ! Side by side
26711 \begin_layout Standard
26712 To place floats side by side, as in Figures
26713 \begin_inset space ~
26717 \begin_inset CommandInset ref
26719 reference "fig:Float-left"
26724 \begin_inset CommandInset ref
26726 reference "fig:Float-right"
26735 In it two minipage boxes are inserted.
26739 \begin_layout Plain Layout
26740 Minipages are explained in section
26741 \begin_inset space ~
26745 \begin_inset CommandInset ref
26747 reference "sec:Minipages"
26756 The width is set to 45
26757 \begin_inset space \thinspace{}
26761 \begin_inset space \thinspace{}
26764 column% and the box alignment to
26769 The minipage boxes contain the image and the caption in the same way as
26770 they are in a float.
26771 The only difference is that the image unit
26774 \begin_inset space ~
26778 \begin_inset space ~
26783 is now calculated according to the width of the minipage boxes.
26786 \begin_layout Standard
26787 \begin_inset Float figure
26792 \begin_layout Plain Layout
26793 \begin_inset Box Frameless
26803 height_special "totalheight"
26808 backgroundcolor "none"
26811 \begin_layout Plain Layout
26813 \begin_inset Graphics
26814 filename clipart/mobius.eps
26817 scaleBeforeRotation
26824 \begin_layout Plain Layout
26825 \begin_inset Caption Standard
26827 \begin_layout Plain Layout
26828 \begin_inset CommandInset label
26830 name "fig:Float-left"
26834 Float on the left side.
26845 \begin_inset space \hfill{}
26849 \begin_inset Box Frameless
26859 height_special "totalheight"
26864 backgroundcolor "none"
26867 \begin_layout Plain Layout
26869 \begin_inset Graphics
26870 filename clipart/platypus.eps
26873 scaleBeforeRotation
26880 \begin_layout Plain Layout
26881 \begin_inset Caption Standard
26883 \begin_layout Plain Layout
26884 \begin_inset CommandInset label
26886 name "fig:Float-right"
26890 Float on the right side.
26908 \begin_layout Standard
26909 An alternative and simpler solution is to use the module
26911 Variable-width Minipages
26914 \begin_inset space \thinspace{}
26918 \begin_inset CommandInset ref
26920 reference "sec:Minipages"
26925 Variable-width minipages adapt automatically to the width of the figures
26927 They do not require an explicit width to be given, and they improve the
26928 horizontal alignment of the figures.
26929 The LyX example file
26931 varwidth-floats-side-by-side
26933 gives examples of how to do this.
26936 \begin_layout Section
26938 \begin_inset Index idx
26941 \begin_layout Plain Layout
26942 Caption ! Formatting
26948 \begin_inset Index idx
26951 \begin_layout Plain Layout
26952 Floats ! Caption Formatting
26958 \begin_inset CommandInset label
26960 name "sec:Caption-Formatting"
26967 \begin_layout Standard
26972 environment is the default paragraph environment for
26977 On the \SpecialChar LyX
26978 screen captions appear as a label, e.
26979 \begin_inset space \thinspace{}
26983 \begin_inset space \space{}
26987 \begin_inset Quotes eld
26995 \begin_inset Quotes erd
26998 followed by the caption text.
27000 \begin_inset Quotes eld
27004 \begin_inset Quotes erd
27007 is the actual reference number.
27008 By default the label and the number are in the same font as the caption
27009 text and a colon follows the number to divide the label from the text.
27010 This caption format is suitable for many but not all documents.
27014 \begin_layout Standard
27015 To change the default caption format, load the \SpecialChar LaTeX
27021 \begin_inset Index idx
27024 \begin_layout Plain Layout
27026 -packages ! caption
27031 in the document preamble with this line:
27034 \begin_layout Standard
27039 usepackage[format definition]{caption}
27042 \begin_layout Standard
27043 To have for example the label and the number in sans-serif, bold font and
27044 the table captions always above the table as in this document, use the
27048 \begin_layout Standard
27053 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27056 \begin_layout Standard
27057 You can also define different caption formats for the different float types.
27058 In this case load the
27062 package without format specific options and define the different formats
27063 with the help of the command
27066 \begin_layout Standard
27071 captionsetup[float type]{format definition}
27074 \begin_layout Standard
27075 in the document preamble.
27076 For example the caption formats of Figure
27077 \begin_inset space ~
27081 \begin_inset CommandInset ref
27083 reference "fig:This-is-an-fig"
27088 \begin_inset space ~
27092 \begin_inset CommandInset ref
27094 reference "tab:This-is-an-tab"
27098 can be created using these commands in the document preamble:
27101 \begin_layout Standard
27106 usepackage[tableposition=top]{caption}
27109 \begin_inset Newline newline
27116 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27117 \begin_inset Newline newline
27121 \begin_inset Phantom HPhantom
27124 \begin_layout Plain Layout
27129 captionsetup[figure]{
27135 \begin_inset Newline newline
27140 captionsetup[table]{labelfont={bf,sf}}
27143 \begin_layout Standard
27144 \begin_inset Note Greyedout
27147 \begin_layout Plain Layout
27156 has no effect when a
27161 \begin_inset Index idx
27164 \begin_layout Plain Layout
27166 -packages ! KOMA-Script
27171 document class is used.
27172 In this case the document class option
27174 captions=tableheading
27184 \begin_layout Standard
27185 For more information about the package
27189 we refer to its documentation
27190 \begin_inset CommandInset citation
27199 \begin_layout Standard
27200 To change the label name from e.
27201 \begin_inset space \thinspace{}
27205 \begin_inset space \space{}
27209 \begin_inset Quotes eld
27213 \begin_inset Quotes erd
27217 \begin_inset Quotes eld
27221 \begin_inset Quotes erd
27224 use this preamble command:
27227 \begin_layout Standard
27234 fnum@figure}{Image~
27239 \begin_layout Standard
27246 inserts the figure number and
27249 \begin_inset Quotes eld
27255 \begin_inset Quotes erd
27258 creates a protected space.
27261 \begin_layout Standard
27262 \begin_inset VSpace bigskip
27270 \begin_inset Index idx
27273 \begin_layout Plain Layout
27275 -packages ! KOMA-Script
27282 article (KOMA-Script)
27290 letter (KOMA-Script)
27294 report (KOMA-Script)
27297 \begin_inset space \thinspace{}
27300 ), you can alternatively to the
27308 's built-in command
27315 For example, to have the caption label in bold, add this command to your
27319 \begin_layout Standard
27324 setkomafont{captionlabel}{
27329 \begin_layout Standard
27330 For more information about
27341 \begin_inset CommandInset citation
27350 \begin_layout Standard
27354 \begin_layout Plain Layout
27358 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27365 \begin_inset Note Note
27368 \begin_layout Plain Layout
27369 The caption format is changed only for this example.
27377 \begin_layout Standard
27378 \begin_inset Float figure
27384 \begin_layout Plain Layout
27386 \begin_inset Graphics
27387 filename clipart/mobius.eps
27390 scaleBeforeRotation
27397 \begin_layout Plain Layout
27398 \begin_inset Caption Standard
27400 \begin_layout Plain Layout
27401 \begin_inset CommandInset label
27403 name "fig:This-is-an-fig"
27407 This is an example figure caption that is longer than one line to show the
27408 different caption format.
27409 Here a self-defined caption format is used.
27422 \begin_layout Standard
27426 \begin_layout Plain Layout
27430 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27439 \begin_layout Standard
27440 \begin_inset Float table
27446 \begin_layout Plain Layout
27447 \begin_inset Caption Standard
27449 \begin_layout Plain Layout
27450 \begin_inset CommandInset label
27452 name "tab:This-is-an-tab"
27456 This is an example table caption that is longer than one line to show the
27457 different caption format.
27458 Here the standard caption format for tables in this document is used.
27466 \begin_layout Plain Layout
27468 \begin_inset Tabular
27469 <lyxtabular version="3" rows="1" columns="5">
27470 <features tabularvalignment="middle">
27471 <column alignment="center" valignment="top">
27472 <column alignment="center" valignment="top">
27473 <column alignment="center" valignment="top">
27474 <column alignment="center" valignment="top">
27475 <column alignment="center" valignment="top">
27477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27480 \begin_layout Plain Layout
27486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27489 \begin_layout Plain Layout
27495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27498 \begin_layout Plain Layout
27504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27507 \begin_layout Plain Layout
27513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27516 \begin_layout Plain Layout
27535 \begin_layout Section
27537 \begin_inset Index idx
27540 \begin_layout Plain Layout
27541 Caption ! Placement
27547 \begin_inset Index idx
27550 \begin_layout Plain Layout
27551 Floats ! Caption Placement
27557 \begin_inset CommandInset label
27559 name "sec:Caption-Placement"
27566 \begin_layout Standard
27567 The common caption placement rule is:
27570 \begin_layout Description
27571 Figure: Caption is set below the figure
27574 \begin_layout Description
27575 Table: Caption is set above the table
27578 \begin_layout Standard
27579 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27582 That means if you are using the document classes
27598 there will be no space between the caption and the table.
27599 To insert the necessary space, load the \SpecialChar LaTeX
27605 \begin_inset Index idx
27608 \begin_layout Plain Layout
27610 -packages ! caption
27615 in your document preamble with the option
27619 \begin_layout Plain Layout
27621 \begin_inset space ~
27625 \begin_inset CommandInset ref
27627 reference "sec:Caption-Formatting"
27631 for more information of the package
27643 \begin_layout Standard
27649 \begin_layout Standard
27655 \begin_inset Index idx
27658 \begin_layout Plain Layout
27660 -packages ! KOMA-Script
27667 article (KOMA-Script)
27675 letter (KOMA-Script)
27679 report (KOMA-Script)
27682 \begin_inset space \thinspace{}
27685 ), you can alternatively to the
27689 package set the document class option
27693 \begin_layout Plain Layout
27694 That option is used in this document.
27702 \begin_layout Standard
27705 captions=tableheading
27708 \begin_layout Standard
27709 In documents with a KOMA-Script document class you can also right-click
27710 on a caption and mark in the context menu if this should be a caption above
27711 or below the table/figure.
27712 This way you can override the document-wide caption placement for certain
27715 \begin_inset space ~
27719 \begin_inset CommandInset ref
27721 reference "tab:A-caption-marked"
27725 is an example where the caption is marked a being below the table while
27727 For comparison the caption in Table
27728 \begin_inset space ~
27732 \begin_inset CommandInset ref
27734 reference "tab:A-standard-table"
27741 \begin_layout Standard
27742 \begin_inset Float table
27747 \begin_layout Plain Layout
27748 \begin_inset Caption Below
27750 \begin_layout Plain Layout
27751 \begin_inset CommandInset label
27753 name "tab:A-caption-marked"
27757 A caption marked as being below the table.
27765 \begin_layout Plain Layout
27767 \begin_inset Tabular
27768 <lyxtabular version="3" rows="3" columns="3">
27769 <features tabularvalignment="middle">
27770 <column alignment="center" valignment="top" width="0pt">
27771 <column alignment="center" valignment="top" width="0pt">
27772 <column alignment="center" valignment="top" width="0pt">
27774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27777 \begin_layout Plain Layout
27783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27786 \begin_layout Plain Layout
27792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27795 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27815 \begin_layout Plain Layout
27821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27824 \begin_layout Plain Layout
27832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27836 \begin_inset Formula $\int x^{2}dx$
27844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27847 \begin_layout Plain Layout
27848 \begin_inset Formula $\left[\begin{array}{cc}
27851 \end{array}\right]$
27859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27862 \begin_layout Plain Layout
27863 \begin_inset Formula $1+1=2$
27884 \begin_layout Standard
27885 \begin_inset Float table
27890 \begin_layout Plain Layout
27891 \begin_inset Caption Standard
27893 \begin_layout Plain Layout
27894 \begin_inset CommandInset label
27896 name "tab:A-standard-table"
27900 A standard table caption.
27908 \begin_layout Plain Layout
27910 \begin_inset Tabular
27911 <lyxtabular version="3" rows="3" columns="3">
27912 <features tabularvalignment="middle">
27913 <column alignment="center" valignment="top" width="0pt">
27914 <column alignment="center" valignment="top" width="0pt">
27915 <column alignment="center" valignment="top" width="0pt">
27917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27920 \begin_layout Plain Layout
27926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27929 \begin_layout Plain Layout
27935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27938 \begin_layout Plain Layout
27946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27949 \begin_layout Plain Layout
27955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27958 \begin_layout Plain Layout
27964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27967 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27979 \begin_inset Formula $\int x^{2}dx$
27987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27990 \begin_layout Plain Layout
27991 \begin_inset Formula $\left[\begin{array}{cc}
27994 \end{array}\right]$
28002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28005 \begin_layout Plain Layout
28006 \begin_inset Formula $1+1=2$
28027 \begin_layout Standard
28028 \begin_inset VSpace bigskip
28031 It is also possible to set the caption beside a figure or table.
28032 To get this the \SpecialChar LaTeX
28038 \begin_inset Index idx
28041 \begin_layout Plain Layout
28043 -packages ! sidecap
28048 has to be loaded in the document preamble with the line
28051 \begin_layout Standard
28056 usepackage[option]{sidecap}
28059 \begin_layout Standard
28060 If you set no option, the caption is placed on the side of the outer page
28061 margin – to the right on odd pages, to the left on even pages.
28062 You can change the placement to inner margin with the option
28067 To force the placement always to the right or left, use the option
28078 \begin_layout Standard
28082 \begin_layout Plain Layout
28092 \begin_inset Note Note
28095 \begin_layout Plain Layout
28096 The following section will only be displayed when the \SpecialChar LaTeX
28109 \begin_layout Standard
28110 To place in \SpecialChar LyX
28111 the caption of a float on the side, it is necessary to add
28112 these commands to the document preamble:
28115 \begin_layout Standard
28117 \begin_inset CommandInset line
28128 \begin_layout Standard
28135 TabBesBeg}[1][1.0]{%
28136 \begin_inset Newline newline
28140 \begin_inset Phantom HPhantom
28143 \begin_layout Plain Layout
28144 \begin_inset space ~
28159 \begin_inset Newline newline
28163 \begin_inset Phantom HPhantom
28166 \begin_layout Plain Layout
28169 \begin_inset space ~
28184 \begin_inset Newline newline
28188 \begin_inset Phantom HPhantom
28191 \begin_layout Plain Layout
28194 \begin_inset space ~
28204 renewenvironment{table}[1]{
28206 begin{SCtable}[#1]##1}{
28211 \begin_layout Standard
28219 \begin_inset Newline newline
28223 \begin_inset Phantom HPhantom
28226 \begin_layout Plain Layout
28227 \begin_inset space ~
28242 \begin_inset Newline newline
28246 \begin_inset Phantom HPhantom
28249 \begin_layout Plain Layout
28250 \begin_inset space ~
28267 \begin_layout Standard
28274 FigBesBeg}[1][1.0]{%
28275 \begin_inset Newline newline
28279 \begin_inset Phantom HPhantom
28282 \begin_layout Plain Layout
28283 \begin_inset space ~
28298 \begin_inset Newline newline
28302 \begin_inset Phantom HPhantom
28305 \begin_layout Plain Layout
28306 \begin_inset space ~
28321 \begin_inset Newline newline
28325 \begin_inset Phantom HPhantom
28328 \begin_layout Plain Layout
28329 \begin_inset space ~
28339 renewenvironment{figure}[1]{
28341 begin{SCfigure}[#1]##1}{
28346 \begin_layout Standard
28354 \begin_inset Newline newline
28358 \begin_inset Phantom HPhantom
28361 \begin_layout Plain Layout
28362 \begin_inset space ~
28377 \begin_inset Newline newline
28381 \begin_inset Phantom HPhantom
28384 \begin_layout Plain Layout
28385 \begin_inset space ~
28402 \begin_layout Standard
28404 \begin_inset CommandInset line
28415 \begin_layout Standard
28416 The commands allow you to redefine the floats so that the caption is set
28418 For figure floats use the command
28421 \begin_layout Standard
28429 \begin_layout Standard
28430 in \SpecialChar TeX
28431 Code before the float.
28432 And insert the command
28435 \begin_layout Standard
28443 \begin_layout Standard
28444 in \SpecialChar TeX
28445 Code at the point where you want to get back to the original float definitio
28449 \begin_layout Standard
28450 For table floats use the corresponding commands
28453 \begin_layout Standard
28467 \begin_layout Standard
28469 \begin_inset space ~
28473 \begin_inset CommandInset ref
28475 reference "fig:cap-beside-fig"
28480 \begin_inset space ~
28484 \begin_inset CommandInset ref
28486 reference "tab:cap-beside-tab"
28490 are examples where the caption is set beside.
28493 \begin_layout Standard
28494 You can see in the examples that the caption text appears at the top of
28495 the floats for table floats and at the bottom for figure floats.
28496 To change this, you can use the command
28499 \begin_layout Standard
28504 sidecaptionvpos{float type}{placement}
28507 \begin_layout Standard
28508 in the document preamble or in \SpecialChar TeX
28509 Code before the float.
28510 The float type is either
28518 , the placement can be
28519 \begin_inset Quotes eld
28527 \begin_inset Quotes erd
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 \begin_inset Quotes eld
28551 \begin_inset Quotes erd
28555 To have for example the caption of figure floats vertically centered, use
28559 \begin_layout Standard
28564 sidecaptionvpos{figure}{c}
28567 \begin_layout Standard
28568 This was used for Figure
28569 \begin_inset space ~
28573 \begin_inset CommandInset ref
28575 reference "fig:cap-beside-fig-2"
28582 \begin_layout Standard
28583 \begin_inset VSpace medskip
28589 \begin_layout Standard
28590 The default caption width is the width of the image/table.
28591 For thin image/tables, like in Table
28592 \begin_inset space ~
28596 \begin_inset CommandInset ref
28598 reference "tab:cap-beside-tab"
28602 , this leads to captions that are too thin.
28603 You can increase the width by specifying a factor that will be multiplied
28604 with the image/table width to get the caption width.
28605 The caption width will automatically be recalculated in case it would protrude
28606 over the page or column margin due to the specified width.
28611 can either be given as optional argument for
28620 \begin_layout Standard
28628 \begin_layout Standard
28629 or in the definition of
28639 with another value.
28640 If you do the latter, your factor will be the default if
28646 is used without an argument.
28648 \begin_inset space ~
28652 \begin_inset CommandInset ref
28654 reference "tab:cap-beside-tab-wider"
28658 the factor 5 was used.
28661 \begin_layout Standard
28662 \begin_inset Note Greyedout
28665 \begin_layout Plain Layout
28670 For floats with captions set beside, you cannot use the float placement
28674 \begin_inset space ~
28679 because it is not supported by
28691 \begin_layout Standard
28692 \begin_inset VSpace medskip
28695 For more information about the package
28699 we refer to its documentation
28700 \begin_inset CommandInset citation
28709 \begin_layout Standard
28710 \begin_inset Note Greyedout
28713 \begin_layout Plain Layout
28718 The \SpecialChar LaTeX
28724 \begin_inset Index idx
28727 \begin_layout Plain Layout
28734 , described in section
28735 \begin_inset space ~
28739 \begin_inset CommandInset ref
28741 reference "subsec:Reference-Position"
28745 , has no effect on floats with the caption set beside.
28753 \begin_layout Standard
28757 \begin_layout Plain Layout
28769 \begin_layout Standard
28770 \begin_inset Float figure
28775 \begin_layout Plain Layout
28776 \begin_inset Graphics
28777 filename clipart/escher-lsd.eps
28779 scaleBeforeRotation
28786 \begin_layout Plain Layout
28787 \begin_inset Caption Standard
28789 \begin_layout Plain Layout
28790 \begin_inset CommandInset label
28792 name "fig:cap-beside-fig"
28796 This is a caption beside a figure.
28809 \begin_layout Standard
28813 \begin_layout Plain Layout
28825 \begin_layout Standard
28829 \begin_layout Plain Layout
28841 \begin_layout Standard
28842 \begin_inset Float table
28847 \begin_layout Plain Layout
28848 \begin_inset Caption Standard
28850 \begin_layout Plain Layout
28851 \begin_inset CommandInset label
28853 name "tab:cap-beside-tab"
28857 This is a caption beside a table.
28865 \begin_layout Plain Layout
28866 \begin_inset Tabular
28867 <lyxtabular version="3" rows="4" columns="5">
28868 <features tabularvalignment="middle">
28869 <column alignment="center" valignment="top">
28870 <column alignment="center" valignment="top">
28871 <column alignment="center" valignment="top">
28872 <column alignment="center" valignment="top">
28873 <column alignment="center" valignment="top">
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28878 \begin_layout Plain Layout
28884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28887 \begin_layout Plain Layout
28893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28896 \begin_layout Plain Layout
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28914 \begin_layout Plain Layout
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Plain Layout
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28934 \begin_layout Plain Layout
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28961 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28981 \begin_layout Plain Layout
28987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28990 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29008 \begin_layout Plain Layout
29016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29019 \begin_layout Plain Layout
29025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29028 \begin_layout Plain Layout
29034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29037 \begin_layout Plain Layout
29043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29046 \begin_layout Plain Layout
29052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29055 \begin_layout Plain Layout
29074 \begin_layout Standard
29078 \begin_layout Plain Layout
29090 \begin_layout Standard
29094 \begin_layout Plain Layout
29107 \begin_layout Plain Layout
29111 sidecaptionvpos{figure}{c}
29117 \begin_inset Float figure
29122 \begin_layout Plain Layout
29123 \begin_inset Graphics
29124 filename clipart/escher-lsd.eps
29126 scaleBeforeRotation
29133 \begin_layout Plain Layout
29134 \begin_inset Caption Standard
29136 \begin_layout Plain Layout
29137 \begin_inset CommandInset label
29139 name "fig:cap-beside-fig-2"
29143 This is a vertically centered caption beside a figure.
29156 \begin_layout Standard
29160 \begin_layout Plain Layout
29172 \begin_layout Standard
29176 \begin_layout Plain Layout
29188 \begin_layout Standard
29189 \begin_inset Float table
29194 \begin_layout Plain Layout
29195 \begin_inset Caption Standard
29197 \begin_layout Plain Layout
29198 \begin_inset CommandInset label
29200 name "tab:cap-beside-tab-wider"
29204 This caption is wider than the one in Table
29205 \begin_inset space ~
29209 \begin_inset CommandInset ref
29211 reference "tab:cap-beside-tab"
29223 \begin_layout Plain Layout
29224 \begin_inset Tabular
29225 <lyxtabular version="3" rows="4" columns="5">
29226 <features tabularvalignment="middle">
29227 <column alignment="center" valignment="top">
29228 <column alignment="center" valignment="top">
29229 <column alignment="center" valignment="top">
29230 <column alignment="center" valignment="top">
29231 <column alignment="center" valignment="top">
29233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29236 \begin_layout Plain Layout
29242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29245 \begin_layout Plain Layout
29251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29254 \begin_layout Plain Layout
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29272 \begin_layout Plain Layout
29280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29283 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29292 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Plain Layout
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29319 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29339 \begin_layout Plain Layout
29345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29348 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29366 \begin_layout Plain Layout
29374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29377 \begin_layout Plain Layout
29383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29386 \begin_layout Plain Layout
29392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29395 \begin_layout Plain Layout
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29404 \begin_layout Plain Layout
29410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29413 \begin_layout Plain Layout
29432 \begin_layout Standard
29436 \begin_layout Plain Layout
29448 \begin_layout Standard
29452 \begin_layout Plain Layout
29462 \begin_inset Note Note
29465 \begin_layout Plain Layout
29466 The following will be displayed when the \SpecialChar LaTeX
29479 \begin_layout Standard
29480 You need to install the \SpecialChar LaTeX
29485 to see the following part of this section in the output.
29488 \begin_layout Standard
29492 \begin_layout Plain Layout
29504 \begin_layout Section
29506 \begin_inset Index idx
29509 \begin_layout Plain Layout
29510 Floats ! Float Lists
29518 \begin_layout Standard
29519 Similar to the table of contents where the sections of the document are
29520 listed, there are listings for all float types, like the figures of the
29522 You can insert them via the
29524 Insert\SpecialChar menuseparator
29526 \begin_inset space ~
29530 \begin_inset space ~
29538 \begin_layout Standard
29539 The list entries are the float captions or its short title, the float number,
29540 and the page number where they appear in the document.
29543 \begin_layout Standard
29544 You can find the list of figures and tables at the end of this document.
29547 \begin_layout Chapter
29551 \begin_layout Section
29554 \begin_inset Index idx
29557 \begin_layout Plain Layout
29558 Notes ! \SpecialChar LyX
29567 \begin_layout Standard
29568 Notes are inserted with the toolbar button
29576 Insert\SpecialChar menuseparator
29580 There are three types of notes:
29583 \begin_layout Description
29586 \begin_inset space ~
29589 Note This note type is for internal notes that won't appear in the output.
29590 Its note-box looks like this:
29591 \begin_inset Newline newline
29595 \begin_inset Newline newline
29599 \begin_inset Graphics
29600 filename clipart/LyXNoteImage.png
29602 scaleBeforeRotation
29607 \begin_inset Note Note
29610 \begin_layout Plain Layout
29611 This is text in a note box that doesn't appear in the output.
29619 \begin_layout Description
29620 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29622 when you export the document to \SpecialChar LaTeX
29625 File\SpecialChar menuseparator
29626 Export\SpecialChar menuseparator
29628 \begin_inset space ~
29631 (pdflatex) / (plain)
29634 Its note-box looks like this:
29635 \begin_inset Newline newline
29639 \begin_inset Newline newline
29643 \begin_inset Graphics
29644 filename clipart/CommentNoteImage.png
29646 scaleBeforeRotation
29651 \begin_inset Note Comment
29654 \begin_layout Plain Layout
29655 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29664 \begin_layout Description
29666 \begin_inset space ~
29669 Out This note will appear in the output as grey text.
29670 Its note-box looks like this:
29671 \begin_inset Newline newline
29675 \begin_inset Newline newline
29679 \begin_inset Graphics
29680 filename clipart/GreyedOutNoteImage.png
29682 scaleBeforeRotation
29687 \begin_inset Newline newline
29694 \begin_layout Plain Layout
29698 renewenvironment{lyxgreyedout}
29701 \begin_layout Plain Layout
29705 textcolor[gray]{0.8}
29715 \begin_inset Note Greyedout
29718 \begin_layout Plain Layout
29719 This is text of a comment that appears grey in the output.
29728 \begin_layout Plain Layout
29732 renewenvironment{lyxgreyedout}
29735 \begin_layout Plain Layout
29749 \begin_inset Note Note
29752 \begin_layout Plain Layout
29753 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29755 because greyed out notes are redefined in the preamble of this document,
29756 as described below, to have blue text.
29762 \begin_inset Newline newline
29766 \begin_inset Newline newline
29769 As you can see in the example, the first line of greyed out notes is a bit
29770 indented and greyed out notes can have footnotes.
29773 \begin_layout Standard
29774 \begin_inset VSpace bigskip
29777 When you use the toolbar button
29787 \begin_inset space ~
29793 You can switch between the three note types by right-clicking on the note-box.
29798 If you want to turn existing text into a note, mark it and click on the
29812 To change a note to text, press the backspace key when the cursor is in
29813 the first position of a note, or press the delete key when the cursor is
29814 in the very last position of the note, respectively.
29817 \begin_layout Standard
29818 \begin_inset VSpace bigskip
29821 You can change the text color of the greyed out notes in the menu
29823 Document\SpecialChar menuseparator
29824 Settings\SpecialChar menuseparator
29830 \begin_layout Section
29832 \begin_inset CommandInset label
29834 name "sec:Footnotes"
29839 \begin_inset Index idx
29842 \begin_layout Plain Layout
29849 \begin_inset Index idx
29852 \begin_layout Plain Layout
29861 \begin_layout Standard
29862 Footnotes can be inserted using the toolbar button
29865 arg "footnote-insert"
29870 Insert\SpecialChar menuseparator
29874 You will then see the following footnote-box:
29875 \begin_inset Graphics
29876 filename clipart/footnote.png
29878 scaleBeforeRotation
29886 where you can enter the footnote text.
29887 If you want to turn existing text into a footnote, mark it and click on
29913 key when the cursor is in the first position of a
29925 key when the cursor is in the very last position of the
29936 \begin_layout Standard
29937 Here is an example footnote:
29945 \begin_layout Plain Layout
29946 \begin_inset CommandInset label
29948 name "foot:This-is-an"
29952 This is an example footnote.
29965 \begin_layout Plain Layout
29969 newcounter{MyRepeatFoot}
29972 \begin_layout Plain Layout
29976 setcounter{MyRepeatFoot}{
29986 \begin_layout Standard
29987 The footnote will appear in the output as a superscript number at the text
29988 position where the footnote box is placed.
29989 The footnote text is placed at the bottom of the current page.
29990 The footnote number is calculated by \SpecialChar LaTeX
29991 ; the numbers are consecutive.
29992 Whether the footnote number is reset for every chapter depends on your
29996 \begin_layout Standard
29997 Footnotes can be referenced like floats: Insert a label into the footnote
29998 and cross-reference this label in the text as described in section
29999 \begin_inset space ~
30003 \begin_inset CommandInset ref
30005 reference "sec:Referencing-Floats"
30010 \begin_inset Newline newline
30013 This is a cross-reference of Footnote
30014 \begin_inset space ~
30018 \begin_inset CommandInset ref
30020 reference "foot:This-is-an"
30027 \begin_layout Standard
30028 \begin_inset VSpace defskip
30031 Footnotes in title environments are usually not numbered with symbols and
30032 they cannot contain several paragraphs.
30033 See for example the footnote in the titling of this document.
30036 \begin_layout Standard
30037 \begin_inset VSpace defskip
30040 Footnotes in tables are not printed by \SpecialChar LaTeX
30041 due to technical reasons.
30042 However there exists another method to print them: Instead of the footnote
30049 is inserted as \SpecialChar TeX
30051 The text of the footnote is entered as an argument of the \SpecialChar TeX
30060 \begin_inset Newline newline
30063 This was done for the following table with the command
30066 \begin_layout Standard
30073 Printed table footnote.
30078 \begin_layout Standard
30079 \begin_inset Tabular
30080 <lyxtabular version="3" rows="2" columns="1">
30081 <features tabularvalignment="middle">
30082 <column alignment="center" valignment="top">
30084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30087 \begin_layout Plain Layout
30088 This an example text.
30092 \begin_layout Plain Layout
30093 This footnote will not be printed!
30105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30108 \begin_layout Plain Layout
30109 This an example text.
30113 \begin_layout Plain Layout
30136 \begin_layout Plain Layout
30145 Printed table footnote.
30149 \begin_layout Plain Layout
30159 \begin_layout Standard
30160 Footnotes in longtables are described in section
30161 \begin_inset space ~
30165 \begin_inset CommandInset ref
30167 reference "subsec:Footnotes-in-Longtables"
30174 \begin_layout Standard
30175 Footnotes in minipage boxes are printed, but inside the box and with a different
30176 numbering because a minipage box is like a page inside a page.
30177 (For more about minipages, see section
30178 \begin_inset space ~
30182 \begin_inset CommandInset ref
30184 reference "sec:Minipages"
30188 .) To get a footnote in the minipage that is output at the bottom of the
30189 page like normal footnotes, also use the method of
30204 \begin_layout Standard
30205 \begin_inset Box Frameless
30215 height_special "totalheight"
30220 backgroundcolor "none"
30223 \begin_layout Plain Layout
30224 This an example text in a minipage.
30228 \begin_layout Plain Layout
30229 Footnote in the minipage.
30237 \begin_layout Plain Layout
30238 This an example text in a minipage.
30242 \begin_layout Plain Layout
30259 \begin_layout Standard
30263 \begin_layout Plain Layout
30272 Footnote outside the minipage.
30276 \begin_layout Plain Layout
30286 \begin_layout Standard
30287 \begin_inset VSpace defskip
30293 \begin_layout Standard
30294 To refer to the same footnote several times without printing the footnote
30295 text every time, use the command
30299 footnotemark[number]
30301 in \SpecialChar TeX
30303 \begin_inset Newline newline
30306 As you do not know the number of the repeating footnote while you are writing
30307 the text, you have to store its number.
30308 For the following footnote mark example, these commands were inserted in
30310 code after Footnote
30311 \begin_inset space ~
30315 \begin_inset CommandInset ref
30317 reference "foot:This-is-an"
30321 to store the footnote number:
30324 \begin_layout Standard
30329 newcounter{MyRepeatFoot}
30330 \begin_inset Newline newline
30335 setcounter{MyRepeatFoot}{
30340 \begin_layout Standard
30341 The footnote mark was then created with this command:
30344 \begin_layout Standard
30354 \begin_layout Standard
30355 Here is a repeated footnote:
30363 \begin_layout Plain Layout
30377 \begin_layout Standard
30378 If you want to repeat the previous footnote, you can omit the storage of
30379 the footnote number and just use this command instead:
30382 \begin_layout Standard
30392 \begin_layout Standard
30393 Here is another repeated footnote:
30401 \begin_layout Plain Layout
30415 \begin_layout Subsection
30417 \begin_inset CommandInset label
30419 name "subsec:Footnote-Numbering"
30424 \begin_inset Index idx
30427 \begin_layout Plain Layout
30428 Footnotes ! Numbering
30436 \begin_layout Standard
30437 To reset the footnote number back to 1 after each section
30439 , add this command to your document preamble:
30442 \begin_layout Standard
30447 @addtoreset{footnote}{section}
30450 \begin_layout Standard
30451 \begin_inset VSpace bigskip
30454 The following preamble command changes the footnote numbering style to small
30458 \begin_layout Standard
30470 \begin_layout Standard
30474 \begin_layout Plain Layout
30487 This is a footnote with roman numbering:
30491 \begin_layout Plain Layout
30492 This is an example footnote with roman numbering.
30500 \begin_layout Standard
30501 To change the numbering style to capital roman numerals replace in the command
30516 \begin_inset Quotes eld
30520 \begin_inset Quotes erd
30523 footnotes with capital or small Latin letters use
30537 \begin_inset Quotes eld
30541 \begin_inset Quotes erd
30544 footnotes with symbols use
30553 \begin_layout Standard
30554 \begin_inset Note Greyedout
30557 \begin_layout Plain Layout
30562 You can only number 26 footnotes with Latin letters, because this numbering
30563 is limited to single letters.
30569 \begin_inset Newline newline
30573 \begin_inset Note Greyedout
30576 \begin_layout Plain Layout
30581 You can only number 9 footnotes with symbols.
30589 \begin_layout Standard
30590 To return to the default numbering style after you have changed to another
30603 in the command above.
30607 \begin_layout Plain Layout
30623 \begin_layout Standard
30624 \begin_inset VSpace bigskip
30630 \begin_layout Standard
30631 If you want to have footnotes numbered in the scheme
30632 \begin_inset Quotes eld
30636 \begin_inset Quotes erd
30639 , add the following command to your document preamble:
30642 \begin_layout Standard
30647 numberwithin{footnote}{chapter}
30650 \begin_layout Standard
30651 To be able to use the command
30660 \begin_inset space ~
30665 in the document settings the option
30668 \begin_inset space ~
30672 \begin_inset space ~
30676 \begin_inset space ~
30684 \begin_layout Standard
30688 \begin_layout Plain Layout
30692 numberwithin{footnote}{chapter}
30697 This is another example footnote:
30703 \begin_layout Plain Layout
30704 This is a footnote numbered in the scheme
30705 \begin_inset Quotes eld
30709 \begin_inset Quotes erd
30723 \begin_layout Plain Layout
30739 \begin_layout Standard
30740 \begin_inset Note Greyedout
30743 \begin_layout Plain Layout
30754 always prints out the footnote number as arabic number; previous redefinitions
30755 to get non-arabic numbers are overwritten.
30763 \begin_layout Standard
30764 So to get for example the scheme
30765 \begin_inset Quotes eld
30771 \begin_inset Quotes erd
30774 , use this command instead of
30783 \begin_layout Standard
30797 \begin_layout Subsection
30799 \begin_inset Index idx
30802 \begin_layout Plain Layout
30803 Footnotes ! Placement
30811 \begin_layout Standard
30812 If you have several footnotes in one page, they appear without vertical
30813 space between them at the bottom of the page.
30814 To make them more readable you can e.
30815 \begin_inset space \thinspace{}
30819 \begin_inset space \space{}
30823 \begin_inset space \thinspace{}
30826 mm space with the following preamble command:
30829 \begin_layout Standard
30839 \begin_inset Newline newline
30853 \begin_layout Standard
30854 \begin_inset VSpace bigskip
30857 In a two-column document the footnotes appear at the bottom of every column,
30859 \begin_inset space ~
30863 \begin_inset CommandInset ref
30865 reference "fig:Standard-footnote-placement"
30870 If the footnotes should only appear at the bottom of the right column,
30872 \begin_inset space ~
30876 \begin_inset CommandInset ref
30878 reference "fig:Footnote-placement-in"
30882 , use the \SpecialChar LaTeX
30888 \begin_inset Index idx
30891 \begin_layout Plain Layout
30893 -packages ! ftnright
30898 with this command in the document preamble:
30901 \begin_layout Standard
30906 usepackage{ftnright}
30909 \begin_layout Standard
30910 \begin_inset Float figure
30916 \begin_layout Plain Layout
30920 \begin_layout Plain Layout
30930 \begin_inset Graphics
30931 filename clipart/without_fntright.pdf
30933 scaleBeforeRotation
30941 \begin_layout Plain Layout
30951 \begin_layout Plain Layout
30952 \begin_inset Caption Standard
30954 \begin_layout Plain Layout
30955 \begin_inset CommandInset label
30957 name "fig:Standard-footnote-placement"
30961 Standard footnote placement in two-column documents.
30974 \begin_layout Standard
30975 \begin_inset Float figure
30981 \begin_layout Plain Layout
30985 \begin_layout Plain Layout
30995 \begin_inset Graphics
30996 filename clipart/with_fntright.pdf
30998 scaleBeforeRotation
31006 \begin_layout Plain Layout
31016 \begin_layout Plain Layout
31017 \begin_inset Caption Standard
31019 \begin_layout Plain Layout
31020 \begin_inset CommandInset label
31022 name "fig:Footnote-placement-in"
31026 Footnote placement in two-column documents when the \SpecialChar LaTeX
31044 \begin_layout Standard
31045 \begin_inset VSpace bigskip
31048 In some scientific literature it is usual to collect the footnotes and print
31049 them in a separate paragraph at the end of a section, as in Figure
31050 \begin_inset space ~
31054 \begin_inset CommandInset ref
31056 reference "fig:Endnotes"
31061 They are then called
31062 \begin_inset Quotes eld
31066 \begin_inset Quotes erd
31070 \begin_inset Index idx
31073 \begin_layout Plain Layout
31079 To use endnotes instead of footnotes in your document, load in the menu
31082 Document\SpecialChar menuseparator
31083 Settings\SpecialChar menuseparator
31089 \begin_inset space ~
31093 \begin_inset space ~
31099 To insert the collected footnotes, insert the command
31102 \begin_layout Standard
31110 \begin_layout Standard
31111 in \SpecialChar TeX
31112 Code at the end of a section or chapter.
31115 \begin_layout Standard
31116 \begin_inset Float figure
31121 \begin_layout Plain Layout
31126 \begin_layout Plain Layout
31136 \begin_inset Graphics
31137 filename clipart/endnotes.pdf
31138 scaleBeforeRotation
31146 \begin_layout Plain Layout
31156 \begin_layout Plain Layout
31157 \begin_inset Caption Standard
31159 \begin_layout Plain Layout
31160 \begin_inset CommandInset label
31162 name "fig:Endnotes"
31166 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31180 \begin_layout Standard
31181 \begin_inset VSpace medskip
31184 The paragraph heading for the endnotes isn't automatically translated into
31185 the document language, this must be done manually.
31186 The following preamble command translates the default English
31187 \begin_inset Quotes eld
31191 \begin_inset Quotes erd
31195 \begin_inset Quotes eld
31199 \begin_inset Quotes erd
31205 \begin_layout Standard
31212 notesname}{Anmerkungen}
31215 \begin_layout Standard
31216 \begin_inset VSpace medskip
31219 The numbering of endnotes can be changed like the footnote numbering as
31220 described in section
31221 \begin_inset space ~
31225 \begin_inset CommandInset ref
31227 reference "subsec:Footnote-Numbering"
31231 ; just replace the command
31244 To reset the endnote number use the command
31250 as described in section
31251 \begin_inset space ~
31255 \begin_inset CommandInset ref
31257 reference "subsec:Footnote-Numbering"
31261 and replace the command parameter
31272 \begin_layout Standard
31273 For endnotes there is the command
31277 endnotemark[number]
31279 similar to the command
31285 , that is described in section
31286 \begin_inset space ~
31290 \begin_inset CommandInset ref
31292 reference "sec:Footnotes"
31299 \begin_layout Standard
31300 \begin_inset VSpace bigskip
31303 Footnotes can also be placed in the page margin and the footnote text alignment
31304 can be changed, see the \SpecialChar LaTeX
31310 \begin_inset Index idx
31313 \begin_layout Plain Layout
31315 -packages ! footmisc
31321 \begin_inset CommandInset citation
31327 for more information about this.
31330 \begin_layout Standard
31331 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31333 \begin_inset CommandInset citation
31335 key "latexcompanion,latexguide,latexbook"
31345 \begin_inset Index idx
31348 \begin_layout Plain Layout
31350 -packages ! KOMA-Script
31355 document class, you can adjust all footnote settings using class-specific
31357 \begin_inset CommandInset citation
31366 \begin_layout Section
31368 \begin_inset Index idx
31371 \begin_layout Plain Layout
31372 Notes ! Margin Notes
31380 \begin_layout Standard
31381 Margin notes look and behave in \SpecialChar LyX
31383 They are inserted via the menu
31385 Insert\SpecialChar menuseparator
31387 \begin_inset space ~
31392 or the toolbar button
31395 arg "marginalnote-insert"
31409 \begin_inset Quotes eld
31413 \begin_inset Quotes erd
31416 appears where you can enter the text of the margin note.
31419 \begin_layout Standard
31420 At the side is an example margin note.
31425 \begin_inset Marginal
31428 \begin_layout Plain Layout
31429 This is a margin note.
31437 \begin_layout Standard
31438 Margin notes appear at the right side in single-sided documents.
31439 In double-sided documents they appear in the outer margin – left on even
31440 pages, right on odd pages.
31441 The text of margin notes is aligned opposite to the outer margin – right-aligne
31442 d when the note appears in the left margin.
31443 The first line of the margin note is placed at the position of the text
31444 line where it is inserted in the document.
31447 \begin_layout Standard
31448 \begin_inset VSpace bigskip
31451 To place the margin note in the inner margin, add the command
31454 \begin_layout Standard
31462 \begin_layout Standard
31463 in \SpecialChar TeX
31464 Code before a margin note.
31465 The new placement is valid for all subsequent margin notes.
31470 \begin_layout Plain Layout
31480 \begin_inset Marginal
31483 \begin_layout Plain Layout
31484 This is a margin note in the inner margin.
31492 \begin_inset Newline newline
31498 \begin_inset Note Greyedout
31501 \begin_layout Plain Layout
31506 There is often not enough space in the inner margin so that the notes are
31507 not correctly displayed in the output.
31515 \begin_layout Standard
31516 To return to the default placement insert the command
31519 \begin_layout Standard
31527 \begin_layout Standard
31528 in \SpecialChar TeX
31533 \begin_layout Plain Layout
31543 \begin_inset Note Greyedout
31546 \begin_layout Plain Layout
31551 The command is ignored when it is within a paragraph where also the command
31566 \begin_layout Standard
31567 \begin_inset VSpace bigskip
31574 \begin_inset Marginal
31577 \begin_layout Plain Layout
31578 AVeryLongMarginParWord that isn't hyphenated.
31586 Similar to the case described in section
31587 \begin_inset space ~
31591 \begin_inset CommandInset ref
31593 reference "subsec:Multiple-Lines-in"
31597 , long words cannot be hyphenated when they are the first word in a margin
31599 To avoid this, insert 0
31600 \begin_inset space \thinspace{}
31603 pt horizontal space before the word
31608 \begin_inset Marginal
31611 \begin_layout Plain Layout
31612 \begin_inset space \hspace*{}
31616 AVeryLongMarginParWord that is hyphenated.
31624 \begin_layout Standard
31625 \begin_inset VSpace bigskip
31631 \begin_layout Standard
31632 \begin_inset Note Greyedout
31635 \begin_layout Plain Layout
31640 Margin notes can normally not be used inside tables, floats, and footnotes.
31648 \begin_layout Standard
31649 \begin_inset VSpace bigskip
31655 \begin_layout Standard
31659 \begin_layout Plain Layout
31669 \begin_inset Note Note
31672 \begin_layout Plain Layout
31673 The following section will only be displayed when the \SpecialChar LaTeX
31686 \begin_layout Standard
31687 This restriction can be evaded by using the \SpecialChar LaTeX
31693 \begin_inset Index idx
31696 \begin_layout Plain Layout
31698 -packages ! marginnote
31704 By adding these two lines to your document preamble, the command used by
31706 for margin notes is redefined to use the command provided by the
31713 \begin_layout Standard
31718 usepackage{marginnote}
31719 \begin_inset Newline newline
31731 \begin_layout Standard
31732 This is also used in this document because
31736 has another useful feature: You can set a vertical offset for the note.
31737 This is often needed when too many margin notes are too close together
31738 or for a better page layout.
31739 The offset is set in \SpecialChar LyX
31740 as \SpecialChar TeX
31741 Code directly after the margin note in the scheme
31744 \begin_layout Standard
31750 \begin_layout Standard
31751 where the offset is a length with one of the units listed in Table
31752 \begin_inset space ~
31756 \begin_inset CommandInset ref
31758 reference "tab:Units"
31763 A negative value shifts the note up, a positive value shifts it down.
31767 For example the margin note beside this text line is shifted up 1.5
31768 \begin_inset space \thinspace{}
31771 cm with the \SpecialChar TeX
31773 \begin_inset Quotes eld
31783 \begin_inset Quotes erd
31787 \begin_inset Marginal
31790 \begin_layout Plain Layout
31791 This margin note is shifted up 1.5
31792 \begin_inset space \thinspace{}
31795 cm from its original position.
31807 \begin_layout Plain Layout
31817 \begin_layout Standard
31818 \begin_inset VSpace medskip
31825 you can also change the alignment of the text in the margin note.
31826 For example the commands
31829 \begin_layout Standard
31836 raggedleftmarginnote}{
31839 \begin_inset Newline newline
31846 raggedrightmarginnote}{
31851 \begin_layout Standard
31852 set the alignment to centered.
31857 raggedleftmarginnote
31859 denotes margin notes that appear at the left side.
31866 \begin_layout Plain Layout
31872 raggedleftmarginnote}{
31877 \begin_layout Plain Layout
31883 raggedrightmarginnote}{
31891 \begin_inset Marginal
31894 \begin_layout Plain Layout
31895 The text of this margin note is centered.
31906 \begin_layout Standard
31913 raggedleftmarginnote}{
31916 \begin_inset Newline newline
31923 raggedrightmarginnote}{
31932 \begin_layout Plain Layout
31938 raggedleftmarginnote}{
31943 \begin_layout Plain Layout
31949 raggedrightmarginnote}{
31959 \begin_layout Standard
31960 \begin_inset VSpace medskip
31963 For the other features of
31967 refer to its documentation
31968 \begin_inset CommandInset citation
31977 \begin_layout Standard
31978 \begin_inset VSpace bigskip
31981 You can adjust the layout of margin notes by changing its definition.
31982 To create for example a header for all margin notes with the underlined,
31983 sans-serif, and bold header text
31984 \begin_inset Quotes eld
31996 \begin_inset Quotes erd
31999 , add this to your document preamble:
32002 \begin_layout Standard
32012 \begin_inset Newline newline
32022 \begin_inset Newline newline
32026 \begin_inset Phantom HPhantom
32029 \begin_layout Plain Layout
32032 \begin_inset space ~
32048 underbar{Attention!}}}%
32049 \begin_inset Newline newline
32053 \begin_inset Phantom HPhantom
32056 \begin_layout Plain Layout
32059 \begin_inset space ~
32076 \begin_layout Standard
32083 \begin_layout Plain Layout
32094 \begin_layout Plain Layout
32105 \begin_layout Plain Layout
32113 underbar{Attention!}}}%
32116 \begin_layout Plain Layout
32130 \begin_inset Marginal
32133 \begin_layout Plain Layout
32134 This is a margin note with a defined heading.
32146 \begin_layout Plain Layout
32160 \begin_layout Plain Layout
32177 \begin_inset Note Note
32180 \begin_layout Plain Layout
32181 The margin note format is changed only for this example.
32189 \begin_layout Standard
32193 \begin_layout Plain Layout
32203 \begin_inset Note Note
32206 \begin_layout Plain Layout
32207 The following will be displayed when the \SpecialChar LaTeX
32220 \begin_layout Standard
32221 You need to install the \SpecialChar LaTeX
32226 to see the following part of this section in the output.
32229 \begin_layout Standard
32233 \begin_layout Plain Layout
32245 \begin_layout Chapter
32249 \begin_layout Section
32251 \begin_inset Index idx
32254 \begin_layout Plain Layout
32255 Boxes ! Introduction
32263 \begin_layout Standard
32264 Boxes are used to format a block of text.
32265 Boxes can be used to write documents with multiple languages, see section
32266 \begin_inset space ~
32270 \begin_inset CommandInset ref
32272 reference "sec:Minipages"
32276 , to frame texts, see section
32277 \begin_inset space ~
32281 \begin_inset CommandInset ref
32283 reference "sec:Decoration"
32287 , to prevent words from being hyphenated, see section
32288 \begin_inset space ~
32292 \begin_inset CommandInset ref
32294 reference "sec:Prevent-Hyphenation"
32298 , to align text, see section
32299 \begin_inset space ~
32303 \begin_inset CommandInset ref
32305 reference "subsec:Vertical-Alignment"
32309 , or to set the background color of texts, see section
32310 \begin_inset space ~
32314 \begin_inset CommandInset ref
32316 reference "sec:Colored-Boxes"
32323 \begin_layout Standard
32324 Boxes can be inserted with the menu
32326 Insert\SpecialChar menuseparator
32329 or the toolbar button
32332 arg "box-insert Frameless"
32336 A grey box with the label
32341 \begin_inset Graphics
32342 filename clipart/BoxInsetDefault.png
32344 scaleBeforeRotation
32349 The box type can be specified by right-clicking on the box and selecting
32355 The box dialog offers the
32358 \begin_inset space ~
32380 is the default for new boxes and is explained in section
32381 \begin_inset space ~
32385 \begin_inset CommandInset ref
32387 reference "sec:Minipages"
32395 is described in section
32396 \begin_inset space ~
32400 \begin_inset CommandInset ref
32402 reference "sec:Parboxes"
32411 \begin_inset CommandInset ref
32413 reference "sec:Prevent-Hyphenation"
32420 \begin_layout Standard
32421 Boxes are not numbered and can therefore not be referenced like floats or
32425 \begin_layout Standard
32426 \begin_inset Note Greyedout
32429 \begin_layout Plain Layout
32434 Boxes must not be the item in an
32450 \begin_layout Standard
32451 \begin_inset Note Greyedout
32454 \begin_layout Plain Layout
32459 For an unknown reason you can only set the
32462 \begin_inset space ~
32471 when you use a framed box.
32475 \begin_inset space ~
32480 type and without frames are explained in section
32481 \begin_inset space ~
32485 \begin_inset CommandInset ref
32487 reference "sec:Prevent-Hyphenation"
32499 \begin_layout Section
32501 \begin_inset CommandInset label
32503 name "sec:Box-Dialog"
32508 \begin_inset Index idx
32511 \begin_layout Plain Layout
32520 \begin_layout Subsection
32522 \begin_inset Index idx
32525 \begin_layout Plain Layout
32534 \begin_layout Standard
32535 In the box dialog you can adjust the box geometry in the fields
32544 The available units for the geometry are explained in Table
32545 \begin_inset space ~
32549 \begin_inset CommandInset ref
32551 reference "tab:Units"
32560 offers the following additional sizes:
32563 \begin_layout Description
32564 Depth This is the plain text
32565 \begin_inset Quotes eld
32569 \begin_inset Quotes erd
32573 It ignores the total depth when there are multiple text lines in the box:
32574 \begin_inset Newline newline
32578 \begin_inset Newline newline
32582 \begin_inset Newline newline
32586 \begin_inset Box Boxed
32596 height_special "depth"
32601 backgroundcolor "none"
32604 \begin_layout Plain Layout
32606 Box height set to 1
32607 \begin_inset space \thinspace{}
32616 \begin_inset Newline newline
32620 \begin_inset Newline newline
32626 \begin_layout Description
32627 Height This is the height of the text that is inside the box.
32629 \begin_inset space \thinspace{}
32633 \begin_inset space \space{}
32636 2 for this size will set the box height to 2
32637 \begin_inset space ~
32640 times the text height:
32641 \begin_inset Box Boxed
32651 height_special "height"
32656 backgroundcolor "none"
32659 \begin_layout Plain Layout
32661 Box height set to 2
32662 \begin_inset space \thinspace{}
32673 \begin_layout Description
32675 \begin_inset space ~
32678 Height This is the Height
32679 \begin_inset space \thinspace{}
32683 \begin_inset space \thinspace{}
32687 \begin_inset Box Boxed
32697 height_special "totalheight"
32702 backgroundcolor "none"
32705 \begin_layout Plain Layout
32707 Box height set to 1
32708 \begin_inset space \thinspace{}
32712 \begin_inset space ~
32723 \begin_layout Description
32724 Width This sets the width of the box as height:
32725 \begin_inset Box Boxed
32735 height_special "width"
32740 backgroundcolor "none"
32743 \begin_layout Plain Layout
32745 Box height set to 1
32746 \begin_inset space \thinspace{}
32757 \begin_layout Subsection
32759 \begin_inset Index idx
32762 \begin_layout Plain Layout
32771 \begin_layout Standard
32772 When you have chosen an
32775 \begin_inset space ~
32780 , the vertical box alignment can be:
32783 \begin_layout Description
32784 Top This is an example text line.
32786 \begin_inset Box Boxed
32796 height_special "totalheight"
32801 backgroundcolor "none"
32804 \begin_layout Plain Layout
32806 This box is top-aligned.
32811 This is an example text line.
32814 \begin_layout Description
32815 Middle This is an example text line.
32817 \begin_inset Box Boxed
32827 height_special "totalheight"
32832 backgroundcolor "none"
32835 \begin_layout Plain Layout
32837 This box is middle-aligned.
32842 This is an example text line.
32845 \begin_layout Description
32846 Bottom This is an example text line.
32848 \begin_inset Box Boxed
32858 height_special "totalheight"
32863 backgroundcolor "none"
32866 \begin_layout Plain Layout
32868 This box is bottom-aligned.
32873 This is an example text line.
32876 \begin_layout Standard
32877 \begin_inset Note Greyedout
32880 \begin_layout Plain Layout
32885 The vertical box alignment can be lost in the output when you have two
32886 boxes in a line and one has e.
32887 \begin_inset space \thinspace{}
32891 \begin_inset space \space{}
32894 a shadow and the other one not.
32902 \begin_layout Standard
32903 The horizontal box alignment can be set via \SpecialChar LyX
32904 's paragraph dialog when you
32905 set the box into its own paragraph.
32908 \begin_layout Standard
32909 \begin_inset VSpace bigskip
32912 When you have chosen an
32915 \begin_inset space ~
32920 , the box content can be aligned vertically to:
32923 \begin_layout Description
32924 top This is an example text line.
32926 \begin_inset Box Boxed
32936 height_special "totalheight"
32941 backgroundcolor "none"
32944 \begin_layout Plain Layout
32946 This box text is top-aligned.
32951 This is an example text line.
32954 \begin_layout Description
32955 middle This is an example text line.
32957 \begin_inset Box Boxed
32967 height_special "totalheight"
32972 backgroundcolor "none"
32975 \begin_layout Plain Layout
32977 This box text is middle-aligned.
32982 This is an example text line.
32985 \begin_layout Description
32986 bottom This is an example text line.
32988 \begin_inset Box Boxed
32998 height_special "totalheight"
33003 backgroundcolor "none"
33006 \begin_layout Plain Layout
33008 This box text is bottom-aligned.
33013 This is an example text line.
33016 \begin_layout Description
33017 stretch This is an example text line.
33019 \begin_inset Box Boxed
33029 height_special "totalheight"
33034 backgroundcolor "none"
33037 \begin_layout Plain Layout
33042 \begin_layout Plain Layout
33047 \begin_layout Plain Layout
33054 This is an example text line.
33057 \begin_layout Standard
33058 To stretch the box content, it must consist of more than one paragraph.
33059 In the example above every text line is in an own paragraph.
33062 \begin_layout Standard
33063 \begin_inset VSpace bigskip
33066 To align the box content horizontally you can use \SpecialChar LyX
33067 's paragraph dialog when
33071 \begin_inset space ~
33079 \begin_layout Standard
33081 \begin_inset Box Boxed
33091 height_special "totalheight"
33096 backgroundcolor "none"
33099 \begin_layout Plain Layout
33104 \begin_layout Plain Layout
33109 \begin_layout Plain Layout
33119 \begin_layout Standard
33120 If you have not set an
33123 \begin_inset space ~
33128 , you can align the box content horizontally in the box dialog.
33129 \begin_inset Separator parbreak
33135 \begin_layout Standard
33137 \begin_inset Box Boxed
33147 height_special "totalheight"
33152 backgroundcolor "none"
33155 \begin_layout Plain Layout
33156 This box text is horizontally stretched.
33164 \begin_layout Subsection
33166 \begin_inset CommandInset label
33168 name "sec:Decoration"
33173 \begin_inset Index idx
33176 \begin_layout Plain Layout
33185 \begin_layout Standard
33186 The type of the box can be specified in the box dialog in the drop-down
33192 The following types are possible:
33195 \begin_layout Description
33197 \begin_inset space ~
33200 frame Nothing is drawn.
33203 \begin_layout Description
33205 \begin_inset space ~
33209 \begin_inset space ~
33212 frame This draws a rectangular frame around the box.
33213 The frame line thickness can be specified.
33215 \begin_inset Box Boxed
33225 height_special "totalheight"
33230 backgroundcolor "none"
33233 \begin_layout Plain Layout
33243 \begin_layout Description
33245 \begin_inset space ~
33249 \begin_inset space ~
33252 thin This draws an oval frame around the box.
33253 The frame line thickness has the size 0.4
33254 \begin_inset space \thinspace{}
33259 \begin_inset Box ovalbox
33269 height_special "totalheight"
33274 backgroundcolor "none"
33277 \begin_layout Plain Layout
33287 \begin_layout Description
33289 \begin_inset space ~
33293 \begin_inset space ~
33296 thick This draws an oval frame around the box.
33297 The frame line thickness has the size 0.8
33298 \begin_inset space \thinspace{}
33303 \begin_inset Box Ovalbox
33313 height_special "totalheight"
33318 backgroundcolor "none"
33321 \begin_layout Plain Layout
33331 \begin_layout Description
33333 \begin_inset space ~
33336 shadow This draws a rectangular frame with a shadow around the box.
33337 The frame line thickness and the shadow can be specified.
33339 \begin_inset Box Shadowbox
33349 height_special "totalheight"
33354 backgroundcolor "none"
33357 \begin_layout Plain Layout
33367 \begin_layout Description
33369 \begin_inset space ~
33372 background This draws a box with a red background.
33373 Unlike colored boxes
33377 \begin_layout Plain Layout
33379 \begin_inset space \thinspace{}
33383 \begin_inset CommandInset ref
33385 reference "sec:Colored-Boxes"
33394 , it always uses the whole column width and the box is set as its own paragraph.
33396 \begin_inset Box Shaded
33406 height_special "totalheight"
33411 backgroundcolor "none"
33414 \begin_layout Plain Layout
33415 Shaded background box
33423 \begin_layout Description
33425 \begin_inset space ~
33429 \begin_inset space ~
33432 frame This draws a double-line rectangular frame around the box.
33433 The line thickness of the inner frame is 0.75
33434 \begin_inset space \thinspace{}
33438 \begin_inset space ~
33441 thickness, the thickness of the outer frame is 1.5
33442 \begin_inset space \thinspace{}
33446 \begin_inset space ~
33450 The distance between the lines is 1.5
33451 \begin_inset space \thinspace{}
33455 \begin_inset space ~
33459 \begin_inset space \thinspace{}
33463 \begin_inset space \thinspace{}
33467 \begin_inset space \thinspace{}
33472 \begin_inset Box Doublebox
33482 height_special "totalheight"
33487 backgroundcolor "none"
33490 \begin_layout Plain Layout
33492 Double rectangular box
33500 \begin_layout Standard
33501 \begin_inset VSpace bigskip
33505 's box label will reflect the different frame types.
33506 To be able to use all types, the \SpecialChar LaTeX
33512 \begin_inset Index idx
33515 \begin_layout Plain Layout
33517 -packages ! fancybox
33525 \begin_layout Standard
33526 \begin_inset VSpace bigskip
33529 When you use the decoration
33531 simple rectangular frame
33533 and no inner box, you can allow page breaks within a box.
33534 Note that then, unlike other framed boxes, the frame always uses the whole
33535 column width and the box is set as its own paragraph:
33536 \begin_inset Box Framed
33546 height_special "totalheight"
33551 backgroundcolor "none"
33554 \begin_layout Plain Layout
33555 Allow page break box
33563 \begin_layout Section
33565 \begin_inset Index idx
33568 \begin_layout Plain Layout
33569 Boxes ! Customization
33577 \begin_layout Standard
33578 The diameter of the round corners of the oval boxes can be set with the
33589 \begin_layout Standard
33597 \begin_layout Standard
33598 sets the diameter to 1
33599 \begin_inset space \thinspace{}
33606 \begin_layout Standard
33614 \begin_layout Standard
33615 sets the diameter to
33618 \begin_inset space \thinspace{}
33622 \begin_inset space \thinspace{}
33625 minimum(width and height of box)
33637 \begin_layout Standard
33641 \begin_layout Plain Layout
33651 \begin_inset Box Ovalbox
33661 height_special "totalheight"
33666 backgroundcolor "none"
33669 \begin_layout Plain Layout
33678 \begin_inset space \thinspace{}
33682 \begin_inset space \thinspace{}
33686 \begin_inset space \thinspace{}
33698 \begin_layout Plain Layout
33710 \begin_layout Standard
33711 \begin_inset VSpace bigskip
33717 \begin_layout Standard
33718 The default background color red of
33722 boxes can either be changed locally with the command
33726 definecolor{shadecolor}
33728 or globally with the menu
33730 Tools\SpecialChar menuseparator
33731 Preferences\SpecialChar menuseparator
33732 Colors\SpecialChar menuseparator
33734 \begin_inset space ~
33746 command is explained in section
33747 \begin_inset space ~
33751 \begin_inset CommandInset ref
33753 reference "sec:Colored-Tables"
33761 \begin_layout Plain Layout
33768 requires the \SpecialChar LaTeX
33773 in the preamble, see section
33774 \begin_inset space ~
33778 \begin_inset CommandInset ref
33780 reference "sec:Colored-Boxes"
33789 For example the appearance of the following shaded background box is set
33790 with the \SpecialChar TeX
33794 \begin_layout Standard
33799 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33802 \begin_layout Standard
33806 \begin_layout Plain Layout
33810 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33816 \begin_inset Box Shaded
33826 height_special "totalheight"
33831 backgroundcolor "none"
33834 \begin_layout Plain Layout
33837 This is yellow text in a
33847 box with dark green background.
33856 \begin_layout Plain Layout
33860 definecolor{shadecolor}{rgb}{1,0,0}
33868 \begin_layout Standard
33869 \begin_inset VSpace bigskip
33872 Manually changed sizes and colors are valid for all boxes following the
33873 commands that change them.
33876 \begin_layout Section
33878 \begin_inset CommandInset label
33880 name "sec:Minipages"
33885 \begin_inset Index idx
33888 \begin_layout Plain Layout
33897 \begin_layout Standard
33898 Minipages are treated by \SpecialChar LaTeX
33899 as pages within pages and can therefore for example
33900 have their own footnotes.
33903 \begin_layout Standard
33904 Minipages are useful when you write documents with different languages.
33907 \begin_layout Standard
33908 Below are two example minipages side by side.
33909 Their width is set to 45
33910 \begin_inset space \thinspace{}
33913 col% and they are separated by a horizontal fill, that was inserted via
33916 Insert\SpecialChar menuseparator
33918 \begin_inset space ~
33921 Formatting\SpecialChar menuseparator
33923 \begin_inset space ~
33929 \begin_inset Newpage newpage
33935 \begin_layout Standard
33936 \begin_inset Box Frameless
33946 height_special "totalheight"
33951 backgroundcolor "none"
33954 \begin_layout Plain Layout
33957 Dies ist ein deutscher Text.
33958 Dies ist ein deutscher Text.
33959 Dies ist ein deutscher Text.
33960 Dies ist ein deutscher Text.
33961 Dies ist ein deutscher Text.
33962 Dies ist ein deutscher Text.
33963 Dies ist ein deutscher Text.
33964 Dies ist ein deutscher Text.
33965 Dies ist ein deutscher Text.
33966 Dies ist ein deutscher Text.
33967 Dies ist ein deutscher Text.
33968 Dies ist ein deutscher Text.
33969 Dies ist ein deutscher Text
33973 \begin_layout Plain Layout
33976 Dies ist eine deutsche Fußnote.
33982 Dies ist ein deutscher Text.
33983 Dies ist ein deutscher Text.
33989 \begin_inset space \hfill{}
33993 \begin_inset Box Frameless
34003 height_special "totalheight"
34008 backgroundcolor "none"
34011 \begin_layout Plain Layout
34012 This is an English Text.
34013 This is an English Text.
34014 This is an English Text.
34015 This is an English Text.
34016 This is an English Text.
34017 This is an English Text.
34018 This is an English Text.
34019 This is an English Text.
34020 This is an English Text.
34021 This is an English Text.
34022 This is an English Text.
34023 This is an English Text.
34024 This is an English Text.
34025 This is an English Text.
34026 This is an English Text.
34027 This is an English Text.
34031 \begin_layout Plain Layout
34032 This is an English footnote.
34037 This is an English Text.
34045 \begin_layout Standard
34046 \begin_inset VSpace bigskip
34049 The document-wide paragraph settings are ignored within minipages.
34050 That means that there will be no space between paragraphs in minipages
34051 although you set it to e.
34052 \begin_inset space \thinspace{}
34056 \begin_inset space \space{}
34063 in the document settings.
34066 \begin_layout Standard
34067 Minipages can also be used to set a background color for text parts, see
34069 \begin_inset space ~
34073 \begin_inset CommandInset ref
34075 reference "sec:Colored-Boxes"
34082 \begin_layout Standard
34083 \begin_inset Note Greyedout
34086 \begin_layout Plain Layout
34091 You cannot have floats or margin notes inside minipages but minipages can
34092 be used inside tables, floats, and other boxes.
34100 \begin_layout Standard
34101 \begin_inset VSpace bigskip
34107 \begin_layout Standard
34109 has also basic support for minipages whose size is automatically determined
34110 by the width of their contents, via the module
34112 Variable-width Minipages
34115 The \SpecialChar LyX
34118 varwidth-floats-side-by-side
34120 gives examples of variable-width minipages used for placing two floats
34124 \begin_layout Section
34126 \begin_inset CommandInset label
34128 name "sec:Parboxes"
34133 \begin_inset Index idx
34136 \begin_layout Plain Layout
34145 \begin_layout Standard
34146 Parboxes are very similar to minipages with the difference that they cannot
34148 \begin_inset Separator parbreak
34154 \begin_layout Standard
34156 \begin_inset Box Frameless
34166 height_special "totalheight"
34171 backgroundcolor "none"
34174 \begin_layout Plain Layout
34175 This a text within a parbox.
34176 This a text within a parbox.
34179 \begin_layout Plain Layout
34180 This footnote won't appear:
34184 \begin_layout Plain Layout
34185 This footnote is inside a parbox and will therefore not appear.
34198 \begin_layout Section
34199 Boxes for Words and Characters
34200 \begin_inset Index idx
34203 \begin_layout Plain Layout
34204 Boxes ! for Characters
34212 \begin_layout Subsection
34213 Prevent Hyphenation
34214 \begin_inset CommandInset label
34216 name "sec:Prevent-Hyphenation"
34221 \begin_inset Index idx
34224 \begin_layout Plain Layout
34225 Boxes ! to Prevent Hyphenation
34233 \begin_layout Standard
34234 You can use the box type
34238 to prevent words or text from being hyphenated.
34239 \begin_inset Newline newline
34242 Here is an example text:
34245 \begin_layout Standard
34246 This line is an example to show how you can prevent the hyphenation of
34247 \begin_inset Quotes eld
34251 \begin_inset Quotes erd
34257 \begin_layout Standard
34258 To prevent the hyphenation of the word
34259 \begin_inset Quotes eld
34263 \begin_inset Quotes erd
34266 , put the word into a box, set the
34269 \begin_inset space ~
34278 and use no explicit width.
34281 \begin_layout Standard
34282 This is the result:
34285 \begin_layout Standard
34286 This line is an example to show how you can prevent the hyphenation of
34287 \begin_inset Box Frameless
34297 height_special "totalheight"
34302 backgroundcolor "none"
34305 \begin_layout Plain Layout
34306 \begin_inset Quotes eld
34310 \begin_inset Quotes erd
34321 \begin_layout Standard
34322 You can alternatively set the command
34323 \begin_inset Quotes eld
34333 \begin_inset Quotes grd
34336 as \SpecialChar TeX
34337 Code directly before the word:
34340 \begin_layout Standard
34341 This line is an example to show how you can prevent the hyphenation of
34342 \begin_inset Quotes eld
34349 \begin_layout Plain Layout
34359 \begin_inset Quotes erd
34365 \begin_layout Standard
34366 Of course the word now protrudes over the side margin.
34367 To avoid this, add via the menu
34369 Insert\SpecialChar menuseparator
34370 Formatting\SpecialChar menuseparator
34372 \begin_inset space ~
34376 \begin_inset space ~
34384 arg "newline-insert newline"
34387 ) a line break before the word:
34390 \begin_layout Standard
34391 This line is an example to show how you can prevent the hyphenation of
34392 \begin_inset Newline newline
34396 \begin_inset Box Frameless
34406 height_special "totalheight"
34411 backgroundcolor "none"
34414 \begin_layout Plain Layout
34415 \begin_inset Quotes eld
34419 \begin_inset Quotes erd
34430 \begin_layout Subsection
34432 \begin_inset CommandInset label
34434 name "subsec:Vertical-Alignment"
34439 \begin_inset Index idx
34442 \begin_layout Plain Layout
34443 Boxes ! for Vertical Alignment
34449 \begin_inset Index idx
34452 \begin_layout Plain Layout
34461 \begin_layout Standard
34462 With the help of the command
34468 you can align words, characters or other boxes vertically relative to the
34476 is used with the following scheme:
34479 \begin_layout Standard
34484 raisebox{lift}[height][depth]{box content}
34487 \begin_layout Standard
34488 The lift can be a positive value to raise the box or a negative value to
34492 \begin_layout Standard
34493 To align for example the word
34494 \begin_inset Quotes eld
34498 \begin_inset Quotes erd
34501 so that the bottom of the
34502 \begin_inset Quotes eld
34506 \begin_inset Quotes erd
34510 \begin_inset Quotes eld
34514 \begin_inset Quotes erd
34517 is at the baseline, insert the command
34520 \begin_layout Standard
34530 \begin_layout Standard
34531 in \SpecialChar TeX
34532 Code before the word.
34533 After the word insert a closing brace
34534 \begin_inset Quotes eld
34542 \begin_inset Quotes erd
34545 in \SpecialChar TeX
34547 \begin_inset Newline newline
34550 This is the result:
34553 \begin_layout Standard
34554 This is a text line with the word
34558 \begin_layout Plain Layout
34570 \begin_inset Quotes eld
34574 \begin_inset Quotes erd
34581 \begin_layout Plain Layout
34591 \begin_layout Standard
34592 \begin_inset VSpace bigskip
34595 When you raise or lower characters in a line, the line distance will be
34599 \begin_layout Standard
34600 This is a text line with the word
34604 \begin_layout Plain Layout
34616 \begin_inset Quotes eld
34620 \begin_inset Quotes erd
34627 \begin_layout Plain Layout
34635 \begin_inset Newline newline
34638 This is a text line with the word
34642 \begin_layout Plain Layout
34652 \begin_inset Quotes eld
34656 \begin_inset Quotes erd
34663 \begin_layout Plain Layout
34673 \begin_layout Standard
34674 If you want to prevent this for a certain reason, set the box height to
34679 \begin_layout Standard
34689 \begin_layout Standard
34690 This is a text line with the word
34694 \begin_layout Plain Layout
34706 \begin_inset Quotes eld
34710 \begin_inset Quotes erd
34717 \begin_layout Plain Layout
34725 \begin_inset Newline newline
34729 \begin_inset Newline newline
34732 This is a text line with the word
34736 \begin_layout Plain Layout
34740 raisebox{0.5cm}[0pt]{
34746 \begin_inset Quotes eld
34750 \begin_inset Quotes erd
34757 \begin_layout Plain Layout
34767 \begin_layout Section
34769 \begin_inset CommandInset label
34771 name "sec:Colored-Boxes"
34776 \begin_inset Index idx
34779 \begin_layout Plain Layout
34788 \begin_layout Standard
34789 To color the background of a box just select the color you like in the box
34791 This is for example a box with orange background:
34792 \begin_inset Box Frameless
34802 height_special "totalheight"
34807 backgroundcolor "orange"
34810 \begin_layout Plain Layout
34811 Box with orange background
34819 \begin_layout Standard
34820 If you use the decoration
34823 \begin_inset space ~
34827 \begin_inset space ~
34832 you can set a frame color.
34833 In this case you must also specify a background color (LyX sets white as
34835 Here is an example:
34836 \begin_inset Box Boxed
34846 height_special "totalheight"
34851 backgroundcolor "yellow"
34854 \begin_layout Plain Layout
34855 Box with teal frame color and yellow background color
34863 \begin_layout Standard
34864 \begin_inset VSpace bigskip
34867 Of course you can also have colored text inside a colored box:
34868 \begin_inset Newline newline
34872 \begin_inset Box Boxed
34882 height_special "totalheight"
34887 backgroundcolor "magenta"
34890 \begin_layout Plain Layout
34893 This is colored text within a colored, framed box
34901 \begin_layout Standard
34902 \begin_inset VSpace bigskip
34908 \begin_layout Standard
34909 If you need another color than the predefined ones, you can define your
34910 own color as described in section
34911 \begin_inset space ~
34915 \begin_inset CommandInset ref
34917 reference "sec:Colored-Tables"
34922 To use your own color you must typeset the box by using TeX code:
34925 \begin_layout Standard
34926 Colored boxes without frame are created with the command
34933 It has the following scheme:
34936 \begin_layout Standard
34941 colorbox{color}{box content}
34944 \begin_layout Standard
34945 The box content can also be a box and colored boxes can also be within other
34948 \begin_inset space \thinspace{}
34952 \begin_inset space \space{}
34955 a darkgreen background for a word, insert the command
34958 \begin_layout Standard
34963 colorbox{darkgreen}{
34966 \begin_layout Standard
34967 before the word in \SpecialChar TeX
34969 After the word insert a closing brace
34970 \begin_inset Quotes eld
34978 \begin_inset Quotes erd
34981 in \SpecialChar TeX
34983 \begin_inset Newline newline
34986 This is the result:
34989 \begin_layout Standard
34990 This is a line where the word
34994 \begin_layout Plain Layout
34998 colorbox{darkgreen}{
35004 \begin_inset Quotes eld
35008 \begin_inset Quotes erd
35015 \begin_layout Plain Layout
35022 has a darkgreen background.
35025 \begin_layout Standard
35026 Framed, colored boxes are created with the command
35033 It has the following scheme:
35036 \begin_layout Standard
35041 fcolorbox{frame color}{box color}{box content}
35044 \begin_layout Section
35045 Rotated and Scaled Boxes
35048 \begin_layout Standard
35049 To use the boxes described in this section, the module
35053 must be loaded in the document settings.
35056 \begin_layout Standard
35057 \begin_inset Note Greyedout
35060 \begin_layout Plain Layout
35065 Not all DVI viewers are able to display rotated or scaled material.
35073 \begin_layout Standard
35074 \begin_inset Note Greyedout
35077 \begin_layout Plain Layout
35082 Floats are not allowed inside a rotated or scaled box.
35090 \begin_layout Subsection
35092 \begin_inset Index idx
35095 \begin_layout Plain Layout
35102 \begin_inset Index idx
35105 \begin_layout Plain Layout
35114 \begin_layout Standard
35115 To rotate material, you can put it into a
35120 Such a box is inserted via the menu
35122 Insert\SpecialChar menuseparator
35123 Custom Insets\SpecialChar menuseparator
35129 \begin_layout Standard
35130 The rotation origin can be specified via the inset
35136 Insert\SpecialChar menuseparator
35144 The following positions are possible:
35164 (top), along with meaningful combinations of the four base positions.
35169 means that the rotation origin is at the top left corner of the box.
35170 When no rotation origin is specified, the position
35175 The rotation angle is a number that can be negative that specifies the
35177 The rotation direction is counterclockwise.
35180 \begin_layout Standard
35181 In the following example
35185 was inserted to the
35193 was inserted to the
35200 \begin_layout Standard
35202 \begin_inset Flex Rotatebox
35205 \begin_layout Plain Layout
35206 \begin_inset Argument 1
35209 \begin_layout Plain Layout
35216 \begin_inset Argument 2
35219 \begin_layout Plain Layout
35233 \begin_layout Standard
35234 The box content can also be another box or an inline formula:
35237 \begin_layout Standard
35239 \begin_inset Flex Rotatebox
35242 \begin_layout Plain Layout
35243 \begin_inset Argument 1
35246 \begin_layout Plain Layout
35253 \begin_inset Argument 2
35256 \begin_layout Plain Layout
35263 \begin_inset Box Doublebox
35273 height_special "totalheight"
35278 backgroundcolor "none"
35281 \begin_layout Plain Layout
35293 \begin_inset Flex Rotatebox
35296 \begin_layout Plain Layout
35297 \begin_inset Argument 1
35300 \begin_layout Plain Layout
35307 \begin_inset Argument 2
35310 \begin_layout Plain Layout
35317 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35328 \begin_layout Standard
35329 or an image or table:
35332 \begin_layout Standard
35334 \begin_inset Flex Rotatebox
35337 \begin_layout Plain Layout
35338 \begin_inset Argument 1
35341 \begin_layout Plain Layout
35348 \begin_inset Argument 2
35351 \begin_layout Plain Layout
35358 \begin_inset Graphics
35359 filename clipart/platypus.eps
35370 with a rotated image
35371 \begin_inset Flex Rotatebox
35374 \begin_layout Plain Layout
35375 \begin_inset Argument 2
35378 \begin_layout Plain Layout
35385 \begin_inset Tabular
35386 <lyxtabular version="3" rows="2" columns="2">
35387 <features tabularvalignment="middle">
35388 <column alignment="center" valignment="top">
35389 <column alignment="center" valignment="top">
35391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35394 \begin_layout Plain Layout
35400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35403 \begin_layout Plain Layout
35411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35414 \begin_layout Plain Layout
35420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35423 \begin_layout Plain Layout
35440 \begin_inset Index idx
35443 \begin_layout Plain Layout
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35454 Table Customization ! Rotating
35462 \begin_layout Standard
35463 \begin_inset Note Greyedout
35466 \begin_layout Plain Layout
35475 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35477 errors when viewing/exporting the document.
35485 \begin_layout Subsection
35487 \begin_inset Index idx
35490 \begin_layout Plain Layout
35497 \begin_inset Index idx
35500 \begin_layout Plain Layout
35509 \begin_layout Standard
35510 To scale material put it into a
35515 Such a box is inserted via the menu
35517 Insert\SpecialChar menuseparator
35518 Custom Insets\SpecialChar menuseparator
35524 \begin_layout Standard
35529 inset has the mandatory inset
35533 and the optional inset
35537 (inserted via the menu
35539 Insert\SpecialChar menuseparator
35543 Input there the horizontal and vertical scale factor, respectively.
35548 inset is used, the horizontal factor will also be used as the vertical
35552 \begin_layout Standard
35553 To get for example the double text size, compared to the document text size,
35564 \begin_inset Flex Scalebox
35567 \begin_layout Plain Layout
35568 \begin_inset Argument 1
35571 \begin_layout Plain Layout
35585 \begin_layout Standard
35603 \begin_inset Flex Scalebox
35606 \begin_layout Plain Layout
35607 \begin_inset Argument 1
35610 \begin_layout Plain Layout
35617 \begin_inset Argument 2
35620 \begin_layout Plain Layout
35634 \begin_layout Standard
35635 If the scaling factor is negative, the box content will be mirrored.
35652 can be used to create mirror writing:
35653 \begin_inset Flex Scalebox
35656 \begin_layout Plain Layout
35657 \begin_inset Argument 1
35660 \begin_layout Plain Layout
35667 \begin_inset Argument 2
35670 \begin_layout Plain Layout
35684 \begin_layout Standard
35702 \begin_inset Flex Scalebox
35705 \begin_layout Plain Layout
35706 \begin_inset Argument 1
35709 \begin_layout Plain Layout
35716 \begin_inset Argument 2
35719 \begin_layout Plain Layout
35733 \begin_layout Standard
35740 Insert\SpecialChar menuseparator
35741 Custom Insets\SpecialChar menuseparator
35767 \begin_layout Standard
35768 \begin_inset Note Greyedout
35771 \begin_layout Plain Layout
35780 inset is empty or contains other characters than numbers you will get LaTeX
35781 errors when viewing/exporting the document.
35789 \begin_layout Standard
35790 \begin_inset VSpace bigskip
35799 Insert\SpecialChar menuseparator
35800 Custom Insets\SpecialChar menuseparator
35803 ) is used to scale the content to a defined width and height.
35808 inset has the mandatory inset
35812 and the optional inset
35816 (inserted via the menu
35818 Insert\SpecialChar menuseparator
35822 Input there the width and height, respectively, as value with a unit.
35824 \begin_inset CommandInset ref
35826 reference "tab:Units"
35830 lists the possible units.
35831 If there is an exclamation mark
35835 in of of the two insets, the size is set so that the aspect ratio of the
35836 box content is kept.
35841 inset is used an exclamation mark will internally be used for the height.
35844 \begin_layout Standard
35862 \begin_inset Flex Resizebox
35865 \begin_layout Plain Layout
35866 \begin_inset Argument 1
35869 \begin_layout Plain Layout
35876 \begin_inset Argument 2
35879 \begin_layout Plain Layout
35891 \begin_inset Newline newline
35915 \begin_inset Flex Resizebox
35918 \begin_layout Plain Layout
35919 \begin_inset Argument 1
35922 \begin_layout Plain Layout
35929 \begin_inset Argument 2
35932 \begin_layout Plain Layout
35946 \begin_layout Standard
35947 \begin_inset Note Greyedout
35950 \begin_layout Plain Layout
35959 inset is empty or contains an invalid unit you will get LaTeX errors when
35960 viewing/exporting the document.
35968 \begin_layout Standard
35969 \begin_inset VSpace bigskip
35975 \begin_layout Standard
35976 The boxes can be combined in any order.
35985 which is in turn inside a
35992 \begin_layout Standard
35995 \begin_inset Flex Rotatebox
35998 \begin_layout Plain Layout
35999 \begin_inset Argument 1
36002 \begin_layout Plain Layout
36009 \begin_inset Argument 2
36012 \begin_layout Plain Layout
36019 \begin_inset Flex Resizebox
36022 \begin_layout Plain Layout
36023 \begin_inset Argument 1
36026 \begin_layout Plain Layout
36033 \begin_inset Flex Reflectbox
36036 \begin_layout Plain Layout
36055 \begin_layout Standard
36057 Images, tables, and inline formulas are allowed as box content:
36060 \begin_layout Standard
36063 \begin_inset Flex Resizebox
36066 \begin_layout Plain Layout
36067 \begin_inset Argument 1
36070 \begin_layout Plain Layout
36077 \begin_inset Flex Reflectbox
36080 \begin_layout Plain Layout
36081 \begin_inset Graphics
36082 filename clipart/platypus.eps
36099 \begin_inset Flex Resizebox
36102 \begin_layout Plain Layout
36103 \begin_inset Argument 1
36106 \begin_layout Plain Layout
36113 \begin_inset Flex Reflectbox
36116 \begin_layout Plain Layout
36117 \begin_inset Tabular
36118 <lyxtabular version="3" rows="2" columns="2">
36119 <features tabularvalignment="middle">
36120 <column alignment="center" valignment="top">
36121 <column alignment="center" valignment="top">
36123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36126 \begin_layout Plain Layout
36132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36135 \begin_layout Plain Layout
36143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36146 \begin_layout Plain Layout
36152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36155 \begin_layout Plain Layout
36177 \begin_inset Flex Resizebox
36180 \begin_layout Plain Layout
36181 \begin_inset Argument 1
36184 \begin_layout Plain Layout
36191 \begin_inset Flex Reflectbox
36194 \begin_layout Plain Layout
36195 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36209 \begin_inset Index idx
36212 \begin_layout Plain Layout
36219 \begin_inset Index idx
36222 \begin_layout Plain Layout
36223 Table Customization ! Scaling
36231 \begin_layout Standard
36232 When the global formula style
36236 is used in the document
36240 \begin_layout Plain Layout
36242 \begin_inset Quotes eld
36246 \begin_inset Quotes erd
36249 is added to the document class options.
36254 , display style formulas can also be scaled.
36257 \begin_layout Chapter
36258 Objects Surrounded by Text
36259 \begin_inset Index idx
36262 \begin_layout Plain Layout
36271 \begin_layout Section
36273 \begin_inset CommandInset label
36275 name "sec:Wrap-Floats"
36280 \begin_inset Index idx
36283 \begin_layout Plain Layout
36284 Floats ! Wrap Floats
36290 \begin_inset Index idx
36293 \begin_layout Plain Layout
36294 Surrounded by text ! Wrap Floats
36302 \begin_layout Standard
36303 \begin_inset Wrap figure
36310 \begin_layout Plain Layout
36311 \begin_inset Graphics
36312 filename clipart/mobius.eps
36314 scaleBeforeRotation
36315 rotateOrigin center
36322 \begin_layout Plain Layout
36323 \begin_inset Caption Standard
36325 \begin_layout Plain Layout
36326 \begin_inset CommandInset label
36328 name "fig:This-is-a"
36332 This is a figure wrap float.
36342 This float type is used if you want to wrap text around a figure or table
36343 so that it only occupies some fraction of the column width.
36344 It can be inserted using the menu
36346 Insert\SpecialChar menuseparator
36347 Floats\SpecialChar menuseparator
36349 \begin_inset space ~
36353 \begin_inset space ~
36361 \begin_inset space ~
36365 \begin_inset space ~
36370 if the \SpecialChar LaTeX
36376 \begin_inset Index idx
36379 \begin_layout Plain Layout
36381 -packages ! wrapfig
36390 \begin_layout Plain Layout
36391 Installing a \SpecialChar LaTeX
36392 -package is explained it in the
36396 \begin_inset space ~
36406 The settings of the float can be modified by right-clicking on the float
36408 The mandatory settings are the float
36421 that specifies how much the float is set into the paragraph
36422 \begin_inset space \thinspace{}
36426 \begin_inset space \thinspace{}
36429 page margin, and the
36432 \begin_inset space ~
36437 that specifies how many text lines the float will approximately need.
36438 The line span is often hard to approximate; so it is better only to use
36439 it when you encounter float placement problems.
36440 You can furthermore decide if \SpecialChar LaTeX
36441 is allowed to let the float float within
36442 the paragraph or to surrounding paragraphs.
36444 \begin_inset space ~
36448 \begin_inset CommandInset ref
36450 reference "fig:This-is-a"
36454 is an example text wrap float with a width of 40
36455 \begin_inset space \thinspace{}
36459 \begin_inset space \thinspace{}
36462 cm overhang, set to the left.
36465 \begin_layout Standard
36466 \begin_inset Note Greyedout
36469 \begin_layout Plain Layout
36475 \begin_inset space ~
36478 wrap float floats are fragile! E.
36479 \begin_inset space \thinspace{}
36483 \begin_inset space \space{}
36486 having a figure too close to the bottom of the page can mess things up in
36487 such a way that the float does not appear in the output or that it is placed
36488 over some other text.
36496 \begin_layout Standard
36497 In general, the following applies for wrap floats:
36500 \begin_layout Itemize
36501 They should not be placed in paragraphs that run over a page break.
36502 That means that wrap floats are better inserted in their exact place when
36503 the document is almost finished and you are able to estimate where page
36504 breaks will appear.
36507 \begin_layout Itemize
36508 They should either be placed in their own paragraph before the paragraph
36509 where they should wrap into or within a paragraph.
36512 \begin_layout Itemize
36513 In consecutive paragraphs they may cause troubles, so ensure that there
36514 is a text paragraph between them as separator.
36517 \begin_layout Itemize
36518 They are not allowed in section headings or tables.
36521 \begin_layout Itemize
36522 Their numbering and referencing works as described in chap.
36523 \begin_inset space \thinspace{}
36527 \begin_inset CommandInset ref
36529 reference "chap:Floats"
36536 \begin_layout Section
36537 Surrounded Fixed Objects
36538 \begin_inset Index idx
36541 \begin_layout Plain Layout
36542 Surrounded by text ! Fixed objects
36550 \begin_layout Standard
36551 The wrap floats described in sec.
36552 \begin_inset space \thinspace{}
36556 \begin_inset CommandInset ref
36558 reference "sec:Wrap-Floats"
36562 have these positions in the paragraph:
36563 \begin_inset Separator parbreak
36569 \begin_layout Standard
36572 \begin_inset Tabular
36573 <lyxtabular version="3" rows="2" columns="2">
36574 <features tabularvalignment="middle">
36575 <column alignment="center" valignment="top">
36576 <column alignment="center" valignment="top">
36578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36581 \begin_layout Plain Layout
36584 arg "dialog-show-new-inset graphics"
36592 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36595 \begin_layout Plain Layout
36603 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36606 \begin_layout Plain Layout
36612 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36615 \begin_layout Plain Layout
36627 \begin_inset Tabular
36628 <lyxtabular version="3" rows="2" columns="2">
36629 <features tabularvalignment="middle">
36630 <column alignment="center" valignment="top">
36631 <column alignment="center" valignment="top">
36633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36636 \begin_layout Plain Layout
36642 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36645 \begin_layout Plain Layout
36648 arg "dialog-show-new-inset graphics"
36658 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36661 \begin_layout Plain Layout
36667 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36670 \begin_layout Plain Layout
36684 \begin_layout Standard
36685 To get an object exactly at the position where it is inserted, for example
36686 to get one of these positions:
36687 \begin_inset VSpace defskip
36693 \begin_layout Standard
36696 \begin_inset Tabular
36697 <lyxtabular version="3" rows="2" columns="2">
36698 <features tabularvalignment="middle">
36699 <column alignment="center" valignment="top">
36700 <column alignment="center" valignment="top">
36702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36705 \begin_layout Plain Layout
36711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36714 \begin_layout Plain Layout
36722 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36725 \begin_layout Plain Layout
36728 arg "dialog-show-new-inset graphics"
36736 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36739 \begin_layout Plain Layout
36751 \begin_inset Tabular
36752 <lyxtabular version="3" rows="2" columns="2">
36753 <features tabularvalignment="middle">
36754 <column alignment="center" valignment="top">
36755 <column alignment="center" valignment="top">
36757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36760 \begin_layout Plain Layout
36766 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36769 \begin_layout Plain Layout
36777 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36780 \begin_layout Plain Layout
36786 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36789 \begin_layout Plain Layout
36792 arg "dialog-show-new-inset graphics"
36806 \begin_inset Tabular
36807 <lyxtabular version="3" rows="2" columns="3">
36808 <features tabularvalignment="middle">
36809 <column alignment="center" valignment="top">
36810 <column alignment="center" valignment="top">
36811 <column alignment="center" valignment="top">
36813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36816 \begin_layout Plain Layout
36822 <cell alignment="center" valignment="top" topline="true" usebox="none">
36825 \begin_layout Plain Layout
36828 arg "dialog-show-new-inset graphics"
36836 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36839 \begin_layout Plain Layout
36847 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36850 \begin_layout Plain Layout
36856 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36859 \begin_layout Plain Layout
36865 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36868 \begin_layout Plain Layout
36880 \begin_inset Tabular
36881 <lyxtabular version="3" rows="2" columns="3">
36882 <features tabularvalignment="middle">
36883 <column alignment="center" valignment="top">
36884 <column alignment="center" valignment="top">
36885 <column alignment="center" valignment="top">
36887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36890 \begin_layout Plain Layout
36896 <cell alignment="center" valignment="top" topline="true" usebox="none">
36899 \begin_layout Plain Layout
36905 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36908 \begin_layout Plain Layout
36916 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36919 \begin_layout Plain Layout
36925 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36928 \begin_layout Plain Layout
36931 arg "dialog-show-new-inset graphics"
36939 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36942 \begin_layout Plain Layout
36956 \begin_layout Standard
36959 \begin_inset Tabular
36960 <lyxtabular version="3" rows="3" columns="2">
36961 <features tabularvalignment="middle">
36962 <column alignment="center" valignment="top">
36963 <column alignment="center" valignment="top">
36965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36968 \begin_layout Plain Layout
36974 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36977 \begin_layout Plain Layout
36985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36988 \begin_layout Plain Layout
36991 arg "dialog-show-new-inset graphics"
36999 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37002 \begin_layout Plain Layout
37010 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37013 \begin_layout Plain Layout
37019 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37022 \begin_layout Plain Layout
37034 \begin_inset Tabular
37035 <lyxtabular version="3" rows="3" columns="3">
37036 <features tabularvalignment="middle">
37037 <column alignment="center" valignment="top">
37038 <column alignment="center" valignment="top">
37039 <column alignment="center" valignment="top">
37041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37044 \begin_layout Plain Layout
37050 <cell alignment="center" valignment="top" topline="true" usebox="none">
37053 \begin_layout Plain Layout
37059 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37062 \begin_layout Plain Layout
37070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37073 \begin_layout Plain Layout
37079 <cell alignment="center" valignment="top" usebox="none">
37082 \begin_layout Plain Layout
37085 arg "dialog-show-new-inset graphics"
37093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37096 \begin_layout Plain Layout
37104 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37107 \begin_layout Plain Layout
37113 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37116 \begin_layout Plain Layout
37122 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37125 \begin_layout Plain Layout
37137 \begin_inset Tabular
37138 <lyxtabular version="3" rows="3" columns="2">
37139 <features tabularvalignment="middle">
37140 <column alignment="center" valignment="top">
37141 <column alignment="center" valignment="top">
37143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37146 \begin_layout Plain Layout
37152 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37155 \begin_layout Plain Layout
37163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37166 \begin_layout Plain Layout
37172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37175 \begin_layout Plain Layout
37178 arg "dialog-show-new-inset graphics"
37188 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37191 \begin_layout Plain Layout
37197 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37200 \begin_layout Plain Layout
37214 \begin_layout Standard
37216 you can use the \SpecialChar LaTeX
37222 \begin_inset Index idx
37225 \begin_layout Plain Layout
37227 -packages ! picinpar
37233 Here is an example:
37236 \begin_layout Standard
37240 \begin_layout Plain Layout
37250 \begin_inset Note Note
37253 \begin_layout Plain Layout
37254 The following section will only be displayed when the \SpecialChar LaTeX
37267 \begin_layout Standard
37271 \begin_layout Plain Layout
37275 begin{window}[2,c,{
37281 \begin_inset Graphics
37282 filename clipart/mobius.eps
37285 scaleBeforeRotation
37286 rotateOrigin center
37294 \begin_layout Plain Layout
37299 \begin_layout Plain Layout
37308 It was in the spring of the year 1894 that all London was interested, and
37309 the fashionable world dismayed, by the murder of the Honourable Ronald
37310 Adair under most unusual and inexplicable circumstances.
37311 The public has already learned those particulars of the crime which
37317 \begin_layout Plain Layout
37328 came out in the police investigation, but a good deal was suppressed upon
37329 that occasion, since the case for the prosecution was so overwhelmingly
37330 strong that it was not necessary to bring forward all the facts.
37331 Only now, at the end of nearly ten years, am I allowed to supply those
37332 missing links which make up the whole of that remarkable chain.
37338 \begin_layout Plain Layout
37350 \begin_layout Standard
37354 \begin_layout Plain Layout
37363 Footnote of the paragraph with the fixed object.
37367 \begin_layout Plain Layout
37377 \begin_layout Standard
37378 Surrounded fixed objects are used to let text float around them, at which
37379 the object's position in the paragraph can be determined by the number
37381 In contrary to floats is it not possible to have a numbered caption.
37384 \begin_layout Standard
37385 A fixed object is inserted by adding the command
37388 \begin_layout Standard
37393 begin{window}[2,c,{
37396 \begin_layout Standard
37397 as \SpecialChar TeX
37398 Code at the beginning of the paragraph.
37399 The first parameter in the bracket, here '2', defines the number of lines
37400 above the object, the second, here 'c', the position of the object.
37401 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37402 Behind the command you insert the object.
37403 In this example an image with a width of 40
37404 \begin_inset space \thinspace{}
37407 % of the text column width was inserted.
37408 The object can also be a table, a box or an equation.
37409 Behind the object the command
37412 \begin_layout Standard
37415 },description text]
37416 \begin_inset Newline newline
37422 \begin_layout Standard
37425 \begin_inset Quotes eld
37433 \begin_inset Quotes erd
37436 is in the second line.
37437 The description text is optional.
37438 The text surrounding the object must be in the same paragraph as the object,
37439 so it must begin directly after the
37444 At the end of the paragraph insert the command:
37447 \begin_layout Standard
37455 \begin_layout Standard
37456 Within a paragraph with a fixed object, you cannot insert footnotes in the
37458 You have to use instead the command
37464 inside the paragraph and outside the command
37470 as described in sec.
37471 \begin_inset space \thinspace{}
37475 \begin_inset CommandInset ref
37477 reference "sec:Footnotes"
37484 \begin_layout Standard
37488 \begin_layout Plain Layout
37498 \begin_inset Note Note
37501 \begin_layout Plain Layout
37502 The following will be displayed when the \SpecialChar LaTeX
37515 \begin_layout Standard
37516 You need to install the \SpecialChar LaTeX
37521 to see the following part of this section in the output.
37524 \begin_layout Standard
37528 \begin_layout Plain Layout
37540 \begin_layout Section
37542 \begin_inset Index idx
37545 \begin_layout Plain Layout
37552 \begin_inset Index idx
37555 \begin_layout Plain Layout
37556 Surrounded by text ! Initials
37564 \begin_layout Standard
37565 To use initials, you must have the \SpecialChar LaTeX
37571 \begin_inset Index idx
37574 \begin_layout Plain Layout
37576 -packages ! lettrine
37581 installed and use the module
37585 in your document (menu
37587 Document\SpecialChar menuseparator
37588 Settings\SpecialChar menuseparator
37592 To insert an initial, use the style
37597 This style has a mandatory and two optional arguments.
37598 The arguments are inserted via the
37603 The mandatory argument
37607 contains the letter(s) that is the initial, the argument
37610 \begin_inset space ~
37614 \begin_inset space ~
37619 contains the rest of the word or text of the initial letter(s).
37624 contains parameters to modify the initial.
37625 For more information about the possible parameters see the documentation
37631 \begin_inset CommandInset citation
37638 The style itself contains the text that is surrounding the initial.
37639 The usual style is hereby that the word whose first letter is the initial,
37647 \begin_layout Standard
37648 Here are some examples:
37651 \begin_layout Standard
37655 \begin_layout Plain Layout
37665 \begin_inset Note Note
37668 \begin_layout Plain Layout
37669 The following section will only be displayed when the \SpecialChar LaTeX
37682 \begin_layout Enumerate
37683 No optional argument, the initial is the letter 'I' in the math font
37684 \begin_inset Formula $\mathfrak{Fraktur}$
37688 \begin_inset Separator parbreak
37695 \begin_layout Initial
37696 \begin_inset Argument 2
37699 \begin_layout Plain Layout
37700 \begin_inset Formula $\mathfrak{I}$
37709 \begin_inset Argument 3
37712 \begin_layout Plain Layout
37718 was in the spring of the year 1894 that all London was interested, and
37719 the fashionable world dismayed, by the murder of the Honourable Ronald
37720 Adair under most unusual and inexplicable circumstances.
37721 The public has already learned those particulars of the crime which came
37722 out in the police investigation, but a good deal was suppressed upon that
37723 occasion, since the case for the prosecution was so overwhelmingly strong
37724 that it was not necessary to bring forward all the facts.
37725 \begin_inset Newpage newpage
37732 \begin_layout Enumerate
37733 Only one line is surrounding the initial, which is formed by two letters
37734 in standard font and no text is printed in small caps:
37735 \begin_inset Separator parbreak
37742 \begin_layout Initial
37743 \begin_inset Argument 1
37746 \begin_layout Plain Layout
37753 \begin_inset Argument 2
37756 \begin_layout Plain Layout
37762 was in the spring of the year 1894 that all London was interested, and
37763 the fashionable world dismayed, by the murder of the Honourable Ronald
37764 Adair under most unusual and inexplicable circumstances.
37765 The public has already learned those particulars of the crime which came
37766 out in the police investigation, but a good deal was suppressed upon that
37767 occasion, since the case for the prosecution was so overwhelmingly strong
37768 that it was not necessary to bring forward all the facts.
37772 \begin_layout Enumerate
37773 Magenta, hanging initial over 3
37774 \begin_inset space ~
37777 lines in the math font
37778 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37782 \begin_inset Quotes eld
37785 t was in the spring
37786 \begin_inset Quotes erd
37793 ; to color the initial, you must insert this command before the initial:
37794 \begin_inset Newline newline
37808 \begin_inset Newline newline
37816 \begin_inset Quotes eld
37820 \begin_inset Quotes erd
37824 \begin_inset Quotes eld
37828 \begin_inset Quotes erd
37832 \begin_inset Quotes eld
37836 \begin_inset Quotes erd
37840 \begin_inset Quotes eld
37844 \begin_inset Quotes erd
37848 \begin_inset Quotes eld
37852 \begin_inset Quotes erd
37856 \begin_inset Quotes eld
37860 \begin_inset Quotes erd
37864 \begin_inset Quotes eld
37868 \begin_inset Quotes erd
37872 \begin_inset Quotes eld
37876 \begin_inset Quotes erd
37879 , and add this command to the document preamble:
37880 \begin_inset Newline newline
37887 @ifundefined{textcolor}
37888 \begin_inset Newline newline
37892 \begin_inset space ~
37897 usepackage{color}}{}
37900 \begin_inset Separator parbreak
37907 \begin_layout Standard
37911 \begin_layout Plain Layout
37925 \begin_inset Note Note
37928 \begin_layout Plain Layout
37929 makes the initial magenta
37937 \begin_layout Initial
37938 \begin_inset Argument 1
37941 \begin_layout Plain Layout
37942 lines=3, lhang=0.33, loversize=0.25
37948 \begin_inset Argument 2
37951 \begin_layout Plain Layout
37952 \begin_inset Formula $\mathcal{I}$
37961 \begin_inset Argument 3
37964 \begin_layout Plain Layout
37965 t was in the spring
37970 of the year 1894 that all London was interested, and the fashionable world
37971 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37972 and inexplicable circumstances.
37973 The public has already learned those particulars of the crime which came
37974 out in the police investigation, but a good deal was suppressed upon that
37975 occasion, since the case for the prosecution was so overwhelmingly strong
37976 that it was not necessary to bring forward all the facts.
37980 \begin_layout Standard
37984 \begin_layout Plain Layout
37994 \begin_inset Note Note
37997 \begin_layout Plain Layout
37998 The following will be displayed when the \SpecialChar LaTeX
38011 \begin_layout Standard
38012 You need to install the \SpecialChar LaTeX
38017 to see the following part of this section in the output.
38020 \begin_layout Standard
38024 \begin_layout Plain Layout
38036 \begin_layout Chapter
38037 External Document Parts
38038 \begin_inset Index idx
38041 \begin_layout Plain Layout
38042 External Document Parts
38050 \begin_layout Standard
38053 Insert\SpecialChar menuseparator
38056 you can insert external material into your document.
38060 \begin_layout Description
38062 \begin_inset space ~
38065 Document Another \SpecialChar LyX
38066 document; its content is directly inserted to your document.
38069 \begin_layout Description
38071 \begin_inset space ~
38074 Text A text document; each line is inserted in your document as a separate
38078 \begin_layout Description
38080 \begin_inset space ~
38084 \begin_inset space ~
38088 \begin_inset space ~
38091 Lines A text document; text lines are inserted in your document continuously
38092 but an empty text line creates a new paragraph.
38095 \begin_layout Description
38097 \begin_inset space ~
38100 Material Files in various formats.
38103 \begin_layout Description
38105 \begin_inset space ~
38108 Document \SpecialChar LyX
38109 or \SpecialChar LaTeX
38113 \begin_layout Section
38115 \begin_inset Index idx
38118 \begin_layout Plain Layout
38119 External Document Parts ! External Material
38127 \begin_layout Standard
38128 The external material feature allows you to insert files into your document
38129 without converting them to a format that can be read by the document output
38132 takes care of the necessary conversions.
38133 This is similar to images that can be inserted in various image formats
38134 in \SpecialChar LyX
38136 When you have enabled Instant Preview in \SpecialChar LyX
38137 's preferences under
38140 \begin_inset space ~
38144 \begin_inset space ~
38147 feel\SpecialChar menuseparator
38150 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38154 \begin_layout Standard
38155 External material can be inserted via the
38159 dialog that is accessible with the menu
38161 Insert\SpecialChar menuseparator
38162 File\SpecialChar menuseparator
38164 \begin_inset space ~
38170 Currently the following file types (
38177 \begin_layout Description
38178 ChessDiagram This template supports chess position diagrams made with the
38182 \begin_inset CommandInset href
38185 target "http://en.wikipedia.org/wiki/XBoard"
38194 \begin_layout Description
38195 Date This inserts the date in the form
38200 This is a date inserted as external material:
38201 \begin_inset External
38208 \begin_inset space ~
38212 \begin_inset Note Note
38215 \begin_layout Plain Layout
38216 Remove the protected space when bug 4398 is fixed!
38222 \begin_inset Newline newline
38225 The date is not shown within \SpecialChar LyX
38226 , only in the output.
38227 There are two other methods of inserting a date: Via menu
38229 Insert\SpecialChar menuseparator
38232 and with the \SpecialChar LaTeX
38239 as \SpecialChar TeX
38241 The different methods are compared in Table
38242 \begin_inset space ~
38246 \begin_inset CommandInset ref
38248 reference "tab:Comparison-of-the"
38255 \begin_layout Description
38256 Dia This template supports diagrams created with the program
38259 \begin_inset CommandInset href
38262 target "http://en.wikipedia.org/wiki/Dia_(software)"
38271 \begin_layout Description
38272 GnumericSpreadsheet With this template you can insert spreadsheets
38273 \begin_inset space \thinspace{}
38277 \begin_inset space \thinspace{}
38280 tables in the format of
38283 \begin_inset CommandInset href
38286 target "http://en.wikipedia.org/wiki/Gnumeric"
38293 \begin_inset CommandInset href
38295 name "OpenDocument"
38296 target "http://en.wikipedia.org/wiki/OpenDocument"
38301 \begin_inset CommandInset href
38303 name "Microsoft Office XML"
38304 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38309 \begin_inset CommandInset href
38311 name "Office Open XML"
38312 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38317 For this feature \SpecialChar LyX
38318 must have found the program
38322 during its configuration.
38323 This program is part of Gnumeric, so that you must have Gnumeric installed,
38324 also if you don't have tables in the Gnumeric format.
38325 For examples and possible limitations have a look at \SpecialChar LyX
38333 \begin_layout Description
38334 LilyPond This template is used for music notation typeset with the program
38335 \begin_inset Newline linebreak
38341 \begin_inset CommandInset href
38344 target "http://en.wikipedia.org/wiki/LilyPond"
38351 For \SpecialChar LyX
38352 's extended support for LilyPond have a look at \SpecialChar LyX
38360 \begin_layout Description
38361 PDFPages With this template you can insert PDF documents to your document.
38362 To specify the range of pages that should be included, use the option
38372 LaTeX and LyX options
38375 The argument of this option is a comma separated list, containing page
38376 numbers (insert as option
38380 ), ranges of page numbers (
38384 ) or any combination.
38385 To insert empty pages use {}.
38387 \begin_inset space \thinspace{}
38391 \begin_inset space ~
38396 pages={3,{},8-11,15}
38398 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38399 Page ranges are specified in the syntax
38408 This selects all pages from
38421 defaults to the first page; omitting
38425 defaults to the last page of the document.
38426 The last page can also be selected with the keyword
38431 (This is only permitted in a page range.) So
38435 will insert all pages of the document and
38439 will insert all pages in reverse order.
38440 If the pages option is not specified, only the first page of the PDF is
38442 \begin_inset Newline newline
38449 inserts the pages with their original size, if this option is not given,
38450 the pages will be resized to fith the width of the page of your document.
38455 you can specify the width and height of the input pages and their rotation.
38456 If another width than 100
38457 \begin_inset space \thinspace{}
38460 Scale% is used, the option
38464 will be overwritten.
38465 For more info and possible options, have a look into the documentation
38466 of the \SpecialChar LaTeX
38472 \begin_inset CommandInset citation
38479 \begin_inset Index idx
38482 \begin_layout Plain Layout
38484 -packages ! pdfpages
38490 \begin_inset Newline newline
38493 To use this template in a
38497 presentation you need to first insert an
38501 environment and in a subsequent paragraph a \SpecialChar TeX
38502 Code box containing the command
38507 setbeamertemplate{background canvas}{}
38510 Then you can insert as many paragraphs containing the PDFPages template
38512 Behind the included PDF pages you can resume the Beamer presentation by
38513 beginning a new frame or by starting a new section.
38514 To avoid stray blank pages prior to the PDF pages, make sure to use the
38519 alignment for the paragraph containing the template.
38520 \begin_inset Newline newline
38523 Here is an included PDF which is rotated by -5°:
38524 \begin_inset External
38526 filename clipart/Abstract.pdf
38527 extra LaTeX "noautoscale, pages=-"
38529 rotateOrigin bottomleft
38536 \begin_layout Description
38537 RasterImage This can be used for bitmap images.
38538 The image can be treated in the
38542 dialog like the images that are usually included via the
38546 dialog as described in section
38547 \begin_inset space ~
38551 \begin_inset CommandInset ref
38553 reference "sec:Graphics-Dialog"
38558 The difference to the normal image input is that only raster images are
38559 allowed; that means that PDF and EPS-images are not supported.
38560 Here is an inserted raster image:
38561 \begin_inset External
38562 template RasterImage
38563 filename clipart/ToolbarEnvBox.png
38570 \begin_layout Description
38571 XFig This template supports images created with the program
38574 \begin_inset CommandInset href
38577 target "http://en.wikipedia.org/wiki/Xfig"
38586 \begin_layout Standard
38587 \begin_inset Float table
38593 \begin_layout Plain Layout
38594 \begin_inset Caption Standard
38596 \begin_layout Plain Layout
38597 \begin_inset CommandInset label
38599 name "tab:Comparison-of-the"
38603 Comparison of the date input methods.
38611 \begin_layout Plain Layout
38613 \begin_inset Tabular
38614 <lyxtabular version="3" rows="4" columns="4">
38615 <features tabularvalignment="middle">
38616 <column alignment="center" valignment="top">
38617 <column alignment="center" valignment="top">
38618 <column alignment="center" valignment="top">
38619 <column alignment="center" valignment="top">
38621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38624 \begin_layout Plain Layout
38630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38633 \begin_layout Plain Layout
38636 External Material\SpecialChar menuseparator
38642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38645 \begin_layout Plain Layout
38648 Insert\SpecialChar menuseparator
38654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38657 \begin_layout Plain Layout
38669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38672 \begin_layout Plain Layout
38679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38682 \begin_layout Plain Layout
38688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38691 \begin_layout Plain Layout
38697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38700 \begin_layout Plain Layout
38701 as \SpecialChar TeX
38709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38712 \begin_layout Plain Layout
38719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38722 \begin_layout Plain Layout
38728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38731 \begin_layout Plain Layout
38737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38740 \begin_layout Plain Layout
38748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38751 \begin_layout Plain Layout
38757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38760 \begin_layout Plain Layout
38766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38769 \begin_layout Plain Layout
38775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38778 \begin_layout Plain Layout
38797 \begin_layout Standard
38798 When you use the option
38810 dialog, only the path to the inserted file is shown in the output.
38811 \begin_inset Newline newline
38814 External material is displayed in \SpecialChar LyX
38815 either as a box like this:
38816 \begin_inset Graphics
38817 filename clipart/ExternalMaterial.png
38819 scaleBeforeRotation
38823 or as image, depending on the option
38829 LaTeX and LyX options
38834 \begin_layout Standard
38841 manual explains how you can define your own templates.
38844 \begin_layout Section
38846 \begin_inset CommandInset label
38848 name "sec:Child-Documents"
38853 \begin_inset Index idx
38856 \begin_layout Plain Layout
38857 External Document Parts ! Child Documents
38863 \begin_inset Index idx
38866 \begin_layout Plain Layout
38875 \begin_layout Standard
38876 Child documents are used if you have a long document consisting of several
38877 larger parts or sections.
38878 For maintenance it is often useful and sometimes even required to split
38879 the document into several files that can be revised separately.
38880 The different documents are then the so called
38881 \begin_inset Quotes eld
38885 \begin_inset Quotes erd
38888 , and a master document connects them to print the full document or parts
38890 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38892 the bibliography, and labels for cross-references.
38895 \begin_layout Standard
38896 To be able to work on child documents without the need to open their master,
38897 specify in the child document the master in the menu
38899 Document\SpecialChar menuseparator
38900 Settings\SpecialChar menuseparator
38902 \begin_inset space ~
38908 This master document will then be used in the background by \SpecialChar LyX
38910 the child document.
38913 \begin_layout Standard
38914 Included documents are displayed in \SpecialChar LyX
38915 as a box like this:
38916 \begin_inset Graphics
38917 filename clipart/ChildDocument.png
38918 scaleBeforeRotation
38922 To include child documents in a master document use the menu
38924 Insert\SpecialChar menuseparator
38925 File\SpecialChar menuseparator
38927 \begin_inset space ~
38933 A dialog pops up where you can choose between four include methods:
38936 \begin_layout Description
38937 Include You can include \SpecialChar LyX
38938 and \SpecialChar LaTeX
38948 dialog, the included document will be opened in \SpecialChar LyX
38949 in a new file tab so that
38951 \begin_inset Newline newline
38957 \begin_layout Standard
38958 Here is a child document inserted using
38963 \begin_inset CommandInset include
38964 LatexCommand include
38965 filename "DummyDocument1.lyx"
38972 \begin_layout Standard
38973 The section numbering includes the sections of the included files in the
38974 order they are inserted in the master document.
38975 The included example document has for example a subsection that is numbered
38976 as a subsection of this section.
38977 Labels of included documents can be referenced: Subsection
38978 \begin_inset space ~
38982 \begin_inset CommandInset ref
38984 reference "subsec:External-Subsection-1"
38991 \begin_layout Standard
38992 The preamble of the child document is ignored; only the preamble of the
38993 master document is used.
38994 Branches in child documents will be ignored by the master document when
38995 the master document does not have a branch with the same name.
38996 Included documents are inserted starting on a new page and ending with
39000 \begin_layout Standard
39001 \begin_inset Note Greyedout
39004 \begin_layout Plain Layout
39009 If you have included a \SpecialChar LyX
39010 or \SpecialChar LaTeX
39011 file, you are warned when you export/view the
39012 document in case the child document uses another document class than the
39013 master document as this will lead to unexpected outputs.
39021 \begin_layout Description
39022 Input This method is very similar to the Include method.
39023 The differences are:
39024 \begin_inset Separator parbreak
39031 \begin_layout Itemize
39032 Input files don't start with a new page and don't end with a page break.
39035 \begin_layout Itemize
39036 Input files can be previewed in \SpecialChar LyX
39040 \begin_inset space ~
39045 is enabled in \SpecialChar LyX
39046 's preferences under
39049 \begin_inset space ~
39053 \begin_inset space ~
39056 feel\SpecialChar menuseparator
39062 \begin_layout Itemize
39063 You cannot exclude Input files via the menu
39065 Document\SpecialChar menuseparator
39066 Settings\SpecialChar menuseparator
39073 \begin_layout Standard
39074 Here is a child document inserted using
39079 \begin_inset CommandInset include
39081 filename "DummyDocument2.lyx"
39088 \begin_layout Description
39089 Verbatim With this method any text file can be included.
39090 The file is shown in the output with its source code; no command used in
39091 the text is invoked.
39092 You can use the option
39094 Mark spaces in output
39096 that displays the character
39097 \begin_inset Quotes eld
39104 \begin_layout Plain Layout
39114 \begin_inset Quotes erd
39117 for every space character in the source code.
39118 The difference from the method via the menu
39120 Insert\SpecialChar menuseparator
39121 File\SpecialChar menuseparator
39123 \begin_inset space ~
39128 is that the document content is not shown in \SpecialChar LyX
39132 \begin_layout Standard
39133 Here is a child document inserted as Verbatim:
39134 \begin_inset CommandInset include
39135 LatexCommand verbatiminput
39136 filename "DummyTextDocument.txt"
39141 \begin_inset VSpace bigskip
39144 Here is a child document inserted as Verbatim using the
39146 Mark spaces in output
39149 \begin_inset CommandInset include
39150 LatexCommand verbatiminput*
39151 filename "DummyTextDocument.txt"
39158 \begin_layout Standard
39159 \begin_inset VSpace bigskip
39165 \begin_layout Standard
39166 \begin_inset Note Greyedout
39169 \begin_layout Plain Layout
39174 As you can see in the examples above, the text of the documents included
39179 is not broken at the end of the document lines.
39187 \begin_layout Description
39188 Listings This type is described in chapter
39189 \begin_inset space ~
39193 \begin_inset CommandInset ref
39195 reference "cha:Program-Code-Listings"
39202 \begin_layout Standard
39203 \begin_inset Note Greyedout
39206 \begin_layout Plain Layout
39211 Including the same document twice in a document using different methods
39212 could cause \SpecialChar LaTeX
39221 \begin_layout Standard
39222 If you want to view/export only selected children of your master document,
39223 either because you want to save compiling time or because you want to distribut
39224 e single chapters of the book you are just writing, you can exclude children
39226 This is done via the menu
39228 Document\SpecialChar menuseparator
39229 Settings\SpecialChar menuseparator
39233 You can exclude\SpecialChar breakableslash
39234 include children by double-clicking on the
39238 column of the respective child document in the list (note that this only
39239 works for documents embedded via
39240 \begin_inset Quotes eld
39244 \begin_inset Quotes erd
39248 \begin_inset Quotes eld
39252 \begin_inset Quotes erd
39258 Maintain counters and references
39260 is enabled, \SpecialChar LyX
39261 will assure that all page numbers, references etc.
39262 \begin_inset space ~
39265 are correct as if the whole document was processed.
39266 This is useful if you want the selected sub-documents to look exactly as
39267 in the context of the whole document.
39268 However, \SpecialChar LyX
39269 needs to process the whole document in the background for this
39271 So if you want to save compile time and if counters and references do not
39272 need to be correct, disable this checkbox.
39275 \begin_layout Standard
39276 Alternatively, you can put each included file into a branch.
39280 \begin_layout Plain Layout
39281 Branches are described in section
39285 of the \SpecialChar LyX
39295 By enabling\SpecialChar breakableslash
39296 disabling branches you can decide which included files will
39297 appear in the output.
39298 This has the advantage that it also works with Input'ed sub-documents.
39299 However, counters and references will not be maintained with this approach.
39302 \begin_layout Chapter
39303 Program Code Listings
39304 \begin_inset CommandInset label
39306 name "cha:Program-Code-Listings"
39311 \begin_inset Index idx
39314 \begin_layout Plain Layout
39321 \begin_inset Index idx
39324 \begin_layout Plain Layout
39331 \begin_inset Index idx
39334 \begin_layout Plain Layout
39343 \begin_layout Standard
39344 To include and typeset program code you can use the
39348 inset that can be inserted via the menu
39350 Insert\SpecialChar menuseparator
39354 The \SpecialChar LaTeX
39360 \begin_inset Index idx
39363 \begin_layout Plain Layout
39365 -packages ! listings
39370 provides a powerful and flexible way to insert program source code into
39374 \begin_layout Standard
39375 Right-clicking on a listings inset opens the context menu containing where
39376 you can set the listings format.
39379 \begin_layout Standard
39380 By default, a listing starts a new paragraph in the output.
39381 The placement option
39384 \begin_inset space ~
39389 prints the listing inline like this:
39390 \begin_inset listings
39391 lstparams "language={C++}"
39395 \begin_layout Plain Layout
39403 \begin_inset Newline newline
39410 creates a listings float where you can specify the placement options
39411 \begin_inset Quotes eld
39419 \begin_inset Quotes erd
39423 \begin_inset Quotes eld
39431 \begin_inset Quotes erd
39435 \begin_inset Quotes eld
39443 \begin_inset Quotes erd
39447 \begin_inset Quotes eld
39455 \begin_inset Quotes erd
39458 corresponding to the float placement options described in section
39459 \begin_inset space ~
39463 \begin_inset CommandInset ref
39465 reference "sec:Float-Placement"
39470 The placement options can be mixed and are inserted without any separation,
39472 \begin_inset space \thinspace{}
39476 \begin_inset space \space{}
39480 \begin_inset Quotes eld
39488 \begin_inset Quotes erd
39493 \begin_inset Quotes eld
39497 \begin_inset Quotes erd
39500 has sometimes no effect, but you don't need to use the
39504 option in this case as also non-float listings can have captions and be
39508 \begin_layout Standard
39509 You can add captions to listings with the menu
39511 Insert\SpecialChar menuseparator
39515 Listings can be referenced like floats: Listing
39516 \begin_inset space ~
39520 \begin_inset CommandInset ref
39522 reference "lst:Example-Listing"
39527 A list of listings which contains all listings with captions can be created
39530 Insert\SpecialChar menuseparator
39532 \begin_inset space ~
39536 \begin_inset space ~
39539 TOC\SpecialChar menuseparator
39543 The list entries are the listing caption and the listing number.
39546 \begin_layout Standard
39547 \begin_inset listings
39548 lstparams "language=Python"
39552 \begin_layout Plain Layout
39554 \begin_inset Caption Standard
39556 \begin_layout Plain Layout
39557 \begin_inset CommandInset label
39559 name "lst:Example-Listing"
39563 Example Listing float
39568 # Example listing float
39571 \begin_layout Plain Layout
39576 \begin_layout Plain Layout
39578 'this is a python function'
39581 \begin_layout Plain Layout
39591 \begin_layout Standard
39592 When you have set a programming language in the listings dialog, the keywords
39593 of this language will be recognized and specially typeset in the output.
39594 In the example listings the Python keyword
39595 \begin_inset Quotes eld
39599 \begin_inset Quotes erd
39602 is recognized and printed bold in the output.
39605 \begin_layout Standard
39606 \begin_inset Note Greyedout
39609 \begin_layout Plain Layout
39614 If you don't get bold keywords when using typewriter fonts, your
39618 font probably doesn't provide a bold shape.
39619 In this case select a different one in the menu
39621 Document\SpecialChar menuseparator
39622 Settings\SpecialChar menuseparator
39634 provide bold shapes.)
39642 \begin_layout Standard
39646 \begin_inset space ~
39651 of the listings dialog you can specify the line numbering style.
39652 You can insert a number to specify which lines are numbered in the field
39659 \begin_inset space \thinspace{}
39663 \begin_inset space \space{}
39667 \begin_inset Quotes eld
39671 \begin_inset Quotes erd
39674 , only every 3rd line will be numbered.
39677 \begin_layout Standard
39678 You can furthermore specify a range of lines; only these will then appear
39682 Extended character table
39684 should be used when you use national characters like the German umlauts
39686 \begin_inset Newline newline
39689 Here is an example listing with left line numbering, step
39690 \begin_inset Quotes eld
39694 \begin_inset Quotes erd
39698 \begin_inset Quotes eld
39702 \begin_inset Quotes erd
39706 \begin_inset Quotes eld
39709 Extended character table
39710 \begin_inset Quotes erd
39714 \begin_inset Quotes eld
39718 \begin_inset space ~
39722 \begin_inset space ~
39726 \begin_inset Quotes erd
39730 \begin_inset space \thinspace{}
39734 \begin_inset space \thinspace{}
39740 \begin_layout Standard
39741 \begin_inset listings
39742 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39746 \begin_layout Plain Layout
39751 \begin_layout Plain Layout
39753 'this is a python function'
39756 \begin_layout Plain Layout
39761 \begin_layout Plain Layout
39766 \begin_layout Plain Layout
39768 'This is a German word: Tschüß'
39771 \begin_layout Plain Layout
39776 \begin_layout Plain Layout
39781 \begin_layout Plain Layout
39783 'this is a python function'
39786 \begin_layout Plain Layout
39796 \begin_layout Standard
39797 When you have tabulators in your listing, you can specify the number of
39798 characters that are spanned by a tabulator in the field
39801 \begin_inset space ~
39809 \begin_layout Standard
39810 \begin_inset Note Greyedout
39813 \begin_layout Plain Layout
39818 Due to a bug in the
39822 package the line numbering is shifted by a line by every previous listing.
39823 That's the reason why the lines 2 and 5 are numbered in the above listing
39824 and not the lines 3 and 6.
39832 \begin_layout Standard
39833 \begin_inset VSpace bigskip
39839 \begin_layout Standard
39840 It is also possible to print lines from a file as listing.
39841 To do this, use the menu
39843 Insert\SpecialChar menuseparator
39844 File\SpecialChar menuseparator
39847 and choose the type
39855 \begin_layout Plain Layout
39856 The other child document types are described in section
39857 \begin_inset space ~
39861 \begin_inset CommandInset ref
39863 reference "sec:Child-Documents"
39872 In the child document dialog you can specify the listing parameters in
39874 To show a list of all available parameters, type in a question mark
39875 \begin_inset Quotes eld
39879 \begin_inset Quotes erd
39885 \begin_layout Standard
39886 To reference child document listings, write a label text into the corresponding
39887 field of the child document dialog.
39888 The label can then be referenced using the menu
39890 Insert\SpecialChar menuseparator
39896 \begin_layout Standard
39898 \begin_inset space ~
39902 \begin_inset CommandInset ref
39904 reference "lst:file-listing"
39908 is an example for a listing of a file; there the lines 10
39909 \begin_inset space \thinspace{}
39913 \begin_inset space \thinspace{}
39916 15 of this \SpecialChar LyX
39920 \begin_layout Standard
39921 \begin_inset CommandInset include
39922 LatexCommand lstinputlisting
39923 filename "EmbeddedObjects.lyx"
39924 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39931 \begin_layout Standard
39932 \begin_inset VSpace bigskip
39938 \begin_layout Standard
39939 Inserting a formula into a listing can be done the following way:
39942 \begin_layout Enumerate
39943 Open the listings dialog and add
39944 \begin_inset Newline newline
39952 \begin_inset Newline newline
39955 to the field of the
39962 \begin_layout Enumerate
39963 Create a formula outside the listing
39966 \begin_layout Enumerate
39967 Copy the content of the formula (not the formula inset) to the clipboard
39977 \begin_layout Enumerate
39978 In the listing write
39979 \begin_inset Quotes eld
39987 \begin_inset Quotes erd
39990 and copy from the clipboard between the dollar-signs (shortcut
39999 \begin_layout Standard
40000 \begin_inset listings
40001 lstparams "language=Python,mathescape=true"
40005 \begin_layout Plain Layout
40007 \begin_inset Caption Standard
40009 \begin_layout Plain Layout
40010 Example Listing float containing a formula
40015 # Example listing float
40018 \begin_layout Plain Layout
40023 \begin_layout Plain Layout
40036 \begin_layout Plain Layout
40046 \begin_layout Standard
40047 \begin_inset VSpace bigskip
40053 \begin_layout Standard
40054 Global listings settings can be set in the
40056 Document\SpecialChar menuseparator
40057 Settings\SpecialChar menuseparator
40061 To get there a list of available options, type in a question mark
40062 \begin_inset Quotes eld
40066 \begin_inset Quotes erd
40072 \begin_layout Standard
40073 For more information about the
40077 package, we refer to its documentation
40078 \begin_inset CommandInset citation
40087 \begin_layout Standard
40088 \begin_inset Newpage newpage
40094 \begin_layout Chapter
40096 Units available in \SpecialChar LyX
40098 \begin_inset Index idx
40101 \begin_layout Plain Layout
40108 \begin_inset CommandInset label
40110 name "cha:Units-available-in"
40117 \begin_layout Standard
40118 To understand the units described in this documentation, Table
40119 \begin_inset space ~
40123 \begin_inset CommandInset ref
40125 reference "tab:Units"
40129 explains all units available in \SpecialChar LyX
40133 \begin_layout Standard
40134 \begin_inset Float table
40140 \begin_layout Plain Layout
40141 \begin_inset Caption Standard
40143 \begin_layout Plain Layout
40144 \begin_inset CommandInset label
40158 \begin_layout Plain Layout
40159 \begin_inset VSpace medskip
40165 \begin_layout Plain Layout
40167 \begin_inset Tabular
40168 <lyxtabular version="3" rows="20" columns="3">
40169 <features tabularvalignment="middle">
40170 <column alignment="center" valignment="top">
40171 <column alignment="center" valignment="top">
40172 <column alignment="center" valignment="top">
40174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40177 \begin_layout Plain Layout
40183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40186 \begin_layout Plain Layout
40192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40195 \begin_layout Plain Layout
40204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40207 \begin_layout Plain Layout
40213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40216 \begin_layout Plain Layout
40222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40225 \begin_layout Plain Layout
40233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40236 \begin_layout Plain Layout
40242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40245 \begin_layout Plain Layout
40251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40254 \begin_layout Plain Layout
40262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40265 \begin_layout Plain Layout
40271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40274 \begin_layout Plain Layout
40280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40283 \begin_layout Plain Layout
40291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40294 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40305 \begin_inset space \thinspace{}
40309 \begin_inset space \thinspace{}
40317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40320 \begin_layout Plain Layout
40328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40331 \begin_layout Plain Layout
40337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40340 \begin_layout Plain Layout
40342 \begin_inset space \thinspace{}
40346 \begin_inset space \thinspace{}
40354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40357 \begin_layout Plain Layout
40365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40368 \begin_layout Plain Layout
40374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40377 \begin_layout Plain Layout
40378 scaled point (65536
40379 \begin_inset space \thinspace{}
40383 \begin_inset space \thinspace{}
40391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40394 \begin_layout Plain Layout
40402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40405 \begin_layout Plain Layout
40411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40414 \begin_layout Plain Layout
40416 \begin_inset space \thinspace{}
40420 \begin_inset space \thinspace{}
40428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40431 \begin_layout Plain Layout
40439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40442 \begin_layout Plain Layout
40448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40451 \begin_layout Plain Layout
40453 \begin_inset space \thinspace{}
40457 \begin_inset Formula $\approx$
40461 \begin_inset space \thinspace{}
40469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40472 \begin_layout Plain Layout
40480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40483 \begin_layout Plain Layout
40489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40492 \begin_layout Plain Layout
40494 \begin_inset space \thinspace{}
40498 \begin_inset space \thinspace{}
40506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40509 \begin_layout Plain Layout
40517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40520 \begin_layout Plain Layout
40526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40529 \begin_layout Plain Layout
40530 % of original image width
40535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40538 \begin_layout Plain Layout
40546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40549 \begin_layout Plain Layout
40555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40558 \begin_layout Plain Layout
40564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40567 \begin_layout Plain Layout
40577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40580 \begin_layout Plain Layout
40586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40589 \begin_layout Plain Layout
40595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40598 \begin_layout Plain Layout
40608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40611 \begin_layout Plain Layout
40617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40620 \begin_layout Plain Layout
40626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40629 \begin_layout Plain Layout
40639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40642 \begin_layout Plain Layout
40648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40651 \begin_layout Plain Layout
40657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40660 \begin_layout Plain Layout
40670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40673 \begin_layout Plain Layout
40679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40682 \begin_layout Plain Layout
40688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40691 \begin_layout Plain Layout
40701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40704 \begin_layout Plain Layout
40710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40713 \begin_layout Plain Layout
40719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40722 \begin_layout Plain Layout
40732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40735 \begin_layout Plain Layout
40741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40744 \begin_layout Plain Layout
40754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40757 \begin_layout Plain Layout
40765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40768 \begin_layout Plain Layout
40774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40777 \begin_layout Plain Layout
40787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40790 \begin_layout Plain Layout
40798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40801 \begin_layout Plain Layout
40807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40810 \begin_layout Plain Layout
40812 \begin_inset space \thinspace{}
40816 \begin_inset space \thinspace{}
40824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40827 \begin_layout Plain Layout
40846 \begin_layout Chapter
40847 Output File Formats with Graphics
40848 \begin_inset CommandInset label
40850 name "cha:Output-File-Formats"
40857 \begin_layout Section
40859 \begin_inset Index idx
40862 \begin_layout Plain Layout
40869 \begin_inset Index idx
40872 \begin_layout Plain Layout
40877 \begin_layout Plain Layout
40888 \begin_layout Plain Layout
40903 \begin_layout Standard
40904 This file type has the extension
40905 \begin_inset Quotes eld
40913 \begin_inset Quotes erd
40918 \begin_inset Quotes eld
40922 \begin_inset Quotes erd
40925 (DVI), because it is completely portable; you can move them from one machine
40926 to another without needing to do any sort of conversion.
40927 At the time when this file-format was developed, this was no matter of
40929 DVIs are used for quick previews and as pre-stage for other output formats,
40933 \begin_layout Standard
40934 \begin_inset Note Greyedout
40937 \begin_layout Plain Layout
40942 DVI-files do not contain images; they will only be a linked.
40947 So don't forget this, if you move your
40951 file to another computer.
40952 This property can also slow down your computer when you view the DVI, because
40953 the DVI-viewer has to convert the image in the background to make it visible
40954 when you scroll in the DVI.
40955 So it is recommended that you use PDF for files with many images.
40958 \begin_layout Standard
40959 You can export your document to DVI by using the menu
40961 File\SpecialChar menuseparator
40962 Export\SpecialChar menuseparator
40966 You can view your document as DVI via the
40973 \begin_layout Section
40975 \begin_inset Index idx
40978 \begin_layout Plain Layout
40979 File Formats ! PostScript
40985 \begin_inset Index idx
40988 \begin_layout Plain Layout
40993 \begin_layout Plain Layout
41004 \begin_layout Plain Layout
41019 \begin_layout Standard
41020 This file type has the extension
41021 \begin_inset Quotes eld
41029 \begin_inset Quotes erd
41033 PostScript was developed by the company
41037 as a printer language.
41038 The file therefore contains commands that the printer uses to print the
41040 PostScript can be seen as a
41041 \begin_inset Quotes eld
41044 programming language
41045 \begin_inset Quotes erd
41048 ; you can calculate with it and draw diagrams and images.
41052 \begin_layout Plain Layout
41053 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41060 \begin_inset CommandInset citation
41071 Due to this ability, the files are often bigger than PDFs.
41074 \begin_layout Standard
41075 PostScript can only contain images in the format
41076 \begin_inset Quotes eld
41079 Encapsulated PostScript
41080 \begin_inset Quotes erd
41083 (EPS, file extension
41084 \begin_inset Quotes eld
41092 \begin_inset Quotes erd
41096 As \SpecialChar LyX
41097 allows you to use any known image format in your document, it has to
41098 convert images in the background to EPS.
41100 \begin_inset space ~
41104 \begin_inset space ~
41107 images in your document, \SpecialChar LyX
41109 \begin_inset space ~
41112 conversions whenever you view or export your document.
41113 This will slow down your work flow with \SpecialChar LyX
41115 So if you plan to use PostScript, you can insert your images directly as
41116 EPS to avoid this problem.
41119 \begin_layout Standard
41120 You can export your document to PostScript using the menu
41122 File\SpecialChar menuseparator
41123 Export\SpecialChar menuseparator
41127 You can view your document as PostScript via the
41134 \begin_layout Section
41136 \begin_inset Index idx
41139 \begin_layout Plain Layout
41146 \begin_inset Index idx
41149 \begin_layout Plain Layout
41158 \begin_layout Standard
41159 This file type has the extension
41160 \begin_inset Quotes eld
41168 \begin_inset Quotes erd
41173 \begin_inset Quotes eld
41176 Portable Document Format
41177 \begin_inset Quotes erd
41180 (PDF) was developed by
41184 as a derivative of PostScript.
41185 It is more compressed and it uses fewer commands than PostScript.
41187 \begin_inset Quotes eld
41191 \begin_inset Quotes erd
41194 implies, it can be processed at any computer system and the printed output
41195 looks exactly the same.
41198 \begin_layout Standard
41199 PDF can contain images in its own PDF format, in the format
41200 \begin_inset Quotes eld
41203 Joint Photographic Experts Group
41204 \begin_inset Quotes erd
41207 (JPG, file extension
41208 \begin_inset Quotes eld
41216 \begin_inset Quotes erd
41220 \begin_inset Quotes eld
41228 \begin_inset Quotes erd
41231 ), and in the format
41232 \begin_inset Quotes eld
41235 Portable Network Graphics
41236 \begin_inset Quotes erd
41239 (PNG, file extension
41240 \begin_inset Quotes eld
41248 \begin_inset Quotes erd
41252 Nevertheless you can use any other image format, because \SpecialChar LyX
41254 in the background to one of these formats.
41255 But as described in the section about PostScript, the image conversion
41256 will slow down your work flow.
41257 So it is recommended that you use images in one of the three mentioned
41261 \begin_layout Standard
41262 You can export your document to PDF via the menu
41264 File\SpecialChar menuseparator
41267 in three different ways:
41270 \begin_layout Description
41272 \begin_inset space ~
41275 (ps2pdf) This uses the program
41279 that creates a PDF from a PostScript-version of your file.
41280 The PostScript-version is produced by the program
41284 which uses a DVI-version as intermediate step.
41285 So this export variant consists of three conversions.
41288 \begin_layout Description
41290 \begin_inset space ~
41293 (dvipdfm) This uses the program
41297 that converts your file in the background to DVI and in a second step to
41301 \begin_layout Description
41303 \begin_inset space ~
41306 (pdflatex) This uses the program
41310 that converts your file directly to PDF.
41313 \begin_layout Standard
41314 It is recommended that you use
41317 \begin_inset space ~
41326 supports all features of actual PDF-versions, is quick and works stable.
41331 is not under development and therefore a bit outdated.
41334 \begin_layout Standard
41335 You can view your document as PDF via the
41339 menu or by using a toolbar button.
41342 \begin_layout Chapter
41343 List of dvips color names
41344 \begin_inset CommandInset label
41346 name "chap:List-of-dvips-colornames"
41353 \begin_layout Standard
41354 \begin_inset Tabular
41355 <lyxtabular version="3" rows="17" columns="4">
41356 <features tabularvalignment="middle">
41357 <column alignment="left" valignment="top" width="0pt">
41358 <column alignment="left" valignment="top" width="0pt">
41359 <column alignment="left" valignment="top" width="0pt">
41360 <column alignment="left" valignment="top" width="0pt">
41362 <cell alignment="left" valignment="top" usebox="none">
41365 \begin_layout Plain Layout
41369 \begin_layout Plain Layout
41382 \begin_layout Plain Layout
41393 \begin_layout Plain Layout
41405 <cell alignment="left" valignment="top" usebox="none">
41408 \begin_layout Plain Layout
41412 \begin_layout Plain Layout
41425 \begin_layout Plain Layout
41436 \begin_layout Plain Layout
41448 <cell alignment="left" valignment="top" usebox="none">
41451 \begin_layout Plain Layout
41455 \begin_layout Plain Layout
41468 \begin_layout Plain Layout
41479 \begin_layout Plain Layout
41491 <cell alignment="left" valignment="top" usebox="none">
41494 \begin_layout Plain Layout
41498 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41522 \begin_layout Plain Layout
41536 <cell alignment="center" valignment="top" usebox="none">
41539 \begin_layout Plain Layout
41543 \begin_layout Plain Layout
41556 \begin_layout Plain Layout
41564 \begin_inset Phantom Phantom
41567 \begin_layout Plain Layout
41577 \begin_layout Plain Layout
41589 <cell alignment="center" valignment="top" usebox="none">
41592 \begin_layout Plain Layout
41596 \begin_layout Plain Layout
41609 \begin_layout Plain Layout
41617 \begin_inset Phantom Phantom
41620 \begin_layout Plain Layout
41630 \begin_layout Plain Layout
41642 <cell alignment="center" valignment="top" usebox="none">
41645 \begin_layout Plain Layout
41649 \begin_layout Plain Layout
41662 \begin_layout Plain Layout
41670 \begin_inset Phantom Phantom
41673 \begin_layout Plain Layout
41683 \begin_layout Plain Layout
41695 <cell alignment="center" valignment="top" usebox="none">
41698 \begin_layout Plain Layout
41702 \begin_layout Plain Layout
41715 \begin_layout Plain Layout
41723 \begin_inset Phantom Phantom
41726 \begin_layout Plain Layout
41736 \begin_layout Plain Layout
41750 <cell alignment="left" valignment="top" usebox="none">
41753 \begin_layout Plain Layout
41757 \begin_layout Plain Layout
41770 \begin_layout Plain Layout
41778 \begin_inset Phantom Phantom
41781 \begin_layout Plain Layout
41791 \begin_layout Plain Layout
41803 <cell alignment="left" valignment="top" usebox="none">
41806 \begin_layout Plain Layout
41810 \begin_layout Plain Layout
41823 \begin_layout Plain Layout
41831 \begin_inset Phantom Phantom
41834 \begin_layout Plain Layout
41844 \begin_layout Plain Layout
41856 <cell alignment="left" valignment="top" usebox="none">
41859 \begin_layout Plain Layout
41863 \begin_layout Plain Layout
41876 \begin_layout Plain Layout
41884 \begin_inset Phantom Phantom
41887 \begin_layout Plain Layout
41897 \begin_layout Plain Layout
41909 <cell alignment="left" valignment="top" usebox="none">
41912 \begin_layout Plain Layout
41916 \begin_layout Plain Layout
41929 \begin_layout Plain Layout
41937 \begin_inset Phantom Phantom
41940 \begin_layout Plain Layout
41950 \begin_layout Plain Layout
41964 <cell alignment="left" valignment="top" usebox="none">
41967 \begin_layout Plain Layout
41971 \begin_layout Plain Layout
41984 \begin_layout Plain Layout
41992 \begin_inset Phantom Phantom
41995 \begin_layout Plain Layout
42005 \begin_layout Plain Layout
42017 <cell alignment="left" valignment="top" usebox="none">
42020 \begin_layout Plain Layout
42024 \begin_layout Plain Layout
42037 \begin_layout Plain Layout
42045 \begin_inset Phantom Phantom
42048 \begin_layout Plain Layout
42058 \begin_layout Plain Layout
42070 <cell alignment="left" valignment="top" usebox="none">
42073 \begin_layout Plain Layout
42077 \begin_layout Plain Layout
42090 \begin_layout Plain Layout
42098 \begin_inset Phantom Phantom
42101 \begin_layout Plain Layout
42111 \begin_layout Plain Layout
42123 <cell alignment="left" valignment="top" usebox="none">
42126 \begin_layout Plain Layout
42130 \begin_layout Plain Layout
42143 \begin_layout Plain Layout
42151 \begin_inset Phantom Phantom
42154 \begin_layout Plain Layout
42164 \begin_layout Plain Layout
42178 <cell alignment="left" valignment="top" usebox="none">
42181 \begin_layout Plain Layout
42185 \begin_layout Plain Layout
42198 \begin_layout Plain Layout
42206 \begin_inset Phantom Phantom
42209 \begin_layout Plain Layout
42219 \begin_layout Plain Layout
42231 <cell alignment="left" valignment="top" usebox="none">
42234 \begin_layout Plain Layout
42238 \begin_layout Plain Layout
42251 \begin_layout Plain Layout
42259 \begin_inset Phantom Phantom
42262 \begin_layout Plain Layout
42272 \begin_layout Plain Layout
42284 <cell alignment="left" valignment="top" usebox="none">
42287 \begin_layout Plain Layout
42291 \begin_layout Plain Layout
42304 \begin_layout Plain Layout
42312 \begin_inset Phantom Phantom
42315 \begin_layout Plain Layout
42325 \begin_layout Plain Layout
42337 <cell alignment="left" valignment="top" usebox="none">
42340 \begin_layout Plain Layout
42344 \begin_layout Plain Layout
42357 \begin_layout Plain Layout
42365 \begin_inset Phantom Phantom
42368 \begin_layout Plain Layout
42378 \begin_layout Plain Layout
42392 <cell alignment="left" valignment="top" usebox="none">
42395 \begin_layout Plain Layout
42399 \begin_layout Plain Layout
42412 \begin_layout Plain Layout
42420 \begin_inset Phantom Phantom
42423 \begin_layout Plain Layout
42433 \begin_layout Plain Layout
42445 <cell alignment="left" valignment="top" usebox="none">
42448 \begin_layout Plain Layout
42452 \begin_layout Plain Layout
42465 \begin_layout Plain Layout
42473 \begin_inset Phantom Phantom
42476 \begin_layout Plain Layout
42486 \begin_layout Plain Layout
42498 <cell alignment="left" valignment="top" usebox="none">
42501 \begin_layout Plain Layout
42505 \begin_layout Plain Layout
42518 \begin_layout Plain Layout
42526 \begin_inset Phantom Phantom
42529 \begin_layout Plain Layout
42539 \begin_layout Plain Layout
42551 <cell alignment="left" valignment="top" usebox="none">
42554 \begin_layout Plain Layout
42558 \begin_layout Plain Layout
42571 \begin_layout Plain Layout
42579 \begin_inset Phantom Phantom
42582 \begin_layout Plain Layout
42592 \begin_layout Plain Layout
42606 <cell alignment="center" valignment="top" usebox="none">
42609 \begin_layout Plain Layout
42613 \begin_layout Plain Layout
42626 \begin_layout Plain Layout
42634 \begin_inset Phantom Phantom
42637 \begin_layout Plain Layout
42647 \begin_layout Plain Layout
42659 <cell alignment="center" valignment="top" usebox="none">
42662 \begin_layout Plain Layout
42666 \begin_layout Plain Layout
42679 \begin_layout Plain Layout
42687 \begin_inset Phantom Phantom
42690 \begin_layout Plain Layout
42700 \begin_layout Plain Layout
42712 <cell alignment="center" valignment="top" usebox="none">
42715 \begin_layout Plain Layout
42719 \begin_layout Plain Layout
42732 \begin_layout Plain Layout
42740 \begin_inset Phantom Phantom
42743 \begin_layout Plain Layout
42753 \begin_layout Plain Layout
42765 <cell alignment="center" valignment="top" usebox="none">
42768 \begin_layout Plain Layout
42772 \begin_layout Plain Layout
42785 \begin_layout Plain Layout
42793 \begin_inset Phantom Phantom
42796 \begin_layout Plain Layout
42806 \begin_layout Plain Layout
42820 <cell alignment="left" valignment="top" usebox="none">
42823 \begin_layout Plain Layout
42827 \begin_layout Plain Layout
42840 \begin_layout Plain Layout
42848 \begin_inset Phantom Phantom
42851 \begin_layout Plain Layout
42861 \begin_layout Plain Layout
42873 <cell alignment="left" valignment="top" usebox="none">
42876 \begin_layout Plain Layout
42880 \begin_layout Plain Layout
42893 \begin_layout Plain Layout
42901 \begin_inset Phantom Phantom
42904 \begin_layout Plain Layout
42914 \begin_layout Plain Layout
42926 <cell alignment="left" valignment="top" usebox="none">
42929 \begin_layout Plain Layout
42933 \begin_layout Plain Layout
42946 \begin_layout Plain Layout
42954 \begin_inset Phantom Phantom
42957 \begin_layout Plain Layout
42967 \begin_layout Plain Layout
42979 <cell alignment="left" valignment="top" usebox="none">
42982 \begin_layout Plain Layout
42986 \begin_layout Plain Layout
42999 \begin_layout Plain Layout
43007 \begin_inset Phantom Phantom
43010 \begin_layout Plain Layout
43020 \begin_layout Plain Layout
43034 <cell alignment="left" valignment="top" usebox="none">
43037 \begin_layout Plain Layout
43041 \begin_layout Plain Layout
43054 \begin_layout Plain Layout
43062 \begin_inset Phantom Phantom
43065 \begin_layout Plain Layout
43075 \begin_layout Plain Layout
43087 <cell alignment="left" valignment="top" usebox="none">
43090 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43107 \begin_layout Plain Layout
43115 \begin_inset Phantom Phantom
43118 \begin_layout Plain Layout
43128 \begin_layout Plain Layout
43140 <cell alignment="left" valignment="top" usebox="none">
43143 \begin_layout Plain Layout
43147 \begin_layout Plain Layout
43160 \begin_layout Plain Layout
43168 \begin_inset Phantom Phantom
43171 \begin_layout Plain Layout
43181 \begin_layout Plain Layout
43193 <cell alignment="left" valignment="top" usebox="none">
43196 \begin_layout Plain Layout
43200 \begin_layout Plain Layout
43213 \begin_layout Plain Layout
43221 \begin_inset Phantom Phantom
43224 \begin_layout Plain Layout
43234 \begin_layout Plain Layout
43248 <cell alignment="left" valignment="top" usebox="none">
43251 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43268 \begin_layout Plain Layout
43276 \begin_inset Phantom Phantom
43279 \begin_layout Plain Layout
43289 \begin_layout Plain Layout
43301 <cell alignment="left" valignment="top" usebox="none">
43304 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43321 \begin_layout Plain Layout
43329 \begin_inset Phantom Phantom
43332 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43354 <cell alignment="left" valignment="top" usebox="none">
43357 \begin_layout Plain Layout
43361 \begin_layout Plain Layout
43374 \begin_layout Plain Layout
43382 \begin_inset Phantom Phantom
43385 \begin_layout Plain Layout
43395 \begin_layout Plain Layout
43407 <cell alignment="left" valignment="top" usebox="none">
43410 \begin_layout Plain Layout
43414 \begin_layout Plain Layout
43427 \begin_layout Plain Layout
43435 \begin_inset Phantom Phantom
43438 \begin_layout Plain Layout
43448 \begin_layout Plain Layout
43462 <cell alignment="left" valignment="top" usebox="none">
43465 \begin_layout Plain Layout
43469 \begin_layout Plain Layout
43482 \begin_layout Plain Layout
43490 \begin_inset Phantom Phantom
43493 \begin_layout Plain Layout
43503 \begin_layout Plain Layout
43515 <cell alignment="left" valignment="top" usebox="none">
43518 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43535 \begin_layout Plain Layout
43543 \begin_inset Phantom Phantom
43546 \begin_layout Plain Layout
43556 \begin_layout Plain Layout
43568 <cell alignment="left" valignment="top" usebox="none">
43571 \begin_layout Plain Layout
43575 \begin_layout Plain Layout
43588 \begin_layout Plain Layout
43596 \begin_inset Phantom Phantom
43599 \begin_layout Plain Layout
43609 \begin_layout Plain Layout
43621 <cell alignment="left" valignment="top" usebox="none">
43624 \begin_layout Plain Layout
43628 \begin_layout Plain Layout
43641 \begin_layout Plain Layout
43649 \begin_inset Phantom Phantom
43652 \begin_layout Plain Layout
43662 \begin_layout Plain Layout
43676 <cell alignment="left" valignment="top" usebox="none">
43679 \begin_layout Plain Layout
43683 \begin_layout Plain Layout
43696 \begin_layout Plain Layout
43704 \begin_inset Phantom Phantom
43707 \begin_layout Plain Layout
43717 \begin_layout Plain Layout
43729 <cell alignment="left" valignment="top" usebox="none">
43732 \begin_layout Plain Layout
43736 \begin_layout Plain Layout
43749 \begin_layout Plain Layout
43757 \begin_inset Phantom Phantom
43760 \begin_layout Plain Layout
43770 \begin_layout Plain Layout
43782 <cell alignment="left" valignment="top" usebox="none">
43785 \begin_layout Plain Layout
43789 \begin_layout Plain Layout
43802 \begin_layout Plain Layout
43810 \begin_inset Phantom Phantom
43813 \begin_layout Plain Layout
43823 \begin_layout Plain Layout
43835 <cell alignment="left" valignment="top" usebox="none">
43838 \begin_layout Plain Layout
43842 \begin_layout Plain Layout
43855 \begin_layout Plain Layout
43863 \begin_inset Phantom Phantom
43866 \begin_layout Plain Layout
43876 \begin_layout Plain Layout
43890 <cell alignment="left" valignment="top" usebox="none">
43893 \begin_layout Plain Layout
43897 \begin_layout Plain Layout
43910 \begin_layout Plain Layout
43918 \begin_inset Phantom Phantom
43921 \begin_layout Plain Layout
43931 \begin_layout Plain Layout
43943 <cell alignment="left" valignment="top" usebox="none">
43946 \begin_layout Plain Layout
43950 \begin_layout Plain Layout
43963 \begin_layout Plain Layout
43971 \begin_inset Phantom Phantom
43974 \begin_layout Plain Layout
43984 \begin_layout Plain Layout
43996 <cell alignment="left" valignment="top" usebox="none">
43999 \begin_layout Plain Layout
44003 \begin_layout Plain Layout
44016 \begin_layout Plain Layout
44024 \begin_inset Phantom Phantom
44027 \begin_layout Plain Layout
44037 \begin_layout Plain Layout
44049 <cell alignment="left" valignment="top" usebox="none">
44052 \begin_layout Plain Layout
44056 \begin_layout Plain Layout
44069 \begin_layout Plain Layout
44077 \begin_inset Phantom Phantom
44080 \begin_layout Plain Layout
44090 \begin_layout Plain Layout
44104 <cell alignment="left" valignment="top" usebox="none">
44107 \begin_layout Plain Layout
44111 \begin_layout Plain Layout
44124 \begin_layout Plain Layout
44132 \begin_inset Phantom Phantom
44135 \begin_layout Plain Layout
44145 \begin_layout Plain Layout
44157 <cell alignment="left" valignment="top" usebox="none">
44160 \begin_layout Plain Layout
44164 \begin_layout Plain Layout
44177 \begin_layout Plain Layout
44185 \begin_inset Phantom Phantom
44188 \begin_layout Plain Layout
44198 \begin_layout Plain Layout
44210 <cell alignment="left" valignment="top" usebox="none">
44213 \begin_layout Plain Layout
44217 \begin_layout Plain Layout
44230 \begin_layout Plain Layout
44238 \begin_inset Phantom Phantom
44241 \begin_layout Plain Layout
44251 \begin_layout Plain Layout
44263 <cell alignment="left" valignment="top" usebox="none">
44266 \begin_layout Plain Layout
44270 \begin_layout Plain Layout
44283 \begin_layout Plain Layout
44291 \begin_inset Phantom Phantom
44294 \begin_layout Plain Layout
44304 \begin_layout Plain Layout
44318 <cell alignment="left" valignment="top" usebox="none">
44321 \begin_layout Plain Layout
44325 \begin_layout Plain Layout
44338 \begin_layout Plain Layout
44346 \begin_inset Phantom Phantom
44349 \begin_layout Plain Layout
44359 \begin_layout Plain Layout
44371 <cell alignment="left" valignment="top" usebox="none">
44374 \begin_layout Plain Layout
44378 \begin_layout Plain Layout
44391 \begin_layout Plain Layout
44399 \begin_inset Phantom Phantom
44402 \begin_layout Plain Layout
44412 \begin_layout Plain Layout
44424 <cell alignment="left" valignment="top" usebox="none">
44427 \begin_layout Plain Layout
44431 \begin_layout Plain Layout
44444 \begin_layout Plain Layout
44452 \begin_inset Phantom Phantom
44455 \begin_layout Plain Layout
44465 \begin_layout Plain Layout
44477 <cell alignment="left" valignment="top" usebox="none">
44480 \begin_layout Plain Layout
44484 \begin_layout Plain Layout
44497 \begin_layout Plain Layout
44505 \begin_inset Phantom Phantom
44508 \begin_layout Plain Layout
44518 \begin_layout Plain Layout
44532 <cell alignment="left" valignment="top" usebox="none">
44535 \begin_layout Plain Layout
44539 \begin_layout Plain Layout
44552 \begin_layout Plain Layout
44560 \begin_inset Phantom Phantom
44563 \begin_layout Plain Layout
44573 \begin_layout Plain Layout
44585 <cell alignment="left" valignment="top" usebox="none">
44588 \begin_layout Plain Layout
44592 \begin_layout Plain Layout
44605 \begin_layout Plain Layout
44613 \begin_inset Phantom Phantom
44616 \begin_layout Plain Layout
44626 \begin_layout Plain Layout
44638 <cell alignment="left" valignment="top" usebox="none">
44641 \begin_layout Plain Layout
44645 \begin_layout Plain Layout
44658 \begin_layout Plain Layout
44666 \begin_inset Phantom Phantom
44669 \begin_layout Plain Layout
44679 \begin_layout Plain Layout
44691 <cell alignment="left" valignment="top" usebox="none">
44694 \begin_layout Plain Layout
44698 \begin_layout Plain Layout
44711 \begin_layout Plain Layout
44719 \begin_inset Phantom Phantom
44722 \begin_layout Plain Layout
44732 \begin_layout Plain Layout
44746 <cell alignment="left" valignment="top" usebox="none">
44749 \begin_layout Plain Layout
44753 \begin_layout Plain Layout
44766 \begin_layout Plain Layout
44774 \begin_inset Phantom Phantom
44777 \begin_layout Plain Layout
44787 \begin_layout Plain Layout
44799 <cell alignment="left" valignment="top" usebox="none">
44802 \begin_layout Plain Layout
44808 <cell alignment="left" valignment="top" usebox="none">
44811 \begin_layout Plain Layout
44817 <cell alignment="left" valignment="top" usebox="none">
44820 \begin_layout Plain Layout
44834 \begin_layout Chapter
44835 Explanation of Equation
44836 \begin_inset space ~
44840 \begin_inset CommandInset ref
44847 \begin_inset CommandInset label
44849 name "cha:Explanation-of-Equation"
44856 \begin_layout Standard
44857 We can calculate the total width of
44862 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44866 \begin_inset Formula
44868 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44874 \begin_inset Formula $W_{g\,n}$
44877 is the given width of all cells,
44883 is the \SpecialChar LaTeX
44884 -length between the cell text and the cell border (its default value
44886 \begin_inset space \thinspace{}
44896 is the thickness of the cell border line, the default is 0.4
44897 \begin_inset space \thinspace{}
44903 \begin_layout Standard
44905 \begin_inset space ~
44909 \begin_inset CommandInset ref
44911 reference "eq:Wtot_n"
44915 , the total width of a multicolumn
44916 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44920 \begin_inset Formula
44922 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44930 \begin_layout Standard
44931 By setting equation
44932 \begin_inset space ~
44936 \begin_inset CommandInset ref
44938 reference "eq:Wtot_n"
44943 \begin_inset CommandInset ref
44945 reference "eq:Wtot_mult"
44949 equal we can calculate the needed given width
44950 \begin_inset Formula $W_{g\,n}$
44957 columns are spanned, so that each column has a total width of
44958 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44962 \begin_inset Formula
44964 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44972 \begin_layout Bibliography
44973 \begin_inset CommandInset bibitem
44974 LatexCommand bibitem
44975 key "latexcompanion"
44979 Frank Mittelbach and Michel Goossens:
44981 The \SpecialChar LaTeX
44982 Companion Second Edition.
44985 Addison-Wesley, 2004
44988 \begin_layout Bibliography
44989 \begin_inset CommandInset bibitem
44990 LatexCommand bibitem
44995 Helmut Kopka and Patrick W.
44998 A Guide to \SpecialChar LaTeX
45002 Addison-Wesley, 2003
45005 \begin_layout Bibliography
45006 \begin_inset CommandInset bibitem
45007 LatexCommand bibitem
45015 : A Document Preparation System.
45018 Addison-Wesley, second edition, 1994
45021 \begin_layout Bibliography
45022 \begin_inset CommandInset bibitem
45023 LatexCommand bibitem
45028 Documentation of the \SpecialChar LaTeX
45032 \begin_inset CommandInset href
45035 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45042 \begin_inset Index idx
45045 \begin_layout Plain Layout
45047 -packages ! arydshln
45055 \begin_layout Bibliography
45056 \begin_inset CommandInset bibitem
45057 LatexCommand bibitem
45062 Documentation of the \SpecialChar LaTeX
45066 \begin_inset CommandInset href
45069 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45076 \begin_inset Index idx
45079 \begin_layout Plain Layout
45081 -packages ! booktabs
45089 \begin_layout Bibliography
45090 \begin_inset CommandInset bibitem
45091 LatexCommand bibitem
45096 Documentation of the \SpecialChar LaTeX
45100 \begin_inset CommandInset href
45103 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45110 \begin_inset Index idx
45113 \begin_layout Plain Layout
45115 -packages ! caption
45123 \begin_layout Bibliography
45124 \begin_inset CommandInset bibitem
45125 LatexCommand bibitem
45130 Documentation of the \SpecialChar LaTeX
45134 \begin_inset CommandInset href
45137 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45144 \begin_inset Index idx
45147 \begin_layout Plain Layout
45149 -packages ! diagbox
45157 \begin_layout Bibliography
45158 \begin_inset CommandInset bibitem
45159 LatexCommand bibitem
45164 Documentation of the \SpecialChar LaTeX
45168 \begin_inset CommandInset href
45171 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45178 \begin_inset Index idx
45181 \begin_layout Plain Layout
45183 -packages ! endfloat
45191 \begin_layout Bibliography
45192 \begin_inset CommandInset bibitem
45193 LatexCommand bibitem
45198 Documentation of the \SpecialChar LaTeX
45202 \begin_inset CommandInset href
45205 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45212 \begin_inset Index idx
45215 \begin_layout Plain Layout
45217 -packages ! footmisc
45225 \begin_layout Bibliography
45226 \begin_inset CommandInset bibitem
45227 LatexCommand bibitem
45232 Documentation of the \SpecialChar LaTeX
45236 \begin_inset CommandInset href
45239 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45246 \begin_inset Index idx
45249 \begin_layout Plain Layout
45251 -packages ! hyperref
45259 \begin_layout Bibliography
45260 \begin_inset CommandInset bibitem
45261 LatexCommand bibitem
45266 Documentation of the \SpecialChar LaTeX
45270 \begin_inset CommandInset href
45273 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45280 \begin_inset Index idx
45283 \begin_layout Plain Layout
45285 -packages ! hyperref
45293 \begin_layout Bibliography
45294 \begin_inset CommandInset bibitem
45295 LatexCommand bibitem
45300 Documentation of the \SpecialChar LaTeX
45304 \begin_inset CommandInset href
45307 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45314 \begin_inset Index idx
45317 \begin_layout Plain Layout
45319 -packages ! KOMA-Script
45327 \begin_layout Bibliography
45328 \begin_inset CommandInset bibitem
45329 LatexCommand bibitem
45334 Documentation of the \SpecialChar LaTeX
45338 \begin_inset CommandInset href
45341 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45348 \begin_inset CommandInset href
45351 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45356 \begin_inset Index idx
45359 \begin_layout Plain Layout
45361 -packages ! lettrine
45369 \begin_layout Bibliography
45370 \begin_inset CommandInset bibitem
45371 LatexCommand bibitem
45376 Documentation of the \SpecialChar LaTeX
45380 \begin_inset CommandInset href
45383 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45390 \begin_inset Index idx
45393 \begin_layout Plain Layout
45395 -packages ! listings
45403 \begin_layout Bibliography
45404 \begin_inset CommandInset bibitem
45405 LatexCommand bibitem
45410 Documentation of the \SpecialChar LaTeX
45414 \begin_inset CommandInset href
45417 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45424 \begin_inset Index idx
45427 \begin_layout Plain Layout
45429 -packages ! marginnote
45437 \begin_layout Bibliography
45438 \begin_inset CommandInset bibitem
45439 LatexCommand bibitem
45444 Documentation of the \SpecialChar LaTeX
45448 \begin_inset CommandInset href
45451 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45458 \begin_inset Index idx
45461 \begin_layout Plain Layout
45463 -packages ! pdfpages
45471 \begin_layout Bibliography
45472 \begin_inset CommandInset bibitem
45473 LatexCommand bibitem
45478 Documentation of the \SpecialChar LaTeX
45482 \begin_inset CommandInset href
45485 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45492 \begin_inset Index idx
45495 \begin_layout Plain Layout
45497 -packages ! prettyref
45505 \begin_layout Bibliography
45506 \begin_inset CommandInset bibitem
45507 LatexCommand bibitem
45512 Web page of the \SpecialChar LaTeX
45516 \begin_inset CommandInset href
45519 target "http://tug.org/PSTricks/"
45526 \begin_inset Index idx
45529 \begin_layout Plain Layout
45531 -packages ! PSTricks
45539 \begin_layout Bibliography
45540 \begin_inset CommandInset bibitem
45541 LatexCommand bibitem
45546 Documentation of the \SpecialChar LaTeX
45550 \begin_inset CommandInset href
45553 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45560 \begin_inset Index idx
45563 \begin_layout Plain Layout
45565 -packages ! refstyle
45573 \begin_layout Bibliography
45574 \begin_inset CommandInset bibitem
45575 LatexCommand bibitem
45580 Documentation of the \SpecialChar LaTeX
45584 \begin_inset CommandInset href
45587 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45594 \begin_inset Index idx
45597 \begin_layout Plain Layout
45599 -packages ! sidecap
45607 \begin_layout Bibliography
45608 \begin_inset CommandInset bibitem
45609 LatexCommand bibitem
45615 \begin_inset CommandInset href
45618 target "http://wiki.lyx.org/LyX/NewInLyX20"
45622 about new features in
45630 \begin_layout Standard
45631 \begin_inset CommandInset index_print
45632 LatexCommand printindex