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 (pdflatex) / (plain)
29631 Its note-box looks like this:
29632 \begin_inset Newline newline
29636 \begin_inset Newline newline
29640 \begin_inset Graphics
29641 filename clipart/CommentNoteImage.png
29643 scaleBeforeRotation
29648 \begin_inset Note Comment
29651 \begin_layout Plain Layout
29652 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29661 \begin_layout Description
29663 \begin_inset space ~
29666 Out This note will appear in the output as grey text.
29667 Its note-box looks like this:
29668 \begin_inset Newline newline
29672 \begin_inset Newline newline
29676 \begin_inset Graphics
29677 filename clipart/GreyedOutNoteImage.png
29679 scaleBeforeRotation
29684 \begin_inset Newline newline
29691 \begin_layout Plain Layout
29695 renewenvironment{lyxgreyedout}
29698 \begin_layout Plain Layout
29702 textcolor[gray]{0.8}
29712 \begin_inset Note Greyedout
29715 \begin_layout Plain Layout
29716 This is text of a comment that appears grey in the output.
29725 \begin_layout Plain Layout
29729 renewenvironment{lyxgreyedout}
29732 \begin_layout Plain Layout
29746 \begin_inset Note Note
29749 \begin_layout Plain Layout
29750 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29752 because greyed out notes are redefined in the preamble of this document,
29753 as described below, to have blue text.
29759 \begin_inset Newline newline
29763 \begin_inset Newline newline
29766 As you can see in the example, the first line of greyed out notes is a bit
29767 indented and greyed out notes can have footnotes.
29770 \begin_layout Standard
29771 \begin_inset VSpace bigskip
29774 When you use the toolbar button
29784 \begin_inset space ~
29790 You can switch between the three note types by right-clicking on the note-box.
29795 If you want to turn existing text into a note, mark it and click on the
29809 To change a note to text, press the backspace key when the cursor is in
29810 the first position of a note, or press the delete key when the cursor is
29811 in the very last position of the note, respectively.
29814 \begin_layout Standard
29815 \begin_inset VSpace bigskip
29818 You can change the text color of the greyed out notes in the menu
29820 Document\SpecialChar menuseparator
29821 Settings\SpecialChar menuseparator
29827 \begin_layout Section
29829 \begin_inset CommandInset label
29831 name "sec:Footnotes"
29836 \begin_inset Index idx
29839 \begin_layout Plain Layout
29846 \begin_inset Index idx
29849 \begin_layout Plain Layout
29858 \begin_layout Standard
29859 Footnotes can be inserted using the toolbar button
29862 arg "footnote-insert"
29867 Insert\SpecialChar menuseparator
29871 You will then see the following footnote-box:
29872 \begin_inset Graphics
29873 filename clipart/footnote.png
29875 scaleBeforeRotation
29883 where you can enter the footnote text.
29884 If you want to turn existing text into a footnote, mark it and click on
29910 key when the cursor is in the first position of a
29922 key when the cursor is in the very last position of the
29933 \begin_layout Standard
29934 Here is an example footnote:
29942 \begin_layout Plain Layout
29943 \begin_inset CommandInset label
29945 name "foot:This-is-an"
29949 This is an example footnote.
29962 \begin_layout Plain Layout
29966 newcounter{MyRepeatFoot}
29969 \begin_layout Plain Layout
29973 setcounter{MyRepeatFoot}{
29983 \begin_layout Standard
29984 The footnote will appear in the output as a superscript number at the text
29985 position where the footnote box is placed.
29986 The footnote text is placed at the bottom of the current page.
29987 The footnote number is calculated by \SpecialChar LaTeX
29988 ; the numbers are consecutive.
29989 Whether the footnote number is reset for every chapter depends on your
29993 \begin_layout Standard
29994 Footnotes can be referenced like floats: Insert a label into the footnote
29995 and cross-reference this label in the text as described in section
29996 \begin_inset space ~
30000 \begin_inset CommandInset ref
30002 reference "sec:Referencing-Floats"
30007 \begin_inset Newline newline
30010 This is a cross-reference of Footnote
30011 \begin_inset space ~
30015 \begin_inset CommandInset ref
30017 reference "foot:This-is-an"
30024 \begin_layout Standard
30025 \begin_inset VSpace defskip
30028 Footnotes in title environments are usually not numbered with symbols and
30029 they cannot contain several paragraphs.
30030 See for example the footnote in the titling of this document.
30033 \begin_layout Standard
30034 \begin_inset VSpace defskip
30037 Footnotes in tables are not printed by \SpecialChar LaTeX
30038 due to technical reasons.
30039 However there exists another method to print them: Instead of the footnote
30046 is inserted as \SpecialChar TeX
30048 The text of the footnote is entered as an argument of the \SpecialChar TeX
30057 \begin_inset Newline newline
30060 This was done for the following table with the command
30063 \begin_layout Standard
30070 Printed table footnote.
30075 \begin_layout Standard
30076 \begin_inset Tabular
30077 <lyxtabular version="3" rows="2" columns="1">
30078 <features tabularvalignment="middle">
30079 <column alignment="center" valignment="top">
30081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30084 \begin_layout Plain Layout
30085 This an example text.
30089 \begin_layout Plain Layout
30090 This footnote will not be printed!
30102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30105 \begin_layout Plain Layout
30106 This an example text.
30110 \begin_layout Plain Layout
30133 \begin_layout Plain Layout
30142 Printed table footnote.
30146 \begin_layout Plain Layout
30156 \begin_layout Standard
30157 Footnotes in longtables are described in section
30158 \begin_inset space ~
30162 \begin_inset CommandInset ref
30164 reference "subsec:Footnotes-in-Longtables"
30171 \begin_layout Standard
30172 Footnotes in minipage boxes are printed, but inside the box and with a different
30173 numbering because a minipage box is like a page inside a page.
30174 (For more about minipages, see section
30175 \begin_inset space ~
30179 \begin_inset CommandInset ref
30181 reference "sec:Minipages"
30185 .) To get a footnote in the minipage that is output at the bottom of the
30186 page like normal footnotes, also use the method of
30201 \begin_layout Standard
30202 \begin_inset Box Frameless
30212 height_special "totalheight"
30217 backgroundcolor "none"
30220 \begin_layout Plain Layout
30221 This an example text in a minipage.
30225 \begin_layout Plain Layout
30226 Footnote in the minipage.
30234 \begin_layout Plain Layout
30235 This an example text in a minipage.
30239 \begin_layout Plain Layout
30256 \begin_layout Standard
30260 \begin_layout Plain Layout
30269 Footnote outside the minipage.
30273 \begin_layout Plain Layout
30283 \begin_layout Standard
30284 \begin_inset VSpace defskip
30290 \begin_layout Standard
30291 To refer to the same footnote several times without printing the footnote
30292 text every time, use the command
30296 footnotemark[number]
30298 in \SpecialChar TeX
30300 \begin_inset Newline newline
30303 As you do not know the number of the repeating footnote while you are writing
30304 the text, you have to store its number.
30305 For the following footnote mark example, these commands were inserted in
30307 code after Footnote
30308 \begin_inset space ~
30312 \begin_inset CommandInset ref
30314 reference "foot:This-is-an"
30318 to store the footnote number:
30321 \begin_layout Standard
30326 newcounter{MyRepeatFoot}
30327 \begin_inset Newline newline
30332 setcounter{MyRepeatFoot}{
30337 \begin_layout Standard
30338 The footnote mark was then created with this command:
30341 \begin_layout Standard
30351 \begin_layout Standard
30352 Here is a repeated footnote:
30360 \begin_layout Plain Layout
30374 \begin_layout Standard
30375 If you want to repeat the previous footnote, you can omit the storage of
30376 the footnote number and just use this command instead:
30379 \begin_layout Standard
30389 \begin_layout Standard
30390 Here is another repeated footnote:
30398 \begin_layout Plain Layout
30412 \begin_layout Subsection
30414 \begin_inset CommandInset label
30416 name "subsec:Footnote-Numbering"
30421 \begin_inset Index idx
30424 \begin_layout Plain Layout
30425 Footnotes ! Numbering
30433 \begin_layout Standard
30434 To reset the footnote number back to 1 after each section
30436 , add this command to your document preamble:
30439 \begin_layout Standard
30444 @addtoreset{footnote}{section}
30447 \begin_layout Standard
30448 \begin_inset VSpace bigskip
30451 The following preamble command changes the footnote numbering style to small
30455 \begin_layout Standard
30467 \begin_layout Standard
30471 \begin_layout Plain Layout
30484 This is a footnote with roman numbering:
30488 \begin_layout Plain Layout
30489 This is an example footnote with roman numbering.
30497 \begin_layout Standard
30498 To change the numbering style to capital roman numerals replace in the command
30513 \begin_inset Quotes eld
30517 \begin_inset Quotes erd
30520 footnotes with capital or small Latin letters use
30534 \begin_inset Quotes eld
30538 \begin_inset Quotes erd
30541 footnotes with symbols use
30550 \begin_layout Standard
30551 \begin_inset Note Greyedout
30554 \begin_layout Plain Layout
30559 You can only number 26 footnotes with Latin letters, because this numbering
30560 is limited to single letters.
30566 \begin_inset Newline newline
30570 \begin_inset Note Greyedout
30573 \begin_layout Plain Layout
30578 You can only number 9 footnotes with symbols.
30586 \begin_layout Standard
30587 To return to the default numbering style after you have changed to another
30600 in the command above.
30604 \begin_layout Plain Layout
30620 \begin_layout Standard
30621 \begin_inset VSpace bigskip
30627 \begin_layout Standard
30628 If you want to have footnotes numbered in the scheme
30629 \begin_inset Quotes eld
30633 \begin_inset Quotes erd
30636 , add the following command to your document preamble:
30639 \begin_layout Standard
30644 numberwithin{footnote}{chapter}
30647 \begin_layout Standard
30648 To be able to use the command
30657 \begin_inset space ~
30662 in the document settings the option
30665 \begin_inset space ~
30669 \begin_inset space ~
30673 \begin_inset space ~
30681 \begin_layout Standard
30685 \begin_layout Plain Layout
30689 numberwithin{footnote}{chapter}
30694 This is another example footnote:
30700 \begin_layout Plain Layout
30701 This is a footnote numbered in the scheme
30702 \begin_inset Quotes eld
30706 \begin_inset Quotes erd
30720 \begin_layout Plain Layout
30736 \begin_layout Standard
30737 \begin_inset Note Greyedout
30740 \begin_layout Plain Layout
30751 always prints out the footnote number as arabic number; previous redefinitions
30752 to get non-arabic numbers are overwritten.
30760 \begin_layout Standard
30761 So to get for example the scheme
30762 \begin_inset Quotes eld
30768 \begin_inset Quotes erd
30771 , use this command instead of
30780 \begin_layout Standard
30794 \begin_layout Subsection
30796 \begin_inset Index idx
30799 \begin_layout Plain Layout
30800 Footnotes ! Placement
30808 \begin_layout Standard
30809 If you have several footnotes in one page, they appear without vertical
30810 space between them at the bottom of the page.
30811 To make them more readable you can e.
30812 \begin_inset space \thinspace{}
30816 \begin_inset space \space{}
30820 \begin_inset space \thinspace{}
30823 mm space with the following preamble command:
30826 \begin_layout Standard
30836 \begin_inset Newline newline
30850 \begin_layout Standard
30851 \begin_inset VSpace bigskip
30854 In a two-column document the footnotes appear at the bottom of every column,
30856 \begin_inset space ~
30860 \begin_inset CommandInset ref
30862 reference "fig:Standard-footnote-placement"
30867 If the footnotes should only appear at the bottom of the right column,
30869 \begin_inset space ~
30873 \begin_inset CommandInset ref
30875 reference "fig:Footnote-placement-in"
30879 , use the \SpecialChar LaTeX
30885 \begin_inset Index idx
30888 \begin_layout Plain Layout
30890 -packages ! ftnright
30895 with this command in the document preamble:
30898 \begin_layout Standard
30903 usepackage{ftnright}
30906 \begin_layout Standard
30907 \begin_inset Float figure
30913 \begin_layout Plain Layout
30917 \begin_layout Plain Layout
30927 \begin_inset Graphics
30928 filename clipart/without_fntright.pdf
30930 scaleBeforeRotation
30938 \begin_layout Plain Layout
30948 \begin_layout Plain Layout
30949 \begin_inset Caption Standard
30951 \begin_layout Plain Layout
30952 \begin_inset CommandInset label
30954 name "fig:Standard-footnote-placement"
30958 Standard footnote placement in two-column documents.
30971 \begin_layout Standard
30972 \begin_inset Float figure
30978 \begin_layout Plain Layout
30982 \begin_layout Plain Layout
30992 \begin_inset Graphics
30993 filename clipart/with_fntright.pdf
30995 scaleBeforeRotation
31003 \begin_layout Plain Layout
31013 \begin_layout Plain Layout
31014 \begin_inset Caption Standard
31016 \begin_layout Plain Layout
31017 \begin_inset CommandInset label
31019 name "fig:Footnote-placement-in"
31023 Footnote placement in two-column documents when the \SpecialChar LaTeX
31041 \begin_layout Standard
31042 \begin_inset VSpace bigskip
31045 In some scientific literature it is usual to collect the footnotes and print
31046 them in a separate paragraph at the end of a section, as in Figure
31047 \begin_inset space ~
31051 \begin_inset CommandInset ref
31053 reference "fig:Endnotes"
31058 They are then called
31059 \begin_inset Quotes eld
31063 \begin_inset Quotes erd
31067 \begin_inset Index idx
31070 \begin_layout Plain Layout
31076 To use endnotes instead of footnotes in your document, load in the menu
31079 Document\SpecialChar menuseparator
31080 Settings\SpecialChar menuseparator
31086 \begin_inset space ~
31090 \begin_inset space ~
31096 To insert the collected footnotes, insert the command
31099 \begin_layout Standard
31107 \begin_layout Standard
31108 in \SpecialChar TeX
31109 Code at the end of a section or chapter.
31112 \begin_layout Standard
31113 \begin_inset Float figure
31118 \begin_layout Plain Layout
31123 \begin_layout Plain Layout
31133 \begin_inset Graphics
31134 filename clipart/endnotes.pdf
31135 scaleBeforeRotation
31143 \begin_layout Plain Layout
31153 \begin_layout Plain Layout
31154 \begin_inset Caption Standard
31156 \begin_layout Plain Layout
31157 \begin_inset CommandInset label
31159 name "fig:Endnotes"
31163 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31177 \begin_layout Standard
31178 \begin_inset VSpace medskip
31181 The paragraph heading for the endnotes isn't automatically translated into
31182 the document language, this must be done manually.
31183 The following preamble command translates the default English
31184 \begin_inset Quotes eld
31188 \begin_inset Quotes erd
31192 \begin_inset Quotes eld
31196 \begin_inset Quotes erd
31202 \begin_layout Standard
31209 notesname}{Anmerkungen}
31212 \begin_layout Standard
31213 \begin_inset VSpace medskip
31216 The numbering of endnotes can be changed like the footnote numbering as
31217 described in section
31218 \begin_inset space ~
31222 \begin_inset CommandInset ref
31224 reference "subsec:Footnote-Numbering"
31228 ; just replace the command
31241 To reset the endnote number use the command
31247 as described in section
31248 \begin_inset space ~
31252 \begin_inset CommandInset ref
31254 reference "subsec:Footnote-Numbering"
31258 and replace the command parameter
31269 \begin_layout Standard
31270 For endnotes there is the command
31274 endnotemark[number]
31276 similar to the command
31282 , that is described in section
31283 \begin_inset space ~
31287 \begin_inset CommandInset ref
31289 reference "sec:Footnotes"
31296 \begin_layout Standard
31297 \begin_inset VSpace bigskip
31300 Footnotes can also be placed in the page margin and the footnote text alignment
31301 can be changed, see the \SpecialChar LaTeX
31307 \begin_inset Index idx
31310 \begin_layout Plain Layout
31312 -packages ! footmisc
31318 \begin_inset CommandInset citation
31324 for more information about this.
31327 \begin_layout Standard
31328 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31330 \begin_inset CommandInset citation
31332 key "latexcompanion,latexguide,latexbook"
31342 \begin_inset Index idx
31345 \begin_layout Plain Layout
31347 -packages ! KOMA-Script
31352 document class, you can adjust all footnote settings using class-specific
31354 \begin_inset CommandInset citation
31363 \begin_layout Section
31365 \begin_inset Index idx
31368 \begin_layout Plain Layout
31369 Notes ! Margin Notes
31377 \begin_layout Standard
31378 Margin notes look and behave in \SpecialChar LyX
31380 They are inserted via the menu
31382 Insert\SpecialChar menuseparator
31384 \begin_inset space ~
31389 or the toolbar button
31392 arg "marginalnote-insert"
31406 \begin_inset Quotes eld
31410 \begin_inset Quotes erd
31413 appears where you can enter the text of the margin note.
31416 \begin_layout Standard
31417 At the side is an example margin note.
31422 \begin_inset Marginal
31425 \begin_layout Plain Layout
31426 This is a margin note.
31434 \begin_layout Standard
31435 Margin notes appear at the right side in single-sided documents.
31436 In double-sided documents they appear in the outer margin – left on even
31437 pages, right on odd pages.
31438 The text of margin notes is aligned opposite to the outer margin – right-aligne
31439 d when the note appears in the left margin.
31440 The first line of the margin note is placed at the position of the text
31441 line where it is inserted in the document.
31444 \begin_layout Standard
31445 \begin_inset VSpace bigskip
31448 To place the margin note in the inner margin, add the command
31451 \begin_layout Standard
31459 \begin_layout Standard
31460 in \SpecialChar TeX
31461 Code before a margin note.
31462 The new placement is valid for all subsequent margin notes.
31467 \begin_layout Plain Layout
31477 \begin_inset Marginal
31480 \begin_layout Plain Layout
31481 This is a margin note in the inner margin.
31489 \begin_inset Newline newline
31495 \begin_inset Note Greyedout
31498 \begin_layout Plain Layout
31503 There is often not enough space in the inner margin so that the notes are
31504 not correctly displayed in the output.
31512 \begin_layout Standard
31513 To return to the default placement insert the command
31516 \begin_layout Standard
31524 \begin_layout Standard
31525 in \SpecialChar TeX
31530 \begin_layout Plain Layout
31540 \begin_inset Note Greyedout
31543 \begin_layout Plain Layout
31548 The command is ignored when it is within a paragraph where also the command
31563 \begin_layout Standard
31564 \begin_inset VSpace bigskip
31571 \begin_inset Marginal
31574 \begin_layout Plain Layout
31575 AVeryLongMarginParWord that isn't hyphenated.
31583 Similar to the case described in section
31584 \begin_inset space ~
31588 \begin_inset CommandInset ref
31590 reference "subsec:Multiple-Lines-in"
31594 , long words cannot be hyphenated when they are the first word in a margin
31596 To avoid this, insert 0
31597 \begin_inset space \thinspace{}
31600 pt horizontal space before the word
31605 \begin_inset Marginal
31608 \begin_layout Plain Layout
31609 \begin_inset space \hspace*{}
31613 AVeryLongMarginParWord that is hyphenated.
31621 \begin_layout Standard
31622 \begin_inset VSpace bigskip
31628 \begin_layout Standard
31629 \begin_inset Note Greyedout
31632 \begin_layout Plain Layout
31637 Margin notes can normally not be used inside tables, floats, and footnotes.
31645 \begin_layout Standard
31646 \begin_inset VSpace bigskip
31652 \begin_layout Standard
31656 \begin_layout Plain Layout
31666 \begin_inset Note Note
31669 \begin_layout Plain Layout
31670 The following section will only be displayed when the \SpecialChar LaTeX
31683 \begin_layout Standard
31684 This restriction can be evaded by using the \SpecialChar LaTeX
31690 \begin_inset Index idx
31693 \begin_layout Plain Layout
31695 -packages ! marginnote
31701 By adding these two lines to your document preamble, the command used by
31703 for margin notes is redefined to use the command provided by the
31710 \begin_layout Standard
31715 usepackage{marginnote}
31716 \begin_inset Newline newline
31728 \begin_layout Standard
31729 This is also used in this document because
31733 has another useful feature: You can set a vertical offset for the note.
31734 This is often needed when too many margin notes are too close together
31735 or for a better page layout.
31736 The offset is set in \SpecialChar LyX
31737 as \SpecialChar TeX
31738 Code directly after the margin note in the scheme
31741 \begin_layout Standard
31747 \begin_layout Standard
31748 where the offset is a length with one of the units listed in Table
31749 \begin_inset space ~
31753 \begin_inset CommandInset ref
31755 reference "tab:Units"
31760 A negative value shifts the note up, a positive value shifts it down.
31764 For example the margin note beside this text line is shifted up 1.5
31765 \begin_inset space \thinspace{}
31768 cm with the \SpecialChar TeX
31770 \begin_inset Quotes eld
31780 \begin_inset Quotes erd
31784 \begin_inset Marginal
31787 \begin_layout Plain Layout
31788 This margin note is shifted up 1.5
31789 \begin_inset space \thinspace{}
31792 cm from its original position.
31804 \begin_layout Plain Layout
31814 \begin_layout Standard
31815 \begin_inset VSpace medskip
31822 you can also change the alignment of the text in the margin note.
31823 For example the commands
31826 \begin_layout Standard
31833 raggedleftmarginnote}{
31836 \begin_inset Newline newline
31843 raggedrightmarginnote}{
31848 \begin_layout Standard
31849 set the alignment to centered.
31854 raggedleftmarginnote
31856 denotes margin notes that appear at the left side.
31863 \begin_layout Plain Layout
31869 raggedleftmarginnote}{
31874 \begin_layout Plain Layout
31880 raggedrightmarginnote}{
31888 \begin_inset Marginal
31891 \begin_layout Plain Layout
31892 The text of this margin note is centered.
31903 \begin_layout Standard
31910 raggedleftmarginnote}{
31913 \begin_inset Newline newline
31920 raggedrightmarginnote}{
31929 \begin_layout Plain Layout
31935 raggedleftmarginnote}{
31940 \begin_layout Plain Layout
31946 raggedrightmarginnote}{
31956 \begin_layout Standard
31957 \begin_inset VSpace medskip
31960 For the other features of
31964 refer to its documentation
31965 \begin_inset CommandInset citation
31974 \begin_layout Standard
31975 \begin_inset VSpace bigskip
31978 You can adjust the layout of margin notes by changing its definition.
31979 To create for example a header for all margin notes with the underlined,
31980 sans-serif, and bold header text
31981 \begin_inset Quotes eld
31993 \begin_inset Quotes erd
31996 , add this to your document preamble:
31999 \begin_layout Standard
32009 \begin_inset Newline newline
32019 \begin_inset Newline newline
32023 \begin_inset Phantom HPhantom
32026 \begin_layout Plain Layout
32029 \begin_inset space ~
32045 underbar{Attention!}}}%
32046 \begin_inset Newline newline
32050 \begin_inset Phantom HPhantom
32053 \begin_layout Plain Layout
32056 \begin_inset space ~
32073 \begin_layout Standard
32080 \begin_layout Plain Layout
32091 \begin_layout Plain Layout
32102 \begin_layout Plain Layout
32110 underbar{Attention!}}}%
32113 \begin_layout Plain Layout
32127 \begin_inset Marginal
32130 \begin_layout Plain Layout
32131 This is a margin note with a defined heading.
32143 \begin_layout Plain Layout
32157 \begin_layout Plain Layout
32174 \begin_inset Note Note
32177 \begin_layout Plain Layout
32178 The margin note format is changed only for this example.
32186 \begin_layout Standard
32190 \begin_layout Plain Layout
32200 \begin_inset Note Note
32203 \begin_layout Plain Layout
32204 The following will be displayed when the \SpecialChar LaTeX
32217 \begin_layout Standard
32218 You need to install the \SpecialChar LaTeX
32223 to see the following part of this section in the output.
32226 \begin_layout Standard
32230 \begin_layout Plain Layout
32242 \begin_layout Chapter
32246 \begin_layout Section
32248 \begin_inset Index idx
32251 \begin_layout Plain Layout
32252 Boxes ! Introduction
32260 \begin_layout Standard
32261 Boxes are used to format a block of text.
32262 Boxes can be used to write documents with multiple languages, see section
32263 \begin_inset space ~
32267 \begin_inset CommandInset ref
32269 reference "sec:Minipages"
32273 , to frame texts, see section
32274 \begin_inset space ~
32278 \begin_inset CommandInset ref
32280 reference "sec:Decoration"
32284 , to prevent words from being hyphenated, see section
32285 \begin_inset space ~
32289 \begin_inset CommandInset ref
32291 reference "sec:Prevent-Hyphenation"
32295 , to align text, see section
32296 \begin_inset space ~
32300 \begin_inset CommandInset ref
32302 reference "subsec:Vertical-Alignment"
32306 , or to set the background color of texts, see section
32307 \begin_inset space ~
32311 \begin_inset CommandInset ref
32313 reference "sec:Colored-Boxes"
32320 \begin_layout Standard
32321 Boxes can be inserted with the menu
32323 Insert\SpecialChar menuseparator
32326 or the toolbar button
32329 arg "box-insert Frameless"
32333 A grey box with the label
32338 \begin_inset Graphics
32339 filename clipart/BoxInsetDefault.png
32341 scaleBeforeRotation
32346 The box type can be specified by right-clicking on the box and selecting
32352 The box dialog offers the
32355 \begin_inset space ~
32377 is the default for new boxes and is explained in section
32378 \begin_inset space ~
32382 \begin_inset CommandInset ref
32384 reference "sec:Minipages"
32392 is described in section
32393 \begin_inset space ~
32397 \begin_inset CommandInset ref
32399 reference "sec:Parboxes"
32408 \begin_inset CommandInset ref
32410 reference "sec:Prevent-Hyphenation"
32417 \begin_layout Standard
32418 Boxes are not numbered and can therefore not be referenced like floats or
32422 \begin_layout Standard
32423 \begin_inset Note Greyedout
32426 \begin_layout Plain Layout
32431 Boxes must not be the item in an
32447 \begin_layout Standard
32448 \begin_inset Note Greyedout
32451 \begin_layout Plain Layout
32456 For an unknown reason you can only set the
32459 \begin_inset space ~
32468 when you use a framed box.
32472 \begin_inset space ~
32477 type and without frames are explained in section
32478 \begin_inset space ~
32482 \begin_inset CommandInset ref
32484 reference "sec:Prevent-Hyphenation"
32496 \begin_layout Section
32498 \begin_inset CommandInset label
32500 name "sec:Box-Dialog"
32505 \begin_inset Index idx
32508 \begin_layout Plain Layout
32517 \begin_layout Subsection
32519 \begin_inset Index idx
32522 \begin_layout Plain Layout
32531 \begin_layout Standard
32532 In the box dialog you can adjust the box geometry in the fields
32541 The available units for the geometry are explained in Table
32542 \begin_inset space ~
32546 \begin_inset CommandInset ref
32548 reference "tab:Units"
32557 offers the following additional sizes:
32560 \begin_layout Description
32561 Depth This is the plain text
32562 \begin_inset Quotes eld
32566 \begin_inset Quotes erd
32570 It ignores the total depth when there are multiple text lines in the box:
32571 \begin_inset Newline newline
32575 \begin_inset Newline newline
32579 \begin_inset Newline newline
32583 \begin_inset Box Boxed
32593 height_special "depth"
32598 backgroundcolor "none"
32601 \begin_layout Plain Layout
32603 Box height set to 1
32604 \begin_inset space \thinspace{}
32613 \begin_inset Newline newline
32617 \begin_inset Newline newline
32623 \begin_layout Description
32624 Height This is the height of the text that is inside the box.
32626 \begin_inset space \thinspace{}
32630 \begin_inset space \space{}
32633 2 for this size will set the box height to 2
32634 \begin_inset space ~
32637 times the text height:
32638 \begin_inset Box Boxed
32648 height_special "height"
32653 backgroundcolor "none"
32656 \begin_layout Plain Layout
32658 Box height set to 2
32659 \begin_inset space \thinspace{}
32670 \begin_layout Description
32672 \begin_inset space ~
32675 Height This is the Height
32676 \begin_inset space \thinspace{}
32680 \begin_inset space \thinspace{}
32684 \begin_inset Box Boxed
32694 height_special "totalheight"
32699 backgroundcolor "none"
32702 \begin_layout Plain Layout
32704 Box height set to 1
32705 \begin_inset space \thinspace{}
32709 \begin_inset space ~
32720 \begin_layout Description
32721 Width This sets the width of the box as height:
32722 \begin_inset Box Boxed
32732 height_special "width"
32737 backgroundcolor "none"
32740 \begin_layout Plain Layout
32742 Box height set to 1
32743 \begin_inset space \thinspace{}
32754 \begin_layout Subsection
32756 \begin_inset Index idx
32759 \begin_layout Plain Layout
32768 \begin_layout Standard
32769 When you have chosen an
32772 \begin_inset space ~
32777 , the vertical box alignment can be:
32780 \begin_layout Description
32781 Top This is an example text line.
32783 \begin_inset Box Boxed
32793 height_special "totalheight"
32798 backgroundcolor "none"
32801 \begin_layout Plain Layout
32803 This box is top-aligned.
32808 This is an example text line.
32811 \begin_layout Description
32812 Middle This is an example text line.
32814 \begin_inset Box Boxed
32824 height_special "totalheight"
32829 backgroundcolor "none"
32832 \begin_layout Plain Layout
32834 This box is middle-aligned.
32839 This is an example text line.
32842 \begin_layout Description
32843 Bottom This is an example text line.
32845 \begin_inset Box Boxed
32855 height_special "totalheight"
32860 backgroundcolor "none"
32863 \begin_layout Plain Layout
32865 This box is bottom-aligned.
32870 This is an example text line.
32873 \begin_layout Standard
32874 \begin_inset Note Greyedout
32877 \begin_layout Plain Layout
32882 The vertical box alignment can be lost in the output when you have two
32883 boxes in a line and one has e.
32884 \begin_inset space \thinspace{}
32888 \begin_inset space \space{}
32891 a shadow and the other one not.
32899 \begin_layout Standard
32900 The horizontal box alignment can be set via \SpecialChar LyX
32901 's paragraph dialog when you
32902 set the box into its own paragraph.
32905 \begin_layout Standard
32906 \begin_inset VSpace bigskip
32909 When you have chosen an
32912 \begin_inset space ~
32917 , the box content can be aligned vertically to:
32920 \begin_layout Description
32921 top This is an example text line.
32923 \begin_inset Box Boxed
32933 height_special "totalheight"
32938 backgroundcolor "none"
32941 \begin_layout Plain Layout
32943 This box text is top-aligned.
32948 This is an example text line.
32951 \begin_layout Description
32952 middle This is an example text line.
32954 \begin_inset Box Boxed
32964 height_special "totalheight"
32969 backgroundcolor "none"
32972 \begin_layout Plain Layout
32974 This box text is middle-aligned.
32979 This is an example text line.
32982 \begin_layout Description
32983 bottom This is an example text line.
32985 \begin_inset Box Boxed
32995 height_special "totalheight"
33000 backgroundcolor "none"
33003 \begin_layout Plain Layout
33005 This box text is bottom-aligned.
33010 This is an example text line.
33013 \begin_layout Description
33014 stretch This is an example text line.
33016 \begin_inset Box Boxed
33026 height_special "totalheight"
33031 backgroundcolor "none"
33034 \begin_layout Plain Layout
33039 \begin_layout Plain Layout
33044 \begin_layout Plain Layout
33051 This is an example text line.
33054 \begin_layout Standard
33055 To stretch the box content, it must consist of more than one paragraph.
33056 In the example above every text line is in an own paragraph.
33059 \begin_layout Standard
33060 \begin_inset VSpace bigskip
33063 To align the box content horizontally you can use \SpecialChar LyX
33064 's paragraph dialog when
33068 \begin_inset space ~
33076 \begin_layout Standard
33078 \begin_inset Box Boxed
33088 height_special "totalheight"
33093 backgroundcolor "none"
33096 \begin_layout Plain Layout
33101 \begin_layout Plain Layout
33106 \begin_layout Plain Layout
33116 \begin_layout Standard
33117 If you have not set an
33120 \begin_inset space ~
33125 , you can align the box content horizontally in the box dialog.
33126 \begin_inset Separator parbreak
33132 \begin_layout Standard
33134 \begin_inset Box Boxed
33144 height_special "totalheight"
33149 backgroundcolor "none"
33152 \begin_layout Plain Layout
33153 This box text is horizontally stretched.
33161 \begin_layout Subsection
33163 \begin_inset CommandInset label
33165 name "sec:Decoration"
33170 \begin_inset Index idx
33173 \begin_layout Plain Layout
33182 \begin_layout Standard
33183 The type of the box can be specified in the box dialog in the drop-down
33189 The following types are possible:
33192 \begin_layout Description
33194 \begin_inset space ~
33197 frame Nothing is drawn.
33200 \begin_layout Description
33202 \begin_inset space ~
33206 \begin_inset space ~
33209 frame This draws a rectangular frame around the box.
33210 The frame line thickness can be specified.
33212 \begin_inset Box Boxed
33222 height_special "totalheight"
33227 backgroundcolor "none"
33230 \begin_layout Plain Layout
33240 \begin_layout Description
33242 \begin_inset space ~
33246 \begin_inset space ~
33249 thin This draws an oval frame around the box.
33250 The frame line thickness has the size 0.4
33251 \begin_inset space \thinspace{}
33256 \begin_inset Box ovalbox
33266 height_special "totalheight"
33271 backgroundcolor "none"
33274 \begin_layout Plain Layout
33284 \begin_layout Description
33286 \begin_inset space ~
33290 \begin_inset space ~
33293 thick This draws an oval frame around the box.
33294 The frame line thickness has the size 0.8
33295 \begin_inset space \thinspace{}
33300 \begin_inset Box Ovalbox
33310 height_special "totalheight"
33315 backgroundcolor "none"
33318 \begin_layout Plain Layout
33328 \begin_layout Description
33330 \begin_inset space ~
33333 shadow This draws a rectangular frame with a shadow around the box.
33334 The frame line thickness and the shadow can be specified.
33336 \begin_inset Box Shadowbox
33346 height_special "totalheight"
33351 backgroundcolor "none"
33354 \begin_layout Plain Layout
33364 \begin_layout Description
33366 \begin_inset space ~
33369 background This draws a box with a red background.
33370 Unlike colored boxes
33374 \begin_layout Plain Layout
33376 \begin_inset space \thinspace{}
33380 \begin_inset CommandInset ref
33382 reference "sec:Colored-Boxes"
33391 , it always uses the whole column width and the box is set as its own paragraph.
33393 \begin_inset Box Shaded
33403 height_special "totalheight"
33408 backgroundcolor "none"
33411 \begin_layout Plain Layout
33412 Shaded background box
33420 \begin_layout Description
33422 \begin_inset space ~
33426 \begin_inset space ~
33429 frame This draws a double-line rectangular frame around the box.
33430 The line thickness of the inner frame is 0.75
33431 \begin_inset space \thinspace{}
33435 \begin_inset space ~
33438 thickness, the thickness of the outer frame is 1.5
33439 \begin_inset space \thinspace{}
33443 \begin_inset space ~
33447 The distance between the lines is 1.5
33448 \begin_inset space \thinspace{}
33452 \begin_inset space ~
33456 \begin_inset space \thinspace{}
33460 \begin_inset space \thinspace{}
33464 \begin_inset space \thinspace{}
33469 \begin_inset Box Doublebox
33479 height_special "totalheight"
33484 backgroundcolor "none"
33487 \begin_layout Plain Layout
33489 Double rectangular box
33497 \begin_layout Standard
33498 \begin_inset VSpace bigskip
33502 's box label will reflect the different frame types.
33503 To be able to use all types, the \SpecialChar LaTeX
33509 \begin_inset Index idx
33512 \begin_layout Plain Layout
33514 -packages ! fancybox
33522 \begin_layout Standard
33523 \begin_inset VSpace bigskip
33526 When you use the decoration
33528 simple rectangular frame
33530 and no inner box, you can allow page breaks within a box.
33531 Note that then, unlike other framed boxes, the frame always uses the whole
33532 column width and the box is set as its own paragraph:
33533 \begin_inset Box Framed
33543 height_special "totalheight"
33548 backgroundcolor "none"
33551 \begin_layout Plain Layout
33552 Allow page break box
33560 \begin_layout Section
33562 \begin_inset Index idx
33565 \begin_layout Plain Layout
33566 Boxes ! Customization
33574 \begin_layout Standard
33575 The diameter of the round corners of the oval boxes can be set with the
33586 \begin_layout Standard
33594 \begin_layout Standard
33595 sets the diameter to 1
33596 \begin_inset space \thinspace{}
33603 \begin_layout Standard
33611 \begin_layout Standard
33612 sets the diameter to
33615 \begin_inset space \thinspace{}
33619 \begin_inset space \thinspace{}
33622 minimum(width and height of box)
33634 \begin_layout Standard
33638 \begin_layout Plain Layout
33648 \begin_inset Box Ovalbox
33658 height_special "totalheight"
33663 backgroundcolor "none"
33666 \begin_layout Plain Layout
33675 \begin_inset space \thinspace{}
33679 \begin_inset space \thinspace{}
33683 \begin_inset space \thinspace{}
33695 \begin_layout Plain Layout
33707 \begin_layout Standard
33708 \begin_inset VSpace bigskip
33714 \begin_layout Standard
33715 The default background color red of
33719 boxes can either be changed locally with the command
33723 definecolor{shadecolor}
33725 or globally with the menu
33727 Tools\SpecialChar menuseparator
33728 Preferences\SpecialChar menuseparator
33729 Colors\SpecialChar menuseparator
33731 \begin_inset space ~
33743 command is explained in section
33744 \begin_inset space ~
33748 \begin_inset CommandInset ref
33750 reference "sec:Colored-Tables"
33758 \begin_layout Plain Layout
33765 requires the \SpecialChar LaTeX
33770 in the preamble, see section
33771 \begin_inset space ~
33775 \begin_inset CommandInset ref
33777 reference "sec:Colored-Boxes"
33786 For example the appearance of the following shaded background box is set
33787 with the \SpecialChar TeX
33791 \begin_layout Standard
33796 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33799 \begin_layout Standard
33803 \begin_layout Plain Layout
33807 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33813 \begin_inset Box Shaded
33823 height_special "totalheight"
33828 backgroundcolor "none"
33831 \begin_layout Plain Layout
33834 This is yellow text in a
33844 box with dark green background.
33853 \begin_layout Plain Layout
33857 definecolor{shadecolor}{rgb}{1,0,0}
33865 \begin_layout Standard
33866 \begin_inset VSpace bigskip
33869 Manually changed sizes and colors are valid for all boxes following the
33870 commands that change them.
33873 \begin_layout Section
33875 \begin_inset CommandInset label
33877 name "sec:Minipages"
33882 \begin_inset Index idx
33885 \begin_layout Plain Layout
33894 \begin_layout Standard
33895 Minipages are treated by \SpecialChar LaTeX
33896 as pages within pages and can therefore for example
33897 have their own footnotes.
33900 \begin_layout Standard
33901 Minipages are useful when you write documents with different languages.
33904 \begin_layout Standard
33905 Below are two example minipages side by side.
33906 Their width is set to 45
33907 \begin_inset space \thinspace{}
33910 col% and they are separated by a horizontal fill, that was inserted via
33913 Insert\SpecialChar menuseparator
33915 \begin_inset space ~
33918 Formatting\SpecialChar menuseparator
33920 \begin_inset space ~
33926 \begin_inset Newpage newpage
33932 \begin_layout Standard
33933 \begin_inset Box Frameless
33943 height_special "totalheight"
33948 backgroundcolor "none"
33951 \begin_layout Plain Layout
33954 Dies ist ein deutscher Text.
33955 Dies ist ein deutscher Text.
33956 Dies ist ein deutscher Text.
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
33970 \begin_layout Plain Layout
33973 Dies ist eine deutsche Fußnote.
33979 Dies ist ein deutscher Text.
33980 Dies ist ein deutscher Text.
33986 \begin_inset space \hfill{}
33990 \begin_inset Box Frameless
34000 height_special "totalheight"
34005 backgroundcolor "none"
34008 \begin_layout Plain Layout
34009 This is an English Text.
34010 This is an English Text.
34011 This is an English Text.
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.
34028 \begin_layout Plain Layout
34029 This is an English footnote.
34034 This is an English Text.
34042 \begin_layout Standard
34043 \begin_inset VSpace bigskip
34046 The document-wide paragraph settings are ignored within minipages.
34047 That means that there will be no space between paragraphs in minipages
34048 although you set it to e.
34049 \begin_inset space \thinspace{}
34053 \begin_inset space \space{}
34060 in the document settings.
34063 \begin_layout Standard
34064 Minipages can also be used to set a background color for text parts, see
34066 \begin_inset space ~
34070 \begin_inset CommandInset ref
34072 reference "sec:Colored-Boxes"
34079 \begin_layout Standard
34080 \begin_inset Note Greyedout
34083 \begin_layout Plain Layout
34088 You cannot have floats or margin notes inside minipages but minipages can
34089 be used inside tables, floats, and other boxes.
34097 \begin_layout Standard
34098 \begin_inset VSpace bigskip
34104 \begin_layout Standard
34106 has also basic support for minipages whose size is automatically determined
34107 by the width of their contents, via the module
34109 Variable-width Minipages
34112 The \SpecialChar LyX
34115 varwidth-floats-side-by-side
34117 gives examples of variable-width minipages used for placing two floats
34121 \begin_layout Section
34123 \begin_inset CommandInset label
34125 name "sec:Parboxes"
34130 \begin_inset Index idx
34133 \begin_layout Plain Layout
34142 \begin_layout Standard
34143 Parboxes are very similar to minipages with the difference that they cannot
34145 \begin_inset Separator parbreak
34151 \begin_layout Standard
34153 \begin_inset Box Frameless
34163 height_special "totalheight"
34168 backgroundcolor "none"
34171 \begin_layout Plain Layout
34172 This a text within a parbox.
34173 This a text within a parbox.
34176 \begin_layout Plain Layout
34177 This footnote won't appear:
34181 \begin_layout Plain Layout
34182 This footnote is inside a parbox and will therefore not appear.
34195 \begin_layout Section
34196 Boxes for Words and Characters
34197 \begin_inset Index idx
34200 \begin_layout Plain Layout
34201 Boxes ! for Characters
34209 \begin_layout Subsection
34210 Prevent Hyphenation
34211 \begin_inset CommandInset label
34213 name "sec:Prevent-Hyphenation"
34218 \begin_inset Index idx
34221 \begin_layout Plain Layout
34222 Boxes ! to Prevent Hyphenation
34230 \begin_layout Standard
34231 You can use the box type
34235 to prevent words or text from being hyphenated.
34236 \begin_inset Newline newline
34239 Here is an example text:
34242 \begin_layout Standard
34243 This line is an example to show how you can prevent the hyphenation of
34244 \begin_inset Quotes eld
34248 \begin_inset Quotes erd
34254 \begin_layout Standard
34255 To prevent the hyphenation of the word
34256 \begin_inset Quotes eld
34260 \begin_inset Quotes erd
34263 , put the word into a box, set the
34266 \begin_inset space ~
34275 and use no explicit width.
34278 \begin_layout Standard
34279 This is the result:
34282 \begin_layout Standard
34283 This line is an example to show how you can prevent the hyphenation of
34284 \begin_inset Box Frameless
34294 height_special "totalheight"
34299 backgroundcolor "none"
34302 \begin_layout Plain Layout
34303 \begin_inset Quotes eld
34307 \begin_inset Quotes erd
34318 \begin_layout Standard
34319 You can alternatively set the command
34320 \begin_inset Quotes eld
34330 \begin_inset Quotes grd
34333 as \SpecialChar TeX
34334 Code directly before the word:
34337 \begin_layout Standard
34338 This line is an example to show how you can prevent the hyphenation of
34339 \begin_inset Quotes eld
34346 \begin_layout Plain Layout
34356 \begin_inset Quotes erd
34362 \begin_layout Standard
34363 Of course the word now protrudes over the side margin.
34364 To avoid this, add via the menu
34366 Insert\SpecialChar menuseparator
34367 Formatting\SpecialChar menuseparator
34369 \begin_inset space ~
34373 \begin_inset space ~
34381 arg "newline-insert newline"
34384 ) a line break before the word:
34387 \begin_layout Standard
34388 This line is an example to show how you can prevent the hyphenation of
34389 \begin_inset Newline newline
34393 \begin_inset Box Frameless
34403 height_special "totalheight"
34408 backgroundcolor "none"
34411 \begin_layout Plain Layout
34412 \begin_inset Quotes eld
34416 \begin_inset Quotes erd
34427 \begin_layout Subsection
34429 \begin_inset CommandInset label
34431 name "subsec:Vertical-Alignment"
34436 \begin_inset Index idx
34439 \begin_layout Plain Layout
34440 Boxes ! for Vertical Alignment
34446 \begin_inset Index idx
34449 \begin_layout Plain Layout
34458 \begin_layout Standard
34459 With the help of the command
34465 you can align words, characters or other boxes vertically relative to the
34473 is used with the following scheme:
34476 \begin_layout Standard
34481 raisebox{lift}[height][depth]{box content}
34484 \begin_layout Standard
34485 The lift can be a positive value to raise the box or a negative value to
34489 \begin_layout Standard
34490 To align for example the word
34491 \begin_inset Quotes eld
34495 \begin_inset Quotes erd
34498 so that the bottom of the
34499 \begin_inset Quotes eld
34503 \begin_inset Quotes erd
34507 \begin_inset Quotes eld
34511 \begin_inset Quotes erd
34514 is at the baseline, insert the command
34517 \begin_layout Standard
34527 \begin_layout Standard
34528 in \SpecialChar TeX
34529 Code before the word.
34530 After the word insert a closing brace
34531 \begin_inset Quotes eld
34539 \begin_inset Quotes erd
34542 in \SpecialChar TeX
34544 \begin_inset Newline newline
34547 This is the result:
34550 \begin_layout Standard
34551 This is a text line with the word
34555 \begin_layout Plain Layout
34567 \begin_inset Quotes eld
34571 \begin_inset Quotes erd
34578 \begin_layout Plain Layout
34588 \begin_layout Standard
34589 \begin_inset VSpace bigskip
34592 When you raise or lower characters in a line, the line distance will be
34596 \begin_layout Standard
34597 This is a text line with the word
34601 \begin_layout Plain Layout
34613 \begin_inset Quotes eld
34617 \begin_inset Quotes erd
34624 \begin_layout Plain Layout
34632 \begin_inset Newline newline
34635 This is a text line with the word
34639 \begin_layout Plain Layout
34649 \begin_inset Quotes eld
34653 \begin_inset Quotes erd
34660 \begin_layout Plain Layout
34670 \begin_layout Standard
34671 If you want to prevent this for a certain reason, set the box height to
34676 \begin_layout Standard
34686 \begin_layout Standard
34687 This is a text line with the word
34691 \begin_layout Plain Layout
34703 \begin_inset Quotes eld
34707 \begin_inset Quotes erd
34714 \begin_layout Plain Layout
34722 \begin_inset Newline newline
34726 \begin_inset Newline newline
34729 This is a text line with the word
34733 \begin_layout Plain Layout
34737 raisebox{0.5cm}[0pt]{
34743 \begin_inset Quotes eld
34747 \begin_inset Quotes erd
34754 \begin_layout Plain Layout
34764 \begin_layout Section
34766 \begin_inset CommandInset label
34768 name "sec:Colored-Boxes"
34773 \begin_inset Index idx
34776 \begin_layout Plain Layout
34785 \begin_layout Standard
34786 To color the background of a box just select the color you like in the box
34788 This is for example a box with orange background:
34789 \begin_inset Box Frameless
34799 height_special "totalheight"
34804 backgroundcolor "orange"
34807 \begin_layout Plain Layout
34808 Box with orange background
34816 \begin_layout Standard
34817 If you use the decoration
34820 \begin_inset space ~
34824 \begin_inset space ~
34829 you can set a frame color.
34830 In this case you must also specify a background color (LyX sets white as
34832 Here is an example:
34833 \begin_inset Box Boxed
34843 height_special "totalheight"
34848 backgroundcolor "yellow"
34851 \begin_layout Plain Layout
34852 Box with teal frame color and yellow background color
34860 \begin_layout Standard
34861 \begin_inset VSpace bigskip
34864 Of course you can also have colored text inside a colored box:
34865 \begin_inset Newline newline
34869 \begin_inset Box Boxed
34879 height_special "totalheight"
34884 backgroundcolor "magenta"
34887 \begin_layout Plain Layout
34890 This is colored text within a colored, framed box
34898 \begin_layout Standard
34899 \begin_inset VSpace bigskip
34905 \begin_layout Standard
34906 If you need another color than the predefined ones, you can define your
34907 own color as described in section
34908 \begin_inset space ~
34912 \begin_inset CommandInset ref
34914 reference "sec:Colored-Tables"
34919 To use your own color you must typeset the box by using TeX code:
34922 \begin_layout Standard
34923 Colored boxes without frame are created with the command
34930 It has the following scheme:
34933 \begin_layout Standard
34938 colorbox{color}{box content}
34941 \begin_layout Standard
34942 The box content can also be a box and colored boxes can also be within other
34945 \begin_inset space \thinspace{}
34949 \begin_inset space \space{}
34952 a darkgreen background for a word, insert the command
34955 \begin_layout Standard
34960 colorbox{darkgreen}{
34963 \begin_layout Standard
34964 before the word in \SpecialChar TeX
34966 After the word insert a closing brace
34967 \begin_inset Quotes eld
34975 \begin_inset Quotes erd
34978 in \SpecialChar TeX
34980 \begin_inset Newline newline
34983 This is the result:
34986 \begin_layout Standard
34987 This is a line where the word
34991 \begin_layout Plain Layout
34995 colorbox{darkgreen}{
35001 \begin_inset Quotes eld
35005 \begin_inset Quotes erd
35012 \begin_layout Plain Layout
35019 has a darkgreen background.
35022 \begin_layout Standard
35023 Framed, colored boxes are created with the command
35030 It has the following scheme:
35033 \begin_layout Standard
35038 fcolorbox{frame color}{box color}{box content}
35041 \begin_layout Section
35042 Rotated and Scaled Boxes
35045 \begin_layout Standard
35046 To use the boxes described in this section, the module
35050 must be loaded in the document settings.
35053 \begin_layout Standard
35054 \begin_inset Note Greyedout
35057 \begin_layout Plain Layout
35062 Not all DVI viewers are able to display rotated or scaled material.
35070 \begin_layout Standard
35071 \begin_inset Note Greyedout
35074 \begin_layout Plain Layout
35079 Floats are not allowed inside a rotated or scaled box.
35087 \begin_layout Subsection
35089 \begin_inset Index idx
35092 \begin_layout Plain Layout
35099 \begin_inset Index idx
35102 \begin_layout Plain Layout
35111 \begin_layout Standard
35112 To rotate material, you can put it into a
35117 Such a box is inserted via the menu
35119 Insert\SpecialChar menuseparator
35120 Custom Insets\SpecialChar menuseparator
35126 \begin_layout Standard
35127 The rotation origin can be specified via the inset
35133 Insert\SpecialChar menuseparator
35141 The following positions are possible:
35161 (top), along with meaningful combinations of the four base positions.
35166 means that the rotation origin is at the top left corner of the box.
35167 When no rotation origin is specified, the position
35172 The rotation angle is a number that can be negative that specifies the
35174 The rotation direction is counterclockwise.
35177 \begin_layout Standard
35178 In the following example
35182 was inserted to the
35190 was inserted to the
35197 \begin_layout Standard
35199 \begin_inset Flex Rotatebox
35202 \begin_layout Plain Layout
35203 \begin_inset Argument 1
35206 \begin_layout Plain Layout
35213 \begin_inset Argument 2
35216 \begin_layout Plain Layout
35230 \begin_layout Standard
35231 The box content can also be another box or an inline formula:
35234 \begin_layout Standard
35236 \begin_inset Flex Rotatebox
35239 \begin_layout Plain Layout
35240 \begin_inset Argument 1
35243 \begin_layout Plain Layout
35250 \begin_inset Argument 2
35253 \begin_layout Plain Layout
35260 \begin_inset Box Doublebox
35270 height_special "totalheight"
35275 backgroundcolor "none"
35278 \begin_layout Plain Layout
35290 \begin_inset Flex Rotatebox
35293 \begin_layout Plain Layout
35294 \begin_inset Argument 1
35297 \begin_layout Plain Layout
35304 \begin_inset Argument 2
35307 \begin_layout Plain Layout
35314 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35325 \begin_layout Standard
35326 or an image or table:
35329 \begin_layout Standard
35331 \begin_inset Flex Rotatebox
35334 \begin_layout Plain Layout
35335 \begin_inset Argument 1
35338 \begin_layout Plain Layout
35345 \begin_inset Argument 2
35348 \begin_layout Plain Layout
35355 \begin_inset Graphics
35356 filename clipart/platypus.eps
35367 with a rotated image
35368 \begin_inset Flex Rotatebox
35371 \begin_layout Plain Layout
35372 \begin_inset Argument 2
35375 \begin_layout Plain Layout
35382 \begin_inset Tabular
35383 <lyxtabular version="3" rows="2" columns="2">
35384 <features tabularvalignment="middle">
35385 <column alignment="center" valignment="top">
35386 <column alignment="center" valignment="top">
35388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35391 \begin_layout Plain Layout
35397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35400 \begin_layout Plain Layout
35408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35411 \begin_layout Plain Layout
35417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35420 \begin_layout Plain Layout
35437 \begin_inset Index idx
35440 \begin_layout Plain Layout
35447 \begin_inset Index idx
35450 \begin_layout Plain Layout
35451 Table Customization ! Rotating
35459 \begin_layout Standard
35460 \begin_inset Note Greyedout
35463 \begin_layout Plain Layout
35472 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35474 errors when viewing/exporting the document.
35482 \begin_layout Subsection
35484 \begin_inset Index idx
35487 \begin_layout Plain Layout
35494 \begin_inset Index idx
35497 \begin_layout Plain Layout
35506 \begin_layout Standard
35507 To scale material put it into a
35512 Such a box is inserted via the menu
35514 Insert\SpecialChar menuseparator
35515 Custom Insets\SpecialChar menuseparator
35521 \begin_layout Standard
35526 inset has the mandatory inset
35530 and the optional inset
35534 (inserted via the menu
35536 Insert\SpecialChar menuseparator
35540 Input there the horizontal and vertical scale factor, respectively.
35545 inset is used, the horizontal factor will also be used as the vertical
35549 \begin_layout Standard
35550 To get for example the double text size, compared to the document text size,
35561 \begin_inset Flex Scalebox
35564 \begin_layout Plain Layout
35565 \begin_inset Argument 1
35568 \begin_layout Plain Layout
35582 \begin_layout Standard
35600 \begin_inset Flex Scalebox
35603 \begin_layout Plain Layout
35604 \begin_inset Argument 1
35607 \begin_layout Plain Layout
35614 \begin_inset Argument 2
35617 \begin_layout Plain Layout
35631 \begin_layout Standard
35632 If the scaling factor is negative, the box content will be mirrored.
35649 can be used to create mirror writing:
35650 \begin_inset Flex Scalebox
35653 \begin_layout Plain Layout
35654 \begin_inset Argument 1
35657 \begin_layout Plain Layout
35664 \begin_inset Argument 2
35667 \begin_layout Plain Layout
35681 \begin_layout Standard
35699 \begin_inset Flex Scalebox
35702 \begin_layout Plain Layout
35703 \begin_inset Argument 1
35706 \begin_layout Plain Layout
35713 \begin_inset Argument 2
35716 \begin_layout Plain Layout
35730 \begin_layout Standard
35737 Insert\SpecialChar menuseparator
35738 Custom Insets\SpecialChar menuseparator
35764 \begin_layout Standard
35765 \begin_inset Note Greyedout
35768 \begin_layout Plain Layout
35777 inset is empty or contains other characters than numbers you will get LaTeX
35778 errors when viewing/exporting the document.
35786 \begin_layout Standard
35787 \begin_inset VSpace bigskip
35796 Insert\SpecialChar menuseparator
35797 Custom Insets\SpecialChar menuseparator
35800 ) is used to scale the content to a defined width and height.
35805 inset has the mandatory inset
35809 and the optional inset
35813 (inserted via the menu
35815 Insert\SpecialChar menuseparator
35819 Input there the width and height, respectively, as value with a unit.
35821 \begin_inset CommandInset ref
35823 reference "tab:Units"
35827 lists the possible units.
35828 If there is an exclamation mark
35832 in of of the two insets, the size is set so that the aspect ratio of the
35833 box content is kept.
35838 inset is used an exclamation mark will internally be used for the height.
35841 \begin_layout Standard
35859 \begin_inset Flex Resizebox
35862 \begin_layout Plain Layout
35863 \begin_inset Argument 1
35866 \begin_layout Plain Layout
35873 \begin_inset Argument 2
35876 \begin_layout Plain Layout
35888 \begin_inset Newline newline
35912 \begin_inset Flex Resizebox
35915 \begin_layout Plain Layout
35916 \begin_inset Argument 1
35919 \begin_layout Plain Layout
35926 \begin_inset Argument 2
35929 \begin_layout Plain Layout
35943 \begin_layout Standard
35944 \begin_inset Note Greyedout
35947 \begin_layout Plain Layout
35956 inset is empty or contains an invalid unit you will get LaTeX errors when
35957 viewing/exporting the document.
35965 \begin_layout Standard
35966 \begin_inset VSpace bigskip
35972 \begin_layout Standard
35973 The boxes can be combined in any order.
35982 which is in turn inside a
35989 \begin_layout Standard
35992 \begin_inset Flex Rotatebox
35995 \begin_layout Plain Layout
35996 \begin_inset Argument 1
35999 \begin_layout Plain Layout
36006 \begin_inset Argument 2
36009 \begin_layout Plain Layout
36016 \begin_inset Flex Resizebox
36019 \begin_layout Plain Layout
36020 \begin_inset Argument 1
36023 \begin_layout Plain Layout
36030 \begin_inset Flex Reflectbox
36033 \begin_layout Plain Layout
36052 \begin_layout Standard
36054 Images, tables, and inline formulas are allowed as box content:
36057 \begin_layout Standard
36060 \begin_inset Flex Resizebox
36063 \begin_layout Plain Layout
36064 \begin_inset Argument 1
36067 \begin_layout Plain Layout
36074 \begin_inset Flex Reflectbox
36077 \begin_layout Plain Layout
36078 \begin_inset Graphics
36079 filename clipart/platypus.eps
36096 \begin_inset Flex Resizebox
36099 \begin_layout Plain Layout
36100 \begin_inset Argument 1
36103 \begin_layout Plain Layout
36110 \begin_inset Flex Reflectbox
36113 \begin_layout Plain Layout
36114 \begin_inset Tabular
36115 <lyxtabular version="3" rows="2" columns="2">
36116 <features tabularvalignment="middle">
36117 <column alignment="center" valignment="top">
36118 <column alignment="center" valignment="top">
36120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36123 \begin_layout Plain Layout
36129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36132 \begin_layout Plain Layout
36140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36143 \begin_layout Plain Layout
36149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36152 \begin_layout Plain Layout
36174 \begin_inset Flex Resizebox
36177 \begin_layout Plain Layout
36178 \begin_inset Argument 1
36181 \begin_layout Plain Layout
36188 \begin_inset Flex Reflectbox
36191 \begin_layout Plain Layout
36192 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36206 \begin_inset Index idx
36209 \begin_layout Plain Layout
36216 \begin_inset Index idx
36219 \begin_layout Plain Layout
36220 Table Customization ! Scaling
36228 \begin_layout Standard
36229 When the global formula style
36233 is used in the document
36237 \begin_layout Plain Layout
36239 \begin_inset Quotes eld
36243 \begin_inset Quotes erd
36246 is added to the document class options.
36251 , display style formulas can also be scaled.
36254 \begin_layout Chapter
36255 Objects Surrounded by Text
36256 \begin_inset Index idx
36259 \begin_layout Plain Layout
36268 \begin_layout Section
36270 \begin_inset CommandInset label
36272 name "sec:Wrap-Floats"
36277 \begin_inset Index idx
36280 \begin_layout Plain Layout
36281 Floats ! Wrap Floats
36287 \begin_inset Index idx
36290 \begin_layout Plain Layout
36291 Surrounded by text ! Wrap Floats
36299 \begin_layout Standard
36300 \begin_inset Wrap figure
36307 \begin_layout Plain Layout
36308 \begin_inset Graphics
36309 filename clipart/mobius.eps
36311 scaleBeforeRotation
36312 rotateOrigin center
36319 \begin_layout Plain Layout
36320 \begin_inset Caption Standard
36322 \begin_layout Plain Layout
36323 \begin_inset CommandInset label
36325 name "fig:This-is-a"
36329 This is a figure wrap float.
36339 This float type is used if you want to wrap text around a figure or table
36340 so that it only occupies some fraction of the column width.
36341 It can be inserted using the menu
36343 Insert\SpecialChar menuseparator
36344 Floats\SpecialChar menuseparator
36346 \begin_inset space ~
36350 \begin_inset space ~
36358 \begin_inset space ~
36362 \begin_inset space ~
36367 if the \SpecialChar LaTeX
36373 \begin_inset Index idx
36376 \begin_layout Plain Layout
36378 -packages ! wrapfig
36387 \begin_layout Plain Layout
36388 Installing a \SpecialChar LaTeX
36389 -package is explained it in the
36393 \begin_inset space ~
36403 The settings of the float can be modified by right-clicking on the float
36405 The mandatory settings are the float
36418 that specifies how much the float is set into the paragraph
36419 \begin_inset space \thinspace{}
36423 \begin_inset space \thinspace{}
36426 page margin, and the
36429 \begin_inset space ~
36434 that specifies how many text lines the float will approximately need.
36435 The line span is often hard to approximate; so it is better only to use
36436 it when you encounter float placement problems.
36437 You can furthermore decide if \SpecialChar LaTeX
36438 is allowed to let the float float within
36439 the paragraph or to surrounding paragraphs.
36441 \begin_inset space ~
36445 \begin_inset CommandInset ref
36447 reference "fig:This-is-a"
36451 is an example text wrap float with a width of 40
36452 \begin_inset space \thinspace{}
36456 \begin_inset space \thinspace{}
36459 cm overhang, set to the left.
36462 \begin_layout Standard
36463 \begin_inset Note Greyedout
36466 \begin_layout Plain Layout
36472 \begin_inset space ~
36475 wrap float floats are fragile! E.
36476 \begin_inset space \thinspace{}
36480 \begin_inset space \space{}
36483 having a figure too close to the bottom of the page can mess things up in
36484 such a way that the float does not appear in the output or that it is placed
36485 over some other text.
36493 \begin_layout Standard
36494 In general, the following applies for wrap floats:
36497 \begin_layout Itemize
36498 They should not be placed in paragraphs that run over a page break.
36499 That means that wrap floats are better inserted in their exact place when
36500 the document is almost finished and you are able to estimate where page
36501 breaks will appear.
36504 \begin_layout Itemize
36505 They should either be placed in their own paragraph before the paragraph
36506 where they should wrap into or within a paragraph.
36509 \begin_layout Itemize
36510 In consecutive paragraphs they may cause troubles, so ensure that there
36511 is a text paragraph between them as separator.
36514 \begin_layout Itemize
36515 They are not allowed in section headings or tables.
36518 \begin_layout Itemize
36519 Their numbering and referencing works as described in chap.
36520 \begin_inset space \thinspace{}
36524 \begin_inset CommandInset ref
36526 reference "chap:Floats"
36533 \begin_layout Section
36534 Surrounded Fixed Objects
36535 \begin_inset Index idx
36538 \begin_layout Plain Layout
36539 Surrounded by text ! Fixed objects
36547 \begin_layout Standard
36548 The wrap floats described in sec.
36549 \begin_inset space \thinspace{}
36553 \begin_inset CommandInset ref
36555 reference "sec:Wrap-Floats"
36559 have these positions in the paragraph:
36560 \begin_inset Separator parbreak
36566 \begin_layout Standard
36569 \begin_inset Tabular
36570 <lyxtabular version="3" rows="2" columns="2">
36571 <features tabularvalignment="middle">
36572 <column alignment="center" valignment="top">
36573 <column alignment="center" valignment="top">
36575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36578 \begin_layout Plain Layout
36581 arg "dialog-show-new-inset graphics"
36589 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36592 \begin_layout Plain Layout
36600 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36603 \begin_layout Plain Layout
36609 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36612 \begin_layout Plain Layout
36624 \begin_inset Tabular
36625 <lyxtabular version="3" rows="2" columns="2">
36626 <features tabularvalignment="middle">
36627 <column alignment="center" valignment="top">
36628 <column alignment="center" valignment="top">
36630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36633 \begin_layout Plain Layout
36639 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36642 \begin_layout Plain Layout
36645 arg "dialog-show-new-inset graphics"
36655 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36658 \begin_layout Plain Layout
36664 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36667 \begin_layout Plain Layout
36681 \begin_layout Standard
36682 To get an object exactly at the position where it is inserted, for example
36683 to get one of these positions:
36684 \begin_inset VSpace defskip
36690 \begin_layout Standard
36693 \begin_inset Tabular
36694 <lyxtabular version="3" rows="2" columns="2">
36695 <features tabularvalignment="middle">
36696 <column alignment="center" valignment="top">
36697 <column alignment="center" valignment="top">
36699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36702 \begin_layout Plain Layout
36708 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36711 \begin_layout Plain Layout
36719 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36722 \begin_layout Plain Layout
36725 arg "dialog-show-new-inset graphics"
36733 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36736 \begin_layout Plain Layout
36748 \begin_inset Tabular
36749 <lyxtabular version="3" rows="2" columns="2">
36750 <features tabularvalignment="middle">
36751 <column alignment="center" valignment="top">
36752 <column alignment="center" valignment="top">
36754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36757 \begin_layout Plain Layout
36763 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36766 \begin_layout Plain Layout
36774 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36777 \begin_layout Plain Layout
36783 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36786 \begin_layout Plain Layout
36789 arg "dialog-show-new-inset graphics"
36803 \begin_inset Tabular
36804 <lyxtabular version="3" rows="2" columns="3">
36805 <features tabularvalignment="middle">
36806 <column alignment="center" valignment="top">
36807 <column alignment="center" valignment="top">
36808 <column alignment="center" valignment="top">
36810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36813 \begin_layout Plain Layout
36819 <cell alignment="center" valignment="top" topline="true" usebox="none">
36822 \begin_layout Plain Layout
36825 arg "dialog-show-new-inset graphics"
36833 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36836 \begin_layout Plain Layout
36844 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36847 \begin_layout Plain Layout
36853 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36856 \begin_layout Plain Layout
36862 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36865 \begin_layout Plain Layout
36877 \begin_inset Tabular
36878 <lyxtabular version="3" rows="2" columns="3">
36879 <features tabularvalignment="middle">
36880 <column alignment="center" valignment="top">
36881 <column alignment="center" valignment="top">
36882 <column alignment="center" valignment="top">
36884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36887 \begin_layout Plain Layout
36893 <cell alignment="center" valignment="top" topline="true" usebox="none">
36896 \begin_layout Plain Layout
36902 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36905 \begin_layout Plain Layout
36913 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36916 \begin_layout Plain Layout
36922 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36925 \begin_layout Plain Layout
36928 arg "dialog-show-new-inset graphics"
36936 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36939 \begin_layout Plain Layout
36953 \begin_layout Standard
36956 \begin_inset Tabular
36957 <lyxtabular version="3" rows="3" columns="2">
36958 <features tabularvalignment="middle">
36959 <column alignment="center" valignment="top">
36960 <column alignment="center" valignment="top">
36962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36965 \begin_layout Plain Layout
36971 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36974 \begin_layout Plain Layout
36982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36985 \begin_layout Plain Layout
36988 arg "dialog-show-new-inset graphics"
36996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36999 \begin_layout Plain Layout
37007 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37010 \begin_layout Plain Layout
37016 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37019 \begin_layout Plain Layout
37031 \begin_inset Tabular
37032 <lyxtabular version="3" rows="3" columns="3">
37033 <features tabularvalignment="middle">
37034 <column alignment="center" valignment="top">
37035 <column alignment="center" valignment="top">
37036 <column alignment="center" valignment="top">
37038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37041 \begin_layout Plain Layout
37047 <cell alignment="center" valignment="top" topline="true" usebox="none">
37050 \begin_layout Plain Layout
37056 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37059 \begin_layout Plain Layout
37067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37070 \begin_layout Plain Layout
37076 <cell alignment="center" valignment="top" usebox="none">
37079 \begin_layout Plain Layout
37082 arg "dialog-show-new-inset graphics"
37090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37093 \begin_layout Plain Layout
37101 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37104 \begin_layout Plain Layout
37110 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37113 \begin_layout Plain Layout
37119 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37122 \begin_layout Plain Layout
37134 \begin_inset Tabular
37135 <lyxtabular version="3" rows="3" columns="2">
37136 <features tabularvalignment="middle">
37137 <column alignment="center" valignment="top">
37138 <column alignment="center" valignment="top">
37140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37143 \begin_layout Plain Layout
37149 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37152 \begin_layout Plain Layout
37160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37163 \begin_layout Plain Layout
37169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37172 \begin_layout Plain Layout
37175 arg "dialog-show-new-inset graphics"
37185 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37188 \begin_layout Plain Layout
37194 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37197 \begin_layout Plain Layout
37211 \begin_layout Standard
37213 you can use the \SpecialChar LaTeX
37219 \begin_inset Index idx
37222 \begin_layout Plain Layout
37224 -packages ! picinpar
37230 Here is an example:
37233 \begin_layout Standard
37237 \begin_layout Plain Layout
37247 \begin_inset Note Note
37250 \begin_layout Plain Layout
37251 The following section will only be displayed when the \SpecialChar LaTeX
37264 \begin_layout Standard
37268 \begin_layout Plain Layout
37272 begin{window}[2,c,{
37278 \begin_inset Graphics
37279 filename clipart/mobius.eps
37282 scaleBeforeRotation
37283 rotateOrigin center
37291 \begin_layout Plain Layout
37296 \begin_layout Plain Layout
37305 It was in the spring of the year 1894 that all London was interested, and
37306 the fashionable world dismayed, by the murder of the Honourable Ronald
37307 Adair under most unusual and inexplicable circumstances.
37308 The public has already learned those particulars of the crime which
37314 \begin_layout Plain Layout
37325 came out in the police investigation, but a good deal was suppressed upon
37326 that occasion, since the case for the prosecution was so overwhelmingly
37327 strong that it was not necessary to bring forward all the facts.
37328 Only now, at the end of nearly ten years, am I allowed to supply those
37329 missing links which make up the whole of that remarkable chain.
37335 \begin_layout Plain Layout
37347 \begin_layout Standard
37351 \begin_layout Plain Layout
37360 Footnote of the paragraph with the fixed object.
37364 \begin_layout Plain Layout
37374 \begin_layout Standard
37375 Surrounded fixed objects are used to let text float around them, at which
37376 the object's position in the paragraph can be determined by the number
37378 In contrary to floats is it not possible to have a numbered caption.
37381 \begin_layout Standard
37382 A fixed object is inserted by adding the command
37385 \begin_layout Standard
37390 begin{window}[2,c,{
37393 \begin_layout Standard
37394 as \SpecialChar TeX
37395 Code at the beginning of the paragraph.
37396 The first parameter in the bracket, here '2', defines the number of lines
37397 above the object, the second, here 'c', the position of the object.
37398 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37399 Behind the command you insert the object.
37400 In this example an image with a width of 40
37401 \begin_inset space \thinspace{}
37404 % of the text column width was inserted.
37405 The object can also be a table, a box or an equation.
37406 Behind the object the command
37409 \begin_layout Standard
37412 },description text]
37413 \begin_inset Newline newline
37419 \begin_layout Standard
37422 \begin_inset Quotes eld
37430 \begin_inset Quotes erd
37433 is in the second line.
37434 The description text is optional.
37435 The text surrounding the object must be in the same paragraph as the object,
37436 so it must begin directly after the
37441 At the end of the paragraph insert the command:
37444 \begin_layout Standard
37452 \begin_layout Standard
37453 Within a paragraph with a fixed object, you cannot insert footnotes in the
37455 You have to use instead the command
37461 inside the paragraph and outside the command
37467 as described in sec.
37468 \begin_inset space \thinspace{}
37472 \begin_inset CommandInset ref
37474 reference "sec:Footnotes"
37481 \begin_layout Standard
37485 \begin_layout Plain Layout
37495 \begin_inset Note Note
37498 \begin_layout Plain Layout
37499 The following will be displayed when the \SpecialChar LaTeX
37512 \begin_layout Standard
37513 You need to install the \SpecialChar LaTeX
37518 to see the following part of this section in the output.
37521 \begin_layout Standard
37525 \begin_layout Plain Layout
37537 \begin_layout Section
37539 \begin_inset Index idx
37542 \begin_layout Plain Layout
37549 \begin_inset Index idx
37552 \begin_layout Plain Layout
37553 Surrounded by text ! Initials
37561 \begin_layout Standard
37562 To use initials, you must have the \SpecialChar LaTeX
37568 \begin_inset Index idx
37571 \begin_layout Plain Layout
37573 -packages ! lettrine
37578 installed and use the module
37582 in your document (menu
37584 Document\SpecialChar menuseparator
37585 Settings\SpecialChar menuseparator
37589 To insert an initial, use the style
37594 This style has a mandatory and two optional arguments.
37595 The arguments are inserted via the
37600 The mandatory argument
37604 contains the letter(s) that is the initial, the argument
37607 \begin_inset space ~
37611 \begin_inset space ~
37616 contains the rest of the word or text of the initial letter(s).
37621 contains parameters to modify the initial.
37622 For more information about the possible parameters see the documentation
37628 \begin_inset CommandInset citation
37635 The style itself contains the text that is surrounding the initial.
37636 The usual style is hereby that the word whose first letter is the initial,
37644 \begin_layout Standard
37645 Here are some examples:
37648 \begin_layout Standard
37652 \begin_layout Plain Layout
37662 \begin_inset Note Note
37665 \begin_layout Plain Layout
37666 The following section will only be displayed when the \SpecialChar LaTeX
37679 \begin_layout Enumerate
37680 No optional argument, the initial is the letter 'I' in the math font
37681 \begin_inset Formula $\mathfrak{Fraktur}$
37685 \begin_inset Separator parbreak
37692 \begin_layout Initial
37693 \begin_inset Argument 2
37696 \begin_layout Plain Layout
37697 \begin_inset Formula $\mathfrak{I}$
37706 \begin_inset Argument 3
37709 \begin_layout Plain Layout
37715 was in the spring of the year 1894 that all London was interested, and
37716 the fashionable world dismayed, by the murder of the Honourable Ronald
37717 Adair under most unusual and inexplicable circumstances.
37718 The public has already learned those particulars of the crime which came
37719 out in the police investigation, but a good deal was suppressed upon that
37720 occasion, since the case for the prosecution was so overwhelmingly strong
37721 that it was not necessary to bring forward all the facts.
37722 \begin_inset Newpage newpage
37729 \begin_layout Enumerate
37730 Only one line is surrounding the initial, which is formed by two letters
37731 in standard font and no text is printed in small caps:
37732 \begin_inset Separator parbreak
37739 \begin_layout Initial
37740 \begin_inset Argument 1
37743 \begin_layout Plain Layout
37750 \begin_inset Argument 2
37753 \begin_layout Plain Layout
37759 was in the spring of the year 1894 that all London was interested, and
37760 the fashionable world dismayed, by the murder of the Honourable Ronald
37761 Adair under most unusual and inexplicable circumstances.
37762 The public has already learned those particulars of the crime which came
37763 out in the police investigation, but a good deal was suppressed upon that
37764 occasion, since the case for the prosecution was so overwhelmingly strong
37765 that it was not necessary to bring forward all the facts.
37769 \begin_layout Enumerate
37770 Magenta, hanging initial over 3
37771 \begin_inset space ~
37774 lines in the math font
37775 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37779 \begin_inset Quotes eld
37782 t was in the spring
37783 \begin_inset Quotes erd
37790 ; to color the initial, you must insert this command before the initial:
37791 \begin_inset Newline newline
37805 \begin_inset Newline newline
37813 \begin_inset Quotes eld
37817 \begin_inset Quotes erd
37821 \begin_inset Quotes eld
37825 \begin_inset Quotes erd
37829 \begin_inset Quotes eld
37833 \begin_inset Quotes erd
37837 \begin_inset Quotes eld
37841 \begin_inset Quotes erd
37845 \begin_inset Quotes eld
37849 \begin_inset Quotes erd
37853 \begin_inset Quotes eld
37857 \begin_inset Quotes erd
37861 \begin_inset Quotes eld
37865 \begin_inset Quotes erd
37869 \begin_inset Quotes eld
37873 \begin_inset Quotes erd
37876 , and add this command to the document preamble:
37877 \begin_inset Newline newline
37884 @ifundefined{textcolor}
37885 \begin_inset Newline newline
37889 \begin_inset space ~
37894 usepackage{color}}{}
37897 \begin_inset Separator parbreak
37904 \begin_layout Standard
37908 \begin_layout Plain Layout
37922 \begin_inset Note Note
37925 \begin_layout Plain Layout
37926 makes the initial magenta
37934 \begin_layout Initial
37935 \begin_inset Argument 1
37938 \begin_layout Plain Layout
37939 lines=3, lhang=0.33, loversize=0.25
37945 \begin_inset Argument 2
37948 \begin_layout Plain Layout
37949 \begin_inset Formula $\mathcal{I}$
37958 \begin_inset Argument 3
37961 \begin_layout Plain Layout
37962 t was in the spring
37967 of the year 1894 that all London was interested, and the fashionable world
37968 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37969 and inexplicable circumstances.
37970 The public has already learned those particulars of the crime which came
37971 out in the police investigation, but a good deal was suppressed upon that
37972 occasion, since the case for the prosecution was so overwhelmingly strong
37973 that it was not necessary to bring forward all the facts.
37977 \begin_layout Standard
37981 \begin_layout Plain Layout
37991 \begin_inset Note Note
37994 \begin_layout Plain Layout
37995 The following will be displayed when the \SpecialChar LaTeX
38008 \begin_layout Standard
38009 You need to install the \SpecialChar LaTeX
38014 to see the following part of this section in the output.
38017 \begin_layout Standard
38021 \begin_layout Plain Layout
38033 \begin_layout Chapter
38034 External Document Parts
38035 \begin_inset Index idx
38038 \begin_layout Plain Layout
38039 External Document Parts
38047 \begin_layout Standard
38050 Insert\SpecialChar menuseparator
38053 you can insert external material into your document.
38057 \begin_layout Description
38059 \begin_inset space ~
38062 Document Another \SpecialChar LyX
38063 document; its content is directly inserted to your document.
38066 \begin_layout Description
38068 \begin_inset space ~
38071 Text A text document; each line is inserted in your document as a separate
38075 \begin_layout Description
38077 \begin_inset space ~
38081 \begin_inset space ~
38085 \begin_inset space ~
38088 Lines A text document; text lines are inserted in your document continuously
38089 but an empty text line creates a new paragraph.
38092 \begin_layout Description
38094 \begin_inset space ~
38097 Material Files in various formats.
38100 \begin_layout Description
38102 \begin_inset space ~
38105 Document \SpecialChar LyX
38106 or \SpecialChar LaTeX
38110 \begin_layout Section
38112 \begin_inset Index idx
38115 \begin_layout Plain Layout
38116 External Document Parts ! External Material
38124 \begin_layout Standard
38125 The external material feature allows you to insert files into your document
38126 without converting them to a format that can be read by the document output
38129 takes care of the necessary conversions.
38130 This is similar to images that can be inserted in various image formats
38131 in \SpecialChar LyX
38133 When you have enabled Instant Preview in \SpecialChar LyX
38134 's preferences under
38137 \begin_inset space ~
38141 \begin_inset space ~
38144 feel\SpecialChar menuseparator
38147 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38151 \begin_layout Standard
38152 External material can be inserted via the
38156 dialog that is accessible with the menu
38158 Insert\SpecialChar menuseparator
38159 File\SpecialChar menuseparator
38161 \begin_inset space ~
38167 Currently the following file types (
38174 \begin_layout Description
38175 ChessDiagram This template supports chess position diagrams made with the
38179 \begin_inset CommandInset href
38182 target "http://en.wikipedia.org/wiki/XBoard"
38191 \begin_layout Description
38192 Date This inserts the date in the form
38197 This is a date inserted as external material:
38198 \begin_inset External
38205 \begin_inset space ~
38209 \begin_inset Note Note
38212 \begin_layout Plain Layout
38213 Remove the protected space when bug 4398 is fixed!
38219 \begin_inset Newline newline
38222 The date is not shown within \SpecialChar LyX
38223 , only in the output.
38224 There are two other methods of inserting a date: Via menu
38226 Insert\SpecialChar menuseparator
38229 and with the \SpecialChar LaTeX
38236 as \SpecialChar TeX
38238 The different methods are compared in Table
38239 \begin_inset space ~
38243 \begin_inset CommandInset ref
38245 reference "tab:Comparison-of-the"
38252 \begin_layout Description
38253 Dia This template supports diagrams created with the program
38256 \begin_inset CommandInset href
38259 target "http://en.wikipedia.org/wiki/Dia_(software)"
38268 \begin_layout Description
38269 GnumericSpreadsheet With this template you can insert spreadsheets
38270 \begin_inset space \thinspace{}
38274 \begin_inset space \thinspace{}
38277 tables in the format of
38280 \begin_inset CommandInset href
38283 target "http://en.wikipedia.org/wiki/Gnumeric"
38290 \begin_inset CommandInset href
38292 name "OpenDocument"
38293 target "http://en.wikipedia.org/wiki/OpenDocument"
38298 \begin_inset CommandInset href
38300 name "Microsoft Office XML"
38301 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38306 \begin_inset CommandInset href
38308 name "Office Open XML"
38309 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38314 For this feature \SpecialChar LyX
38315 must have found the program
38319 during its configuration.
38320 This program is part of Gnumeric, so that you must have Gnumeric installed,
38321 also if you don't have tables in the Gnumeric format.
38322 For examples and possible limitations have a look at \SpecialChar LyX
38330 \begin_layout Description
38331 LilyPond This template is used for music notation typeset with the program
38332 \begin_inset Newline linebreak
38338 \begin_inset CommandInset href
38341 target "http://en.wikipedia.org/wiki/LilyPond"
38348 For \SpecialChar LyX
38349 's extended support for LilyPond have a look at \SpecialChar LyX
38357 \begin_layout Description
38358 PDFPages With this template you can insert PDF documents to your document.
38359 To specify the range of pages that should be included, use the option
38369 LaTeX and LyX options
38372 The argument of this option is a comma separated list, containing page
38373 numbers (insert as option
38377 ), ranges of page numbers (
38381 ) or any combination.
38382 To insert empty pages use {}.
38384 \begin_inset space \thinspace{}
38388 \begin_inset space ~
38393 pages={3,{},8-11,15}
38395 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38396 Page ranges are specified in the syntax
38405 This selects all pages from
38418 defaults to the first page; omitting
38422 defaults to the last page of the document.
38423 The last page can also be selected with the keyword
38428 (This is only permitted in a page range.) So
38432 will insert all pages of the document and
38436 will insert all pages in reverse order.
38437 If the pages option is not specified, only the first page of the PDF is
38439 \begin_inset Newline newline
38446 inserts the pages with their original size, if this option is not given,
38447 the pages will be resized to fith the width of the page of your document.
38452 you can specify the width and height of the input pages and their rotation.
38453 If another width than 100
38454 \begin_inset space \thinspace{}
38457 Scale% is used, the option
38461 will be overwritten.
38462 For more info and possible options, have a look into the documentation
38463 of the \SpecialChar LaTeX
38469 \begin_inset CommandInset citation
38476 \begin_inset Index idx
38479 \begin_layout Plain Layout
38481 -packages ! pdfpages
38487 \begin_inset Newline newline
38490 To use this template in a
38494 presentation you need to first insert an
38498 environment and in a subsequent paragraph a \SpecialChar TeX
38499 Code box containing the command
38504 setbeamertemplate{background canvas}{}
38507 Then you can insert as many paragraphs containing the PDFPages template
38509 Behind the included PDF pages you can resume the Beamer presentation by
38510 beginning a new frame or by starting a new section.
38511 To avoid stray blank pages prior to the PDF pages, make sure to use the
38516 alignment for the paragraph containing the template.
38517 \begin_inset Newline newline
38520 Here is an included PDF which is rotated by -5°:
38521 \begin_inset External
38523 filename clipart/Abstract.pdf
38524 extra LaTeX "noautoscale, pages=-"
38526 rotateOrigin bottomleft
38533 \begin_layout Description
38534 RasterImage This can be used for bitmap images.
38535 The image can be treated in the
38539 dialog like the images that are usually included via the
38543 dialog as described in section
38544 \begin_inset space ~
38548 \begin_inset CommandInset ref
38550 reference "sec:Graphics-Dialog"
38555 The difference to the normal image input is that only raster images are
38556 allowed; that means that PDF and EPS-images are not supported.
38557 Here is an inserted raster image:
38558 \begin_inset External
38559 template RasterImage
38560 filename clipart/ToolbarEnvBox.png
38567 \begin_layout Description
38568 XFig This template supports images created with the program
38571 \begin_inset CommandInset href
38574 target "http://en.wikipedia.org/wiki/Xfig"
38583 \begin_layout Standard
38584 \begin_inset Float table
38590 \begin_layout Plain Layout
38591 \begin_inset Caption Standard
38593 \begin_layout Plain Layout
38594 \begin_inset CommandInset label
38596 name "tab:Comparison-of-the"
38600 Comparison of the date input methods.
38608 \begin_layout Plain Layout
38610 \begin_inset Tabular
38611 <lyxtabular version="3" rows="4" columns="4">
38612 <features tabularvalignment="middle">
38613 <column alignment="center" valignment="top">
38614 <column alignment="center" valignment="top">
38615 <column alignment="center" valignment="top">
38616 <column alignment="center" valignment="top">
38618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38621 \begin_layout Plain Layout
38627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38630 \begin_layout Plain Layout
38633 External Material\SpecialChar menuseparator
38639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38642 \begin_layout Plain Layout
38645 Insert\SpecialChar menuseparator
38651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38654 \begin_layout Plain Layout
38666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38669 \begin_layout Plain Layout
38676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38679 \begin_layout Plain Layout
38685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38688 \begin_layout Plain Layout
38694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38697 \begin_layout Plain Layout
38698 as \SpecialChar TeX
38706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38709 \begin_layout Plain Layout
38716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38719 \begin_layout Plain Layout
38725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38728 \begin_layout Plain Layout
38734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38737 \begin_layout Plain Layout
38745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38748 \begin_layout Plain Layout
38754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38757 \begin_layout Plain Layout
38763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38766 \begin_layout Plain Layout
38772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38775 \begin_layout Plain Layout
38794 \begin_layout Standard
38795 When you use the option
38807 dialog, only the path to the inserted file is shown in the output.
38808 \begin_inset Newline newline
38811 External material is displayed in \SpecialChar LyX
38812 either as a box like this:
38813 \begin_inset Graphics
38814 filename clipart/ExternalMaterial.png
38816 scaleBeforeRotation
38820 or as image, depending on the option
38826 LaTeX and LyX options
38831 \begin_layout Standard
38838 manual explains how you can define your own templates.
38841 \begin_layout Section
38843 \begin_inset CommandInset label
38845 name "sec:Child-Documents"
38850 \begin_inset Index idx
38853 \begin_layout Plain Layout
38854 External Document Parts ! Child Documents
38860 \begin_inset Index idx
38863 \begin_layout Plain Layout
38872 \begin_layout Standard
38873 Child documents are used if you have a long document consisting of several
38874 larger parts or sections.
38875 For maintenance it is often useful and sometimes even required to split
38876 the document into several files that can be revised separately.
38877 The different documents are then the so called
38878 \begin_inset Quotes eld
38882 \begin_inset Quotes erd
38885 , and a master document connects them to print the full document or parts
38887 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38889 the bibliography, and labels for cross-references.
38892 \begin_layout Standard
38893 To be able to work on child documents without the need to open their master,
38894 specify in the child document the master in the menu
38896 Document\SpecialChar menuseparator
38897 Settings\SpecialChar menuseparator
38899 \begin_inset space ~
38905 This master document will then be used in the background by \SpecialChar LyX
38907 the child document.
38910 \begin_layout Standard
38911 Included documents are displayed in \SpecialChar LyX
38912 as a box like this:
38913 \begin_inset Graphics
38914 filename clipart/ChildDocument.png
38916 scaleBeforeRotation
38920 To include child documents in a master document use the menu
38922 Insert\SpecialChar menuseparator
38923 File\SpecialChar menuseparator
38925 \begin_inset space ~
38931 A dialog pops up where you can choose between four include methods:
38934 \begin_layout Description
38935 Include You can include \SpecialChar LyX
38936 and \SpecialChar LaTeX
38946 dialog, the included document will be opened in \SpecialChar LyX
38947 in a new file tab so that
38949 \begin_inset Newline newline
38955 \begin_layout Standard
38956 Here is a child document inserted using
38961 \begin_inset CommandInset include
38962 LatexCommand include
38963 filename "DummyDocument1.lyx"
38970 \begin_layout Standard
38971 The section numbering includes the sections of the included files in the
38972 order they are inserted in the master document.
38973 The included example document has for example a subsection that is numbered
38974 as a subsection of this section.
38975 Labels of included documents can be referenced: Subsection
38976 \begin_inset space ~
38980 \begin_inset CommandInset ref
38982 reference "subsec:External-Subsection-1"
38989 \begin_layout Standard
38990 The preamble of the child document is ignored; only the preamble of the
38991 master document is used.
38992 Branches in child documents will be ignored by the master document when
38993 the master document does not have a branch with the same name.
38994 Included documents are inserted starting on a new page and ending with
38998 \begin_layout Standard
38999 \begin_inset Note Greyedout
39002 \begin_layout Plain Layout
39007 If you have included a \SpecialChar LyX
39008 or \SpecialChar LaTeX
39009 file, you are warned when you export/view the
39010 document in case the child document uses another document class than the
39011 master document as this will lead to unexpected outputs.
39019 \begin_layout Description
39020 Input This method is very similar to the Include method.
39021 The differences are:
39022 \begin_inset Separator parbreak
39029 \begin_layout Itemize
39030 Input files don't start with a new page and don't end with a page break.
39033 \begin_layout Itemize
39034 Input files can be previewed in \SpecialChar LyX
39038 \begin_inset space ~
39043 is enabled in \SpecialChar LyX
39044 's preferences under
39047 \begin_inset space ~
39051 \begin_inset space ~
39054 feel\SpecialChar menuseparator
39060 \begin_layout Itemize
39061 You cannot exclude Input files via the menu
39063 Document\SpecialChar menuseparator
39064 Settings\SpecialChar menuseparator
39071 \begin_layout Standard
39072 Here is a child document inserted using
39077 \begin_inset CommandInset include
39079 filename "DummyDocument2.lyx"
39086 \begin_layout Description
39087 Verbatim With this method any text file can be included.
39088 The file is shown in the output with its source code; no command used in
39089 the text is invoked.
39090 You can use the option
39092 Mark spaces in output
39094 that displays the character
39095 \begin_inset Quotes eld
39102 \begin_layout Plain Layout
39112 \begin_inset Quotes erd
39115 for every space character in the source code.
39116 The difference from the method via the menu
39118 Insert\SpecialChar menuseparator
39119 File\SpecialChar menuseparator
39121 \begin_inset space ~
39126 is that the document content is not shown in \SpecialChar LyX
39130 \begin_layout Standard
39131 Here is a child document inserted as Verbatim:
39132 \begin_inset CommandInset include
39133 LatexCommand verbatiminput
39134 filename "DummyTextDocument.txt"
39139 \begin_inset VSpace bigskip
39142 Here is a child document inserted as Verbatim using the
39144 Mark spaces in output
39147 \begin_inset CommandInset include
39148 LatexCommand verbatiminput*
39149 filename "DummyTextDocument.txt"
39156 \begin_layout Standard
39157 \begin_inset VSpace bigskip
39163 \begin_layout Standard
39164 \begin_inset Note Greyedout
39167 \begin_layout Plain Layout
39172 As you can see in the examples above, the text of the documents included
39177 is not broken at the end of the document lines.
39185 \begin_layout Description
39186 Listings This type is described in chapter
39187 \begin_inset space ~
39191 \begin_inset CommandInset ref
39193 reference "cha:Program-Code-Listings"
39200 \begin_layout Standard
39201 \begin_inset Note Greyedout
39204 \begin_layout Plain Layout
39209 Including the same document twice in a document using different methods
39210 could cause \SpecialChar LaTeX
39219 \begin_layout Standard
39220 If you want to view/export only selected children of your master document,
39221 either because you want to save compiling time or because you want to distribut
39222 e single chapters of the book you are just writing, you can exclude children
39224 This is done via the menu
39226 Document\SpecialChar menuseparator
39227 Settings\SpecialChar menuseparator
39231 You can exclude\SpecialChar breakableslash
39232 include children by double-clicking on the
39236 column of the respective child document in the list (note that this only
39237 works for documents embedded via
39238 \begin_inset Quotes eld
39242 \begin_inset Quotes erd
39246 \begin_inset Quotes eld
39250 \begin_inset Quotes erd
39256 Maintain counters and references
39258 is enabled, \SpecialChar LyX
39259 will assure that all page numbers, references etc.
39260 \begin_inset space ~
39263 are correct as if the whole document was processed.
39264 This is useful if you want the selected sub-documents to look exactly as
39265 in the context of the whole document.
39266 However, \SpecialChar LyX
39267 needs to process the whole document in the background for this
39269 So if you want to save compile time and if counters and references do not
39270 need to be correct, disable this checkbox.
39273 \begin_layout Standard
39274 Alternatively, you can put each included file into a branch.
39278 \begin_layout Plain Layout
39279 Branches are described in section
39283 of the \SpecialChar LyX
39293 By enabling\SpecialChar breakableslash
39294 disabling branches you can decide which included files will
39295 appear in the output.
39296 This has the advantage that it also works with Input'ed sub-documents.
39297 However, counters and references will not be maintained with this approach.
39300 \begin_layout Chapter
39301 Program Code Listings
39302 \begin_inset CommandInset label
39304 name "cha:Program-Code-Listings"
39309 \begin_inset Index idx
39312 \begin_layout Plain Layout
39319 \begin_inset Index idx
39322 \begin_layout Plain Layout
39329 \begin_inset Index idx
39332 \begin_layout Plain Layout
39341 \begin_layout Standard
39342 To include and typeset program code you can use the
39346 inset that can be inserted via the menu
39348 Insert\SpecialChar menuseparator
39352 The \SpecialChar LaTeX
39358 \begin_inset Index idx
39361 \begin_layout Plain Layout
39363 -packages ! listings
39368 provides a powerful and flexible way to insert program source code into
39372 \begin_layout Standard
39373 Right-clicking on a listings inset opens the context menu containing where
39374 you can set the listings format.
39377 \begin_layout Standard
39378 By default, a listing starts a new paragraph in the output.
39379 The placement option
39382 \begin_inset space ~
39387 prints the listing inline like this:
39388 \begin_inset listings
39389 lstparams "language={C++}"
39393 \begin_layout Plain Layout
39401 \begin_inset Newline newline
39408 creates a listings float where you can specify the placement options
39409 \begin_inset Quotes eld
39417 \begin_inset Quotes erd
39421 \begin_inset Quotes eld
39429 \begin_inset Quotes erd
39433 \begin_inset Quotes eld
39441 \begin_inset Quotes erd
39445 \begin_inset Quotes eld
39453 \begin_inset Quotes erd
39456 corresponding to the float placement options described in section
39457 \begin_inset space ~
39461 \begin_inset CommandInset ref
39463 reference "sec:Float-Placement"
39468 The placement options can be mixed and are inserted without any separation,
39470 \begin_inset space \thinspace{}
39474 \begin_inset space \space{}
39478 \begin_inset Quotes eld
39486 \begin_inset Quotes erd
39491 \begin_inset Quotes eld
39495 \begin_inset Quotes erd
39498 has sometimes no effect, but you don't need to use the
39502 option in this case as also non-float listings can have captions and be
39506 \begin_layout Standard
39507 You can add captions to listings with the menu
39509 Insert\SpecialChar menuseparator
39513 Listings can be referenced like floats: Listing
39514 \begin_inset space ~
39518 \begin_inset CommandInset ref
39520 reference "lst:Example-Listing"
39525 A list of listings which contains all listings with captions can be created
39528 Insert\SpecialChar menuseparator
39530 \begin_inset space ~
39534 \begin_inset space ~
39537 TOC\SpecialChar menuseparator
39541 The list entries are the listing caption and the listing number.
39544 \begin_layout Standard
39545 \begin_inset listings
39546 lstparams "language=Python"
39550 \begin_layout Plain Layout
39552 \begin_inset Caption Standard
39554 \begin_layout Plain Layout
39555 \begin_inset CommandInset label
39557 name "lst:Example-Listing"
39561 Example Listing float
39566 # Example listing float
39569 \begin_layout Plain Layout
39574 \begin_layout Plain Layout
39576 'this is a python function'
39579 \begin_layout Plain Layout
39589 \begin_layout Standard
39590 When you have set a programming language in the listings dialog, the keywords
39591 of this language will be recognized and specially typeset in the output.
39592 In the example listings the Python keyword
39593 \begin_inset Quotes eld
39597 \begin_inset Quotes erd
39600 is recognized and printed bold in the output.
39603 \begin_layout Standard
39604 \begin_inset Note Greyedout
39607 \begin_layout Plain Layout
39612 If you don't get bold keywords when using typewriter fonts, your
39616 font probably doesn't provide a bold shape.
39617 In this case select a different one in the menu
39619 Document\SpecialChar menuseparator
39620 Settings\SpecialChar menuseparator
39632 provide bold shapes.)
39640 \begin_layout Standard
39644 \begin_inset space ~
39649 of the listings dialog you can specify the line numbering style.
39650 You can insert a number to specify which lines are numbered in the field
39657 \begin_inset space \thinspace{}
39661 \begin_inset space \space{}
39665 \begin_inset Quotes eld
39669 \begin_inset Quotes erd
39672 , only every 3rd line will be numbered.
39675 \begin_layout Standard
39676 You can furthermore specify a range of lines; only these will then appear
39680 Extended character table
39682 should be used when you use national characters like the German umlauts
39684 \begin_inset Newline newline
39687 Here is an example listing with left line numbering, step
39688 \begin_inset Quotes eld
39692 \begin_inset Quotes erd
39696 \begin_inset Quotes eld
39700 \begin_inset Quotes erd
39704 \begin_inset Quotes eld
39707 Extended character table
39708 \begin_inset Quotes erd
39712 \begin_inset Quotes eld
39716 \begin_inset space ~
39720 \begin_inset space ~
39724 \begin_inset Quotes erd
39728 \begin_inset space \thinspace{}
39732 \begin_inset space \thinspace{}
39738 \begin_layout Standard
39739 \begin_inset listings
39740 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39744 \begin_layout Plain Layout
39749 \begin_layout Plain Layout
39751 'this is a python function'
39754 \begin_layout Plain Layout
39759 \begin_layout Plain Layout
39764 \begin_layout Plain Layout
39766 'This is a German word: Tschüß'
39769 \begin_layout Plain Layout
39774 \begin_layout Plain Layout
39779 \begin_layout Plain Layout
39781 'this is a python function'
39784 \begin_layout Plain Layout
39794 \begin_layout Standard
39795 When you have tabulators in your listing, you can specify the number of
39796 characters that are spanned by a tabulator in the field
39799 \begin_inset space ~
39807 \begin_layout Standard
39808 \begin_inset Note Greyedout
39811 \begin_layout Plain Layout
39816 Due to a bug in the
39820 package the line numbering is shifted by a line by every previous listing.
39821 That's the reason why the lines 2 and 5 are numbered in the above listing
39822 and not the lines 3 and 6.
39830 \begin_layout Standard
39831 \begin_inset VSpace bigskip
39837 \begin_layout Standard
39838 It is also possible to print lines from a file as listing.
39839 To do this, use the menu
39841 Insert\SpecialChar menuseparator
39842 File\SpecialChar menuseparator
39845 and choose the type
39853 \begin_layout Plain Layout
39854 The other child document types are described in section
39855 \begin_inset space ~
39859 \begin_inset CommandInset ref
39861 reference "sec:Child-Documents"
39870 In the child document dialog you can specify the listing parameters in
39872 To show a list of all available parameters, type in a question mark
39873 \begin_inset Quotes eld
39877 \begin_inset Quotes erd
39883 \begin_layout Standard
39884 To reference child document listings, write a label text into the corresponding
39885 field of the child document dialog.
39886 The label can then be referenced using the menu
39888 Insert\SpecialChar menuseparator
39894 \begin_layout Standard
39896 \begin_inset space ~
39900 \begin_inset CommandInset ref
39902 reference "lst:file-listing"
39906 is an example for a listing of a file; there the lines 10
39907 \begin_inset space \thinspace{}
39911 \begin_inset space \thinspace{}
39914 15 of this \SpecialChar LyX
39918 \begin_layout Standard
39919 \begin_inset CommandInset include
39920 LatexCommand lstinputlisting
39921 filename "EmbeddedObjects.lyx"
39922 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39929 \begin_layout Standard
39930 \begin_inset VSpace bigskip
39936 \begin_layout Standard
39937 Inserting a formula into a listing can be done the following way:
39940 \begin_layout Enumerate
39941 Open the listings dialog and add
39942 \begin_inset Newline newline
39950 \begin_inset Newline newline
39953 to the field of the
39960 \begin_layout Enumerate
39961 Create a formula outside the listing
39964 \begin_layout Enumerate
39965 Copy the content of the formula (not the formula inset) to the clipboard
39975 \begin_layout Enumerate
39976 In the listing write
39977 \begin_inset Quotes eld
39985 \begin_inset Quotes erd
39988 and copy from the clipboard between the dollar-signs (shortcut
39997 \begin_layout Standard
39998 \begin_inset listings
39999 lstparams "language=Python,mathescape=true"
40003 \begin_layout Plain Layout
40005 \begin_inset Caption Standard
40007 \begin_layout Plain Layout
40008 Example Listing float containing a formula
40013 # Example listing float
40016 \begin_layout Plain Layout
40021 \begin_layout Plain Layout
40034 \begin_layout Plain Layout
40044 \begin_layout Standard
40045 \begin_inset VSpace bigskip
40051 \begin_layout Standard
40052 Global listings settings can be set in the
40054 Document\SpecialChar menuseparator
40055 Settings\SpecialChar menuseparator
40059 To get there a list of available options, type in a question mark
40060 \begin_inset Quotes eld
40064 \begin_inset Quotes erd
40070 \begin_layout Standard
40071 For more information about the
40075 package, we refer to its documentation
40076 \begin_inset CommandInset citation
40085 \begin_layout Standard
40086 \begin_inset Newpage newpage
40092 \begin_layout Chapter
40094 Units available in \SpecialChar LyX
40096 \begin_inset Index idx
40099 \begin_layout Plain Layout
40106 \begin_inset CommandInset label
40108 name "cha:Units-available-in"
40115 \begin_layout Standard
40116 To understand the units described in this documentation, Table
40117 \begin_inset space ~
40121 \begin_inset CommandInset ref
40123 reference "tab:Units"
40127 explains all units available in \SpecialChar LyX
40131 \begin_layout Standard
40132 \begin_inset Float table
40138 \begin_layout Plain Layout
40139 \begin_inset Caption Standard
40141 \begin_layout Plain Layout
40142 \begin_inset CommandInset label
40156 \begin_layout Plain Layout
40157 \begin_inset VSpace medskip
40163 \begin_layout Plain Layout
40165 \begin_inset Tabular
40166 <lyxtabular version="3" rows="20" columns="3">
40167 <features tabularvalignment="middle">
40168 <column alignment="center" valignment="top">
40169 <column alignment="center" valignment="top">
40170 <column alignment="center" valignment="top">
40172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40175 \begin_layout Plain Layout
40181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40184 \begin_layout Plain Layout
40190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40193 \begin_layout Plain Layout
40202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40205 \begin_layout Plain Layout
40211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40214 \begin_layout Plain Layout
40220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40223 \begin_layout Plain Layout
40231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40234 \begin_layout Plain Layout
40240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40243 \begin_layout Plain Layout
40249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40252 \begin_layout Plain Layout
40260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40272 \begin_layout Plain Layout
40278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40281 \begin_layout Plain Layout
40289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40292 \begin_layout Plain Layout
40298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40301 \begin_layout Plain Layout
40303 \begin_inset space \thinspace{}
40307 \begin_inset space \thinspace{}
40315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40318 \begin_layout Plain Layout
40326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40329 \begin_layout Plain Layout
40335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40338 \begin_layout Plain Layout
40340 \begin_inset space \thinspace{}
40344 \begin_inset space \thinspace{}
40352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40355 \begin_layout Plain Layout
40363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40366 \begin_layout Plain Layout
40372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40375 \begin_layout Plain Layout
40376 scaled point (65536
40377 \begin_inset space \thinspace{}
40381 \begin_inset space \thinspace{}
40389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40392 \begin_layout Plain Layout
40400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40403 \begin_layout Plain Layout
40409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40412 \begin_layout Plain Layout
40414 \begin_inset space \thinspace{}
40418 \begin_inset space \thinspace{}
40426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40429 \begin_layout Plain Layout
40437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40440 \begin_layout Plain Layout
40446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40449 \begin_layout Plain Layout
40451 \begin_inset space \thinspace{}
40455 \begin_inset Formula $\approx$
40459 \begin_inset space \thinspace{}
40467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40470 \begin_layout Plain Layout
40478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40481 \begin_layout Plain Layout
40487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40490 \begin_layout Plain Layout
40492 \begin_inset space \thinspace{}
40496 \begin_inset space \thinspace{}
40504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40507 \begin_layout Plain Layout
40515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40518 \begin_layout Plain Layout
40524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40527 \begin_layout Plain Layout
40528 % of original image width
40533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40536 \begin_layout Plain Layout
40544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40547 \begin_layout Plain Layout
40553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40556 \begin_layout Plain Layout
40562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40565 \begin_layout Plain Layout
40575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40578 \begin_layout Plain Layout
40584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40587 \begin_layout Plain Layout
40593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40596 \begin_layout Plain Layout
40606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40609 \begin_layout Plain Layout
40615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40618 \begin_layout Plain Layout
40624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40627 \begin_layout Plain Layout
40637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40640 \begin_layout Plain Layout
40646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40649 \begin_layout Plain Layout
40655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40658 \begin_layout Plain Layout
40668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40671 \begin_layout Plain Layout
40677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40680 \begin_layout Plain Layout
40686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40689 \begin_layout Plain Layout
40699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40702 \begin_layout Plain Layout
40708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40711 \begin_layout Plain Layout
40717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40720 \begin_layout Plain Layout
40730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40733 \begin_layout Plain Layout
40739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40742 \begin_layout Plain Layout
40752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40755 \begin_layout Plain Layout
40763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40766 \begin_layout Plain Layout
40772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40775 \begin_layout Plain Layout
40785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40788 \begin_layout Plain Layout
40796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40799 \begin_layout Plain Layout
40805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40808 \begin_layout Plain Layout
40810 \begin_inset space \thinspace{}
40814 \begin_inset space \thinspace{}
40822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40825 \begin_layout Plain Layout
40844 \begin_layout Chapter
40845 Output File Formats with Graphics
40846 \begin_inset CommandInset label
40848 name "cha:Output-File-Formats"
40855 \begin_layout Section
40857 \begin_inset Index idx
40860 \begin_layout Plain Layout
40867 \begin_inset Index idx
40870 \begin_layout Plain Layout
40875 \begin_layout Plain Layout
40886 \begin_layout Plain Layout
40901 \begin_layout Standard
40902 This file type has the extension
40903 \begin_inset Quotes eld
40911 \begin_inset Quotes erd
40916 \begin_inset Quotes eld
40920 \begin_inset Quotes erd
40923 (DVI), because it is completely portable; you can move them from one machine
40924 to another without needing to do any sort of conversion.
40925 At the time when this file-format was developed, this was no matter of
40927 DVIs are used for quick previews and as pre-stage for other output formats,
40931 \begin_layout Standard
40932 \begin_inset Note Greyedout
40935 \begin_layout Plain Layout
40940 DVI-files do not contain images; they will only be a linked.
40945 So don't forget this, if you move your
40949 file to another computer.
40950 This property can also slow down your computer when you view the DVI, because
40951 the DVI-viewer has to convert the image in the background to make it visible
40952 when you scroll in the DVI.
40953 So it is recommended that you use PDF for files with many images.
40956 \begin_layout Standard
40957 You can export your document to DVI by using the menu
40959 File\SpecialChar menuseparator
40960 Export\SpecialChar menuseparator
40964 You can view your document as DVI via the
40971 \begin_layout Section
40973 \begin_inset Index idx
40976 \begin_layout Plain Layout
40977 File Formats ! PostScript
40983 \begin_inset Index idx
40986 \begin_layout Plain Layout
40991 \begin_layout Plain Layout
41002 \begin_layout Plain Layout
41017 \begin_layout Standard
41018 This file type has the extension
41019 \begin_inset Quotes eld
41027 \begin_inset Quotes erd
41031 PostScript was developed by the company
41035 as a printer language.
41036 The file therefore contains commands that the printer uses to print the
41038 PostScript can be seen as a
41039 \begin_inset Quotes eld
41042 programming language
41043 \begin_inset Quotes erd
41046 ; you can calculate with it and draw diagrams and images.
41050 \begin_layout Plain Layout
41051 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41058 \begin_inset CommandInset citation
41069 Due to this ability, the files are often bigger than PDFs.
41072 \begin_layout Standard
41073 PostScript can only contain images in the format
41074 \begin_inset Quotes eld
41077 Encapsulated PostScript
41078 \begin_inset Quotes erd
41081 (EPS, file extension
41082 \begin_inset Quotes eld
41090 \begin_inset Quotes erd
41094 As \SpecialChar LyX
41095 allows you to use any known image format in your document, it has to
41096 convert images in the background to EPS.
41098 \begin_inset space ~
41102 \begin_inset space ~
41105 images in your document, \SpecialChar LyX
41107 \begin_inset space ~
41110 conversions whenever you view or export your document.
41111 This will slow down your work flow with \SpecialChar LyX
41113 So if you plan to use PostScript, you can insert your images directly as
41114 EPS to avoid this problem.
41117 \begin_layout Standard
41118 You can export your document to PostScript using the menu
41120 File\SpecialChar menuseparator
41121 Export\SpecialChar menuseparator
41125 You can view your document as PostScript via the
41132 \begin_layout Section
41134 \begin_inset Index idx
41137 \begin_layout Plain Layout
41144 \begin_inset Index idx
41147 \begin_layout Plain Layout
41156 \begin_layout Standard
41157 This file type has the extension
41158 \begin_inset Quotes eld
41166 \begin_inset Quotes erd
41171 \begin_inset Quotes eld
41174 Portable Document Format
41175 \begin_inset Quotes erd
41178 (PDF) was developed by
41182 as a derivative of PostScript.
41183 It is more compressed and it uses fewer commands than PostScript.
41185 \begin_inset Quotes eld
41189 \begin_inset Quotes erd
41192 implies, it can be processed at any computer system and the printed output
41193 looks exactly the same.
41196 \begin_layout Standard
41197 PDF can contain images in its own PDF format, in the format
41198 \begin_inset Quotes eld
41201 Joint Photographic Experts Group
41202 \begin_inset Quotes erd
41205 (JPG, file extension
41206 \begin_inset Quotes eld
41214 \begin_inset Quotes erd
41218 \begin_inset Quotes eld
41226 \begin_inset Quotes erd
41229 ), and in the format
41230 \begin_inset Quotes eld
41233 Portable Network Graphics
41234 \begin_inset Quotes erd
41237 (PNG, file extension
41238 \begin_inset Quotes eld
41246 \begin_inset Quotes erd
41250 Nevertheless you can use any other image format, because \SpecialChar LyX
41252 in the background to one of these formats.
41253 But as described in the section about PostScript, the image conversion
41254 will slow down your work flow.
41255 So it is recommended that you use images in one of the three mentioned
41259 \begin_layout Standard
41260 You can export your document to PDF via the menu
41262 File\SpecialChar menuseparator
41265 in three different ways:
41268 \begin_layout Description
41270 \begin_inset space ~
41273 (ps2pdf) This uses the program
41277 that creates a PDF from a PostScript-version of your file.
41278 The PostScript-version is produced by the program
41282 which uses a DVI-version as intermediate step.
41283 So this export variant consists of three conversions.
41286 \begin_layout Description
41288 \begin_inset space ~
41291 (dvipdfm) This uses the program
41295 that converts your file in the background to DVI and in a second step to
41299 \begin_layout Description
41301 \begin_inset space ~
41304 (pdflatex) This uses the program
41308 that converts your file directly to PDF.
41311 \begin_layout Standard
41312 It is recommended that you use
41315 \begin_inset space ~
41324 supports all features of actual PDF-versions, is quick and works stable.
41329 is not under development and therefore a bit outdated.
41332 \begin_layout Standard
41333 You can view your document as PDF via the
41337 menu or by using a toolbar button.
41340 \begin_layout Chapter
41341 List of dvips color names
41342 \begin_inset CommandInset label
41344 name "chap:List-of-dvips-colornames"
41351 \begin_layout Standard
41352 \begin_inset Tabular
41353 <lyxtabular version="3" rows="17" columns="4">
41354 <features tabularvalignment="middle">
41355 <column alignment="left" valignment="top" width="0pt">
41356 <column alignment="left" valignment="top" width="0pt">
41357 <column alignment="left" valignment="top" width="0pt">
41358 <column alignment="left" valignment="top" width="0pt">
41360 <cell alignment="left" valignment="top" usebox="none">
41363 \begin_layout Plain Layout
41367 \begin_layout Plain Layout
41380 \begin_layout Plain Layout
41391 \begin_layout Plain Layout
41403 <cell alignment="left" valignment="top" usebox="none">
41406 \begin_layout Plain Layout
41410 \begin_layout Plain Layout
41423 \begin_layout Plain Layout
41434 \begin_layout Plain Layout
41446 <cell alignment="left" valignment="top" usebox="none">
41449 \begin_layout Plain Layout
41453 \begin_layout Plain Layout
41466 \begin_layout Plain Layout
41477 \begin_layout Plain Layout
41489 <cell alignment="left" valignment="top" usebox="none">
41492 \begin_layout Plain Layout
41496 \begin_layout Plain Layout
41509 \begin_layout Plain Layout
41520 \begin_layout Plain Layout
41534 <cell alignment="center" valignment="top" usebox="none">
41537 \begin_layout Plain Layout
41541 \begin_layout Plain Layout
41554 \begin_layout Plain Layout
41562 \begin_inset Phantom Phantom
41565 \begin_layout Plain Layout
41575 \begin_layout Plain Layout
41587 <cell alignment="center" valignment="top" usebox="none">
41590 \begin_layout Plain Layout
41594 \begin_layout Plain Layout
41607 \begin_layout Plain Layout
41615 \begin_inset Phantom Phantom
41618 \begin_layout Plain Layout
41628 \begin_layout Plain Layout
41640 <cell alignment="center" valignment="top" usebox="none">
41643 \begin_layout Plain Layout
41647 \begin_layout Plain Layout
41660 \begin_layout Plain Layout
41668 \begin_inset Phantom Phantom
41671 \begin_layout Plain Layout
41681 \begin_layout Plain Layout
41693 <cell alignment="center" valignment="top" usebox="none">
41696 \begin_layout Plain Layout
41700 \begin_layout Plain Layout
41713 \begin_layout Plain Layout
41721 \begin_inset Phantom Phantom
41724 \begin_layout Plain Layout
41734 \begin_layout Plain Layout
41748 <cell alignment="left" valignment="top" usebox="none">
41751 \begin_layout Plain Layout
41755 \begin_layout Plain Layout
41768 \begin_layout Plain Layout
41776 \begin_inset Phantom Phantom
41779 \begin_layout Plain Layout
41789 \begin_layout Plain Layout
41801 <cell alignment="left" valignment="top" usebox="none">
41804 \begin_layout Plain Layout
41808 \begin_layout Plain Layout
41821 \begin_layout Plain Layout
41829 \begin_inset Phantom Phantom
41832 \begin_layout Plain Layout
41842 \begin_layout Plain Layout
41854 <cell alignment="left" valignment="top" usebox="none">
41857 \begin_layout Plain Layout
41861 \begin_layout Plain Layout
41874 \begin_layout Plain Layout
41882 \begin_inset Phantom Phantom
41885 \begin_layout Plain Layout
41895 \begin_layout Plain Layout
41907 <cell alignment="left" valignment="top" usebox="none">
41910 \begin_layout Plain Layout
41914 \begin_layout Plain Layout
41927 \begin_layout Plain Layout
41935 \begin_inset Phantom Phantom
41938 \begin_layout Plain Layout
41948 \begin_layout Plain Layout
41962 <cell alignment="left" valignment="top" usebox="none">
41965 \begin_layout Plain Layout
41969 \begin_layout Plain Layout
41982 \begin_layout Plain Layout
41990 \begin_inset Phantom Phantom
41993 \begin_layout Plain Layout
42003 \begin_layout Plain Layout
42015 <cell alignment="left" valignment="top" usebox="none">
42018 \begin_layout Plain Layout
42022 \begin_layout Plain Layout
42035 \begin_layout Plain Layout
42043 \begin_inset Phantom Phantom
42046 \begin_layout Plain Layout
42056 \begin_layout Plain Layout
42068 <cell alignment="left" valignment="top" usebox="none">
42071 \begin_layout Plain Layout
42075 \begin_layout Plain Layout
42088 \begin_layout Plain Layout
42096 \begin_inset Phantom Phantom
42099 \begin_layout Plain Layout
42109 \begin_layout Plain Layout
42121 <cell alignment="left" valignment="top" usebox="none">
42124 \begin_layout Plain Layout
42128 \begin_layout Plain Layout
42141 \begin_layout Plain Layout
42149 \begin_inset Phantom Phantom
42152 \begin_layout Plain Layout
42162 \begin_layout Plain Layout
42176 <cell alignment="left" valignment="top" usebox="none">
42179 \begin_layout Plain Layout
42183 \begin_layout Plain Layout
42196 \begin_layout Plain Layout
42204 \begin_inset Phantom Phantom
42207 \begin_layout Plain Layout
42217 \begin_layout Plain Layout
42229 <cell alignment="left" valignment="top" usebox="none">
42232 \begin_layout Plain Layout
42236 \begin_layout Plain Layout
42249 \begin_layout Plain Layout
42257 \begin_inset Phantom Phantom
42260 \begin_layout Plain Layout
42270 \begin_layout Plain Layout
42282 <cell alignment="left" valignment="top" usebox="none">
42285 \begin_layout Plain Layout
42289 \begin_layout Plain Layout
42302 \begin_layout Plain Layout
42310 \begin_inset Phantom Phantom
42313 \begin_layout Plain Layout
42323 \begin_layout Plain Layout
42335 <cell alignment="left" valignment="top" usebox="none">
42338 \begin_layout Plain Layout
42342 \begin_layout Plain Layout
42355 \begin_layout Plain Layout
42363 \begin_inset Phantom Phantom
42366 \begin_layout Plain Layout
42376 \begin_layout Plain Layout
42390 <cell alignment="left" valignment="top" usebox="none">
42393 \begin_layout Plain Layout
42397 \begin_layout Plain Layout
42410 \begin_layout Plain Layout
42418 \begin_inset Phantom Phantom
42421 \begin_layout Plain Layout
42431 \begin_layout Plain Layout
42443 <cell alignment="left" valignment="top" usebox="none">
42446 \begin_layout Plain Layout
42450 \begin_layout Plain Layout
42463 \begin_layout Plain Layout
42471 \begin_inset Phantom Phantom
42474 \begin_layout Plain Layout
42484 \begin_layout Plain Layout
42496 <cell alignment="left" valignment="top" usebox="none">
42499 \begin_layout Plain Layout
42503 \begin_layout Plain Layout
42516 \begin_layout Plain Layout
42524 \begin_inset Phantom Phantom
42527 \begin_layout Plain Layout
42537 \begin_layout Plain Layout
42549 <cell alignment="left" valignment="top" usebox="none">
42552 \begin_layout Plain Layout
42556 \begin_layout Plain Layout
42569 \begin_layout Plain Layout
42577 \begin_inset Phantom Phantom
42580 \begin_layout Plain Layout
42590 \begin_layout Plain Layout
42604 <cell alignment="center" valignment="top" usebox="none">
42607 \begin_layout Plain Layout
42611 \begin_layout Plain Layout
42624 \begin_layout Plain Layout
42632 \begin_inset Phantom Phantom
42635 \begin_layout Plain Layout
42645 \begin_layout Plain Layout
42657 <cell alignment="center" valignment="top" usebox="none">
42660 \begin_layout Plain Layout
42664 \begin_layout Plain Layout
42677 \begin_layout Plain Layout
42685 \begin_inset Phantom Phantom
42688 \begin_layout Plain Layout
42698 \begin_layout Plain Layout
42710 <cell alignment="center" valignment="top" usebox="none">
42713 \begin_layout Plain Layout
42717 \begin_layout Plain Layout
42730 \begin_layout Plain Layout
42738 \begin_inset Phantom Phantom
42741 \begin_layout Plain Layout
42751 \begin_layout Plain Layout
42763 <cell alignment="center" valignment="top" usebox="none">
42766 \begin_layout Plain Layout
42770 \begin_layout Plain Layout
42783 \begin_layout Plain Layout
42791 \begin_inset Phantom Phantom
42794 \begin_layout Plain Layout
42804 \begin_layout Plain Layout
42818 <cell alignment="left" valignment="top" usebox="none">
42821 \begin_layout Plain Layout
42825 \begin_layout Plain Layout
42838 \begin_layout Plain Layout
42846 \begin_inset Phantom Phantom
42849 \begin_layout Plain Layout
42859 \begin_layout Plain Layout
42871 <cell alignment="left" valignment="top" usebox="none">
42874 \begin_layout Plain Layout
42878 \begin_layout Plain Layout
42891 \begin_layout Plain Layout
42899 \begin_inset Phantom Phantom
42902 \begin_layout Plain Layout
42912 \begin_layout Plain Layout
42924 <cell alignment="left" valignment="top" usebox="none">
42927 \begin_layout Plain Layout
42931 \begin_layout Plain Layout
42944 \begin_layout Plain Layout
42952 \begin_inset Phantom Phantom
42955 \begin_layout Plain Layout
42965 \begin_layout Plain Layout
42977 <cell alignment="left" valignment="top" usebox="none">
42980 \begin_layout Plain Layout
42984 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43005 \begin_inset Phantom Phantom
43008 \begin_layout Plain Layout
43018 \begin_layout Plain Layout
43032 <cell alignment="left" valignment="top" usebox="none">
43035 \begin_layout Plain Layout
43039 \begin_layout Plain Layout
43052 \begin_layout Plain Layout
43060 \begin_inset Phantom Phantom
43063 \begin_layout Plain Layout
43073 \begin_layout Plain Layout
43085 <cell alignment="left" valignment="top" usebox="none">
43088 \begin_layout Plain Layout
43092 \begin_layout Plain Layout
43105 \begin_layout Plain Layout
43113 \begin_inset Phantom Phantom
43116 \begin_layout Plain Layout
43126 \begin_layout Plain Layout
43138 <cell alignment="left" valignment="top" usebox="none">
43141 \begin_layout Plain Layout
43145 \begin_layout Plain Layout
43158 \begin_layout Plain Layout
43166 \begin_inset Phantom Phantom
43169 \begin_layout Plain Layout
43179 \begin_layout Plain Layout
43191 <cell alignment="left" valignment="top" usebox="none">
43194 \begin_layout Plain Layout
43198 \begin_layout Plain Layout
43211 \begin_layout Plain Layout
43219 \begin_inset Phantom Phantom
43222 \begin_layout Plain Layout
43232 \begin_layout Plain Layout
43246 <cell alignment="left" valignment="top" usebox="none">
43249 \begin_layout Plain Layout
43253 \begin_layout Plain Layout
43266 \begin_layout Plain Layout
43274 \begin_inset Phantom Phantom
43277 \begin_layout Plain Layout
43287 \begin_layout Plain Layout
43299 <cell alignment="left" valignment="top" usebox="none">
43302 \begin_layout Plain Layout
43306 \begin_layout Plain Layout
43319 \begin_layout Plain Layout
43327 \begin_inset Phantom Phantom
43330 \begin_layout Plain Layout
43340 \begin_layout Plain Layout
43352 <cell alignment="left" valignment="top" usebox="none">
43355 \begin_layout Plain Layout
43359 \begin_layout Plain Layout
43372 \begin_layout Plain Layout
43380 \begin_inset Phantom Phantom
43383 \begin_layout Plain Layout
43393 \begin_layout Plain Layout
43405 <cell alignment="left" valignment="top" usebox="none">
43408 \begin_layout Plain Layout
43412 \begin_layout Plain Layout
43425 \begin_layout Plain Layout
43433 \begin_inset Phantom Phantom
43436 \begin_layout Plain Layout
43446 \begin_layout Plain Layout
43460 <cell alignment="left" valignment="top" usebox="none">
43463 \begin_layout Plain Layout
43467 \begin_layout Plain Layout
43480 \begin_layout Plain Layout
43488 \begin_inset Phantom Phantom
43491 \begin_layout Plain Layout
43501 \begin_layout Plain Layout
43513 <cell alignment="left" valignment="top" usebox="none">
43516 \begin_layout Plain Layout
43520 \begin_layout Plain Layout
43533 \begin_layout Plain Layout
43541 \begin_inset Phantom Phantom
43544 \begin_layout Plain Layout
43554 \begin_layout Plain Layout
43566 <cell alignment="left" valignment="top" usebox="none">
43569 \begin_layout Plain Layout
43573 \begin_layout Plain Layout
43586 \begin_layout Plain Layout
43594 \begin_inset Phantom Phantom
43597 \begin_layout Plain Layout
43607 \begin_layout Plain Layout
43619 <cell alignment="left" valignment="top" usebox="none">
43622 \begin_layout Plain Layout
43626 \begin_layout Plain Layout
43639 \begin_layout Plain Layout
43647 \begin_inset Phantom Phantom
43650 \begin_layout Plain Layout
43660 \begin_layout Plain Layout
43674 <cell alignment="left" valignment="top" usebox="none">
43677 \begin_layout Plain Layout
43681 \begin_layout Plain Layout
43694 \begin_layout Plain Layout
43702 \begin_inset Phantom Phantom
43705 \begin_layout Plain Layout
43715 \begin_layout Plain Layout
43727 <cell alignment="left" valignment="top" usebox="none">
43730 \begin_layout Plain Layout
43734 \begin_layout Plain Layout
43747 \begin_layout Plain Layout
43755 \begin_inset Phantom Phantom
43758 \begin_layout Plain Layout
43768 \begin_layout Plain Layout
43780 <cell alignment="left" valignment="top" usebox="none">
43783 \begin_layout Plain Layout
43787 \begin_layout Plain Layout
43800 \begin_layout Plain Layout
43808 \begin_inset Phantom Phantom
43811 \begin_layout Plain Layout
43821 \begin_layout Plain Layout
43833 <cell alignment="left" valignment="top" usebox="none">
43836 \begin_layout Plain Layout
43840 \begin_layout Plain Layout
43853 \begin_layout Plain Layout
43861 \begin_inset Phantom Phantom
43864 \begin_layout Plain Layout
43874 \begin_layout Plain Layout
43888 <cell alignment="left" valignment="top" usebox="none">
43891 \begin_layout Plain Layout
43895 \begin_layout Plain Layout
43908 \begin_layout Plain Layout
43916 \begin_inset Phantom Phantom
43919 \begin_layout Plain Layout
43929 \begin_layout Plain Layout
43941 <cell alignment="left" valignment="top" usebox="none">
43944 \begin_layout Plain Layout
43948 \begin_layout Plain Layout
43961 \begin_layout Plain Layout
43969 \begin_inset Phantom Phantom
43972 \begin_layout Plain Layout
43982 \begin_layout Plain Layout
43994 <cell alignment="left" valignment="top" usebox="none">
43997 \begin_layout Plain Layout
44001 \begin_layout Plain Layout
44014 \begin_layout Plain Layout
44022 \begin_inset Phantom Phantom
44025 \begin_layout Plain Layout
44035 \begin_layout Plain Layout
44047 <cell alignment="left" valignment="top" usebox="none">
44050 \begin_layout Plain Layout
44054 \begin_layout Plain Layout
44067 \begin_layout Plain Layout
44075 \begin_inset Phantom Phantom
44078 \begin_layout Plain Layout
44088 \begin_layout Plain Layout
44102 <cell alignment="left" valignment="top" usebox="none">
44105 \begin_layout Plain Layout
44109 \begin_layout Plain Layout
44122 \begin_layout Plain Layout
44130 \begin_inset Phantom Phantom
44133 \begin_layout Plain Layout
44143 \begin_layout Plain Layout
44155 <cell alignment="left" valignment="top" usebox="none">
44158 \begin_layout Plain Layout
44162 \begin_layout Plain Layout
44175 \begin_layout Plain Layout
44183 \begin_inset Phantom Phantom
44186 \begin_layout Plain Layout
44196 \begin_layout Plain Layout
44208 <cell alignment="left" valignment="top" usebox="none">
44211 \begin_layout Plain Layout
44215 \begin_layout Plain Layout
44228 \begin_layout Plain Layout
44236 \begin_inset Phantom Phantom
44239 \begin_layout Plain Layout
44249 \begin_layout Plain Layout
44261 <cell alignment="left" valignment="top" usebox="none">
44264 \begin_layout Plain Layout
44268 \begin_layout Plain Layout
44281 \begin_layout Plain Layout
44289 \begin_inset Phantom Phantom
44292 \begin_layout Plain Layout
44302 \begin_layout Plain Layout
44316 <cell alignment="left" valignment="top" usebox="none">
44319 \begin_layout Plain Layout
44323 \begin_layout Plain Layout
44336 \begin_layout Plain Layout
44344 \begin_inset Phantom Phantom
44347 \begin_layout Plain Layout
44357 \begin_layout Plain Layout
44369 <cell alignment="left" valignment="top" usebox="none">
44372 \begin_layout Plain Layout
44376 \begin_layout Plain Layout
44389 \begin_layout Plain Layout
44397 \begin_inset Phantom Phantom
44400 \begin_layout Plain Layout
44410 \begin_layout Plain Layout
44422 <cell alignment="left" valignment="top" usebox="none">
44425 \begin_layout Plain Layout
44429 \begin_layout Plain Layout
44442 \begin_layout Plain Layout
44450 \begin_inset Phantom Phantom
44453 \begin_layout Plain Layout
44463 \begin_layout Plain Layout
44475 <cell alignment="left" valignment="top" usebox="none">
44478 \begin_layout Plain Layout
44482 \begin_layout Plain Layout
44495 \begin_layout Plain Layout
44503 \begin_inset Phantom Phantom
44506 \begin_layout Plain Layout
44516 \begin_layout Plain Layout
44530 <cell alignment="left" valignment="top" usebox="none">
44533 \begin_layout Plain Layout
44537 \begin_layout Plain Layout
44550 \begin_layout Plain Layout
44558 \begin_inset Phantom Phantom
44561 \begin_layout Plain Layout
44571 \begin_layout Plain Layout
44583 <cell alignment="left" valignment="top" usebox="none">
44586 \begin_layout Plain Layout
44590 \begin_layout Plain Layout
44603 \begin_layout Plain Layout
44611 \begin_inset Phantom Phantom
44614 \begin_layout Plain Layout
44624 \begin_layout Plain Layout
44636 <cell alignment="left" valignment="top" usebox="none">
44639 \begin_layout Plain Layout
44643 \begin_layout Plain Layout
44656 \begin_layout Plain Layout
44664 \begin_inset Phantom Phantom
44667 \begin_layout Plain Layout
44677 \begin_layout Plain Layout
44689 <cell alignment="left" valignment="top" usebox="none">
44692 \begin_layout Plain Layout
44696 \begin_layout Plain Layout
44709 \begin_layout Plain Layout
44717 \begin_inset Phantom Phantom
44720 \begin_layout Plain Layout
44730 \begin_layout Plain Layout
44744 <cell alignment="left" valignment="top" usebox="none">
44747 \begin_layout Plain Layout
44751 \begin_layout Plain Layout
44764 \begin_layout Plain Layout
44772 \begin_inset Phantom Phantom
44775 \begin_layout Plain Layout
44785 \begin_layout Plain Layout
44797 <cell alignment="left" valignment="top" usebox="none">
44800 \begin_layout Plain Layout
44806 <cell alignment="left" valignment="top" usebox="none">
44809 \begin_layout Plain Layout
44815 <cell alignment="left" valignment="top" usebox="none">
44818 \begin_layout Plain Layout
44832 \begin_layout Chapter
44833 Explanation of Equation
44834 \begin_inset space ~
44838 \begin_inset CommandInset ref
44845 \begin_inset CommandInset label
44847 name "cha:Explanation-of-Equation"
44854 \begin_layout Standard
44855 We can calculate the total width of
44860 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44864 \begin_inset Formula
44866 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44872 \begin_inset Formula $W_{g\,n}$
44875 is the given width of all cells,
44881 is the \SpecialChar LaTeX
44882 -length between the cell text and the cell border (its default value
44884 \begin_inset space \thinspace{}
44894 is the thickness of the cell border line, the default is 0.4
44895 \begin_inset space \thinspace{}
44901 \begin_layout Standard
44903 \begin_inset space ~
44907 \begin_inset CommandInset ref
44909 reference "eq:Wtot_n"
44913 , the total width of a multicolumn
44914 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44918 \begin_inset Formula
44920 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44928 \begin_layout Standard
44929 By setting equation
44930 \begin_inset space ~
44934 \begin_inset CommandInset ref
44936 reference "eq:Wtot_n"
44941 \begin_inset CommandInset ref
44943 reference "eq:Wtot_mult"
44947 equal we can calculate the needed given width
44948 \begin_inset Formula $W_{g\,n}$
44955 columns are spanned, so that each column has a total width of
44956 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44960 \begin_inset Formula
44962 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44970 \begin_layout Bibliography
44971 \begin_inset CommandInset bibitem
44972 LatexCommand bibitem
44973 key "latexcompanion"
44977 Frank Mittelbach and Michel Goossens:
44979 The \SpecialChar LaTeX
44980 Companion Second Edition.
44983 Addison-Wesley, 2004
44986 \begin_layout Bibliography
44987 \begin_inset CommandInset bibitem
44988 LatexCommand bibitem
44993 Helmut Kopka and Patrick W.
44996 A Guide to \SpecialChar LaTeX
45000 Addison-Wesley, 2003
45003 \begin_layout Bibliography
45004 \begin_inset CommandInset bibitem
45005 LatexCommand bibitem
45013 : A Document Preparation System.
45016 Addison-Wesley, second edition, 1994
45019 \begin_layout Bibliography
45020 \begin_inset CommandInset bibitem
45021 LatexCommand bibitem
45026 Documentation of the \SpecialChar LaTeX
45030 \begin_inset CommandInset href
45033 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45040 \begin_inset Index idx
45043 \begin_layout Plain Layout
45045 -packages ! arydshln
45053 \begin_layout Bibliography
45054 \begin_inset CommandInset bibitem
45055 LatexCommand bibitem
45060 Documentation of the \SpecialChar LaTeX
45064 \begin_inset CommandInset href
45067 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45074 \begin_inset Index idx
45077 \begin_layout Plain Layout
45079 -packages ! booktabs
45087 \begin_layout Bibliography
45088 \begin_inset CommandInset bibitem
45089 LatexCommand bibitem
45094 Documentation of the \SpecialChar LaTeX
45098 \begin_inset CommandInset href
45101 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45108 \begin_inset Index idx
45111 \begin_layout Plain Layout
45113 -packages ! caption
45121 \begin_layout Bibliography
45122 \begin_inset CommandInset bibitem
45123 LatexCommand bibitem
45128 Documentation of the \SpecialChar LaTeX
45132 \begin_inset CommandInset href
45135 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45142 \begin_inset Index idx
45145 \begin_layout Plain Layout
45147 -packages ! diagbox
45155 \begin_layout Bibliography
45156 \begin_inset CommandInset bibitem
45157 LatexCommand bibitem
45162 Documentation of the \SpecialChar LaTeX
45166 \begin_inset CommandInset href
45169 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45176 \begin_inset Index idx
45179 \begin_layout Plain Layout
45181 -packages ! endfloat
45189 \begin_layout Bibliography
45190 \begin_inset CommandInset bibitem
45191 LatexCommand bibitem
45196 Documentation of the \SpecialChar LaTeX
45200 \begin_inset CommandInset href
45203 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45210 \begin_inset Index idx
45213 \begin_layout Plain Layout
45215 -packages ! footmisc
45223 \begin_layout Bibliography
45224 \begin_inset CommandInset bibitem
45225 LatexCommand bibitem
45230 Documentation of the \SpecialChar LaTeX
45234 \begin_inset CommandInset href
45237 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45244 \begin_inset Index idx
45247 \begin_layout Plain Layout
45249 -packages ! hyperref
45257 \begin_layout Bibliography
45258 \begin_inset CommandInset bibitem
45259 LatexCommand bibitem
45264 Documentation of the \SpecialChar LaTeX
45268 \begin_inset CommandInset href
45271 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45278 \begin_inset Index idx
45281 \begin_layout Plain Layout
45283 -packages ! hyperref
45291 \begin_layout Bibliography
45292 \begin_inset CommandInset bibitem
45293 LatexCommand bibitem
45298 Documentation of the \SpecialChar LaTeX
45302 \begin_inset CommandInset href
45305 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45312 \begin_inset Index idx
45315 \begin_layout Plain Layout
45317 -packages ! KOMA-Script
45325 \begin_layout Bibliography
45326 \begin_inset CommandInset bibitem
45327 LatexCommand bibitem
45332 Documentation of the \SpecialChar LaTeX
45336 \begin_inset CommandInset href
45339 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45346 \begin_inset CommandInset href
45349 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45354 \begin_inset Index idx
45357 \begin_layout Plain Layout
45359 -packages ! lettrine
45367 \begin_layout Bibliography
45368 \begin_inset CommandInset bibitem
45369 LatexCommand bibitem
45374 Documentation of the \SpecialChar LaTeX
45378 \begin_inset CommandInset href
45381 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45388 \begin_inset Index idx
45391 \begin_layout Plain Layout
45393 -packages ! listings
45401 \begin_layout Bibliography
45402 \begin_inset CommandInset bibitem
45403 LatexCommand bibitem
45408 Documentation of the \SpecialChar LaTeX
45412 \begin_inset CommandInset href
45415 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45422 \begin_inset Index idx
45425 \begin_layout Plain Layout
45427 -packages ! marginnote
45435 \begin_layout Bibliography
45436 \begin_inset CommandInset bibitem
45437 LatexCommand bibitem
45442 Documentation of the \SpecialChar LaTeX
45446 \begin_inset CommandInset href
45449 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45456 \begin_inset Index idx
45459 \begin_layout Plain Layout
45461 -packages ! pdfpages
45469 \begin_layout Bibliography
45470 \begin_inset CommandInset bibitem
45471 LatexCommand bibitem
45476 Documentation of the \SpecialChar LaTeX
45480 \begin_inset CommandInset href
45483 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45490 \begin_inset Index idx
45493 \begin_layout Plain Layout
45495 -packages ! prettyref
45503 \begin_layout Bibliography
45504 \begin_inset CommandInset bibitem
45505 LatexCommand bibitem
45510 Web page of the \SpecialChar LaTeX
45514 \begin_inset CommandInset href
45517 target "http://tug.org/PSTricks/"
45524 \begin_inset Index idx
45527 \begin_layout Plain Layout
45529 -packages ! PSTricks
45537 \begin_layout Bibliography
45538 \begin_inset CommandInset bibitem
45539 LatexCommand bibitem
45544 Documentation of the \SpecialChar LaTeX
45548 \begin_inset CommandInset href
45551 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45558 \begin_inset Index idx
45561 \begin_layout Plain Layout
45563 -packages ! refstyle
45571 \begin_layout Bibliography
45572 \begin_inset CommandInset bibitem
45573 LatexCommand bibitem
45578 Documentation of the \SpecialChar LaTeX
45582 \begin_inset CommandInset href
45585 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45592 \begin_inset Index idx
45595 \begin_layout Plain Layout
45597 -packages ! sidecap
45605 \begin_layout Bibliography
45606 \begin_inset CommandInset bibitem
45607 LatexCommand bibitem
45613 \begin_inset CommandInset href
45616 target "http://wiki.lyx.org/LyX/NewInLyX20"
45620 about new features in
45628 \begin_layout Standard
45629 \begin_inset CommandInset index_print
45630 LatexCommand printindex