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
6899 can have one of the units listed in appendix
6900 \begin_inset space ~
6904 \begin_inset CommandInset ref
6906 reference "cha:Units-available-in"
6913 \begin_layout Standard
6914 The following tables show the difference:
6917 \begin_layout Standard
6918 \begin_inset Tabular
6919 <lyxtabular version="3" rows="6" columns="5">
6920 <features islongtable="true" longtabularalignment="center">
6921 <column alignment="center" valignment="top">
6922 <column alignment="center" valignment="top">
6923 <column alignment="center" valignment="top">
6924 <column alignment="center" valignment="top">
6925 <column alignment="center" valignment="top">
6926 <row endfirsthead="true" caption="true">
6927 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6930 \begin_layout Plain Layout
6931 \begin_inset Caption Standard
6933 \begin_layout Plain Layout
6934 long full title with default width long full title with default width long
6935 full title with default width
6936 \begin_inset Argument 1
6939 \begin_layout Plain Layout
6940 caption with default width
6955 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6958 \begin_layout Plain Layout
6964 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6967 \begin_layout Plain Layout
6973 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6976 \begin_layout Plain Layout
6982 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6985 \begin_layout Plain Layout
6993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6996 \begin_layout Plain Layout
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7234 \begin_layout Standard
7238 \begin_layout Plain Layout
7250 \begin_inset Tabular
7251 <lyxtabular version="3" rows="6" columns="5">
7252 <features islongtable="true" longtabularalignment="center">
7253 <column alignment="center" valignment="top">
7254 <column alignment="center" valignment="top">
7255 <column alignment="center" valignment="top">
7256 <column alignment="center" valignment="top">
7257 <column alignment="center" valignment="top">
7258 <row endfirsthead="true" caption="true">
7259 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7262 \begin_layout Plain Layout
7263 \begin_inset Caption Standard
7265 \begin_layout Plain Layout
7266 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{}
7274 cm long full title with width set to 5
7275 \begin_inset space \thinspace{}
7279 \begin_inset Argument 1
7282 \begin_layout Plain Layout
7284 \begin_inset space \thinspace{}
7288 \begin_inset space \thinspace{}
7292 \begin_inset space \thinspace{}
7310 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7313 \begin_layout Plain Layout
7319 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7322 \begin_layout Plain Layout
7328 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7331 \begin_layout Plain Layout
7337 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7340 \begin_layout Plain Layout
7348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7351 \begin_layout Plain Layout
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7360 \begin_layout Plain Layout
7366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7369 \begin_layout Plain Layout
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7378 \begin_layout Plain Layout
7384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7387 \begin_layout Plain Layout
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7398 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7407 \begin_layout Plain Layout
7413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7416 \begin_layout Plain Layout
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7425 \begin_layout Plain Layout
7431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7434 \begin_layout Plain Layout
7442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7454 \begin_layout Plain Layout
7460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7463 \begin_layout Plain Layout
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7481 \begin_layout Plain Layout
7489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7492 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Plain Layout
7507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7510 \begin_layout Plain Layout
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7528 \begin_layout Plain Layout
7536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7539 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7557 \begin_layout Plain Layout
7563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7575 \begin_layout Plain Layout
7589 \begin_layout Standard
7593 \begin_layout Plain Layout
7607 \begin_layout Standard
7608 \begin_inset Note Greyedout
7611 \begin_layout Plain Layout
7616 When the \SpecialChar LaTeX
7622 \begin_inset Index idx
7625 \begin_layout Plain Layout
7632 is used, as in this document, the full page width is used for the caption
7633 when you use the default value of 4
7634 \begin_inset space \thinspace{}
7644 To get in this case exactly a 4
7645 \begin_inset space \thinspace{}
7648 in wide caption, you can either use a value slightly different from 4.0
7649 \begin_inset space \thinspace{}
7653 \begin_inset space \thinspace{}
7657 \begin_inset space \space{}
7661 \begin_inset space \thinspace{}
7664 in, or the \SpecialChar LaTeX
7669 captionsetup{width=value}
7671 that is provided by the
7683 \begin_layout Subsubsection
7684 Different Captions for Table Pages
7685 \begin_inset Index idx
7688 \begin_layout Plain Layout
7689 Longtables ! Different Captions for Pages
7697 \begin_layout Standard
7698 When the table captions for the following pages should differ from the one
7699 of the first table page, mark a empty row as header which contains a caption.
7700 Then right-click on the caption and select in the context menu
7703 \begin_inset space ~
7710 \begin_inset space ~
7714 \begin_inset CommandInset ref
7716 reference "tab:DiffCaptions"
7720 is an example of a longtable with different heading where the second caption
7721 does not include the table number.
7722 \begin_inset Separator parbreak
7728 \begin_layout Standard
7730 \begin_inset Tabular
7731 <lyxtabular version="3" rows="59" columns="3">
7732 <features islongtable="true" longtabularalignment="center">
7733 <column alignment="left" valignment="top" width="0cm">
7734 <column alignment="left" valignment="top" width="0pt">
7735 <column alignment="center" valignment="top" width="0pt">
7736 <row endfirsthead="true" caption="true">
7737 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7740 \begin_layout Plain Layout
7741 \begin_inset Caption Standard
7743 \begin_layout Plain Layout
7745 \begin_inset CommandInset label
7747 name "tab:DiffCaptions"
7752 \begin_inset Argument 1
7755 \begin_layout Plain Layout
7771 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7774 \begin_layout Plain Layout
7780 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Plain Layout
7790 <row endfirsthead="true">
7791 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7794 \begin_layout Plain Layout
7797 Example Phone List (ignore the names)
7802 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7805 \begin_layout Plain Layout
7811 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7814 \begin_layout Plain Layout
7821 <row endfirsthead="true">
7822 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7825 \begin_layout Plain Layout
7833 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7836 \begin_layout Plain Layout
7842 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7845 \begin_layout Plain Layout
7854 <row endhead="true" caption="true">
7855 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7858 \begin_layout Plain Layout
7859 \begin_inset Caption LongTableNoNumber
7861 \begin_layout Plain Layout
7862 Continued Example Phone List
7872 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7875 \begin_layout Plain Layout
7881 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7891 <row endhead="true">
7892 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7906 \begin_layout Plain Layout
7912 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7922 <row endhead="true">
7923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7937 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Plain Layout
7955 <row endfoot="true">
7956 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7959 \begin_layout Plain Layout
7960 continued on next page
7965 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7968 \begin_layout Plain Layout
7974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7999 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8030 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8061 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8092 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8123 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8411 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8422 \begin_layout Plain Layout
8431 \begin_layout Plain Layout
8442 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8445 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8476 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8507 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8538 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8569 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8600 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8631 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8693 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8702 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8724 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8755 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8786 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8817 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8848 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8879 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8910 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8941 \begin_layout Plain Layout
8947 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8950 \begin_layout Plain Layout
8958 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8961 \begin_layout Plain Layout
8967 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8970 \begin_layout Plain Layout
8976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9032 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9063 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9094 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9125 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9156 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9187 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9218 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9249 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9280 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9311 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9320 \begin_layout Plain Layout
9328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9342 \begin_layout Plain Layout
9348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9351 \begin_layout Plain Layout
9359 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9373 \begin_layout Plain Layout
9379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9382 \begin_layout Plain Layout
9390 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9404 \begin_layout Plain Layout
9410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9413 \begin_layout Plain Layout
9421 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9435 \begin_layout Plain Layout
9441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9444 \begin_layout Plain Layout
9452 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9466 \begin_layout Plain Layout
9472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9475 \begin_layout Plain Layout
9483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9497 \begin_layout Plain Layout
9503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9506 \begin_layout Plain Layout
9514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9528 \begin_layout Plain Layout
9534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9537 \begin_layout Plain Layout
9545 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9559 \begin_layout Plain Layout
9565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9568 \begin_layout Plain Layout
9576 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9579 \begin_layout Plain Layout
9587 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9590 \begin_layout Plain Layout
9596 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9599 \begin_layout Plain Layout
9613 \begin_layout Section
9614 Special Longtable Issues
9615 \begin_inset CommandInset label
9617 name "sec:Special-Longtable-Issues"
9624 \begin_layout Subsection
9625 Longtable Calculation
9626 \begin_inset Index idx
9629 \begin_layout Plain Layout
9630 Longtables ! Calculation
9638 \begin_layout Standard
9640 calculates the height of table pages and their page breaks using so called
9642 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9644 The default value was historically set to only 20 table rows.
9645 If you are using longtables with many pages this may slow down the creation
9647 You can safely increase the chunk size to values of 100-1000 by adding
9648 this command line to your document preamble:
9651 \begin_layout Standard
9656 setcounter{LTchunksize}{100}
9659 \begin_layout Subsection
9660 Floats and Longtables
9661 \begin_inset Index idx
9664 \begin_layout Plain Layout
9673 \begin_layout Standard
9674 There might be problems when a float appears on the same page where a longtable
9676 To avoid such a situation, insert a
9677 \begin_inset Quotes eld
9681 \begin_inset Quotes erd
9686 Insert\SpecialChar menuseparator
9687 Formatting\SpecialChar menuseparator
9689 \begin_inset space ~
9694 ) before your longtable.
9697 \begin_layout Subsection
9699 \begin_inset Index idx
9702 \begin_layout Plain Layout
9703 Longtables ! Forced Page Breaks
9711 \begin_layout Standard
9712 By default tables are only broken between rows.
9713 If you have a cell with multiples lines and want to have a page break within
9714 the cell, insert the new line command
9715 \begin_inset Quotes eld
9727 \begin_inset Quotes erd
9731 Code at the point of the cell where it can be broken.
9740 command you have to insert in \SpecialChar TeX
9742 \begin_inset Quotes eld
9750 \begin_inset Quotes erd
9753 characters as the number of the following table columns.
9758 is the character to separate table cells.
9759 Write in \SpecialChar TeX
9764 the content of the corresponding following cell and delete the content
9766 \begin_inset Newline newline
9777 command, insert as many
9781 characters as the number of table columns before the current column.
9783 \begin_inset space ~
9787 \begin_inset CommandInset ref
9789 reference "tab:ForcedPagebreak"
9793 the cell that should be broken is in the second column followed by another
9795 Therefore the following command was inserted in the cell as \SpecialChar TeX
9798 \begin_inset Quotes eld
9806 \begin_inset Quotes erd
9812 \begin_layout Standard
9822 \begin_inset Newline newline
9828 \begin_layout Standard
9830 \begin_inset Quotes eld
9834 \begin_inset Quotes erd
9837 in the third column of the row was deleted.
9844 is only needed when a page break should definitely occur at this position,
9845 otherwise it would be a conditional break.
9846 If your footer row of the longtable has for a certain reason no upper line
9847 but you would have a horizontal line where the cell is broken, use this
9851 \begin_layout Standard
9859 \begin_inset Newline newline
9867 \begin_layout Standard
9868 When the cell to be broken is in the last column, the command
9871 \begin_layout Standard
9881 \begin_layout Standard
9882 must be inserted as \SpecialChar TeX
9883 Code at the beginning of the cell.
9884 This ensures that the part of the cell that will be displayed on the new
9885 page appears with the full width.
9886 \begin_inset Separator parbreak
9892 \begin_layout Standard
9894 \begin_inset Tabular
9895 <lyxtabular version="3" rows="38" columns="3">
9896 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9897 <column alignment="left" valignment="top" width="0cm">
9898 <column alignment="left" valignment="top" width="3cm">
9899 <column alignment="center" valignment="top" width="0pt">
9900 <row endfirsthead="true" caption="true">
9901 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9904 \begin_layout Plain Layout
9905 \begin_inset Caption Standard
9907 \begin_layout Plain Layout
9908 Table with forced page break in table cell
9909 \begin_inset CommandInset label
9911 name "tab:ForcedPagebreak"
9916 \begin_inset Argument 1
9919 \begin_layout Plain Layout
9920 Table with forced page break in table cell
9935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9954 <row endfirsthead="true">
9955 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9961 Example Phone List (ignore the names)
9966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9978 \begin_layout Plain Layout
9985 <row endfirsthead="true">
9986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9989 \begin_layout Plain Layout
9997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10000 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10009 \begin_layout Plain Layout
10018 <row endhead="true">
10019 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10022 \begin_layout Plain Layout
10026 \begin_layout Plain Layout
10030 caption*{Continued Example Phone List}
10044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10063 <row endhead="true">
10064 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10067 \begin_layout Plain Layout
10075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10078 \begin_layout Plain Layout
10084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10087 \begin_layout Plain Layout
10094 <row endhead="true">
10095 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10098 \begin_layout Plain Layout
10106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10109 \begin_layout Plain Layout
10115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10118 \begin_layout Plain Layout
10127 <row endfoot="true">
10128 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10131 \begin_layout Plain Layout
10132 continued on next page
10137 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10140 \begin_layout Plain Layout
10146 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10160 \begin_layout Plain Layout
10168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10177 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10191 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10222 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10253 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10284 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10315 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10346 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10377 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10408 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10439 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10470 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10501 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10532 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10563 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10594 \begin_layout Plain Layout
10602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10625 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10656 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10687 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10718 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10749 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10780 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10811 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10831 \begin_layout Plain Layout
10839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10842 \begin_layout Plain Layout
10850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10853 \begin_layout Plain Layout
10855 Fürst von Montecompatri, 11.
10856 Fürst von Sulmona und Vivaro, 10.
10857 Fürst von Rossano, 5.
10858 Herzog von Canemorte, 11.
10859 Herzog von Palombara, 5.
10860 Herzog von Castelchiodato,
10864 \begin_layout Plain Layout
10875 \begin_layout Plain Layout
10883 Herzog von Poggionativo, 11.
10884 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10885 Graf von Valinfreda, 11.
10886 Baron von Cropalati, 11.
10887 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10906 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10979 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10999 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11030 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11061 \begin_layout Plain Layout
11069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11072 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11092 \begin_layout Plain Layout
11100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11103 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11112 \begin_layout Plain Layout
11120 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11134 \begin_layout Plain Layout
11140 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11143 \begin_layout Plain Layout
11157 \begin_layout Section
11158 Multiple Lines, Columns and Rows
11161 \begin_layout Subsection
11162 Multiple Lines in Table Cells
11163 \begin_inset CommandInset label
11165 name "subsec:Multiple-Lines-in"
11170 \begin_inset Index idx
11173 \begin_layout Plain Layout
11174 Multiple Lines in Table Cells
11180 \begin_inset Index idx
11183 \begin_layout Plain Layout
11192 \begin_layout Standard
11194 \begin_inset Float table
11200 \begin_layout Plain Layout
11201 \begin_inset Caption Standard
11203 \begin_layout Plain Layout
11204 \begin_inset CommandInset label
11206 name "tab:Table-with-multiple"
11210 Table with multiple lines in cells
11218 \begin_layout Plain Layout
11220 \begin_inset Tabular
11221 <lyxtabular version="3" rows="3" columns="3">
11222 <features tabularvalignment="middle">
11223 <column alignment="center" valignment="middle" width="2.5cm">
11224 <column alignment="center" valignment="middle">
11225 <column alignment="center" valignment="middle">
11227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11230 \begin_layout Plain Layout
11232 \begin_inset Newline linebreak
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11252 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11263 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11281 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11310 \begin_layout Plain Layout
11329 \begin_layout Standard
11330 Setting a fixed width for a column enables you to enter text as a paragraph
11331 with multiple lines and hyphenation.
11334 \begin_layout Standard
11336 \begin_inset space ~
11340 \begin_inset CommandInset ref
11342 reference "tab:Table-with-multiple"
11346 , create a 3×3 table, mark the first cell and right-click on it.
11347 In the appearing table dialog we set a cell width of 2.5
11348 \begin_inset space \thinspace{}
11351 cm and choose centered for the vertical and horizontal alignment.
11352 The vertical alignment is used for all cells of the row.
11353 As our text is smaller than 2.5
11354 \begin_inset space \thinspace{}
11357 cm, only one line will appear.
11358 To get two lines, a justified line break (shortcut
11361 arg "newline-insert linebreak"
11365 If the text is wider than the set cell width, it will automatically be
11366 broken to several lines.
11369 \begin_layout Standard
11370 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11371 by \SpecialChar LaTeX
11372 if it is the first entry.
11373 Therefore you need to insert something to prevent the word not being the
11375 So add a horizontal space of 0
11376 \begin_inset space \thinspace{}
11379 pt before the word.
11380 As the space is zero, it doesn't change the output.
11382 \begin_inset space ~
11386 \begin_inset CommandInset ref
11388 reference "tab:Table-with-and"
11395 \begin_layout Standard
11396 \begin_inset Float table
11402 \begin_layout Plain Layout
11403 \begin_inset Caption Standard
11405 \begin_layout Plain Layout
11406 \begin_inset CommandInset label
11408 name "tab:Table-with-and"
11412 Table with and without hyphenation
11420 \begin_layout Plain Layout
11421 \begin_inset space \hfill{}
11425 \begin_inset Tabular
11426 <lyxtabular version="3" rows="3" columns="3">
11427 <features tabularvalignment="middle">
11428 <column alignment="center" valignment="middle" width="2.5cm">
11429 <column alignment="center" valignment="middle">
11430 <column alignment="center" valignment="middle">
11432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11435 \begin_layout Plain Layout
11436 verylongtablecellword
11441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11444 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11453 \begin_layout Plain Layout
11461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11464 \begin_layout Plain Layout
11470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11473 \begin_layout Plain Layout
11479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11482 \begin_layout Plain Layout
11490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11493 \begin_layout Plain Layout
11499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11502 \begin_layout Plain Layout
11508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11511 \begin_layout Plain Layout
11523 \begin_inset space \hfill{}
11527 \begin_inset Tabular
11528 <lyxtabular version="3" rows="3" columns="3">
11529 <features tabularvalignment="middle">
11530 <column alignment="center" valignment="middle" width="2.5cm">
11531 <column alignment="center" valignment="middle">
11532 <column alignment="center" valignment="middle">
11534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11537 \begin_layout Plain Layout
11538 \begin_inset space \hspace{}
11542 verylongtablecellword
11547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11550 \begin_layout Plain Layout
11556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11559 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Plain Layout
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11579 \begin_layout Plain Layout
11585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11588 \begin_layout Plain Layout
11596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11599 \begin_layout Plain Layout
11605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11608 \begin_layout Plain Layout
11614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11617 \begin_layout Plain Layout
11629 \begin_inset space \hfill{}
11640 \begin_layout Subsection
11642 \begin_inset CommandInset label
11644 name "subsec:Multicolumns"
11649 \begin_inset Index idx
11652 \begin_layout Plain Layout
11659 \begin_inset Index idx
11662 \begin_layout Plain Layout
11663 Table ! Multicolumns
11671 \begin_layout Subsubsection
11675 \begin_layout Standard
11676 To merge cells over multiple columns, select as many cells within a row
11677 as you want to merge and use either the table-toolbar button
11680 arg "inset-modify tabular multicolumn"
11685 Edit\SpecialChar menuseparator
11686 Table\SpecialChar menuseparator
11689 , or right click on the marked cells and choose
11693 in the context menu.
11696 \begin_layout Standard
11697 Multicolumns have there own cell settings.
11698 That means changing cell borders, cell alignment, and the width only affects
11700 Here is an example table with a multicolumn cell in the first row and one
11701 in the last row without the upper border:
11702 \begin_inset Separator parbreak
11708 \begin_layout Standard
11710 \begin_inset Tabular
11711 <lyxtabular version="3" rows="3" columns="4">
11712 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11713 <column alignment="center" valignment="top" width="0pt">
11714 <column alignment="center" valignment="middle">
11715 <column alignment="center" valignment="top" width="0in">
11716 <column alignment="center" valignment="top" width="0pt">
11718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11721 \begin_layout Plain Layout
11727 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11730 \begin_layout Plain Layout
11736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11739 \begin_layout Plain Layout
11745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11748 \begin_layout Plain Layout
11756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11759 \begin_layout Plain Layout
11774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11777 \begin_layout Plain Layout
11783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11786 \begin_layout Plain Layout
11792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11795 \begin_layout Plain Layout
11803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11806 \begin_layout Plain Layout
11812 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11824 \begin_layout Plain Layout
11830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11833 \begin_layout Plain Layout
11847 \begin_layout Subsubsection
11848 Multicolumn Calculations
11849 \begin_inset CommandInset label
11851 name "subsec:Multicolumn-Calculations"
11856 \begin_inset Index idx
11859 \begin_layout Plain Layout
11860 Multicolumns ! Calculations
11868 \begin_layout Standard
11870 supports multicolumns directly, but we have to take account of the cell
11871 width of the columns spanned by the multicolumn cell.
11874 \begin_layout Standard
11875 \begin_inset Float table
11881 \begin_layout Plain Layout
11882 \begin_inset Caption Standard
11884 \begin_layout Plain Layout
11885 \begin_inset CommandInset label
11887 name "tab:Table-with-centered"
11891 Table with centered multicolumn text above two columns that have exactly
11892 half the width of the multicolumn cell
11893 \begin_inset Argument 1
11896 \begin_layout Plain Layout
11897 Perfect multicolumn table
11910 \begin_layout Plain Layout
11912 \begin_inset Tabular
11913 <lyxtabular version="3" rows="3" columns="3">
11914 <features tabularvalignment="middle">
11915 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11916 <column alignment="center" valignment="middle">
11917 <column alignment="center" valignment="top">
11919 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11922 \begin_layout Plain Layout
11923 multiple lines multicolumn
11928 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11931 \begin_layout Plain Layout
11937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11940 \begin_layout Plain Layout
11948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11951 \begin_layout Plain Layout
11957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11960 \begin_layout Plain Layout
11966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11969 \begin_layout Plain Layout
11977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11980 \begin_layout Plain Layout
11986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11989 \begin_layout Plain Layout
11995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11998 \begin_layout Plain Layout
12017 \begin_layout Standard
12018 To create for example Table
12019 \begin_inset space ~
12023 \begin_inset CommandInset ref
12025 reference "tab:Table-with-centered"
12029 , mark the first two cells in the first row of a 3×3 table and right-click
12031 Now choose for this cell
12040 \begin_inset space \thinspace{}
12043 cm in the table dialog.
12044 The merged columns should have exactly half the width of the multicolumn
12045 cell, so that you would set a width of 1.25
12046 \begin_inset space \thinspace{}
12049 cm for the first column.
12050 The second column has then automatically a width of 1.25
12051 \begin_inset space \thinspace{}
12054 cm (multicolumn width - width of first column).
12055 This was done for Table
12056 \begin_inset space ~
12060 \begin_inset CommandInset ref
12062 reference "tab:Table-without-half"
12069 \begin_layout Standard
12070 \begin_inset Float table
12075 \begin_layout Plain Layout
12076 \begin_inset Caption Standard
12078 \begin_layout Plain Layout
12079 \begin_inset CommandInset label
12081 name "tab:Table-without-half"
12085 Table where the spanned table columns are not exactly half the width of
12086 the multicolumn cell
12087 \begin_inset Argument 1
12090 \begin_layout Plain Layout
12091 Imperfect multicolumn table
12104 \begin_layout Plain Layout
12106 \begin_inset Tabular
12107 <lyxtabular version="3" rows="3" columns="3">
12108 <features tabularvalignment="middle">
12109 <column alignment="center" valignment="top" width="1.25cm">
12110 <column alignment="center" valignment="top">
12111 <column alignment="center" valignment="top">
12113 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12116 \begin_layout Plain Layout
12117 multiple lines multicolumn
12122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12125 \begin_layout Plain Layout
12131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12134 \begin_layout Plain Layout
12142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12145 \begin_layout Plain Layout
12151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12154 \begin_layout Plain Layout
12160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12163 \begin_layout Plain Layout
12171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12174 \begin_layout Plain Layout
12180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12183 \begin_layout Plain Layout
12189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12192 \begin_layout Plain Layout
12211 \begin_layout Standard
12212 You can see that the first column is not half the width of the multicolumn
12213 cell, it is a bit bigger.
12214 The reason is that the specified width of a cell
12215 \begin_inset Formula $W_{g}$
12218 is not its total width
12219 \begin_inset Formula $W_{\mathrm{tot}}$
12222 because a cell is always a bit larger than specified.
12224 \begin_inset space ~
12228 \begin_inset CommandInset ref
12230 reference "cha:Explanation-of-Equation"
12234 explains this in detail.
12237 \begin_layout Standard
12239 \begin_inset Formula $W_{g\,n}$
12242 which the user needs to set when
12246 columns are spanned can be calculated, so that each column has a total
12248 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12252 \begin_inset Formula
12254 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12262 \begin_layout Standard
12263 In our case we have
12264 \begin_inset Formula $n=2$
12268 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12271 cm and the default values for the lengths, so that equation
12272 \begin_inset CommandInset ref
12279 \begin_inset Formula
12281 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12289 \begin_layout Standard
12290 To enable calculations in \SpecialChar LaTeX
12291 , the \SpecialChar LaTeX
12296 must be loaded with the document preamble line
12297 \begin_inset Index idx
12300 \begin_layout Plain Layout
12310 \begin_layout Standard
12318 \begin_layout Standard
12320 does not allow you to calculate lengths in the
12324 field of the table dialog.
12325 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12328 Here is an overview about the arguments:
12331 \begin_layout Itemize
12336 creates cell with a fixed width, its text is vertically top-aligned
12339 \begin_layout Itemize
12344 creates cell with a fixed width, its text is vertically centered
12347 \begin_layout Itemize
12352 creates cell with a fixed width, its text is vertically bottom-aligned
12355 \begin_layout Standard
12356 By entering a \SpecialChar LaTeX
12357 -argument, all cell settings set in the table dialog are overwritt
12361 \begin_layout Standard
12362 \begin_inset Note Greyedout
12365 \begin_layout Plain Layout
12370 Due to a bug, \SpecialChar LyX
12371 shows the overwritten settings anyway.
12379 \begin_layout Standard
12380 As the text should be horizontally centered, the command
12387 You can now enter the following \SpecialChar LaTeX
12388 -argument for the first spanned column:
12391 \begin_layout Standard
12396 centering}m{1.25cm-6.2pt}
12399 \begin_layout Standard
12404 means, that the commands inside the braces are applied before the cell
12408 \begin_layout Standard
12409 Although we have chosen centered alignment for the text of the multicolumn
12410 cell, it is still left aligned.
12411 This is because \SpecialChar LyX
12412 only applies the alignment to single columns.
12413 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12417 \begin_layout Standard
12425 \begin_layout Subsection
12427 \begin_inset CommandInset label
12429 name "subsec:Multirows"
12434 \begin_inset Index idx
12437 \begin_layout Plain Layout
12444 \begin_inset Index idx
12447 \begin_layout Plain Layout
12456 \begin_layout Standard
12457 To merge cells over multiple rows, select as many cells within a column
12458 as you want to merge and use either the table-toolbar button
12461 arg "inset-modify tabular multirow"
12466 Edit\SpecialChar menuseparator
12467 Table\SpecialChar menuseparator
12470 , or right click on the marked cells and choose
12474 in the context menu.
12477 \begin_layout Standard
12478 Here is an example table with a multirow in the first column:
12479 \begin_inset Separator parbreak
12485 \begin_layout Standard
12487 \begin_inset Tabular
12488 <lyxtabular version="3" rows="3" columns="3">
12489 <features tabularvalignment="middle">
12490 <column alignment="center" valignment="top" width="0pt">
12491 <column alignment="center" valignment="top">
12492 <column alignment="center" valignment="top">
12494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12497 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12515 \begin_layout Plain Layout
12523 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12526 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12535 \begin_layout Plain Layout
12541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12544 \begin_layout Plain Layout
12552 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12555 \begin_layout Plain Layout
12561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12564 \begin_layout Plain Layout
12570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12573 \begin_layout Plain Layout
12587 \begin_layout Standard
12588 The width of multirow cells is set by setting the width and alignment for
12594 shifts the content of the multirow up/down if the offset is positive/negative.
12597 \begin_layout Standard
12598 If the column of a multirow cell has no explicit width, the multirow cell
12599 inherits the alignment of the column.
12600 Otherwise it is by default left-aligned.
12601 To override the default, renew the command
12610 \begin_layout Standard
12622 \begin_layout Standard
12623 in the document preamble.
12624 Then all entries of multirow cells in the document are centered.
12625 If centering is only needed for several tables, you can renew the command
12626 in a \SpecialChar TeX
12627 Code box just before the table instead of the preamble.
12628 If the text should be right-aligned, replace
12641 To return to left-alignment
12650 \begin_layout Standard
12651 This is an example table with a right-aligned multirow cell that has a vertical
12653 \begin_inset space \thinspace{}
12657 \begin_inset space \thinspace{}
12661 \begin_inset Separator parbreak
12667 \begin_layout Standard
12673 \begin_layout Plain Layout
12687 \begin_inset Tabular
12688 <lyxtabular version="3" rows="4" columns="3">
12689 <features tabularvalignment="middle">
12690 <column alignment="center" valignment="top" width="3cm">
12691 <column alignment="center" valignment="top">
12692 <column alignment="center" valignment="top">
12694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12697 \begin_layout Plain Layout
12703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12706 \begin_layout Plain Layout
12712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12715 \begin_layout Plain Layout
12723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12726 \begin_layout Plain Layout
12732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12735 \begin_layout Plain Layout
12741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12744 \begin_layout Plain Layout
12752 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12755 \begin_layout Plain Layout
12761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12764 \begin_layout Plain Layout
12770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12773 \begin_layout Plain Layout
12781 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12784 \begin_layout Plain Layout
12790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12793 \begin_layout Plain Layout
12799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12802 \begin_layout Plain Layout
12817 \begin_layout Plain Layout
12833 \begin_layout Standard
12834 To start a new line in a multirow you can use a forced line break (shortcut
12838 arg "newline-insert newline"
12841 ) but this will not respect the cell lines as demonstrated in this table:
12842 \begin_inset Separator parbreak
12848 \begin_layout Standard
12851 \begin_inset Tabular
12852 <lyxtabular version="3" rows="3" columns="2">
12853 <features tabularvalignment="middle">
12854 <column alignment="left" valignment="middle" width="2cm">
12855 <column alignment="center" valignment="top">
12857 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12860 \begin_layout Plain Layout
12862 \begin_inset Newline newline
12866 \begin_inset Newline newline
12874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12877 \begin_layout Plain Layout
12885 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12888 \begin_layout Plain Layout
12894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12897 \begin_layout Plain Layout
12905 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12908 \begin_layout Plain Layout
12914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12917 \begin_layout Plain Layout
12931 \begin_layout Standard
12932 Therefore be careful with forced line breaks.
12935 \begin_layout Subsection
12936 Cells with diagonal line(s)
12939 \begin_layout Standard
12940 To tell the reader what is meant by column and row headings in a table,
12941 it is helpful to split the first cell of the table by one or two diagonal
12943 This can be achieved by loading the \SpecialChar LaTeX
12949 \begin_inset Index idx
12952 \begin_layout Plain Layout
12954 -packages ! picinpar
12959 in the document preamble.
12960 The package provides the command
12966 that is inserted as \SpecialChar TeX
12967 Code and that can take 2 or 3
12968 \begin_inset space ~
12974 \begin_layout Standard
12979 diagbox[options]{lower left}{upper right}
12982 \begin_layout Standard
12987 diagbox[options]{lower left}{upper left}{upper right}
12990 \begin_layout Standard
12991 The first scheme divides the cell by a single diagonal line and the arguments
12992 are placed below and above this line.
12993 The second scheme divides the cell by 2
12994 \begin_inset space ~
13000 \begin_layout Standard
13004 \begin_layout Plain Layout
13014 \begin_inset Note Note
13017 \begin_layout Plain Layout
13018 The following section will only be displayed when the \SpecialChar LaTeX
13031 \begin_layout Standard
13032 Here is an example table where
13038 is used in the 2-argument scheme in the first cell:
13039 \begin_inset VSpace medskip
13045 \begin_layout Standard
13047 \begin_inset Tabular
13048 <lyxtabular version="3" rows="4" columns="4">
13049 <features tabularvalignment="middle">
13050 <column alignment="center" valignment="top">
13051 <column alignment="center" valignment="top">
13052 <column alignment="center" valignment="top">
13053 <column alignment="center" valignment="top">
13055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13058 \begin_layout Plain Layout
13062 \begin_layout Plain Layout
13075 \begin_layout Plain Layout
13086 \begin_layout Plain Layout
13098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13101 \begin_layout Plain Layout
13107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13110 \begin_layout Plain Layout
13116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13119 \begin_layout Plain Layout
13127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13130 \begin_layout Plain Layout
13136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13139 \begin_layout Plain Layout
13145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13148 \begin_layout Plain Layout
13154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13157 \begin_layout Plain Layout
13165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13168 \begin_layout Plain Layout
13174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13177 \begin_layout Plain Layout
13183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13186 \begin_layout Plain Layout
13192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13195 \begin_layout Plain Layout
13203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13206 \begin_layout Plain Layout
13212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13215 \begin_layout Plain Layout
13221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13224 \begin_layout Plain Layout
13230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13233 \begin_layout Plain Layout
13245 \begin_inset VSpace medskip
13251 \begin_layout Standard
13252 The 3-argument scheme is for example useful for cross-tables of sports leagues
13254 \begin_inset Separator parbreak
13260 \begin_layout Standard
13263 \begin_inset Tabular
13264 <lyxtabular version="3" rows="4" columns="4">
13265 <features tabularvalignment="middle">
13266 <column alignment="center" valignment="top" width="0pt">
13267 <column alignment="center" valignment="top">
13268 <column alignment="center" valignment="top">
13269 <column alignment="center" valignment="top">
13271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13274 \begin_layout Plain Layout
13278 \begin_layout Plain Layout
13291 \begin_layout Plain Layout
13302 \begin_layout Plain Layout
13313 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13337 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13346 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13384 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13422 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13433 \begin_layout Plain Layout
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13451 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13460 \begin_layout Plain Layout
13474 \begin_layout Standard
13475 For larger cross-tables one might use split cells in 2 or every corner of
13476 the table like in this example:
13477 \begin_inset Separator parbreak
13483 \begin_layout Standard
13486 \begin_inset Tabular
13487 <lyxtabular version="3" rows="5" columns="5">
13488 <features tabularvalignment="middle">
13489 <column alignment="center" valignment="top" width="0pt">
13490 <column alignment="center" valignment="top">
13491 <column alignment="center" valignment="top">
13492 <column alignment="center" valignment="top">
13493 <column alignment="center" valignment="top">
13495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13498 \begin_layout Plain Layout
13502 \begin_layout Plain Layout
13515 \begin_layout Plain Layout
13526 \begin_layout Plain Layout
13537 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13552 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13570 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13579 \begin_layout Plain Layout
13583 \begin_layout Plain Layout
13596 \begin_layout Plain Layout
13607 \begin_layout Plain Layout
13618 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13668 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13671 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13715 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13718 \begin_layout Plain Layout
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13729 \begin_layout Plain Layout
13735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13738 \begin_layout Plain Layout
13744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13747 \begin_layout Plain Layout
13753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13756 \begin_layout Plain Layout
13762 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13765 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13776 \begin_layout Plain Layout
13780 \begin_layout Plain Layout
13793 \begin_layout Plain Layout
13804 \begin_layout Plain Layout
13815 \begin_layout Plain Layout
13827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13830 \begin_layout Plain Layout
13836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13839 \begin_layout Plain Layout
13845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13848 \begin_layout Plain Layout
13854 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13857 \begin_layout Plain Layout
13861 \begin_layout Plain Layout
13874 \begin_layout Plain Layout
13885 \begin_layout Plain Layout
13896 \begin_layout Plain Layout
13916 \begin_layout Standard
13917 To rotate the diagonal lines, the command option
13942 and represent a point of a compass.
13947 is for example the south-west corner.
13948 Thus in the lower left cell of the above table the command
13951 \begin_layout Standard
13956 diagbox[dir=SW]{Team home}{Result}{Team away}
13959 \begin_layout Standard
13961 If no direction is given, it will be NW.
13964 \begin_layout Standard
13965 The necessary width of split cells is automatically calculated.
13966 Thus if you set a fixed column width smaller than the calculated one, the
13967 cell's content will protrude the cell borders:
13968 \begin_inset Separator parbreak
13974 \begin_layout Standard
13977 \begin_inset Tabular
13978 <lyxtabular version="3" rows="2" columns="2">
13979 <features tabularvalignment="middle">
13980 <column alignment="center" valignment="top" width="3cm">
13981 <column alignment="center" valignment="top">
13983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13986 \begin_layout Plain Layout
13990 \begin_layout Plain Layout
14003 \begin_layout Plain Layout
14014 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14029 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14040 \begin_layout Plain Layout
14046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14049 \begin_layout Plain Layout
14063 \begin_layout Standard
14064 If you need a certain width for columns with a split cell, use the command
14069 (replace '3cm' by the width you need).
14070 In the following table the width of the first column is set to 4
14071 \begin_inset space \thinspace{}
14082 \begin_inset space \thinspace{}
14086 \begin_inset space \thinspace{}
14091 tabcolsep is necessary because the overall width is the width for the text
14092 (in this case the 4
14093 \begin_inset space \thinspace{}
14096 cm) plus two times the separation of the text and the cell border.
14097 The calculation of the width cannot be done in the command option of
14103 so one needs to create a new length which can be used later.
14104 This is done with the \SpecialChar TeX
14108 \begin_layout Standard
14116 \begin_inset Newline newline
14128 \begin_layout Standard
14132 \begin_layout Plain Layout
14141 \begin_layout Plain Layout
14157 \begin_layout Standard
14158 To enable calculations in \SpecialChar LaTeX
14159 one needs to load the package
14164 \begin_inset Index idx
14167 \begin_layout Plain Layout
14174 in the document preamble.
14177 \begin_layout Standard
14178 In this table you can now use the command
14181 \begin_layout Standard
14191 \begin_layout Standard
14193 \begin_inset Separator parbreak
14199 \begin_layout Standard
14202 \begin_inset Tabular
14203 <lyxtabular version="3" rows="2" columns="2">
14204 <features tabularvalignment="middle">
14205 <column alignment="center" valignment="top" width="4cm">
14206 <column alignment="center" valignment="top">
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14211 \begin_layout Plain Layout
14215 \begin_layout Plain Layout
14230 \begin_layout Plain Layout
14241 \begin_layout Plain Layout
14253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14256 \begin_layout Plain Layout
14264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14267 \begin_layout Plain Layout
14273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14276 \begin_layout Plain Layout
14290 \begin_layout Standard
14291 Note that the split cell needs to be the widest one in the column.
14292 Otherwise the length of the diagonal line cannot be calculated correctly
14293 like in this table:
14294 \begin_inset Separator parbreak
14300 \begin_layout Standard
14303 \begin_inset Tabular
14304 <lyxtabular version="3" rows="2" columns="2">
14305 <features tabularvalignment="middle">
14306 <column alignment="center" valignment="top" width="0pt">
14307 <column alignment="center" valignment="top">
14309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14312 \begin_layout Plain Layout
14316 \begin_layout Plain Layout
14329 \begin_layout Plain Layout
14340 \begin_layout Plain Layout
14352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14355 \begin_layout Plain Layout
14363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14366 \begin_layout Plain Layout
14372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14375 \begin_layout Plain Layout
14389 \begin_layout Standard
14390 In this case use the
14401 It is then not necessary to add 2
14403 tabcolsep because the cell width is now the width of the column.
14404 In this table a width of 3
14405 \begin_inset space \thinspace{}
14409 \begin_inset Separator parbreak
14415 \begin_layout Standard
14418 \begin_inset Tabular
14419 <lyxtabular version="3" rows="2" columns="2">
14420 <features tabularvalignment="middle">
14421 <column alignment="center" valignment="top" width="0pt">
14422 <column alignment="center" valignment="top">
14424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14427 \begin_layout Plain Layout
14431 \begin_layout Plain Layout
14435 diagbox[width=3cm]{
14444 \begin_layout Plain Layout
14455 \begin_layout Plain Layout
14467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14470 \begin_layout Plain Layout
14478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14481 \begin_layout Plain Layout
14487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14490 \begin_layout Plain Layout
14504 \begin_layout Standard
14505 For multiple text lines in split cells one needs some extra height to fit
14506 the text to the cell.
14507 This can be achieved with the
14517 (replace '3cm' by the height you need).
14518 In the following table the command
14521 \begin_layout Standard
14526 diagbox[width=3cm,height=1.4cm]{A
14537 \begin_layout Standard
14538 is used in the first cell.
14547 creates hereby the line break.
14551 \begin_layout Plain Layout
14552 Breaking lines with
14556 is only possible when the column has a fixed width.
14562 \begin_inset Separator parbreak
14568 \begin_layout Standard
14571 \begin_inset Tabular
14572 <lyxtabular version="3" rows="2" columns="2">
14573 <features tabularvalignment="middle">
14574 <column alignment="center" valignment="top">
14575 <column alignment="center" valignment="top">
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14584 \begin_layout Plain Layout
14588 diagbox[width=3cm,height=1.4cm]{
14597 \begin_layout Plain Layout
14612 \begin_layout Plain Layout
14623 \begin_layout Plain Layout
14638 \begin_layout Plain Layout
14650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14653 \begin_layout Plain Layout
14661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14664 \begin_layout Plain Layout
14670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14673 \begin_layout Plain Layout
14687 \begin_layout Standard
14691 \begin_layout Plain Layout
14701 \begin_inset Note Note
14704 \begin_layout Plain Layout
14705 The following will be displayed when the \SpecialChar LaTeX
14718 \begin_layout Standard
14719 You need to install the \SpecialChar LaTeX
14724 to see the following part of this section in the output.
14727 \begin_layout Standard
14731 \begin_layout Plain Layout
14743 \begin_layout Standard
14744 For more info about the \SpecialChar LaTeX
14749 , see its documentation,
14750 \begin_inset CommandInset citation
14759 \begin_layout Section
14761 \begin_inset CommandInset label
14763 name "sec:Formal-Tables"
14768 \begin_inset Index idx
14771 \begin_layout Plain Layout
14780 \begin_layout Standard
14781 Tables are often typeset in books similar to Table
14782 \begin_inset space ~
14786 \begin_inset CommandInset ref
14788 reference "tab:Example-booktabs-table"
14793 This kind of tables is called
14794 \begin_inset Quotes eld
14802 \begin_inset Quotes erd
14806 To make a table a formal table use the option
14814 tab of the table dialog.
14817 \begin_layout Standard
14818 \begin_inset Float table
14824 \begin_layout Plain Layout
14825 \begin_inset Caption Standard
14827 \begin_layout Plain Layout
14828 \begin_inset CommandInset label
14830 name "tab:Example-booktabs-table"
14834 Example booktabs-table
14842 \begin_layout Plain Layout
14844 \begin_inset Tabular
14845 <lyxtabular version="3" rows="8" columns="4">
14846 <features booktabs="true" tabularvalignment="middle">
14847 <column alignment="center" valignment="top">
14848 <column alignment="center" valignment="top">
14849 <column alignment="center" valignment="top">
14850 <column alignment="center" valignment="top">
14852 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14855 \begin_layout Plain Layout
14861 <cell alignment="center" valignment="top" topline="true" usebox="none">
14864 \begin_layout Plain Layout
14866 \begin_inset space \thinspace{}
14874 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14877 \begin_layout Plain Layout
14879 \begin_inset space \thinspace{}
14887 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14890 \begin_layout Plain Layout
14898 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14901 \begin_layout Plain Layout
14905 \begin_layout Plain Layout
14918 \begin_layout Plain Layout
14927 Detector thickness in µm
14932 <cell alignment="center" valignment="top" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" usebox="none">
14953 \begin_layout Plain Layout
14961 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14964 \begin_layout Plain Layout
14970 <cell alignment="center" valignment="top" topline="true" usebox="none">
14973 \begin_layout Plain Layout
14979 <cell alignment="center" valignment="top" topline="true" usebox="none">
14982 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" topline="true" usebox="none">
14991 \begin_layout Plain Layout
14998 <row topspace="default">
14999 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15002 \begin_layout Plain Layout
15003 Spatial resolution in µm
15008 <cell alignment="center" valignment="top" usebox="none">
15011 \begin_layout Plain Layout
15017 <cell alignment="center" valignment="top" usebox="none">
15020 \begin_layout Plain Layout
15026 <cell alignment="center" valignment="top" usebox="none">
15029 \begin_layout Plain Layout
15036 <row topspace="default">
15037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15040 \begin_layout Plain Layout
15042 \begin_inset Formula $f_{\mathrm{max}}$
15050 <cell alignment="center" valignment="top" usebox="none">
15053 \begin_layout Plain Layout
15059 <cell alignment="center" valignment="top" usebox="none">
15062 \begin_layout Plain Layout
15068 <cell alignment="center" valignment="top" usebox="none">
15071 \begin_layout Plain Layout
15078 <row topspace="default">
15079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15082 \begin_layout Plain Layout
15086 \begin_layout Plain Layout
15090 cmidrule[2pt](l{10pt}){1-1}
15095 LSF-spatial resolution
15100 <cell alignment="center" valignment="top" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15132 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" usebox="none">
15150 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" usebox="none">
15159 \begin_layout Plain Layout
15167 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15170 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15179 \begin_layout Plain Layout
15185 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15188 \begin_layout Plain Layout
15194 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15197 \begin_layout Plain Layout
15216 \begin_layout Standard
15217 Spaces to table rows can be added using the
15221 tab of the table dialog as described in section
15222 \begin_inset space ~
15226 \begin_inset CommandInset ref
15228 reference "subsec:Row-Spacing"
15235 \begin_layout Standard
15236 Unlike normal tables, formal tables have no vertical table lines.
15237 The horizontal table lines can be set as for normal tables but they appear
15238 with different widths in the output:
15239 \begin_inset Newline newline
15242 The first and the last table line have a default width of 0.08
15243 \begin_inset space \thinspace{}
15246 em while the other lines have a default width of 0.05
15247 \begin_inset space \thinspace{}
15253 \begin_layout Standard
15254 The default widths can be changed with the following preamble lines
15257 \begin_layout Standard
15267 \begin_inset Newline newline
15279 \begin_layout Standard
15280 This example is for the first line, the so called
15285 If you want to change the width for the last line, replace
15294 To change the width for the other lines replace
15303 You can use all units listed in appendix
15304 \begin_inset space ~
15308 \begin_inset CommandInset ref
15310 reference "cha:Units-available-in"
15317 \begin_layout Standard
15318 Lines that do not span all table columns can be created by setting a table
15319 line for multicolumn cells.
15321 will then internally use the command
15327 to create this line.
15331 \begin_layout Standard
15336 cmidrule[height](trim){startcol-endcol}
15339 \begin_layout Standard
15346 are currently not supported by \SpecialChar LyX
15347 so you have to use \SpecialChar TeX
15356 s can manually be created by inserting the command as \SpecialChar TeX
15358 cell entry of the first cell of a row.
15359 The line is then drawn in the output above the current row.
15362 \begin_layout Standard
15363 The default for the optional
15368 \begin_inset space \thinspace{}
15376 is the number of the column where the line starts and
15380 the column number where the line ends.
15385 always needs to be specified, also when the line should span only one column.
15386 The optional parameter
15403 Using for example the parameter
15407 means that the line is trimmed from its left end by 2
15408 \begin_inset space \thinspace{}
15412 If you don't specify the
15416 the line is trimmed by the default of 0.5
15417 \begin_inset space \thinspace{}
15423 \begin_layout Standard
15424 \begin_inset VSpace bigskip
15428 \begin_inset space ~
15432 \begin_inset CommandInset ref
15434 reference "tab:Example-booktabs-table"
15438 was created using the commands
15441 \begin_layout Standard
15451 \begin_layout Standard
15452 at the beginning of the second row and
15455 \begin_layout Standard
15460 cmidrule[2pt](l{10pt}){1-1}
15463 \begin_layout Standard
15467 \begin_layout Standard
15468 \begin_inset VSpace bigskip
15474 \begin_layout Standard
15475 You might want to have overlapping
15482 \begin_inset space ~
15486 \begin_inset CommandInset ref
15488 reference "tab:Special-booktabs-table"
15493 This can be achieved with the \SpecialChar TeX
15497 \begin_layout Standard
15505 \begin_layout Standard
15506 The command that was used for the second row of Table
15507 \begin_inset space ~
15511 \begin_inset CommandInset ref
15513 reference "tab:Special-booktabs-table"
15520 \begin_layout Standard
15534 \begin_layout Standard
15535 The command for the sixth row is
15538 \begin_layout Standard
15550 \begin_layout Standard
15551 \begin_inset VSpace bigskip
15557 \begin_layout Standard
15558 If you are in any way not satisfied with the border line spacing, you can
15559 use the following command to produce lines that span over all table columns
15564 \begin_layout Standard
15569 specialrule{width}{space above}{space below}
15572 \begin_layout Standard
15573 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15580 \begin_inset CommandInset citation
15587 \begin_inset Index idx
15590 \begin_layout Plain Layout
15592 -packages ! booktabs
15600 \begin_layout Standard
15601 \begin_inset Float table
15607 \begin_layout Plain Layout
15608 \begin_inset Caption Standard
15610 \begin_layout Plain Layout
15611 \begin_inset CommandInset label
15613 name "tab:Special-booktabs-table"
15617 Special booktabs-table
15625 \begin_layout Plain Layout
15627 \begin_inset Tabular
15628 <lyxtabular version="3" rows="8" columns="4">
15629 <features booktabs="true" tabularvalignment="middle">
15630 <column alignment="center" valignment="top">
15631 <column alignment="center" valignment="top">
15632 <column alignment="center" valignment="top">
15633 <column alignment="center" valignment="top">
15635 <cell alignment="center" valignment="top" topline="true" usebox="none">
15638 \begin_layout Plain Layout
15644 <cell alignment="center" valignment="top" topline="true" usebox="none">
15647 \begin_layout Plain Layout
15649 \begin_inset space \thinspace{}
15657 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15660 \begin_layout Plain Layout
15662 \begin_inset space \thinspace{}
15670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15673 \begin_layout Plain Layout
15681 <cell alignment="center" valignment="top" usebox="none">
15684 \begin_layout Plain Layout
15688 \begin_layout Plain Layout
15701 \begin_layout Plain Layout
15714 \begin_layout Plain Layout
15727 \begin_layout Plain Layout
15736 Detector thickness in µm
15741 <cell alignment="center" valignment="top" usebox="none">
15744 \begin_layout Plain Layout
15750 <cell alignment="center" valignment="top" usebox="none">
15753 \begin_layout Plain Layout
15759 <cell alignment="center" valignment="top" usebox="none">
15762 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" topline="true" usebox="none">
15773 \begin_layout Plain Layout
15779 <cell alignment="center" valignment="top" topline="true" usebox="none">
15782 \begin_layout Plain Layout
15788 <cell alignment="center" valignment="top" topline="true" usebox="none">
15791 \begin_layout Plain Layout
15797 <cell alignment="center" valignment="top" topline="true" usebox="none">
15800 \begin_layout Plain Layout
15807 <row topspace="default">
15808 <cell alignment="center" valignment="top" usebox="none">
15811 \begin_layout Plain Layout
15812 Spatial resolution in µm
15817 <cell alignment="center" valignment="top" usebox="none">
15820 \begin_layout Plain Layout
15826 <cell alignment="center" valignment="top" usebox="none">
15829 \begin_layout Plain Layout
15835 <cell alignment="center" valignment="top" usebox="none">
15838 \begin_layout Plain Layout
15845 <row topspace="default">
15846 <cell alignment="center" valignment="top" usebox="none">
15849 \begin_layout Plain Layout
15851 \begin_inset Formula $f_{\mathrm{max}}$
15859 <cell alignment="center" valignment="top" usebox="none">
15862 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" usebox="none">
15871 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" usebox="none">
15880 \begin_layout Plain Layout
15888 <cell alignment="center" valignment="top" topline="true" usebox="none">
15891 \begin_layout Plain Layout
15895 \begin_layout Plain Layout
15908 \begin_layout Plain Layout
15917 LSF-spatial resolution
15922 <cell alignment="center" valignment="top" topline="true" usebox="none">
15925 \begin_layout Plain Layout
15931 <cell alignment="center" valignment="top" topline="true" usebox="none">
15934 \begin_layout Plain Layout
15940 <cell alignment="center" valignment="top" topline="true" usebox="none">
15943 \begin_layout Plain Layout
15951 <cell alignment="center" valignment="top" usebox="none">
15954 \begin_layout Plain Layout
15960 <cell alignment="center" valignment="top" usebox="none">
15963 \begin_layout Plain Layout
15969 <cell alignment="center" valignment="top" usebox="none">
15972 \begin_layout Plain Layout
15978 <cell alignment="center" valignment="top" usebox="none">
15981 \begin_layout Plain Layout
15989 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15992 \begin_layout Plain Layout
15998 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16001 \begin_layout Plain Layout
16007 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16010 \begin_layout Plain Layout
16016 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16019 \begin_layout Plain Layout
16038 \begin_layout Section
16039 Vertical Table Alignment
16040 \begin_inset Index idx
16043 \begin_layout Plain Layout
16052 \begin_layout Standard
16053 To align tables vertically in a text line, the table must be inside a box.
16054 The box can then be vertically aligned as described in section
16055 \begin_inset space ~
16059 \begin_inset CommandInset ref
16061 reference "sec:Box-Dialog"
16068 \begin_layout Standard
16069 In the following example the tables are inside a minipage
16073 \begin_layout Plain Layout
16074 Minipages are described in section
16075 \begin_inset space ~
16079 \begin_inset CommandInset ref
16081 reference "sec:Minipages"
16090 box that has a width of 15
16091 \begin_inset space \thinspace{}
16097 \begin_layout Itemize
16099 \begin_inset Box Frameless
16109 height_special "totalheight"
16114 backgroundcolor "none"
16117 \begin_layout Plain Layout
16118 \begin_inset Tabular
16119 <lyxtabular version="3" rows="3" columns="3">
16120 <features tabularvalignment="middle">
16121 <column alignment="center" valignment="top">
16122 <column alignment="center" valignment="top">
16123 <column alignment="center" valignment="top">
16125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16128 \begin_layout Plain Layout
16134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16137 \begin_layout Plain Layout
16143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16146 \begin_layout Plain Layout
16154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16157 \begin_layout Plain Layout
16163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16166 \begin_layout Plain Layout
16172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16175 \begin_layout Plain Layout
16183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16186 \begin_layout Plain Layout
16192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16195 \begin_layout Plain Layout
16201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16204 \begin_layout Plain Layout
16224 \begin_layout Plain Layout
16236 \begin_inset Box Frameless
16246 height_special "totalheight"
16251 backgroundcolor "none"
16254 \begin_layout Plain Layout
16255 \begin_inset Tabular
16256 <lyxtabular version="3" rows="3" columns="3">
16257 <features tabularvalignment="middle">
16258 <column alignment="center" valignment="top">
16259 <column alignment="center" valignment="top">
16260 <column alignment="center" valignment="top">
16262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16265 \begin_layout Plain Layout
16271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16274 \begin_layout Plain Layout
16280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16283 \begin_layout Plain Layout
16291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16294 \begin_layout Plain Layout
16300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16303 \begin_layout Plain Layout
16309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16312 \begin_layout Plain Layout
16320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16323 \begin_layout Plain Layout
16329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16332 \begin_layout Plain Layout
16338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16341 \begin_layout Plain Layout
16361 \begin_layout Plain Layout
16371 \begin_layout Itemize
16373 \begin_inset Box Frameless
16383 height_special "totalheight"
16388 backgroundcolor "none"
16391 \begin_layout Plain Layout
16392 \begin_inset Tabular
16393 <lyxtabular version="3" rows="3" columns="3">
16394 <features tabularvalignment="middle">
16395 <column alignment="center" valignment="top">
16396 <column alignment="center" valignment="top">
16397 <column alignment="center" valignment="top">
16399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16402 \begin_layout Plain Layout
16408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16411 \begin_layout Plain Layout
16417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16420 \begin_layout Plain Layout
16428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16431 \begin_layout Plain Layout
16437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16440 \begin_layout Plain Layout
16446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16449 \begin_layout Plain Layout
16457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16460 \begin_layout Plain Layout
16466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16469 \begin_layout Plain Layout
16475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16497 \begin_layout Itemize
16499 \begin_inset Box Frameless
16509 height_special "totalheight"
16514 backgroundcolor "none"
16517 \begin_layout Plain Layout
16518 \begin_inset Tabular
16519 <lyxtabular version="3" rows="3" columns="3">
16520 <features tabularvalignment="middle">
16521 <column alignment="center" valignment="top">
16522 <column alignment="center" valignment="top">
16523 <column alignment="center" valignment="top">
16525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16528 \begin_layout Plain Layout
16534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16537 \begin_layout Plain Layout
16543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Plain Layout
16554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16557 \begin_layout Plain Layout
16563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16566 \begin_layout Plain Layout
16572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16575 \begin_layout Plain Layout
16583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16586 \begin_layout Plain Layout
16592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16595 \begin_layout Plain Layout
16601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16604 \begin_layout Plain Layout
16624 \begin_layout Plain Layout
16636 \begin_inset Box Frameless
16646 height_special "totalheight"
16651 backgroundcolor "none"
16654 \begin_layout Plain Layout
16655 \begin_inset Tabular
16656 <lyxtabular version="3" rows="3" columns="3">
16657 <features tabularvalignment="middle">
16658 <column alignment="center" valignment="top">
16659 <column alignment="center" valignment="top">
16660 <column alignment="center" valignment="top">
16662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16665 \begin_layout Plain Layout
16671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16674 \begin_layout Plain Layout
16680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16683 \begin_layout Plain Layout
16691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16694 \begin_layout Plain Layout
16700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16703 \begin_layout Plain Layout
16709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16712 \begin_layout Plain Layout
16720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16723 \begin_layout Plain Layout
16729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16732 \begin_layout Plain Layout
16738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16741 \begin_layout Plain Layout
16761 \begin_layout Plain Layout
16771 \begin_layout Standard
16772 As you will see, the content of the first and last table row is not correctly
16774 To get this alignment, the minipage box must be set into a raisebox.
16778 \begin_layout Plain Layout
16779 Raiseboxes are described in section
16780 \begin_inset space ~
16784 \begin_inset CommandInset ref
16786 reference "subsec:Vertical-Alignment"
16795 In the example above the second table in the first item is aligned using
16796 the \SpecialChar TeX
16800 \begin_layout Standard
16810 \begin_layout Standard
16812 After the box the closing brace
16816 is inserted as \SpecialChar TeX
16818 For the second table in the last item the command
16821 \begin_layout Standard
16831 \begin_layout Standard
16835 \begin_layout Standard
16836 \begin_inset Note Greyedout
16839 \begin_layout Plain Layout
16844 The alignment of the table row content to the surrounding text line is
16846 The required value for the
16852 command for this alignment depends on the document font, the font size,
16853 and the table line thickness.
16861 \begin_layout Section
16863 \begin_inset CommandInset label
16865 name "sec:Colored-Tables"
16870 \begin_inset Index idx
16873 \begin_layout Plain Layout
16882 \begin_layout Subsection
16884 \begin_inset Index idx
16887 \begin_layout Plain Layout
16888 Table Color ! for Cells
16894 \begin_inset Index idx
16897 \begin_layout Plain Layout
16898 Color ! for Table Cells
16906 \begin_layout Standard
16907 \begin_inset Float table
16913 \begin_layout Plain Layout
16914 \begin_inset Caption Standard
16916 \begin_layout Plain Layout
16917 \begin_inset CommandInset label
16919 name "tab:Table-colored-without"
16923 Table colored without using the package
16928 \begin_inset Argument 1
16931 \begin_layout Plain Layout
16932 Table without colortbl
16945 \begin_layout Plain Layout
16947 \begin_inset Tabular
16948 <lyxtabular version="3" rows="3" columns="3">
16949 <features tabularvalignment="middle">
16950 <column alignment="center" valignment="top">
16951 <column alignment="center" valignment="top">
16952 <column alignment="center" valignment="top">
16954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16957 \begin_layout Plain Layout
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16968 \begin_layout Plain Layout
16976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16979 \begin_layout Plain Layout
16989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16992 \begin_layout Plain Layout
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17003 \begin_layout Plain Layout
17011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17014 \begin_layout Plain Layout
17024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17027 \begin_layout Plain Layout
17035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17038 \begin_layout Plain Layout
17046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17049 \begin_layout Plain Layout
17070 \begin_layout Standard
17071 If you only need colored text, mark the cells and choose a color in the
17075 \begin_inset space ~
17080 dialog (toolbar button
17083 arg "dialog-show character"
17087 This was used to create Table
17088 \begin_inset space ~
17092 \begin_inset CommandInset ref
17094 reference "tab:Table-colored-without"
17099 In any other case you have to use the \SpecialChar LaTeX
17105 \begin_inset Index idx
17108 \begin_layout Plain Layout
17110 -packages ! colortbl
17118 \begin_layout Standard
17122 \begin_layout Plain Layout
17132 \begin_inset Note Note
17135 \begin_layout Plain Layout
17136 The following section part will only be displayed when the \SpecialChar LaTeX
17149 \begin_layout Standard
17150 To create colored tables,
17154 must be loaded in the preamble with the line
17157 \begin_layout Standard
17162 usepackage{colortbl}
17165 \begin_layout Standard
17166 The color of a column is adjusted with the command
17169 \begin_layout Standard
17174 columncolor{name of color}
17177 \begin_layout Standard
17183 More about the command
17187 is contained in section
17188 \begin_inset space ~
17192 \begin_inset CommandInset ref
17194 reference "subsec:Multicolumn-Calculations"
17201 \begin_layout Standard
17202 The following color names are predefined:
17205 \begin_layout Standard
17239 \begin_layout Standard
17240 \begin_inset VSpace medskip
17246 \begin_layout Standard
17247 If you add the option
17250 \begin_layout Standard
17256 \begin_layout Standard
17257 to the document class options in the document settings, you can additionally
17259 \begin_inset space ~
17263 These colors are listed in appendix
17264 \begin_inset space ~
17268 \begin_inset CommandInset ref
17270 reference "chap:List-of-dvips-colornames"
17275 One of these colors,
17279 , is used as example in Table
17280 \begin_inset space ~
17284 \begin_inset CommandInset ref
17286 reference "tab:Table-colored-using"
17293 \begin_layout Standard
17294 \begin_inset VSpace medskip
17300 \begin_layout Standard
17301 You can also define your own color with the command
17304 \begin_layout Standard
17309 definecolor{color name}{color model}{color values}
17312 \begin_layout Standard
17313 The color model can be
17316 \begin_layout Labeling
17317 \labelwidthstring 00.00.0000
17318 cmyk: cyan, magenta, yellow, black
17321 \begin_layout Labeling
17322 \labelwidthstring 00.00.0000
17323 rgb: red, green blue
17326 \begin_layout Labeling
17327 \labelwidthstring 00.00.0000
17331 \begin_layout Standard
17332 and the color values are comma separated numbers between 0 and 1 describing
17333 the factor for the corresponding color of the color model.
17336 \begin_layout Standard
17338 \begin_inset space \thinspace{}
17342 \begin_inset space \space{}
17349 " in the preamble with
17352 \begin_layout Standard
17357 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17360 \begin_layout Standard
17368 \begin_layout Standard
17373 definecolor{lightgray}{gray}{0.8}
17376 \begin_layout Standard
17377 \begin_inset VSpace medskip
17383 \begin_layout Standard
17384 Lines are colored with the command
17387 \begin_layout Standard
17392 rowcolor{name of color}
17395 \begin_layout Standard
17396 and cells are colored with the command
17399 \begin_layout Standard
17404 cellcolor{name of color}
17407 \begin_layout Standard
17408 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17412 \begin_layout Standard
17413 To color characters in the table, mark the cells and use the
17416 \begin_inset space ~
17422 If a cell contains \SpecialChar TeX
17423 Code mark only the characters, otherwise the colored
17425 Code will cause \SpecialChar LaTeX
17429 \begin_layout Standard
17430 \begin_inset Note Greyedout
17433 \begin_layout Plain Layout
17438 Not all DVI-viewers are able to display self-defined colors.
17446 \begin_layout Standard
17447 \begin_inset VSpace bigskip
17453 \begin_layout Standard
17455 \begin_inset space ~
17459 \begin_inset CommandInset ref
17461 reference "tab:Table-colored-using"
17465 do the following: The color of the first column should be
17473 \begin_layout Standard
17478 columncolor{darkgreen}
17483 \begin_layout Standard
17484 as \SpecialChar LaTeX
17485 -argument for this column.
17486 The first row should be light blue, therefore the \SpecialChar TeX
17490 \begin_layout Standard
17498 \begin_layout Standard
17499 is inserted to the first cell of this row.
17500 Note that this overwrites the column color for the first cell.
17501 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17506 \begin_layout Standard
17514 \begin_layout Standard
17515 The characters could now be colored using the menu
17517 Edit\SpecialChar menuseparator
17519 \begin_inset space ~
17527 \begin_layout Standard
17528 \begin_inset Float table
17534 \begin_layout Plain Layout
17535 \begin_inset Caption Standard
17537 \begin_layout Plain Layout
17538 \begin_inset CommandInset label
17540 name "tab:Table-colored-using"
17544 Table colored using the package
17549 \begin_inset Argument 1
17552 \begin_layout Plain Layout
17553 Table with colortbl
17566 \begin_layout Plain Layout
17568 \begin_inset Tabular
17569 <lyxtabular version="3" rows="3" columns="3">
17570 <features tabularvalignment="middle">
17571 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17572 <column alignment="center" valignment="top">
17573 <column alignment="center" valignment="top">
17575 <cell alignment="center" valignment="top" usebox="none">
17578 \begin_layout Plain Layout
17582 \begin_layout Plain Layout
17598 <cell alignment="center" valignment="top" usebox="none">
17601 \begin_layout Plain Layout
17609 <cell alignment="center" valignment="top" usebox="none">
17612 \begin_layout Plain Layout
17622 <cell alignment="center" valignment="top" usebox="none">
17625 \begin_layout Plain Layout
17633 <cell alignment="center" valignment="top" usebox="none">
17636 \begin_layout Plain Layout
17644 <cell alignment="center" valignment="top" usebox="none">
17647 \begin_layout Plain Layout
17657 <cell alignment="center" valignment="top" usebox="none">
17660 \begin_layout Plain Layout
17668 <cell alignment="center" valignment="top" usebox="none">
17671 \begin_layout Plain Layout
17679 <cell alignment="center" valignment="top" usebox="none">
17682 \begin_layout Plain Layout
17686 \begin_layout Plain Layout
17715 \begin_layout Standard
17719 \begin_layout Plain Layout
17729 \begin_inset Note Note
17732 \begin_layout Plain Layout
17733 The following will be displayed when the \SpecialChar LaTeX
17746 \begin_layout Standard
17747 You need to install the package
17751 to see the content of this section in the output.
17754 \begin_layout Standard
17758 \begin_layout Plain Layout
17770 \begin_layout Subsection
17772 \begin_inset Index idx
17775 \begin_layout Plain Layout
17776 Table Color ! for Rows
17782 \begin_inset Index idx
17785 \begin_layout Plain Layout
17786 Color ! for Table Rows
17794 \begin_layout Standard
17795 In case every second table row needs to be colored there is an alternative
17796 to the method described in the previous section: One loads the package
17802 \begin_inset Index idx
17805 \begin_layout Plain Layout
17811 \begin_layout Plain Layout
17825 in the document preamble with the command
17828 \begin_layout Standard
17833 usepackage[table]{xcolor}
17836 \begin_layout Standard
17841 automatically loads also the package
17846 \begin_inset Index idx
17849 \begin_layout Plain Layout
17851 -packages ! colortbl
17860 must be installed in your \SpecialChar LaTeX
17861 -distribution, otherwise you get \SpecialChar LaTeX
17865 \begin_layout Standard
17869 \begin_layout Plain Layout
17879 \begin_inset Note Note
17882 \begin_layout Plain Layout
17883 The following section part will only be displayed when the \SpecialChar LaTeX
17896 \begin_layout Standard
17897 The table rows are colored with the command
17900 \begin_layout Standard
17905 rowcolors[commands]{row number}{odd row color}{even row color}
17908 \begin_layout Standard
17909 that is either inserted in the document preamble or as \SpecialChar TeX
17911 first table to be colored.
17913 \begin_inset space ~
17916 number is the number of the first row which should be colored according
17917 to the odd row color.
17918 commands can be additional commands that are executed before every table
17920 So for example the command
17923 \begin_layout Standard
17928 rowcolors{1}{white}{lightgray}
17931 \begin_layout Standard
17932 leads to the coloring scheme of Table
17933 \begin_inset space ~
17937 \begin_inset CommandInset ref
17939 reference "tab:Table-rowcolors"
17947 \begin_layout Standard
17954 hline]{1}{lightgray}{cyan}
17957 \begin_layout Standard
17958 leads to the coloring scheme of Table
17959 \begin_inset space ~
17963 \begin_inset CommandInset ref
17965 reference "tab:Table-rowcolors-2"
17971 \begin_inset space ~
17975 \begin_inset space ~
17979 \begin_inset space ~
17983 \begin_inset space ~
17986 color are left empty, no color will be used so that the command
17989 \begin_layout Standard
17997 \begin_layout Standard
17998 deletes all colors.
18005 affects all tables following that command.
18008 \begin_layout Standard
18012 \begin_layout Plain Layout
18016 rowcolors{1}{white}{lightgray}
18024 \begin_layout Standard
18025 \begin_inset Float table
18031 \begin_layout Plain Layout
18032 \begin_inset Caption Standard
18034 \begin_layout Plain Layout
18035 \begin_inset CommandInset label
18037 name "tab:Table-rowcolors"
18041 Table where every second row is colored light gray.
18049 \begin_layout Plain Layout
18051 \begin_inset Tabular
18052 <lyxtabular version="3" rows="4" columns="3">
18053 <features tabularvalignment="middle">
18054 <column alignment="center" valignment="top">
18055 <column alignment="center" valignment="top" width="0pt">
18056 <column alignment="center" valignment="top" width="0pt">
18058 <cell alignment="center" valignment="top" usebox="none">
18061 \begin_layout Plain Layout
18067 <cell alignment="center" valignment="top" usebox="none">
18070 \begin_layout Plain Layout
18076 <cell alignment="center" valignment="top" usebox="none">
18079 \begin_layout Plain Layout
18087 <cell alignment="center" valignment="top" usebox="none">
18090 \begin_layout Plain Layout
18096 <cell alignment="center" valignment="top" usebox="none">
18099 \begin_layout Plain Layout
18105 <cell alignment="center" valignment="top" usebox="none">
18108 \begin_layout Plain Layout
18116 <cell alignment="center" valignment="top" usebox="none">
18119 \begin_layout Plain Layout
18125 <cell alignment="center" valignment="top" usebox="none">
18128 \begin_layout Plain Layout
18134 <cell alignment="center" valignment="top" usebox="none">
18137 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18154 <cell alignment="center" valignment="top" usebox="none">
18157 \begin_layout Plain Layout
18163 <cell alignment="center" valignment="top" usebox="none">
18166 \begin_layout Plain Layout
18185 \begin_layout Standard
18189 \begin_layout Plain Layout
18195 hline]{1}{lightgray}{cyan}
18203 \begin_layout Standard
18204 \begin_inset Float table
18210 \begin_layout Plain Layout
18211 \begin_inset Caption Standard
18213 \begin_layout Plain Layout
18214 \begin_inset CommandInset label
18216 name "tab:Table-rowcolors-2"
18220 Table where every second row is colored cyan and at which there is a line
18229 \begin_layout Plain Layout
18231 \begin_inset Tabular
18232 <lyxtabular version="3" rows="4" columns="3">
18233 <features tabularvalignment="middle">
18234 <column alignment="center" valignment="top">
18235 <column alignment="center" valignment="top">
18236 <column alignment="center" valignment="top" width="0pt">
18238 <cell alignment="center" valignment="top" usebox="none">
18241 \begin_layout Plain Layout
18247 <cell alignment="center" valignment="top" usebox="none">
18250 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" usebox="none">
18259 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" usebox="none">
18270 \begin_layout Plain Layout
18276 <cell alignment="center" valignment="top" usebox="none">
18279 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" usebox="none">
18288 \begin_layout Plain Layout
18296 <cell alignment="center" valignment="top" usebox="none">
18299 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" usebox="none">
18317 \begin_layout Plain Layout
18325 <cell alignment="center" valignment="top" usebox="none">
18328 \begin_layout Plain Layout
18334 <cell alignment="center" valignment="top" usebox="none">
18337 \begin_layout Plain Layout
18343 <cell alignment="center" valignment="top" usebox="none">
18346 \begin_layout Plain Layout
18365 \begin_layout Standard
18369 \begin_layout Plain Layout
18379 \begin_inset Note Note
18382 \begin_layout Plain Layout
18383 turns off the row coloring
18391 \begin_layout Standard
18395 \begin_layout Plain Layout
18405 \begin_inset Note Note
18408 \begin_layout Plain Layout
18409 The following will be displayed when the \SpecialChar LaTeX
18422 \begin_layout Standard
18423 You need to install the package
18427 to see the content of this section in the output.
18430 \begin_layout Standard
18434 \begin_layout Plain Layout
18446 \begin_layout Subsection
18448 \begin_inset Index idx
18451 \begin_layout Plain Layout
18452 Table Color ! for Lines
18458 \begin_inset Index idx
18461 \begin_layout Plain Layout
18462 Color ! for Table Lines
18470 \begin_layout Standard
18471 As described in section
18472 \begin_inset space ~
18476 \begin_inset CommandInset ref
18478 reference "subsec:Line-Thickness"
18482 , the line thickness for all lines in a table can be adjusted with the length
18491 \begin_inset space \thinspace{}
18494 pt for all tables of this section.
18498 \begin_layout Plain Layout
18504 arrayrulewidth}{1.5pt}
18512 \begin_layout Standard
18513 To color vertical lines for example with green, create the following column
18514 format in the document preamble, according to the description in section
18515 \begin_inset space ~
18519 \begin_inset CommandInset ref
18521 reference "subsec:Customized-Format"
18528 \begin_layout Standard
18533 newcolumntype{W}{!{
18540 \begin_layout Standard
18542 \begin_inset space ~
18546 \begin_inset CommandInset ref
18548 reference "tab:Table-with-vertical-colored"
18552 the \SpecialChar LaTeX
18557 was used for the last column and
18561 for the other columns.
18564 \begin_layout Standard
18565 If you want to have several colors, define more column formats.
18568 \begin_layout Standard
18569 \begin_inset Float table
18575 \begin_layout Plain Layout
18576 \begin_inset Caption Standard
18578 \begin_layout Plain Layout
18579 \begin_inset CommandInset label
18581 name "tab:Table-with-vertical-colored"
18585 Table with colored vertical lines
18593 \begin_layout Plain Layout
18595 \begin_inset Tabular
18596 <lyxtabular version="3" rows="3" columns="3">
18597 <features tabularvalignment="middle">
18598 <column alignment="center" valignment="top" special="Wc">
18599 <column alignment="center" valignment="top" special="Wc">
18600 <column alignment="center" valignment="top" special="WcW">
18602 <cell alignment="center" valignment="top" topline="true" usebox="none">
18605 \begin_layout Plain Layout
18611 <cell alignment="center" valignment="top" topline="true" usebox="none">
18614 \begin_layout Plain Layout
18620 <cell alignment="center" valignment="top" topline="true" usebox="none">
18623 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18640 <cell alignment="center" valignment="top" topline="true" usebox="none">
18643 \begin_layout Plain Layout
18649 <cell alignment="center" valignment="top" topline="true" usebox="none">
18652 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18672 \begin_layout Plain Layout
18678 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18681 \begin_layout Plain Layout
18700 \begin_layout Standard
18701 \begin_inset VSpace bigskip
18704 To color horizontal lines for example with red, as in Table
18705 \begin_inset space ~
18709 \begin_inset CommandInset ref
18711 reference "tab:Table-with-horizontal-colored"
18715 , insert these commands in \SpecialChar TeX
18716 Code before the table or table float:
18719 \begin_layout Standard
18729 \begin_inset Newline newline
18737 \begin_inset Newline newline
18741 \begin_inset Phantom HPhantom
18744 \begin_layout Plain Layout
18747 \begin_inset space ~
18757 arrayrulecolor{red}
18761 arrayrulecolor{black}}
18764 \begin_layout Standard
18768 \begin_layout Plain Layout
18779 \begin_layout Plain Layout
18788 \begin_layout Plain Layout
18792 arrayrulecolor{red}
18796 arrayrulecolor{black}}
18802 \begin_inset Float table
18808 \begin_layout Plain Layout
18809 \begin_inset Caption Standard
18811 \begin_layout Plain Layout
18812 \begin_inset CommandInset label
18814 name "tab:Table-with-horizontal-colored"
18818 Table with colored horizontal lines
18826 \begin_layout Plain Layout
18828 \begin_inset Tabular
18829 <lyxtabular version="3" rows="3" columns="3">
18830 <features tabularvalignment="middle">
18831 <column alignment="center" valignment="top">
18832 <column alignment="center" valignment="top">
18833 <column alignment="center" valignment="top">
18835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18838 \begin_layout Plain Layout
18844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18847 \begin_layout Plain Layout
18853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18856 \begin_layout Plain Layout
18864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18867 \begin_layout Plain Layout
18873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18876 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18885 \begin_layout Plain Layout
18893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18896 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18905 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18914 \begin_layout Plain Layout
18933 \begin_layout Standard
18934 To return to the default line color black, insert this command in \SpecialChar TeX
18936 after the table or table float:
18939 \begin_layout Standard
18951 \begin_layout Standard
18953 \begin_inset space ~
18957 \begin_inset CommandInset ref
18959 reference "tab:Table-with-colored"
18963 is an example with colored vertical and horizontal lines.
18966 \begin_layout Standard
18967 \begin_inset Float table
18973 \begin_layout Plain Layout
18974 \begin_inset Caption Standard
18976 \begin_layout Plain Layout
18977 \begin_inset CommandInset label
18979 name "tab:Table-with-colored"
18983 Table with colored lines
18991 \begin_layout Plain Layout
18993 \begin_inset Tabular
18994 <lyxtabular version="3" rows="3" columns="3">
18995 <features tabularvalignment="middle">
18996 <column alignment="center" valignment="top" special="Wc">
18997 <column alignment="center" valignment="top" special="Wc">
18998 <column alignment="center" valignment="top" special="WcW">
19000 <cell alignment="center" valignment="top" topline="true" usebox="none">
19003 \begin_layout Plain Layout
19009 <cell alignment="center" valignment="top" topline="true" usebox="none">
19012 \begin_layout Plain Layout
19018 <cell alignment="center" valignment="top" topline="true" usebox="none">
19021 \begin_layout Plain Layout
19029 <cell alignment="center" valignment="top" topline="true" usebox="none">
19032 \begin_layout Plain Layout
19038 <cell alignment="center" valignment="top" topline="true" usebox="none">
19041 \begin_layout Plain Layout
19047 <cell alignment="center" valignment="top" topline="true" usebox="none">
19050 \begin_layout Plain Layout
19057 <row topspace="default">
19058 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19061 \begin_layout Plain Layout
19067 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19070 \begin_layout Plain Layout
19076 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19079 \begin_layout Plain Layout
19098 \begin_layout Standard
19102 \begin_layout Plain Layout
19118 \begin_layout Standard
19122 \begin_layout Plain Layout
19128 arrayrulewidth}{0.4pt}
19136 \begin_layout Section
19137 Rotated Table Cells
19138 \begin_inset CommandInset label
19140 name "sec:Rotated-Table-Cells"
19145 \begin_inset Index idx
19148 \begin_layout Plain Layout
19149 Table ! Rotated Cells
19155 \begin_inset Index idx
19158 \begin_layout Plain Layout
19167 \begin_layout Standard
19168 \begin_inset Note Greyedout
19171 \begin_layout Plain Layout
19176 Not all DVI-viewers are able to display rotations.
19184 \begin_layout Standard
19186 \begin_inset space ~
19190 \begin_inset CommandInset ref
19192 reference "tab:Table-with-rotated-multi"
19196 is an example where 3
19197 \begin_inset space ~
19200 cells were rotated by 45
19201 \begin_inset space \thinspace{}
19207 \begin_layout Standard
19208 \begin_inset Float table
19214 \begin_layout Plain Layout
19215 \begin_inset Caption Standard
19217 \begin_layout Plain Layout
19218 \begin_inset CommandInset label
19220 name "tab:Table-with-rotated"
19224 Table with rotated cells in the first row.
19232 \begin_layout Plain Layout
19235 \begin_inset Tabular
19236 <lyxtabular version="3" rows="2" columns="3">
19237 <features tabularvalignment="middle">
19238 <column alignment="center" valignment="top" width="0pt">
19239 <column alignment="center" valignment="top" width="0pt">
19240 <column alignment="center" valignment="top" width="0pt">
19242 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19245 \begin_layout Plain Layout
19251 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19254 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19263 \begin_layout Plain Layout
19271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19274 \begin_layout Plain Layout
19280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19283 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19292 \begin_layout Plain Layout
19311 \begin_layout Standard
19312 \begin_inset Note Greyedout
19315 \begin_layout Plain Layout
19320 Line breaks (shortcut
19323 arg "newline-insert newline"
19326 ) are not allowed in rotated cells.
19334 \begin_layout Standard
19335 If you want to rotate table cells containing line breaks, you have to put
19336 the cell content into a minipage or a parbox.
19340 \begin_layout Plain Layout
19341 For more about these boxes see sec.
19342 \begin_inset space \thinspace{}
19346 \begin_inset CommandInset ref
19348 reference "sec:Minipages"
19353 \begin_inset CommandInset ref
19355 reference "sec:Parboxes"
19364 If you rotate this cell by 90
19365 \begin_inset space \thinspace{}
19368 ° the width of the box is the height of the cell.
19370 \begin_inset space ~
19374 \begin_inset CommandInset ref
19376 reference "tab:Table-with-rotated-multi"
19380 is an example for a rotated multiline cell where the box width was set
19382 \begin_inset space \thinspace{}
19388 \begin_layout Standard
19389 \begin_inset Float table
19394 \begin_layout Plain Layout
19395 \begin_inset Caption Standard
19397 \begin_layout Plain Layout
19398 \begin_inset CommandInset label
19400 name "tab:Table-with-rotated-multi"
19404 Table with rotated multiline cell.
19412 \begin_layout Plain Layout
19415 \begin_inset Tabular
19416 <lyxtabular version="3" rows="2" columns="3">
19417 <features tabularvalignment="middle">
19418 <column alignment="center" valignment="top">
19419 <column alignment="center" valignment="top" width="0pt">
19420 <column alignment="center" valignment="top">
19422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19425 \begin_layout Plain Layout
19431 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19434 \begin_layout Plain Layout
19435 \begin_inset Box Frameless
19445 height_special "totalheight"
19450 backgroundcolor "none"
19453 \begin_layout Plain Layout
19455 \begin_inset Newline newline
19468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19471 \begin_layout Plain Layout
19479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19482 \begin_layout Plain Layout
19488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19491 \begin_layout Plain Layout
19497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19500 \begin_layout Plain Layout
19519 \begin_layout Section
19520 Table Width Calculation
19521 \begin_inset CommandInset label
19523 name "sec:Table-Width-Calculation"
19530 \begin_layout Standard
19531 For wide tables it is sometimes difficult to assure that the table does
19532 not protrude over the page margin.
19533 Setting a fixed width for every column of the table is the solution, but
19534 what amount of space is needed for each column?
19537 \begin_layout Standard
19539 \begin_inset Formula $W_{\mathrm{table}}$
19542 can be calculated: Every column has the width of the specified column width
19544 \begin_inset Formula $W_{\mathrm{column}}$
19547 (that the content of the column can consume) plus two times the separation
19548 between the column content and the column border (\SpecialChar LaTeX
19556 \begin_inset space \thinspace{}
19559 pt) plus the width of a border line (\SpecialChar LaTeX
19567 \begin_inset space \thinspace{}
19571 \begin_inset Formula $n$
19575 \begin_inset space ~
19578 columns have the same width, the table width is
19579 \begin_inset Formula
19581 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19589 \begin_layout Standard
19590 The available width for a table is the space between the page margins or
19591 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19599 If all table columns should have the same width and
19600 \begin_inset Formula $W_{\mathrm{table}}$
19604 \begin_inset space \thinspace{}
19610 \begin_inset Formula $W_{\mathrm{column}}$
19613 can easily be calculated.
19616 \begin_layout Standard
19617 To be able to perform calculations you need to load the \SpecialChar LaTeX
19623 \begin_inset Index idx
19626 \begin_layout Plain Layout
19633 in the document preamble.
19634 To set the width in the table dialog you have to use the field
19640 The command scheme for this field is the same that is explained in section
19641 \begin_inset space ~
19645 \begin_inset CommandInset ref
19647 reference "subsec:Multicolumn-Calculations"
19653 \begin_inset space \thinspace{}
19656 columns with an uniform width and centered text, enter there for each column
19660 \begin_layout Standard
19667 columnwidth-62.4pt)/5}
19670 \begin_layout Standard
19672 \begin_inset space \thinspace{}
19675 columns where 2 should have 0.75
19676 \begin_inset space ~
19679 times the width than the 3 others, the calculation is
19680 \begin_inset Formula
19682 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19683 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19684 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19685 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19693 \begin_layout Standard
19694 In the table therefore the command
19697 \begin_layout Standard
19704 columnwidth-62.4pt)/
19709 \begin_layout Standard
19710 is used for the wider columns and
19713 \begin_layout Standard
19720 columnwidth-62.4pt)/
19727 \begin_layout Standard
19728 for the smaller ones:
19731 \begin_layout Standard
19732 \begin_inset Tabular
19733 <lyxtabular version="3" rows="2" columns="5">
19734 <features tabularvalignment="middle">
19735 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19736 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19737 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19738 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19739 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19744 \begin_layout Plain Layout
19750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19753 \begin_layout Plain Layout
19759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19762 \begin_layout Plain Layout
19768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19771 \begin_layout Plain Layout
19777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19780 \begin_layout Plain Layout
19788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19791 \begin_layout Plain Layout
19792 111111 1111111 111111 111111111 11111 11111 1111
19797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19800 \begin_layout Plain Layout
19806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19809 \begin_layout Plain Layout
19810 2222 22222 222222 222222222 2222222 22 22222
19815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19818 \begin_layout Plain Layout
19824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19827 \begin_layout Plain Layout
19828 333333 333333 333333 33333 3333333 333
19841 \begin_layout Section
19842 Table Customization
19843 \begin_inset Index idx
19846 \begin_layout Plain Layout
19847 Table Customization
19853 \begin_inset Index idx
19856 \begin_layout Plain Layout
19857 Table ! Customization
19865 \begin_layout Subsection
19867 \begin_inset CommandInset label
19869 name "subsec:Row-Spacing"
19874 \begin_inset Index idx
19877 \begin_layout Plain Layout
19878 Table Customization ! Row Spacing
19886 \begin_layout Standard
19887 You can add vertical space to table rows in the
19891 tab of the table dialog.
19892 You find there three possibilities:
19895 \begin_layout Description
19897 \begin_inset space ~
19901 \begin_inset space ~
19904 row will add space above the characters of the table row.
19905 If the table is a formal table
19909 \begin_layout Plain Layout
19910 Formal tables are explained in section
19911 \begin_inset space ~
19915 \begin_inset CommandInset ref
19917 reference "sec:Formal-Tables"
19927 will insert as default 0.5
19928 \begin_inset space \thinspace{}
19932 For normal tables the inserted space will unfortunately destroy the vertical
19933 table lines as in the following table:
19934 \begin_inset VSpace medskip
19938 \begin_inset Newline newline
19942 \begin_inset space \hspace*{}
19947 \begin_inset space \hfill{}
19951 \begin_inset Tabular
19952 <lyxtabular version="3" rows="3" columns="1">
19953 <features tabularvalignment="middle">
19954 <column alignment="center" valignment="top">
19956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19959 \begin_layout Plain Layout
19966 <row topspace="3mm">
19967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19970 \begin_layout Plain Layout
19972 \begin_inset space \thinspace{}
19975 mm space top of row
19982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19985 \begin_layout Plain Layout
19997 \begin_inset space \hfill{}
20001 \begin_inset space \hspace*{}
20006 \begin_inset VSpace medskip
20010 \begin_inset Newline newline
20013 So inserting space in the top of row for normal tables is only useful when
20014 you don't have vertical lines.
20017 \begin_layout Description
20019 \begin_inset space ~
20023 \begin_inset space ~
20026 row will add space below the characters of the table row.
20027 If the table is a formal table \SpecialChar LyX
20028 will insert as default 0.5
20029 \begin_inset space \thinspace{}
20032 em space, for normal tables the default size is 2
20033 \begin_inset space \thinspace{}
20039 \begin_layout Description
20041 \begin_inset space ~
20044 rows adds space between the current and the following row.
20045 If the table is a formal table \SpecialChar LyX
20046 will insert as default 0.5
20047 \begin_inset space \thinspace{}
20051 For normal tables the inserted space will unfortunately destroy the vertical
20052 table lines as in the following table:
20053 \begin_inset VSpace medskip
20057 \begin_inset Newline newline
20061 \begin_inset space \hspace*{}
20066 \begin_inset space \hfill{}
20070 \begin_inset Tabular
20071 <lyxtabular version="3" rows="3" columns="1">
20072 <features tabularvalignment="middle">
20073 <column alignment="center" valignment="top">
20075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20078 \begin_layout Plain Layout
20085 <row interlinespace="3mm">
20086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20089 \begin_layout Plain Layout
20090 \begin_inset Formula $\downarrow$
20094 \begin_inset space \thinspace{}
20097 mm space between row
20098 \begin_inset Formula $\downarrow$
20108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20111 \begin_layout Plain Layout
20112 \begin_inset Formula $\uparrow$
20116 \begin_inset space \thinspace{}
20119 mm space between row
20120 \begin_inset Formula $\uparrow$
20134 \begin_inset space \hfill{}
20138 \begin_inset space \hspace*{}
20143 \begin_inset VSpace medskip
20147 \begin_inset Newline newline
20150 So inserting space between rows for normal tables is only useful when you
20151 don't have vertical lines.
20154 \begin_layout Standard
20155 \begin_inset VSpace bigskip
20158 When you want to add extra height to all cells of all tables, you can do
20159 this with the following preamble lines:
20162 \begin_layout Standard
20167 @ifundefined{extrarowheight}
20168 \begin_inset Newline newline
20172 \begin_inset Phantom HPhantom
20175 \begin_layout Plain Layout
20178 \begin_inset space ~
20188 usepackage{array}}{}
20189 \begin_inset Newline newline
20196 extrarowheight}{height}
20199 \begin_inset Note Note
20202 \begin_layout Plain Layout
20207 will be loaded automatically by \SpecialChar LyX
20208 when you use self defined table formats.
20209 To avoid that it being loaded twice the command
20215 is used in the above command.
20223 \begin_layout Standard
20228 can have one of the units listed in appendix
20229 \begin_inset space ~
20233 \begin_inset CommandInset ref
20235 reference "cha:Units-available-in"
20240 But this has the disadvantage that the cell texts are no longer exactly
20241 vertically centered.
20244 \begin_layout Standard
20245 If you are using font sizes larger than the normal size, the table borders
20246 are often too close to the letters.
20247 This can be corrected by inserting the command
20253 in \SpecialChar TeX
20254 Code at the beginning of a table row.
20256 \begin_inset space ~
20260 \begin_inset CommandInset ref
20262 reference "tab:Vertical-alignment-of"
20266 illustrates the effect.
20269 \begin_layout Standard
20271 \begin_inset Float table
20277 \begin_layout Plain Layout
20278 \begin_inset Caption Standard
20280 \begin_layout Plain Layout
20281 \begin_inset CommandInset label
20283 name "tab:Vertical-alignment-of"
20287 Vertical alignment of text with large font sizes.
20295 \begin_layout Plain Layout
20296 \begin_inset space \hfill{}
20300 \begin_inset Float table
20305 \begin_layout Plain Layout
20306 \begin_inset Caption Standard
20308 \begin_layout Plain Layout
20317 \begin_layout Plain Layout
20320 \begin_inset Tabular
20321 <lyxtabular version="3" rows="6" columns="1">
20322 <features tabularvalignment="middle">
20323 <column alignment="left" valignment="top">
20325 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20328 \begin_layout Plain Layout
20336 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20339 \begin_layout Plain Layout
20349 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20352 \begin_layout Plain Layout
20362 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20365 \begin_layout Plain Layout
20375 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20378 \begin_layout Plain Layout
20388 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20391 \begin_layout Plain Layout
20410 \begin_inset space \hfill{}
20414 \begin_inset Float table
20419 \begin_layout Plain Layout
20420 \begin_inset Caption Standard
20422 \begin_layout Plain Layout
20423 Table using the command
20437 \begin_layout Plain Layout
20440 \begin_inset Tabular
20441 <lyxtabular version="3" rows="6" columns="1">
20442 <features tabularvalignment="middle">
20443 <column alignment="left" valignment="top">
20445 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20448 \begin_layout Plain Layout
20456 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20459 \begin_layout Plain Layout
20465 \begin_layout Plain Layout
20481 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20484 \begin_layout Plain Layout
20490 \begin_layout Plain Layout
20506 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20509 \begin_layout Plain Layout
20515 \begin_layout Plain Layout
20531 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20534 \begin_layout Plain Layout
20540 \begin_layout Plain Layout
20556 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20559 \begin_layout Plain Layout
20565 \begin_layout Plain Layout
20592 \begin_inset space \hfill{}
20603 \begin_layout Subsection
20604 Special Cell Alignment
20605 \begin_inset CommandInset label
20607 name "subsec:Special-Cell-Alignment"
20612 \begin_inset Index idx
20615 \begin_layout Plain Layout
20616 Table Customization ! Special Cell Alignment
20624 \begin_layout Standard
20625 Sometimes it looks better when the cell entries of a column are aligned
20626 with a special character, e.
20627 \begin_inset space \thinspace{}
20631 \begin_inset space \space{}
20634 with the decimal separator as in Table
20635 \begin_inset space ~
20639 \begin_inset CommandInset ref
20641 reference "tab:Table-cells-align"
20646 This alignment is achieved by setting the cursor into the column and then
20647 either pressing the toolbar button
20650 arg "inset-modify tabular align-decimal"
20653 or setting the alignment in the table settings to
20656 \begin_inset space ~
20660 \begin_inset space ~
20666 The alignment character can be a character of your choice and is specified
20667 in the table settings.
20670 \begin_layout Standard
20671 \begin_inset Float table
20677 \begin_layout Plain Layout
20678 \begin_inset Caption Standard
20680 \begin_layout Plain Layout
20681 \begin_inset CommandInset label
20683 name "tab:Table-cells-align"
20687 Table cells of a column aligned with the decimal separator.
20695 \begin_layout Plain Layout
20697 \begin_inset Tabular
20698 <lyxtabular version="3" rows="4" columns="1">
20699 <features booktabs="true" tabularvalignment="middle">
20700 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20705 \begin_layout Plain Layout
20713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20716 \begin_layout Plain Layout
20724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20727 \begin_layout Plain Layout
20735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20738 \begin_layout Plain Layout
20757 \begin_layout Standard
20758 \begin_inset Float table
20764 \begin_layout Plain Layout
20765 \begin_inset Caption Standard
20767 \begin_layout Plain Layout
20768 \begin_inset CommandInset label
20770 name "tab:Table-align-operator"
20774 Table cells of a column aligned with the operators.
20782 \begin_layout Plain Layout
20784 \begin_inset Tabular
20785 <lyxtabular version="3" rows="4" columns="2">
20786 <features booktabs="true" tabularvalignment="middle">
20787 <column alignment="right" valignment="top" width="0pt">
20788 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20790 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20793 \begin_layout Plain Layout
20799 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20802 \begin_layout Plain Layout
20810 <cell alignment="center" valignment="top" usebox="none">
20813 \begin_layout Plain Layout
20814 \begin_inset Formula $12\,+$
20822 <cell alignment="center" valignment="top" usebox="none">
20825 \begin_layout Plain Layout
20826 \begin_inset Formula $\,6$
20836 <cell alignment="center" valignment="top" usebox="none">
20839 \begin_layout Plain Layout
20840 \begin_inset Formula $0\,-$
20848 <cell alignment="center" valignment="top" usebox="none">
20851 \begin_layout Plain Layout
20852 \begin_inset Formula $\,68$
20862 <cell alignment="center" valignment="top" usebox="none">
20865 \begin_layout Plain Layout
20866 \begin_inset Formula $-123\,/$
20874 <cell alignment="center" valignment="top" usebox="none">
20877 \begin_layout Plain Layout
20878 \begin_inset Formula $\,0$
20899 \begin_layout Standard
20900 For alignments at characters in formulas this method does not work because
20901 the field to specify the alignment character does not allow formulas.
20902 In this case one need to use the method from Table
20903 \begin_inset space ~
20907 \begin_inset CommandInset ref
20909 reference "tab:Table-align-operator"
20914 This table was created with a 4×2 table.
20915 The heading is a centered multicolumn.
20916 The first column is right-aligned and contains the first part including
20918 The second column is left aligned and contains the rest.
20919 A small space was added at the beginning of each cell of the second column
20920 to get the space that is usually around operators.
20921 To omit the space that is normally between two table columns, the following
20923 -argument was used for the second column:
20926 \begin_layout Standard
20932 \begin_layout Standard
20934 \begin_inset space ~
20938 \begin_inset CommandInset ref
20940 reference "tab:Several-table-cell"
20944 shows some example alignments.
20945 For the alignment with the relation sign, a small space was added like
20946 for the second column of Table
20947 \begin_inset space ~
20951 \begin_inset CommandInset ref
20953 reference "tab:Table-align-operator"
20960 \begin_layout Standard
20961 \begin_inset Float table
20967 \begin_layout Plain Layout
20968 \begin_inset Caption Standard
20970 \begin_layout Plain Layout
20971 \begin_inset CommandInset label
20973 name "tab:Several-table-cell"
20977 Several table cell alignments.
20985 \begin_layout Plain Layout
20987 \begin_inset Tabular
20988 <lyxtabular version="3" rows="4" columns="6">
20989 <features tabularvalignment="middle">
20990 <column alignment="right" valignment="top">
20991 <column alignment="left" valignment="top" special="@{}l">
20992 <column alignment="right" valignment="top">
20993 <column alignment="left" valignment="top" special="@{}l">
20994 <column alignment="right" valignment="top">
20995 <column alignment="left" valignment="top" special="@{}l">
20997 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21000 \begin_layout Plain Layout
21006 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21009 \begin_layout Plain Layout
21015 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21018 \begin_layout Plain Layout
21024 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21027 \begin_layout Plain Layout
21033 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21036 \begin_layout Plain Layout
21042 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21045 \begin_layout Plain Layout
21053 <cell alignment="center" valignment="top" usebox="none">
21056 \begin_layout Plain Layout
21062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21065 \begin_layout Plain Layout
21067 \begin_inset space \thinspace{}
21075 <cell alignment="center" valignment="top" usebox="none">
21078 \begin_layout Plain Layout
21079 \begin_inset Formula $10\cdot$
21087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21090 \begin_layout Plain Layout
21091 \begin_inset Formula $10^{\mbox{-}17}$
21099 <cell alignment="center" valignment="top" usebox="none">
21102 \begin_layout Plain Layout
21103 \begin_inset Formula $\Gamma(t)\propto$
21111 <cell alignment="center" valignment="top" usebox="none">
21114 \begin_layout Plain Layout
21115 \begin_inset Formula $\:\Upsilon(t)$
21125 <cell alignment="center" valignment="top" usebox="none">
21128 \begin_layout Plain Layout
21134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21137 \begin_layout Plain Layout
21139 \begin_inset space \thinspace{}
21147 <cell alignment="center" valignment="top" usebox="none">
21150 \begin_layout Plain Layout
21151 \begin_inset Formula $5.78\cdot$
21159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21162 \begin_layout Plain Layout
21163 \begin_inset Formula $10^{7}$
21171 <cell alignment="center" valignment="top" usebox="none">
21174 \begin_layout Plain Layout
21175 \begin_inset Formula $A\ne$
21183 <cell alignment="center" valignment="top" usebox="none">
21186 \begin_layout Plain Layout
21187 \begin_inset Formula $\:B_{\mathrm{red}}$
21197 <cell alignment="center" valignment="top" usebox="none">
21200 \begin_layout Plain Layout
21206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21209 \begin_layout Plain Layout
21211 \begin_inset space \thinspace{}
21219 <cell alignment="center" valignment="top" usebox="none">
21222 \begin_layout Plain Layout
21224 \begin_inset Formula $33.5\cdot$
21232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21235 \begin_layout Plain Layout
21236 \begin_inset Formula $10^{4}$
21244 <cell alignment="center" valignment="top" usebox="none">
21247 \begin_layout Plain Layout
21248 \begin_inset Formula $\sin(\alpha)\ge$
21256 <cell alignment="center" valignment="top" usebox="none">
21259 \begin_layout Plain Layout
21260 \begin_inset Formula $\:\sin(\beta)$
21281 \begin_layout Subsection
21282 Customized Cell/Column Format
21283 \begin_inset CommandInset label
21285 name "subsec:Customized-Format"
21290 \begin_inset Index idx
21293 \begin_layout Plain Layout
21294 Table Customization ! Cell/Column Format
21302 \begin_layout Standard
21303 Calculating the required width for normal columns as described in section
21304 \begin_inset space ~
21308 \begin_inset CommandInset ref
21310 reference "sec:Table-Width-Calculation"
21314 or for spanned columns as described in section
21315 \begin_inset space ~
21319 \begin_inset CommandInset ref
21321 reference "subsec:Multicolumn-Calculations"
21325 is very annoying if you have several tables where a calculation is necessary.
21326 To make life easier, you can define a cell/column format in the preamble,
21327 that can be used in all tables of the document.
21328 The format is defined with the command
21331 \begin_layout Standard
21336 newcolumntype{name of format}[number of arguments]{commands}
21339 \begin_layout Standard
21340 The format name may only consist of one letter.
21365 are predefined and cannot be used.
21366 But all letters are allowed as capitals.
21369 \begin_layout Standard
21370 \begin_inset VSpace medskip
21376 \begin_layout Standard
21377 For vertically and horizontally centered multicolumn cells with a fixed
21378 width you can define the cell format
21381 \begin_layout Standard
21386 newcolumntype{M}[1]{>{
21393 \begin_layout Standard
21400 avoids the problem of hyphenating the first word, as described in section
21401 \begin_inset space ~
21405 \begin_inset CommandInset ref
21407 reference "subsec:Multiple-Lines-in"
21412 Now you can simply enter
21415 \begin_layout Standard
21421 \begin_layout Standard
21427 in the table dialog to create a multicolumn.
21430 \begin_layout Standard
21431 \begin_inset VSpace bigskip
21437 \begin_layout Standard
21438 For cells spanned by a multicolumn cell, you can define the format
21441 \begin_layout Standard
21446 newcolumntype{S}[2]{>{
21451 \begin_inset Newline newline
21455 \begin_inset Phantom HPhantom
21458 \begin_layout Plain Layout
21472 arrayrulewidth)*(1-#2))/#2}}
21475 \begin_layout Standard
21476 This format uses equation
21477 \begin_inset CommandInset ref
21483 to calculate the required width so that each spanned cell has the same
21487 \begin_layout Standard
21491 \begin_layout Standard
21494 S{width of multicolumn cell}{number of spanned columns}
21497 \begin_layout Standard
21498 as \SpecialChar LaTeX
21499 -argument of the column.
21502 \begin_layout Standard
21503 \begin_inset VSpace bigskip
21509 \begin_layout Standard
21510 For colored columns, you can define
21513 \begin_layout Standard
21518 newcolumntype{K}[1]{>{
21525 \begin_layout Standard
21527 \begin_inset Quotes eld
21531 \begin_inset Quotes erd
21534 at the end creates a column with a flexible width whose text is horizontally
21539 \begin_layout Standard
21545 \begin_layout Standard
21546 as \SpecialChar LaTeX
21550 \begin_layout Standard
21551 \begin_inset VSpace bigskip
21557 \begin_layout Standard
21559 \begin_inset space ~
21563 \begin_inset CommandInset ref
21565 reference "tab:Table-using-user-defined"
21569 use the \SpecialChar LaTeX
21573 \begin_layout Standard
21579 \begin_layout Standard
21580 for the first column and the multicolumn,
21583 \begin_layout Standard
21589 \begin_layout Standard
21590 for the last column, and
21593 \begin_layout Standard
21599 \begin_layout Standard
21600 for the cells in the second column.
21603 \begin_layout Standard
21604 \begin_inset Float table
21610 \begin_layout Plain Layout
21611 \begin_inset Caption Standard
21613 \begin_layout Plain Layout
21614 \begin_inset CommandInset label
21616 name "tab:Table-using-user-defined"
21620 Table using user-defined table formats
21628 \begin_layout Plain Layout
21630 \begin_inset Tabular
21631 <lyxtabular version="3" rows="3" columns="4">
21632 <features tabularvalignment="middle">
21633 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21634 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21635 <column alignment="center" valignment="middle">
21636 <column alignment="center" valignment="middle" special="K{red}">
21638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21641 \begin_layout Plain Layout
21642 verylongtablecellword
21647 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21650 \begin_layout Plain Layout
21651 multiple lines multicolumn
21656 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21659 \begin_layout Plain Layout
21665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21668 \begin_layout Plain Layout
21676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21679 \begin_layout Plain Layout
21685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21688 \begin_layout Plain Layout
21694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21697 \begin_layout Plain Layout
21703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21706 \begin_layout Plain Layout
21714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21717 \begin_layout Plain Layout
21723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21726 \begin_layout Plain Layout
21732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21735 \begin_layout Plain Layout
21741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21744 \begin_layout Plain Layout
21763 \begin_layout Subsection
21765 \begin_inset CommandInset label
21767 name "subsec:Line-Thickness"
21772 \begin_inset Index idx
21775 \begin_layout Plain Layout
21776 Table Customization ! Line Thickness
21784 \begin_layout Standard
21785 The line thickness for all lines in a table can be adjusted with the length
21793 To set for example a line thickness of 1.5
21794 \begin_inset space \thinspace{}
21798 \begin_inset space ~
21802 \begin_inset CommandInset ref
21804 reference "tab:Table-with-1.5"
21808 , insert the command
21811 \begin_layout Standard
21818 arrayrulewidth}{1.5pt}
21821 \begin_layout Standard
21822 in \SpecialChar TeX
21823 Code before the table or table float.
21824 The changed thickness is valid for all subsequent tables.
21825 To use the default value again, set
21832 \begin_inset space \thinspace{}
21835 pt in \SpecialChar TeX
21836 Code after the table or table float.
21839 \begin_layout Standard
21843 \begin_layout Plain Layout
21849 arrayrulewidth}{1.5pt}
21855 \begin_inset Float table
21860 \begin_layout Plain Layout
21861 \begin_inset Caption Standard
21863 \begin_layout Plain Layout
21864 \begin_inset CommandInset label
21866 name "tab:Table-with-1.5"
21871 \begin_inset space \thinspace{}
21882 \begin_layout Plain Layout
21884 \begin_inset Tabular
21885 <lyxtabular version="3" rows="3" columns="3">
21886 <features tabularvalignment="middle">
21887 <column alignment="center" valignment="top">
21888 <column alignment="center" valignment="top">
21889 <column alignment="center" valignment="top">
21891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21894 \begin_layout Plain Layout
21900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21903 \begin_layout Plain Layout
21909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21912 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21923 \begin_layout Plain Layout
21929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21932 \begin_layout Plain Layout
21938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21941 \begin_layout Plain Layout
21949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21952 \begin_layout Plain Layout
21958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21961 \begin_layout Plain Layout
21967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21970 \begin_layout Plain Layout
21990 \begin_layout Plain Layout
21996 arrayrulewidth}{0.4pt}
22004 \begin_layout Standard
22005 \begin_inset VSpace bigskip
22008 To set the line thickness to 1.5
22009 \begin_inset space \thinspace{}
22012 pt only for horizontal lines, as in Table
22013 \begin_inset space ~
22017 \begin_inset CommandInset ref
22019 reference "tab:Table-with-horizontal"
22023 , insert these commands in \SpecialChar TeX
22024 Code before the table or table float:
22027 \begin_layout Standard
22037 \begin_inset Newline newline
22045 \begin_inset Newline newline
22054 arrayrulewidth 1.5pt}
22055 \begin_inset Newline newline
22066 arrayrulewidth 0.4pt}}
22069 \begin_layout Standard
22070 To return to the default line thickness, insert this command in \SpecialChar TeX
22072 the table or table float:
22075 \begin_layout Standard
22087 \begin_layout Standard
22091 \begin_layout Plain Layout
22102 \begin_layout Plain Layout
22111 \begin_layout Plain Layout
22119 arrayrulewidth 1.5pt}
22122 \begin_layout Plain Layout
22132 arrayrulewidth 0.4pt}}
22138 \begin_inset Float table
22143 \begin_layout Plain Layout
22144 \begin_inset Caption Standard
22146 \begin_layout Plain Layout
22147 \begin_inset CommandInset label
22149 name "tab:Table-with-horizontal"
22154 \begin_inset space \thinspace{}
22157 pt thick horizontal lines
22165 \begin_layout Plain Layout
22167 \begin_inset Tabular
22168 <lyxtabular version="3" rows="3" columns="3">
22169 <features tabularvalignment="middle">
22170 <column alignment="center" valignment="top">
22171 <column alignment="center" valignment="top">
22172 <column alignment="center" valignment="top">
22174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22177 \begin_layout Plain Layout
22183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22186 \begin_layout Plain Layout
22192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22195 \begin_layout Plain Layout
22203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22206 \begin_layout Plain Layout
22212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22215 \begin_layout Plain Layout
22221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22224 \begin_layout Plain Layout
22232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22235 \begin_layout Plain Layout
22241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22244 \begin_layout Plain Layout
22250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22253 \begin_layout Plain Layout
22273 \begin_layout Plain Layout
22289 \begin_layout Standard
22290 \begin_inset VSpace bigskip
22293 To set the line thickness to 1.5
22294 \begin_inset space \thinspace{}
22297 pt only for vertical lines, create the following column format in the document
22298 preamble, according to the description in section
22299 \begin_inset space ~
22303 \begin_inset CommandInset ref
22305 reference "subsec:Customized-Format"
22312 \begin_layout Standard
22317 newcolumntype{V}{!{
22319 vrule width 1.5pt}}
22322 \begin_layout Standard
22324 \begin_inset space ~
22328 \begin_inset CommandInset ref
22330 reference "tab:Table-with-vertical"
22334 the \SpecialChar LaTeX
22338 \begin_layout Standard
22344 \begin_layout Standard
22345 was used for the last column and
22348 \begin_layout Standard
22354 \begin_layout Standard
22355 for the other columns.
22358 \begin_layout Standard
22359 \begin_inset Float table
22364 \begin_layout Plain Layout
22365 \begin_inset Caption Standard
22367 \begin_layout Plain Layout
22368 \begin_inset CommandInset label
22370 name "tab:Table-with-vertical"
22375 \begin_inset space \thinspace{}
22378 pt thick vertical lines
22386 \begin_layout Plain Layout
22388 \begin_inset Tabular
22389 <lyxtabular version="3" rows="3" columns="3">
22390 <features tabularvalignment="middle">
22391 <column alignment="center" valignment="top" special="Vc">
22392 <column alignment="center" valignment="top" special="Vc">
22393 <column alignment="center" valignment="top" special="VcV">
22395 <cell alignment="center" valignment="top" topline="true" usebox="none">
22398 \begin_layout Plain Layout
22404 <cell alignment="center" valignment="top" topline="true" usebox="none">
22407 \begin_layout Plain Layout
22413 <cell alignment="center" valignment="top" topline="true" usebox="none">
22416 \begin_layout Plain Layout
22424 <cell alignment="center" valignment="top" topline="true" usebox="none">
22427 \begin_layout Plain Layout
22433 <cell alignment="center" valignment="top" topline="true" usebox="none">
22436 \begin_layout Plain Layout
22442 <cell alignment="center" valignment="top" topline="true" usebox="none">
22445 \begin_layout Plain Layout
22453 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22456 \begin_layout Plain Layout
22462 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22465 \begin_layout Plain Layout
22471 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22474 \begin_layout Plain Layout
22493 \begin_layout Subsection
22495 \begin_inset Index idx
22498 \begin_layout Plain Layout
22499 Table Customization ! Dashed Lines
22507 \begin_layout Standard
22511 \begin_layout Plain Layout
22521 \begin_inset Note Note
22524 \begin_layout Plain Layout
22525 The following section will only be displayed when the \SpecialChar LaTeX
22538 \begin_layout Standard
22539 \begin_inset Float table
22545 \begin_layout Plain Layout
22546 \begin_inset Caption Standard
22548 \begin_layout Plain Layout
22549 \begin_inset CommandInset label
22551 name "tab:Table-with-dashed"
22555 Table with dashed lines
22563 \begin_layout Plain Layout
22565 \begin_inset Tabular
22566 <lyxtabular version="3" rows="5" columns="5">
22567 <features tabularvalignment="middle">
22568 <column alignment="center" valignment="top">
22569 <column alignment="center" valignment="top">
22570 <column alignment="center" valignment="top" special=":c">
22571 <column alignment="center" valignment="top">
22572 <column alignment="center" valignment="top">
22574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22577 \begin_layout Plain Layout
22583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22586 \begin_layout Plain Layout
22592 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22595 \begin_layout Plain Layout
22601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22604 \begin_layout Plain Layout
22610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22613 \begin_layout Plain Layout
22621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22624 \begin_layout Plain Layout
22630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22633 \begin_layout Plain Layout
22639 <cell alignment="center" valignment="top" topline="true" usebox="none">
22642 \begin_layout Plain Layout
22648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22651 \begin_layout Plain Layout
22657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22660 \begin_layout Plain Layout
22668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22671 \begin_layout Plain Layout
22675 \begin_layout Plain Layout
22689 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22692 \begin_layout Plain Layout
22698 <cell alignment="center" valignment="top" usebox="none">
22701 \begin_layout Plain Layout
22707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22710 \begin_layout Plain Layout
22716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22719 \begin_layout Plain Layout
22727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22730 \begin_layout Plain Layout
22734 \begin_layout Plain Layout
22748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22751 \begin_layout Plain Layout
22757 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22760 \begin_layout Plain Layout
22766 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22769 \begin_layout Plain Layout
22775 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22778 \begin_layout Plain Layout
22786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22789 \begin_layout Plain Layout
22795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22798 \begin_layout Plain Layout
22804 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22807 \begin_layout Plain Layout
22813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22816 \begin_layout Plain Layout
22822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22825 \begin_layout Plain Layout
22844 \begin_layout Standard
22846 does not natively support dashed lines, so you have to use \SpecialChar TeX
22848 As a prerequisite the \SpecialChar LaTeX
22854 \begin_inset Index idx
22857 \begin_layout Plain Layout
22859 -packages ! arydshln
22864 must be loaded in the document preamble with the command
22867 \begin_layout Standard
22872 usepackage{arydshln}
22875 \begin_layout Standard
22876 To make a vertical line dashed, enter the colon
22877 \begin_inset Quotes eld
22881 \begin_inset Quotes erd
22884 together with the character for the horizontal alignment as \SpecialChar LaTeX
22886 the table cell dialog.
22889 \begin_layout Standard
22890 For a horizontal dashed line add the command
22893 \begin_layout Standard
22901 \begin_layout Standard
22902 in \SpecialChar TeX
22903 Code as first element of the first cell in the table row.
22906 \begin_layout Standard
22907 For dashed multicolumn lines use the command
22910 \begin_layout Standard
22915 cdashline{line number
22920 \begin_layout Standard
22921 in \SpecialChar TeX
22922 Code as the first element of the first cell in the table row.
22923 If you have for example a multicolumn spanning columns 2 to 4 and you want
22924 to have a dashed line above, add the command
22927 \begin_layout Standard
22935 \begin_layout Standard
22936 as the first element of the first cell in the row of the multicolumn.
22939 \begin_layout Standard
22940 \begin_inset VSpace bigskip
22946 \begin_layout Standard
22948 \begin_inset space ~
22952 \begin_inset CommandInset ref
22954 reference "tab:Table-with-dashed"
22959 \begin_inset Quotes eld
22967 \begin_inset Quotes erd
22970 as \SpecialChar LaTeX
22971 argument of the third column.
22972 The \SpecialChar TeX
22979 was inserted in the first cell of the third row and the \SpecialChar TeX
22981 \begin_inset Newline newline
22990 was inserted in the first cell of the fourth row.
22993 \begin_layout Standard
22994 \begin_inset VSpace bigskip
23000 \begin_layout Standard
23001 Tables with dashed lines can also be colored as shown by Table
23002 \begin_inset space ~
23006 \begin_inset CommandInset ref
23008 reference "tab:Colored-table-with"
23015 \begin_layout Standard
23019 \begin_layout Plain Layout
23025 arrayrulewidth}{1pt}
23031 \begin_inset Note Note
23034 \begin_layout Plain Layout
23035 thicker lines for better visualization of the line color
23043 \begin_layout Standard
23047 \begin_layout Plain Layout
23051 dashgapcolor{green}
23057 \begin_inset Note Note
23060 \begin_layout Plain Layout
23061 color gaps between dashes green
23069 \begin_layout Standard
23073 \begin_layout Plain Layout
23084 \begin_layout Plain Layout
23093 \begin_layout Plain Layout
23097 arrayrulecolor{red}
23101 arrayrulecolor{black}}
23107 \begin_inset Note Note
23110 \begin_layout Plain Layout
23111 color horizontal, dashed lines red
23119 \begin_layout Standard
23123 \begin_layout Plain Layout
23134 \begin_layout Plain Layout
23143 \begin_layout Plain Layout
23147 arrayrulecolor{yellow}
23151 arrayrulecolor{black}}
23157 \begin_inset Note Note
23160 \begin_layout Plain Layout
23161 color partial horizontal, dashed lines yellow
23169 \begin_layout Standard
23170 \begin_inset Float table
23176 \begin_layout Plain Layout
23177 \begin_inset Caption Standard
23179 \begin_layout Plain Layout
23180 \begin_inset CommandInset label
23182 name "tab:Colored-table-with"
23186 Colored table with dashed lines
23194 \begin_layout Plain Layout
23196 \begin_inset Tabular
23197 <lyxtabular version="3" rows="5" columns="5">
23198 <features tabularvalignment="middle">
23199 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23200 <column alignment="center" valignment="top" width="0pt">
23201 <column alignment="center" valignment="top" width="0pt" special=":c">
23202 <column alignment="center" valignment="top">
23203 <column alignment="center" valignment="top">
23205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23208 \begin_layout Plain Layout
23214 <cell alignment="center" valignment="top" topline="true" usebox="none">
23217 \begin_layout Plain Layout
23223 <cell alignment="center" valignment="top" topline="true" usebox="none">
23226 \begin_layout Plain Layout
23232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23235 \begin_layout Plain Layout
23241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23244 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23255 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" topline="true" usebox="none">
23264 \begin_layout Plain Layout
23270 <cell alignment="center" valignment="top" topline="true" usebox="none">
23273 \begin_layout Plain Layout
23279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23282 \begin_layout Plain Layout
23288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23291 \begin_layout Plain Layout
23299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23302 \begin_layout Plain Layout
23306 \begin_layout Plain Layout
23319 \begin_layout Plain Layout
23333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23336 \begin_layout Plain Layout
23342 <cell alignment="center" valignment="top" usebox="none">
23345 \begin_layout Plain Layout
23351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23354 \begin_layout Plain Layout
23360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23363 \begin_layout Plain Layout
23371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23374 \begin_layout Plain Layout
23378 \begin_layout Plain Layout
23392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23395 \begin_layout Plain Layout
23401 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23404 \begin_layout Plain Layout
23410 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23413 \begin_layout Plain Layout
23419 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23422 \begin_layout Plain Layout
23430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23433 \begin_layout Plain Layout
23439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23442 \begin_layout Plain Layout
23448 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23451 \begin_layout Plain Layout
23457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23460 \begin_layout Plain Layout
23466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23469 \begin_layout Plain Layout
23473 \begin_layout Plain Layout
23500 \begin_layout Standard
23504 \begin_layout Plain Layout
23518 \begin_inset Note Note
23521 \begin_layout Plain Layout
23530 \begin_layout Standard
23534 \begin_layout Plain Layout
23548 \begin_inset Note Note
23551 \begin_layout Plain Layout
23560 \begin_layout Standard
23564 \begin_layout Plain Layout
23574 \begin_inset Note Note
23577 \begin_layout Plain Layout
23586 \begin_layout Standard
23590 \begin_layout Plain Layout
23596 arrayrulewidth}{0.4pt}
23602 \begin_inset Note Note
23605 \begin_layout Plain Layout
23614 \begin_layout Standard
23615 The coloring of lines, columns and lines works as decribed in section
23616 \begin_inset space ~
23620 \begin_inset CommandInset ref
23622 reference "sec:Colored-Tables"
23627 Coloring horizontal lines works analogically as described there as well,
23628 one only needs to replace in the commands
23652 ; so one uses the command
23655 \begin_layout Standard
23665 \begin_inset Newline newline
23673 \begin_inset Newline newline
23677 \begin_inset Phantom HPhantom
23680 \begin_layout Plain Layout
23681 \begin_inset space ~
23691 arrayrulecolor{red}
23695 arrayrulecolor{black}}
23698 \begin_layout Standard
23708 \begin_layout Standard
23718 \begin_inset Newline newline
23726 \begin_inset Newline newline
23730 \begin_inset Phantom HPhantom
23733 \begin_layout Plain Layout
23734 \begin_inset space ~
23744 arrayrulecolor{red}
23748 arrayrulecolor{black}}
23751 \begin_layout Standard
23752 To get back the black line color, one needs to insert the following commands
23753 as \SpecialChar TeX
23754 Code behind the table:
23757 \begin_layout Standard
23765 \begin_layout Standard
23777 \begin_layout Standard
23785 \begin_layout Standard
23797 \begin_layout Standard
23798 To color the gaps between the dashes the command
23801 \begin_layout Standard
23806 dashgapcolor{color}
23809 \begin_layout Standard
23810 can be used in front of a table as \SpecialChar TeX
23812 color is hereby the name of a defined color.
23816 \begin_layout Standard
23824 \begin_layout Standard
23825 unsets the changes made by
23834 \begin_layout Standard
23835 \begin_inset Note Greyedout
23838 \begin_layout Plain Layout
23844 : If there are multiple commands in a cell, the command of
23848 needs to be the first one in the cell.
23854 \begin_inset space ~
23858 \begin_inset CommandInset ref
23860 reference "tab:Colored-table-with"
23884 \begin_layout Standard
23885 \begin_inset Note Greyedout
23888 \begin_layout Plain Layout
23894 The \SpecialChar LaTeX
23899 must be loaded in the document preamble before the \SpecialChar LaTeX
23905 \begin_inset Index idx
23908 \begin_layout Plain Layout
23910 -packages ! colortbl
23923 \begin_layout Standard
23927 \begin_layout Plain Layout
23937 \begin_inset Note Note
23940 \begin_layout Plain Layout
23941 The following will be displayed when the \SpecialChar LaTeX
23954 \begin_layout Standard
23955 You need to install the package
23959 to see the content of this section in the output.
23962 \begin_layout Standard
23966 \begin_layout Plain Layout
23978 \begin_layout Standard
23979 For more information about dashed lines see the documentation of
23984 \begin_inset CommandInset citation
23993 \begin_layout Chapter
23995 \begin_inset CommandInset label
24002 \begin_inset Index idx
24005 \begin_layout Plain Layout
24014 \begin_layout Section
24016 \begin_inset CommandInset label
24018 name "sec:FloatIntroduction"
24023 \begin_inset Index idx
24026 \begin_layout Plain Layout
24027 Floats ! Introduction
24035 \begin_layout Standard
24036 A float is a block of text associated with some sort of label, which doesn't
24037 have a fixed location.
24039 \begin_inset Quotes eld
24043 \begin_inset Quotes erd
24046 forward or backward a page or two, to wherever it fits best.
24054 \begin_inset space ~
24059 are also floats because they can float to the next page when there are
24060 too many notes on the page.
24063 \begin_layout Standard
24064 Floats allow a high quality layout.
24065 Images and tables can be spread evenly among the pages to avoid white space
24066 and pages without text.
24067 As the floating often destroys the context between the text and the image/table
24068 , every float can be referenced in the text.
24069 Floats are therefore numbered.
24070 Referencing is described in section
24071 \begin_inset space ~
24075 \begin_inset CommandInset ref
24077 reference "sec:Referencing-Floats"
24084 \begin_layout Standard
24085 To insert a float, use the menu
24087 Insert\SpecialChar menuseparator
24093 arg "float-insert figure"
24099 arg "float-insert table"
24107 inset, a box with a label.
24108 The label will automatically be translated to the document language in
24110 After the label you can insert the caption text.
24111 The image or table is inserted above or below the caption in a separate
24112 paragraph within the float.
24113 More about the caption placement is contained in section
24114 \begin_inset space ~
24118 \begin_inset CommandInset ref
24120 reference "sec:Caption-Placement"
24125 To keep your \SpecialChar LyX
24126 document readable, you can open and close the float box by
24127 left-clicking on the box label.
24128 A closed float box looks like this:
24129 \begin_inset Graphics
24130 filename clipart/float.png
24132 scaleBeforeRotation
24136 – a gray button with a red label.
24139 \begin_layout Standard
24140 It is recommended that you insert floats as separate standard paragraphs
24141 to avoid possible \SpecialChar LaTeX
24142 -errors that can occur when the surrounding text is specially
24146 \begin_layout Standard
24147 Existing figures or tables can be put into a float by highlighting them
24148 and then pressing the corresponding toolbar button for a new float.
24151 \begin_layout Section
24155 \begin_layout Standard
24156 Besides figure and table floats that are described in sections
24157 \begin_inset space ~
24161 \begin_inset CommandInset ref
24163 reference "sec:Figure-Floats"
24168 \begin_inset CommandInset ref
24170 reference "sec:Table-Floats"
24174 respectively, \SpecialChar LyX
24175 offers the float types
24184 The latter are explained in sec.
24185 \begin_inset space \thinspace{}
24189 \begin_inset CommandInset ref
24191 reference "sec:Wrap-Floats"
24198 \begin_layout Subsection
24200 \begin_inset Index idx
24203 \begin_layout Plain Layout
24204 Floats ! Algorithms
24212 \begin_layout Standard
24213 \begin_inset Float algorithm
24219 \begin_layout Plain Layout
24220 \begin_inset Caption Standard
24222 \begin_layout Plain Layout
24223 \begin_inset CommandInset label
24225 name "alg:Example-Algorithm-float"
24229 Example Algorithm float
24237 \begin_layout LyX-Code
24239 \begin_inset Newline newline
24242 Sum:= Sum + A(I); /*comment*/
24243 \begin_inset Newline newline
24247 \begin_inset VSpace -4mm
24258 \begin_layout Standard
24259 This float type is inserted with the menu
24261 Insert\SpecialChar menuseparator
24262 Float\SpecialChar menuseparator
24266 It is used for program codes and descriptions of algorithms and can be
24267 seen as an alternative to program code listings that are explained in chapter
24268 \begin_inset space ~
24272 \begin_inset CommandInset ref
24274 reference "cha:Program-Code-Listings"
24279 A possible environment for algorithms is the
24284 , described in \SpecialChar LyX
24291 \begin_inset space ~
24295 \begin_inset CommandInset ref
24297 reference "alg:Example-Algorithm-float"
24301 is an example of an algorithm float where -4
24302 \begin_inset space \thinspace{}
24305 mm vertical space was added at the end of the float to have the bottom rule
24306 exactly below the last text line.
24309 \begin_layout Standard
24310 The float label is not automatically translated into the document language.
24311 If your document is not in English, you have to do this manually by adding
24312 the following line to the document preamble
24317 \begin_layout Standard
24322 floatname{algorithm}{your
24323 \begin_inset space ~
24329 \begin_layout Standard
24333 \begin_inset space ~
24339 \begin_inset Quotes eld
24347 \begin_inset Quotes erd
24353 \begin_layout Standard
24354 To insert the list of algorithms you can use the menu
24356 Insert\SpecialChar menuseparator
24358 \begin_inset space \thinspace{}
24362 \begin_inset space \thinspace{}
24365 TOC\SpecialChar menuseparator
24368 when your document has the same language as \SpecialChar LyX
24370 In other cases use this command in \SpecialChar TeX
24374 \begin_layout Standard
24379 listof{algorithm}{your
24380 \begin_inset space ~
24386 \begin_layout Standard
24390 \begin_inset space ~
24396 \begin_inset Quotes eld
24404 \begin_inset Quotes erd
24410 \begin_layout Standard
24411 Algorithm floats are not by default numbered in the scheme
24412 \begin_inset Quotes eld
24416 \begin_inset Quotes erd
24419 as is the case for table and figure floats in many document-classes.
24420 To number algorithm floats in the same scheme, add this command to your
24424 \begin_layout Standard
24429 numberwithin{algorithm}{chapter}
24432 \begin_layout Standard
24433 To be able to use the command
24442 \begin_inset space ~
24447 in the document settings the option
24450 \begin_inset space ~
24454 \begin_inset space ~
24458 \begin_inset space ~
24466 \begin_layout Section
24468 \begin_inset Index idx
24471 \begin_layout Plain Layout
24480 \begin_layout Standard
24481 Floats are usually numbered either independently from the sections the floats
24482 are in, or in the scheme
24483 \begin_inset Quotes eld
24487 \begin_inset Quotes erd
24491 \begin_inset Quotes eld
24495 \begin_inset Quotes erd
24499 This depends on the document class used.
24502 \begin_layout Standard
24503 To change section-independent numbering, you can use this command in the
24507 \begin_layout Standard
24519 \begin_layout Standard
24526 is the command that prints the table number.
24527 For figure floats, the command would be
24540 in the command above prints the table number as a small roman number.
24543 \begin_layout Standard
24544 To change the numbering scheme for example to
24545 \begin_inset Quotes eld
24549 \begin_inset Quotes erd
24552 , use this command in the preamble:
24555 \begin_layout Standard
24560 numberwithin{table}{subsection}
24563 \begin_layout Standard
24564 To be able to use the command
24573 \begin_inset space ~
24578 in the document settings the option
24581 \begin_inset space ~
24585 \begin_inset space ~
24589 \begin_inset space ~
24597 \begin_layout Standard
24598 Please also have a look at section
24599 \begin_inset space ~
24603 \begin_inset CommandInset ref
24605 reference "subsec:Footnote-Numbering"
24609 for the details and important notes about the numbering commands.
24612 \begin_layout Section
24614 \begin_inset CommandInset label
24616 name "sec:Referencing-Floats"
24621 \begin_inset Index idx
24624 \begin_layout Plain Layout
24625 Floats ! References
24631 \begin_inset Index idx
24634 \begin_layout Plain Layout
24635 References ! to Floats
24643 \begin_layout Standard
24644 To reference a float, insert a label into its caption using the menu
24646 Insert\SpecialChar menuseparator
24649 or the toolbar button
24656 A grey label box like this one:
24657 \begin_inset Graphics
24658 filename clipart/label.png
24660 scaleBeforeRotation
24664 will be inserted and the label window pops up asking for the label text.
24666 offers as text the first words of the caption with a prefix.
24667 The prefix depends on the float type, e.
24668 \begin_inset space \thinspace{}
24672 \begin_inset space \space{}
24675 for figure floats the prefix will be "
24682 \begin_layout Standard
24683 The label is used as anchor and name for the reference.
24684 You can refer to the label using the menu
24686 Insert\SpecialChar menuseparator
24689 or the toolbar button
24692 arg "dialog-show-new-inset ref"
24696 The cross-reference window appears showing all labels of the document.
24697 If you have multiple \SpecialChar LyX
24698 documents opened, choose the one you are working
24699 on from the drop-list at the top of the dialog.
24700 You can now sort the labels alphabetically and then choose one.
24701 A grey cross-reference box like this one:
24702 \begin_inset Graphics
24703 filename clipart/reference.png
24705 scaleBeforeRotation
24710 At the position of the cross-reference box the float number will appear
24714 \begin_layout Standard
24715 It is recommended that you use a protected space between the cross-reference
24716 name and its number to avoid line breaks between them.
24717 If a cross-reference refers to a non-existing label, you will see two question
24718 marks in the output instead of the reference.
24721 \begin_layout Standard
24722 You can change labels at any time by clicking on the label box.
24723 References to the changed label will automatically update their links to
24724 the new label text.
24727 \begin_layout Standard
24731 \begin_inset space ~
24735 \begin_inset space ~
24740 in the cross-reference window sets the cursor before the referred label.
24741 The button text changes then to Go
24742 \begin_inset space ~
24745 Back and you can use it to set the cursor back to the cross-reference.
24748 \begin_layout Subsection
24749 Cross-Reference Formats
24750 \begin_inset CommandInset label
24752 name "subsec:Cross-Reference-Formats"
24757 \begin_inset Index idx
24760 \begin_layout Plain Layout
24761 References ! Formats
24769 \begin_layout Standard
24770 There are six varieties of cross-references:
24773 \begin_layout Description
24774 <reference>: prints the float number, this is the default:
24775 \begin_inset CommandInset ref
24777 reference "fig:Two-distorted-images"
24784 \begin_layout Description
24785 (<reference>): prints the float number within two parentheses, this is the
24786 style normally used to reference formulas, especially when the reference
24788 \begin_inset Quotes eld
24792 \begin_inset Quotes erd
24796 \begin_inset CommandInset ref
24805 \begin_layout Description
24806 <page>: prints the page number: Page
24807 \begin_inset space ~
24811 \begin_inset CommandInset ref
24812 LatexCommand pageref
24813 reference "fig:Two-distorted-images"
24820 \begin_layout Description
24822 \begin_inset space ~
24826 \begin_inset space ~
24829 <page>: prints the text "on page" and the page number:
24830 \begin_inset CommandInset ref
24831 LatexCommand vpageref
24832 reference "fig:Two-distorted-images"
24839 \begin_layout Description
24841 \begin_inset space ~
24845 \begin_inset space ~
24849 \begin_inset space ~
24852 <page>: prints the float number, the text "on page", and the page number:
24854 \begin_inset CommandInset ref
24856 reference "fig:Two-distorted-images"
24863 \begin_layout Description
24865 \begin_inset space ~
24868 reference: prints a self-defined cross-reference format.
24869 \begin_inset Newline newline
24873 \begin_inset Note Greyedout
24876 \begin_layout Plain Layout
24881 This feature is only available when you have the \SpecialChar LaTeX
24891 \begin_inset Index idx
24894 \begin_layout Plain Layout
24896 -packages ! prettyref
24902 \begin_inset Index idx
24905 \begin_layout Plain Layout
24907 -packages ! refstyle
24918 \begin_inset Newline newline
24921 You can select which \SpecialChar LaTeX
24922 -package should be used for this feature by setting
24925 Use refstyle (not prettyref) for cross-references
24929 Document\SpecialChar menuseparator
24930 Settings\SpecialChar menuseparator
24934 The format is specified by adding the command
24946 (refstyle) to the preamble of the document.
24947 For example redefining all references to figures (which have the label
24949 \begin_inset Quotes eld
24957 \begin_inset Quotes erd
24960 ) can be done with this command
24961 \begin_inset Newline newline
24968 newref{fig}{refcmd={Image on page
24973 \begin_inset Newline newline
24976 For more information about the format, have a look at the package documentations
24978 \begin_inset CommandInset citation
24980 key "prettyref,refstyle"
24987 \begin_layout Description
24989 \begin_inset space ~
24992 reference: prints the caption of the reference:
24993 \begin_inset CommandInset ref
24994 LatexCommand nameref
24995 reference "fig:Two-distorted-images"
25002 \begin_layout Standard
25007 will not print the page number if the label is on the previous, the same,
25010 \begin_inset space \thinspace{}
25014 \begin_inset space \space{}
25018 \begin_inset Quotes eld
25026 \begin_inset Quotes erd
25032 <reference> on page <page>
25034 will not print anything about the page if the label is on the same page.
25037 \begin_layout Standard
25038 The number and current page of the part of the document referred to in the
25039 output is automatically calculated by \SpecialChar LaTeX
25041 The varieties are adjusted in the field
25045 of the cross-reference window that appears when you click on the cross-referenc
25049 \begin_layout Standard
25050 \begin_inset Note Greyedout
25053 \begin_layout Plain Layout
25058 It is recommended to use the \SpecialChar LaTeX
25064 \begin_inset Index idx
25067 \begin_layout Plain Layout
25069 -packages ! refstyle
25079 \begin_inset Index idx
25082 \begin_layout Plain Layout
25084 -packages ! prettyref
25089 does not know all of \SpecialChar LyX
25090 's possible label shortcuts
25094 \begin_layout Plain Layout
25095 \begin_inset Quotes eld
25099 \begin_inset Quotes erd
25102 is for example \SpecialChar LyX
25103 's shortcut for labels in figure captions.
25108 and is not internationalized.
25116 \begin_layout Subsection
25117 Automatic Reference Naming
25118 \begin_inset Index idx
25121 \begin_layout Plain Layout
25122 References ! Automatic Reference Naming
25130 \begin_layout Standard
25131 The \SpecialChar LaTeX
25137 \begin_inset Index idx
25140 \begin_layout Plain Layout
25142 -packages ! hyperref
25147 , that is enabled in the
25155 dialog, provides a very useful feature that cross-references automatically
25156 include the name of the referenced floats (or text parts like
25161 So you will save having to write e.
25162 \begin_inset space \thinspace{}
25166 \begin_inset space \space{}
25170 \begin_inset Quotes eld
25174 \begin_inset Quotes erd
25177 before every reference to a figure.
25178 To use this feature, enable
25182 and insert this line to the \SpecialChar LaTeX
25186 \begin_layout Standard
25202 \begin_layout Standard
25203 When you prefer other reference names than the default ones, for example
25204 you want instead of
25205 \begin_inset Quotes eld
25209 \begin_inset Quotes erd
25213 \begin_inset Quotes eld
25217 \begin_inset space \thinspace{}
25221 \begin_inset Quotes eld
25224 , you can redefine the name by inserting this in the preamble:
25227 \begin_layout Standard
25238 sectionautorefname}
25239 \begin_inset Newline newline
25243 \begin_inset Phantom HPhantom
25246 \begin_layout Plain Layout
25249 \begin_inset space ~
25262 \begin_layout Standard
25263 When you are using another document language than English, replace
25264 \begin_inset Newline newline
25279 , where *** is the name of the language used.
25282 \begin_layout Standard
25283 To get automatic names, but not for certain reference types, for example
25284 not for equations, use this preamble code:
25287 \begin_layout Standard
25298 equationautorefname}[1]{}}
25301 \begin_layout Standard
25302 More about this topic can be found in
25307 \begin_inset CommandInset citation
25316 \begin_layout Standard
25317 \begin_inset Note Greyedout
25320 \begin_layout Plain Layout
25325 Automatic reference naming cannot be used when you use cross-references
25329 \begin_inset space ~
25334 style, as described in section
25335 \begin_inset space ~
25339 \begin_inset CommandInset ref
25341 reference "subsec:Cross-Reference-Formats"
25353 \begin_layout Standard
25358 manual is an example where automatic reference naming is used.
25361 \begin_layout Subsection
25363 \begin_inset CommandInset label
25365 name "subsec:Reference-Position"
25370 \begin_inset Index idx
25373 \begin_layout Plain Layout
25374 References ! Reference Position
25382 \begin_layout Standard
25388 \begin_inset Index idx
25391 \begin_layout Plain Layout
25393 -packages ! hyperref
25406 dialog to link cross-references in the output, you will see that clicking
25407 on an image float reference jumps to the image label.
25408 The caption will be the first text part on the screen, so that you cannot
25409 see the image without scrolling.
25410 This is because the reference link anchor is placed at the position of
25412 With the use of the package
25417 \begin_inset Index idx
25420 \begin_layout Plain Layout
25427 , which is part of the \SpecialChar LaTeX
25433 \begin_inset Index idx
25436 \begin_layout Plain Layout
25438 -packages ! oberdiek
25443 , the link anchor is placed at the beginning of a float.
25444 To use this feature for figure floats, load
25448 in the document preamble with the line
25451 \begin_layout Standard
25456 usepackage[figure]{hypcap}
25459 \begin_layout Standard
25464 for all float types but this is not recommended for stability reasons.
25465 For more information, have a look at
25470 \begin_inset CommandInset citation
25479 \begin_layout Standard
25480 \begin_inset Note Greyedout
25483 \begin_layout Plain Layout
25492 has no effect on references to subfigures.
25500 \begin_layout Section
25502 \begin_inset CommandInset label
25504 name "sec:Float-Placement"
25509 \begin_inset Index idx
25512 \begin_layout Plain Layout
25521 \begin_layout Standard
25522 Right-clicking on a float-box and clicking on
25526 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25528 positioning the float.
25529 \begin_inset Newline newline
25535 \begin_inset space ~
25540 is only useful for two-column documents: If you select it, the float will
25541 span both columns on the page instead of being confined to just one.
25542 \begin_inset Newline newline
25548 \begin_inset space ~
25553 is used to rotate floats, see section
25554 \begin_inset CommandInset ref
25556 reference "sec:Rotated-Floats"
25563 \begin_layout Standard
25564 You can use one or more of the following options in the float dialog to
25565 set the placement for a particular float when you uncheck the option
25568 \begin_inset space ~
25572 \begin_inset space ~
25580 \begin_layout Description
25582 \begin_inset space ~
25586 \begin_inset space ~
25589 possible try to place the float on the position where it has been inserted
25592 \begin_layout Description
25594 \begin_inset space ~
25598 \begin_inset space ~
25601 page try to place the float at the top of the current page
25604 \begin_layout Description
25606 \begin_inset space ~
25610 \begin_inset space ~
25613 page try to place the float at the bottom of the current page
25616 \begin_layout Description
25618 \begin_inset space ~
25622 \begin_inset space ~
25625 floats try to place the float on its own page
25628 \begin_layout Standard
25629 The order of the above option is
25633 used by \SpecialChar LaTeX
25635 That means, if you use the default placement, \SpecialChar LaTeX
25639 \begin_inset space ~
25643 \begin_inset space ~
25651 \begin_inset space ~
25655 \begin_inset space ~
25660 , and then the others.
25661 If you do not use the default, \SpecialChar LaTeX
25662 will try only the checked options but in
25665 \begin_inset space ~
25668 placements is possible the procedure is internally repeated trying to put
25669 the float on the following page.
25672 \begin_layout Standard
25673 By default, each option has its own rules:
25676 \begin_layout Labeling
25677 \labelwidthstring 00.00.0000
25681 \begin_inset space ~
25685 \begin_inset space ~
25690 only floats occupying less than 70
25691 \begin_inset space \thinspace{}
25694 % of the page can be placed at the top of a page (
25703 \begin_layout Labeling
25704 \labelwidthstring 00.00.0000
25708 \begin_inset space ~
25712 \begin_inset space ~
25717 : only floats occupying less than 30
25718 \begin_inset space \thinspace{}
25721 % of the page can be placed at the bottom of a page.
25731 \begin_layout Labeling
25732 \labelwidthstring 00.00.0000
25736 \begin_inset space ~
25740 \begin_inset space ~
25745 : only if more than 50
25746 \begin_inset space \thinspace{}
25749 % of the page is occupied by floats, several floats can be set together
25760 \begin_layout Standard
25761 If you don't like these rules, you can ignore them by using the additional
25765 \begin_inset space ~
25770 \begin_inset space ~
25776 \begin_inset Newline newline
25779 You can also redefine the rules with \SpecialChar LaTeX
25780 -commands that are given in parentheses
25781 after the rules description above.
25782 To increase for example the often too small default of the bottom-rule
25784 \begin_inset space \thinspace{}
25787 % of the page, add this line to your document preamble:
25790 \begin_layout Standard
25797 bottomfraction}{0.5}
25800 \begin_layout Standard
25801 Sometimes you might need, under all circumstances, a float to be placed
25802 exactly at the position where it is inserted.
25803 For this case you can use the option
25806 \begin_inset space ~
25812 Use this option very rarely and only if the document is almost ready to
25813 be printed, because the float is then no longer able to
25814 \begin_inset Quotes eld
25818 \begin_inset Quotes erd
25821 when you change your document and this will often destroy the page layout.
25824 \begin_layout Standard
25825 There are no placement options for text wrap floats, because they are always
25826 surrounded by the text of a certain paragraph.
25827 \begin_inset VSpace bigskip
25833 \begin_layout Standard
25834 Sometimes you have the problem that a float is placed at the top of a page
25835 while its corresponding section starts at the middle of the page, so that
25836 the reader could think the float is part of the previous section.
25837 To avoid this the \SpecialChar LaTeX
25845 It suppresses a given float placement for the page where it is inserted
25846 and can therefore be used to avoid floats being set before a section starts.
25847 To get this, add these commands to your document preamble:
25850 \begin_layout Standard
25860 \begin_inset Newline newline
25874 \begin_layout Standard
25875 You can define the same for all section headings, like chapters and subsections.
25876 This definition is not recommended to be used for small text parts like
25877 subsubsections because \SpecialChar LaTeX
25878 may then have problems finding a suitable placement.
25881 \begin_layout Standard
25882 \begin_inset VSpace bigskip
25885 In some cases it is required to have all figures/tables at the end of the
25887 For this purpose the \SpecialChar LaTeX
25893 \begin_inset Index idx
25896 \begin_layout Plain Layout
25898 -packages ! endfloat
25904 It puts all figure and table floats at the end of the document into their
25906 At the original float position a text hint like
25907 \begin_inset Quotes eld
25913 \begin_inset space ~
25919 \begin_inset Quotes erd
25923 The endfloat-package is loaded in the preamble with the line
25926 \begin_layout Standard
25931 usepackage[options]{endfloat}
25934 \begin_layout Standard
25935 There are various package options to format the created figure/table sections.
25936 For more information we refer you to the
25941 \begin_inset CommandInset citation
25948 \begin_inset Newline newline
25952 \begin_inset Note Greyedout
25955 \begin_layout Plain Layout
25960 doesn't provide an automatic translation for the text hint, you have to
25961 do this manually, see section
25962 \begin_inset space ~
25966 \begin_inset CommandInset citation
25978 \begin_inset Newline newline
25982 \begin_inset Note Greyedout
25985 \begin_layout Plain Layout
25990 There is currently a bug in
25994 when the caption contains a German
25995 \begin_inset Quotes eld
25999 \begin_inset Quotes erd
26003 Use in this case the command
26004 \begin_inset Quotes eld
26014 \begin_inset Quotes erd
26017 in \SpecialChar TeX
26019 \begin_inset Quotes eld
26023 \begin_inset Quotes erd
26034 \begin_layout Standard
26035 \begin_inset VSpace bigskip
26038 For more details about float placements, have a look at \SpecialChar LaTeX
26040 \begin_inset CommandInset citation
26042 key "latexcompanion,latexguide,latexbook"
26049 \begin_layout Section
26051 \begin_inset CommandInset label
26053 name "sec:Rotated-Floats"
26058 \begin_inset Index idx
26061 \begin_layout Plain Layout
26070 \begin_layout Standard
26071 Especially for wide tables you might have floats rotated.
26072 To rotate a whole float including the caption, right-click on the float-box
26076 \begin_inset space ~
26084 \begin_layout Standard
26085 Rotated floats are always placed on a page of their own (or column of their
26086 own; in case you have a multi-column document).
26087 You can let them span several columns using the float settings option
26090 \begin_inset space ~
26096 Floats are rotated so that you can read them from the outside margin.
26097 To force a certain rotation direction for all pages, you can add either
26106 to the document class options.
26109 \begin_layout Standard
26110 Referencing rotated floats is the same as for normal floats, the caption
26111 format is also the same: Table
26112 \begin_inset space ~
26116 \begin_inset CommandInset ref
26118 reference "tab:Rotated-table"
26122 is an example of a rotated table float.
26125 \begin_layout Standard
26126 \begin_inset Note Greyedout
26129 \begin_layout Plain Layout
26134 Not all DVI-viewers are able to display rotated floats.
26142 \begin_layout Standard
26143 \begin_inset Float table
26148 \begin_layout Plain Layout
26149 \begin_inset Caption Standard
26151 \begin_layout Plain Layout
26152 \begin_inset CommandInset label
26154 name "tab:Rotated-table"
26166 \begin_layout Plain Layout
26168 \begin_inset Tabular
26169 <lyxtabular version="3" rows="1" columns="5">
26170 <features tabularvalignment="middle">
26171 <column alignment="center" valignment="top">
26172 <column alignment="center" valignment="top">
26173 <column alignment="center" valignment="top">
26174 <column alignment="center" valignment="top">
26175 <column alignment="center" valignment="top">
26177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26180 \begin_layout Plain Layout
26186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26189 \begin_layout Plain Layout
26195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26198 \begin_layout Plain Layout
26204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26207 \begin_layout Plain Layout
26213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26216 \begin_layout Plain Layout
26235 \begin_layout Section
26237 \begin_inset Index idx
26240 \begin_layout Plain Layout
26249 \begin_layout Standard
26250 Subfloats are for example used when a figure consists of several images.
26251 They are created by inserting a float into an existing float.
26252 The placement of the subfloats can be controlled in the same way as for
26253 paragraphs as shown in table
26254 \begin_inset space ~
26258 \begin_inset CommandInset ref
26260 reference "tab:Two-subtables-side"
26265 \begin_inset CommandInset ref
26267 reference "tab:Two-subtables-upon"
26274 \begin_layout Standard
26275 Referencing subfloats works as for normal floats: Table
26276 \begin_inset space ~
26280 \begin_inset CommandInset ref
26282 reference "tab:This-is-subtable-a"
26287 \begin_inset CommandInset ref
26289 reference "tab:This-is-subtable-b"
26293 are subtables of table
26294 \begin_inset space ~
26298 \begin_inset CommandInset ref
26300 reference "tab:Two-subtables-side"
26307 \begin_layout Standard
26308 \begin_inset Float table
26313 \begin_layout Plain Layout
26314 \begin_inset Caption Standard
26316 \begin_layout Plain Layout
26317 \begin_inset CommandInset label
26319 name "tab:Two-subtables-side"
26323 Two subtables placed side by side.
26331 \begin_layout Plain Layout
26333 \begin_inset space \hfill{}
26337 \begin_inset Float table
26342 \begin_layout Plain Layout
26343 \begin_inset Caption Standard
26345 \begin_layout Plain Layout
26346 \begin_inset CommandInset label
26348 name "tab:This-is-subtable-a"
26352 This is subtable a.
26360 \begin_layout Plain Layout
26362 \begin_inset Tabular
26363 <lyxtabular version="3" rows="1" columns="5">
26364 <features tabularvalignment="middle">
26365 <column alignment="center" valignment="top">
26366 <column alignment="center" valignment="top">
26367 <column alignment="center" valignment="top">
26368 <column alignment="center" valignment="top">
26369 <column alignment="center" valignment="top">
26371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26374 \begin_layout Plain Layout
26380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26383 \begin_layout Plain Layout
26389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26392 \begin_layout Plain Layout
26398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26401 \begin_layout Plain Layout
26407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26410 \begin_layout Plain Layout
26427 \begin_inset space \hfill{}
26431 \begin_inset Float table
26436 \begin_layout Plain Layout
26437 \begin_inset Caption Standard
26439 \begin_layout Plain Layout
26440 \begin_inset CommandInset label
26442 name "tab:This-is-subtable-b"
26446 This is subtable b.
26454 \begin_layout Plain Layout
26456 \begin_inset Tabular
26457 <lyxtabular version="3" rows="1" columns="5">
26458 <features tabularvalignment="middle">
26459 <column alignment="center" valignment="top">
26460 <column alignment="center" valignment="top">
26461 <column alignment="center" valignment="top">
26462 <column alignment="center" valignment="top">
26463 <column alignment="center" valignment="top">
26465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26468 \begin_layout Plain Layout
26474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26477 \begin_layout Plain Layout
26483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26486 \begin_layout Plain Layout
26492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26495 \begin_layout Plain Layout
26501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26504 \begin_layout Plain Layout
26521 \begin_inset space \hfill{}
26532 \begin_layout Standard
26533 \begin_inset Float table
26538 \begin_layout Plain Layout
26539 \begin_inset Caption Standard
26541 \begin_layout Plain Layout
26542 \begin_inset CommandInset label
26544 name "tab:Two-subtables-upon"
26548 Two subtables placed one above the other.
26549 (a) table with 4 cells, (b) table with 5 cells.
26557 \begin_layout Plain Layout
26559 \begin_inset Float table
26564 \begin_layout Plain Layout
26565 \begin_inset Caption Standard
26567 \begin_layout Plain Layout
26576 \begin_layout Plain Layout
26578 \begin_inset Tabular
26579 <lyxtabular version="3" rows="1" columns="4">
26580 <features tabularvalignment="middle">
26581 <column alignment="center" valignment="top">
26582 <column alignment="center" valignment="top">
26583 <column alignment="center" valignment="top">
26584 <column alignment="center" valignment="top">
26586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26589 \begin_layout Plain Layout
26595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26598 \begin_layout Plain Layout
26604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26607 \begin_layout Plain Layout
26613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26616 \begin_layout Plain Layout
26635 \begin_layout Plain Layout
26637 \begin_inset Float table
26642 \begin_layout Plain Layout
26643 \begin_inset Caption Standard
26645 \begin_layout Plain Layout
26654 \begin_layout Plain Layout
26656 \begin_inset Tabular
26657 <lyxtabular version="3" rows="1" columns="5">
26658 <features tabularvalignment="middle">
26659 <column alignment="center" valignment="top">
26660 <column alignment="center" valignment="top">
26661 <column alignment="center" valignment="top">
26662 <column alignment="center" valignment="top">
26663 <column alignment="center" valignment="top">
26665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26668 \begin_layout Plain Layout
26674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26677 \begin_layout Plain Layout
26683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26686 \begin_layout Plain Layout
26692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26695 \begin_layout Plain Layout
26701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26704 \begin_layout Plain Layout
26728 \begin_layout Section
26729 Floats Side by Side
26730 \begin_inset Index idx
26733 \begin_layout Plain Layout
26734 Floats ! Side by side
26742 \begin_layout Standard
26743 To place floats side by side, as in Figures
26744 \begin_inset space ~
26748 \begin_inset CommandInset ref
26750 reference "fig:Float-left"
26755 \begin_inset CommandInset ref
26757 reference "fig:Float-right"
26766 In it two minipage boxes are inserted.
26770 \begin_layout Plain Layout
26771 Minipages are explained in section
26772 \begin_inset space ~
26776 \begin_inset CommandInset ref
26778 reference "sec:Minipages"
26787 The width is set to 45
26788 \begin_inset space \thinspace{}
26792 \begin_inset space \thinspace{}
26795 column% and the box alignment to
26800 The minipage boxes contain the image and the caption in the same way as
26801 they are in a float.
26802 The only difference is that the image unit
26805 \begin_inset space ~
26809 \begin_inset space ~
26814 is now calculated according to the width of the minipage boxes.
26817 \begin_layout Standard
26818 \begin_inset Float figure
26823 \begin_layout Plain Layout
26824 \begin_inset Box Frameless
26834 height_special "totalheight"
26839 backgroundcolor "none"
26842 \begin_layout Plain Layout
26844 \begin_inset Graphics
26845 filename clipart/mobius.eps
26848 scaleBeforeRotation
26855 \begin_layout Plain Layout
26856 \begin_inset Caption Standard
26858 \begin_layout Plain Layout
26859 \begin_inset CommandInset label
26861 name "fig:Float-left"
26865 Float on the left side.
26876 \begin_inset space \hfill{}
26880 \begin_inset Box Frameless
26890 height_special "totalheight"
26895 backgroundcolor "none"
26898 \begin_layout Plain Layout
26900 \begin_inset Graphics
26901 filename clipart/platypus.eps
26904 scaleBeforeRotation
26911 \begin_layout Plain Layout
26912 \begin_inset Caption Standard
26914 \begin_layout Plain Layout
26915 \begin_inset CommandInset label
26917 name "fig:Float-right"
26921 Float on the right side.
26939 \begin_layout Standard
26940 An alternative and simpler solution is to use the module
26942 Variable-width Minipages
26945 \begin_inset space \thinspace{}
26949 \begin_inset CommandInset ref
26951 reference "sec:Minipages"
26956 Variable-width minipages adapt automatically to the width of the figures
26958 They do not require an explicit width to be given, and they improve the
26959 horizontal alignment of the figures.
26960 The LyX example file
26962 varwidth-floats-side-by-side
26964 gives examples of how to do this.
26967 \begin_layout Section
26969 \begin_inset Index idx
26972 \begin_layout Plain Layout
26973 Caption ! Formatting
26979 \begin_inset Index idx
26982 \begin_layout Plain Layout
26983 Floats ! Caption Formatting
26989 \begin_inset CommandInset label
26991 name "sec:Caption-Formatting"
26998 \begin_layout Standard
27003 environment is the default paragraph environment for
27008 On the \SpecialChar LyX
27009 screen captions appear as a label, e.
27010 \begin_inset space \thinspace{}
27014 \begin_inset space \space{}
27018 \begin_inset Quotes eld
27026 \begin_inset Quotes erd
27029 followed by the caption text.
27031 \begin_inset Quotes eld
27035 \begin_inset Quotes erd
27038 is the actual reference number.
27039 By default the label and the number are in the same font as the caption
27040 text and a colon follows the number to divide the label from the text.
27041 This caption format is suitable for many but not all documents.
27045 \begin_layout Standard
27046 To change the default caption format, load the \SpecialChar LaTeX
27052 \begin_inset Index idx
27055 \begin_layout Plain Layout
27057 -packages ! caption
27062 in the document preamble with this line:
27065 \begin_layout Standard
27070 usepackage[format definition]{caption}
27073 \begin_layout Standard
27074 To have for example the label and the number in sans-serif, bold font and
27075 the table captions always above the table as in this document, use the
27079 \begin_layout Standard
27084 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27087 \begin_layout Standard
27088 You can also define different caption formats for the different float types.
27089 In this case load the
27093 package without format specific options and define the different formats
27094 with the help of the command
27097 \begin_layout Standard
27102 captionsetup[float type]{format definition}
27105 \begin_layout Standard
27106 in the document preamble.
27107 For example the caption formats of Figure
27108 \begin_inset space ~
27112 \begin_inset CommandInset ref
27114 reference "fig:This-is-an-fig"
27119 \begin_inset space ~
27123 \begin_inset CommandInset ref
27125 reference "tab:This-is-an-tab"
27129 can be created using these commands in the document preamble:
27132 \begin_layout Standard
27137 usepackage[tableposition=top]{caption}
27140 \begin_inset Newline newline
27147 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27148 \begin_inset Newline newline
27152 \begin_inset Phantom HPhantom
27155 \begin_layout Plain Layout
27160 captionsetup[figure]{
27166 \begin_inset Newline newline
27171 captionsetup[table]{labelfont={bf,sf}}
27174 \begin_layout Standard
27175 \begin_inset Note Greyedout
27178 \begin_layout Plain Layout
27187 has no effect when a
27192 \begin_inset Index idx
27195 \begin_layout Plain Layout
27197 -packages ! KOMA-Script
27202 document class is used.
27203 In this case the document class option
27205 captions=tableheading
27215 \begin_layout Standard
27216 For more information about the package
27220 we refer to its documentation
27221 \begin_inset CommandInset citation
27230 \begin_layout Standard
27231 To change the label name from e.
27232 \begin_inset space \thinspace{}
27236 \begin_inset space \space{}
27240 \begin_inset Quotes eld
27244 \begin_inset Quotes erd
27248 \begin_inset Quotes eld
27252 \begin_inset Quotes erd
27255 use this preamble command:
27258 \begin_layout Standard
27265 fnum@figure}{Image~
27270 \begin_layout Standard
27277 inserts the figure number and
27280 \begin_inset Quotes eld
27286 \begin_inset Quotes erd
27289 creates a protected space.
27292 \begin_layout Standard
27293 \begin_inset VSpace bigskip
27301 \begin_inset Index idx
27304 \begin_layout Plain Layout
27306 -packages ! KOMA-Script
27313 article (KOMA-Script)
27321 letter (KOMA-Script)
27325 report (KOMA-Script)
27328 \begin_inset space \thinspace{}
27331 ), you can alternatively to the
27339 's built-in command
27346 For example, to have the caption label in bold, add this command to your
27350 \begin_layout Standard
27355 setkomafont{captionlabel}{
27360 \begin_layout Standard
27361 For more information about
27372 \begin_inset CommandInset citation
27381 \begin_layout Standard
27385 \begin_layout Plain Layout
27389 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27396 \begin_inset Note Note
27399 \begin_layout Plain Layout
27400 The caption format is changed only for this example.
27408 \begin_layout Standard
27409 \begin_inset Float figure
27415 \begin_layout Plain Layout
27417 \begin_inset Graphics
27418 filename clipart/mobius.eps
27421 scaleBeforeRotation
27428 \begin_layout Plain Layout
27429 \begin_inset Caption Standard
27431 \begin_layout Plain Layout
27432 \begin_inset CommandInset label
27434 name "fig:This-is-an-fig"
27438 This is an example figure caption that is longer than one line to show the
27439 different caption format.
27440 Here a self-defined caption format is used.
27453 \begin_layout Standard
27457 \begin_layout Plain Layout
27461 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27470 \begin_layout Standard
27471 \begin_inset Float table
27477 \begin_layout Plain Layout
27478 \begin_inset Caption Standard
27480 \begin_layout Plain Layout
27481 \begin_inset CommandInset label
27483 name "tab:This-is-an-tab"
27487 This is an example table caption that is longer than one line to show the
27488 different caption format.
27489 Here the standard caption format for tables in this document is used.
27497 \begin_layout Plain Layout
27499 \begin_inset Tabular
27500 <lyxtabular version="3" rows="1" columns="5">
27501 <features tabularvalignment="middle">
27502 <column alignment="center" valignment="top">
27503 <column alignment="center" valignment="top">
27504 <column alignment="center" valignment="top">
27505 <column alignment="center" valignment="top">
27506 <column alignment="center" valignment="top">
27508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27511 \begin_layout Plain Layout
27517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27520 \begin_layout Plain Layout
27526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27529 \begin_layout Plain Layout
27535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27538 \begin_layout Plain Layout
27544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27547 \begin_layout Plain Layout
27566 \begin_layout Section
27568 \begin_inset Index idx
27571 \begin_layout Plain Layout
27572 Caption ! Placement
27578 \begin_inset Index idx
27581 \begin_layout Plain Layout
27582 Floats ! Caption Placement
27588 \begin_inset CommandInset label
27590 name "sec:Caption-Placement"
27597 \begin_layout Standard
27598 The common caption placement rule is:
27601 \begin_layout Description
27602 Figure: Caption is set below the figure
27605 \begin_layout Description
27606 Table: Caption is set above the table
27609 \begin_layout Standard
27610 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27613 That means if you are using the document classes
27629 there will be no space between the caption and the table.
27630 To insert the necessary space, load the \SpecialChar LaTeX
27636 \begin_inset Index idx
27639 \begin_layout Plain Layout
27641 -packages ! caption
27646 in your document preamble with the option
27650 \begin_layout Plain Layout
27652 \begin_inset space ~
27656 \begin_inset CommandInset ref
27658 reference "sec:Caption-Formatting"
27662 for more information of the package
27674 \begin_layout Standard
27680 \begin_layout Standard
27686 \begin_inset Index idx
27689 \begin_layout Plain Layout
27691 -packages ! KOMA-Script
27698 article (KOMA-Script)
27706 letter (KOMA-Script)
27710 report (KOMA-Script)
27713 \begin_inset space \thinspace{}
27716 ), you can alternatively to the
27720 package set the document class option
27724 \begin_layout Plain Layout
27725 That option is used in this document.
27733 \begin_layout Standard
27736 captions=tableheading
27739 \begin_layout Standard
27740 In documents with a KOMA-Script document class you can also right-click
27741 on a caption and mark in the context menu if this should be a caption above
27742 or below the table/figure.
27743 This way you can override the document-wide caption placement for certain
27746 \begin_inset space ~
27750 \begin_inset CommandInset ref
27752 reference "tab:A-caption-marked"
27756 is an example where the caption is marked a being below the table while
27758 For comparison the caption in Table
27759 \begin_inset space ~
27763 \begin_inset CommandInset ref
27765 reference "tab:A-standard-table"
27772 \begin_layout Standard
27773 \begin_inset Float table
27778 \begin_layout Plain Layout
27779 \begin_inset Caption Below
27781 \begin_layout Plain Layout
27782 \begin_inset CommandInset label
27784 name "tab:A-caption-marked"
27788 A caption marked as being below the table.
27796 \begin_layout Plain Layout
27798 \begin_inset Tabular
27799 <lyxtabular version="3" rows="3" columns="3">
27800 <features tabularvalignment="middle">
27801 <column alignment="center" valignment="top" width="0pt">
27802 <column alignment="center" valignment="top" width="0pt">
27803 <column alignment="center" valignment="top" width="0pt">
27805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27808 \begin_layout Plain Layout
27814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27817 \begin_layout Plain Layout
27823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27826 \begin_layout Plain Layout
27834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27837 \begin_layout Plain Layout
27843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27846 \begin_layout Plain Layout
27852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27855 \begin_layout Plain Layout
27863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27866 \begin_layout Plain Layout
27867 \begin_inset Formula $\int x^{2}dx$
27875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27878 \begin_layout Plain Layout
27879 \begin_inset Formula $\left[\begin{array}{cc}
27882 \end{array}\right]$
27890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27893 \begin_layout Plain Layout
27894 \begin_inset Formula $1+1=2$
27915 \begin_layout Standard
27916 \begin_inset Float table
27921 \begin_layout Plain Layout
27922 \begin_inset Caption Standard
27924 \begin_layout Plain Layout
27925 \begin_inset CommandInset label
27927 name "tab:A-standard-table"
27931 A standard table caption.
27939 \begin_layout Plain Layout
27941 \begin_inset Tabular
27942 <lyxtabular version="3" rows="3" columns="3">
27943 <features tabularvalignment="middle">
27944 <column alignment="center" valignment="top" width="0pt">
27945 <column alignment="center" valignment="top" width="0pt">
27946 <column alignment="center" valignment="top" width="0pt">
27948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27951 \begin_layout Plain Layout
27957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27960 \begin_layout Plain Layout
27966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27969 \begin_layout Plain Layout
27977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27980 \begin_layout Plain Layout
27986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27989 \begin_layout Plain Layout
27995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27998 \begin_layout Plain Layout
28006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28009 \begin_layout Plain Layout
28010 \begin_inset Formula $\int x^{2}dx$
28018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28021 \begin_layout Plain Layout
28022 \begin_inset Formula $\left[\begin{array}{cc}
28025 \end{array}\right]$
28033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28036 \begin_layout Plain Layout
28037 \begin_inset Formula $1+1=2$
28058 \begin_layout Standard
28059 \begin_inset VSpace bigskip
28062 It is also possible to set the caption beside a figure or table.
28063 To get this the \SpecialChar LaTeX
28069 \begin_inset Index idx
28072 \begin_layout Plain Layout
28074 -packages ! sidecap
28079 has to be loaded in the document preamble with the line
28082 \begin_layout Standard
28087 usepackage[option]{sidecap}
28090 \begin_layout Standard
28091 If you set no option, the caption is placed on the side of the outer page
28092 margin – to the right on odd pages, to the left on even pages.
28093 You can change the placement to inner margin with the option
28098 To force the placement always to the right or left, use the option
28109 \begin_layout Standard
28113 \begin_layout Plain Layout
28123 \begin_inset Note Note
28126 \begin_layout Plain Layout
28127 The following section will only be displayed when the \SpecialChar LaTeX
28140 \begin_layout Standard
28141 To place in \SpecialChar LyX
28142 the caption of a float on the side, it is necessary to add
28143 these commands to the document preamble:
28146 \begin_layout Standard
28148 \begin_inset CommandInset line
28159 \begin_layout Standard
28166 TabBesBeg}[1][1.0]{%
28167 \begin_inset Newline newline
28171 \begin_inset Phantom HPhantom
28174 \begin_layout Plain Layout
28175 \begin_inset space ~
28190 \begin_inset Newline newline
28194 \begin_inset Phantom HPhantom
28197 \begin_layout Plain Layout
28200 \begin_inset space ~
28215 \begin_inset Newline newline
28219 \begin_inset Phantom HPhantom
28222 \begin_layout Plain Layout
28225 \begin_inset space ~
28235 renewenvironment{table}[1]{
28237 begin{SCtable}[#1]##1}{
28242 \begin_layout Standard
28250 \begin_inset Newline newline
28254 \begin_inset Phantom HPhantom
28257 \begin_layout Plain Layout
28258 \begin_inset space ~
28273 \begin_inset Newline newline
28277 \begin_inset Phantom HPhantom
28280 \begin_layout Plain Layout
28281 \begin_inset space ~
28298 \begin_layout Standard
28305 FigBesBeg}[1][1.0]{%
28306 \begin_inset Newline newline
28310 \begin_inset Phantom HPhantom
28313 \begin_layout Plain Layout
28314 \begin_inset space ~
28329 \begin_inset Newline newline
28333 \begin_inset Phantom HPhantom
28336 \begin_layout Plain Layout
28337 \begin_inset space ~
28352 \begin_inset Newline newline
28356 \begin_inset Phantom HPhantom
28359 \begin_layout Plain Layout
28360 \begin_inset space ~
28370 renewenvironment{figure}[1]{
28372 begin{SCfigure}[#1]##1}{
28377 \begin_layout Standard
28385 \begin_inset Newline newline
28389 \begin_inset Phantom HPhantom
28392 \begin_layout Plain Layout
28393 \begin_inset space ~
28408 \begin_inset Newline newline
28412 \begin_inset Phantom HPhantom
28415 \begin_layout Plain Layout
28416 \begin_inset space ~
28433 \begin_layout Standard
28435 \begin_inset CommandInset line
28446 \begin_layout Standard
28447 The commands allow you to redefine the floats so that the caption is set
28449 For figure floats use the command
28452 \begin_layout Standard
28460 \begin_layout Standard
28461 in \SpecialChar TeX
28462 Code before the float.
28463 And insert the command
28466 \begin_layout Standard
28474 \begin_layout Standard
28475 in \SpecialChar TeX
28476 Code at the point where you want to get back to the original float definitio
28480 \begin_layout Standard
28481 For table floats use the corresponding commands
28484 \begin_layout Standard
28498 \begin_layout Standard
28500 \begin_inset space ~
28504 \begin_inset CommandInset ref
28506 reference "fig:cap-beside-fig"
28511 \begin_inset space ~
28515 \begin_inset CommandInset ref
28517 reference "tab:cap-beside-tab"
28521 are examples where the caption is set beside.
28524 \begin_layout Standard
28525 You can see in the examples that the caption text appears at the top of
28526 the floats for table floats and at the bottom for figure floats.
28527 To change this, you can use the command
28530 \begin_layout Standard
28535 sidecaptionvpos{float type}{placement}
28538 \begin_layout Standard
28539 in the document preamble or in \SpecialChar TeX
28540 Code before the float.
28541 The float type is either
28549 , the placement can be
28550 \begin_inset Quotes eld
28558 \begin_inset Quotes erd
28562 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28574 \begin_inset Quotes eld
28582 \begin_inset Quotes erd
28586 To have for example the caption of figure floats vertically centered, use
28590 \begin_layout Standard
28595 sidecaptionvpos{figure}{c}
28598 \begin_layout Standard
28599 This was used for Figure
28600 \begin_inset space ~
28604 \begin_inset CommandInset ref
28606 reference "fig:cap-beside-fig-2"
28613 \begin_layout Standard
28614 \begin_inset VSpace medskip
28620 \begin_layout Standard
28621 The default caption width is the width of the image/table.
28622 For thin image/tables, like in Table
28623 \begin_inset space ~
28627 \begin_inset CommandInset ref
28629 reference "tab:cap-beside-tab"
28633 , this leads to captions that are too thin.
28634 You can increase the width by specifying a factor that will be multiplied
28635 with the image/table width to get the caption width.
28636 The caption width will automatically be recalculated in case it would protrude
28637 over the page or column margin due to the specified width.
28642 can either be given as optional argument for
28651 \begin_layout Standard
28659 \begin_layout Standard
28660 or in the definition of
28670 with another value.
28671 If you do the latter, your factor will be the default if
28677 is used without an argument.
28679 \begin_inset space ~
28683 \begin_inset CommandInset ref
28685 reference "tab:cap-beside-tab-wider"
28689 the factor 5 was used.
28692 \begin_layout Standard
28693 \begin_inset Note Greyedout
28696 \begin_layout Plain Layout
28701 For floats with captions set beside, you cannot use the float placement
28705 \begin_inset space ~
28710 because it is not supported by
28722 \begin_layout Standard
28723 \begin_inset VSpace medskip
28726 For more information about the package
28730 we refer to its documentation
28731 \begin_inset CommandInset citation
28740 \begin_layout Standard
28741 \begin_inset Note Greyedout
28744 \begin_layout Plain Layout
28749 The \SpecialChar LaTeX
28755 \begin_inset Index idx
28758 \begin_layout Plain Layout
28765 , described in section
28766 \begin_inset space ~
28770 \begin_inset CommandInset ref
28772 reference "subsec:Reference-Position"
28776 , has no effect on floats with the caption set beside.
28784 \begin_layout Standard
28788 \begin_layout Plain Layout
28800 \begin_layout Standard
28801 \begin_inset Float figure
28806 \begin_layout Plain Layout
28807 \begin_inset Graphics
28808 filename clipart/escher-lsd.eps
28810 scaleBeforeRotation
28817 \begin_layout Plain Layout
28818 \begin_inset Caption Standard
28820 \begin_layout Plain Layout
28821 \begin_inset CommandInset label
28823 name "fig:cap-beside-fig"
28827 This is a caption beside a figure.
28840 \begin_layout Standard
28844 \begin_layout Plain Layout
28856 \begin_layout Standard
28860 \begin_layout Plain Layout
28872 \begin_layout Standard
28873 \begin_inset Float table
28878 \begin_layout Plain Layout
28879 \begin_inset Caption Standard
28881 \begin_layout Plain Layout
28882 \begin_inset CommandInset label
28884 name "tab:cap-beside-tab"
28888 This is a caption beside a table.
28896 \begin_layout Plain Layout
28897 \begin_inset Tabular
28898 <lyxtabular version="3" rows="4" columns="5">
28899 <features tabularvalignment="middle">
28900 <column alignment="center" valignment="top">
28901 <column alignment="center" valignment="top">
28902 <column alignment="center" valignment="top">
28903 <column alignment="center" valignment="top">
28904 <column alignment="center" valignment="top">
28906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28909 \begin_layout Plain Layout
28915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28918 \begin_layout Plain Layout
28924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28927 \begin_layout Plain Layout
28933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28936 \begin_layout Plain Layout
28942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28945 \begin_layout Plain Layout
28953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28956 \begin_layout Plain Layout
28962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28965 \begin_layout Plain Layout
28971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28974 \begin_layout Plain Layout
28980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28983 \begin_layout Plain Layout
28989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28992 \begin_layout Plain Layout
29000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29003 \begin_layout Plain Layout
29009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29012 \begin_layout Plain Layout
29018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29021 \begin_layout Plain Layout
29027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29030 \begin_layout Plain Layout
29036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29039 \begin_layout Plain Layout
29047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29050 \begin_layout Plain Layout
29056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29059 \begin_layout Plain Layout
29065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29068 \begin_layout Plain Layout
29074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29077 \begin_layout Plain Layout
29083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29086 \begin_layout Plain Layout
29105 \begin_layout Standard
29109 \begin_layout Plain Layout
29121 \begin_layout Standard
29125 \begin_layout Plain Layout
29138 \begin_layout Plain Layout
29142 sidecaptionvpos{figure}{c}
29148 \begin_inset Float figure
29153 \begin_layout Plain Layout
29154 \begin_inset Graphics
29155 filename clipart/escher-lsd.eps
29157 scaleBeforeRotation
29164 \begin_layout Plain Layout
29165 \begin_inset Caption Standard
29167 \begin_layout Plain Layout
29168 \begin_inset CommandInset label
29170 name "fig:cap-beside-fig-2"
29174 This is a vertically centered caption beside a figure.
29187 \begin_layout Standard
29191 \begin_layout Plain Layout
29203 \begin_layout Standard
29207 \begin_layout Plain Layout
29219 \begin_layout Standard
29220 \begin_inset Float table
29225 \begin_layout Plain Layout
29226 \begin_inset Caption Standard
29228 \begin_layout Plain Layout
29229 \begin_inset CommandInset label
29231 name "tab:cap-beside-tab-wider"
29235 This caption is wider than the one in Table
29236 \begin_inset space ~
29240 \begin_inset CommandInset ref
29242 reference "tab:cap-beside-tab"
29254 \begin_layout Plain Layout
29255 \begin_inset Tabular
29256 <lyxtabular version="3" rows="4" columns="5">
29257 <features tabularvalignment="middle">
29258 <column alignment="center" valignment="top">
29259 <column alignment="center" valignment="top">
29260 <column alignment="center" valignment="top">
29261 <column alignment="center" valignment="top">
29262 <column alignment="center" valignment="top">
29264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29267 \begin_layout Plain Layout
29273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29276 \begin_layout Plain Layout
29282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29285 \begin_layout Plain Layout
29291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29294 \begin_layout Plain Layout
29300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29303 \begin_layout Plain Layout
29311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29314 \begin_layout Plain Layout
29320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29323 \begin_layout Plain Layout
29329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29332 \begin_layout Plain Layout
29338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29341 \begin_layout Plain Layout
29347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29350 \begin_layout Plain Layout
29358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29361 \begin_layout Plain Layout
29367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29370 \begin_layout Plain Layout
29376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29379 \begin_layout Plain Layout
29385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29388 \begin_layout Plain Layout
29394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29397 \begin_layout Plain Layout
29405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29408 \begin_layout Plain Layout
29414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29417 \begin_layout Plain Layout
29423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29426 \begin_layout Plain Layout
29432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29435 \begin_layout Plain Layout
29441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29444 \begin_layout Plain Layout
29463 \begin_layout Standard
29467 \begin_layout Plain Layout
29479 \begin_layout Standard
29483 \begin_layout Plain Layout
29493 \begin_inset Note Note
29496 \begin_layout Plain Layout
29497 The following will be displayed when the \SpecialChar LaTeX
29510 \begin_layout Standard
29511 You need to install the \SpecialChar LaTeX
29516 to see the following part of this section in the output.
29519 \begin_layout Standard
29523 \begin_layout Plain Layout
29535 \begin_layout Section
29537 \begin_inset Index idx
29540 \begin_layout Plain Layout
29541 Floats ! Float Lists
29549 \begin_layout Standard
29550 Similar to the table of contents where the sections of the document are
29551 listed, there are listings for all float types, like the figures of the
29553 You can insert them via the
29555 Insert\SpecialChar menuseparator
29557 \begin_inset space ~
29561 \begin_inset space ~
29569 \begin_layout Standard
29570 The list entries are the float captions or its short title, the float number,
29571 and the page number where they appear in the document.
29574 \begin_layout Standard
29575 You can find the list of figures and tables at the end of this document.
29578 \begin_layout Chapter
29582 \begin_layout Section
29585 \begin_inset Index idx
29588 \begin_layout Plain Layout
29589 Notes ! \SpecialChar LyX
29598 \begin_layout Standard
29599 Notes are inserted with the toolbar button
29607 Insert\SpecialChar menuseparator
29611 There are three types of notes:
29614 \begin_layout Description
29617 \begin_inset space ~
29620 Note This note type is for internal notes that won't appear in the output.
29621 Its note-box looks like this:
29622 \begin_inset Newline newline
29626 \begin_inset Newline newline
29630 \begin_inset Graphics
29631 filename clipart/LyXNoteImage.png
29633 scaleBeforeRotation
29638 \begin_inset Note Note
29641 \begin_layout Plain Layout
29642 This is text in a note box that doesn't appear in the output.
29650 \begin_layout Description
29651 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29653 when you export the document to \SpecialChar LaTeX
29656 File\SpecialChar menuseparator
29657 Export\SpecialChar menuseparator
29659 \begin_inset space ~
29662 (pdflatex) / (plain)
29665 Its note-box looks like this:
29666 \begin_inset Newline newline
29670 \begin_inset Newline newline
29674 \begin_inset Graphics
29675 filename clipart/CommentNoteImage.png
29677 scaleBeforeRotation
29682 \begin_inset Note Comment
29685 \begin_layout Plain Layout
29686 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29695 \begin_layout Description
29697 \begin_inset space ~
29700 Out This note will appear in the output as grey text.
29701 Its note-box looks like this:
29702 \begin_inset Newline newline
29706 \begin_inset Newline newline
29710 \begin_inset Graphics
29711 filename clipart/GreyedOutNoteImage.png
29713 scaleBeforeRotation
29718 \begin_inset Newline newline
29725 \begin_layout Plain Layout
29729 renewenvironment{lyxgreyedout}
29732 \begin_layout Plain Layout
29736 textcolor[gray]{0.8}
29746 \begin_inset Note Greyedout
29749 \begin_layout Plain Layout
29750 This is text of a comment that appears grey in the output.
29759 \begin_layout Plain Layout
29763 renewenvironment{lyxgreyedout}
29766 \begin_layout Plain Layout
29780 \begin_inset Note Note
29783 \begin_layout Plain Layout
29784 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29786 because greyed out notes are redefined in the preamble of this document,
29787 as described below, to have blue text.
29793 \begin_inset Newline newline
29797 \begin_inset Newline newline
29800 As you can see in the example, the first line of greyed out notes is a bit
29801 indented and greyed out notes can have footnotes.
29804 \begin_layout Standard
29805 \begin_inset VSpace bigskip
29808 When you use the toolbar button
29818 \begin_inset space ~
29824 You can switch between the three note types by right-clicking on the note-box.
29829 If you want to turn existing text into a note, mark it and click on the
29843 To change a note to text, press the backspace key when the cursor is in
29844 the first position of a note, or press the delete key when the cursor is
29845 in the very last position of the note, respectively.
29848 \begin_layout Standard
29849 \begin_inset VSpace bigskip
29852 You can change the text color of the greyed out notes in the menu
29854 Document\SpecialChar menuseparator
29855 Settings\SpecialChar menuseparator
29861 \begin_layout Section
29863 \begin_inset CommandInset label
29865 name "sec:Footnotes"
29870 \begin_inset Index idx
29873 \begin_layout Plain Layout
29880 \begin_inset Index idx
29883 \begin_layout Plain Layout
29892 \begin_layout Standard
29893 Footnotes can be inserted using the toolbar button
29896 arg "footnote-insert"
29901 Insert\SpecialChar menuseparator
29905 You will then see the following footnote-box:
29906 \begin_inset Graphics
29907 filename clipart/footnote.png
29909 scaleBeforeRotation
29917 where you can enter the footnote text.
29918 If you want to turn existing text into a footnote, mark it and click on
29944 key when the cursor is in the first position of a
29956 key when the cursor is in the very last position of the
29967 \begin_layout Standard
29968 Here is an example footnote:
29976 \begin_layout Plain Layout
29977 \begin_inset CommandInset label
29979 name "foot:This-is-an"
29983 This is an example footnote.
29996 \begin_layout Plain Layout
30000 newcounter{MyRepeatFoot}
30003 \begin_layout Plain Layout
30007 setcounter{MyRepeatFoot}{
30017 \begin_layout Standard
30018 The footnote will appear in the output as a superscript number at the text
30019 position where the footnote box is placed.
30020 The footnote text is placed at the bottom of the current page.
30021 The footnote number is calculated by \SpecialChar LaTeX
30022 ; the numbers are consecutive.
30023 Whether the footnote number is reset for every chapter depends on your
30027 \begin_layout Standard
30028 Footnotes can be referenced like floats: Insert a label into the footnote
30029 and cross-reference this label in the text as described in section
30030 \begin_inset space ~
30034 \begin_inset CommandInset ref
30036 reference "sec:Referencing-Floats"
30041 \begin_inset Newline newline
30044 This is a cross-reference of Footnote
30045 \begin_inset space ~
30049 \begin_inset CommandInset ref
30051 reference "foot:This-is-an"
30058 \begin_layout Standard
30059 \begin_inset VSpace defskip
30062 Footnotes in title environments are usually not numbered with symbols and
30063 they cannot contain several paragraphs.
30064 See for example the footnote in the titling of this document.
30067 \begin_layout Standard
30068 \begin_inset VSpace defskip
30071 Footnotes in tables are not printed by \SpecialChar LaTeX
30072 due to technical reasons.
30073 However there exists another method to print them: Instead of the footnote
30080 is inserted as \SpecialChar TeX
30082 The text of the footnote is entered as an argument of the \SpecialChar TeX
30091 \begin_inset Newline newline
30094 This was done for the following table with the command
30097 \begin_layout Standard
30104 Printed table footnote.
30109 \begin_layout Standard
30110 \begin_inset Tabular
30111 <lyxtabular version="3" rows="2" columns="1">
30112 <features tabularvalignment="middle">
30113 <column alignment="center" valignment="top">
30115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30118 \begin_layout Plain Layout
30119 This an example text.
30123 \begin_layout Plain Layout
30124 This footnote will not be printed!
30136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30139 \begin_layout Plain Layout
30140 This an example text.
30144 \begin_layout Plain Layout
30167 \begin_layout Plain Layout
30176 Printed table footnote.
30180 \begin_layout Plain Layout
30190 \begin_layout Standard
30191 Footnotes in longtables are described in section
30192 \begin_inset space ~
30196 \begin_inset CommandInset ref
30198 reference "subsec:Footnotes-in-Longtables"
30205 \begin_layout Standard
30206 Footnotes in minipage boxes are printed, but inside the box and with a different
30207 numbering because a minipage box is like a page inside a page.
30208 (For more about minipages, see section
30209 \begin_inset space ~
30213 \begin_inset CommandInset ref
30215 reference "sec:Minipages"
30219 .) To get a footnote in the minipage that is output at the bottom of the
30220 page like normal footnotes, also use the method of
30235 \begin_layout Standard
30236 \begin_inset Box Frameless
30246 height_special "totalheight"
30251 backgroundcolor "none"
30254 \begin_layout Plain Layout
30255 This an example text in a minipage.
30259 \begin_layout Plain Layout
30260 Footnote in the minipage.
30268 \begin_layout Plain Layout
30269 This an example text in a minipage.
30273 \begin_layout Plain Layout
30290 \begin_layout Standard
30294 \begin_layout Plain Layout
30303 Footnote outside the minipage.
30307 \begin_layout Plain Layout
30317 \begin_layout Standard
30318 \begin_inset VSpace defskip
30324 \begin_layout Standard
30325 To refer to the same footnote several times without printing the footnote
30326 text every time, use the command
30330 footnotemark[number]
30332 in \SpecialChar TeX
30334 \begin_inset Newline newline
30337 As you do not know the number of the repeating footnote while you are writing
30338 the text, you have to store its number.
30339 For the following footnote mark example, these commands were inserted in
30341 code after Footnote
30342 \begin_inset space ~
30346 \begin_inset CommandInset ref
30348 reference "foot:This-is-an"
30352 to store the footnote number:
30355 \begin_layout Standard
30360 newcounter{MyRepeatFoot}
30361 \begin_inset Newline newline
30366 setcounter{MyRepeatFoot}{
30371 \begin_layout Standard
30372 The footnote mark was then created with this command:
30375 \begin_layout Standard
30385 \begin_layout Standard
30386 Here is a repeated footnote:
30394 \begin_layout Plain Layout
30408 \begin_layout Standard
30409 If you want to repeat the previous footnote, you can omit the storage of
30410 the footnote number and just use this command instead:
30413 \begin_layout Standard
30423 \begin_layout Standard
30424 Here is another repeated footnote:
30432 \begin_layout Plain Layout
30446 \begin_layout Subsection
30448 \begin_inset CommandInset label
30450 name "subsec:Footnote-Numbering"
30455 \begin_inset Index idx
30458 \begin_layout Plain Layout
30459 Footnotes ! Numbering
30467 \begin_layout Standard
30468 To reset the footnote number back to 1 after each section
30470 , add this command to your document preamble:
30473 \begin_layout Standard
30478 @addtoreset{footnote}{section}
30481 \begin_layout Standard
30482 \begin_inset VSpace bigskip
30485 The following preamble command changes the footnote numbering style to small
30489 \begin_layout Standard
30501 \begin_layout Standard
30505 \begin_layout Plain Layout
30518 This is a footnote with roman numbering:
30522 \begin_layout Plain Layout
30523 This is an example footnote with roman numbering.
30531 \begin_layout Standard
30532 To change the numbering style to capital roman numerals replace in the command
30547 \begin_inset Quotes eld
30551 \begin_inset Quotes erd
30554 footnotes with capital or small Latin letters use
30568 \begin_inset Quotes eld
30572 \begin_inset Quotes erd
30575 footnotes with symbols use
30584 \begin_layout Standard
30585 \begin_inset Note Greyedout
30588 \begin_layout Plain Layout
30593 You can only number 26 footnotes with Latin letters, because this numbering
30594 is limited to single letters.
30600 \begin_inset Newline newline
30604 \begin_inset Note Greyedout
30607 \begin_layout Plain Layout
30612 You can only number 9 footnotes with symbols.
30620 \begin_layout Standard
30621 To return to the default numbering style after you have changed to another
30634 in the command above.
30638 \begin_layout Plain Layout
30654 \begin_layout Standard
30655 \begin_inset VSpace bigskip
30661 \begin_layout Standard
30662 If you want to have footnotes numbered in the scheme
30663 \begin_inset Quotes eld
30667 \begin_inset Quotes erd
30670 , add the following command to your document preamble:
30673 \begin_layout Standard
30678 numberwithin{footnote}{chapter}
30681 \begin_layout Standard
30682 To be able to use the command
30691 \begin_inset space ~
30696 in the document settings the option
30699 \begin_inset space ~
30703 \begin_inset space ~
30707 \begin_inset space ~
30715 \begin_layout Standard
30719 \begin_layout Plain Layout
30723 numberwithin{footnote}{chapter}
30728 This is another example footnote:
30734 \begin_layout Plain Layout
30735 This is a footnote numbered in the scheme
30736 \begin_inset Quotes eld
30740 \begin_inset Quotes erd
30754 \begin_layout Plain Layout
30770 \begin_layout Standard
30771 \begin_inset Note Greyedout
30774 \begin_layout Plain Layout
30785 always prints out the footnote number as arabic number; previous redefinitions
30786 to get non-arabic numbers are overwritten.
30794 \begin_layout Standard
30795 So to get for example the scheme
30796 \begin_inset Quotes eld
30802 \begin_inset Quotes erd
30805 , use this command instead of
30814 \begin_layout Standard
30828 \begin_layout Subsection
30830 \begin_inset Index idx
30833 \begin_layout Plain Layout
30834 Footnotes ! Placement
30842 \begin_layout Standard
30843 If you have several footnotes in one page, they appear without vertical
30844 space between them at the bottom of the page.
30845 To make them more readable you can e.
30846 \begin_inset space \thinspace{}
30850 \begin_inset space \space{}
30854 \begin_inset space \thinspace{}
30857 mm space with the following preamble command:
30860 \begin_layout Standard
30870 \begin_inset Newline newline
30884 \begin_layout Standard
30885 \begin_inset VSpace bigskip
30888 In a two-column document the footnotes appear at the bottom of every column,
30890 \begin_inset space ~
30894 \begin_inset CommandInset ref
30896 reference "fig:Standard-footnote-placement"
30901 If the footnotes should only appear at the bottom of the right column,
30903 \begin_inset space ~
30907 \begin_inset CommandInset ref
30909 reference "fig:Footnote-placement-in"
30913 , use the \SpecialChar LaTeX
30919 \begin_inset Index idx
30922 \begin_layout Plain Layout
30924 -packages ! ftnright
30929 with this command in the document preamble:
30932 \begin_layout Standard
30937 usepackage{ftnright}
30940 \begin_layout Standard
30941 \begin_inset Float figure
30947 \begin_layout Plain Layout
30951 \begin_layout Plain Layout
30961 \begin_inset Graphics
30962 filename clipart/without_fntright.pdf
30964 scaleBeforeRotation
30972 \begin_layout Plain Layout
30982 \begin_layout Plain Layout
30983 \begin_inset Caption Standard
30985 \begin_layout Plain Layout
30986 \begin_inset CommandInset label
30988 name "fig:Standard-footnote-placement"
30992 Standard footnote placement in two-column documents.
31005 \begin_layout Standard
31006 \begin_inset Float figure
31012 \begin_layout Plain Layout
31016 \begin_layout Plain Layout
31026 \begin_inset Graphics
31027 filename clipart/with_fntright.pdf
31029 scaleBeforeRotation
31037 \begin_layout Plain Layout
31047 \begin_layout Plain Layout
31048 \begin_inset Caption Standard
31050 \begin_layout Plain Layout
31051 \begin_inset CommandInset label
31053 name "fig:Footnote-placement-in"
31057 Footnote placement in two-column documents when the \SpecialChar LaTeX
31075 \begin_layout Standard
31076 \begin_inset VSpace bigskip
31079 In some scientific literature it is usual to collect the footnotes and print
31080 them in a separate paragraph at the end of a section, as in Figure
31081 \begin_inset space ~
31085 \begin_inset CommandInset ref
31087 reference "fig:Endnotes"
31092 They are then called
31093 \begin_inset Quotes eld
31097 \begin_inset Quotes erd
31101 \begin_inset Index idx
31104 \begin_layout Plain Layout
31110 To use endnotes instead of footnotes in your document, load in the menu
31113 Document\SpecialChar menuseparator
31114 Settings\SpecialChar menuseparator
31120 \begin_inset space ~
31124 \begin_inset space ~
31130 To insert the collected footnotes, insert the command
31133 \begin_layout Standard
31141 \begin_layout Standard
31142 in \SpecialChar TeX
31143 Code at the end of a section or chapter.
31146 \begin_layout Standard
31147 \begin_inset Float figure
31152 \begin_layout Plain Layout
31157 \begin_layout Plain Layout
31167 \begin_inset Graphics
31168 filename clipart/endnotes.pdf
31169 scaleBeforeRotation
31177 \begin_layout Plain Layout
31187 \begin_layout Plain Layout
31188 \begin_inset Caption Standard
31190 \begin_layout Plain Layout
31191 \begin_inset CommandInset label
31193 name "fig:Endnotes"
31197 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31211 \begin_layout Standard
31212 \begin_inset VSpace medskip
31215 The paragraph heading for the endnotes isn't automatically translated into
31216 the document language, this must be done manually.
31217 The following preamble command translates the default English
31218 \begin_inset Quotes eld
31222 \begin_inset Quotes erd
31226 \begin_inset Quotes eld
31230 \begin_inset Quotes erd
31236 \begin_layout Standard
31243 notesname}{Anmerkungen}
31246 \begin_layout Standard
31247 \begin_inset VSpace medskip
31250 The numbering of endnotes can be changed like the footnote numbering as
31251 described in section
31252 \begin_inset space ~
31256 \begin_inset CommandInset ref
31258 reference "subsec:Footnote-Numbering"
31262 ; just replace the command
31275 To reset the endnote number use the command
31281 as described in section
31282 \begin_inset space ~
31286 \begin_inset CommandInset ref
31288 reference "subsec:Footnote-Numbering"
31292 and replace the command parameter
31303 \begin_layout Standard
31304 For endnotes there is the command
31308 endnotemark[number]
31310 similar to the command
31316 , that is described in section
31317 \begin_inset space ~
31321 \begin_inset CommandInset ref
31323 reference "sec:Footnotes"
31330 \begin_layout Standard
31331 \begin_inset VSpace bigskip
31334 Footnotes can also be placed in the page margin and the footnote text alignment
31335 can be changed, see the \SpecialChar LaTeX
31341 \begin_inset Index idx
31344 \begin_layout Plain Layout
31346 -packages ! footmisc
31352 \begin_inset CommandInset citation
31358 for more information about this.
31361 \begin_layout Standard
31362 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31364 \begin_inset CommandInset citation
31366 key "latexcompanion,latexguide,latexbook"
31376 \begin_inset Index idx
31379 \begin_layout Plain Layout
31381 -packages ! KOMA-Script
31386 document class, you can adjust all footnote settings using class-specific
31388 \begin_inset CommandInset citation
31397 \begin_layout Section
31399 \begin_inset Index idx
31402 \begin_layout Plain Layout
31403 Notes ! Margin Notes
31411 \begin_layout Standard
31412 Margin notes look and behave in \SpecialChar LyX
31414 They are inserted via the menu
31416 Insert\SpecialChar menuseparator
31418 \begin_inset space ~
31423 or the toolbar button
31426 arg "marginalnote-insert"
31440 \begin_inset Quotes eld
31444 \begin_inset Quotes erd
31447 appears where you can enter the text of the margin note.
31450 \begin_layout Standard
31451 At the side is an example margin note.
31456 \begin_inset Marginal
31459 \begin_layout Plain Layout
31460 This is a margin note.
31468 \begin_layout Standard
31469 Margin notes appear at the right side in single-sided documents.
31470 In double-sided documents they appear in the outer margin – left on even
31471 pages, right on odd pages.
31472 The text of margin notes is aligned opposite to the outer margin – right-aligne
31473 d when the note appears in the left margin.
31474 The first line of the margin note is placed at the position of the text
31475 line where it is inserted in the document.
31478 \begin_layout Standard
31479 \begin_inset VSpace bigskip
31482 To place the margin note in the inner margin, add the command
31485 \begin_layout Standard
31493 \begin_layout Standard
31494 in \SpecialChar TeX
31495 Code before a margin note.
31496 The new placement is valid for all subsequent margin notes.
31501 \begin_layout Plain Layout
31511 \begin_inset Marginal
31514 \begin_layout Plain Layout
31515 This is a margin note in the inner margin.
31523 \begin_inset Newline newline
31529 \begin_inset Note Greyedout
31532 \begin_layout Plain Layout
31537 There is often not enough space in the inner margin so that the notes are
31538 not correctly displayed in the output.
31546 \begin_layout Standard
31547 To return to the default placement insert the command
31550 \begin_layout Standard
31558 \begin_layout Standard
31559 in \SpecialChar TeX
31564 \begin_layout Plain Layout
31574 \begin_inset Note Greyedout
31577 \begin_layout Plain Layout
31582 The command is ignored when it is within a paragraph where also the command
31597 \begin_layout Standard
31598 \begin_inset VSpace bigskip
31605 \begin_inset Marginal
31608 \begin_layout Plain Layout
31609 AVeryLongMarginParWord that isn't hyphenated.
31617 Similar to the case described in section
31618 \begin_inset space ~
31622 \begin_inset CommandInset ref
31624 reference "subsec:Multiple-Lines-in"
31628 , long words cannot be hyphenated when they are the first word in a margin
31630 To avoid this, insert 0
31631 \begin_inset space \thinspace{}
31634 pt horizontal space before the word
31639 \begin_inset Marginal
31642 \begin_layout Plain Layout
31643 \begin_inset space \hspace*{}
31647 AVeryLongMarginParWord that is hyphenated.
31655 \begin_layout Standard
31656 \begin_inset VSpace bigskip
31662 \begin_layout Standard
31663 \begin_inset Note Greyedout
31666 \begin_layout Plain Layout
31671 Margin notes can normally not be used inside tables, floats, and footnotes.
31679 \begin_layout Standard
31680 \begin_inset VSpace bigskip
31686 \begin_layout Standard
31690 \begin_layout Plain Layout
31700 \begin_inset Note Note
31703 \begin_layout Plain Layout
31704 The following section will only be displayed when the \SpecialChar LaTeX
31717 \begin_layout Standard
31718 This restriction can be evaded by using the \SpecialChar LaTeX
31724 \begin_inset Index idx
31727 \begin_layout Plain Layout
31729 -packages ! marginnote
31735 By adding these two lines to your document preamble, the command used by
31737 for margin notes is redefined to use the command provided by the
31744 \begin_layout Standard
31749 usepackage{marginnote}
31750 \begin_inset Newline newline
31762 \begin_layout Standard
31763 This is also used in this document because
31767 has another useful feature: You can set a vertical offset for the note.
31768 This is often needed when too many margin notes are too close together
31769 or for a better page layout.
31770 The offset is set in \SpecialChar LyX
31771 as \SpecialChar TeX
31772 Code directly after the margin note in the scheme
31775 \begin_layout Standard
31781 \begin_layout Standard
31782 where the offset is a length with one of the units listed in Table
31783 \begin_inset space ~
31787 \begin_inset CommandInset ref
31789 reference "tab:Units"
31794 A negative value shifts the note up, a positive value shifts it down.
31798 For example the margin note beside this text line is shifted up 1.5
31799 \begin_inset space \thinspace{}
31802 cm with the \SpecialChar TeX
31804 \begin_inset Quotes eld
31814 \begin_inset Quotes erd
31818 \begin_inset Marginal
31821 \begin_layout Plain Layout
31822 This margin note is shifted up 1.5
31823 \begin_inset space \thinspace{}
31826 cm from its original position.
31838 \begin_layout Plain Layout
31848 \begin_layout Standard
31849 \begin_inset VSpace medskip
31856 you can also change the alignment of the text in the margin note.
31857 For example the commands
31860 \begin_layout Standard
31867 raggedleftmarginnote}{
31870 \begin_inset Newline newline
31877 raggedrightmarginnote}{
31882 \begin_layout Standard
31883 set the alignment to centered.
31888 raggedleftmarginnote
31890 denotes margin notes that appear at the left side.
31897 \begin_layout Plain Layout
31903 raggedleftmarginnote}{
31908 \begin_layout Plain Layout
31914 raggedrightmarginnote}{
31922 \begin_inset Marginal
31925 \begin_layout Plain Layout
31926 The text of this margin note is centered.
31937 \begin_layout Standard
31944 raggedleftmarginnote}{
31947 \begin_inset Newline newline
31954 raggedrightmarginnote}{
31963 \begin_layout Plain Layout
31969 raggedleftmarginnote}{
31974 \begin_layout Plain Layout
31980 raggedrightmarginnote}{
31990 \begin_layout Standard
31991 \begin_inset VSpace medskip
31994 For the other features of
31998 refer to its documentation
31999 \begin_inset CommandInset citation
32008 \begin_layout Standard
32009 \begin_inset VSpace bigskip
32012 You can adjust the layout of margin notes by changing its definition.
32013 To create for example a header for all margin notes with the underlined,
32014 sans-serif, and bold header text
32015 \begin_inset Quotes eld
32027 \begin_inset Quotes erd
32030 , add this to your document preamble:
32033 \begin_layout Standard
32043 \begin_inset Newline newline
32053 \begin_inset Newline newline
32057 \begin_inset Phantom HPhantom
32060 \begin_layout Plain Layout
32063 \begin_inset space ~
32079 underbar{Attention!}}}%
32080 \begin_inset Newline newline
32084 \begin_inset Phantom HPhantom
32087 \begin_layout Plain Layout
32090 \begin_inset space ~
32107 \begin_layout Standard
32114 \begin_layout Plain Layout
32125 \begin_layout Plain Layout
32136 \begin_layout Plain Layout
32144 underbar{Attention!}}}%
32147 \begin_layout Plain Layout
32161 \begin_inset Marginal
32164 \begin_layout Plain Layout
32165 This is a margin note with a defined heading.
32177 \begin_layout Plain Layout
32191 \begin_layout Plain Layout
32208 \begin_inset Note Note
32211 \begin_layout Plain Layout
32212 The margin note format is changed only for this example.
32220 \begin_layout Standard
32224 \begin_layout Plain Layout
32234 \begin_inset Note Note
32237 \begin_layout Plain Layout
32238 The following will be displayed when the \SpecialChar LaTeX
32251 \begin_layout Standard
32252 You need to install the \SpecialChar LaTeX
32257 to see the following part of this section in the output.
32260 \begin_layout Standard
32264 \begin_layout Plain Layout
32276 \begin_layout Chapter
32280 \begin_layout Section
32282 \begin_inset Index idx
32285 \begin_layout Plain Layout
32286 Boxes ! Introduction
32294 \begin_layout Standard
32295 Boxes are used to format a block of text.
32296 Boxes can be used to write documents with multiple languages, see section
32297 \begin_inset space ~
32301 \begin_inset CommandInset ref
32303 reference "sec:Minipages"
32307 , to frame texts, see section
32308 \begin_inset space ~
32312 \begin_inset CommandInset ref
32314 reference "sec:Decoration"
32318 , to prevent words from being hyphenated, see section
32319 \begin_inset space ~
32323 \begin_inset CommandInset ref
32325 reference "sec:Prevent-Hyphenation"
32329 , to align text, see section
32330 \begin_inset space ~
32334 \begin_inset CommandInset ref
32336 reference "subsec:Vertical-Alignment"
32340 , or to set the background color of texts, see section
32341 \begin_inset space ~
32345 \begin_inset CommandInset ref
32347 reference "sec:Colored-Boxes"
32354 \begin_layout Standard
32355 Boxes can be inserted with the menu
32357 Insert\SpecialChar menuseparator
32360 or the toolbar button
32363 arg "box-insert Frameless"
32367 A grey box with the label
32372 \begin_inset Graphics
32373 filename clipart/BoxInsetDefault.png
32375 scaleBeforeRotation
32380 The box type can be specified by right-clicking on the box and selecting
32386 The box dialog offers the
32389 \begin_inset space ~
32411 is the default for new boxes and is explained in section
32412 \begin_inset space ~
32416 \begin_inset CommandInset ref
32418 reference "sec:Minipages"
32426 is described in section
32427 \begin_inset space ~
32431 \begin_inset CommandInset ref
32433 reference "sec:Parboxes"
32442 \begin_inset CommandInset ref
32444 reference "sec:Prevent-Hyphenation"
32451 \begin_layout Standard
32452 Boxes are not numbered and can therefore not be referenced like floats or
32456 \begin_layout Standard
32457 \begin_inset Note Greyedout
32460 \begin_layout Plain Layout
32465 Boxes must not be the item in an
32481 \begin_layout Standard
32482 \begin_inset Note Greyedout
32485 \begin_layout Plain Layout
32490 For an unknown reason you can only set the
32493 \begin_inset space ~
32502 when you use a framed box.
32506 \begin_inset space ~
32511 type and without frames are explained in section
32512 \begin_inset space ~
32516 \begin_inset CommandInset ref
32518 reference "sec:Prevent-Hyphenation"
32530 \begin_layout Section
32532 \begin_inset CommandInset label
32534 name "sec:Box-Dialog"
32539 \begin_inset Index idx
32542 \begin_layout Plain Layout
32551 \begin_layout Subsection
32553 \begin_inset Index idx
32556 \begin_layout Plain Layout
32565 \begin_layout Standard
32566 In the box dialog you can adjust the box geometry in the fields
32575 The available units for the geometry are explained in Table
32576 \begin_inset space ~
32580 \begin_inset CommandInset ref
32582 reference "tab:Units"
32591 offers the following additional sizes:
32594 \begin_layout Description
32595 Depth This is the plain text
32596 \begin_inset Quotes eld
32600 \begin_inset Quotes erd
32604 It ignores the total depth when there are multiple text lines in the box:
32605 \begin_inset Newline newline
32609 \begin_inset Newline newline
32613 \begin_inset Newline newline
32617 \begin_inset Box Boxed
32627 height_special "depth"
32632 backgroundcolor "none"
32635 \begin_layout Plain Layout
32637 Box height set to 1
32638 \begin_inset space \thinspace{}
32647 \begin_inset Newline newline
32651 \begin_inset Newline newline
32657 \begin_layout Description
32658 Height This is the height of the text that is inside the box.
32660 \begin_inset space \thinspace{}
32664 \begin_inset space \space{}
32667 2 for this size will set the box height to 2
32668 \begin_inset space ~
32671 times the text height:
32672 \begin_inset Box Boxed
32682 height_special "height"
32687 backgroundcolor "none"
32690 \begin_layout Plain Layout
32692 Box height set to 2
32693 \begin_inset space \thinspace{}
32704 \begin_layout Description
32706 \begin_inset space ~
32709 Height This is the Height
32710 \begin_inset space \thinspace{}
32714 \begin_inset space \thinspace{}
32718 \begin_inset Box Boxed
32728 height_special "totalheight"
32733 backgroundcolor "none"
32736 \begin_layout Plain Layout
32738 Box height set to 1
32739 \begin_inset space \thinspace{}
32743 \begin_inset space ~
32754 \begin_layout Description
32755 Width This sets the width of the box as height:
32756 \begin_inset Box Boxed
32766 height_special "width"
32771 backgroundcolor "none"
32774 \begin_layout Plain Layout
32776 Box height set to 1
32777 \begin_inset space \thinspace{}
32788 \begin_layout Subsection
32790 \begin_inset Index idx
32793 \begin_layout Plain Layout
32802 \begin_layout Standard
32803 When you have chosen an
32806 \begin_inset space ~
32811 , the vertical box alignment can be:
32814 \begin_layout Description
32815 Top This is an example text line.
32817 \begin_inset Box Boxed
32827 height_special "totalheight"
32832 backgroundcolor "none"
32835 \begin_layout Plain Layout
32837 This box is top-aligned.
32842 This is an example text line.
32845 \begin_layout Description
32846 Middle This is an example text line.
32848 \begin_inset Box Boxed
32858 height_special "totalheight"
32863 backgroundcolor "none"
32866 \begin_layout Plain Layout
32868 This box is middle-aligned.
32873 This is an example text line.
32876 \begin_layout Description
32877 Bottom This is an example text line.
32879 \begin_inset Box Boxed
32889 height_special "totalheight"
32894 backgroundcolor "none"
32897 \begin_layout Plain Layout
32899 This box is bottom-aligned.
32904 This is an example text line.
32907 \begin_layout Standard
32908 \begin_inset Note Greyedout
32911 \begin_layout Plain Layout
32916 The vertical box alignment can be lost in the output when you have two
32917 boxes in a line and one has e.
32918 \begin_inset space \thinspace{}
32922 \begin_inset space \space{}
32925 a shadow and the other one not.
32933 \begin_layout Standard
32934 The horizontal box alignment can be set via \SpecialChar LyX
32935 's paragraph dialog when you
32936 set the box into its own paragraph.
32939 \begin_layout Standard
32940 \begin_inset VSpace bigskip
32943 When you have chosen an
32946 \begin_inset space ~
32951 , the box content can be aligned vertically to:
32954 \begin_layout Description
32955 top This is an example text line.
32957 \begin_inset Box Boxed
32967 height_special "totalheight"
32972 backgroundcolor "none"
32975 \begin_layout Plain Layout
32977 This box text is top-aligned.
32982 This is an example text line.
32985 \begin_layout Description
32986 middle This is an example text line.
32988 \begin_inset Box Boxed
32998 height_special "totalheight"
33003 backgroundcolor "none"
33006 \begin_layout Plain Layout
33008 This box text is middle-aligned.
33013 This is an example text line.
33016 \begin_layout Description
33017 bottom This is an example text line.
33019 \begin_inset Box Boxed
33029 height_special "totalheight"
33034 backgroundcolor "none"
33037 \begin_layout Plain Layout
33039 This box text is bottom-aligned.
33044 This is an example text line.
33047 \begin_layout Description
33048 stretch This is an example text line.
33050 \begin_inset Box Boxed
33060 height_special "totalheight"
33065 backgroundcolor "none"
33068 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33078 \begin_layout Plain Layout
33085 This is an example text line.
33088 \begin_layout Standard
33089 To stretch the box content, it must consist of more than one paragraph.
33090 In the example above every text line is in an own paragraph.
33093 \begin_layout Standard
33094 \begin_inset VSpace bigskip
33097 To align the box content horizontally you can use \SpecialChar LyX
33098 's paragraph dialog when
33102 \begin_inset space ~
33110 \begin_layout Standard
33112 \begin_inset Box Boxed
33122 height_special "totalheight"
33127 backgroundcolor "none"
33130 \begin_layout Plain Layout
33135 \begin_layout Plain Layout
33140 \begin_layout Plain Layout
33150 \begin_layout Standard
33151 If you have not set an
33154 \begin_inset space ~
33159 , you can align the box content horizontally in the box dialog.
33160 \begin_inset Separator parbreak
33166 \begin_layout Standard
33168 \begin_inset Box Boxed
33178 height_special "totalheight"
33183 backgroundcolor "none"
33186 \begin_layout Plain Layout
33187 This box text is horizontally stretched.
33195 \begin_layout Subsection
33197 \begin_inset CommandInset label
33199 name "sec:Decoration"
33204 \begin_inset Index idx
33207 \begin_layout Plain Layout
33216 \begin_layout Standard
33217 The type of the box can be specified in the box dialog in the drop-down
33223 The following types are possible:
33226 \begin_layout Description
33228 \begin_inset space ~
33231 frame Nothing is drawn.
33234 \begin_layout Description
33236 \begin_inset space ~
33240 \begin_inset space ~
33243 frame This draws a rectangular frame around the box.
33244 The frame line thickness can be specified.
33246 \begin_inset Box Boxed
33256 height_special "totalheight"
33261 backgroundcolor "none"
33264 \begin_layout Plain Layout
33274 \begin_layout Description
33276 \begin_inset space ~
33280 \begin_inset space ~
33283 thin This draws an oval frame around the box.
33284 The frame line thickness has the size 0.4
33285 \begin_inset space \thinspace{}
33290 \begin_inset Box ovalbox
33300 height_special "totalheight"
33305 backgroundcolor "none"
33308 \begin_layout Plain Layout
33318 \begin_layout Description
33320 \begin_inset space ~
33324 \begin_inset space ~
33327 thick This draws an oval frame around the box.
33328 The frame line thickness has the size 0.8
33329 \begin_inset space \thinspace{}
33334 \begin_inset Box Ovalbox
33344 height_special "totalheight"
33349 backgroundcolor "none"
33352 \begin_layout Plain Layout
33362 \begin_layout Description
33364 \begin_inset space ~
33367 shadow This draws a rectangular frame with a shadow around the box.
33368 The frame line thickness and the shadow can be specified.
33370 \begin_inset Box Shadowbox
33380 height_special "totalheight"
33385 backgroundcolor "none"
33388 \begin_layout Plain Layout
33398 \begin_layout Description
33400 \begin_inset space ~
33403 background This draws a box with a red background.
33404 Unlike colored boxes
33408 \begin_layout Plain Layout
33410 \begin_inset space \thinspace{}
33414 \begin_inset CommandInset ref
33416 reference "sec:Colored-Boxes"
33425 , it always uses the whole column width and the box is set as its own paragraph.
33427 \begin_inset Box Shaded
33437 height_special "totalheight"
33442 backgroundcolor "none"
33445 \begin_layout Plain Layout
33446 Shaded background box
33454 \begin_layout Description
33456 \begin_inset space ~
33460 \begin_inset space ~
33463 frame This draws a double-line rectangular frame around the box.
33464 The line thickness of the inner frame is 0.75
33465 \begin_inset space \thinspace{}
33469 \begin_inset space ~
33472 thickness, the thickness of the outer frame is 1.5
33473 \begin_inset space \thinspace{}
33477 \begin_inset space ~
33481 The distance between the lines is 1.5
33482 \begin_inset space \thinspace{}
33486 \begin_inset space ~
33490 \begin_inset space \thinspace{}
33494 \begin_inset space \thinspace{}
33498 \begin_inset space \thinspace{}
33503 \begin_inset Box Doublebox
33513 height_special "totalheight"
33518 backgroundcolor "none"
33521 \begin_layout Plain Layout
33523 Double rectangular box
33531 \begin_layout Standard
33532 \begin_inset VSpace bigskip
33536 's box label will reflect the different frame types.
33537 To be able to use all types, the \SpecialChar LaTeX
33543 \begin_inset Index idx
33546 \begin_layout Plain Layout
33548 -packages ! fancybox
33556 \begin_layout Standard
33557 \begin_inset VSpace bigskip
33560 When you use the decoration
33562 simple rectangular frame
33564 and no inner box, you can allow page breaks within a box.
33565 Note that then, unlike other framed boxes, the frame always uses the whole
33566 column width and the box is set as its own paragraph:
33567 \begin_inset Box Framed
33577 height_special "totalheight"
33582 backgroundcolor "none"
33585 \begin_layout Plain Layout
33586 Allow page break box
33594 \begin_layout Section
33596 \begin_inset Index idx
33599 \begin_layout Plain Layout
33600 Boxes ! Customization
33608 \begin_layout Standard
33609 The diameter of the round corners of the oval boxes can be set with the
33620 \begin_layout Standard
33628 \begin_layout Standard
33629 sets the diameter to 1
33630 \begin_inset space \thinspace{}
33637 \begin_layout Standard
33645 \begin_layout Standard
33646 sets the diameter to
33649 \begin_inset space \thinspace{}
33653 \begin_inset space \thinspace{}
33656 minimum(width and height of box)
33668 \begin_layout Standard
33672 \begin_layout Plain Layout
33682 \begin_inset Box Ovalbox
33692 height_special "totalheight"
33697 backgroundcolor "none"
33700 \begin_layout Plain Layout
33709 \begin_inset space \thinspace{}
33713 \begin_inset space \thinspace{}
33717 \begin_inset space \thinspace{}
33729 \begin_layout Plain Layout
33741 \begin_layout Standard
33742 \begin_inset VSpace bigskip
33748 \begin_layout Standard
33749 The default background color red of
33753 boxes can either be changed locally with the command
33757 definecolor{shadecolor}
33759 or globally with the menu
33761 Tools\SpecialChar menuseparator
33762 Preferences\SpecialChar menuseparator
33763 Colors\SpecialChar menuseparator
33765 \begin_inset space ~
33777 command is explained in section
33778 \begin_inset space ~
33782 \begin_inset CommandInset ref
33784 reference "sec:Colored-Tables"
33792 \begin_layout Plain Layout
33799 requires the \SpecialChar LaTeX
33804 in the preamble, see section
33805 \begin_inset space ~
33809 \begin_inset CommandInset ref
33811 reference "sec:Colored-Boxes"
33820 For example the appearance of the following shaded background box is set
33821 with the \SpecialChar TeX
33825 \begin_layout Standard
33830 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33833 \begin_layout Standard
33837 \begin_layout Plain Layout
33841 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33847 \begin_inset Box Shaded
33857 height_special "totalheight"
33862 backgroundcolor "none"
33865 \begin_layout Plain Layout
33868 This is yellow text in a
33878 box with dark green background.
33887 \begin_layout Plain Layout
33891 definecolor{shadecolor}{rgb}{1,0,0}
33899 \begin_layout Standard
33900 \begin_inset VSpace bigskip
33903 Manually changed sizes and colors are valid for all boxes following the
33904 commands that change them.
33907 \begin_layout Section
33909 \begin_inset CommandInset label
33911 name "sec:Minipages"
33916 \begin_inset Index idx
33919 \begin_layout Plain Layout
33928 \begin_layout Standard
33929 Minipages are treated by \SpecialChar LaTeX
33930 as pages within pages and can therefore for example
33931 have their own footnotes.
33934 \begin_layout Standard
33935 Minipages are useful when you write documents with different languages.
33938 \begin_layout Standard
33939 Below are two example minipages side by side.
33940 Their width is set to 45
33941 \begin_inset space \thinspace{}
33944 col% and they are separated by a horizontal fill, that was inserted via
33947 Insert\SpecialChar menuseparator
33949 \begin_inset space ~
33952 Formatting\SpecialChar menuseparator
33954 \begin_inset space ~
33960 \begin_inset Newpage newpage
33966 \begin_layout Standard
33967 \begin_inset Box Frameless
33977 height_special "totalheight"
33982 backgroundcolor "none"
33985 \begin_layout Plain Layout
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text.
33996 Dies ist ein deutscher Text.
33997 Dies ist ein deutscher Text.
33998 Dies ist ein deutscher Text.
33999 Dies ist ein deutscher Text.
34000 Dies ist ein deutscher Text
34004 \begin_layout Plain Layout
34007 Dies ist eine deutsche Fußnote.
34013 Dies ist ein deutscher Text.
34014 Dies ist ein deutscher Text.
34020 \begin_inset space \hfill{}
34024 \begin_inset Box Frameless
34034 height_special "totalheight"
34039 backgroundcolor "none"
34042 \begin_layout Plain Layout
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34054 This is an English Text.
34055 This is an English Text.
34056 This is an English Text.
34057 This is an English Text.
34058 This is an English Text.
34062 \begin_layout Plain Layout
34063 This is an English footnote.
34068 This is an English Text.
34076 \begin_layout Standard
34077 \begin_inset VSpace bigskip
34080 The document-wide paragraph settings are ignored within minipages.
34081 That means that there will be no space between paragraphs in minipages
34082 although you set it to e.
34083 \begin_inset space \thinspace{}
34087 \begin_inset space \space{}
34094 in the document settings.
34097 \begin_layout Standard
34098 Minipages can also be used to set a background color for text parts, see
34100 \begin_inset space ~
34104 \begin_inset CommandInset ref
34106 reference "sec:Colored-Boxes"
34113 \begin_layout Standard
34114 \begin_inset Note Greyedout
34117 \begin_layout Plain Layout
34122 You cannot have floats or margin notes inside minipages but minipages can
34123 be used inside tables, floats, and other boxes.
34131 \begin_layout Standard
34132 \begin_inset VSpace bigskip
34138 \begin_layout Standard
34140 has also basic support for minipages whose size is automatically determined
34141 by the width of their contents, via the module
34143 Variable-width Minipages
34146 The \SpecialChar LyX
34149 varwidth-floats-side-by-side
34151 gives examples of variable-width minipages used for placing two floats
34155 \begin_layout Section
34157 \begin_inset CommandInset label
34159 name "sec:Parboxes"
34164 \begin_inset Index idx
34167 \begin_layout Plain Layout
34176 \begin_layout Standard
34177 Parboxes are very similar to minipages with the difference that they cannot
34179 \begin_inset Separator parbreak
34185 \begin_layout Standard
34187 \begin_inset Box Frameless
34197 height_special "totalheight"
34202 backgroundcolor "none"
34205 \begin_layout Plain Layout
34206 This a text within a parbox.
34207 This a text within a parbox.
34210 \begin_layout Plain Layout
34211 This footnote won't appear:
34215 \begin_layout Plain Layout
34216 This footnote is inside a parbox and will therefore not appear.
34229 \begin_layout Section
34230 Boxes for Words and Characters
34231 \begin_inset Index idx
34234 \begin_layout Plain Layout
34235 Boxes ! for Characters
34243 \begin_layout Subsection
34244 Prevent Hyphenation
34245 \begin_inset CommandInset label
34247 name "sec:Prevent-Hyphenation"
34252 \begin_inset Index idx
34255 \begin_layout Plain Layout
34256 Boxes ! to Prevent Hyphenation
34264 \begin_layout Standard
34265 You can use the box type
34269 to prevent words or text from being hyphenated.
34270 \begin_inset Newline newline
34273 Here is an example text:
34276 \begin_layout Standard
34277 This line is an example to show how you can prevent the hyphenation of
34278 \begin_inset Quotes eld
34282 \begin_inset Quotes erd
34288 \begin_layout Standard
34289 To prevent the hyphenation of the word
34290 \begin_inset Quotes eld
34294 \begin_inset Quotes erd
34297 , put the word into a box, set the
34300 \begin_inset space ~
34309 and use no explicit width.
34312 \begin_layout Standard
34313 This is the result:
34316 \begin_layout Standard
34317 This line is an example to show how you can prevent the hyphenation of
34318 \begin_inset Box Frameless
34328 height_special "totalheight"
34333 backgroundcolor "none"
34336 \begin_layout Plain Layout
34337 \begin_inset Quotes eld
34341 \begin_inset Quotes erd
34352 \begin_layout Standard
34353 You can alternatively set the command
34354 \begin_inset Quotes eld
34364 \begin_inset Quotes grd
34367 as \SpecialChar TeX
34368 Code directly before the word:
34371 \begin_layout Standard
34372 This line is an example to show how you can prevent the hyphenation of
34373 \begin_inset Quotes eld
34380 \begin_layout Plain Layout
34390 \begin_inset Quotes erd
34396 \begin_layout Standard
34397 Of course the word now protrudes over the side margin.
34398 To avoid this, add via the menu
34400 Insert\SpecialChar menuseparator
34401 Formatting\SpecialChar menuseparator
34403 \begin_inset space ~
34407 \begin_inset space ~
34415 arg "newline-insert newline"
34418 ) a line break before the word:
34421 \begin_layout Standard
34422 This line is an example to show how you can prevent the hyphenation of
34423 \begin_inset Newline newline
34427 \begin_inset Box Frameless
34437 height_special "totalheight"
34442 backgroundcolor "none"
34445 \begin_layout Plain Layout
34446 \begin_inset Quotes eld
34450 \begin_inset Quotes erd
34461 \begin_layout Subsection
34463 \begin_inset CommandInset label
34465 name "subsec:Vertical-Alignment"
34470 \begin_inset Index idx
34473 \begin_layout Plain Layout
34474 Boxes ! for Vertical Alignment
34480 \begin_inset Index idx
34483 \begin_layout Plain Layout
34492 \begin_layout Standard
34493 With the help of the command
34499 you can align words, characters or other boxes vertically relative to the
34507 is used with the following scheme:
34510 \begin_layout Standard
34515 raisebox{lift}[height][depth]{box content}
34518 \begin_layout Standard
34519 The lift can be a positive value to raise the box or a negative value to
34523 \begin_layout Standard
34524 To align for example the word
34525 \begin_inset Quotes eld
34529 \begin_inset Quotes erd
34532 so that the bottom of the
34533 \begin_inset Quotes eld
34537 \begin_inset Quotes erd
34541 \begin_inset Quotes eld
34545 \begin_inset Quotes erd
34548 is at the baseline, insert the command
34551 \begin_layout Standard
34561 \begin_layout Standard
34562 in \SpecialChar TeX
34563 Code before the word.
34564 After the word insert a closing brace
34565 \begin_inset Quotes eld
34573 \begin_inset Quotes erd
34576 in \SpecialChar TeX
34578 \begin_inset Newline newline
34581 This is the result:
34584 \begin_layout Standard
34585 This is a text line with the word
34589 \begin_layout Plain Layout
34601 \begin_inset Quotes eld
34605 \begin_inset Quotes erd
34612 \begin_layout Plain Layout
34622 \begin_layout Standard
34623 \begin_inset VSpace bigskip
34626 When you raise or lower characters in a line, the line distance will be
34630 \begin_layout Standard
34631 This is a text line with the word
34635 \begin_layout Plain Layout
34647 \begin_inset Quotes eld
34651 \begin_inset Quotes erd
34658 \begin_layout Plain Layout
34666 \begin_inset Newline newline
34669 This is a text line with the word
34673 \begin_layout Plain Layout
34683 \begin_inset Quotes eld
34687 \begin_inset Quotes erd
34694 \begin_layout Plain Layout
34704 \begin_layout Standard
34705 If you want to prevent this for a certain reason, set the box height to
34710 \begin_layout Standard
34720 \begin_layout Standard
34721 This is a text line with the word
34725 \begin_layout Plain Layout
34737 \begin_inset Quotes eld
34741 \begin_inset Quotes erd
34748 \begin_layout Plain Layout
34756 \begin_inset Newline newline
34760 \begin_inset Newline newline
34763 This is a text line with the word
34767 \begin_layout Plain Layout
34771 raisebox{0.5cm}[0pt]{
34777 \begin_inset Quotes eld
34781 \begin_inset Quotes erd
34788 \begin_layout Plain Layout
34798 \begin_layout Section
34800 \begin_inset CommandInset label
34802 name "sec:Colored-Boxes"
34807 \begin_inset Index idx
34810 \begin_layout Plain Layout
34819 \begin_layout Standard
34820 To color the background of a box just select the color you like in the box
34822 This is for example a box with orange background:
34823 \begin_inset Box Frameless
34833 height_special "totalheight"
34838 backgroundcolor "orange"
34841 \begin_layout Plain Layout
34842 Box with orange background
34850 \begin_layout Standard
34851 If you use the decoration
34854 \begin_inset space ~
34858 \begin_inset space ~
34863 you can set a frame color.
34864 In this case you must also specify a background color (LyX sets white as
34866 Here is an example:
34867 \begin_inset Box Boxed
34877 height_special "totalheight"
34882 backgroundcolor "yellow"
34885 \begin_layout Plain Layout
34886 Box with teal frame color and yellow background color
34894 \begin_layout Standard
34895 \begin_inset VSpace bigskip
34898 Of course you can also have colored text inside a colored box:
34899 \begin_inset Newline newline
34903 \begin_inset Box Boxed
34913 height_special "totalheight"
34918 backgroundcolor "magenta"
34921 \begin_layout Plain Layout
34924 This is colored text within a colored, framed box
34932 \begin_layout Standard
34933 \begin_inset VSpace bigskip
34939 \begin_layout Standard
34940 If you need another color than the predefined ones, you can define your
34941 own color as described in section
34942 \begin_inset space ~
34946 \begin_inset CommandInset ref
34948 reference "sec:Colored-Tables"
34953 To use your own color you must typeset the box by using TeX code:
34956 \begin_layout Standard
34957 Colored boxes without frame are created with the command
34964 It has the following scheme:
34967 \begin_layout Standard
34972 colorbox{color}{box content}
34975 \begin_layout Standard
34976 The box content can also be a box and colored boxes can also be within other
34979 \begin_inset space \thinspace{}
34983 \begin_inset space \space{}
34986 a darkgreen background for a word, insert the command
34989 \begin_layout Standard
34994 colorbox{darkgreen}{
34997 \begin_layout Standard
34998 before the word in \SpecialChar TeX
35000 After the word insert a closing brace
35001 \begin_inset Quotes eld
35009 \begin_inset Quotes erd
35012 in \SpecialChar TeX
35014 \begin_inset Newline newline
35017 This is the result:
35020 \begin_layout Standard
35021 This is a line where the word
35025 \begin_layout Plain Layout
35029 colorbox{darkgreen}{
35035 \begin_inset Quotes eld
35039 \begin_inset Quotes erd
35046 \begin_layout Plain Layout
35053 has a darkgreen background.
35056 \begin_layout Standard
35057 Framed, colored boxes are created with the command
35064 It has the following scheme:
35067 \begin_layout Standard
35072 fcolorbox{frame color}{box color}{box content}
35075 \begin_layout Section
35076 Rotated and Scaled Boxes
35079 \begin_layout Standard
35080 To use the boxes described in this section, the module
35084 must be loaded in the document settings.
35087 \begin_layout Standard
35088 \begin_inset Note Greyedout
35091 \begin_layout Plain Layout
35096 Not all DVI viewers are able to display rotated or scaled material.
35104 \begin_layout Standard
35105 \begin_inset Note Greyedout
35108 \begin_layout Plain Layout
35113 Floats are not allowed inside a rotated or scaled box.
35121 \begin_layout Subsection
35123 \begin_inset Index idx
35126 \begin_layout Plain Layout
35133 \begin_inset Index idx
35136 \begin_layout Plain Layout
35145 \begin_layout Standard
35146 To rotate material, you can put it into a
35151 Such a box is inserted via the menu
35153 Insert\SpecialChar menuseparator
35154 Custom Insets\SpecialChar menuseparator
35160 \begin_layout Standard
35161 The rotation origin can be specified via the inset
35167 Insert\SpecialChar menuseparator
35175 The following positions are possible:
35195 (top), along with meaningful combinations of the four base positions.
35200 means that the rotation origin is at the top left corner of the box.
35201 When no rotation origin is specified, the position
35206 The rotation angle is a number that can be negative that specifies the
35208 The rotation direction is counterclockwise.
35211 \begin_layout Standard
35212 In the following example
35216 was inserted to the
35224 was inserted to the
35231 \begin_layout Standard
35233 \begin_inset Flex Rotatebox
35236 \begin_layout Plain Layout
35237 \begin_inset Argument 1
35240 \begin_layout Plain Layout
35247 \begin_inset Argument 2
35250 \begin_layout Plain Layout
35264 \begin_layout Standard
35265 The box content can also be another box or an inline formula:
35268 \begin_layout Standard
35270 \begin_inset Flex Rotatebox
35273 \begin_layout Plain Layout
35274 \begin_inset Argument 1
35277 \begin_layout Plain Layout
35284 \begin_inset Argument 2
35287 \begin_layout Plain Layout
35294 \begin_inset Box Doublebox
35304 height_special "totalheight"
35309 backgroundcolor "none"
35312 \begin_layout Plain Layout
35324 \begin_inset Flex Rotatebox
35327 \begin_layout Plain Layout
35328 \begin_inset Argument 1
35331 \begin_layout Plain Layout
35338 \begin_inset Argument 2
35341 \begin_layout Plain Layout
35348 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35359 \begin_layout Standard
35360 or an image or table:
35363 \begin_layout Standard
35365 \begin_inset Flex Rotatebox
35368 \begin_layout Plain Layout
35369 \begin_inset Argument 1
35372 \begin_layout Plain Layout
35379 \begin_inset Argument 2
35382 \begin_layout Plain Layout
35389 \begin_inset Graphics
35390 filename clipart/platypus.eps
35401 with a rotated image
35402 \begin_inset Flex Rotatebox
35405 \begin_layout Plain Layout
35406 \begin_inset Argument 2
35409 \begin_layout Plain Layout
35416 \begin_inset Tabular
35417 <lyxtabular version="3" rows="2" columns="2">
35418 <features tabularvalignment="middle">
35419 <column alignment="center" valignment="top">
35420 <column alignment="center" valignment="top">
35422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35425 \begin_layout Plain Layout
35431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35434 \begin_layout Plain Layout
35442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35445 \begin_layout Plain Layout
35451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35454 \begin_layout Plain Layout
35471 \begin_inset Index idx
35474 \begin_layout Plain Layout
35481 \begin_inset Index idx
35484 \begin_layout Plain Layout
35485 Table Customization ! Rotating
35493 \begin_layout Standard
35494 \begin_inset Note Greyedout
35497 \begin_layout Plain Layout
35506 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35508 errors when viewing/exporting the document.
35516 \begin_layout Subsection
35518 \begin_inset Index idx
35521 \begin_layout Plain Layout
35528 \begin_inset Index idx
35531 \begin_layout Plain Layout
35540 \begin_layout Standard
35541 To scale material put it into a
35546 Such a box is inserted via the menu
35548 Insert\SpecialChar menuseparator
35549 Custom Insets\SpecialChar menuseparator
35555 \begin_layout Standard
35560 inset has the mandatory inset
35564 and the optional inset
35568 (inserted via the menu
35570 Insert\SpecialChar menuseparator
35574 Input there the horizontal and vertical scale factor, respectively.
35579 inset is used, the horizontal factor will also be used as the vertical
35583 \begin_layout Standard
35584 To get for example the double text size, compared to the document text size,
35595 \begin_inset Flex Scalebox
35598 \begin_layout Plain Layout
35599 \begin_inset Argument 1
35602 \begin_layout Plain Layout
35616 \begin_layout Standard
35634 \begin_inset Flex Scalebox
35637 \begin_layout Plain Layout
35638 \begin_inset Argument 1
35641 \begin_layout Plain Layout
35648 \begin_inset Argument 2
35651 \begin_layout Plain Layout
35665 \begin_layout Standard
35666 If the scaling factor is negative, the box content will be mirrored.
35683 can be used to create mirror writing:
35684 \begin_inset Flex Scalebox
35687 \begin_layout Plain Layout
35688 \begin_inset Argument 1
35691 \begin_layout Plain Layout
35698 \begin_inset Argument 2
35701 \begin_layout Plain Layout
35715 \begin_layout Standard
35733 \begin_inset Flex Scalebox
35736 \begin_layout Plain Layout
35737 \begin_inset Argument 1
35740 \begin_layout Plain Layout
35747 \begin_inset Argument 2
35750 \begin_layout Plain Layout
35764 \begin_layout Standard
35771 Insert\SpecialChar menuseparator
35772 Custom Insets\SpecialChar menuseparator
35798 \begin_layout Standard
35799 \begin_inset Note Greyedout
35802 \begin_layout Plain Layout
35811 inset is empty or contains other characters than numbers you will get LaTeX
35812 errors when viewing/exporting the document.
35820 \begin_layout Standard
35821 \begin_inset VSpace bigskip
35830 Insert\SpecialChar menuseparator
35831 Custom Insets\SpecialChar menuseparator
35834 ) is used to scale the content to a defined width and height.
35839 inset has the mandatory inset
35843 and the optional inset
35847 (inserted via the menu
35849 Insert\SpecialChar menuseparator
35853 Input there the width and height, respectively, as value with a unit.
35855 \begin_inset CommandInset ref
35857 reference "tab:Units"
35861 lists the possible units.
35862 If there is an exclamation mark
35866 in of of the two insets, the size is set so that the aspect ratio of the
35867 box content is kept.
35872 inset is used an exclamation mark will internally be used for the height.
35875 \begin_layout Standard
35893 \begin_inset Flex Resizebox
35896 \begin_layout Plain Layout
35897 \begin_inset Argument 1
35900 \begin_layout Plain Layout
35907 \begin_inset Argument 2
35910 \begin_layout Plain Layout
35922 \begin_inset Newline newline
35946 \begin_inset Flex Resizebox
35949 \begin_layout Plain Layout
35950 \begin_inset Argument 1
35953 \begin_layout Plain Layout
35960 \begin_inset Argument 2
35963 \begin_layout Plain Layout
35977 \begin_layout Standard
35978 \begin_inset Note Greyedout
35981 \begin_layout Plain Layout
35990 inset is empty or contains an invalid unit you will get LaTeX errors when
35991 viewing/exporting the document.
35999 \begin_layout Standard
36000 \begin_inset VSpace bigskip
36006 \begin_layout Standard
36007 The boxes can be combined in any order.
36016 which is in turn inside a
36023 \begin_layout Standard
36026 \begin_inset Flex Rotatebox
36029 \begin_layout Plain Layout
36030 \begin_inset Argument 1
36033 \begin_layout Plain Layout
36040 \begin_inset Argument 2
36043 \begin_layout Plain Layout
36050 \begin_inset Flex Resizebox
36053 \begin_layout Plain Layout
36054 \begin_inset Argument 1
36057 \begin_layout Plain Layout
36064 \begin_inset Flex Reflectbox
36067 \begin_layout Plain Layout
36086 \begin_layout Standard
36088 Images, tables, and inline formulas are allowed as box content:
36091 \begin_layout Standard
36094 \begin_inset Flex Resizebox
36097 \begin_layout Plain Layout
36098 \begin_inset Argument 1
36101 \begin_layout Plain Layout
36108 \begin_inset Flex Reflectbox
36111 \begin_layout Plain Layout
36112 \begin_inset Graphics
36113 filename clipart/platypus.eps
36130 \begin_inset Flex Resizebox
36133 \begin_layout Plain Layout
36134 \begin_inset Argument 1
36137 \begin_layout Plain Layout
36144 \begin_inset Flex Reflectbox
36147 \begin_layout Plain Layout
36148 \begin_inset Tabular
36149 <lyxtabular version="3" rows="2" columns="2">
36150 <features tabularvalignment="middle">
36151 <column alignment="center" valignment="top">
36152 <column alignment="center" valignment="top">
36154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36157 \begin_layout Plain Layout
36163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36166 \begin_layout Plain Layout
36174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36177 \begin_layout Plain Layout
36183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36186 \begin_layout Plain Layout
36208 \begin_inset Flex Resizebox
36211 \begin_layout Plain Layout
36212 \begin_inset Argument 1
36215 \begin_layout Plain Layout
36222 \begin_inset Flex Reflectbox
36225 \begin_layout Plain Layout
36226 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36240 \begin_inset Index idx
36243 \begin_layout Plain Layout
36250 \begin_inset Index idx
36253 \begin_layout Plain Layout
36254 Table Customization ! Scaling
36262 \begin_layout Standard
36263 When the global formula style
36267 is used in the document
36271 \begin_layout Plain Layout
36273 \begin_inset Quotes eld
36277 \begin_inset Quotes erd
36280 is added to the document class options.
36285 , display style formulas can also be scaled.
36288 \begin_layout Chapter
36289 Objects Surrounded by Text
36290 \begin_inset Index idx
36293 \begin_layout Plain Layout
36302 \begin_layout Section
36304 \begin_inset CommandInset label
36306 name "sec:Wrap-Floats"
36311 \begin_inset Index idx
36314 \begin_layout Plain Layout
36315 Floats ! Wrap Floats
36321 \begin_inset Index idx
36324 \begin_layout Plain Layout
36325 Surrounded by text ! Wrap Floats
36333 \begin_layout Standard
36334 \begin_inset Wrap figure
36341 \begin_layout Plain Layout
36342 \begin_inset Graphics
36343 filename clipart/mobius.eps
36345 scaleBeforeRotation
36346 rotateOrigin center
36353 \begin_layout Plain Layout
36354 \begin_inset Caption Standard
36356 \begin_layout Plain Layout
36357 \begin_inset CommandInset label
36359 name "fig:This-is-a"
36363 This is a figure wrap float.
36373 This float type is used if you want to wrap text around a figure or table
36374 so that it only occupies some fraction of the column width.
36375 It can be inserted using the menu
36377 Insert\SpecialChar menuseparator
36378 Floats\SpecialChar menuseparator
36380 \begin_inset space ~
36384 \begin_inset space ~
36392 \begin_inset space ~
36396 \begin_inset space ~
36401 if the \SpecialChar LaTeX
36407 \begin_inset Index idx
36410 \begin_layout Plain Layout
36412 -packages ! wrapfig
36421 \begin_layout Plain Layout
36422 Installing a \SpecialChar LaTeX
36423 -package is explained it in the
36427 \begin_inset space ~
36437 The settings of the float can be modified by right-clicking on the float
36439 The mandatory settings are the float
36452 that specifies how much the float is set into the paragraph
36453 \begin_inset space \thinspace{}
36457 \begin_inset space \thinspace{}
36460 page margin, and the
36463 \begin_inset space ~
36468 that specifies how many text lines the float will approximately need.
36469 The line span is often hard to approximate; so it is better only to use
36470 it when you encounter float placement problems.
36471 You can furthermore decide if \SpecialChar LaTeX
36472 is allowed to let the float float within
36473 the paragraph or to surrounding paragraphs.
36475 \begin_inset space ~
36479 \begin_inset CommandInset ref
36481 reference "fig:This-is-a"
36485 is an example text wrap float with a width of 40
36486 \begin_inset space \thinspace{}
36490 \begin_inset space \thinspace{}
36493 cm overhang, set to the left.
36496 \begin_layout Standard
36497 \begin_inset Note Greyedout
36500 \begin_layout Plain Layout
36506 \begin_inset space ~
36509 wrap float floats are fragile! E.
36510 \begin_inset space \thinspace{}
36514 \begin_inset space \space{}
36517 having a figure too close to the bottom of the page can mess things up in
36518 such a way that the float does not appear in the output or that it is placed
36519 over some other text.
36527 \begin_layout Standard
36528 In general, the following applies for wrap floats:
36531 \begin_layout Itemize
36532 They should not be placed in paragraphs that run over a page break.
36533 That means that wrap floats are better inserted in their exact place when
36534 the document is almost finished and you are able to estimate where page
36535 breaks will appear.
36538 \begin_layout Itemize
36539 They should either be placed in their own paragraph before the paragraph
36540 where they should wrap into or within a paragraph.
36543 \begin_layout Itemize
36544 In consecutive paragraphs they may cause troubles, so ensure that there
36545 is a text paragraph between them as separator.
36548 \begin_layout Itemize
36549 They are not allowed in section headings or tables.
36552 \begin_layout Itemize
36553 Their numbering and referencing works as described in chap.
36554 \begin_inset space \thinspace{}
36558 \begin_inset CommandInset ref
36560 reference "chap:Floats"
36567 \begin_layout Section
36568 Surrounded Fixed Objects
36569 \begin_inset Index idx
36572 \begin_layout Plain Layout
36573 Surrounded by text ! Fixed objects
36581 \begin_layout Standard
36582 The wrap floats described in sec.
36583 \begin_inset space \thinspace{}
36587 \begin_inset CommandInset ref
36589 reference "sec:Wrap-Floats"
36593 have these positions in the paragraph:
36594 \begin_inset Separator parbreak
36600 \begin_layout Standard
36603 \begin_inset Tabular
36604 <lyxtabular version="3" rows="2" columns="2">
36605 <features tabularvalignment="middle">
36606 <column alignment="center" valignment="top">
36607 <column alignment="center" valignment="top">
36609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36612 \begin_layout Plain Layout
36615 arg "dialog-show-new-inset graphics"
36623 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36626 \begin_layout Plain Layout
36634 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36637 \begin_layout Plain Layout
36643 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36646 \begin_layout Plain Layout
36658 \begin_inset Tabular
36659 <lyxtabular version="3" rows="2" columns="2">
36660 <features tabularvalignment="middle">
36661 <column alignment="center" valignment="top">
36662 <column alignment="center" valignment="top">
36664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36667 \begin_layout Plain Layout
36673 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36676 \begin_layout Plain Layout
36679 arg "dialog-show-new-inset graphics"
36689 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36692 \begin_layout Plain Layout
36698 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36701 \begin_layout Plain Layout
36715 \begin_layout Standard
36716 To get an object exactly at the position where it is inserted, for example
36717 to get one of these positions:
36718 \begin_inset VSpace defskip
36724 \begin_layout Standard
36727 \begin_inset Tabular
36728 <lyxtabular version="3" rows="2" columns="2">
36729 <features tabularvalignment="middle">
36730 <column alignment="center" valignment="top">
36731 <column alignment="center" valignment="top">
36733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36736 \begin_layout Plain Layout
36742 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36745 \begin_layout Plain Layout
36753 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36756 \begin_layout Plain Layout
36759 arg "dialog-show-new-inset graphics"
36767 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36770 \begin_layout Plain Layout
36782 \begin_inset Tabular
36783 <lyxtabular version="3" rows="2" columns="2">
36784 <features tabularvalignment="middle">
36785 <column alignment="center" valignment="top">
36786 <column alignment="center" valignment="top">
36788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36791 \begin_layout Plain Layout
36797 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36800 \begin_layout Plain Layout
36808 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36811 \begin_layout Plain Layout
36817 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36820 \begin_layout Plain Layout
36823 arg "dialog-show-new-inset graphics"
36837 \begin_inset Tabular
36838 <lyxtabular version="3" rows="2" columns="3">
36839 <features tabularvalignment="middle">
36840 <column alignment="center" valignment="top">
36841 <column alignment="center" valignment="top">
36842 <column alignment="center" valignment="top">
36844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36847 \begin_layout Plain Layout
36853 <cell alignment="center" valignment="top" topline="true" usebox="none">
36856 \begin_layout Plain Layout
36859 arg "dialog-show-new-inset graphics"
36867 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36870 \begin_layout Plain Layout
36878 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36881 \begin_layout Plain Layout
36887 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36890 \begin_layout Plain Layout
36896 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36899 \begin_layout Plain Layout
36911 \begin_inset Tabular
36912 <lyxtabular version="3" rows="2" columns="3">
36913 <features tabularvalignment="middle">
36914 <column alignment="center" valignment="top">
36915 <column alignment="center" valignment="top">
36916 <column alignment="center" valignment="top">
36918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36921 \begin_layout Plain Layout
36927 <cell alignment="center" valignment="top" topline="true" usebox="none">
36930 \begin_layout Plain Layout
36936 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36939 \begin_layout Plain Layout
36947 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36950 \begin_layout Plain Layout
36956 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36959 \begin_layout Plain Layout
36962 arg "dialog-show-new-inset graphics"
36970 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36973 \begin_layout Plain Layout
36987 \begin_layout Standard
36990 \begin_inset Tabular
36991 <lyxtabular version="3" rows="3" columns="2">
36992 <features tabularvalignment="middle">
36993 <column alignment="center" valignment="top">
36994 <column alignment="center" valignment="top">
36996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36999 \begin_layout Plain Layout
37005 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37008 \begin_layout Plain Layout
37016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37019 \begin_layout Plain Layout
37022 arg "dialog-show-new-inset graphics"
37030 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37033 \begin_layout Plain Layout
37041 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37044 \begin_layout Plain Layout
37050 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37053 \begin_layout Plain Layout
37065 \begin_inset Tabular
37066 <lyxtabular version="3" rows="3" columns="3">
37067 <features tabularvalignment="middle">
37068 <column alignment="center" valignment="top">
37069 <column alignment="center" valignment="top">
37070 <column alignment="center" valignment="top">
37072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37075 \begin_layout Plain Layout
37081 <cell alignment="center" valignment="top" topline="true" usebox="none">
37084 \begin_layout Plain Layout
37090 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37093 \begin_layout Plain Layout
37101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37104 \begin_layout Plain Layout
37110 <cell alignment="center" valignment="top" usebox="none">
37113 \begin_layout Plain Layout
37116 arg "dialog-show-new-inset graphics"
37124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37127 \begin_layout Plain Layout
37135 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37138 \begin_layout Plain Layout
37144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37147 \begin_layout Plain Layout
37153 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37156 \begin_layout Plain Layout
37168 \begin_inset Tabular
37169 <lyxtabular version="3" rows="3" columns="2">
37170 <features tabularvalignment="middle">
37171 <column alignment="center" valignment="top">
37172 <column alignment="center" valignment="top">
37174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37177 \begin_layout Plain Layout
37183 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37186 \begin_layout Plain Layout
37194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37197 \begin_layout Plain Layout
37203 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37206 \begin_layout Plain Layout
37209 arg "dialog-show-new-inset graphics"
37219 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37222 \begin_layout Plain Layout
37228 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37231 \begin_layout Plain Layout
37245 \begin_layout Standard
37247 you can use the \SpecialChar LaTeX
37253 \begin_inset Index idx
37256 \begin_layout Plain Layout
37258 -packages ! picinpar
37264 Here is an example:
37267 \begin_layout Standard
37271 \begin_layout Plain Layout
37281 \begin_inset Note Note
37284 \begin_layout Plain Layout
37285 The following section will only be displayed when the \SpecialChar LaTeX
37298 \begin_layout Standard
37302 \begin_layout Plain Layout
37306 begin{window}[2,c,{
37312 \begin_inset Graphics
37313 filename clipart/mobius.eps
37316 scaleBeforeRotation
37317 rotateOrigin center
37325 \begin_layout Plain Layout
37330 \begin_layout Plain Layout
37339 It was in the spring of the year 1894 that all London was interested, and
37340 the fashionable world dismayed, by the murder of the Honourable Ronald
37341 Adair under most unusual and inexplicable circumstances.
37342 The public has already learned those particulars of the crime which
37348 \begin_layout Plain Layout
37359 came out in the police investigation, but a good deal was suppressed upon
37360 that occasion, since the case for the prosecution was so overwhelmingly
37361 strong that it was not necessary to bring forward all the facts.
37362 Only now, at the end of nearly ten years, am I allowed to supply those
37363 missing links which make up the whole of that remarkable chain.
37369 \begin_layout Plain Layout
37381 \begin_layout Standard
37385 \begin_layout Plain Layout
37394 Footnote of the paragraph with the fixed object.
37398 \begin_layout Plain Layout
37408 \begin_layout Standard
37409 Surrounded fixed objects are used to let text float around them, at which
37410 the object's position in the paragraph can be determined by the number
37412 In contrary to floats is it not possible to have a numbered caption.
37415 \begin_layout Standard
37416 A fixed object is inserted by adding the command
37419 \begin_layout Standard
37424 begin{window}[2,c,{
37427 \begin_layout Standard
37428 as \SpecialChar TeX
37429 Code at the beginning of the paragraph.
37430 The first parameter in the bracket, here '2', defines the number of lines
37431 above the object, the second, here 'c', the position of the object.
37432 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37433 Behind the command you insert the object.
37434 In this example an image with a width of 40
37435 \begin_inset space \thinspace{}
37438 % of the text column width was inserted.
37439 The object can also be a table, a box or an equation.
37440 Behind the object the command
37443 \begin_layout Standard
37446 },description text]
37447 \begin_inset Newline newline
37453 \begin_layout Standard
37456 \begin_inset Quotes eld
37464 \begin_inset Quotes erd
37467 is in the second line.
37468 The description text is optional.
37469 The text surrounding the object must be in the same paragraph as the object,
37470 so it must begin directly after the
37475 At the end of the paragraph insert the command:
37478 \begin_layout Standard
37486 \begin_layout Standard
37487 Within a paragraph with a fixed object, you cannot insert footnotes in the
37489 You have to use instead the command
37495 inside the paragraph and outside the command
37501 as described in sec.
37502 \begin_inset space \thinspace{}
37506 \begin_inset CommandInset ref
37508 reference "sec:Footnotes"
37515 \begin_layout Standard
37519 \begin_layout Plain Layout
37529 \begin_inset Note Note
37532 \begin_layout Plain Layout
37533 The following will be displayed when the \SpecialChar LaTeX
37546 \begin_layout Standard
37547 You need to install the \SpecialChar LaTeX
37552 to see the following part of this section in the output.
37555 \begin_layout Standard
37559 \begin_layout Plain Layout
37571 \begin_layout Section
37573 \begin_inset Index idx
37576 \begin_layout Plain Layout
37583 \begin_inset Index idx
37586 \begin_layout Plain Layout
37587 Surrounded by text ! Initials
37595 \begin_layout Standard
37596 To use initials, you must have the \SpecialChar LaTeX
37602 \begin_inset Index idx
37605 \begin_layout Plain Layout
37607 -packages ! lettrine
37612 installed and use the module
37616 in your document (menu
37618 Document\SpecialChar menuseparator
37619 Settings\SpecialChar menuseparator
37623 To insert an initial, use the style
37628 This style has a mandatory and two optional arguments.
37629 The arguments are inserted via the
37634 The mandatory argument
37638 contains the letter(s) that is the initial, the argument
37641 \begin_inset space ~
37645 \begin_inset space ~
37650 contains the rest of the word or text of the initial letter(s).
37655 contains parameters to modify the initial.
37656 For more information about the possible parameters see the documentation
37662 \begin_inset CommandInset citation
37669 The style itself contains the text that is surrounding the initial.
37670 The usual style is hereby that the word whose first letter is the initial,
37678 \begin_layout Standard
37679 Here are some examples:
37682 \begin_layout Standard
37686 \begin_layout Plain Layout
37696 \begin_inset Note Note
37699 \begin_layout Plain Layout
37700 The following section will only be displayed when the \SpecialChar LaTeX
37713 \begin_layout Enumerate
37714 No optional argument, the initial is the letter 'I' in the math font
37715 \begin_inset Formula $\mathfrak{Fraktur}$
37719 \begin_inset Separator parbreak
37726 \begin_layout Initial
37727 \begin_inset Argument 2
37730 \begin_layout Plain Layout
37731 \begin_inset Formula $\mathfrak{I}$
37740 \begin_inset Argument 3
37743 \begin_layout Plain Layout
37749 was in the spring of the year 1894 that all London was interested, and
37750 the fashionable world dismayed, by the murder of the Honourable Ronald
37751 Adair under most unusual and inexplicable circumstances.
37752 The public has already learned those particulars of the crime which came
37753 out in the police investigation, but a good deal was suppressed upon that
37754 occasion, since the case for the prosecution was so overwhelmingly strong
37755 that it was not necessary to bring forward all the facts.
37756 \begin_inset Newpage newpage
37763 \begin_layout Enumerate
37764 Only one line is surrounding the initial, which is formed by two letters
37765 in standard font and no text is printed in small caps:
37766 \begin_inset Separator parbreak
37773 \begin_layout Initial
37774 \begin_inset Argument 1
37777 \begin_layout Plain Layout
37784 \begin_inset Argument 2
37787 \begin_layout Plain Layout
37793 was in the spring of the year 1894 that all London was interested, and
37794 the fashionable world dismayed, by the murder of the Honourable Ronald
37795 Adair under most unusual and inexplicable circumstances.
37796 The public has already learned those particulars of the crime which came
37797 out in the police investigation, but a good deal was suppressed upon that
37798 occasion, since the case for the prosecution was so overwhelmingly strong
37799 that it was not necessary to bring forward all the facts.
37803 \begin_layout Enumerate
37804 Magenta, hanging initial over 3
37805 \begin_inset space ~
37808 lines in the math font
37809 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37813 \begin_inset Quotes eld
37816 t was in the spring
37817 \begin_inset Quotes erd
37824 ; to color the initial, you must insert this command before the initial:
37825 \begin_inset Newline newline
37839 \begin_inset Newline newline
37847 \begin_inset Quotes eld
37851 \begin_inset Quotes erd
37855 \begin_inset Quotes eld
37859 \begin_inset Quotes erd
37863 \begin_inset Quotes eld
37867 \begin_inset Quotes erd
37871 \begin_inset Quotes eld
37875 \begin_inset Quotes erd
37879 \begin_inset Quotes eld
37883 \begin_inset Quotes erd
37887 \begin_inset Quotes eld
37891 \begin_inset Quotes erd
37895 \begin_inset Quotes eld
37899 \begin_inset Quotes erd
37903 \begin_inset Quotes eld
37907 \begin_inset Quotes erd
37910 , and add this command to the document preamble:
37911 \begin_inset Newline newline
37918 @ifundefined{textcolor}
37919 \begin_inset Newline newline
37923 \begin_inset space ~
37928 usepackage{color}}{}
37931 \begin_inset Separator parbreak
37938 \begin_layout Standard
37942 \begin_layout Plain Layout
37956 \begin_inset Note Note
37959 \begin_layout Plain Layout
37960 makes the initial magenta
37968 \begin_layout Initial
37969 \begin_inset Argument 1
37972 \begin_layout Plain Layout
37973 lines=3, lhang=0.33, loversize=0.25
37979 \begin_inset Argument 2
37982 \begin_layout Plain Layout
37983 \begin_inset Formula $\mathcal{I}$
37992 \begin_inset Argument 3
37995 \begin_layout Plain Layout
37996 t was in the spring
38001 of the year 1894 that all London was interested, and the fashionable world
38002 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38003 and inexplicable circumstances.
38004 The public has already learned those particulars of the crime which came
38005 out in the police investigation, but a good deal was suppressed upon that
38006 occasion, since the case for the prosecution was so overwhelmingly strong
38007 that it was not necessary to bring forward all the facts.
38011 \begin_layout Standard
38015 \begin_layout Plain Layout
38025 \begin_inset Note Note
38028 \begin_layout Plain Layout
38029 The following will be displayed when the \SpecialChar LaTeX
38042 \begin_layout Standard
38043 You need to install the \SpecialChar LaTeX
38048 to see the following part of this section in the output.
38051 \begin_layout Standard
38055 \begin_layout Plain Layout
38067 \begin_layout Chapter
38068 External Document Parts
38069 \begin_inset Index idx
38072 \begin_layout Plain Layout
38073 External Document Parts
38081 \begin_layout Standard
38084 Insert\SpecialChar menuseparator
38087 you can insert external material into your document.
38091 \begin_layout Description
38093 \begin_inset space ~
38096 Document Another \SpecialChar LyX
38097 document; its content is directly inserted to your document.
38100 \begin_layout Description
38102 \begin_inset space ~
38105 Text A text document; each line is inserted in your document as a separate
38109 \begin_layout Description
38111 \begin_inset space ~
38115 \begin_inset space ~
38119 \begin_inset space ~
38122 Lines A text document; text lines are inserted in your document continuously
38123 but an empty text line creates a new paragraph.
38126 \begin_layout Description
38128 \begin_inset space ~
38131 Material Files in various formats.
38134 \begin_layout Description
38136 \begin_inset space ~
38139 Document \SpecialChar LyX
38140 or \SpecialChar LaTeX
38144 \begin_layout Section
38146 \begin_inset Index idx
38149 \begin_layout Plain Layout
38150 External Document Parts ! External Material
38158 \begin_layout Standard
38159 The external material feature allows you to insert files into your document
38160 without converting them to a format that can be read by the document output
38163 takes care of the necessary conversions.
38164 This is similar to images that can be inserted in various image formats
38165 in \SpecialChar LyX
38167 When you have enabled Instant Preview in \SpecialChar LyX
38168 's preferences under
38171 \begin_inset space ~
38175 \begin_inset space ~
38178 feel\SpecialChar menuseparator
38181 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38185 \begin_layout Standard
38186 External material can be inserted via the
38190 dialog that is accessible with the menu
38192 Insert\SpecialChar menuseparator
38193 File\SpecialChar menuseparator
38195 \begin_inset space ~
38201 Currently the following file types (
38208 \begin_layout Description
38210 \begin_inset space ~
38213 diagram This template supports chess position diagrams made with the program
38217 \begin_inset CommandInset href
38220 target "http://en.wikipedia.org/wiki/XBoard"
38229 \begin_layout Description
38230 Date This inserts the date in the form
38235 This is a date inserted as external material:
38236 \begin_inset External
38243 \begin_inset space ~
38247 \begin_inset Note Note
38250 \begin_layout Plain Layout
38251 Remove the protected space when bug 4398 is fixed!
38257 \begin_inset Newline newline
38260 The date is not shown within \SpecialChar LyX
38261 , only in the output.
38262 There are two other methods of inserting a date: Via menu
38264 Insert\SpecialChar menuseparator
38267 and with the \SpecialChar LaTeX
38274 as \SpecialChar TeX
38276 The different methods are compared in Table
38277 \begin_inset space ~
38281 \begin_inset CommandInset ref
38283 reference "tab:Comparison-of-the"
38290 \begin_layout Description
38292 \begin_inset space ~
38295 diagram This template supports diagrams created with the program
38298 \begin_inset CommandInset href
38301 target "http://en.wikipedia.org/wiki/Dia_(software)"
38310 \begin_layout Description
38311 Spreadsheet With this template you can insert spreadsheets
38312 \begin_inset space \thinspace{}
38316 \begin_inset space \thinspace{}
38319 tables in the format of
38322 \begin_inset CommandInset href
38325 target "http://en.wikipedia.org/wiki/Gnumeric"
38332 \begin_inset CommandInset href
38334 name "OpenDocument"
38335 target "http://en.wikipedia.org/wiki/OpenDocument"
38340 \begin_inset CommandInset href
38342 name "Microsoft Office XML"
38343 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38348 \begin_inset CommandInset href
38350 name "Office Open XML"
38351 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38356 For this feature \SpecialChar LyX
38357 must have found the program
38361 during its configuration.
38362 This program is part of Gnumeric, so that you must have Gnumeric installed,
38363 also if you don't have tables in the Gnumeric format.
38364 For examples and possible limitations have a look at \SpecialChar LyX
38372 \begin_layout Description
38374 \begin_inset space ~
38378 \begin_inset space ~
38381 music This template is used for music notation typeset with the program
38382 \begin_inset Newline linebreak
38388 \begin_inset CommandInset href
38391 target "http://en.wikipedia.org/wiki/LilyPond"
38398 For \SpecialChar LyX
38399 's extended support for LilyPond have a look at \SpecialChar LyX
38407 \begin_layout Description
38409 \begin_inset space ~
38412 pages With this template you can insert PDF documents to your document.
38413 To specify the range of pages that should be included, use the option
38423 LaTeX and LyX options
38426 The argument of this option is a comma separated list, containing page
38427 numbers (insert as option
38431 ), ranges of page numbers (
38435 ) or any combination.
38436 To insert empty pages use {}.
38438 \begin_inset space \thinspace{}
38442 \begin_inset space ~
38447 pages={3,{},8-11,15}
38449 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38450 Page ranges are specified in the syntax
38459 This selects all pages from
38472 defaults to the first page; omitting
38476 defaults to the last page of the document.
38477 The last page can also be selected with the keyword
38482 (This is only permitted in a page range.) So
38486 will insert all pages of the document and
38490 will insert all pages in reverse order.
38491 If the pages option is not specified, only the first page of the PDF is
38493 \begin_inset Newline newline
38500 inserts the pages with their original size, if this option is not given,
38501 the pages will be resized to fith the width of the page of your document.
38506 you can specify the width and height of the input pages and their rotation.
38507 If another width than 100
38508 \begin_inset space \thinspace{}
38511 Scale% is used, the option
38515 will be overwritten.
38516 For more info and possible options, have a look into the documentation
38517 of the \SpecialChar LaTeX
38523 \begin_inset CommandInset citation
38530 \begin_inset Index idx
38533 \begin_layout Plain Layout
38535 -packages ! pdfpages
38541 \begin_inset Newline newline
38544 To use this template in a
38548 presentation you need to first insert an
38552 environment and in a subsequent paragraph a \SpecialChar TeX
38553 Code box containing the command
38558 setbeamertemplate{background canvas}{}
38561 Then you can insert as many paragraphs containing the PDFPages template
38563 Behind the included PDF pages you can resume the Beamer presentation by
38564 beginning a new frame or by starting a new section.
38565 To avoid stray blank pages prior to the PDF pages, make sure to use the
38570 alignment for the paragraph containing the template.
38571 \begin_inset Newline newline
38574 Here is an included PDF which is rotated by -5°:
38575 \begin_inset External
38577 filename clipart/Abstract.pdf
38578 extra LaTeX "noautoscale, pages=-"
38580 rotateOrigin bottomleft
38587 \begin_layout Description
38589 \begin_inset space ~
38592 image This can be used for bitmap images.
38593 The image can be treated in the
38597 dialog like the images that are usually included via the
38601 dialog as described in section
38602 \begin_inset space ~
38606 \begin_inset CommandInset ref
38608 reference "sec:Graphics-Dialog"
38613 Here is an inserted raster image:
38614 \begin_inset External
38615 template RasterImage
38616 filename clipart/ToolbarEnvBox.png
38623 \begin_layout Description
38625 \begin_inset space ~
38628 graphics This can be used for vector graphics.
38629 The image can be treated in the
38633 dialog like the images that are usually included via the
38637 dialog as described in section
38638 \begin_inset space ~
38642 \begin_inset CommandInset ref
38644 reference "sec:Graphics-Dialog"
38649 Here is an inserted vector graphics:
38650 \begin_inset External
38651 template VectorGraphics
38652 filename clipart/banner.svgz
38660 \begin_layout Description
38662 \begin_inset space ~
38665 figure This template supports images created with the program
38668 \begin_inset CommandInset href
38671 target "http://en.wikipedia.org/wiki/Xfig"
38680 \begin_layout Standard
38681 \begin_inset Float table
38687 \begin_layout Plain Layout
38688 \begin_inset Caption Standard
38690 \begin_layout Plain Layout
38691 \begin_inset CommandInset label
38693 name "tab:Comparison-of-the"
38697 Comparison of the date input methods.
38705 \begin_layout Plain Layout
38707 \begin_inset Tabular
38708 <lyxtabular version="3" rows="4" columns="4">
38709 <features tabularvalignment="middle">
38710 <column alignment="center" valignment="top">
38711 <column alignment="center" valignment="top">
38712 <column alignment="center" valignment="top">
38713 <column alignment="center" valignment="top">
38715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38718 \begin_layout Plain Layout
38724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38727 \begin_layout Plain Layout
38730 External Material\SpecialChar menuseparator
38736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38739 \begin_layout Plain Layout
38742 Insert\SpecialChar menuseparator
38748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38751 \begin_layout Plain Layout
38763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38766 \begin_layout Plain Layout
38773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38776 \begin_layout Plain Layout
38782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38785 \begin_layout Plain Layout
38791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38794 \begin_layout Plain Layout
38795 as \SpecialChar TeX
38803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38806 \begin_layout Plain Layout
38813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38816 \begin_layout Plain Layout
38822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38825 \begin_layout Plain Layout
38831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38834 \begin_layout Plain Layout
38842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38845 \begin_layout Plain Layout
38851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38854 \begin_layout Plain Layout
38860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38863 \begin_layout Plain Layout
38869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38872 \begin_layout Plain Layout
38891 \begin_layout Standard
38892 When you use the option
38904 dialog, only the path to the inserted file is shown in the output.
38905 \begin_inset Newline newline
38908 External material is displayed in \SpecialChar LyX
38909 either as a box like this:
38910 \begin_inset Graphics
38911 filename clipart/ExternalMaterial.png
38913 scaleBeforeRotation
38917 or as image, depending on the option
38923 LaTeX and LyX options
38928 \begin_layout Standard
38935 manual explains how you can define your own templates.
38938 \begin_layout Section
38940 \begin_inset CommandInset label
38942 name "sec:Child-Documents"
38947 \begin_inset Index idx
38950 \begin_layout Plain Layout
38951 External Document Parts ! Child Documents
38957 \begin_inset Index idx
38960 \begin_layout Plain Layout
38969 \begin_layout Standard
38970 Child documents are used if you have a long document consisting of several
38971 larger parts or sections.
38972 For maintenance it is often useful and sometimes even required to split
38973 the document into several files that can be revised separately.
38974 The different documents are then the so called
38975 \begin_inset Quotes eld
38979 \begin_inset Quotes erd
38982 , and a master document connects them to print the full document or parts
38984 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38986 the bibliography, and labels for cross-references.
38989 \begin_layout Standard
38990 To be able to work on child documents without the need to open their master,
38991 specify in the child document the master in the menu
38993 Document\SpecialChar menuseparator
38994 Settings\SpecialChar menuseparator
38996 \begin_inset space ~
39002 This master document will then be used in the background by \SpecialChar LyX
39004 the child document.
39007 \begin_layout Standard
39008 Included documents are displayed in \SpecialChar LyX
39009 as a box like this:
39010 \begin_inset Graphics
39011 filename clipart/ChildDocument.png
39012 scaleBeforeRotation
39016 To include child documents in a master document use the menu
39018 Insert\SpecialChar menuseparator
39019 File\SpecialChar menuseparator
39021 \begin_inset space ~
39027 A dialog pops up where you can choose between four include methods:
39030 \begin_layout Description
39031 Include You can include \SpecialChar LyX
39032 and \SpecialChar LaTeX
39042 dialog, the included document will be opened in \SpecialChar LyX
39043 in a new file tab so that
39045 \begin_inset Newline newline
39051 \begin_layout Standard
39052 Here is a child document inserted using
39057 \begin_inset CommandInset include
39058 LatexCommand include
39059 filename "DummyDocument1.lyx"
39066 \begin_layout Standard
39067 The section numbering includes the sections of the included files in the
39068 order they are inserted in the master document.
39069 The included example document has for example a subsection that is numbered
39070 as a subsection of this section.
39071 Labels of included documents can be referenced: Subsection
39072 \begin_inset space ~
39076 \begin_inset CommandInset ref
39078 reference "subsec:External-Subsection-1"
39085 \begin_layout Standard
39086 The preamble of the child document is ignored; only the preamble of the
39087 master document is used.
39088 Branches in child documents will be ignored by the master document when
39089 the master document does not have a branch with the same name.
39090 Included documents are inserted starting on a new page and ending with
39094 \begin_layout Standard
39095 \begin_inset Note Greyedout
39098 \begin_layout Plain Layout
39103 If you have included a \SpecialChar LyX
39104 or \SpecialChar LaTeX
39105 file, you are warned when you export/view the
39106 document in case the child document uses another document class than the
39107 master document as this will lead to unexpected outputs.
39115 \begin_layout Description
39116 Input This method is very similar to the Include method.
39117 The differences are:
39118 \begin_inset Separator parbreak
39125 \begin_layout Itemize
39126 Input files don't start with a new page and don't end with a page break.
39129 \begin_layout Itemize
39130 Input files can be previewed in \SpecialChar LyX
39134 \begin_inset space ~
39139 is enabled in \SpecialChar LyX
39140 's preferences under
39143 \begin_inset space ~
39147 \begin_inset space ~
39150 feel\SpecialChar menuseparator
39156 \begin_layout Itemize
39157 You cannot exclude Input files via the menu
39159 Document\SpecialChar menuseparator
39160 Settings\SpecialChar menuseparator
39167 \begin_layout Standard
39168 Here is a child document inserted using
39173 \begin_inset CommandInset include
39175 filename "DummyDocument2.lyx"
39182 \begin_layout Description
39183 Verbatim With this method any text file can be included.
39184 The file is shown in the output with its source code; no command used in
39185 the text is invoked.
39186 You can use the option
39188 Mark spaces in output
39190 that displays the character
39191 \begin_inset Quotes eld
39198 \begin_layout Plain Layout
39208 \begin_inset Quotes erd
39211 for every space character in the source code.
39212 The difference from the method via the menu
39214 Insert\SpecialChar menuseparator
39215 File\SpecialChar menuseparator
39217 \begin_inset space ~
39222 is that the document content is not shown in \SpecialChar LyX
39226 \begin_layout Standard
39227 Here is a child document inserted as Verbatim:
39228 \begin_inset CommandInset include
39229 LatexCommand verbatiminput
39230 filename "DummyTextDocument.txt"
39235 \begin_inset VSpace bigskip
39238 Here is a child document inserted as Verbatim using the
39240 Mark spaces in output
39243 \begin_inset CommandInset include
39244 LatexCommand verbatiminput*
39245 filename "DummyTextDocument.txt"
39252 \begin_layout Standard
39253 \begin_inset VSpace bigskip
39259 \begin_layout Standard
39260 \begin_inset Note Greyedout
39263 \begin_layout Plain Layout
39268 As you can see in the examples above, the text of the documents included
39273 is not broken at the end of the document lines.
39281 \begin_layout Description
39282 Listings This type is described in chapter
39283 \begin_inset space ~
39287 \begin_inset CommandInset ref
39289 reference "cha:Program-Code-Listings"
39296 \begin_layout Standard
39297 \begin_inset Note Greyedout
39300 \begin_layout Plain Layout
39305 Including the same document twice in a document using different methods
39306 could cause \SpecialChar LaTeX
39315 \begin_layout Standard
39316 If you want to view/export only selected children of your master document,
39317 either because you want to save compiling time or because you want to distribut
39318 e single chapters of the book you are just writing, you can exclude children
39320 This is done via the menu
39322 Document\SpecialChar menuseparator
39323 Settings\SpecialChar menuseparator
39327 You can exclude\SpecialChar breakableslash
39328 include children by double-clicking on the
39332 column of the respective child document in the list (note that this only
39333 works for documents embedded via
39334 \begin_inset Quotes eld
39338 \begin_inset Quotes erd
39342 \begin_inset Quotes eld
39346 \begin_inset Quotes erd
39352 Maintain counters and references
39354 is enabled, \SpecialChar LyX
39355 will assure that all page numbers, references etc.
39356 \begin_inset space ~
39359 are correct as if the whole document was processed.
39360 This is useful if you want the selected sub-documents to look exactly as
39361 in the context of the whole document.
39362 However, \SpecialChar LyX
39363 needs to process the whole document in the background for this
39365 So if you want to save compile time and if counters and references do not
39366 need to be correct, disable this checkbox.
39369 \begin_layout Standard
39370 Alternatively, you can put each included file into a branch.
39374 \begin_layout Plain Layout
39375 Branches are described in section
39379 of the \SpecialChar LyX
39389 By enabling\SpecialChar breakableslash
39390 disabling branches you can decide which included files will
39391 appear in the output.
39392 This has the advantage that it also works with Input'ed sub-documents.
39393 However, counters and references will not be maintained with this approach.
39396 \begin_layout Chapter
39397 Program Code Listings
39398 \begin_inset CommandInset label
39400 name "cha:Program-Code-Listings"
39405 \begin_inset Index idx
39408 \begin_layout Plain Layout
39415 \begin_inset Index idx
39418 \begin_layout Plain Layout
39425 \begin_inset Index idx
39428 \begin_layout Plain Layout
39437 \begin_layout Standard
39438 To include and typeset program code you can use the
39442 inset that can be inserted via the menu
39444 Insert\SpecialChar menuseparator
39448 The \SpecialChar LaTeX
39454 \begin_inset Index idx
39457 \begin_layout Plain Layout
39459 -packages ! listings
39464 provides a powerful and flexible way to insert program source code into
39468 \begin_layout Standard
39469 Right-clicking on a listings inset opens the context menu containing where
39470 you can set the listings format.
39473 \begin_layout Standard
39474 By default, a listing starts a new paragraph in the output.
39475 The placement option
39478 \begin_inset space ~
39483 prints the listing inline like this:
39484 \begin_inset listings
39485 lstparams "language={C++}"
39489 \begin_layout Plain Layout
39497 \begin_inset Newline newline
39504 creates a listings float where you can specify the placement options
39505 \begin_inset Quotes eld
39513 \begin_inset Quotes erd
39517 \begin_inset Quotes eld
39525 \begin_inset Quotes erd
39529 \begin_inset Quotes eld
39537 \begin_inset Quotes erd
39541 \begin_inset Quotes eld
39549 \begin_inset Quotes erd
39552 corresponding to the float placement options described in section
39553 \begin_inset space ~
39557 \begin_inset CommandInset ref
39559 reference "sec:Float-Placement"
39564 The placement options can be mixed and are inserted without any separation,
39566 \begin_inset space \thinspace{}
39570 \begin_inset space \space{}
39574 \begin_inset Quotes eld
39582 \begin_inset Quotes erd
39587 \begin_inset Quotes eld
39591 \begin_inset Quotes erd
39594 has sometimes no effect, but you don't need to use the
39598 option in this case as also non-float listings can have captions and be
39602 \begin_layout Standard
39603 You can add captions to listings with the menu
39605 Insert\SpecialChar menuseparator
39609 Listings can be referenced like floats: Listing
39610 \begin_inset space ~
39614 \begin_inset CommandInset ref
39616 reference "lst:Example-Listing"
39621 A list of listings which contains all listings with captions can be created
39624 Insert\SpecialChar menuseparator
39626 \begin_inset space ~
39630 \begin_inset space ~
39633 TOC\SpecialChar menuseparator
39637 The list entries are the listing caption and the listing number.
39640 \begin_layout Standard
39641 \begin_inset listings
39642 lstparams "language=Python"
39646 \begin_layout Plain Layout
39648 \begin_inset Caption Standard
39650 \begin_layout Plain Layout
39651 \begin_inset CommandInset label
39653 name "lst:Example-Listing"
39657 Example Listing float
39662 # Example listing float
39665 \begin_layout Plain Layout
39670 \begin_layout Plain Layout
39672 'this is a python function'
39675 \begin_layout Plain Layout
39685 \begin_layout Standard
39686 When you have set a programming language in the listings dialog, the keywords
39687 of this language will be recognized and specially typeset in the output.
39688 In the example listings the Python keyword
39689 \begin_inset Quotes eld
39693 \begin_inset Quotes erd
39696 is recognized and printed bold in the output.
39699 \begin_layout Standard
39700 \begin_inset Note Greyedout
39703 \begin_layout Plain Layout
39708 If you don't get bold keywords when using typewriter fonts, your
39712 font probably doesn't provide a bold shape.
39713 In this case select a different one in the menu
39715 Document\SpecialChar menuseparator
39716 Settings\SpecialChar menuseparator
39728 provide bold shapes.)
39736 \begin_layout Standard
39740 \begin_inset space ~
39745 of the listings dialog you can specify the line numbering style.
39746 You can insert a number to specify which lines are numbered in the field
39753 \begin_inset space \thinspace{}
39757 \begin_inset space \space{}
39761 \begin_inset Quotes eld
39765 \begin_inset Quotes erd
39768 , only every 3rd line will be numbered.
39771 \begin_layout Standard
39772 You can furthermore specify a range of lines; only these will then appear
39776 Extended character table
39778 should be used when you use national characters like the German umlauts
39780 \begin_inset Newline newline
39783 Here is an example listing with left line numbering, step
39784 \begin_inset Quotes eld
39788 \begin_inset Quotes erd
39792 \begin_inset Quotes eld
39796 \begin_inset Quotes erd
39800 \begin_inset Quotes eld
39803 Extended character table
39804 \begin_inset Quotes erd
39808 \begin_inset Quotes eld
39812 \begin_inset space ~
39816 \begin_inset space ~
39820 \begin_inset Quotes erd
39824 \begin_inset space \thinspace{}
39828 \begin_inset space \thinspace{}
39834 \begin_layout Standard
39835 \begin_inset listings
39836 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39840 \begin_layout Plain Layout
39845 \begin_layout Plain Layout
39847 'this is a python function'
39850 \begin_layout Plain Layout
39855 \begin_layout Plain Layout
39860 \begin_layout Plain Layout
39862 'This is a German word: Tschüß'
39865 \begin_layout Plain Layout
39870 \begin_layout Plain Layout
39875 \begin_layout Plain Layout
39877 'this is a python function'
39880 \begin_layout Plain Layout
39890 \begin_layout Standard
39891 When you have tabulators in your listing, you can specify the number of
39892 characters that are spanned by a tabulator in the field
39895 \begin_inset space ~
39903 \begin_layout Standard
39904 \begin_inset Note Greyedout
39907 \begin_layout Plain Layout
39912 Due to a bug in the
39916 package the line numbering is shifted by a line by every previous listing.
39917 That's the reason why the lines 2 and 5 are numbered in the above listing
39918 and not the lines 3 and 6.
39926 \begin_layout Standard
39927 \begin_inset VSpace bigskip
39933 \begin_layout Standard
39934 It is also possible to print lines from a file as listing.
39935 To do this, use the menu
39937 Insert\SpecialChar menuseparator
39938 File\SpecialChar menuseparator
39941 and choose the type
39949 \begin_layout Plain Layout
39950 The other child document types are described in section
39951 \begin_inset space ~
39955 \begin_inset CommandInset ref
39957 reference "sec:Child-Documents"
39966 In the child document dialog you can specify the listing parameters in
39968 To show a list of all available parameters, type in a question mark
39969 \begin_inset Quotes eld
39973 \begin_inset Quotes erd
39979 \begin_layout Standard
39980 To reference child document listings, write a label text into the corresponding
39981 field of the child document dialog.
39982 The label can then be referenced using the menu
39984 Insert\SpecialChar menuseparator
39990 \begin_layout Standard
39992 \begin_inset space ~
39996 \begin_inset CommandInset ref
39998 reference "lst:file-listing"
40002 is an example for a listing of a file; there the lines 10
40003 \begin_inset space \thinspace{}
40007 \begin_inset space \thinspace{}
40010 15 of this \SpecialChar LyX
40014 \begin_layout Standard
40015 \begin_inset CommandInset include
40016 LatexCommand lstinputlisting
40017 filename "EmbeddedObjects.lyx"
40018 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40025 \begin_layout Standard
40026 \begin_inset VSpace bigskip
40032 \begin_layout Standard
40033 Inserting a formula into a listing can be done the following way:
40036 \begin_layout Enumerate
40037 Open the listings dialog and add
40038 \begin_inset Newline newline
40046 \begin_inset Newline newline
40049 to the field of the
40056 \begin_layout Enumerate
40057 Create a formula outside the listing
40060 \begin_layout Enumerate
40061 Copy the content of the formula (not the formula inset) to the clipboard
40071 \begin_layout Enumerate
40072 In the listing write
40073 \begin_inset Quotes eld
40081 \begin_inset Quotes erd
40084 and copy from the clipboard between the dollar-signs (shortcut
40093 \begin_layout Standard
40094 \begin_inset listings
40095 lstparams "language=Python,mathescape=true"
40099 \begin_layout Plain Layout
40101 \begin_inset Caption Standard
40103 \begin_layout Plain Layout
40104 Example Listing float containing a formula
40109 # Example listing float
40112 \begin_layout Plain Layout
40117 \begin_layout Plain Layout
40130 \begin_layout Plain Layout
40140 \begin_layout Standard
40141 \begin_inset VSpace bigskip
40147 \begin_layout Standard
40148 Global listings settings can be set in the
40150 Document\SpecialChar menuseparator
40151 Settings\SpecialChar menuseparator
40155 To get there a list of available options, type in a question mark
40156 \begin_inset Quotes eld
40160 \begin_inset Quotes erd
40166 \begin_layout Standard
40167 For more information about the
40171 package, we refer to its documentation
40172 \begin_inset CommandInset citation
40181 \begin_layout Standard
40182 \begin_inset Newpage newpage
40188 \begin_layout Chapter
40190 Units available in \SpecialChar LyX
40192 \begin_inset Index idx
40195 \begin_layout Plain Layout
40202 \begin_inset CommandInset label
40204 name "cha:Units-available-in"
40211 \begin_layout Standard
40212 To understand the units described in this documentation, Table
40213 \begin_inset space ~
40217 \begin_inset CommandInset ref
40219 reference "tab:Units"
40223 explains all units available in \SpecialChar LyX
40227 \begin_layout Standard
40228 \begin_inset Float table
40234 \begin_layout Plain Layout
40235 \begin_inset Caption Standard
40237 \begin_layout Plain Layout
40238 \begin_inset CommandInset label
40252 \begin_layout Plain Layout
40253 \begin_inset VSpace medskip
40259 \begin_layout Plain Layout
40261 \begin_inset Tabular
40262 <lyxtabular version="3" rows="20" columns="3">
40263 <features tabularvalignment="middle">
40264 <column alignment="center" valignment="top">
40265 <column alignment="center" valignment="top">
40266 <column alignment="center" valignment="top">
40268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40271 \begin_layout Plain Layout
40277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40280 \begin_layout Plain Layout
40286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40289 \begin_layout Plain Layout
40298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40301 \begin_layout Plain Layout
40307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40310 \begin_layout Plain Layout
40316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40319 \begin_layout Plain Layout
40327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40330 \begin_layout Plain Layout
40336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40339 \begin_layout Plain Layout
40345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40348 \begin_layout Plain Layout
40356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40359 \begin_layout Plain Layout
40365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40368 \begin_layout Plain Layout
40374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40377 \begin_layout Plain Layout
40385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40388 \begin_layout Plain Layout
40394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40397 \begin_layout Plain Layout
40399 \begin_inset space \thinspace{}
40403 \begin_inset space \thinspace{}
40411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40414 \begin_layout Plain Layout
40422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40425 \begin_layout Plain Layout
40431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40434 \begin_layout Plain Layout
40436 \begin_inset space \thinspace{}
40440 \begin_inset space \thinspace{}
40448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40451 \begin_layout Plain Layout
40459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40462 \begin_layout Plain Layout
40468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40471 \begin_layout Plain Layout
40472 scaled point (65536
40473 \begin_inset space \thinspace{}
40477 \begin_inset space \thinspace{}
40485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40488 \begin_layout Plain Layout
40496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40499 \begin_layout Plain Layout
40505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40508 \begin_layout Plain Layout
40510 \begin_inset space \thinspace{}
40514 \begin_inset space \thinspace{}
40522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40525 \begin_layout Plain Layout
40533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40536 \begin_layout Plain Layout
40542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40545 \begin_layout Plain Layout
40547 \begin_inset space \thinspace{}
40551 \begin_inset Formula $\approx$
40555 \begin_inset space \thinspace{}
40563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40566 \begin_layout Plain Layout
40574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40577 \begin_layout Plain Layout
40583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40586 \begin_layout Plain Layout
40588 \begin_inset space \thinspace{}
40592 \begin_inset space \thinspace{}
40600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40603 \begin_layout Plain Layout
40611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40614 \begin_layout Plain Layout
40620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40623 \begin_layout Plain Layout
40624 % of original image width
40629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40632 \begin_layout Plain Layout
40640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40643 \begin_layout Plain Layout
40649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40652 \begin_layout Plain Layout
40658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40661 \begin_layout Plain Layout
40671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40674 \begin_layout Plain Layout
40680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40683 \begin_layout Plain Layout
40689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40692 \begin_layout Plain Layout
40702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40705 \begin_layout Plain Layout
40711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40714 \begin_layout Plain Layout
40720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40723 \begin_layout Plain Layout
40733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40736 \begin_layout Plain Layout
40742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40745 \begin_layout Plain Layout
40751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40754 \begin_layout Plain Layout
40764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40767 \begin_layout Plain Layout
40773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40776 \begin_layout Plain Layout
40782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40785 \begin_layout Plain Layout
40795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40798 \begin_layout Plain Layout
40804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40807 \begin_layout Plain Layout
40813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40816 \begin_layout Plain Layout
40826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40829 \begin_layout Plain Layout
40835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40838 \begin_layout Plain Layout
40848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40851 \begin_layout Plain Layout
40859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40862 \begin_layout Plain Layout
40868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40871 \begin_layout Plain Layout
40881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40884 \begin_layout Plain Layout
40892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40895 \begin_layout Plain Layout
40901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40904 \begin_layout Plain Layout
40906 \begin_inset space \thinspace{}
40910 \begin_inset space \thinspace{}
40918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40921 \begin_layout Plain Layout
40940 \begin_layout Chapter
40941 Output File Formats with Graphics
40942 \begin_inset CommandInset label
40944 name "cha:Output-File-Formats"
40951 \begin_layout Section
40953 \begin_inset Index idx
40956 \begin_layout Plain Layout
40963 \begin_inset Index idx
40966 \begin_layout Plain Layout
40971 \begin_layout Plain Layout
40982 \begin_layout Plain Layout
40997 \begin_layout Standard
40998 This file type has the extension
40999 \begin_inset Quotes eld
41007 \begin_inset Quotes erd
41012 \begin_inset Quotes eld
41016 \begin_inset Quotes erd
41019 (DVI), because it is completely portable; you can move them from one machine
41020 to another without needing to do any sort of conversion.
41021 At the time when this file-format was developed, this was no matter of
41023 DVIs are used for quick previews and as pre-stage for other output formats,
41027 \begin_layout Standard
41028 \begin_inset Note Greyedout
41031 \begin_layout Plain Layout
41036 DVI-files do not contain images; they will only be a linked.
41041 So don't forget this, if you move your
41045 file to another computer.
41046 This property can also slow down your computer when you view the DVI, because
41047 the DVI-viewer has to convert the image in the background to make it visible
41048 when you scroll in the DVI.
41049 So it is recommended that you use PDF for files with many images.
41052 \begin_layout Standard
41053 You can export your document to DVI by using the menu
41055 File\SpecialChar menuseparator
41056 Export\SpecialChar menuseparator
41060 You can view your document as DVI via the
41067 \begin_layout Section
41069 \begin_inset Index idx
41072 \begin_layout Plain Layout
41073 File Formats ! PostScript
41079 \begin_inset Index idx
41082 \begin_layout Plain Layout
41087 \begin_layout Plain Layout
41098 \begin_layout Plain Layout
41113 \begin_layout Standard
41114 This file type has the extension
41115 \begin_inset Quotes eld
41123 \begin_inset Quotes erd
41127 PostScript was developed by the company
41131 as a printer language.
41132 The file therefore contains commands that the printer uses to print the
41134 PostScript can be seen as a
41135 \begin_inset Quotes eld
41138 programming language
41139 \begin_inset Quotes erd
41142 ; you can calculate with it and draw diagrams and images.
41146 \begin_layout Plain Layout
41147 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41154 \begin_inset CommandInset citation
41165 Due to this ability, the files are often bigger than PDFs.
41168 \begin_layout Standard
41169 PostScript can only contain images in the format
41170 \begin_inset Quotes eld
41173 Encapsulated PostScript
41174 \begin_inset Quotes erd
41177 (EPS, file extension
41178 \begin_inset Quotes eld
41186 \begin_inset Quotes erd
41190 As \SpecialChar LyX
41191 allows you to use any known image format in your document, it has to
41192 convert images in the background to EPS.
41194 \begin_inset space ~
41198 \begin_inset space ~
41201 images in your document, \SpecialChar LyX
41203 \begin_inset space ~
41206 conversions whenever you view or export your document.
41207 This will slow down your work flow with \SpecialChar LyX
41209 So if you plan to use PostScript, you can insert your images directly as
41210 EPS to avoid this problem.
41213 \begin_layout Standard
41214 You can export your document to PostScript using the menu
41216 File\SpecialChar menuseparator
41217 Export\SpecialChar menuseparator
41221 You can view your document as PostScript via the
41228 \begin_layout Section
41230 \begin_inset Index idx
41233 \begin_layout Plain Layout
41240 \begin_inset Index idx
41243 \begin_layout Plain Layout
41252 \begin_layout Standard
41253 This file type has the extension
41254 \begin_inset Quotes eld
41262 \begin_inset Quotes erd
41267 \begin_inset Quotes eld
41270 Portable Document Format
41271 \begin_inset Quotes erd
41274 (PDF) was developed by
41278 as a derivative of PostScript.
41279 It is more compressed and it uses fewer commands than PostScript.
41281 \begin_inset Quotes eld
41285 \begin_inset Quotes erd
41288 implies, it can be processed at any computer system and the printed output
41289 looks exactly the same.
41292 \begin_layout Standard
41293 PDF can contain images in its own PDF format, in the format
41294 \begin_inset Quotes eld
41297 Joint Photographic Experts Group
41298 \begin_inset Quotes erd
41301 (JPG, file extension
41302 \begin_inset Quotes eld
41310 \begin_inset Quotes erd
41314 \begin_inset Quotes eld
41322 \begin_inset Quotes erd
41325 ), and in the format
41326 \begin_inset Quotes eld
41329 Portable Network Graphics
41330 \begin_inset Quotes erd
41333 (PNG, file extension
41334 \begin_inset Quotes eld
41342 \begin_inset Quotes erd
41346 Nevertheless you can use any other image format, because \SpecialChar LyX
41348 in the background to one of these formats.
41349 But as described in the section about PostScript, the image conversion
41350 will slow down your work flow.
41351 So it is recommended that you use images in one of the three mentioned
41355 \begin_layout Standard
41356 You can export your document to PDF via the menu
41358 File\SpecialChar menuseparator
41361 in three different ways:
41364 \begin_layout Description
41366 \begin_inset space ~
41369 (ps2pdf) This uses the program
41373 that creates a PDF from a PostScript-version of your file.
41374 The PostScript-version is produced by the program
41378 which uses a DVI-version as intermediate step.
41379 So this export variant consists of three conversions.
41382 \begin_layout Description
41384 \begin_inset space ~
41387 (dvipdfm) This uses the program
41391 that converts your file in the background to DVI and in a second step to
41395 \begin_layout Description
41397 \begin_inset space ~
41400 (pdflatex) This uses the program
41404 that converts your file directly to PDF.
41407 \begin_layout Standard
41408 It is recommended that you use
41411 \begin_inset space ~
41420 supports all features of actual PDF-versions, is quick and works stable.
41425 is not under development and therefore a bit outdated.
41428 \begin_layout Standard
41429 You can view your document as PDF via the
41433 menu or by using a toolbar button.
41436 \begin_layout Chapter
41437 List of dvips color names
41438 \begin_inset CommandInset label
41440 name "chap:List-of-dvips-colornames"
41447 \begin_layout Standard
41448 \begin_inset Tabular
41449 <lyxtabular version="3" rows="17" columns="4">
41450 <features tabularvalignment="middle">
41451 <column alignment="left" valignment="top" width="0pt">
41452 <column alignment="left" valignment="top" width="0pt">
41453 <column alignment="left" valignment="top" width="0pt">
41454 <column alignment="left" valignment="top" width="0pt">
41456 <cell alignment="left" valignment="top" usebox="none">
41459 \begin_layout Plain Layout
41463 \begin_layout Plain Layout
41476 \begin_layout Plain Layout
41487 \begin_layout Plain Layout
41499 <cell alignment="left" valignment="top" usebox="none">
41502 \begin_layout Plain Layout
41506 \begin_layout Plain Layout
41519 \begin_layout Plain Layout
41530 \begin_layout Plain Layout
41542 <cell alignment="left" valignment="top" usebox="none">
41545 \begin_layout Plain Layout
41549 \begin_layout Plain Layout
41562 \begin_layout Plain Layout
41573 \begin_layout Plain Layout
41585 <cell alignment="left" valignment="top" usebox="none">
41588 \begin_layout Plain Layout
41592 \begin_layout Plain Layout
41605 \begin_layout Plain Layout
41616 \begin_layout Plain Layout
41630 <cell alignment="center" valignment="top" usebox="none">
41633 \begin_layout Plain Layout
41637 \begin_layout Plain Layout
41650 \begin_layout Plain Layout
41658 \begin_inset Phantom Phantom
41661 \begin_layout Plain Layout
41671 \begin_layout Plain Layout
41683 <cell alignment="center" valignment="top" usebox="none">
41686 \begin_layout Plain Layout
41690 \begin_layout Plain Layout
41703 \begin_layout Plain Layout
41711 \begin_inset Phantom Phantom
41714 \begin_layout Plain Layout
41724 \begin_layout Plain Layout
41736 <cell alignment="center" valignment="top" usebox="none">
41739 \begin_layout Plain Layout
41743 \begin_layout Plain Layout
41756 \begin_layout Plain Layout
41764 \begin_inset Phantom Phantom
41767 \begin_layout Plain Layout
41777 \begin_layout Plain Layout
41789 <cell alignment="center" valignment="top" usebox="none">
41792 \begin_layout Plain Layout
41796 \begin_layout Plain Layout
41809 \begin_layout Plain Layout
41817 \begin_inset Phantom Phantom
41820 \begin_layout Plain Layout
41830 \begin_layout Plain Layout
41844 <cell alignment="left" valignment="top" usebox="none">
41847 \begin_layout Plain Layout
41851 \begin_layout Plain Layout
41864 \begin_layout Plain Layout
41872 \begin_inset Phantom Phantom
41875 \begin_layout Plain Layout
41885 \begin_layout Plain Layout
41897 <cell alignment="left" valignment="top" usebox="none">
41900 \begin_layout Plain Layout
41904 \begin_layout Plain Layout
41917 \begin_layout Plain Layout
41925 \begin_inset Phantom Phantom
41928 \begin_layout Plain Layout
41938 \begin_layout Plain Layout
41950 <cell alignment="left" valignment="top" usebox="none">
41953 \begin_layout Plain Layout
41957 \begin_layout Plain Layout
41970 \begin_layout Plain Layout
41978 \begin_inset Phantom Phantom
41981 \begin_layout Plain Layout
41991 \begin_layout Plain Layout
42003 <cell alignment="left" valignment="top" usebox="none">
42006 \begin_layout Plain Layout
42010 \begin_layout Plain Layout
42023 \begin_layout Plain Layout
42031 \begin_inset Phantom Phantom
42034 \begin_layout Plain Layout
42044 \begin_layout Plain Layout
42058 <cell alignment="left" valignment="top" usebox="none">
42061 \begin_layout Plain Layout
42065 \begin_layout Plain Layout
42078 \begin_layout Plain Layout
42086 \begin_inset Phantom Phantom
42089 \begin_layout Plain Layout
42099 \begin_layout Plain Layout
42111 <cell alignment="left" valignment="top" usebox="none">
42114 \begin_layout Plain Layout
42118 \begin_layout Plain Layout
42131 \begin_layout Plain Layout
42139 \begin_inset Phantom Phantom
42142 \begin_layout Plain Layout
42152 \begin_layout Plain Layout
42164 <cell alignment="left" valignment="top" usebox="none">
42167 \begin_layout Plain Layout
42171 \begin_layout Plain Layout
42184 \begin_layout Plain Layout
42192 \begin_inset Phantom Phantom
42195 \begin_layout Plain Layout
42205 \begin_layout Plain Layout
42217 <cell alignment="left" valignment="top" usebox="none">
42220 \begin_layout Plain Layout
42224 \begin_layout Plain Layout
42237 \begin_layout Plain Layout
42245 \begin_inset Phantom Phantom
42248 \begin_layout Plain Layout
42258 \begin_layout Plain Layout
42272 <cell alignment="left" valignment="top" usebox="none">
42275 \begin_layout Plain Layout
42279 \begin_layout Plain Layout
42292 \begin_layout Plain Layout
42300 \begin_inset Phantom Phantom
42303 \begin_layout Plain Layout
42313 \begin_layout Plain Layout
42325 <cell alignment="left" valignment="top" usebox="none">
42328 \begin_layout Plain Layout
42332 \begin_layout Plain Layout
42345 \begin_layout Plain Layout
42353 \begin_inset Phantom Phantom
42356 \begin_layout Plain Layout
42366 \begin_layout Plain Layout
42378 <cell alignment="left" valignment="top" usebox="none">
42381 \begin_layout Plain Layout
42385 \begin_layout Plain Layout
42398 \begin_layout Plain Layout
42406 \begin_inset Phantom Phantom
42409 \begin_layout Plain Layout
42419 \begin_layout Plain Layout
42431 <cell alignment="left" valignment="top" usebox="none">
42434 \begin_layout Plain Layout
42438 \begin_layout Plain Layout
42451 \begin_layout Plain Layout
42459 \begin_inset Phantom Phantom
42462 \begin_layout Plain Layout
42472 \begin_layout Plain Layout
42486 <cell alignment="left" valignment="top" usebox="none">
42489 \begin_layout Plain Layout
42493 \begin_layout Plain Layout
42506 \begin_layout Plain Layout
42514 \begin_inset Phantom Phantom
42517 \begin_layout Plain Layout
42527 \begin_layout Plain Layout
42539 <cell alignment="left" valignment="top" usebox="none">
42542 \begin_layout Plain Layout
42546 \begin_layout Plain Layout
42559 \begin_layout Plain Layout
42567 \begin_inset Phantom Phantom
42570 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42592 <cell alignment="left" valignment="top" usebox="none">
42595 \begin_layout Plain Layout
42599 \begin_layout Plain Layout
42612 \begin_layout Plain Layout
42620 \begin_inset Phantom Phantom
42623 \begin_layout Plain Layout
42633 \begin_layout Plain Layout
42645 <cell alignment="left" valignment="top" usebox="none">
42648 \begin_layout Plain Layout
42652 \begin_layout Plain Layout
42665 \begin_layout Plain Layout
42673 \begin_inset Phantom Phantom
42676 \begin_layout Plain Layout
42686 \begin_layout Plain Layout
42700 <cell alignment="center" valignment="top" usebox="none">
42703 \begin_layout Plain Layout
42707 \begin_layout Plain Layout
42720 \begin_layout Plain Layout
42728 \begin_inset Phantom Phantom
42731 \begin_layout Plain Layout
42741 \begin_layout Plain Layout
42753 <cell alignment="center" valignment="top" usebox="none">
42756 \begin_layout Plain Layout
42760 \begin_layout Plain Layout
42773 \begin_layout Plain Layout
42781 \begin_inset Phantom Phantom
42784 \begin_layout Plain Layout
42794 \begin_layout Plain Layout
42806 <cell alignment="center" valignment="top" usebox="none">
42809 \begin_layout Plain Layout
42813 \begin_layout Plain Layout
42826 \begin_layout Plain Layout
42834 \begin_inset Phantom Phantom
42837 \begin_layout Plain Layout
42847 \begin_layout Plain Layout
42859 <cell alignment="center" valignment="top" usebox="none">
42862 \begin_layout Plain Layout
42866 \begin_layout Plain Layout
42879 \begin_layout Plain Layout
42887 \begin_inset Phantom Phantom
42890 \begin_layout Plain Layout
42900 \begin_layout Plain Layout
42914 <cell alignment="left" valignment="top" usebox="none">
42917 \begin_layout Plain Layout
42921 \begin_layout Plain Layout
42934 \begin_layout Plain Layout
42942 \begin_inset Phantom Phantom
42945 \begin_layout Plain Layout
42955 \begin_layout Plain Layout
42967 <cell alignment="left" valignment="top" usebox="none">
42970 \begin_layout Plain Layout
42974 \begin_layout Plain Layout
42987 \begin_layout Plain Layout
42995 \begin_inset Phantom Phantom
42998 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43020 <cell alignment="left" valignment="top" usebox="none">
43023 \begin_layout Plain Layout
43027 \begin_layout Plain Layout
43040 \begin_layout Plain Layout
43048 \begin_inset Phantom Phantom
43051 \begin_layout Plain Layout
43061 \begin_layout Plain Layout
43073 <cell alignment="left" valignment="top" usebox="none">
43076 \begin_layout Plain Layout
43080 \begin_layout Plain Layout
43093 \begin_layout Plain Layout
43101 \begin_inset Phantom Phantom
43104 \begin_layout Plain Layout
43114 \begin_layout Plain Layout
43128 <cell alignment="left" valignment="top" usebox="none">
43131 \begin_layout Plain Layout
43135 \begin_layout Plain Layout
43148 \begin_layout Plain Layout
43156 \begin_inset Phantom Phantom
43159 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43181 <cell alignment="left" valignment="top" usebox="none">
43184 \begin_layout Plain Layout
43188 \begin_layout Plain Layout
43201 \begin_layout Plain Layout
43209 \begin_inset Phantom Phantom
43212 \begin_layout Plain Layout
43222 \begin_layout Plain Layout
43234 <cell alignment="left" valignment="top" usebox="none">
43237 \begin_layout Plain Layout
43241 \begin_layout Plain Layout
43254 \begin_layout Plain Layout
43262 \begin_inset Phantom Phantom
43265 \begin_layout Plain Layout
43275 \begin_layout Plain Layout
43287 <cell alignment="left" valignment="top" usebox="none">
43290 \begin_layout Plain Layout
43294 \begin_layout Plain Layout
43307 \begin_layout Plain Layout
43315 \begin_inset Phantom Phantom
43318 \begin_layout Plain Layout
43328 \begin_layout Plain Layout
43342 <cell alignment="left" valignment="top" usebox="none">
43345 \begin_layout Plain Layout
43349 \begin_layout Plain Layout
43362 \begin_layout Plain Layout
43370 \begin_inset Phantom Phantom
43373 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43395 <cell alignment="left" valignment="top" usebox="none">
43398 \begin_layout Plain Layout
43402 \begin_layout Plain Layout
43415 \begin_layout Plain Layout
43423 \begin_inset Phantom Phantom
43426 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43448 <cell alignment="left" valignment="top" usebox="none">
43451 \begin_layout Plain Layout
43455 \begin_layout Plain Layout
43468 \begin_layout Plain Layout
43476 \begin_inset Phantom Phantom
43479 \begin_layout Plain Layout
43489 \begin_layout Plain Layout
43501 <cell alignment="left" valignment="top" usebox="none">
43504 \begin_layout Plain Layout
43508 \begin_layout Plain Layout
43521 \begin_layout Plain Layout
43529 \begin_inset Phantom Phantom
43532 \begin_layout Plain Layout
43542 \begin_layout Plain Layout
43556 <cell alignment="left" valignment="top" usebox="none">
43559 \begin_layout Plain Layout
43563 \begin_layout Plain Layout
43576 \begin_layout Plain Layout
43584 \begin_inset Phantom Phantom
43587 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43609 <cell alignment="left" valignment="top" usebox="none">
43612 \begin_layout Plain Layout
43616 \begin_layout Plain Layout
43629 \begin_layout Plain Layout
43637 \begin_inset Phantom Phantom
43640 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43662 <cell alignment="left" valignment="top" usebox="none">
43665 \begin_layout Plain Layout
43669 \begin_layout Plain Layout
43682 \begin_layout Plain Layout
43690 \begin_inset Phantom Phantom
43693 \begin_layout Plain Layout
43703 \begin_layout Plain Layout
43715 <cell alignment="left" valignment="top" usebox="none">
43718 \begin_layout Plain Layout
43722 \begin_layout Plain Layout
43735 \begin_layout Plain Layout
43743 \begin_inset Phantom Phantom
43746 \begin_layout Plain Layout
43756 \begin_layout Plain Layout
43770 <cell alignment="left" valignment="top" usebox="none">
43773 \begin_layout Plain Layout
43777 \begin_layout Plain Layout
43790 \begin_layout Plain Layout
43798 \begin_inset Phantom Phantom
43801 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43823 <cell alignment="left" valignment="top" usebox="none">
43826 \begin_layout Plain Layout
43830 \begin_layout Plain Layout
43843 \begin_layout Plain Layout
43851 \begin_inset Phantom Phantom
43854 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43876 <cell alignment="left" valignment="top" usebox="none">
43879 \begin_layout Plain Layout
43883 \begin_layout Plain Layout
43896 \begin_layout Plain Layout
43904 \begin_inset Phantom Phantom
43907 \begin_layout Plain Layout
43917 \begin_layout Plain Layout
43929 <cell alignment="left" valignment="top" usebox="none">
43932 \begin_layout Plain Layout
43936 \begin_layout Plain Layout
43949 \begin_layout Plain Layout
43957 \begin_inset Phantom Phantom
43960 \begin_layout Plain Layout
43970 \begin_layout Plain Layout
43984 <cell alignment="left" valignment="top" usebox="none">
43987 \begin_layout Plain Layout
43991 \begin_layout Plain Layout
44004 \begin_layout Plain Layout
44012 \begin_inset Phantom Phantom
44015 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44037 <cell alignment="left" valignment="top" usebox="none">
44040 \begin_layout Plain Layout
44044 \begin_layout Plain Layout
44057 \begin_layout Plain Layout
44065 \begin_inset Phantom Phantom
44068 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44090 <cell alignment="left" valignment="top" usebox="none">
44093 \begin_layout Plain Layout
44097 \begin_layout Plain Layout
44110 \begin_layout Plain Layout
44118 \begin_inset Phantom Phantom
44121 \begin_layout Plain Layout
44131 \begin_layout Plain Layout
44143 <cell alignment="left" valignment="top" usebox="none">
44146 \begin_layout Plain Layout
44150 \begin_layout Plain Layout
44163 \begin_layout Plain Layout
44171 \begin_inset Phantom Phantom
44174 \begin_layout Plain Layout
44184 \begin_layout Plain Layout
44198 <cell alignment="left" valignment="top" usebox="none">
44201 \begin_layout Plain Layout
44205 \begin_layout Plain Layout
44218 \begin_layout Plain Layout
44226 \begin_inset Phantom Phantom
44229 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44251 <cell alignment="left" valignment="top" usebox="none">
44254 \begin_layout Plain Layout
44258 \begin_layout Plain Layout
44271 \begin_layout Plain Layout
44279 \begin_inset Phantom Phantom
44282 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44304 <cell alignment="left" valignment="top" usebox="none">
44307 \begin_layout Plain Layout
44311 \begin_layout Plain Layout
44324 \begin_layout Plain Layout
44332 \begin_inset Phantom Phantom
44335 \begin_layout Plain Layout
44345 \begin_layout Plain Layout
44357 <cell alignment="left" valignment="top" usebox="none">
44360 \begin_layout Plain Layout
44364 \begin_layout Plain Layout
44377 \begin_layout Plain Layout
44385 \begin_inset Phantom Phantom
44388 \begin_layout Plain Layout
44398 \begin_layout Plain Layout
44412 <cell alignment="left" valignment="top" usebox="none">
44415 \begin_layout Plain Layout
44419 \begin_layout Plain Layout
44432 \begin_layout Plain Layout
44440 \begin_inset Phantom Phantom
44443 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44465 <cell alignment="left" valignment="top" usebox="none">
44468 \begin_layout Plain Layout
44472 \begin_layout Plain Layout
44485 \begin_layout Plain Layout
44493 \begin_inset Phantom Phantom
44496 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44518 <cell alignment="left" valignment="top" usebox="none">
44521 \begin_layout Plain Layout
44525 \begin_layout Plain Layout
44538 \begin_layout Plain Layout
44546 \begin_inset Phantom Phantom
44549 \begin_layout Plain Layout
44559 \begin_layout Plain Layout
44571 <cell alignment="left" valignment="top" usebox="none">
44574 \begin_layout Plain Layout
44578 \begin_layout Plain Layout
44591 \begin_layout Plain Layout
44599 \begin_inset Phantom Phantom
44602 \begin_layout Plain Layout
44612 \begin_layout Plain Layout
44626 <cell alignment="left" valignment="top" usebox="none">
44629 \begin_layout Plain Layout
44633 \begin_layout Plain Layout
44646 \begin_layout Plain Layout
44654 \begin_inset Phantom Phantom
44657 \begin_layout Plain Layout
44667 \begin_layout Plain Layout
44679 <cell alignment="left" valignment="top" usebox="none">
44682 \begin_layout Plain Layout
44686 \begin_layout Plain Layout
44699 \begin_layout Plain Layout
44707 \begin_inset Phantom Phantom
44710 \begin_layout Plain Layout
44720 \begin_layout Plain Layout
44732 <cell alignment="left" valignment="top" usebox="none">
44735 \begin_layout Plain Layout
44739 \begin_layout Plain Layout
44752 \begin_layout Plain Layout
44760 \begin_inset Phantom Phantom
44763 \begin_layout Plain Layout
44773 \begin_layout Plain Layout
44785 <cell alignment="left" valignment="top" usebox="none">
44788 \begin_layout Plain Layout
44792 \begin_layout Plain Layout
44805 \begin_layout Plain Layout
44813 \begin_inset Phantom Phantom
44816 \begin_layout Plain Layout
44826 \begin_layout Plain Layout
44840 <cell alignment="left" valignment="top" usebox="none">
44843 \begin_layout Plain Layout
44847 \begin_layout Plain Layout
44860 \begin_layout Plain Layout
44868 \begin_inset Phantom Phantom
44871 \begin_layout Plain Layout
44881 \begin_layout Plain Layout
44893 <cell alignment="left" valignment="top" usebox="none">
44896 \begin_layout Plain Layout
44902 <cell alignment="left" valignment="top" usebox="none">
44905 \begin_layout Plain Layout
44911 <cell alignment="left" valignment="top" usebox="none">
44914 \begin_layout Plain Layout
44928 \begin_layout Chapter
44929 Explanation of Equation
44930 \begin_inset space ~
44934 \begin_inset CommandInset ref
44941 \begin_inset CommandInset label
44943 name "cha:Explanation-of-Equation"
44950 \begin_layout Standard
44951 We can calculate the total width of
44956 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44960 \begin_inset Formula
44962 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44968 \begin_inset Formula $W_{g\,n}$
44971 is the given width of all cells,
44977 is the \SpecialChar LaTeX
44978 -length between the cell text and the cell border (its default value
44980 \begin_inset space \thinspace{}
44990 is the thickness of the cell border line, the default is 0.4
44991 \begin_inset space \thinspace{}
44997 \begin_layout Standard
44999 \begin_inset space ~
45003 \begin_inset CommandInset ref
45005 reference "eq:Wtot_n"
45009 , the total width of a multicolumn
45010 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45014 \begin_inset Formula
45016 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45024 \begin_layout Standard
45025 By setting equation
45026 \begin_inset space ~
45030 \begin_inset CommandInset ref
45032 reference "eq:Wtot_n"
45037 \begin_inset CommandInset ref
45039 reference "eq:Wtot_mult"
45043 equal we can calculate the needed given width
45044 \begin_inset Formula $W_{g\,n}$
45051 columns are spanned, so that each column has a total width of
45052 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45056 \begin_inset Formula
45058 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45066 \begin_layout Bibliography
45067 \begin_inset CommandInset bibitem
45068 LatexCommand bibitem
45069 key "latexcompanion"
45073 Frank Mittelbach and Michel Goossens:
45075 The \SpecialChar LaTeX
45076 Companion Second Edition.
45079 Addison-Wesley, 2004
45082 \begin_layout Bibliography
45083 \begin_inset CommandInset bibitem
45084 LatexCommand bibitem
45089 Helmut Kopka and Patrick W.
45092 A Guide to \SpecialChar LaTeX
45096 Addison-Wesley, 2003
45099 \begin_layout Bibliography
45100 \begin_inset CommandInset bibitem
45101 LatexCommand bibitem
45109 : A Document Preparation System.
45112 Addison-Wesley, second edition, 1994
45115 \begin_layout Bibliography
45116 \begin_inset CommandInset bibitem
45117 LatexCommand bibitem
45122 Documentation of the \SpecialChar LaTeX
45126 \begin_inset CommandInset href
45129 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45136 \begin_inset Index idx
45139 \begin_layout Plain Layout
45141 -packages ! arydshln
45149 \begin_layout Bibliography
45150 \begin_inset CommandInset bibitem
45151 LatexCommand bibitem
45156 Documentation of the \SpecialChar LaTeX
45160 \begin_inset CommandInset href
45163 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45170 \begin_inset Index idx
45173 \begin_layout Plain Layout
45175 -packages ! booktabs
45183 \begin_layout Bibliography
45184 \begin_inset CommandInset bibitem
45185 LatexCommand bibitem
45190 Documentation of the \SpecialChar LaTeX
45194 \begin_inset CommandInset href
45197 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45204 \begin_inset Index idx
45207 \begin_layout Plain Layout
45209 -packages ! caption
45217 \begin_layout Bibliography
45218 \begin_inset CommandInset bibitem
45219 LatexCommand bibitem
45224 Documentation of the \SpecialChar LaTeX
45228 \begin_inset CommandInset href
45231 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45238 \begin_inset Index idx
45241 \begin_layout Plain Layout
45243 -packages ! diagbox
45251 \begin_layout Bibliography
45252 \begin_inset CommandInset bibitem
45253 LatexCommand bibitem
45258 Documentation of the \SpecialChar LaTeX
45262 \begin_inset CommandInset href
45265 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45272 \begin_inset Index idx
45275 \begin_layout Plain Layout
45277 -packages ! endfloat
45285 \begin_layout Bibliography
45286 \begin_inset CommandInset bibitem
45287 LatexCommand bibitem
45292 Documentation of the \SpecialChar LaTeX
45296 \begin_inset CommandInset href
45299 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45306 \begin_inset Index idx
45309 \begin_layout Plain Layout
45311 -packages ! footmisc
45319 \begin_layout Bibliography
45320 \begin_inset CommandInset bibitem
45321 LatexCommand bibitem
45326 Documentation of the \SpecialChar LaTeX
45330 \begin_inset CommandInset href
45333 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45340 \begin_inset Index idx
45343 \begin_layout Plain Layout
45345 -packages ! hyperref
45353 \begin_layout Bibliography
45354 \begin_inset CommandInset bibitem
45355 LatexCommand bibitem
45360 Documentation of the \SpecialChar LaTeX
45364 \begin_inset CommandInset href
45367 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45374 \begin_inset Index idx
45377 \begin_layout Plain Layout
45379 -packages ! hyperref
45387 \begin_layout Bibliography
45388 \begin_inset CommandInset bibitem
45389 LatexCommand bibitem
45394 Documentation of the \SpecialChar LaTeX
45398 \begin_inset CommandInset href
45401 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45408 \begin_inset Index idx
45411 \begin_layout Plain Layout
45413 -packages ! KOMA-Script
45421 \begin_layout Bibliography
45422 \begin_inset CommandInset bibitem
45423 LatexCommand bibitem
45428 Documentation of the \SpecialChar LaTeX
45432 \begin_inset CommandInset href
45435 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45442 \begin_inset CommandInset href
45445 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45450 \begin_inset Index idx
45453 \begin_layout Plain Layout
45455 -packages ! lettrine
45463 \begin_layout Bibliography
45464 \begin_inset CommandInset bibitem
45465 LatexCommand bibitem
45470 Documentation of the \SpecialChar LaTeX
45474 \begin_inset CommandInset href
45477 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45484 \begin_inset Index idx
45487 \begin_layout Plain Layout
45489 -packages ! listings
45497 \begin_layout Bibliography
45498 \begin_inset CommandInset bibitem
45499 LatexCommand bibitem
45504 Documentation of the \SpecialChar LaTeX
45508 \begin_inset CommandInset href
45511 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45518 \begin_inset Index idx
45521 \begin_layout Plain Layout
45523 -packages ! marginnote
45531 \begin_layout Bibliography
45532 \begin_inset CommandInset bibitem
45533 LatexCommand bibitem
45538 Documentation of the \SpecialChar LaTeX
45542 \begin_inset CommandInset href
45545 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45552 \begin_inset Index idx
45555 \begin_layout Plain Layout
45557 -packages ! pdfpages
45565 \begin_layout Bibliography
45566 \begin_inset CommandInset bibitem
45567 LatexCommand bibitem
45572 Documentation of the \SpecialChar LaTeX
45576 \begin_inset CommandInset href
45579 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45586 \begin_inset Index idx
45589 \begin_layout Plain Layout
45591 -packages ! prettyref
45599 \begin_layout Bibliography
45600 \begin_inset CommandInset bibitem
45601 LatexCommand bibitem
45606 Web page of the \SpecialChar LaTeX
45610 \begin_inset CommandInset href
45613 target "http://tug.org/PSTricks/"
45620 \begin_inset Index idx
45623 \begin_layout Plain Layout
45625 -packages ! PSTricks
45633 \begin_layout Bibliography
45634 \begin_inset CommandInset bibitem
45635 LatexCommand bibitem
45640 Documentation of the \SpecialChar LaTeX
45644 \begin_inset CommandInset href
45647 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45654 \begin_inset Index idx
45657 \begin_layout Plain Layout
45659 -packages ! refstyle
45667 \begin_layout Bibliography
45668 \begin_inset CommandInset bibitem
45669 LatexCommand bibitem
45674 Documentation of the \SpecialChar LaTeX
45678 \begin_inset CommandInset href
45681 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45688 \begin_inset Index idx
45691 \begin_layout Plain Layout
45693 -packages ! sidecap
45701 \begin_layout Bibliography
45702 \begin_inset CommandInset bibitem
45703 LatexCommand bibitem
45709 \begin_inset CommandInset href
45712 target "http://wiki.lyx.org/LyX/NewInLyX20"
45716 about new features in
45724 \begin_layout Standard
45725 \begin_inset CommandInset index_print
45726 LatexCommand printindex